/*! For license information please see talkdeskchatsdk.js.LICENSE.txt */
(()=>{var r,c,u,p={50676:(r,c,u)=>{"use strict";function _arrayLikeToArray(r,c){(null==c||c>r.length)&&(c=r.length);for(var u=0,p=new Array(c);u<c;u++)p[u]=r[u];return p}u.d(c,{Z:()=>_arrayLikeToArray})},59968:(r,c,u)=>{"use strict";function _arrayWithHoles(r){if(Array.isArray(r))return r}u.d(c,{Z:()=>_arrayWithHoles})},63349:(r,c,u)=>{"use strict";function _assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}u.d(c,{Z:()=>_assertThisInitialized})},92137:(r,c,u)=>{"use strict";function asyncGeneratorStep(r,c,u,p,y,w,k){try{var x=r[w](k),E=x.value}catch(r){return void u(r)}x.done?c(E):Promise.resolve(E).then(p,y)}function _asyncToGenerator(r){return function(){var c=this,u=arguments;return new Promise((function(p,y){var w=r.apply(c,u);function _next(r){asyncGeneratorStep(w,p,y,_next,_throw,"next",r)}function _throw(r){asyncGeneratorStep(w,p,y,_next,_throw,"throw",r)}_next(void 0)}))}}u.d(c,{Z:()=>_asyncToGenerator})},6610:(r,c,u)=>{"use strict";function _classCallCheck(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}u.d(c,{Z:()=>_classCallCheck})},5991:(r,c,u)=>{"use strict";function _defineProperties(r,c){for(var u=0;u<c.length;u++){var p=c[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}function _createClass(r,c,u){return c&&_defineProperties(r.prototype,c),u&&_defineProperties(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r}u.d(c,{Z:()=>_createClass})},96156:(r,c,u)=>{"use strict";function _defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}u.d(c,{Z:()=>_defineProperty})},22122:(r,c,u)=>{"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(r){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(r[p]=u[p])}return r}).apply(this,arguments)}u.d(c,{Z:()=>_extends})},77608:(r,c,u)=>{"use strict";function _getPrototypeOf(r){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}u.d(c,{Z:()=>_getPrototypeOf})},10379:(r,c,u)=>{"use strict";u.d(c,{Z:()=>_inherits});var p=u(14665);function _inherits(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(c&&c.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),c&&(0,p.Z)(r,c)}},96410:(r,c,u)=>{"use strict";function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}u.d(c,{Z:()=>_iterableToArray})},28970:(r,c,u)=>{"use strict";function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}u.d(c,{Z:()=>_nonIterableRest})},17375:(r,c,u)=>{"use strict";function _objectWithoutProperties(r,c){if(null==r)return{};var u,p,y=function _objectWithoutPropertiesLoose(r,c){if(null==r)return{};var u,p,y={},w=Object.keys(r);for(p=0;p<w.length;p++)u=w[p],c.indexOf(u)>=0||(y[u]=r[u]);return y}(r,c);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(r);for(p=0;p<w.length;p++)u=w[p],c.indexOf(u)>=0||Object.prototype.propertyIsEnumerable.call(r,u)&&(y[u]=r[u])}return y}u.d(c,{Z:()=>_objectWithoutProperties})},86089:(r,c,u)=>{"use strict";function _typeof(r){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}u.d(c,{Z:()=>_possibleConstructorReturn});var p=u(63349);function _possibleConstructorReturn(r,c){if(c&&("object"===_typeof(c)||"function"==typeof c))return c;if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");return(0,p.Z)(r)}},14665:(r,c,u)=>{"use strict";function _setPrototypeOf(r,c){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(r,c){return r.__proto__=c,r})(r,c)}u.d(c,{Z:()=>_setPrototypeOf})},28481:(r,c,u)=>{"use strict";u.d(c,{Z:()=>_slicedToArray});var p=u(59968);var y=u(82961),w=u(28970);function _slicedToArray(r,c){return(0,p.Z)(r)||function _iterableToArrayLimit(r,c){var u=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=u){var p,y,w=[],k=!0,x=!1;try{for(u=u.call(r);!(k=(p=u.next()).done)&&(w.push(p.value),!c||w.length!==c);k=!0);}catch(r){x=!0,y=r}finally{try{k||null==u.return||u.return()}finally{if(x)throw y}}return w}}(r,c)||(0,y.Z)(r,c)||(0,w.Z)()}},32465:(r,c,u)=>{"use strict";function _taggedTemplateLiteral(r,c){return c||(c=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(c)}}))}u.d(c,{Z:()=>_taggedTemplateLiteral})},42921:(r,c,u)=>{"use strict";u.d(c,{Z:()=>_toConsumableArray});var p=u(50676);var y=u(96410),w=u(82961);function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return(0,p.Z)(r)}(r)||(0,y.Z)(r)||(0,w.Z)(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},82961:(r,c,u)=>{"use strict";u.d(c,{Z:()=>_unsupportedIterableToArray});var p=u(50676);function _unsupportedIterableToArray(r,c){if(r){if("string"==typeof r)return(0,p.Z)(r,c);var u=Object.prototype.toString.call(r).slice(8,-1);return"Object"===u&&r.constructor&&(u=r.constructor.name),"Map"===u||"Set"===u?Array.from(r):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?(0,p.Z)(r,c):void 0}}},59591:(r,c,u)=>{var p=u(50008).default;function _regeneratorRuntime(){"use strict";r.exports=_regeneratorRuntime=function _regeneratorRuntime(){return c},r.exports.__esModule=!0,r.exports.default=r.exports;var c={},u=Object.prototype,y=u.hasOwnProperty,w="function"==typeof Symbol?Symbol:{},k=w.iterator||"@@iterator",x=w.asyncIterator||"@@asyncIterator",E=w.toStringTag||"@@toStringTag";function define(r,c,u){return Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}),r[c]}try{define({},"")}catch(r){define=function define(r,c,u){return r[c]=u}}function wrap(r,c,u,p){var y=c&&c.prototype instanceof Generator?c:Generator,w=Object.create(y.prototype),k=new Context(p||[]);return w._invoke=function(r,c,u){var p="suspendedStart";return function(y,w){if("executing"===p)throw new Error("Generator is already running");if("completed"===p){if("throw"===y)throw w;return doneResult()}for(u.method=y,u.arg=w;;){var k=u.delegate;if(k){var x=maybeInvokeDelegate(k,u);if(x){if(x===I)continue;return x}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===p)throw p="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);p="executing";var E=tryCatch(r,c,u);if("normal"===E.type){if(p=u.done?"completed":"suspendedYield",E.arg===I)continue;return{value:E.arg,done:u.done}}"throw"===E.type&&(p="completed",u.method="throw",u.arg=E.arg)}}}(r,u,k),w}function tryCatch(r,c,u){try{return{type:"normal",arg:r.call(c,u)}}catch(r){return{type:"throw",arg:r}}}c.wrap=wrap;var I={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var K={};define(K,k,(function(){return this}));var J=Object.getPrototypeOf,ie=J&&J(J(values([])));ie&&ie!==u&&y.call(ie,k)&&(K=ie);var oe=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(K);function defineIteratorMethods(r){["next","throw","return"].forEach((function(c){define(r,c,(function(r){return this._invoke(c,r)}))}))}function AsyncIterator(r,c){var u;this._invoke=function(w,k){function callInvokeWithMethodAndArg(){return new c((function(u,x){!function invoke(u,w,k,x){var E=tryCatch(r[u],r,w);if("throw"!==E.type){var I=E.arg,K=I.value;return K&&"object"==p(K)&&y.call(K,"__await")?c.resolve(K.__await).then((function(r){invoke("next",r,k,x)}),(function(r){invoke("throw",r,k,x)})):c.resolve(K).then((function(r){I.value=r,k(I)}),(function(r){return invoke("throw",r,k,x)}))}x(E.arg)}(w,k,u,x)}))}return u=u?u.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(r,c){var u=r.iterator[c.method];if(void 0===u){if(c.delegate=null,"throw"===c.method){if(r.iterator.return&&(c.method="return",c.arg=void 0,maybeInvokeDelegate(r,c),"throw"===c.method))return I;c.method="throw",c.arg=new TypeError("The iterator does not provide a 'throw' method")}return I}var p=tryCatch(u,r.iterator,c.arg);if("throw"===p.type)return c.method="throw",c.arg=p.arg,c.delegate=null,I;var y=p.arg;return y?y.done?(c[r.resultName]=y.value,c.next=r.nextLoc,"return"!==c.method&&(c.method="next",c.arg=void 0),c.delegate=null,I):y:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,I)}function pushTryEntry(r){var c={tryLoc:r[0]};1 in r&&(c.catchLoc=r[1]),2 in r&&(c.finallyLoc=r[2],c.afterLoc=r[3]),this.tryEntries.push(c)}function resetTryEntry(r){var c=r.completion||{};c.type="normal",delete c.arg,r.completion=c}function Context(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r){var c=r[k];if(c)return c.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var u=-1,p=function next(){for(;++u<r.length;)if(y.call(r,u))return next.value=r[u],next.done=!1,next;return next.value=void 0,next.done=!0,next};return p.next=p}}return{next:doneResult}}function doneResult(){return{value:void 0,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(oe,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,E,"GeneratorFunction"),c.isGeneratorFunction=function(r){var c="function"==typeof r&&r.constructor;return!!c&&(c===GeneratorFunction||"GeneratorFunction"===(c.displayName||c.name))},c.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,GeneratorFunctionPrototype):(r.__proto__=GeneratorFunctionPrototype,define(r,E,"GeneratorFunction")),r.prototype=Object.create(oe),r},c.awrap=function(r){return{__await:r}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,x,(function(){return this})),c.AsyncIterator=AsyncIterator,c.async=function(r,u,p,y,w){void 0===w&&(w=Promise);var k=new AsyncIterator(wrap(r,u,p,y),w);return c.isGeneratorFunction(u)?k:k.next().then((function(r){return r.done?r.value:k.next()}))},defineIteratorMethods(oe),define(oe,E,"Generator"),define(oe,k,(function(){return this})),define(oe,"toString",(function(){return"[object Generator]"})),c.keys=function(r){var c=[];for(var u in r)c.push(u);return c.reverse(),function next(){for(;c.length;){var u=c.pop();if(u in r)return next.value=u,next.done=!1,next}return next.done=!0,next}},c.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!r)for(var c in this)"t"===c.charAt(0)&&y.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function stop(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var c=this;function handle(u,p){return w.type="throw",w.arg=r,c.next=u,p&&(c.method="next",c.arg=void 0),!!p}for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u],w=p.completion;if("root"===p.tryLoc)return handle("end");if(p.tryLoc<=this.prev){var k=y.call(p,"catchLoc"),x=y.call(p,"finallyLoc");if(k&&x){if(this.prev<p.catchLoc)return handle(p.catchLoc,!0);if(this.prev<p.finallyLoc)return handle(p.finallyLoc)}else if(k){if(this.prev<p.catchLoc)return handle(p.catchLoc,!0)}else{if(!x)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return handle(p.finallyLoc)}}}},abrupt:function abrupt(r,c){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc<=this.prev&&y.call(p,"finallyLoc")&&this.prev<p.finallyLoc){var w=p;break}}w&&("break"===r||"continue"===r)&&w.tryLoc<=c&&c<=w.finallyLoc&&(w=null);var k=w?w.completion:{};return k.type=r,k.arg=c,w?(this.method="next",this.next=w.finallyLoc,I):this.complete(k)},complete:function complete(r,c){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&c&&(this.next=c),I},finish:function finish(r){for(var c=this.tryEntries.length-1;c>=0;--c){var u=this.tryEntries[c];if(u.finallyLoc===r)return this.complete(u.completion,u.afterLoc),resetTryEntry(u),I}},catch:function _catch(r){for(var c=this.tryEntries.length-1;c>=0;--c){var u=this.tryEntries[c];if(u.tryLoc===r){var p=u.completion;if("throw"===p.type){var y=p.arg;resetTryEntry(u)}return y}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,c,u){return this.delegate={iterator:values(r),resultName:c,nextLoc:u},"next"===this.method&&(this.arg=void 0),I}},c}r.exports=_regeneratorRuntime,r.exports.__esModule=!0,r.exports.default=r.exports},50008:r=>{function _typeof(c){return r.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},r.exports.__esModule=!0,r.exports.default=r.exports,_typeof(c)}r.exports=_typeof,r.exports.__esModule=!0,r.exports.default=r.exports},87757:(r,c,u)=>{var p=u(59591)();r.exports=p;try{regeneratorRuntime=p}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=p:Function("r","regeneratorRuntime = r")(p)}},78381:(r,c,u)=>{"use strict";var p;u.d(c,{Z:()=>K});var y=new Uint8Array(16);function rng(){if(!p&&!(p="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(y)}const w=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const k=function validate(r){return"string"==typeof r&&w.test(r)};for(var x=[],E=0;E<256;++E)x.push((E+256).toString(16).substr(1));const I=function stringify(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=(x[r[c+0]]+x[r[c+1]]+x[r[c+2]]+x[r[c+3]]+"-"+x[r[c+4]]+x[r[c+5]]+"-"+x[r[c+6]]+x[r[c+7]]+"-"+x[r[c+8]]+x[r[c+9]]+"-"+x[r[c+10]]+x[r[c+11]]+x[r[c+12]]+x[r[c+13]]+x[r[c+14]]+x[r[c+15]]).toLowerCase();if(!k(u))throw TypeError("Stringified UUID is invalid");return u};const K=function v4(r,c,u){var p=(r=r||{}).random||(r.rng||rng)();if(p[6]=15&p[6]|64,p[8]=63&p[8]|128,c){u=u||0;for(var y=0;y<16;++y)c[u+y]=p[y];return c}return I(p)}},58594:(r,c,u)=>{"use strict";u.d(c,{Z:()=>y});var p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const y=function memoize(r){var c={};return function(u){return void 0===c[u]&&(c[u]=r(u)),c[u]}}((function(r){return p.test(r)||111===r.charCodeAt(0)&&110===r.charCodeAt(1)&&r.charCodeAt(2)<91}))},31529:(r,c,u)=>{"use strict";u.d(c,{H:()=>y});var p=document.createElement("div");p.innerHTML="\x3c!--[if lte IE 6]><div></div><![endif]--\x3e\x3c!--[if lte IE 7]><div></div><![endif]--\x3e\x3c!--[if lte IE 8]><div></div><![endif]--\x3e\x3c!--[if lte IE 9]><div></div><![endif]--\x3e";var y,w=p.getElementsByTagName("div").length;y=4===w?6:3===w?7:2===w?8:1===w?9:0},51376:(r,c,u)=>{"use strict";u.d(c,{I:()=>Configurable});class Configurable{constructor(r,c){return r&&"object"==typeof r?c&&"object"==typeof c?(Object.assign(this,c),void Object.entries(r).forEach(([r,u])=>{Object.keys(c).includes(r)&&(this[r]=u)})):console.error("setting a Configurable requires a model to set its initial properties"):console.error("setting a Configurable requires an object as input")}}},25768:(r,c,u)=>{"use strict";u.d(c,{C:()=>getInfo,L:()=>setInfo});var p=u(26253),y=u(51376);const w={beacon:p.ce.beacon,errorBeacon:p.ce.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},k={};function getInfo(r){if(!r)throw new Error("All config objects require an agent identifier!");if(!k[r])throw new Error(`Info for ${r} was never set`);return k[r]}function setInfo(r,c){if(!r)throw new Error("All config objects require an agent identifier!");k[r]=new y.I(c,w),(0,p.Qy)(r,k[r],"info")}},80406:(r,c,u)=>{"use strict";u.d(c,{P_:()=>getConfiguration,Dg:()=>setConfiguration,Mt:()=>getConfigurationValue});var p=u(26253),y=u(51376);const w={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},k={};function getConfiguration(r){if(!r)throw new Error("All config objects require an agent identifier!");if(!k[r])throw new Error(`Configuration for ${r} was never set`);return k[r]}function setConfiguration(r,c){if(!r)throw new Error("All config objects require an agent identifier!");k[r]=new y.I(c,w),(0,p.Qy)(r,k[r],"config")}function getConfigurationValue(r,c){if(!r)throw new Error("All config objects require an agent identifier!");var u=getConfiguration(r);if(u){for(var p=c.split("."),y=0;y<p.length-1;y++)if("object"!=typeof(u=u[p[y]]))return;u=u[p[p.length-1]]}return u}},70309:(r,c,u)=>{"use strict";u.d(c,{D:()=>getLoaderConfig,G:()=>setLoaderConfig});var p=u(26253),y=u(51376);const w={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},k={};function getLoaderConfig(r){if(!r)throw new Error("All config objects require an agent identifier!");if(!k[r])throw new Error(`LoaderConfig for ${r} was never set`);return k[r]}function setLoaderConfig(r,c){if(!r)throw new Error("All config objects require an agent identifier!");k[r]=new y.I(c,w),(0,p.Qy)(r,k[r],"loader_config")}},11249:(r,c,u)=>{"use strict";u.d(c,{O:()=>getRuntime,s:()=>setRuntime});var p={};u.r(p),u.d(p,{agent:()=>k,match:()=>match,version:()=>x});var y=u(31529),w=u(41437),k=null,x=null;if(navigator.userAgent){var E=navigator.userAgent,I=E.match(/Version\/(\S+)\s+Safari/);I&&-1===E.indexOf("Chrome")&&-1===E.indexOf("Chromium")&&(k="Safari",x=I[1])}function match(r,c){if(!k)return!1;if(r!==k)return!1;if(!c)return!0;if(!x)return!1;for(var u=x.split("."),p=c.split("."),y=0;y<p.length;y++)if(p[y]!==u[y])return!1;return!0}var K=u(51376),J=u(26253),ie=window.XMLHttpRequest,oe=ie&&ie.prototype;const se={origin:""+window.location,maxBytes:6===y.H?2e3:3e4,offset:(0,w.yf)(),features:{},customTransaction:void 0,onerror:void 0,releaseIds:void 0,xhrWrappable:ie&&oe&&oe.addEventListener&&!/CriOS/.test(navigator.userAgent),disabled:void 0,ptid:void 0,userAgent:p},ae={};function getRuntime(r){if(!r)throw new Error("All config objects require an agent identifier!");if(!ae[r])throw new Error(`Runtime for ${r} was never set`);return ae[r]}function setRuntime(r,c){if(!r)throw new Error("All config objects require an agent identifier!");ae[r]=new K.I(c,se),(0,J.Qy)(r,ae[r],"runtime")}},95907:(r,c,u)=>{"use strict";u.d(c,{w:()=>SharedContext});const p={agentIdentifier:""};class SharedContext{constructor(r){if("object"!=typeof r)return console.error("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,p),Object.entries(r).forEach(([r,c])=>{Object.keys(p).includes(r)&&(this.sharedContext[r]=c)})}}},69581:(r,c,u)=>{"use strict";function generateSpanId(){return generateRandomHexString(16)}function generateTraceId(){return generateRandomHexString(32)}function generateRandomHexString(r){var c=null,u=0,p=window.crypto||window.msCrypto;p&&p.getRandomValues&&Uint8Array&&(c=p.getRandomValues(new Uint8Array(31)));for(var y=[],w=0;w<r;w++)y.push(getRandomValue().toString(16));return y.join("");function getRandomValue(){return c?15&c[u++]:16*Math.random()|0}}u.d(c,{M:()=>generateSpanId,Ht:()=>generateTraceId,ky:()=>generateRandomHexString})},41437:(r,c,u)=>{"use strict";u.d(c,{zO:()=>now,yf:()=>getLastTimestamp,nb:()=>setOffset,os:()=>getOffset});var p=u(14666),y=(new Date).getTime(),w=y;function now(){return p.G&&performance.now?Math.round(performance.now()):(y=Math.max((new Date).getTime(),y))-w}function getLastTimestamp(){return y}function setOffset(r){w=r}function getOffset(){return w}},14666:(r,c,u)=>{"use strict";u.d(c,{G:()=>p});const p=void 0!==window.performance&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},30717:(r,c,u)=>{"use strict";u.d(c,{D:()=>mapOwn});var p=Object.prototype.hasOwnProperty;function mapOwn(r,c){var u=[],y="",w=0;for(y in r)p.call(r,y)&&(u[w]=c(y,r[y]),w+=1);return u}},26253:(r,c,u)=>{"use strict";u.d(c,{ce:()=>y,fP:()=>gosNREUM,mF:()=>gosNREUMOriginals,Qy:()=>gosNREUMInitializedAgents});var p=u(41437);const y={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function gosNREUM(){return window.NREUM||(window.NREUM={}),void 0===window.newrelic&&(window.newrelic=window.NREUM),window.NREUM}function gosNREUMOriginals(){let r=gosNREUM();if(!r.o){var c=window,u=c.XMLHttpRequest;r.o={ST:setTimeout,SI:c.setImmediate,CT:clearTimeout,XHR:u,REQ:c.Request,EV:c.Event,PR:c.Promise,MO:c.MutationObserver,FETCH:c.fetch}}return r}function gosNREUMInitializedAgents(r,c,u){let y=gosNREUM();const w=y.initializedAgents||{},k=w[r]||{};return Object.keys(k).length||(k.initializedAt={ms:(0,p.zO)(),date:new Date}),y.initializedAgents={...w,[r]:{...k,[u]:c}},y}},86754:(r,c,u)=>{var p={"./ajax/aggregate":[82119,732,119],"./js-errors/aggregate":[96341,732,341],"./page-action/aggregate":[81196,732,196],"./page-view-event/aggregate":[80340,732,340],"./page-view-timing/aggregate":[73583,732,583],"./session-trace/aggregate":[27110,732,110]};function webpackAsyncContext(r){if(!u.o(p,r))return Promise.resolve().then(()=>{var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c});var c=p[r],y=c[0];return Promise.all(c.slice(1).map(u.e)).then(()=>u(y))}webpackAsyncContext.keys=()=>Object.keys(p),webpackAsyncContext.id=86754,r.exports=webpackAsyncContext},43358:(r,c,u)=>{var p={"./ajax/instrument":[94706,311,706],"./js-errors/instrument":[79624,311,624],"./page-action/instrument":[85610,610],"./page-view-event/instrument":[75228,228],"./page-view-timing/instrument":[60617,617],"./session-trace/instrument":[47200,311,200]};function webpackAsyncContext(r){if(!u.o(p,r))return Promise.resolve().then(()=>{var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c});var c=p[r],y=c[0];return Promise.all(c.slice(1).map(u.e)).then(()=>u(y))}webpackAsyncContext.keys=()=>Object.keys(p),webpackAsyncContext.id=43358,r.exports=webpackAsyncContext},19222:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(99663)),y=_interopRequireDefault(u(22600));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.AggregatedDeliveryReceipt=void 0;var w=function(){function AggregatedDeliveryReceipt(r){(0,p.default)(this,AggregatedDeliveryReceipt),this.state=r}return(0,y.default)(AggregatedDeliveryReceipt,[{key:"_update",value:function _update(r){this.state=r}},{key:"_isEquals",value:function _isEquals(r){var c=this.total===r.total,u=this.sent===r.sent,p=this.delivered===r.delivered,y=this.read===r.read,w=this.undelivered===r.undelivered,k=this.failed===r.failed;return c&&u&&p&&y&&w&&k}},{key:"total",get:function get(){return this.state.total}},{key:"sent",get:function get(){return this.state.sent}},{key:"delivered",get:function get(){return this.state.delivered}},{key:"read",get:function get(){return this.state.read}},{key:"undelivered",get:function get(){return this.state.undelivered}},{key:"failed",get:function get(){return this.state.failed}}]),AggregatedDeliveryReceipt}();c.AggregatedDeliveryReceipt=w},23129:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(26378)),y=_interopRequireDefault(u(12424)),w=_interopRequireDefault(u(52367)),k=_interopRequireDefault(u(94942)),x=_interopRequireDefault(u(52945)),E=_interopRequireDefault(u(36803)),I=_interopRequireDefault(u(46593)),K=_interopRequireDefault(u(85105)),J=_interopRequireDefault(u(22600)),ie=_interopRequireDefault(u(49135)),oe=_interopRequireDefault(u(93196)),se=_interopRequireDefault(u(99663)),ae=_interopRequireDefault(u(448)),ue=_interopRequireDefault(u(32242)),le=_interopRequireDefault(u(72444)),de=_interopRequireDefault(u(8177));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}var __decorate=function(r,c,u,p){var y,w=arguments.length,k=w<3?c:null===p?p=(0,de.default)(c,u):p;if("object"===("undefined"==typeof Reflect?"undefined":(0,le.default)(Reflect))&&"function"==typeof Reflect.decorate)k=Reflect.decorate(r,c,u,p);else for(var x=r.length-1;x>=0;x--)(y=r[x])&&(k=(w<3?y(k):w>3?y(c,u,k):y(c,u))||k);return w>3&&k&&(0,ue.default)(c,u,k),k},__metadata=function(r,c){if("object"===("undefined"==typeof Reflect?"undefined":(0,le.default)(Reflect))&&"function"==typeof ae.default)return(0,ae.default)(r,c)};Object.defineProperty(c,"__esModule",{value:!0}),c.PushNotification=c.Client=c.User=void 0;var pe=u(17187),he=u(31312),ge=u(73080),ve=u(8992);Object.defineProperty(c,"User",{enumerable:!0,get:function get(){return ve.User}});var we=u(45486),Se=u(53547),Oe=u(97498),Ie=u(16895),De=u(51684),Pe=u(41137),Le=u(66222),je=u(72117),Fe=u(16384),Ue=u(33780),$e=u(93399),Ze=u(4126),We=u(17463);Object.defineProperty(c,"PushNotification",{enumerable:!0,get:function get(){return We.PushNotification}});var Ge=u(55218),Ke=u(50368),Je=u(25739),Ye=he.Logger.scope("Client"),Xe=u(79086).i8,Qe=function ClientServices(){(0,se.default)(this,ClientServices)},et=function(r){function Client(r,c){(0,se.default)(this,Client);var u=(0,ie.default)(this,(Client.__proto__||(0,K.default)(Client)).call(this));u.connectionState="connecting",u.sessionPromise=null,u.conversationsPromise=null,u.version=Xe,u.parsePushNotification=Client.parsePushNotification,u.options=c||{},u.options.disableDeepClone||(u.options=Ge.deepClone(u.options)),u.options.logLevel=u.options.logLevel||"silent",Ye.setLevel(u.options.logLevel);var p=u.options.productId="ip_messaging";if(u.options.clientMetadata=u.options.clientMetadata||{},u.options.clientMetadata.hasOwnProperty("type")||(u.options.clientMetadata.type="conversations"),u.options.clientMetadata.hasOwnProperty("sdk")||(u.options.clientMetadata.sdk="JS",u.options.clientMetadata.sdkv=Xe),u.options.Sync=u.options.Sync||{},void 0===u.options.Sync.enableSessionStorage&&(u.options.Sync.enableSessionStorage=!0),u.options.region&&(u.options.Sync.region=u.options.region),!r)throw new Error("A valid Twilio token should be provided");return u.services=new Qe,u.config=new ge.Configuration(u.options),u.options.twilsockClient=u.options.twilsockClient||new Ie.Twilsock(r,p,u.options),u.options.transport=u.options.transport||u.options.twilsockClient,u.options.notificationsClient=u.options.notificationsClient||new De.Notifications(r,u.options),u.options.syncClient=u.options.syncClient||new Pe.SyncClient(r,u.options),u.services.syncClient=u.options.syncClient,u.services.transport=u.options.transport,u.services.twilsockClient=u.options.twilsockClient,u.services.notificationClient=u.options.notificationsClient,u.services.session=new je.Session(u.services,u.config),u.sessionPromise=u.services.session.initialize(),u.services.network=new we.Network(u.config,u.services),u.services.users=new Ue.Users({session:u.services.session,network:u.services.network,syncClient:u.services.syncClient}),u.services.users.on("userSubscribed",u.emit.bind(u,"userSubscribed")),u.services.users.on("userUpdated",(function(r){return u.emit("userUpdated",r)})),u.services.users.on("userUnsubscribed",u.emit.bind(u,"userUnsubscribed")),u.services.twilsockClient.on("tokenAboutToExpire",(function(r){return u.emit("tokenAboutToExpire",r)})),u.services.twilsockClient.on("tokenExpired",(function(){return u.emit("tokenExpired")})),u.services.twilsockClient.on("connectionError",(function(r){return u.emit("connectionError",r)})),u.services.readHorizon=new Ze.ReadHorizon(u.services),u.services.typingIndicator=new $e.TypingIndicator(u.config,{transport:u.services.twilsockClient,notificationClient:u.services.notificationClient},u.getConversationBySid.bind(u)),u.services.syncList=new Oe.SyncList(u.services),u.conversations=new Fe.Conversations(u.services),u.conversationsPromise=u.sessionPromise.then((function(){return u.conversations.on("conversationAdded",u.emit.bind(u,"conversationAdded")),u.conversations.on("conversationRemoved",u.emit.bind(u,"conversationRemoved")),u.conversations.on("conversationJoined",u.emit.bind(u,"conversationJoined")),u.conversations.on("conversationLeft",u.emit.bind(u,"conversationLeft")),u.conversations.on("conversationUpdated",(function(r){return u.emit("conversationUpdated",r)})),u.conversations.on("participantJoined",u.emit.bind(u,"participantJoined")),u.conversations.on("participantLeft",u.emit.bind(u,"participantLeft")),u.conversations.on("participantUpdated",(function(r){return u.emit("participantUpdated",r)})),u.conversations.on("messageAdded",u.emit.bind(u,"messageAdded")),u.conversations.on("messageUpdated",(function(r){return u.emit("messageUpdated",r)})),u.conversations.on("messageRemoved",u.emit.bind(u,"messageRemoved")),u.conversations.on("typingStarted",u.emit.bind(u,"typingStarted")),u.conversations.on("typingEnded",u.emit.bind(u,"typingEnded")),u.conversations.fetchConversations()})).then((function(){return u.conversations})),u.services.notificationClient.on("connectionStateChanged",(function(r){var c=null;switch(r){case"connected":c="connected";break;case"denied":c="denied";break;case"disconnecting":c="disconnecting";break;case"disconnected":c="disconnected";break;default:c="connecting"}c!==u.connectionState&&(u.connectionState=c,u.emit("connectionStateChanged",u.connectionState))})),u.fpaToken=r,u}var c,u,p,y,w,ae,ue,le,de,pe;return(0,oe.default)(Client,r),(0,J.default)(Client,[{key:"subscribeToPushNotifications",value:function subscribeToPushNotifications(r){var c=this,u=[];return[Se.NotificationTypes.NEW_MESSAGE,Se.NotificationTypes.ADDED_TO_CONVERSATION,Se.NotificationTypes.REMOVED_FROM_CONVERSATION,Se.NotificationTypes.TYPING_INDICATOR,Se.NotificationTypes.CONSUMPTION_UPDATE].forEach((function(p){u.push(c.services.notificationClient.subscribe(p,r))})),I.default.all(u)}},{key:"unsubscribeFromPushNotifications",value:function unsubscribeFromPushNotifications(r){var c=this,u=[];return[Se.NotificationTypes.NEW_MESSAGE,Se.NotificationTypes.ADDED_TO_CONVERSATION,Se.NotificationTypes.REMOVED_FROM_CONVERSATION,Se.NotificationTypes.TYPING_INDICATOR,Se.NotificationTypes.CONSUMPTION_UPDATE].forEach((function(p){u.push(c.services.notificationClient.unsubscribe(p,r))})),I.default.all(u)}},{key:"initialize",value:(pe=(0,E.default)(k.default.mark((function _callee(){var r,c,u=this;return k.default.wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.sessionPromise;case 2:return Client.supportedPushChannels.forEach((function(r){return u.subscribeToPushNotifications(r)})),p.next=5,this.services.session.getSessionLinks();case 5:return r=p.sent,(c=(0,x.default)(this.options)).transport=null,this.services.mcsClient=new Le.McsClient(this.fpaToken,r.mediaServiceUrl,c),p.next=11,this.services.typingIndicator.initialize();case 11:case"end":return p.stop()}}),_callee,this)}))),function initialize(){return pe.apply(this,arguments)})},{key:"shutdown",value:(de=(0,E.default)(k.default.mark((function _callee2(){return k.default.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.services.twilsockClient.disconnect();case 2:case"end":return r.stop()}}),_callee2,this)}))),function shutdown(){return de.apply(this,arguments)})},{key:"updateToken",value:(le=(0,E.default)(k.default.mark((function _callee3(r){var c=this;return k.default.wrap((function _callee3$(u){for(;;)switch(u.prev=u.next){case 0:if(Ye.info("updateToken"),this.fpaToken!==r){u.next=3;break}return u.abrupt("return",this);case 3:return u.next=5,this.services.twilsockClient.updateToken(r).then((function(){return c.fpaToken=r})).then((function(){return c.services.mcsClient.updateToken(r)})).then((function(){return c.sessionPromise}));case 5:return u.abrupt("return",this);case 6:case"end":return u.stop()}}),_callee3,this)}))),function updateToken(r){return le.apply(this,arguments)})},{key:"getConversationBySid",value:(ue=(0,E.default)(k.default.mark((function _callee4(r){var c=this;return k.default.wrap((function _callee4$(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",this.conversations.syncListRead.promise.then((function(){return c.conversations.getConversation(r)})).then((function(c){if(!c)throw new Error("Conversation with SID "+r+" is not found.");return c})));case 1:case"end":return u.stop()}}),_callee4,this)}))),function getConversationBySid(r){return ue.apply(this,arguments)})},{key:"getConversationByUniqueName",value:(ae=(0,E.default)(k.default.mark((function _callee5(r){var c=this;return k.default.wrap((function _callee5$(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",this.conversations.syncListRead.promise.then((function(){return c.conversations.getConversationByUniqueName(r)})).then((function(c){if(!c)throw new Error("Conversation with unique name "+r+" is not found.");return c})));case 1:case"end":return u.stop()}}),_callee5,this)}))),function getConversationByUniqueName(r){return ae.apply(this,arguments)})},{key:"getSubscribedConversations",value:function getSubscribedConversations(r){return this.conversationsPromise.then((function(c){return c.getConversations(r)}))}},{key:"createConversation",value:function createConversation(r){return r=r||{},this.conversationsPromise.then((function(c){return c.addConversation(r)}))}},{key:"setPushRegistrationId",value:(w=(0,E.default)(k.default.mark((function _callee6(r,c){var u=this;return k.default.wrap((function _callee6$(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.subscribeToPushNotifications(r).then((function(){return u.services.notificationClient.setPushRegistrationId(c,r)}));case 2:case"end":return p.stop()}}),_callee6,this)}))),function setPushRegistrationId(r,c){return w.apply(this,arguments)})},{key:"unsetPushRegistrationId",value:(y=(0,E.default)(k.default.mark((function _callee7(r){return k.default.wrap((function _callee7$(c){for(;;)switch(c.prev=c.next){case 0:if(-1!==Client.supportedPushChannels.indexOf(r)){c.next=2;break}throw new Error("Invalid or unsupported channelType: "+r);case 2:return c.next=4,this.unsubscribeFromPushNotifications(r);case 4:case"end":return c.stop()}}),_callee7,this)}))),function unsetPushRegistrationId(r){return y.apply(this,arguments)})},{key:"handlePushNotification",value:(p=(0,E.default)(k.default.mark((function _callee8(r){return k.default.wrap((function _callee8$(c){for(;;)switch(c.prev=c.next){case 0:Ye.debug("handlePushNotification, notificationPayload=",r),this.emit("pushNotification",Client.parsePushNotification(r));case 2:case"end":return c.stop()}}),_callee8,this)}))),function handlePushNotification(r){return p.apply(this,arguments)})},{key:"getUser",value:function getUser(r){return this.services.users.getUser(r)}},{key:"getSubscribedUsers",value:(u=(0,E.default)(k.default.mark((function _callee9(){return k.default.wrap((function _callee9$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.services.users.getSubscribedUsers());case 1:case"end":return r.stop()}}),_callee9,this)}))),function getSubscribedUsers(){return u.apply(this,arguments)})},{key:"user",get:function get(){return this.services.users.myself}},{key:"reachabilityEnabled",get:function get(){return this.services.session.reachabilityEnabled}},{key:"token",get:function get(){return this.fpaToken}}],[{key:"create",value:(c=(0,E.default)(k.default.mark((function _callee10(r,c){var u,p;return k.default.wrap((function _callee10$(y){for(;;)switch(y.prev=y.next){case 0:return u=new Client(r,c),p="conversations.client.startup",u.services.twilsockClient.addPartialTelemetryEvent(new Je.TelemetryEventDescription(p,"Conversations client startup",new Date),p,Je.TelemetryPoint.Start),y.next=5,u.initialize();case 5:return u.services.twilsockClient.addPartialTelemetryEvent(new Je.TelemetryEventDescription("","",new Date),p,Je.TelemetryPoint.End),y.abrupt("return",u);case 7:case"end":return y.stop()}}),_callee10,this)}))),function create(r,u){return c.apply(this,arguments)})},{key:"parsePushNotificationChatData",value:function parsePushNotificationChatData(r){var c={};for(var u in Client.supportedPushDataFields)void 0!==r[u]&&null!==r[u]&&("message_index"===u?null!==Ge.parseToNumber(r[u])&&(c[Client.supportedPushDataFields[u]]=Number(r[u])):c[Client.supportedPushDataFields[u]]=r[u]);return c}},{key:"parsePushNotification",value:function parsePushNotification(r){if(Ye.debug("parsePushNotification, notificationPayload=",r),void 0!==r.aps){if(!r.twi_message_type)throw new Error("Provided push notification payload does not contain Programmable Chat push notification type");var c=Client.parsePushNotificationChatData(r),u=r.aps,p=null,y=null;return"string"==typeof u.alert?p=u.alert||null:(p=u.alert.body||null,y=u.alert.title||null),new We.PushNotification({title:y,body:p,sound:u.sound||null,badge:u.badge||null,action:u.category||null,type:r.twi_message_type,data:c})}if(void 0!==r.data){var w=r.data;if(!w.twi_message_type)throw new Error("Provided push notification payload does not contain Programmable Chat push notification type");var k=Client.parsePushNotificationChatData(r.data);return new We.PushNotification({title:w.twi_title||null,body:w.twi_body||null,sound:w.twi_sound||null,badge:null,action:w.twi_action||null,type:w.twi_message_type,data:k})}throw new Error("Provided push notification payload is not Programmable Chat notification")}}]),Client}(pe.EventEmitter);et.version=Xe,et.supportedPushChannels=["fcm","apn"],et.supportedPushDataFields={conversation_sid:"conversationSid",message_sid:"messageSid",message_index:"messageIndex"},__decorate([Ke.asyncTypeCheck(Ke.nonEmptyString),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",I.default)],et.prototype,"updateToken",null),__decorate([Ke.asyncTypeCheck(Ke.nonEmptyString),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",I.default)],et.prototype,"getConversationBySid",null),__decorate([Ke.asyncTypeCheck(Ke.nonEmptyString),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",I.default)],et.prototype,"getConversationByUniqueName",null),__decorate([Ke.asyncTypeCheck(["undefined",Ke.custom((function(r){if("object"!==(void 0===r?"undefined":(0,le.default)(r))||null===r||Array.isArray(r))return[!1,"valid conversation options (should be a pure object)"];var c=new w.default([["friendlyName","string"],["uniqueName","string"]]),u=!0,k=!1,x=void 0;try{for(var E,I=(0,p.default)(c.entries());!(u=(E=I.next()).done);u=!0){var K=E.value,J=(0,y.default)(K,2),ie=J[0],oe=J[1];if(void 0!==r[ie]&&(0,le.default)(r[ie])!==oe)return[!1,"valid conversation options (options."+ie+" should be of type "+oe+")","malformed conversation options (options."+ie+" is "+Ke.stringifyReceivedType(r[ie])+")"]}}catch(r){k=!0,x=r}finally{try{!u&&I.return&&I.return()}finally{if(k)throw x}}return[!0]}))]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",I.default)],et.prototype,"createConversation",null),__decorate([Ke.asyncTypeCheck(Ke.literal("fcm","apn"),"string"),__metadata("design:type",Function),__metadata("design:paramtypes",[String,String]),__metadata("design:returntype",I.default)],et.prototype,"setPushRegistrationId",null),__decorate([Ke.asyncTypeCheck(Ke.literal("fcm","apn")),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",I.default)],et.prototype,"unsetPushRegistrationId",null),__decorate([Ke.asyncTypeCheck(Ke.pureObject),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",I.default)],et.prototype,"handlePushNotification",null),__decorate([Ke.asyncTypeCheck(Ke.nonEmptyString),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",I.default)],et.prototype,"getUser",null),__decorate([Ke.asyncTypeCheck("string",["undefined",Ke.pureObject]),__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",I.default)],et,"create",null),__decorate([Ke.typeCheck(Ke.pureObject),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",We.PushNotification)],et,"parsePushNotification",null),c.Client=et,c.default=et},73080:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(99663)),y=_interopRequireDefault(u(22600));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Configuration=void 0;var w=function(){function Configuration(r){(0,p.default)(this,Configuration);var c=(r=r||{}).Chat||r.IPMessaging||r||{};this.region=c.region||r.region,this.baseUrl=c.apiUri||c.typingUri||(this.region&&"us1"!==this.region?"https://aim."+this.region+".twilio.com":"https://aim.twilio.com"),this.typingIndicatorUri=this.baseUrl+"/v1/typing",this.typingIndicatorTimeoutOverride=c.typingIndicatorTimeoutOverride,this.httpCacheIntervalOverride=c.httpCacheIntervalOverride,this.consumptionReportIntervalOverride=c.consumptionReportIntervalOverride,this.userInfosToSubscribeOverride=c.userInfosToSubscribeOverride,this.retryWhenThrottledOverride=c.retryWhenThrottledOverride,this.backoffConfigOverride=c.backoffConfigOverride}return(0,y.default)(Configuration,[{key:"typingIndicatorTimeoutDefault",get:function get(){return 5e3}},{key:"httpCacheIntervalDefault",get:function get(){return"PT5S"}},{key:"consumptionReportIntervalDefault",get:function get(){return"PT5S"}},{key:"userInfosToSubscribeDefault",get:function get(){return 100}},{key:"retryWhenThrottledDefault",get:function get(){return!0}},{key:"backoffConfigDefault",get:function get(){return{min:1e3,max:4e3,maxAttemptsCount:3}}}]),Configuration}();c.Configuration=w},74280:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(88902)),y=_interopRequireDefault(u(26378)),w=_interopRequireDefault(u(85315)),k=_interopRequireDefault(u(9527)),x=_interopRequireDefault(u(94942)),E=_interopRequireDefault(u(46593)),I=_interopRequireDefault(u(36803)),K=_interopRequireDefault(u(52367)),J=_interopRequireDefault(u(63239)),ie=_interopRequireDefault(u(72e3)),oe=_interopRequireDefault(u(85105)),se=_interopRequireDefault(u(99663)),ae=_interopRequireDefault(u(22600)),ue=_interopRequireDefault(u(49135)),le=_interopRequireDefault(u(93196)),de=_interopRequireDefault(u(448)),pe=_interopRequireDefault(u(32242)),he=_interopRequireDefault(u(72444)),ge=_interopRequireDefault(u(8177));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}var __decorate=function(r,c,u,p){var y,w=arguments.length,k=w<3?c:null===p?p=(0,ge.default)(c,u):p;if("object"===("undefined"==typeof Reflect?"undefined":(0,he.default)(Reflect))&&"function"==typeof Reflect.decorate)k=Reflect.decorate(r,c,u,p);else for(var x=r.length-1;x>=0;x--)(y=r[x])&&(k=(w<3?y(k):w>3?y(c,u,k):y(c,u))||k);return w>3&&k&&(0,pe.default)(c,u,k),k},__metadata=function(r,c){if("object"===("undefined"==typeof Reflect?"undefined":(0,he.default)(Reflect))&&"function"==typeof de.default)return(0,de.default)(r,c)};Object.defineProperty(c,"__esModule",{value:!0}),c.Conversation=void 0;var ve=u(17187),we=u(31312),Se=u(42425),Oe=u(92141),Ie=u(37372),De=u(55218),Pe=u(50368),Le=we.Logger.scope("Conversation"),je={lastMessage:"lastMessage",attributes:"attributes",createdBy:"createdBy",dateCreated:"dateCreated",dateUpdated:"dateUpdated",friendlyName:"friendlyName",lastConsumedMessageIndex:"lastConsumedMessageIndex",notificationLevel:"notificationLevel",sid:"sid",status:"status",uniqueName:"uniqueName",state:"state"};function parseTime(r){try{return new Date(r)}catch(r){return null}}var Fe=function(r){function Conversation(r,c,u){(0,se.default)(this,Conversation);var p=(0,ue.default)(this,(Conversation.__proto__||(0,oe.default)(Conversation)).call(this)),y=c.attributes||{},w=c.createdBy,k=parseTime(c.dateCreated),x=parseTime(c.dateUpdated),E=c.friendlyName||null,I=(0,ie.default)(c.lastConsumedMessageIndex)?c.lastConsumedMessageIndex:null,ae=c.uniqueName||null;try{(0,J.default)(y)}catch(r){throw new Error("Attributes must be a valid JSON object.")}return p.services=r,p.sid=u,p.entityName=c.channel,p.channelState={uniqueName:ae,status:"notParticipating",attributes:y,createdBy:w,dateCreated:k,dateUpdated:x,friendlyName:E,lastReadMessageIndex:I},c.notificationLevel&&(p.channelState.notificationLevel=c.notificationLevel),p.participants=new K.default,p.participantsEntity=new Se.Participants(p,p.services,p.participants),p.participantsEntity.on("participantJoined",p.emit.bind(p,"participantJoined")),p.participantsEntity.on("participantLeft",p.emit.bind(p,"participantLeft")),p.participantsEntity.on("participantUpdated",(function(r){return p.emit("participantUpdated",r)})),p.messagesEntity=new Ie.Messages(p,r),p.messagesEntity.on("messageAdded",(function(r){return p._onMessageAdded(r)})),p.messagesEntity.on("messageUpdated",(function(r){return p.emit("messageUpdated",r)})),p.messagesEntity.on("messageRemoved",p.emit.bind(p,"messageRemoved")),p}var c,u,de,pe,he,ge,ve,we,Pe,Fe,Ue,$e,Ze,We,Ge,Ke,Je,Ye,Xe,Qe,et,tt,rt,nt,it;return(0,le.default)(Conversation,r),(0,ae.default)(Conversation,[{key:"_subscribe",value:function _subscribe(){var r=this;return this.entityPromise?this.entityPromise:this.entityPromise=this.entityPromise||this.services.syncClient.document({id:this.entityName,mode:"open_existing"}).then((function(c){return r.entity=c,r.entity.on("updated",(function(c){r._update(c.value)})),r.entity.on("removed",(function(){return r.emit("removed",r)})),r._update(r.entity.value),c})).catch((function(c){throw r.entity=null,r.entityPromise=null,"disconnected"!=r.services.syncClient.connectionState&&Le.error("Failed to get conversation object",c),Le.debug("ERROR: Failed to get conversation object",c),c}))}},{key:"_subscribeStreams",value:(it=(0,I.default)(x.default.mark((function _callee(){var r,c;return x.default.wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,this._subscribe();case 3:return Le.trace("_subscribeStreams, this.entity.value=",this.entity.value),r=this.entity.value.messages,c=this.entity.value.roster,u.next=8,E.default.all([this.messagesEntity.subscribe(r),this.participantsEntity.subscribe(c)]);case 8:u.next=15;break;case 10:throw u.prev=10,u.t0=u.catch(0),"disconnected"!==this.services.syncClient.connectionState&&Le.error("Failed to subscribe on conversation objects",this.sid,u.t0),Le.debug("ERROR: Failed to subscribe on conversation objects",this.sid,u.t0),u.t0;case 15:case"end":return u.stop()}}),_callee,this,[[0,10]])}))),function _subscribeStreams(){return it.apply(this,arguments)})},{key:"_unsubscribe",value:(nt=(0,I.default)(x.default.mark((function _callee2(){return x.default.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:if(!this.entity){r.next=5;break}return r.next=3,this.entity.close();case 3:this.entity=null,this.entityPromise=null;case 5:return r.abrupt("return",E.default.all([this.participantsEntity.unsubscribe(),this.messagesEntity.unsubscribe()]));case 6:case"end":return r.stop()}}),_callee2,this)}))),function _unsubscribe(){return nt.apply(this,arguments)})},{key:"_setStatus",value:function _setStatus(r,c){var u=this;this.statusSource=c,this.channelState.status!==r&&(this.channelState.status=r,"joined"===r?this._subscribeStreams().catch((function(c){if(Le.debug("ERROR while setting conversation status "+r,c),"disconnected"!==u.services.syncClient.connectionState)throw c})):this.entityPromise&&this._unsubscribe().catch((function(c){if(Le.debug("ERROR while setting conversation status "+r,c),"disconnected"!==u.services.syncClient.connectionState)throw c})))}},{key:"_statusSource",value:function _statusSource(){return this.statusSource}},{key:"_update",value:function _update(r){var c,u,x,E,I;Le.trace("_update",r),Conversation.preprocessUpdate(r,this.sid);var K=new k.default,J=!0,ie=!1,oe=void 0;try{for(var se,ae=(0,y.default)((0,p.default)(r));!(J=(se=ae.next()).done);J=!0){var ue=se.value,le=je[ue];if(le)switch(le){case je.status:if(!r.status||"unknown"===r.status||this.channelState.status===r.status)break;this.channelState.status=r.status,K.add(le);break;case je.attributes:if(De.isDeepEqual(this.channelState.attributes,r.attributes))break;this.channelState.attributes=r.attributes,K.add(le);break;case je.lastConsumedMessageIndex:if(void 0===r.lastConsumedMessageIndex||r.lastConsumedMessageIndex===this.channelState.lastReadMessageIndex)break;this.channelState.lastReadMessageIndex=r.lastConsumedMessageIndex,K.add("lastReadMessageIndex");break;case je.lastMessage:if(this.channelState.lastMessage&&!r.lastMessage){delete this.channelState.lastMessage,K.add(le);break}this.channelState.lastMessage=this.channelState.lastMessage||{},void 0!==(null===(c=r.lastMessage)||void 0===c?void 0:c.index)&&r.lastMessage.index!==this.channelState.lastMessage.index&&(this.channelState.lastMessage.index=r.lastMessage.index,K.add(le)),void 0!==(null===(u=r.lastMessage)||void 0===u?void 0:u.timestamp)&&(null===(E=null===(x=this.channelState.lastMessage)||void 0===x?void 0:x.dateCreated)||void 0===E?void 0:E.getTime())!==r.lastMessage.timestamp.getTime()&&(this.channelState.lastMessage.dateCreated=r.lastMessage.timestamp,K.add(le)),De.isDeepEqual(this.channelState.lastMessage,{})&&delete this.channelState.lastMessage;break;case je.state:var de=r.state||void 0;if(void 0!==de&&(de.dateUpdated=new Date(de.dateUpdated)),De.isDeepEqual(this.channelState.state,de))break;this.channelState.state=de,K.add(le);break;default:var pe=r[ue]instanceof Date,he=pe&&(null===(I=this.channelState[le])||void 0===I?void 0:I.getTime())===r[ue].getTime(),ge=!pe&&this[le]===r[ue];if(he||ge)break;this.channelState[le]=r[ue],K.add(le)}}}catch(r){ie=!0,oe=r}finally{try{!J&&ae.return&&ae.return()}finally{if(ie)throw oe}}K.size>0&&this.emit("updated",{conversation:this,updateReasons:[].concat((0,w.default)(K))})}},{key:"_onMessageAdded",value:function _onMessageAdded(r){var c=!0,u=!1,p=void 0;try{for(var w,k=(0,y.default)(this.participants.values());!(c=(w=k.next()).done);c=!0){var x=w.value;if(x.identity===r.author){x._endTyping();break}}}catch(r){u=!0,p=r}finally{try{!c&&k.return&&k.return()}finally{if(u)throw p}}this.emit("messageAdded",r)}},{key:"add",value:(rt=(0,I.default)(x.default.mark((function _callee3(r,c){return x.default.wrap((function _callee3$(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",this.participantsEntity.add(r,c));case 1:case"end":return u.stop()}}),_callee3,this)}))),function add(r,c){return rt.apply(this,arguments)})},{key:"addNonChatParticipant",value:(tt=(0,I.default)(x.default.mark((function _callee4(r,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return x.default.wrap((function _callee4$(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",this.participantsEntity.addNonChatParticipant(r,c,u));case 1:case"end":return p.stop()}}),_callee4,this)}))),function addNonChatParticipant(r,c){return tt.apply(this,arguments)})},{key:"advanceLastReadMessageIndex",value:(et=(0,I.default)(x.default.mark((function _callee5(r){return x.default.wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this._subscribeStreams();case 2:return c.abrupt("return",this.services.readHorizon.advanceLastReadMessageIndexForConversation(this.sid,r,this.lastReadMessageIndex));case 3:case"end":return c.stop()}}),_callee5,this)}))),function advanceLastReadMessageIndex(r){return et.apply(this,arguments)})},{key:"delete",value:(Qe=(0,I.default)(x.default.mark((function _callee6(){return x.default.wrap((function _callee6$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.services.session.addCommand("destroyChannel",{channelSid:this.sid});case 2:return r.abrupt("return",this);case 3:case"end":return r.stop()}}),_callee6,this)}))),function _delete(){return Qe.apply(this,arguments)})},{key:"getAttributes",value:(Xe=(0,I.default)(x.default.mark((function _callee7(){return x.default.wrap((function _callee7$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this._subscribe();case 2:return r.abrupt("return",this.attributes);case 3:case"end":return r.stop()}}),_callee7,this)}))),function getAttributes(){return Xe.apply(this,arguments)})},{key:"getMessages",value:(Ye=(0,I.default)(x.default.mark((function _callee8(r,c,u){return x.default.wrap((function _callee8$(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this._subscribeStreams();case 2:return p.abrupt("return",this.messagesEntity.getMessages(r,c,u));case 3:case"end":return p.stop()}}),_callee8,this)}))),function getMessages(r,c,u){return Ye.apply(this,arguments)})},{key:"getParticipants",value:(Je=(0,I.default)(x.default.mark((function _callee9(){return x.default.wrap((function _callee9$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this._subscribeStreams();case 2:return r.abrupt("return",this.participantsEntity.getParticipants());case 3:case"end":return r.stop()}}),_callee9,this)}))),function getParticipants(){return Je.apply(this,arguments)})},{key:"getParticipantsCount",value:(Ke=(0,I.default)(x.default.mark((function _callee10(){var r,c,u;return x.default.wrap((function _callee10$(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.services.session.getSessionLinks();case 2:return r=p.sent,c=new De.UriBuilder(r.publicChannelsUrl).path(this.sid).build(),p.next=6,this.services.network.get(c);case 6:return u=p.sent,p.abrupt("return",u.body.members_count);case 8:case"end":return p.stop()}}),_callee10,this)}))),function getParticipantsCount(){return Ke.apply(this,arguments)})},{key:"getParticipantBySid",value:(Ge=(0,I.default)(x.default.mark((function _callee11(r){return x.default.wrap((function _callee11$(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",this.participantsEntity.getParticipantBySid(r));case 1:case"end":return c.stop()}}),_callee11,this)}))),function getParticipantBySid(r){return Ge.apply(this,arguments)})},{key:"getParticipantByIdentity",value:(We=(0,I.default)(x.default.mark((function _callee12(r){return x.default.wrap((function _callee12$(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",this.participantsEntity.getParticipantByIdentity(r));case 1:case"end":return c.stop()}}),_callee12,this)}))),function getParticipantByIdentity(r){return We.apply(this,arguments)})},{key:"getMessagesCount",value:(Ze=(0,I.default)(x.default.mark((function _callee13(){var r,c,u;return x.default.wrap((function _callee13$(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.services.session.getSessionLinks();case 2:return r=p.sent,c=new De.UriBuilder(r.publicChannelsUrl).path(this.sid).build(),p.next=6,this.services.network.get(c);case 6:return u=p.sent,p.abrupt("return",u.body.messages_count);case 8:case"end":return p.stop()}}),_callee13,this)}))),function getMessagesCount(){return Ze.apply(this,arguments)})},{key:"getUnreadMessagesCount",value:($e=(0,I.default)(x.default.mark((function _callee14(){var r,c,u;return x.default.wrap((function _callee14$(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.services.session.getSessionLinks();case 2:return r=p.sent,c=new De.UriBuilder(r.myChannelsUrl).arg("ChannelSid",this.sid).build(),p.next=6,this.services.network.get(c);case 6:if(!(u=p.sent).body.channels.length||u.body.channels[0].channel_sid!=this.sid){p.next=11;break}if(void 0===u.body.channels[0].unread_messages_count||null==u.body.channels[0].unread_messages_count){p.next=10;break}return p.abrupt("return",u.body.channels[0].unread_messages_count);case 10:return p.abrupt("return",null);case 11:throw new Error("Conversation is not in user conversations list");case 12:case"end":return p.stop()}}),_callee14,this)}))),function getUnreadMessagesCount(){return $e.apply(this,arguments)})},{key:"join",value:(Ue=(0,I.default)(x.default.mark((function _callee15(){return x.default.wrap((function _callee15$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.services.session.addCommand("joinChannelV2",{channelSid:this.sid});case 2:return r.abrupt("return",this);case 3:case"end":return r.stop()}}),_callee15,this)}))),function join(){return Ue.apply(this,arguments)})},{key:"leave",value:(Fe=(0,I.default)(x.default.mark((function _callee16(){return x.default.wrap((function _callee16$(r){for(;;)switch(r.prev=r.next){case 0:if("joined"!==this.channelState.status){r.next=3;break}return r.next=3,this.services.session.addCommand("leaveChannel",{channelSid:this.sid});case 3:return r.abrupt("return",this);case 4:case"end":return r.stop()}}),_callee16,this)}))),function leave(){return Fe.apply(this,arguments)})},{key:"removeParticipant",value:(Pe=(0,I.default)(x.default.mark((function _callee17(r){return x.default.wrap((function _callee17$(c){for(;;)switch(c.prev=c.next){case 0:if(!(r instanceof Oe.Participant)){c.next=4;break}return c.next=3,this.participantsEntity.removeBySid(r.sid);case 3:return c.abrupt("return");case 4:return c.next=6,this.participantsEntity.removeByIdentity(r);case 6:case"end":return c.stop()}}),_callee17,this)}))),function removeParticipant(r){return Pe.apply(this,arguments)})},{key:"sendMessage",value:(we=(0,I.default)(x.default.mark((function _callee18(r,c){var u,p;return x.default.wrap((function _callee18$(y){for(;;)switch(y.prev=y.next){case 0:if("string"!=typeof r&&null!==r){y.next=5;break}return y.next=3,this.messagesEntity.send(r,c);case 3:return u=y.sent,y.abrupt("return",De.parseToNumber(u.messageId));case 5:return y.next=7,this.messagesEntity.sendMedia(r,c);case 7:return p=y.sent,y.abrupt("return",De.parseToNumber(p.messageId));case 9:case"end":return y.stop()}}),_callee18,this)}))),function sendMessage(r,c){return we.apply(this,arguments)})},{key:"setAllMessagesRead",value:(ve=(0,I.default)(x.default.mark((function _callee19(){var r;return x.default.wrap((function _callee19$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this._subscribeStreams();case 2:return c.next=4,this.getMessages(1);case 4:if(!((r=c.sent).items.length>0)){c.next=7;break}return c.abrupt("return",this.advanceLastReadMessageIndex(r.items[0].index));case 7:return c.abrupt("return",E.default.resolve(0));case 8:case"end":return c.stop()}}),_callee19,this)}))),function setAllMessagesRead(){return ve.apply(this,arguments)})},{key:"setAllMessagesUnread",value:(ge=(0,I.default)(x.default.mark((function _callee20(){return x.default.wrap((function _callee20$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this._subscribeStreams();case 2:return r.abrupt("return",this.services.readHorizon.updateLastReadMessageIndexForConversation(this.sid,null));case 3:case"end":return r.stop()}}),_callee20,this)}))),function setAllMessagesUnread(){return ge.apply(this,arguments)})},{key:"setUserNotificationLevel",value:(he=(0,I.default)(x.default.mark((function _callee21(r){return x.default.wrap((function _callee21$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.services.session.addCommand("editNotificationLevel",{channelSid:this.sid,notificationLevel:r});case 2:case"end":return c.stop()}}),_callee21,this)}))),function setUserNotificationLevel(r){return he.apply(this,arguments)})},{key:"typing",value:function typing(){return this.services.typingIndicator.send(this.sid)}},{key:"updateAttributes",value:(pe=(0,I.default)(x.default.mark((function _callee22(r){return x.default.wrap((function _callee22$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.services.session.addCommand("editAttributes",{channelSid:this.sid,attributes:(0,J.default)(r)});case 2:return c.abrupt("return",this);case 3:case"end":return c.stop()}}),_callee22,this)}))),function updateAttributes(r){return pe.apply(this,arguments)})},{key:"updateFriendlyName",value:(de=(0,I.default)(x.default.mark((function _callee23(r){return x.default.wrap((function _callee23$(c){for(;;)switch(c.prev=c.next){case 0:if(this.channelState.friendlyName===r){c.next=3;break}return c.next=3,this.services.session.addCommand("editFriendlyName",{channelSid:this.sid,friendlyName:r});case 3:return c.abrupt("return",this);case 4:case"end":return c.stop()}}),_callee23,this)}))),function updateFriendlyName(r){return de.apply(this,arguments)})},{key:"updateLastReadMessageIndex",value:(u=(0,I.default)(x.default.mark((function _callee24(r){return x.default.wrap((function _callee24$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this._subscribeStreams();case 2:return c.abrupt("return",this.services.readHorizon.updateLastReadMessageIndexForConversation(this.sid,r));case 3:case"end":return c.stop()}}),_callee24,this)}))),function updateLastReadMessageIndex(r){return u.apply(this,arguments)})},{key:"updateUniqueName",value:(c=(0,I.default)(x.default.mark((function _callee25(r){return x.default.wrap((function _callee25$(c){for(;;)switch(c.prev=c.next){case 0:if(this.channelState.uniqueName===r){c.next=4;break}return r||(r=""),c.next=4,this.services.session.addCommand("editUniqueName",{channelSid:this.sid,uniqueName:r});case 4:return c.abrupt("return",this);case 5:case"end":return c.stop()}}),_callee25,this)}))),function updateUniqueName(r){return c.apply(this,arguments)})},{key:"uniqueName",get:function get(){return this.channelState.uniqueName}},{key:"status",get:function get(){return this.channelState.status}},{key:"friendlyName",get:function get(){return this.channelState.friendlyName}},{key:"dateUpdated",get:function get(){return this.channelState.dateUpdated}},{key:"dateCreated",get:function get(){return this.channelState.dateCreated}},{key:"createdBy",get:function get(){return this.channelState.createdBy}},{key:"attributes",get:function get(){return this.channelState.attributes}},{key:"lastReadMessageIndex",get:function get(){return this.channelState.lastReadMessageIndex}},{key:"lastMessage",get:function get(){return this.channelState.lastMessage}},{key:"notificationLevel",get:function get(){return this.channelState.notificationLevel}},{key:"state",get:function get(){return this.channelState.state}}],[{key:"preprocessUpdate",value:function preprocessUpdate(r,c){try{"string"==typeof r.attributes?r.attributes=JSON.parse(r.attributes):r.attributes&&(0,J.default)(r.attributes)}catch(u){Le.warn("Retrieved malformed attributes from the server for conversation: "+c),r.attributes={}}try{r.dateCreated&&(r.dateCreated=new Date(r.dateCreated))}catch(u){Le.warn("Retrieved malformed dateCreated from the server for conversation: "+c),delete r.dateCreated}try{r.dateUpdated&&(r.dateUpdated=new Date(r.dateUpdated))}catch(u){Le.warn("Retrieved malformed dateUpdated from the server for conversation: "+c),delete r.dateUpdated}try{r.lastMessage&&r.lastMessage.timestamp&&(r.lastMessage.timestamp=new Date(r.lastMessage.timestamp))}catch(u){Le.warn("Retrieved malformed lastMessage.timestamp from the server for conversation: "+c),delete r.lastMessage.timestamp}}}]),Conversation}(ve.EventEmitter);__decorate([Pe.asyncTypeCheck(Pe.nonEmptyString,["undefined","string","number","boolean","object",Pe.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",E.default)],Fe.prototype,"add",null),__decorate([Pe.asyncTypeCheck(Pe.nonEmptyString,Pe.nonEmptyString,["undefined","object"]),__metadata("design:type",Function),__metadata("design:paramtypes",[String,String,Object]),__metadata("design:returntype",E.default)],Fe.prototype,"addNonChatParticipant",null),__decorate([Pe.asyncTypeCheck(Pe.nonNegativeInteger),__metadata("design:type",Function),__metadata("design:paramtypes",[Number]),__metadata("design:returntype",E.default)],Fe.prototype,"advanceLastReadMessageIndex",null),__decorate([Pe.asyncTypeCheck(["undefined",Pe.nonNegativeInteger],["undefined",Pe.nonNegativeInteger],["undefined",Pe.literal("backwards","forward")]),__metadata("design:type",Function),__metadata("design:paramtypes",[Number,Number,String]),__metadata("design:returntype",E.default)],Fe.prototype,"getMessages",null),__decorate([Pe.asyncTypeCheck(Pe.nonEmptyString),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",E.default)],Fe.prototype,"getParticipantBySid",null),__decorate([Pe.asyncTypeCheck(Pe.nonEmptyString),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",E.default)],Fe.prototype,"getParticipantByIdentity",null),__decorate([Pe.asyncTypeCheck([Pe.nonEmptyString,Oe.Participant]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",E.default)],Fe.prototype,"removeParticipant",null),__decorate([Pe.asyncTypeCheck(["string",Pe.literal(null),Pe.custom((function(r){var c;return["FormData"===(null===(c=null==r?void 0:r.constructor)||void 0===c?void 0:c.name),"an instance of FormData"]})),Pe.custom((function(r){if("object"!==(void 0===r?"undefined":(0,he.default)(r))||null===r||Array.isArray(r))return[!1,"valid media options (should be a pure object)"];if(!("string"==typeof r.contentType&&r.contentType.length>0))return[!1,"valid media options (mediaOptions.contentType should be a non-empty string)","malformed media options (mediaOptions.contentType is "+Pe.stringifyReceivedType(r.contentType)+")"];var c="string"==typeof r.media&&r.media.length>0||r.media instanceof Uint8Array||r.media instanceof ArrayBuffer;return"function"==typeof Blob&&(c=c||r.media instanceof Blob),c?[!0]:[!1,"valid media options (mediaOptions.media should be a non-empty string, an instance of Buffer or an instance of Blob)","malformed media options (mediaOptions.media is "+Pe.stringifyReceivedType(r.media)+")"]}))],["undefined","string","number","boolean","object",Pe.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",E.default)],Fe.prototype,"sendMessage",null),__decorate([Pe.asyncTypeCheck(Pe.literal("default","muted")),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",E.default)],Fe.prototype,"setUserNotificationLevel",null),__decorate([Pe.asyncTypeCheck(["string","number","boolean","object",Pe.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",E.default)],Fe.prototype,"updateAttributes",null),__decorate([Pe.asyncTypeCheck(["string",Pe.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",E.default)],Fe.prototype,"updateFriendlyName",null),__decorate([Pe.asyncTypeCheck([Pe.literal(null),Pe.nonNegativeInteger]),__metadata("design:type",Function),__metadata("design:paramtypes",[Number]),__metadata("design:returntype",E.default)],Fe.prototype,"updateLastReadMessageIndex",null),__decorate([Pe.asyncTypeCheck(["string",Pe.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",E.default)],Fe.prototype,"updateUniqueName",null),c.Conversation=Fe},16384:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(94942)),w=_interopRequireDefault(u(63239)),k=_interopRequireDefault(u(36803)),x=_interopRequireDefault(u(9527)),E=_interopRequireDefault(u(52367)),I=_interopRequireDefault(u(85105)),K=_interopRequireDefault(u(99663)),J=_interopRequireDefault(u(22600)),ie=_interopRequireDefault(u(49135)),oe=_interopRequireDefault(u(93196));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Conversations=c.Conversation=void 0;var se=u(17187),ae=u(31312),ue=u(74280);Object.defineProperty(c,"Conversation",{enumerable:!0,get:function get(){return ue.Conversation}});var le=u(48002),de=u(55218),pe=ae.Logger.scope("Conversations"),he=function(r){function Conversations(r){(0,K.default)(this,Conversations);var c=(0,ie.default)(this,(Conversations.__proto__||(0,I.default)(Conversations)).call(this));return c.services=r,c.conversations=new E.default,c.thumbstones=new x.default,c.syncListFetched=!1,c.syncListRead=new le.Deferred,c}var c,u;return(0,oe.default)(Conversations,r),(0,J.default)(Conversations,[{key:"getMap",value:function getMap(){var r=this;return this.services.session.getMyConversationsId().then((function(c){return r.services.syncClient.map({id:c,mode:"open_existing"})}))}},{key:"addConversation",value:(u=(0,k.default)(y.default.mark((function _callee(r){var c,u,p,k,x,E;return y.default.wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:return c=void 0,c=void 0===r.attributes?{}:r.attributes,y.next=4,this.services.session.addCommand("createConversation",{friendlyName:r.friendlyName,uniqueName:r.uniqueName,attributes:(0,w.default)(c)});case 4:if(u=y.sent,p="conversationSid"in u?u.conversationSid:null,k="conversation"in u?u.conversation:null,!(x=this.conversations.get(p))){y.next=12;break}return y.next=11,x._subscribe();case 11:return y.abrupt("return",x);case 12:return E=new ue.Conversation(this.services,{channel:k,entityName:null,uniqueName:null,attributes:null,createdBy:null,friendlyName:null,lastConsumedMessageIndex:null,dateCreated:null,dateUpdated:null},p),this.conversations.set(E.sid,E),this.registerForEvents(E),y.next=17,E._subscribe();case 17:return this.emit("conversationAdded",E),y.abrupt("return",E);case 19:case"end":return y.stop()}}),_callee,this)}))),function addConversation(r){return u.apply(this,arguments)})},{key:"fetchConversations",value:function fetchConversations(){var r,c=this;this.getMap().then((r=(0,k.default)(y.default.mark((function _callee2(r){var u,w;return y.default.wrap((function _callee2$(y){for(;;)switch(y.prev=y.next){case 0:return r.on("itemAdded",(function(r){pe.debug("itemAdded: "+r.item.key),c.upsertConversation("sync",r.item.key,r.item.value)})),r.on("itemRemoved",(function(r){pe.debug("itemRemoved: "+r.key);var u=r.key;c.syncListFetched||c.thumbstones.add(u);var p=c.conversations.get(u);p&&(p&&"joined"===p.status&&(p._setStatus("notParticipating","sync"),c.emit("conversationLeft",p)),c.conversations.delete(u),c.emit("conversationRemoved",p),p.emit("removed",p))})),r.on("itemUpdated",(function(r){pe.debug("itemUpdated: "+r.item.key),c.upsertConversation("sync",r.item.key,r.item.value)})),u=[],y.next=6,c.services.syncList.getPage();case 6:(w=y.sent).items.forEach((function(r){u.push(c.upsertConversation("synclist",r.channel_sid,r))}));case 9:if(!w.hasNextPage){y.next=16;break}return y.next=12,w.nextPage();case 12:(w=y.sent).items.forEach((function(r){u.push(c.upsertConversation("synclist",r.channel_sid,r))})),y.next=9;break;case 16:return c.syncListRead.set(!0),y.abrupt("return",p.default.all(u));case 18:case"end":return y.stop()}}),_callee2,c)}))),function(c){return r.apply(this,arguments)})).then((function(){c.syncListFetched=!0,c.thumbstones.clear(),pe.debug("Conversations list fetched")})).then((function(){return c})).catch((function(r){throw"disconnected"!=c.services.syncClient.connectionState&&pe.error("Failed to get conversations list",r),pe.debug("ERROR: Failed to get conversations list",r),r}))}},{key:"_wrapPaginator",value:function _wrapPaginator(r,c){var u=this;return c(r.items).then((function(p){return{items:p,hasNextPage:r.hasNextPage,hasPrevPage:r.hasPrevPage,nextPage:function nextPage(){return r.nextPage().then((function(r){return u._wrapPaginator(r,c)}))},prevPage:function prevPage(){return r.prevPage().then((function(r){return u._wrapPaginator(r,c)}))}}}))}},{key:"getConversations",value:function getConversations(r){var c=this;return this.getMap().then((function(c){return c.getItems(r)})).then((function(r){return c._wrapPaginator(r,(function(r){return p.default.all(r.map((function(r){return c.upsertConversation("sync",r.key,r.value)})))}))}))}},{key:"getConversation",value:function getConversation(r){var c=this;return this.getMap().then((function(c){return c.getItems({key:r})})).then((function(r){return r.items.map((function(r){return c.upsertConversation("sync",r.key,r.value)}))})).then((function(r){return r.length>0?r[0]:null}))}},{key:"getConversationByUniqueName",value:(c=(0,k.default)(y.default.mark((function _callee3(r){var c,u,p,w,k,x;return y.default.wrap((function _callee3$(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,this.services.session.getSessionLinks();case 2:return c=y.sent,u=new de.UriBuilder(c.myChannelsUrl).path(r).build(),y.next=6,this.services.network.get(u);case 6:return p=y.sent,w=p.body,k=w.channel_sid,x={entityName:null,lastConsumedMessageIndex:w.last_consumed_message_index,status:(null==w?void 0:w.status)||"unknown",friendlyName:w.friendly_name,dateUpdated:w.date_updated,dateCreated:w.date_created,uniqueName:w.unique_name,createdBy:w.created_by,attributes:w.attributes,channel:k+".channel",notificationLevel:null==w?void 0:w.notification_level,sid:k},y.abrupt("return",this.upsertConversation("sync",k,x));case 11:case"end":return y.stop()}}),_callee3,this)}))),function getConversationByUniqueName(r){return c.apply(this,arguments)})},{key:"upsertConversation",value:function upsertConversation(r,c,u){var p=this;pe.trace("upsertConversation(sid="+c+", data=",u);var y=this.conversations.get(c);if(y){if(pe.trace("upsertConversation: conversation "+c+" is known and it's status is known from source "+y._statusSource()+" and update came from source "+r,y),void 0===y._statusSource()||r===y._statusSource()||"synclist"===r&&"sync"!==y._statusSource()||"sync"===r)if("joined"===u.status&&"joined"!==y.status){y._setStatus("joined",r);var w={};void 0!==u.notificationLevel&&(w.notificationLevel=u.notificationLevel),void 0!==u.lastConsumedMessageIndex&&(w.lastConsumedMessageIndex=u.lastConsumedMessageIndex),de.isDeepEqual(w,{})||y._update(w),y._subscribe().then((function(){p.emit("conversationJoined",y)}))}else"notParticipating"===u.status&&"joined"===y.status?(y._setStatus("notParticipating",r),y._update(u),y._subscribe().then((function(){p.emit("conversationLeft",y)}))):"notParticipating"===u.status?y._subscribe():y._update(u);else pe.trace("upsertConversation: conversation is known from sync and came from chat, ignoring",{sid:c,data:u.status,conversation:y.status});return y._subscribe().then((function(){return y}))}if("chat"!==r&&"synclist"!==r||!this.thumbstones.has(c))return pe.trace("upsertConversation: creating local conversation object with sid "+c,u),y=new ue.Conversation(this.services,u,c),this.conversations.set(c,y),y._subscribe().then((function(){return p.registerForEvents(y),p.emit("conversationAdded",y),"joined"===u.status&&(y._setStatus("joined",r),p.emit("conversationJoined",y)),y}));pe.trace("upsertConversation: conversation is deleted and came again from chat, ignoring",c)}},{key:"onConversationRemoved",value:function onConversationRemoved(r){var c=this.conversations.get(r);c&&(this.conversations.delete(r),this.emit("conversationRemoved",c))}},{key:"registerForEvents",value:function registerForEvents(r){var c=this;r.on("removed",(function(){return c.onConversationRemoved(r.sid)})),r.on("updated",(function(r){return c.emit("conversationUpdated",r)})),r.on("participantJoined",this.emit.bind(this,"participantJoined")),r.on("participantLeft",this.emit.bind(this,"participantLeft")),r.on("participantUpdated",(function(r){return c.emit("participantUpdated",r)})),r.on("messageAdded",this.emit.bind(this,"messageAdded")),r.on("messageUpdated",(function(r){return c.emit("messageUpdated",r)})),r.on("messageRemoved",this.emit.bind(this,"messageRemoved")),r.on("typingStarted",this.emit.bind(this,"typingStarted")),r.on("typingEnded",this.emit.bind(this,"typingEnded"))}}]),Conversations}(se.EventEmitter);c.Conversations=he},37372:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(63239)),w=_interopRequireDefault(u(94942)),k=_interopRequireDefault(u(36803)),x=_interopRequireDefault(u(52367)),E=_interopRequireDefault(u(85105)),I=_interopRequireDefault(u(99663)),K=_interopRequireDefault(u(22600)),J=_interopRequireDefault(u(49135)),ie=_interopRequireDefault(u(93196));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Messages=void 0;var oe=u(17187),se=u(31312),ae=u(34939),ue=se.Logger.scope("Messages"),le=function(r){function Messages(r,c){(0,I.default)(this,Messages);var u=(0,J.default)(this,(Messages.__proto__||(0,E.default)(Messages)).call(this));return u.conversation=r,u.services=c,u.messagesByIndex=new x.default,u.messagesListPromise=null,u}var c,u,oe;return(0,ie.default)(Messages,r),(0,K.default)(Messages,[{key:"subscribe",value:function subscribe(r){var c=this;return this.messagesListPromise=this.messagesListPromise||this.services.syncClient.list({id:r,mode:"open_existing"}).then((function(r){return r.on("itemAdded",(function(r){ue.debug(c.conversation.sid+" itemAdded: "+r.item.index);var u=new ae.Message(c.conversation,c.services,r.item.index,r.item.value);c.messagesByIndex.has(u.index)?ue.debug("Message arrived, but already known and ignored",c.conversation.sid,u.index):(c.messagesByIndex.set(u.index,u),u.on("updated",(function(r){return c.emit("messageUpdated",r)})),c.emit("messageAdded",u))})),r.on("itemRemoved",(function(r){ue.debug(c.conversation.sid+" itemRemoved: "+r.index);var u=r.index;if(c.messagesByIndex.has(u)){var p=c.messagesByIndex.get(u);c.messagesByIndex.delete(p.index),p.removeAllListeners("updated"),c.emit("messageRemoved",p)}})),r.on("itemUpdated",(function(r){ue.debug(c.conversation.sid+" itemUpdated: "+r.item.index);var u=c.messagesByIndex.get(r.item.index);u&&u._update(r.item.value)})),r})).catch((function(r){throw c.messagesListPromise=null,"disconnected"!=c.services.syncClient.connectionState&&ue.error("Failed to get messages object for conversation",c.conversation.sid,r),ue.debug("ERROR: Failed to get messages object for conversation",c.conversation.sid,r),r}))}},{key:"unsubscribe",value:(oe=(0,k.default)(w.default.mark((function _callee(){return w.default.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:if(!this.messagesListPromise){r.next=6;break}return r.next=3,this.messagesListPromise;case 3:r.sent.close(),this.messagesListPromise=null;case 6:case"end":return r.stop()}}),_callee,this)}))),function unsubscribe(){return oe.apply(this,arguments)})},{key:"send",value:(u=(0,k.default)(w.default.mark((function _callee2(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w.default.wrap((function _callee2$(u){for(;;)switch(u.prev=u.next){case 0:return ue.debug("Sending text message",r,c),u.abrupt("return",this.services.session.addCommand("sendMessage",{channelSid:this.conversation.sid,text:r,attributes:(0,y.default)(c)}));case 2:case"end":return u.stop()}}),_callee2,this)}))),function send(r){return u.apply(this,arguments)})},{key:"sendMedia",value:(c=(0,k.default)(w.default.mark((function _callee3(r){var c,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w.default.wrap((function _callee3$(w){for(;;)switch(w.prev=w.next){case 0:if(ue.debug("Sending media message",r,p),c=void 0,!("undefined"!=typeof FormData&&r instanceof FormData)){w.next=9;break}return ue.debug("Sending media message as FormData",r,p),w.next=6,this.services.mcsClient.postFormData(r);case 6:c=w.sent,w.next=16;break;case 9:if(ue.debug("Sending media message as SendMediaOptions",r,p),(u=r).contentType&&u.media){w.next=13;break}throw new Error("Media content <Conversation#SendMediaOptions> must contain non-empty contentType and media");case 13:return w.next=15,this.services.mcsClient.post(u.contentType,u.media);case 15:c=w.sent;case 16:return w.abrupt("return",this.services.session.addCommand("sendMediaMessage",{channelSid:this.conversation.sid,mediaSid:c.sid,attributes:(0,y.default)(p)}));case 17:case"end":return w.stop()}}),_callee3,this)}))),function sendMedia(r){return c.apply(this,arguments)})},{key:"getMessages",value:function getMessages(r,c,u){return c=void 0!==c?c:"end",u=u||"backwards",this._getMessages(r,c,u)}},{key:"wrapPaginator",value:function wrapPaginator(r,c,u){var p=this,y="desc"===r,w=function np(){return c.nextPage().then((function(c){return p.wrapPaginator(r,c,u)}))},k=function pp(){return c.prevPage().then((function(c){return p.wrapPaginator(r,c,u)}))};return u(c.items).then((function(r){return{items:r.sort((function(r,c){return r.index-c.index})),hasPrevPage:y?c.hasNextPage:c.hasPrevPage,hasNextPage:y?c.hasPrevPage:c.hasNextPage,prevPage:y?w:k,nextPage:y?k:w}}))}},{key:"_upsertMessage",value:function _upsertMessage(r,c){var u=this,p=this.messagesByIndex.get(r);if(p)return p;var y=new ae.Message(this.conversation,this.services,r,c);return this.messagesByIndex.set(y.index,y),y.on("updated",(function(r){return u.emit("messageUpdated",r)})),y}},{key:"_getMessages",value:function _getMessages(r,c,u){var y=this;c=void 0!==c?c:"end",r=r||30;var w="backwards"===u?"desc":"asc";return this.messagesListPromise.then((function(u){return u.getItems({from:"end"!==c?c:void 0,pageSize:r,order:w})})).then((function(r){return y.wrapPaginator(w,r,(function(r){return p.default.all(r.map((function(r){return y._upsertMessage(r.index,r.value)})))}))}))}}]),Messages}(oe.EventEmitter);c.Messages=le},42425:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(63239)),y=_interopRequireDefault(u(46593)),w=_interopRequireDefault(u(94942)),k=_interopRequireDefault(u(36803)),x=_interopRequireDefault(u(85105)),E=_interopRequireDefault(u(99663)),I=_interopRequireDefault(u(22600)),K=_interopRequireDefault(u(49135)),J=_interopRequireDefault(u(93196));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Participants=void 0;var ie=u(17187),oe=u(92141),se=u(31312).Logger.scope("Participants"),ae=function(r){function Participants(r,c,u){(0,E.default)(this,Participants);var p=(0,K.default)(this,(Participants.__proto__||(0,x.default)(Participants)).call(this));return p.services=c,p.conversation=r,p.participants=u,p}var c,u,ie,ae;return(0,J.default)(Participants,r),(0,I.default)(Participants,[{key:"unsubscribe",value:(ae=(0,k.default)(w.default.mark((function _callee(){return w.default.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:if(!this.rosterEntityPromise){r.next=6;break}return r.next=3,this.rosterEntityPromise;case 3:r.sent.close(),this.rosterEntityPromise=null;case 6:case"end":return r.stop()}}),_callee,this)}))),function unsubscribe(){return ae.apply(this,arguments)})},{key:"subscribe",value:function subscribe(r){var c=this;return this.rosterEntityPromise=this.rosterEntityPromise||this.services.syncClient.map({id:r,mode:"open_existing"}).then((function(r){r.on("itemAdded",(function(r){se.debug(c.conversation.sid+" itemAdded: "+r.item.key),c.upsertParticipant(r.item.key,r.item.value).then((function(r){c.emit("participantJoined",r)}))})),r.on("itemRemoved",(function(r){se.debug(c.conversation.sid+" itemRemoved: "+r.key);var u=r.key;if(c.participants.has(u)){var p=c.participants.get(u);c.participants.delete(u),c.emit("participantLeft",p)}})),r.on("itemUpdated",(function(r){se.debug(c.conversation.sid+" itemUpdated: "+r.item.key),c.upsertParticipant(r.item.key,r.item.value)}));var u=[],p=c;return r.getItems().then((function rosterMapHandler(r){return r.items.forEach((function(r){u.push(p.upsertParticipant(r.key,r.value))})),r.hasNextPage?r.nextPage().then(rosterMapHandler):null})).then((function(){return y.default.all(u)})).then((function(){return r}))})).catch((function(r){throw c.rosterEntityPromise=null,"disconnected"!=c.services.syncClient.connectionState&&se.error("Failed to get roster object for conversation",c.conversation.sid,r),se.debug("ERROR: Failed to get roster object for conversation",c.conversation.sid,r),r}))}},{key:"upsertParticipant",value:(ie=(0,k.default)(w.default.mark((function _callee2(r,c){var u,p=this;return w.default.wrap((function _callee2$(y){for(;;)switch(y.prev=y.next){case 0:if(!(u=this.participants.get(r))){y.next=3;break}return y.abrupt("return",u._update(c));case 3:return u=new oe.Participant(this.services,this.conversation,c,r),this.participants.set(r,u),u.on("updated",(function(r){return p.emit("participantUpdated",r)})),y.abrupt("return",u);case 7:case"end":return y.stop()}}),_callee2,this)}))),function upsertParticipant(r,c){return ie.apply(this,arguments)})},{key:"getParticipants",value:function getParticipants(){var r=this;return this.rosterEntityPromise.then((function(){var c=[];return r.participants.forEach((function(r){return c.push(r)})),c}))}},{key:"getParticipantBySid",value:(u=(0,k.default)(w.default.mark((function _callee3(r){var c=this;return w.default.wrap((function _callee3$(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",this.rosterEntityPromise.then((function(){var u=c.participants.get(r);if(!u)throw new Error("Participant with SID "+r+" was not found");return u})));case 1:case"end":return u.stop()}}),_callee3,this)}))),function getParticipantBySid(r){return u.apply(this,arguments)})},{key:"getParticipantByIdentity",value:(c=(0,k.default)(w.default.mark((function _callee4(r){var c,u=this;return w.default.wrap((function _callee4$(p){for(;;)switch(p.prev=p.next){case 0:return c=null,p.abrupt("return",this.rosterEntityPromise.then((function(){if(u.participants.forEach((function(u){u.identity===r&&(c=u)})),!c)throw new Error("Participant with identity "+r+" was not found");return c})));case 2:case"end":return p.stop()}}),_callee4,this)}))),function getParticipantByIdentity(r){return c.apply(this,arguments)})},{key:"add",value:function add(r,c){return this.services.session.addCommand("addMemberV2",{channelSid:this.conversation.sid,attributes:(0,p.default)(c),username:r})}},{key:"addNonChatParticipant",value:function addNonChatParticipant(r,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.services.session.addCommand("addNonChatParticipant",{conversationSid:this.conversation.sid,proxyAddress:r,attributes:(0,p.default)(u),address:c})}},{key:"invite",value:function invite(r){return this.services.session.addCommand("inviteMember",{channelSid:this.conversation.sid,username:r})}},{key:"removeByIdentity",value:function removeByIdentity(r){return this.services.session.addCommand("removeMember",{channelSid:this.conversation.sid,username:r})}},{key:"removeBySid",value:function removeBySid(r){return this.services.session.addCommand("removeMember",{channelSid:this.conversation.sid,memberSid:r})}}]),Participants}(ie.EventEmitter);c.Participants=ae},33780:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(94942)),y=_interopRequireDefault(u(36803)),w=_interopRequireDefault(u(52367)),k=_interopRequireDefault(u(85105)),x=_interopRequireDefault(u(99663)),E=_interopRequireDefault(u(22600)),I=_interopRequireDefault(u(49135)),K=_interopRequireDefault(u(93196));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Users=void 0;var J=u(17187),ie=u(8992),oe=u(55218),se=function(r){function Users(r){(0,x.default)(this,Users);var c=(0,I.default)(this,(Users.__proto__||(0,k.default)(Users)).call(this));return c.services=r,c.fifoStack=[],c.fifoStackMaxLength=100,c.myself=new ie.User(null,null,c.services),c.myself.on("updated",(function(r){return c.emit("userUpdated",r)})),c.myself.on("userSubscribed",(function(){return c.emit("userSubscribed",c.myself)})),c.myself.on("userUnsubscribed",(function(){c.emit("userUnsubscribed",c.myself),c.myself._ensureFetched()})),c.services=r,c.subscribedUsers=new w.default,c.userUrlPromise=c.services.session.getSessionLinks().then((function(r){return c.userUrl=r.usersUrl,c.userUrl})),c.services.session.getMaxUserInfosToSubscribe().then((function(r){c.fifoStackMaxLength=r})),c.services.session.getUsersData().then((function(r){return c.myself.identity=r.identity,c.myself.entityName=r.user,c.myself._ensureFetched()})),c}var c,u,J;return(0,K.default)(Users,r),(0,E.default)(Users,[{key:"handleUnsubscribeUser",value:function handleUnsubscribeUser(r){this.subscribedUsers.has(r.identity)&&this.subscribedUsers.delete(r.identity);var c=-1;this.fifoStack.find((function(u,p){return u==r.identity&&(c=p,!0)}))&&this.fifoStack.splice(c,1),this.emit("userUnsubscribed",r)}},{key:"handleSubscribeUser",value:function handleSubscribeUser(r){this.subscribedUsers.has(r.identity)||(this.fifoStack.length>=this.fifoStackMaxLength&&this.subscribedUsers.get(this.fifoStack.shift()).unsubscribe(),this.fifoStack.push(r.identity),this.subscribedUsers.set(r.identity,r),this.emit("userSubscribed",r))}},{key:"getUser",value:(J=(0,y.default)(p.default.mark((function _callee(r){var c,u=this,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return p.default.wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.services.session.getUsersData();case 2:return p.next=4,this.myself._ensureFetched();case 4:if(r!=this.myself.identity){p.next=6;break}return p.abrupt("return",this.myself);case 6:if(c=this.subscribedUsers.get(r)){p.next=18;break}if(y){p.next=12;break}return p.next=11,this.getSyncUniqueName(r);case 11:y=p.sent;case 12:return(c=new ie.User(r,y,this.services)).on("updated",(function(r){return u.emit("userUpdated",r)})),c.on("userSubscribed",(function(){return u.handleSubscribeUser(c)})),c.on("userUnsubscribed",(function(){return u.handleUnsubscribeUser(c)})),p.next=18,c._ensureFetched();case 18:return p.abrupt("return",c);case 19:case"end":return p.stop()}}),_callee,this)}))),function getUser(r){return J.apply(this,arguments)})},{key:"getSubscribedUsers",value:(u=(0,y.default)(p.default.mark((function _callee2(){var r;return p.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.services.session.getUsersData();case 2:return c.next=4,this.myself._ensureFetched();case 4:return r=[this.myself],this.subscribedUsers.forEach((function(c){return r.push(c)})),c.abrupt("return",r);case 7:case"end":return c.stop()}}),_callee2,this)}))),function getSubscribedUsers(){return u.apply(this,arguments)})},{key:"getSyncUniqueName",value:(c=(0,y.default)(p.default.mark((function _callee3(r){var c,u;return p.default.wrap((function _callee3$(p){for(;;)switch(p.prev=p.next){case 0:return c=new oe.UriBuilder(this.userUrl).path(r).build(),p.next=3,this.services.network.get(c);case 3:return u=p.sent,p.abrupt("return",u.body.sync_unique_name);case 5:case"end":return p.stop()}}),_callee3,this)}))),function getSyncUniqueName(r){return c.apply(this,arguments)})}]),Users}(J.EventEmitter);c.Users=se},40177:(r,c,u)=>{"use strict";var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(99663));Object.defineProperty(c,"__esModule",{value:!0}),c.DetailedDeliveryReceipt=void 0;c.DetailedDeliveryReceipt=function DetailedDeliveryReceipt(r){(0,p.default)(this,DetailedDeliveryReceipt),this.sid=r.sid,this.messageSid=r.message_sid,this.conversationSid=r.conversation_sid,this.channelMessageSid=r.channel_message_sid,this.participantSid=r.participant_sid,this.status=r.status||"queued",this.errorCode=r.error_code||0,this.dateCreated=r.date_created,this.dateUpdated=r.date_updated}},85346:(r,c,u)=>{"use strict";var p=u(23129);r.exports=p},53547:(r,c,u)=>{"use strict";var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(99663));Object.defineProperty(c,"__esModule",{value:!0}),c.NotificationTypes=void 0;var y=function NotificationTypes(){(0,p.default)(this,NotificationTypes)};c.NotificationTypes=y,y.TYPING_INDICATOR="twilio.ipmsg.typing_indicator",y.NEW_MESSAGE="twilio.conversations.new_message",y.ADDED_TO_CONVERSATION="twilio.conversations.added_to_conversation",y.REMOVED_FROM_CONVERSATION="twilio.conversations.removed_from_conversation",y.CONSUMPTION_UPDATE="twilio.channel.consumption_update"},95038:(r,c,u)=>{"use strict";var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(99663));Object.defineProperty(c,"__esModule",{value:!0}),c.ResponseCodes=void 0;var y=function ResponseCodes(){(0,p.default)(this,ResponseCodes)};c.ResponseCodes=y,y.HTTP_200_OK=200,y.HTTP_400_BAD_REQUEST=400,y.HTTP_404_NOT_FOUND=404,y.ACCESS_FORBIDDEN_FOR_IDENTITY=54007,y.LIST_NOT_FOUND=54150},31312:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(99663)),y=_interopRequireDefault(u(22600)),w=_interopRequireDefault(u(24043));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function prepareLine(r,c){return[(new Date).toISOString()+" Chat "+r+":"].concat((0,w.default)(c))}Object.defineProperty(c,"__esModule",{value:!0}),c.Logger=void 0;var k=u(2043).getLogger("twilio-chat"),x=function(){function Logger(r){(0,p.default)(this,Logger),this.prefix="",this.prefix=null!=r&&r.length>0?r+" ":""}return(0,y.default)(Logger,[{key:"setLevel",value:function setLevel(r){k.setLevel(r)}},{key:"trace",value:function trace(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.trace.apply(null,prepareLine(this.prefix+"T",c))}},{key:"debug",value:function debug(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.debug.apply(null,prepareLine(this.prefix+"D",c))}},{key:"info",value:function info(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.info.apply(null,prepareLine(this.prefix+"I",c))}},{key:"warn",value:function warn(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.warn.apply(null,prepareLine(this.prefix+"W",c))}},{key:"error",value:function error(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.error.apply(null,prepareLine(this.prefix+"E",c))}}],[{key:"scope",value:function scope(r){return new Logger(r)}},{key:"setLevel",value:function setLevel(r){k.setLevel(r)}},{key:"trace",value:function trace(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.trace.apply(null,prepareLine("T",c))}},{key:"debug",value:function debug(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.debug.apply(null,prepareLine("D",c))}},{key:"info",value:function info(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.info.apply(null,prepareLine("I",c))}},{key:"warn",value:function warn(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.warn.apply(null,prepareLine("W",c))}},{key:"error",value:function error(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];k.error.apply(null,prepareLine("E",c))}}]),Logger}();c.Logger=x},71031:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(94942)),y=_interopRequireDefault(u(36803)),w=_interopRequireDefault(u(99663)),k=_interopRequireDefault(u(22600));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Media=void 0;var x=function(){function Media(r,c){(0,w.default)(this,Media),this.mcsMedia=null,this.services=c,this.state={sid:r.sid,filename:r.filename,contentType:r.contentType,size:r.size}}var r;return(0,k.default)(Media,[{key:"getContentTemporaryUrl",value:(r=(0,y.default)(p.default.mark((function _callee(){return p.default.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:if(this.mcsMedia){r.next=8;break}if(!this.services.mcsClient){r.next=7;break}return r.next=4,this.services.mcsClient.get(this.state.sid);case 4:this.mcsMedia=r.sent,r.next=8;break;case 7:throw new Error("Media Content Service is unavailable");case 8:return r.abrupt("return",this.mcsMedia.getContentUrl());case 9:case"end":return r.stop()}}),_callee,this)}))),function getContentTemporaryUrl(){return r.apply(this,arguments)})},{key:"sid",get:function get(){return this.state.sid}},{key:"filename",get:function get(){return this.state.filename}},{key:"contentType",get:function get(){return this.state.contentType}},{key:"size",get:function get(){return this.state.size}}]),Media}();c.Media=x},34939:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(63239)),w=_interopRequireDefault(u(85315)),k=_interopRequireDefault(u(94942)),x=_interopRequireDefault(u(36803)),E=_interopRequireDefault(u(85105)),I=_interopRequireDefault(u(99663)),K=_interopRequireDefault(u(22600)),J=_interopRequireDefault(u(49135)),ie=_interopRequireDefault(u(93196)),oe=_interopRequireDefault(u(448)),se=_interopRequireDefault(u(32242)),ae=_interopRequireDefault(u(72444)),ue=_interopRequireDefault(u(8177));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}var __decorate=function(r,c,u,p){var y,w=arguments.length,k=w<3?c:null===p?p=(0,ue.default)(c,u):p;if("object"===("undefined"==typeof Reflect?"undefined":(0,ae.default)(Reflect))&&"function"==typeof Reflect.decorate)k=Reflect.decorate(r,c,u,p);else for(var x=r.length-1;x>=0;x--)(y=r[x])&&(k=(w<3?y(k):w>3?y(c,u,k):y(c,u))||k);return w>3&&k&&(0,se.default)(c,u,k),k},__metadata=function(r,c){if("object"===("undefined"==typeof Reflect?"undefined":(0,ae.default)(Reflect))&&"function"==typeof oe.default)return(0,oe.default)(r,c)};Object.defineProperty(c,"__esModule",{value:!0}),c.Message=void 0;var le=u(17187),de=u(55218),pe=u(31312),he=u(71031),ge=u(19222),ve=u(50368),we=u(61616),Se=u(40177),Oe=pe.Logger.scope("Message"),Ie=function(r){function Message(r,c,u,p){(0,I.default)(this,Message);var y=(0,J.default)(this,(Message.__proto__||(0,E.default)(Message)).call(this));return y.conversation=r,y.services=c,y.state={sid:p.sid,index:u,author:null==p.author?null:p.author,body:p.text,timestamp:p.timestamp?new Date(p.timestamp):null,dateUpdated:p.dateUpdated?new Date(p.dateUpdated):null,lastUpdatedBy:p.lastUpdatedBy?p.lastUpdatedBy:null,attributes:de.parseAttributes(p.attributes,"Got malformed attributes for the message "+p.sid,Oe),type:p.type?p.type:"text",media:p.type&&"media"===p.type&&p.media?new he.Media(p.media,y.services):null,participantSid:null==p.memberSid?null:p.memberSid,aggregatedDeliveryReceipt:p.delivery?new ge.AggregatedDeliveryReceipt(p.delivery):null},y}var c,u,p,oe,se,ae;return(0,ie.default)(Message,r),(0,K.default)(Message,[{key:"_update",value:function _update(r){var c=[];!r.text&&"string"!=typeof r.text||r.text===this.state.body||(this.state.body=r.text,c.push("body")),r.lastUpdatedBy&&r.lastUpdatedBy!==this.state.lastUpdatedBy&&(this.state.lastUpdatedBy=r.lastUpdatedBy,c.push("lastUpdatedBy")),r.author&&r.author!==this.state.author&&(this.state.author=r.author,c.push("author")),r.dateUpdated&&new Date(r.dateUpdated).getTime()!==(this.state.dateUpdated&&this.state.dateUpdated.getTime())&&(this.state.dateUpdated=new Date(r.dateUpdated),c.push("dateUpdated")),r.timestamp&&new Date(r.timestamp).getTime()!==(this.state.timestamp&&this.state.timestamp.getTime())&&(this.state.timestamp=new Date(r.timestamp),c.push("dateCreated"));var u=de.parseAttributes(r.attributes,"Got malformed attributes for the message "+this.sid,Oe);de.isDeepEqual(this.state.attributes,u)||(this.state.attributes=u,c.push("attributes"));var p=r.delivery,y=this.state.aggregatedDeliveryReceipt;!!(p&&p.total&&p.delivered&&p.failed&&p.read&&p.sent&&p.undelivered)&&(y?y._isEquals(p)||(y._update(p),c.push("deliveryReceipt")):(this.state.aggregatedDeliveryReceipt=new ge.AggregatedDeliveryReceipt(p),c.push("deliveryReceipt"))),c.length>0&&this.emit("updated",{message:this,updateReasons:c})}},{key:"getParticipant",value:(ae=(0,x.default)(k.default.mark((function _callee(){var r,c,u=this;return k.default.wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:if(r=null,!this.state.participantSid){p.next=5;break}return p.next=4,this.conversation.getParticipantBySid(this.participantSid).catch((function(){return Oe.debug('Participant with sid "'+u.participantSid+'" not found for message '+u.sid),null}));case 4:r=p.sent;case 5:if(r||!this.state.author){p.next=9;break}return p.next=8,this.conversation.getParticipantByIdentity(this.state.author).catch((function(){return Oe.debug('Participant with identity "'+u.author+'" not found for message '+u.sid),null}));case 8:r=p.sent;case 9:if(!r){p.next=11;break}return p.abrupt("return",r);case 11:throw c="Participant with ",this.state.participantSid&&(c+="SID '"+this.state.participantSid+"' "),this.state.author&&(this.state.participantSid&&(c+="or "),c+="identity '"+this.state.author+"' "),"Participant with "===c&&(c="Participant "),c+="was not found",new Error(c);case 17:case"end":return p.stop()}}),_callee,this)}))),function getParticipant(){return ae.apply(this,arguments)})},{key:"getDetailedDeliveryReceipts",value:(se=(0,x.default)(k.default.mark((function _callee2(){var r,c;return k.default.wrap((function _callee2$(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,this._getDetailedDeliveryReceiptsPaginator();case 2:r=u.sent,c=[];case 4:if(c=[].concat((0,w.default)(c),(0,w.default)(r.items)),r.hasNextPage){u.next=8;break}return u.abrupt("break",13);case 8:return u.next=10,r.nextPage();case 10:r=u.sent,u.next=4;break;case 13:return u.abrupt("return",c);case 14:case"end":return u.stop()}}),_callee2,this)}))),function getDetailedDeliveryReceipts(){return se.apply(this,arguments)})},{key:"remove",value:(oe=(0,x.default)(k.default.mark((function _callee3(){return k.default.wrap((function _callee3$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.services.session.addCommand("deleteMessage",{channelSid:this.conversation.sid,messageIdx:this.index.toString()});case 2:return r.abrupt("return",this);case 3:case"end":return r.stop()}}),_callee3,this)}))),function remove(){return oe.apply(this,arguments)})},{key:"updateBody",value:(p=(0,x.default)(k.default.mark((function _callee4(r){return k.default.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.services.session.addCommand("editMessage",{channelSid:this.conversation.sid,messageIdx:this.index.toString(),text:r});case 2:return c.abrupt("return",this);case 3:case"end":return c.stop()}}),_callee4,this)}))),function updateBody(r){return p.apply(this,arguments)})},{key:"updateAttributes",value:(u=(0,x.default)(k.default.mark((function _callee5(r){return k.default.wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.services.session.addCommand("editMessageAttributes",{channelSid:this.conversation.sid,messageIdx:this.index,attributes:(0,y.default)(r)});case 2:return c.abrupt("return",this);case 3:case"end":return c.stop()}}),_callee5,this)}))),function updateAttributes(r){return u.apply(this,arguments)})},{key:"_getDetailedDeliveryReceiptsPaginator",value:(c=(0,x.default)(k.default.mark((function _callee6(r){var c,u,p,y,w=this;return k.default.wrap((function _callee6$(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,this.services.session.getSessionLinks();case 2:return c=k.sent,u=c.messagesReceiptsUrl.replace("%s",this.conversation.sid).replace("%s",this.sid),p=new de.UriBuilder(u).arg("PageToken",null==r?void 0:r.pageToken).arg("PageSize",null==r?void 0:r.pageSize).build(),k.next=7,this.services.network.get(p);case 7:return y=k.sent,k.abrupt("return",new we.RestPaginator(y.body.delivery_receipts.map((function(r){return new Se.DetailedDeliveryReceipt(r)})),(function(r,c){return w._getDetailedDeliveryReceiptsPaginator({pageToken:r,pageSize:c})}),y.body.meta.previous_token,y.body.meta.next_token));case 9:case"end":return k.stop()}}),_callee6,this)}))),function _getDetailedDeliveryReceiptsPaginator(r){return c.apply(this,arguments)})},{key:"sid",get:function get(){return this.state.sid}},{key:"author",get:function get(){return this.state.author}},{key:"body",get:function get(){return"media"===this.type?null:this.state.body}},{key:"dateUpdated",get:function get(){return this.state.dateUpdated}},{key:"index",get:function get(){return this.state.index}},{key:"lastUpdatedBy",get:function get(){return this.state.lastUpdatedBy}},{key:"dateCreated",get:function get(){return this.state.timestamp}},{key:"attributes",get:function get(){return this.state.attributes}},{key:"type",get:function get(){return this.state.type}},{key:"media",get:function get(){return this.state.media}},{key:"participantSid",get:function get(){return this.state.participantSid}},{key:"aggregatedDeliveryReceipt",get:function get(){return this.state.aggregatedDeliveryReceipt}}]),Message}(le.EventEmitter);__decorate([ve.asyncTypeCheck("string"),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",p.default)],Ie.prototype,"updateBody",null),__decorate([ve.asyncTypeCheck(["string","number","boolean","object",ve.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",p.default)],Ie.prototype,"updateAttributes",null),c.Message=Ie},92141:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(63239)),w=_interopRequireDefault(u(94942)),k=_interopRequireDefault(u(36803)),x=_interopRequireDefault(u(72e3)),E=_interopRequireDefault(u(85105)),I=_interopRequireDefault(u(99663)),K=_interopRequireDefault(u(22600)),J=_interopRequireDefault(u(49135)),ie=_interopRequireDefault(u(93196)),oe=_interopRequireDefault(u(448)),se=_interopRequireDefault(u(32242)),ae=_interopRequireDefault(u(72444)),ue=_interopRequireDefault(u(8177));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}var __decorate=function(r,c,u,p){var y,w=arguments.length,k=w<3?c:null===p?p=(0,ue.default)(c,u):p;if("object"===("undefined"==typeof Reflect?"undefined":(0,ae.default)(Reflect))&&"function"==typeof Reflect.decorate)k=Reflect.decorate(r,c,u,p);else for(var x=r.length-1;x>=0;x--)(y=r[x])&&(k=(w<3?y(k):w>3?y(c,u,k):y(c,u))||k);return w>3&&k&&(0,se.default)(c,u,k),k},__metadata=function(r,c){if("object"===("undefined"==typeof Reflect?"undefined":(0,ae.default)(Reflect))&&"function"==typeof oe.default)return(0,oe.default)(r,c)};Object.defineProperty(c,"__esModule",{value:!0}),c.Participant=void 0;var le=u(17187),de=u(55218),pe=u(31312),he=u(50368),ge=pe.Logger.scope("Participant"),ve=function(r){function Participant(r,c,u,p){(0,I.default)(this,Participant);var y=(0,J.default)(this,(Participant.__proto__||(0,E.default)(Participant)).call(this));if(y.conversation=c,y.services=r,y.state={attributes:de.parseAttributes(u.attributes,"Retrieved malformed attributes from the server for participant: "+p,ge),dateCreated:u.dateCreated?de.parseTime(u.dateCreated):null,dateUpdated:u.dateCreated?de.parseTime(u.dateUpdated):null,sid:p,typingTimeout:null,isTyping:!1,identity:u.identity||null,roleSid:u.roleSid||null,lastReadMessageIndex:(0,x.default)(u.lastConsumedMessageIndex)?u.lastConsumedMessageIndex:null,lastReadTimestamp:u.lastConsumptionTimestamp?de.parseTime(u.lastConsumptionTimestamp):null,type:u.type||"chat",userInfo:u.userInfo},!u.identity&&!u.type)throw new Error("Received invalid Participant object from server: Missing identity or type of Participant.");return y}var c,u,p;return(0,ie.default)(Participant,r),(0,K.default)(Participant,[{key:"_startTyping",value:function _startTyping(r){var c=this;return clearTimeout(this.state.typingTimeout),this.state.isTyping=!0,this.emit("typingStarted",this),this.conversation.emit("typingStarted",this),this.state.typingTimeout=setTimeout((function(){return c._endTyping()}),r),this}},{key:"_endTyping",value:function _endTyping(){this.state.typingTimeout&&(this.state.isTyping=!1,this.emit("typingEnded",this),this.conversation.emit("typingEnded",this),clearInterval(this.state.typingTimeout),this.state.typingTimeout=null)}},{key:"_update",value:function _update(r){var c=[],u=de.parseAttributes(r.attributes,"Retrieved malformed attributes from the server for participant: "+this.state.sid,ge);r.attributes&&!de.isDeepEqual(this.state.attributes,u)&&(this.state.attributes=u,c.push("attributes"));var p=de.parseTime(r.dateUpdated);r.dateUpdated&&p.getTime()!==(this.state.dateUpdated&&this.state.dateUpdated.getTime())&&(this.state.dateUpdated=p,c.push("dateUpdated"));var y=de.parseTime(r.dateCreated);if(r.dateCreated&&y.getTime()!==(this.state.dateCreated&&this.state.dateCreated.getTime())&&(this.state.dateCreated=y,c.push("dateCreated")),r.roleSid&&this.state.roleSid!==r.roleSid&&(this.state.roleSid=r.roleSid,c.push("roleSid")),!(0,x.default)(r.lastConsumedMessageIndex)&&null!==r.lastConsumedMessageIndex||this.state.lastReadMessageIndex===r.lastConsumedMessageIndex||(this.state.lastReadMessageIndex=r.lastConsumedMessageIndex,c.push("lastReadMessageIndex")),r.lastConsumptionTimestamp){var w=new Date(r.lastConsumptionTimestamp);this.state.lastReadTimestamp&&this.state.lastReadTimestamp.getTime()===w.getTime()||(this.state.lastReadTimestamp=w,c.push("lastReadTimestamp"))}return c.length>0&&this.emit("updated",{participant:this,updateReasons:c}),this}},{key:"getUser",value:(p=(0,k.default)(w.default.mark((function _callee(){return w.default.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:if("chat"==this.type){r.next=2;break}throw new Error("Getting User is not supported for this Participant type: "+this.type);case 2:return r.abrupt("return",this.services.users.getUser(this.state.identity,this.state.userInfo));case 3:case"end":return r.stop()}}),_callee,this)}))),function getUser(){return p.apply(this,arguments)})},{key:"remove",value:(u=(0,k.default)(w.default.mark((function _callee2(){return w.default.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.conversation.removeParticipant(this));case 1:case"end":return r.stop()}}),_callee2,this)}))),function remove(){return u.apply(this,arguments)})},{key:"updateAttributes",value:(c=(0,k.default)(w.default.mark((function _callee3(r){return w.default.wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.services.session.addCommand("editMemberAttributes",{channelSid:this.conversation.sid,memberSid:this.sid,attributes:(0,y.default)(r)});case 2:return c.abrupt("return",this);case 3:case"end":return c.stop()}}),_callee3,this)}))),function updateAttributes(r){return c.apply(this,arguments)})},{key:"sid",get:function get(){return this.state.sid}},{key:"attributes",get:function get(){return this.state.attributes}},{key:"dateCreated",get:function get(){return this.state.dateCreated}},{key:"dateUpdated",get:function get(){return this.state.dateUpdated}},{key:"identity",get:function get(){return this.state.identity}},{key:"isTyping",get:function get(){return this.state.isTyping}},{key:"lastReadMessageIndex",get:function get(){return this.state.lastReadMessageIndex}},{key:"lastReadTimestamp",get:function get(){return this.state.lastReadTimestamp}},{key:"roleSid",get:function get(){return this.state.roleSid}},{key:"type",get:function get(){return this.state.type}}]),Participant}(le.EventEmitter);__decorate([he.asyncTypeCheck(["string","number","boolean","object",he.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",p.default)],ve.prototype,"updateAttributes",null),c.Participant=ve},17463:(r,c,u)=>{"use strict";var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(99663));Object.defineProperty(c,"__esModule",{value:!0}),c.PushNotification=void 0;c.PushNotification=function PushNotification(r){(0,p.default)(this,PushNotification),this.title=r.title||null,this.body=r.body||null,this.sound=r.sound||null,this.badge=r.badge||null,this.action=r.action||null,this.type=r.type||null,this.data=r.data||{}}},61616:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(99663)),w=_interopRequireDefault(u(22600));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.RestPaginator=void 0;var k=function(){function RestPaginator(r,c,u,p){(0,y.default)(this,RestPaginator),this.state={prevToken:u,nextToken:p,source:c,items:r}}return(0,w.default)(RestPaginator,[{key:"nextPage",value:function nextPage(){return this.hasNextPage?this.state.source(this.state.nextToken):p.default.reject(new Error("No next page"))}},{key:"prevPage",value:function prevPage(){return this.hasPrevPage?this.state.source(this.state.prevToken):p.default.reject(new Error("No previous page"))}},{key:"hasNextPage",get:function get(){return!!this.state.nextToken}},{key:"hasPrevPage",get:function get(){return!!this.state.prevToken}},{key:"items",get:function get(){return this.state.items}}]),RestPaginator}();c.RestPaginator=k},45486:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(94942)),y=_interopRequireDefault(u(36803)),w=_interopRequireDefault(u(46593)),k=_interopRequireDefault(u(26378)),x=_interopRequireDefault(u(12424)),E=_interopRequireDefault(u(52945)),I=_interopRequireDefault(u(52367)),K=_interopRequireDefault(u(99663)),J=_interopRequireDefault(u(22600));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Network=void 0;var ie=u(89948),oe=function(){function Network(r,c){var u=this;(0,K.default)(this,Network),this.config=r,this.services=c,this.cache=new I.default,this.cacheLifetime=0,this.services.session.getHttpCacheInterval().then((function(r){u.cacheLifetime=1e3*r,u.cleanupCache()}))}var r;return(0,J.default)(Network,[{key:"backoffConfig",value:function backoffConfig(){return(0,E.default)(this.config.backoffConfigDefault,this.config.backoffConfigOverride)}},{key:"retryWhenThrottled",value:function retryWhenThrottled(){return void 0!==this.config.retryWhenThrottledOverride?this.config.retryWhenThrottledOverride:void 0!==this.config.retryWhenThrottledDefault&&this.config.retryWhenThrottledDefault}},{key:"isExpired",value:function isExpired(r){return!this.cacheLifetime||Date.now()-r>this.cacheLifetime}},{key:"cleanupCache",value:function cleanupCache(){var r=!0,c=!1,u=void 0;try{for(var p,y=(0,k.default)(this.cache);!(r=(p=y.next()).done);r=!0){var w=p.value,E=(0,x.default)(w,2),I=E[0],K=E[1];this.isExpired(K.timestamp)&&this.cache.delete(I)}}catch(r){c=!0,u=r}finally{try{!r&&y.return&&y.return()}finally{if(c)throw u}}0===this.cache.size&&clearInterval(this.timer)}},{key:"pokeTimer",value:function pokeTimer(){var r=this;this.timer=this.timer||setInterval((function(){return r.cleanupCache()}),2*this.cacheLifetime)}},{key:"executeWithRetry",value:function executeWithRetry(r){var c=this,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new w.default((function(p,y){var w=[502,503,504];u&&w.push(429);var k=new ie.Retrier(c.backoffConfig());k.on("attempt",(function(){r().then((function(r){return k.succeeded(r)})).catch((function(r){w.indexOf(r.status)>-1||"Twilsock disconnected"===r.message?k.failed(r):(k.removeAllListeners(),k.cancel(),y(r))}))})),k.on("succeeded",(function(r){p(r)})),k.on("cancelled",(function(r){return y(r)})),k.on("failed",(function(r){return y(r)})),k.start()}))}},{key:"get",value:(r=(0,y.default)(p.default.mark((function _callee(r){var c,u,y,w=this;return p.default.wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:if(!(c=this.cache.get(r))||this.isExpired(c.timestamp)){p.next=3;break}return p.abrupt("return",c.response);case 3:return u={},p.next=6,this.executeWithRetry((function(){return w.services.transport.get(r,u)}),this.retryWhenThrottled());case 6:return y=p.sent,this.cache.set(r,{response:y,timestamp:Date.now()}),this.pokeTimer(),p.abrupt("return",y);case 10:case"end":return p.stop()}}),_callee,this)}))),function get(c){return r.apply(this,arguments)})}]),Network}();c.Network=oe},4126:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(52367)),w=_interopRequireDefault(u(22600)),k=_interopRequireDefault(u(99663));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.ReadHorizon=void 0;var x=u(47241),E=function(){function ReadHorizon(r){(0,k.default)(this,ReadHorizon),this.services=r,this.readHorizonRequests=new y.default,this.readHorizonUpdateTimer=null}return(0,w.default)(ReadHorizon,[{key:"getReportInterval",value:function getReportInterval(){return this.services.session.getConsumptionReportInterval().then((function(r){return 1e3*r}))}},{key:"delayedSendReadHorizon",value:function delayedSendReadHorizon(r){var c=this;null===this.readHorizonUpdateTimer&&(this.sendConsumptionReport(!0),this.readHorizonUpdateTimer=setTimeout((function(){c.sendConsumptionReport(!1)}),r))}},{key:"sendConsumptionReport",value:function sendConsumptionReport(r){var c=this,u=[],p=new y.default;this.readHorizonRequests.forEach((function(r,c){u.push(r.entry),p.set(c,r.promises)})),u.length>0&&this.services.session.addCommand("consumptionReportV2",{report:u}).then((function(r){return c.processConsumptionReportResponse(r,p)})).catch((function(r){return c.processConsumptionReportError(r,p)})),r||(this.readHorizonUpdateTimer=null),this.readHorizonRequests.clear()}},{key:"processConsumptionReportResponse",value:function processConsumptionReportResponse(r,c){r&&r.report&&Array.isArray(r.report)&&r.report.length>0&&r.report.forEach((function(r){var u=r;if(c.has(u.channelSid)){var p=null;void 0!==u.unreadMessagesCount&&null!=u.unreadMessagesCount&&(p=u.unreadMessagesCount),c.get(u.channelSid).forEach((function(r){return r.resolve(p)})),c.delete(u.channelSid)}})),this.processConsumptionReportError(new x.SessionError("Error while setting LastReadMessageIndex",null),c)}},{key:"processConsumptionReportError",value:function processConsumptionReportError(r,c){c.forEach((function(c){return c.forEach((function(c){return c.reject(r)}))}))}},{key:"updateLastReadMessageIndexForConversation",value:function updateLastReadMessageIndexForConversation(r,c){var u=this;return new p.default((function(p,y){u.addPendingConsumptionHorizonRequest(r,{channelSid:r,messageIdx:c},{resolve:p,reject:y}),u.getReportInterval().then((function(r){return u.delayedSendReadHorizon(r)}))}))}},{key:"advanceLastReadMessageIndexForConversation",value:function advanceLastReadMessageIndexForConversation(r,c,u){var y=this,w=this.readHorizonRequests.get(r);return new p.default((function(p,k){w&&w.entry?w.entry.messageIdx>=c?y.addPendingConsumptionHorizonRequest(r,w.entry,{resolve:p,reject:k}):y.addPendingConsumptionHorizonRequest(r,{channelSid:r,messageIdx:c},{resolve:p,reject:k}):null!==u&&c<u?y.addPendingConsumptionHorizonRequest(r,{channelSid:r,messageIdx:u},{resolve:p,reject:k}):y.addPendingConsumptionHorizonRequest(r,{channelSid:r,messageIdx:c},{resolve:p,reject:k}),y.getReportInterval().then((function(r){return y.delayedSendReadHorizon(r)}))}))}},{key:"addPendingConsumptionHorizonRequest",value:function addPendingConsumptionHorizonRequest(r,c,u){if(this.readHorizonRequests.has(r)){var p=this.readHorizonRequests.get(r);p.entry=c,p.promises.push(u)}else this.readHorizonRequests.set(r,{entry:c,promises:[u]})}}]),ReadHorizon}();c.ReadHorizon=E},93399:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(52367)),w=_interopRequireDefault(u(99663)),k=_interopRequireDefault(u(22600));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.TypingIndicator=void 0;var x=u(31312),E=u(53547),I=x.Logger.scope("TypingIndicator"),K=function(){function TypingIndicator(r,c,u){(0,w.default)(this,TypingIndicator),this.config=r,this.services=c,this.getConversation=u,this.serviceTypingTimeout=null,this.sentUpdates=new y.default}return(0,k.default)(TypingIndicator,[{key:"initialize",value:function initialize(){var r=this;this.services.notificationClient.subscribe(E.NotificationTypes.TYPING_INDICATOR,"twilsock"),this.services.notificationClient.on("message",(function(c,u){c===E.NotificationTypes.TYPING_INDICATOR&&r.handleRemoteTyping(u)}))}},{key:"handleRemoteTyping",value:function handleRemoteTyping(r){var c=this;I.trace("Got new typing indicator ",r),this.getConversation(r.channel_sid).then((function(u){u&&u.participants.forEach((function(u){if(u.identity===r.identity){var p=c.config.typingIndicatorTimeoutOverride+1e3||1e3*r.typing_timeout;u._startTyping(p)}}))})).catch((function(r){throw I.error(r),r}))}},{key:"send",value:function send(r){var c=this.sentUpdates.get(r);return c&&c>Date.now()-this.typingTimeout?p.default.resolve():(this.sentUpdates.set(r,Date.now()),this._send(r))}},{key:"_send",value:function _send(r){var c=this;I.trace("Sending typing indicator");var u=this.config.typingIndicatorUri,p="ChannelSid="+r;return this.services.transport.post(u,{"Content-Type":"application/x-www-form-urlencoded"},p).then((function(r){r.body.hasOwnProperty("typing_timeout")&&(c.serviceTypingTimeout=1e3*r.body.typing_timeout)})).catch((function(r){throw I.error("Failed to send typing indicator:",r),r}))}},{key:"typingTimeout",get:function get(){return this.config.typingIndicatorTimeoutOverride||this.serviceTypingTimeout||this.config.typingIndicatorTimeoutDefault}}]),TypingIndicator}();c.TypingIndicator=K},72117:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(94942)),y=_interopRequireDefault(u(36803)),w=_interopRequireDefault(u(46593)),k=_interopRequireDefault(u(52367)),x=_interopRequireDefault(u(22600)),E=_interopRequireDefault(u(99663));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Session=void 0;var I=u(55877),K=u(31795),J=u(95038),ie=u(31312),oe=u(47241),se=u(48002),ae=u(42604),ue=u(79086).i8,le=ie.Logger.scope("Session"),de=function Command(){(0,E.default)(this,Command)};var pe=function(){function Session(r,c){(0,E.default)(this,Session);var u="undefined"!=typeof navigator?K.parse(navigator.userAgent):K;this.services=r,this.config=c,this.sessionInfo=new se.Deferred,this.currentContext={},this.pendingCommands=new k.default,this.sessionStreamPromise=null,this.endpointPlatform=["JS",ue,u.os,u.name,u.version].join("|")}var r,c,u,ie,pe,he;return(0,x.default)(Session,[{key:"handleContextUpdate",value:function handleContextUpdate(r){le.info("Session context updated"),le.debug("new session context:",r),this.currentContext=r,function hasAllPropertiesSet(r,c){return!c.some((function(c){return!r.hasOwnProperty(c)}))}(r,["identity","userInfo","links","myChannels","channels"])&&(le.info("new session context accepted"),this.sessionInfo.set(r))}},{key:"initialize",value:function initialize(){var r=this,c={type:"IpMsgSession",apiVersion:"4",endpointPlatform:this.endpointPlatform};return this.sessionStreamPromise=this.services.syncClient.list({purpose:"com.twilio.rtd.ipmsg",context:c}).then((function(c){return le.info("Session created",c.sid),c.on("itemAdded",(function(c){return r.processCommandResponse(c.item)})),c.on("itemUpdated",(function(c){return r.processCommandResponse(c.item)})),c.on("contextUpdated",(function(c){return r.handleContextUpdate(c.context)})),c})).catch((function(r){throw le.error("Failed to create session",r),r})),this.sessionStreamPromise}},{key:"addCommand",value:function addCommand(r,c){return this.processCommand(r,c)}},{key:"processCommand",value:function processCommand(r,c){var u=this,p=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],y=new de;return y.request=c,y.request.action=r,y.commandId=I.v4(),le.info("Adding command: ",r,y.commandId),le.debug("command arguments:",c,p),new w.default((function(w,k){u.sessionStreamPromise.then((function(r){return u.pendingCommands.set(y.commandId,{resolve:w,reject:k,commandId:y.commandId,request:y.request}),r.push(y)})).then((function(){return le.debug("Command accepted by server",y.commandId)})).catch((function(x){u.pendingCommands.delete(y.commandId),le.error("Failed to add a command to the session",x),x.code!=J.ResponseCodes.ACCESS_FORBIDDEN_FOR_IDENTITY&&x.code!==J.ResponseCodes.LIST_NOT_FOUND||!p?k(new Error("Can't add command: "+x.message)):(le.info("recreating session..."),u.initialize(),w(u.processCommand(r,c,!1)))}))}))}},{key:"processCommandResponse",value:function processCommandResponse(r){if(r.value.hasOwnProperty("response")&&r.value.hasOwnProperty("commandId")&&this.pendingCommands.has(r.value.commandId)){var c=r.value,u=r.value.commandId;if(c.response.status===J.ResponseCodes.HTTP_200_OK){le.debug("Command succeeded: ",c);var p=this.pendingCommands.get(u).resolve;this.pendingCommands.delete(u),p(c.response)}else{le.error("Command failed: ",c);var y=this.pendingCommands.get(u).reject;this.pendingCommands.delete(u),y(new oe.SessionError(c.response.statusText,c.response.status))}}}},{key:"getSessionContext",value:function getSessionContext(){return this.sessionStreamPromise.then((function(r){return r.getContext()}))}},{key:"getSessionLinks",value:(he=(0,y.default)(p.default.mark((function _callee(){var r;return p.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sessionInfo.promise;case 2:return r=c.sent,c.abrupt("return",{publicChannelsUrl:this.config.baseUrl+r.links.publicChannelsUrl,myChannelsUrl:this.config.baseUrl+r.links.myChannelsUrl,typingUrl:this.config.baseUrl+r.links.typingUrl,syncListUrl:this.config.baseUrl+r.links.syncListUrl,usersUrl:this.config.baseUrl+r.links.usersUrl,mediaServiceUrl:r.links.mediaServiceUrl,messagesReceiptsUrl:this.config.baseUrl+r.links.messagesReceiptsUrl});case 4:case"end":return c.stop()}}),_callee,this)}))),function getSessionLinks(){return he.apply(this,arguments)})},{key:"getConversationsId",value:(pe=(0,y.default)(p.default.mark((function _callee2(){var r;return p.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sessionInfo.promise;case 2:return r=c.sent,c.abrupt("return",r.channels);case 4:case"end":return c.stop()}}),_callee2,this)}))),function getConversationsId(){return pe.apply(this,arguments)})},{key:"getMyConversationsId",value:(ie=(0,y.default)(p.default.mark((function _callee3(){var r;return p.default.wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sessionInfo.promise;case 2:return r=c.sent,c.abrupt("return",r.myChannels);case 4:case"end":return c.stop()}}),_callee3,this)}))),function getMyConversationsId(){return ie.apply(this,arguments)})},{key:"getMaxUserInfosToSubscribe",value:(u=(0,y.default)(p.default.mark((function _callee4(){var r;return p.default.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sessionInfo.promise;case 2:return r=c.sent,c.abrupt("return",this.config.userInfosToSubscribeOverride||r.userInfosToSubscribe||this.config.userInfosToSubscribeDefault);case 4:case"end":return c.stop()}}),_callee4,this)}))),function getMaxUserInfosToSubscribe(){return u.apply(this,arguments)})},{key:"getUsersData",value:function getUsersData(){return this.sessionInfo.promise.then((function(r){return{user:r.userInfo,identity:r.identity}}))}},{key:"getConsumptionReportInterval",value:(c=(0,y.default)(p.default.mark((function _callee5(){var r,c;return p.default.wrap((function _callee5$(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,this.getSessionContext();case 2:return r=u.sent,c=this.config.consumptionReportIntervalOverride||r.consumptionReportInterval||this.config.consumptionReportIntervalDefault,u.prev=4,u.abrupt("return",ae.toSeconds(ae.parse(c)));case 8:return u.prev=8,u.t0=u.catch(4),le.error("Failed to parse consumption report interval",c,"using default value",this.config.consumptionReportIntervalDefault),u.abrupt("return",ae.toSeconds(ae.parse(this.config.consumptionReportIntervalDefault)));case 12:case"end":return u.stop()}}),_callee5,this,[[4,8]])}))),function getConsumptionReportInterval(){return c.apply(this,arguments)})},{key:"getHttpCacheInterval",value:(r=(0,y.default)(p.default.mark((function _callee6(){var r,c;return p.default.wrap((function _callee6$(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,this.getSessionContext();case 2:return r=u.sent,c=this.config.httpCacheIntervalOverride||r.httpCacheInterval||this.config.httpCacheIntervalDefault,u.prev=4,u.abrupt("return",ae.toSeconds(ae.parse(c)));case 8:return u.prev=8,u.t0=u.catch(4),le.error("Failed to parse cache interval",c,"using default value",this.config.httpCacheIntervalDefault),u.abrupt("return",ae.toSeconds(ae.parse(this.config.httpCacheIntervalDefault)));case 12:case"end":return u.stop()}}),_callee6,this,[[4,8]])}))),function getHttpCacheInterval(){return r.apply(this,arguments)})},{key:"identity",get:function get(){return this.sessionInfo.current.identity}},{key:"reachabilityEnabled",get:function get(){return this.currentContext.reachabilityEnabled}}]),Session}();c.Session=pe},47241:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(85861)),y=_interopRequireDefault(u(85345)),w=_interopRequireDefault(u(24043)),k=_interopRequireDefault(u(24781)),x=_interopRequireDefault(u(85105)),E=_interopRequireDefault(u(99663)),I=_interopRequireDefault(u(49135)),K=_interopRequireDefault(u(93196));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.SessionError=void 0;var J=function(r){function SessionError(r,c){(0,E.default)(this,SessionError);var u=(0,I.default)(this,(SessionError.__proto__||(0,x.default)(SessionError)).call(this));return u.name=u.constructor.name,u.message=r,u.code=c,Error.captureStackTrace?Error.captureStackTrace(u,u.constructor):u.stack=(new Error).stack,u}return(0,K.default)(SessionError,r),SessionError}(function _extendableBuiltin(r){function ExtendableBuiltin(){var c=(0,k.default)(r,(0,w.default)(arguments));return(0,y.default)(c,(0,x.default)(this)),c}return ExtendableBuiltin.prototype=(0,p.default)(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y.default?(0,y.default)(ExtendableBuiltin,r):ExtendableBuiltin.__proto__=r,ExtendableBuiltin}(Error));c.SessionError=J},97498:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(94942)),y=_interopRequireDefault(u(36803)),w=_interopRequireDefault(u(99663)),k=_interopRequireDefault(u(22600));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.SyncList=void 0;var x=u(55218),E=u(61616),I=u(81798),K=function(){function SyncList(r){(0,w.default)(this,SyncList),this.services=r}var r;return(0,k.default)(SyncList,[{key:"getPage",value:(r=(0,y.default)(p.default.mark((function _callee(r){var c,u,y,w=this;return p.default.wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:return r=r||{},p.next=3,this.services.session.getSessionLinks();case 3:return c=p.sent,u=new x.UriBuilder(c.syncListUrl).arg("PageToken",r.pageToken).build(),p.next=7,this.services.network.get(u);case 7:return y=p.sent,p.abrupt("return",new E.RestPaginator(y.body.channels.map((function(r){return new I.SyncListDescriptor(r)})),(function(r){return w.getPage({pageToken:r})}),y.body.meta.previous_token,y.body.meta.next_token));case 9:case"end":return p.stop()}}),_callee,this)}))),function getPage(c){return r.apply(this,arguments)})}]),SyncList}();c.SyncList=K},81798:(r,c,u)=>{"use strict";var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(99663));Object.defineProperty(c,"__esModule",{value:!0}),c.SyncListDescriptor=void 0;c.SyncListDescriptor=function SyncListDescriptor(r){(0,p.default)(this,SyncListDescriptor),this.channel_sid=r.channel_sid,this.status=r.status,this.channel=r.channel,this.messages=r.messages,this.roster=r.roster,this.lastReadMessageIndex=r.last_consumed_message_index,this.notificationLevel=r.notification_level,this.descriptor=r}},8992:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(63239)),y=_interopRequireDefault(u(94942)),w=_interopRequireDefault(u(36803)),k=_interopRequireDefault(u(46593)),x=_interopRequireDefault(u(85105)),E=_interopRequireDefault(u(99663)),I=_interopRequireDefault(u(22600)),K=_interopRequireDefault(u(49135)),J=_interopRequireDefault(u(93196)),ie=_interopRequireDefault(u(448)),oe=_interopRequireDefault(u(32242)),se=_interopRequireDefault(u(72444)),ae=_interopRequireDefault(u(8177));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}var __decorate=function(r,c,u,p){var y,w=arguments.length,k=w<3?c:null===p?p=(0,ae.default)(c,u):p;if("object"===("undefined"==typeof Reflect?"undefined":(0,se.default)(Reflect))&&"function"==typeof Reflect.decorate)k=Reflect.decorate(r,c,u,p);else for(var x=r.length-1;x>=0;x--)(y=r[x])&&(k=(w<3?y(k):w>3?y(c,u,k):y(c,u))||k);return w>3&&k&&(0,oe.default)(c,u,k),k},__metadata=function(r,c){if("object"===("undefined"==typeof Reflect?"undefined":(0,se.default)(Reflect))&&"function"==typeof ie.default)return(0,ie.default)(r,c)};Object.defineProperty(c,"__esModule",{value:!0}),c.User=void 0;var ue=u(17187),le=u(31312),de=u(55218),pe=u(50368),he=le.Logger.scope("User"),ge=function(r){function User(r,c,u){(0,E.default)(this,User);var p=(0,K.default)(this,(User.__proto__||(0,x.default)(User)).call(this));return p.subscribed="initializing",p.setMaxListeners(0),p.services=u,p.state={identity:r,entityName:c,friendlyName:null,attributes:{},online:null,notifiable:null},p}var c,u,ie,oe;return(0,J.default)(User,r),(0,I.default)(User,[{key:"_update",value:function _update(r,c){var u=[];switch(he.debug("User for",this.state.identity,"updated:",r,c),r){case"friendlyName":this.state.friendlyName!==c.value&&(u.push("friendlyName"),this.state.friendlyName=c.value);break;case"attributes":var p=de.parseAttributes(c.value,"Retrieved malformed attributes from the server for user: "+this.state.identity,he);de.isDeepEqual(this.state.attributes,p)||(this.state.attributes=p,u.push("attributes"));break;case"reachability":this.state.online!==c.online&&(this.state.online=c.online,u.push("reachabilityOnline")),this.state.notifiable!==c.notifiable&&(this.state.notifiable=c.notifiable,u.push("reachabilityNotifiable"));break;default:return}u.length>0&&this.emit("updated",{user:this,updateReasons:u})}},{key:"_updateReachabilityInfo",value:function _updateReachabilityInfo(r,c){var u=this;return this.services.session.reachabilityEnabled?r.get("reachability").then(c).catch((function(r){he.warn("Failed to get reachability info for ",u.state.identity,r)})):k.default.resolve()}},{key:"_fetch",value:(oe=(0,w.default)(y.default.mark((function _callee(){var r=this;return y.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:if(this.state.entityName){c.next=2;break}return c.abrupt("return",this);case 2:return this.promiseToFetch=this.services.syncClient.map({id:this.state.entityName,mode:"open_existing",includeItems:!0}).then((function(c){return r.entity=c,c.on("itemUpdated",(function(c){return he.debug(r.state.entityName+" ("+r.state.identity+") itemUpdated: "+c.item.key),r._update(c.item.key,c.item.value)})),k.default.all([c.get("friendlyName").then((function(c){return r._update(c.key,c.value)})),c.get("attributes").then((function(c){return r._update(c.key,c.value)})),r._updateReachabilityInfo(c,(function(c){return r._update(c.key,c.value)}))])})).then((function(){return he.debug("Fetched for",r.identity),r.subscribed="subscribed",r.emit("userSubscribed",r),r})).catch((function(c){throw r.promiseToFetch=null,c})),c.abrupt("return",this.promiseToFetch);case 4:case"end":return c.stop()}}),_callee,this)}))),function _fetch(){return oe.apply(this,arguments)})},{key:"_ensureFetched",value:function _ensureFetched(){return this.promiseToFetch||this._fetch()}},{key:"updateAttributes",value:(ie=(0,w.default)(y.default.mark((function _callee2(r){return y.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:if("unsubscribed"!=this.subscribed){c.next=2;break}throw new Error("Can't modify unsubscribed object");case 2:return c.next=4,this.services.session.addCommand("editUserAttributes",{username:this.state.identity,attributes:(0,p.default)(r)});case 4:return c.abrupt("return",this);case 5:case"end":return c.stop()}}),_callee2,this)}))),function updateAttributes(r){return ie.apply(this,arguments)})},{key:"updateFriendlyName",value:(u=(0,w.default)(y.default.mark((function _callee3(r){return y.default.wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:if("unsubscribed"!=this.subscribed){c.next=2;break}throw new Error("Can't modify unsubscribed object");case 2:return c.next=4,this.services.session.addCommand("editUserFriendlyName",{username:this.state.identity,friendlyName:r});case 4:return c.abrupt("return",this);case 5:case"end":return c.stop()}}),_callee3,this)}))),function updateFriendlyName(r){return u.apply(this,arguments)})},{key:"unsubscribe",value:(c=(0,w.default)(y.default.mark((function _callee4(){return y.default.wrap((function _callee4$(r){for(;;)switch(r.prev=r.next){case 0:if(!this.promiseToFetch){r.next=7;break}return r.next=3,this.promiseToFetch;case 3:this.entity.close(),this.promiseToFetch=null,this.subscribed="unsubscribed",this.emit("userUnsubscribed",this);case 7:case"end":return r.stop()}}),_callee4,this)}))),function unsubscribe(){return c.apply(this,arguments)})},{key:"identity",get:function get(){return this.state.identity},set:function set(r){this.state.identity=r}},{key:"entityName",set:function set(r){this.state.entityName=r}},{key:"attributes",get:function get(){return this.state.attributes}},{key:"friendlyName",get:function get(){return this.state.friendlyName}},{key:"isOnline",get:function get(){return this.state.online}},{key:"isNotifiable",get:function get(){return this.state.notifiable}},{key:"isSubscribed",get:function get(){return"subscribed"==this.subscribed}}]),User}(ue.EventEmitter);__decorate([pe.asyncTypeCheck(["string","number","boolean","object",pe.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",k.default)],ge.prototype,"updateAttributes",null),__decorate([pe.asyncTypeCheck(["string",pe.literal(null)]),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",k.default)],ge.prototype,"updateFriendlyName",null),c.User=ge},48002:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(99663)),w=_interopRequireDefault(u(22600));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.Deferred=void 0;var k=function(){function Deferred(){var r=this;(0,y.default)(this,Deferred),this._promise=new p.default((function(c,u){r._resolve=c,r._reject=u}))}return(0,w.default)(Deferred,[{key:"update",value:function update(r){this._resolve(r)}},{key:"set",value:function set(r){this.current=r,this._resolve(r)}},{key:"fail",value:function fail(r){this._reject(r)}},{key:"promise",get:function get(){return this._promise}}]),Deferred}();c.Deferred=k},55218:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(99663)),y=_interopRequireDefault(u(22600)),w=_interopRequireDefault(u(63239));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.parseAttributes=c.parseTime=c.parseToNumber=c.UriBuilder=c.deepClone=c.isDeepEqual=void 0;var k=u(93431);c.isDeepEqual=function isDeepEqual(r,c){return 0===k.createPatch(r,c).length},c.deepClone=function deepClone(r){return JSON.parse((0,w.default)(r))},c.parseToNumber=function parseToNumber(r){return void 0===r||isNaN(Number(r))?null:Number(r)},c.parseTime=function parseTime(r){try{return new Date(r)}catch(r){return null}},c.parseAttributes=function parseAttributes(r,c,u){var p={};if(r)try{p=JSON.parse(r)}catch(r){u.warn(c,r)}return p};var x=function(){function UriBuilder(r){(0,p.default)(this,UriBuilder),this.base=r.replace(/\/$/,""),this.args=[],this.paths=[]}return(0,y.default)(UriBuilder,[{key:"arg",value:function arg(r,c){return void 0!==c&&this.args.push(encodeURIComponent(r)+"="+encodeURIComponent(c)),this}},{key:"path",value:function path(r){return this.paths.push(encodeURIComponent(r)),this}},{key:"build",value:function build(){var r=this.base;return this.paths.length&&(r+="/"+this.paths.join("/")),this.args.length&&(r+="?"+this.args.join("&")),r}}]),UriBuilder}();c.UriBuilder=x},50368:(r,c,u)=>{"use strict";var p=_interopRequireDefault(u(46593)),y=_interopRequireDefault(u(12424)),w=_interopRequireDefault(u(72444)),k=_interopRequireDefault(u(72e3));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0}),c.pureObject=c.nonNegativeInteger=c.nonEmptyString=c.stringifyReceivedType=c.custom=c.literal=c.type=c.asyncTypeCheck=c.typeCheck=c.runtimeTypeCheck=void 0;var x=function type(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];return{mode:"type",checks:c}};c.type=x;c.literal=function literal(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];return{mode:"literal",checks:c}};var E=function custom(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];return{mode:"custom",checks:c}};c.custom=E;var I=E((function(r){return["string"==typeof r&&r.length>0,"a non-empty string"]}));c.nonEmptyString=I;var K=E((function(r){return[(0,k.default)(r)&&r>=0,"a non-negative integer"]}));c.nonNegativeInteger=K;var J=E((function(r){return["object"===(void 0===r?"undefined":(0,w.default)(r))&&null!==r&&!Array.isArray(r),"a pure object (non-null and non-array)"]}));c.pureObject=J;var ie=function runtimeTypeCheck(r,c,u){if(c.length>r.length)throw new Error("Expected at most "+r.length+" argument(s), but got "+c.length);for(;c.length<r.length;)c.push(void 0);c.forEach((function(c,p){var k=r[p],x=[],E=void 0,I=!1;if(k.forEach((function(r){switch(r.mode){case"type":r.checks.forEach((function(r){if("string"==typeof r)return I=I||(void 0===c?"undefined":(0,w.default)(c))===r,void x.push("of type "+r);I=I||c instanceof r,x.push("an instance of "+r.name)}));break;case"literal":r.checks.forEach((function(r){I=I||c===r,x.push("string"==typeof r?'"'+r+'"':""+r)}));break;case"custom":r.checks.forEach((function(r){var u=r(c),p=(0,y.default)(u,3),w=p[0],k=p[1],K=p[2];I=I||w,!E&&K&&(E=K),x.push(k)}))}})),!I){var K=E||oe(c),J=u?" of "+u:"",ie=x.length-1,se=ie>0?x.slice(0,ie).join(", ")+" or "+x[ie]:x.join(", ");throw new Error("Argument "+(p+1)+J+" is expected to be "+se+(ie>1?";":",")+" but got "+K)}}))};c.runtimeTypeCheck=ie;var oe=function stringifyReceivedType(r){var c,u=void 0;["undefined","boolean","number","bigint","string"].includes(void 0===r?"undefined":(0,w.default)(r))&&(u="string"==typeof r?'"'+r+'"':""+r);var p=null===(c=null==r?void 0:r.constructor)||void 0===c?void 0:c.name;return"object"===(void 0===r?"undefined":(0,w.default)(r))&&"Object"!==p&&(u=null===r?"null":"instance of "+p),u||(u=void 0===r?"undefined":(0,w.default)(r)),u};c.stringifyReceivedType=oe;c.typeCheck=function typeCheck(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];var p=se(c);return function(r,c,u){if("function"!=typeof u.value)throw new Error("The typeCheck decorator can only be applied to methods");var y=u.value;u.value=function(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];return ie(p,c,y.name),y.apply(this,arguments)}}};c.asyncTypeCheck=function asyncTypeCheck(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];var y=se(c);return function(r,c,u){if("function"!=typeof u.value)throw new Error("The asyncTypeCheck decorator can only be applied to methods");var w=u.value;u.value=function(){for(var r=arguments.length,c=Array(r),u=0;u<r;u++)c[u]=arguments[u];try{ie(y,c,w.name)}catch(r){return p.default.reject(r)}return w.apply(this,arguments)}}};var se=function _getRuleSet(r){var c=[];return r.forEach((function(r){var u=[];(Array.isArray(r)?r:[r]).forEach((function(r){["string","function"].includes(void 0===r?"undefined":(0,w.default)(r))?u.push(x(r)):u.push(r)})),c.push(u)})),c}},79086:r=>{"use strict";r.exports={i8:"1.1.0"}},23889:(r,c,u)=>{r.exports=u(92397).default},92397:(r,c,u)=>{"use strict";c.default=axiosRetry;var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(29367));function isNetworkError(r){return!r.response&&Boolean(r.code)&&"ECONNABORTED"!==r.code&&(0,p.default)(r)}var y=["get","head","options"],w=y.concat(["put","delete"]);function isRetryableError(r){return"ECONNABORTED"!==r.code&&(!r.response||r.response.status>=500&&r.response.status<=599)}function isSafeRequestError(r){return!!r.config&&(isRetryableError(r)&&-1!==y.indexOf(r.config.method))}function isIdempotentRequestError(r){return!!r.config&&(isRetryableError(r)&&-1!==w.indexOf(r.config.method))}function isNetworkOrIdempotentRequestError(r){return isNetworkError(r)||isIdempotentRequestError(r)}function noDelay(){return 0}function exponentialDelay(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=100*Math.pow(2,r),u=.2*c*Math.random();return c+u}function getCurrentState(r){var c=r["axios-retry"]||{};return c.retryCount=c.retryCount||0,r["axios-retry"]=c,c}function axiosRetry(r,c){r.interceptors.request.use((function(r){return getCurrentState(r).lastRequestTime=Date.now(),r})),r.interceptors.response.use(null,(function(u){var p=u.config;if(!p)return Promise.reject(u);var y=function getRequestOptions(r,c){return Object.assign({},c,r["axios-retry"])}(p,c),w=y.retries,k=void 0===w?3:w,x=y.retryCondition,E=void 0===x?isNetworkOrIdempotentRequestError:x,I=y.retryDelay,K=void 0===I?noDelay:I,J=y.shouldResetTimeout,ie=void 0!==J&&J,oe=getCurrentState(p);if(E(u)&&oe.retryCount<k){oe.retryCount+=1;var se=K(oe.retryCount,u);if(function fixConfig(r,c){r.defaults.agent===c.agent&&delete c.agent,r.defaults.httpAgent===c.httpAgent&&delete c.httpAgent,r.defaults.httpsAgent===c.httpsAgent&&delete c.httpsAgent}(r,p),!ie&&p.timeout&&oe.lastRequestTime){var ae=Date.now()-oe.lastRequestTime;p.timeout=Math.max(p.timeout-ae-se,1)}return p.transformRequest=[function(r){return r}],new Promise((function(c){return setTimeout((function(){return c(r(p))}),se)}))}return Promise.reject(u)}))}axiosRetry.isNetworkError=isNetworkError,axiosRetry.isSafeRequestError=isSafeRequestError,axiosRetry.isIdempotentRequestError=isIdempotentRequestError,axiosRetry.isNetworkOrIdempotentRequestError=isNetworkOrIdempotentRequestError,axiosRetry.exponentialDelay=exponentialDelay,axiosRetry.isRetryableError=isRetryableError},9669:(r,c,u)=>{r.exports=u(51609)},55448:(r,c,u)=>{"use strict";var p=u(64867),y=u(36026),w=u(4372),k=u(15327),x=u(94097),E=u(84109),I=u(67985),K=u(85061),J=u(45655),ie=u(65263);r.exports=function xhrAdapter(r){return new Promise((function dispatchXhrRequest(c,u){var oe,se=r.data,ae=r.headers,ue=r.responseType;function done(){r.cancelToken&&r.cancelToken.unsubscribe(oe),r.signal&&r.signal.removeEventListener("abort",oe)}p.isFormData(se)&&delete ae["Content-Type"];var le=new XMLHttpRequest;if(r.auth){var de=r.auth.username||"",pe=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";ae.Authorization="Basic "+btoa(de+":"+pe)}var he=x(r.baseURL,r.url);function onloadend(){if(le){var p="getAllResponseHeaders"in le?E(le.getAllResponseHeaders()):null,w={data:ue&&"text"!==ue&&"json"!==ue?le.response:le.responseText,status:le.status,statusText:le.statusText,headers:p,config:r,request:le};y((function _resolve(r){c(r),done()}),(function _reject(r){u(r),done()}),w),le=null}}if(le.open(r.method.toUpperCase(),k(he,r.params,r.paramsSerializer),!0),le.timeout=r.timeout,"onloadend"in le?le.onloadend=onloadend:le.onreadystatechange=function handleLoad(){le&&4===le.readyState&&(0!==le.status||le.responseURL&&0===le.responseURL.indexOf("file:"))&&setTimeout(onloadend)},le.onabort=function handleAbort(){le&&(u(K("Request aborted",r,"ECONNABORTED",le)),le=null)},le.onerror=function handleError(){u(K("Network Error",r,null,le)),le=null},le.ontimeout=function handleTimeout(){var c=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",p=r.transitional||J.transitional;r.timeoutErrorMessage&&(c=r.timeoutErrorMessage),u(K(c,r,p.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",le)),le=null},p.isStandardBrowserEnv()){var ge=(r.withCredentials||I(he))&&r.xsrfCookieName?w.read(r.xsrfCookieName):void 0;ge&&(ae[r.xsrfHeaderName]=ge)}"setRequestHeader"in le&&p.forEach(ae,(function setRequestHeader(r,c){void 0===se&&"content-type"===c.toLowerCase()?delete ae[c]:le.setRequestHeader(c,r)})),p.isUndefined(r.withCredentials)||(le.withCredentials=!!r.withCredentials),ue&&"json"!==ue&&(le.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&le.addEventListener("progress",r.onDownloadProgress),"function"==typeof r.onUploadProgress&&le.upload&&le.upload.addEventListener("progress",r.onUploadProgress),(r.cancelToken||r.signal)&&(oe=function(r){le&&(u(!r||r&&r.type?new ie("canceled"):r),le.abort(),le=null)},r.cancelToken&&r.cancelToken.subscribe(oe),r.signal&&(r.signal.aborted?oe():r.signal.addEventListener("abort",oe))),se||(se=null),le.send(se)}))}},51609:(r,c,u)=>{"use strict";var p=u(64867),y=u(91849),w=u(30321),k=u(47185);var x=function createInstance(r){var c=new w(r),u=y(w.prototype.request,c);return p.extend(u,w.prototype,c),p.extend(u,c),u.create=function create(c){return createInstance(k(r,c))},u}(u(45655));x.Axios=w,x.Cancel=u(65263),x.CancelToken=u(14972),x.isCancel=u(26502),x.VERSION=u(97288).version,x.all=function all(r){return Promise.all(r)},x.spread=u(8713),x.isAxiosError=u(16268),r.exports=x,r.exports.default=x},65263:r=>{"use strict";function Cancel(r){this.message=r}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,r.exports=Cancel},14972:(r,c,u)=>{"use strict";var p=u(65263);function CancelToken(r){if("function"!=typeof r)throw new TypeError("executor must be a function.");var c;this.promise=new Promise((function promiseExecutor(r){c=r}));var u=this;this.promise.then((function(r){if(u._listeners){var c,p=u._listeners.length;for(c=0;c<p;c++)u._listeners[c](r);u._listeners=null}})),this.promise.then=function(r){var c,p=new Promise((function(r){u.subscribe(r),c=r})).then(r);return p.cancel=function reject(){u.unsubscribe(c)},p},r((function cancel(r){u.reason||(u.reason=new p(r),c(u.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.prototype.subscribe=function subscribe(r){this.reason?r(this.reason):this._listeners?this._listeners.push(r):this._listeners=[r]},CancelToken.prototype.unsubscribe=function unsubscribe(r){if(this._listeners){var c=this._listeners.indexOf(r);-1!==c&&this._listeners.splice(c,1)}},CancelToken.source=function source(){var r;return{token:new CancelToken((function executor(c){r=c})),cancel:r}},r.exports=CancelToken},26502:r=>{"use strict";r.exports=function isCancel(r){return!(!r||!r.__CANCEL__)}},30321:(r,c,u)=>{"use strict";var p=u(64867),y=u(15327),w=u(80782),k=u(13572),x=u(47185),E=u(54875),I=E.validators;function Axios(r){this.defaults=r,this.interceptors={request:new w,response:new w}}Axios.prototype.request=function request(r){"string"==typeof r?(r=arguments[1]||{}).url=arguments[0]:r=r||{},(r=x(this.defaults,r)).method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var c=r.transitional;void 0!==c&&E.assertOptions(c,{silentJSONParsing:I.transitional(I.boolean),forcedJSONParsing:I.transitional(I.boolean),clarifyTimeoutError:I.transitional(I.boolean)},!1);var u=[],p=!0;this.interceptors.request.forEach((function unshiftRequestInterceptors(c){"function"==typeof c.runWhen&&!1===c.runWhen(r)||(p=p&&c.synchronous,u.unshift(c.fulfilled,c.rejected))}));var y,w=[];if(this.interceptors.response.forEach((function pushResponseInterceptors(r){w.push(r.fulfilled,r.rejected)})),!p){var K=[k,void 0];for(Array.prototype.unshift.apply(K,u),K=K.concat(w),y=Promise.resolve(r);K.length;)y=y.then(K.shift(),K.shift());return y}for(var J=r;u.length;){var ie=u.shift(),oe=u.shift();try{J=ie(J)}catch(r){oe(r);break}}try{y=k(J)}catch(r){return Promise.reject(r)}for(;w.length;)y=y.then(w.shift(),w.shift());return y},Axios.prototype.getUri=function getUri(r){return r=x(this.defaults,r),y(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")},p.forEach(["delete","get","head","options"],(function forEachMethodNoData(r){Axios.prototype[r]=function(c,u){return this.request(x(u||{},{method:r,url:c,data:(u||{}).data}))}})),p.forEach(["post","put","patch"],(function forEachMethodWithData(r){Axios.prototype[r]=function(c,u,p){return this.request(x(p||{},{method:r,url:c,data:u}))}})),r.exports=Axios},80782:(r,c,u)=>{"use strict";var p=u(64867);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(r,c,u){return this.handlers.push({fulfilled:r,rejected:c,synchronous:!!u&&u.synchronous,runWhen:u?u.runWhen:null}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(r){this.handlers[r]&&(this.handlers[r]=null)},InterceptorManager.prototype.forEach=function forEach(r){p.forEach(this.handlers,(function forEachHandler(c){null!==c&&r(c)}))},r.exports=InterceptorManager},94097:(r,c,u)=>{"use strict";var p=u(91793),y=u(7303);r.exports=function buildFullPath(r,c){return r&&!p(c)?y(r,c):c}},85061:(r,c,u)=>{"use strict";var p=u(80481);r.exports=function createError(r,c,u,y,w){var k=new Error(r);return p(k,c,u,y,w)}},13572:(r,c,u)=>{"use strict";var p=u(64867),y=u(18527),w=u(26502),k=u(45655),x=u(65263);function throwIfCancellationRequested(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new x("canceled")}r.exports=function dispatchRequest(r){return throwIfCancellationRequested(r),r.headers=r.headers||{},r.data=y.call(r,r.data,r.headers,r.transformRequest),r.headers=p.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),p.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(c){delete r.headers[c]})),(r.adapter||k.adapter)(r).then((function onAdapterResolution(c){return throwIfCancellationRequested(r),c.data=y.call(r,c.data,c.headers,r.transformResponse),c}),(function onAdapterRejection(c){return w(c)||(throwIfCancellationRequested(r),c&&c.response&&(c.response.data=y.call(r,c.response.data,c.response.headers,r.transformResponse))),Promise.reject(c)}))}},80481:r=>{"use strict";r.exports=function enhanceError(r,c,u,p,y){return r.config=c,u&&(r.code=u),r.request=p,r.response=y,r.isAxiosError=!0,r.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},r}},47185:(r,c,u)=>{"use strict";var p=u(64867);r.exports=function mergeConfig(r,c){c=c||{};var u={};function getMergedValue(r,c){return p.isPlainObject(r)&&p.isPlainObject(c)?p.merge(r,c):p.isPlainObject(c)?p.merge({},c):p.isArray(c)?c.slice():c}function mergeDeepProperties(u){return p.isUndefined(c[u])?p.isUndefined(r[u])?void 0:getMergedValue(void 0,r[u]):getMergedValue(r[u],c[u])}function valueFromConfig2(r){if(!p.isUndefined(c[r]))return getMergedValue(void 0,c[r])}function defaultToConfig2(u){return p.isUndefined(c[u])?p.isUndefined(r[u])?void 0:getMergedValue(void 0,r[u]):getMergedValue(void 0,c[u])}function mergeDirectKeys(u){return u in c?getMergedValue(r[u],c[u]):u in r?getMergedValue(void 0,r[u]):void 0}var y={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};return p.forEach(Object.keys(r).concat(Object.keys(c)),(function computeConfigValue(r){var c=y[r]||mergeDeepProperties,w=c(r);p.isUndefined(w)&&c!==mergeDirectKeys||(u[r]=w)})),u}},36026:(r,c,u)=>{"use strict";var p=u(85061);r.exports=function settle(r,c,u){var y=u.config.validateStatus;u.status&&y&&!y(u.status)?c(p("Request failed with status code "+u.status,u.config,null,u.request,u)):r(u)}},18527:(r,c,u)=>{"use strict";var p=u(64867),y=u(45655);r.exports=function transformData(r,c,u){var w=this||y;return p.forEach(u,(function transform(u){r=u.call(w,r,c)})),r}},45655:(r,c,u)=>{"use strict";var p=u(64867),y=u(16016),w=u(80481),k={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(r,c){!p.isUndefined(r)&&p.isUndefined(r["Content-Type"])&&(r["Content-Type"]=c)}var x={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function getDefaultAdapter(){var r;return("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(r=u(55448)),r}(),transformRequest:[function transformRequest(r,c){return y(c,"Accept"),y(c,"Content-Type"),p.isFormData(r)||p.isArrayBuffer(r)||p.isBuffer(r)||p.isStream(r)||p.isFile(r)||p.isBlob(r)?r:p.isArrayBufferView(r)?r.buffer:p.isURLSearchParams(r)?(setContentTypeIfUnset(c,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):p.isObject(r)||c&&"application/json"===c["Content-Type"]?(setContentTypeIfUnset(c,"application/json"),function stringifySafely(r,c,u){if(p.isString(r))try{return(c||JSON.parse)(r),p.trim(r)}catch(r){if("SyntaxError"!==r.name)throw r}return(u||JSON.stringify)(r)}(r)):r}],transformResponse:[function transformResponse(r){var c=this.transitional||x.transitional,u=c&&c.silentJSONParsing,y=c&&c.forcedJSONParsing,k=!u&&"json"===this.responseType;if(k||y&&p.isString(r)&&r.length)try{return JSON.parse(r)}catch(r){if(k){if("SyntaxError"===r.name)throw w(r,this,"E_JSON_PARSE");throw r}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};p.forEach(["delete","get","head"],(function forEachMethodNoData(r){x.headers[r]={}})),p.forEach(["post","put","patch"],(function forEachMethodWithData(r){x.headers[r]=p.merge(k)})),r.exports=x},97288:r=>{r.exports={version:"0.24.0"}},91849:r=>{"use strict";r.exports=function bind(r,c){return function wrap(){for(var u=new Array(arguments.length),p=0;p<u.length;p++)u[p]=arguments[p];return r.apply(c,u)}}},15327:(r,c,u)=>{"use strict";var p=u(64867);function encode(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}r.exports=function buildURL(r,c,u){if(!c)return r;var y;if(u)y=u(c);else if(p.isURLSearchParams(c))y=c.toString();else{var w=[];p.forEach(c,(function serialize(r,c){null!=r&&(p.isArray(r)?c+="[]":r=[r],p.forEach(r,(function parseValue(r){p.isDate(r)?r=r.toISOString():p.isObject(r)&&(r=JSON.stringify(r)),w.push(encode(c)+"="+encode(r))})))})),y=w.join("&")}if(y){var k=r.indexOf("#");-1!==k&&(r=r.slice(0,k)),r+=(-1===r.indexOf("?")?"?":"&")+y}return r}},7303:r=>{"use strict";r.exports=function combineURLs(r,c){return c?r.replace(/\/+$/,"")+"/"+c.replace(/^\/+/,""):r}},4372:(r,c,u)=>{"use strict";var p=u(64867);r.exports=p.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(r,c,u,y,w,k){var x=[];x.push(r+"="+encodeURIComponent(c)),p.isNumber(u)&&x.push("expires="+new Date(u).toGMTString()),p.isString(y)&&x.push("path="+y),p.isString(w)&&x.push("domain="+w),!0===k&&x.push("secure"),document.cookie=x.join("; ")},read:function read(r){var c=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return c?decodeURIComponent(c[3]):null},remove:function remove(r){this.write(r,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}}},91793:r=>{"use strict";r.exports=function isAbsoluteURL(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)}},16268:r=>{"use strict";r.exports=function isAxiosError(r){return"object"==typeof r&&!0===r.isAxiosError}},67985:(r,c,u)=>{"use strict";var p=u(64867);r.exports=p.isStandardBrowserEnv()?function standardBrowserEnv(){var r,c=/(msie|trident)/i.test(navigator.userAgent),u=document.createElement("a");function resolveURL(r){var p=r;return c&&(u.setAttribute("href",p),p=u.href),u.setAttribute("href",p),{href:u.href,protocol:u.protocol?u.protocol.replace(/:$/,""):"",host:u.host,search:u.search?u.search.replace(/^\?/,""):"",hash:u.hash?u.hash.replace(/^#/,""):"",hostname:u.hostname,port:u.port,pathname:"/"===u.pathname.charAt(0)?u.pathname:"/"+u.pathname}}return r=resolveURL(window.location.href),function isURLSameOrigin(c){var u=p.isString(c)?resolveURL(c):c;return u.protocol===r.protocol&&u.host===r.host}}():function isURLSameOrigin(){return!0}},16016:(r,c,u)=>{"use strict";var p=u(64867);r.exports=function normalizeHeaderName(r,c){p.forEach(r,(function processHeader(u,p){p!==c&&p.toUpperCase()===c.toUpperCase()&&(r[c]=u,delete r[p])}))}},84109:(r,c,u)=>{"use strict";var p=u(64867),y=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];r.exports=function parseHeaders(r){var c,u,w,k={};return r?(p.forEach(r.split("\n"),(function parser(r){if(w=r.indexOf(":"),c=p.trim(r.substr(0,w)).toLowerCase(),u=p.trim(r.substr(w+1)),c){if(k[c]&&y.indexOf(c)>=0)return;k[c]="set-cookie"===c?(k[c]?k[c]:[]).concat([u]):k[c]?k[c]+", "+u:u}})),k):k}},8713:r=>{"use strict";r.exports=function spread(r){return function wrap(c){return r.apply(null,c)}}},54875:(r,c,u)=>{"use strict";var p=u(97288).version,y={};["object","boolean","number","function","string","symbol"].forEach((function(r,c){y[r]=function validator(u){return typeof u===r||"a"+(c<1?"n ":" ")+r}}));var w={};y.transitional=function transitional(r,c,u){function formatMessage(r,c){return"[Axios v"+p+"] Transitional option '"+r+"'"+c+(u?". "+u:"")}return function(u,p,y){if(!1===r)throw new Error(formatMessage(p," has been removed"+(c?" in "+c:"")));return c&&!w[p]&&(w[p]=!0,console.warn(formatMessage(p," has been deprecated since v"+c+" and will be removed in the near future"))),!r||r(u,p,y)}},r.exports={assertOptions:function assertOptions(r,c,u){if("object"!=typeof r)throw new TypeError("options must be an object");for(var p=Object.keys(r),y=p.length;y-- >0;){var w=p[y],k=c[w];if(k){var x=r[w],E=void 0===x||k(x,w,r);if(!0!==E)throw new TypeError("option "+w+" must be "+E)}else if(!0!==u)throw Error("Unknown option "+w)}},validators:y}},64867:(r,c,u)=>{"use strict";var p=u(91849),y=Object.prototype.toString;function isArray(r){return"[object Array]"===y.call(r)}function isUndefined(r){return void 0===r}function isObject(r){return null!==r&&"object"==typeof r}function isPlainObject(r){if("[object Object]"!==y.call(r))return!1;var c=Object.getPrototypeOf(r);return null===c||c===Object.prototype}function isFunction(r){return"[object Function]"===y.call(r)}function forEach(r,c){if(null!=r)if("object"!=typeof r&&(r=[r]),isArray(r))for(var u=0,p=r.length;u<p;u++)c.call(null,r[u],u,r);else for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&c.call(null,r[y],y,r)}r.exports={isArray,isArrayBuffer:function isArrayBuffer(r){return"[object ArrayBuffer]"===y.call(r)},isBuffer:function isBuffer(r){return null!==r&&!isUndefined(r)&&null!==r.constructor&&!isUndefined(r.constructor)&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)},isFormData:function isFormData(r){return"undefined"!=typeof FormData&&r instanceof FormData},isArrayBufferView:function isArrayBufferView(r){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer&&r.buffer instanceof ArrayBuffer},isString:function isString(r){return"string"==typeof r},isNumber:function isNumber(r){return"number"==typeof r},isObject,isPlainObject,isUndefined,isDate:function isDate(r){return"[object Date]"===y.call(r)},isFile:function isFile(r){return"[object File]"===y.call(r)},isBlob:function isBlob(r){return"[object Blob]"===y.call(r)},isFunction,isStream:function isStream(r){return isObject(r)&&isFunction(r.pipe)},isURLSearchParams:function isURLSearchParams(r){return"undefined"!=typeof URLSearchParams&&r instanceof URLSearchParams},isStandardBrowserEnv:function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach,merge:function merge(){var r={};function assignValue(c,u){isPlainObject(r[u])&&isPlainObject(c)?r[u]=merge(r[u],c):isPlainObject(c)?r[u]=merge({},c):isArray(c)?r[u]=c.slice():r[u]=c}for(var c=0,u=arguments.length;c<u;c++)forEach(arguments[c],assignValue);return r},extend:function extend(r,c,u){return forEach(c,(function assignValue(c,y){r[y]=u&&"function"==typeof c?p(c,u):c})),r},trim:function trim(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")},stripBOM:function stripBOM(r){return 65279===r.charCodeAt(0)&&(r=r.slice(1)),r}}},37498:(r,c,u)=>{"use strict";u.d(c,{O4:()=>p});Object.freeze({DEV:"dev",FACEBOOK:"facebook",GENERIC:"generic",INTERCOM:"intercom",SMOOCH:"smooch",TELEGRAM:"telegram",TWITTER:"twitter",WEBCHAT:"webchat",WECHAT:"wechat",WHATSAPP:"whatsapp"});var p=Object.freeze({TEXT:"text",POSTBACK:"postback",AUDIO:"audio",IMAGE:"image",VIDEO:"video",DOCUMENT:"document",LOCATION:"location",CONTACT:"contact",BUTTON_MESSAGE:"buttonmessage",CAROUSEL:"carousel",CUSTOM:"custom",WEBCHAT_SETTINGS:"webchatsettings",WHATSAPP_TEMPLATE:"whatsapptemplate",RAW:"raw"});Object.freeze({WAITING:"status_waiting",ATTENDING:"status_attending",IDLE:"status_idle",RESOLVED:"status_resolved"}),Object.freeze({OK:"result_ok",NOK:"result_nok",NOT_SOLVED:"result_not_solved",BANNED:"result_banned"}),Object.freeze({Messaging:{FACEBOOK:"facebook",GENERIC:"generic",IMBEE:"imbee",INTERCOM:"intercom",SMOOCH_WEB:"smooch_web",SMOOCH:"smooch",TELEGRAM:"telegram",TWITTER:"twitter",WEBCHAT:"webchat",WECHAT:"wechat",WHATSAPP:"whatsapp"}})},61228:(r,c,u)=>{"use strict";u.d(c,{UG:()=>y,jU:()=>w,Vb:()=>getWebpackEnvVar,tq:()=>k,kI:()=>cloneObject,xW:()=>x});var p=u(28481),y=function isNode(){return"undefined"!=typeof IS_NODE?IS_NODE:"undefined"!=typeof process&&null!==process.versions&&null!==process.versions.node},w=function isBrowser(){return"undefined"!=typeof IS_BROWSER?IS_BROWSER:"undefined"!=typeof window&&void 0!==window.document&&!window.process};function getWebpackEnvVar(r,c,u){return r||"undefined"!=typeof process&&"MISSING_ENV_VAR"[c]||u}var k=function isMobile(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:460;if(w()){var c=Math.max(document.documentElement.clientWidth,window.innerWidth||0);if(c<r)return!0}return!1};function cloneObject(r){return r?Object.assign({},r):{}}var x=function params2queryString(r){return Object.entries(r).map((function(r){var c=(0,p.Z)(r,2),u=c[0],y=c[1];return"".concat(encodeURIComponent(u),"=").concat(encodeURIComponent(y))})).join("&")}},55637:(r,c,u)=>{"use strict";u.d(c,{B:()=>K});var p=u(22122),y=u(61228),w=u(37498),k=u(67294),x=u(67249),E=u(65309),I=function serialize(r){return{audio:r.src}},K=function Audio(r){var c=r.children;return(0,y.jU)()&&(c=k.createElement("audio",{style:{maxWidth:"100%"},id:"myAudio",controls:!0},k.createElement("source",{src:r.src,type:"audio/mpeg"}),"Your browser does not support this audio format.")),k.createElement(E.v,(0,p.Z)({role:x.K$.AUDIO_MESSAGE,json:I(r)},r,{type:w.O4.AUDIO}),c)};K.serialize=I},72276:(r,c,u)=>{"use strict";u.d(c,{z:()=>le});var p,y=u(22122),w=u(96156),k=u(28481),x=u(32465),E=u(37498),I=u(61228),K=u(67294),J=u(18117),ie=u(67249),oe=u(30305),se=u(78827),ae=u(20829);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,w.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var ue=J.ZP.button(p||(p=(0,x.Z)(["\n  display: flex;\n  width: 100%;\n  max-height: 80px;\n  font-size: 14px;\n  text-align: center;\n  align-content: center;\n  justify-content: center;\n  padding: 12px 32px;\n  font-family: inherit;\n  border: none;\n  border: 1px solid ",";\n  cursor: pointer;\n  outline: 0;\n  border-top-right-radius: ",";\n  border-top-left-radius: ",";\n  border-bottom-right-radius: ",";\n  border-bottom-left-radius: ",";\n  overflow: hidden;\n"])),ie.DM.SEASHELL_WHITE,(function(r){return r.top||"0px"}),(function(r){return r.top||"0px"}),(function(r){return r.bottom||"0px"}),(function(r){return r.bottom||"0px"})),le=function Button(r){var c=(0,K.useContext)(oe.L),u=c.webchatState,p=c.openWebview,w=c.sendPayload,x=c.sendInput,J=c.getThemeProperty,le=c.updateMessage,de=(0,K.useState)(!1),pe=(0,k.Z)(de,2),he=pe[0],ge=pe[1],ve=u.theme,we=ae.M.resolveDisabling(u.theme,r),Se=we.autoDisable,Oe=we.disabledStyle,Ie=function handleClick(c){c.preventDefault();var y=J(ie.e2.CUSTOM_PROPERTIES.buttonMessageType,E.O4.TEXT);if(r.webview?p(r.webview,r.params):r.path?y==E.O4.POSTBACK?w("__PATH_PAYLOAD__".concat(r.path)):x({type:E.O4.TEXT,data:String(r.children),text:String(r.children),payload:"__PATH_PAYLOAD__".concat(r.path)}):r.payload?y==E.O4.POSTBACK?w(r.payload):x({type:E.O4.TEXT,data:String(r.children),text:String(r.children),payload:r.payload}):r.url&&window.open(r.url,r.target||"_blank"),r.onClick&&r.onClick(),r.setDisabled){r.setDisabled(!0);var k=u.messagesJSON.filter((function(c){return c.id==r.parentId}))[0],I=ae.M.getUpdatedMessage(k,{autoDisable:Se,disabledStyle:Oe});le(I)}};return(0,se.SO)({renderBrowser:function renderBrowser(){var c=J(ie.e2.CUSTOM_PROPERTIES.buttonStyle),u=J(ie.e2.CUSTOM_PROPERTIES.customButton);if(u)return K.createElement("div",{onClick:function onClick(r){return Ie(r)}},K.createElement(u,null,r.children));var p=he?J(ie.e2.CUSTOM_PROPERTIES.buttonHoverBackground,ie.DM.CONCRETE_WHITE):J(ie.e2.CUSTOM_PROPERTIES.buttonStyleBackground,ie.DM.SOLID_WHITE),y=J(he?ie.e2.CUSTOM_PROPERTIES.buttonHoverTextColor:ie.e2.CUSTOM_PROPERTIES.buttonStyleColor,ie.DM.SOLID_BLACK);return K.createElement(ue,{theme:ve,onMouseEnter:function onMouseEnter(){return ge(!0)},onMouseLeave:function onMouseLeave(){return ge(!1)},onClick:function onClick(r){return Ie(r)},style:_objectSpread(_objectSpread({},c),{},{color:y,backgroundColor:p},r.disabled&&Se&&Oe),bottom:r.bottomRadius},r.children)},renderNode:function renderNode(){var c=ae.M.constructNodeProps(r);if(r.webview){var u=r.webview,p="";return r.params&&(p=(0,I.xW)(r.params)),K.createElement("button",(0,y.Z)({url:"/webviews/".concat(u.name,"?").concat(p)},c),r.children)}if(r.path){var w="__PATH_PAYLOAD__".concat(r.path);return K.createElement("button",(0,y.Z)({payload:w},c),r.children)}if(r.payload)return K.createElement("button",(0,y.Z)({payload:r.payload},c),r.children);if(r.url)return K.createElement("button",(0,y.Z)({url:r.url,target:r.target},c),r.children);if(r.onClick)return null;throw new Error("Button missing payload, path, webviews, url or onClick")}})};le.serialize=function(r){var c=r.payload;return r.path&&(c="__PATH_PAYLOAD__".concat(r.path)),{button:_objectSpread({payload:c,url:r.url,target:r.target,webview:r.webview&&String(r.webview),title:r.children&&String(r.children)},ae.M.withDisabledProps(r))}}},20829:(r,c,u)=>{"use strict";u.d(c,{M:()=>ie});var p=u(96156),y=u(6610),w=u(5991),k=u(72276),x=u(67249),E=u(71097),I=u(10553),K=u(78827),J=u(36350);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,p.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var ie=function(){function ButtonsDisabler(){(0,y.Z)(this,ButtonsDisabler)}return(0,w.Z)(ButtonsDisabler,null,[{key:"constructBrowserProps",value:function constructBrowserProps(r){var c={disabled:r.disabled};return void 0!==r.autodisable&&(c.autodisable=(0,I.UC)(r.autodisable)),void 0!==r.disabledstyle&&(c.disabledstyle=r.disabledstyle),c}},{key:"constructNodeProps",value:function constructNodeProps(r){var c={};return void 0!==r.autodisable&&(c.autodisable=String(r.autodisable)),void 0!==r.disabledstyle&&(c.disabledstyle=JSON.stringify(r.disabledstyle)),c}},{key:"withDisabledProps",value:function withDisabledProps(r){return{disabled:r.disabled,autodisable:r.autodisable,disabledstyle:r.disabledstyle}}},{key:"resolveDisabling",value:function resolveDisabling(r,c){var u=(0,J.rr)(r),p=void 0!==c.autodisable?c.autodisable:u(x.e2.CUSTOM_PROPERTIES.buttonAutoDisable,x.e2.DEFAULTS.BUTTON_AUTO_DISABLE),y=void 0!==c.disabledstyle?c.disabledstyle:u(x.e2.CUSTOM_PROPERTIES.buttonDisabledStyle,{});return{autoDisable:p,disabledStyle:_objectSpread(_objectSpread({},x.e2.DEFAULTS.BUTTON_DISABLED_STYLE),y)}}},{key:"updateChildrenButtons",value:function updateChildrenButtons(r){var c=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return(0,K.$r)(r,(function(r){return r.type===k.z?c.updateButtons(r,u):r}))}},{key:"updateButtons",value:function updateButtons(r,c){return c=c?{disabled:!0===r.props.disabled?r.props.disabled:c.disabled,setDisabled:c.setDisabled,parentId:c.parentId}:{},_objectSpread(_objectSpread({},r),{},{props:_objectSpread(_objectSpread({},r.props),c)})}},{key:"getUpdatedMessage",value:function getUpdatedMessage(r,c){c.autoDisable,c.disabledStyle;var u=function updateMsgButton(r){return _objectSpread(_objectSpread({},r),{disabled:!0})};return(0,E.C2)(r)&&r.data&&r.data.elements?(r.data.elements=r.data.elements.map((function(r){return _objectSpread(_objectSpread({},r),{buttons:r.buttons.map(u)})})),r):_objectSpread(_objectSpread({},r),{buttons:r.buttons.map(u)})}}]),ButtonsDisabler}()},98216:(r,c,u)=>{"use strict";u.d(c,{J:()=>ve});var p=u(96156),y=u(17375),w=u(22122),k=u(37498),x=u(72378),E=u.n(x),I=u(67294),K=u(67249),J=u(6610),ie=u(5991),oe=u(10379),se=u(86089),ae=u(77608),ue=u(61228),le=u(18422);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,p.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}function _createSuper(r){var c=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function _createSuperInternal(){var u,p=(0,ae.Z)(r);if(c){var y=(0,ae.Z)(this).constructor;u=Reflect.construct(p,arguments,y)}else u=p.apply(this,arguments);return(0,se.Z)(this,u)}}var de=u(10553);function warnDeprecatedProps(r,c){[{legacy:"enableTimestamps",new:"enabletimestamps"},{legacy:"imageStyle",new:"imagestyle"}].forEach((function(u){void 0!==(0,de.$s)(r,u.legacy)&&function warnDeprecated(r,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;console.warn("".concat(u||""," '").concat(r,"' is deprecated. Use '").concat(c,"' instead."))}(u.legacy,u.new,c)}))}var pe=u(78827),he=u(65309),ge=u(38200);function custom_message_ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function custom_message_objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?custom_message_ownKeys(Object(u),!0).forEach((function(c){(0,p.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):custom_message_ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var ve=function customMessage(r){var c=r.name,u=r.component,p=r.defaultProps,x=void 0===p?{}:p,se=r.errorBoundary,ae=void 0===se?function createErrorBoundary(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=r.errorComponent,u=void 0===c?function(r){return I.createElement(le.x,null,"The message cannot be displayed")}:c,p=function(r){(0,oe.Z)(ErrorBoundary,r);var c=_createSuper(ErrorBoundary);function ErrorBoundary(r){var u;return(0,J.Z)(this,ErrorBoundary),(u=c.call(this,r)).state={error:null},u}return(0,ie.Z)(ErrorBoundary,[{key:"componentDidCatch",value:function componentDidCatch(r,c){(0,ue.UG)()&&console.error("Failure at:",r)}},{key:"render",value:function render(){return this.state.error?u(_objectSpread(_objectSpread({},this.props),{},{errorMessage:this.state.error.message})):this.props.children}}],[{key:"getDerivedStateFromError",value:function getDerivedStateFromError(r){return{error:r}}}]),ErrorBoundary}(I.Component);return p}():se,de=function CustomMessage(r){return warnDeprecatedProps(x,"customMessage:"),x.from===K.vw.user&&(x.ack=1),I.createElement(he.v,(0,w.Z)({},E()((0,pe.uw)(x),r),{type:k.O4.CUSTOM}))},ve=function WrappedComponent(r){var p=r.id,k=(r.children,(0,y.Z)(r,["id","children"])),x=function splitChildren(r){var c=r.children,u=function isReply(r){return r.type===ge.j};try{if(!Array.isArray(c)&&!u(c))return{replies:null,childrenWithoutReplies:c};var p=I.Children.toArray(c);return{replies:p.filter(u),childrenWithoutReplies:p.filter((function(r){return!u(r)}))}}catch(r){return{replies:null,childrenWithoutReplies:c}}}(r),E=x.replies,K=x.childrenWithoutReplies;return I.createElement(de,{id:p,json:custom_message_objectSpread(custom_message_objectSpread({},k),{},{id:p,children:K,customTypeName:c})},I.createElement(ae,(0,w.Z)({key:"errorBoundary"},k),I.createElement(u,k,K)),E)};return ve.customTypeName=c,ve.deserialize=function(r){return I.createElement(ve,(0,w.Z)({id:r.id,key:r.key,json:r.data},r.data))},ve}},15400:(r,c,u)=>{"use strict";u.d(c,{B:()=>ue});var p,y=u(22122),w=u(96156),k=u(32465),x=u(61228),E=u(37498),I=u(67294),K=u(18117),J=u(67249),ie=u(30305),oe=u(65309);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,w.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var se=K.ZP.a(p||(p=(0,k.Z)(["\n  display: block;\n  height: 25px;\n  background-color: #f0f0f0;\n  padding: 10px;\n  text-align: center;\n  border-radius: 5px;\n  color: black;\n  font-weight: bold;\n  line-height: 25px;\n  text-decoration: none;\n  border: 1px solid black;\n  opacity: 0.9;\n  &:hover {\n    opacity: 1;\n  }\n"]))),ae=function serialize(r){return{document:r.src}},ue=function Document(r){var c=r.children,u=(0,(0,I.useContext)(ie.L).getThemeProperty)(J.e2.CUSTOM_PROPERTIES.documentDownload,{});return"function"==typeof u&&(u=u(r.from)),(0,x.jU)()&&(c=I.createElement(se,{href:r.src,target:"_blank",rel:"noreferrer",style:_objectSpread({},u.style)},u.text||"Download")),I.createElement(oe.v,(0,y.Z)({role:J.K$.DOCUMENT_MESSAGE,json:ae(r)},r,{type:E.O4.DOCUMENT}),c)};ue.serialize=ae},84209:(r,c,u)=>{"use strict";u.d(c,{W:()=>J});var p,y=u(42921),w=u(32465),k=u(67294),x=u(18117),E=u(67249),I=u(78827),K=x.ZP.div(p||(p=(0,w.Z)(["\n  display: flex;\n  flex-direction: column;\n  width: ","px;\n  margin-right: ","px;\n  border-radius: 6px;\n  border: 1px solid ",";\n  overflow: hidden;\n  justify-content: space-between;\n"])),E.e2.DEFAULTS.ELEMENT_WIDTH,E.e2.DEFAULTS.ELEMENT_MARGIN_RIGHT,E.DM.SEASHELL_WHITE),J=function Element(r){return(0,I.SO)({renderBrowser:function renderBrowser(){return k.createElement(K,null,r.children)},renderNode:function renderNode(){return k.createElement("element",null,r.children)}})};J.serialize=function(r){var c=Object.assign.apply(Object,[{}].concat((0,y.Z)(r.children.filter((function(r){return r&&r.type&&"Button"!=r.type.name})).map((function(r){return r.type.serialize&&r.type.serialize(r.props)})))));return c.buttons=(0,y.Z)(r.children.filter((function(r){return r instanceof Array||r&&r.type&&"Button"==r.type.name})).map((function(r){return r instanceof Array?r.map((function(r){return r&&r.type&&r.type.serialize&&r.type.serialize(r.props).button})):r&&r.type&&r.type.serialize&&r.type.serialize(r.props).button}))),c.buttons[0]instanceof Array&&(c.buttons=c.buttons[0]),c}},40413:(r,c,u)=>{"use strict";u.d(c,{E:()=>se});var p,y=u(22122),w=u(32465),k=u(61228),x=u(37498),E=u(67294),I=u(18117),K=u(67249),J=u(65309),ie=I.ZP.img(p||(p=(0,w.Z)(["\n  border-radius: 8px;\n  max-width: 150px;\n  max-height: 150px;\n  margin: 10px;\n"]))),oe=function serialize(r){return{image:r.src}},se=function Image(r){var c=r.children;return(0,k.jU)()&&(c=E.createElement(ie,{src:r.src})),E.createElement(J.v,(0,y.Z)({role:K.K$.IMAGE_MESSAGE,json:oe(r)},r,{type:x.O4.IMAGE}),c)};se.serialize=oe},56358:(r,c,u)=>{"use strict";u.d(c,{ap:()=>K,YQ:()=>ie,vM:()=>oe,F3:()=>se,IV:()=>ae});var p=u(9980),y=u.n(p),w=new RegExp("<br\\s*/?>","g"),k=new RegExp("&lt;br&gt;","g"),x=function isLineBreakElement(r){return"br"===r.type},E=function withLinksTarget(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",u=r.renderer.rules.link_open||function(r,c,u,p,y){return y.renderToken(r,c,u)};r.renderer.rules.link_open=function(r,p,y,w,k){var x=r[p].attrIndex("target");return x<0?r[p].attrPush(["target",c]):r[p].attrs[x][1]=c,u(r,p,y,w,k)}},I=function configureMarkdownRenderer(){var r=new(y())({html:!0,linkify:!0,typographer:!0});return E(r),r}(),K=function renderMarkdown(r){return r=r.map((function(r){return x(r)?"<br/>":"string"==typeof r?r.replace(w,"<br/>").replace(k,"<br/>"):String(r)})).join(""),I.render(r)},J=function configureLinksRenderer(){var r=new(y())("zero",{linkify:!0}).enable(["linkify"]);return E(r),r}(),ie=function renderLinks(r){return J.render(r)},oe=function serializeMarkdown(r){return(r=Array.isArray(r)?r:[r]).filter((function(r){return x(r)||!r.type})).map((function(r){return Array.isArray(r)?serializeMarkdown(r):x(r)?"&lt;br&gt;":String(r).replace(w,"&lt;br&gt;")})).join("")},se=function toMarkdownChildren(r){return r.map((function(r){return x(r)?"&lt;br&gt;":r}))},ae=function getMarkdownStyle(r,c){return r("markdownStyle",ue(c))},ue=function getDefaultMarkdownStyle(r){return"\n*{\n  margin: 0px;\n}\n\na {\n  text-decoration:none;\n}\n\na:link{\n  color:".concat(r,"; \n}\n\na:visited {\n  color:").concat(r,";\n}\n\na:hover {\n  text-shadow: 0px 1px black;\n}\n\nblockquote {\n  margin: 0;\n  padding-left: 1.4rem;\n  border-left: 4px solid #dadada; \n}\n\npre code {\n  margin: 0;\n  padding: 0;\n  white-space: pre;\n  border: none;\n  background: transparent; \n}\n\npre {\n  background-color: #f8f8f8;\n  border: 1px solid #cccccc;\n  font-size: 13px;\n  line-height: 19px;\n  overflow: auto;\n  padding: 6px 10px;\n  border-radius: 3px; \n}\n\ncode, tt {\n  margin: 0 2px;\n  padding: 0 5px;\n  white-space: nowrap;\n  border: 1px solid #eaeaea;\n  background-color: #f8f8f8;\n  border-radius: 3px; \n}\n\npre {\n  background-color: #f8f8f8;\n  border: 1px solid #cccccc;\n  font-size: 13px;\n  line-height: 19px;\n  overflow: auto;\n  padding: 6px 10px;\n  border-radius: 3px; \n}\n\npre code, pre tt {\n  background-color: transparent;\n  border: none; \n}\n  \ntable, td, th {\n  border: 1px solid black;\n  padding:10px;\n}\n")}},65309:(r,c,u)=>{"use strict";u.d(c,{v:()=>Xe});var p,y,w=u(22122),k=u(96156),x=u(28481),E=u(17375),I=u(32465),K=u(61228),J=u(37498),ie=u(67294),oe=u(19470),se=u.n(oe),ae=u(18117),ue=u(78381),le=u(67249),de=u(30305),pe=u(52086),he=u(78827),ge=u(72276),ve=u(20829),we=u(56358),Se=u(38200);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,k.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var Oe,Ie,De,Pe,Le,je,Fe=ae.ZP.div(p||(p=(0,I.Z)(["\n  display: flex;\n  position: relative;\n  align-items: flex-start;\n"]))),Ue=ae.ZP.div(y||(y=(0,I.Z)(["\n  @import url('https://fonts.googleapis.com/css?family=Lato');\n  font-family: Lato;\n  font-size: 10px;\n  color: ",";\n  width: 100%;\n  text-align: ",";\n  padding: ",";\n  margin-bottom: 5px;\n"])),le.DM.SOLID_BLACK,(function(r){return r.isfromuser?"right":"left"}),(function(r){return r.isfromuser?"0px 15px":"0px 50px"})),$e=function MessageTimestamp(r){var c=r.timestamp,u=r.style,p=r.isfromuser;return ie.createElement(Fe,null,ie.createElement(Ue,{isfromuser:p,style:_objectSpread({},u)},c))};function message_ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function message_objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?message_ownKeys(Object(u),!0).forEach((function(c){(0,k.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):message_ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var Ze=ae.ZP.div(Oe||(Oe=(0,I.Z)(["\n  display: flex;\n  justify-content: ",";\n  position: relative;\n  padding: 0px 6px;\n"])),(function(r){return r.isfromuser?"flex-end":"flex-start"})),We=ae.ZP.div(Ie||(Ie=(0,I.Z)(["\n  width: 28px;\n  padding: 12px 4px;\n  flex: none;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n"]))),Ge=ae.ZP.div(De||(De=(0,I.Z)(["\n  position: relative;\n  margin: 8px;\n  border-radius: 8px;\n  background-color: ",";\n  color: ",";\n  max-width: ",";\n"])),(function(r){return r.bgcolor}),(function(r){return r.color}),(function(r){return r.blob?r.blobwidth?r.blobwidth:"60%":"calc(100% - 16px)"})),Ke=ae.ZP.div(Pe||(Pe=(0,I.Z)(["\n  padding: ",";\n  display: flex;\n  flex-direction: column;\n  white-space: pre-line;\n  ","\n"])),(function(r){return r.blob?"8px 12px":"0px"}),(function(r){return r.markdownstyle})),Je=ae.ZP.div(Le||(Le=(0,I.Z)(["\n  position: absolute;\n  box-sizing: border-box;\n  height: 100%;\n  padding: 18px 0px 18px 0px;\n  display: flex;\n  top: 0;\n  align-items: center;\n"]))),Ye=ae.ZP.div(je||(je=(0,I.Z)(["\n  position: relative;\n  margin: -","px 0px;\n  border: ","px solid ",";\n"])),(function(r){return r.pointerSize}),(function(r){return r.pointerSize}),le.DM.TRANSPARENT),Xe=function Message(r){var c=(0,ie.useContext)(de.f),u=c.defaultTyping,p=c.defaultDelay,y=r.type,k=void 0===y?"":y,I=r.blob,oe=void 0===I||I,ae=r.from,Oe=void 0===ae?le.vw.bot:ae,Ie=r.delay,De=void 0===Ie?p:Ie,Pe=r.typing,Le=void 0===Pe?u:Pe,je=r.children,Fe=r.enabletimestamps,Ue=void 0===Fe?r.enabletimestamps||r.enableTimestamps:Fe,Xe=r.json,Qe=r.style,et=r.imagestyle,tt=void 0===et?r.imagestyle||r.imageStyle:et,rt=(0,E.Z)(r,["type","blob","from","delay","typing","children","enabletimestamps","json","style","imagestyle"]),nt=Oe===le.vw.user,it=Oe===le.vw.bot,ot=r.markdown,st=(0,ie.useContext)(de.L),at=st.webchatState,ct=st.addMessage,ut=st.updateReplies,lt=st.getThemeProperty,dt=(0,ie.useState)({id:r.id||(0,ue.Z)()}),pt=(0,x.Z)(dt,2),ft=pt[0],ht=(pt[1],(0,ie.useState)(!1)),gt=(0,x.Z)(ht,2),mt=gt[0],yt=gt[1];je=ve.M.updateChildrenButtons(je,{parentId:ft.id,disabled:mt,setDisabled:yt});var vt=ie.Children.toArray(je).filter((function(r){return r.type===Se.j})),bt=ie.Children.toArray(je).filter((function(r){return r.type===ge.z})),_t=ie.Children.toArray(je).filter((function(r){return![ge.z,Se.j].includes(r.type)}));nt&&(_t=_t.map((function(r){return"string"==typeof r?(0,we.YQ)(r):r})));var wt=function resolveMessageTimestamps(r,c){var u=r("message.timestamps.format"),p=r("message.timestamps.style");return{timestampsEnabled:Boolean(void 0!==c?c:r("message.timestamps.enable",Boolean(p)||Boolean(u)||!1)),getFormattedTimestamp:u&&u()||(new Date).toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),timestampStyle:p}}(lt,Ue),kt=wt.timestampsEnabled,St=wt.getFormattedTimestamp,Ct=wt.timestampStyle,xt=function getEnvAck(){return pe.r8?1:nt?void 0!==r.ack?r.ack:0:1}();(0,K.jU)()&&((0,ie.useEffect)((function(){var c=Xe,u={id:ft.id,type:k,data:c||_t,timestamp:r.timestamp||St,markdown:ot,from:Oe,buttons:bt.map((function(r){return message_objectSpread({parentId:r.props.parentId,payload:r.props.payload,path:r.props.path,url:r.props.url,target:r.props.target,webview:r.props.webview&&String(r.props.webview),title:r.props.children},ve.M.withDisabledProps(r.props))})),delay:De,typing:Le,replies:vt.map((function(r){return{payload:r.props.payload,path:r.props.path,url:r.props.url,text:r.props.children}})),display:De+Le==0,customTypeName:c.customTypeName,ack:xt};ct(u)}),[]),(0,ie.useEffect)((function(){var r=at.messagesJSON.find((function(r){return r.id===ft.id}));r&&r.display&&0==at.messagesJSON.filter((function(r){return!r.display})).length&&ut(vt)}),[at.messagesJSON]));var Et=lt(le.e2.CUSTOM_PROPERTIES.brandColor,le.DM.BOTONIC_BLUE),Tt=function getBgColor(){return oe?nt?lt(le.e2.CUSTOM_PROPERTIES.userMessageBackground,Et):lt(le.e2.CUSTOM_PROPERTIES.botMessageBackground,le.DM.SEASHELL_WHITE):le.DM.TRANSPARENT},Ot=function getMessageStyle(){return lt(it?le.e2.CUSTOM_PROPERTIES.botMessageStyle:le.e2.CUSTOM_PROPERTIES.userMessageStyle)},At=function hasBlobTick(){return lt("message.".concat(Oe,".blobTick"),!0)},Rt=(r.blob,r.json),It=(0,E.Z)(r,["blob","json"]);return(0,he.SO)({renderBrowser:function renderBrowser(){var r=at.messagesJSON.find((function(r){return r.id===ft.id}));if(!r||!r.display)return ie.createElement(ie.Fragment,null);var c=function getBlobTick(r){var c=5==r?Tt():lt("message.".concat(Oe,".style.borderColor"),le.DM.TRANSPARENT),u=message_objectSpread({},lt("message.".concat(Oe,".blobTickStyle"))),p={};return nt?(u.right=0,u.marginRight=-r,p.borderRight=0,p.borderLeftColor=c):(u.left=0,u.marginLeft=-r,p.borderLeft=0,p.borderRightColor=c),ie.createElement(Je,{style:u},ie.createElement(Ye,{pointerSize:r,style:p}))},u=lt(le.e2.CUSTOM_PROPERTIES.botMessageImage,lt(le.e2.CUSTOM_PROPERTIES.brandImage,le.e2.DEFAULTS.LOGO)),p=lt(le.e2.CUSTOM_PROPERTIES.enableAnimations,!0),y="".concat(k,"-").concat(Oe).concat(function resolveCustomTypeName(){return it&&k===J.O4.CUSTOM?" ".concat(r.customTypeName):""}());return ie.createElement(he.M2,{condition:p,wrapper:function wrapper(r){return ie.createElement(se(),null,r)}},ie.createElement(ie.Fragment,null,ie.createElement(Ze,{isfromuser:nt,style:message_objectSpread({},lt(le.e2.CUSTOM_PROPERTIES.messageStyle))},it&&u&&ie.createElement(We,{style:message_objectSpread(message_objectSpread({},lt(le.e2.CUSTOM_PROPERTIES.botMessageImageStyle)),tt)},ie.createElement("img",{style:{width:"100%"},src:(0,pe.rs)(u)})),ie.createElement(Ge,(0,w.Z)({className:y,bgcolor:Tt(),color:nt?le.DM.SOLID_WHITE:le.DM.SOLID_BLACK,blobwidth:lt(le.e2.CUSTOM_PROPERTIES.botMessageBlobWidth),blob:oe,style:message_objectSpread(message_objectSpread(message_objectSpread({},Ot()),Qe),{opacity:0===xt?.6:1})},rt),ot?ie.createElement(Ke,{blob:oe,dangerouslySetInnerHTML:{__html:(0,we.ap)(_t)},markdownstyle:(0,we.IV)(lt,nt?le.DM.SEASHELL_WHITE:Et)}):ie.createElement(Ke,{blob:oe},_t),bt,Boolean(oe)&&At()&&c(6),Boolean(oe)&&At()&&c(5))),kt&&ie.createElement($e,{timestamp:r.timestamp,style:Ct,isfromuser:nt})))},renderNode:function renderNode(){return k===J.O4.CUSTOM?ie.createElement("message",(0,w.Z)({json:JSON.stringify(Rt),typing:Le,delay:De},It)):ie.createElement("message",(0,w.Z)({typing:Le,delay:De},It),je)}})}},38200:(r,c,u)=>{"use strict";u.d(c,{j:()=>ie});var p,y=u(96156),w=u(32465),k=u(67294),x=u(18117),E=u(67249),I=u(30305),K=u(78827);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,y.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var J=x.ZP.button(p||(p=(0,w.Z)(["\n  width: 100%;\n  padding: 4px 8px;\n  font-family: inherit;\n  border-radius: 8px;\n  cursor: pointer;\n  outline: 0;\n"]))),ie=function Reply(r){var c=(0,k.useContext)(I.L),u=c.sendText,p=c.getThemeProperty,y=function handleClick(c){if(c.preventDefault(),r.children){var p=r.payload;r.path&&(p="__PATH_PAYLOAD__".concat(r.path)),u(r.children,p)}};return(0,K.SO)({renderBrowser:function renderBrowser(){var c=p(E.e2.CUSTOM_PROPERTIES.replyStyle),u=p(E.e2.CUSTOM_PROPERTIES.customReply);return u?k.createElement("div",{onClick:function onClick(r){return y(r)}},k.createElement(u,null,r.children)):k.createElement(J,{style:_objectSpread({border:"1px solid ".concat(p(E.e2.CUSTOM_PROPERTIES.brandColor,E.DM.BOTONIC_BLUE)),color:p(E.e2.CUSTOM_PROPERTIES.brandColor,E.DM.BOTONIC_BLUE)},c),onClick:function onClick(r){return y(r)}},r.children)},renderNode:function renderNode(){if(r.path){var c="__PATH_PAYLOAD__".concat(r.path);return k.createElement("reply",{payload:c},r.children)}return k.createElement("reply",{payload:r.payload},r.children)}})};ie.serialize=function(r){var c=r.payload;return r.path&&(c="__PATH_PAYLOAD__".concat(r.path)),{reply:{title:r.children,payload:c}}}},18422:(r,c,u)=>{"use strict";u.d(c,{x:()=>ie});var p=u(22122),y=u(96156),w=u(37498),k=u(67294),x=u(78827),E=u(56358),I=u(65309);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,y.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var K=function serializeText(r){return(r=Array.isArray(r)?r:[r]).filter((function(r){return!r.type})).map((function(r){return Array.isArray(r)?serializeText(r):String(r)})).join("")},J=function serialize(r){return r.markdown?{text:(0,E.vM)(r.children)}:{text:K(r.children)}},ie=function Text(r){var c={markdown:void 0===r.markdown||r.markdown},u=(0,x.uw)(_objectSpread(_objectSpread(_objectSpread({},r),c),{children:k.Children.toArray(r.children)}));return u.markdown?k.createElement(I.v,(0,p.Z)({json:J(u)},u,{type:w.O4.TEXT}),(0,E.F3)(u.children)):k.createElement(I.v,(0,p.Z)({json:J(u)},u,{type:w.O4.TEXT}),u.children)};ie.serialize=J},452:(r,c,u)=>{"use strict";u.d(c,{n:()=>se});var p,y=u(22122),w=u(32465),k=u(61228),x=u(37498),E=u(67294),I=u(18117),K=u(67249),J=u(65309),ie=I.ZP.video(p||(p=(0,w.Z)(["\n  background-color: ",";\n  border-radius: 8px;\n  max-height: 180px;\n  max-width: 300px;\n  margin: 10px;\n"])),K.DM.SOLID_BLACK_ALPHA_0_5),oe=function serialize(r){return{video:r.src}},se=function Video(r){var c=r.children;return(0,k.jU)()&&(c=E.createElement(ie,{controls:!0},E.createElement("source",{src:r.src}))),E.createElement(J.v,(0,y.Z)({role:K.K$.VIDEO_MESSAGE,json:oe(r)},r,{type:x.O4.VIDEO}),c)};se.serialize=oe},67249:(r,c,u)=>{"use strict";u.d(c,{DM:()=>w,zw:()=>E,Im:()=>x,K$:()=>I,vw:()=>y,e2:()=>k});const p=u.p+"assets/botonic_react_logo100x100.png";var y={bot:"bot",user:"user"},w={APPLE_GREEN:"rgba(58, 156, 53, 1)",BLEACHED_CEDAR_PURPLE:"rgba(46, 32, 59, 1)",BOTONIC_BLUE:"rgba(0, 153, 255, 1)",CACTUS_GREEN:"rgba(96, 115, 94, 1)",CONCRETE_WHITE:"rgba(243, 243, 243, 1)",CURIOUS_BLUE:"rgba(38, 139, 210, 1)",DAINTREE_BLUE:"rgba(0, 43, 53, 1)",ERROR_RED:"rgba(255, 43, 94)",FRINGY_FLOWER_GREEN:"rgba(198, 231, 192, 1)",GRAY:"rgba(129, 129, 129, 1)",LIGHT_GRAY:"rgba(209, 209, 209, 1)",MID_GRAY:"rgba(105, 105, 115, 1)",PIGEON_POST_BLUE_ALPHA_0_5:"rgba(176, 196, 222, 0.5)",SCORPION_GRAY:"rgba(87, 87, 87, 1)",SEASHELL_WHITE:"rgba(241, 240, 240, 1)",SILVER:"rgba(200, 200, 200, 1)",SOLID_BLACK_ALPHA_0_2:"rgba(0, 0, 0, 0.2)",SOLID_BLACK_ALPHA_0_5:"rgba(0, 0, 0, 0.5)",SOLID_BLACK:"rgba(0, 0, 0, 1)",SOLID_WHITE_ALPHA_0_2:"rgba(255, 255, 255, 0.2)",SOLID_WHITE_ALPHA_0_8:"rgba(255, 255, 255, 0.8)",SOLID_WHITE:"rgba(255, 255, 255, 1)",TASMAN_GRAY:"rgba(209, 216, 207, 1)",TRANSPARENT:"rgba(0, 0, 0, 0)",WILD_SAND_WHITE:"rgba(244, 244, 244, 1)"},k={DEFAULTS:{WIDTH:300,HEIGHT:450,TITLE:"Botonic",LOGO:p,PLACEHOLDER:"Ask me something...",FONT_FAMILY:"'Noto Sans JP', sans-serif",BORDER_RADIUS_TOP_CORNERS:"6px 6px 0px 0px",ELEMENT_WIDTH:222,ELEMENT_MARGIN_RIGHT:6,STORAGE_KEY:"botonicState",HOST_ID:"root",ID:"botonic-webchat",BUTTON_AUTO_DISABLE:!1,BUTTON_DISABLED_STYLE:{opacity:.5,cursor:"auto",pointerEvents:"none"}},SELECTORS:{SCROLLABLE_CONTENT:"#botonic-scrollable-content",SIMPLEBAR_CONTENT:".simplebar-content",SIMPLEBAR_WRAPPER:".simplebar-content-wrapper"},CUSTOM_PROPERTIES:{enableAnimations:"animations.enable",markdownStyle:"markdownStyle",scrollbar:"scrollbar",mobileBreakpoint:"mobileBreakpoint",mobileStyle:"mobileStyle",webviewHeaderStyle:"webview.header.style",webviewStyle:"webview.style",brandColor:"brand.color",brandImage:"brand.image",customHeader:"header.custom",headerImage:"header.image",headerStyle:"header.style",headerSubtitle:"header.subtitle",headerTitle:"header.title",botMessageBackground:"message.bot.style.background",botMessageBlobTick:"message.bot.blobTick",botMessageBlobTickStyle:"message.bot.blobTickStyle",botMessageBlobWidth:"message.bot.blobWidth",botMessageBorderColor:"message.bot.style.borderColor",botMessageImage:"message.bot.image",botMessageImageStyle:"message.bot.imageStyle",botMessageStyle:"message.bot.style",customMessageTypes:"message.customTypes",messageStyle:"message.style",userMessageBackground:"message.user.style.background",userMessageBlobTick:"message.user.blobTick",userMessageBlobTickStyle:"message.user.blobTickStyle",userMessageBorderColor:"message.user.style.borderColor",userMessageStyle:"message.user.style",enableMessageTimestamps:"message.timestamps.enable",messageTimestampsFormat:"message.timestamps.format",messageTimestampsStyle:"message.timestamps.style",customIntro:"intro.custom",introImage:"intro.image",introStyle:"intro.style",buttonHoverBackground:"button.hoverBackground",buttonHoverTextColor:"button.hoverTextColor",buttonMessageType:"button.messageType",buttonStyle:"button.style",buttonDisabledStyle:"button.disabledstyle",buttonAutoDisable:"button.autodisable",buttonStyleBackground:"button.style.background",buttonStyleColor:"button.style.color",customButton:"button.custom",alignReplies:"replies.align",customReply:"reply.custom",replyStyle:"reply.style",wrapReplies:"replies.wrap",customTrigger:"triggerButton.custom",triggerButtonImage:"triggerButton.image",triggerButtonStyle:"triggerButton.style",blockInputs:"userInput.blockInputs",documentDownload:"documentDownload",customMenuButton:"userInput.menuButton.custom",customPersistentMenu:"userInput.menu.custom",customSendButton:"userInput.sendButton.custom",darkBackgroundMenu:"userInput.menu.darkBackground",enableAttachments:"userInput.attachments.enable",enableEmojiPicker:"userInput.emojiPicker.enable",enableSendButton:"userInput.sendButton.enable",enableUserInput:"userInput.enable",persistentMenu:"userInput.persistentMenu",textPlaceholder:"userInput.box.placeholder",userInputBoxStyle:"userInput.box.style",userInputStyle:"userInput.style",coverComponent:"coverComponent.component",coverComponentProps:"coverComponent.props",customCarouselLeftArrow:"carousel.arrow.left",customCarouselRightArrow:"carousel.arrow.right",enableCarouselArrows:"carousel.enableArrows"}},x={audio:["audio/mpeg","audio/mp3"],document:["application/pdf"],image:["image/jpeg","image/png"],video:["video/mp4","video/quicktime"]},E=10,I={ATTACHMENT_ICON:"attachment-icon",EMOJI_PICKER_ICON:"emoji-picker-icon",EMOJI_PICKER:"emoji-picker",HEADER:"header",MESSAGE_LIST:"message-list",PERSISTENT_MENU_ICON:"persistent-menu-icon",PERSISTENT_MENU:"persistent-menu",SEND_BUTTON_ICON:"send-button-icon",WEBCHAT:"webchat",TRIGGER_BUTTON:"trigger-button",TYPING_INDICATOR:"typing-indicator",TEXT_BOX:"textbox",WEBVIEW:"webview",WEBVIEW_HEADER:"webview-header",MESSAGE:"message",IMAGE_MESSAGE:"image-message",AUDIO_MESSAGE:"audio-message",VIDEO_MESSAGE:"video-message",DOCUMENT_MESSAGE:"document-message",RAW_MESSAGE:"raw-message"}},30305:(r,c,u)=>{"use strict";u.d(c,{f:()=>w,L:()=>k});var p=u(67294),y=u(24979),w=p.createContext({getString:function getString(){return""},setLocale:function setLocale(){return""},session:{},params:{},input:{},defaultDelay:0,defaultTyping:0}),k=p.createContext({sendText:function sendText(r){},sendAttachment:function sendAttachment(r){},sendPayload:function sendPayload(r){},sendInput:function sendInput(r){},setReplies:function setReplies(r){},openWebview:function openWebview(r){},addMessage:function addMessage(r){},updateMessage:function updateMessage(r){},updateReplies:function updateReplies(r){},updateLatestInput:function updateLatestInput(r){},closeWebview:function closeWebview(){},toggleWebchat:function toggleWebchat(){},getThemeProperty:function getThemeProperty(r){},resolveCase:function resolveCase(){},theme:{},webchatState:y.Cl,updateWebchatDevSettings:function updateWebchatDevSettings(r){return{}},updateUser:function updateUser(r){}})},71097:(r,c,u)=>{"use strict";u.d(c,{Gs:()=>x,F0:()=>E,Or:()=>I,Wv:()=>K,qk:()=>J,nv:()=>ie,C2:()=>oe,UK:()=>se,Ru:()=>ae,T3:()=>le,T_:()=>de,iH:()=>pe,V4:()=>he,yd:()=>ge});var p=u(28481),y=u(37498),w=u(67249),k=function isOfType(r,c){return r===c},x=function isText(r){return k(r.type,y.O4.TEXT)},E=function isAudio(r){return k(r.type,y.O4.AUDIO)},I=function isImage(r){return k(r.type,y.O4.IMAGE)},K=function isVideo(r){return k(r.type,y.O4.VIDEO)},J=function isDocument(r){return k(r.type,y.O4.DOCUMENT)},ie=function isLocation(r){return k(r.type,y.O4.LOCATION)},oe=function isCarousel(r){return k(r.type,y.O4.CAROUSEL)},se=function isCustom(r){return k(r.type,y.O4.CUSTOM)},ae=function isButtonMessage(r){return k(r.type,y.O4.BUTTON_MESSAGE)},ue=[y.O4.AUDIO,y.O4.IMAGE,y.O4.VIDEO,y.O4.DOCUMENT],le=function isMedia(r){return ue.some((function(c){return k(r.type,c)}))},de=function readDataURL(r){return new Promise((function(c,u){var p=new FileReader;p.readAsDataURL(r),p.onload=function(){return c(p.result)},p.onerror=function(r){return u(r)}}))},pe=function isAllowedSize(r){return!(r>1024*w.zw*1024)},he=function getMediaType(r){return Object.entries(w.Im).filter((function(c){var u=(0,p.Z)(c,2);u[0];return u[1].includes(r)})).map((function(r){var c=(0,p.Z)(r,2),u=c[0];c[1];return u}))[0]},ge=function getFullMimeWhitelist(){return Object.values(w.Im).map((function(r){return r.join(",")}))}},45867:(r,c,u)=>{"use strict";u.d(c,{b4:()=>y,KE:()=>w,Og:()=>k,oN:()=>x,_Z:()=>E,xe:()=>I});var p=u(67249),y=function getScrollableContent(r){return r.querySelector(p.e2.SELECTORS.SCROLLABLE_CONTENT)},w=function getScrollableArea(r){var c=function getArea(c){var u=y(r);return u&&u.querySelector(c)};return{full:c(p.e2.SELECTORS.SIMPLEBAR_CONTENT),visible:c(p.e2.SELECTORS.SIMPLEBAR_WRAPPER)}},k=function scrollToBottom(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=r.timeout,u=void 0===c?200:c,p=r.behavior,y=void 0===p?"smooth":p,k=r.host,E=x(k);if(E){var I=w(E).visible;I&&setTimeout((function(){return I.scrollTo({top:I.scrollHeight,behavior:y})}),u)}},x=function getWebchatElement(r){return r&&r.querySelector("#".concat(p.e2.DEFAULTS.ID))},E=function onDOMLoaded(r){/complete|interactive|loaded/.test(document.readyState)?r():document.addEventListener("DOMContentLoaded",r,!1)},I=function isShadowDOMSupported(){try{return document.head.createShadowRoot||document.head.attachShadow}catch(r){return!1}}},52086:(r,c,u)=>{"use strict";u.d(c,{r8:()=>p,rs:()=>y});var p=!1,y=function resolveImage(r){return w(r)?r:function staticAsset(r){try{if(w(r))return r;var c=document.querySelector('script[src$="webchat.botonic.js"]').getAttribute("src"),u=c.split("/").pop();return c.replace("/"+u,"/")+r}catch(c){return console.error("Could not resolve path: '".concat(r,"'")),r}}(r)},w=function isURL(r){return!!new RegExp(/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/).test(r)}},10553:(r,c,u)=>{"use strict";u.d(c,{$s:()=>y,UC:()=>strToBool,Xc:()=>w});var p=u(28481),y=function getProperty(r,c){if(c){for(var u=c.split("."),p=0;p<u.length;p++){var y=u[p];if(!r||!r.hasOwnProperty(y))return;r=r[y]}return r}};function strToBool(r){return r=String(r),/^\s*(true|1|on)\s*$/i.test(r)}var w=function mapObject(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(r){var c=(0,p.Z)(r,2);return[c[0],c[1]]};return r&&Object.entries(r).map(c).reduce((function(r,c){return r[c[0]]=c[1],r}),{})}},78827:(r,c,u)=>{"use strict";u.d(c,{M2:()=>x,SO:()=>renderComponent,uw:()=>E,$r:()=>K});var p=u(28481),y=u(61228),w=u(67294),k=u(10553),x=function ConditionalWrapper(r){var c=r.condition,u=r.wrapper,p=r.children;return c?u(p):p};function renderComponent(r){var c=r.renderBrowser,u=r.renderNode;if((0,y.jU)())return c();if((0,y.UG)())return u();throw new Error("Unexpected process type. Not recognized as browser nor node")}var E=function mapObjectNonBooleanValues(r){return(0,k.Xc)(r,(function(r){var c=(0,p.Z)(r,2),u=c[0],y=c[1];return"boolean"==typeof y?[u,Number(y)]:[u,y]}))},I=function hasComplexChildren(r){return function hasChildren(r){return(0,w.isValidElement)(r)&&Boolean(r.props.children)}(r)&&w.Children.toArray(r.props.children).reduce((function(r,c){return r||(0,w.isValidElement)(c)}),!1)},K=function deepMapWithIndex(r,c){return w.Children.toArray(r).map((function(u,p){return(0,w.isValidElement)(u)&&I(u)?c((0,w.cloneElement)(u,Object.assign(Object.assign({},u.props),{children:deepMapWithIndex(u.props.children,c)})),p,r):c(u,p,r)}))}},36350:(r,c,u)=>{"use strict";u.d(c,{rr:()=>J,wH:()=>oe,WJ:()=>se,JQ:()=>ae});var p=u(28481),y=u(72378),w=u.n(y),k=u(42238),x=u.n(k),E=u(78381),I=u(67249),K=u(10553),J=function _getThemeProperty(r){return function(c){for(var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,y=0,w=Object.entries(I.e2.CUSTOM_PROPERTIES);y<w.length;y++){var k=(0,p.Z)(w[y],2),x=k[0],E=k[1];if(E==c){var J=(0,K.$s)(r,E);if(void 0!==J)return J;var ie=(0,K.$s)(r,x);return void 0!==ie?ie:u}}}},ie=function createUser(){var r=(new(x())).getResult(),c="".concat(r.os.name," ").concat(r.browser.name);return r.device&&r.device.type&&(c="".concat(r.device.type," ").concat(c)),{id:(0,E.Z)(),name:c}},oe=function initSession(r){r||(r={});var c=r.user&&void 0!==r.user.id;return r.user&&0!==Object.keys(r.user).length&&c||(r.user=c?ie():w()(r.user,ie())),r},se=function shouldKeepSessionOnReload(r){var c=r.initialDevSettings,u=r.devSettings;return!c||u&&u.keepSessionOnReload},ae=function getServerErrorMessage(r){return r&&r.errorMessage?"function"==typeof r.errorMessage?r.errorMessage():r.errorMessage:"Connection issues"}},24979:(r,c,u)=>{"use strict";u.d(c,{IC:()=>useComponentVisible,Cq:()=>J,D9:()=>usePrevious,Ph:()=>useTyping,dF:()=>useWebchat,Cl:()=>K});var p=u(96156),y=u(28481),w=u(67294),k=u(67249),x=u(45867),E=u(42921);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,p.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var I=function messagesReducer(r,c){switch(c.type){case"addMessage":return function addMessageReducer(r,c){return r.messagesJSON&&r.messagesJSON.find((function(r){return r.id===c.payload.id}))?r:_objectSpread(_objectSpread({},r),{},{messagesJSON:[].concat((0,E.Z)(r.messagesJSON||[]),[c.payload])})}(r,c);case"addMessageComponent":return _objectSpread(_objectSpread({},r),{},{messagesComponents:[].concat((0,E.Z)(r.messagesComponents||[]),[c.payload])});case"updateMessage":return function updateMessageReducer(r,c){var u=r.messagesJSON.map((function(r){return r.id})).indexOf(c.payload.id);if(u>-1){var p=r.messagesComponents[u],y={};if(p){var w=_objectSpread(_objectSpread({},p),{props:_objectSpread(_objectSpread({},p.props),{},{ack:c.payload.ack})});y={messagesComponents:[].concat((0,E.Z)(r.messagesComponents.slice(0,u)),[_objectSpread({},w)],(0,E.Z)(r.messagesComponents.slice(u+1)))}}return _objectSpread(_objectSpread({},r),{},{messagesJSON:[].concat((0,E.Z)(r.messagesJSON.slice(0,u)),[_objectSpread({},c.payload)],(0,E.Z)(r.messagesJSON.slice(u+1)))},y)}return r}(r,c);case"updateReplies":return _objectSpread(_objectSpread({},r),{},{replies:c.payload});case"clearMessages":return _objectSpread(_objectSpread({},r),{},{messagesJSON:[],messagesComponents:[]});case"updateLastMessageDate":return _objectSpread(_objectSpread({},r),{},{lastMessageUpdate:c.payload});default:throw new Error}};function webchat_reducer_ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function webchat_reducer_objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?webchat_reducer_ownKeys(Object(u),!0).forEach((function(c){(0,p.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):webchat_reducer_ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}function webchatReducer(r,c){switch(c.type){case"updateWebview":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),c.payload);case"updateSession":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{session:webchat_reducer_objectSpread({},c.payload)});case"updateTyping":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{typing:c.payload});case"updateTheme":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),c.payload);case"updateHandoff":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{handoff:c.payload});case"toggleWebchat":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{isWebchatOpen:c.payload});case"toggleEmojiPicker":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{isEmojiPickerOpen:c.payload});case"togglePersistentMenu":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{isPersistentMenuOpen:c.payload});case"toggleCoverComponent":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{isCoverComponentOpen:c.payload});case"setError":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{error:c.payload||{}});case"setOnline":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{online:c.payload});case"updateDevSettings":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{devSettings:webchat_reducer_objectSpread({},c.payload)});case"updateLatestInput":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{latestInput:c.payload});case"updateLastRoutePath":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{lastRoutePath:c.payload});case"setCurrentAttachment":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{currentAttachment:c.payload});case"updateJwt":return webchat_reducer_objectSpread(webchat_reducer_objectSpread({},r),{},{jwt:c.payload});default:return I(r,c)}}function hooks_ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function hooks_objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?hooks_ownKeys(Object(u),!0).forEach((function(c){(0,p.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):hooks_ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var K={width:k.e2.DEFAULTS.WIDTH,height:k.e2.DEFAULTS.HEIGHT,messagesJSON:[],messagesComponents:[],replies:[],latestInput:{},typing:!1,webview:null,webviewParams:null,session:{user:null},lastRoutePath:null,handoff:!1,theme:{headerTitle:k.e2.DEFAULTS.TITLE,brandColor:k.DM.BOTONIC_BLUE,brandImage:k.e2.DEFAULTS.LOGO,triggerButtonImage:void 0,textPlaceholder:k.e2.DEFAULTS.PLACEHOLDER,style:{fontFamily:k.e2.DEFAULTS.FONT_FAMILY}},themeUpdates:{},error:{},online:!0,devSettings:{keepSessionOnReload:!1},isWebchatOpen:!1,isEmojiPickerOpen:!1,isPersistentMenuOpen:!1,isCoverComponentOpen:!1,lastMessageUpdate:void 0,currentAttachment:void 0,jwt:null};function useWebchat(){var r=(0,w.useReducer)(webchatReducer,K),c=(0,y.Z)(r,2),u=c[0],p=c[1];return{webchatState:u,webchatDispatch:p,addMessage:function addMessage(r){return p({type:"addMessage",payload:r})},addMessageComponent:function addMessageComponent(r){return p({type:"addMessageComponent",payload:r})},updateMessage:function updateMessage(r){return p({type:"updateMessage",payload:r})},updateReplies:function updateReplies(r){return p({type:"updateReplies",payload:r})},updateLatestInput:function updateLatestInput(r){return p({type:"updateLatestInput",payload:r})},updateTyping:function updateTyping(r){return p({type:"updateTyping",payload:r})},updateWebview:function updateWebview(r,c){return p({type:"updateWebview",payload:{webview:r,webviewParams:c}})},updateSession:function updateSession(r){p({type:"updateSession",payload:r})},updateLastRoutePath:function updateLastRoutePath(r){return p({type:"updateLastRoutePath",payload:r})},updateHandoff:function updateHandoff(r){return p({type:"updateHandoff",payload:r})},updateTheme:function updateTheme(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,u=void 0!==c?{theme:r,themeUpdates:c}:{theme:r};p({type:"updateTheme",payload:u})},updateDevSettings:function updateDevSettings(r){return p({type:"updateDevSettings",payload:r})},toggleWebchat:function toggleWebchat(r){return p({type:"toggleWebchat",payload:r})},toggleEmojiPicker:function toggleEmojiPicker(r){return p({type:"toggleEmojiPicker",payload:r})},togglePersistentMenu:function togglePersistentMenu(r){return p({type:"togglePersistentMenu",payload:r})},toggleCoverComponent:function toggleCoverComponent(r){return p({type:"toggleCoverComponent",payload:r})},setError:function setError(r){return p({type:"setError",payload:r})},setOnline:function setOnline(r){return p({type:"setOnline",payload:r})},clearMessages:function clearMessages(){p({type:"clearMessages"})},updateLastMessageDate:function updateLastMessageDate(r){p({type:"updateLastMessageDate",payload:r})},setCurrentAttachment:function setCurrentAttachment(r){p({type:"setCurrentAttachment",payload:r})},updateJwt:function updateJwt(r){p({type:"updateJwt",payload:r})}}}function useTyping(r){var c=r.webchatState,u=r.updateTyping,p=r.updateMessage,y=r.host;(0,w.useEffect)((function(){var r,w;(0,x.Og)({host:y});try{var k=c.messagesJSON.filter((function(r){return!r.display}))[0];k.delay&&k.typing?r=setTimeout((function(){return u(!0)}),1e3*k.delay):k.typing&&u(!0);var E=k.delay+k.typing;E&&(w=setTimeout((function(){p(hooks_objectSpread(hooks_objectSpread({},k),{},{display:!0})),u(!1)}),1e3*E))}catch(r){}return function(){clearTimeout(r),clearTimeout(w)}}),[c.messagesJSON,c.typing])}function usePrevious(r){var c=(0,w.useRef)();return(0,w.useEffect)((function(){c.current=r})),c.current}function useComponentVisible(r,c){var u=(0,w.useState)(r),p=(0,y.Z)(u,2),k=p[0],x=p[1],E=(0,w.useRef)(null),I=function handleClickOutside(r){E.current&&!E.current.contains(r.path[0])&&(x(!1),c())};return(0,w.useEffect)((function(){return document.addEventListener("click",I,!1),function(){document.removeEventListener("click",I,!1)}})),{ref:E,isComponentVisible:k,setIsComponentVisible:x}}var J=function useComponentWillMount(r){(0,w.useMemo)(r,[])}},7265:(r,c,u)=>{"use strict";u.d(c,{Z:()=>ie});var p=u(67294),y=u(4675),w=u(40121),k=u(82543),x=u(93379),E=u.n(x),I=u(54316),K={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};E()(I.Z,K);const J=I.Z.locals||{};const ie=function CarouselArrow(r){var c=r.scrollCarouselBy,u=r.direction,x=[J.commonArrow,J["".concat(u,"Arrow")]].join(" "),E=u===w.Nm.Left?-y.Z.CAROUSEL_MOVEMENT_DISTANCE:y.Z.CAROUSEL_MOVEMENT_DISTANCE;return p.createElement("button",{type:"button",className:x,onClick:function onClick(){return c(E)}},p.createElement("img",{alt:"".concat(u," arrow"),className:J["".concat(u,"arrowimage")],src:k.Z}))}},2577:(r,c,u)=>{"use strict";u.d(c,{Z:()=>ie});var p=u(67294),y=u(14613),w=u(30305),k=u(98216),x=u(93379),E=u.n(x),I=u(49448),K={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};E()(I.Z,K);const J=I.Z.locals||{};const ie=(0,k.J)({name:"end-chat-message",component:function ChatEndedMessage(){var r,c,u=(0,p.useContext)(w.L).webchatState.theme;return p.createElement("p",{className:J.text},null!==(r=null==u||null===(c=u.endConversationScreen)||void 0===c?void 0:c.endedMessageLabel)&&void 0!==r?r:y.Z.t("chatEnded"))},defaultProps:{style:{width:"100%",paddingLeft:"12%",position:"relative",background:"rgba(0,0,0,0)",boxSizing:"unset"},imagestyle:{display:"none"},blob:!1,enabletimestamps:!1}})},20192:(r,c,u)=>{"use strict";u.d(c,{Z:()=>oe});var p=u(28481),y=u(67294),w=u(14613),k=u(30305),x=u(40121),E=u(93379),I=u.n(E),K=u(29341),J={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};I()(K.Z,J);const ie=K.Z.locals||{};const oe=function StartChatButton(){var r,c=(0,y.useState)(!1),u=(0,p.Z)(c,2),E=u[0],I=u[1],K=(0,y.useContext)(k.L),J=K.sendPayload,oe=K.webchatState.theme;return y.createElement("div",{className:ie.customStartChatButtonWrapper},y.createElement("button",{type:"button",className:ie.customStartChatButton,onMouseEnter:function onMouseEnter(){return I(!0)},onMouseLeave:function onMouseLeave(){return I(!1)},style:{color:E?oe.startChatButton.hoverTextColor:oe.startChatButton.textColor,backgroundColor:E?oe.startChatButton.hoverBackgroundColor:oe.startChatButton.backgroundColor,borderColor:E?oe.startChatButton.hoverBorderColor:oe.startChatButton.borderColor},onClick:function onClick(){return function startNewChat(){J(x.Qx.StartNewChat)}()}},y.createElement("p",null,null!==(r=oe.startChatButton.startNewChatLabel)&&void 0!==r?r:w.Z.t("startChat"))))}},75741:(r,c,u)=>{"use strict";u.d(c,{Z:()=>pe});var p=u(28481),y=u(67294),w=u(30305),k=u(84209),x=u(72276),E=u(98216),I=u(4675),K=u(40121),J=u(30908),ie=u(7265),oe=u(93379),se=u.n(oe),ae=u(32875),ue={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};se()(ae.Z,ue);const le=ae.Z.locals||{};var de=u(25092);const pe=(0,E.J)({name:"carousel",component:function Carousel(r){var c=r.responses,u=r.carousel,E=r.id,oe=r.mediaType,se=(0,y.useRef)(void 0),ae=(0,y.useState)(!1),ue=(0,p.Z)(ae,2),pe=ue[0],he=ue[1],ge=(0,y.useState)(u.elements.length>1),ve=(0,p.Z)(ge,2),we=ve[0],Se=ve[1],Oe=function setArrowsVisibility(r){var c=r.currentTarget,u=c.scrollWidth-c.offsetWidth;he(0!==c.scrollLeft),Se(c.scrollLeft<u)};(0,y.useEffect)((function(){var r=se.current;r&&r.addEventListener?r.addEventListener("scroll",Oe,!1):r&&r.attachEvent&&r.attachEvent("scroll",Oe)}),[se.current]);var Ie=(0,y.useContext)(w.L).webchatState.theme,De=function scrollCarouselBy(r){se.current.scrollBy({left:r,behavior:"smooth"})};return y.createElement(y.Fragment,null,y.createElement(J.Z,{responses:c,id:E}),y.createElement("div",{ref:se,className:le.carousel,"data-qa":"carousel"},u.elements.slice(0,I.Z.MAX_ALLOWED_CAROUSEL_CARDS).map((function(r,c){var u,p,w;return y.createElement("div",{className:le.carouselItem,key:"".concat(E,"-").concat(c),"data-qa":"carouselItem-".concat(c)},y.createElement(k.W,null,r.imageUrl&&y.createElement("div",{className:le.carouselItemImage,style:{background:"url(".concat(r.imageUrl,") center center / cover no-repeat")},"data-qa":"carouselImage"}),y.createElement("div",{className:le.carouselItemTitle,"data-qa":"carouselTitle"},r.title),y.createElement("div",{title:r.text,className:le.carouselItemText,style:null===(u=Ie.carousel)||void 0===u||null===(p=u.text)||void 0===p?void 0:p.style,"data-qa":"carouselText"},r.text),null===(w=r.buttons)||void 0===w?void 0:w.slice(0,I.Z.MAX_ALLOWED_BUTTONS_CAROUSEL).map((function(r){return r.type===K.L$.Payload?y.createElement(x.z,{key:"".concat(E,"-").concat(c),payload:r.payload,onClick:function onClick(){!function clickFun(r){localStorage.setItem("vaComponent",JSON.stringify({component_type:oe,payload_type:r}))}(r.type)}},r.displayText):y.createElement(x.z,{key:"".concat(E,"-").concat(c),url:(0,de.Z)(r),target:r.target},r.displayText)}))))}))),y.createElement("div",null,pe&&y.createElement(ie.Z,{direction:K.Nm.Left,scrollCarouselBy:De}),we&&y.createElement(ie.Z,{direction:K.Nm.Right,scrollCarouselBy:De})))},defaultProps:{style:{background:"transparent",maxWidth:"calc(100% - 43px)"},blob:!1}})},87841:(r,c,u)=>{"use strict";u.d(c,{Z:()=>k});var p=u(67294),y=u(98216),w=u(30908);const k=(0,y.J)({name:"customText",component:function CustomText(r){var c=r.responses,u=r.type,y=r.id;return p.createElement(w.Z,{responses:c,type:u,id:y})},defaultProps:{style:{background:"transparent",width:"100%"},blob:!1}})},4881:(r,c,u)=>{"use strict";u.d(c,{Z:()=>x});var p=u(67294),y=u(98216),w=u(40121),k=u(30908);const x=(0,y.J)({name:"htmlContent",component:function HtmlContent(r){var c=r.content,u=r.id;return p.createElement(p.Fragment,null,p.createElement(k.Z,{responses:c,id:u,type:w.DD.HtmlContent}))},defaultProps:{style:{background:"transparent",width:"100%"},blob:!1}})},38086:(r,c,u)=>{"use strict";u.d(c,{Z:()=>mt});var p=u(17375),y=u(92137),w=u(87757),k=u.n(w),x=u(67294),E=u(14613),I=u(55877),K=u(40121),J=u(4675),ie=u(1699),oe=u(85829),se=u(14667),ae=function validateButton(r){var c,u;return!(!r.type||!r.displayText)&&(!!(r.type!==K.L$.Link||(null!==(c=r.url)&&void 0!==c&&c.length||null!==(u=r.payload)&&void 0!==u&&u.length)&&Object.values(ie.e).includes(r.target))&&!([K.L$.Payload,K.L$.Call].includes(r.type)&&!r.payload.length))},ue=u(8247),le=u(58055),de=u.n(le),pe=u(2577),he=u(98216),ge=u(30908),ve=u(93379),we=u.n(ve),Se=u(40528),Oe={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};we()(Se.Z,Oe);const Ie=Se.Z.locals||{};const De=(0,he.J)({name:"CustomTextWithTimestampUser",component:function CustomTextWithTimestampUser(r){var c=r.id,u=r.responses,p=r.timestamp;return x.createElement(x.Fragment,null,x.createElement(ge.Z,{id:c,responses:u,from:"user"}),x.createElement("div",{className:Ie.timestamp},p))},defaultProps:{style:{background:"transparent",width:"100%",margin:"7px 8px 6px 6px"},blob:!1,from:"user",enabletimestamps:!1}});var Pe=u(67090),Le={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};we()(Pe.Z,Le);const je=Pe.Z.locals||{};const Fe=(0,he.J)({name:"CustomTextWithTimestampBot",component:function CustomTextWithTimestampBot(r){var c=r.id,u=r.responses,p=r.timestamp;return x.createElement(x.Fragment,null,x.createElement(ge.Z,{id:c,responses:u,from:"bot"}),x.createElement("div",{className:je.timestamp},p))},defaultProps:{style:{background:"transparent",width:"100%"},blob:!1,enabletimestamps:!1}});var Ue=u(39605),$e={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};we()(Ue.Z,$e);const Ze=Ue.Z.locals||{};const We=(0,he.J)({name:"end-chat-message",component:function InactiveChatMessage(){return x.createElement("p",{className:Ze.text},E.Z.t("inactiveChat"))},defaultProps:{style:{width:"100%",paddingLeft:"12%",position:"relative",background:"rgba(0,0,0,0)",boxSizing:"unset"},imagestyle:{display:"none"},blob:!1,enabletimestamps:!1}});var Ge=u(38200),Ke=u(55140),Je=u(18422);const Ye=function DisplayText(r){var c=r.responses,u=r.id,p=r.children;return c.map((function(r,y){return x.createElement(Je.x,{key:"".concat(u,"-").concat(y),id:"".concat(u,"-").concat(y)},(0,Ke.I)(r),y===c.length-1&&p)}))};const Xe=function QuickReplies(r){var c=r.responses,u=r.quickActions,p=r.id,y=r.textResponse,w=(0,Ke.Z)(y?[y]:c);return x.createElement(Ye,{responses:w,id:p},u.elements.slice(0,J.Z.MAX_ALLOWED_QUICK_REPLIES).map((function(r,c){return x.createElement(Ge.j,{key:"".concat(p,"-").concat(c),payload:r.payload},r.displayText)})))};var Qe=u(87841),et=u(72276),tt=u(25092);const rt=function Buttons(r){var c=r.responses,u=r.quickActions,p=r.id,y=r.mediaType,w=r.textResponse,k=(0,Ke.Z)(w?[w]:c);return x.createElement(Ye,{id:p,responses:k},u.elements.slice(0,J.Z.MAX_ALLOWED_BUTTONS).map((function(r,c){return r.type===K.L$.Payload?x.createElement(et.z,{key:"".concat(p,"-").concat(c),payload:r.payload,onClick:function onClick(){!function clickFun(r){localStorage.setItem("vaComponent",JSON.stringify({component_type:y,payload_type:r}))}(r.type)}},r.displayText):x.createElement(et.z,{key:"".concat(p,"-").concat(c),url:(0,tt.Z)(r),target:r.target},r.displayText)})))};var nt,it=u(75741),ot=u(28481),st=u(96156),at=u(40413),ct=u(452),ut=u(55637),lt=u(15400),dt=u(30159),pt=(nt={},(0,st.Z)(nt,K.vW.Image,(function(r){return x.createElement(at.E,r)})),(0,st.Z)(nt,K.vW.Video,(function(r){return x.createElement(ct.n,r)})),(0,st.Z)(nt,K.vW.Audio,(function(r){return x.createElement(ut.B,r)})),(0,st.Z)(nt,K.vW.File,(function(r){return x.createElement(lt.B,r)})),nt);const ft=function Media(r){var c,u=r.id,p=r.responses,y=r.media,w=r.from,k=!p||0===(null==p?void 0:p.length)||p.every((function(r){return(0,oe.E)(r)})),E=(0,x.useState)(y.url||(null===(c=dt.ju.current[u])||void 0===c?void 0:c.currentUrl)),I=(0,ot.Z)(E,2),K=I[0],J=I[1];return(0,x.useEffect)((function(){var r="twilio"===(null==y?void 0:y.provider),c=function twilioMediaHandle(r){var c=r.currentUrl;c&&J(c)};return r&&dt.ju.on(u,c),function(){r&&dt.ju.off(u,c)}}),[u,y.provider]),x.createElement(x.Fragment,null,!k&&!y.ignoreValid&&x.createElement(Qe.Z,{id:u,responses:p}),K&&pt[y.mediaType]({src:K,from:w}))};var ht=u(4881),gt=function RichMediaMessage(r){var c=r.id,u=r.responses,p=r.payload,y=r.hasConversationEnded,w=r.chatIsInactive,k=r.from,ie=r.timestamp,le=function toCamelCase(r){var c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return de()(r,{deep:c})}(p||{}),he=le.mediaType,ge=le.quickActions,ve=le.carousel,we=le.media,Se=le.content,Oe=le.textResponse;if(function handleScroll(){var r=document.querySelector("#botonic-webchat");r&&((0,ue.g)()?r.ontouchmove={}:r.ontouchmove=function(r){return r.preventDefault()})}(),w)return x.createElement(We,null);if(y)return x.createElement(pe.Z,null);if(ie&&he===K.DD.Text){if("user"===k)return x.createElement(De,{id:c,responses:u,timestamp:ie});if("bot"===k)return x.createElement(Fe,{id:c,responses:u,timestamp:ie})}if(!c)return x.createElement(Qe.Z,{responses:[E.Z.t("invalidId")],id:(0,I.v4)()});if(!function isValidRichMediaMessage(r,c){var u,p,y,w,k,x,E;switch((c||{}).mediaType){case K.DD.Buttons:if(null===(u=c.quickActions)||void 0===u||null===(p=u.elements)||void 0===p||!p.length)return se.Z.logError(new Error("Empty buttons payload received")),!1;if(!c.quickActions.elements.slice(0,J.Z.MAX_ALLOWED_BUTTONS).every(ae))return se.Z.logError(new Error("Wrong buttons payload format received")),!1;break;case K.DD.QuickReplies:if(!c.quickActions||!c.quickActions.elements)return se.Z.logError(new Error("Empty quick replies payload received")),!1;if(c.quickActions.elements.some((function(r){return r.type!==K.L$.Payload||!r.payload||!r.displayText})))return se.Z.logError(new Error("Wrong quick reply payload format received")),!1;break;case K.DD.Carousel:return null!==(y=c.carousel)&&void 0!==y&&null!==(w=y.elements)&&void 0!==w&&w.length?c.carousel.elements.every((function(r){var c,u;return(0,oe.E)(r.title)||null===(c=r.buttons)||void 0===c||!c.length?(se.Z.logError(new Error("Wrong carousel payload format received - card title, and one button at least was expected")),!1):null===(u=r.buttons)||void 0===u||!u.length||r.buttons.every(ae)})):(se.Z.logError(new Error("Empty carousel payload received")),!1);case K.DD.Media:if(null!==(k=c.media)&&void 0!==k&&k.ignoreValid)return!0;var I,ie;if(null===(x=c.media)||void 0===x||!x.mediaType||!c.media.url)return se.Z.logError(new Error("Missing ".concat(null!==(I=null===(ie=c.media)||void 0===ie?void 0:ie.mediaType)&&void 0!==I?I:""," mediaType or url from Media"))),!1;if(!Object.values(K.vW).includes(c.media.mediaType))return!1;break;case K.DD.MultiContent:var ue;return!!c.content||(se.Z.logError(new Error("Missing ".concat(null!==(ue=c.mediaType)&&void 0!==ue?ue:""," mediaType"))),!1);case K.DD.HtmlContent:return!(null===(E=c.content)||void 0===E||!E.length)||(se.Z.logError(new Error("Wrong HTML content payload format received")),!1);case K.DD.CustomText:return!!c.textResponse||(se.Z.logError(new Error("Wrong Custom text payload format received")),!1);default:if(!r||0===r.length)return se.Z.logError(new Error("An utterance was expected, received null or undefined")),!1}return!0}(u,le))return x.createElement(Qe.Z,{responses:[E.Z.t("invalidRichMedia")],id:c});switch(he){case K.DD.MultiContent:return p.content.map((function(r){return RichMediaMessage({id:c,responses:[],payload:r,hasConversationEnded:y,chatIsInactive:w,from:k,timestamp:ie})}));case K.DD.Buttons:return x.createElement(rt,{responses:u,textResponse:Oe,quickActions:ge,id:c,mediaType:K.DD.Buttons});case K.DD.QuickReplies:return x.createElement(Xe,{responses:u,textResponse:Oe,quickActions:ge,id:c});case K.DD.Carousel:return x.createElement(it.Z,{responses:u,carousel:ve,id:c,mediaType:K.DD.Carousel});case K.DD.Media:return x.createElement(ft,{responses:u,media:we,id:c,from:k});case K.DD.HtmlContent:return x.createElement(ht.Z,{content:Se,id:c});case K.DD.CustomText:return x.createElement(Qe.Z,{responses:[Oe],id:(0,I.v4)()});default:return x.createElement(Qe.Z,{responses:u,id:c})}};gt.botonicInit=function(){var r=(0,y.Z)(k().mark((function _callee(r){var c,u,y,w,x,E;return k().wrap((function _callee$(k){for(;;)switch(k.prev=k.next){case 0:if(!(c=r.input).conversationEngine){k.next=4;break}return u=c.conversationEngine,y=u.id,w=u.response,x=w.responses,E=(0,p.Z)(w,["responses"]),k.abrupt("return",{id:y,responses:x,payload:E});case 4:return k.abrupt("return",{id:"",responses:[],payload:{mediaType:K.DD.Text}});case 5:case"end":return k.stop()}}),_callee)})));return function(c){return r.apply(this,arguments)}}(),gt.defaultProps={hasConversationEnded:!1,chatIsInactive:!1,payload:null,from:"bot",timestamp:null};const mt=gt},30908:(r,c,u)=>{"use strict";u.d(c,{Z:()=>se});var p=u(67294),y=u(30305),w=u(40121),k=u(85829),x=u(55140),E=u(93379),I=u.n(E),K=u(13453),J={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};I()(K.Z,J);const ie=K.Z.locals||{};var oe=function TextBubble(r){var c=r.id,u=r.responses,E=r.type,I=r.from,K=(0,p.useContext)(y.L).webchatState.theme;return u.map((function(r,u){var y,J,oe,se;if((0,k.E)(r))return null;var ae=E===w.DD.HtmlContent?r:(0,x.I)(r),ue=function joinClassNames(r){return r.filter((function(r){return!!r})).join(" ")}([ie.textBubbleContainer,"user"===I?ie.user:ie.bot,E===w.DD.HtmlContent?ie.htmlContentContainer:""]);return p.createElement("div",{className:ue,style:"user"===I?null===(y=K.message)||void 0===y||null===(J=y.user)||void 0===J?void 0:J.style:null===(oe=K.message)||void 0===oe||null===(se=oe.bot)||void 0===se?void 0:se.style,key:"".concat(c,"-").concat(u),"data-qa":"textBubble-".concat(u),dangerouslySetInnerHTML:{__html:ae}})}))};oe.defaultProps={from:"bot",type:w.DD.Text};const se=oe},79629:(r,c,u)=>{"use strict";u.d(c,{kr:()=>pe,LP:()=>le,bG:()=>de,dt:()=>he});var p,y=u(60391),w=u(6610),k=u(5991),x=u(96156),E=function(){function HttpClient(r){(0,w.Z)(this,HttpClient),(0,x.Z)(this,"axiosInstance",void 0),this.axiosInstance=r}return(0,k.Z)(HttpClient,[{key:"get",value:function get(r,c){return this.axiosInstance.get(r,{params:c}).catch((function(r){throw r}))}},{key:"post",value:function post(r,c,u){var p=u?{Authorization:"Bearer ".concat(u)}:{ContentType:"application/x-www-form-urlencoded"};return this.axiosInstance.post(r,c,{headers:p}).catch((function(r){throw r}))}},{key:"put",value:function put(r,c,u){var p={Authorization:"Bearer ".concat(u)};return this.axiosInstance.put(r,c,{headers:p}).catch((function(r){throw r}))}}]),HttpClient}(),I=function mapData(r){return r.data},K=u(40121),J=(p={},(0,x.Z)(p,K.yp.Canada,"https://api.talkdeskappca.com/virtual-agent"),(0,x.Z)(p,K.yp.Europe,"https://api.talkdeskapp.eu/virtual-agent"),(0,x.Z)(p,K.yp.USA,"https://api.talkdeskapp.com/virtual-agent"),p),ie=function getApiUrl(r){return J[r]},oe=function httpClient(r){return new E((0,y.H)(ie(r)))},se=function httpClientWithNoCaseConvertion(r){return new E((0,y.w)(ie(r)))},ae="/conversation-engine",ue={getToken:"".concat(ae,"/auth"),sendMessage:"".concat(ae,"/message"),setContext:"".concat(ae,"/context")},le=function getToken(r){var c=r.tokenId,u=r.sessionId,p=r.region,y=new URLSearchParams;return y.append("tokenId",c),y.append("sessionId",u),oe(p).post(ue.getToken,y).then(I)},de=function sendMessage(r,c,u){return oe(u).post(ue.sendMessage,c,r).then(I)},pe=function createContext(r,c,u){return se(u).post(ue.setContext,c,r).then(I)},he=function updateContext(r,c,u){return se(u).put(ue.setContext,c,r).then(I)}},95700:(r,c,u)=>{"use strict";u.r(c),u.d(c,{default:()=>we});var p,y=u(92137),w=u(6610),k=u(5991),x=u(96156),E=u(87757),I=u.n(E),K=u(4675),J=u(7167),ie=u(14667),oe=u(56744),se=u(40121),ae=(p={},(0,x.Z)(p,se.DD.Text,{id:"e7fe566f-32e9-46c9-8c7a-0ef8e676e173-7fe75e93",responses:["Hi there","How can i help you?"],payloads:[{mediaType:se.DD.Text}]}),(0,x.Z)(p,se.DD.Buttons,{id:"e7fe566f-32e9-46c9-8c7a-0ef8e676e173-7f4245e93",responses:["This is an array of buttons"],payloads:[{mediaType:se.DD.Buttons,displayText:"This is an array of buttons",quickActions:{elements:[{type:se.L$.Link,displayText:"Button with link",url:"https://www.talkdesk.com/",target:se.el.Blank},{type:se.L$.Payload,displayText:"Button with payload",payload:"The payload"}]}}]}),(0,x.Z)(p,se.DD.QuickReplies,{id:"e7fe566f-32e9-46c9-8c7a-0ef8e676e173-7f9780893",responses:["This is an array of replies"],payloads:[{mediaType:se.DD.QuickReplies,displayText:"This is an array of replies",quickActions:{elements:[{type:se.L$.Payload,payload:"The payload1",displayText:"Reply 1"},{type:se.L$.Payload,payload:"The payload2",displayText:"Reply 2"}]}}]}),(0,x.Z)(p,se.DD.Carousel,{id:"e7fe566f-32e9-46c9-8c7a-gsdfgsdfg-4234234234",responses:["Sure. A carousel on the way."],payloads:[{mediaType:se.DD.Carousel,carousel:{elements:[{imageUrl:"https://infra-cloudfront-talkdeskcom.talkdesk.com/talkdesk_com/2020/12/02072707/2_1_2_Retail-and-E-Commerce-435x290.jpg",title:"Retail & E-Commerce",text:"Details - Retail & E-Commerce",buttons:[{type:se.L$.Payload,displayText:"Click here",payload:"Retail & E-Commerce"}]},{text:"Details - Financial Services & Insurance",imageUrl:"https://infra-cloudfront-talkdeskcom.talkdesk.com/talkdesk_com/2020/12/02072702/2_1_2_Financial-Services-435x290.jpg",buttons:[{type:se.L$.Link,displayText:"Show me more",url:"https://www.talkdesk.com/call-center-solutions/financial-services/",target:se.el.Blank}],title:"Financial Services & Insurance"}]}}]}),(0,x.Z)(p,se.DD.Media,{id:"e7fe566f-32e9-46c9-8c7a-0ef8e676e173-7fe75e93",responses:["Hi there","How can i help you?"],payloads:[{mediaType:se.DD.Media,media:{mediaType:se.vW.Image,url:"image.png"}}]}),(0,x.Z)(p,se.DD.HtmlContent,{id:"25e19eb9-4c2d-4439-9e03-7c585491616c-026f388e",responses:["Hi there"],payloads:[{mediaType:se.DD.HtmlContent,content:['This is a link to <a href="https://www.talkdesk.com/" target="_blank">Talkesk</a>',"And this is a <button onclick=\"javascript:alert('You clicked on a button!')\">Button</button>"]}]}),p),ue=function query(r){var c=r.toLocaleLowerCase();return c.includes(K.Z.WEBCHAT_ENGAGEMENT_TEXT.toLocaleLowerCase())?{id:"e7fe566f-32e9-46c9-8c7a-0ef8e676e173-7fe75e93",responses:["This is a response to GetStarted"],payloads:[{mediaType:se.DD.Text}]}:c.includes("hello")||c.includes("text")?ae[se.DD.Text]:c.includes("button")?ae[se.DD.Buttons]:c.includes("repl")?ae[se.DD.QuickReplies]:c.includes("carousel")?ae[se.DD.Carousel]:c.includes("media")?ae[se.DD.Media]:{id:"e7fe566f-32e9-46c9-8c7a-0ef8e676e173-7fe75e93",responses:["Does not compute!"],payloads:[{mediaType:se.DD.Text}]}},le=u(79629),de=u(4819),pe=u(92502),he=u(71085);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,x.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var ge=(0,de.EP)(),ve=function getToken(){return(0,oe.bM)(K.Z.WEBCHAT_TOKEN_KEY)},we=function(){function ConversationEngineConnector(r){var c=this;(0,w.Z)(this,ConversationEngineConnector),(0,x.Z)(this,"options",void 0),(0,x.Z)(this,"authToken",void 0),(0,x.Z)(this,"setInitialContext",(0,y.Z)(I().mark((function _callee(){var r;return I().wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:if((0,oe.bM)(K.Z.CONTEXT_ACCOUNT_SET)){u.next=5;break}return r=(0,J.L)(c.authToken),u.next=4,(0,he.Y)(!0,c.authToken,{properties:r},c.options.region);case 4:(0,oe.Ly)(K.Z.CONTEXT_ACCOUNT_SET,!0);case 5:case"end":return u.stop()}}),_callee)})))),(0,x.Z)(this,"mapData",(function(r){var c=r.responses;return _objectSpread(_objectSpread({},r.payloads[0]),{},{responses:c,id:r.id})})),(0,x.Z)(this,"fetch",function(){var r=(0,y.Z)(I().mark((function _callee2(r){var u,p,y,w,k,x,E;return I().wrap((function _callee2$(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,c.getAuthToken();case 2:if(u=I.sent,p=c.options,y=p.region,w=p.languageCode,k=r.data,x=r.payload,"true"!=="MISSING_ENV_VAR".USE_CONVERSATION_ENGINE_HANDLERS){I.next=9;break}E=ue(k),I.next=12;break;case 9:return I.next=11,(0,le.bG)(u.token,{text:x||k,languageCode:w,timeZone:ge,sessionId:u.sessionId},y);case 11:E=I.sent;case 12:Object.assign(r,_objectSpread(_objectSpread({},r),{},{conversationEngine:{id:E.id,response:c.mapData(E)}}));case 13:case"end":return I.stop()}}),_callee2)})));return function(c){return r.apply(this,arguments)}}()),(0,x.Z)(this,"updateSessionId",(function(r){c.options.sessionId=r.user.id})),(0,x.Z)(this,"pre",function(){var r=(0,y.Z)(I().mark((function _callee3(r){var u,p;return I().wrap((function _callee3$(y){for(;;)switch(y.prev=y.next){case 0:return u=r.input,p=r.session,c.updateSessionId(p),y.prev=2,y.next=5,c.fetch(u);case 5:y.next=14;break;case 7:return y.prev=7,y.t0=y.catch(2),ie.Z.logError(y.t0),y.next=12,c.refreshAuthToken();case 12:return y.next=14,c.fetch(u);case 14:case"end":return y.stop()}}),_callee3,null,[[2,7]])})));return function(c){return r.apply(this,arguments)}}()),(0,x.Z)(this,"post",function(){var r=(0,y.Z)(I().mark((function _callee4(r){var c,u,p,y;return I().wrap((function _callee4$(w){for(;;)switch(w.prev=w.next){case 0:return c=r.input,u=r.session,p=r.lastRoutePath,y=r.response,w.abrupt("return",{input:c,session:u,lastRoutePath:p,response:y});case 2:case"end":return w.stop()}}),_callee4)})));return function(c){return r.apply(this,arguments)}}()),this.options=r,this.authToken=ve()}var r,c;return(0,k.Z)(ConversationEngineConnector,[{key:"refreshAuthToken",value:(c=(0,y.Z)(I().mark((function _callee5(){var r,c,u,p;return I().wrap((function _callee5$(y){for(;;)switch(y.prev=y.next){case 0:return r=this.options,c=r.tokenId,u=r.sessionId,y.next=3,(0,pe.h)(c,u,this.options.region);case 3:p=y.sent,this.authToken=p,(0,oe.Ly)(K.Z.WEBCHAT_TOKEN_KEY,_objectSpread(_objectSpread({},p),{},{expiresAt:(0,de.Vo)(p.expiresAt)}));case 6:case"end":return y.stop()}}),_callee5,this)}))),function refreshAuthToken(){return c.apply(this,arguments)})},{key:"getAuthToken",value:(r=(0,y.Z)(I().mark((function _callee6(){return I().wrap((function _callee6$(r){for(;;)switch(r.prev=r.next){case 0:if(this.authToken=ve(),(0,pe.D)(this.authToken)){r.next=5;break}return(0,oe.Ly)(K.Z.CONTEXT_ACCOUNT_SET,void 0),r.next=5,this.refreshAuthToken();case 5:return r.next=7,this.setInitialContext();case 7:return r.abrupt("return",this.authToken);case 8:case"end":return r.stop()}}),_callee6,this)}))),function getAuthToken(){return r.apply(this,arguments)})}]),ConversationEngineConnector}()},71085:(r,c,u)=>{"use strict";u.d(c,{Y:()=>w});var p=u(4675),y=u(79629),w=function setOnContext(r,c,u,w){var k=u.name,x=void 0===k?"context":k,E=u.life_span,I=u.properties,K={name:x,life_span:E||p.Z.DEFAULT_CONTEXT_LIFE_CYCLES,properties:I,session_id:c.sessionId};return null!=r&&r?(0,y.kr)(c.token,K,w):(0,y.dt)(c.token,K,w)}},4819:(r,c,u)=>{"use strict";u.d(c,{EP:()=>I,sv:()=>K,ri:()=>J,Vo:()=>ie});var p=u(27484),y=u.n(p),w=u(70178),k=u.n(w),x=u(29387),E=u.n(x);y().extend(k()),y().extend(E());var I=function getTimezone(){return y().tz.guess()},K=function getDateWithMinutesOverflow(r){return y()().add(r,"minute").toString()},J=function dateDifference(r,c){return y()(r).diff(y()(c))},ie=function toMilliseconds(r){return y()(r).valueOf()}},92502:(r,c,u)=>{"use strict";u.d(c,{h:()=>E,D:()=>I});var p=u(92137),y=u(87757),w=u.n(y),k=u(79629),x=u(4819),E=function(){var r=(0,p.Z)(w().mark((function _callee(r,c,u){var p;return w().wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:if("true"!=="MISSING_ENV_VAR".USE_CONVERSATION_ENGINE_HANDLERS){y.next=4;break}p={token:"ac2d8273-eae2-48e0-b0d4-406f3e1015e8",expiresAt:(0,x.sv)(10),sessionId:"ac2d8273-eae2-48e0-b0d4-406f3e1015e8"},y.next=7;break;case 4:return y.next=6,(0,k.LP)({tokenId:r,sessionId:c,region:u});case 6:p=y.sent;case 7:return y.abrupt("return",p);case 8:case"end":return y.stop()}}),_callee)})));return function getAccessToken(c,u,p){return r.apply(this,arguments)}}(),I=function isTokenValid(r){return r.sessionId&&(0,x.ri)(r.expiresAt,(new Date).toString())>0}},55140:(r,c,u)=>{"use strict";u.d(c,{I:()=>J,Z:()=>K});var p=u(14613),y=u(27856),w=u.n(y),k=u(86492),x=u(9980),E=u.n(x),I=function configureLinksRenderer(){var r=new(E())("zero",{linkify:!0}).enable(["linkify"]);return function withLinksTarget(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",u=r.renderer.rules.link_open||function(r,c,u,p,y){return y.renderToken(r,c,u)};r.renderer.rules.link_open=function(r,p,y,w,k){var x=r[p].attrIndex("target");return x<0?r[p].attrPush(["target",c]):r[p].attrs[x][1]=c,u(r,p,y,w,k)}}(r),r}(),K=function getTextResponses(r){return(null==r?void 0:r.length)>0?r:[p.Z.t("yourOptions")]},J=function getSanitizedText(r){return function renderLinks(r){return I.renderInline(r)}((0,k.decode)(w().sanitize(r))).trim()}},25092:(r,c,u)=>{"use strict";u.d(c,{Z:()=>y});var p=u(40121);const y=function getUrl(r){var c=r.type,u=r.url,y=r.payload;return c===p.L$.Call?"tel:".concat(null!=y?y:u):null!=y?y:u}},56744:(r,c,u)=>{"use strict";u.d(c,{bM:()=>se,Ly:()=>ae,Xe:()=>ue,M8:()=>le,$P:()=>de,eb:()=>pe,dP:()=>he,dX:()=>ge,V3:()=>ve,DL:()=>we});var p=u(96156),y=u(27484),w=u.n(y),k=u(4675);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,p.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var x=k.Z.WEBCHAT_CONFIG,E=k.Z.WEBCHAT_LAST_MESSAGE_KEY,I=k.Z.WEBCHAT_LAST_INTERACTION_KEY,K=k.Z.WEBCHAT_SESSION_UPDATE_MINUTES_INTERVAL,J=k.Z.WEBCHAT_SESSION_UPDATE_MINUTES_OVERFLOW,ie=k.Z.WEBCHAT_STATE,oe=function getConfigLocalStorage(){return JSON.parse(localStorage.getItem(x))},se=function getLocalStorageKey(r){var c=oe();return c?c[r]:null},ae=function setLocalStorageKey(r,c){localStorage.setItem(x,JSON.stringify(_objectSpread(_objectSpread({},oe()),{},(0,p.Z)({},r,c))))},ue=function isLastInteractionExpired(){var r=se(I);return!!Number.isNaN(r)||w()().subtract(K+J,"minute").valueOf()>Number(r)},le=function updateLastInteractionTimestamp(){ae(I,w()().valueOf())},de=function updateLastMessageTimestamp(){ae(E,w()().valueOf())},pe=function getRemainingSessionTime(r){var c=se(E),u=w()(c).add(r,"minute").valueOf();return w()(u).subtract(w()().valueOf()).valueOf()},he=function clearSessionToken(){var r,c=_objectSpread(_objectSpread({},null!==(r=oe())&&void 0!==r?r:{}),{},{token:{}});localStorage.setItem(x,JSON.stringify(c))},ge=function clearUserSession(){var r,c=_objectSpread(_objectSpread({},null!==(r=function getStateLocalStorage(){return JSON.parse(localStorage.getItem(ie))}())&&void 0!==r?r:{}),{},{session:{}});localStorage.setItem(x,JSON.stringify(c))},ve=function resetConfigsStorage(){localStorage.removeItem(x)},we=function resetLocalStorage(){localStorage.removeItem(ie),localStorage.removeItem(x)}},1699:(r,c,u)=>{"use strict";var p;u.d(c,{e:()=>p}),function(r){r.Blank="_blank",r.Self="_self",r.Top="_top",r.Parent="_parent"}(p||(p={}))},40121:(r,c,u)=>{"use strict";var p,y,w;u.d(c,{L$:()=>w,Qx:()=>x,Nm:()=>k,el:()=>I.e,vW:()=>y,DD:()=>p,yp:()=>E}),function(r){r.Text="text",r.CustomText="customtext",r.Buttons="buttons",r.QuickReplies="quickreplies",r.Carousel="carousel",r.Media="media",r.HtmlContent="htmlcontent",r.MultiContent="multicontent"}(p||(p={})),function(r){r.Image="image",r.Video="video",r.Audio="audio",r.File="file"}(y||(y={})),function(r){r.Call="call",r.Link="link",r.Payload="payload"}(w||(w={}));var k,x,E,I=u(1699);!function(r){r.Left="left",r.Right="right"}(k||(k={})),function(r){r.StartNewChat="startNewChat"}(x||(x={})),function(r){r.Canada="td-ca-1",r.Europe="td-eu-1",r.USA="td-us-1"}(E||(E={}))},60391:(r,c,u)=>{"use strict";u.d(c,{H:()=>ve,w:()=>we});var p=u(9669),y=u.n(p);var __assign=function(){return(__assign=Object.assign||function __assign(r){for(var c,u=1,p=arguments.length;u<p;u++)for(var y in c=arguments[u])Object.prototype.hasOwnProperty.call(c,y)&&(r[y]=c[y]);return r}).apply(this,arguments)};Object.create;Object.create;function lowerCase(r){return r.toLowerCase()}var w=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],k=/[^A-Z0-9]+/gi;function noCase(r,c){void 0===c&&(c={});for(var u=c.splitRegexp,p=void 0===u?w:u,y=c.stripRegexp,x=void 0===y?k:y,E=c.transform,I=void 0===E?lowerCase:E,K=c.delimiter,J=void 0===K?" ":K,ie=replace(replace(r,p,"$1\0$2"),x,"\0"),oe=0,se=ie.length;"\0"===ie.charAt(oe);)oe++;for(;"\0"===ie.charAt(se-1);)se--;return ie.slice(oe,se).split("\0").map(I).join(J)}function replace(r,c,u){return c instanceof RegExp?r.replace(c,u):c.reduce((function(r,c){return r.replace(c,u)}),r)}function pascalCaseTransform(r,c){var u=r.charAt(0),p=r.substr(1).toLowerCase();return c>0&&u>="0"&&u<="9"?"_"+u+p:""+u.toUpperCase()+p}function camelCaseTransform(r,c){return 0===c?r.toLowerCase():pascalCaseTransform(r,c)}function capitalCaseTransform(r){return function upperCaseFirst(r){return r.charAt(0).toUpperCase()+r.substr(1)}(r.toLowerCase())}function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){_defineProperty(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}function _defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}function _typeof(r){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var x=function isURLSearchParams(r){return"undefined"!=typeof URLSearchParams&&r instanceof URLSearchParams},E=function isFormData(r){return"undefined"!=typeof FormData&&r instanceof FormData},I=function isPlainObject(r){return"object"===_typeof(r)&&null!==r&&"[object Object]"===Object.prototype.toString.call(r)};function transformers_ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function transformers_defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}function _slicedToArray(r,c){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,c){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(r)))return;var u=[],p=!0,y=!1,w=void 0;try{for(var k,x=r[Symbol.iterator]();!(p=(k=x.next()).done)&&(u.push(k.value),!c||u.length!==c);p=!0);}catch(r){y=!0,w=r}finally{try{p||null==x.return||x.return()}finally{if(y)throw w}}return u}(r,c)||_unsupportedIterableToArray(r,c)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _createForOfIteratorHelper(r,c){var u;if("undefined"==typeof Symbol||null==r[Symbol.iterator]){if(Array.isArray(r)||(u=_unsupportedIterableToArray(r))||c&&r&&"number"==typeof r.length){u&&(r=u);var p=0,y=function F(){};return{s:y,n:function n(){return p>=r.length?{done:!0}:{done:!1,value:r[p++]}},e:function e(r){throw r},f:y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var w,k=!0,x=!1;return{s:function s(){u=r[Symbol.iterator]()},n:function n(){var r=u.next();return k=r.done,r},e:function e(r){x=!0,w=r},f:function f(){try{k||null==u.return||u.return()}finally{if(x)throw w}}}}function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}(r)||_unsupportedIterableToArray(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(r,c){if(r){if("string"==typeof r)return _arrayLikeToArray(r,c);var u=Object.prototype.toString.call(r).slice(8,-1);return"Object"===u&&r.constructor&&(u=r.constructor.name),"Map"===u||"Set"===u?Array.from(r):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray(r,c):void 0}}function _arrayLikeToArray(r,c){(null==c||c>r.length)&&(c=r.length);for(var u=0,p=new Array(c);u<c;u++)p[u]=r[u];return p}var K={snake:function snakeCase(r,c){return void 0===c&&(c={}),function dotCase(r,c){return void 0===c&&(c={}),noCase(r,__assign({delimiter:"."},c))}(r,__assign({delimiter:"_"},c))},camel:function camelCase(r,c){return void 0===c&&(c={}),function pascalCase(r,c){return void 0===c&&(c={}),noCase(r,__assign({delimiter:"",transform:pascalCaseTransform},c))}(r,__assign({transform:camelCaseTransform},c))},header:function headerCase(r,c){return void 0===c&&(c={}),function capitalCase(r,c){return void 0===c&&(c={}),noCase(r,__assign({delimiter:" ",transform:capitalCaseTransform},c))}(r,__assign({delimiter:"-"},c))}},J=function transformObjectUsingCallbackRecursive(r,c,u){if(!function isTransformable(r){return Array.isArray(r)||I(r)||E(r)||x(r)}(r))return r;if((E(r)||x(r))&&(!r.entries||u&&!r.delete)){var p=E(r)?"FormData":"URLSearchParams",y=E(r)?"https://github.com/jimmywarting/FormData":"https://github.com/jerrybendy/url-search-params-polyfill";return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?console.warn("Be careful that ".concat(p," cannot be transformed on React Native. If you intentionally implemented, ignore this kind of warning: https://facebook.github.io/react-native/docs/debugging.html")):(r.entries||console.warn("You must use polyfill of ".concat(p,".prototype.entries() on Internet Explorer or Safari: ").concat(y)),u&&!r.delete&&console.warn("You must use polyfill of ".concat(p,".prototype.delete() on Internet Explorer or Safari: ").concat(y))),r}var w,k=Object.getPrototypeOf(r),K=u?r:k?new k.constructor:Object.create(null);if(E(r)||x(r)){if(w=r.entries(),u){var J,ie=_createForOfIteratorHelper(w=_toConsumableArray(w));try{for(ie.s();!(J=ie.n()).done;){var oe=_slicedToArray(J.value,1)[0];r.delete(oe)}}catch(r){ie.e(r)}finally{ie.f()}}}else if(w=Object.entries(r),u&&!Array.isArray(r)){var se,ae=_createForOfIteratorHelper(w);try{for(ae.s();!(se=ae.n()).done;){delete r[_slicedToArray(se.value,1)[0]]}}catch(r){ae.e(r)}finally{ae.f()}}var ue,le=_createForOfIteratorHelper(w);try{for(le.s();!(ue=le.n()).done;){var de=_slicedToArray(ue.value,2),pe=de[0],he=de[1];E(K)||x(K)?K.append(c(pe),he):"__proto__"!==pe&&(K[c("string"==typeof pe?pe:"".concat(pe))]=transformObjectUsingCallbackRecursive(he,c,u))}}catch(r){le.e(r)}finally{le.f()}return K},ie=function transformObjectUsingCallback(r,c,u){return c=function applyCaseOptions(r,c){return function(u,p){return r(u,_objectSpread(_objectSpread({},c),p))}}(c,function transformers_objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?transformers_ownKeys(Object(u),!0).forEach((function(c){transformers_defineProperty(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):transformers_ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}({stripRegexp:/[^A-Z0-9[\]]+/gi},null==u?void 0:u.caseOptions)),null!=u&&u.preservedKeys&&(c=function preserveSpecificKeys(r,c){var u="function"==typeof c?c:function(r){return c.includes(r)};return function(c,p){return u(c,p)?c:r(c,p)}}(c,u.preservedKeys)),J(r,c,(null==u?void 0:u.overwrite)||!1)},oe=function createObjectTransformerOf(r,c){return function createObjectTransformer(r){return function(c,u){return ie(c,r,u)}}((null==c?void 0:c[r])||K[r])},se=function createObjectTransformers(r){for(var c={},u=0,p=Object.keys(K);u<p.length;u++){var y=p[u];c[y]=oe(y,r)}return c};function middleware_toConsumableArray(r){return function middleware_arrayWithoutHoles(r){if(Array.isArray(r))return middleware_arrayLikeToArray(r)}(r)||function middleware_iterableToArray(r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}(r)||middleware_unsupportedIterableToArray(r)||function middleware_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function middleware_ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function middleware_objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?middleware_ownKeys(Object(u),!0).forEach((function(c){middleware_defineProperty(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):middleware_ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}function middleware_defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}function middleware_slicedToArray(r,c){return function middleware_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function middleware_iterableToArrayLimit(r,c){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(r)))return;var u=[],p=!0,y=!1,w=void 0;try{for(var k,x=r[Symbol.iterator]();!(p=(k=x.next()).done)&&(u.push(k.value),!c||u.length!==c);p=!0);}catch(r){y=!0,w=r}finally{try{p||null==x.return||x.return()}finally{if(y)throw w}}return u}(r,c)||middleware_unsupportedIterableToArray(r,c)||function middleware_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function middleware_unsupportedIterableToArray(r,c){if(r){if("string"==typeof r)return middleware_arrayLikeToArray(r,c);var u=Object.prototype.toString.call(r).slice(8,-1);return"Object"===u&&r.constructor&&(u=r.constructor.name),"Map"===u||"Set"===u?Array.from(r):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?middleware_arrayLikeToArray(r,c):void 0}}function middleware_arrayLikeToArray(r,c){(null==c||c>r.length)&&(c=r.length);for(var u=0,p=new Array(c);u<c;u++)p[u]=r[u];return p}var ae=function createSnakeRequestTransformer(r){var c=se(null==r?void 0:r.caseFunctions),u=c.snake,p=c.header;return function(c,y){if((null==r||!r.ignoreHeaders)&&I(y))for(var w=0,k=Object.entries(y);w<k.length;w++){var x=middleware_slicedToArray(k[w],2),E=x[0],K=x[1];p(K,middleware_objectSpread({overwrite:!0},r)),["common","delete","get","head","post","put","patch"].includes(E)||(delete y[E],y[Object.keys(p(middleware_defineProperty({},E,null),r))[0]]=K)}return u(c,r)}},ue=function createCamelResponseTransformer(r){var c=se(null==r?void 0:r.caseFunctions).camel;return function(u,p){return null!=r&&r.ignoreHeaders||c(p,middleware_objectSpread({overwrite:!0},r)),c(u,r)}};const le=function applyCaseMiddleware(r,c){var u,p,y;return r.defaults.transformRequest=[(null==c||null===(u=c.caseMiddleware)||void 0===u?void 0:u.requestTransformer)||ae(c)].concat(middleware_toConsumableArray(Array.isArray(r.defaults.transformRequest)?r.defaults.transformRequest:void 0!==r.defaults.transformRequest?[r.defaults.transformRequest]:[])),r.defaults.transformResponse=[].concat(middleware_toConsumableArray(Array.isArray(r.defaults.transformResponse)?r.defaults.transformResponse:void 0!==r.defaults.transformResponse?[r.defaults.transformResponse]:[]),[(null==c||null===(p=c.caseMiddleware)||void 0===p?void 0:p.responseTransformer)||ue(c)]),r.interceptors.request.use((null==c||null===(y=c.caseMiddleware)||void 0===y?void 0:y.requestInterceptor)||function createSnakeParamsInterceptor(r){var c=se(null==r?void 0:r.caseFunctions).snake;return function(u){return u.params&&(u.params=c(u.params,r)),u}}(c)),r};var de=u(23889),pe=u.n(de),he=function allowRetries(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[429];pe()(r,{retries:c,retryDelay:function retryDelay(r){return r*u},retryCondition:function retryCondition(r){var c=r.response;return c&&p.includes(c.status)}})},ge=function createAxiosInstance(r){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=y().create({baseURL:r,timeout:1e4});return he(u),c||le(u,{preservedKeys:["accountId","businessHours"]}),u},ve=function getAxiosInstance(r){return ge(r)},we=function getAxiosInstanceWithNoCaseConvertion(r){return ge(r,!0)}},4675:(r,c,u)=>{"use strict";u.d(c,{Z:()=>p});const p=Object.freeze({DEFAULT_LANGUAGE_CODE:"en-US",CONTEXT_ACCOUNT_SET:"accountIdOnContext",WEBCHAT_CONFIG:"webchatConfig",WEBCHAT_ENGAGEMENT_TEXT:"GetStarted",WEBCHAT_STATE:"webchatState",WEBCHAT_TOKEN_KEY:"token",WEBCHAT_IS_CHAT_OPEN_KEY:"isChatOpen",WEBCHAT_WAS_CHAT_OPENED:"wasChatOpened",WEBCHAT_LAST_INTERACTION_KEY:"lastInteraction",WEBCHAT_LAST_MESSAGE_KEY:"lastMessage",WEBCHAT_MSG_FROM_USER:"user",WEBCHAT_SESSION_UPDATE_MINUTES_INTERVAL:2,WEBCHAT_SESSION_UPDATE_MINUTES_OVERFLOW:1,DEFAULT_CONTEXT_LIFE_CYCLES:99999999,MAX_ALLOWED_QUICK_REPLIES:10,MAX_ALLOWED_BUTTONS:10,MAX_ALLOWED_BUTTONS_CAROUSEL:3,MAX_ALLOWED_CAROUSEL_CARDS:10,CAROUSEL_MOVEMENT_DISTANCE:245,VIRTUAL_AGENT_ICON:"https://prd-cdn-talkdesk.talkdesk.com/cdn-assets/latest/talkdesk/product/app-icons/virtual-agent.svg",CONVERSATION_ENGINE_CONNECTOR:"conversation-engine-connector",LIVECHAT_CONVERSATION_ENDED:"livechatConversationEnded",TALKDESK_CDN_BASE_URL:"https://prd-cdn-talkdesk.talkdesk.com",TALKDESK_CDN_ICONS:"cdn-assets/latest/talkdesk/product/icons",TWILIO_MEDIA_URL_EXPIRED:3e5,DOCUMENT:"document",VIDEO:"video",IMAGE:"image",AUDIO:"audio",MIME_TYPES_FILE_SUFFIX_MAPPER:{"audio/mpeg":".mp3","audio/mp3":".mp3","image/jpeg":".jpg","image/png":".png","video/mp4":".mp4","video/quicktime":".mov","application/pdf":".pdf"}})},7167:(r,c,u)=>{"use strict";function e(r){this.message=r}u.d(c,{L:()=>x}),e.prototype=new Error,e.prototype.name="InvalidCharacterError";var p="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var c=String(r).replace(/=+$/,"");if(c.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var u,p,y=0,w=0,k="";p=c.charAt(w++);~p&&(u=y%4?64*u+p:p,y++%4)?k+=String.fromCharCode(255&u>>(-2*y&6)):0)p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p);return k};function t(r){var c=r.replace(/-/g,"+").replace(/_/g,"/");switch(c.length%4){case 0:break;case 2:c+="==";break;case 3:c+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(p(r).replace(/(.)/g,(function(r,c){var u=c.charCodeAt(0).toString(16).toUpperCase();return u.length<2&&(u="0"+u),"%"+u})))}(c)}catch(r){return p(c)}}function n(r){this.message=r}n.prototype=new Error,n.prototype.name="InvalidTokenError";const y=function o(r,c){if("string"!=typeof r)throw new n("Invalid token specified");var u=!0===(c=c||{}).header?0:1;try{return JSON.parse(t(r.split(".")[u]))}catch(r){throw new n("Invalid token specified: "+r.message)}};var w=function getAccountIdFromJwt(r){return function getParamFromJwt(r,c){try{return y(r)[c]}catch(r){return null}}(r,"aid")},k=u(85829),x=function getInitialContextProperties(r){return{accountId:w(r.token),channelType:"digital",interactionId:(0,k.k)(r.sessionId,"-","")}}},14667:(r,c,u)=>{"use strict";u.d(c,{Z:()=>le});var p,y=u(6610),w=u(96156),k=u(25768),x=u(80406),E=u(70309),I=u(11249);class NrFeature{constructor(r){this.name=r,this._enabled=!0,this._auto=!0}get enabled(){return this._enabled}set enabled(r){this._enabled=Boolean(r)}get auto(){return this._auto}set auto(r){this._auto=r}}!function(r){r.JSERRORS="js-errors"}(p||(p={}));var K=u(41437);class Api{constructor(r){this.importedMethods={storeError:null},this._initialized=!1,this._initialized=!0,this._parent=r}noticeError(r,c){if(this._initialized&&this.importedMethods.storeError){if("string"!=typeof r&&!(r instanceof Error))return function invalidCall(r,c,u){console.warn(`"${r}" was called with an invalid argument: ${c}. This method only accepts ${u} types for that argument.`)}("noticeError",r,"Error | String");r="string"==typeof r?new Error(r):r;const u=(0,K.zO)(),p=!1;return this.importedMethods.storeError(r,u,p,c)}return this._parent.initialized||this.importedMethods.storeError?this._parent.initialized&&!this.importedMethods.storeError?function isDisabled(r,c,u){console.warn(`The ${c} Feature of agent ${r} Has Been Disabled. Method "${u}" will not do anything!`)}(this._parent.id,p.JSERRORS,"noticeError"):void 0:function notInitialized(r,c){console.warn(`Agent ${r} is calling a ${c} Feature API, but the Browser Agent has not been started... Please start the agent using .start({...opts})`)}(this._parent.id,p.JSERRORS)}}class Features{constructor(){this.errors=new NrFeature(p.JSERRORS)}getEnabledFeatures(){return Object.values(this).filter(r=>r.enabled)}}var __awaiter=function(r,c,u,p){return new(u||(u=Promise))((function(y,w){function fulfilled(r){try{step(p.next(r))}catch(r){w(r)}}function rejected(r){try{step(p.throw(r))}catch(r){w(r)}}function step(r){r.done?y(r.value):function adopt(r){return r instanceof u?r:new u((function(c){c(r)}))}(r.value).then(fulfilled,rejected)}step((p=p.apply(r,c||[])).next())}))};var J=u(26253),ie=u(69581),oe=u(95907),se=u(30717);class Aggregator extends oe.w{constructor(r){super(r),this.aggregatedData={}}store(r,c,u,p,y){var w=this.getBucket(r,c,u,y);return w.metrics=function aggregateMetrics(r,c){c||(c={count:0});return c.count+=1,(0,se.D)(r,(function(r,u){c[r]=updateMetric(u,c[r])})),c}(p,w.metrics),w}merge(r,c,u,p,y){var w=this.getBucket(r,c,p,y);if(w.metrics){var k=w.metrics;k.count+=u.count,(0,se.D)(u,(function(r,c){if("count"!==r){var p=k[r],y=u[r];y&&!y.c?k[r]=updateMetric(y.t,p):k[r]=function mergeMetric(r,c){if(!c)return r;c.c||(c=createMetricObject(c.t));return c.min=Math.min(r.min,c.min),c.max=Math.max(r.max,c.max),c.t+=r.t,c.sos+=r.sos,c.c+=r.c,c}(y,k[r])}}))}else w.metrics=u}storeMetric(r,c,u,p){var y=this.getBucket(r,c,u);return y.stats=updateMetric(p,y.stats),y}getBucket(r,c,u,p){this.aggregatedData[r]||(this.aggregatedData[r]={});var y=this.aggregatedData[r][c];return y||(y=this.aggregatedData[r][c]={params:u||{}},p&&(y.custom=p)),y}get(r,c){return c?this.aggregatedData[r]&&this.aggregatedData[r][c]:this.aggregatedData[r]}take(r){for(var c={},u="",p=!1,y=0;y<r.length;y++)c[u=r[y]]=toArray(this.aggregatedData[u]),c[u].length&&(p=!0),delete this.aggregatedData[u];return p?c:null}}function updateMetric(r,c){return null==r?function updateCounterMetric(r){r?r.c++:r={c:1};return r}(c):c?(c.c||(c=createMetricObject(c.t)),c.c+=1,c.t+=r,c.sos+=r*r,r>c.max&&(c.max=r),r<c.min&&(c.min=r),c):{t:r}}function createMetricObject(r){return{t:r,min:r,max:r,sos:r*r,c:1}}function toArray(r){return"object"!=typeof r?[]:(0,se.D)(r,getValue)}function getValue(r,c){return c}var es_awaiter=function(r,c,u,p){return new(u||(u=Promise))((function(y,w){function fulfilled(r){try{step(p.next(r))}catch(r){w(r)}}function rejected(r){try{step(p.throw(r))}catch(r){w(r)}}function step(r){r.done?y(r.value):function adopt(r){return r instanceof u?r:new u((function(c){c(r)}))}(r.value).then(fulfilled,rejected)}step((p=p.apply(r,c||[])).next())}))};class BrowserAgent{constructor(){this._initialized=!1,this._id=(0,ie.ky)(16),this._api=new Api(this),this._aggregator=new Aggregator({agentIdentifier:this._id}),this.features=new Features,this.start=r=>es_awaiter(this,void 0,void 0,(function*(){if(this._initialized)return!1;this._initialized=!0;const{info:c,config:y,loader_config:w}=function buildConfigs(r){const c={beacon:"",errorBeacon:void 0,licenseKey:"",applicationID:"",sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},u={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},p={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:"",applicationID:"",xpid:void 0};return Object.keys(r).forEach(y=>{"beacon"===y&&(c.beacon=r[y],c.errorBeacon=r[y]),Object.keys(c).includes(y)&&(c[y]=r[y]),Object.keys(u).includes(y)&&(u[y]=r[y]),Object.keys(p).includes(y)&&(p[y]=r[y])}),function validateInfo(r){return!(!r.applicationID||!r.licenseKey||!r.beacon)}(c)&&function validateLoaderConfig(r){return!(!r.applicationID||!r.licenseKey)}(p)||console.warn("Missing required config data"),{info:c,config:u,loader_config:p}}(r);c&&(0,k.L)(this._id,c),y&&(0,x.Dg)(this._id,y),w&&(0,E.G)(this._id,y),(0,I.s)(this._id,{maxBytes:3e4});const K=yield function initializeFeatures(r,c,y,w){return Promise.all(w.getEnabledFeatures().map(w=>__awaiter(this,void 0,void 0,(function*(){if(w.auto){const{Instrument:c}=yield u(43358)(`./${w.name}/instrument`);new c(r)}const{Aggregate:k}=yield u(86754)(`./${w.name}/aggregate`),x=new k(r,y);return w.name===p.JSERRORS&&(c.importedMethods.storeError=(...r)=>x.storeError(...r)),w.name}))))}(this._id,this._api,this._aggregator,this.features);return(0,J.Qy)(this._id,K,"features"),!0})),this.noticeError=(r,c)=>this._api.noticeError(r,c)}get config(){return{info:(0,k.C)(this._id),config:(0,x.P_)(this._id),loader_config:(0,E.D)(this._id)}}get initialized(){return this._initialized}get id(){return this._id}}var ae=new BrowserAgent,ue={licenseKey:"NRJS-34ae5a1f871df5c6247",applicationID:"1588776185",beacon:"bam.nr-data.net"};const le=Object.freeze(new function Logger(){(0,y.Z)(this,Logger),(0,w.Z)(this,"logError",(function(r){ae.noticeError(r)})),ae.features.errors.auto=!1,ae.features.errors.enabled=!0,ae.start(ue)})},8247:(r,c,u)=>{"use strict";function isIOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}u.d(c,{g:()=>isIOS})},85829:(r,c,u)=>{"use strict";u.d(c,{k:()=>p,E:()=>y});var p=function replaceAll(r,c,u){return r?r.replace(new RegExp(c,"g"),u):r},y=function isNullOrEmpty(r){return!r||!r.trim().length}},70714:(r,c,u)=>{"use strict";u.d(c,{J:()=>p,c:()=>y});var p=[Intl.DateTimeFormat().resolvedOptions().locale,"en-US"],y={hour:"2-digit",minute:"2-digit"}},30159:(r,c,u)=>{"use strict";u.d(c,{qC:()=>p.qC,Wp:()=>w.Wp,aL:()=>p.aL,Do:()=>K,c2:()=>y.c2,j:()=>k.j,KO:()=>y.KO,gS:()=>p.gS,CJ:()=>p.CJ,ju:()=>J.j,Ij:()=>x.Ij});var p=u(77360),y=u(8310),w=u(45619),k=u(78797),x=u(82234),E=u(96156);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,E.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var I;function getValueType(r){return Object.prototype.toString.call(r)}function filterValue(r){var c="".concat(r);return c.length>1024?(console.warn("The ".concat(r," is too long")),c.substring(0,1024)):r}!function(r){r.string="[object String]",r.object="[object Object]",r.array="[object Array]",r.number="[object Number]"}(I||(I={}));var K=function Context(){var r={},c={},u={};return{setInitialScreenContext:function setInitialScreenContext(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=_objectSpread(_objectSpread({},r),c)},setCustomContext:function setCustomContext(r){r?getValueType(r)===I.object?c=function filterContext(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c={};return Object.keys(r).forEach((function(u){var p,y=null!==(p=r[u])&&void 0!==p?p:"";switch(getValueType(y)){case I.string:case I.number:c[u]=filterValue(y);break;case I.array:c[u]=filterValue(y.join(","));break;case I.object:c[u]=filterValue(JSON.stringify(y));break;default:c[u]=filterValue(y)}})),c}(r):console.error('The parameter of the setContextParam method must be an object such as { "var1": "value1", "var2": "value2", "var3": "value3" }'):console.error("Please pass in the correct parameter for setContextParam method")},get current(){return _objectSpread(_objectSpread({},c),r)},get initialScreenContext(){return r},get customDefaultValue(){return u},setInitialScreenContextByCustomDefault:function setInitialScreenContextByCustomDefault(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u=c,r=_objectSpread(_objectSpread({},r),c)},resetInitialScreenContext:function resetInitialScreenContext(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=c}}}(),J=u(18486)},45619:(r,c,u)=>{"use strict";u.d(c,{Wp:()=>addStoreEventListenerLivechat,hi:()=>handleSentMessage});var p=u(96156),y=u(92137),w=u(87757),k=u.n(w),x=u(14667),E=u(82234),I=u(4675);function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,p.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var K=!1;function addStoreEventListenerLivechat(r,c){return _addStoreEventListenerLivechat.apply(this,arguments)}function _addStoreEventListenerLivechat(){return(_addStoreEventListenerLivechat=(0,y.Z)(k().mark((function _callee2(r,c){var u,p;return k().wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:if(p=function _storeListener3(){return(p=(0,y.Z)(k().mark((function _callee(u){return k().wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:if(u.storageArea===localStorage){p.next=2;break}return p.abrupt("return");case 2:if("connectOtherTabs"!==u.key||"true"!==u.newValue){p.next=5;break}return p.next=5,c(r);case 5:if("isParticipantReadyForChat"===u.key&&"true"===u.newValue&&r.webchatRef.current.closeCoverComponent(),"cleanLivechatTD"!==u.key||"true"!==u.newValue){p.next=9;break}return p.next=9,(0,E.IZ)(r);case 9:"blocTextArea"===u.key&&"true"===u.newValue&&(0,E.Ij)(!0);case 10:case"end":return p.stop()}}),_callee)})))).apply(this,arguments)},u=function _storeListener2(r){return p.apply(this,arguments)},K){w.next=5;break}return w.next=5,window.addEventListener("storage",u);case 5:K=!0;case 6:case"end":return w.stop()}}),_callee2)})))).apply(this,arguments)}function createMediaMessage(r){for(var c=r.split(","),u=function getBase64Mime(r){var c=r.match(/data:\S*;base64/g);return c&&c.length?c[0].slice("data:".length,-1*";base64".length):""}(r),p=atob(c[1]),y=p.length,w=new Uint8Array(y);y--;)w[y]=p.charCodeAt(y);var k=I.Z.MIME_TYPES_FILE_SUFFIX_MAPPER[u]||"",x=(0,E.ky)(u).prefix,K="".concat(x,"_").concat(Date.now()).concat(k),J=new File([w],K,{type:u}),ie=new FormData;return ie.append("file",J),{formData:ie,fileName:K}}function handleSentMessage(r,c){return _handleSentMessage.apply(this,arguments)}function _handleSentMessage(){return(_handleSentMessage=(0,y.Z)(k().mark((function _callee3(r,c){var u,p,y,w,K;return k().wrap((function _callee3$(k){for(;;)switch(k.prev=k.next){case 0:if(c.data===I.Z.WEBCHAT_ENGAGEMENT_TEXT){k.next=10;break}if("messageReceived"===c.id){k.next=10;break}if(u=[I.Z.DOCUMENT,I.Z.VIDEO,I.Z.IMAGE,I.Z.AUDIO].indexOf(c.type)>-1,p=null==c?void 0:c.payload,!u){k.next=8;break}return y=createMediaMessage(c.data),w=y.fileName,K=y.formData,r.sendMessage(K).then((function(){return(0,E.Ij)(!1)})).catch((function(r){x.Z.logError(r),(0,E.Ij)(!1)})),k.abrupt("return",w);case 8:return p?r.sendMessage(c.data,_objectSpread({payload:p},JSON.parse(localStorage.getItem("vaComponent")))).then((function(){return(0,E.Ij)(!1)})).catch((function(r){x.Z.logError(r),(0,E.Ij)(!1)})):r.sendMessage(c.data).then((function(){return(0,E.Ij)(!1)})).catch((function(r){x.Z.logError(r),(0,E.Ij)(!1)})),k.abrupt("return",c.data);case 10:return k.abrupt("return",null);case 11:case"end":return k.stop()}}),_callee3)})))).apply(this,arguments)}},77360:(r,c,u)=>{"use strict";u.d(c,{qC:()=>addChatWelcomeMessages,aL:()=>connectToTheConversation,gS:()=>handleLivechatMessages,CJ:()=>handleOnConversationStart,IO:()=>handleRemoveSelfInParticipants});var p,y,w,k=u(92137),x=u(87757),E=u.n(x),I=u(40121),K=u(70714),J=u(4675),ie=u(78797),oe=u(38086),se=u(56744),ae=u(82234),ue=u(45619),le=u(8310),de=u(18486);function handleReceivedMessage(r,c,u){var y,w,k;if(!(u.author===c&&p===u.body||u.author===c&&u.type===I.DD.Media&&p===(null==u||null===(y=u.media)||void 0===y?void 0:y.filename)||null!==(w=u.attributes)&&void 0!==w&&w.isReachabilityMessage)){u.author!==c&&r.notifications.handleNewMessage(u.index);var x=(null===(k=u.state)||void 0===k?void 0:k.timestamp)||u.timestamp,E=new Date(x).toLocaleTimeString(K.J,K.c),ie=function parseRichMediaMessage(r){var c,u=r.body,p=r.attributes,y=r.type===I.DD.Media,w=(0,ae.ky)(null==r||null===(c=r.media)||void 0===c?void 0:c.contentType).prefix,k=[u],x=y?{mediaType:I.DD.Media,media:{mediaType:[J.Z.VIDEO,J.Z.IMAGE,J.Z.AUDIO].indexOf(w)>-1?w:I.vW.File,ignoreValid:!0,provider:"twilio"}}:{mediaType:I.DD.Text};if(y&&de.j.push(r,J.Z.TWILIO_MEDIA_URL_EXPIRED),null!=p&&p.is_virtual_agent){var E,K=JSON.parse(u);k=K.responses,(x=K.payloads[0]||x).mediaType!==I.DD.QuickReplies&&(null===(E=x)||void 0===E?void 0:E.media_type)!==I.DD.QuickReplies||localStorage.setItem("vaComponent",JSON.stringify({component_type:I.DD.QuickReplies,payload_type:"payload"}))}return{responses:k,payload:x}}(u),se=ie.responses,ue=ie.payload;r.webchatRef.current.addBotResponse({response:(0,oe.Z)({id:u.sid,responses:se,payload:ue,from:u.author===c?"user":"bot",timestamp:E})})}}function addChatWelcomeMessages(r){var c,u,p=null===(c=r.touchPointConfig)||void 0===c||null===(u=c.chat)||void 0===u?void 0:u.messages;Array.isArray(p)&&p.filter((function(r){return r.value})).forEach((function(c){var u=c.key,p=c.value;r.webchatRef.current.addBotResponse({response:(0,oe.Z)({id:u,responses:[p],from:"bot"})})}))}function initiateLivechat(r,c,u){return _initiateLivechat.apply(this,arguments)}function _initiateLivechat(){return(_initiateLivechat=(0,k.Z)(E().mark((function _callee(r,c,u){var p,y,k,x,I,K,J,oe;return E().wrap((function _callee$(E){for(;;)switch(E.prev=E.next){case 0:return E.prev=0,E.next=3,ie.ZP.startLiveChat(c,r.region,u);case 3:return p=E.sent,y=p.token,k=p.conversationSid,x=p.identity,w=x,E.next=10,ie.ZP.createClient(y,k,x,r);case 10:return I=E.sent,E.next=13,ie.ZP.getConversationBySid(r,I,k);case 13:return(K=E.sent).on("messageAdded",(function(c){return handleReceivedMessage(r,x,c)})),E.abrupt("return",{client:I,conversation:K});case 18:E.prev=18,E.t0=E.catch(0),"0941024"===(null===E.t0||void 0===E.t0||null===(J=E.t0.response)||void 0===J||null===(oe=J.data)||void 0===oe?void 0:oe.code)?(0,ie.j)(r,!0):(0,ie.j)(r);case 21:case"end":return E.stop()}}),_callee,null,[[0,18]])})))).apply(this,arguments)}function loadMessages(r,c,u){return _loadMessages.apply(this,arguments)}function _loadMessages(){return(_loadMessages=(0,k.Z)(E().mark((function _callee2(r,c,u){var p,y;return E().wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,r.getMessages();case 2:if(p=w.sent,y=p.items){w.next=6;break}return w.abrupt("return");case 6:y.forEach((function(r){handleReceivedMessage(c,u,r.state)}));case 7:case"end":return w.stop()}}),_callee2)})))).apply(this,arguments)}function sendFirstMessage(r,c,u,p){return _sendFirstMessage.apply(this,arguments)}function _sendFirstMessage(){return(_sendFirstMessage=(0,k.Z)(E().mark((function _callee3(r,c,u,w){var k,x;return E().wrap((function _callee3$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,le.ZP.blocTextArea();case 2:return(0,ae.Ij)(!0),E.next=5,initiateLivechat(r,c,w);case 5:return k=E.sent,x=k.conversation,r.enableEndChatButton(),y=x,E.next=11,le.ZP.triggerOtherTabs();case 11:return E.next=13,(0,ue.hi)(y,u);case 13:if(E.t0=E.sent,E.t0){E.next=16;break}E.t0=p;case 16:p=E.t0;case 17:case"end":return E.stop()}}),_callee3)})))).apply(this,arguments)}function sendMessage(r){return _sendMessage.apply(this,arguments)}function _sendMessage(){return(_sendMessage=(0,k.Z)(E().mark((function _callee4(r){return E().wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:if("messageReceived"===r.id){c.next=7;break}return c.next=3,(0,ue.hi)(y,r);case 3:if(c.t0=c.sent,c.t0){c.next=6;break}c.t0=p;case 6:p=c.t0;case 7:case"end":return c.stop()}}),_callee4)})))).apply(this,arguments)}function restartLivechat(r){return _restartLivechat.apply(this,arguments)}function _restartLivechat(){return(_restartLivechat=(0,k.Z)(E().mark((function _callee5(r){return E().wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,le.ZP.cleanLiveChat();case 2:return(0,se.Ly)(J.Z.LIVECHAT_CONVERSATION_ENDED,!1),c.next=5,(0,ae.IZ)(r);case 5:r.onOpenInitialScreen(),addChatWelcomeMessages(r);case 7:case"end":return c.stop()}}),_callee5)})))).apply(this,arguments)}function connectToTheConversation(r){return _connectToTheConversation.apply(this,arguments)}function _connectToTheConversation(){return(_connectToTheConversation=(0,k.Z)(E().mark((function _callee6(r){var c,u,p,k,x;return E().wrap((function _callee6$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,le.ZP.getAllCredentials();case 2:return c=E.sent,u=c.token,p=c.conversationSid,k=c.identity,w=k,E.next=9,ie.ZP.createClient(u,p,k,r);case 9:if(x=E.sent){E.next=12;break}return E.abrupt("return");case 12:return E.next=14,ie.ZP.getConversationBySid(r,x,p);case 14:return(y=E.sent).on("messageAdded",(function(c){return handleReceivedMessage(r,k,c)})),E.next=18,loadMessages(y,r,k);case 18:return(0,ae.Ij)(!1),r.enableEndChatButton(),E.abrupt("return",{client:x,conversation:y});case 21:case"end":return E.stop()}}),_callee6)})))).apply(this,arguments)}function handleLivechatMessages(r,c,u){return _handleLivechatMessages.apply(this,arguments)}function _handleLivechatMessages(){return(_handleLivechatMessages=(0,k.Z)(E().mark((function _callee7(r,c,u){return E().wrap((function _callee7$(p){for(;;)switch(p.prev=p.next){case 0:if((null==c?void 0:c.payload)!==I.Qx.StartNewChat){p.next=5;break}return p.next=3,restartLivechat(r);case 3:p.next=12;break;case 5:if(!le.ZP.conversationExists()){p.next=10;break}return p.next=8,sendMessage(c);case 8:p.next=12;break;case 10:return p.next=12,sendFirstMessage(r,r.appId,c,u);case 12:case"end":return p.stop()}}),_callee7)})))).apply(this,arguments)}function handleOnConversationStart(r,c){return _handleOnConversationStart.apply(this,arguments)}function _handleOnConversationStart(){return(_handleOnConversationStart=(0,k.Z)(E().mark((function _callee8(r,c){return E().wrap((function _callee8$(u){for(;;)switch(u.prev=u.next){case 0:if("text"!==c.type||le.ZP.conversationExists()){u.next=13;break}return u.prev=1,(0,ae.Ij)(!0),u.next=5,r.onConversationStartWebchat();case 5:u.next=10;break;case 7:u.prev=7,u.t0=u.catch(1),console.error("onConversationStart error",u.t0);case 10:return u.prev=10,(0,ae.Ij)(!1),u.finish(10);case 13:case"end":return u.stop()}}),_callee8,null,[[1,7,10,13]])})))).apply(this,arguments)}function handleRemoveSelfInParticipants(){return _handleRemoveSelfInParticipants.apply(this,arguments)}function _handleRemoveSelfInParticipants(){return(_handleRemoveSelfInParticipants=(0,k.Z)(E().mark((function _callee9(){var r,c;return E().wrap((function _callee9$(u){for(;;)switch(u.prev=u.next){case 0:if(y){u.next=3;break}return console.error("conversation is empty"),u.abrupt("return");case 3:if(w){u.next=6;break}return console.error("identity is empty"),u.abrupt("return");case 6:return u.next=8,y.getParticipants();case 8:return r=u.sent,c=r.find((function(r){return r.identity===w})),u.prev=10,u.next=13,y.removeParticipant(c);case 13:u.next=18;break;case 15:throw u.prev=15,u.t0=u.catch(10),new Error(u.t0);case 18:case"end":return u.stop()}}),_callee9,null,[[10,15]])})))).apply(this,arguments)}},82234:(r,c,u)=>{"use strict";u.d(c,{OH:()=>getTriggerButtonElement,is:()=>getTextAreaElement,Ij:()=>textAreaHandler,IZ:()=>cleanLivechat,ky:()=>x});var p=u(28481),y=u(92137),w=u(87757),k=u.n(w);function getTriggerButtonElement(){var r,c,u=document.querySelector('#tdWebchat > div > div > [data-qa="trigger-button"]');u||(u=null===(r=document.getElementById("tdWebchat"))||void 0===r||null===(c=r.shadowRoot)||void 0===c?void 0:c.querySelector('div > div > [data-qa="trigger-button"]'));return u}function getTextAreaElement(){var r,c,u=document.getElementById("botonic-webchat");u||(u=null===(r=document.getElementById("tdWebchat"))||void 0===r||null===(c=r.shadowRoot)||void 0===c?void 0:c.getElementById("botonic-webchat"));return u?u.getElementsByTagName("textarea")[0]:null}function textAreaHandler(r){var c=getTextAreaElement(),u=function getAttachmentInput(){var r,c,u=document.getElementById("botonic-webchat");return u||(u=null===(r=document.getElementById("tdWebchat"))||void 0===r||null===(c=r.shadowRoot)||void 0===c?void 0:c.getElementById("botonic-webchat")),u?u.querySelector('div[data-qa="FeaturesWrapper"] input[type="file"]'):null}();c&&(r?(c.setAttribute("disabled","true"),null==u||u.setAttribute("disabled","true")):(c.removeAttribute("disabled"),c.focus(),null==u||u.removeAttribute("disabled")))}function cleanLivechat(r){return _cleanLivechat.apply(this,arguments)}function _cleanLivechat(){return(_cleanLivechat=(0,y.Z)(k().mark((function _callee(r){return k().wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:r.webchatRef.current.closeCoverComponent(),r.clearMessages(),r.setUserInput(!0);case 3:case"end":return c.stop()}}),_callee)})))).apply(this,arguments)}var x=function getFileMimes(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var c=r.split("/"),u=(0,p.Z)(c,2),y=u[0],w=u[1];return{prefix:y,suffix:w}}catch(r){return{prefix:"",suffix:""}}}},78797:(r,c,u)=>{"use strict";u.d(c,{ZP:()=>Oe,j:()=>endChatHandler,tQ:()=>fetchInitialScreenConfig});var p,y=u(96156),w=u(92137),k=u(87757),x=u.n(k),E=u(55877),I=u(85346),K=u(85829),J=u(6610),ie=u(5991),oe=function(){function HttpClientDce(r){(0,J.Z)(this,HttpClientDce),(0,y.Z)(this,"axiosInstance",void 0),this.axiosInstance=r}return(0,ie.Z)(HttpClientDce,[{key:"post",value:function post(r,c){return this.axiosInstance.post(r,c).catch((function(r){throw r}))}},{key:"get",value:function get(r,c){return this.axiosInstance.get(r,{params:c})}}]),HttpClientDce}(),se=u(60391),ae=u(56744),ue=u(38086),le=u(20192),de=u(4675),pe=u(8310),he=u(40121),ge=(p={},(0,y.Z)(p,he.yp.USA,"https://api.talkdeskapp.com/2019-11/pas/livechats"),(0,y.Z)(p,he.yp.Europe,"https://api.talkdeskapp.eu/2019-11/pas/livechats"),(0,y.Z)(p,he.yp.Canada,"https://api.talkdeskappca.com/2019-11/pas/livechats"),p),ve=function getPASApiUrl(r){return ge[r]};function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){(0,y.Z)(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var we=function httpClient(r){return new oe((0,se.H)(ve(r)))},Se=function(){var r=(0,w.Z)(x().mark((function _callee(r,c,u,p){var y,w,k,E,I,K;return x().wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,pe.ZP.verifyTwilioCredentials();case 2:if(x.sent){x.next=14;break}return y={app_id:r,identity:c,page_url:document.location.href,custom_fields:p&&Object.keys(p).length?p:void 0},x.next=6,ve(u);case 6:return w=x.sent,x.next=9,we(u).post(w,y);case 9:return k=x.sent,E=null==k?void 0:k.data,I=E.accessToken,K=E.conversationSid,x.next=13,pe.ZP.setTwilioCredentials(I,K);case 13:return x.abrupt("return",{token:I,conversationSid:K});case 14:return x.abrupt("return",pe.ZP.getTwilioCredentials());case 15:case"end":return x.stop()}}),_callee)})));return function startLiveChatInteraction(c,u,p,y){return r.apply(this,arguments)}}();function generateIdentity(){return _generateIdentity.apply(this,arguments)}function _generateIdentity(){return(_generateIdentity=(0,w.Z)(x().mark((function _callee2(){var r;return x().wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,pe.ZP.identity("get");case 2:if(!c.sent){c.next=8;break}return c.next=5,pe.ZP.identity("get");case 5:r=c.sent,c.next=11;break;case 8:return r="widget.".concat(window.location.hostname,"-").concat((0,K.k)((0,E.v4)(),"-","")),c.next=11,pe.ZP.identity("set",r);case 11:return c.abrupt("return",r);case 12:case"end":return c.stop()}}),_callee2)})))).apply(this,arguments)}function _startLiveChat(){return(_startLiveChat=(0,w.Z)(x().mark((function _callee3(r,c,u){var p,y,w,k;return x().wrap((function _callee3$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,generateIdentity();case 2:return p=x.sent,x.next=5,Se(r,p,c,u);case 5:return y=x.sent,w=y.token,k=y.conversationSid,x.next=10,pe.ZP.startConversation();case 10:return x.abrupt("return",{token:w,conversationSid:k,identity:p});case 11:case"end":return x.stop()}}),_callee3)})))).apply(this,arguments)}function endChatHandler(r,c){r.setUserInput(!1),c?r.webchatRef.current.addBotResponse({response:(0,ue.Z)({id:(0,E.v4)(),responses:[""],chatIsInactive:!0})}):r.webchatRef.current.addBotResponse({response:(0,ue.Z)({id:(0,E.v4)(),responses:[""],hasConversationEnded:!0})}),r.updateWebchatSettings({theme:_objectSpread(_objectSpread({},r.theme),{},{coverComponent:le.Z})}),r.webchatRef.current.openCoverComponent(),(0,ae.Ly)(de.Z.LIVECHAT_CONVERSATION_ENDED,!0),r.disableEndChatButton()}function getConversationBySid(r,c,u){return _getConversationBySid.apply(this,arguments)}function _getConversationBySid(){return(_getConversationBySid=(0,w.Z)(x().mark((function _callee4(r,c,u){return x().wrap((function _callee4$(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.abrupt("return",c.getConversationBySid(u));case 4:return p.prev=4,p.t0=p.catch(0),endChatHandler(r),p.abrupt("return",p.t0);case 8:case"end":return p.stop()}}),_callee4,null,[[0,4]])})))).apply(this,arguments)}function updateParticipantReadyForChat(r,c,u,p){return _updateParticipantReadyForChat.apply(this,arguments)}function _updateParticipantReadyForChat(){return(_updateParticipantReadyForChat=(0,w.Z)(x().mark((function _callee5(r,c,u,p){var y,w;return x().wrap((function _callee5$(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,getConversationBySid(r,c,u);case 2:return y=k.sent,k.next=5,y.getParticipantByIdentity(p);case 5:return(w=k.sent).attributes.custom_fields&&(w.attributes.custom_fields=void 0),w.attributes.bootstrapped=!0,k.next=10,w.updateAttributes(w.attributes);case 10:return k.next=12,localStorage.setItem("isParticipantReadyForChat","true");case 12:case"end":return k.stop()}}),_callee5)})))).apply(this,arguments)}function _createClient(){return(_createClient=(0,w.Z)(x().mark((function _callee7(r,c,u,p){var y;return x().wrap((function _callee7$(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,I.Client.create(r);case 2:return(y=k.sent).once("conversationJoined",(0,w.Z)(x().mark((function _callee6(){return x().wrap((function _callee6$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,localStorage.getItem("isParticipantReadyForChat");case 2:if(r.sent){r.next=5;break}return r.next=5,updateParticipantReadyForChat(p,y,c,u);case 5:case"end":return r.stop()}}),_callee6)})))),y.on("conversationLeft",(function(){endChatHandler(p),y.removeAllListeners()})),y.on("tokenExpired",(function(){endChatHandler(p),y.removeAllListeners()})),k.abrupt("return",y);case 7:case"end":return k.stop()}}),_callee7)})))).apply(this,arguments)}function fetchInitialScreenConfig(r,c,u){return _fetchInitialScreenConfig.apply(this,arguments)}function _fetchInitialScreenConfig(){return(_fetchInitialScreenConfig=(0,w.Z)(x().mark((function _callee8(r,c,u){var p,y,w,k,E,I,K,J;return x().wrap((function _callee8$(x){for(;;)switch(x.prev=x.next){case 0:if(c){x.next=2;break}return x.abrupt("return",{active:!0});case 2:return x.next=4,ve(u);case 4:return p=x.sent,x.prev=5,x.next=8,we(u).get(p,{touchpoint_value:r});case 8:if(null==(E=x.sent)||null===(y=E.data)||void 0===y||!y.config){x.next=11;break}return x.abrupt("return",{config:JSON.parse(null==E||null===(I=E.data)||void 0===I?void 0:I.config),active:null==E||null===(K=E.data)||void 0===K?void 0:K.active,enableAttachments:null==E||null===(J=E.data)||void 0===J?void 0:J.enableAttachments});case 11:return x.abrupt("return",{config:null,active:null==E||null===(w=E.data)||void 0===w?void 0:w.active,enableAttachments:null==E||null===(k=E.data)||void 0===k?void 0:k.enableAttachments});case 14:x.prev=14,x.t0=x.catch(5),console.error("fetch InitialScreenConfig error ",x.t0);case 17:case"end":return x.stop()}}),_callee8,null,[[5,14]])})))).apply(this,arguments)}const Oe={startLiveChat:function startLiveChat(r,c,u){return _startLiveChat.apply(this,arguments)},createClient:function createClient(r,c,u,p){return _createClient.apply(this,arguments)},getConversationBySid,updateParticipantReadyForChat,fetchInitialScreenConfig}},18486:(r,c,u)=>{"use strict";u.d(c,{j:()=>E});var p=u(92137),y=u(87757),w=u.n(y),k=u(14667),x=!1;var E=function ProviderTwilioMedia(){var r={},c={},u=function emit(r,u){!c[r]||c[r].length<=0||c[r].forEach((function(r){return r(u)}))},y=function preImageLoad(r){return new Promise((function(c){var u=new Image;u.src=r,u.onload=function(){c({url:r,error:null}),u.remove()},u.onerror=function(){c({url:r,error:new Error("pre load image error ".concat(r))}),u.remove()}}))},E=function(){var r=(0,p.Z)(w().mark((function _callee(r){var c,u,p,x,E;return w().wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,p=null===(c=r.media)||void 0===c?void 0:c.contentType,x=/image/gi.test(p),w.next=5,null===(u=r.media)||void 0===u?void 0:u.getContentTemporaryUrl();case 5:if(E=w.sent,!x){w.next=10;break}return w.next=9,y(E);case 9:return w.abrupt("return",w.sent);case 10:return w.abrupt("return",{url:E,error:null});case 13:return w.prev=13,w.t0=w.catch(0),k.Z.logError(w.t0),w.abrupt("return",{url:"",error:w.t0});case 17:case"end":return w.stop()}}),_callee,null,[[0,13]])})));return function getUrl(c){return r.apply(this,arguments)}}(),I=function(){var c=(0,p.Z)(w().mark((function _callee2(c){var p,y,k;return w().wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:if(!r[c]||!r[c].message){w.next=10;break}return w.next=3,E(r[c].message);case 3:p=w.sent,y=p.url,k=p.error,r[c].currentUrl=y,r[c].currentError=k,y&&(r[c].expiredTimeStamp=Date.now()+r[c].expired),u(c,r[c]);case 10:return w.abrupt("return",r[c]);case 11:case"end":return w.stop()}}),_callee2)})));return function retry(r){return c.apply(this,arguments)}}();return x||(!function start(){!function timeout(){setTimeout((function(){!function runTime(c){for(var p=Object.keys(r),y=function _loop(y){var w=p[y],k=r[w],x=k.expiredTimeStamp,I=k.message,K=k.expired;c>=x&&(r[w].expiredTimeStamp=c+K,E(I).then((function(c){r[w].currentUrl=c.url,r[w].currentError=c.error,u(w,r[w])})))},w=0;w<p.length;w+=1)y(w)}(Date.now()),timeout()}),1e3)}()}(),x=!0),{push:function push(c,u){return r[c.sid]={message:c,expired:u,expiredTimeStamp:Date.now(),currentUrl:"",currentError:void 0},r},on:function on(r,u){return c[r]||(c[r]=[]),c[r].push(u),c},off:function off(r,u){return c[r]&&c[r].length>0&&c[r].forEach((function(p,y){u===p&&c[r].splice(y,1)})),c},retry:I,get current(){return r}}}()},8310:(r,c,u)=>{"use strict";u.d(c,{c2:()=>k,KO:()=>x,ZP:()=>E});var p=u(92137),y=u(87757),w=u.n(y),k=function conversationExists(){return!!localStorage.getItem("livechatInit")},x=function getLocalStorageToken(){return!!localStorage.getItem("tokenLivechat")};const E={triggerOtherTabs:function(){var r=(0,p.Z)(w().mark((function _callee(){return w().wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,localStorage.setItem("connectOtherTabs","true");case 2:return r.next=4,localStorage.removeItem("connectOtherTabs");case 4:case"end":return r.stop()}}),_callee)})));return function triggerOtherTabs(){return r.apply(this,arguments)}}(),blocTextArea:function(){var r=(0,p.Z)(w().mark((function _callee2(){return w().wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,localStorage.setItem("blocTextArea","true");case 2:return r.next=4,localStorage.removeItem("blocTextArea");case 4:case"end":return r.stop()}}),_callee2)})));return function blocTextArea(){return r.apply(this,arguments)}}(),getAllCredentials:function(){var r=(0,p.Z)(w().mark((function _callee3(){var r,c,u;return w().wrap((function _callee3$(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,localStorage.getItem("tokenLivechat");case 2:return r=p.sent,p.next=5,localStorage.getItem("conversationSid");case 5:return c=p.sent,p.next=8,localStorage.getItem("identity");case 8:return u=p.sent,p.abrupt("return",{token:r,conversationSid:c,identity:u});case 10:case"end":return p.stop()}}),_callee3)})));return function getAllCredentials(){return r.apply(this,arguments)}}(),cleanLiveChat:function(){var r=(0,p.Z)(w().mark((function _callee4(){return w().wrap((function _callee4$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,localStorage.removeItem("tokenLivechat");case 2:return r.next=4,localStorage.removeItem("conversationSid");case 4:return r.next=6,localStorage.removeItem("identity");case 6:return r.next=8,localStorage.removeItem("livechatInit");case 8:return r.next=10,localStorage.setItem("cleanLivechatTD","true");case 10:return r.next=12,localStorage.removeItem("cleanLivechatTD");case 12:return r.next=14,localStorage.removeItem("isParticipantReadyForChat");case 14:return r.next=16,sessionStorage.removeItem("endChatSession");case 16:return r.next=18,localStorage.removeItem("lastReadMessageIndex");case 18:return r.next=20,localStorage.removeItem("lastMessageIndex");case 20:case"end":return r.stop()}}),_callee4)})));return function cleanLiveChat(){return r.apply(this,arguments)}}(),verifyTwilioCredentials:function(){var r=(0,p.Z)(w().mark((function _callee5(){return w().wrap((function _callee5$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",!(!localStorage.getItem("tokenLivechat")||!localStorage.getItem("conversationSid")));case 1:case"end":return r.stop()}}),_callee5)})));return function verifyTwilioCredentials(){return r.apply(this,arguments)}}(),setTwilioCredentials:function(){var r=(0,p.Z)(w().mark((function _callee6(r,c){return w().wrap((function _callee6$(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,localStorage.setItem("tokenLivechat",r);case 2:return u.next=4,localStorage.setItem("conversationSid",c);case 4:case"end":return u.stop()}}),_callee6)})));return function setTwilioCredentials(c,u){return r.apply(this,arguments)}}(),getTwilioCredentials:function(){var r=(0,p.Z)(w().mark((function _callee7(){var r,c;return w().wrap((function _callee7$(u){for(;;)switch(u.prev=u.next){case 0:return r=localStorage.getItem("tokenLivechat"),c=localStorage.getItem("conversationSid"),u.abrupt("return",{token:r,conversationSid:c});case 3:case"end":return u.stop()}}),_callee7)})));return function getTwilioCredentials(){return r.apply(this,arguments)}}(),identity:function(){var r=(0,p.Z)(w().mark((function _callee8(r){var c,u,p=arguments;return w().wrap((function _callee8$(y){for(;;)switch(y.prev=y.next){case 0:c=p.length>1&&void 0!==p[1]?p[1]:null,u=c,y.t0=r,y.next="set"===y.t0?5:"get"===y.t0?9:13;break;case 5:return y.next=7,localStorage.setItem("identity",c);case 7:return u=y.sent,y.abrupt("return",u);case 9:return y.next=11,localStorage.getItem("identity");case 11:return u=y.sent,y.abrupt("return",u);case 13:return y.abrupt("return",u);case 14:case"end":return y.stop()}}),_callee8)})));return function identity(c){return r.apply(this,arguments)}}(),startConversation:function(){var r=(0,p.Z)(w().mark((function _callee9(){return w().wrap((function _callee9$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,localStorage.setItem("livechatInit","true");case 2:case"end":return r.stop()}}),_callee9)})));return function startConversation(){return r.apply(this,arguments)}}(),conversationExists:k,getLocalStorageToken:x}},24043:(r,c,u)=>{r.exports={default:u(73404),__esModule:!0}},26378:(r,c,u)=>{r.exports={default:u(3597),__esModule:!0}},40863:(r,c,u)=>{r.exports={default:u(21035),__esModule:!0}},63239:(r,c,u)=>{r.exports={default:u(92742),__esModule:!0}},52367:(r,c,u)=>{r.exports={default:u(3896),__esModule:!0}},72e3:(r,c,u)=>{r.exports={default:u(36989),__esModule:!0}},52945:(r,c,u)=>{r.exports={default:u(56981),__esModule:!0}},85861:(r,c,u)=>{r.exports={default:u(45627),__esModule:!0}},32242:(r,c,u)=>{r.exports={default:u(33391),__esModule:!0}},8177:(r,c,u)=>{r.exports={default:u(67036),__esModule:!0}},85105:(r,c,u)=>{r.exports={default:u(30381),__esModule:!0}},88902:(r,c,u)=>{r.exports={default:u(98613),__esModule:!0}},85345:(r,c,u)=>{r.exports={default:u(70433),__esModule:!0}},46593:(r,c,u)=>{r.exports={default:u(80112),__esModule:!0}},24781:(r,c,u)=>{r.exports={default:u(38318),__esModule:!0}},448:(r,c,u)=>{r.exports={default:u(95736),__esModule:!0}},9527:(r,c,u)=>{r.exports={default:u(32720),__esModule:!0}},93516:(r,c,u)=>{r.exports={default:u(80025),__esModule:!0}},64275:(r,c,u)=>{r.exports={default:u(52392),__esModule:!0}},36803:(r,c,u)=>{"use strict";c.__esModule=!0;var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(46593));c.default=function(r){return function(){var c=r.apply(this,arguments);return new p.default((function(r,u){return function step(y,w){try{var k=c[y](w),x=k.value}catch(r){return void u(r)}if(!k.done)return p.default.resolve(x).then((function(r){step("next",r)}),(function(r){step("throw",r)}));r(x)}("next")}))}}},99663:(r,c)=>{"use strict";c.__esModule=!0,c.default=function(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}},22600:(r,c,u)=>{"use strict";c.__esModule=!0;var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(32242));c.default=function(){function defineProperties(r,c){for(var u=0;u<c.length;u++){var y=c[u];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),(0,p.default)(r,y.key,y)}}return function(r,c,u){return c&&defineProperties(r.prototype,c),u&&defineProperties(r,u),r}}()},93196:(r,c,u)=>{"use strict";c.__esModule=!0;var p=_interopRequireDefault(u(85345)),y=_interopRequireDefault(u(85861)),w=_interopRequireDefault(u(72444));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}c.default=function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+(void 0===c?"undefined":(0,w.default)(c)));r.prototype=(0,y.default)(c&&c.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c&&(p.default?(0,p.default)(r,c):r.__proto__=c)}},49135:(r,c,u)=>{"use strict";c.__esModule=!0;var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(72444));c.default=function(r,c){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==(void 0===c?"undefined":(0,p.default)(c))&&"function"!=typeof c?r:c}},12424:(r,c,u)=>{"use strict";c.__esModule=!0;var p=_interopRequireDefault(u(40863)),y=_interopRequireDefault(u(26378));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}c.default=function(r,c){if(Array.isArray(r))return r;if((0,p.default)(Object(r)))return function sliceIterator(r,c){var u=[],p=!0,w=!1,k=void 0;try{for(var x,E=(0,y.default)(r);!(p=(x=E.next()).done)&&(u.push(x.value),!c||u.length!==c);p=!0);}catch(r){w=!0,k=r}finally{try{!p&&E.return&&E.return()}finally{if(w)throw k}}return u}(r,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},85315:(r,c,u)=>{"use strict";c.__esModule=!0;var p=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(24043));c.default=function(r){if(Array.isArray(r)){for(var c=0,u=Array(r.length);c<r.length;c++)u[c]=r[c];return u}return(0,p.default)(r)}},72444:(r,c,u)=>{"use strict";c.__esModule=!0;var p=_interopRequireDefault(u(64275)),y=_interopRequireDefault(u(93516)),w="function"==typeof y.default&&"symbol"==typeof p.default?function(r){return typeof r}:function(r){return r&&"function"==typeof y.default&&r.constructor===y.default&&r!==y.default.prototype?"symbol":typeof r};function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}c.default="function"==typeof y.default&&"symbol"===w(p.default)?function(r){return void 0===r?"undefined":w(r)}:function(r){return r&&"function"==typeof y.default&&r.constructor===y.default&&r!==y.default.prototype?"symbol":void 0===r?"undefined":w(r)}},52548:(r,c,u)=>{var p=function(){return this}()||Function("return this")(),y=p.regeneratorRuntime&&Object.getOwnPropertyNames(p).indexOf("regeneratorRuntime")>=0,w=y&&p.regeneratorRuntime;if(p.regeneratorRuntime=void 0,r.exports=u(58544),y)p.regeneratorRuntime=w;else try{delete p.regeneratorRuntime}catch(r){p.regeneratorRuntime=void 0}},58544:r=>{!function(c){"use strict";var u=Object.prototype,p=u.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},w=y.iterator||"@@iterator",k=y.asyncIterator||"@@asyncIterator",x=y.toStringTag||"@@toStringTag",E=c.regeneratorRuntime;if(E)r.exports=E;else{(E=c.regeneratorRuntime=r.exports).wrap=wrap;var I={},K={};K[w]=function(){return this};var J=Object.getPrototypeOf,ie=J&&J(J(values([])));ie&&ie!==u&&p.call(ie,w)&&(K=ie);var oe=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(K);GeneratorFunction.prototype=oe.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunctionPrototype[x]=GeneratorFunction.displayName="GeneratorFunction",E.isGeneratorFunction=function(r){var c="function"==typeof r&&r.constructor;return!!c&&(c===GeneratorFunction||"GeneratorFunction"===(c.displayName||c.name))},E.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,GeneratorFunctionPrototype):(r.__proto__=GeneratorFunctionPrototype,x in r||(r[x]="GeneratorFunction")),r.prototype=Object.create(oe),r},E.awrap=function(r){return{__await:r}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[k]=function(){return this},E.AsyncIterator=AsyncIterator,E.async=function(r,c,u,p){var y=new AsyncIterator(wrap(r,c,u,p));return E.isGeneratorFunction(c)?y:y.next().then((function(r){return r.done?r.value:y.next()}))},defineIteratorMethods(oe),oe[x]="Generator",oe[w]=function(){return this},oe.toString=function(){return"[object Generator]"},E.keys=function(r){var c=[];for(var u in r)c.push(u);return c.reverse(),function next(){for(;c.length;){var u=c.pop();if(u in r)return next.value=u,next.done=!1,next}return next.done=!0,next}},E.values=values,Context.prototype={constructor:Context,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!r)for(var c in this)"t"===c.charAt(0)&&p.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var c=this;function handle(u,p){return w.type="throw",w.arg=r,c.next=u,p&&(c.method="next",c.arg=void 0),!!p}for(var u=this.tryEntries.length-1;u>=0;--u){var y=this.tryEntries[u],w=y.completion;if("root"===y.tryLoc)return handle("end");if(y.tryLoc<=this.prev){var k=p.call(y,"catchLoc"),x=p.call(y,"finallyLoc");if(k&&x){if(this.prev<y.catchLoc)return handle(y.catchLoc,!0);if(this.prev<y.finallyLoc)return handle(y.finallyLoc)}else if(k){if(this.prev<y.catchLoc)return handle(y.catchLoc,!0)}else{if(!x)throw new Error("try statement without catch or finally");if(this.prev<y.finallyLoc)return handle(y.finallyLoc)}}}},abrupt:function(r,c){for(var u=this.tryEntries.length-1;u>=0;--u){var y=this.tryEntries[u];if(y.tryLoc<=this.prev&&p.call(y,"finallyLoc")&&this.prev<y.finallyLoc){var w=y;break}}w&&("break"===r||"continue"===r)&&w.tryLoc<=c&&c<=w.finallyLoc&&(w=null);var k=w?w.completion:{};return k.type=r,k.arg=c,w?(this.method="next",this.next=w.finallyLoc,I):this.complete(k)},complete:function(r,c){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&c&&(this.next=c),I},finish:function(r){for(var c=this.tryEntries.length-1;c>=0;--c){var u=this.tryEntries[c];if(u.finallyLoc===r)return this.complete(u.completion,u.afterLoc),resetTryEntry(u),I}},catch:function(r){for(var c=this.tryEntries.length-1;c>=0;--c){var u=this.tryEntries[c];if(u.tryLoc===r){var p=u.completion;if("throw"===p.type){var y=p.arg;resetTryEntry(u)}return y}}throw new Error("illegal catch attempt")},delegateYield:function(r,c,u){return this.delegate={iterator:values(r),resultName:c,nextLoc:u},"next"===this.method&&(this.arg=void 0),I}}}function wrap(r,c,u,p){var y=c&&c.prototype instanceof Generator?c:Generator,w=Object.create(y.prototype),k=new Context(p||[]);return w._invoke=function makeInvokeMethod(r,c,u){var p="suspendedStart";return function invoke(y,w){if("executing"===p)throw new Error("Generator is already running");if("completed"===p){if("throw"===y)throw w;return doneResult()}for(u.method=y,u.arg=w;;){var k=u.delegate;if(k){var x=maybeInvokeDelegate(k,u);if(x){if(x===I)continue;return x}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===p)throw p="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);p="executing";var E=tryCatch(r,c,u);if("normal"===E.type){if(p=u.done?"completed":"suspendedYield",E.arg===I)continue;return{value:E.arg,done:u.done}}"throw"===E.type&&(p="completed",u.method="throw",u.arg=E.arg)}}}(r,u,k),w}function tryCatch(r,c,u){try{return{type:"normal",arg:r.call(c,u)}}catch(r){return{type:"throw",arg:r}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(r){["next","throw","return"].forEach((function(c){r[c]=function(r){return this._invoke(c,r)}}))}function AsyncIterator(r){var c;this._invoke=function enqueue(u,y){function callInvokeWithMethodAndArg(){return new Promise((function(c,w){!function invoke(c,u,y,w){var k=tryCatch(r[c],r,u);if("throw"!==k.type){var x=k.arg,E=x.value;return E&&"object"==typeof E&&p.call(E,"__await")?Promise.resolve(E.__await).then((function(r){invoke("next",r,y,w)}),(function(r){invoke("throw",r,y,w)})):Promise.resolve(E).then((function(r){x.value=r,y(x)}),w)}w(k.arg)}(u,y,c,w)}))}return c=c?c.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(r,c){var u=r.iterator[c.method];if(void 0===u){if(c.delegate=null,"throw"===c.method){if(r.iterator.return&&(c.method="return",c.arg=void 0,maybeInvokeDelegate(r,c),"throw"===c.method))return I;c.method="throw",c.arg=new TypeError("The iterator does not provide a 'throw' method")}return I}var p=tryCatch(u,r.iterator,c.arg);if("throw"===p.type)return c.method="throw",c.arg=p.arg,c.delegate=null,I;var y=p.arg;return y?y.done?(c[r.resultName]=y.value,c.next=r.nextLoc,"return"!==c.method&&(c.method="next",c.arg=void 0),c.delegate=null,I):y:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,I)}function pushTryEntry(r){var c={tryLoc:r[0]};1 in r&&(c.catchLoc=r[1]),2 in r&&(c.finallyLoc=r[2],c.afterLoc=r[3]),this.tryEntries.push(c)}function resetTryEntry(r){var c=r.completion||{};c.type="normal",delete c.arg,r.completion=c}function Context(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r){var c=r[w];if(c)return c.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var u=-1,y=function next(){for(;++u<r.length;)if(p.call(r,u))return next.value=r[u],next.done=!1,next;return next.value=void 0,next.done=!0,next};return y.next=y}}return{next:doneResult}}function doneResult(){return{value:void 0,done:!0}}}(function(){return this}()||Function("return this")())},94942:(r,c,u)=>{r.exports=u(52548)},86010:(r,c,u)=>{"use strict";function toVal(r){var c,u,p="";if("string"==typeof r||"number"==typeof r)p+=r;else if("object"==typeof r)if(Array.isArray(r))for(c=0;c<r.length;c++)r[c]&&(u=toVal(r[c]))&&(p&&(p+=" "),p+=u);else for(c in r)r[c]&&(p&&(p+=" "),p+=c);return p}function __WEBPACK_DEFAULT_EXPORT__(){for(var r,c,u=0,p="";u<arguments.length;)(r=arguments[u++])&&(c=toVal(r))&&(p&&(p+=" "),p+=c);return p}u.d(c,{Z:()=>__WEBPACK_DEFAULT_EXPORT__})},73404:(r,c,u)=>{u(91867),u(2586),r.exports=u(34579).Array.from},3597:(r,c,u)=>{u(73871),u(91867),r.exports=u(46459)},21035:(r,c,u)=>{u(73871),u(91867),r.exports=u(89553)},92742:(r,c,u)=>{var p=u(34579),y=p.JSON||(p.JSON={stringify:JSON.stringify});r.exports=function stringify(r){return y.stringify.apply(y,arguments)}},3896:(r,c,u)=>{u(94058),u(91867),u(73871),u(54138),u(82834),u(605),u(85828),r.exports=u(34579).Map},36989:(r,c,u)=>{u(39846),r.exports=u(34579).Number.isInteger},56981:(r,c,u)=>{u(72699),r.exports=u(34579).Object.assign},45627:(r,c,u)=>{u(86760);var p=u(34579).Object;r.exports=function create(r,c){return p.create(r,c)}},33391:(r,c,u)=>{u(31477);var p=u(34579).Object;r.exports=function defineProperty(r,c,u){return p.defineProperty(r,c,u)}},67036:(r,c,u)=>{u(65178);var p=u(34579).Object;r.exports=function getOwnPropertyDescriptor(r,c){return p.getOwnPropertyDescriptor(r,c)}},30381:(r,c,u)=>{u(77220),r.exports=u(34579).Object.getPrototypeOf},98613:(r,c,u)=>{u(40961),r.exports=u(34579).Object.keys},70433:(r,c,u)=>{u(59349),r.exports=u(34579).Object.setPrototypeOf},80112:(r,c,u)=>{u(94058),u(91867),u(73871),u(32878),u(95971),u(22526),r.exports=u(34579).Promise},38318:(r,c,u)=>{u(99650),r.exports=u(34579).Reflect.construct},95736:(r,c,u)=>{u(60630),r.exports=u(34579).Reflect.metadata},32720:(r,c,u)=>{u(94058),u(91867),u(73871),u(61003),u(48408),u(31749),u(59806),r.exports=u(34579).Set},80025:(r,c,u)=>{u(46840),u(94058),u(8174),u(36461),r.exports=u(34579).Symbol},52392:(r,c,u)=>{u(91867),u(73871),r.exports=u(25103).f("iterator")},85663:r=>{r.exports=function(r){if("function"!=typeof r)throw TypeError(r+" is not a function!");return r}},79003:r=>{r.exports=function(){}},29142:r=>{r.exports=function(r,c,u,p){if(!(r instanceof c)||void 0!==p&&p in r)throw TypeError(u+": incorrect invocation!");return r}},12159:(r,c,u)=>{var p=u(36727);r.exports=function(r){if(!p(r))throw TypeError(r+" is not an object!");return r}},37259:(r,c,u)=>{var p=u(45576);r.exports=function(r,c){var u=[];return p(r,!1,u.push,u,c),u}},57428:(r,c,u)=>{var p=u(7932),y=u(78728),w=u(16531);r.exports=function(r){return function(c,u,k){var x,E=p(c),I=y(E.length),K=w(k,I);if(r&&u!=u){for(;I>K;)if((x=E[K++])!=x)return!0}else for(;I>K;K++)if((r||K in E)&&E[K]===u)return r||K||0;return!r&&-1}}},1523:(r,c,u)=>{var p=u(19216),y=u(50799),w=u(66530),k=u(78728),x=u(87745);r.exports=function(r,c){var u=1==r,E=2==r,I=3==r,K=4==r,J=6==r,ie=5==r||J,oe=c||x;return function(c,x,se){for(var ae,ue,le=w(c),de=y(le),pe=p(x,se,3),he=k(de.length),ge=0,ve=u?oe(c,he):E?oe(c,0):void 0;he>ge;ge++)if((ie||ge in de)&&(ue=pe(ae=de[ge],ge,le),r))if(u)ve[ge]=ue;else if(ue)switch(r){case 3:return!0;case 5:return ae;case 6:return ge;case 2:ve.push(ae)}else if(K)return!1;return J?-1:I||K?K:ve}}},80161:(r,c,u)=>{var p=u(36727),y=u(71421),w=u(22939)("species");r.exports=function(r){var c;return y(r)&&("function"!=typeof(c=r.constructor)||c!==Array&&!y(c.prototype)||(c=void 0),p(c)&&null===(c=c[w])&&(c=void 0)),void 0===c?Array:c}},87745:(r,c,u)=>{var p=u(80161);r.exports=function(r,c){return new(p(r))(c)}},14094:(r,c,u)=>{"use strict";var p=u(85663),y=u(36727),w=u(46778),k=[].slice,x={},construct=function(r,c,u){if(!(c in x)){for(var p=[],y=0;y<c;y++)p[y]="a["+y+"]";x[c]=Function("F,a","return new F("+p.join(",")+")")}return x[c](r,u)};r.exports=Function.bind||function bind(r){var c=p(this),u=k.call(arguments,1),bound=function(){var p=u.concat(k.call(arguments));return this instanceof bound?construct(c,p.length,p):w(c,p,r)};return y(c.prototype)&&(bound.prototype=c.prototype),bound}},14677:(r,c,u)=>{var p=u(32894),y=u(22939)("toStringTag"),w="Arguments"==p(function(){return arguments}());r.exports=function(r){var c,u,k;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(u=function(r,c){try{return r[c]}catch(r){}}(c=Object(r),y))?u:w?p(c):"Object"==(k=p(c))&&"function"==typeof c.callee?"Arguments":k}},32894:r=>{var c={}.toString;r.exports=function(r){return c.call(r).slice(8,-1)}},56175:(r,c,u)=>{"use strict";var p=u(4743).f,y=u(98989),w=u(48144),k=u(19216),x=u(29142),E=u(45576),I=u(45700),K=u(85084),J=u(39967),ie=u(89666),oe=u(77177).fastKey,se=u(20765),ae=ie?"_s":"size",getEntry=function(r,c){var u,p=oe(c);if("F"!==p)return r._i[p];for(u=r._f;u;u=u.n)if(u.k==c)return u};r.exports={getConstructor:function(r,c,u,I){var K=r((function(r,p){x(r,K,c,"_i"),r._t=c,r._i=y(null),r._f=void 0,r._l=void 0,r[ae]=0,null!=p&&E(p,u,r[I],r)}));return w(K.prototype,{clear:function clear(){for(var r=se(this,c),u=r._i,p=r._f;p;p=p.n)p.r=!0,p.p&&(p.p=p.p.n=void 0),delete u[p.i];r._f=r._l=void 0,r[ae]=0},delete:function(r){var u=se(this,c),p=getEntry(u,r);if(p){var y=p.n,w=p.p;delete u._i[p.i],p.r=!0,w&&(w.n=y),y&&(y.p=w),u._f==p&&(u._f=y),u._l==p&&(u._l=w),u[ae]--}return!!p},forEach:function forEach(r){se(this,c);for(var u,p=k(r,arguments.length>1?arguments[1]:void 0,3);u=u?u.n:this._f;)for(p(u.v,u.k,this);u&&u.r;)u=u.p},has:function has(r){return!!getEntry(se(this,c),r)}}),ie&&p(K.prototype,"size",{get:function(){return se(this,c)[ae]}}),K},def:function(r,c,u){var p,y,w=getEntry(r,c);return w?w.v=u:(r._l=w={i:y=oe(c,!0),k:c,v:u,p:p=r._l,n:void 0,r:!1},r._f||(r._f=w),p&&(p.n=w),r[ae]++,"F"!==y&&(r._i[y]=w)),r},getEntry,setStrong:function(r,c,u){I(r,c,(function(r,u){this._t=se(r,c),this._k=u,this._l=void 0}),(function(){for(var r=this._k,c=this._l;c&&c.r;)c=c.p;return this._t&&(this._l=c=c?c.n:this._t._f)?K(0,"keys"==r?c.k:"values"==r?c.v:[c.k,c.v]):(this._t=void 0,K(1))}),u?"entries":"values",!u,!0),J(c)}}},61718:(r,c,u)=>{var p=u(14677),y=u(37259);r.exports=function(r){return function toJSON(){if(p(this)!=r)throw TypeError(r+"#toJSON isn't generic");return y(this)}}},10106:(r,c,u)=>{"use strict";var p=u(48144),y=u(77177).getWeak,w=u(12159),k=u(36727),x=u(29142),E=u(45576),I=u(1523),K=u(27069),J=u(20765),ie=I(5),oe=I(6),se=0,uncaughtFrozenStore=function(r){return r._l||(r._l=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.a=[]},findUncaughtFrozen=function(r,c){return ie(r.a,(function(r){return r[0]===c}))};UncaughtFrozenStore.prototype={get:function(r){var c=findUncaughtFrozen(this,r);if(c)return c[1]},has:function(r){return!!findUncaughtFrozen(this,r)},set:function(r,c){var u=findUncaughtFrozen(this,r);u?u[1]=c:this.a.push([r,c])},delete:function(r){var c=oe(this.a,(function(c){return c[0]===r}));return~c&&this.a.splice(c,1),!!~c}},r.exports={getConstructor:function(r,c,u,w){var I=r((function(r,p){x(r,I,c,"_i"),r._t=c,r._i=se++,r._l=void 0,null!=p&&E(p,u,r[w],r)}));return p(I.prototype,{delete:function(r){if(!k(r))return!1;var u=y(r);return!0===u?uncaughtFrozenStore(J(this,c)).delete(r):u&&K(u,this._i)&&delete u[this._i]},has:function has(r){if(!k(r))return!1;var u=y(r);return!0===u?uncaughtFrozenStore(J(this,c)).has(r):u&&K(u,this._i)}}),I},def:function(r,c,u){var p=y(w(c),!0);return!0===p?uncaughtFrozenStore(r).set(c,u):p[r._i]=u,r},ufstore:uncaughtFrozenStore}},32269:(r,c,u)=>{"use strict";var p=u(33938),y=u(83856),w=u(77177),k=u(7929),x=u(41818),E=u(48144),I=u(45576),K=u(29142),J=u(36727),ie=u(25378),oe=u(4743).f,se=u(1523)(0),ae=u(89666);r.exports=function(r,c,u,ue,le,de){var pe=p[r],he=pe,ge=le?"set":"add",ve=he&&he.prototype,we={};return ae&&"function"==typeof he&&(de||ve.forEach&&!k((function(){(new he).entries().next()})))?(he=c((function(c,u){K(c,he,r,"_c"),c._c=new pe,null!=u&&I(u,le,c[ge],c)})),se("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(r){var c="add"==r||"set"==r;!(r in ve)||de&&"clear"==r||x(he.prototype,r,(function(u,p){if(K(this,he,r),!c&&de&&!J(u))return"get"==r&&void 0;var y=this._c[r](0===u?0:u,p);return c?this:y}))})),de||oe(he.prototype,"size",{get:function(){return this._c.size}})):(he=ue.getConstructor(c,r,le,ge),E(he.prototype,u),w.NEED=!0),ie(he,r),we[r]=he,y(y.G+y.W+y.F,we),de||ue.setStrong(he,r,le),he}},34579:r=>{var c=r.exports={version:"2.6.12"};"number"==typeof __e&&(__e=c)},52445:(r,c,u)=>{"use strict";var p=u(4743),y=u(83101);r.exports=function(r,c,u){c in r?p.f(r,c,y(0,u)):r[c]=u}},19216:(r,c,u)=>{var p=u(85663);r.exports=function(r,c,u){if(p(r),void 0===c)return r;switch(u){case 1:return function(u){return r.call(c,u)};case 2:return function(u,p){return r.call(c,u,p)};case 3:return function(u,p,y){return r.call(c,u,p,y)}}return function(){return r.apply(c,arguments)}}},8333:r=>{r.exports=function(r){if(null==r)throw TypeError("Can't call method on  "+r);return r}},89666:(r,c,u)=>{r.exports=!u(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(r,c,u)=>{var p=u(36727),y=u(33938).document,w=p(y)&&p(y.createElement);r.exports=function(r){return w?y.createElement(r):{}}},73338:r=>{r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},70337:(r,c,u)=>{var p=u(46162),y=u(48195),w=u(86274);r.exports=function(r){var c=p(r),u=y.f;if(u)for(var k,x=u(r),E=w.f,I=0;x.length>I;)E.call(r,k=x[I++])&&c.push(k);return c}},83856:(r,c,u)=>{var p=u(33938),y=u(34579),w=u(19216),k=u(41818),x=u(27069),$export=function(r,c,u){var E,I,K,J=r&$export.F,ie=r&$export.G,oe=r&$export.S,se=r&$export.P,ae=r&$export.B,ue=r&$export.W,le=ie?y:y[c]||(y[c]={}),de=le.prototype,pe=ie?p:oe?p[c]:(p[c]||{}).prototype;for(E in ie&&(u=c),u)(I=!J&&pe&&void 0!==pe[E])&&x(le,E)||(K=I?pe[E]:u[E],le[E]=ie&&"function"!=typeof pe[E]?u[E]:ae&&I?w(K,p):ue&&pe[E]==K?function(r){var F=function(c,u,p){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(c);case 2:return new r(c,u)}return new r(c,u,p)}return r.apply(this,arguments)};return F.prototype=r.prototype,F}(K):se&&"function"==typeof K?w(Function.call,K):K,se&&((le.virtual||(le.virtual={}))[E]=K,r&$export.R&&de&&!de[E]&&k(de,E,K)))};$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,r.exports=$export},7929:r=>{r.exports=function(r){try{return!!r()}catch(r){return!0}}},45576:(r,c,u)=>{var p=u(19216),y=u(95602),w=u(45991),k=u(12159),x=u(78728),E=u(83728),I={},K={},J=r.exports=function(r,c,u,J,ie){var oe,se,ae,ue,le=ie?function(){return r}:E(r),de=p(u,J,c?2:1),pe=0;if("function"!=typeof le)throw TypeError(r+" is not iterable!");if(w(le)){for(oe=x(r.length);oe>pe;pe++)if((ue=c?de(k(se=r[pe])[0],se[1]):de(r[pe]))===I||ue===K)return ue}else for(ae=le.call(r);!(se=ae.next()).done;)if((ue=y(ae,de,se.value,c))===I||ue===K)return ue};J.BREAK=I,J.RETURN=K},33938:r=>{var c=r.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=c)},27069:r=>{var c={}.hasOwnProperty;r.exports=function(r,u){return c.call(r,u)}},41818:(r,c,u)=>{var p=u(4743),y=u(83101);r.exports=u(89666)?function(r,c,u){return p.f(r,c,y(1,u))}:function(r,c,u){return r[c]=u,r}},54881:(r,c,u)=>{var p=u(33938).document;r.exports=p&&p.documentElement},33758:(r,c,u)=>{r.exports=!u(89666)&&!u(7929)((function(){return 7!=Object.defineProperty(u(97467)("div"),"a",{get:function(){return 7}}).a}))},46778:r=>{r.exports=function(r,c,u){var p=void 0===u;switch(c.length){case 0:return p?r():r.call(u);case 1:return p?r(c[0]):r.call(u,c[0]);case 2:return p?r(c[0],c[1]):r.call(u,c[0],c[1]);case 3:return p?r(c[0],c[1],c[2]):r.call(u,c[0],c[1],c[2]);case 4:return p?r(c[0],c[1],c[2],c[3]):r.call(u,c[0],c[1],c[2],c[3])}return r.apply(u,c)}},50799:(r,c,u)=>{var p=u(32894);r.exports=Object("z").propertyIsEnumerable(0)?Object:function(r){return"String"==p(r)?r.split(""):Object(r)}},45991:(r,c,u)=>{var p=u(15449),y=u(22939)("iterator"),w=Array.prototype;r.exports=function(r){return void 0!==r&&(p.Array===r||w[y]===r)}},71421:(r,c,u)=>{var p=u(32894);r.exports=Array.isArray||function isArray(r){return"Array"==p(r)}},96732:(r,c,u)=>{var p=u(36727),y=Math.floor;r.exports=function isInteger(r){return!p(r)&&isFinite(r)&&y(r)===r}},36727:r=>{r.exports=function(r){return"object"==typeof r?null!==r:"function"==typeof r}},95602:(r,c,u)=>{var p=u(12159);r.exports=function(r,c,u,y){try{return y?c(p(u)[0],u[1]):c(u)}catch(c){var w=r.return;throw void 0!==w&&p(w.call(r)),c}}},33945:(r,c,u)=>{"use strict";var p=u(98989),y=u(83101),w=u(25378),k={};u(41818)(k,u(22939)("iterator"),(function(){return this})),r.exports=function(r,c,u){r.prototype=p(k,{next:y(1,u)}),w(r,c+" Iterator")}},45700:(r,c,u)=>{"use strict";var p=u(16227),y=u(83856),w=u(57470),k=u(41818),x=u(15449),E=u(33945),I=u(25378),K=u(95089),J=u(22939)("iterator"),ie=!([].keys&&"next"in[].keys()),returnThis=function(){return this};r.exports=function(r,c,u,oe,se,ae,ue){E(u,c,oe);var le,de,pe,getMethod=function(r){if(!ie&&r in we)return we[r];switch(r){case"keys":return function keys(){return new u(this,r)};case"values":return function values(){return new u(this,r)}}return function entries(){return new u(this,r)}},he=c+" Iterator",ge="values"==se,ve=!1,we=r.prototype,Se=we[J]||we["@@iterator"]||se&&we[se],Oe=Se||getMethod(se),Ie=se?ge?getMethod("entries"):Oe:void 0,De="Array"==c&&we.entries||Se;if(De&&(pe=K(De.call(new r)))!==Object.prototype&&pe.next&&(I(pe,he,!0),p||"function"==typeof pe[J]||k(pe,J,returnThis)),ge&&Se&&"values"!==Se.name&&(ve=!0,Oe=function values(){return Se.call(this)}),p&&!ue||!ie&&!ve&&we[J]||k(we,J,Oe),x[c]=Oe,x[he]=returnThis,se)if(le={values:ge?Oe:getMethod("values"),keys:ae?Oe:getMethod("keys"),entries:Ie},ue)for(de in le)de in we||w(we,de,le[de]);else y(y.P+y.F*(ie||ve),c,le);return le}},96630:(r,c,u)=>{var p=u(22939)("iterator"),y=!1;try{var w=[7][p]();w.return=function(){y=!0},Array.from(w,(function(){throw 2}))}catch(r){}r.exports=function(r,c){if(!c&&!y)return!1;var u=!1;try{var w=[7],k=w[p]();k.next=function(){return{done:u=!0}},w[p]=function(){return k},r(w)}catch(r){}return u}},85084:r=>{r.exports=function(r,c){return{value:c,done:!!r}}},15449:r=>{r.exports={}},16227:r=>{r.exports=!0},77177:(r,c,u)=>{var p=u(65730)("meta"),y=u(36727),w=u(27069),k=u(4743).f,x=0,E=Object.isExtensible||function(){return!0},I=!u(7929)((function(){return E(Object.preventExtensions({}))})),setMeta=function(r){k(r,p,{value:{i:"O"+ ++x,w:{}}})},K=r.exports={KEY:p,NEED:!1,fastKey:function(r,c){if(!y(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!w(r,p)){if(!E(r))return"F";if(!c)return"E";setMeta(r)}return r[p].i},getWeak:function(r,c){if(!w(r,p)){if(!E(r))return!0;if(!c)return!1;setMeta(r)}return r[p].w},onFreeze:function(r){return I&&K.NEED&&E(r)&&!w(r,p)&&setMeta(r),r}}},65683:(r,c,u)=>{var p=u(54138),y=u(83856),w=u(20250)("metadata"),k=w.store||(w.store=new(u(22982))),getOrCreateMetadataMap=function(r,c,u){var y=k.get(r);if(!y){if(!u)return;k.set(r,y=new p)}var w=y.get(c);if(!w){if(!u)return;y.set(c,w=new p)}return w};r.exports={store:k,map:getOrCreateMetadataMap,has:function(r,c,u){var p=getOrCreateMetadataMap(c,u,!1);return void 0!==p&&p.has(r)},get:function(r,c,u){var p=getOrCreateMetadataMap(c,u,!1);return void 0===p?void 0:p.get(r)},set:function(r,c,u,p){getOrCreateMetadataMap(u,p,!0).set(r,c)},keys:function(r,c){var u=getOrCreateMetadataMap(r,c,!1),p=[];return u&&u.forEach((function(r,c){p.push(c)})),p},key:function(r){return void 0===r||"symbol"==typeof r?r:String(r)},exp:function(r){y(y.S,"Reflect",r)}}},81601:(r,c,u)=>{var p=u(33938),y=u(62569).set,w=p.MutationObserver||p.WebKitMutationObserver,k=p.process,x=p.Promise,E="process"==u(32894)(k);r.exports=function(){var r,c,u,flush=function(){var p,y;for(E&&(p=k.domain)&&p.exit();r;){y=r.fn,r=r.next;try{y()}catch(p){throw r?u():c=void 0,p}}c=void 0,p&&p.enter()};if(E)u=function(){k.nextTick(flush)};else if(!w||p.navigator&&p.navigator.standalone)if(x&&x.resolve){var I=x.resolve(void 0);u=function(){I.then(flush)}}else u=function(){y.call(p,flush)};else{var K=!0,J=document.createTextNode("");new w(flush).observe(J,{characterData:!0}),u=function(){J.data=K=!K}}return function(p){var y={fn:p,next:void 0};c&&(c.next=y),r||(r=y,u()),c=y}}},59304:(r,c,u)=>{"use strict";var p=u(85663);function PromiseCapability(r){var c,u;this.promise=new r((function(r,p){if(void 0!==c||void 0!==u)throw TypeError("Bad Promise constructor");c=r,u=p})),this.resolve=p(c),this.reject=p(u)}r.exports.f=function(r){return new PromiseCapability(r)}},88082:(r,c,u)=>{"use strict";var p=u(89666),y=u(46162),w=u(48195),k=u(86274),x=u(66530),E=u(50799),I=Object.assign;r.exports=!I||u(7929)((function(){var r={},c={},u=Symbol(),p="abcdefghijklmnopqrst";return r[u]=7,p.split("").forEach((function(r){c[r]=r})),7!=I({},r)[u]||Object.keys(I({},c)).join("")!=p}))?function assign(r,c){for(var u=x(r),I=arguments.length,K=1,J=w.f,ie=k.f;I>K;)for(var oe,se=E(arguments[K++]),ae=J?y(se).concat(J(se)):y(se),ue=ae.length,le=0;ue>le;)oe=ae[le++],p&&!ie.call(se,oe)||(u[oe]=se[oe]);return u}:I},98989:(r,c,u)=>{var p=u(12159),y=u(57856),w=u(73338),k=u(58989)("IE_PROTO"),Empty=function(){},createDict=function(){var r,c=u(97467)("iframe"),p=w.length;for(c.style.display="none",u(54881).appendChild(c),c.src="javascript:",(r=c.contentWindow.document).open(),r.write("<script>document.F=Object<\/script>"),r.close(),createDict=r.F;p--;)delete createDict.prototype[w[p]];return createDict()};r.exports=Object.create||function create(r,c){var u;return null!==r?(Empty.prototype=p(r),u=new Empty,Empty.prototype=null,u[k]=r):u=createDict(),void 0===c?u:y(u,c)}},4743:(r,c,u)=>{var p=u(12159),y=u(33758),w=u(33206),k=Object.defineProperty;c.f=u(89666)?Object.defineProperty:function defineProperty(r,c,u){if(p(r),c=w(c,!0),p(u),y)try{return k(r,c,u)}catch(r){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(r[c]=u.value),r}},57856:(r,c,u)=>{var p=u(4743),y=u(12159),w=u(46162);r.exports=u(89666)?Object.defineProperties:function defineProperties(r,c){y(r);for(var u,k=w(c),x=k.length,E=0;x>E;)p.f(r,u=k[E++],c[u]);return r}},76183:(r,c,u)=>{var p=u(86274),y=u(83101),w=u(7932),k=u(33206),x=u(27069),E=u(33758),I=Object.getOwnPropertyDescriptor;c.f=u(89666)?I:function getOwnPropertyDescriptor(r,c){if(r=w(r),c=k(c,!0),E)try{return I(r,c)}catch(r){}if(x(r,c))return y(!p.f.call(r,c),r[c])}},94368:(r,c,u)=>{var p=u(7932),y=u(33230).f,w={}.toString,k="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function getOwnPropertyNames(r){return k&&"[object Window]"==w.call(r)?function(r){try{return y(r)}catch(r){return k.slice()}}(r):y(p(r))}},33230:(r,c,u)=>{var p=u(12963),y=u(73338).concat("length","prototype");c.f=Object.getOwnPropertyNames||function getOwnPropertyNames(r){return p(r,y)}},48195:(r,c)=>{c.f=Object.getOwnPropertySymbols},95089:(r,c,u)=>{var p=u(27069),y=u(66530),w=u(58989)("IE_PROTO"),k=Object.prototype;r.exports=Object.getPrototypeOf||function(r){return r=y(r),p(r,w)?r[w]:"function"==typeof r.constructor&&r instanceof r.constructor?r.constructor.prototype:r instanceof Object?k:null}},12963:(r,c,u)=>{var p=u(27069),y=u(7932),w=u(57428)(!1),k=u(58989)("IE_PROTO");r.exports=function(r,c){var u,x=y(r),E=0,I=[];for(u in x)u!=k&&p(x,u)&&I.push(u);for(;c.length>E;)p(x,u=c[E++])&&(~w(I,u)||I.push(u));return I}},46162:(r,c,u)=>{var p=u(12963),y=u(73338);r.exports=Object.keys||function keys(r){return p(r,y)}},86274:(r,c)=>{c.f={}.propertyIsEnumerable},12584:(r,c,u)=>{var p=u(83856),y=u(34579),w=u(7929);r.exports=function(r,c){var u=(y.Object||{})[r]||Object[r],k={};k[r]=c(u),p(p.S+p.F*w((function(){u(1)})),"Object",k)}},10931:r=>{r.exports=function(r){try{return{e:!1,v:r()}}catch(r){return{e:!0,v:r}}}},87790:(r,c,u)=>{var p=u(12159),y=u(36727),w=u(59304);r.exports=function(r,c){if(p(r),y(c)&&c.constructor===r)return c;var u=w.f(r);return(0,u.resolve)(c),u.promise}},83101:r=>{r.exports=function(r,c){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:c}}},48144:(r,c,u)=>{var p=u(41818);r.exports=function(r,c,u){for(var y in c)u&&r[y]?r[y]=c[y]:p(r,y,c[y]);return r}},57470:(r,c,u)=>{r.exports=u(41818)},6237:(r,c,u)=>{"use strict";var p=u(83856),y=u(85663),w=u(19216),k=u(45576);r.exports=function(r){p(p.S,r,{from:function from(r){var c,u,p,x,E=arguments[1];return y(this),(c=void 0!==E)&&y(E),null==r?new this:(u=[],c?(p=0,x=w(E,arguments[2],2),k(r,!1,(function(r){u.push(x(r,p++))}))):k(r,!1,u.push,u),new this(u))}})}},46730:(r,c,u)=>{"use strict";var p=u(83856);r.exports=function(r){p(p.S,r,{of:function of(){for(var r=arguments.length,c=new Array(r);r--;)c[r]=arguments[r];return new this(c)}})}},62906:(r,c,u)=>{var p=u(36727),y=u(12159),check=function(r,c){if(y(r),!p(c)&&null!==c)throw TypeError(c+": can't set as prototype!")};r.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(r,c,p){try{(p=u(19216)(Function.call,u(76183).f(Object.prototype,"__proto__").set,2))(r,[]),c=!(r instanceof Array)}catch(r){c=!0}return function setPrototypeOf(r,u){return check(r,u),c?r.__proto__=u:p(r,u),r}}({},!1):void 0),check}},39967:(r,c,u)=>{"use strict";var p=u(33938),y=u(34579),w=u(4743),k=u(89666),x=u(22939)("species");r.exports=function(r){var c="function"==typeof y[r]?y[r]:p[r];k&&c&&!c[x]&&w.f(c,x,{configurable:!0,get:function(){return this}})}},25378:(r,c,u)=>{var p=u(4743).f,y=u(27069),w=u(22939)("toStringTag");r.exports=function(r,c,u){r&&!y(r=u?r:r.prototype,w)&&p(r,w,{configurable:!0,value:c})}},58989:(r,c,u)=>{var p=u(20250)("keys"),y=u(65730);r.exports=function(r){return p[r]||(p[r]=y(r))}},20250:(r,c,u)=>{var p=u(34579),y=u(33938),w=y["__core-js_shared__"]||(y["__core-js_shared__"]={});(r.exports=function(r,c){return w[r]||(w[r]=void 0!==c?c:{})})("versions",[]).push({version:p.version,mode:u(16227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32707:(r,c,u)=>{var p=u(12159),y=u(85663),w=u(22939)("species");r.exports=function(r,c){var u,k=p(r).constructor;return void 0===k||null==(u=p(k)[w])?c:y(u)}},90510:(r,c,u)=>{var p=u(11052),y=u(8333);r.exports=function(r){return function(c,u){var w,k,x=String(y(c)),E=p(u),I=x.length;return E<0||E>=I?r?"":void 0:(w=x.charCodeAt(E))<55296||w>56319||E+1===I||(k=x.charCodeAt(E+1))<56320||k>57343?r?x.charAt(E):w:r?x.slice(E,E+2):k-56320+(w-55296<<10)+65536}}},62569:(r,c,u)=>{var p,y,w,k=u(19216),x=u(46778),E=u(54881),I=u(97467),K=u(33938),J=K.process,ie=K.setImmediate,oe=K.clearImmediate,se=K.MessageChannel,ae=K.Dispatch,ue=0,le={},run=function(){var r=+this;if(le.hasOwnProperty(r)){var c=le[r];delete le[r],c()}},listener=function(r){run.call(r.data)};ie&&oe||(ie=function setImmediate(r){for(var c=[],u=1;arguments.length>u;)c.push(arguments[u++]);return le[++ue]=function(){x("function"==typeof r?r:Function(r),c)},p(ue),ue},oe=function clearImmediate(r){delete le[r]},"process"==u(32894)(J)?p=function(r){J.nextTick(k(run,r,1))}:ae&&ae.now?p=function(r){ae.now(k(run,r,1))}:se?(w=(y=new se).port2,y.port1.onmessage=listener,p=k(w.postMessage,w,1)):K.addEventListener&&"function"==typeof postMessage&&!K.importScripts?(p=function(r){K.postMessage(r+"","*")},K.addEventListener("message",listener,!1)):p="onreadystatechange"in I("script")?function(r){E.appendChild(I("script")).onreadystatechange=function(){E.removeChild(this),run.call(r)}}:function(r){setTimeout(k(run,r,1),0)}),r.exports={set:ie,clear:oe}},16531:(r,c,u)=>{var p=u(11052),y=Math.max,w=Math.min;r.exports=function(r,c){return(r=p(r))<0?y(r+c,0):w(r,c)}},11052:r=>{var c=Math.ceil,u=Math.floor;r.exports=function(r){return isNaN(r=+r)?0:(r>0?u:c)(r)}},7932:(r,c,u)=>{var p=u(50799),y=u(8333);r.exports=function(r){return p(y(r))}},78728:(r,c,u)=>{var p=u(11052),y=Math.min;r.exports=function(r){return r>0?y(p(r),9007199254740991):0}},66530:(r,c,u)=>{var p=u(8333);r.exports=function(r){return Object(p(r))}},33206:(r,c,u)=>{var p=u(36727);r.exports=function(r,c){if(!p(r))return r;var u,y;if(c&&"function"==typeof(u=r.toString)&&!p(y=u.call(r)))return y;if("function"==typeof(u=r.valueOf)&&!p(y=u.call(r)))return y;if(!c&&"function"==typeof(u=r.toString)&&!p(y=u.call(r)))return y;throw TypeError("Can't convert object to primitive value")}},65730:r=>{var c=0,u=Math.random();r.exports=function(r){return"Symbol(".concat(void 0===r?"":r,")_",(++c+u).toString(36))}},26640:(r,c,u)=>{var p=u(33938).navigator;r.exports=p&&p.userAgent||""},20765:(r,c,u)=>{var p=u(36727);r.exports=function(r,c){if(!p(r)||r._t!==c)throw TypeError("Incompatible receiver, "+c+" required!");return r}},76347:(r,c,u)=>{var p=u(33938),y=u(34579),w=u(16227),k=u(25103),x=u(4743).f;r.exports=function(r){var c=y.Symbol||(y.Symbol=w?{}:p.Symbol||{});"_"==r.charAt(0)||r in c||x(c,r,{value:k.f(r)})}},25103:(r,c,u)=>{c.f=u(22939)},22939:(r,c,u)=>{var p=u(20250)("wks"),y=u(65730),w=u(33938).Symbol,k="function"==typeof w;(r.exports=function(r){return p[r]||(p[r]=k&&w[r]||(k?w:y)("Symbol."+r))}).store=p},83728:(r,c,u)=>{var p=u(14677),y=u(22939)("iterator"),w=u(15449);r.exports=u(34579).getIteratorMethod=function(r){if(null!=r)return r[y]||r["@@iterator"]||w[p(r)]}},46459:(r,c,u)=>{var p=u(12159),y=u(83728);r.exports=u(34579).getIterator=function(r){var c=y(r);if("function"!=typeof c)throw TypeError(r+" is not iterable!");return p(c.call(r))}},89553:(r,c,u)=>{var p=u(14677),y=u(22939)("iterator"),w=u(15449);r.exports=u(34579).isIterable=function(r){var c=Object(r);return void 0!==c[y]||"@@iterator"in c||w.hasOwnProperty(p(c))}},2586:(r,c,u)=>{"use strict";var p=u(19216),y=u(83856),w=u(66530),k=u(95602),x=u(45991),E=u(78728),I=u(52445),K=u(83728);y(y.S+y.F*!u(96630)((function(r){Array.from(r)})),"Array",{from:function from(r){var c,u,y,J,ie=w(r),oe="function"==typeof this?this:Array,se=arguments.length,ae=se>1?arguments[1]:void 0,ue=void 0!==ae,le=0,de=K(ie);if(ue&&(ae=p(ae,se>2?arguments[2]:void 0,2)),null==de||oe==Array&&x(de))for(u=new oe(c=E(ie.length));c>le;le++)I(u,le,ue?ae(ie[le],le):ie[le]);else for(J=de.call(ie),u=new oe;!(y=J.next()).done;le++)I(u,le,ue?k(J,ae,[y.value,le],!0):y.value);return u.length=le,u}})},3882:(r,c,u)=>{"use strict";var p=u(79003),y=u(85084),w=u(15449),k=u(7932);r.exports=u(45700)(Array,"Array",(function(r,c){this._t=k(r),this._i=0,this._k=c}),(function(){var r=this._t,c=this._k,u=this._i++;return!r||u>=r.length?(this._t=void 0,y(1)):y(0,"keys"==c?u:"values"==c?r[u]:[u,r[u]])}),"values"),w.Arguments=w.Array,p("keys"),p("values"),p("entries")},54138:(r,c,u)=>{"use strict";var p=u(56175),y=u(20765);r.exports=u(32269)("Map",(function(r){return function Map(){return r(this,arguments.length>0?arguments[0]:void 0)}}),{get:function get(r){var c=p.getEntry(y(this,"Map"),r);return c&&c.v},set:function set(r,c){return p.def(y(this,"Map"),0===r?0:r,c)}},p,!0)},39846:(r,c,u)=>{var p=u(83856);p(p.S,"Number",{isInteger:u(96732)})},72699:(r,c,u)=>{var p=u(83856);p(p.S+p.F,"Object",{assign:u(88082)})},86760:(r,c,u)=>{var p=u(83856);p(p.S,"Object",{create:u(98989)})},31477:(r,c,u)=>{var p=u(83856);p(p.S+p.F*!u(89666),"Object",{defineProperty:u(4743).f})},65178:(r,c,u)=>{var p=u(7932),y=u(76183).f;u(12584)("getOwnPropertyDescriptor",(function(){return function getOwnPropertyDescriptor(r,c){return y(p(r),c)}}))},77220:(r,c,u)=>{var p=u(66530),y=u(95089);u(12584)("getPrototypeOf",(function(){return function getPrototypeOf(r){return y(p(r))}}))},40961:(r,c,u)=>{var p=u(66530),y=u(46162);u(12584)("keys",(function(){return function keys(r){return y(p(r))}}))},59349:(r,c,u)=>{var p=u(83856);p(p.S,"Object",{setPrototypeOf:u(62906).set})},94058:()=>{},32878:(r,c,u)=>{"use strict";var p,y,w,k,x=u(16227),E=u(33938),I=u(19216),K=u(14677),J=u(83856),ie=u(36727),oe=u(85663),se=u(29142),ae=u(45576),ue=u(32707),le=u(62569).set,de=u(81601)(),pe=u(59304),he=u(10931),ge=u(26640),ve=u(87790),we=E.TypeError,Se=E.process,Oe=Se&&Se.versions,Ie=Oe&&Oe.v8||"",De=E.Promise,Pe="process"==K(Se),empty=function(){},Le=y=pe.f,je=!!function(){try{var r=De.resolve(1),c=(r.constructor={})[u(22939)("species")]=function(r){r(empty,empty)};return(Pe||"function"==typeof PromiseRejectionEvent)&&r.then(empty)instanceof c&&0!==Ie.indexOf("6.6")&&-1===ge.indexOf("Chrome/66")}catch(r){}}(),isThenable=function(r){var c;return!(!ie(r)||"function"!=typeof(c=r.then))&&c},notify=function(r,c){if(!r._n){r._n=!0;var u=r._c;de((function(){for(var p=r._v,y=1==r._s,w=0,run=function(c){var u,w,k,x=y?c.ok:c.fail,E=c.resolve,I=c.reject,K=c.domain;try{x?(y||(2==r._h&&onHandleUnhandled(r),r._h=1),!0===x?u=p:(K&&K.enter(),u=x(p),K&&(K.exit(),k=!0)),u===c.promise?I(we("Promise-chain cycle")):(w=isThenable(u))?w.call(u,E,I):E(u)):I(p)}catch(r){K&&!k&&K.exit(),I(r)}};u.length>w;)run(u[w++]);r._c=[],r._n=!1,c&&!r._h&&onUnhandled(r)}))}},onUnhandled=function(r){le.call(E,(function(){var c,u,p,y=r._v,w=isUnhandled(r);if(w&&(c=he((function(){Pe?Se.emit("unhandledRejection",y,r):(u=E.onunhandledrejection)?u({promise:r,reason:y}):(p=E.console)&&p.error&&p.error("Unhandled promise rejection",y)})),r._h=Pe||isUnhandled(r)?2:1),r._a=void 0,w&&c.e)throw c.v}))},isUnhandled=function(r){return 1!==r._h&&0===(r._a||r._c).length},onHandleUnhandled=function(r){le.call(E,(function(){var c;Pe?Se.emit("rejectionHandled",r):(c=E.onrejectionhandled)&&c({promise:r,reason:r._v})}))},$reject=function(r){var c=this;c._d||(c._d=!0,(c=c._w||c)._v=r,c._s=2,c._a||(c._a=c._c.slice()),notify(c,!0))},$resolve=function(r){var c,u=this;if(!u._d){u._d=!0,u=u._w||u;try{if(u===r)throw we("Promise can't be resolved itself");(c=isThenable(r))?de((function(){var p={_w:u,_d:!1};try{c.call(r,I($resolve,p,1),I($reject,p,1))}catch(r){$reject.call(p,r)}})):(u._v=r,u._s=1,notify(u,!1))}catch(r){$reject.call({_w:u,_d:!1},r)}}};je||(De=function Promise(r){se(this,De,"Promise","_h"),oe(r),p.call(this);try{r(I($resolve,this,1),I($reject,this,1))}catch(r){$reject.call(this,r)}},(p=function Promise(r){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=u(48144)(De.prototype,{then:function then(r,c){var u=Le(ue(this,De));return u.ok="function"!=typeof r||r,u.fail="function"==typeof c&&c,u.domain=Pe?Se.domain:void 0,this._c.push(u),this._a&&this._a.push(u),this._s&&notify(this,!1),u.promise},catch:function(r){return this.then(void 0,r)}}),w=function(){var r=new p;this.promise=r,this.resolve=I($resolve,r,1),this.reject=I($reject,r,1)},pe.f=Le=function(r){return r===De||r===k?new w(r):y(r)}),J(J.G+J.W+J.F*!je,{Promise:De}),u(25378)(De,"Promise"),u(39967)("Promise"),k=u(34579).Promise,J(J.S+J.F*!je,"Promise",{reject:function reject(r){var c=Le(this);return(0,c.reject)(r),c.promise}}),J(J.S+J.F*(x||!je),"Promise",{resolve:function resolve(r){return ve(x&&this===k?De:this,r)}}),J(J.S+J.F*!(je&&u(96630)((function(r){De.all(r).catch(empty)}))),"Promise",{all:function all(r){var c=this,u=Le(c),p=u.resolve,y=u.reject,w=he((function(){var u=[],w=0,k=1;ae(r,!1,(function(r){var x=w++,E=!1;u.push(void 0),k++,c.resolve(r).then((function(r){E||(E=!0,u[x]=r,--k||p(u))}),y)})),--k||p(u)}));return w.e&&y(w.v),u.promise},race:function race(r){var c=this,u=Le(c),p=u.reject,y=he((function(){ae(r,!1,(function(r){c.resolve(r).then(u.resolve,p)}))}));return y.e&&p(y.v),u.promise}})},99650:(r,c,u)=>{var p=u(83856),y=u(98989),w=u(85663),k=u(12159),x=u(36727),E=u(7929),I=u(14094),K=(u(33938).Reflect||{}).construct,J=E((function(){function F(){}return!(K((function(){}),[],F)instanceof F)})),ie=!E((function(){K((function(){}))}));p(p.S+p.F*(J||ie),"Reflect",{construct:function construct(r,c){w(r),k(c);var u=arguments.length<3?r:w(arguments[2]);if(ie&&!J)return K(r,c,u);if(r==u){switch(c.length){case 0:return new r;case 1:return new r(c[0]);case 2:return new r(c[0],c[1]);case 3:return new r(c[0],c[1],c[2]);case 4:return new r(c[0],c[1],c[2],c[3])}var p=[null];return p.push.apply(p,c),new(I.apply(r,p))}var E=u.prototype,oe=y(x(E)?E:Object.prototype),se=Function.apply.call(r,oe,c);return x(se)?se:oe}})},61003:(r,c,u)=>{"use strict";var p=u(56175),y=u(20765);r.exports=u(32269)("Set",(function(r){return function Set(){return r(this,arguments.length>0?arguments[0]:void 0)}}),{add:function add(r){return p.def(y(this,"Set"),r=0===r?0:r,r)}},p)},91867:(r,c,u)=>{"use strict";var p=u(90510)(!0);u(45700)(String,"String",(function(r){this._t=String(r),this._i=0}),(function(){var r,c=this._t,u=this._i;return u>=c.length?{value:void 0,done:!0}:(r=p(c,u),this._i+=r.length,{value:r,done:!1})}))},46840:(r,c,u)=>{"use strict";var p=u(33938),y=u(27069),w=u(89666),k=u(83856),x=u(57470),E=u(77177).KEY,I=u(7929),K=u(20250),J=u(25378),ie=u(65730),oe=u(22939),se=u(25103),ae=u(76347),ue=u(70337),le=u(71421),de=u(12159),pe=u(36727),he=u(66530),ge=u(7932),ve=u(33206),we=u(83101),Se=u(98989),Oe=u(94368),Ie=u(76183),De=u(48195),Pe=u(4743),Le=u(46162),je=Ie.f,Fe=Pe.f,Ue=Oe.f,$e=p.Symbol,Ze=p.JSON,We=Ze&&Ze.stringify,Ge=oe("_hidden"),Ke=oe("toPrimitive"),Je={}.propertyIsEnumerable,Ye=K("symbol-registry"),Xe=K("symbols"),Qe=K("op-symbols"),et=Object.prototype,tt="function"==typeof $e&&!!De.f,rt=p.QObject,nt=!rt||!rt.prototype||!rt.prototype.findChild,it=w&&I((function(){return 7!=Se(Fe({},"a",{get:function(){return Fe(this,"a",{value:7}).a}})).a}))?function(r,c,u){var p=je(et,c);p&&delete et[c],Fe(r,c,u),p&&r!==et&&Fe(et,c,p)}:Fe,wrap=function(r){var c=Xe[r]=Se($e.prototype);return c._k=r,c},ot=tt&&"symbol"==typeof $e.iterator?function(r){return"symbol"==typeof r}:function(r){return r instanceof $e},st=function defineProperty(r,c,u){return r===et&&st(Qe,c,u),de(r),c=ve(c,!0),de(u),y(Xe,c)?(u.enumerable?(y(r,Ge)&&r[Ge][c]&&(r[Ge][c]=!1),u=Se(u,{enumerable:we(0,!1)})):(y(r,Ge)||Fe(r,Ge,we(1,{})),r[Ge][c]=!0),it(r,c,u)):Fe(r,c,u)},at=function defineProperties(r,c){de(r);for(var u,p=ue(c=ge(c)),y=0,w=p.length;w>y;)st(r,u=p[y++],c[u]);return r},ct=function propertyIsEnumerable(r){var c=Je.call(this,r=ve(r,!0));return!(this===et&&y(Xe,r)&&!y(Qe,r))&&(!(c||!y(this,r)||!y(Xe,r)||y(this,Ge)&&this[Ge][r])||c)},ut=function getOwnPropertyDescriptor(r,c){if(r=ge(r),c=ve(c,!0),r!==et||!y(Xe,c)||y(Qe,c)){var u=je(r,c);return!u||!y(Xe,c)||y(r,Ge)&&r[Ge][c]||(u.enumerable=!0),u}},lt=function getOwnPropertyNames(r){for(var c,u=Ue(ge(r)),p=[],w=0;u.length>w;)y(Xe,c=u[w++])||c==Ge||c==E||p.push(c);return p},dt=function getOwnPropertySymbols(r){for(var c,u=r===et,p=Ue(u?Qe:ge(r)),w=[],k=0;p.length>k;)!y(Xe,c=p[k++])||u&&!y(et,c)||w.push(Xe[c]);return w};tt||(x(($e=function Symbol(){if(this instanceof $e)throw TypeError("Symbol is not a constructor!");var r=ie(arguments.length>0?arguments[0]:void 0),$set=function(c){this===et&&$set.call(Qe,c),y(this,Ge)&&y(this[Ge],r)&&(this[Ge][r]=!1),it(this,r,we(1,c))};return w&&nt&&it(et,r,{configurable:!0,set:$set}),wrap(r)}).prototype,"toString",(function toString(){return this._k})),Ie.f=ut,Pe.f=st,u(33230).f=Oe.f=lt,u(86274).f=ct,De.f=dt,w&&!u(16227)&&x(et,"propertyIsEnumerable",ct,!0),se.f=function(r){return wrap(oe(r))}),k(k.G+k.W+k.F*!tt,{Symbol:$e});for(var pt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ft=0;pt.length>ft;)oe(pt[ft++]);for(var ht=Le(oe.store),gt=0;ht.length>gt;)ae(ht[gt++]);k(k.S+k.F*!tt,"Symbol",{for:function(r){return y(Ye,r+="")?Ye[r]:Ye[r]=$e(r)},keyFor:function keyFor(r){if(!ot(r))throw TypeError(r+" is not a symbol!");for(var c in Ye)if(Ye[c]===r)return c},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),k(k.S+k.F*!tt,"Object",{create:function create(r,c){return void 0===c?Se(r):at(Se(r),c)},defineProperty:st,defineProperties:at,getOwnPropertyDescriptor:ut,getOwnPropertyNames:lt,getOwnPropertySymbols:dt});var mt=I((function(){De.f(1)}));k(k.S+k.F*mt,"Object",{getOwnPropertySymbols:function getOwnPropertySymbols(r){return De.f(he(r))}}),Ze&&k(k.S+k.F*(!tt||I((function(){var r=$e();return"[null]"!=We([r])||"{}"!=We({a:r})||"{}"!=We(Object(r))}))),"JSON",{stringify:function stringify(r){for(var c,u,p=[r],y=1;arguments.length>y;)p.push(arguments[y++]);if(u=c=p[1],(pe(c)||void 0!==r)&&!ot(r))return le(c)||(c=function(r,c){if("function"==typeof u&&(c=u.call(this,r,c)),!ot(c))return c}),p[1]=c,We.apply(Ze,p)}}),$e.prototype[Ke]||u(41818)($e.prototype,Ke,$e.prototype.valueOf),J($e,"Symbol"),J(Math,"Math",!0),J(p.JSON,"JSON",!0)},22982:(r,c,u)=>{"use strict";var p,y=u(33938),w=u(1523)(0),k=u(57470),x=u(77177),E=u(88082),I=u(10106),K=u(36727),J=u(20765),ie=u(20765),oe=!y.ActiveXObject&&"ActiveXObject"in y,se=x.getWeak,ae=Object.isExtensible,ue=I.ufstore,wrapper=function(r){return function WeakMap(){return r(this,arguments.length>0?arguments[0]:void 0)}},le={get:function get(r){if(K(r)){var c=se(r);return!0===c?ue(J(this,"WeakMap")).get(r):c?c[this._i]:void 0}},set:function set(r,c){return I.def(J(this,"WeakMap"),r,c)}},de=r.exports=u(32269)("WeakMap",wrapper,le,I,!0,!0);ie&&oe&&(E((p=I.getConstructor(wrapper,"WeakMap")).prototype,le),x.NEED=!0,w(["delete","has","get","set"],(function(r){var c=de.prototype,u=c[r];k(c,r,(function(c,y){if(K(c)&&!ae(c)){this._f||(this._f=new p);var w=this._f[r](c,y);return"set"==r?this:w}return u.call(this,c,y)}))})))},85828:(r,c,u)=>{u(6237)("Map")},605:(r,c,u)=>{u(46730)("Map")},82834:(r,c,u)=>{var p=u(83856);p(p.P+p.R,"Map",{toJSON:u(61718)("Map")})},95971:(r,c,u)=>{"use strict";var p=u(83856),y=u(34579),w=u(33938),k=u(32707),x=u(87790);p(p.P+p.R,"Promise",{finally:function(r){var c=k(this,y.Promise||w.Promise),u="function"==typeof r;return this.then(u?function(u){return x(c,r()).then((function(){return u}))}:r,u?function(u){return x(c,r()).then((function(){throw u}))}:r)}})},22526:(r,c,u)=>{"use strict";var p=u(83856),y=u(59304),w=u(10931);p(p.S,"Promise",{try:function(r){var c=y.f(this),u=w(r);return(u.e?c.reject:c.resolve)(u.v),c.promise}})},60630:(r,c,u)=>{var p=u(65683),y=u(12159),w=u(85663),k=p.key,x=p.set;p.exp({metadata:function metadata(r,c){return function decorator(u,p){x(r,c,(void 0!==p?y:w)(u),k(p))}}})},59806:(r,c,u)=>{u(6237)("Set")},31749:(r,c,u)=>{u(46730)("Set")},48408:(r,c,u)=>{var p=u(83856);p(p.P+p.R,"Set",{toJSON:u(61718)("Set")})},8174:(r,c,u)=>{u(76347)("asyncIterator")},36461:(r,c,u)=>{u(76347)("observable")},73871:(r,c,u)=>{u(3882);for(var p=u(33938),y=u(41818),w=u(15449),k=u(22939)("toStringTag"),x="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),E=0;E<x.length;E++){var I=x[E],K=p[I],J=K&&K.prototype;J&&!J[k]&&y(J,k,I),w[I]=w.Array}},54098:function(r,c){var u="undefined"!=typeof self?self:this,p=function(){function F(){this.fetch=!1,this.DOMException=u.DOMException}return F.prototype=u,new F}();!function(r){!function(c){var u="URLSearchParams"in r,p="Symbol"in r&&"iterator"in Symbol,y="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(r){return!1}}(),w="FormData"in r,k="ArrayBuffer"in r;if(k)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],E=ArrayBuffer.isView||function(r){return r&&x.indexOf(Object.prototype.toString.call(r))>-1};function normalizeName(r){if("string"!=typeof r&&(r=String(r)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(r))throw new TypeError("Invalid character in header field name");return r.toLowerCase()}function normalizeValue(r){return"string"!=typeof r&&(r=String(r)),r}function iteratorFor(r){var c={next:function(){var c=r.shift();return{done:void 0===c,value:c}}};return p&&(c[Symbol.iterator]=function(){return c}),c}function Headers(r){this.map={},r instanceof Headers?r.forEach((function(r,c){this.append(c,r)}),this):Array.isArray(r)?r.forEach((function(r){this.append(r[0],r[1])}),this):r&&Object.getOwnPropertyNames(r).forEach((function(c){this.append(c,r[c])}),this)}function consumed(r){if(r.bodyUsed)return Promise.reject(new TypeError("Already read"));r.bodyUsed=!0}function fileReaderReady(r){return new Promise((function(c,u){r.onload=function(){c(r.result)},r.onerror=function(){u(r.error)}}))}function readBlobAsArrayBuffer(r){var c=new FileReader,u=fileReaderReady(c);return c.readAsArrayBuffer(r),u}function bufferClone(r){if(r.slice)return r.slice(0);var c=new Uint8Array(r.byteLength);return c.set(new Uint8Array(r)),c.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(r){this._bodyInit=r,r?"string"==typeof r?this._bodyText=r:y&&Blob.prototype.isPrototypeOf(r)?this._bodyBlob=r:w&&FormData.prototype.isPrototypeOf(r)?this._bodyFormData=r:u&&URLSearchParams.prototype.isPrototypeOf(r)?this._bodyText=r.toString():k&&y&&function isDataView(r){return r&&DataView.prototype.isPrototypeOf(r)}(r)?(this._bodyArrayBuffer=bufferClone(r.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):k&&(ArrayBuffer.prototype.isPrototypeOf(r)||E(r))?this._bodyArrayBuffer=bufferClone(r):this._bodyText=r=Object.prototype.toString.call(r):this._bodyText="",this.headers.get("content-type")||("string"==typeof r?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):u&&URLSearchParams.prototype.isPrototypeOf(r)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y&&(this.blob=function(){var r=consumed(this);if(r)return r;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var r=consumed(this);if(r)return r;if(this._bodyBlob)return function readBlobAsText(r){var c=new FileReader,u=fileReaderReady(c);return c.readAsText(r),u}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function readArrayBufferAsText(r){for(var c=new Uint8Array(r),u=new Array(c.length),p=0;p<c.length;p++)u[p]=String.fromCharCode(c[p]);return u.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},w&&(this.formData=function(){return this.text().then(decode)}),this.json=function(){return this.text().then(JSON.parse)},this}Headers.prototype.append=function(r,c){r=normalizeName(r),c=normalizeValue(c);var u=this.map[r];this.map[r]=u?u+", "+c:c},Headers.prototype.delete=function(r){delete this.map[normalizeName(r)]},Headers.prototype.get=function(r){return r=normalizeName(r),this.has(r)?this.map[r]:null},Headers.prototype.has=function(r){return this.map.hasOwnProperty(normalizeName(r))},Headers.prototype.set=function(r,c){this.map[normalizeName(r)]=normalizeValue(c)},Headers.prototype.forEach=function(r,c){for(var u in this.map)this.map.hasOwnProperty(u)&&r.call(c,this.map[u],u,this)},Headers.prototype.keys=function(){var r=[];return this.forEach((function(c,u){r.push(u)})),iteratorFor(r)},Headers.prototype.values=function(){var r=[];return this.forEach((function(c){r.push(c)})),iteratorFor(r)},Headers.prototype.entries=function(){var r=[];return this.forEach((function(c,u){r.push([u,c])})),iteratorFor(r)},p&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);var I=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Request(r,c){var u=(c=c||{}).body;if(r instanceof Request){if(r.bodyUsed)throw new TypeError("Already read");this.url=r.url,this.credentials=r.credentials,c.headers||(this.headers=new Headers(r.headers)),this.method=r.method,this.mode=r.mode,this.signal=r.signal,u||null==r._bodyInit||(u=r._bodyInit,r.bodyUsed=!0)}else this.url=String(r);if(this.credentials=c.credentials||this.credentials||"same-origin",!c.headers&&this.headers||(this.headers=new Headers(c.headers)),this.method=function normalizeMethod(r){var c=r.toUpperCase();return I.indexOf(c)>-1?c:r}(c.method||this.method||"GET"),this.mode=c.mode||this.mode||null,this.signal=c.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&u)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(u)}function decode(r){var c=new FormData;return r.trim().split("&").forEach((function(r){if(r){var u=r.split("="),p=u.shift().replace(/\+/g," "),y=u.join("=").replace(/\+/g," ");c.append(decodeURIComponent(p),decodeURIComponent(y))}})),c}function Response(r,c){c||(c={}),this.type="default",this.status=void 0===c.status?200:c.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in c?c.statusText:"OK",this.headers=new Headers(c.headers),this.url=c.url||"",this._initBody(r)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var r=new Response(null,{status:0,statusText:""});return r.type="error",r};var K=[301,302,303,307,308];Response.redirect=function(r,c){if(-1===K.indexOf(c))throw new RangeError("Invalid status code");return new Response(null,{status:c,headers:{location:r}})},c.DOMException=r.DOMException;try{new c.DOMException}catch(r){c.DOMException=function(r,c){this.message=r,this.name=c;var u=Error(r);this.stack=u.stack},c.DOMException.prototype=Object.create(Error.prototype),c.DOMException.prototype.constructor=c.DOMException}function fetch(r,u){return new Promise((function(p,w){var k=new Request(r,u);if(k.signal&&k.signal.aborted)return w(new c.DOMException("Aborted","AbortError"));var x=new XMLHttpRequest;function abortXhr(){x.abort()}x.onload=function(){var r,c,u={status:x.status,statusText:x.statusText,headers:(r=x.getAllResponseHeaders()||"",c=new Headers,r.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(r){var u=r.split(":"),p=u.shift().trim();if(p){var y=u.join(":").trim();c.append(p,y)}})),c)};u.url="responseURL"in x?x.responseURL:u.headers.get("X-Request-URL");var y="response"in x?x.response:x.responseText;p(new Response(y,u))},x.onerror=function(){w(new TypeError("Network request failed"))},x.ontimeout=function(){w(new TypeError("Network request failed"))},x.onabort=function(){w(new c.DOMException("Aborted","AbortError"))},x.open(k.method,k.url,!0),"include"===k.credentials?x.withCredentials=!0:"omit"===k.credentials&&(x.withCredentials=!1),"responseType"in x&&y&&(x.responseType="blob"),k.headers.forEach((function(r,c){x.setRequestHeader(c,r)})),k.signal&&(k.signal.addEventListener("abort",abortXhr),x.onreadystatechange=function(){4===x.readyState&&k.signal.removeEventListener("abort",abortXhr)}),x.send(void 0===k._bodyInit?null:k._bodyInit)}))}fetch.polyfill=!0,r.fetch||(r.fetch=fetch,r.Headers=Headers,r.Request=Request,r.Response=Response),c.Headers=Headers,c.Request=Request,c.Response=Response,c.fetch=fetch,Object.defineProperty(c,"__esModule",{value:!0})}({})}(p),p.fetch.ponyfill=!0,delete p.fetch.polyfill;var y=p;(c=y.fetch).default=y.fetch,c.fetch=y.fetch,c.Headers=y.Headers,c.Request=y.Request,c.Response=y.Response,r.exports=c},90169:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.confirmEndChatContainer_D9Xn8 {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n      -ms-flex-flow: column;\n          flex-flow: column;\n  -ms-flex-direction: column;\n      flex-direction: column;\n  border-bottom-left-radius: 8px;\n  border-bottom-right-radius: 8px;\n  width: 100%;\n  height: calc(100% - 56px);\n  overflow-x: hidden;\n  position: absolute;\n  background: rgba(0, 0, 0, 0.6);\n  top: 56px;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n\n.confirmEndChat_\\+H4uu {\n  font-family: 'Roboto-Regular', sans-serif;\n  background: #fff;\n  width: 230px;\n  border-radius: 8px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: column;\n          flex-direction: column;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  padding: 0 12px;\n}\n\n.confirmEndChatImg_b8IPN {\n  width: 48px;\n  height: 48px;\n  margin: 24px 0 12px 0;\n}\n\n.confirmEndChatTitle_NVGzZ {\n  padding: 0 2px;\n  margin-bottom: 20px;\n  text-align: center;\n}\n\n.confirmEndChatButton_wktPY {\n  cursor: pointer;\n  height: 36px;\n  width: 100%;\n  text-align: center;\n  border: none;\n  border-radius: 8px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  margin-bottom: 12px;\n  overflow: hidden;\n}\n\n.loading_vAzWu {\n  display: inline-block;\n  position: relative;\n  width: 16px;\n  height: 16px;\n  margin-right: 8px;\n}\n\n.loading_vAzWu div {\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  display: block;\n  position: absolute;\n  width: 20px;\n  height: 20px;\n  border: 2px solid #fff;\n  border-radius: 50%;\n  -webkit-animation: loading_vAzWu 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n          animation: loading_vAzWu 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n  border-color: #fff transparent transparent transparent;\n  margin-top: -2px;\n}\n\n.loading_vAzWu div:nth-child(1) {\n  -webkit-animation-delay: -0.45s;\n          animation-delay: -0.45s;\n}\n\n.loading_vAzWu div:nth-child(2) {\n  -webkit-animation-delay: -0.3s;\n          animation-delay: -0.3s;\n}\n\n.loading_vAzWu div:nth-child(3) {\n  -webkit-animation-delay: -0.15s;\n          animation-delay: -0.15s;\n}\n\n@-webkit-keyframes loading_vAzWu {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes loading_vAzWu {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n",""]),y.locals={confirmEndChatContainer:"confirmEndChatContainer_D9Xn8",confirmEndChat:"confirmEndChat_+H4uu",confirmEndChatImg:"confirmEndChatImg_b8IPN",confirmEndChatTitle:"confirmEndChatTitle_NVGzZ",confirmEndChatButton:"confirmEndChatButton_wktPY",loading:"loading_vAzWu"};const w=y},54316:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.commonArrow_HD\\+\\+Y {\n  position: absolute;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  top: calc(50% + 10px);\n  background: white;\n  display: -webkit-inline-box;\n  display: -ms-inline-flexbox;\n  display: inline-flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  cursor: pointer;\n  border: none;\n  outline: none;\n  border-radius: 20px;\n  height: 40px;\n  width: 40px;\n  -webkit-box-shadow: 0 2px 4px 0 rgb(0 0 0 / 15%);\n          box-shadow: 0 2px 4px 0 rgb(0 0 0 / 15%);\n}\n\n.leftArrow_8HMDn {\n  left: -50px;\n}\n\n.rightArrow_6vVhM {\n  right: 11px;\n}\n\n.rightarrowimage_iB462 {\n  width: 18px;\n  height: 18px;\n}\n\n.leftarrowimage_Wr2PK {\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n",""]),y.locals={commonArrow:"commonArrow_HD++Y",leftArrow:"leftArrow_8HMDn",rightArrow:"rightArrow_6vVhM",rightarrowimage:"rightarrowimage_iB462",leftarrowimage:"leftarrowimage_Wr2PK rightarrowimage_iB462"};const w=y},49448:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.text_yxiia {\n  color: rgb(150, 150, 150);\n  font-size: 0.8em;\n  text-align: center;\n}\n",""]),y.locals={text:"text_yxiia"};const w=y},60394:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n.headerWrapper_zrzy4 {\n  border-radius: 8px 8px 0 0;\n  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n          box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n  height: 56px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  color: #fff;\n}\n\n.headerIcon_BOjBG {\n  margin: 12px 8px 12px 16px;\n  width: 32px;\n  height: 32px;\n  border-radius: 50%;\n}\n\n.headerTitleWrapper_e6kl9 {\n  width: 100%;\n}\n\n#headerTitle_sIMYq.headerTitle_sIMYq {\n  font-family: 'Roboto-Regular', sans-serif;\n  font-size: 14px;\n  height: 16px;\n  margin: 0;\n}\n\n.headerSubTitle_z3KH6 {\n  font-size: 10px;\n  height: 11px;\n  color: #a1acc9;\n  margin: 0;\n}\n\n.headerCloseButton_JM\\+5b {\n  background: inherit;\n  border: none;\n  color: inherit;\n  cursor: pointer;\n  font-size: 16px;\n  margin: 18px 16px 18px 0;\n  padding: 0;\n  outline: none;\n}\n\n.headerCloseButton_JM\\+5b:focus {\n  outline: none;\n}\n",""]),y.locals={headerWrapper:"headerWrapper_zrzy4",headerIcon:"headerIcon_BOjBG",headerTitleWrapper:"headerTitleWrapper_e6kl9",headerTitle:"headerTitle_sIMYq",headerSubTitle:"headerSubTitle_z3KH6",headerCloseButton:"headerCloseButton_JM+5b"};const w=y},72164:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.customReplyContainer_8D3YE {\n  border: 1px solid;\n  border-radius: 8px;\n  padding: 7px 12px;\n  cursor: pointer;\n  font-size: 13px;\n}\n",""]),y.locals={customReplyContainer:"customReplyContainer_8D3YE"};const w=y},61604:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.customSendButtonContainer_DJIhh {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  padding-right: 15px;\n  cursor: pointer;\n  margin-bottom: 3px;\n}\n\n.isDisable_vR-wj {\n  cursor: not-allowed;\n  opacity: 0.5;\n}\n",""]),y.locals={customSendButtonContainer:"customSendButtonContainer_DJIhh",isDisable:"isDisable_vR-wj"};const w=y},29341:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.customStartChatButtonWrapper_Ek2u9 {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  padding-bottom: 10px;\n}\n\n.customStartChatButton_JWVY5 {\n  cursor: pointer;\n  height: 32px;\n  width: 91%;\n  font-size: 14px;\n  text-align: center;\n  border: 1px solid rgb(84, 5, 189);\n  border-radius: 8px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n",""]),y.locals={customStartChatButtonWrapper:"customStartChatButtonWrapper_Ek2u9",customStartChatButton:"customStartChatButton_JWVY5"};const w=y},67090:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.timestamp_ZxrDt {\n  /* stylelint-disable declaration-colon-newline-after, value-list-comma-newline-after  */\n  font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'segoe ui',\n    'helvetica neue', helvetica, Ubuntu, roboto, noto, arial, sans-serif;\n  font-size: 10px;\n  color: rgb(111, 118, 125);\n  width: 100%;\n  text-align: left;\n  line-height: normal;\n  margin-top: 10px;\n  margin-left: 4px;\n}\n",""]),y.locals={timestamp:"timestamp_ZxrDt"};const w=y},40528:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.timestamp_YSRqR {\n  /* stylelint-disable declaration-colon-newline-after, value-list-comma-newline-after  */\n  font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'segoe ui',\n    'helvetica neue', helvetica, Ubuntu, roboto, noto, arial, sans-serif;\n  font-size: 10px;\n  color: rgb(111, 118, 125);\n  width: 100%;\n  text-align: right;\n  line-height: normal;\n  margin-top: 10px;\n  margin-left: -1px;\n}\n",""]),y.locals={timestamp:"timestamp_YSRqR"};const w=y},39605:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.text_byBt9 {\n  color: rgb(150, 150, 150);\n  font-size: 0.8em;\n  text-align: center;\n}\n",""]),y.locals={text:"text_byBt9"};const w=y},32875:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.carousel_CLip6 {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: nowrap;\n      flex-wrap: nowrap;\n  overflow-x: hidden;\n  -webkit-overflow-scrolling: touch;\n  min-width: 300px;\n  margin-left: -60px;\n  padding-left: 56px;\n}\n\n@media only screen and (max-width: 620px), (max-height: 620px) {\n  .carousel_CLip6 {\n    overflow-x: auto;\n  }\n}\n\n.carouselItem_BiHvD {\n  -webkit-box-flex: 0;\n      -ms-flex: 0 0 auto;\n          flex: 0 0 auto;\n}\n\n.carouselItem_BiHvD > div {\n  -webkit-box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.25);\n          box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.25);\n  margin: 5px 12px 7px 4px;\n  border-radius: 10px;\n  border: 0;\n  width: 223px;\n}\n\n.carouselItem_BiHvD:last-child > div {\n  margin-right: 76px;\n}\n\n.carouselItemTitle_60Sg0 {\n  font-weight: 500;\n  padding: 13px 0 4px 12px;\n  font-size: 14px;\n}\n\n.carouselItemText_ylbrT {\n  font-size: 12px;\n  padding: 0 12px 0 12px;\n  margin-bottom: 5px;\n  line-height: 16px;\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.carouselItemImage_IMakS {\n  height: 129px;\n}\n",""]),y.locals={carousel:"carousel_CLip6",carouselItem:"carouselItem_BiHvD",carouselItemTitle:"carouselItemTitle_60Sg0",carouselItemText:"carouselItemText_ylbrT",carouselItemImage:"carouselItemImage_IMakS"};const w=y},13453:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.textBubbleContainer_bWBm4 {\n  padding: 8px 12px;\n  margin-bottom: 2px;\n  max-width: 90% !important;\n  overflow-wrap: break-word;\n  -webkit-hyphens: auto;\n      -ms-hyphens: auto;\n          hyphens: auto;\n}\n\n.user_pV33p {\n  -ms-flex-item-align: end;\n      align-self: flex-end;\n}\n\n.bot_FZXgP {\n  -ms-flex-item-align: start;\n      align-self: flex-start;\n}\n\n/* stylelint-disable selector-pseudo-class-no-unknown */\n.htmlContentContainer_Png8X {\n  padding: auto;\n}\n\n.htmlContentContainer_Png8X img,\n.htmlContentContainer_Png8X video,\n.htmlContentContainer_Png8X iframe {\n  max-width: 100%;\n  height: auto;\n}\n\n.htmlContentContainer_Png8X table {\n  display: block;\n  overflow-x: auto;\n  white-space: nowrap;\n}\n",""]),y.locals={textBubbleContainer:"textBubbleContainer_bWBm4",user:"user_pV33p",bot:"bot_FZXgP",htmlContentContainer:"htmlContentContainer_Png8X"};const w=y},46373:(r,c,u)=>{"use strict";u.d(c,{Z:()=>w});var p=u(23645),y=u.n(p)()((function(r){return r[1]}));y.push([r.id,"/*\n * Talkdesk Confidential\n *\n * Copyright (C) Talkdesk Inc. 2022\n *\n * The source code for this program is not published or otherwise divested\n * of its trade secrets, irrespective of what has been deposited with the\n * U.S. Copyright Office. Unauthorized copying of this file, via any medium\n * is strictly prohibited.\n */\n\n.triggerButtonContainer_PbOi6 {\n  height: 64px;\n  width: 64px;\n  cursor: pointer;\n  position: fixed;\n  border-radius: 50%;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  bottom: 20px;\n  right: 10px;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: column;\n          flex-direction: column;\n  text-align: center;\n  z-index: 9999;\n}\n",""]),y.locals={triggerButtonContainer:"triggerButtonContainer_PbOi6"};const w=y},23645:r=>{"use strict";r.exports=function(r){var c=[];return c.toString=function toString(){return this.map((function(c){var u=r(c);return c[2]?"@media ".concat(c[2]," {").concat(u,"}"):u})).join("")},c.i=function(r,u,p){"string"==typeof r&&(r=[[null,r,""]]);var y={};if(p)for(var w=0;w<this.length;w++){var k=this[w][0];null!=k&&(y[k]=!0)}for(var x=0;x<r.length;x++){var E=[].concat(r[x]);p&&y[E[0]]||(u&&(E[2]?E[2]="".concat(u," and ").concat(E[2]):E[2]=u),c.push(E))}},c}},27484:function(r){r.exports=function(){"use strict";var r="millisecond",c="second",u="minute",p="hour",y="day",w="week",k="month",x="quarter",E="year",I="date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ie={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(r,c,u){var p=String(r);return!p||p.length>=c?r:""+Array(c+1-p.length).join(u)+r},oe={s:$,z:function(r){var c=-r.utcOffset(),u=Math.abs(c),p=Math.floor(u/60),y=u%60;return(c<=0?"+":"-")+$(p,2,"0")+":"+$(y,2,"0")},m:function t(r,c){if(r.date()<c.date())return-t(c,r);var u=12*(c.year()-r.year())+(c.month()-r.month()),p=r.clone().add(u,k),y=c-p<0,w=r.clone().add(u+(y?-1:1),k);return+(-(u+(c-p)/(y?p-w:w-p))||0)},a:function(r){return r<0?Math.ceil(r)||0:Math.floor(r)},p:function(K){return{M:k,y:E,w,d:y,D:I,h:p,m:u,s:c,ms:r,Q:x}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(r){return void 0===r}},se="en",ae={};ae[se]=ie;var m=function(r){return r instanceof le},D=function(r,c,u){var p;if(!r)return se;if("string"==typeof r)ae[r]&&(p=r),c&&(ae[r]=c,p=r);else{var y=r.name;ae[y]=r,p=y}return!u&&p&&(se=p),p||!u&&se},v=function(r,c){if(m(r))return r.clone();var u="object"==typeof c?c:{};return u.date=r,u.args=arguments,new le(u)},ue=oe;ue.l=D,ue.i=m,ue.w=function(r,c){return v(r,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var le=function(){function d(r){this.$L=D(r.locale,null,!0),this.parse(r)}var ie=d.prototype;return ie.parse=function(r){this.$d=function(r){var c=r.date,u=r.utc;if(null===c)return new Date(NaN);if(ue.u(c))return new Date;if(c instanceof Date)return new Date(c);if("string"==typeof c&&!/Z$/i.test(c)){var p=c.match(K);if(p){var y=p[2]-1||0,w=(p[7]||"0").substring(0,3);return u?new Date(Date.UTC(p[1],y,p[3]||1,p[4]||0,p[5]||0,p[6]||0,w)):new Date(p[1],y,p[3]||1,p[4]||0,p[5]||0,p[6]||0,w)}}return new Date(c)}(r),this.$x=r.x||{},this.init()},ie.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},ie.$utils=function(){return ue},ie.isValid=function(){return!("Invalid Date"===this.$d.toString())},ie.isSame=function(r,c){var u=v(r);return this.startOf(c)<=u&&u<=this.endOf(c)},ie.isAfter=function(r,c){return v(r)<this.startOf(c)},ie.isBefore=function(r,c){return this.endOf(c)<v(r)},ie.$g=function(r,c,u){return ue.u(r)?this[c]:this.set(u,r)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(r,x){var K=this,J=!!ue.u(x)||x,ie=ue.p(r),$=function(r,c){var u=ue.w(K.$u?Date.UTC(K.$y,c,r):new Date(K.$y,c,r),K);return J?u:u.endOf(y)},l=function(r,c){return ue.w(K.toDate()[r].apply(K.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(c)),K)},oe=this.$W,se=this.$M,ae=this.$D,le="set"+(this.$u?"UTC":"");switch(ie){case E:return J?$(1,0):$(31,11);case k:return J?$(1,se):$(0,se+1);case w:var de=this.$locale().weekStart||0,pe=(oe<de?oe+7:oe)-de;return $(J?ae-pe:ae+(6-pe),se);case y:case I:return l(le+"Hours",0);case p:return l(le+"Minutes",1);case u:return l(le+"Seconds",2);case c:return l(le+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(r){return this.startOf(r,!1)},ie.$set=function(w,x){var K,J=ue.p(w),ie="set"+(this.$u?"UTC":""),oe=(K={},K[y]=ie+"Date",K[I]=ie+"Date",K[k]=ie+"Month",K[E]=ie+"FullYear",K[p]=ie+"Hours",K[u]=ie+"Minutes",K[c]=ie+"Seconds",K[r]=ie+"Milliseconds",K)[J],se=J===y?this.$D+(x-this.$W):x;if(J===k||J===E){var ae=this.clone().set(I,1);ae.$d[oe](se),ae.init(),this.$d=ae.set(I,Math.min(this.$D,ae.daysInMonth())).$d}else oe&&this.$d[oe](se);return this.init(),this},ie.set=function(r,c){return this.clone().$set(r,c)},ie.get=function(r){return this[ue.p(r)]()},ie.add=function(r,x){var I,K=this;r=Number(r);var J=ue.p(x),d=function(c){var u=v(K);return ue.w(u.date(u.date()+Math.round(c*r)),K)};if(J===k)return this.set(k,this.$M+r);if(J===E)return this.set(E,this.$y+r);if(J===y)return d(1);if(J===w)return d(7);var ie=(I={},I[u]=6e4,I[p]=36e5,I[c]=1e3,I)[J]||1,oe=this.$d.getTime()+r*ie;return ue.w(oe,this)},ie.subtract=function(r,c){return this.add(-1*r,c)},ie.format=function(r){var c=this;if(!this.isValid())return"Invalid Date";var u=r||"YYYY-MM-DDTHH:mm:ssZ",p=ue.z(this),y=this.$locale(),w=this.$H,k=this.$m,x=this.$M,E=y.weekdays,I=y.months,h=function(r,p,y,w){return r&&(r[p]||r(c,u))||y[p].substr(0,w)},d=function(r){return ue.s(w%12||12,r,"0")},K=y.meridiem||function(r,c,u){var p=r<12?"AM":"PM";return u?p.toLowerCase():p},ie={YY:String(this.$y).slice(-2),YYYY:this.$y,M:x+1,MM:ue.s(x+1,2,"0"),MMM:h(y.monthsShort,x,I,3),MMMM:h(I,x),D:this.$D,DD:ue.s(this.$D,2,"0"),d:String(this.$W),dd:h(y.weekdaysMin,this.$W,E,2),ddd:h(y.weekdaysShort,this.$W,E,3),dddd:E[this.$W],H:String(w),HH:ue.s(w,2,"0"),h:d(1),hh:d(2),a:K(w,k,!0),A:K(w,k,!1),m:String(k),mm:ue.s(k,2,"0"),s:String(this.$s),ss:ue.s(this.$s,2,"0"),SSS:ue.s(this.$ms,3,"0"),Z:p};return u.replace(J,(function(r,c){return c||ie[r]||p.replace(":","")}))},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(r,I,K){var J,ie=ue.p(I),oe=v(r),se=6e4*(oe.utcOffset()-this.utcOffset()),ae=this-oe,le=ue.m(this,oe);return le=(J={},J[E]=le/12,J[k]=le,J[x]=le/3,J[w]=(ae-se)/6048e5,J[y]=(ae-se)/864e5,J[p]=ae/36e5,J[u]=ae/6e4,J[c]=ae/1e3,J)[ie]||ae,K?le:ue.a(le)},ie.daysInMonth=function(){return this.endOf(k).$D},ie.$locale=function(){return ae[this.$L]},ie.locale=function(r,c){if(!r)return this.$L;var u=this.clone(),p=D(r,c,!0);return p&&(u.$L=p),u},ie.clone=function(){return ue.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},d}(),de=le.prototype;return v.prototype=de,[["$ms",r],["$s",c],["$m",u],["$H",p],["$W",y],["$M",k],["$y",E],["$D",I]].forEach((function(r){de[r[1]]=function(c){return this.$g(c,r[0],r[1])}})),v.extend=function(r,c){return r.$i||(r(c,le,v),r.$i=!0),v},v.locale=D,v.isDayjs=m,v.unix=function(r){return v(1e3*r)},v.en=ae[se],v.Ls=ae,v.p={},v}()},29387:function(r){r.exports=function(){"use strict";var r={year:0,month:1,day:2,hour:3,minute:4,second:5},c={};return function(u,p,y){var w,k=y().utcOffset(),a=function(r,u,p){void 0===p&&(p={});var y=new Date(r);return function(r,u){void 0===u&&(u={});var p=u.timeZoneName||"short",y=r+"|"+p,w=c[y];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:p}),c[y]=w),w}(u,p).formatToParts(y)},f=function(c,u){for(var p=a(c,u),w=[],k=0;k<p.length;k+=1){var x=p[k],E=x.type,I=x.value,K=r[E];K>=0&&(w[K]=parseInt(I,10))}var J=w[3],ie=24===J?0:J,oe=w[0]+"-"+w[1]+"-"+w[2]+" "+ie+":"+w[4]+":"+w[5]+":000",se=+c;return(y.utc(oe).valueOf()-(se-=se%1e3))/6e4},x=p.prototype;x.tz=function(r,c){void 0===r&&(r=w);var u=this.utcOffset(),p=this.toDate().toLocaleString("en-US",{timeZone:r}),x=Math.round((this.toDate()-new Date(p))/1e3/60),E=y(p).$set("millisecond",this.$ms).utcOffset(k-x,!0);if(c){var I=E.utcOffset();E=E.add(u-I,"minute")}return E.$x.$timezone=r,E},x.offsetName=function(r){var c=this.$x.$timezone||y.tz.guess(),u=a(this.valueOf(),c,{timeZoneName:r}).find((function(r){return"timezonename"===r.type.toLowerCase()}));return u&&u.value};var E=x.startOf;x.startOf=function(r,c){if(!this.$x||!this.$x.$timezone)return E.call(this,r,c);var u=y(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return E.call(u,r,c).tz(this.$x.$timezone,!0)},y.tz=function(r,c,u){var p=u&&c,k=u||c||w,x=f(+y(),k);if("string"!=typeof r)return y(r).tz(k);var E=function(r,c,u){var p=r-60*c*1e3,y=f(p,u);if(c===y)return[p,c];var w=f(p-=60*(y-c)*1e3,u);return y===w?[p,y]:[r-60*Math.min(y,w)*1e3,Math.max(y,w)]}(y.utc(r,p).valueOf(),x,k),I=E[0],K=E[1],J=y(I).utcOffset(K);return J.$x.$timezone=k,J},y.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},y.tz.setDefault=function(r){w=r}}}()},70178:function(r){r.exports=function(){"use strict";return function(r,c,u){var p=c.prototype;u.utc=function(r){return new c({date:r,utc:!0,args:arguments})},p.utc=function(r){var c=u(this.toDate(),{locale:this.$L,utc:!0});return r?c.add(this.utcOffset(),"minute"):c},p.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var y=p.parse;p.parse=function(r){r.utc&&(this.$u=!0),this.$utils().u(r.$offset)||(this.$offset=r.$offset),y.call(this,r)};var w=p.init;p.init=function(){if(this.$u){var r=this.$d;this.$y=r.getUTCFullYear(),this.$M=r.getUTCMonth(),this.$D=r.getUTCDate(),this.$W=r.getUTCDay(),this.$H=r.getUTCHours(),this.$m=r.getUTCMinutes(),this.$s=r.getUTCSeconds(),this.$ms=r.getUTCMilliseconds()}else w.call(this)};var k=p.utcOffset;p.utcOffset=function(r,c){var u=this.$utils().u;if(u(r))return this.$u?0:u(this.$offset)?k.call(this):this.$offset;var p=Math.abs(r)<=16?60*r:r,y=this;if(c)return y.$offset=p,y.$u=0===r,y;if(0!==r){var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(y=this.local().add(p+w,"minute")).$offset=p,y.$x.$localOffset=w}else y=this.utc();return y};var x=p.format;p.format=function(r){var c=r||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return x.call(this,c)},p.valueOf=function(){var r=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*r},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var E=p.toDate;p.toDate=function(r){return"s"===r&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():E.call(this)};var I=p.diff;p.diff=function(r,c,p){if(r&&this.$u===r.$u)return I.call(this,r,c,p);var y=this.local(),w=u(r).local();return I.call(y,w,c,p)}}}()},27856:function(r){r.exports=function(){"use strict";var r=Object.hasOwnProperty,c=Object.setPrototypeOf,u=Object.isFrozen,p=Object.getPrototypeOf,y=Object.getOwnPropertyDescriptor,w=Object.freeze,k=Object.seal,x=Object.create,E="undefined"!=typeof Reflect&&Reflect,I=E.apply,K=E.construct;I||(I=function apply(r,c,u){return r.apply(c,u)}),w||(w=function freeze(r){return r}),k||(k=function seal(r){return r}),K||(K=function construct(r,c){return new(Function.prototype.bind.apply(r,[null].concat(function _toConsumableArray(r){if(Array.isArray(r)){for(var c=0,u=Array(r.length);c<r.length;c++)u[c]=r[c];return u}return Array.from(r)}(c))))});var J=unapply(Array.prototype.forEach),ie=unapply(Array.prototype.pop),oe=unapply(Array.prototype.push),se=unapply(String.prototype.toLowerCase),ae=unapply(String.prototype.match),ue=unapply(String.prototype.replace),le=unapply(String.prototype.indexOf),de=unapply(String.prototype.trim),pe=unapply(RegExp.prototype.test),he=function unconstruct(r){return function(){for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return K(r,u)}}(TypeError);function unapply(r){return function(c){for(var u=arguments.length,p=Array(u>1?u-1:0),y=1;y<u;y++)p[y-1]=arguments[y];return I(r,c,p)}}function addToSet(r,p){c&&c(r,null);for(var y=p.length;y--;){var w=p[y];if("string"==typeof w){var k=se(w);k!==w&&(u(p)||(p[y]=k),w=k)}r[w]=!0}return r}function clone(c){var u=x(null),p=void 0;for(p in c)I(r,c,[p])&&(u[p]=c[p]);return u}function lookupGetter(r,c){for(;null!==r;){var u=y(r,c);if(u){if(u.get)return unapply(u.get);if("function"==typeof u.value)return unapply(u.value)}r=p(r)}return function fallbackValue(r){return console.warn("fallback value for",r),null}}var ge=w(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ve=w(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),we=w(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Se=w(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Oe=w(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Ie=w(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),De=w(["#text"]),Pe=w(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Le=w(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),je=w(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Fe=w(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ue=k(/\{\{[\s\S]*|[\s\S]*\}\}/gm),$e=k(/<%[\s\S]*|[\s\S]*%>/gm),Ze=k(/^data-[\-\w.\u00B7-\uFFFF]/),We=k(/^aria-[\-\w]+$/),Ge=k(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ke=k(/^(?:\w+script|data):/i),Je=k(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function _toConsumableArray$1(r){if(Array.isArray(r)){for(var c=0,u=Array(r.length);c<r.length;c++)u[c]=r[c];return u}return Array.from(r)}var Xe=function getGlobal(){return"undefined"==typeof window?null:window},Qe=function _createTrustedTypesPolicy(r,c){if("object"!==(void 0===r?"undefined":Ye(r))||"function"!=typeof r.createPolicy)return null;var u=null;c.currentScript&&c.currentScript.hasAttribute("data-tt-policy-suffix")&&(u=c.currentScript.getAttribute("data-tt-policy-suffix"));var p="dompurify"+(u?"#"+u:"");try{return r.createPolicy(p,{createHTML:function createHTML(r){return r}})}catch(r){return console.warn("TrustedTypes policy "+p+" could not be created."),null}};return function createDOMPurify(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xe(),c=function DOMPurify(r){return createDOMPurify(r)};if(c.version="2.3.0",c.removed=[],!r||!r.document||9!==r.document.nodeType)return c.isSupported=!1,c;var u=r.document,p=r.document,y=r.DocumentFragment,k=r.HTMLTemplateElement,x=r.Node,E=r.Element,I=r.NodeFilter,K=r.NamedNodeMap,et=void 0===K?r.NamedNodeMap||r.MozNamedAttrMap:K,tt=r.Text,rt=r.Comment,nt=r.DOMParser,it=r.trustedTypes,ot=E.prototype,st=lookupGetter(ot,"cloneNode"),at=lookupGetter(ot,"nextSibling"),ct=lookupGetter(ot,"childNodes"),ut=lookupGetter(ot,"parentNode");if("function"==typeof k){var lt=p.createElement("template");lt.content&&lt.content.ownerDocument&&(p=lt.content.ownerDocument)}var dt=Qe(it,u),pt=dt&&$t?dt.createHTML(""):"",ft=p,ht=ft.implementation,gt=ft.createNodeIterator,mt=ft.createDocumentFragment,yt=ft.getElementsByTagName,vt=u.importNode,bt={};try{bt=clone(p).documentMode?p.documentMode:{}}catch(r){}var _t={};c.isSupported="function"==typeof ut&&ht&&void 0!==ht.createHTMLDocument&&9!==bt;var wt=Ue,kt=$e,St=Ze,Ct=We,xt=Ke,Et=Je,Tt=Ge,Ot=null,At=addToSet({},[].concat(_toConsumableArray$1(ge),_toConsumableArray$1(ve),_toConsumableArray$1(we),_toConsumableArray$1(Oe),_toConsumableArray$1(De))),Rt=null,It=addToSet({},[].concat(_toConsumableArray$1(Pe),_toConsumableArray$1(Le),_toConsumableArray$1(je),_toConsumableArray$1(Fe))),Dt=null,Pt=null,Lt=!0,Mt=!0,jt=!1,Nt=!1,qt=!1,Bt=!1,Ft=!1,Ut=!1,zt=!1,Ht=!0,$t=!1,Vt=!0,Zt=!0,Wt=!1,Gt={},Kt=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Jt=null,Yt=addToSet({},["audio","video","img","source","image","track"]),Xt=null,Qt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),er="http://www.w3.org/1998/Math/MathML",tr="http://www.w3.org/2000/svg",rr="http://www.w3.org/1999/xhtml",nr=rr,ir=!1,or=null,sr=p.createElement("form"),ar=function _parseConfig(r){or&&or===r||(r&&"object"===(void 0===r?"undefined":Ye(r))||(r={}),r=clone(r),Ot="ALLOWED_TAGS"in r?addToSet({},r.ALLOWED_TAGS):At,Rt="ALLOWED_ATTR"in r?addToSet({},r.ALLOWED_ATTR):It,Xt="ADD_URI_SAFE_ATTR"in r?addToSet(clone(Qt),r.ADD_URI_SAFE_ATTR):Qt,Jt="ADD_DATA_URI_TAGS"in r?addToSet(clone(Yt),r.ADD_DATA_URI_TAGS):Yt,Dt="FORBID_TAGS"in r?addToSet({},r.FORBID_TAGS):{},Pt="FORBID_ATTR"in r?addToSet({},r.FORBID_ATTR):{},Gt="USE_PROFILES"in r&&r.USE_PROFILES,Lt=!1!==r.ALLOW_ARIA_ATTR,Mt=!1!==r.ALLOW_DATA_ATTR,jt=r.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=r.SAFE_FOR_TEMPLATES||!1,qt=r.WHOLE_DOCUMENT||!1,Ut=r.RETURN_DOM||!1,zt=r.RETURN_DOM_FRAGMENT||!1,Ht=!1!==r.RETURN_DOM_IMPORT,$t=r.RETURN_TRUSTED_TYPE||!1,Ft=r.FORCE_BODY||!1,Vt=!1!==r.SANITIZE_DOM,Zt=!1!==r.KEEP_CONTENT,Wt=r.IN_PLACE||!1,Tt=r.ALLOWED_URI_REGEXP||Tt,nr=r.NAMESPACE||rr,Nt&&(Mt=!1),zt&&(Ut=!0),Gt&&(Ot=addToSet({},[].concat(_toConsumableArray$1(De))),Rt=[],!0===Gt.html&&(addToSet(Ot,ge),addToSet(Rt,Pe)),!0===Gt.svg&&(addToSet(Ot,ve),addToSet(Rt,Le),addToSet(Rt,Fe)),!0===Gt.svgFilters&&(addToSet(Ot,we),addToSet(Rt,Le),addToSet(Rt,Fe)),!0===Gt.mathMl&&(addToSet(Ot,Oe),addToSet(Rt,je),addToSet(Rt,Fe))),r.ADD_TAGS&&(Ot===At&&(Ot=clone(Ot)),addToSet(Ot,r.ADD_TAGS)),r.ADD_ATTR&&(Rt===It&&(Rt=clone(Rt)),addToSet(Rt,r.ADD_ATTR)),r.ADD_URI_SAFE_ATTR&&addToSet(Xt,r.ADD_URI_SAFE_ATTR),Zt&&(Ot["#text"]=!0),qt&&addToSet(Ot,["html","head","body"]),Ot.table&&(addToSet(Ot,["tbody"]),delete Dt.tbody),w&&w(r),or=r)},cr=addToSet({},["mi","mo","mn","ms","mtext"]),ur=addToSet({},["foreignobject","desc","title","annotation-xml"]),lr=addToSet({},ve);addToSet(lr,we),addToSet(lr,Se);var dr=addToSet({},Oe);addToSet(dr,Ie);var pr=function _checkValidNamespace(r){var c=ut(r);c&&c.tagName||(c={namespaceURI:rr,tagName:"template"});var u=se(r.tagName),p=se(c.tagName);if(r.namespaceURI===tr)return c.namespaceURI===rr?"svg"===u:c.namespaceURI===er?"svg"===u&&("annotation-xml"===p||cr[p]):Boolean(lr[u]);if(r.namespaceURI===er)return c.namespaceURI===rr?"math"===u:c.namespaceURI===tr?"math"===u&&ur[p]:Boolean(dr[u]);if(r.namespaceURI===rr){if(c.namespaceURI===tr&&!ur[p])return!1;if(c.namespaceURI===er&&!cr[p])return!1;var y=addToSet({},["title","style","font","a","script"]);return!dr[u]&&(y[u]||!lr[u])}return!1},fr=function _forceRemove(r){oe(c.removed,{element:r});try{r.parentNode.removeChild(r)}catch(c){try{r.outerHTML=pt}catch(c){r.remove()}}},gr=function _removeAttribute(r,u){try{oe(c.removed,{attribute:u.getAttributeNode(r),from:u})}catch(r){oe(c.removed,{attribute:null,from:u})}if(u.removeAttribute(r),"is"===r&&!Rt[r])if(Ut||zt)try{fr(u)}catch(r){}else try{u.setAttribute(r,"")}catch(r){}},mr=function _initDocument(r){var c=void 0,u=void 0;if(Ft)r="<remove></remove>"+r;else{var y=ae(r,/^[\r\n\t ]+/);u=y&&y[0]}var w=dt?dt.createHTML(r):r;if(nr===rr)try{c=(new nt).parseFromString(w,"text/html")}catch(r){}if(!c||!c.documentElement){c=ht.createDocument(nr,"template",null);try{c.documentElement.innerHTML=ir?"":w}catch(r){}}var k=c.body||c.documentElement;return r&&u&&k.insertBefore(p.createTextNode(u),k.childNodes[0]||null),nr===rr?yt.call(c,qt?"html":"body")[0]:qt?c.documentElement:k},yr=function _createIterator(r){return gt.call(r.ownerDocument||r,r,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT,null,!1)},vr=function _isClobbered(r){return!(r instanceof tt||r instanceof rt||"string"==typeof r.nodeName&&"string"==typeof r.textContent&&"function"==typeof r.removeChild&&r.attributes instanceof et&&"function"==typeof r.removeAttribute&&"function"==typeof r.setAttribute&&"string"==typeof r.namespaceURI&&"function"==typeof r.insertBefore)},br=function _isNode(r){return"object"===(void 0===x?"undefined":Ye(x))?r instanceof x:r&&"object"===(void 0===r?"undefined":Ye(r))&&"number"==typeof r.nodeType&&"string"==typeof r.nodeName},_r=function _executeHook(r,u,p){_t[r]&&J(_t[r],(function(r){r.call(c,u,p,or)}))},wr=function _sanitizeElements(r){var u=void 0;if(_r("beforeSanitizeElements",r,null),vr(r))return fr(r),!0;if(ae(r.nodeName,/[\u0080-\uFFFF]/))return fr(r),!0;var p=se(r.nodeName);if(_r("uponSanitizeElement",r,{tagName:p,allowedTags:Ot}),!br(r.firstElementChild)&&(!br(r.content)||!br(r.content.firstElementChild))&&pe(/<[/\w]/g,r.innerHTML)&&pe(/<[/\w]/g,r.textContent))return fr(r),!0;if(!Ot[p]||Dt[p]){if(Zt&&!Kt[p]){var y=ut(r)||r.parentNode,w=ct(r)||r.childNodes;if(w&&y)for(var k=w.length-1;k>=0;--k)y.insertBefore(st(w[k],!0),at(r))}return fr(r),!0}return r instanceof E&&!pr(r)?(fr(r),!0):"noscript"!==p&&"noembed"!==p||!pe(/<\/no(script|embed)/i,r.innerHTML)?(Nt&&3===r.nodeType&&(u=r.textContent,u=ue(u,wt," "),u=ue(u,kt," "),r.textContent!==u&&(oe(c.removed,{element:r.cloneNode()}),r.textContent=u)),_r("afterSanitizeElements",r,null),!1):(fr(r),!0)},kr=function _isValidAttribute(r,c,u){if(Vt&&("id"===c||"name"===c)&&(u in p||u in sr))return!1;if(Mt&&!Pt[c]&&pe(St,c));else if(Lt&&pe(Ct,c));else{if(!Rt[c]||Pt[c])return!1;if(Xt[c]);else if(pe(Tt,ue(u,Et,"")));else if("src"!==c&&"xlink:href"!==c&&"href"!==c||"script"===r||0!==le(u,"data:")||!Jt[r])if(jt&&!pe(xt,ue(u,Et,"")));else if(u)return!1}return!0},Sr=function _sanitizeAttributes(r){var u=void 0,p=void 0,y=void 0,w=void 0;_r("beforeSanitizeAttributes",r,null);var k=r.attributes;if(k){var x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Rt};for(w=k.length;w--;){var E=u=k[w],I=E.name,K=E.namespaceURI;if(p=de(u.value),y=se(I),x.attrName=y,x.attrValue=p,x.keepAttr=!0,x.forceKeepAttr=void 0,_r("uponSanitizeAttribute",r,x),p=x.attrValue,!x.forceKeepAttr&&(gr(I,r),x.keepAttr))if(pe(/\/>/i,p))gr(I,r);else{Nt&&(p=ue(p,wt," "),p=ue(p,kt," "));var J=r.nodeName.toLowerCase();if(kr(J,y,p))try{K?r.setAttributeNS(K,I,p):r.setAttribute(I,p),ie(c.removed)}catch(r){}}}_r("afterSanitizeAttributes",r,null)}},Cr=function _sanitizeShadowDOM(r){var c=void 0,u=yr(r);for(_r("beforeSanitizeShadowDOM",r,null);c=u.nextNode();)_r("uponSanitizeShadowNode",c,null),wr(c)||(c.content instanceof y&&_sanitizeShadowDOM(c.content),Sr(c));_r("afterSanitizeShadowDOM",r,null)};return c.sanitize=function(p,w){var k=void 0,E=void 0,I=void 0,K=void 0,J=void 0;if((ir=!p)&&(p="\x3c!--\x3e"),"string"!=typeof p&&!br(p)){if("function"!=typeof p.toString)throw he("toString is not a function");if("string"!=typeof(p=p.toString()))throw he("dirty is not a string, aborting")}if(!c.isSupported){if("object"===Ye(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof p)return r.toStaticHTML(p);if(br(p))return r.toStaticHTML(p.outerHTML)}return p}if(Bt||ar(w),c.removed=[],"string"==typeof p&&(Wt=!1),Wt);else if(p instanceof x)1===(E=(k=mr("\x3c!----\x3e")).ownerDocument.importNode(p,!0)).nodeType&&"BODY"===E.nodeName||"HTML"===E.nodeName?k=E:k.appendChild(E);else{if(!Ut&&!Nt&&!qt&&-1===p.indexOf("<"))return dt&&$t?dt.createHTML(p):p;if(!(k=mr(p)))return Ut?null:pt}k&&Ft&&fr(k.firstChild);for(var ie=yr(Wt?p:k);I=ie.nextNode();)3===I.nodeType&&I===K||wr(I)||(I.content instanceof y&&Cr(I.content),Sr(I),K=I);if(K=null,Wt)return p;if(Ut){if(zt)for(J=mt.call(k.ownerDocument);k.firstChild;)J.appendChild(k.firstChild);else J=k;return Ht&&(J=vt.call(u,J,!0)),J}var oe=qt?k.outerHTML:k.innerHTML;return Nt&&(oe=ue(oe,wt," "),oe=ue(oe,kt," ")),dt&&$t?dt.createHTML(oe):oe},c.setConfig=function(r){ar(r),Bt=!0},c.clearConfig=function(){or=null,Bt=!1},c.isValidAttribute=function(r,c,u){or||ar({});var p=se(r),y=se(c);return kr(p,y,u)},c.addHook=function(r,c){"function"==typeof c&&(_t[r]=_t[r]||[],oe(_t[r],c))},c.removeHook=function(r){_t[r]&&ie(_t[r])},c.removeHooks=function(r){_t[r]&&(_t[r]=[])},c.removeAllHooks=function(){_t={}},c}()}()},17187:r=>{"use strict";var c,u="object"==typeof Reflect?Reflect:null,p=u&&"function"==typeof u.apply?u.apply:function ReflectApply(r,c,u){return Function.prototype.apply.call(r,c,u)};c=u&&"function"==typeof u.ownKeys?u.ownKeys:Object.getOwnPropertySymbols?function ReflectOwnKeys(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:function ReflectOwnKeys(r){return Object.getOwnPropertyNames(r)};var y=Number.isNaN||function NumberIsNaN(r){return r!=r};function EventEmitter(){EventEmitter.init.call(this)}r.exports=EventEmitter,r.exports.once=function once(r,c){return new Promise((function(u,p){function errorListener(u){r.removeListener(c,resolver),p(u)}function resolver(){"function"==typeof r.removeListener&&r.removeListener("error",errorListener),u([].slice.call(arguments))}eventTargetAgnosticAddListener(r,c,resolver,{once:!0}),"error"!==c&&function addErrorHandlerIfEventEmitter(r,c,u){"function"==typeof r.on&&eventTargetAgnosticAddListener(r,"error",c,u)}(r,errorListener,{once:!0})}))},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var w=10;function checkListener(r){if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}function _getMaxListeners(r){return void 0===r._maxListeners?EventEmitter.defaultMaxListeners:r._maxListeners}function _addListener(r,c,u,p){var y,w,k;if(checkListener(u),void 0===(w=r._events)?(w=r._events=Object.create(null),r._eventsCount=0):(void 0!==w.newListener&&(r.emit("newListener",c,u.listener?u.listener:u),w=r._events),k=w[c]),void 0===k)k=w[c]=u,++r._eventsCount;else if("function"==typeof k?k=w[c]=p?[u,k]:[k,u]:p?k.unshift(u):k.push(u),(y=_getMaxListeners(r))>0&&k.length>y&&!k.warned){k.warned=!0;var x=new Error("Possible EventEmitter memory leak detected. "+k.length+" "+String(c)+" listeners added. Use emitter.setMaxListeners() to increase limit");x.name="MaxListenersExceededWarning",x.emitter=r,x.type=c,x.count=k.length,function ProcessEmitWarning(r){console&&console.warn&&console.warn(r)}(x)}return r}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(r,c,u){var p={fired:!1,wrapFn:void 0,target:r,type:c,listener:u},y=onceWrapper.bind(p);return y.listener=u,p.wrapFn=y,y}function _listeners(r,c,u){var p=r._events;if(void 0===p)return[];var y=p[c];return void 0===y?[]:"function"==typeof y?u?[y.listener||y]:[y]:u?function unwrapListeners(r){for(var c=new Array(r.length),u=0;u<c.length;++u)c[u]=r[u].listener||r[u];return c}(y):arrayClone(y,y.length)}function listenerCount(r){var c=this._events;if(void 0!==c){var u=c[r];if("function"==typeof u)return 1;if(void 0!==u)return u.length}return 0}function arrayClone(r,c){for(var u=new Array(c),p=0;p<c;++p)u[p]=r[p];return u}function eventTargetAgnosticAddListener(r,c,u,p){if("function"==typeof r.on)p.once?r.once(c,u):r.on(c,u);else{if("function"!=typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r);r.addEventListener(c,(function wrapListener(y){p.once&&r.removeEventListener(c,wrapListener),u(y)}))}}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return w},set:function(r){if("number"!=typeof r||r<0||y(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");w=r}}),EventEmitter.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function setMaxListeners(r){if("number"!=typeof r||r<0||y(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this},EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function emit(r){for(var c=[],u=1;u<arguments.length;u++)c.push(arguments[u]);var y="error"===r,w=this._events;if(void 0!==w)y=y&&void 0===w.error;else if(!y)return!1;if(y){var k;if(c.length>0&&(k=c[0]),k instanceof Error)throw k;var x=new Error("Unhandled error."+(k?" ("+k.message+")":""));throw x.context=k,x}var E=w[r];if(void 0===E)return!1;if("function"==typeof E)p(E,this,c);else{var I=E.length,K=arrayClone(E,I);for(u=0;u<I;++u)p(K[u],this,c)}return!0},EventEmitter.prototype.addListener=function addListener(r,c){return _addListener(this,r,c,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function prependListener(r,c){return _addListener(this,r,c,!0)},EventEmitter.prototype.once=function once(r,c){return checkListener(c),this.on(r,_onceWrap(this,r,c)),this},EventEmitter.prototype.prependOnceListener=function prependOnceListener(r,c){return checkListener(c),this.prependListener(r,_onceWrap(this,r,c)),this},EventEmitter.prototype.removeListener=function removeListener(r,c){var u,p,y,w,k;if(checkListener(c),void 0===(p=this._events))return this;if(void 0===(u=p[r]))return this;if(u===c||u.listener===c)0==--this._eventsCount?this._events=Object.create(null):(delete p[r],p.removeListener&&this.emit("removeListener",r,u.listener||c));else if("function"!=typeof u){for(y=-1,w=u.length-1;w>=0;w--)if(u[w]===c||u[w].listener===c){k=u[w].listener,y=w;break}if(y<0)return this;0===y?u.shift():function spliceOne(r,c){for(;c+1<r.length;c++)r[c]=r[c+1];r.pop()}(u,y),1===u.length&&(p[r]=u[0]),void 0!==p.removeListener&&this.emit("removeListener",r,k||c)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function removeAllListeners(r){var c,u,p;if(void 0===(u=this._events))return this;if(void 0===u.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==u[r]&&(0==--this._eventsCount?this._events=Object.create(null):delete u[r]),this;if(0===arguments.length){var y,w=Object.keys(u);for(p=0;p<w.length;++p)"removeListener"!==(y=w[p])&&this.removeAllListeners(y);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(c=u[r]))this.removeListener(r,c);else if(void 0!==c)for(p=c.length-1;p>=0;p--)this.removeListener(r,c[p]);return this},EventEmitter.prototype.listeners=function listeners(r){return _listeners(this,r,!0)},EventEmitter.prototype.rawListeners=function rawListeners(r){return _listeners(this,r,!1)},EventEmitter.listenerCount=function(r,c){return"function"==typeof r.listenerCount?r.listenerCount(c):listenerCount.call(r,c)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?c(this._events):[]}},82543:(r,c,u)=>{"use strict";u.d(c,{Z:()=>p});const p=u.p+"assets/right-arrow.svg"},86492:function(r,c,u){var p;r=u.nmd(r),function(y){var w=c,k=(r&&r.exports,"object"==typeof u.g&&u.g);k.global!==k&&k.window;var x=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,E=/[\x01-\x7F]/g,I=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,K=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,J={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ﬀ:"fflig",ﬃ:"ffilig",ﬄ:"ffllig",ﬁ:"filig",fj:"fjlig",ﬂ:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ĳ:"ijlig",Ĳ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ŉ:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},ie=/["&'<>`]/g,oe={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},se=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,ae=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ue=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,le={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",ffr:"𝔣",Ffr:"𝔉",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ĳ",IJlig:"Ĳ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},de={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},pe={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},he=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],ge=String.fromCharCode,ve={}.hasOwnProperty,has=function(r,c){return ve.call(r,c)},merge=function(r,c){if(!r)return c;var u,p={};for(u in c)p[u]=has(r,u)?r[u]:c[u];return p},codePointToSymbol=function(r,c){var u="";return r>=55296&&r<=57343||r>1114111?(c&&parseError("character reference outside the permissible Unicode range"),"�"):has(pe,r)?(c&&parseError("disallowed character reference"),pe[r]):(c&&function(r,c){for(var u=-1,p=r.length;++u<p;)if(r[u]==c)return!0;return!1}(he,r)&&parseError("disallowed character reference"),r>65535&&(u+=ge((r-=65536)>>>10&1023|55296),r=56320|1023&r),u+=ge(r))},hexEscape=function(r){return"&#x"+r.toString(16).toUpperCase()+";"},decEscape=function(r){return"&#"+r+";"},parseError=function(r){throw Error("Parse error: "+r)},encode=function(r,c){(c=merge(c,encode.options)).strict&&ae.test(r)&&parseError("forbidden code point");var u=c.encodeEverything,p=c.useNamedReferences,y=c.allowUnsafeSymbols,w=c.decimal?decEscape:hexEscape,escapeBmpSymbol=function(r){return w(r.charCodeAt(0))};return u?(r=r.replace(E,(function(r){return p&&has(J,r)?"&"+J[r]+";":escapeBmpSymbol(r)})),p&&(r=r.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),p&&(r=r.replace(K,(function(r){return"&"+J[r]+";"})))):p?(y||(r=r.replace(ie,(function(r){return"&"+J[r]+";"}))),r=(r=r.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(K,(function(r){return"&"+J[r]+";"}))):y||(r=r.replace(ie,escapeBmpSymbol)),r.replace(x,(function(r){var c=r.charCodeAt(0),u=r.charCodeAt(1);return w(1024*(c-55296)+u-56320+65536)})).replace(I,escapeBmpSymbol)};encode.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var decode=function(r,c){var u=(c=merge(c,decode.options)).strict;return u&&se.test(r)&&parseError("malformed character reference"),r.replace(ue,(function(r,p,y,w,k,x,E,I,K){var J,ie,oe,se,ae,ue;return p?le[ae=p]:y?(ae=y,(ue=w)&&c.isAttributeValue?(u&&"="==ue&&parseError("`&` did not start a character reference"),r):(u&&parseError("named character reference was not terminated by a semicolon"),de[ae]+(ue||""))):k?(oe=k,ie=x,u&&!ie&&parseError("character reference was not terminated by a semicolon"),J=parseInt(oe,10),codePointToSymbol(J,u)):E?(se=E,ie=I,u&&!ie&&parseError("character reference was not terminated by a semicolon"),J=parseInt(se,16),codePointToSymbol(J,u)):(u&&parseError("named character reference was not terminated by a semicolon"),r)}))};decode.options={isAttributeValue:!1,strict:!1};var we={version:"1.2.0",encode,decode,escape:function(r){return r.replace(ie,(function(r){return oe[r]}))},unescape:decode};void 0===(p=function(){return we}.call(c,u,c,r))||(r.exports=p)}()},8679:(r,c,u)=>{"use strict";var p=u(59864),y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},w={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},k={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},x={};function getStatics(r){return p.isMemo(r)?k:x[r.$$typeof]||y}x[p.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},x[p.Memo]=k;var E=Object.defineProperty,I=Object.getOwnPropertyNames,K=Object.getOwnPropertySymbols,J=Object.getOwnPropertyDescriptor,ie=Object.getPrototypeOf,oe=Object.prototype;r.exports=function hoistNonReactStatics(r,c,u){if("string"!=typeof c){if(oe){var p=ie(c);p&&p!==oe&&hoistNonReactStatics(r,p,u)}var y=I(c);K&&(y=y.concat(K(c)));for(var k=getStatics(r),x=getStatics(c),se=0;se<y.length;++se){var ae=y[se];if(!(w[ae]||u&&u[ae]||x&&x[ae]||k&&k[ae])){var ue=J(c,ae);try{E(r,ae,ue)}catch(r){}}}}return r}},54579:(r,c,u)=>{var p;if("function"==typeof fetch&&(void 0!==u.g&&u.g.fetch?p=u.g.fetch:"undefined"!=typeof window&&window.fetch&&(p=window.fetch)),"undefined"==typeof window||void 0===window.document){var y=p||u(54098);y.default&&(y=y.default),c.default=y,r.exports=c.default}},14613:(r,c,u)=>{"use strict";function _typeof(r){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function _defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?Object(arguments[c]):{},p=Object.keys(u);"function"==typeof Object.getOwnPropertySymbols&&(p=p.concat(Object.getOwnPropertySymbols(u).filter((function(r){return Object.getOwnPropertyDescriptor(u,r).enumerable})))),p.forEach((function(c){_defineProperty(r,c,u[c])}))}return r}function _classCallCheck(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}function _defineProperties(r,c){for(var u=0;u<c.length;u++){var p=c[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}function _createClass(r,c,u){return c&&_defineProperties(r.prototype,c),u&&_defineProperties(r,u),r}function _assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function _possibleConstructorReturn(r,c){return!c||"object"!==_typeof(c)&&"function"!=typeof c?_assertThisInitialized(r):c}function _getPrototypeOf(r){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function _setPrototypeOf(r,c){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,c){return r.__proto__=c,r})(r,c)}function _inherits(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(c&&c.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),c&&_setPrototypeOf(r,c)}u.d(c,{Z:()=>de});var p={type:"logger",log:function log(r){this.output("log",r)},warn:function warn(r){this.output("warn",r)},error:function error(r){this.output("error",r)},output:function output(r,c){console&&console[r]&&console[r].apply(console,c)}},y=new(function(){function Logger(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,Logger),this.init(r,c)}return _createClass(Logger,[{key:"init",value:function init(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=c.prefix||"i18next:",this.logger=r||p,this.options=c,this.debug=c.debug}},{key:"setDebug",value:function setDebug(r){this.debug=r}},{key:"log",value:function log(){for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];return this.forward(c,"log","",!0)}},{key:"warn",value:function warn(){for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];return this.forward(c,"warn","",!0)}},{key:"error",value:function error(){for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];return this.forward(c,"error","")}},{key:"deprecate",value:function deprecate(){for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];return this.forward(c,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function forward(r,c,u,p){return p&&!this.debug?null:("string"==typeof r[0]&&(r[0]="".concat(u).concat(this.prefix," ").concat(r[0])),this.logger[c](r))}},{key:"create",value:function create(r){return new Logger(this.logger,_objectSpread({},{prefix:"".concat(this.prefix,":").concat(r,":")},this.options))}}]),Logger}()),w=function(){function EventEmitter(){_classCallCheck(this,EventEmitter),this.observers={}}return _createClass(EventEmitter,[{key:"on",value:function on(r,c){var u=this;return r.split(" ").forEach((function(r){u.observers[r]=u.observers[r]||[],u.observers[r].push(c)})),this}},{key:"off",value:function off(r,c){this.observers[r]&&(c?this.observers[r]=this.observers[r].filter((function(r){return r!==c})):delete this.observers[r])}},{key:"emit",value:function emit(r){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p<c;p++)u[p-1]=arguments[p];if(this.observers[r]){var y=[].concat(this.observers[r]);y.forEach((function(r){r.apply(void 0,u)}))}if(this.observers["*"]){var w=[].concat(this.observers["*"]);w.forEach((function(c){c.apply(c,[r].concat(u))}))}}}]),EventEmitter}();function defer(){var r,c,u=new Promise((function(u,p){r=u,c=p}));return u.resolve=r,u.reject=c,u}function makeString(r){return null==r?"":""+r}function copy(r,c,u){r.forEach((function(r){c[r]&&(u[r]=c[r])}))}function getLastOfPath(r,c,u){function cleanKey(r){return r&&r.indexOf("###")>-1?r.replace(/###/g,"."):r}function canNotTraverseDeeper(){return!r||"string"==typeof r}for(var p="string"!=typeof c?[].concat(c):c.split(".");p.length>1;){if(canNotTraverseDeeper())return{};var y=cleanKey(p.shift());!r[y]&&u&&(r[y]=new u),r=Object.prototype.hasOwnProperty.call(r,y)?r[y]:{}}return canNotTraverseDeeper()?{}:{obj:r,k:cleanKey(p.shift())}}function setPath(r,c,u){var p=getLastOfPath(r,c,Object);p.obj[p.k]=u}function getPath(r,c){var u=getLastOfPath(r,c),p=u.obj,y=u.k;if(p)return p[y]}function getPathWithDefaults(r,c,u){var p=getPath(r,u);return void 0!==p?p:getPath(c,u)}function deepExtend(r,c,u){for(var p in c)"__proto__"!==p&&"constructor"!==p&&(p in r?"string"==typeof r[p]||r[p]instanceof String||"string"==typeof c[p]||c[p]instanceof String?u&&(r[p]=c[p]):deepExtend(r[p],c[p],u):r[p]=c[p]);return r}function regexEscape(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function i18next_escape(r){return"string"==typeof r?r.replace(/[&<>"'\/]/g,(function(r){return k[r]})):r}var x="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function deepFind(r,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(r){if(r[c])return r[c];for(var p=c.split(u),y=r,w=0;w<p.length;++w){if("string"==typeof y[p[w]]&&w+1<p.length)return;if(void 0===y[p[w]]){for(var k=2,x=p.slice(w,w+k).join(u),E=y[x];void 0===E&&p.length>w+k;)k++,E=y[x=p.slice(w,w+k).join(u)];if(void 0===E)return;if("string"==typeof E)return E;if(x&&"string"==typeof E[x])return E[x];var I=p.slice(w+k).join(u);return I?deepFind(E,I,u):void 0}y=y[p[w]]}return y}}var E=function(r){function ResourceStore(r){var c,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _classCallCheck(this,ResourceStore),c=_possibleConstructorReturn(this,_getPrototypeOf(ResourceStore).call(this)),x&&w.call(_assertThisInitialized(c)),c.data=r||{},c.options=u,void 0===c.options.keySeparator&&(c.options.keySeparator="."),void 0===c.options.ignoreJSONStructure&&(c.options.ignoreJSONStructure=!0),c}return _inherits(ResourceStore,r),_createClass(ResourceStore,[{key:"addNamespaces",value:function addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function removeNamespaces(r){var c=this.options.ns.indexOf(r);c>-1&&this.options.ns.splice(c,1)}},{key:"getResource",value:function getResource(r,c,u){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},y=void 0!==p.keySeparator?p.keySeparator:this.options.keySeparator,w=void 0!==p.ignoreJSONStructure?p.ignoreJSONStructure:this.options.ignoreJSONStructure,k=[r,c];u&&"string"!=typeof u&&(k=k.concat(u)),u&&"string"==typeof u&&(k=k.concat(y?u.split(y):u)),r.indexOf(".")>-1&&(k=r.split("."));var x=getPath(this.data,k);return x||!w||"string"!=typeof u?x:deepFind(this.data&&this.data[r]&&this.data[r][c],u,y)}},{key:"addResource",value:function addResource(r,c,u,p){var y=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},w=this.options.keySeparator;void 0===w&&(w=".");var k=[r,c];u&&(k=k.concat(w?u.split(w):u)),r.indexOf(".")>-1&&(p=c,c=(k=r.split("."))[1]),this.addNamespaces(c),setPath(this.data,k,p),y.silent||this.emit("added",r,c,u,p)}},{key:"addResources",value:function addResources(r,c,u){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var y in u)"string"!=typeof u[y]&&"[object Array]"!==Object.prototype.toString.apply(u[y])||this.addResource(r,c,y,u[y],{silent:!0});p.silent||this.emit("added",r,c,u)}},{key:"addResourceBundle",value:function addResourceBundle(r,c,u,p,y){var w=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},k=[r,c];r.indexOf(".")>-1&&(p=u,u=c,c=(k=r.split("."))[1]),this.addNamespaces(c);var x=getPath(this.data,k)||{};p?deepExtend(x,u,y):x=_objectSpread({},x,u),setPath(this.data,k,x),w.silent||this.emit("added",r,c,u)}},{key:"removeResourceBundle",value:function removeResourceBundle(r,c){this.hasResourceBundle(r,c)&&delete this.data[r][c],this.removeNamespaces(c),this.emit("removed",r,c)}},{key:"hasResourceBundle",value:function hasResourceBundle(r,c){return void 0!==this.getResource(r,c)}},{key:"getResourceBundle",value:function getResourceBundle(r,c){return c||(c=this.options.defaultNS),"v1"===this.options.compatibilityAPI?_objectSpread({},{},this.getResource(r,c)):this.getResource(r,c)}},{key:"getDataByLanguage",value:function getDataByLanguage(r){return this.data[r]}},{key:"toJSON",value:function toJSON(){return this.data}}]),ResourceStore}(w),I={processors:{},addPostProcessor:function addPostProcessor(r){this.processors[r.name]=r},handle:function handle(r,c,u,p,y){var w=this;return r.forEach((function(r){w.processors[r]&&(c=w.processors[r].process(c,u,p,y))})),c}},K={},J=function(r){function Translator(r){var c,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _classCallCheck(this,Translator),c=_possibleConstructorReturn(this,_getPrototypeOf(Translator).call(this)),x&&w.call(_assertThisInitialized(c)),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,_assertThisInitialized(c)),c.options=u,void 0===c.options.keySeparator&&(c.options.keySeparator="."),c.logger=y.create("translator"),c}return _inherits(Translator,r),_createClass(Translator,[{key:"changeLanguage",value:function changeLanguage(r){r&&(this.language=r)}},{key:"exists",value:function exists(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},u=this.resolve(r,c);return u&&void 0!==u.res}},{key:"extractFromKey",value:function extractFromKey(r,c){var u=void 0!==c.nsSeparator?c.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");var p=void 0!==c.keySeparator?c.keySeparator:this.options.keySeparator,y=c.ns||this.options.defaultNS;if(u&&r.indexOf(u)>-1){var w=r.match(this.interpolator.nestingRegexp);if(w&&w.length>0)return{key:r,namespaces:y};var k=r.split(u);(u!==p||u===p&&this.options.ns.indexOf(k[0])>-1)&&(y=k.shift()),r=k.join(p)}return"string"==typeof y&&(y=[y]),{key:r,namespaces:y}}},{key:"translate",value:function translate(r,c,u){var p=this;if("object"!==_typeof(c)&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),c||(c={}),null==r)return"";Array.isArray(r)||(r=[String(r)]);var y=void 0!==c.keySeparator?c.keySeparator:this.options.keySeparator,w=this.extractFromKey(r[r.length-1],c),k=w.key,x=w.namespaces,E=x[x.length-1],I=c.lng||this.language,K=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(I&&"cimode"===I.toLowerCase()){if(K){var J=c.nsSeparator||this.options.nsSeparator;return E+J+k}return k}var ie=this.resolve(r,c),oe=ie&&ie.res,se=ie&&ie.usedKey||k,ae=ie&&ie.exactUsedKey||k,ue=Object.prototype.toString.apply(oe),le=["[object Number]","[object Function]","[object RegExp]"],de=void 0!==c.joinArrays?c.joinArrays:this.options.joinArrays,pe=!this.i18nFormat||this.i18nFormat.handleAsObject,he="string"!=typeof oe&&"boolean"!=typeof oe&&"number"!=typeof oe;if(pe&&oe&&he&&le.indexOf(ue)<0&&("string"!=typeof de||"[object Array]"!==ue)){if(!c.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(se,oe,c):"key '".concat(k," (").concat(this.language,")' returned an object instead of string.");if(y){var ge="[object Array]"===ue,ve=ge?[]:{},we=ge?ae:se;for(var Se in oe)if(Object.prototype.hasOwnProperty.call(oe,Se)){var Oe="".concat(we).concat(y).concat(Se);ve[Se]=this.translate(Oe,_objectSpread({},c,{joinArrays:!1,ns:x})),ve[Se]===Oe&&(ve[Se]=oe[Se])}oe=ve}}else if(pe&&"string"==typeof de&&"[object Array]"===ue)(oe=oe.join(de))&&(oe=this.extendTranslation(oe,r,c,u));else{var Ie=!1,De=!1,Pe=void 0!==c.count&&"string"!=typeof c.count,Le=Translator.hasDefaultValue(c),je=Pe?this.pluralResolver.getSuffix(I,c.count):"",Fe=c["defaultValue".concat(je)]||c.defaultValue;!this.isValidLookup(oe)&&Le&&(Ie=!0,oe=Fe),this.isValidLookup(oe)||(De=!0,oe=k);var Ue=Le&&Fe!==oe&&this.options.updateMissing;if(De||Ie||Ue){if(this.logger.log(Ue?"updateKey":"missingKey",I,E,k,Ue?Fe:oe),y){var $e=this.resolve(k,_objectSpread({},c,{keySeparator:!1}));$e&&$e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ze=[],We=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if("fallback"===this.options.saveMissingTo&&We&&We[0])for(var Ge=0;Ge<We.length;Ge++)Ze.push(We[Ge]);else"all"===this.options.saveMissingTo?Ze=this.languageUtils.toResolveHierarchy(c.lng||this.language):Ze.push(c.lng||this.language);var Ke=function send(r,u,y){p.options.missingKeyHandler?p.options.missingKeyHandler(r,E,u,Ue?y:oe,Ue,c):p.backendConnector&&p.backendConnector.saveMissing&&p.backendConnector.saveMissing(r,E,u,Ue?y:oe,Ue,c),p.emit("missingKey",r,E,u,oe)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Pe?Ze.forEach((function(r){p.pluralResolver.getSuffixes(r).forEach((function(u){Ke([r],k+u,c["defaultValue".concat(u)]||Fe)}))})):Ke(Ze,k,Fe))}oe=this.extendTranslation(oe,r,c,ie,u),De&&oe===k&&this.options.appendNamespaceToMissingKey&&(oe="".concat(E,":").concat(k)),De&&this.options.parseMissingKeyHandler&&(oe=this.options.parseMissingKeyHandler(oe))}return oe}},{key:"extendTranslation",value:function extendTranslation(r,c,u,p,y){var w=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,u,p.usedLng,p.usedNS,p.usedKey,{resolved:p});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init(_objectSpread({},u,{interpolation:_objectSpread({},this.options.interpolation,u.interpolation)}));var k,x=u.interpolation&&u.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(x){var E=r.match(this.interpolator.nestingRegexp);k=E&&E.length}var K=u.replace&&"string"!=typeof u.replace?u.replace:u;if(this.options.interpolation.defaultVariables&&(K=_objectSpread({},this.options.interpolation.defaultVariables,K)),r=this.interpolator.interpolate(r,K,u.lng||this.language,u),x){var J=r.match(this.interpolator.nestingRegexp);k<(J&&J.length)&&(u.nest=!1)}!1!==u.nest&&(r=this.interpolator.nest(r,(function(){for(var r=arguments.length,p=new Array(r),k=0;k<r;k++)p[k]=arguments[k];return y&&y[0]===p[0]&&!u.context?(w.logger.warn("It seems you are nesting recursively key: ".concat(p[0]," in key: ").concat(c[0])),null):w.translate.apply(w,p.concat([c]))}),u)),u.interpolation&&this.interpolator.reset()}var ie=u.postProcess||this.options.postProcess,oe="string"==typeof ie?[ie]:ie;return null!=r&&oe&&oe.length&&!1!==u.applyPostProcessor&&(r=I.handle(oe,r,c,this.options&&this.options.postProcessPassResolved?_objectSpread({i18nResolved:p},u):u,this)),r}},{key:"resolve",value:function resolve(r){var c,u,p,y,w,k=this,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof r&&(r=[r]),r.forEach((function(r){if(!k.isValidLookup(c)){var E=k.extractFromKey(r,x),I=E.key;u=I;var J=E.namespaces;k.options.fallbackNS&&(J=J.concat(k.options.fallbackNS));var ie=void 0!==x.count&&"string"!=typeof x.count,oe=void 0!==x.context&&"string"==typeof x.context&&""!==x.context,se=x.lngs?x.lngs:k.languageUtils.toResolveHierarchy(x.lng||k.language,x.fallbackLng);J.forEach((function(r){k.isValidLookup(c)||(w=r,!K["".concat(se[0],"-").concat(r)]&&k.utils&&k.utils.hasLoadedNamespace&&!k.utils.hasLoadedNamespace(w)&&(K["".concat(se[0],"-").concat(r)]=!0,k.logger.warn('key "'.concat(u,'" for languages "').concat(se.join(", "),'" won\'t get resolved as namespace "').concat(w,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),se.forEach((function(u){if(!k.isValidLookup(c)){y=u;var w,E,K=I,J=[K];if(k.i18nFormat&&k.i18nFormat.addLookupKeys)k.i18nFormat.addLookupKeys(J,I,u,r,x);else ie&&(w=k.pluralResolver.getSuffix(u,x.count)),ie&&oe&&J.push(K+w),oe&&J.push(K+="".concat(k.options.contextSeparator).concat(x.context)),ie&&J.push(K+=w);for(;E=J.pop();)k.isValidLookup(c)||(p=E,c=k.getResource(u,r,E,x))}})))}))}})),{res:c,usedKey:u,exactUsedKey:p,usedLng:y,usedNS:w}}},{key:"isValidLookup",value:function isValidLookup(r){return!(void 0===r||!this.options.returnNull&&null===r||!this.options.returnEmptyString&&""===r)}},{key:"getResource",value:function getResource(r,c,u){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,c,u,p):this.resourceStore.getResource(r,c,u,p)}}],[{key:"hasDefaultValue",value:function hasDefaultValue(r){for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&"defaultValue"===c.substring(0,"defaultValue".length)&&void 0!==r[c])return!0;return!1}}]),Translator}(w);function capitalize(r){return r.charAt(0).toUpperCase()+r.slice(1)}var ie=function(){function LanguageUtil(r){_classCallCheck(this,LanguageUtil),this.options=r,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return _createClass(LanguageUtil,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(r){if(!r||r.indexOf("-")<0)return null;var c=r.split("-");return 2===c.length?null:(c.pop(),"x"===c[c.length-1].toLowerCase()?null:this.formatLanguageCode(c.join("-")))}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(r){if(!r||r.indexOf("-")<0)return r;var c=r.split("-");return this.formatLanguageCode(c[0])}},{key:"formatLanguageCode",value:function formatLanguageCode(r){if("string"==typeof r&&r.indexOf("-")>-1){var c=["hans","hant","latn","cyrl","cans","mong","arab"],u=r.split("-");return this.options.lowerCaseLng?u=u.map((function(r){return r.toLowerCase()})):2===u.length?(u[0]=u[0].toLowerCase(),u[1]=u[1].toUpperCase(),c.indexOf(u[1].toLowerCase())>-1&&(u[1]=capitalize(u[1].toLowerCase()))):3===u.length&&(u[0]=u[0].toLowerCase(),2===u[1].length&&(u[1]=u[1].toUpperCase()),"sgn"!==u[0]&&2===u[2].length&&(u[2]=u[2].toUpperCase()),c.indexOf(u[1].toLowerCase())>-1&&(u[1]=capitalize(u[1].toLowerCase())),c.indexOf(u[2].toLowerCase())>-1&&(u[2]=capitalize(u[2].toLowerCase()))),u.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isWhitelisted",value:function isWhitelisted(r){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(r)}},{key:"isSupportedCode",value:function isSupportedCode(r){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(r){var c,u=this;return r?(r.forEach((function(r){if(!c){var p=u.formatLanguageCode(r);u.options.supportedLngs&&!u.isSupportedCode(p)||(c=p)}})),!c&&this.options.supportedLngs&&r.forEach((function(r){if(!c){var p=u.getLanguagePartFromCode(r);if(u.isSupportedCode(p))return c=p;c=u.options.supportedLngs.find((function(r){if(0===r.indexOf(p))return r}))}})),c||(c=this.getFallbackCodes(this.options.fallbackLng)[0]),c):null}},{key:"getFallbackCodes",value:function getFallbackCodes(r,c){if(!r)return[];if("function"==typeof r&&(r=r(c)),"string"==typeof r&&(r=[r]),"[object Array]"===Object.prototype.toString.apply(r))return r;if(!c)return r.default||[];var u=r[c];return u||(u=r[this.getScriptPartFromCode(c)]),u||(u=r[this.formatLanguageCode(c)]),u||(u=r[this.getLanguagePartFromCode(c)]),u||(u=r.default),u||[]}},{key:"toResolveHierarchy",value:function toResolveHierarchy(r,c){var u=this,p=this.getFallbackCodes(c||this.options.fallbackLng||[],r),y=[],w=function addCode(r){r&&(u.isSupportedCode(r)?y.push(r):u.logger.warn("rejecting language code not found in supportedLngs: ".concat(r)))};return"string"==typeof r&&r.indexOf("-")>-1?("languageOnly"!==this.options.load&&w(this.formatLanguageCode(r)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&w(this.getScriptPartFromCode(r)),"currentOnly"!==this.options.load&&w(this.getLanguagePartFromCode(r))):"string"==typeof r&&w(this.formatLanguageCode(r)),p.forEach((function(r){y.indexOf(r)<0&&w(u.formatLanguageCode(r))})),y}}]),LanguageUtil}(),oe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],se={1:function _(r){return Number(r>1)},2:function _(r){return Number(1!=r)},3:function _(r){return 0},4:function _(r){return Number(r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2)},5:function _(r){return Number(0==r?0:1==r?1:2==r?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5)},6:function _(r){return Number(1==r?0:r>=2&&r<=4?1:2)},7:function _(r){return Number(1==r?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2)},8:function _(r){return Number(1==r?0:2==r?1:8!=r&&11!=r?2:3)},9:function _(r){return Number(r>=2)},10:function _(r){return Number(1==r?0:2==r?1:r<7?2:r<11?3:4)},11:function _(r){return Number(1==r||11==r?0:2==r||12==r?1:r>2&&r<20?2:3)},12:function _(r){return Number(r%10!=1||r%100==11)},13:function _(r){return Number(0!==r)},14:function _(r){return Number(1==r?0:2==r?1:3==r?2:3)},15:function _(r){return Number(r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2)},16:function _(r){return Number(r%10==1&&r%100!=11?0:0!==r?1:2)},17:function _(r){return Number(1==r||r%10==1&&r%100!=11?0:1)},18:function _(r){return Number(0==r?0:1==r?1:2)},19:function _(r){return Number(1==r?0:0==r||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3)},20:function _(r){return Number(1==r?0:0==r||r%100>0&&r%100<20?1:2)},21:function _(r){return Number(r%100==1?1:r%100==2?2:r%100==3||r%100==4?3:0)},22:function _(r){return Number(1==r?0:2==r?1:(r<0||r>10)&&r%10==0?2:3)}};function createRules(){var r={};return oe.forEach((function(c){c.lngs.forEach((function(u){r[u]={numbers:c.nr,plurals:se[c.fc]}}))})),r}var ae=function(){function PluralResolver(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,PluralResolver),this.languageUtils=r,this.options=c,this.logger=y.create("pluralResolver"),this.rules=createRules()}return _createClass(PluralResolver,[{key:"addRule",value:function addRule(r,c){this.rules[r]=c}},{key:"getRule",value:function getRule(r){return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function needsPlural(r){var c=this.getRule(r);return c&&c.numbers.length>1}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(r,c){return this.getSuffixes(r).map((function(r){return c+r}))}},{key:"getSuffixes",value:function getSuffixes(r){var c=this,u=this.getRule(r);return u?u.numbers.map((function(u){return c.getSuffix(r,u)})):[]}},{key:"getSuffix",value:function getSuffix(r,c){var u=this,p=this.getRule(r);if(p){var y=p.noAbs?p.plurals(c):p.plurals(Math.abs(c)),w=p.numbers[y];this.options.simplifyPluralSuffix&&2===p.numbers.length&&1===p.numbers[0]&&(2===w?w="plural":1===w&&(w=""));var k=function returnSuffix(){return u.options.prepend&&w.toString()?u.options.prepend+w.toString():w.toString()};return"v1"===this.options.compatibilityJSON?1===w?"":"number"==typeof w?"_plural_".concat(w.toString()):k():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===p.numbers.length&&1===p.numbers[0]?k():this.options.prepend&&y.toString()?this.options.prepend+y.toString():y.toString()}return this.logger.warn("no plural rule found for: ".concat(r)),""}}]),PluralResolver}(),ue=function(){function Interpolator(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,Interpolator),this.logger=y.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||function(r){return r},this.init(r)}return _createClass(Interpolator,[{key:"init",value:function init(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var c=r.interpolation;this.escape=void 0!==c.escape?c.escape:i18next_escape,this.escapeValue=void 0===c.escapeValue||c.escapeValue,this.useRawValueToEscape=void 0!==c.useRawValueToEscape&&c.useRawValueToEscape,this.prefix=c.prefix?regexEscape(c.prefix):c.prefixEscaped||"{{",this.suffix=c.suffix?regexEscape(c.suffix):c.suffixEscaped||"}}",this.formatSeparator=c.formatSeparator?c.formatSeparator:c.formatSeparator||",",this.unescapePrefix=c.unescapeSuffix?"":c.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":c.unescapeSuffix||"",this.nestingPrefix=c.nestingPrefix?regexEscape(c.nestingPrefix):c.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=c.nestingSuffix?regexEscape(c.nestingSuffix):c.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=c.nestingOptionsSeparator?c.nestingOptionsSeparator:c.nestingOptionsSeparator||",",this.maxReplaces=c.maxReplaces?c.maxReplaces:1e3,this.alwaysFormat=void 0!==c.alwaysFormat&&c.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function reset(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function resetRegExp(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var c="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(c,"g");var u="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(u,"g")}},{key:"interpolate",value:function interpolate(r,c,u,p){var y,w,k,x=this,E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function regexSafe(r){return r.replace(/\$/g,"$$$$")}var I=function handleFormat(r){if(r.indexOf(x.formatSeparator)<0){var y=getPathWithDefaults(c,E,r);return x.alwaysFormat?x.format(y,void 0,u,_objectSpread({},p,c,{interpolationkey:r})):y}var w=r.split(x.formatSeparator),k=w.shift().trim(),I=w.join(x.formatSeparator).trim();return x.format(getPathWithDefaults(c,E,k),I,u,_objectSpread({},p,c,{interpolationkey:k}))};this.resetRegExp();var K=p&&p.missingInterpolationHandler||this.options.missingInterpolationHandler,J=p&&p.interpolation&&p.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function safeValue(r){return regexSafe(r)}},{regex:this.regexp,safeValue:function safeValue(r){return x.escapeValue?regexSafe(x.escape(r)):regexSafe(r)}}].forEach((function(c){for(k=0;y=c.regex.exec(r);){if(void 0===(w=I(y[1].trim())))if("function"==typeof K){var u=K(r,y,p);w="string"==typeof u?u:""}else{if(J){w=y[0];continue}x.logger.warn("missed to pass in variable ".concat(y[1]," for interpolating ").concat(r)),w=""}else"string"==typeof w||x.useRawValueToEscape||(w=makeString(w));var E=c.safeValue(w);if(r=r.replace(y[0],E),J?(c.regex.lastIndex+=E.length,c.regex.lastIndex-=y[0].length):c.regex.lastIndex=0,++k>=x.maxReplaces)break}})),r}},{key:"nest",value:function nest(r,c){var u,p,y=this,w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},k=_objectSpread({},w);function handleHasOptions(r,c){var u=this.nestingOptionsSeparator;if(r.indexOf(u)<0)return r;var p=r.split(new RegExp("".concat(u,"[ ]*{"))),y="{".concat(p[1]);r=p[0],y=(y=this.interpolate(y,k)).replace(/'/g,'"');try{k=JSON.parse(y),c&&(k=_objectSpread({},c,k))}catch(c){return this.logger.warn("failed parsing options string in nesting for key ".concat(r),c),"".concat(r).concat(u).concat(y)}return delete k.defaultValue,r}for(k.applyPostProcessor=!1,delete k.defaultValue;u=this.nestingRegexp.exec(r);){var x=[],E=!1;if(-1!==u[0].indexOf(this.formatSeparator)&&!/{.*}/.test(u[1])){var I=u[1].split(this.formatSeparator).map((function(r){return r.trim()}));u[1]=I.shift(),x=I,E=!0}if((p=c(handleHasOptions.call(this,u[1].trim(),k),k))&&u[0]===r&&"string"!=typeof p)return p;"string"!=typeof p&&(p=makeString(p)),p||(this.logger.warn("missed to resolve ".concat(u[1]," for nesting ").concat(r)),p=""),E&&(p=x.reduce((function(r,c){return y.format(r,c,w.lng,_objectSpread({},w,{interpolationkey:u[1].trim()}))}),p.trim())),r=r.replace(u[0],p),this.regexp.lastIndex=0}return r}}]),Interpolator}();var le=function(r){function Connector(r,c,u){var p,k=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _classCallCheck(this,Connector),p=_possibleConstructorReturn(this,_getPrototypeOf(Connector).call(this)),x&&w.call(_assertThisInitialized(p)),p.backend=r,p.store=c,p.services=u,p.languageUtils=u.languageUtils,p.options=k,p.logger=y.create("backendConnector"),p.state={},p.queue=[],p.backend&&p.backend.init&&p.backend.init(u,k.backend,k),p}return _inherits(Connector,r),_createClass(Connector,[{key:"queueLoad",value:function queueLoad(r,c,u,p){var y=this,w=[],k=[],x=[],E=[];return r.forEach((function(r){var p=!0;c.forEach((function(c){var x="".concat(r,"|").concat(c);!u.reload&&y.store.hasResourceBundle(r,c)?y.state[x]=2:y.state[x]<0||(1===y.state[x]?k.indexOf(x)<0&&k.push(x):(y.state[x]=1,p=!1,k.indexOf(x)<0&&k.push(x),w.indexOf(x)<0&&w.push(x),E.indexOf(c)<0&&E.push(c)))})),p||x.push(r)})),(w.length||k.length)&&this.queue.push({pending:k,loaded:{},errors:[],callback:p}),{toLoad:w,pending:k,toLoadLanguages:x,toLoadNamespaces:E}}},{key:"loaded",value:function loaded(r,c,u){var p=r.split("|"),y=p[0],w=p[1];c&&this.emit("failedLoading",y,w,c),u&&this.store.addResourceBundle(y,w,u),this.state[r]=c?-1:2;var loaded={};this.queue.forEach((function(u){!function pushPath(r,c,u,p){var y=getLastOfPath(r,c,Object),w=y.obj,k=y.k;w[k]=w[k]||[],p&&(w[k]=w[k].concat(u)),p||w[k].push(u)}(u.loaded,[y],w),function remove(r,c){for(var u=r.indexOf(c);-1!==u;)r.splice(u,1),u=r.indexOf(c)}(u.pending,r),c&&u.errors.push(c),0!==u.pending.length||u.done||(Object.keys(u.loaded).forEach((function(r){loaded[r]||(loaded[r]=[]),u.loaded[r].length&&u.loaded[r].forEach((function(c){loaded[r].indexOf(c)<0&&loaded[r].push(c)}))})),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())})),this.emit("loaded",loaded),this.queue=this.queue.filter((function(r){return!r.done}))}},{key:"read",value:function read(r,c,u){var p=this,y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,w=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,k=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[u](r,c,(function(x,E){x&&E&&y<5?setTimeout((function(){p.read.call(p,r,c,u,y+1,2*w,k)}),w):k(x,E)})):k(null,{})}},{key:"prepareLoading",value:function prepareLoading(r,c){var u=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},y=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),y&&y();"string"==typeof r&&(r=this.languageUtils.toResolveHierarchy(r)),"string"==typeof c&&(c=[c]);var w=this.queueLoad(r,c,p,y);if(!w.toLoad.length)return w.pending.length||y(),null;w.toLoad.forEach((function(r){u.loadOne(r)}))}},{key:"load",value:function load(r,c,u){this.prepareLoading(r,c,{},u)}},{key:"reload",value:function reload(r,c,u){this.prepareLoading(r,c,{reload:!0},u)}},{key:"loadOne",value:function loadOne(r){var c=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",p=r.split("|"),y=p[0],w=p[1];this.read(y,w,"read",void 0,void 0,(function(p,k){p&&c.logger.warn("".concat(u,"loading namespace ").concat(w," for language ").concat(y," failed"),p),!p&&k&&c.logger.log("".concat(u,"loaded namespace ").concat(w," for language ").concat(y),k),c.loaded(r,p,k)}))}},{key:"saveMissing",value:function saveMissing(r,c,u,p,y){var w=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(c)?this.logger.warn('did not save key "'.concat(u,'" as the namespace "').concat(c,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=u&&""!==u&&(this.backend&&this.backend.create&&this.backend.create(r,c,u,p,null,_objectSpread({},w,{isUpdate:y})),r&&r[0]&&this.store.addResource(r[0],c,u,p))}}]),Connector}(w);function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function handle(r){var c={};if("object"===_typeof(r[1])&&(c=r[1]),"string"==typeof r[1]&&(c.defaultValue=r[1]),"string"==typeof r[2]&&(c.tDescription=r[2]),"object"===_typeof(r[2])||"object"===_typeof(r[3])){var u=r[3]||r[2];Object.keys(u).forEach((function(r){c[r]=u[r]}))}return c},interpolation:{escapeValue:!0,format:function format(r,c,u,p){return r},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function transformOptions(r){return"string"==typeof r.ns&&(r.ns=[r.ns]),"string"==typeof r.fallbackLng&&(r.fallbackLng=[r.fallbackLng]),"string"==typeof r.fallbackNS&&(r.fallbackNS=[r.fallbackNS]),r.whitelist&&(r.whitelist&&r.whitelist.indexOf("cimode")<0&&(r.whitelist=r.whitelist.concat(["cimode"])),r.supportedLngs=r.whitelist),r.nonExplicitWhitelist&&(r.nonExplicitSupportedLngs=r.nonExplicitWhitelist),r.supportedLngs&&r.supportedLngs.indexOf("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),r}function noop(){}const de=new(function(r){function I18n(){var r,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;if(_classCallCheck(this,I18n),r=_possibleConstructorReturn(this,_getPrototypeOf(I18n).call(this)),x&&w.call(_assertThisInitialized(r)),r.options=transformOptions(c),r.services={},r.logger=y,r.modules={external:[]},u&&!r.isInitialized&&!c.isClone){if(!r.options.initImmediate)return r.init(c,u),_possibleConstructorReturn(r,_assertThisInitialized(r));setTimeout((function(){r.init(c,u)}),0)}return r}return _inherits(I18n,r),_createClass(I18n,[{key:"init",value:function init(){var r=this,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;function createClassOnDemand(r){return r?"function"==typeof r?new r:r:null}if("function"==typeof c&&(u=c,c={}),c.whitelist&&!c.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),c.nonExplicitWhitelist&&!c.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=_objectSpread({},get(),this.options,transformOptions(c)),this.format=this.options.interpolation.format,u||(u=noop),!this.options.isClone){this.modules.logger?y.init(createClassOnDemand(this.modules.logger),this.options):y.init(null,this.options);var p=new ie(this.options);this.store=new E(this.options.resources,this.options);var w=this.services;w.logger=y,w.resourceStore=this.store,w.languageUtils=p,w.pluralResolver=new ae(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),w.interpolator=new ue(this.options),w.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},w.backendConnector=new le(createClassOnDemand(this.modules.backend),w.resourceStore,w,this.options),w.backendConnector.on("*",(function(c){for(var u=arguments.length,p=new Array(u>1?u-1:0),y=1;y<u;y++)p[y-1]=arguments[y];r.emit.apply(r,[c].concat(p))})),this.modules.languageDetector&&(w.languageDetector=createClassOnDemand(this.modules.languageDetector),w.languageDetector.init(w,this.options.detection,this.options)),this.modules.i18nFormat&&(w.i18nFormat=createClassOnDemand(this.modules.i18nFormat),w.i18nFormat.init&&w.i18nFormat.init(this)),this.translator=new J(this.services,this.options),this.translator.on("*",(function(c){for(var u=arguments.length,p=new Array(u>1?u-1:0),y=1;y<u;y++)p[y-1]=arguments[y];r.emit.apply(r,[c].concat(p))})),this.modules.external.forEach((function(c){c.init&&c.init(r)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var k=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);k.length>0&&"dev"!==k[0]&&(this.options.lng=k[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var x=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];x.forEach((function(c){r[c]=function(){var u;return(u=r.store)[c].apply(u,arguments)}}));var I=["addResource","addResources","addResourceBundle","removeResourceBundle"];I.forEach((function(c){r[c]=function(){var u;return(u=r.store)[c].apply(u,arguments),r}}));var K=defer(),oe=function load(){var c=function finish(c,p){r.isInitialized&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),K.resolve(p),u(c,p)};if(r.languages&&"v1"!==r.options.compatibilityAPI&&!r.isInitialized)return c(null,r.t.bind(r));r.changeLanguage(r.options.lng,c)};return this.options.resources||!this.options.initImmediate?oe():setTimeout(oe,0),K}},{key:"loadResources",value:function loadResources(r){var c=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,p=u,y="string"==typeof r?r:this.language;if("function"==typeof r&&(p=r),!this.options.resources||this.options.partialBundledLanguages){if(y&&"cimode"===y.toLowerCase())return p();var w=[],k=function append(r){r&&c.services.languageUtils.toResolveHierarchy(r).forEach((function(r){w.indexOf(r)<0&&w.push(r)}))};if(y)k(y);else{var x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.forEach((function(r){return k(r)}))}this.options.preload&&this.options.preload.forEach((function(r){return k(r)})),this.services.backendConnector.load(w,this.options.ns,p)}else p(null)}},{key:"reloadResources",value:function reloadResources(r,c,u){var p=defer();return r||(r=this.languages),c||(c=this.options.ns),u||(u=noop),this.services.backendConnector.reload(r,c,(function(r){p.resolve(),u(r)})),p}},{key:"use",value:function use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===r.type&&(this.modules.backend=r),("logger"===r.type||r.log&&r.warn&&r.error)&&(this.modules.logger=r),"languageDetector"===r.type&&(this.modules.languageDetector=r),"i18nFormat"===r.type&&(this.modules.i18nFormat=r),"postProcessor"===r.type&&I.addPostProcessor(r),"3rdParty"===r.type&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function changeLanguage(r,c){var u=this;this.isLanguageChangingTo=r;var p=defer();this.emit("languageChanging",r);var y=function setLng(r){var y="string"==typeof r?r:u.services.languageUtils.getBestMatchFromCodes(r);y&&(u.language||(u.language=y,u.languages=u.services.languageUtils.toResolveHierarchy(y)),u.translator.language||u.translator.changeLanguage(y),u.services.languageDetector&&u.services.languageDetector.cacheUserLanguage(y)),u.loadResources(y,(function(r){!function done(r,y){y?(u.language=y,u.languages=u.services.languageUtils.toResolveHierarchy(y),u.translator.changeLanguage(y),u.isLanguageChangingTo=void 0,u.emit("languageChanged",y),u.logger.log("languageChanged",y)):u.isLanguageChangingTo=void 0,p.resolve((function(){return u.t.apply(u,arguments)})),c&&c(r,(function(){return u.t.apply(u,arguments)}))}(r,y)}))};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(y):y(r):y(this.services.languageDetector.detect()),p}},{key:"getFixedT",value:function getFixedT(r,c){var u=this,p=function fixedT(r,c){var p;if("object"!==_typeof(c)){for(var y=arguments.length,w=new Array(y>2?y-2:0),k=2;k<y;k++)w[k-2]=arguments[k];p=u.options.overloadTranslationOptionHandler([r,c].concat(w))}else p=_objectSpread({},c);return p.lng=p.lng||fixedT.lng,p.lngs=p.lngs||fixedT.lngs,p.ns=p.ns||fixedT.ns,u.t(r,p)};return"string"==typeof r?p.lng=r:p.lngs=r,p.ns=c,p}},{key:"t",value:function t(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function exists(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function setDefaultNamespace(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function hasLoadedNamespace(r){var c=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var p=this.languages[0],y=!!this.options&&this.options.fallbackLng,w=this.languages[this.languages.length-1];if("cimode"===p.toLowerCase())return!0;var k=function loadNotPending(r,u){var p=c.services.backendConnector.state["".concat(r,"|").concat(u)];return-1===p||2===p};if(u.precheck){var x=u.precheck(this,k);if(void 0!==x)return x}return!!this.hasResourceBundle(p,r)||(!this.services.backendConnector.backend||!(!k(p,r)||y&&!k(w,r)))}},{key:"loadNamespaces",value:function loadNamespaces(r,c){var u=this,p=defer();return this.options.ns?("string"==typeof r&&(r=[r]),r.forEach((function(r){u.options.ns.indexOf(r)<0&&u.options.ns.push(r)})),this.loadResources((function(r){p.resolve(),c&&c(r)})),p):(c&&c(),Promise.resolve())}},{key:"loadLanguages",value:function loadLanguages(r,c){var u=defer();"string"==typeof r&&(r=[r]);var p=this.options.preload||[],y=r.filter((function(r){return p.indexOf(r)<0}));return y.length?(this.options.preload=p.concat(y),this.loadResources((function(r){u.resolve(),c&&c(r)})),u):(c&&c(),Promise.resolve())}},{key:"dir",value:function dir(r){if(r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),!r)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>=0?"rtl":"ltr"}},{key:"createInstance",value:function createInstance(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;return new I18n(r,c)}},{key:"cloneInstance",value:function cloneInstance(){var r=this,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,p=_objectSpread({},this.options,c,{isClone:!0}),y=new I18n(p),w=["store","services","language"];return w.forEach((function(c){y[c]=r[c]})),y.services=_objectSpread({},this.services),y.services.utils={hasLoadedNamespace:y.hasLoadedNamespace.bind(y)},y.translator=new J(y.services,y.options),y.translator.on("*",(function(r){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p<c;p++)u[p-1]=arguments[p];y.emit.apply(y,[r].concat(u))})),y.init(p,u),y.translator.options=y.options,y.translator.backendConnector.services.utils={hasLoadedNamespace:y.hasLoadedNamespace.bind(y)},y}}]),I18n}(w))},29367:r=>{"use strict";var c=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],u=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];r.exports=function(r){return!r||!r.code||(-1!==c.indexOf(r.code)||-1===u.indexOf(r.code))}},42604:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var u=["weeks","years","months","days","hours","minutes","seconds"],p=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0}),y=c.pattern=new RegExp("P(?:(\\d+(?:[\\.,]\\d+)?W)|(\\d+(?:[\\.,]\\d+)?Y)?(\\d+(?:[\\.,]\\d+)?M)?(\\d+(?:[\\.,]\\d+)?D)?(?:T(\\d+(?:[\\.,]\\d+)?H)?(\\d+(?:[\\.,]\\d+)?M)?(\\d+(?:[\\.,]\\d+)?S)?)?)"),w=c.parse=function parse(r){return r.match(y).slice(1).reduce((function(r,c,p){return r[u[p]]=parseFloat(c)||0,r}),{})},k=c.end=function end(r,c){r=Object.assign({},p,r);var u=c?c.getTime():Date.now(),y=new Date(u);return y.setFullYear(y.getFullYear()+r.years),y.setMonth(y.getMonth()+r.months),y.setDate(y.getDate()+r.days),y.setHours(y.getHours()+r.hours),y.setMinutes(y.getMinutes()+r.minutes),y.setMilliseconds(y.getMilliseconds()+1e3*r.seconds),y.setDate(y.getDate()+7*r.weeks),y},x=c.toSeconds=function toSeconds(r,c){r=Object.assign({},p,r);var u=c?c.getTime():Date.now(),y=new Date(u);return(k(r,y).getTime()-y.getTime())/1e3};c.default={end:k,toSeconds:x,pattern:y,parse:w}},84907:function(r){!function webpackUniversalModuleDefinition(c,u){r.exports=u()}(0,(function(){return function(r){var c={};function __nested_webpack_require_563__(u){if(c[u])return c[u].exports;var p=c[u]={i:u,l:!1,exports:{}};return r[u].call(p.exports,p,p.exports,__nested_webpack_require_563__),p.l=!0,p.exports}return __nested_webpack_require_563__.m=r,__nested_webpack_require_563__.c=c,__nested_webpack_require_563__.i=function(r){return r},__nested_webpack_require_563__.d=function(r,c,u){__nested_webpack_require_563__.o(r,c)||Object.defineProperty(r,c,{configurable:!1,enumerable:!0,get:u})},__nested_webpack_require_563__.n=function(r){var c=r&&r.__esModule?function getDefault(){return r.default}:function getModuleExports(){return r};return __nested_webpack_require_563__.d(c,"a",c),c},__nested_webpack_require_563__.o=function(r,c){return Object.prototype.hasOwnProperty.call(r,c)},__nested_webpack_require_563__.p="",__nested_webpack_require_563__(__nested_webpack_require_563__.s=5)}([function(r,c,u){"use strict";r.exports=function(r,c){var u,p,y;for(u=1;u<arguments.length;u++)for(y in p=arguments[u])p.hasOwnProperty(y)&&(r[y]=p[y]);return r}},function(r,c,u){"use strict";var p=u(0);r.exports={build:function(r,c){var u,y,w,k=c.plugins;for(u=0,y=k.length;u<y;u++)(w=k[u]).methods&&p(r,w.methods),w.properties&&Object.defineProperties(r,w.properties)},hook:function(r,c,u){var p,y,w,k,x=r.config.plugins,E=[r.context];for(u&&(E=E.concat(u)),p=0,y=x.length;p<y;p++)k=x[p],(w=x[p][c])&&w.apply(k,E)}}},function(r,c,u){"use strict";function camelize(r){if(0===r.length)return r;var c,u,p=r.split(/[_-]/);if(1===p.length&&p[0][0].toLowerCase()===p[0][0])return r;for(u=p[0].toLowerCase(),c=1;c<p.length;c++)u=u+p[c].charAt(0).toUpperCase()+p[c].substring(1).toLowerCase();return u}camelize.prepended=function(r,c){return r+(c=camelize(c))[0].toUpperCase()+c.substring(1)},r.exports=camelize},function(r,c,u){"use strict";var p=u(0),y=u(2);function Config(r,c){r=r||{},this.options=r,this.defaults=c.defaults,this.states=[],this.transitions=[],this.map={},this.lifecycle=this.configureLifecycle(),this.init=this.configureInitTransition(r.init),this.data=this.configureData(r.data),this.methods=this.configureMethods(r.methods),this.map[this.defaults.wildcard]={},this.configureTransitions(r.transitions||[]),this.plugins=this.configurePlugins(r.plugins,c.plugin)}p(Config.prototype,{addState:function(r){this.map[r]||(this.states.push(r),this.addStateLifecycleNames(r),this.map[r]={})},addStateLifecycleNames:function(r){this.lifecycle.onEnter[r]=y.prepended("onEnter",r),this.lifecycle.onLeave[r]=y.prepended("onLeave",r),this.lifecycle.on[r]=y.prepended("on",r)},addTransition:function(r){this.transitions.indexOf(r)<0&&(this.transitions.push(r),this.addTransitionLifecycleNames(r))},addTransitionLifecycleNames:function(r){this.lifecycle.onBefore[r]=y.prepended("onBefore",r),this.lifecycle.onAfter[r]=y.prepended("onAfter",r),this.lifecycle.on[r]=y.prepended("on",r)},mapTransition:function(r){var c=r.name,u=r.from,p=r.to;return this.addState(u),"function"!=typeof p&&this.addState(p),this.addTransition(c),this.map[u][c]=r,r},configureLifecycle:function(){return{onBefore:{transition:"onBeforeTransition"},onAfter:{transition:"onAfterTransition"},onEnter:{state:"onEnterState"},onLeave:{state:"onLeaveState"},on:{transition:"onTransition"}}},configureInitTransition:function(r){return"string"==typeof r?this.mapTransition(p({},this.defaults.init,{to:r,active:!0})):"object"==typeof r?this.mapTransition(p({},this.defaults.init,r,{active:!0})):(this.addState(this.defaults.init.from),this.defaults.init)},configureData:function(r){return"function"==typeof r?r:"object"==typeof r?function(){return r}:function(){return{}}},configureMethods:function(r){return r||{}},configurePlugins:function(r,c){var u,p,y;for(u=0,p=(r=r||[]).length;u<p;u++)"function"==typeof(y=r[u])&&(r[u]=y=y()),y.configure&&y.configure(this);return r},configureTransitions:function(r){var c,u,p,y,w,k=this.defaults.wildcard;for(u=0;u<r.length;u++)for(p=r[u],y=Array.isArray(p.from)?p.from:[p.from||k],w=p.to||k,c=0;c<y.length;c++)this.mapTransition({name:p.name,from:y[c],to:w})},transitionFor:function(r,c){var u=this.defaults.wildcard;return this.map[r][c]||this.map[u][c]},transitionsFor:function(r){var c=this.defaults.wildcard;return Object.keys(this.map[r]).concat(Object.keys(this.map[c]))},allStates:function(){return this.states},allTransitions:function(){return this.transitions}}),r.exports=Config},function(r,c,u){var p=u(0),y=u(6),w=u(1),k=[null,[]];function JSM(r,c){this.context=r,this.config=c,this.state=c.init.from,this.observers=[r]}p(JSM.prototype,{init:function(r){if(p(this.context,this.config.data.apply(this.context,r)),w.hook(this,"init"),this.config.init.active)return this.fire(this.config.init.name,[])},is:function(r){return Array.isArray(r)?r.indexOf(this.state)>=0:this.state===r},isPending:function(){return this.pending},can:function(r){return!this.isPending()&&!!this.seek(r)},cannot:function(r){return!this.can(r)},allStates:function(){return this.config.allStates()},allTransitions:function(){return this.config.allTransitions()},transitions:function(){return this.config.transitionsFor(this.state)},seek:function(r,c){var u=this.config.defaults.wildcard,p=this.config.transitionFor(this.state,r),y=p&&p.to;return"function"==typeof y?y.apply(this.context,c):y===u?this.state:y},fire:function(r,c){return this.transit(r,this.state,this.seek(r,c),c)},transit:function(r,c,u,p){var y=this.config.lifecycle,w=this.config.options.observeUnchangedState||c!==u;return u?this.isPending()?this.context.onPendingTransition(r,c,u):(this.config.addState(u),this.beginTransit(),p.unshift({transition:r,from:c,to:u,fsm:this.context}),this.observeEvents([this.observersForEvent(y.onBefore.transition),this.observersForEvent(y.onBefore[r]),w?this.observersForEvent(y.onLeave.state):k,w?this.observersForEvent(y.onLeave[c]):k,this.observersForEvent(y.on.transition),w?["doTransit",[this]]:k,w?this.observersForEvent(y.onEnter.state):k,w?this.observersForEvent(y.onEnter[u]):k,w?this.observersForEvent(y.on[u]):k,this.observersForEvent(y.onAfter.transition),this.observersForEvent(y.onAfter[r]),this.observersForEvent(y.on[r])],p)):this.context.onInvalidTransition(r,c,u)},beginTransit:function(){this.pending=!0},endTransit:function(r){return this.pending=!1,r},failTransit:function(r){throw this.pending=!1,r},doTransit:function(r){this.state=r.to},observe:function(r){if(2===r.length){var c={};c[r[0]]=r[1],this.observers.push(c)}else this.observers.push(r[0])},observersForEvent:function(r){for(var c,u=0,p=this.observers.length,y=[];u<p;u++)(c=this.observers[u])[r]&&y.push(c);return[r,y,!0]},observeEvents:function(r,c,u,p){if(0===r.length)return this.endTransit(void 0===p||p);var y=r[0][0],k=r[0][1],x=r[0][2];if(c[0].event=y,y&&x&&y!==u&&w.hook(this,"lifecycle",c),0===k.length)return r.shift(),this.observeEvents(r,c,y,p);var E=k.shift(),I=E[y].apply(E,c);return I&&"function"==typeof I.then?I.then(this.observeEvents.bind(this,r,c,y)).catch(this.failTransit.bind(this)):!1===I?this.endTransit(!1):this.observeEvents(r,c,y,I)},onInvalidTransition:function(r,c,u){throw new y("transition is invalid in current state",r,c,u,this.state)},onPendingTransition:function(r,c,u){throw new y("transition is invalid while previous transition is still in progress",r,c,u,this.state)}}),r.exports=JSM},function(r,c,u){"use strict";var p=u(0),y=u(2),w=u(1),k=u(3),x=u(4),E={is:function(r){return this._fsm.is(r)},can:function(r){return this._fsm.can(r)},cannot:function(r){return this._fsm.cannot(r)},observe:function(){return this._fsm.observe(arguments)},transitions:function(){return this._fsm.transitions()},allTransitions:function(){return this._fsm.allTransitions()},allStates:function(){return this._fsm.allStates()},onInvalidTransition:function(r,c,u){return this._fsm.onInvalidTransition(r,c,u)},onPendingTransition:function(r,c,u){return this._fsm.onPendingTransition(r,c,u)}},I={state:{configurable:!1,enumerable:!0,get:function(){return this._fsm.state},set:function(r){throw Error("use transitions to change state")}}};function StateMachine(r){return apply(this||{},r)}function apply(r,c){return build(r,new k(c,StateMachine)),r._fsm(),r}function build(r,c){if("object"!=typeof r||Array.isArray(r))throw Error("StateMachine can only be applied to objects");w.build(r,c),Object.defineProperties(r,I),p(r,E),p(r,c.methods),c.allTransitions().forEach((function(c){r[y(c)]=function(){return this._fsm.fire(c,[].slice.call(arguments))}})),r._fsm=function(){this._fsm=new x(this,c),this._fsm.init(arguments)}}StateMachine.version="3.0.1",StateMachine.factory=function factory(){var r,c;"function"==typeof arguments[0]?(r=arguments[0],c=arguments[1]||{}):(r=function(){this._fsm.apply(this,arguments)},c=arguments[0]||{});var u=new k(c,StateMachine);return build(r.prototype,u),r.prototype._fsm.config=u,r},StateMachine.apply=apply,StateMachine.defaults={wildcard:"*",init:{name:"init",from:"none"}},r.exports=StateMachine},function(r,c,u){"use strict";r.exports=function(r,c,u,p,y){this.message=r,this.transition=c,this.from=u,this.to=p,this.current=y}}])}))},68337:(r,c,u)=>{"use strict";function assign(r){var c=Array.prototype.slice.call(arguments,1);return c.forEach((function(c){c&&Object.keys(c).forEach((function(u){r[u]=c[u]}))})),r}function _class(r){return Object.prototype.toString.call(r)}function isFunction(r){return"[object Function]"===_class(r)}function escapeRE(r){return r.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var p={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var y={"http:":{validate:function(r,c,u){var p=r.slice(c);return u.re.http||(u.re.http=new RegExp("^\\/\\/"+u.re.src_auth+u.re.src_host_port_strict+u.re.src_path,"i")),u.re.http.test(p)?p.match(u.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(r,c,u){var p=r.slice(c);return u.re.no_http||(u.re.no_http=new RegExp("^"+u.re.src_auth+"(?:localhost|(?:(?:"+u.re.src_domain+")\\.)+"+u.re.src_domain_root+")"+u.re.src_port+u.re.src_host_terminator+u.re.src_path,"i")),u.re.no_http.test(p)?c>=3&&":"===r[c-3]||c>=3&&"/"===r[c-3]?0:p.match(u.re.no_http)[0].length:0}},"mailto:":{validate:function(r,c,u){var p=r.slice(c);return u.re.mailto||(u.re.mailto=new RegExp("^"+u.re.src_email_name+"@"+u.re.src_host_strict,"i")),u.re.mailto.test(p)?p.match(u.re.mailto)[0].length:0}}},w="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function compile(r){var c=r.re=u(36066)(r.__opts__),p=r.__tlds__.slice();function untpl(r){return r.replace("%TLDS%",c.src_tlds)}r.onCompile(),r.__tlds_replaced__||p.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),p.push(c.src_xn),c.src_tlds=p.join("|"),c.email_fuzzy=RegExp(untpl(c.tpl_email_fuzzy),"i"),c.link_fuzzy=RegExp(untpl(c.tpl_link_fuzzy),"i"),c.link_no_ip_fuzzy=RegExp(untpl(c.tpl_link_no_ip_fuzzy),"i"),c.host_fuzzy_test=RegExp(untpl(c.tpl_host_fuzzy_test),"i");var y=[];function schemaError(r,c){throw new Error('(LinkifyIt) Invalid schema "'+r+'": '+c)}r.__compiled__={},Object.keys(r.__schemas__).forEach((function(c){var u=r.__schemas__[c];if(null!==u){var p={validate:null,link:null};if(r.__compiled__[c]=p,function isObject(r){return"[object Object]"===_class(r)}(u))return!function isRegExp(r){return"[object RegExp]"===_class(r)}(u.validate)?isFunction(u.validate)?p.validate=u.validate:schemaError(c,u):p.validate=function createValidator(r){return function(c,u){var p=c.slice(u);return r.test(p)?p.match(r)[0].length:0}}(u.validate),void(isFunction(u.normalize)?p.normalize=u.normalize:u.normalize?schemaError(c,u):p.normalize=function(r,c){c.normalize(r)});!function isString(r){return"[object String]"===_class(r)}(u)?schemaError(c,u):y.push(c)}})),y.forEach((function(c){r.__compiled__[r.__schemas__[c]]&&(r.__compiled__[c].validate=r.__compiled__[r.__schemas__[c]].validate,r.__compiled__[c].normalize=r.__compiled__[r.__schemas__[c]].normalize)})),r.__compiled__[""]={validate:null,normalize:function(r,c){c.normalize(r)}};var w=Object.keys(r.__compiled__).filter((function(c){return c.length>0&&r.__compiled__[c]})).map(escapeRE).join("|");r.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+c.src_ZPCc+"))("+w+")","i"),r.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+c.src_ZPCc+"))("+w+")","ig"),r.re.pretest=RegExp("("+r.re.schema_test.source+")|("+r.re.host_fuzzy_test.source+")|@","i"),function resetScanCache(r){r.__index__=-1,r.__text_cache__=""}(r)}function Match(r,c){var u=r.__index__,p=r.__last_index__,y=r.__text_cache__.slice(u,p);this.schema=r.__schema__.toLowerCase(),this.index=u+c,this.lastIndex=p+c,this.raw=y,this.text=y,this.url=y}function createMatch(r,c){var u=new Match(r,c);return r.__compiled__[u.schema].normalize(u,r),u}function LinkifyIt(r,c){if(!(this instanceof LinkifyIt))return new LinkifyIt(r,c);c||function isOptionsObj(r){return Object.keys(r||{}).reduce((function(r,c){return r||p.hasOwnProperty(c)}),!1)}(r)&&(c=r,r={}),this.__opts__=assign({},p,c),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign({},y,r),this.__compiled__={},this.__tlds__=w,this.__tlds_replaced__=!1,this.re={},compile(this)}LinkifyIt.prototype.add=function add(r,c){return this.__schemas__[r]=c,compile(this),this},LinkifyIt.prototype.set=function set(r){return this.__opts__=assign(this.__opts__,r),this},LinkifyIt.prototype.test=function test(r){if(this.__text_cache__=r,this.__index__=-1,!r.length)return!1;var c,u,p,y,w,k,x,E;if(this.re.schema_test.test(r))for((x=this.re.schema_search).lastIndex=0;null!==(c=x.exec(r));)if(y=this.testSchemaAt(r,c[2],x.lastIndex)){this.__schema__=c[2],this.__index__=c.index+c[1].length,this.__last_index__=c.index+c[0].length+y;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(E=r.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||E<this.__index__)&&null!==(u=r.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(w=u.index+u[1].length,(this.__index__<0||w<this.__index__)&&(this.__schema__="",this.__index__=w,this.__last_index__=u.index+u[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&r.indexOf("@")>=0&&null!==(p=r.match(this.re.email_fuzzy))&&(w=p.index+p[1].length,k=p.index+p[0].length,(this.__index__<0||w<this.__index__||w===this.__index__&&k>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=w,this.__last_index__=k)),this.__index__>=0},LinkifyIt.prototype.pretest=function pretest(r){return this.re.pretest.test(r)},LinkifyIt.prototype.testSchemaAt=function testSchemaAt(r,c,u){return this.__compiled__[c.toLowerCase()]?this.__compiled__[c.toLowerCase()].validate(r,u,this):0},LinkifyIt.prototype.match=function match(r){var c=0,u=[];this.__index__>=0&&this.__text_cache__===r&&(u.push(createMatch(this,c)),c=this.__last_index__);for(var p=c?r.slice(c):r;this.test(p);)u.push(createMatch(this,c)),p=p.slice(this.__last_index__),c+=this.__last_index__;return u.length?u:null},LinkifyIt.prototype.tlds=function tlds(r,c){return r=Array.isArray(r)?r:[r],c?(this.__tlds__=this.__tlds__.concat(r).sort().filter((function(r,c,u){return r!==u[c-1]})).reverse(),compile(this),this):(this.__tlds__=r.slice(),this.__tlds_replaced__=!0,compile(this),this)},LinkifyIt.prototype.normalize=function normalize(r){r.schema||(r.url="http://"+r.url),"mailto:"!==r.schema||/^mailto:/i.test(r.url)||(r.url="mailto:"+r.url)},LinkifyIt.prototype.onCompile=function onCompile(){},r.exports=LinkifyIt},36066:(r,c,u)=>{"use strict";r.exports=function(r){var c={};c.src_Any=u(29369).source,c.src_Cc=u(99413).source,c.src_Z=u(35045).source,c.src_P=u(73189).source,c.src_ZPCc=[c.src_Z,c.src_P,c.src_Cc].join("|"),c.src_ZCc=[c.src_Z,c.src_Cc].join("|");return c.src_pseudo_letter="(?:(?![><｜]|"+c.src_ZPCc+")"+c.src_Any+")",c.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",c.src_auth="(?:(?:(?!"+c.src_ZCc+"|[@/\\[\\]()]).)+@)?",c.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",c.src_host_terminator="(?=$|[><｜]|"+c.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+c.src_ZPCc+"))",c.src_path="(?:[/?#](?:(?!"+c.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+c.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+c.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+c.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+c.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+c.src_ZCc+"|[']).)+\\'|\\'(?="+c.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+c.src_ZCc+"|[.]).|"+(r&&r["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+c.src_ZCc+").|\\!+(?!"+c.src_ZCc+"|[!]).|\\?(?!"+c.src_ZCc+"|[?]).)+|\\/)?",c.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',c.src_xn="xn--[a-z0-9\\-]{1,59}",c.src_domain_root="(?:"+c.src_xn+"|"+c.src_pseudo_letter+"{1,63})",c.src_domain="(?:"+c.src_xn+"|(?:"+c.src_pseudo_letter+")|(?:"+c.src_pseudo_letter+"(?:-|"+c.src_pseudo_letter+"){0,61}"+c.src_pseudo_letter+"))",c.src_host="(?:(?:(?:(?:"+c.src_domain+")\\.)*"+c.src_domain+"))",c.tpl_host_fuzzy="(?:"+c.src_ip4+"|(?:(?:(?:"+c.src_domain+")\\.)+(?:%TLDS%)))",c.tpl_host_no_ip_fuzzy="(?:(?:(?:"+c.src_domain+")\\.)+(?:%TLDS%))",c.src_host_strict=c.src_host+c.src_host_terminator,c.tpl_host_fuzzy_strict=c.tpl_host_fuzzy+c.src_host_terminator,c.src_host_port_strict=c.src_host+c.src_port+c.src_host_terminator,c.tpl_host_port_fuzzy_strict=c.tpl_host_fuzzy+c.src_port+c.src_host_terminator,c.tpl_host_port_no_ip_fuzzy_strict=c.tpl_host_no_ip_fuzzy+c.src_port+c.src_host_terminator,c.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+c.src_ZPCc+"|>|$))",c.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+c.src_ZCc+")("+c.src_email_name+"@"+c.tpl_host_fuzzy_strict+")",c.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+c.src_ZPCc+"))((?![$+<=>^`|｜])"+c.tpl_host_port_fuzzy_strict+c.src_path+")",c.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+c.src_ZPCc+"))((?![$+<=>^`|｜])"+c.tpl_host_port_no_ip_fuzzy_strict+c.src_path+")",c}},72378:(r,c,u)=>{r=u.nmd(r);var p=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w["[object Arguments]"]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w["[object Function]"]=w["[object Map]"]=w["[object Number]"]=w["[object Object]"]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var k="object"==typeof u.g&&u.g&&u.g.Object===Object&&u.g,x="object"==typeof self&&self&&self.Object===Object&&self,E=k||x||Function("return this")(),I=c&&!c.nodeType&&c,K=I&&r&&!r.nodeType&&r,J=K&&K.exports===I,ie=J&&k.process,oe=function(){try{var r=K&&K.require&&K.require("util").types;return r||ie&&ie.binding&&ie.binding("util")}catch(r){}}(),se=oe&&oe.isTypedArray;function apply(r,c,u){switch(u.length){case 0:return r.call(c);case 1:return r.call(c,u[0]);case 2:return r.call(c,u[0],u[1]);case 3:return r.call(c,u[0],u[1],u[2])}return r.apply(c,u)}var ae,ue=Array.prototype,le=Function.prototype,de=Object.prototype,pe=E["__core-js_shared__"],he=le.toString,ge=de.hasOwnProperty,ve=(ae=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"",we=de.toString,Se=he.call(Object),Oe=RegExp("^"+he.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ie=J?E.Buffer:void 0,De=E.Symbol,Pe=E.Uint8Array,Le=Ie?Ie.allocUnsafe:void 0,je=function overArg(r,c){return function(u){return r(c(u))}}(Object.getPrototypeOf,Object),Fe=Object.create,Ue=de.propertyIsEnumerable,$e=ue.splice,Ze=De?De.toStringTag:void 0,We=function(){try{var r=getNative(Object,"defineProperty");return r({},"",{}),r}catch(r){}}(),Ge=Ie?Ie.isBuffer:void 0,Ke=Math.max,Je=Date.now,Ye=getNative(E,"Map"),Xe=getNative(Object,"create"),Qe=function(){function object(){}return function(r){if(!isObject(r))return{};if(Fe)return Fe(r);object.prototype=r;var c=new object;return object.prototype=void 0,c}}();function Hash(r){var c=-1,u=null==r?0:r.length;for(this.clear();++c<u;){var p=r[c];this.set(p[0],p[1])}}function ListCache(r){var c=-1,u=null==r?0:r.length;for(this.clear();++c<u;){var p=r[c];this.set(p[0],p[1])}}function MapCache(r){var c=-1,u=null==r?0:r.length;for(this.clear();++c<u;){var p=r[c];this.set(p[0],p[1])}}function Stack(r){var c=this.__data__=new ListCache(r);this.size=c.size}function arrayLikeKeys(r,c){var u=nt(r),p=!u&&rt(r),y=!u&&!p&&it(r),w=!u&&!p&&!y&&ot(r),k=u||p||y||w,x=k?function baseTimes(r,c){for(var u=-1,p=Array(r);++u<r;)p[u]=c(u);return p}(r.length,String):[],E=x.length;for(var I in r)!c&&!ge.call(r,I)||k&&("length"==I||y&&("offset"==I||"parent"==I)||w&&("buffer"==I||"byteLength"==I||"byteOffset"==I)||isIndex(I,E))||x.push(I);return x}function assignMergeValue(r,c,u){(void 0!==u&&!eq(r[c],u)||void 0===u&&!(c in r))&&baseAssignValue(r,c,u)}function assignValue(r,c,u){var p=r[c];ge.call(r,c)&&eq(p,u)&&(void 0!==u||c in r)||baseAssignValue(r,c,u)}function assocIndexOf(r,c){for(var u=r.length;u--;)if(eq(r[u][0],c))return u;return-1}function baseAssignValue(r,c,u){"__proto__"==c&&We?We(r,c,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[c]=u}Hash.prototype.clear=function hashClear(){this.__data__=Xe?Xe(null):{},this.size=0},Hash.prototype.delete=function hashDelete(r){var c=this.has(r)&&delete this.__data__[r];return this.size-=c?1:0,c},Hash.prototype.get=function hashGet(r){var c=this.__data__;if(Xe){var u=c[r];return"__lodash_hash_undefined__"===u?void 0:u}return ge.call(c,r)?c[r]:void 0},Hash.prototype.has=function hashHas(r){var c=this.__data__;return Xe?void 0!==c[r]:ge.call(c,r)},Hash.prototype.set=function hashSet(r,c){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=Xe&&void 0===c?"__lodash_hash_undefined__":c,this},ListCache.prototype.clear=function listCacheClear(){this.__data__=[],this.size=0},ListCache.prototype.delete=function listCacheDelete(r){var c=this.__data__,u=assocIndexOf(c,r);return!(u<0)&&(u==c.length-1?c.pop():$e.call(c,u,1),--this.size,!0)},ListCache.prototype.get=function listCacheGet(r){var c=this.__data__,u=assocIndexOf(c,r);return u<0?void 0:c[u][1]},ListCache.prototype.has=function listCacheHas(r){return assocIndexOf(this.__data__,r)>-1},ListCache.prototype.set=function listCacheSet(r,c){var u=this.__data__,p=assocIndexOf(u,r);return p<0?(++this.size,u.push([r,c])):u[p][1]=c,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Ye||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(r){var c=getMapData(this,r).delete(r);return this.size-=c?1:0,c},MapCache.prototype.get=function mapCacheGet(r){return getMapData(this,r).get(r)},MapCache.prototype.has=function mapCacheHas(r){return getMapData(this,r).has(r)},MapCache.prototype.set=function mapCacheSet(r,c){var u=getMapData(this,r),p=u.size;return u.set(r,c),this.size+=u.size==p?0:1,this},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(r){var c=this.__data__,u=c.delete(r);return this.size=c.size,u},Stack.prototype.get=function stackGet(r){return this.__data__.get(r)},Stack.prototype.has=function stackHas(r){return this.__data__.has(r)},Stack.prototype.set=function stackSet(r,c){var u=this.__data__;if(u instanceof ListCache){var p=u.__data__;if(!Ye||p.length<199)return p.push([r,c]),this.size=++u.size,this;u=this.__data__=new MapCache(p)}return u.set(r,c),this.size=u.size,this};var et=function createBaseFor(r){return function(c,u,p){for(var y=-1,w=Object(c),k=p(c),x=k.length;x--;){var E=k[r?x:++y];if(!1===u(w[E],E,w))break}return c}}();function baseGetTag(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":Ze&&Ze in Object(r)?function getRawTag(r){var c=ge.call(r,Ze),u=r[Ze];try{r[Ze]=void 0;var p=!0}catch(r){}var y=we.call(r);p&&(c?r[Ze]=u:delete r[Ze]);return y}(r):function objectToString(r){return we.call(r)}(r)}function baseIsArguments(r){return isObjectLike(r)&&"[object Arguments]"==baseGetTag(r)}function baseIsNative(r){return!(!isObject(r)||function isMasked(r){return!!ve&&ve in r}(r))&&(isFunction(r)?Oe:p).test(function toSource(r){if(null!=r){try{return he.call(r)}catch(r){}try{return r+""}catch(r){}}return""}(r))}function baseKeysIn(r){if(!isObject(r))return function nativeKeysIn(r){var c=[];if(null!=r)for(var u in Object(r))c.push(u);return c}(r);var c=isPrototype(r),u=[];for(var p in r)("constructor"!=p||!c&&ge.call(r,p))&&u.push(p);return u}function baseMerge(r,c,u,p,y){r!==c&&et(c,(function(w,k){if(y||(y=new Stack),isObject(w))!function baseMergeDeep(r,c,u,p,y,w,k){var x=safeGet(r,u),E=safeGet(c,u),I=k.get(E);if(I)return void assignMergeValue(r,u,I);var K=w?w(x,E,u+"",r,c,k):void 0,J=void 0===K;if(J){var ie=nt(E),oe=!ie&&it(E),se=!ie&&!oe&&ot(E);K=E,ie||oe||se?nt(x)?K=x:!function isArrayLikeObject(r){return isObjectLike(r)&&isArrayLike(r)}(x)?oe?(J=!1,K=function cloneBuffer(r,c){if(c)return r.slice();var u=r.length,p=Le?Le(u):new r.constructor(u);return r.copy(p),p}(E,!0)):se?(J=!1,K=function cloneTypedArray(r,c){var u=c?function cloneArrayBuffer(r){var c=new r.constructor(r.byteLength);return new Pe(c).set(new Pe(r)),c}(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}(E,!0)):K=[]:K=function copyArray(r,c){var u=-1,p=r.length;c||(c=Array(p));for(;++u<p;)c[u]=r[u];return c}(x):function isPlainObject(r){if(!isObjectLike(r)||"[object Object]"!=baseGetTag(r))return!1;var c=je(r);if(null===c)return!0;var u=ge.call(c,"constructor")&&c.constructor;return"function"==typeof u&&u instanceof u&&he.call(u)==Se}(E)||rt(E)?(K=x,rt(x)?K=function toPlainObject(r){return function copyObject(r,c,u,p){var y=!u;u||(u={});var w=-1,k=c.length;for(;++w<k;){var x=c[w],E=p?p(u[x],r[x],x,u,r):void 0;void 0===E&&(E=r[x]),y?baseAssignValue(u,x,E):assignValue(u,x,E)}return u}(r,keysIn(r))}(x):isObject(x)&&!isFunction(x)||(K=function initCloneObject(r){return"function"!=typeof r.constructor||isPrototype(r)?{}:Qe(je(r))}(E))):J=!1}J&&(k.set(E,K),y(K,E,p,w,k),k.delete(E));assignMergeValue(r,u,K)}(r,c,k,u,baseMerge,p,y);else{var x=p?p(safeGet(r,k),w,k+"",r,c,y):void 0;void 0===x&&(x=w),assignMergeValue(r,k,x)}}),keysIn)}function baseRest(r,c){return tt(function overRest(r,c,u){return c=Ke(void 0===c?r.length-1:c,0),function(){for(var p=arguments,y=-1,w=Ke(p.length-c,0),k=Array(w);++y<w;)k[y]=p[c+y];y=-1;for(var x=Array(c+1);++y<c;)x[y]=p[y];return x[c]=u(k),apply(r,this,x)}}(r,c,identity),r+"")}function getMapData(r,c){var u=r.__data__;return function isKeyable(r){var c=typeof r;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==r:null===r}(c)?u["string"==typeof c?"string":"hash"]:u.map}function getNative(r,c){var u=function getValue(r,c){return null==r?void 0:r[c]}(r,c);return baseIsNative(u)?u:void 0}function isIndex(r,c){var u=typeof r;return!!(c=null==c?9007199254740991:c)&&("number"==u||"symbol"!=u&&y.test(r))&&r>-1&&r%1==0&&r<c}function isPrototype(r){var c=r&&r.constructor;return r===("function"==typeof c&&c.prototype||de)}function safeGet(r,c){if(("constructor"!==c||"function"!=typeof r[c])&&"__proto__"!=c)return r[c]}var tt=function shortOut(r){var c=0,u=0;return function(){var p=Je(),y=16-(p-u);if(u=p,y>0){if(++c>=800)return arguments[0]}else c=0;return r.apply(void 0,arguments)}}(We?function(r,c){return We(r,"toString",{configurable:!0,enumerable:!1,value:(u=c,function(){return u}),writable:!0});var u}:identity);function eq(r,c){return r===c||r!=r&&c!=c}var rt=baseIsArguments(function(){return arguments}())?baseIsArguments:function(r){return isObjectLike(r)&&ge.call(r,"callee")&&!Ue.call(r,"callee")},nt=Array.isArray;function isArrayLike(r){return null!=r&&isLength(r.length)&&!isFunction(r)}var it=Ge||function stubFalse(){return!1};function isFunction(r){if(!isObject(r))return!1;var c=baseGetTag(r);return"[object Function]"==c||"[object GeneratorFunction]"==c||"[object AsyncFunction]"==c||"[object Proxy]"==c}function isLength(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}function isObject(r){var c=typeof r;return null!=r&&("object"==c||"function"==c)}function isObjectLike(r){return null!=r&&"object"==typeof r}var ot=se?function baseUnary(r){return function(c){return r(c)}}(se):function baseIsTypedArray(r){return isObjectLike(r)&&isLength(r.length)&&!!w[baseGetTag(r)]};function keysIn(r){return isArrayLike(r)?arrayLikeKeys(r,!0):baseKeysIn(r)}var st=function createAssigner(r){return baseRest((function(c,u){var p=-1,y=u.length,w=y>1?u[y-1]:void 0,k=y>2?u[2]:void 0;for(w=r.length>3&&"function"==typeof w?(y--,w):void 0,k&&function isIterateeCall(r,c,u){if(!isObject(u))return!1;var p=typeof c;if("number"==p?isArrayLike(u)&&isIndex(c,u.length):"string"==p&&c in u)return eq(u[c],r);return!1}(u[0],u[1],k)&&(w=y<3?void 0:w,y=1),c=Object(c);++p<y;){var x=u[p];x&&r(c,x,p,w)}return c}))}((function(r,c,u){baseMerge(r,c,u)}));function identity(r){return r}r.exports=st},2043:function(r,c,u){var p,y;!function(w,k){"use strict";void 0===(y="function"==typeof(p=function(){var noop=function(){},r="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),c=["trace","debug","info","warn","error"];function bindMethod(r,c){var u=r[c];if("function"==typeof u.bind)return u.bind(r);try{return Function.prototype.bind.call(u,r)}catch(c){return function(){return Function.prototype.apply.apply(u,[r,arguments])}}}function traceForIE(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function realMethod(c){return"debug"===c&&(c="log"),"undefined"!=typeof console&&("trace"===c&&r?traceForIE:void 0!==console[c]?bindMethod(console,c):void 0!==console.log?bindMethod(console,"log"):noop)}function replaceLoggingMethods(r,u){for(var p=0;p<c.length;p++){var y=c[p];this[y]=p<r?noop:this.methodFactory(y,r,u)}this.log=this.debug}function enableLoggingWhenConsoleArrives(r,c,u){return function(){"undefined"!=typeof console&&(replaceLoggingMethods.call(this,c,u),this[r].apply(this,arguments))}}function defaultMethodFactory(r,c,u){return realMethod(r)||enableLoggingWhenConsoleArrives.apply(this,arguments)}function Logger(r,u,p){var y,w=this,k="loglevel";function getPersistedLevel(){var r;if("undefined"!=typeof window&&k){try{r=window.localStorage[k]}catch(r){}if(void 0===r)try{var c=window.document.cookie,u=c.indexOf(encodeURIComponent(k)+"=");-1!==u&&(r=/^([^;]+)/.exec(c.slice(u))[1])}catch(r){}return void 0===w.levels[r]&&(r=void 0),r}}"string"==typeof r?k+=":"+r:"symbol"==typeof r&&(k=void 0),w.name=r,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=p||defaultMethodFactory,w.getLevel=function(){return y},w.setLevel=function(u,p){if("string"==typeof u&&void 0!==w.levels[u.toUpperCase()]&&(u=w.levels[u.toUpperCase()]),!("number"==typeof u&&u>=0&&u<=w.levels.SILENT))throw"log.setLevel() called with invalid level: "+u;if(y=u,!1!==p&&function persistLevelIfPossible(r){var u=(c[r]||"silent").toUpperCase();if("undefined"!=typeof window&&k){try{return void(window.localStorage[k]=u)}catch(r){}try{window.document.cookie=encodeURIComponent(k)+"="+u+";"}catch(r){}}}(u),replaceLoggingMethods.call(w,u,r),"undefined"==typeof console&&u<w.levels.SILENT)return"No console available for logging"},w.setDefaultLevel=function(r){getPersistedLevel()||w.setLevel(r,!1)},w.enableAll=function(r){w.setLevel(w.levels.TRACE,r)},w.disableAll=function(r){w.setLevel(w.levels.SILENT,r)};var x=getPersistedLevel();null==x&&(x=null==u?"WARN":u),w.setLevel(x,!1)}var u=new Logger,p={};u.getLogger=function getLogger(r){if("symbol"!=typeof r&&"string"!=typeof r||""===r)throw new TypeError("You must supply a name when creating a logger.");var c=p[r];return c||(c=p[r]=new Logger(r,u.getLevel(),u.methodFactory)),c};var y="undefined"!=typeof window?window.log:void 0;return u.noConflict=function(){return"undefined"!=typeof window&&window.log===u&&(window.log=y),u},u.getLoggers=function getLoggers(){return p},u.default=u,u})?p.call(c,u,c,r):p)||(r.exports=y)}()},9980:(r,c,u)=>{"use strict";r.exports=u(17024)},26233:(r,c,u)=>{"use strict";r.exports=u(18692)},40813:r=>{"use strict";r.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},51947:r=>{"use strict";var c="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",u="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",p=new RegExp("^(?:"+c+"|"+u+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),y=new RegExp("^(?:"+c+"|"+u+")");r.exports.n=p,r.exports.q=y},67022:(r,c,u)=>{"use strict";var p=Object.prototype.hasOwnProperty;function has(r,c){return p.call(r,c)}function isValidEntityCode(r){return!(r>=55296&&r<=57343)&&(!(r>=64976&&r<=65007)&&(65535!=(65535&r)&&65534!=(65535&r)&&(!(r>=0&&r<=8)&&(11!==r&&(!(r>=14&&r<=31)&&(!(r>=127&&r<=159)&&!(r>1114111)))))))}function fromCodePoint(r){if(r>65535){var c=55296+((r-=65536)>>10),u=56320+(1023&r);return String.fromCharCode(c,u)}return String.fromCharCode(r)}var y=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,w=new RegExp(y.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),k=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,x=u(26233);var E=/[&<>"]/,I=/[&<>"]/g,K={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function replaceUnsafeChar(r){return K[r]}var J=/[.?*+^$[\]\\(){}|-]/g;var ie=u(73189);c.lib={},c.lib.mdurl=u(48765),c.lib.ucmicro=u(84205),c.assign=function assign(r){var c=Array.prototype.slice.call(arguments,1);return c.forEach((function(c){if(c){if("object"!=typeof c)throw new TypeError(c+"must be object");Object.keys(c).forEach((function(u){r[u]=c[u]}))}})),r},c.isString=function isString(r){return"[object String]"===function _class(r){return Object.prototype.toString.call(r)}(r)},c.has=has,c.unescapeMd=function unescapeMd(r){return r.indexOf("\\")<0?r:r.replace(y,"$1")},c.unescapeAll=function unescapeAll(r){return r.indexOf("\\")<0&&r.indexOf("&")<0?r:r.replace(w,(function(r,c,u){return c||function replaceEntityPattern(r,c){var u=0;return has(x,c)?x[c]:35===c.charCodeAt(0)&&k.test(c)&&isValidEntityCode(u="x"===c[1].toLowerCase()?parseInt(c.slice(2),16):parseInt(c.slice(1),10))?fromCodePoint(u):r}(r,u)}))},c.isValidEntityCode=isValidEntityCode,c.fromCodePoint=fromCodePoint,c.escapeHtml=function escapeHtml(r){return E.test(r)?r.replace(I,replaceUnsafeChar):r},c.arrayReplaceAt=function arrayReplaceAt(r,c,u){return[].concat(r.slice(0,c),u,r.slice(c+1))},c.isSpace=function isSpace(r){switch(r){case 9:case 32:return!0}return!1},c.isWhiteSpace=function isWhiteSpace(r){if(r>=8192&&r<=8202)return!0;switch(r){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},c.isMdAsciiPunct=function isMdAsciiPunct(r){switch(r){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},c.isPunctChar=function isPunctChar(r){return ie.test(r)},c.escapeRE=function escapeRE(r){return r.replace(J,"\\$&")},c.normalizeReference=function normalizeReference(r){return r=r.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(r=r.replace(/ẞ/g,"ß")),r.toLowerCase().toUpperCase()}},51685:(r,c,u)=>{"use strict";c.parseLinkLabel=u(33595),c.parseLinkDestination=u(12548),c.parseLinkTitle=u(88040)},12548:(r,c,u)=>{"use strict";var p=u(67022).unescapeAll;r.exports=function parseLinkDestination(r,c,u){var y,w,k=c,x={ok:!1,pos:0,lines:0,str:""};if(60===r.charCodeAt(c)){for(c++;c<u;){if(10===(y=r.charCodeAt(c)))return x;if(60===y)return x;if(62===y)return x.pos=c+1,x.str=p(r.slice(k+1,c)),x.ok=!0,x;92===y&&c+1<u?c+=2:c++}return x}for(w=0;c<u&&32!==(y=r.charCodeAt(c))&&!(y<32||127===y);)if(92===y&&c+1<u){if(32===r.charCodeAt(c+1))break;c+=2}else{if(40===y&&++w>32)return x;if(41===y){if(0===w)break;w--}c++}return k===c||0!==w||(x.str=p(r.slice(k,c)),x.lines=0,x.pos=c,x.ok=!0),x}},33595:r=>{"use strict";r.exports=function parseLinkLabel(r,c,u){var p,y,w,k,x=-1,E=r.posMax,I=r.pos;for(r.pos=c+1,p=1;r.pos<E;){if(93===(w=r.src.charCodeAt(r.pos))&&0===--p){y=!0;break}if(k=r.pos,r.md.inline.skipToken(r),91===w)if(k===r.pos-1)p++;else if(u)return r.pos=I,-1}return y&&(x=r.pos),r.pos=I,x}},88040:(r,c,u)=>{"use strict";var p=u(67022).unescapeAll;r.exports=function parseLinkTitle(r,c,u){var y,w,k=0,x=c,E={ok:!1,pos:0,lines:0,str:""};if(c>=u)return E;if(34!==(w=r.charCodeAt(c))&&39!==w&&40!==w)return E;for(c++,40===w&&(w=41);c<u;){if((y=r.charCodeAt(c))===w)return E.pos=c+1,E.lines=k,E.str=p(r.slice(x+1,c)),E.ok=!0,E;if(40===y&&41===w)return E;10===y?k++:92===y&&c+1<u&&(c++,10===r.charCodeAt(c)&&k++),c++}return E}},17024:(r,c,u)=>{"use strict";var p=u(67022),y=u(51685),w=u(77529),k=u(17346),x=u(82471),E=u(94485),I=u(68337),K=u(48765),J=u(3689),ie={default:u(84218),zero:u(873),commonmark:u(6895)},oe=/^(vbscript|javascript|file|data):/,se=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(r){var c=r.trim().toLowerCase();return!oe.test(c)||!!se.test(c)}var ae=["http:","https:","mailto:"];function normalizeLink(r){var c=K.parse(r,!0);if(c.hostname&&(!c.protocol||ae.indexOf(c.protocol)>=0))try{c.hostname=J.toASCII(c.hostname)}catch(r){}return K.encode(K.format(c))}function normalizeLinkText(r){var c=K.parse(r,!0);if(c.hostname&&(!c.protocol||ae.indexOf(c.protocol)>=0))try{c.hostname=J.toUnicode(c.hostname)}catch(r){}return K.decode(K.format(c),K.decode.defaultChars+"%")}function MarkdownIt(r,c){if(!(this instanceof MarkdownIt))return new MarkdownIt(r,c);c||p.isString(r)||(c=r||{},r="default"),this.inline=new E,this.block=new x,this.core=new k,this.renderer=new w,this.linkify=new I,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=p,this.helpers=p.assign({},y),this.options={},this.configure(r),c&&this.set(c)}MarkdownIt.prototype.set=function(r){return p.assign(this.options,r),this},MarkdownIt.prototype.configure=function(r){var c,u=this;if(p.isString(r)&&!(r=ie[c=r]))throw new Error('Wrong `markdown-it` preset "'+c+'", check name');if(!r)throw new Error("Wrong `markdown-it` preset, can't be empty");return r.options&&u.set(r.options),r.components&&Object.keys(r.components).forEach((function(c){r.components[c].rules&&u[c].ruler.enableOnly(r.components[c].rules),r.components[c].rules2&&u[c].ruler2.enableOnly(r.components[c].rules2)})),this},MarkdownIt.prototype.enable=function(r,c){var u=[];Array.isArray(r)||(r=[r]),["core","block","inline"].forEach((function(c){u=u.concat(this[c].ruler.enable(r,!0))}),this),u=u.concat(this.inline.ruler2.enable(r,!0));var p=r.filter((function(r){return u.indexOf(r)<0}));if(p.length&&!c)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+p);return this},MarkdownIt.prototype.disable=function(r,c){var u=[];Array.isArray(r)||(r=[r]),["core","block","inline"].forEach((function(c){u=u.concat(this[c].ruler.disable(r,!0))}),this),u=u.concat(this.inline.ruler2.disable(r,!0));var p=r.filter((function(r){return u.indexOf(r)<0}));if(p.length&&!c)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+p);return this},MarkdownIt.prototype.use=function(r){var c=[this].concat(Array.prototype.slice.call(arguments,1));return r.apply(r,c),this},MarkdownIt.prototype.parse=function(r,c){if("string"!=typeof r)throw new Error("Input data should be a String");var u=new this.core.State(r,this,c);return this.core.process(u),u.tokens},MarkdownIt.prototype.render=function(r,c){return c=c||{},this.renderer.render(this.parse(r,c),this.options,c)},MarkdownIt.prototype.parseInline=function(r,c){var u=new this.core.State(r,this,c);return u.inlineMode=!0,this.core.process(u),u.tokens},MarkdownIt.prototype.renderInline=function(r,c){return c=c||{},this.renderer.render(this.parseInline(r,c),this.options,c)},r.exports=MarkdownIt},82471:(r,c,u)=>{"use strict";var p=u(79580),y=[["table",u(91785),["paragraph","reference"]],["code",u(38768)],["fence",u(13542),["paragraph","reference","blockquote","list"]],["blockquote",u(45258),["paragraph","reference","blockquote","list"]],["hr",u(35634),["paragraph","reference","blockquote","list"]],["list",u(18532),["paragraph","reference","blockquote"]],["reference",u(43804)],["html_block",u(76329),["paragraph","reference","blockquote"]],["heading",u(61630),["paragraph","reference","blockquote"]],["lheading",u(56850)],["paragraph",u(96864)]];function ParserBlock(){this.ruler=new p;for(var r=0;r<y.length;r++)this.ruler.push(y[r][0],y[r][1],{alt:(y[r][2]||[]).slice()})}ParserBlock.prototype.tokenize=function(r,c,u){for(var p,y=this.ruler.getRules(""),w=y.length,k=c,x=!1,E=r.md.options.maxNesting;k<u&&(r.line=k=r.skipEmptyLines(k),!(k>=u))&&!(r.sCount[k]<r.blkIndent);){if(r.level>=E){r.line=u;break}for(p=0;p<w&&!y[p](r,k,u,!1);p++);r.tight=!x,r.isEmpty(r.line-1)&&(x=!0),(k=r.line)<u&&r.isEmpty(k)&&(x=!0,k++,r.line=k)}},ParserBlock.prototype.parse=function(r,c,u,p){var y;r&&(y=new this.State(r,c,u,p),this.tokenize(y,y.line,y.lineMax))},ParserBlock.prototype.State=u(62948),r.exports=ParserBlock},17346:(r,c,u)=>{"use strict";var p=u(79580),y=[["normalize",u(74129)],["block",u(20898)],["inline",u(79827)],["linkify",u(17830)],["replacements",u(2834)],["smartquotes",u(58450)]];function Core(){this.ruler=new p;for(var r=0;r<y.length;r++)this.ruler.push(y[r][0],y[r][1])}Core.prototype.process=function(r){var c,u,p;for(c=0,u=(p=this.ruler.getRules("")).length;c<u;c++)p[c](r)},Core.prototype.State=u(16480),r.exports=Core},94485:(r,c,u)=>{"use strict";var p=u(79580),y=[["text",u(39941)],["newline",u(43905)],["escape",u(1917)],["backticks",u(79755)],["strikethrough",u(44814).w],["emphasis",u(97894).w],["link",u(81727)],["image",u(83006)],["autolink",u(43420)],["html_inline",u(81779)],["entity",u(99391)]],w=[["balance_pairs",u(89354)],["strikethrough",u(44814).g],["emphasis",u(97894).g],["text_collapse",u(28996)]];function ParserInline(){var r;for(this.ruler=new p,r=0;r<y.length;r++)this.ruler.push(y[r][0],y[r][1]);for(this.ruler2=new p,r=0;r<w.length;r++)this.ruler2.push(w[r][0],w[r][1])}ParserInline.prototype.skipToken=function(r){var c,u,p=r.pos,y=this.ruler.getRules(""),w=y.length,k=r.md.options.maxNesting,x=r.cache;if(void 0===x[p]){if(r.level<k)for(u=0;u<w&&(r.level++,c=y[u](r,!0),r.level--,!c);u++);else r.pos=r.posMax;c||r.pos++,x[p]=r.pos}else r.pos=x[p]},ParserInline.prototype.tokenize=function(r){for(var c,u,p=this.ruler.getRules(""),y=p.length,w=r.posMax,k=r.md.options.maxNesting;r.pos<w;){if(r.level<k)for(u=0;u<y&&!(c=p[u](r,!1));u++);if(c){if(r.pos>=w)break}else r.pending+=r.src[r.pos++]}r.pending&&r.pushPending()},ParserInline.prototype.parse=function(r,c,u,p){var y,w,k,x=new this.State(r,c,u,p);for(this.tokenize(x),k=(w=this.ruler2.getRules("")).length,y=0;y<k;y++)w[y](x)},ParserInline.prototype.State=u(50670),r.exports=ParserInline},6895:r=>{"use strict";r.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},84218:r=>{"use strict";r.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},873:r=>{"use strict";r.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},77529:(r,c,u)=>{"use strict";var p=u(67022).assign,y=u(67022).unescapeAll,w=u(67022).escapeHtml,k={};function Renderer(){this.rules=p({},k)}k.code_inline=function(r,c,u,p,y){var k=r[c];return"<code"+y.renderAttrs(k)+">"+w(r[c].content)+"</code>"},k.code_block=function(r,c,u,p,y){var k=r[c];return"<pre"+y.renderAttrs(k)+"><code>"+w(r[c].content)+"</code></pre>\n"},k.fence=function(r,c,u,p,k){var x,E,I,K,J,ie=r[c],oe=ie.info?y(ie.info).trim():"",se="",ae="";return oe&&(se=(I=oe.split(/(\s+)/g))[0],ae=I.slice(2).join("")),0===(x=u.highlight&&u.highlight(ie.content,se,ae)||w(ie.content)).indexOf("<pre")?x+"\n":oe?(E=ie.attrIndex("class"),K=ie.attrs?ie.attrs.slice():[],E<0?K.push(["class",u.langPrefix+se]):(K[E]=K[E].slice(),K[E][1]+=" "+u.langPrefix+se),J={attrs:K},"<pre><code"+k.renderAttrs(J)+">"+x+"</code></pre>\n"):"<pre><code"+k.renderAttrs(ie)+">"+x+"</code></pre>\n"},k.image=function(r,c,u,p,y){var w=r[c];return w.attrs[w.attrIndex("alt")][1]=y.renderInlineAsText(w.children,u,p),y.renderToken(r,c,u)},k.hardbreak=function(r,c,u){return u.xhtmlOut?"<br />\n":"<br>\n"},k.softbreak=function(r,c,u){return u.breaks?u.xhtmlOut?"<br />\n":"<br>\n":"\n"},k.text=function(r,c){return w(r[c].content)},k.html_block=function(r,c){return r[c].content},k.html_inline=function(r,c){return r[c].content},Renderer.prototype.renderAttrs=function renderAttrs(r){var c,u,p;if(!r.attrs)return"";for(p="",c=0,u=r.attrs.length;c<u;c++)p+=" "+w(r.attrs[c][0])+'="'+w(r.attrs[c][1])+'"';return p},Renderer.prototype.renderToken=function renderToken(r,c,u){var p,y="",w=!1,k=r[c];return k.hidden?"":(k.block&&-1!==k.nesting&&c&&r[c-1].hidden&&(y+="\n"),y+=(-1===k.nesting?"</":"<")+k.tag,y+=this.renderAttrs(k),0===k.nesting&&u.xhtmlOut&&(y+=" /"),k.block&&(w=!0,1===k.nesting&&c+1<r.length&&("inline"===(p=r[c+1]).type||p.hidden||-1===p.nesting&&p.tag===k.tag)&&(w=!1)),y+=w?">\n":">")},Renderer.prototype.renderInline=function(r,c,u){for(var p,y="",w=this.rules,k=0,x=r.length;k<x;k++)void 0!==w[p=r[k].type]?y+=w[p](r,k,c,u,this):y+=this.renderToken(r,k,c);return y},Renderer.prototype.renderInlineAsText=function(r,c,u){for(var p="",y=0,w=r.length;y<w;y++)"text"===r[y].type?p+=r[y].content:"image"===r[y].type?p+=this.renderInlineAsText(r[y].children,c,u):"softbreak"===r[y].type&&(p+="\n");return p},Renderer.prototype.render=function(r,c,u){var p,y,w,k="",x=this.rules;for(p=0,y=r.length;p<y;p++)"inline"===(w=r[p].type)?k+=this.renderInline(r[p].children,c,u):void 0!==x[w]?k+=x[r[p].type](r,p,c,u,this):k+=this.renderToken(r,p,c,u);return k},r.exports=Renderer},79580:r=>{"use strict";function Ruler(){this.__rules__=[],this.__cache__=null}Ruler.prototype.__find__=function(r){for(var c=0;c<this.__rules__.length;c++)if(this.__rules__[c].name===r)return c;return-1},Ruler.prototype.__compile__=function(){var r=this,c=[""];r.__rules__.forEach((function(r){r.enabled&&r.alt.forEach((function(r){c.indexOf(r)<0&&c.push(r)}))})),r.__cache__={},c.forEach((function(c){r.__cache__[c]=[],r.__rules__.forEach((function(u){u.enabled&&(c&&u.alt.indexOf(c)<0||r.__cache__[c].push(u.fn))}))}))},Ruler.prototype.at=function(r,c,u){var p=this.__find__(r),y=u||{};if(-1===p)throw new Error("Parser rule not found: "+r);this.__rules__[p].fn=c,this.__rules__[p].alt=y.alt||[],this.__cache__=null},Ruler.prototype.before=function(r,c,u,p){var y=this.__find__(r),w=p||{};if(-1===y)throw new Error("Parser rule not found: "+r);this.__rules__.splice(y,0,{name:c,enabled:!0,fn:u,alt:w.alt||[]}),this.__cache__=null},Ruler.prototype.after=function(r,c,u,p){var y=this.__find__(r),w=p||{};if(-1===y)throw new Error("Parser rule not found: "+r);this.__rules__.splice(y+1,0,{name:c,enabled:!0,fn:u,alt:w.alt||[]}),this.__cache__=null},Ruler.prototype.push=function(r,c,u){var p=u||{};this.__rules__.push({name:r,enabled:!0,fn:c,alt:p.alt||[]}),this.__cache__=null},Ruler.prototype.enable=function(r,c){Array.isArray(r)||(r=[r]);var u=[];return r.forEach((function(r){var p=this.__find__(r);if(p<0){if(c)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[p].enabled=!0,u.push(r)}),this),this.__cache__=null,u},Ruler.prototype.enableOnly=function(r,c){Array.isArray(r)||(r=[r]),this.__rules__.forEach((function(r){r.enabled=!1})),this.enable(r,c)},Ruler.prototype.disable=function(r,c){Array.isArray(r)||(r=[r]);var u=[];return r.forEach((function(r){var p=this.__find__(r);if(p<0){if(c)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[p].enabled=!1,u.push(r)}),this),this.__cache__=null,u},Ruler.prototype.getRules=function(r){return null===this.__cache__&&this.__compile__(),this.__cache__[r]||[]},r.exports=Ruler},45258:(r,c,u)=>{"use strict";var p=u(67022).isSpace;r.exports=function blockquote(r,c,u,y){var w,k,x,E,I,K,J,ie,oe,se,ae,ue,le,de,pe,he,ge,ve,we,Se,Oe=r.lineMax,Ie=r.bMarks[c]+r.tShift[c],De=r.eMarks[c];if(r.sCount[c]-r.blkIndent>=4)return!1;if(62!==r.src.charCodeAt(Ie++))return!1;if(y)return!0;for(E=oe=r.sCount[c]+1,32===r.src.charCodeAt(Ie)?(Ie++,E++,oe++,w=!1,he=!0):9===r.src.charCodeAt(Ie)?(he=!0,(r.bsCount[c]+oe)%4==3?(Ie++,E++,oe++,w=!1):w=!0):he=!1,se=[r.bMarks[c]],r.bMarks[c]=Ie;Ie<De&&(k=r.src.charCodeAt(Ie),p(k));)9===k?oe+=4-(oe+r.bsCount[c]+(w?1:0))%4:oe++,Ie++;for(ae=[r.bsCount[c]],r.bsCount[c]=r.sCount[c]+1+(he?1:0),K=Ie>=De,de=[r.sCount[c]],r.sCount[c]=oe-E,pe=[r.tShift[c]],r.tShift[c]=Ie-r.bMarks[c],ve=r.md.block.ruler.getRules("blockquote"),le=r.parentType,r.parentType="blockquote",ie=c+1;ie<u&&(Se=r.sCount[ie]<r.blkIndent,!((Ie=r.bMarks[ie]+r.tShift[ie])>=(De=r.eMarks[ie])));ie++)if(62!==r.src.charCodeAt(Ie++)||Se){if(K)break;for(ge=!1,x=0,I=ve.length;x<I;x++)if(ve[x](r,ie,u,!0)){ge=!0;break}if(ge){r.lineMax=ie,0!==r.blkIndent&&(se.push(r.bMarks[ie]),ae.push(r.bsCount[ie]),pe.push(r.tShift[ie]),de.push(r.sCount[ie]),r.sCount[ie]-=r.blkIndent);break}se.push(r.bMarks[ie]),ae.push(r.bsCount[ie]),pe.push(r.tShift[ie]),de.push(r.sCount[ie]),r.sCount[ie]=-1}else{for(E=oe=r.sCount[ie]+1,32===r.src.charCodeAt(Ie)?(Ie++,E++,oe++,w=!1,he=!0):9===r.src.charCodeAt(Ie)?(he=!0,(r.bsCount[ie]+oe)%4==3?(Ie++,E++,oe++,w=!1):w=!0):he=!1,se.push(r.bMarks[ie]),r.bMarks[ie]=Ie;Ie<De&&(k=r.src.charCodeAt(Ie),p(k));)9===k?oe+=4-(oe+r.bsCount[ie]+(w?1:0))%4:oe++,Ie++;K=Ie>=De,ae.push(r.bsCount[ie]),r.bsCount[ie]=r.sCount[ie]+1+(he?1:0),de.push(r.sCount[ie]),r.sCount[ie]=oe-E,pe.push(r.tShift[ie]),r.tShift[ie]=Ie-r.bMarks[ie]}for(ue=r.blkIndent,r.blkIndent=0,(we=r.push("blockquote_open","blockquote",1)).markup=">",we.map=J=[c,0],r.md.block.tokenize(r,c,ie),(we=r.push("blockquote_close","blockquote",-1)).markup=">",r.lineMax=Oe,r.parentType=le,J[1]=r.line,x=0;x<pe.length;x++)r.bMarks[x+c]=se[x],r.tShift[x+c]=pe[x],r.sCount[x+c]=de[x],r.bsCount[x+c]=ae[x];return r.blkIndent=ue,!0}},38768:r=>{"use strict";r.exports=function code(r,c,u){var p,y,w;if(r.sCount[c]-r.blkIndent<4)return!1;for(y=p=c+1;p<u;)if(r.isEmpty(p))p++;else{if(!(r.sCount[p]-r.blkIndent>=4))break;y=++p}return r.line=y,(w=r.push("code_block","code",0)).content=r.getLines(c,y,4+r.blkIndent,!1)+"\n",w.map=[c,r.line],!0}},13542:r=>{"use strict";r.exports=function fence(r,c,u,p){var y,w,k,x,E,I,K,J=!1,ie=r.bMarks[c]+r.tShift[c],oe=r.eMarks[c];if(r.sCount[c]-r.blkIndent>=4)return!1;if(ie+3>oe)return!1;if(126!==(y=r.src.charCodeAt(ie))&&96!==y)return!1;if(E=ie,(w=(ie=r.skipChars(ie,y))-E)<3)return!1;if(K=r.src.slice(E,ie),k=r.src.slice(ie,oe),96===y&&k.indexOf(String.fromCharCode(y))>=0)return!1;if(p)return!0;for(x=c;!(++x>=u)&&!((ie=E=r.bMarks[x]+r.tShift[x])<(oe=r.eMarks[x])&&r.sCount[x]<r.blkIndent);)if(r.src.charCodeAt(ie)===y&&!(r.sCount[x]-r.blkIndent>=4||(ie=r.skipChars(ie,y))-E<w||(ie=r.skipSpaces(ie))<oe)){J=!0;break}return w=r.sCount[c],r.line=x+(J?1:0),(I=r.push("fence","code",0)).info=k,I.content=r.getLines(c+1,x,w,!0),I.markup=K,I.map=[c,r.line],!0}},61630:(r,c,u)=>{"use strict";var p=u(67022).isSpace;r.exports=function heading(r,c,u,y){var w,k,x,E,I=r.bMarks[c]+r.tShift[c],K=r.eMarks[c];if(r.sCount[c]-r.blkIndent>=4)return!1;if(35!==(w=r.src.charCodeAt(I))||I>=K)return!1;for(k=1,w=r.src.charCodeAt(++I);35===w&&I<K&&k<=6;)k++,w=r.src.charCodeAt(++I);return!(k>6||I<K&&!p(w))&&(y||(K=r.skipSpacesBack(K,I),(x=r.skipCharsBack(K,35,I))>I&&p(r.src.charCodeAt(x-1))&&(K=x),r.line=c+1,(E=r.push("heading_open","h"+String(k),1)).markup="########".slice(0,k),E.map=[c,r.line],(E=r.push("inline","",0)).content=r.src.slice(I,K).trim(),E.map=[c,r.line],E.children=[],(E=r.push("heading_close","h"+String(k),-1)).markup="########".slice(0,k)),!0)}},35634:(r,c,u)=>{"use strict";var p=u(67022).isSpace;r.exports=function hr(r,c,u,y){var w,k,x,E,I=r.bMarks[c]+r.tShift[c],K=r.eMarks[c];if(r.sCount[c]-r.blkIndent>=4)return!1;if(42!==(w=r.src.charCodeAt(I++))&&45!==w&&95!==w)return!1;for(k=1;I<K;){if((x=r.src.charCodeAt(I++))!==w&&!p(x))return!1;x===w&&k++}return!(k<3)&&(y||(r.line=c+1,(E=r.push("hr","hr",0)).map=[c,r.line],E.markup=Array(k+1).join(String.fromCharCode(w))),!0)}},76329:(r,c,u)=>{"use strict";var p=u(40813),y=u(51947).q,w=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+p.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(y.source+"\\s*$"),/^$/,!1]];r.exports=function html_block(r,c,u,p){var y,k,x,E,I=r.bMarks[c]+r.tShift[c],K=r.eMarks[c];if(r.sCount[c]-r.blkIndent>=4)return!1;if(!r.md.options.html)return!1;if(60!==r.src.charCodeAt(I))return!1;for(E=r.src.slice(I,K),y=0;y<w.length&&!w[y][0].test(E);y++);if(y===w.length)return!1;if(p)return w[y][2];if(k=c+1,!w[y][1].test(E))for(;k<u&&!(r.sCount[k]<r.blkIndent);k++)if(I=r.bMarks[k]+r.tShift[k],K=r.eMarks[k],E=r.src.slice(I,K),w[y][1].test(E)){0!==E.length&&k++;break}return r.line=k,(x=r.push("html_block","",0)).map=[c,k],x.content=r.getLines(c,k,r.blkIndent,!0),!0}},56850:r=>{"use strict";r.exports=function lheading(r,c,u){var p,y,w,k,x,E,I,K,J,ie,oe=c+1,se=r.md.block.ruler.getRules("paragraph");if(r.sCount[c]-r.blkIndent>=4)return!1;for(ie=r.parentType,r.parentType="paragraph";oe<u&&!r.isEmpty(oe);oe++)if(!(r.sCount[oe]-r.blkIndent>3)){if(r.sCount[oe]>=r.blkIndent&&(E=r.bMarks[oe]+r.tShift[oe])<(I=r.eMarks[oe])&&(45===(J=r.src.charCodeAt(E))||61===J)&&(E=r.skipChars(E,J),(E=r.skipSpaces(E))>=I)){K=61===J?1:2;break}if(!(r.sCount[oe]<0)){for(y=!1,w=0,k=se.length;w<k;w++)if(se[w](r,oe,u,!0)){y=!0;break}if(y)break}}return!!K&&(p=r.getLines(c,oe,r.blkIndent,!1).trim(),r.line=oe+1,(x=r.push("heading_open","h"+String(K),1)).markup=String.fromCharCode(J),x.map=[c,r.line],(x=r.push("inline","",0)).content=p,x.map=[c,r.line-1],x.children=[],(x=r.push("heading_close","h"+String(K),-1)).markup=String.fromCharCode(J),r.parentType=ie,!0)}},18532:(r,c,u)=>{"use strict";var p=u(67022).isSpace;function skipBulletListMarker(r,c){var u,y,w,k;return y=r.bMarks[c]+r.tShift[c],w=r.eMarks[c],42!==(u=r.src.charCodeAt(y++))&&45!==u&&43!==u||y<w&&(k=r.src.charCodeAt(y),!p(k))?-1:y}function skipOrderedListMarker(r,c){var u,y=r.bMarks[c]+r.tShift[c],w=y,k=r.eMarks[c];if(w+1>=k)return-1;if((u=r.src.charCodeAt(w++))<48||u>57)return-1;for(;;){if(w>=k)return-1;if(!((u=r.src.charCodeAt(w++))>=48&&u<=57)){if(41===u||46===u)break;return-1}if(w-y>=10)return-1}return w<k&&(u=r.src.charCodeAt(w),!p(u))?-1:w}r.exports=function list(r,c,u,p){var y,w,k,x,E,I,K,J,ie,oe,se,ae,ue,le,de,pe,he,ge,ve,we,Se,Oe,Ie,De,Pe,Le,je,Fe,Ue=!1,$e=!0;if(r.sCount[c]-r.blkIndent>=4)return!1;if(r.listIndent>=0&&r.sCount[c]-r.listIndent>=4&&r.sCount[c]<r.blkIndent)return!1;if(p&&"paragraph"===r.parentType&&r.tShift[c]>=r.blkIndent&&(Ue=!0),(Ie=skipOrderedListMarker(r,c))>=0){if(K=!0,Pe=r.bMarks[c]+r.tShift[c],ue=Number(r.src.slice(Pe,Ie-1)),Ue&&1!==ue)return!1}else{if(!((Ie=skipBulletListMarker(r,c))>=0))return!1;K=!1}if(Ue&&r.skipSpaces(Ie)>=r.eMarks[c])return!1;if(ae=r.src.charCodeAt(Ie-1),p)return!0;for(se=r.tokens.length,K?(Fe=r.push("ordered_list_open","ol",1),1!==ue&&(Fe.attrs=[["start",ue]])):Fe=r.push("bullet_list_open","ul",1),Fe.map=oe=[c,0],Fe.markup=String.fromCharCode(ae),de=c,De=!1,je=r.md.block.ruler.getRules("list"),ge=r.parentType,r.parentType="list";de<u;){for(Oe=Ie,le=r.eMarks[de],I=pe=r.sCount[de]+Ie-(r.bMarks[c]+r.tShift[c]);Oe<le;){if(9===(y=r.src.charCodeAt(Oe)))pe+=4-(pe+r.bsCount[de])%4;else{if(32!==y)break;pe++}Oe++}if((E=(w=Oe)>=le?1:pe-I)>4&&(E=1),x=I+E,(Fe=r.push("list_item_open","li",1)).markup=String.fromCharCode(ae),Fe.map=J=[c,0],K&&(Fe.info=r.src.slice(Pe,Ie-1)),Se=r.tight,we=r.tShift[c],ve=r.sCount[c],he=r.listIndent,r.listIndent=r.blkIndent,r.blkIndent=x,r.tight=!0,r.tShift[c]=w-r.bMarks[c],r.sCount[c]=pe,w>=le&&r.isEmpty(c+1)?r.line=Math.min(r.line+2,u):r.md.block.tokenize(r,c,u,!0),r.tight&&!De||($e=!1),De=r.line-c>1&&r.isEmpty(r.line-1),r.blkIndent=r.listIndent,r.listIndent=he,r.tShift[c]=we,r.sCount[c]=ve,r.tight=Se,(Fe=r.push("list_item_close","li",-1)).markup=String.fromCharCode(ae),de=c=r.line,J[1]=de,w=r.bMarks[c],de>=u)break;if(r.sCount[de]<r.blkIndent)break;if(r.sCount[c]-r.blkIndent>=4)break;for(Le=!1,k=0,ie=je.length;k<ie;k++)if(je[k](r,de,u,!0)){Le=!0;break}if(Le)break;if(K){if((Ie=skipOrderedListMarker(r,de))<0)break;Pe=r.bMarks[de]+r.tShift[de]}else if((Ie=skipBulletListMarker(r,de))<0)break;if(ae!==r.src.charCodeAt(Ie-1))break}return(Fe=K?r.push("ordered_list_close","ol",-1):r.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(ae),oe[1]=de,r.line=de,r.parentType=ge,$e&&function markTightParagraphs(r,c){var u,p,y=r.level+2;for(u=c+2,p=r.tokens.length-2;u<p;u++)r.tokens[u].level===y&&"paragraph_open"===r.tokens[u].type&&(r.tokens[u+2].hidden=!0,r.tokens[u].hidden=!0,u+=2)}(r,se),!0}},96864:r=>{"use strict";r.exports=function paragraph(r,c){var u,p,y,w,k,x,E=c+1,I=r.md.block.ruler.getRules("paragraph"),K=r.lineMax;for(x=r.parentType,r.parentType="paragraph";E<K&&!r.isEmpty(E);E++)if(!(r.sCount[E]-r.blkIndent>3||r.sCount[E]<0)){for(p=!1,y=0,w=I.length;y<w;y++)if(I[y](r,E,K,!0)){p=!0;break}if(p)break}return u=r.getLines(c,E,r.blkIndent,!1).trim(),r.line=E,(k=r.push("paragraph_open","p",1)).map=[c,r.line],(k=r.push("inline","",0)).content=u,k.map=[c,r.line],k.children=[],k=r.push("paragraph_close","p",-1),r.parentType=x,!0}},43804:(r,c,u)=>{"use strict";var p=u(67022).normalizeReference,y=u(67022).isSpace;r.exports=function reference(r,c,u,w){var k,x,E,I,K,J,ie,oe,se,ae,ue,le,de,pe,he,ge,ve=0,we=r.bMarks[c]+r.tShift[c],Se=r.eMarks[c],Oe=c+1;if(r.sCount[c]-r.blkIndent>=4)return!1;if(91!==r.src.charCodeAt(we))return!1;for(;++we<Se;)if(93===r.src.charCodeAt(we)&&92!==r.src.charCodeAt(we-1)){if(we+1===Se)return!1;if(58!==r.src.charCodeAt(we+1))return!1;break}for(I=r.lineMax,he=r.md.block.ruler.getRules("reference"),ae=r.parentType,r.parentType="reference";Oe<I&&!r.isEmpty(Oe);Oe++)if(!(r.sCount[Oe]-r.blkIndent>3||r.sCount[Oe]<0)){for(pe=!1,J=0,ie=he.length;J<ie;J++)if(he[J](r,Oe,I,!0)){pe=!0;break}if(pe)break}for(Se=(de=r.getLines(c,Oe,r.blkIndent,!1).trim()).length,we=1;we<Se;we++){if(91===(k=de.charCodeAt(we)))return!1;if(93===k){se=we;break}(10===k||92===k&&++we<Se&&10===de.charCodeAt(we))&&ve++}if(se<0||58!==de.charCodeAt(se+1))return!1;for(we=se+2;we<Se;we++)if(10===(k=de.charCodeAt(we)))ve++;else if(!y(k))break;if(!(ue=r.md.helpers.parseLinkDestination(de,we,Se)).ok)return!1;if(K=r.md.normalizeLink(ue.str),!r.md.validateLink(K))return!1;for(x=we=ue.pos,E=ve+=ue.lines,le=we;we<Se;we++)if(10===(k=de.charCodeAt(we)))ve++;else if(!y(k))break;for(ue=r.md.helpers.parseLinkTitle(de,we,Se),we<Se&&le!==we&&ue.ok?(ge=ue.str,we=ue.pos,ve+=ue.lines):(ge="",we=x,ve=E);we<Se&&(k=de.charCodeAt(we),y(k));)we++;if(we<Se&&10!==de.charCodeAt(we)&&ge)for(ge="",we=x,ve=E;we<Se&&(k=de.charCodeAt(we),y(k));)we++;return!(we<Se&&10!==de.charCodeAt(we))&&(!!(oe=p(de.slice(1,se)))&&(w||(void 0===r.env.references&&(r.env.references={}),void 0===r.env.references[oe]&&(r.env.references[oe]={title:ge,href:K}),r.parentType=ae,r.line=c+ve+1),!0))}},62948:(r,c,u)=>{"use strict";var p=u(75872),y=u(67022).isSpace;function StateBlock(r,c,u,p){var w,k,x,E,I,K,J,ie;for(this.src=r,this.md=c,this.env=u,this.tokens=p,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",ie=!1,x=E=K=J=0,I=(k=this.src).length;E<I;E++){if(w=k.charCodeAt(E),!ie){if(y(w)){K++,9===w?J+=4-J%4:J++;continue}ie=!0}10!==w&&E!==I-1||(10!==w&&E++,this.bMarks.push(x),this.eMarks.push(E),this.tShift.push(K),this.sCount.push(J),this.bsCount.push(0),ie=!1,K=0,J=0,x=E+1)}this.bMarks.push(k.length),this.eMarks.push(k.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(r,c,u){var y=new p(r,c,u);return y.block=!0,u<0&&this.level--,y.level=this.level,u>0&&this.level++,this.tokens.push(y),y},StateBlock.prototype.isEmpty=function isEmpty(r){return this.bMarks[r]+this.tShift[r]>=this.eMarks[r]},StateBlock.prototype.skipEmptyLines=function skipEmptyLines(r){for(var c=this.lineMax;r<c&&!(this.bMarks[r]+this.tShift[r]<this.eMarks[r]);r++);return r},StateBlock.prototype.skipSpaces=function skipSpaces(r){for(var c,u=this.src.length;r<u&&(c=this.src.charCodeAt(r),y(c));r++);return r},StateBlock.prototype.skipSpacesBack=function skipSpacesBack(r,c){if(r<=c)return r;for(;r>c;)if(!y(this.src.charCodeAt(--r)))return r+1;return r},StateBlock.prototype.skipChars=function skipChars(r,c){for(var u=this.src.length;r<u&&this.src.charCodeAt(r)===c;r++);return r},StateBlock.prototype.skipCharsBack=function skipCharsBack(r,c,u){if(r<=u)return r;for(;r>u;)if(c!==this.src.charCodeAt(--r))return r+1;return r},StateBlock.prototype.getLines=function getLines(r,c,u,p){var w,k,x,E,I,K,J,ie=r;if(r>=c)return"";for(K=new Array(c-r),w=0;ie<c;ie++,w++){for(k=0,J=E=this.bMarks[ie],I=ie+1<c||p?this.eMarks[ie]+1:this.eMarks[ie];E<I&&k<u;){if(x=this.src.charCodeAt(E),y(x))9===x?k+=4-(k+this.bsCount[ie])%4:k++;else{if(!(E-J<this.tShift[ie]))break;k++}E++}K[w]=k>u?new Array(k-u+1).join(" ")+this.src.slice(E,I):this.src.slice(E,I)}return K.join("")},StateBlock.prototype.Token=p,r.exports=StateBlock},91785:(r,c,u)=>{"use strict";var p=u(67022).isSpace;function getLine(r,c){var u=r.bMarks[c]+r.tShift[c],p=r.eMarks[c];return r.src.substr(u,p-u)}function escapedSplit(r){var c,u=[],p=0,y=r.length,w=!1,k=0,x="";for(c=r.charCodeAt(p);p<y;)124===c&&(w?(x+=r.substring(k,p-1),k=p):(u.push(x+r.substring(k,p)),x="",k=p+1)),w=92===c,p++,c=r.charCodeAt(p);return u.push(x+r.substring(k)),u}r.exports=function table(r,c,u,y){var w,k,x,E,I,K,J,ie,oe,se,ae,ue,le,de,pe,he,ge,ve;if(c+2>u)return!1;if(K=c+1,r.sCount[K]<r.blkIndent)return!1;if(r.sCount[K]-r.blkIndent>=4)return!1;if((x=r.bMarks[K]+r.tShift[K])>=r.eMarks[K])return!1;if(124!==(ge=r.src.charCodeAt(x++))&&45!==ge&&58!==ge)return!1;if(x>=r.eMarks[K])return!1;if(124!==(ve=r.src.charCodeAt(x++))&&45!==ve&&58!==ve&&!p(ve))return!1;if(45===ge&&p(ve))return!1;for(;x<r.eMarks[K];){if(124!==(w=r.src.charCodeAt(x))&&45!==w&&58!==w&&!p(w))return!1;x++}for(J=(k=getLine(r,c+1)).split("|"),se=[],E=0;E<J.length;E++){if(!(ae=J[E].trim())){if(0===E||E===J.length-1)continue;return!1}if(!/^:?-+:?$/.test(ae))return!1;58===ae.charCodeAt(ae.length-1)?se.push(58===ae.charCodeAt(0)?"center":"right"):58===ae.charCodeAt(0)?se.push("left"):se.push("")}if(-1===(k=getLine(r,c).trim()).indexOf("|"))return!1;if(r.sCount[c]-r.blkIndent>=4)return!1;if((J=escapedSplit(k)).length&&""===J[0]&&J.shift(),J.length&&""===J[J.length-1]&&J.pop(),0===(ie=J.length)||ie!==se.length)return!1;if(y)return!0;for(de=r.parentType,r.parentType="table",he=r.md.block.ruler.getRules("blockquote"),(oe=r.push("table_open","table",1)).map=ue=[c,0],(oe=r.push("thead_open","thead",1)).map=[c,c+1],(oe=r.push("tr_open","tr",1)).map=[c,c+1],E=0;E<J.length;E++)oe=r.push("th_open","th",1),se[E]&&(oe.attrs=[["style","text-align:"+se[E]]]),(oe=r.push("inline","",0)).content=J[E].trim(),oe.children=[],oe=r.push("th_close","th",-1);for(oe=r.push("tr_close","tr",-1),oe=r.push("thead_close","thead",-1),K=c+2;K<u&&!(r.sCount[K]<r.blkIndent);K++){for(pe=!1,E=0,I=he.length;E<I;E++)if(he[E](r,K,u,!0)){pe=!0;break}if(pe)break;if(!(k=getLine(r,K).trim()))break;if(r.sCount[K]-r.blkIndent>=4)break;for((J=escapedSplit(k)).length&&""===J[0]&&J.shift(),J.length&&""===J[J.length-1]&&J.pop(),K===c+2&&((oe=r.push("tbody_open","tbody",1)).map=le=[c+2,0]),(oe=r.push("tr_open","tr",1)).map=[K,K+1],E=0;E<ie;E++)oe=r.push("td_open","td",1),se[E]&&(oe.attrs=[["style","text-align:"+se[E]]]),(oe=r.push("inline","",0)).content=J[E]?J[E].trim():"",oe.children=[],oe=r.push("td_close","td",-1);oe=r.push("tr_close","tr",-1)}return le&&(oe=r.push("tbody_close","tbody",-1),le[1]=K),oe=r.push("table_close","table",-1),ue[1]=K,r.parentType=de,r.line=K,!0}},20898:r=>{"use strict";r.exports=function block(r){var c;r.inlineMode?((c=new r.Token("inline","",0)).content=r.src,c.map=[0,1],c.children=[],r.tokens.push(c)):r.md.block.parse(r.src,r.md,r.env,r.tokens)}},79827:r=>{"use strict";r.exports=function inline(r){var c,u,p,y=r.tokens;for(u=0,p=y.length;u<p;u++)"inline"===(c=y[u]).type&&r.md.inline.parse(c.content,r.md,r.env,c.children)}},17830:(r,c,u)=>{"use strict";var p=u(67022).arrayReplaceAt;function isLinkClose(r){return/^<\/a\s*>/i.test(r)}r.exports=function linkify(r){var c,u,y,w,k,x,E,I,K,J,ie,oe,se,ae,ue,le,de,pe,he=r.tokens;if(r.md.options.linkify)for(u=0,y=he.length;u<y;u++)if("inline"===he[u].type&&r.md.linkify.pretest(he[u].content))for(se=0,c=(w=he[u].children).length-1;c>=0;c--)if("link_close"!==(x=w[c]).type){if("html_inline"===x.type&&(pe=x.content,/^<a[>\s]/i.test(pe)&&se>0&&se--,isLinkClose(x.content)&&se++),!(se>0)&&"text"===x.type&&r.md.linkify.test(x.content)){for(K=x.content,de=r.md.linkify.match(K),E=[],oe=x.level,ie=0,I=0;I<de.length;I++)ae=de[I].url,ue=r.md.normalizeLink(ae),r.md.validateLink(ue)&&(le=de[I].text,le=de[I].schema?"mailto:"!==de[I].schema||/^mailto:/i.test(le)?r.md.normalizeLinkText(le):r.md.normalizeLinkText("mailto:"+le).replace(/^mailto:/,""):r.md.normalizeLinkText("http://"+le).replace(/^http:\/\//,""),(J=de[I].index)>ie&&((k=new r.Token("text","",0)).content=K.slice(ie,J),k.level=oe,E.push(k)),(k=new r.Token("link_open","a",1)).attrs=[["href",ue]],k.level=oe++,k.markup="linkify",k.info="auto",E.push(k),(k=new r.Token("text","",0)).content=le,k.level=oe,E.push(k),(k=new r.Token("link_close","a",-1)).level=--oe,k.markup="linkify",k.info="auto",E.push(k),ie=de[I].lastIndex);ie<K.length&&((k=new r.Token("text","",0)).content=K.slice(ie),k.level=oe,E.push(k)),he[u].children=w=p(w,c,E)}}else for(c--;w[c].level!==x.level&&"link_open"!==w[c].type;)c--}},74129:r=>{"use strict";var c=/\r\n?|\n/g,u=/\0/g;r.exports=function normalize(r){var p;p=(p=r.src.replace(c,"\n")).replace(u,"�"),r.src=p}},2834:r=>{"use strict";var c=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,u=/\((c|tm|r|p)\)/i,p=/\((c|tm|r|p)\)/gi,y={c:"©",r:"®",p:"§",tm:"™"};function replaceFn(r,c){return y[c.toLowerCase()]}function replace_scoped(r){var c,u,y=0;for(c=r.length-1;c>=0;c--)"text"!==(u=r[c]).type||y||(u.content=u.content.replace(p,replaceFn)),"link_open"===u.type&&"auto"===u.info&&y--,"link_close"===u.type&&"auto"===u.info&&y++}function replace_rare(r){var u,p,y=0;for(u=r.length-1;u>=0;u--)"text"!==(p=r[u]).type||y||c.test(p.content)&&(p.content=p.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===p.type&&"auto"===p.info&&y--,"link_close"===p.type&&"auto"===p.info&&y++}r.exports=function replace(r){var p;if(r.md.options.typographer)for(p=r.tokens.length-1;p>=0;p--)"inline"===r.tokens[p].type&&(u.test(r.tokens[p].content)&&replace_scoped(r.tokens[p].children),c.test(r.tokens[p].content)&&replace_rare(r.tokens[p].children))}},58450:(r,c,u)=>{"use strict";var p=u(67022).isWhiteSpace,y=u(67022).isPunctChar,w=u(67022).isMdAsciiPunct,k=/['"]/,x=/['"]/g;function replaceAt(r,c,u){return r.substr(0,c)+u+r.substr(c+1)}function process_inlines(r,c){var u,k,E,I,K,J,ie,oe,se,ae,ue,le,de,pe,he,ge,ve,we,Se,Oe,Ie;for(Se=[],u=0;u<r.length;u++){for(k=r[u],ie=r[u].level,ve=Se.length-1;ve>=0&&!(Se[ve].level<=ie);ve--);if(Se.length=ve+1,"text"===k.type){K=0,J=(E=k.content).length;e:for(;K<J&&(x.lastIndex=K,I=x.exec(E));){if(he=ge=!0,K=I.index+1,we="'"===I[0],se=32,I.index-1>=0)se=E.charCodeAt(I.index-1);else for(ve=u-1;ve>=0&&("softbreak"!==r[ve].type&&"hardbreak"!==r[ve].type);ve--)if(r[ve].content){se=r[ve].content.charCodeAt(r[ve].content.length-1);break}if(ae=32,K<J)ae=E.charCodeAt(K);else for(ve=u+1;ve<r.length&&("softbreak"!==r[ve].type&&"hardbreak"!==r[ve].type);ve++)if(r[ve].content){ae=r[ve].content.charCodeAt(0);break}if(ue=w(se)||y(String.fromCharCode(se)),le=w(ae)||y(String.fromCharCode(ae)),de=p(se),(pe=p(ae))?he=!1:le&&(de||ue||(he=!1)),de?ge=!1:ue&&(pe||le||(ge=!1)),34===ae&&'"'===I[0]&&se>=48&&se<=57&&(ge=he=!1),he&&ge&&(he=ue,ge=le),he||ge){if(ge)for(ve=Se.length-1;ve>=0&&(oe=Se[ve],!(Se[ve].level<ie));ve--)if(oe.single===we&&Se[ve].level===ie){oe=Se[ve],we?(Oe=c.md.options.quotes[2],Ie=c.md.options.quotes[3]):(Oe=c.md.options.quotes[0],Ie=c.md.options.quotes[1]),k.content=replaceAt(k.content,I.index,Ie),r[oe.token].content=replaceAt(r[oe.token].content,oe.pos,Oe),K+=Ie.length-1,oe.token===u&&(K+=Oe.length-1),J=(E=k.content).length,Se.length=ve;continue e}he?Se.push({token:u,pos:I.index,single:we,level:ie}):ge&&we&&(k.content=replaceAt(k.content,I.index,"’"))}else we&&(k.content=replaceAt(k.content,I.index,"’"))}}}}r.exports=function smartquotes(r){var c;if(r.md.options.typographer)for(c=r.tokens.length-1;c>=0;c--)"inline"===r.tokens[c].type&&k.test(r.tokens[c].content)&&process_inlines(r.tokens[c].children,r)}},16480:(r,c,u)=>{"use strict";var p=u(75872);function StateCore(r,c,u){this.src=r,this.env=u,this.tokens=[],this.inlineMode=!1,this.md=c}StateCore.prototype.Token=p,r.exports=StateCore},43420:r=>{"use strict";var c=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,u=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;r.exports=function autolink(r,p){var y,w,k,x,E,I,K=r.pos;if(60!==r.src.charCodeAt(K))return!1;for(E=r.pos,I=r.posMax;;){if(++K>=I)return!1;if(60===(x=r.src.charCodeAt(K)))return!1;if(62===x)break}return y=r.src.slice(E+1,K),u.test(y)?(w=r.md.normalizeLink(y),!!r.md.validateLink(w)&&(p||((k=r.push("link_open","a",1)).attrs=[["href",w]],k.markup="autolink",k.info="auto",(k=r.push("text","",0)).content=r.md.normalizeLinkText(y),(k=r.push("link_close","a",-1)).markup="autolink",k.info="auto"),r.pos+=y.length+2,!0)):!!c.test(y)&&(w=r.md.normalizeLink("mailto:"+y),!!r.md.validateLink(w)&&(p||((k=r.push("link_open","a",1)).attrs=[["href",w]],k.markup="autolink",k.info="auto",(k=r.push("text","",0)).content=r.md.normalizeLinkText(y),(k=r.push("link_close","a",-1)).markup="autolink",k.info="auto"),r.pos+=y.length+2,!0))}},79755:r=>{"use strict";r.exports=function backtick(r,c){var u,p,y,w,k,x,E,I,K=r.pos;if(96!==r.src.charCodeAt(K))return!1;for(u=K,K++,p=r.posMax;K<p&&96===r.src.charCodeAt(K);)K++;if(E=(y=r.src.slice(u,K)).length,r.backticksScanned&&(r.backticks[E]||0)<=u)return c||(r.pending+=y),r.pos+=E,!0;for(k=x=K;-1!==(k=r.src.indexOf("`",x));){for(x=k+1;x<p&&96===r.src.charCodeAt(x);)x++;if((I=x-k)===E)return c||((w=r.push("code_inline","code",0)).markup=y,w.content=r.src.slice(K,k).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),r.pos=x,!0;r.backticks[I]=k}return r.backticksScanned=!0,c||(r.pending+=y),r.pos+=E,!0}},89354:r=>{"use strict";function processDelimiters(r,c){var u,p,y,w,k,x,E,I,K={},J=c.length;for(u=0;u<J;u++)if((y=c[u]).length=y.length||0,y.close){for(K.hasOwnProperty(y.marker)||(K[y.marker]=[-1,-1,-1,-1,-1,-1]),k=K[y.marker][(y.open?3:0)+y.length%3],(p=u-y.jump-1)<-1&&(p=-1),x=p;p>k;p-=w.jump+1)if((w=c[p]).marker===y.marker&&w.open&&w.end<0&&(E=!1,(w.close||y.open)&&(w.length+y.length)%3==0&&(w.length%3==0&&y.length%3==0||(E=!0)),!E)){I=p>0&&!c[p-1].open?c[p-1].jump+1:0,y.jump=u-p+I,y.open=!1,w.end=u,w.jump=I,w.close=!1,x=-1;break}-1!==x&&(K[y.marker][(y.open?3:0)+(y.length||0)%3]=x)}}r.exports=function link_pairs(r){var c,u=r.tokens_meta,p=r.tokens_meta.length;for(processDelimiters(0,r.delimiters),c=0;c<p;c++)u[c]&&u[c].delimiters&&processDelimiters(0,u[c].delimiters)}},97894:r=>{"use strict";function postProcess(r,c){var u,p,y,w,k,x;for(u=c.length-1;u>=0;u--)95!==(p=c[u]).marker&&42!==p.marker||-1!==p.end&&(y=c[p.end],x=u>0&&c[u-1].end===p.end+1&&c[u-1].token===p.token-1&&c[p.end+1].token===y.token+1&&c[u-1].marker===p.marker,k=String.fromCharCode(p.marker),(w=r.tokens[p.token]).type=x?"strong_open":"em_open",w.tag=x?"strong":"em",w.nesting=1,w.markup=x?k+k:k,w.content="",(w=r.tokens[y.token]).type=x?"strong_close":"em_close",w.tag=x?"strong":"em",w.nesting=-1,w.markup=x?k+k:k,w.content="",x&&(r.tokens[c[u-1].token].content="",r.tokens[c[p.end+1].token].content="",u--))}r.exports.w=function emphasis(r,c){var u,p,y=r.pos,w=r.src.charCodeAt(y);if(c)return!1;if(95!==w&&42!==w)return!1;for(p=r.scanDelims(r.pos,42===w),u=0;u<p.length;u++)r.push("text","",0).content=String.fromCharCode(w),r.delimiters.push({marker:w,length:p.length,jump:u,token:r.tokens.length-1,end:-1,open:p.can_open,close:p.can_close});return r.pos+=p.length,!0},r.exports.g=function emphasis(r){var c,u=r.tokens_meta,p=r.tokens_meta.length;for(postProcess(r,r.delimiters),c=0;c<p;c++)u[c]&&u[c].delimiters&&postProcess(r,u[c].delimiters)}},99391:(r,c,u)=>{"use strict";var p=u(26233),y=u(67022).has,w=u(67022).isValidEntityCode,k=u(67022).fromCodePoint,x=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,E=/^&([a-z][a-z0-9]{1,31});/i;r.exports=function entity(r,c){var u,I,K=r.pos,J=r.posMax;if(38!==r.src.charCodeAt(K))return!1;if(K+1<J)if(35===r.src.charCodeAt(K+1)){if(I=r.src.slice(K).match(x))return c||(u="x"===I[1][0].toLowerCase()?parseInt(I[1].slice(1),16):parseInt(I[1],10),r.pending+=w(u)?k(u):k(65533)),r.pos+=I[0].length,!0}else if((I=r.src.slice(K).match(E))&&y(p,I[1]))return c||(r.pending+=p[I[1]]),r.pos+=I[0].length,!0;return c||(r.pending+="&"),r.pos++,!0}},1917:(r,c,u)=>{"use strict";for(var p=u(67022).isSpace,y=[],w=0;w<256;w++)y.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(r){y[r.charCodeAt(0)]=1})),r.exports=function escape(r,c){var u,w=r.pos,k=r.posMax;if(92!==r.src.charCodeAt(w))return!1;if(++w<k){if((u=r.src.charCodeAt(w))<256&&0!==y[u])return c||(r.pending+=r.src[w]),r.pos+=2,!0;if(10===u){for(c||r.push("hardbreak","br",0),w++;w<k&&(u=r.src.charCodeAt(w),p(u));)w++;return r.pos=w,!0}}return c||(r.pending+="\\"),r.pos++,!0}},81779:(r,c,u)=>{"use strict";var p=u(51947).n;r.exports=function html_inline(r,c){var u,y,w,k=r.pos;return!!r.md.options.html&&(w=r.posMax,!(60!==r.src.charCodeAt(k)||k+2>=w)&&(!(33!==(u=r.src.charCodeAt(k+1))&&63!==u&&47!==u&&!function isLetter(r){var c=32|r;return c>=97&&c<=122}(u))&&(!!(y=r.src.slice(k).match(p))&&(c||(r.push("html_inline","",0).content=r.src.slice(k,k+y[0].length)),r.pos+=y[0].length,!0))))}},83006:(r,c,u)=>{"use strict";var p=u(67022).normalizeReference,y=u(67022).isSpace;r.exports=function image(r,c){var u,w,k,x,E,I,K,J,ie,oe,se,ae,ue,le="",de=r.pos,pe=r.posMax;if(33!==r.src.charCodeAt(r.pos))return!1;if(91!==r.src.charCodeAt(r.pos+1))return!1;if(I=r.pos+2,(E=r.md.helpers.parseLinkLabel(r,r.pos+1,!1))<0)return!1;if((K=E+1)<pe&&40===r.src.charCodeAt(K)){for(K++;K<pe&&(w=r.src.charCodeAt(K),y(w)||10===w);K++);if(K>=pe)return!1;for(ue=K,(ie=r.md.helpers.parseLinkDestination(r.src,K,r.posMax)).ok&&(le=r.md.normalizeLink(ie.str),r.md.validateLink(le)?K=ie.pos:le=""),ue=K;K<pe&&(w=r.src.charCodeAt(K),y(w)||10===w);K++);if(ie=r.md.helpers.parseLinkTitle(r.src,K,r.posMax),K<pe&&ue!==K&&ie.ok)for(oe=ie.str,K=ie.pos;K<pe&&(w=r.src.charCodeAt(K),y(w)||10===w);K++);else oe="";if(K>=pe||41!==r.src.charCodeAt(K))return r.pos=de,!1;K++}else{if(void 0===r.env.references)return!1;if(K<pe&&91===r.src.charCodeAt(K)?(ue=K+1,(K=r.md.helpers.parseLinkLabel(r,K))>=0?x=r.src.slice(ue,K++):K=E+1):K=E+1,x||(x=r.src.slice(I,E)),!(J=r.env.references[p(x)]))return r.pos=de,!1;le=J.href,oe=J.title}return c||(k=r.src.slice(I,E),r.md.inline.parse(k,r.md,r.env,ae=[]),(se=r.push("image","img",0)).attrs=u=[["src",le],["alt",""]],se.children=ae,se.content=k,oe&&u.push(["title",oe])),r.pos=K,r.posMax=pe,!0}},81727:(r,c,u)=>{"use strict";var p=u(67022).normalizeReference,y=u(67022).isSpace;r.exports=function link(r,c){var u,w,k,x,E,I,K,J,ie="",oe="",se=r.pos,ae=r.posMax,ue=r.pos,le=!0;if(91!==r.src.charCodeAt(r.pos))return!1;if(E=r.pos+1,(x=r.md.helpers.parseLinkLabel(r,r.pos,!0))<0)return!1;if((I=x+1)<ae&&40===r.src.charCodeAt(I)){for(le=!1,I++;I<ae&&(w=r.src.charCodeAt(I),y(w)||10===w);I++);if(I>=ae)return!1;if(ue=I,(K=r.md.helpers.parseLinkDestination(r.src,I,r.posMax)).ok){for(ie=r.md.normalizeLink(K.str),r.md.validateLink(ie)?I=K.pos:ie="",ue=I;I<ae&&(w=r.src.charCodeAt(I),y(w)||10===w);I++);if(K=r.md.helpers.parseLinkTitle(r.src,I,r.posMax),I<ae&&ue!==I&&K.ok)for(oe=K.str,I=K.pos;I<ae&&(w=r.src.charCodeAt(I),y(w)||10===w);I++);}(I>=ae||41!==r.src.charCodeAt(I))&&(le=!0),I++}if(le){if(void 0===r.env.references)return!1;if(I<ae&&91===r.src.charCodeAt(I)?(ue=I+1,(I=r.md.helpers.parseLinkLabel(r,I))>=0?k=r.src.slice(ue,I++):I=x+1):I=x+1,k||(k=r.src.slice(E,x)),!(J=r.env.references[p(k)]))return r.pos=se,!1;ie=J.href,oe=J.title}return c||(r.pos=E,r.posMax=x,r.push("link_open","a",1).attrs=u=[["href",ie]],oe&&u.push(["title",oe]),r.md.inline.tokenize(r),r.push("link_close","a",-1)),r.pos=I,r.posMax=ae,!0}},43905:(r,c,u)=>{"use strict";var p=u(67022).isSpace;r.exports=function newline(r,c){var u,y,w=r.pos;if(10!==r.src.charCodeAt(w))return!1;for(u=r.pending.length-1,y=r.posMax,c||(u>=0&&32===r.pending.charCodeAt(u)?u>=1&&32===r.pending.charCodeAt(u-1)?(r.pending=r.pending.replace(/ +$/,""),r.push("hardbreak","br",0)):(r.pending=r.pending.slice(0,-1),r.push("softbreak","br",0)):r.push("softbreak","br",0)),w++;w<y&&p(r.src.charCodeAt(w));)w++;return r.pos=w,!0}},50670:(r,c,u)=>{"use strict";var p=u(75872),y=u(67022).isWhiteSpace,w=u(67022).isPunctChar,k=u(67022).isMdAsciiPunct;function StateInline(r,c,u,p){this.src=r,this.env=u,this.md=c,this.tokens=p,this.tokens_meta=Array(p.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}StateInline.prototype.pushPending=function(){var r=new p("text","",0);return r.content=this.pending,r.level=this.pendingLevel,this.tokens.push(r),this.pending="",r},StateInline.prototype.push=function(r,c,u){this.pending&&this.pushPending();var y=new p(r,c,u),w=null;return u<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),y.level=this.level,u>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],w={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(y),this.tokens_meta.push(w),y},StateInline.prototype.scanDelims=function(r,c){var u,p,x,E,I,K,J,ie,oe,se=r,ae=!0,ue=!0,le=this.posMax,de=this.src.charCodeAt(r);for(u=r>0?this.src.charCodeAt(r-1):32;se<le&&this.src.charCodeAt(se)===de;)se++;return x=se-r,p=se<le?this.src.charCodeAt(se):32,J=k(u)||w(String.fromCharCode(u)),oe=k(p)||w(String.fromCharCode(p)),K=y(u),(ie=y(p))?ae=!1:oe&&(K||J||(ae=!1)),K?ue=!1:J&&(ie||oe||(ue=!1)),c?(E=ae,I=ue):(E=ae&&(!ue||J),I=ue&&(!ae||oe)),{can_open:E,can_close:I,length:x}},StateInline.prototype.Token=p,r.exports=StateInline},44814:r=>{"use strict";function postProcess(r,c){var u,p,y,w,k,x=[],E=c.length;for(u=0;u<E;u++)126===(y=c[u]).marker&&-1!==y.end&&(w=c[y.end],(k=r.tokens[y.token]).type="s_open",k.tag="s",k.nesting=1,k.markup="~~",k.content="",(k=r.tokens[w.token]).type="s_close",k.tag="s",k.nesting=-1,k.markup="~~",k.content="","text"===r.tokens[w.token-1].type&&"~"===r.tokens[w.token-1].content&&x.push(w.token-1));for(;x.length;){for(p=(u=x.pop())+1;p<r.tokens.length&&"s_close"===r.tokens[p].type;)p++;u!==--p&&(k=r.tokens[p],r.tokens[p]=r.tokens[u],r.tokens[u]=k)}}r.exports.w=function strikethrough(r,c){var u,p,y,w,k=r.pos,x=r.src.charCodeAt(k);if(c)return!1;if(126!==x)return!1;if(y=(p=r.scanDelims(r.pos,!0)).length,w=String.fromCharCode(x),y<2)return!1;for(y%2&&(r.push("text","",0).content=w,y--),u=0;u<y;u+=2)r.push("text","",0).content=w+w,r.delimiters.push({marker:x,length:0,jump:u/2,token:r.tokens.length-1,end:-1,open:p.can_open,close:p.can_close});return r.pos+=p.length,!0},r.exports.g=function strikethrough(r){var c,u=r.tokens_meta,p=r.tokens_meta.length;for(postProcess(r,r.delimiters),c=0;c<p;c++)u[c]&&u[c].delimiters&&postProcess(r,u[c].delimiters)}},39941:r=>{"use strict";function isTerminatorChar(r){switch(r){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}r.exports=function text(r,c){for(var u=r.pos;u<r.posMax&&!isTerminatorChar(r.src.charCodeAt(u));)u++;return u!==r.pos&&(c||(r.pending+=r.src.slice(r.pos,u)),r.pos=u,!0)}},28996:r=>{"use strict";r.exports=function text_collapse(r){var c,u,p=0,y=r.tokens,w=r.tokens.length;for(c=u=0;c<w;c++)y[c].nesting<0&&p--,y[c].level=p,y[c].nesting>0&&p++,"text"===y[c].type&&c+1<w&&"text"===y[c+1].type?y[c+1].content=y[c].content+y[c+1].content:(c!==u&&(y[u]=y[c]),u++);c!==u&&(y.length=u)}},75872:r=>{"use strict";function Token(r,c,u){this.type=r,this.tag=c,this.attrs=null,this.map=null,this.nesting=u,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token.prototype.attrIndex=function attrIndex(r){var c,u,p;if(!this.attrs)return-1;for(u=0,p=(c=this.attrs).length;u<p;u++)if(c[u][0]===r)return u;return-1},Token.prototype.attrPush=function attrPush(r){this.attrs?this.attrs.push(r):this.attrs=[r]},Token.prototype.attrSet=function attrSet(r,c){var u=this.attrIndex(r),p=[r,c];u<0?this.attrPush(p):this.attrs[u]=p},Token.prototype.attrGet=function attrGet(r){var c=this.attrIndex(r),u=null;return c>=0&&(u=this.attrs[c][1]),u},Token.prototype.attrJoin=function attrJoin(r,c){var u=this.attrIndex(r);u<0?this.attrPush([r,c]):this.attrs[u][1]=this.attrs[u][1]+" "+c},r.exports=Token},18692:r=>{"use strict";r.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ﬃ","fflig":"ﬀ","ffllig":"ﬄ","Ffr":"𝔉","ffr":"𝔣","filig":"ﬁ","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"ﬂ","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"Ĳ","ijlig":"ĳ","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ŉ","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},83122:r=>{"use strict";var c={};function decode(r,u){var p;return"string"!=typeof u&&(u=decode.defaultChars),p=function getDecodeCache(r){var u,p,y=c[r];if(y)return y;for(y=c[r]=[],u=0;u<128;u++)p=String.fromCharCode(u),y.push(p);for(u=0;u<r.length;u++)y[p=r.charCodeAt(u)]="%"+("0"+p.toString(16).toUpperCase()).slice(-2);return y}(u),r.replace(/(%[a-f0-9]{2})+/gi,(function(r){var c,u,y,w,k,x,E,I="";for(c=0,u=r.length;c<u;c+=3)(y=parseInt(r.slice(c+1,c+3),16))<128?I+=p[y]:192==(224&y)&&c+3<u&&128==(192&(w=parseInt(r.slice(c+4,c+6),16)))?(I+=(E=y<<6&1984|63&w)<128?"��":String.fromCharCode(E),c+=3):224==(240&y)&&c+6<u&&(w=parseInt(r.slice(c+4,c+6),16),k=parseInt(r.slice(c+7,c+9),16),128==(192&w)&&128==(192&k))?(I+=(E=y<<12&61440|w<<6&4032|63&k)<2048||E>=55296&&E<=57343?"���":String.fromCharCode(E),c+=6):240==(248&y)&&c+9<u&&(w=parseInt(r.slice(c+4,c+6),16),k=parseInt(r.slice(c+7,c+9),16),x=parseInt(r.slice(c+10,c+12),16),128==(192&w)&&128==(192&k)&&128==(192&x))?((E=y<<18&1835008|w<<12&258048|k<<6&4032|63&x)<65536||E>1114111?I+="����":(E-=65536,I+=String.fromCharCode(55296+(E>>10),56320+(1023&E))),c+=9):I+="�";return I}))}decode.defaultChars=";/?:@&=+$,#",decode.componentChars="",r.exports=decode},70729:r=>{"use strict";var c={};function encode(r,u,p){var y,w,k,x,E,I="";for("string"!=typeof u&&(p=u,u=encode.defaultChars),void 0===p&&(p=!0),E=function getEncodeCache(r){var u,p,y=c[r];if(y)return y;for(y=c[r]=[],u=0;u<128;u++)p=String.fromCharCode(u),/^[0-9a-z]$/i.test(p)?y.push(p):y.push("%"+("0"+u.toString(16).toUpperCase()).slice(-2));for(u=0;u<r.length;u++)y[r.charCodeAt(u)]=r[u];return y}(u),y=0,w=r.length;y<w;y++)if(k=r.charCodeAt(y),p&&37===k&&y+2<w&&/^[0-9a-f]{2}$/i.test(r.slice(y+1,y+3)))I+=r.slice(y,y+3),y+=2;else if(k<128)I+=E[k];else if(k>=55296&&k<=57343){if(k>=55296&&k<=56319&&y+1<w&&(x=r.charCodeAt(y+1))>=56320&&x<=57343){I+=encodeURIComponent(r[y]+r[y+1]),y++;continue}I+="%EF%BF%BD"}else I+=encodeURIComponent(r[y]);return I}encode.defaultChars=";/?:@&=+$,-_.!~*'()#",encode.componentChars="-_.!~*'()",r.exports=encode},2201:r=>{"use strict";r.exports=function format(r){var c="";return c+=r.protocol||"",c+=r.slashes?"//":"",c+=r.auth?r.auth+"@":"",r.hostname&&-1!==r.hostname.indexOf(":")?c+="["+r.hostname+"]":c+=r.hostname||"",c+=r.port?":"+r.port:"",c+=r.pathname||"",c+=r.search||"",c+=r.hash||""}},48765:(r,c,u)=>{"use strict";r.exports.encode=u(70729),r.exports.decode=u(83122),r.exports.format=u(2201),r.exports.parse=u(9553)},9553:r=>{"use strict";function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var c=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,y=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),w=["'"].concat(y),k=["%","/","?",";","#"].concat(w),x=["/","?","#"],E=/^[+a-z0-9A-Z_-]{0,63}$/,I=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,K={javascript:!0,"javascript:":!0},J={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};Url.prototype.parse=function(r,u){var y,w,ie,oe,se,ae=r;if(ae=ae.trim(),!u&&1===r.split("#").length){var ue=p.exec(ae);if(ue)return this.pathname=ue[1],ue[2]&&(this.search=ue[2]),this}var le=c.exec(ae);if(le&&(ie=(le=le[0]).toLowerCase(),this.protocol=le,ae=ae.substr(le.length)),(u||le||ae.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(se="//"===ae.substr(0,2))||le&&K[le]||(ae=ae.substr(2),this.slashes=!0)),!K[le]&&(se||le&&!J[le])){var de,pe,he=-1;for(y=0;y<x.length;y++)-1!==(oe=ae.indexOf(x[y]))&&(-1===he||oe<he)&&(he=oe);for(-1!==(pe=-1===he?ae.lastIndexOf("@"):ae.lastIndexOf("@",he))&&(de=ae.slice(0,pe),ae=ae.slice(pe+1),this.auth=de),he=-1,y=0;y<k.length;y++)-1!==(oe=ae.indexOf(k[y]))&&(-1===he||oe<he)&&(he=oe);-1===he&&(he=ae.length),":"===ae[he-1]&&he--;var ge=ae.slice(0,he);ae=ae.slice(he),this.parseHost(ge),this.hostname=this.hostname||"";var ve="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!ve){var we=this.hostname.split(/\./);for(y=0,w=we.length;y<w;y++){var Se=we[y];if(Se&&!Se.match(E)){for(var Oe="",Ie=0,De=Se.length;Ie<De;Ie++)Se.charCodeAt(Ie)>127?Oe+="x":Oe+=Se[Ie];if(!Oe.match(E)){var Pe=we.slice(0,y),Le=we.slice(y+1),je=Se.match(I);je&&(Pe.push(je[1]),Le.unshift(je[2])),Le.length&&(ae=Le.join(".")+ae),this.hostname=Pe.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),ve&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var Fe=ae.indexOf("#");-1!==Fe&&(this.hash=ae.substr(Fe),ae=ae.slice(0,Fe));var Ue=ae.indexOf("?");return-1!==Ue&&(this.search=ae.substr(Ue),ae=ae.slice(0,Ue)),ae&&(this.pathname=ae),J[ie]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Url.prototype.parseHost=function(r){var c=u.exec(r);c&&(":"!==(c=c[0])&&(this.port=c.substr(1)),r=r.substr(0,r.length-c.length)),r&&(this.hostname=r)},r.exports=function urlParse(r,c){if(r&&r instanceof Url)return r;var u=new Url;return u.parse(r,c),u}},27418:r=>{"use strict";var c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;function toObject(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var c={},u=0;u<10;u++)c["_"+String.fromCharCode(u)]=u;if("0123456789"!==Object.getOwnPropertyNames(c).map((function(r){return c[r]})).join(""))return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach((function(r){p[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},p)).join("")}catch(r){return!1}}()?Object.assign:function(r,y){for(var w,k,x=toObject(r),E=1;E<arguments.length;E++){for(var I in w=Object(arguments[E]))u.call(w,I)&&(x[I]=w[I]);if(c){k=c(w);for(var K=0;K<k.length;K++)p.call(w,k[K])&&(x[k[K]]=w[k[K]])}}return x}},70796:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(17187);function isDef(r){return null!=r}class Backoff extends p.EventEmitter{constructor(r){if(super(),isDef((r=r||{}).initialDelay)&&r.initialDelay<1)throw new Error("The initial timeout must be equal to or greater than 1.");if(isDef(r.maxDelay)&&r.maxDelay<=1)throw new Error("The maximal timeout must be greater than 1.");if(isDef(r.randomisationFactor)&&(r.randomisationFactor<0||r.randomisationFactor>1))throw new Error("The randomisation factor must be between 0 and 1.");if(isDef(r.factor)&&r.factor<=1)throw new Error("Exponential factor should be greater than 1.");if(this.initialDelay=r.initialDelay||100,this.maxDelay=r.maxDelay||1e4,this.maxDelay<=this.initialDelay)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");this.randomisationFactor=r.randomisationFactor||0,this.factor=r.factor||2,this.maxNumberOfRetry=-1,this.reset()}static exponential(r){return new Backoff(r)}backoff(r){null==this.timeoutID&&(this.backoffNumber===this.maxNumberOfRetry?(this.emit("fail",r),this.reset()):(this.backoffDelay=this.next(),this.timeoutID=setTimeout(this.onBackoff.bind(this),this.backoffDelay),this.emit("backoff",this.backoffNumber,this.backoffDelay,r)))}reset(){this.backoffDelay=0,this.nextBackoffDelay=this.initialDelay,this.backoffNumber=0,clearTimeout(this.timeoutID),this.timeoutID=null}failAfter(r){if(r<=0)throw new Error("Expected a maximum number of retry greater than 0 but got "+r);this.maxNumberOfRetry=r}next(){this.backoffDelay=Math.min(this.nextBackoffDelay,this.maxDelay),this.nextBackoffDelay=this.backoffDelay*this.factor;let r=1+Math.random()*this.randomisationFactor;return Math.min(this.maxDelay,Math.round(this.backoffDelay*r))}onBackoff(){this.timeoutID=null,this.emit("ready",this.backoffNumber,this.backoffDelay),this.backoffNumber++}}c.Backoff=Backoff,c.default=Backoff},89948:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(57723);c.Retrier=p.Retrier;const y=u(70796);c.Backoff=y.Backoff,c.default=p.Retrier},57723:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(17187);class Retrier extends p.EventEmitter{constructor(r){super(),this.minDelay=r.min,this.maxDelay=r.max,this.initialDelay=r.initial||0,this.maxAttemptsCount=r.maxAttemptsCount||0,this.maxAttemptsTime=r.maxAttemptsTime||0,this.randomness=r.randomness||0,this.inProgress=!1,this.attemptNum=0,this.prevDelay=0,this.currDelay=0}attempt(){clearTimeout(this.timeout),this.attemptNum++,this.timeout=null,this.emit("attempt",this)}nextDelay(r){if("number"==typeof r)return this.prevDelay=0,this.currDelay=r,r;if(0==this.attemptNum)return this.initialDelay;if(1==this.attemptNum)return this.currDelay=this.minDelay,this.currDelay;this.prevDelay=this.currDelay;let c=this.currDelay+this.prevDelay;return this.maxDelay&&c>this.maxDelay&&(this.currDelay=this.maxDelay,c=this.maxDelay),this.currDelay=c,c}randomize(r){let c=r*this.randomness,u=Math.round(Math.random()*c*2-c);return Math.max(0,r+u)}scheduleAttempt(r){if(this.maxAttemptsCount&&this.attemptNum>=this.maxAttemptsCount)return this.cleanup(),this.emit("failed",new Error("Maximum attempt count limit reached")),void this.reject(new Error("Maximum attempt count reached"));let c=this.nextDelay(r);if(c=this.randomize(c),this.maxAttemptsTime&&this.startTimestamp+this.maxAttemptsTime<Date.now()+c)return this.cleanup(),this.emit("failed",new Error("Maximum attempt time limit reached")),void this.reject(new Error("Maximum attempt time limit reached"));this.timeout=setTimeout(()=>this.attempt(),c)}cleanup(){clearTimeout(this.timeout),this.timeout=null,this.inProgress=!1,this.attemptNum=0,this.prevDelay=0,this.currDelay=0}start(){if(this.inProgress)throw new Error("Retrier is already in progress");return this.inProgress=!0,new Promise((r,c)=>{this.resolve=r,this.reject=c,this.startTimestamp=Date.now(),this.scheduleAttempt(this.initialDelay)})}cancel(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null,this.inProgress=!1,this.emit("cancelled"),this.reject(new Error("Cancelled")))}succeeded(r){this.emit("succeeded",r),this.resolve(r)}failed(r,c){if(this.timeout)throw new Error("Retrier attempt is already in progress");this.scheduleAttempt(c)}run(r){return this.on("attempt",()=>{r().then(r=>this.succeeded(r)).catch(r=>this.failed(r))}),this.start()}}c.Retrier=Retrier,c.default=Retrier},31795:function(r,c,u){var p;r=u.nmd(r),function(){"use strict";var y={function:!0,object:!0},w=y[typeof window]&&window||this,k=y[typeof c]&&c,x=y.object&&r&&!r.nodeType&&r,E=k&&x&&"object"==typeof u.g&&u.g;!E||E.global!==E&&E.window!==E&&E.self!==E||(w=E);var I=Math.pow(2,53)-1,K=/\bOpera/,J=Object.prototype,ie=J.hasOwnProperty,oe=J.toString;function capitalize(r){return(r=String(r)).charAt(0).toUpperCase()+r.slice(1)}function format(r){return r=trim(r),/^(?:webOS|i(?:OS|P))/.test(r)?r:capitalize(r)}function forOwn(r,c){for(var u in r)ie.call(r,u)&&c(r[u],u,r)}function getClassOf(r){return null==r?capitalize(r):oe.call(r).slice(8,-1)}function qualify(r){return String(r).replace(/([ -])(?!$)/g,"$1?")}function reduce(r,c){var u=null;return function each(r,c){var u=-1,p=r?r.length:0;if("number"==typeof p&&p>-1&&p<=I)for(;++u<p;)c(r[u],u,r);else forOwn(r,c)}(r,(function(p,y){u=c(u,p,y,r)})),u}function trim(r){return String(r).replace(/^ +| +$/g,"")}var se=function parse(r){var c=w,u=r&&"object"==typeof r&&"String"!=getClassOf(r);u&&(c=r,r=null);var p=c.navigator||{},y=p.userAgent||"";r||(r=y);var k,x,E=u?!!p.likeChrome:/\bChrome\b/.test(r)&&!/internal|\n/i.test(oe.toString()),I=u?"Object":"ScriptBridgingProxyObject",J=u?"Object":"Environment",ie=u&&c.java?"JavaPackage":getClassOf(c.java),se=u?"Object":"RuntimeObject",ae=/\bJava/.test(ie)&&c.java,ue=ae&&getClassOf(c.environment)==J,le=ae?"a":"α",de=ae?"b":"β",pe=c.document||{},he=c.operamini||c.opera,ge=K.test(ge=u&&he?he["[[Class]]"]:getClassOf(he))?ge:he=null,ve=r,we=[],Se=null,Oe=r==y,Ie=Oe&&he&&"function"==typeof he.version&&he.version(),De=function getLayout(c){return reduce(c,(function(c,u){return c||RegExp("\\b"+(u.pattern||qualify(u))+"\\b","i").exec(r)&&(u.label||u)}))}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Pe=function getName(c){return reduce(c,(function(c,u){return c||RegExp("\\b"+(u.pattern||qualify(u))+"\\b","i").exec(r)&&(u.label||u)}))}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Le=getProduct([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),je=function getManufacturer(c){return reduce(c,(function(c,u,p){return c||(u[Le]||u[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Le)]||RegExp("\\b"+qualify(p)+"(?:\\b|\\w*\\d)","i").exec(r))&&p}))}({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),Fe=function getOS(c){return reduce(c,(function(c,u){var p=u.pattern||qualify(u);return!c&&(c=RegExp("\\b"+p+"(?:/[\\d.]+|[ \\w.]*)","i").exec(r))&&(c=function cleanupOS(r,c,u){var p={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return c&&u&&/^Win/i.test(r)&&!/^Windows Phone /i.test(r)&&(p=p[/[\d.]+$/.exec(r)])&&(r="Windows "+p),r=String(r),c&&u&&(r=r.replace(RegExp(c,"i"),u)),r=format(r.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(c,p,u.label||u)),c}))}(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function getProduct(c){return reduce(c,(function(c,u){var p=u.pattern||qualify(u);return!c&&(c=RegExp("\\b"+p+" *\\d+[.\\w_]*","i").exec(r)||RegExp("\\b"+p+" *\\w+-[\\w]*","i").exec(r)||RegExp("\\b"+p+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(r))&&((c=String(u.label&&!RegExp(p,"i").test(u.label)?u.label:c).split("/"))[1]&&!/[\d.]+/.test(c[0])&&(c[0]+=" "+c[1]),u=u.label||u,c=format(c[0].replace(RegExp(p,"i"),u).replace(RegExp("; *(?:"+u+"[_-])?","i")," ").replace(RegExp("("+u+")[-_.]?(\\w)","i"),"$1 $2"))),c}))}function getVersion(c){return reduce(c,(function(c,u){return c||(RegExp(u+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(r)||0)[1]||null}))}if(De&&(De=[De]),/\bAndroid\b/.test(Fe)&&!Le&&(k=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(r))&&(Le=trim(k[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),je&&!Le?Le=getProduct([je]):je&&Le&&(Le=Le.replace(RegExp("^("+qualify(je)+")[-_.\\s]","i"),je+" ").replace(RegExp("^("+qualify(je)+")[-_.]?(\\w)","i"),je+" $2")),(k=/\bGoogle TV\b/.exec(Le))&&(Le=k[0]),/\bSimulator\b/i.test(r)&&(Le=(Le?Le+" ":"")+"Simulator"),"Opera Mini"==Pe&&/\bOPiOS\b/.test(r)&&we.push("running in Turbo/Uncompressed mode"),"IE"==Pe&&/\blike iPhone OS\b/.test(r)?(je=(k=parse(r.replace(/like iPhone OS/,""))).manufacturer,Le=k.product):/^iP/.test(Le)?(Pe||(Pe="Safari"),Fe="iOS"+((k=/ OS ([\d_]+)/i.exec(r))?" "+k[1].replace(/_/g,"."):"")):"Konqueror"==Pe&&/^Linux\b/i.test(Fe)?Fe="Kubuntu":je&&"Google"!=je&&(/Chrome/.test(Pe)&&!/\bMobile Safari\b/i.test(r)||/\bVita\b/.test(Le))||/\bAndroid\b/.test(Fe)&&/^Chrome/.test(Pe)&&/\bVersion\//i.test(r)?(Pe="Android Browser",Fe=/\bAndroid\b/.test(Fe)?Fe:"Android"):"Silk"==Pe?(/\bMobi/i.test(r)||(Fe="Android",we.unshift("desktop mode")),/Accelerated *= *true/i.test(r)&&we.unshift("accelerated")):"UC Browser"==Pe&&/\bUCWEB\b/.test(r)?we.push("speed mode"):"PaleMoon"==Pe&&(k=/\bFirefox\/([\d.]+)\b/.exec(r))?we.push("identifying as Firefox "+k[1]):"Firefox"==Pe&&(k=/\b(Mobile|Tablet|TV)\b/i.exec(r))?(Fe||(Fe="Firefox OS"),Le||(Le=k[1])):!Pe||(k=!/\bMinefield\b/i.test(r)&&/\b(?:Firefox|Safari)\b/.exec(Pe))?(Pe&&!Le&&/[\/,]|^[^(]+?\)/.test(r.slice(r.indexOf(k+"/")+8))&&(Pe=null),(k=Le||je||Fe)&&(Le||je||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Fe))&&(Pe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Fe)?Fe:k)+" Browser")):"Electron"==Pe&&(k=(/\bChrome\/([\d.]+)\b/.exec(r)||0)[1])&&we.push("Chromium "+k),Ie||(Ie=getVersion(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",qualify(Pe),"(?:Firefox|Minefield|NetFront)"])),(k=("iCab"==De&&parseFloat(Ie)>3?"WebKit":/\bOpera\b/.test(Pe)&&(/\bOPR\b/.test(r)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(r)&&!/^(?:Trident|EdgeHTML)$/.test(De)&&"WebKit"||!De&&/\bMSIE\b/i.test(r)&&("Mac OS"==Fe?"Tasman":"Trident")||"WebKit"==De&&/\bPlayStation\b(?! Vita\b)/i.test(Pe)&&"NetFront")&&(De=[k]),"IE"==Pe&&(k=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(r)||0)[1])?(Pe+=" Mobile",Fe="Windows Phone "+(/\+$/.test(k)?k:k+".x"),we.unshift("desktop mode")):/\bWPDesktop\b/i.test(r)?(Pe="IE Mobile",Fe="Windows Phone 8.x",we.unshift("desktop mode"),Ie||(Ie=(/\brv:([\d.]+)/.exec(r)||0)[1])):"IE"!=Pe&&"Trident"==De&&(k=/\brv:([\d.]+)/.exec(r))&&(Pe&&we.push("identifying as "+Pe+(Ie?" "+Ie:"")),Pe="IE",Ie=k[1]),Oe){if(function isHostType(r,c){var u=null!=r?typeof r[c]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(u)||"object"==u&&!r[c])}(c,"global"))if(ae&&(ve=(k=ae.lang.System).getProperty("os.arch"),Fe=Fe||k.getProperty("os.name")+" "+k.getProperty("os.version")),ue){try{Ie=c.require("ringo/engine").version.join("."),Pe="RingoJS"}catch(r){(k=c.system)&&k.global.system==c.system&&(Pe="Narwhal",Fe||(Fe=k[0].os||null))}Pe||(Pe="Rhino")}else"object"==typeof c.process&&!c.process.browser&&(k=c.process)&&("object"==typeof k.versions&&("string"==typeof k.versions.electron?(we.push("Node "+k.versions.node),Pe="Electron",Ie=k.versions.electron):"string"==typeof k.versions.nw&&(we.push("Chromium "+Ie,"Node "+k.versions.node),Pe="NW.js",Ie=k.versions.nw)),Pe||(Pe="Node.js",ve=k.arch,Fe=k.platform,Ie=(Ie=/[\d.]+/.exec(k.version))?Ie[0]:null));else getClassOf(k=c.runtime)==I?(Pe="Adobe AIR",Fe=k.flash.system.Capabilities.os):getClassOf(k=c.phantom)==se?(Pe="PhantomJS",Ie=(k=k.version||null)&&k.major+"."+k.minor+"."+k.patch):"number"==typeof pe.documentMode&&(k=/\bTrident\/(\d+)/i.exec(r))?(Ie=[Ie,pe.documentMode],(k=+k[1]+4)!=Ie[1]&&(we.push("IE "+Ie[1]+" mode"),De&&(De[1]=""),Ie[1]=k),Ie="IE"==Pe?String(Ie[1].toFixed(1)):Ie[0]):"number"==typeof pe.documentMode&&/^(?:Chrome|Firefox)\b/.test(Pe)&&(we.push("masking as "+Pe+" "+Ie),Pe="IE",Ie="11.0",De=["Trident"],Fe="Windows");Fe=Fe&&format(Fe)}if(Ie&&(k=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ie)||/(?:alpha|beta)(?: ?\d)?/i.exec(r+";"+(Oe&&p.appMinorVersion))||/\bMinefield\b/i.test(r)&&"a")&&(Se=/b/i.test(k)?"beta":"alpha",Ie=Ie.replace(RegExp(k+"\\+?$"),"")+("beta"==Se?de:le)+(/\d+\+?/.exec(k)||"")),"Fennec"==Pe||"Firefox"==Pe&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Fe))Pe="Firefox Mobile";else if("Maxthon"==Pe&&Ie)Ie=Ie.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Le))"Xbox 360"==Le&&(Fe=null),"Xbox 360"==Le&&/\bIEMobile\b/.test(r)&&we.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Pe)&&(!Pe||Le||/Browser|Mobi/.test(Pe))||"Windows CE"!=Fe&&!/Mobi/i.test(r))if("IE"==Pe&&Oe)try{null===c.external&&we.unshift("platform preview")}catch(r){we.unshift("embedded")}else(/\bBlackBerry\b/.test(Le)||/\bBB10\b/.test(r))&&(k=(RegExp(Le.replace(/ +/g," *")+"/([.\\d]+)","i").exec(r)||0)[1]||Ie)?(Fe=((k=[k,/BB10/.test(r)])[1]?(Le=null,je="BlackBerry"):"Device Software")+" "+k[0],Ie=null):this!=forOwn&&"Wii"!=Le&&(Oe&&he||/Opera/.test(Pe)&&/\b(?:MSIE|Firefox)\b/i.test(r)||"Firefox"==Pe&&/\bOS X (?:\d+\.){2,}/.test(Fe)||"IE"==Pe&&(Fe&&!/^Win/.test(Fe)&&Ie>5.5||/\bWindows XP\b/.test(Fe)&&Ie>8||8==Ie&&!/\bTrident\b/.test(r)))&&!K.test(k=parse.call(forOwn,r.replace(K,"")+";"))&&k.name&&(k="ing as "+k.name+((k=k.version)?" "+k:""),K.test(Pe)?(/\bIE\b/.test(k)&&"Mac OS"==Fe&&(Fe=null),k="identify"+k):(k="mask"+k,Pe=ge?format(ge.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(k)&&(Fe=null),Oe||(Ie=null)),De=["Presto"],we.push(k));else Pe+=" Mobile";(k=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(r)||0)[1])&&(k=[parseFloat(k.replace(/\.(\d)$/,".0$1")),k],"Safari"==Pe&&"+"==k[1].slice(-1)?(Pe="WebKit Nightly",Se="alpha",Ie=k[1].slice(0,-1)):Ie!=k[1]&&Ie!=(k[2]=(/\bSafari\/([\d.]+\+?)/i.exec(r)||0)[1])||(Ie=null),k[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(r)||0)[1],537.36==k[0]&&537.36==k[2]&&parseFloat(k[1])>=28&&"WebKit"==De&&(De=["Blink"]),Oe&&(E||k[1])?(De&&(De[1]="like Chrome"),k=k[1]||((k=k[0])<530?1:k<532?2:k<532.05?3:k<533?4:k<534.03?5:k<534.07?6:k<534.1?7:k<534.13?8:k<534.16?9:k<534.24?10:k<534.3?11:k<535.01?12:k<535.02?"13+":k<535.07?15:k<535.11?16:k<535.19?17:k<536.05?18:k<536.1?19:k<537.01?20:k<537.11?"21+":k<537.13?23:k<537.18?24:k<537.24?25:k<537.36?26:"Blink"!=De?"27":"28")):(De&&(De[1]="like Safari"),k=(k=k[0])<400?1:k<500?2:k<526?3:k<533?4:k<534?"4+":k<535?5:k<537?6:k<538?7:k<601?8:k<602?9:k<604?10:k<606?11:k<608?12:"12"),De&&(De[1]+=" "+(k+="number"==typeof k?".x":/[.+]/.test(k)?"":"+")),"Safari"==Pe&&(!Ie||parseInt(Ie)>45)?Ie=k:"Chrome"==Pe&&/\bHeadlessChrome/i.test(r)&&we.unshift("headless")),"Opera"==Pe&&(k=/\bzbov|zvav$/.exec(Fe))?(Pe+=" ",we.unshift("desktop mode"),"zvav"==k?(Pe+="Mini",Ie=null):Pe+="Mobile",Fe=Fe.replace(RegExp(" *"+k+"$"),"")):"Safari"==Pe&&/\bChrome\b/.exec(De&&De[1])?(we.unshift("desktop mode"),Pe="Chrome Mobile",Ie=null,/\bOS X\b/.test(Fe)?(je="Apple",Fe="iOS 4.3+"):Fe=null):/\bSRWare Iron\b/.test(Pe)&&!Ie&&(Ie=getVersion("Chrome")),Ie&&0==Ie.indexOf(k=/[\d.]+$/.exec(Fe))&&r.indexOf("/"+k+"-")>-1&&(Fe=trim(Fe.replace(k,""))),Fe&&-1!=Fe.indexOf(Pe)&&!RegExp(Pe+" OS").test(Fe)&&(Fe=Fe.replace(RegExp(" *"+qualify(Pe)+" *"),"")),De&&!/\b(?:Avant|Nook)\b/.test(Pe)&&(/Browser|Lunascape|Maxthon/.test(Pe)||"Safari"!=Pe&&/^iOS/.test(Fe)&&/\bSafari\b/.test(De[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Pe)&&De[1])&&(k=De[De.length-1])&&we.push(k),we.length&&(we=["("+we.join("; ")+")"]),je&&Le&&Le.indexOf(je)<0&&we.push("on "+je),Le&&we.push((/^on /.test(we[we.length-1])?"":"on ")+Le),Fe&&(k=/ ([\d.+]+)$/.exec(Fe),x=k&&"/"==Fe.charAt(Fe.length-k[0].length-1),Fe={architecture:32,family:k&&!x?Fe.replace(k[0],""):Fe,version:k?k[1]:null,toString:function(){var r=this.version;return this.family+(r&&!x?" "+r:"")+(64==this.architecture?" 64-bit":"")}}),(k=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ve))&&!/\bi686\b/i.test(ve)?(Fe&&(Fe.architecture=64,Fe.family=Fe.family.replace(RegExp(" *"+k),"")),Pe&&(/\bWOW64\b/i.test(r)||Oe&&/\w(?:86|32)$/.test(p.cpuClass||p.platform)&&!/\bWin64; x64\b/i.test(r))&&we.unshift("32-bit")):Fe&&/^OS X/.test(Fe.family)&&"Chrome"==Pe&&parseFloat(Ie)>=39&&(Fe.architecture=64),r||(r=null);var Ue={};return Ue.description=r,Ue.layout=De&&De[0],Ue.manufacturer=je,Ue.name=Pe,Ue.prerelease=Se,Ue.product=Le,Ue.ua=r,Ue.version=Pe&&Ie,Ue.os=Fe||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ue.parse=parse,Ue.toString=function toStringPlatform(){return this.description||""},Ue.version&&we.unshift(Ie),Ue.name&&we.unshift(Pe),Fe&&Pe&&(Fe!=String(Fe).split(" ")[0]||Fe!=Pe.split(" ")[0]&&!Le)&&we.push(Le?"("+Fe+")":"on "+Fe),we.length&&(Ue.description=we.join(" ")),Ue}();w.platform=se,void 0===(p=function(){return se}.call(c,u,c,r))||(r.exports=p)}.call(this)},92703:(r,c,u)=>{"use strict";var p=u(50414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,r.exports=function(){function shim(r,c,u,y,w,k){if(k!==p){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}function getShim(){return shim}shim.isRequired=shim;var r={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return r.PropTypes=r,r}},45697:(r,c,u)=>{r.exports=u(92703)()},50414:r=>{"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3689:(r,c,u)=>{"use strict";u.r(c),u.d(c,{ucs2decode:()=>ucs2decode,ucs2encode:()=>ucs2encode,decode:()=>decode,encode:()=>encode,toASCII:()=>toASCII,toUnicode:()=>toUnicode,default:()=>K});const p=2147483647,y=/^xn--/,w=/[^\0-\x7E]/,k=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=Math.floor,I=String.fromCharCode;function error(r){throw new RangeError(x[r])}function mapDomain(r,c){const u=r.split("@");let p="";u.length>1&&(p=u[0]+"@",r=u[1]);const y=function map(r,c){const u=[];let p=r.length;for(;p--;)u[p]=c(r[p]);return u}((r=r.replace(k,".")).split("."),c).join(".");return p+y}function ucs2decode(r){const c=[];let u=0;const p=r.length;for(;u<p;){const y=r.charCodeAt(u++);if(y>=55296&&y<=56319&&u<p){const p=r.charCodeAt(u++);56320==(64512&p)?c.push(((1023&y)<<10)+(1023&p)+65536):(c.push(y),u--)}else c.push(y)}return c}const ucs2encode=r=>String.fromCodePoint(...r),digitToBasic=function(r,c){return r+22+75*(r<26)-((0!=c)<<5)},adapt=function(r,c,u){let p=0;for(r=u?E(r/700):r>>1,r+=E(r/c);r>455;p+=36)r=E(r/35);return E(p+36*r/(r+38))},decode=function(r){const c=[],u=r.length;let y=0,w=128,k=72,x=r.lastIndexOf("-");x<0&&(x=0);for(let u=0;u<x;++u)r.charCodeAt(u)>=128&&error("not-basic"),c.push(r.charCodeAt(u));for(let K=x>0?x+1:0;K<u;){let x=y;for(let c=1,w=36;;w+=36){K>=u&&error("invalid-input");const x=(I=r.charCodeAt(K++))-48<10?I-22:I-65<26?I-65:I-97<26?I-97:36;(x>=36||x>E((p-y)/c))&&error("overflow"),y+=x*c;const J=w<=k?1:w>=k+26?26:w-k;if(x<J)break;const ie=36-J;c>E(p/ie)&&error("overflow"),c*=ie}const J=c.length+1;k=adapt(y-x,J,0==x),E(y/J)>p-w&&error("overflow"),w+=E(y/J),y%=J,c.splice(y++,0,w)}var I;return String.fromCodePoint(...c)},encode=function(r){const c=[];let u=(r=ucs2decode(r)).length,y=128,w=0,k=72;for(const u of r)u<128&&c.push(I(u));let x=c.length,K=x;for(x&&c.push("-");K<u;){let u=p;for(const c of r)c>=y&&c<u&&(u=c);const J=K+1;u-y>E((p-w)/J)&&error("overflow"),w+=(u-y)*J,y=u;for(const u of r)if(u<y&&++w>p&&error("overflow"),u==y){let r=w;for(let u=36;;u+=36){const p=u<=k?1:u>=k+26?26:u-k;if(r<p)break;const y=r-p,w=36-p;c.push(I(digitToBasic(p+y%w,0))),r=E(y/w)}c.push(I(digitToBasic(r,0))),k=adapt(w,J,K==x),w=0,++K}++w,++y}return c.join("")},toUnicode=function(r){return mapDomain(r,(function(r){return y.test(r)?decode(r.slice(4).toLowerCase()):r}))},toASCII=function(r){return mapDomain(r,(function(r){return w.test(r)?"xn--"+encode(r):r}))},K={version:"2.1.0",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode}},61269:r=>{"use strict";class QuickLRU{constructor(r={}){if(!(r.maxSize&&r.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=r.maxSize,this.onEviction=r.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(r,c){if(this.cache.set(r,c),this._size++,this._size>=this.maxSize){if(this._size=0,"function"==typeof this.onEviction)for(const[r,c]of this.oldCache.entries())this.onEviction(r,c);this.oldCache=this.cache,this.cache=new Map}}get(r){if(this.cache.has(r))return this.cache.get(r);if(this.oldCache.has(r)){const c=this.oldCache.get(r);return this.oldCache.delete(r),this._set(r,c),c}}set(r,c){return this.cache.has(r)?this.cache.set(r,c):this._set(r,c),this}has(r){return this.cache.has(r)||this.oldCache.has(r)}peek(r){return this.cache.has(r)?this.cache.get(r):this.oldCache.has(r)?this.oldCache.get(r):void 0}delete(r){const c=this.cache.delete(r);return c&&this._size--,this.oldCache.delete(r)||c}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[r]of this)yield r}*values(){for(const[,r]of this)yield r}*[Symbol.iterator](){for(const r of this.cache)yield r;for(const r of this.oldCache){const[c]=r;this.cache.has(c)||(yield r)}}get size(){let r=0;for(const c of this.oldCache.keys())this.cache.has(c)||r++;return Math.min(this._size+r,this.maxSize)}}r.exports=QuickLRU},69921:(r,c)=>{"use strict";var u="function"==typeof Symbol&&Symbol.for,p=u?Symbol.for("react.element"):60103,y=u?Symbol.for("react.portal"):60106,w=u?Symbol.for("react.fragment"):60107,k=u?Symbol.for("react.strict_mode"):60108,x=u?Symbol.for("react.profiler"):60114,E=u?Symbol.for("react.provider"):60109,I=u?Symbol.for("react.context"):60110,K=u?Symbol.for("react.async_mode"):60111,J=u?Symbol.for("react.concurrent_mode"):60111,ie=u?Symbol.for("react.forward_ref"):60112,oe=u?Symbol.for("react.suspense"):60113,se=u?Symbol.for("react.suspense_list"):60120,ae=u?Symbol.for("react.memo"):60115,ue=u?Symbol.for("react.lazy"):60116,le=u?Symbol.for("react.block"):60121,de=u?Symbol.for("react.fundamental"):60117,pe=u?Symbol.for("react.responder"):60118,he=u?Symbol.for("react.scope"):60119;function z(r){if("object"==typeof r&&null!==r){var c=r.$$typeof;switch(c){case p:switch(r=r.type){case K:case J:case w:case x:case k:case oe:return r;default:switch(r=r&&r.$$typeof){case I:case ie:case ue:case ae:case E:return r;default:return c}}case y:return c}}}function A(r){return z(r)===J}c.AsyncMode=K,c.ConcurrentMode=J,c.ContextConsumer=I,c.ContextProvider=E,c.Element=p,c.ForwardRef=ie,c.Fragment=w,c.Lazy=ue,c.Memo=ae,c.Portal=y,c.Profiler=x,c.StrictMode=k,c.Suspense=oe,c.isAsyncMode=function(r){return A(r)||z(r)===K},c.isConcurrentMode=A,c.isContextConsumer=function(r){return z(r)===I},c.isContextProvider=function(r){return z(r)===E},c.isElement=function(r){return"object"==typeof r&&null!==r&&r.$$typeof===p},c.isForwardRef=function(r){return z(r)===ie},c.isFragment=function(r){return z(r)===w},c.isLazy=function(r){return z(r)===ue},c.isMemo=function(r){return z(r)===ae},c.isPortal=function(r){return z(r)===y},c.isProfiler=function(r){return z(r)===x},c.isStrictMode=function(r){return z(r)===k},c.isSuspense=function(r){return z(r)===oe},c.isValidElementType=function(r){return"string"==typeof r||"function"==typeof r||r===w||r===J||r===x||r===k||r===oe||r===se||"object"==typeof r&&null!==r&&(r.$$typeof===ue||r.$$typeof===ae||r.$$typeof===E||r.$$typeof===I||r.$$typeof===ie||r.$$typeof===de||r.$$typeof===pe||r.$$typeof===he||r.$$typeof===le)},c.typeOf=z},59864:(r,c,u)=>{"use strict";r.exports=u(69921)},19470:(r,c,u)=>{"use strict";function _objectWithoutProperties(r,c){var u={};for(var p in r)c.indexOf(p)>=0||Object.prototype.hasOwnProperty.call(r,p)&&(u[p]=r[p]);return u}function make(r,c){var u=c.distance,p=c.left,w=c.right,k=c.up,E=c.down,I=c.top,K=c.bottom,J=c.big,ie=c.mirror,oe=c.opposite,se=(u?u.toString():0)+((p?1:0)|(w?2:0)|(I||E?4:0)|(K||k?8:0)|(ie?16:0)|(oe?32:0)|(r?64:0)|(J?128:0));if(x.hasOwnProperty(se))return x[se];var ae=p||w||k||E||I||K,ue=void 0,le=void 0;if(ae){if(!ie!=!(r&&oe)){var de=[w,p,K,I,E,k];p=de[0],w=de[1],I=de[2],K=de[3],k=de[4],E=de[5]}var pe=u||(J?"2000px":"100%");ue=p?"-"+pe:w?pe:"0",le=E||I?"-"+pe:k||K?pe:"0"}return x[se]=(0,y.animation)((r?"to":"from")+" {opacity: 0;"+(ae?" transform: translate3d("+ue+", "+le+", 0);":"")+"}\n     "+(r?"from":"to")+" {opacity: 1;transform: none;} "),x[se]}function Fade(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.defaults,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=r.children,p=(r.out,r.forever),k=r.timeout,x=r.duration,E=void 0===x?y.defaults.duration:x,I=r.delay,K=void 0===I?y.defaults.delay:I,J=r.count,ie=void 0===J?y.defaults.count:J,oe=_objectWithoutProperties(r,["children","out","forever","timeout","duration","delay","count"]),se={make,duration:void 0===k?E:k,delay:K,forever:p,count:ie,style:{animationFillMode:"both"},reverse:oe.left};return c?(0,w.default)(oe,se,se,u):se}Object.defineProperty(c,"__esModule",{value:!0});var p=u(45697),y=u(11017),w=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(42580)),k={out:p.bool,left:p.bool,right:p.bool,top:p.bool,bottom:p.bool,big:p.bool,mirror:p.bool,opposite:p.bool,duration:p.number,timeout:p.number,distance:p.string,delay:p.number,count:p.number,forever:p.bool},x={};Fade.propTypes=k,c.default=Fade,r.exports=c.default},25792:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_slicedToArray=function(r,c){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return function e(r,c){var u=[],p=!0,y=!1,w=void 0;try{for(var k,x=r[Symbol.iterator]();!(p=(k=x.next()).done)&&(u.push(k.value),!c||u.length!==c);p=!0);}catch(r){y=!0,w=r}finally{try{!p&&x.return&&x.return()}finally{if(y)throw w}}return u}(r,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=Object.assign||function(r){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(r[p]=u[p])}return r},w=function(){function e(r,c){for(var u=0;u<c.length;u++){var p=c[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}return function(r,c,u){return c&&e(r.prototype,c),u&&e(r,u),r}}(),k=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(u(67294)),x=u(45697),E=u(11017),I=(0,x.shape)({make:x.func,duration:x.number.isRequired,delay:x.number.isRequired,forever:x.bool,count:x.number.isRequired,style:x.object.isRequired,reverse:x.bool}),K={collapse:x.bool,collapseEl:x.element,cascade:x.bool,wait:x.number,force:x.bool,disabled:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,fraction:x.number,refProp:x.string,innerRef:x.func,onReveal:x.func,unmountOnExit:x.bool,mountOnEnter:x.bool,inEffect:I.isRequired,outEffect:(0,x.oneOfType)([I,(0,x.oneOf)([!1])]).isRequired,ssrReveal:x.bool,collapseOnly:x.bool,ssrFadeout:x.bool},J={transitionGroup:x.object},ie=function(r){function t(r,c){!function _classCallCheck(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function _possibleConstructorReturn(r,c){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?r:c}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,c));return u.isOn=void 0===r.when||!!r.when,u.state={collapse:r.collapse?t.getInitialCollapseStyle(r):void 0,style:{opacity:u.isOn&&!r.ssrReveal||!r.outEffect?void 0:0}},u.savedChild=!1,u.isShown=!1,E.observerMode?u.handleObserve=u.handleObserve.bind(u):(u.revealHandler=u.makeHandler(u.reveal),u.resizeHandler=u.makeHandler(u.resize)),u.saveRef=u.saveRef.bind(u),u}return function _inherits(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);r.prototype=Object.create(c&&c.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(r,c):r.__proto__=c)}(t,r),w(t,[{key:"saveRef",value:function(r){this.childRef&&this.childRef(r),this.props.innerRef&&this.props.innerRef(r),this.el!==r&&(this.el=r&&"offsetHeight"in r?r:void 0,this.observe(this.props,!0))}},{key:"invisible",value:function(){this&&this.el&&(this.savedChild=!1,this.isShown||(this.setState({hasExited:!0,collapse:this.props.collapse?y({},this.state.collapse,{visibility:"hidden"}):null,style:{opacity:0}}),!E.observerMode&&this.props.collapse&&window.document.dispatchEvent(E.collapseend)))}},{key:"animationEnd",value:function(r,c,u){var p=this,y=u.forever,w=u.count,k=u.delay,x=u.duration;if(!y){this.animationEndTimeout=window.setTimeout((function(){p&&p.el&&(p.animationEndTimeout=void 0,r.call(p))}),k+(x+(c?x:0)*w))}}},{key:"getDimensionValue",value:function(){return this.el.offsetHeight+parseInt(window.getComputedStyle(this.el,null).getPropertyValue("margin-top"),10)+parseInt(window.getComputedStyle(this.el,null).getPropertyValue("margin-bottom"),10)}},{key:"collapse",value:function(r,c,u){var p=u.duration+(c.cascade?u.duration:0),y=this.isOn?this.getDimensionValue():0,w=void 0,k=void 0;if(c.collapseOnly)w=u.duration/3,k=u.delay;else{var x=p>>2,E=x>>1;w=x,k=u.delay+(this.isOn?0:p-x-E),r.style.animationDuration=p-x+(this.isOn?E:-E)+"ms",r.style.animationDelay=u.delay+(this.isOn?x-E:0)+"ms"}return r.collapse={height:y,transition:"height "+w+"ms ease "+k+"ms",overflow:c.collapseOnly?"hidden":void 0},r}},{key:"animate",value:function(r){if(this&&this.el&&(this.unlisten(),this.isShown!==this.isOn)){this.isShown=this.isOn;var c=!this.isOn&&r.outEffect,u=r[c?"outEffect":"inEffect"],p="style"in u&&u.style.animationName||void 0,w=void 0;r.collapseOnly?w={hasAppeared:!0,hasExited:!1,style:{opacity:1}}:((r.outEffect||this.isOn)&&u.make&&(p=u.make),w={hasAppeared:!0,hasExited:!1,collapse:void 0,style:y({},u.style,{animationDuration:u.duration+"ms",animationDelay:u.delay+"ms",animationIterationCount:u.forever?"infinite":u.count,opacity:1,animationName:p}),className:u.className}),this.setState(r.collapse?this.collapse(w,r,u):w),c?(this.savedChild=k.default.cloneElement(this.getChild()),this.animationEnd(this.invisible,r.cascade,u)):this.savedChild=!1,this.onReveal(r)}}},{key:"onReveal",value:function(r){r.onReveal&&this.isOn&&(this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),r.wait?this.onRevealTimeout=window.setTimeout(r.onReveal,r.wait):r.onReveal())}},{key:"componentWillUnmount",value:function(){this.unlisten(),E.ssr&&(0,E.disableSsr)()}},{key:"handleObserve",value:function(r,c){_slicedToArray(r,1)[0].intersectionRatio>0&&(c.disconnect(),this.observer=null,this.reveal(this.props,!0))}},{key:"observe",value:function(r){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.el&&E.observerMode){if(this.observer){if(!c)return;this.observer.disconnect()}else if(c)return;this.observer=new IntersectionObserver(this.handleObserve,{threshold:r.fraction}),this.observer.observe(this.el)}}},{key:"reveal",value:function(r){var c=this,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1];E.globalHide||(0,E.hideAll)(),this&&this.el&&(r||(r=this.props),E.ssr&&(0,E.disableSsr)(),this.isOn&&this.isShown&&void 0!==r.spy?(this.isShown=!1,this.setState({style:{}}),window.setTimeout((function(){return c.reveal(r)}),200)):u||this.inViewport(r)||r.force?this.animate(r):E.observerMode?this.observe(r):this.listen())}},{key:"componentDidMount",value:function(){var r=this;if(this.el&&!this.props.disabled){this.props.collapseOnly||("make"in this.props.inEffect&&this.props.inEffect.make(!1,this.props),void 0!==this.props.when&&this.props.outEffect&&"make"in this.props.outEffect&&this.props.outEffect.make(!0,this.props));var c=this.context.transitionGroup,u=c&&!c.isMounting?!("enter"in this.props&&!1===this.props.enter):this.props.appear;return this.isOn&&((void 0!==this.props.when||void 0!==this.props.spy)&&!u||E.ssr&&!E.fadeOutEnabled&&!this.props.ssrFadeout&&this.props.outEffect&&!this.props.ssrReveal&&t.getTop(this.el)<window.pageYOffset+window.innerHeight)?(this.isShown=!0,this.setState({hasAppeared:!0,collapse:this.props.collapse?{height:this.getDimensionValue()}:this.state.collapse,style:{opacity:1}}),void this.onReveal(this.props)):E.ssr&&(E.fadeOutEnabled||this.props.ssrFadeout)&&this.props.outEffect&&t.getTop(this.el)<window.pageYOffset+window.innerHeight?(this.setState({style:{opacity:0,transition:"opacity 1000ms 1000ms"}}),void window.setTimeout((function(){return r.reveal(r.props,!0)}),2e3)):void(this.isOn&&(this.props.force?this.animate(this.props):this.reveal(this.props)))}}},{key:"cascade",value:function(r){var c=this,u=void 0;u="string"==typeof r?r.split("").map((function(r,c){return k.default.createElement("span",{key:c,style:{display:"inline-block",whiteSpace:"pre"}},r)})):k.default.Children.toArray(r);var w=this.props[this.isOn||!this.props.outEffect?"inEffect":"outEffect"],x=w.duration,I=w.reverse,K=u.length,J=2*x;this.props.collapse&&(J=parseInt(this.state.style.animationDuration,10),x=J/2);var ie=I?K:0;return u.map((function(r){return"object"===(void 0===r?"undefined":p(r))&&r?k.default.cloneElement(r,{style:y({},r.props.style,c.state.style,{animationDuration:Math.round((0,E.cascade)(I?ie--:ie++,0,K,x,J))+"ms"})}):r}))}},{key:"componentWillReceiveProps",value:function(r){void 0!==r.when&&(this.isOn=!!r.when),r.fraction!==this.props.fraction&&this.observe(r,!0),!this.isOn&&r.onExited&&"exit"in r&&!1===r.exit?r.onExited():r.disabled||(r.collapse&&!this.props.collapse&&(this.setState({style:{},collapse:t.getInitialCollapseStyle(r)}),this.isShown=!1),r.when===this.props.when&&r.spy===this.props.spy||this.reveal(r),this.onRevealTimeout&&!this.isOn&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)))}},{key:"getChild",value:function(){if(this.savedChild&&!this.props.disabled)return this.savedChild;if("object"===p(this.props.children)){var r=k.default.Children.only(this.props.children);return"type"in r&&"string"==typeof r.type||"ref"!==this.props.refProp?r:k.default.createElement("div",null,r)}return k.default.createElement("div",null,this.props.children)}},{key:"render",value:function(){var r;r=this.state.hasAppeared?!this.props.unmountOnExit||!this.state.hasExited||this.isOn:!this.props.mountOnEnter||this.isOn;var c=this.getChild();"function"==typeof c.ref&&(this.childRef=c.ref);var u=!1,p=c.props,w=p.style,x=p.className,I=p.children,K=this.props.disabled?x:(this.props.outEffect?E.namespace:"")+(this.state.className?" "+this.state.className:"")+(x?" "+x:"")||void 0,J=void 0;"function"==typeof this.state.style.animationName&&(this.state.style.animationName=this.state.style.animationName(!this.isOn,this.props)),this.props.cascade&&!this.props.disabled&&I&&this.state.style.animationName?(u=this.cascade(I),J=y({},w,{opacity:1})):J=this.props.disabled?w:y({},w,this.state.style);var ie=y({},this.props.props,function _defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}({className:K,style:J},this.props.refProp,this.saveRef)),oe=k.default.cloneElement(c,ie,r?u||I:void 0);return void 0!==this.props.collapse?this.props.collapseEl?k.default.cloneElement(this.props.collapseEl,{style:y({},this.props.collapseEl.style,this.props.disabled?void 0:this.state.collapse),children:oe}):k.default.createElement("div",{style:this.props.disabled?void 0:this.state.collapse,children:oe}):oe}},{key:"makeHandler",value:function(r){var c=this,i=function(){r.call(c,c.props),c.ticking=!1};return function(){c.ticking||((0,E.raf)(i),c.ticking=!0)}}},{key:"inViewport",value:function(r){if(!this.el||window.document.hidden)return!1;var c=this.el.offsetHeight,u=window.pageYOffset-t.getTop(this.el),p=Math.min(c,window.innerHeight)*(E.globalHide?r.fraction:0);return u>p-window.innerHeight&&u<c-p}},{key:"resize",value:function(r){this&&this.el&&this.isOn&&this.inViewport(r)&&(this.unlisten(),this.isShown=this.isOn,this.setState({hasExited:!this.isOn,hasAppeared:!0,collapse:void 0,style:{opacity:this.isOn||!r.outEffect?1:0}}),this.onReveal(r))}},{key:"listen",value:function(){E.observerMode||this.isListener||(this.isListener=!0,window.addEventListener("scroll",this.revealHandler,{passive:!0}),window.addEventListener("orientationchange",this.revealHandler,{passive:!0}),window.document.addEventListener("visibilitychange",this.revealHandler,{passive:!0}),window.document.addEventListener("collapseend",this.revealHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler,{passive:!0}))}},{key:"unlisten",value:function(){!E.observerMode&&this.isListener&&(window.removeEventListener("scroll",this.revealHandler,{passive:!0}),window.removeEventListener("orientationchange",this.revealHandler,{passive:!0}),window.document.removeEventListener("visibilitychange",this.revealHandler,{passive:!0}),window.document.removeEventListener("collapseend",this.revealHandler,{passive:!0}),window.removeEventListener("resize",this.resizeHandler,{passive:!0}),this.isListener=!1),this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),this.animationEndTimeout&&(this.animationEndTimeout=window.clearTimeout(this.animationEndTimeout))}}],[{key:"getInitialCollapseStyle",value:function(r){return{height:0,visibility:r.when?void 0:"hidden"}}},{key:"getTop",value:function(r){for(;void 0===r.offsetTop;)r=r.parentNode;for(var c=r.offsetTop;r.offsetParent;c+=r.offsetTop)r=r.offsetParent;return c}}]),t}(k.default.Component);ie.propTypes=K,ie.defaultProps={fraction:.2,refProp:"ref"},ie.contextTypes=J,ie.displayName="RevealBase",c.default=ie,r.exports=c.default},11017:(r,c)=>{"use strict";function insertRule(r){try{return J.insertRule(r,J.cssRules.length)}catch(r){console.warn("react-reveal - animation failed")}}function hideAll(){x||(c.globalHide=x=!0,window.removeEventListener("scroll",hideAll,!0),insertRule("."+u+" { opacity: 0; }"),window.removeEventListener("orientationchange",hideAll,!0),window.document.removeEventListener("visibilitychange",hideAll))}Object.defineProperty(c,"__esModule",{value:!0}),c.insertRule=insertRule,c.cascade=function cascade(r,c,u,p,y){var w=Math.log(p),k=(Math.log(y)-w)/(u-c);return Math.exp(w+k*(r-c))},c.animation=function animation(r){if(!J)return"";var c="@keyframes "+(ie+I)+"{"+r+"}",u=K[r];return u?""+ie+u:(J.insertRule(c,J.cssRules.length),K[r]=I,""+ie+I++)},c.hideAll=hideAll,c.default=function config(r){var u=r.ssrFadeout;c.fadeOutEnabled=u};var u=c.namespace="react-reveal",p=(c.defaults={duration:1e3,delay:0,count:1},c.ssr=!0),y=c.observerMode=!1,w=c.raf=function(r){return window.setTimeout(r,66)},k=c.disableSsr=function(){return c.ssr=p=!1},x=(c.fadeOutEnabled=!1,c.ssrFadeout=function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c.fadeOutEnabled=r},c.globalHide=!1),E=(c.ie10=!1,c.collapseend=void 0),I=1,K={},J=!1,ie=u+"-"+Math.floor(1e15*Math.random())+"-";if("undefined"!=typeof window&&"nodejs"!==window.name&&window.document&&"undefined"!=typeof navigator){c.observerMode=y="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&/\{\s*\[native code\]\s*\}/.test(""+IntersectionObserver),c.raf=w=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||w,c.ssr=p=window.document.querySelectorAll("div[data-reactroot]").length>0,-1!==navigator.appVersion.indexOf("MSIE 10")&&(c.ie10=!0),p&&"performance"in window&&"timing"in window.performance&&"domContentLoadedEventEnd"in window.performance.timing&&window.performance.timing.domLoading&&Date.now()-window.performance.timing.domLoading<300&&(c.ssr=p=!1),p&&window.setTimeout(k,1500),y||(c.collapseend=E=document.createEvent("Event"),E.initEvent("collapseend",!0,!0));var oe=document.createElement("style");document.head.appendChild(oe),oe.sheet&&oe.sheet.cssRules&&oe.sheet.insertRule&&(J=oe.sheet,window.addEventListener("scroll",hideAll,!0),window.addEventListener("orientationchange",hideAll,!0),window.document.addEventListener("visibilitychange",hideAll))}},42580:(r,c,u)=>{"use strict";function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(c,"__esModule",{value:!0});var p=Object.assign||function(r){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(r[p]=u[p])}return r};c.default=function wrap(r,c,u,k){return"in"in r&&(r.when=r.in),y.default.Children.count(k)<2?y.default.createElement(w.default,p({},r,{inEffect:c,outEffect:u,children:k})):(k=y.default.Children.map(k,(function(k){return y.default.createElement(w.default,p({},r,{inEffect:c,outEffect:u,children:k}))})),"Fragment"in y.default?y.default.createElement(y.default.Fragment,null,k):y.default.createElement("span",null,k))};var y=_interopRequireDefault(u(67294)),w=_interopRequireDefault(u(25792));r.exports=c.default},72408:(r,c,u)=>{"use strict";var p=u(27418),y="function"==typeof Symbol&&Symbol.for,w=y?Symbol.for("react.element"):60103,k=y?Symbol.for("react.portal"):60106,x=y?Symbol.for("react.fragment"):60107,E=y?Symbol.for("react.strict_mode"):60108,I=y?Symbol.for("react.profiler"):60114,K=y?Symbol.for("react.provider"):60109,J=y?Symbol.for("react.context"):60110,ie=y?Symbol.for("react.forward_ref"):60112,oe=y?Symbol.for("react.suspense"):60113,se=y?Symbol.for("react.memo"):60115,ae=y?Symbol.for("react.lazy"):60116,ue="function"==typeof Symbol&&Symbol.iterator;function C(r){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+r,u=1;u<arguments.length;u++)c+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+r+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var le={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},de={};function F(r,c,u){this.props=r,this.context=c,this.refs=de,this.updater=u||le}function G(){}function H(r,c,u){this.props=r,this.context=c,this.refs=de,this.updater=u||le}F.prototype.isReactComponent={},F.prototype.setState=function(r,c){if("object"!=typeof r&&"function"!=typeof r&&null!=r)throw Error(C(85));this.updater.enqueueSetState(this,r,c,"setState")},F.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")},G.prototype=F.prototype;var pe=H.prototype=new G;pe.constructor=H,p(pe,F.prototype),pe.isPureReactComponent=!0;var he={current:null},ge=Object.prototype.hasOwnProperty,ve={key:!0,ref:!0,__self:!0,__source:!0};function M(r,c,u){var p,y={},k=null,x=null;if(null!=c)for(p in void 0!==c.ref&&(x=c.ref),void 0!==c.key&&(k=""+c.key),c)ge.call(c,p)&&!ve.hasOwnProperty(p)&&(y[p]=c[p]);var E=arguments.length-2;if(1===E)y.children=u;else if(1<E){for(var I=Array(E),K=0;K<E;K++)I[K]=arguments[K+2];y.children=I}if(r&&r.defaultProps)for(p in E=r.defaultProps)void 0===y[p]&&(y[p]=E[p]);return{$$typeof:w,type:r,key:k,ref:x,props:y,_owner:he.current}}function O(r){return"object"==typeof r&&null!==r&&r.$$typeof===w}var we=/\/+/g,Se=[];function R(r,c,u,p){if(Se.length){var y=Se.pop();return y.result=r,y.keyPrefix=c,y.func=u,y.context=p,y.count=0,y}return{result:r,keyPrefix:c,func:u,context:p,count:0}}function S(r){r.result=null,r.keyPrefix=null,r.func=null,r.context=null,r.count=0,10>Se.length&&Se.push(r)}function V(r,c,u){return null==r?0:function T(r,c,u,p){var y=typeof r;"undefined"!==y&&"boolean"!==y||(r=null);var x=!1;if(null===r)x=!0;else switch(y){case"string":case"number":x=!0;break;case"object":switch(r.$$typeof){case w:case k:x=!0}}if(x)return u(p,r,""===c?"."+U(r,0):c),1;if(x=0,c=""===c?".":c+":",Array.isArray(r))for(var E=0;E<r.length;E++){var I=c+U(y=r[E],E);x+=T(y,I,u,p)}else if(null===r||"object"!=typeof r?I=null:I="function"==typeof(I=ue&&r[ue]||r["@@iterator"])?I:null,"function"==typeof I)for(r=I.call(r),E=0;!(y=r.next()).done;)x+=T(y=y.value,I=c+U(y,E++),u,p);else if("object"===y)throw u=""+r,Error(C(31,"[object Object]"===u?"object with keys {"+Object.keys(r).join(", ")+"}":u,""));return x}(r,"",c,u)}function U(r,c){return"object"==typeof r&&null!==r&&null!=r.key?function escape(r){var c={"=":"=0",":":"=2"};return"$"+(""+r).replace(/[=:]/g,(function(r){return c[r]}))}(r.key):c.toString(36)}function W(r,c){r.func.call(r.context,c,r.count++)}function aa(r,c,u){var p=r.result,y=r.keyPrefix;r=r.func.call(r.context,c,r.count++),Array.isArray(r)?X(r,p,u,(function(r){return r})):null!=r&&(O(r)&&(r=function N(r,c){return{$$typeof:w,type:r.type,key:c,ref:r.ref,props:r.props,_owner:r._owner}}(r,y+(!r.key||c&&c.key===r.key?"":(""+r.key).replace(we,"$&/")+"/")+u)),p.push(r))}function X(r,c,u,p,y){var w="";null!=u&&(w=(""+u).replace(we,"$&/")+"/"),V(r,aa,c=R(c,w,p,y)),S(c)}var Oe={current:null};function Z(){var r=Oe.current;if(null===r)throw Error(C(321));return r}var Ie={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:he,IsSomeRendererActing:{current:!1},assign:p};c.Children={map:function(r,c,u){if(null==r)return r;var p=[];return X(r,p,null,c,u),p},forEach:function(r,c,u){if(null==r)return r;V(r,W,c=R(null,null,c,u)),S(c)},count:function(r){return V(r,(function(){return null}),null)},toArray:function(r){var c=[];return X(r,c,null,(function(r){return r})),c},only:function(r){if(!O(r))throw Error(C(143));return r}},c.Component=F,c.Fragment=x,c.Profiler=I,c.PureComponent=H,c.StrictMode=E,c.Suspense=oe,c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ie,c.cloneElement=function(r,c,u){if(null==r)throw Error(C(267,r));var y=p({},r.props),k=r.key,x=r.ref,E=r._owner;if(null!=c){if(void 0!==c.ref&&(x=c.ref,E=he.current),void 0!==c.key&&(k=""+c.key),r.type&&r.type.defaultProps)var I=r.type.defaultProps;for(K in c)ge.call(c,K)&&!ve.hasOwnProperty(K)&&(y[K]=void 0===c[K]&&void 0!==I?I[K]:c[K])}var K=arguments.length-2;if(1===K)y.children=u;else if(1<K){I=Array(K);for(var J=0;J<K;J++)I[J]=arguments[J+2];y.children=I}return{$$typeof:w,type:r.type,key:k,ref:x,props:y,_owner:E}},c.createContext=function(r,c){return void 0===c&&(c=null),(r={$$typeof:J,_calculateChangedBits:c,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:K,_context:r},r.Consumer=r},c.createElement=M,c.createFactory=function(r){var c=M.bind(null,r);return c.type=r,c},c.createRef=function(){return{current:null}},c.forwardRef=function(r){return{$$typeof:ie,render:r}},c.isValidElement=O,c.lazy=function(r){return{$$typeof:ae,_ctor:r,_status:-1,_result:null}},c.memo=function(r,c){return{$$typeof:se,type:r,compare:void 0===c?null:c}},c.useCallback=function(r,c){return Z().useCallback(r,c)},c.useContext=function(r,c){return Z().useContext(r,c)},c.useDebugValue=function(){},c.useEffect=function(r,c){return Z().useEffect(r,c)},c.useImperativeHandle=function(r,c,u){return Z().useImperativeHandle(r,c,u)},c.useLayoutEffect=function(r,c){return Z().useLayoutEffect(r,c)},c.useMemo=function(r,c){return Z().useMemo(r,c)},c.useReducer=function(r,c,u){return Z().useReducer(r,c,u)},c.useRef=function(r){return Z().useRef(r)},c.useState=function(r){return Z().useState(r)},c.version="16.14.0"},67294:(r,c,u)=>{"use strict";r.exports=u(72408)},35666:r=>{var c=function(r){"use strict";var c=Object.prototype,u=c.hasOwnProperty,p="function"==typeof Symbol?Symbol:{},y=p.iterator||"@@iterator",w=p.asyncIterator||"@@asyncIterator",k=p.toStringTag||"@@toStringTag";function define(r,c,u){return Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}),r[c]}try{define({},"")}catch(r){define=function(r,c,u){return r[c]=u}}function wrap(r,c,u,p){var y=c&&c.prototype instanceof Generator?c:Generator,w=Object.create(y.prototype),k=new Context(p||[]);return w._invoke=function makeInvokeMethod(r,c,u){var p="suspendedStart";return function invoke(y,w){if("executing"===p)throw new Error("Generator is already running");if("completed"===p){if("throw"===y)throw w;return doneResult()}for(u.method=y,u.arg=w;;){var k=u.delegate;if(k){var E=maybeInvokeDelegate(k,u);if(E){if(E===x)continue;return E}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===p)throw p="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);p="executing";var I=tryCatch(r,c,u);if("normal"===I.type){if(p=u.done?"completed":"suspendedYield",I.arg===x)continue;return{value:I.arg,done:u.done}}"throw"===I.type&&(p="completed",u.method="throw",u.arg=I.arg)}}}(r,u,k),w}function tryCatch(r,c,u){try{return{type:"normal",arg:r.call(c,u)}}catch(r){return{type:"throw",arg:r}}}r.wrap=wrap;var x={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var E={};E[y]=function(){return this};var I=Object.getPrototypeOf,K=I&&I(I(values([])));K&&K!==c&&u.call(K,y)&&(E=K);var J=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(E);function defineIteratorMethods(r){["next","throw","return"].forEach((function(c){define(r,c,(function(r){return this._invoke(c,r)}))}))}function AsyncIterator(r,c){var p;this._invoke=function enqueue(y,w){function callInvokeWithMethodAndArg(){return new c((function(p,k){!function invoke(p,y,w,k){var x=tryCatch(r[p],r,y);if("throw"!==x.type){var E=x.arg,I=E.value;return I&&"object"==typeof I&&u.call(I,"__await")?c.resolve(I.__await).then((function(r){invoke("next",r,w,k)}),(function(r){invoke("throw",r,w,k)})):c.resolve(I).then((function(r){E.value=r,w(E)}),(function(r){return invoke("throw",r,w,k)}))}k(x.arg)}(y,w,p,k)}))}return p=p?p.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(r,c){var u=r.iterator[c.method];if(void 0===u){if(c.delegate=null,"throw"===c.method){if(r.iterator.return&&(c.method="return",c.arg=void 0,maybeInvokeDelegate(r,c),"throw"===c.method))return x;c.method="throw",c.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var p=tryCatch(u,r.iterator,c.arg);if("throw"===p.type)return c.method="throw",c.arg=p.arg,c.delegate=null,x;var y=p.arg;return y?y.done?(c[r.resultName]=y.value,c.next=r.nextLoc,"return"!==c.method&&(c.method="next",c.arg=void 0),c.delegate=null,x):y:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,x)}function pushTryEntry(r){var c={tryLoc:r[0]};1 in r&&(c.catchLoc=r[1]),2 in r&&(c.finallyLoc=r[2],c.afterLoc=r[3]),this.tryEntries.push(c)}function resetTryEntry(r){var c=r.completion||{};c.type="normal",delete c.arg,r.completion=c}function Context(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r){var c=r[y];if(c)return c.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var p=-1,w=function next(){for(;++p<r.length;)if(u.call(r,p))return next.value=r[p],next.done=!1,next;return next.value=void 0,next.done=!0,next};return w.next=w}}return{next:doneResult}}function doneResult(){return{value:void 0,done:!0}}return GeneratorFunction.prototype=J.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,k,"GeneratorFunction"),r.isGeneratorFunction=function(r){var c="function"==typeof r&&r.constructor;return!!c&&(c===GeneratorFunction||"GeneratorFunction"===(c.displayName||c.name))},r.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,GeneratorFunctionPrototype):(r.__proto__=GeneratorFunctionPrototype,define(r,k,"GeneratorFunction")),r.prototype=Object.create(J),r},r.awrap=function(r){return{__await:r}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[w]=function(){return this},r.AsyncIterator=AsyncIterator,r.async=function(c,u,p,y,w){void 0===w&&(w=Promise);var k=new AsyncIterator(wrap(c,u,p,y),w);return r.isGeneratorFunction(u)?k:k.next().then((function(r){return r.done?r.value:k.next()}))},defineIteratorMethods(J),define(J,k,"Generator"),J[y]=function(){return this},J.toString=function(){return"[object Generator]"},r.keys=function(r){var c=[];for(var u in r)c.push(u);return c.reverse(),function next(){for(;c.length;){var u=c.pop();if(u in r)return next.value=u,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!r)for(var c in this)"t"===c.charAt(0)&&u.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var c=this;function handle(u,p){return w.type="throw",w.arg=r,c.next=u,p&&(c.method="next",c.arg=void 0),!!p}for(var p=this.tryEntries.length-1;p>=0;--p){var y=this.tryEntries[p],w=y.completion;if("root"===y.tryLoc)return handle("end");if(y.tryLoc<=this.prev){var k=u.call(y,"catchLoc"),x=u.call(y,"finallyLoc");if(k&&x){if(this.prev<y.catchLoc)return handle(y.catchLoc,!0);if(this.prev<y.finallyLoc)return handle(y.finallyLoc)}else if(k){if(this.prev<y.catchLoc)return handle(y.catchLoc,!0)}else{if(!x)throw new Error("try statement without catch or finally");if(this.prev<y.finallyLoc)return handle(y.finallyLoc)}}}},abrupt:function(r,c){for(var p=this.tryEntries.length-1;p>=0;--p){var y=this.tryEntries[p];if(y.tryLoc<=this.prev&&u.call(y,"finallyLoc")&&this.prev<y.finallyLoc){var w=y;break}}w&&("break"===r||"continue"===r)&&w.tryLoc<=c&&c<=w.finallyLoc&&(w=null);var k=w?w.completion:{};return k.type=r,k.arg=c,w?(this.method="next",this.next=w.finallyLoc,x):this.complete(k)},complete:function(r,c){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&c&&(this.next=c),x},finish:function(r){for(var c=this.tryEntries.length-1;c>=0;--c){var u=this.tryEntries[c];if(u.finallyLoc===r)return this.complete(u.completion,u.afterLoc),resetTryEntry(u),x}},catch:function(r){for(var c=this.tryEntries.length-1;c>=0;--c){var u=this.tryEntries[c];if(u.tryLoc===r){var p=u.completion;if("throw"===p.type){var y=p.arg;resetTryEntry(u)}return y}}throw new Error("illegal catch attempt")},delegateYield:function(r,c,u){return this.delegate={iterator:values(r),resultName:c,nextLoc:u},"next"===this.method&&(this.arg=void 0),x}},r}(r.exports);try{regeneratorRuntime=c}catch(r){Function("r","regeneratorRuntime = r")(c)}},29276:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.diffAny=c.diffObjects=c.diffArrays=c.intersection=c.subtract=c.isDestructive=void 0;var p=u(44950),y=u(13599);function subtract(r,c){var u={};for(var p in r)y.hasOwnProperty.call(r,p)&&void 0!==r[p]&&(u[p]=1);for(var w in c)y.hasOwnProperty.call(c,w)&&void 0!==c[w]&&delete u[w];return Object.keys(u)}function intersection(r){for(var c=r.length,u={},p=0;p<c;p++){var w=r[p];for(var k in w)y.hasOwnProperty.call(w,k)&&void 0!==w[k]&&(u[k]=(u[k]||0)+1)}for(var k in u)u[k]<c&&delete u[k];return Object.keys(u)}function appendArrayOperation(r,c){return{operations:r.operations.concat(c),cost:r.cost+1}}function diffArrays(r,c,u,y){void 0===y&&(y=diffAny);var w={"0,0":{operations:[],cost:0}};var k=isNaN(r.length)||r.length<=0?0:r.length,x=isNaN(c.length)||c.length<=0?0:c.length;return function dist(u,y){var k=u+","+y,x=w[k];if(void 0===x){if(u>0&&y>0&&p.compare(r[u-1],c[y-1]))x=dist(u-1,y-1);else{var E=[];if(u>0){var I=dist(u-1,y),K={op:"remove",index:u-1};E.push(appendArrayOperation(I,K))}if(y>0){var J=dist(u,y-1),ie={op:"add",index:u-1,value:c[y-1]};E.push(appendArrayOperation(J,ie))}if(u>0&&y>0){var oe=dist(u-1,y-1),se={op:"replace",index:u-1,original:r[u-1],value:c[y-1]};E.push(appendArrayOperation(oe,se))}x=E.sort((function(r,c){return r.cost-c.cost}))[0]}w[k]=x}return x}(k,x).operations.reduce((function(r,c){var p=r[0],w=r[1];if(function isArrayAdd(r){return"add"===r.op}(c)){var x=c.index+1+w,E=x<k+w?String(x):"-",I={op:c.op,path:u.add(E).toString(),value:c.value};return[p.concat(I),w+1]}if(function isArrayRemove(r){return"remove"===r.op}(c)){I={op:c.op,path:u.add(String(c.index+w)).toString()};return[p.concat(I),w-1]}var K=u.add(String(c.index+w)),J=y(c.original,c.value,K);return[p.concat.apply(p,J),w]}),[[],0])[0]}function diffObjects(r,c,u,p){void 0===p&&(p=diffAny);var y=[];return subtract(r,c).forEach((function(r){y.push({op:"remove",path:u.add(r).toString()})})),subtract(c,r).forEach((function(r){y.push({op:"add",path:u.add(r).toString(),value:c[r]})})),intersection([r,c]).forEach((function(w){y.push.apply(y,p(r[w],c[w],u.add(w)))})),y}function diffAny(r,c,u,p){if(void 0===p&&(p=diffAny),r===c)return[];var w=y.objectType(r),k=y.objectType(c);return"array"==w&&"array"==k?diffArrays(r,c,u,p):"object"==w&&"object"==k?diffObjects(r,c,u,p):[{op:"replace",path:u.toString(),value:c}]}c.isDestructive=function isDestructive(r){var c=r.op;return"remove"===c||"replace"===c||"copy"===c||"move"===c},c.subtract=subtract,c.intersection=intersection,c.diffArrays=diffArrays,c.diffObjects=diffObjects,c.diffAny=diffAny},44950:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.compare=void 0;var p=u(13599);function compare(r,c){if(r===c)return!0;var u=p.objectType(r),y=p.objectType(c);return"array"==u&&"array"==y?function compareArrays(r,c){var u=r.length;if(u!==c.length)return!1;for(var p=0;p<u;p++)if(!compare(r[p],c[p]))return!1;return!0}(r,c):"object"==u&&"object"==y&&function compareObjects(r,c){var u=Object.keys(r),y=Object.keys(c),w=u.length;if(w!==y.length)return!1;for(var k=0;k<w;k++){var x=u[k];if(!p.hasOwnProperty.call(c,x)||!compare(r[x],c[x]))return!1}return!0}(r,c)}c.compare=compare},93431:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createTests=c.createPatch=c.applyPatch=void 0;var p=u(38424),y=u(33972),w=u(29276);function createTest(r,c){var u=p.Pointer.fromJSON(c).evaluate(r);if(void 0!==u)return{op:"test",path:c,value:u.value}}c.applyPatch=function applyPatch(r,c){return c.map((function(c){return y.apply(r,c)}))},c.createPatch=function createPatch(r,c,u){var y=new p.Pointer;return(u?function wrapVoidableDiff(r){return function wrappedDiff(c,u,p){var y=r(c,u,p);return Array.isArray(y)?y:w.diffAny(c,u,p,wrappedDiff)}}(u):w.diffAny)(r,c,y)},c.createTests=function createTests(r,c){var u=new Array;return c.filter(w.isDestructive).forEach((function(c){var p=createTest(r,c.path);if(p&&u.push(p),"from"in c){var y=createTest(r,c.from);y&&u.push(y)}})),u}},33972:function(r,c,u){"use strict";var p,y=this&&this.__extends||(p=function(r,c){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,c){r.__proto__=c}||function(r,c){for(var u in c)c.hasOwnProperty(u)&&(r[u]=c[u])})(r,c)},function(r,c){function __(){this.constructor=r}p(r,c),r.prototype=null===c?Object.create(c):(__.prototype=c.prototype,new __)});Object.defineProperty(c,"__esModule",{value:!0}),c.apply=c.InvalidOperationError=c.test=c.copy=c.move=c.replace=c.remove=c.add=c.TestError=c.MissingError=void 0;var w=u(38424),k=u(13599),x=u(44950),E=function(r){function MissingError(c){var u=r.call(this,"Value required at path: "+c)||this;return u.path=c,u.name="MissingError",u}return y(MissingError,r),MissingError}(Error);c.MissingError=E;var I=function(r){function TestError(c,u){var p=r.call(this,"Test failed: "+c+" != "+u)||this;return p.actual=c,p.expected=u,p.name="TestError",p}return y(TestError,r),TestError}(Error);function _add(r,c,u){if(Array.isArray(r))if("-"==c)r.push(u);else{var p=parseInt(c,10);r.splice(p,0,u)}else r[c]=u}function _remove(r,c){if(Array.isArray(r)){var u=parseInt(c,10);r.splice(u,1)}else delete r[c]}function add(r,c){var u=w.Pointer.fromJSON(c.path).evaluate(r);return void 0===u.parent?new E(c.path):(_add(u.parent,u.key,k.clone(c.value)),null)}function remove(r,c){var u=w.Pointer.fromJSON(c.path).evaluate(r);return void 0===u.value?new E(c.path):(_remove(u.parent,u.key),null)}function replace(r,c){var u=w.Pointer.fromJSON(c.path).evaluate(r);if(null===u.parent)return new E(c.path);if(Array.isArray(u.parent)){if(parseInt(u.key,10)>=u.parent.length)return new E(c.path)}else if(void 0===u.value)return new E(c.path);return u.parent[u.key]=c.value,null}function move(r,c){var u=w.Pointer.fromJSON(c.from).evaluate(r);if(void 0===u.value)return new E(c.from);var p=w.Pointer.fromJSON(c.path).evaluate(r);return void 0===p.parent?new E(c.path):(_remove(u.parent,u.key),_add(p.parent,p.key,u.value),null)}function copy(r,c){var u=w.Pointer.fromJSON(c.from).evaluate(r);if(void 0===u.value)return new E(c.from);var p=w.Pointer.fromJSON(c.path).evaluate(r);return void 0===p.parent?new E(c.path):(_add(p.parent,p.key,k.clone(u.value)),null)}function test(r,c){var u=w.Pointer.fromJSON(c.path).evaluate(r);return x.compare(u.value,c.value)?null:new I(u.value,c.value)}c.TestError=I,c.add=add,c.remove=remove,c.replace=replace,c.move=move,c.copy=copy,c.test=test;var K=function(r){function InvalidOperationError(c){var u=r.call(this,"Invalid operation: "+c.op)||this;return u.operation=c,u.name="InvalidOperationError",u}return y(InvalidOperationError,r),InvalidOperationError}(Error);c.InvalidOperationError=K,c.apply=function apply(r,c){switch(c.op){case"add":return add(r,c);case"remove":return remove(r,c);case"replace":return replace(r,c);case"move":return move(r,c);case"copy":return copy(r,c);case"test":return test(r,c)}return new K(c)}},38424:(r,c)=>{"use strict";function unescape(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function escape(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}Object.defineProperty(c,"__esModule",{value:!0}),c.Pointer=void 0;var u=function(){function Pointer(r){void 0===r&&(r=[""]),this.tokens=r}return Pointer.fromJSON=function(r){var c=r.split("/").map(unescape);if(""!==c[0])throw new Error("Invalid JSON Pointer: "+r);return new Pointer(c)},Pointer.prototype.toString=function(){return this.tokens.map(escape).join("/")},Pointer.prototype.evaluate=function(r){for(var c=null,u="",p=r,y=1,w=this.tokens.length;y<w;y++)p=((c=p)||{})[u=this.tokens[y]];return{parent:c,key:u,value:p}},Pointer.prototype.get=function(r){return this.evaluate(r).value},Pointer.prototype.set=function(r,c){for(var u=r,p=1,y=this.tokens.length-1,w=this.tokens[p];p<y;p++)u=(u||{})[w];u&&(u[this.tokens[this.tokens.length-1]]=c)},Pointer.prototype.push=function(r){this.tokens.push(r)},Pointer.prototype.add=function(r){return new Pointer(this.tokens.concat(String(r)))},Pointer}();c.Pointer=u},13599:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.clone=c.objectType=c.hasOwnProperty=void 0,c.hasOwnProperty=Object.prototype.hasOwnProperty,c.objectType=function objectType(r){return void 0===r?"undefined":null===r?"null":Array.isArray(r)?"array":typeof r},c.clone=function clone(r){if(null==r||"object"!=typeof r)return r;if(r.constructor==Array){for(var u=r.length,p=new Array(u),y=0;y<u;y++)p[y]=clone(r[y]);return p}var w={};for(var k in r)c.hasOwnProperty.call(r,k)&&(w[k]=clone(r[k]));return w}},96774:r=>{r.exports=function shallowEqual(r,c,u,p){var y=u?u.call(p,r,c):void 0;if(void 0!==y)return!!y;if(r===c)return!0;if("object"!=typeof r||!r||"object"!=typeof c||!c)return!1;var w=Object.keys(r),k=Object.keys(c);if(w.length!==k.length)return!1;for(var x=Object.prototype.hasOwnProperty.bind(c),E=0;E<w.length;E++){var I=w[E];if(!x(I))return!1;var K=r[I],J=c[I];if(!1===(y=u?u.call(p,K,J,I):void 0)||void 0===y&&K!==J)return!1}return!0}},93379:(r,c,u)=>{"use strict";var p=function isOldIE(){var r;return function memorize(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r}}(),y=function getTarget(){var r={};return function memorize(c){if(void 0===r[c]){var u=document.querySelector(c);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch(r){u=null}r[c]=u}return r[c]}}(),w=[];function getIndexByIdentifier(r){for(var c=-1,u=0;u<w.length;u++)if(w[u].identifier===r){c=u;break}return c}function modulesToDom(r,c){for(var u={},p=[],y=0;y<r.length;y++){var k=r[y],x=c.base?k[0]+c.base:k[0],E=u[x]||0,I="".concat(x," ").concat(E);u[x]=E+1;var K=getIndexByIdentifier(I),J={css:k[1],media:k[2],sourceMap:k[3]};-1!==K?(w[K].references++,w[K].updater(J)):w.push({identifier:I,updater:addStyle(J,c),references:1}),p.push(I)}return p}function insertStyleElement(r){var c=document.createElement("style"),p=r.attributes||{};if(void 0===p.nonce){var w=u.nc;w&&(p.nonce=w)}if(Object.keys(p).forEach((function(r){c.setAttribute(r,p[r])})),"function"==typeof r.insert)r.insert(c);else{var k=y(r.insert||"head");if(!k)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");k.appendChild(c)}return c}var k=function replaceText(){var r=[];return function replace(c,u){return r[c]=u,r.filter(Boolean).join("\n")}}();function applyToSingletonTag(r,c,u,p){var y=u?"":p.media?"@media ".concat(p.media," {").concat(p.css,"}"):p.css;if(r.styleSheet)r.styleSheet.cssText=k(c,y);else{var w=document.createTextNode(y),x=r.childNodes;x[c]&&r.removeChild(x[c]),x.length?r.insertBefore(w,x[c]):r.appendChild(w)}}function applyToTag(r,c,u){var p=u.css,y=u.media,w=u.sourceMap;if(y?r.setAttribute("media",y):r.removeAttribute("media"),w&&"undefined"!=typeof btoa&&(p+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(w))))," */")),r.styleSheet)r.styleSheet.cssText=p;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(p))}}var x=null,E=0;function addStyle(r,c){var u,p,y;if(c.singleton){var w=E++;u=x||(x=insertStyleElement(c)),p=applyToSingletonTag.bind(null,u,w,!1),y=applyToSingletonTag.bind(null,u,w,!0)}else u=insertStyleElement(c),p=applyToTag.bind(null,u,c),y=function remove(){!function removeStyleElement(r){if(null===r.parentNode)return!1;r.parentNode.removeChild(r)}(u)};return p(r),function updateStyle(c){if(c){if(c.css===r.css&&c.media===r.media&&c.sourceMap===r.sourceMap)return;p(r=c)}else y()}}r.exports=function(r,c){(c=c||{}).singleton||"boolean"==typeof c.singleton||(c.singleton=p());var u=modulesToDom(r=r||[],c);return function update(r){if(r=r||[],"[object Array]"===Object.prototype.toString.call(r)){for(var p=0;p<u.length;p++){var y=getIndexByIdentifier(u[p]);w[y].references--}for(var k=modulesToDom(r,c),x=0;x<u.length;x++){var E=getIndexByIdentifier(u[x]);0===w[E].references&&(w[E].updater(),w.splice(E,1))}u=k}}}},18117:(r,c,u)=>{"use strict";u.d(c,{LC:()=>ye,iv:()=>Ce,ZP:()=>it});var p=u(59864),y=u(67294),w=u(96774),k=u.n(w);const x=function stylis_min(r){function X(r,c,u){var p=c.trim().split(k);c=p;var y=p.length,w=r.length;switch(w){case 0:case 1:var x=0;for(r=0===w?"":r[0]+" ";x<y;++x)c[x]=Z(r,c[x],u).trim();break;default:var E=x=0;for(c=[];x<y;++x)for(var I=0;I<w;++I)c[E++]=Z(r[I]+" ",p[x],u).trim()}return c}function Z(r,c,u){var p=c.charCodeAt(0);switch(33>p&&(p=(c=c.trim()).charCodeAt(0)),p){case 38:return c.replace(x,"$1"+r.trim());case 58:return r.trim()+c.replace(x,"$1"+r.trim());default:if(0<1*u&&0<c.indexOf("\f"))return c.replace(x,(58===r.charCodeAt(0)?"":"$1")+r.trim())}return r+c}function P(r,c,u,k){var x=r+";",E=2*c+3*u+4*k;if(944===E){r=x.indexOf(":",9)+1;var I=x.substring(r,x.length-1).trim();return I=x.substring(0,r).trim()+I+";",1===ge||2===ge&&L(I,1)?"-webkit-"+I+I:I}if(0===ge||2===ge&&!L(x,1))return x;switch(E){case 1015:return 97===x.charCodeAt(10)?"-webkit-"+x+x:x;case 951:return 116===x.charCodeAt(3)?"-webkit-"+x+x:x;case 963:return 110===x.charCodeAt(5)?"-webkit-"+x+x:x;case 1009:if(100!==x.charCodeAt(4))break;case 969:case 942:return"-webkit-"+x+x;case 978:return"-webkit-"+x+"-moz-"+x+x;case 1019:case 983:return"-webkit-"+x+"-moz-"+x+"-ms-"+x+x;case 883:if(45===x.charCodeAt(8))return"-webkit-"+x+x;if(0<x.indexOf("image-set(",11))return x.replace(le,"$1-webkit-$2")+x;break;case 932:if(45===x.charCodeAt(4))switch(x.charCodeAt(5)){case 103:return"-webkit-box-"+x.replace("-grow","")+"-webkit-"+x+"-ms-"+x.replace("grow","positive")+x;case 115:return"-webkit-"+x+"-ms-"+x.replace("shrink","negative")+x;case 98:return"-webkit-"+x+"-ms-"+x.replace("basis","preferred-size")+x}return"-webkit-"+x+"-ms-"+x+x;case 964:return"-webkit-"+x+"-ms-flex-"+x+x;case 1023:if(99!==x.charCodeAt(8))break;return"-webkit-box-pack"+(I=x.substring(x.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+x+"-ms-flex-pack"+I+x;case 1005:return y.test(x)?x.replace(p,":-webkit-")+x.replace(p,":-moz-")+x:x;case 1e3:switch(c=(I=x.substring(13).trim()).indexOf("-")+1,I.charCodeAt(0)+I.charCodeAt(c)){case 226:I=x.replace(J,"tb");break;case 232:I=x.replace(J,"tb-rl");break;case 220:I=x.replace(J,"lr");break;default:return x}return"-webkit-"+x+"-ms-"+I+x;case 1017:if(-1===x.indexOf("sticky",9))break;case 975:switch(c=(x=r).length-10,E=(I=(33===x.charCodeAt(c)?x.substring(0,c):x).substring(r.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|I.charCodeAt(7))){case 203:if(111>I.charCodeAt(8))break;case 115:x=x.replace(I,"-webkit-"+I)+";"+x;break;case 207:case 102:x=x.replace(I,"-webkit-"+(102<E?"inline-":"")+"box")+";"+x.replace(I,"-webkit-"+I)+";"+x.replace(I,"-ms-"+I+"box")+";"+x}return x+";";case 938:if(45===x.charCodeAt(5))switch(x.charCodeAt(6)){case 105:return I=x.replace("-items",""),"-webkit-"+x+"-webkit-box-"+I+"-ms-flex-"+I+x;case 115:return"-webkit-"+x+"-ms-flex-item-"+x.replace(se,"")+x;default:return"-webkit-"+x+"-ms-flex-line-pack"+x.replace("align-content","").replace(se,"")+x}break;case 973:case 989:if(45!==x.charCodeAt(3)||122===x.charCodeAt(4))break;case 931:case 953:if(!0===ue.test(r))return 115===(I=r.substring(r.indexOf(":")+1)).charCodeAt(0)?P(r.replace("stretch","fill-available"),c,u,k).replace(":fill-available",":stretch"):x.replace(I,"-webkit-"+I)+x.replace(I,"-moz-"+I.replace("fill-",""))+x;break;case 962:if(x="-webkit-"+x+(102===x.charCodeAt(5)?"-ms-"+x:"")+x,211===u+k&&105===x.charCodeAt(13)&&0<x.indexOf("transform",10))return x.substring(0,x.indexOf(";",27)+1).replace(w,"$1-webkit-$2")+x}return x}function L(r,c){var u=r.indexOf(1===c?":":"{"),p=r.substring(0,3!==c?u:10);return u=r.substring(u+1,r.length-1),Oe(2!==c?p:p.replace(ae,"$1"),u,c)}function ea(r,c){var u=P(c,c.charCodeAt(0),c.charCodeAt(1),c.charCodeAt(2));return u!==c+";"?u.replace(oe," or ($1)").substring(4):"("+c+")"}function H(r,c,u,p,y,w,k,x,E,I){for(var K,J=0,ie=c;J<Se;++J)switch(K=we[J].call(B,r,ie,u,p,y,w,k,x,E,I)){case void 0:case!1:case!0:case null:break;default:ie=K}if(ie!==c)return ie}function U(r){return void 0!==(r=r.prefix)&&(Oe=null,r?"function"!=typeof r?ge=1:(ge=2,Oe=r):ge=0),U}function B(r,p){var y=r;if(33>y.charCodeAt(0)&&(y=y.trim()),y=[y],0<Se){var w=H(-1,p,y,y,pe,de,0,0,0,0);void 0!==w&&"string"==typeof w&&(p=w)}var k=function M(r,p,y,w,k){for(var x,J,oe,se,ae,ue=0,le=0,we=0,Oe=0,De=0,Pe=0,Le=oe=x=0,je=0,Fe=0,Ue=0,$e=0,Ze=y.length,We=Ze-1,Ge="",Ke="",Je="",Ye="";je<Ze;){if(J=y.charCodeAt(je),je===We&&0!==le+Oe+we+ue&&(0!==le&&(J=47===le?10:47),Oe=we=ue=0,Ze++,We++),0===le+Oe+we+ue){if(je===We&&(0<Fe&&(Ge=Ge.replace(u,"")),0<Ge.trim().length)){switch(J){case 32:case 9:case 59:case 13:case 10:break;default:Ge+=y.charAt(je)}J=59}switch(J){case 123:for(x=(Ge=Ge.trim()).charCodeAt(0),oe=1,$e=++je;je<Ze;){switch(J=y.charCodeAt(je)){case 123:oe++;break;case 125:oe--;break;case 47:switch(J=y.charCodeAt(je+1)){case 42:case 47:e:{for(Le=je+1;Le<We;++Le)switch(y.charCodeAt(Le)){case 47:if(42===J&&42===y.charCodeAt(Le-1)&&je+2!==Le){je=Le+1;break e}break;case 10:if(47===J){je=Le+1;break e}}je=Le}}break;case 91:J++;case 40:J++;case 34:case 39:for(;je++<We&&y.charCodeAt(je)!==J;);}if(0===oe)break;je++}switch(oe=y.substring($e,je),0===x&&(x=(Ge=Ge.replace(c,"").trim()).charCodeAt(0)),x){case 64:switch(0<Fe&&(Ge=Ge.replace(u,"")),J=Ge.charCodeAt(1)){case 100:case 109:case 115:case 45:Fe=p;break;default:Fe=ve}if($e=(oe=M(p,Fe,oe,J,k+1)).length,0<Se&&(ae=H(3,oe,Fe=X(ve,Ge,Ue),p,pe,de,$e,J,k,w),Ge=Fe.join(""),void 0!==ae&&0===($e=(oe=ae.trim()).length)&&(J=0,oe="")),0<$e)switch(J){case 115:Ge=Ge.replace(ie,ea);case 100:case 109:case 45:oe=Ge+"{"+oe+"}";break;case 107:oe=(Ge=Ge.replace(E,"$1 $2"))+"{"+oe+"}",oe=1===ge||2===ge&&L("@"+oe,3)?"@-webkit-"+oe+"@"+oe:"@"+oe;break;default:oe=Ge+oe,112===w&&(Ke+=oe,oe="")}else oe="";break;default:oe=M(p,X(p,Ge,Ue),oe,w,k+1)}Je+=oe,oe=Ue=Fe=Le=x=0,Ge="",J=y.charCodeAt(++je);break;case 125:case 59:if(1<($e=(Ge=(0<Fe?Ge.replace(u,""):Ge).trim()).length))switch(0===Le&&(x=Ge.charCodeAt(0),45===x||96<x&&123>x)&&($e=(Ge=Ge.replace(" ",":")).length),0<Se&&void 0!==(ae=H(1,Ge,p,r,pe,de,Ke.length,w,k,w))&&0===($e=(Ge=ae.trim()).length)&&(Ge="\0\0"),x=Ge.charCodeAt(0),J=Ge.charCodeAt(1),x){case 0:break;case 64:if(105===J||99===J){Ye+=Ge+y.charAt(je);break}default:58!==Ge.charCodeAt($e-1)&&(Ke+=P(Ge,x,J,Ge.charCodeAt(2)))}Ue=Fe=Le=x=0,Ge="",J=y.charCodeAt(++je)}}switch(J){case 13:case 10:47===le?le=0:0===1+x&&107!==w&&0<Ge.length&&(Fe=1,Ge+="\0"),0<Se*Ie&&H(0,Ge,p,r,pe,de,Ke.length,w,k,w),de=1,pe++;break;case 59:case 125:if(0===le+Oe+we+ue){de++;break}default:switch(de++,se=y.charAt(je),J){case 9:case 32:if(0===Oe+ue+le)switch(De){case 44:case 58:case 9:case 32:se="";break;default:32!==J&&(se=" ")}break;case 0:se="\\0";break;case 12:se="\\f";break;case 11:se="\\v";break;case 38:0===Oe+le+ue&&(Fe=Ue=1,se="\f"+se);break;case 108:if(0===Oe+le+ue+he&&0<Le)switch(je-Le){case 2:112===De&&58===y.charCodeAt(je-3)&&(he=De);case 8:111===Pe&&(he=Pe)}break;case 58:0===Oe+le+ue&&(Le=je);break;case 44:0===le+we+Oe+ue&&(Fe=1,se+="\r");break;case 34:case 39:0===le&&(Oe=Oe===J?0:0===Oe?J:Oe);break;case 91:0===Oe+le+we&&ue++;break;case 93:0===Oe+le+we&&ue--;break;case 41:0===Oe+le+ue&&we--;break;case 40:if(0===Oe+le+ue){if(0===x)switch(2*De+3*Pe){case 533:break;default:x=1}we++}break;case 64:0===le+we+Oe+ue+Le+oe&&(oe=1);break;case 42:case 47:if(!(0<Oe+ue+we))switch(le){case 0:switch(2*J+3*y.charCodeAt(je+1)){case 235:le=47;break;case 220:$e=je,le=42}break;case 42:47===J&&42===De&&$e+2!==je&&(33===y.charCodeAt($e+2)&&(Ke+=y.substring($e,je+1)),se="",le=0)}}0===le&&(Ge+=se)}Pe=De,De=J,je++}if(0<($e=Ke.length)){if(Fe=p,0<Se&&(void 0!==(ae=H(2,Ke,Fe,r,pe,de,$e,w,k,w))&&0===(Ke=ae).length))return Ye+Ke+Je;if(Ke=Fe.join(",")+"{"+Ke+"}",0!=ge*he){switch(2!==ge||L(Ke,2)||(he=0),he){case 111:Ke=Ke.replace(K,":-moz-$1")+Ke;break;case 112:Ke=Ke.replace(I,"::-webkit-input-$1")+Ke.replace(I,"::-moz-$1")+Ke.replace(I,":-ms-input-$1")+Ke}he=0}}return Ye+Ke+Je}(ve,y,p,0,0);return 0<Se&&(void 0!==(w=H(-2,k,y,y,pe,de,k.length,0,0,0))&&(k=w)),"",he=0,de=pe=1,k}var c=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,y=/zoo|gra/,w=/([,: ])(transform)/g,k=/,\r+?/g,x=/([\t\r\n ])*\f?&/g,E=/@(k\w+)\s*(\S*)\s*/,I=/::(place)/g,K=/:(read-only)/g,J=/[svh]\w+-[tblr]{2}/,ie=/\(\s*(.*)\s*\)/g,oe=/([\s\S]*?);/g,se=/-self|flex-/g,ae=/[^]*?(:[rp][el]a[\w-]+)[^]*/,ue=/stretch|:\s*\w+\-(?:conte|avail)/,le=/([^-])(image-set\()/,de=1,pe=1,he=0,ge=1,ve=[],we=[],Se=0,Oe=null,Ie=0;return B.use=function T(r){switch(r){case void 0:case null:Se=we.length=0;break;default:if("function"==typeof r)we[Se++]=r;else if("object"==typeof r)for(var c=0,u=r.length;c<u;++c)T(r[c]);else Ie=0|!!r}return T},B.set=U,void 0!==r&&U(r),B};const E={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var I=u(58594),K=u(8679),J=u.n(K);function v(){return(v=Object.assign||function(r){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(r[p]=u[p])}return r}).apply(this,arguments)}var g=function(r,c){for(var u=[r[0]],p=0,y=c.length;p<y;p+=1)u.push(c[p],r[p+1]);return u},S=function(r){return null!==r&&"object"==typeof r&&"[object Object]"===(r.toString?r.toString():Object.prototype.toString.call(r))&&!(0,p.typeOf)(r)},ie=Object.freeze([]),oe=Object.freeze({});function b(r){return"function"==typeof r}function _(r){return r.displayName||r.name||"Component"}function N(r){return r&&"string"==typeof r.styledComponentId}var se="undefined"!=typeof process&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",ae="undefined"!=typeof window&&"HTMLElement"in window,ue=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=="MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY&&""!=="MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY?"false"!=="MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=="MISSING_ENV_VAR".SC_DISABLE_SPEEDY&&""!=="MISSING_ENV_VAR".SC_DISABLE_SPEEDY&&("false"!=="MISSING_ENV_VAR".SC_DISABLE_SPEEDY&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY));function j(r){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p<c;p++)u[p-1]=arguments[p];throw new Error("An error occurred. See https://git.io/JUIaE#"+r+" for more information."+(u.length>0?" Args: "+u.join(", "):""))}var le=function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var r=e.prototype;return r.indexOfGroup=function(r){for(var c=0,u=0;u<r;u++)c+=this.groupSizes[u];return c},r.insertRules=function(r,c){if(r>=this.groupSizes.length){for(var u=this.groupSizes,p=u.length,y=p;r>=y;)(y<<=1)<0&&j(16,""+r);this.groupSizes=new Uint32Array(y),this.groupSizes.set(u),this.length=y;for(var w=p;w<y;w++)this.groupSizes[w]=0}for(var k=this.indexOfGroup(r+1),x=0,E=c.length;x<E;x++)this.tag.insertRule(k,c[x])&&(this.groupSizes[r]++,k++)},r.clearGroup=function(r){if(r<this.length){var c=this.groupSizes[r],u=this.indexOfGroup(r),p=u+c;this.groupSizes[r]=0;for(var y=u;y<p;y++)this.tag.deleteRule(u)}},r.getGroup=function(r){var c="";if(r>=this.length||0===this.groupSizes[r])return c;for(var u=this.groupSizes[r],p=this.indexOfGroup(r),y=p+u,w=p;w<y;w++)c+=this.tag.getRule(w)+"/*!sc*/\n";return c},e}(),de=new Map,pe=new Map,he=1,B=function(r){if(de.has(r))return de.get(r);for(;pe.has(he);)he++;var c=he++;return de.set(r,c),pe.set(c,r),c},z=function(r){return pe.get(r)},M=function(r,c){c>=he&&(he=c+1),de.set(r,c),pe.set(c,r)},ge="style["+se+'][data-styled-version="5.3.3"]',ve=new RegExp("^"+se+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(r,c,u){for(var p,y=u.split(","),w=0,k=y.length;w<k;w++)(p=y[w])&&r.registerName(c,p)},Y=function(r,c){for(var u=(c.textContent||"").split("/*!sc*/\n"),p=[],y=0,w=u.length;y<w;y++){var k=u[y].trim();if(k){var x=k.match(ve);if(x){var E=0|parseInt(x[1],10),I=x[2];0!==E&&(M(I,E),F(r,I,x[3]),r.getTag().insertRules(E,p)),p.length=0}else p.push(k)}}},q=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},H=function(r){var c=document.head,u=r||c,p=document.createElement("style"),y=function(r){for(var c=r.childNodes,u=c.length;u>=0;u--){var p=c[u];if(p&&1===p.nodeType&&p.hasAttribute(se))return p}}(u),w=void 0!==y?y.nextSibling:null;p.setAttribute(se,"active"),p.setAttribute("data-styled-version","5.3.3");var k=q();return k&&p.setAttribute("nonce",k),u.insertBefore(p,w),p},we=function(){function e(r){var c=this.element=H(r);c.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var c=document.styleSheets,u=0,p=c.length;u<p;u++){var y=c[u];if(y.ownerNode===r)return y}j(17)}(c),this.length=0}var r=e.prototype;return r.insertRule=function(r,c){try{return this.sheet.insertRule(c,r),this.length++,!0}catch(r){return!1}},r.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},r.getRule=function(r){var c=this.sheet.cssRules[r];return void 0!==c&&"string"==typeof c.cssText?c.cssText:""},e}(),Se=function(){function e(r){var c=this.element=H(r);this.nodes=c.childNodes,this.length=0}var r=e.prototype;return r.insertRule=function(r,c){if(r<=this.length&&r>=0){var u=document.createTextNode(c),p=this.nodes[r];return this.element.insertBefore(u,p||null),this.length++,!0}return!1},r.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},r.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},e}(),Oe=function(){function e(r){this.rules=[],this.length=0}var r=e.prototype;return r.insertRule=function(r,c){return r<=this.length&&(this.rules.splice(r,0,c),this.length++,!0)},r.deleteRule=function(r){this.rules.splice(r,1),this.length--},r.getRule=function(r){return r<this.length?this.rules[r]:""},e}(),Ie=ae,De={isServer:!ae,useCSSOMInjection:!ue},Pe=function(){function e(r,c,u){void 0===r&&(r=oe),void 0===c&&(c={}),this.options=v({},De,{},r),this.gs=c,this.names=new Map(u),this.server=!!r.isServer,!this.server&&ae&&Ie&&(Ie=!1,function(r){for(var c=document.querySelectorAll(ge),u=0,p=c.length;u<p;u++){var y=c[u];y&&"active"!==y.getAttribute(se)&&(Y(r,y),y.parentNode&&y.parentNode.removeChild(y))}}(this))}e.registerId=function(r){return B(r)};var r=e.prototype;return r.reconstructWithOptions=function(r,c){return void 0===c&&(c=!0),new e(v({},this.options,{},r),this.gs,c&&this.names||void 0)},r.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},r.getTag=function(){return this.tag||(this.tag=(u=(c=this.options).isServer,p=c.useCSSOMInjection,y=c.target,r=u?new Oe(y):p?new we(y):new Se(y),new le(r)));var r,c,u,p,y},r.hasNameForId=function(r,c){return this.names.has(r)&&this.names.get(r).has(c)},r.registerName=function(r,c){if(B(r),this.names.has(r))this.names.get(r).add(c);else{var u=new Set;u.add(c),this.names.set(r,u)}},r.insertRules=function(r,c,u){this.registerName(r,c),this.getTag().insertRules(B(r),u)},r.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},r.clearRules=function(r){this.getTag().clearGroup(B(r)),this.clearNames(r)},r.clearTag=function(){this.tag=void 0},r.toString=function(){return function(r){for(var c=r.getTag(),u=c.length,p="",y=0;y<u;y++){var w=z(y);if(void 0!==w){var k=r.names.get(w),x=c.getGroup(y);if(k&&x&&k.size){var E=se+".g"+y+'[id="'+w+'"]',I="";void 0!==k&&k.forEach((function(r){r.length>0&&(I+=r+",")})),p+=""+x+E+'{content:"'+I+'"}/*!sc*/\n'}}}return p}(this)},e}(),Le=/(a)(d)/gi,Q=function(r){return String.fromCharCode(r+(r>25?39:97))};function ee(r){var c,u="";for(c=Math.abs(r);c>52;c=c/52|0)u=Q(c%52)+u;return(Q(c%52)+u).replace(Le,"$1-$2")}var te=function(r,c){for(var u=c.length;u;)r=33*r^c.charCodeAt(--u);return r},ne=function(r){return te(5381,r)};function re(r){for(var c=0;c<r.length;c+=1){var u=r[c];if(b(u)&&!N(u))return!1}return!0}var je=ne("5.3.3"),Fe=function(){function e(r,c,u){this.rules=r,this.staticRulesId="",this.isStatic=(void 0===u||u.isStatic)&&re(r),this.componentId=c,this.baseHash=te(je,c),this.baseStyle=u,Pe.registerId(c)}return e.prototype.generateAndInjectStyles=function(r,c,u){var p=this.componentId,y=[];if(this.baseStyle&&y.push(this.baseStyle.generateAndInjectStyles(r,c,u)),this.isStatic&&!u.hash)if(this.staticRulesId&&c.hasNameForId(p,this.staticRulesId))y.push(this.staticRulesId);else{var w=Ne(this.rules,r,c,u).join(""),k=ee(te(this.baseHash,w)>>>0);if(!c.hasNameForId(p,k)){var x=u(w,"."+k,void 0,p);c.insertRules(p,k,x)}y.push(k),this.staticRulesId=k}else{for(var E=this.rules.length,I=te(this.baseHash,u.hash),K="",J=0;J<E;J++){var ie=this.rules[J];if("string"==typeof ie)K+=ie;else if(ie){var oe=Ne(ie,r,c,u),se=Array.isArray(oe)?oe.join(""):oe;I=te(I,se+J),K+=se}}if(K){var ae=ee(I>>>0);if(!c.hasNameForId(p,ae)){var ue=u(K,"."+ae,void 0,p);c.insertRules(p,ae,ue)}y.push(ae)}}return y.join(" ")},e}(),Ue=/^\s*\/\/.*$/gm,$e=[":","[",".","#"];function ce(r){var c,u,p,y,w=void 0===r?oe:r,k=w.options,E=void 0===k?oe:k,I=w.plugins,K=void 0===I?ie:I,J=new x(E),se=[],ae=function(r){function t(c){if(c)try{r(c+"}")}catch(r){}}return function(c,u,p,y,w,k,x,E,I,K){switch(c){case 1:if(0===I&&64===u.charCodeAt(0))return r(u+";"),"";break;case 2:if(0===E)return u+"/*|*/";break;case 3:switch(E){case 102:case 112:return r(p[0]+u),"";default:return u+(0===K?"/*|*/":"")}case-2:u.split("/*|*/}").forEach(t)}}}((function(r){se.push(r)})),f=function(r,p,w){return 0===p&&-1!==$e.indexOf(w[u.length])||w.match(y)?r:"."+c};function m(r,w,k,x){void 0===x&&(x="&");var E=r.replace(Ue,""),I=w&&k?k+" "+w+" { "+E+" }":E;return c=x,u=w,p=new RegExp("\\"+u+"\\b","g"),y=new RegExp("(\\"+u+"\\b){2,}"),J(k||!w?"":w,I)}return J.use([].concat(K,[function(r,c,y){2===r&&y.length&&y[0].lastIndexOf(u)>0&&(y[0]=y[0].replace(p,f))},ae,function(r){if(-2===r){var c=se;return se=[],c}}])),m.hash=K.length?K.reduce((function(r,c){return c.name||j(15),te(r,c.name)}),5381).toString():"",m}var Ze=y.createContext(),We=(Ze.Consumer,y.createContext()),Ge=(We.Consumer,new Pe),Ke=ce();function fe(){return(0,y.useContext)(Ze)||Ge}function me(){return(0,y.useContext)(We)||Ke}function ye(r){var c=(0,y.useState)(r.stylisPlugins),u=c[0],p=c[1],w=fe(),x=(0,y.useMemo)((function(){var c=w;return r.sheet?c=r.sheet:r.target&&(c=c.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c}),[r.disableCSSOMInjection,r.sheet,r.target]),E=(0,y.useMemo)((function(){return ce({options:{prefix:!r.disableVendorPrefixes},plugins:u})}),[r.disableVendorPrefixes,u]);return(0,y.useEffect)((function(){k()(u,r.stylisPlugins)||p(r.stylisPlugins)}),[r.stylisPlugins]),y.createElement(Ze.Provider,{value:x},y.createElement(We.Provider,{value:E},r.children))}var Je=function(){function e(r,c){var u=this;this.inject=function(r,c){void 0===c&&(c=Ke);var p=u.name+c.hash;r.hasNameForId(u.id,p)||r.insertRules(u.id,p,c(u.rules,p,"@keyframes"))},this.toString=function(){return j(12,String(u.name))},this.name=r,this.id="sc-keyframes-"+r,this.rules=c}return e.prototype.getName=function(r){return void 0===r&&(r=Ke),this.name+r.hash},e}(),Ye=/([A-Z])/,Xe=/([A-Z])/g,Qe=/^ms-/,Ee=function(r){return"-"+r.toLowerCase()};function be(r){return Ye.test(r)?r.replace(Xe,Ee).replace(Qe,"-ms-"):r}var _e=function(r){return null==r||!1===r||""===r};function Ne(r,c,u,p){if(Array.isArray(r)){for(var y,w=[],k=0,x=r.length;k<x;k+=1)""!==(y=Ne(r[k],c,u,p))&&(Array.isArray(y)?w.push.apply(w,y):w.push(y));return w}return _e(r)?"":N(r)?"."+r.styledComponentId:b(r)?"function"!=typeof(I=r)||I.prototype&&I.prototype.isReactComponent||!c?r:Ne(r(c),c,u,p):r instanceof Je?u?(r.inject(u,p),r.getName(p)):r:S(r)?function e(r,c){var u,p,y=[];for(var w in r)r.hasOwnProperty(w)&&!_e(r[w])&&(Array.isArray(r[w])&&r[w].isCss||b(r[w])?y.push(be(w)+":",r[w],";"):S(r[w])?y.push.apply(y,e(r[w],w)):y.push(be(w)+": "+(u=w,(null==(p=r[w])||"boolean"==typeof p||""===p?"":"number"!=typeof p||0===p||u in E?String(p).trim():p+"px")+";")));return c?[c+" {"].concat(y,["}"]):y}(r):r.toString();var I}var Ae=function(r){return Array.isArray(r)&&(r.isCss=!0),r};function Ce(r){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p<c;p++)u[p-1]=arguments[p];return b(r)||S(r)?Ae(Ne(g(ie,[r].concat(u)))):0===u.length&&1===r.length&&"string"==typeof r[0]?r:Ae(Ne(g(r,u)))}new Set;var Re=function(r,c,u){return void 0===u&&(u=oe),r.theme!==u.theme&&r.theme||c||u.theme},et=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tt=/(^-|-$)/g;function Te(r){return r.replace(et,"-").replace(tt,"")}var xe=function(r){return ee(ne(r)>>>0)};function ke(r){return"string"==typeof r&&!0}var Ve=function(r){return"function"==typeof r||"object"==typeof r&&null!==r&&!Array.isArray(r)},Be=function(r){return"__proto__"!==r&&"constructor"!==r&&"prototype"!==r};function ze(r,c,u){var p=r[u];Ve(c)&&Ve(p)?Me(p,c):r[u]=c}function Me(r){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p<c;p++)u[p-1]=arguments[p];for(var y=0,w=u;y<w.length;y++){var k=w[y];if(Ve(k))for(var x in k)Be(x)&&ze(r,k[x],x)}return r}var rt=y.createContext();rt.Consumer;var nt={};function qe(r,c,u){var p=N(r),w=!ke(r),k=c.attrs,x=void 0===k?ie:k,E=c.componentId,K=void 0===E?function(r,c){var u="string"!=typeof r?"sc":Te(r);nt[u]=(nt[u]||0)+1;var p=u+"-"+xe("5.3.3"+u+nt[u]);return c?c+"-"+p:p}(c.displayName,c.parentComponentId):E,se=c.displayName,ae=void 0===se?function(r){return ke(r)?"styled."+r:"Styled("+_(r)+")"}(r):se,ue=c.displayName&&c.componentId?Te(c.displayName)+"-"+c.componentId:c.componentId||K,le=p&&r.attrs?Array.prototype.concat(r.attrs,x).filter(Boolean):x,de=c.shouldForwardProp;p&&r.shouldForwardProp&&(de=c.shouldForwardProp?function(u,p,y){return r.shouldForwardProp(u,p,y)&&c.shouldForwardProp(u,p,y)}:r.shouldForwardProp);var pe,he=new Fe(u,ue,p?r.componentStyle:void 0),ge=he.isStatic&&0===x.length,O=function(r,c){return function(r,c,u,p){var w=r.attrs,k=r.componentStyle,x=r.defaultProps,E=r.foldedComponentIds,K=r.shouldForwardProp,J=r.styledComponentId,ie=r.target,se=function(r,c,u){void 0===r&&(r=oe);var p=v({},c,{theme:r}),y={};return u.forEach((function(r){var c,u,w,k=r;for(c in b(k)&&(k=k(p)),k)p[c]=y[c]="className"===c?(u=y[c],w=k[c],u&&w?u+" "+w:u||w):k[c]})),[p,y]}(Re(c,(0,y.useContext)(rt),x)||oe,c,w),ae=se[0],ue=se[1],le=function(r,c,u,p){var y=fe(),w=me();return c?r.generateAndInjectStyles(oe,y,w):r.generateAndInjectStyles(u,y,w)}(k,p,ae),de=u,pe=ue.$as||c.$as||ue.as||c.as||ie,he=ke(pe),ge=ue!==c?v({},c,{},ue):c,ve={};for(var we in ge)"$"!==we[0]&&"as"!==we&&("forwardedAs"===we?ve.as=ge[we]:(K?K(we,I.Z,pe):!he||(0,I.Z)(we))&&(ve[we]=ge[we]));return c.style&&ue.style!==c.style&&(ve.style=v({},c.style,{},ue.style)),ve.className=Array.prototype.concat(E,J,le!==J?le:null,c.className,ue.className).filter(Boolean).join(" "),ve.ref=de,(0,y.createElement)(pe,ve)}(pe,r,c,ge)};return O.displayName=ae,(pe=y.forwardRef(O)).attrs=le,pe.componentStyle=he,pe.displayName=ae,pe.shouldForwardProp=de,pe.foldedComponentIds=p?Array.prototype.concat(r.foldedComponentIds,r.styledComponentId):ie,pe.styledComponentId=ue,pe.target=p?r.target:r,pe.withComponent=function(r){var p=c.componentId,y=function(r,c){if(null==r)return{};var u,p,y={},w=Object.keys(r);for(p=0;p<w.length;p++)u=w[p],c.indexOf(u)>=0||(y[u]=r[u]);return y}(c,["componentId"]),w=p&&p+"-"+(ke(r)?r:Te(_(r)));return qe(r,v({},y,{attrs:le,componentId:w}),u)},Object.defineProperty(pe,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(c){this._foldedDefaultProps=p?Me({},r.defaultProps,c):c}}),pe.toString=function(){return"."+pe.styledComponentId},w&&J()(pe,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),pe}var He=function(r){return function e(r,c,u){if(void 0===u&&(u=oe),!(0,p.isValidElementType)(c))return j(1,String(c));var s=function(){return r(c,u,Ce.apply(void 0,arguments))};return s.withConfig=function(p){return e(r,c,v({},u,{},p))},s.attrs=function(p){return e(r,c,v({},u,{attrs:Array.prototype.concat(u.attrs,p).filter(Boolean)}))},s}(qe,r)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(r){He[r]=He(r)}));!function(){function e(r,c){this.rules=r,this.componentId=c,this.isStatic=re(r),Pe.registerId(this.componentId+1)}var r=e.prototype;r.createStyles=function(r,c,u,p){var y=p(Ne(this.rules,c,u,p).join(""),""),w=this.componentId+r;u.insertRules(w,w,y)},r.removeStyles=function(r,c){c.clearRules(this.componentId+r)},r.renderStyles=function(r,c,u,p){r>2&&Pe.registerId(this.componentId+r),this.removeStyles(r,u),this.createStyles(r,c,u,p)}}();!function(){function e(){var r=this;this._emitSheetCSS=function(){var c=r.instance.toString();if(!c)return"";var u=q();return"<style "+[u&&'nonce="'+u+'"',se+'="true"','data-styled-version="5.3.3"'].filter(Boolean).join(" ")+">"+c+"</style>"},this.getStyleTags=function(){return r.sealed?j(2):r._emitSheetCSS()},this.getStyleElement=function(){var c;if(r.sealed)return j(2);var u=((c={})[se]="",c["data-styled-version"]="5.3.3",c.dangerouslySetInnerHTML={__html:r.instance.toString()},c),p=q();return p&&(u.nonce=p),[y.createElement("style",v({},u,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new Pe({isServer:!0}),this.sealed=!1}var r=e.prototype;r.collectStyles=function(r){return this.sealed?j(2):y.createElement(ye,{sheet:this.instance},r)},r.interleaveWithNodeStream=function(r){return j(3)}}();const it=He},53371:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(42997),y=u(24202),w=u(15617);c.Media=w.Media,c.McsMedia=w.Media;const k=u(4901),x=u(682),E=p.Logger.scope(""),I=u(78313).i8,K="A valid Twilio token should be provided";class Client{constructor(r,c,u={}){if(this.options=u,this.options.logLevel=this.options.logLevel||"silent",this.config=new y.Configuration(r,c,this.options),!r)throw new Error(K);E.setLevel(this.options.logLevel),this.options.transport=this.options.transport||new k.Transport,this.transport=this.options.transport,this.network=new x.Network(this.config,this.transport)}updateToken(r){if(E.info("updateToken"),!r)throw new Error(K);this.config.updateToken(r)}async get(r){let c=await this.network.get(`${this.config.baseUrl}/${r}`);return new w.Media(this.config,this.network,c.body)}async post(r,c){let u=await this.network.post(this.config.baseUrl,c,r);return new w.Media(this.config,this.network,u.body)}async postFormData(r){let c=await this.network.post(this.config.baseUrl,r);return new w.Media(this.config,this.network,c.body)}}c.Client=Client,c.McsClient=Client,Client.version=I,c.default=Client},24202:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.Configuration=class Configuration{constructor(r,c,u){let p=u.MCS||u||{};this.region=p.region||u.region,this.baseUrl=(void 0===this.region?"https://mcs.us1.twilio.com":`https://mcs.${this.region}.twilio.com`)+c,this.token=r,this.retryWhenThrottledOverride=p.retryWhenThrottledOverride,this.backoffConfigOverride=p.backoffConfigOverride}static get backoffConfigDefault(){return{min:1e3,max:4e3,maxAttemptsCount:3}}static get retryWhenThrottledDefault(){return!0}updateToken(r){this.token=r}}},66222:(r,c,u)=>{"use strict";const p=u(53371);r.exports=p},42997:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(2043);function prepareLine(r,c){return[`${(new Date).toISOString()} MCS Client ${r}:`].concat(Array.from(c))}class Logger{constructor(r){this.prefix="",this.prefix=null!=r&&r.length>0?r+" ":""}static scope(r){return new Logger(r)}setLevel(r){p.setLevel(r)}static setLevel(r){p.setLevel(r)}trace(...r){p.trace.apply(null,prepareLine(this.prefix+"T",r))}debug(...r){p.debug.apply(null,prepareLine(this.prefix+"D",r))}info(...r){p.info.apply(null,prepareLine(this.prefix+"I",r))}warn(...r){p.warn.apply(null,prepareLine(this.prefix+"W",r))}error(...r){p.error.apply(null,prepareLine(this.prefix+"E",r))}static trace(...r){p.trace.apply(null,prepareLine("T",r))}static debug(...r){p.debug.apply(null,prepareLine("D",r))}static info(...r){p.info.apply(null,prepareLine("I",r))}static warn(...r){p.warn.apply(null,prepareLine("W",r))}static error(...r){p.error.apply(null,prepareLine("E",r))}}c.Logger=Logger},15617:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.Media=class Media{constructor(r,c,u){this.config=r,this.network=c,this._update(u)}get sid(){return this.state.sid}get serviceSid(){return this.state.serviceSid}get dateCreated(){return this.state.dateCreated}get dateUpdated(){return this.state.dateUpdated}get contentType(){return this.state.contentType}get size(){return this.state.size}get fileName(){return this.state.filename}async getContentUrl(){let r=await this.network.get(`${this.config.baseUrl}/${this.sid}`);return this._update(r.body),Promise.resolve(this.state.contentDirectUrl)}_update(r){this.state={sid:r.sid,serviceSid:r.service_sid,channelSid:r.channel_sid,messageSid:r.message_sid,dateCreated:r.date_created?new Date(r.date_created):null,dateUpdated:r.date_updated?new Date(r.date_updated):null,size:r.size,contentType:r.content_type,url:r.url,contentUrl:r.links.content,contentDirectUrl:r.links.content_direct_temporary,filename:r.filename?r.filename:null}}}},682:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(89948),y=u(42997),w=u(24202),k=y.Logger.scope("Network");c.Network=class Network{constructor(r,c){this.config=r,this.transport=c}backoffConfig(){return Object.assign(w.Configuration.backoffConfigDefault,this.config.backoffConfigOverride)}retryWhenThrottled(){return void 0!==this.config.retryWhenThrottledOverride?this.config.retryWhenThrottledOverride:void 0!==w.Configuration.retryWhenThrottledDefault&&w.Configuration.retryWhenThrottledDefault}executeWithRetry(r,c=!1){return new Promise((u,y)=>{let w=[502,503,504];c&&w.push(429);let k=new p.Retrier(this.backoffConfig());k.on("attempt",()=>{r().then(r=>k.succeeded(r)).catch(r=>{w.indexOf(r.status)>-1||"Twilsock disconnected"===r.message?k.failed(r):(k.removeAllListeners(),k.cancel(),y(r))})}),k.on("succeeded",r=>{u(r)}),k.on("cancelled",r=>y(r)),k.on("failed",r=>y(r)),k.start()})}async get(r){const c={"X-Twilio-Token":this.config.token};k.trace("sending GET request to ",r," headers ",c);let u=await this.executeWithRetry(()=>this.transport.get(r,c),this.retryWhenThrottled());return k.trace("response",u),u}async post(r,c,u){let p,y={"X-Twilio-Token":this.config.token};"undefined"!=typeof FormData&&c instanceof FormData||!u||Object.assign(y,{"Content-Type":u}),k.trace("sending POST request to ",r," headers ",y);try{p=await this.transport.post(r,y,c)}catch(r){throw r instanceof TypeError?(k.trace("got error in post response",r),new TypeError("Posting FormData supported only with browser engine's FormData")):r}return k.trace("response",p),p}}},4901:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(67211),y=u.g.XMLHttpRequest||u(51377).XMLHttpRequest;class Transport{constructor(){}static request(r,c,u,w){return new Promise((k,x)=>{let E=new y;E.open(r,c,!0),E.onreadystatechange=function onreadystatechange(){if(4!==E.readyState)return;const r=function parseResponseHeaders(r){return r?r.split("\r\n").map(r=>r.split(": ")).filter(r=>2===r.length&&r[1].length>0).reduce((r,c)=>(r[c[0]]=c[1],r),{}):{}}(E.getAllResponseHeaders()),c=function extractBody(r){const c=r.getResponseHeader("Content-Type");if(!c||0!==c.indexOf("application/json")||0===r.responseText.length)return r.responseText;try{return JSON.parse(r.responseText)}catch(c){return r.responseText}}(E);if(200<=E.status&&E.status<300)k({status:E.status,headers:r,body:c});else{const u=E.statusText&&E.statusText.code?E.statusText.code:"NONE";let y;y="string"==typeof c?c&&1===c.split("\n",2).length?c:"":JSON.stringify(c);const w=`${E.status}: [${u}] ${y}`;x(new p.TransportError(w,E.status,c,u,r))}};for(let r in u)E.setRequestHeader(r,u[r]),"Content-Type"===r&&"application/json"===u[r]&&(w=JSON.stringify(w));E.send(w)})}get(r,c){return Transport.request("GET",r,c)}post(r,c,u){return Transport.request("POST",r,c,u)}}c.Transport=Transport},67211:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});class TransportError extends Error{constructor(r,c,u,p,y){super(r),this.code=c,this.body=u,this.status=p,this.headers=y}}c.TransportError=TransportError},78313:r=>{"use strict";r.exports={i8:"0.3.3"}},30653:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Client=void 0;const p=u(17187),y=u(58022),w=u(38085),k=u(32508),x=u(83863);class Client extends p.EventEmitter{constructor(r,c={}){if(super(),!r||0===r.length)throw new Error("Token is required for Notifications client");c.logLevel=c.logLevel||"error",x.log.setLevel(c.logLevel);c.minTokenRefreshInterval;const u=c.productId||"notifications";c.twilsockClient=c.twilsockClient||new y.TwilsockClient(r,u,c),c.transport=c.transport||c.twilsockClient,this.services={twilsock:c.twilsockClient,transport:c.transport,config:new w.Configuration(null,c)},this.registrar=new k.Registrar(u,this.services.transport,this.services.twilsock,this.services.config),this.reliableTransportState={overall:!1,transport:!1,registration:!1,lastEmitted:null},this._onTransportStateChange(this.services.twilsock.isConnected),this.registrar.on("transportReady",r=>{this._onRegistrationStateChange(r?"registered":"")}),this.registrar.on("stateChanged",r=>{this._onRegistrationStateChange(r)}),this.registrar.on("needReliableTransport",this._onNeedReliableTransport.bind(this)),this.services.twilsock.on("message",(r,c)=>this._routeMessage(r,c)),this.services.twilsock.on("connected",r=>{this._onTransportStateChange(!0),this.registrar.setNotificationId("twilsock",r)}),this.services.twilsock.on("disconnected",()=>{this._onTransportStateChange(!1)}),this.services.config.updateToken(r),this.registrar.updateToken(r)}get connectionState(){return"disconnected"===this.services.twilsock.state?"disconnected":"disconnecting"===this.services.twilsock.state?"disconnecting":"connected"===this.services.twilsock.state&&this.reliableTransportState.registration?"connected":"rejected"===this.services.twilsock.state?"denied":"connecting"}_routeMessage(r,c){x.log.trace("Message arrived: ",r,c),this.emit("message",r,c)}_onNeedReliableTransport(r){r?this.services.twilsock.connect():this.services.twilsock.disconnect()}_onRegistrationStateChange(r){this.reliableTransportState.registration="registered"===r,this._updateTransportState()}_onTransportStateChange(r){this.reliableTransportState.transport=r,this._updateTransportState()}_updateTransportState(){const r=this.reliableTransportState.transport&&this.reliableTransportState.registration;this.reliableTransportState.overall!==r&&(this.reliableTransportState.overall=r,x.log.info("Transport ready:",r),this.emit("transportReady",r)),this.reliableTransportState.lastEmitted!==this.connectionState&&(this.reliableTransportState.lastEmitted=this.connectionState,this.emit("connectionStateChanged",this.connectionState))}subscribe(r,c="twilsock"){return x.log.trace("Add subscriptions for message type: ",r,c),this.registrar.subscribe(r,c)}unsubscribe(r,c="twilsock"){return x.log.trace("Remove subscriptions for message type: ",r,c),this.registrar.unsubscribe(r,c)}handlePushNotification(r){return{messageType:r.twi_message_type,payload:r.payload}}setPushRegistrationId(r,c){x.log.trace("Set push registration id",r,c),this.registrar.setNotificationId(c,r)}async updateToken(r){x.log.info("authTokenUpdated"),this.services.config.token!==r&&(await this.services.twilsock.updateToken(r),this.services.config.updateToken(r),this.registrar.updateToken(r))}}c.Client=Client},38085:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Configuration=void 0;c.Configuration=class Configuration{constructor(r,c={}){let u=c.notifications||{};const p=`https://ers.${u.region||c.region||"us1"}.twilio.com/v1/registrations`;this.registrarUrl=u.ersUrl||p,this._token=r}updateToken(r){this._token=r}get token(){return this._token}}},26762:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Connector=c.RegistrationState=void 0;const p=u(17187),y=u(83863);class RegistrationState{constructor(r="",c="",u=new Set){this.token=r,this.notificationId=c,this.messageTypes=u}clone(){return new RegistrationState(this.token,this.notificationId,new Set(this.messageTypes))}}c.RegistrationState=RegistrationState;class Connector extends p.EventEmitter{constructor(r){super(),this.config=r,this.desiredState=new RegistrationState,this.currentState=new RegistrationState,this.hasActiveAttempt=!1}async subscribe(r){this.desiredState.messageTypes.has(r)?y.log.debug("message type already registered ",r):(this.desiredState.messageTypes.add(r),await this.persistRegistration())}async unsubscribe(r){this.desiredState.messageTypes.has(r)&&(this.desiredState.messageTypes.delete(r),await this.persistRegistration())}updateToken(r){this.desiredState.token=r,this.persistRegistration()}async persistRegistration(){if(!this.config.token||0===this.config.token.length)return void y.log.trace("Can't persist registration: token is not set");if(this.hasActiveAttempt)return void y.log.trace("One registration attempt is already in progress");let[r,c]=function hasDifference(r,c){let u=new Set;return r.notificationId!==c.notificationId&&u.add("notificationId"),r.token!==c.token&&u.add("token"),function setDifference(r,c){return[...[...r].filter(r=>!c.has(r)),...[...c].filter(c=>!r.has(c))]}(r.messageTypes,c.messageTypes).length>0&&u.add("messageType"),[u.size>0,u]}(this.desiredState,this.currentState);if(r){this.currentState.notificationId||c.delete("notificationId"),y.log.trace("Persisting registration",c,this.desiredState);try{this.hasActiveAttempt=!0;let r=this.desiredState.clone();if(r.messageTypes.size>0){let u=await this.updateRegistration(r,c);this.currentState.token=u.token,this.currentState.notificationId=u.notificationId,this.currentState.messageTypes=u.messageTypes,this.emit("stateChanged","registered")}else await this.removeRegistration(),this.currentState.token=r.token,this.currentState.notificationId=r.notificationId,this.currentState.messageTypes.clear(),this.emit("stateChanged","unregistered")}finally{this.hasActiveAttempt=!1,setTimeout(()=>this.persistRegistration(),0)}}}setNotificationId(r){this.desiredState.notificationId=r,this.persistRegistration()}}c.Connector=Connector},51684:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Notifications=void 0;const p=u(30653);Object.defineProperty(c,"Notifications",{enumerable:!0,get:function(){return p.Client}})},83863:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.log=c.Logger=void 0;const p=u(2043);function prepareLine(r,c){return[`${(new Date).toISOString()} Notifications ${r}:`].concat(Array.from(c))}class Logger{constructor(){this.prefix=""}static scope(r=""){return new Logger}setLevel(r){p.setLevel(r)}trace(...r){p.debug.apply(null,prepareLine("T"+this.prefix,r))}debug(...r){p.debug.apply(null,prepareLine("D"+this.prefix,r))}info(...r){p.info.apply(null,prepareLine("I"+this.prefix,r))}warn(...r){p.warn.apply(null,prepareLine("W"+this.prefix,r))}error(...r){p.error.apply(null,prepareLine("E"+this.prefix,r))}}c.Logger=Logger;let y=Logger.scope();c.log=y},47214:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.RegistrarConnector=c.Connector=void 0;const p=u(89948),y=u(83863),w=u(26762);Object.defineProperty(c,"Connector",{enumerable:!0,get:function(){return w.Connector}});let k={min:2e3,max:12e4,randomness:.2};class RegistrarConnector extends w.Connector{constructor(r,c,u,p){super(p),this.channelType=r,this.context=c,this.transport=u}async updateRegistration(r,c){return c.has("notificationId")&&await this.removeRegistration(),r.notificationId&&r.notificationId.length?(await this.register(r),r):r}async removeRegistration(){if(!this.registrationId)return;const r=`${this.config.registrarUrl}/${this.registrationId}?productId=${this.context.productId}`,c={"Content-Type":"application/json","X-Twilio-Token":this.config.token};try{y.log.trace("Removing registration for ",this.channelType),await new p.Retrier(Object.assign(k,{maxAttemptsCount:3})).run(()=>this.transport.delete(r,c)),y.log.debug("Registration removed for",this.channelType)}catch(r){throw y.log.error("Failed to remove of registration ",this.channelType,r),r}}async register(r){y.log.trace("Registering",this.channelType,r);let c={endpoint_platform:this.context.platform,channel_type:this.channelType,version:this.context.protocolVersion.toString(),message_types:Array.from(r.messageTypes),data:{registration_id:r.notificationId},ttl:"PT24H"};const u=`${this.config.registrarUrl}?productId=${this.context.productId}`,w={"Content-Type":"application/json","X-Twilio-Token":r.token};y.log.trace("Creating registration for channel ",this.channelType);try{let r=await new p.Retrier(k).run(()=>this.transport.post(u,w,c));this.registrationId=r.body.id,y.log.debug("Registration created: ",r)}catch(r){throw y.log.error("Registration failed: ",r),r}}}c.RegistrarConnector=RegistrarConnector},32508:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Registrar=void 0;const p=u(17187),y=u(47214),w=u(78140);class Registrar extends p.EventEmitter{constructor(r,c,u,p){super(),this.config=p,this.connectors=new Map;const k=this.detectPlatform();this.connectors.set("gcm",new y.RegistrarConnector("gcm",{protocolVersion:3,productId:r,platform:k},c,p)),this.connectors.set("fcm",new y.RegistrarConnector("fcm",{protocolVersion:3,productId:r,platform:k},c,p)),this.connectors.set("apn",new y.RegistrarConnector("apn",{protocolVersion:4,productId:r,platform:k},c,p)),this.connectors.set("twilsock",new w.TwilsockConnector({productId:r,platform:k},u,p)),this.connectors.get("twilsock").on("transportReady",r=>this.emit("transportReady",r))}setNotificationId(r,c){this.connector(r).setNotificationId(c)}subscribe(r,c){return this.connector(c).subscribe(r)}unsubscribe(r,c){return this.connector(c).unsubscribe(r)}updateToken(r){this.connectors.forEach(c=>c.updateToken(r))}connector(r){let c=this.connectors.get(r);if(!c)throw new Error("Unknown channel type: "+r);return c}detectPlatform(){let r="";return"undefined"!=typeof navigator?(r="unknown",void 0!==navigator.product&&(r=navigator.product),void 0!==navigator.userAgent&&(r=navigator.userAgent)):r="web",r.substring(0,128)}}c.Registrar=Registrar},78140:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TwilsockConnector=void 0;const p=u(55877),y=u(26762);class TwilsockConnector extends y.Connector{constructor(r,c,u){super(u),this.twilsock=c,this.context=r,r.id=p.v4(),this.twilsock.on("stateChanged",r=>{"connected"!==r&&this.emit("transportReady",!1)}),this.twilsock.on("registered",u=>{r&&u===r.id&&"connected"===c.state&&this.emit("transportReady",!0)})}setNotificationId(...r){}updateToken(r){}async updateContextRequest(r){let c={product_id:this.context.productId,notification_protocol_version:4,endpoint_platform:this.context.platform,message_types:r};this.emit("transportReady",!1),await this.twilsock.setNotificationsContext(this.context.id,c)}async updateRegistration(r,c){if(c.has("messageType"))return await this.updateContextRequest(Array.from(r.messageTypes)),r}removeRegistration(){return this.twilsock.removeNotificationsContext(this.context.id)}}c.TwilsockConnector=TwilsockConnector},92812:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(17187),y=u(89948);class BackoffRetrier extends p.EventEmitter{constructor(r){super(),this.options=r?Object.assign({},r):{}}get inProgress(){return!!this.retrier}start(){if(this.inProgress)throw new Error("Already waiting for next attempt, call finishAttempt(success : boolean) to finish it");this.createRetrier()}stop(){this.cleanRetrier(),this.newBackoff=null,this.usedBackoff=null}modifyBackoff(r){this.newBackoff=r}attemptFailed(){if(!this.inProgress)throw new Error("No attempt is in progress");if(this.newBackoff){!this.usedBackoff||this.usedBackoff<this.newBackoff?this.createRetrier():this.retrier.failed(new Error)}else this.retrier.failed(new Error)}cancel(){this.retrier&&this.retrier.cancel()}cleanRetrier(){this.retrier&&(this.retrier.removeAllListeners(),this.retrier.cancel(),this.retrier=null)}getRetryPolicy(){const r=Object.assign({},this.options);return this.newBackoff&&(r.min=this.newBackoff,r.max=this.options.max&&this.options.max>this.newBackoff?this.options.max:this.newBackoff),r.maxAttemptsCount=this.options.maxAttemptsCount?this.options.maxAttemptsCount+1:void 0,r}createRetrier(){this.cleanRetrier();const r=this.getRetryPolicy();this.retrier=new y.Retrier(r),this.retrier.once("attempt",()=>{this.retrier.on("attempt",()=>this.emit("attempt")),this.retrier.failed(new Error("Skipping first attempt"))}),this.retrier.on("failed",r=>this.emit("failed",r)),this.usedBackoff=this.newBackoff,this.newBackoff=null,this.retrier.start().catch(r=>{})}}c.BackoffRetrier=BackoffRetrier},73584:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(17187),y=u(96278),w=u(59325),k=u(88236),x=u(26895),E=u(88491),I=u(61521),K=u(27537),J=u(80574),ie=u(69275),oe=u(44104),se=u(39448),ae=u(5423);class TelemetryEvents{}c.TelemetryEvents=TelemetryEvents,TelemetryEvents.TWILSOCK_CONNECT="twilsock.sdk.connect",TelemetryEvents.TWILSOCK_INIT="twilsock.sdk.init";class TwilsockClient extends p.EventEmitter{constructor(r,c,u={}){super(),this.offlineStorageDeferred=new J.Deferred,u.continuationToken=u.continuationToken?u.continuationToken:se.TokenStorage.getStoredToken(c);let p=this.config=new w.Configuration(r,c,u);y.log.setLevel(p.logLevel);let oe=new E.WebSocketChannel(p.url),ue=u.transport?u.transport:new x.PacketInterface(oe,p);this.channel=u.channel?u.channel:new k.TwilsockImpl(oe,ue,p),this.registrations=u.registrations?u.registrations:new I.Registrations(ue),this.upstream=new K.Upstream(ue,this.channel,p),this.telemetryTracker=new ae.TelemetryTracker(p,ue),this.channel.on("initialized",()=>this.telemetryTracker.canSendTelemetry=!0),oe.on("disconnected",()=>this.telemetryTracker.canSendTelemetry=!1),this.registrations.on("registered",r=>this.emit("registered",r)),this.channel.on("message",(r,c)=>setTimeout(()=>this.emit("message",r,c),0)),this.channel.on("stateChanged",r=>setTimeout(()=>this.emit("stateChanged",r),0)),this.channel.on("connectionError",r=>setTimeout(()=>this.emit("connectionError",r),0)),this.channel.on("tokenAboutToExpire",()=>setTimeout(()=>this.emit("tokenAboutToExpire"),0)),this.channel.on("tokenExpired",()=>setTimeout(()=>this.emit("tokenExpired"),0)),this.channel.on("connected",()=>this.registrations.updateRegistrations()),this.channel.on("connected",()=>this.upstream.sendPendingMessages()),this.channel.on("connected",()=>setTimeout(()=>this.emit("connected"),0)),this.channel.on("beforeConnect",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Establish WebSocket connection","",new Date),TelemetryEvents.TWILSOCK_CONNECT,ae.TelemetryPoint.Start)),this.channel.on("connected",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Establish WebSocket connection","",new Date,new Date),TelemetryEvents.TWILSOCK_CONNECT,ae.TelemetryPoint.End)),this.channel.on("beforeSendInit",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Send Twilsock init","",new Date),TelemetryEvents.TWILSOCK_INIT,ae.TelemetryPoint.Start)),this.channel.on("initialized",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Send Twilsock init","Succeeded",new Date,new Date),TelemetryEvents.TWILSOCK_INIT,ae.TelemetryPoint.End)),this.channel.on("sendInitFailed",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Send Twilsock init","Failed",new Date,new Date),TelemetryEvents.TWILSOCK_INIT,ae.TelemetryPoint.End)),this.channel.on("initialized",r=>{this.handleStorageId(c,r),se.TokenStorage.storeToken(r.continuationToken,c),setTimeout(()=>this.emit("initialized",r),0)}),this.channel.on("disconnected",()=>setTimeout(()=>this.emit("disconnected"),0)),this.channel.on("disconnected",()=>this.upstream.rejectPendingMessages()),this.channel.on("disconnected",()=>this.offlineStorageDeferred.fail(new ie.TwilsockError("Client disconnected"))),this.offlineStorageDeferred.promise.catch(()=>{})}emit(r,...c){return y.log.debug(`Emitting ${r.toString()}(${c.map(r=>JSON.stringify(r)).join(", ")})`),super.emit(r,...c)}handleStorageId(r,c){if(c.offlineStorage)if(c.offlineStorage.hasOwnProperty(r))try{this.offlineStorageDeferred.set(oe.OfflineProductStorage.create(c.offlineStorage[r])),y.log.debug(`Offline storage for '${r}' product: ${JSON.stringify(c.offlineStorage[r])}.`)}catch(u){this.offlineStorageDeferred.fail(new ie.TwilsockError(`Failed to parse offline storage for ${r} ${JSON.stringify(c.offlineStorage[r])}. ${u}.`))}else this.offlineStorageDeferred.fail(new ie.TwilsockError(`No offline storage id for '${r}' product: ${JSON.stringify(c.offlineStorage)}`));else this.offlineStorageDeferred.fail(new ie.TwilsockError("No offline storage id"))}storageId(){return this.offlineStorageDeferred.promise}get isConnected(){return this.channel.isConnected}get state(){return this.channel.state}async updateToken(r){if(y.log.trace(`updating token '${r}'`),this.config.token!==r)return this.config.updateToken(r),this.channel.updateToken(r)}setNotificationsContext(r,c){this.registrations.setNotificationsContext(r,c)}removeNotificationsContext(r){this.registrations.removeNotificationsContext(r)}connect(){return this.channel.connect()}disconnect(){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEventsIncludingUnfinished),this.channel.disconnect()}get(r,c,u){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEvents),this.upstream.send("GET",r,c,void 0,u)}post(r,c,u,p){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEvents),this.upstream.send("POST",r,c,u,p)}put(r,c,u,p){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEvents),this.upstream.send("PUT",r,c,u,p)}delete(r,c,u){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEvents),this.upstream.send("DELETE",r,c,void 0,u)}addTelemetryEvent(r){this.telemetryTracker.addTelemetryEvent(r),this.telemetryTracker.sendTelemetryIfMinimalPortionCollected()}addPartialTelemetryEvent(r,c,u){this.telemetryTracker.addPartialEvent(r,c,u),u===ae.TelemetryPoint.End&&this.telemetryTracker.sendTelemetryIfMinimalPortionCollected()}}c.TwilsockClient=TwilsockClient,c.Twilsock=TwilsockClient},59325:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.Configuration=class Configuration{constructor(r,c,u={}){this.confirmedCapabilities=new Set,this.activeGrant=c,this._token=r;const p=`wss://tsock.${u.region||"us1"}.twilio.com/v3/wsconnect`;let y=u.twilsock||u.Twilsock||{};this.url=y.uri||p,this._continuationToken=u.continuationToken?u.continuationToken:null,this.logLevel=u.logLevel?u.logLevel:"error",this.retryPolicy=u.retryPolicy?u.retryPolicy:{min:1e3,max:12e4,randomness:.2},this.clientMetadata=u.clientMetadata?u.clientMetadata:{},this.clientMetadata.ver="0.6.2",this.initRegistrations=u.initRegistrations?u.initRegistrations:null,this.tweaks=u.tweaks?u.tweaks:null}get token(){return this._token}get continuationToken(){return this._continuationToken}updateToken(r){this._token=r}updateContinuationToken(r){this._continuationToken=r}}},80574:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.Deferred=class Deferred{constructor(){this._promise=new Promise((r,c)=>{this._resolve=r,this._reject=c})}get promise(){return this._promise}update(r){this._resolve(r)}set(r){this.current=r,this._resolve(r)}fail(r){this._reject(r)}}},26947:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(69275);class TransportUnavailableError extends p.TwilsockError{constructor(r){super(r)}}c.TransportUnavailableError=TransportUnavailableError},69275:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});class TwilsockError extends Error{constructor(r){super(r)}}c.TwilsockError=TwilsockError},86020:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(69275);class TwilsockReplyError extends p.TwilsockError{constructor(r,c){super(r),this.reply=c}}c.TwilsockReplyError=TwilsockReplyError},52001:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(69275);class TwilsockUpstreamError extends p.TwilsockError{constructor(r,c,u){super(c),this.status=r,this.description=c,this.body=u}}c.TwilsockUpstreamError=TwilsockUpstreamError},58022:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(73584);c.TwilsockClient=p.TwilsockClient,c.Twilsock=p.TwilsockClient;const y=u(69275);c.TwilsockError=y.TwilsockError;const w=u(26947);c.TransportUnavailableError=w.TransportUnavailableError},96278:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(2043).getLogger("twilsock");function prepareLine(r,c){return[`${(new Date).toISOString()} Twilsock ${r}:`].concat(Array.from(c))}class Logger{constructor(r){this.prefix="",this.prefix=null!=r&&r.length>0?" "+r+":":""}setLevel(r){p.setLevel(r)}static setLevel(r){p.setLevel(r)}trace(...r){p.debug.apply(null,prepareLine("T",r))}debug(...r){p.debug.apply(null,prepareLine("D",r))}info(...r){p.info.apply(null,prepareLine("I",r))}warn(...r){p.warn.apply(null,prepareLine("W",r))}error(...r){p.error.apply(null,prepareLine("E",r))}static trace(...r){p.trace.apply(null,prepareLine("T",r))}static debug(...r){p.debug.apply(null,prepareLine("D",r))}static info(...r){p.info.apply(null,prepareLine("I",r))}static warn(...r){p.warn.apply(null,prepareLine("W",r))}static error(...r){p.error.apply(null,prepareLine("E",r))}}c.Logger=Logger;let y=new Logger("");c.log=y},61659:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(31795);c.Metadata=class Metadata{static getMetadata(r){"undefined"!=typeof navigator&&p.parse(navigator.userAgent);let c=r&&r.clientMetadata?r.clientMetadata:{};const u={env:p.name,envv:p.version,os:p.os.family,osv:p.os.version,osa:p.os.architecture,sdk:"js-default"};let y={};return["ver","env","envv","os","osv","osa","type","sdk","sdkv","dev","devv","devt","app","appv"].filter(r=>r in c||r in u).forEach(r=>y[r]=r in c?c[r]:u[r]),y}}},44104:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(69275);class OfflineProductStorage{constructor(r){this.id=r}static create(r){if(r instanceof Object&&"storage_id"in r)return new OfflineProductStorage(r.storage_id);throw new p.TwilsockError('Field "storage_id" is missing')}}c.OfflineProductStorage=OfflineProductStorage},26895:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(96278),y=u(55877),w=u(69275),k=u(86020),x=u(64631),E=u(72649),I=u(61659);c.PacketResponse=class PacketResponse{};c.PacketInterface=class PacketInterface{constructor(r,c){this.config=c,this.activeRequests=new Map,this.channel=r,this.channel.on("reply",r=>this.processReply(r)),this.channel.on("disconnected",()=>{this.activeRequests.forEach(r=>{clearTimeout(r.timeout),r.reject(new w.TwilsockError("disconnected"))}),this.activeRequests.clear()})}get isConnected(){return this.channel.isConnected}processReply(r){const c=this.activeRequests.get(r.id);c&&(clearTimeout(c.timeout),this.activeRequests.delete(r.id),!function isHttpSuccess(r){return r>=200&&r<300}(r.status.code)?(c.reject(new k.TwilsockReplyError("Transport failure: "+r.status.status,r)),p.log.trace("message rejected")):c.resolve(r))}storeRequest(r,c,u){let y={resolve:c,reject:u,timeout:setTimeout(()=>{p.log.trace("request",r,"is timed out"),u(new w.TwilsockError("Twilsock: request timeout: "+r))},3e4)};this.activeRequests.set(r,y)}shutdown(){this.activeRequests.forEach(r=>{clearTimeout(r.timeout),r.reject(new w.TwilsockError("Twilsock: request cancelled by user"))}),this.activeRequests.clear()}async sendInit(){p.log.trace("sendInit");let r=I.Metadata.getMetadata(this.config),c=new E.Init(this.config.token,this.config.continuationToken,r,this.config.initRegistrations,this.config.tweaks),u=await this.sendWithReply(c);return new E.InitReply(u.id,u.header.continuation_token,u.header.continuation_token_status,u.header.offline_storage,u.header.init_registrations,u.header.debug_info,new Set(u.header.capabilities))}sendClose(){let r=new E.Close;this.send(r)}sendWithReply(r,c){return new Promise((u,p)=>{let y=this.send(r,c);this.storeRequest(y,u,p)})}send(r,c){r.id=r.id||"TM"+y.v4();let u=x.Parser.createPacket(r,function preparePayload(r){switch(typeof r){case"undefined":return"";case"object":return JSON.stringify(r);default:return r}}(c));try{return this.channel.send(u),r.id}catch(c){throw p.log.debug("failed to send ",r,c),p.log.trace(c.stack),c}}}},64631:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(96278);function byteLength(r){return encodeURIComponent(r).replace(/%([0-9A-F]{2})/g,(r,c)=>String.fromCharCode("0x"+c)).length}function uint8ArrayToString(r){let c=Array.prototype.map.call(r,r=>String.fromCharCode(r)).join("").replace(/(.)/g,(r,c)=>{let u=c.charCodeAt(0).toString(16).toUpperCase();return u.length<2&&(u="0"+u),"%"+u});return decodeURIComponent(c)}function getJsonObject(r){return JSON.parse(uint8ArrayToString(r))}c.Parser=class Parser{constructor(){}static parse(r){const c=new Uint8Array(r),u=function getMagic(r){let c="",u=0;for(;u<r.length;++u){const p=String.fromCharCode(r[u]);if(c+=p,"\r"===p){u+=2;break}}const p=c.split(" ");return{size:u,protocol:p[0],version:p[1],headerSize:Number(p[2])}}(c);if("TWILSOCK"!==u.protocol||"V3.0"!==u.version)return void p.log.error(`unsupported protocol: ${u.protocol} ver ${u.version}`);let y=null;try{y=getJsonObject(c.subarray(u.size,u.size+u.headerSize))}catch(c){return void p.log.error("failed to parse message header",c,r)}p.log.debug("message received: ",y.method),p.log.trace("message received: ",y);let w=null;if(y.payload_size>0){const k=2+u.size+u.headerSize,x=y.payload_size;if(y.hasOwnProperty("payload_type")&&0!==y.payload_type.indexOf("application/json"))0===y.payload_type.indexOf("text/plain")&&(w=uint8ArrayToString(c.subarray(k,k+x)));else try{w=getJsonObject(c.subarray(k,k+x))}catch(c){return void p.log.error("failed to parse message body",c,r)}}return{method:y.method,header:y,payload:w}}static createPacket(r,c=""){r.payload_size=byteLength(c);let u=JSON.stringify(r)+"\r\n",y="TWILSOCK V3.0 "+(byteLength(u)-2)+"\r\n";return p.log.debug("send request:",y+u+c),function stringToUint8Array(r){let c=encodeURIComponent(r).replace(/%([0-9A-F]{2})/g,(r,c)=>String.fromCharCode("0x"+c)),u=new Uint8Array(c.length);return Array.prototype.forEach.call(c,(r,c)=>{u[c]=r.charCodeAt(0)}),u}(y+u+c).buffer}}},14926:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(55877);c.AbstractMessage=class AbstractMessage{constructor(r){this.id=r||"TM"+p.v4()}}},51469:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(14926);class Close extends p.AbstractMessage{constructor(){super(),this.method="close"}}c.Close=Close},72649:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(8687);c.Init=p.Init;const y=u(52990);c.InitReply=y.InitReply;const w=u(80505);c.Update=w.Update;const k=u(77013);c.Message=k.Message;const x=u(81425);c.Reply=x.Reply;const E=u(51469);c.Close=E.Close;const I=u(23743);c.Telemetry=I.Telemetry},8687:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(14926);class Init extends p.AbstractMessage{constructor(r,c,u,p=null,y=null){super(),this.method="init",this.token=r,this.continuation_token=c,this.metadata=u,this.registrations=p,this.tweaks=y,this.capabilities=["client_update","offline_storage","telemetry.v1"]}}c.Init=Init},52990:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(14926);c.ContinuationTokenStatus=class ContinuationTokenStatus{};class InitReply extends p.AbstractMessage{constructor(r,c,u,p,y,w,k){super(r),this.continuationToken=c,this.continuationTokenStatus=u,this.offlineStorage=p,this.initRegistrations=y,this.debugInfo=w,this.confirmedCapabilities=k}}c.InitReply=InitReply},77013:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(14926);class Message extends p.AbstractMessage{constructor(r,c,u){super(),this.method="message",this.active_grant=r,this.payload_type=c,this.http_request=u}}c.Message=Message},81425:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(14926);class Reply extends p.AbstractMessage{constructor(r){super(r),this.method="reply",this.payload_type="application/json",this.status={code:200,status:"OK"}}}c.Reply=Reply},23743:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(14926);c.TelemetryEvent=class TelemetryEvent{constructor(r,c,u,p,y,w){this.start=r,this.end=c,this.title=u,this.details=p,this.id=y,this.type=w}};class Telemetry extends p.AbstractMessage{constructor(r){super(),this.method="telemetry.v1",this.events=r}}c.Telemetry=Telemetry},80505:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(14926);class Update extends p.AbstractMessage{constructor(r){super(),this.method="update",this.token=r}}c.Update=Update},61521:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(96278),y=u(17187),w=u(55877),k=u(69275);class Registrations extends y.EventEmitter{constructor(r){super(),this.transport=r,this.registrations=new Map,this.registrationsInProgress=new Map}async putNotificationContext(r,c){const u={method:"put_notification_ctx",notification_ctx_id:r};await this.transport.sendWithReply(u,c)}async deleteNotificationContext(r){let c={method:"delete_notification_ctx",notification_ctx_id:r};await this.transport.sendWithReply(c)}async updateRegistration(r,c){p.log.debug("update registration for context",r);let u=this.registrationsInProgress.get(r);u||(u=new Set,this.registrationsInProgress.set(r,u));const y=w.v4();u.add(y);try{await this.putNotificationContext(r,c),p.log.debug("registration attempt succeeded for context",c),u.delete(y),0===u.size&&(this.registrationsInProgress.delete(r),this.emit("registered",r))}catch(w){p.log.warn("registration attempt failed for context",c),p.log.debug(w),u.delete(y),0===u.size&&(this.registrationsInProgress.delete(r),this.emit("registrationFailed",r,w))}}updateRegistrations(){p.log.trace(`refreshing ${this.registrations.size} registrations`),this.registrations.forEach((r,c)=>{this.updateRegistration(c,r)})}setNotificationsContext(r,c){if(!r||!c)throw new k.TwilsockError("Invalid arguments provided");this.registrations.set(r,c),this.transport.isConnected&&this.updateRegistration(r,c)}async removeNotificationsContext(r){this.registrations.has(r)&&(await this.deleteNotificationContext(r),this.transport.isConnected&&this.registrations.delete(r))}}c.Registrations=Registrations},5423:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(23743),y=u(96278);class TelemetryEventDescription{constructor(r,c,u,p,y,w){this.title=r,this.details=c,this.start=u,this.type=y,this.id=w,this.end=p}toTelemetryEvent(){const r=new Date;let c=this.start,u=this.end?this.end:r;if(u<c){let r=u;u=c,c=r}const y=c.getTime()-r.getTime(),w=u.getTime()-r.getTime();return new p.TelemetryEvent(y,w,this.title,this.details,this.id,this.type)}}var w,k;c.TelemetryEventDescription=TelemetryEventDescription,function(r){r[r.Start=0]="Start",r[r.End=1]="End"}(w||(w={})),c.TelemetryPoint=w,function(r){r[r.MinEventsPortion=0]="MinEventsPortion",r[r.AnyEvents=1]="AnyEvents",r[r.AnyEventsIncludingUnfinished=2]="AnyEventsIncludingUnfinished"}(k||(k={})),c.EventSendingLimitation=k;c.TelemetryTracker=class TelemetryTracker{constructor(r,c){this.minEventsPortionToSend=50,this.maxEventsPortionToSend=100,this.pendingEvents=new Map,this.readyEvents=[],this.hasInitializationFinished=!1,this._canSendTelemetry=!1,this.config=r,this.packetInterface=c}get isTelemetryEnabled(){return this.config.confirmedCapabilities.has("telemetry.v1")}get canSendTelemetry(){return this._canSendTelemetry&&this.isTelemetryEnabled}set canSendTelemetry(r){y.log.debug(`TelemetryTracker.canSendTelemetry: ${r} TelemetryTracker.isTelemetryEnabled: ${this.isTelemetryEnabled}`),this._canSendTelemetry&&!r&&(this.pendingEvents.clear(),this.readyEvents=[]),this._canSendTelemetry=r,r&&this.sendTelemetry(k.AnyEvents),r&&!this.hasInitializationFinished&&(this.hasInitializationFinished=!0)}addTelemetryEvent(r){!this.canSendTelemetry&&this.hasInitializationFinished||this.readyEvents.push(r)}addPartialEvent(r,c,u){y.log.debug(`Adding ${u===w.Start?"starting":"ending"} timepoint for '${c}' event`);let p=this.pendingEvents.has(c);if(u===w.Start)p&&y.log.debug(`Overwriting starting point for '${c}' event`),this.pendingEvents.set(c,r);else{if(!p)return void y.log.info(`Could not find started event for '${c}' event`);this.addTelemetryEvent(this.merge(this.pendingEvents.get(c),r)),this.pendingEvents.delete(c)}}getTelemetryToSend(r){return this.canSendTelemetry&&0!=this.readyEvents.length?r==k.MinEventsPortion&&this.readyEvents.length<this.minEventsPortionToSend?[]:this.getTelemetryPortion(r==k.AnyEventsIncludingUnfinished):[]}getTelemetryPortion(r){const c=Math.min(this.readyEvents.length,this.maxEventsPortionToSend);let u=this.readyEvents.splice(0,c);return r&&u.length<this.maxEventsPortionToSend&&this.pendingEvents.forEach((r,c)=>{if(u.length>=this.maxEventsPortionToSend)return;let p=this.pendingEvents.get(c);this.pendingEvents.delete(c),u.push(new TelemetryEventDescription("[UNFINISHED] "+p.title,p.details,p.start,null,p.type,p.id))}),u}merge(r,c){return new TelemetryEventDescription(c.title?c.title:r.title,c.details?c.details:r.details,r.start,c.end,c.type?c.type:r.type,c.id?c.id:r.id)}sendTelemetryIfMinimalPortionCollected(){this.sendTelemetry(k.MinEventsPortion)}sendTelemetry(r){const c=this.getTelemetryToSend(r);if(0!==c.length)try{this.packetInterface.send(new p.Telemetry(c.map(r=>r.toTelemetryEvent())))}catch(r){y.log.debug(`Error while sending ${c.length} telemetry events due to ${r}; they will be resubmitted`),this.readyEvents=this.readyEvents.concat(c)}}}},27537:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(96278),y=u(69275),w=u(52001),k=u(72649),x=u(26947);function twilsockAddress(r,c){const u=function parseUri(r){const c=r.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)(\/[^?#]*)(\?[^#]*|)(#.*|)$/);if(c){let r={protocol:c[1],host:c[2],hostname:c[3],port:c[4],pathname:c[5],search:c[6],hash:c[7],params:null};if(r.search.length>0){let c=r.search.substring(1);r.params=c.split("&").map(r=>r.split("=")).reduce((r,c)=>(r.hasOwnProperty(c[0])?Array.isArray(r[c[0]])?r[c[0]].push(c[1]):r[c[0]]=[r[c[0]],c[1]]:r[c[0]]=c[1],r),{})}return r}throw new y.TwilsockError("Incorrect URI: "+r)}(c);let p={method:r,host:u.host,path:u.pathname};return u.params&&(p.params=u.params),p}c.Upstream=class Upstream{constructor(r,c,u){this.config=u,this.transport=r,this.pendingMessages=[],this.twilsock=c}saveMessage(r){return new Promise((c,u)=>{let w={message:r,resolve:c,reject:u,alreadyRejected:!1,timeout:setTimeout(()=>{p.log.debug("request is timed out"),u(new y.TwilsockError(`request '${r.to.method}' to '${r.to.host}' timed out`)),w.alreadyRejected=!0},2e4)};this.pendingMessages.push(w)})}sendPendingMessages(){for(;this.pendingMessages.length;){let r=this.pendingMessages[0];if(!r.alreadyRejected)try{let c=r.message;this.actualSend(c).then(c=>r.resolve(c)).catch(c=>r.reject(c)),clearTimeout(r.timeout)}catch(r){p.log.debug("Failed to send pending message",r);break}this.pendingMessages.splice(0,1)}}rejectPendingMessages(){this.pendingMessages.forEach(r=>{r.reject(new x.TransportUnavailableError("Unable to connect: "+this.twilsock.getTerminationReason)),clearTimeout(r.timeout)}),this.pendingMessages.splice(0,this.pendingMessages.length)}async actualSend(r){let c=r.to,u=r.headers,p=r.body,y=r.grant?r.grant:this.config.activeGrant,x={host:c.host,path:c.path,method:c.method,params:c.params,headers:u},E=new k.Message(y,u["Content-Type"]||"application/json",x),I=await this.transport.sendWithReply(E,p);if(function isHttpReply(r){return r&&r.header&&r.header.http_status}(I)&&!function isHttpSuccess(r){return r>=200&&r<300}(I.header.http_status.code))throw new w.TwilsockUpstreamError(I.header.http_status.code,I.header.http_status.status,I.body);return{status:I.header.http_status,headers:I.header.http_headers,body:I.body}}send(r,c,u={},p,y){if(this.twilsock.isTerminalState)return Promise.reject(new x.TransportUnavailableError("Unable to connect: "+this.twilsock.getTerminationReason));let w=function twilsockParams(r,c,u,p,y){return{to:twilsockAddress(r,c),headers:u,body:p,grant:y}}(r,c,u,p,y);return this.twilsock.isConnected?this.actualSend(w):this.saveMessage(w)}}},39448:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});class TokenStorage{static get sessionStorage(){try{return u.g.sessionStorage}catch(r){return null}}static get window(){try{return u.g.window}catch(r){return null}}static storeToken(r,c){TokenStorage.canStore&&TokenStorage.sessionStorage.setItem(TokenStorage.getKeyName(c),r)}static getStoredToken(r){return TokenStorage.canStore?TokenStorage.sessionStorage.getItem(TokenStorage.getKeyName(r)):null}static initialize(){if(TokenStorage.canStore){TokenStorage.sessionStorage.getItem(TokenStorage.initializedFlag)&&this.clear(),TokenStorage.sessionStorage.setItem(TokenStorage.initializedFlag,"true"),TokenStorage.window.addEventListener("unload",()=>{TokenStorage.sessionStorage.removeItem(TokenStorage.initializedFlag)})}}static clear(){if(TokenStorage.canStore){let r=[];for(let c=0;c<TokenStorage.sessionStorage.length;c++){const u=TokenStorage.sessionStorage.key(c);0===u.indexOf(TokenStorage.tokenStoragePrefix)&&r.push(u)}r.forEach(r=>TokenStorage.sessionStorage.removeItem(r)),TokenStorage.sessionStorage.removeItem(TokenStorage.initializedFlag)}}static getKeyName(r){return`${TokenStorage.tokenStoragePrefix}${r}`}static get canStore(){return TokenStorage.sessionStorage&&TokenStorage.window}}c.TokenStorage=TokenStorage,TokenStorage.initializedFlag="twilio_twilsock_token_storage",TokenStorage.tokenStoragePrefix="twilio_continuation_token_",TokenStorage.initialize()},88236:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(17187),y=u(84907),w=u(96278),k=u(72649),x=u(64631),E=u(86020),I=u(92812);c.Response=class Response{};class TwilsockChannel extends p.EventEmitter{constructor(r,c,u){super(),this.terminalStates=["disconnected","rejected"],this.lastEmittedState=void 0,this.tokenExpiredSasCode=20104,this.terminationReason="Connection is not initialized",this.websocket=r,this.websocket.on("connected",()=>this.fsm.socketConnected()),this.websocket.on("disconnected",r=>this.fsm.socketClosed()),this.websocket.on("message",r=>this.onIncomingMessage(r)),this.websocket.on("socketError",r=>this.emit("connectionError",{terminal:!1,message:"Socket error: "+r.message,httpStatusCode:null,errorCode:null})),this.transport=c,this.config=u,this.retrier=new I.BackoffRetrier(u.retryPolicy),this.retrier.on("attempt",()=>this.retry()),this.retrier.on("failed",r=>{w.log.warn("Retrying failed: "+r.message),this.disconnect()}),"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",()=>{w.log.debug("Browser reported connectivity state: online"),this.resetBackoff(),this.fsm.systemOnline()}),window.addEventListener("offline",()=>{w.log.debug("Browser reported connectivity state: offline"),this.websocket.close(),this.fsm.socketClosed()})),this.fsm=new y({init:"disconnected",transitions:[{name:"userConnect",from:["disconnected","rejected"],to:"connecting"},{name:"userConnect",from:["connecting","connected"]},{name:"userDisconnect",from:["connecting","initialising","connected","updating","retrying","rejected","waitSocketClosed","waitOffloadSocketClosed"],to:"disconnecting"},{name:"userRetry",from:["retrying"],to:"connecting"},{name:"socketConnected",from:["connecting"],to:"initialising"},{name:"socketClosed",from:["connecting","initialising","connected","updating","error","waitOffloadSocketClosed"],to:"retrying"},{name:"socketClosed",from:["disconnecting"],to:"disconnected"},{name:"socketClosed",from:["waitSocketClosed"],to:"disconnected"},{name:"socketClosed",from:["rejected"],to:"rejected"},{name:"initSuccess",from:["initialising"],to:"connected"},{name:"initError",from:["initialising"],to:"error"},{name:"tokenRejected",from:["initialising","updating"],to:"rejected"},{name:"protocolError",from:["initialising","connected","updating"],to:"error"},{name:"receiveClose",from:["initialising","connected","updating"],to:"waitSocketClosed"},{name:"receiveOffload",from:["initialising","connected","updating"],to:"waitOffloadSocketClosed"},{name:"unsupportedProtocol",from:["initialising","connected","updating"],to:"unsupported"},{name:"receiveFatalClose",from:["initialising","connected","updating"],to:"unsupported"},{name:"userUpdateToken",from:["disconnected","rejected","connecting","retrying"],to:"connecting"},{name:"userUpdateToken",from:["connected"],to:"updating"},{name:"updateSuccess",from:["updating"],to:"connected"},{name:"updateError",from:["updating"],to:"error"},{name:"userSend",from:["connected"],to:"connected"},{name:"systemOnline",from:["retrying"],to:"connecting"}],methods:{onConnecting:()=>{this.setupSocket(),this.emit("connecting")},onEnterInitialising:()=>{this.sendInit()},onLeaveInitialising:()=>{this.cancelInit()},onEnterUpdating:()=>{this.sendUpdate()},onLeaveUpdating:()=>{this.cancelUpdate()},onEnterRetrying:()=>{this.initRetry(),this.emit("connecting")},onEnterConnected:()=>{this.resetBackoff(),this.onConnected()},onUserUpdateToken:()=>{this.resetBackoff()},onTokenRejected:()=>{this.resetBackoff(),this.closeSocket(!0),this.finalizeSocket()},onUserDisconnect:()=>{this.closeSocket(!0)},onEnterDisconnecting:()=>{this.startDisconnectTimer()},onLeaveDisconnecting:()=>{this.cancelDisconnectTimer()},onEnterWaitSocketClosed:()=>{this.startDisconnectTimer()},onLeaveWaitSocketClosed:()=>{this.cancelDisconnectTimer()},onEnterWaitOffloadSocketClosed:()=>{this.startDisconnectTimer()},onLeaveWaitOffloadSocketClosed:()=>{this.cancelDisconnectTimer()},onDisconnected:()=>{this.resetBackoff(),this.finalizeSocket()},onReceiveClose:(r,c)=>{this.onCloseReceived(c)},onReceiveOffload:(r,c)=>{w.log.debug("onreceiveoffload: ",c),this.modifyBackoff(c.body),this.onCloseReceived(c.status)},onUnsupported:()=>{this.closeSocket(!0),this.finalizeSocket()},onError:(r,c)=>{this.closeSocket(c),this.finalizeSocket()},onEnterState:r=>{"none"!==r.from&&this.changeState(r)},onInvalidTransition:(r,c,u)=>{w.log.warn("FSM: unexpected transition",c,u)}}})}changeState(r){w.log.debug(`FSM: ${r.transition}: ${r.from} --\x3e ${r.to}`),this.lastEmittedState!==this.state&&(this.lastEmittedState=this.state,this.emit("stateChanged",this.state))}resetBackoff(){w.log.trace("resetBackoff"),this.retrier.stop()}modifyBackoff(r){w.log.trace("modifyBackoff",r);let c=r?r.backoff_policy:null;c&&"number"==typeof c.reconnect_min_ms&&this.retrier.modifyBackoff(c.reconnect_min_ms)}startDisconnectTimer(){w.log.trace("startDisconnectTimer"),this.disconnectingTimer&&(clearTimeout(this.disconnectingTimer),this.disconnectingTimer=null),this.disconnectingTimer=setTimeout(()=>{w.log.debug("disconnecting is timed out"),this.closeSocket(!0)},3e3)}cancelDisconnectTimer(){w.log.trace("cancelDisconnectTimer"),this.disconnectingTimer&&(clearTimeout(this.disconnectingTimer),this.disconnectingTimer=null)}get isConnected(){return"connected"===this.state&&this.websocket.isConnected}get state(){switch(this.fsm.state){case"connecting":case"initialising":case"retrying":case"error":return"connecting";case"updating":case"connected":return"connected";case"rejected":return"rejected";case"disconnecting":case"waitSocketClosed":case"waitOffloadSocketClosed":return"disconnecting";case"disconnected":default:return"disconnected"}}initRetry(){w.log.debug("initRetry"),this.retrier.inProgress?this.retrier.attemptFailed():this.retrier.start()}retry(){"connecting"!=this.fsm.state?(w.log.trace("retry"),this.websocket.close(),this.fsm.userRetry()):w.log.trace("can\t retry as already connecting")}onConnected(){this.emit("connected")}finalizeSocket(){w.log.trace("finalizeSocket"),this.websocket.close(),this.emit("disconnected"),this.disconnectedPromiseResolve&&(this.disconnectedPromiseResolve(),this.disconnectedPromiseResolve=null)}setupSocket(){w.log.trace("setupSocket:",this.config.token),this.emit("beforeConnect"),this.websocket.connect()}onIncomingMessage(r){let{method:c,header:u,payload:p}=x.Parser.parse(r);if("reply"!==c&&this.confirmReceiving(u),"notification"===c)this.emit("message",u.message_type,p);else if("reply"===u.method)this.transport.processReply({id:u.id,status:u.status,header:u,body:p});else if("client_update"===u.method)"token_about_to_expire"===u.client_update_type&&this.emit("tokenAboutToExpire");else if("close"===u.method)if(308===u.status.code)w.log.debug("Connection has been offloaded"),this.fsm.receiveOffload({status:u.status.status,body:p});else if(406===u.status.code){const r="Server closed connection because can't parse protocol: "+JSON.stringify(u.status);this.emitReplyConnectionError(r,u,!0),w.log.error(r),this.fsm.receiveFatalClose()}else 417===u.status.code?(w.log.error("Server closed connection because can't parse client reply: "+JSON.stringify(u.status)),this.fsm.receiveFatalClose(u.status.status)):410===u.status.code?(w.log.warn("Server closed connection: "+JSON.stringify(u.status)),this.fsm.receiveClose(u.status.status),this.emit("tokenExpired")):401===u.status.code?(w.log.error("Server closed connection: "+JSON.stringify(u.status)),this.fsm.receiveClose(u.status.status)):(w.log.warn("unexpected message: ",u.status),this.fsm.receiveOffload({status:u.status.status,body:null}))}async sendInit(){w.log.trace("sendInit");try{this.emit("beforeSendInit");let r=await this.transport.sendInit();this.config.updateContinuationToken(r.continuationToken),this.config.confirmedCapabilities=r.confirmedCapabilities,this.fsm.initSuccess(r),this.emit("initialized",r),this.emit("tokenUpdated")}catch(r){if(r instanceof E.TwilsockReplyError){let c=!1;w.log.warn("Init rejected by server: "+JSON.stringify(r.reply.status)),this.emit("sendInitFailed"),401===r.reply.status.code||403===r.reply.status.code?(c=!0,this.fsm.tokenRejected(r.reply.status),r.reply.status.errorCode===this.tokenExpiredSasCode&&this.emit("tokenExpired")):429===r.reply.status.code?(this.modifyBackoff(r.reply.body),this.fsm.initError(!0)):500===r.reply.status.code?this.fsm.initError(!1):this.fsm.initError(!0),this.emitReplyConnectionError(r.message,r.reply,c)}else this.terminationReason=r.message,this.emit("connectionError",{terminal:!0,message:`Unknown error during connection initialisation: ${r.message}\n${JSON.stringify(r,null,2)}`,httpStatusCode:null,errorCode:null}),this.fsm.initError(!0);this.emit("tokenUpdated",r)}}async sendUpdate(){w.log.trace("sendUpdate");let r=new k.Update(this.config.token);try{let c=await this.transport.sendWithReply(r);this.fsm.updateSuccess(c.body),this.emit("tokenUpdated")}catch(r){if(r instanceof E.TwilsockReplyError){let c=!1;w.log.warn("Token update rejected by server: "+JSON.stringify(r.reply.status)),401===r.reply.status.code||403===r.reply.status.code?(c=!0,this.fsm.tokenRejected(r.reply.status),r.reply.status.errorCode===this.tokenExpiredSasCode&&this.emit("tokenExpired")):429===r.reply.status.code?(this.modifyBackoff(r.reply.body),this.fsm.updateError(r.reply.status)):this.fsm.updateError(r.reply.status),this.emitReplyConnectionError(r.message,r.reply,c)}else this.emit("error",!1,r.message,null,null),this.fsm.updateError(r);this.emit("tokenUpdated",r)}}emitReplyConnectionError(r,c,u){const p=c.status&&c.status.description?c.status.description:r,y=c.status.code,w=c.status&&c.status.errorCode?c.status.errorCode:null;u&&(this.terminationReason=p),this.emit("connectionError",{terminal:u,message:"Connection error: "+p,httpStatusCode:y,errorCode:w})}cancelInit(){w.log.trace("cancelInit")}cancelUpdate(){w.log.trace("cancelUpdate")}confirmReceiving(r){w.log.trace("confirmReceiving");try{this.transport.send(new k.Reply(r.id))}catch(r){w.log.debug("failed to confirm packet receiving",r)}}closeSocket(r){w.log.trace(`closeSocket (graceful: ${r})`),r&&this.transport.isConnected&&this.transport.sendClose(),this.websocket.close(),function trampoline(r){setTimeout(r,0)}(()=>this.fsm.socketClosed())}connect(){w.log.trace("connect"),this.fsm.userConnect()}disconnect(){return w.log.trace("disconnect"),this.fsm.is("disconnected")?Promise.resolve():new Promise(r=>{this.disconnectedPromiseResolve=r,this.fsm.userDisconnect()})}updateToken(r){return w.log.trace("updateToken:",r),new Promise((r,c)=>{this.once("tokenUpdated",u=>{u?c(u):r()}),this.fsm.userUpdateToken()})}get isTerminalState(){return-1!==this.terminalStates.indexOf(this.fsm.state)}get getTerminationReason(){return this.terminationReason}onCloseReceived(r){this.websocket.close()}}c.TwilsockChannel=TwilsockChannel,c.TwilsockImpl=TwilsockChannel},88491:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(17187),y=u(96278);class WebSocketChannel extends p.EventEmitter{constructor(r){super(),this.url=r,this.WebSocket=u.g.WebSocket||u.g.MozWebSocket||u(40418)}get isConnected(){return this.socket&&1===this.socket.readyState}connect(){let r;y.log.trace("connecting to socket");try{r=new this.WebSocket(this.url)}catch(r){return y.log.debug("Socket error: "+this.url),void this.emit("socketError",r)}r.binaryType="arraybuffer",r.onopen=()=>{y.log.debug("socket opened "+this.url),this.emit("connected")},r.onclose=r=>{y.log.debug("socket closed",r),this.emit("disconnected",r)},r.onerror=r=>{y.log.debug("Socket error:",r),this.emit("socketError",r)},r.onmessage=r=>{this.emit("message",r.data)},this.socket=r}send(r){this.socket.send(r)}close(){if(y.log.trace("closing socket"),this.socket){this.socket.onopen=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null;try{this.socket.close()}finally{}}}}c.WebSocketChannel=WebSocketChannel},59522:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Cache=void 0;const p=u(70036);class Entry{constructor(r,c){this.value=r,this.revision=c||0}get isValid(){return!0}}class Tombstone{constructor(r){this.revision=r}get isValid(){return!1}}class Cache{constructor(){this.items=new p.TreeMap}store(r,c,u){let p=this.items.get(r);return p&&p.revision>u?p.isValid?p.value:null:(this.items.set(r,new Entry(c,u)),c)}delete(r,c,u=!1){let p=this.items.get(r);(!p||p.revision<c||p&&!0===u)&&this.items.set(r,new Tombstone(c))}isKnown(r,c){let u=this.items.get(r);return u&&u.revision>=c}get(r){let c=this.items.get(r);return c&&c.isValid?c.value:null}has(r){let c=this.items.get(r);return c&&c.isValid}forEach(r){if(this.items)for(let[c,u]of this.items)u.isValid&&r(c,u.value)}}c.Cache=Cache,c.default=Cache},9755:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SyncClient=c.Client=void 0;const p=u(17187),y=u(16895),w=u(51684),k=u(92343),x=u(78191),E=u(13902),I=u(42681),K=u(50829),J=u(55500),ie=u(72742),oe=u(22091),se=u(80336),ae=u(55909),ue=u(99120),le=u(99423),de=u(43266),pe=u(76847),he=u(85251),ge=u(67053),ve=u(67053),we=u(76989).i8;function decompose(r){if(r){if("string"==typeof r)return{id:r,mode:"open_or_create"};{E.validateOptionalTtl(r.ttl),E.validateId(r.id);let c=r.mode||(r.id?"open_or_create":"create_new");return Object.assign(Object.assign({},r),{mode:c})}}return{mode:"create_new"}}class Client extends p.EventEmitter{constructor(r,c={}){if(super(),!r)throw new Error("Sync library needs a valid Twilio token to be passed");c.hasOwnProperty("logLevel")?I.default.setLevel(c.logLevel):I.default.setLevel("silent");const u=c.productId=c.productId||"data_sync";c.clientMetadata=c.clientMetadata||{},c.clientMetadata.hasOwnProperty("type")||(c.clientMetadata.type="sync"),c.clientMetadata.hasOwnProperty("sdk")||(c.clientMetadata.sdk="JS",c.clientMetadata.sdkv=we);let p=c.twilsockClient=c.twilsockClient||new y.Twilsock(r,u,c);p.on("tokenAboutToExpire",r=>this.emit("tokenAboutToExpire",r)),p.on("tokenExpired",()=>this.emit("tokenExpired")),p.on("connectionError",r=>this.emit("connectionError",r));let k=c.notificationsClient=c.notificationsClient||new w.Notifications(r,c),x=new K.Configuration(c),E=new oe.NetworkService(new le.ClientInfo(we),x,p),se=new pe.SessionStorage(x);this.localStorageId=null,p.connect(),this.services={config:x,twilsock:p,notifications:k,network:E,storage:se,router:null,subscriptions:null};let ae=new J.Subscriptions(this.services),ue=new ie.Router({config:x,subscriptions:ae,notifications:k});this.services.router=ue,this.services.subscriptions=ae,this.entities=new de.EntitiesCache,k.on("connectionStateChanged",()=>{this.emit("connectionStateChanged",this.services.notifications.connectionState)})}static get version(){return we}get connectionState(){return this.services.notifications.connectionState}async ensureReady(){if(this.services.config.sessionStorageEnabled)try{let r=await this.services.twilsock.storageId();this.services.storage.updateStorageId(r.id)}catch(r){I.default.warn("Failed to initialize storage",r)}}storeRootInSessionCache(r,c,u){if(!this.services.config.sessionStorageEnabled||!c)return;let p=E.deepClone(u);r!==ae.SyncList.type&&r!==ue.SyncMap.type||(p.last_event_id=null,delete p.items),this.services.storage.store(r,c,p)}readRootFromSessionCache(r,c){return this.services.config.sessionStorageEnabled&&c?this.services.storage.read(r,c):null}async _get(r,c,u=!1){if(!c)throw new x.SyncError("Cannot get entity without id",404);const p=new k.UriBuilder(r).pathSegment(c).queryParam("Include",u?"items":void 0).build();return(await this.services.network.get(p)).body}_createDocument(r,c,u){const p={unique_name:r,data:c||{}};return void 0!==u&&(p.ttl=u),this.services.network.post(this.services.config.documentsUri,p).then(r=>(r.body.data=p.data,r.body))}async _getDocument(r){return this.readRootFromSessionCache(se.SyncDocument.type,r)||this._get(this.services.config.documentsUri,r)}_createList(r,c,u,p){const y={unique_name:r,purpose:c,context:u};return void 0!==p&&(y.ttl=p),this.services.network.post(this.services.config.listsUri,y).then(r=>r.body)}async _getList(r){return this.readRootFromSessionCache(ae.SyncList.type,r)||this._get(this.services.config.listsUri,r)}_createMap(r,c){const u={unique_name:r};return void 0!==c&&(u.ttl=c),this.services.network.post(this.services.config.mapsUri,u).then(r=>r.body)}async _getMap(r,c=!1){return this.readRootFromSessionCache(ue.SyncMap.type,r)||this._get(this.services.config.mapsUri,r,c)}async _getStream(r){return this.readRootFromSessionCache(he.SyncStream.type,r)||this._get(this.services.config.streamsUri,r,!1)}async _createStream(r,c){const u={unique_name:r};void 0!==c&&(u.ttl=c);return(await this.services.network.post(this.services.config.streamsUri,u)).body}_getLiveQuery(r){return this.readRootFromSessionCache(ge.LiveQuery.type,r)}getCached(r,c){return r&&this.entities.get(r,c)||null}removeFromCacheAndSession(r,c,u){this.entities.remove(c),this.services.config.sessionStorageEnabled&&this.services.storage.remove(r,c,u)}async document(r){await this.ensureReady();let c,u=decompose(r);if("create_new"===u.mode)c=await this._createDocument(u.id,u.value,u.ttl);else{let p=this.getCached(u.id,se.SyncDocument.type);if(p)return new se.SyncDocument(p);try{c=await this._getDocument(u.id)}catch(p){if(404!==p.status||"open_existing"===u.mode)throw p;try{c=await this._createDocument(u.id,u.value,u.ttl)}catch(c){if(409===c.status)return this.document(r);throw c}}}this.storeRootInSessionCache(se.SyncDocument.type,u.id,c);let p=new se.SyncDocumentImpl(this.services,c,(r,c,u)=>this.removeFromCacheAndSession(r,c,u));return p=this.entities.store(p),new se.SyncDocument(p)}async map(r){await this.ensureReady();let c,u=decompose(r);if("create_new"===u.mode)c=await this._createMap(u.id,u.ttl);else{let p=this.getCached(u.id,ue.SyncMap.type);if(p)return new ue.SyncMap(p);try{c=await this._getMap(u.id,u.includeItems)}catch(p){if(404!==p.status||"open_existing"===u.mode)throw p;try{c=await this._createMap(u.id,u.ttl)}catch(c){if(409===c.status)return this.map(r);throw c}}}this.storeRootInSessionCache(ue.SyncMap.type,u.id,c);let p=new ue.SyncMapImpl(this.services,c,(r,c,u)=>this.removeFromCacheAndSession(r,c,u));return p=this.entities.store(p),new ue.SyncMap(p)}async list(r){await this.ensureReady();let c,u=decompose(r);if("create_new"===u.mode)c=await this._createList(u.id,u.purpose,u.context,u.ttl);else{let p=this.getCached(u.id,ae.SyncList.type);if(p)return new ae.SyncList(p);try{c=await this._getList(u.id)}catch(p){if(404!==p.status||"open_existing"===u.mode)throw p;try{c=await this._createList(u.id,u.purpose,u.context,u.ttl)}catch(c){if(409===c.status)return this.list(r);throw c}}}this.storeRootInSessionCache(ae.SyncList.type,u.id,c);let p=new ae.SyncListImpl(this.services,c,(r,c,u)=>this.removeFromCacheAndSession(r,c,u));return p=this.entities.store(p),new ae.SyncList(p)}async stream(r){await this.ensureReady();let c,u=decompose(r);if("create_new"===u.mode)c=await this._createStream(u.id,u.ttl);else{let p=this.getCached(u.id,he.SyncStream.type);if(p)return new he.SyncStream(p);try{c=await this._getStream(u.id)}catch(p){if(404!==p.status||"open_existing"===u.mode)throw p;try{c=await this._createStream(u.id,u.ttl)}catch(c){if(409===c.status)return this.stream(r);throw c}}}this.storeRootInSessionCache(he.SyncStream.type,u.id,c);let p=new he.SyncStreamImpl(this.services,c,(r,c,u)=>this.removeFromCacheAndSession(r,c,u));return p=this.entities.store(p),new he.SyncStream(p)}async shutdown(){await this.services.subscriptions.shutdown(),await this.services.twilsock.disconnect()}updateToken(r){return r?this.services.twilsock.updateToken(r):Promise.reject(new Error("A valid Twilio token should be provided"))}async liveQuery(r,c){if(await this.ensureReady(),!r||"string"!=typeof r)throw new Error("Index name must contain a non-empty string value");let u=new k.UriBuilder(this.services.config.insightsUri).pathSegment(r).pathSegment("Items").build(),p=await ve.queryItems({network:this.services.network,uri:u,queryString:c,type:ge.LiveQuery.type}),y=this.getCached(p.query_id,ge.LiveQuery.type);if(!y){let w=this._getLiveQuery(p.query_id);w||(w={indexName:r,queryExpression:c,sid:p.query_id,queryUri:u,last_event_id:p.last_event_id});const liveQueryRemovalHandler=(r,c,u)=>this.removeFromCacheAndSession(r,c,u);y=new ge.LiveQueryImpl(w,this.services,liveQueryRemovalHandler,p.items)}return this.storeRootInSessionCache(ge.LiveQuery.type,p.query_id,y.liveQueryDescriptor),y=this.entities.store(y),new ge.LiveQuery(y)}async instantQuery(r){await this.ensureReady();return new ge.InstantQuery({indexName:r,network:this.services.network,insightsUri:this.services.config.insightsUri,liveQueryCreator:(r,c)=>this.liveQuery(r,c)})}}c.Client=Client,c.SyncClient=Client,c.default=Client},99423:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ClientInfo=void 0;const p=u(31795);class ClientInfo{constructor(r){this.sdk="js",this.sdkVer=r,this.os=p.os.family,this.osVer=p.os.version,this.pl=p.name,this.plVer=p.version}}c.ClientInfo=ClientInfo,c.default=ClientInfo},3846:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Closeable=void 0;const p=u(17187),y=u(55877);class Closeable extends p.EventEmitter{constructor(){super(),this.closed=!1,this.uuid=y()}get listenerUuid(){return this.uuid}close(){this.removeAllListeners(),this.closed=!0}ensureNotClosed(){if(this.closed)throw new Error("Invalid operation on closed object")}}c.Closeable=Closeable,c.default=Closeable},50829:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Configuration=void 0;c.Configuration=class Configuration{constructor(r={}){const c=`https://cds.${r.region||"us1"}.twilio.com`,u=r.cdsUri||c;var p,y,w;this.settings={subscriptionsUri:u+"/v4/Subscriptions",documentsUri:u+"/v3/Documents",listsUri:u+"/v3/Lists",mapsUri:u+"/v3/Maps",streamsUri:u+"/v3/Streams",insightsUri:u+"/v3/Insights",sessionStorageEnabled:(p=r.Sync,y="enableSessionStorage",w=!0,p&&void 0!==p[y]?p[y]:w)}}get subscriptionsUri(){return this.settings.subscriptionsUri}get documentsUri(){return this.settings.documentsUri}get listsUri(){return this.settings.listsUri}get mapsUri(){return this.settings.mapsUri}get streamsUri(){return this.settings.streamsUri}get insightsUri(){return this.settings.insightsUri}get backoffConfig(){return this.settings.backoffConfig||{}}get sessionStorageEnabled(){return this.settings.sessionStorageEnabled}}},43266:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.EntitiesCache=void 0;c.EntitiesCache=class EntitiesCache{constructor(){this.names=new Map,this.entities=new Map}store(r){let c=this.entities.get(r.sid);return c||(this.entities.set(r.sid,r),r.uniqueName&&this.names.set(r.type+"::"+r.uniqueName,r.sid),r)}getResolved(r,c){let u=this.names.get(c+"::"+r);return u?this.entities.get(u):null}get(r,c){return this.entities.get(r)||this.getResolved(r,c)||null}remove(r){let c=this.entities.get(r);c&&(this.entities.delete(r),c.uniqueName&&this.names.delete(c.type+"::"+c.uniqueName))}}},56862:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SyncEntity=void 0;class SyncEntity{constructor(r,c){this.services=r,this.removalHandler=c,this.subscriptionState="none",this._attachedListeners=new Map}_advanceLastEventId(r,c){}reportFailure(r){404===r.status?this.onRemoved(!1):this.broadcastEventToListeners("failure",r)}_subscribe(){this.services.router.subscribe(this.sid,this)}_unsubscribe(){this.services.router.unsubscribe(this.sid)}_setSubscriptionState(r){this.subscriptionState=r,this.broadcastEventToListeners("_subscriptionStateChanged",r)}close(){this._unsubscribe(),null!=this.removalHandler&&this.removalHandler(this.type,this.sid,this.uniqueName)}attach(r){const c=r.listenerUuid;this._attachedListeners.get(c)||(this._attachedListeners.size||this._subscribe(),this._attachedListeners.set(c,r))}detach(r){this._attachedListeners.delete(r),this._attachedListeners.size||this.close()}broadcastEventToListeners(r,c){for(let u of this._attachedListeners.values())u.emit(r,c)}}c.SyncEntity=SyncEntity,c.default=SyncEntity},41137:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SyncMapItem=c.SyncMap=c.SyncListItem=c.SyncList=c.SyncDocument=c.SyncClient=void 0;const p=u(9755);Object.defineProperty(c,"SyncClient",{enumerable:!0,get:function(){return p.SyncClient}});const y=u(80336);Object.defineProperty(c,"SyncDocument",{enumerable:!0,get:function(){return y.SyncDocument}});const w=u(55909);Object.defineProperty(c,"SyncList",{enumerable:!0,get:function(){return w.SyncList}});const k=u(68661);Object.defineProperty(c,"SyncListItem",{enumerable:!0,get:function(){return k.ListItem}});const x=u(99120);Object.defineProperty(c,"SyncMap",{enumerable:!0,get:function(){return x.SyncMap}});const E=u(47517);Object.defineProperty(c,"SyncMapItem",{enumerable:!0,get:function(){return E.MapItem}}),c.default=p.SyncClient,r.exports=p.SyncClient,r.exports.SyncClient=p.SyncClient},68661:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ListItem=void 0;class ListItem{constructor(r){this.data=r}get uri(){return this.data.uri}get revision(){return this.data.revision}get lastEventId(){return this.data.lastEventId}get dateUpdated(){return this.data.dateUpdated}get dateExpires(){return this.data.dateExpires}get index(){return this.data.index}get value(){return this.data.value}update(r,c,u,p){return this.data.lastEventId=r,this.data.revision=c,this.data.value=u,this.data.dateUpdated=p,this}updateDateExpires(r){this.data.dateExpires=r}}c.ListItem=ListItem,c.default=ListItem},67053:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.InstantQuery=c.LiveQuery=c.queryItems=c.LiveQueryImpl=c.InsightsItem=void 0;const p=u(92343),y=u(78191),w=u(42681),k=u(17187),x=u(56862),E=u(3846),I=u(59522);c.InsightsItem=class InsightsItem{};class LiveQueryImpl extends x.SyncEntity{constructor(r,c,u,p){super(c,u),this.descriptor=r,this.cache=new I.Cache,p&&p.forEach(r=>{this.cache.store(r.key,{key:r.key,value:r.data},r.revision)})}get sid(){return this.descriptor.sid}get uniqueName(){return null}get type(){return LiveQueryImpl.type}static get type(){return"live_query"}get lastEventId(){return this.descriptor.last_event_id}get indexName(){return this.descriptor.indexName}get queryString(){return this.descriptor.queryExpression}get queryUri(){return this.descriptor.queryUri}get liveQueryDescriptor(){return this.descriptor}onRemoved(){}getItems(){const r={};return this.cache.forEach((c,u)=>{r[c]=u.value}),r}_update(r,c){switch(r.type){case"live_query_item_updated":this.handleItemMutated(r.item_key,r.item_data,r.item_revision);break;case"live_query_item_removed":this.handleItemRemoved(r.item_key,r.item_revision);break;case"live_query_updated":this.handleBatchUpdate(r.items)}c&&this._advanceLastEventId(r.last_event_id)}handleItemMutated(r,c,u){if(this.shouldIgnoreEvent(r,u))w.default.trace(`Item ${r} update skipped, revision: ${u}`);else{const p={key:r,value:c};this.cache.store(r,p,u),this.broadcastEventToListeners("itemUpdated",p)}}handleItemRemoved(r,c){const u=null===c;this.shouldIgnoreEvent(r,c)?w.default.trace(`Item ${r} delete skipped, revision: ${c}`):(this.cache.delete(r,c,u),this.broadcastEventToListeners("itemRemoved",{key:r}))}handleBatchUpdate(r){let c={};null!=r&&r.forEach(r=>{c[r.key]={data:r.data,revision:r.revision}}),this.cache.forEach((r,u)=>{const p=c[r];null!=p?this.handleItemMutated(r,p.data,p.revision):this.handleItemRemoved(r,null),delete c[r]});for(let r in c)this.handleItemMutated(r,c[r].data,c[r].revision)}shouldIgnoreEvent(r,c){return null!=r&&null!=c&&this.cache.isKnown(r,c)}_advanceLastEventId(r,c){this.lastEventId<r&&(this.descriptor.last_event_id=r)}}async function queryItems(r){let{network:c,queryString:u,uri:p,type:w}=r;if(null==u)throw new y.SyncError("Invalid query",400,54507);const k={query_string:u};return w===LiveQuery.type&&(k.type=w),(await c.post(p,k,void 0,!0)).body}c.LiveQueryImpl=LiveQueryImpl,c.queryItems=queryItems;class LiveQuery extends E.Closeable{constructor(r){super(),this.liveQueryImpl=r,this.liveQueryImpl.attach(this)}static get type(){return LiveQueryImpl.type}get type(){return LiveQueryImpl.type}get lastEventId(){return this.liveQueryImpl.lastEventId}get sid(){return this.liveQueryImpl.sid}close(){super.close(),this.liveQueryImpl.detach(this.listenerUuid)}getItems(){return this.ensureNotClosed(),this.liveQueryImpl.getItems()}}c.LiveQuery=LiveQuery;class InstantQuery extends k.EventEmitter{constructor(r){super(),this.queryExpression=null,this.items={},Object.assign(this,r),this.updateIndexName(r.indexName)}static get type(){return"instant_query"}get type(){return InstantQuery.type}async search(r){return this.items={},queryItems({network:this.network,uri:this.queryUri,queryString:r}).then(c=>{this.queryExpression=r,c.items&&c.items.forEach(r=>{this.items[r.key]=r.data}),this.emit("searchResult",this.getItems())}).catch(c=>{throw w.default.error(`Error '${c.message}' while executing query '${r}'`),this.queryExpression=null,c})}async subscribe(){return null==this.queryExpression?Promise.reject(new y.SyncError("Invalid query",400,54507)):this.liveQueryCreator(this.indexName,this.queryExpression)}getItems(){return this.items}updateIndexName(r){if(!r||"string"!=typeof r)throw new Error("Index name must contain a non-empty string value");this.indexName=r,this.queryUri=this.generateQueryUri(this.indexName)}generateQueryUri(r){return new p.UriBuilder(this.insightsUri).pathSegment(r).pathSegment("Items").build()}}c.InstantQuery=InstantQuery,c.default=LiveQuery},47517:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.MapItem=void 0;c.MapItem=class MapItem{constructor(r){this.descriptor=r}get uri(){return this.descriptor.url}get revision(){return this.descriptor.revision}get lastEventId(){return this.descriptor.last_event_id}get dateExpires(){return this.descriptor.date_expires}get key(){return this.descriptor.key}get value(){return this.descriptor.data}get dateUpdated(){return this.descriptor.date_updated}update(r,c,u,p){return this.descriptor.last_event_id=r,this.descriptor.revision=c,this.descriptor.data=u,this.descriptor.date_updated=p,this}updateDateExpires(r){this.descriptor.date_expires=r}}},83595:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.NamespacedMergingQueue=c.MergingQueue=void 0;class MergingQueue{constructor(r){this.queuedRequests=[],this.isRequestInFlight=!1,this.inputMergingFunction=r}add(r,c){let u=new Promise((u,p)=>this.queuedRequests.push({input:r,requestFunction:c,resolve:u,reject:p}));return this.wakeupQueue(),u}squashAndAdd(r,c){let u,p=this.queuedRequests;this.queuedRequests=[],p.length>0?(u=p.map(r=>r.input).reduce(this.inputMergingFunction),u=this.inputMergingFunction(u,r)):u=r;let y=this.add(u,c);return p.forEach(r=>y.then(r.resolve,r.reject)),y}isEmpty(){return 0===this.queuedRequests.length&&!this.isRequestInFlight}wakeupQueue(){if(0!==this.queuedRequests.length&&!this.isRequestInFlight){let r=this.queuedRequests.shift();this.isRequestInFlight=!0,r.requestFunction(r.input).then(r.resolve,r.reject).then(r=>{this.isRequestInFlight=!1,this.wakeupQueue()})}}}c.MergingQueue=MergingQueue;c.NamespacedMergingQueue=class NamespacedMergingQueue{constructor(r){this.queueByNamespaceKey=new Map,this.inputReducer=r}async add(r,c,u){return this.invokeQueueMethod(r,r=>r.add(c,u))}async squashAndAdd(r,c,u){return this.invokeQueueMethod(r,r=>r.squashAndAdd(c,u))}async invokeQueueMethod(r,c){this.queueByNamespaceKey.has(r)||this.queueByNamespaceKey.set(r,new MergingQueue(this.inputReducer));const u=c(this.queueByNamespaceKey.get(r));return this.queueByNamespaceKey.get(r).isEmpty()&&this.queueByNamespaceKey.delete(r),u}}},7186:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Paginator=void 0;c.Paginator=class Paginator{constructor(r,c,u,p){this.prevToken=u,this.nextToken=p,this.items=r,this.source=c}get hasNextPage(){return!!this.nextToken}get hasPrevPage(){return!!this.prevToken}async nextPage(){if(!this.hasNextPage)throw new Error("No next page");return this.source(this.nextToken)}async prevPage(){if(!this.hasPrevPage)throw new Error("No previous page");return this.source(this.prevToken)}}},72742:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Router=void 0;const p=u(42681);class Router{constructor(r){this.config=r.config,this.subscriptions=r.subscriptions,this.notifications=r.notifications,this.notifications.subscribe("twilio.sync.event"),this.notifications.subscribe("com.twilio.rtd.cds.document"),this.notifications.subscribe("com.twilio.rtd.cds.list"),this.notifications.subscribe("com.twilio.rtd.cds.map"),this.notifications.on("message",(r,c)=>this.onMessage(r,c)),this.notifications.on("transportReady",r=>this.onConnectionStateChanged(r))}onMessage(r,c){switch(p.default.trace("Notification type:",r,"content:",c),r){case"com.twilio.rtd.cds.document":case"com.twilio.rtd.cds.list":case"com.twilio.rtd.cds.map":this.subscriptions.acceptMessage(c,!1);break;case"twilio.sync.event":this.subscriptions.acceptMessage(c,!0)}}subscribe(r,c){this.subscriptions.add(r,c)}unsubscribe(r){this.subscriptions.remove(r)}onConnectionStateChanged(r){this.subscriptions.onConnectionStateChanged(r)}}c.Router=Router,c.default=Router},22091:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.NetworkService=void 0;const p=u(55877),y=u(78191),w=u(42681),k=u(89948),x=u(16895);function messageFromErrorBody(r){if(r.body&&r.body.message)return r.body.message;switch(r.status){case 429:return"Throttled by server";case 404:return"Not found from server";default:return"Error from server"}}function codeFromErrorBody(r){return r.body?r.body.code:0}function mapTransportError(r){return 409===r.status?new y.SyncNetworkError(messageFromErrorBody(r),r.status,codeFromErrorBody(r),r.body):r.status?new y.SyncError(messageFromErrorBody(r),r.status,codeFromErrorBody(r)):r instanceof x.TransportUnavailableError?r:new y.SyncError(r.message,0,0)}c.NetworkService=class NetworkService{constructor(r,c,u){this.clientInfo=r,this.config=c,this.transport=u}createHeaders(){return{"Content-Type":"application/json","Twilio-Sync-Client-Info":JSON.stringify(this.clientInfo),"Twilio-Request-Id":"RQ"+p.v4().replace(/-/g,"")}}backoffConfig(){return Object.assign({min:4e3,max:6e4,maxAttemptsTime:9e4,randomness:.2},this.config.backoffConfig)}executeWithRetry(r,c=!0){return new Promise((u,p)=>{let y=[502,503,504];c&&y.push(429);let w=new k.Retrier(this.backoffConfig());w.on("attempt",()=>{r().then(r=>w.succeeded(r)).catch(r=>{if(y.includes(r.status)){let c=parseInt(r.headers?r.headers["Retry-After"]:null);w.failed(mapTransportError(r),isNaN(c)?null:1e3*c)}else"Twilsock disconnected"===r.message?w.failed(mapTransportError(r)):(w.removeAllListeners(),w.cancel(),p(mapTransportError(r)))})}),w.on("succeeded",r=>{u(r)}),w.on("cancelled",r=>p(mapTransportError(r))),w.on("failed",r=>p(mapTransportError(r))),w.start()})}get(r){let c=this.createHeaders();return w.default.debug("GET",r,"ID:",c["Twilio-Request-Id"]),this.executeWithRetry(()=>this.transport.get(r,c),!0)}post(r,c,u,p=!1){let y=this.createHeaders();return null!=u&&(y["If-Match"]=u),w.default.debug("POST",r,"ID:",y["Twilio-Request-Id"]),this.executeWithRetry(()=>this.transport.post(r,y,c),p)}put(r,c,u){let p=this.createHeaders();return null!=u&&(p["If-Match"]=u),w.default.debug("PUT",r,"ID:",p["Twilio-Request-Id"]),this.executeWithRetry(()=>this.transport.put(r,p,c),!1)}delete(r){let c=this.createHeaders();return w.default.debug("DELETE",r,"ID:",c["Twilio-Request-Id"]),this.executeWithRetry(()=>this.transport.delete(r,c),!1)}}},76847:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SessionStorage=void 0;c.SessionStorage=class SessionStorage{constructor(r,c){this.config=r,this.storageId=null;try{this.storage=c||sessionStorage}catch(r){}}storageKey(r,c){return`${this.storageId}::${r}::${c}`}get isReady(){return this.config.sessionStorageEnabled&&!!this.storageId}updateStorageId(r){this.storageId=r}store(r,c,u){return this.isReady?this._store(this.storageKey(r,c),u):null}read(r,c){return this.isReady?this._read(this.storageKey(r,c)):null}remove(r,c,u){if(!this.isReady)return null;try{this.storage.removeItem(this.storageKey(r,c)),u&&this.storage.removeItem(this.storageKey(r,u))}catch(r){}}update(r,c,u,p){if(!this.isReady)return null;this._apply(this.storageKey(r,c),p),u&&this._apply(this.storageKey(r,u),p)}_store(r,c){try{this.storage.setItem(r,JSON.stringify(c))}catch(r){}}_read(r){try{let c=this.storage.getItem(r);if(c)return JSON.parse(c)}catch(r){}return null}_apply(r,c){let u=this._read(r);if(!u)return!1;this._store(r,Object.assign(u,c))}}},85251:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SyncStreamImpl=c.SyncStream=void 0;const p=u(56862),y=u(13902),w=u(3846);class SyncStreamImpl extends p.SyncEntity{constructor(r,c,u){super(r,u),this.descriptor=c}get uri(){return this.descriptor.url}get links(){return this.descriptor.links}static get type(){return"stream"}get dateExpires(){return this.descriptor.date_expires}get type(){return"stream"}get lastEventId(){return null}get indexName(){}get queryString(){}get sid(){return this.descriptor.sid}get uniqueName(){return this.descriptor.unique_name||null}async publishMessage(r){const c={data:r},u=(await this.services.network.post(this.links.messages,c)).body;return this._handleMessagePublished(u.sid,r,!1)}async setTtl(r){y.validateMandatoryTtl(r);try{const c={ttl:r},u=await this.services.network.post(this.uri,c);this.descriptor.date_expires=u.body.date_expires}catch(r){throw 404===r.status&&this.onRemoved(!1),r}}async removeStream(){await this.services.network.delete(this.uri),this.onRemoved(!0)}_update(r){switch(r.type){case"stream_message_published":this._handleMessagePublished(r.message_sid,r.message_data,!0);break;case"stream_removed":this.onRemoved(!1)}}_handleMessagePublished(r,c,u){const p={sid:r,value:c};return this.broadcastEventToListeners("messagePublished",{message:p,isLocal:!u}),p}onRemoved(r){this._unsubscribe(),this.removalHandler(this.type,this.sid,this.uniqueName),this.broadcastEventToListeners("removed",{isLocal:r})}}c.SyncStreamImpl=SyncStreamImpl;class SyncStream extends w.default{constructor(r){super(),this.syncStreamImpl=r,this.syncStreamImpl.attach(this)}get uri(){return this.syncStreamImpl.uri}get links(){return this.syncStreamImpl.links}static get type(){return SyncStreamImpl.type}get dateExpires(){return this.syncStreamImpl.dateExpires}get type(){return SyncStreamImpl.type}get lastEventId(){return null}get sid(){return this.syncStreamImpl.sid}get uniqueName(){return this.syncStreamImpl.uniqueName}async publishMessage(r){return this.ensureNotClosed(),this.syncStreamImpl.publishMessage(r)}async setTtl(r){return this.ensureNotClosed(),this.syncStreamImpl.setTtl(r)}async removeStream(){return this.ensureNotClosed(),this.syncStreamImpl.removeStream()}close(){super.close(),this.syncStreamImpl.detach(this.listenerUuid)}}c.SyncStream=SyncStream,c.default=SyncStream},55500:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Subscriptions=void 0;const p=u(89948),y=u(78191),w=u(42681),k=u(16895);class SubscribedEntity{constructor(r){this.localObject=r,this.pendingCorrelationId=null,this.pendingAction=null,this.established=!1,this.retryCount=0}get sid(){return this.localObject.sid}get type(){return this.localObject.type}get lastEventId(){return this.localObject.lastEventId}get indexName(){return this.localObject.indexName}get queryString(){return this.localObject.queryString}get isEstablished(){return this.established}update(r,c){this.localObject._update(r,c)}updatePending(r,c){this.pendingAction=r,this.pendingCorrelationId=c}reset(){this.updatePending(null,null),this.retryCount=0,this.established=!1,this.setSubscriptionState("none")}markAsFailed(r){this.rejectedWithError=r.error,this.updatePending(null,null),this.localObject.reportFailure(new y.SyncError("Failed to subscribe on service events: "+r.error.message,r.error.status,r.error.code))}complete(r){this.updatePending(null,null),this.established=!0,this.localObject._advanceLastEventId(r)}setSubscriptionState(r){this.localObject._setSubscriptionState(r)}}c.Subscriptions=class Subscriptions{constructor(r){this.isConnected=!1,this.maxBatchSize=100,this.subscriptionTtlTimer=null,this.pendingPokeReason=null,this.services=r,this.subscriptions=new Map,this.persisted=new Map,this.latestPokeResponseArrivalTimestampByCorrelationId=new Map;this.backoff=p.Backoff.exponential(Object.assign({randomisationFactor:.2,initialDelay:100,maxDelay:12e4},this.services.config.backoffConfig)),this.backoff.on("ready",()=>{let{action:r,subscriptions:c}=this.getSubscriptionUpdateBatch();r?this.applyNewSubscriptionUpdateBatch(r,c):(this.backoff.reset(),w.default.debug("All subscriptions resolved."))})}getSubscriptionUpdateBatch(){function subtract(r,c,u,p){let y=[];for(let[w,k]of r){if(!c.get(w)&&u!==k.pendingAction&&!k.rejectedWithError&&(y.push(k),p&&y.length>=p))break}return y}let r=subtract(this.subscriptions,this.persisted,"establish",this.maxBatchSize);if(r.length>0)return{action:"establish",subscriptions:r};let c=subtract(this.persisted,this.subscriptions,"cancel",this.maxBatchSize);return c.length>0?{action:"cancel",subscriptions:c}:{action:null,subscriptions:null}}persist(){this.backoff.backoff()}async applyNewSubscriptionUpdateBatch(r,c){if(!this.isConnected)return w.default.debug("Twilsock connection (required for subscription) not ready; waiting…"),void this.backoff.reset();c=this.processLocalActions(r,c);const u=(new Date).getTime();for(const p of c)this.recordActionAttemptOn(p,r,u);let p=this.pendingPokeReason;this.pendingPokeReason=null;try{let y=await this.request(r,u,p,c),k=y.body.max_batch_size;if(!isNaN(parseInt(k))&&isFinite(k)&&k>0&&(this.maxBatchSize=k),!this.subscriptionTtlTimer){let r=y.body.ttl_in_s;!isNaN(parseFloat(r))&&isFinite(r)&&r>0&&(this.subscriptionTtlTimer=setTimeout(()=>this.onSubscriptionTtlElapsed(),1e3*r))}if("establish"===r){const r=y.body.estimated_delivery_in_ms;!isNaN(parseFloat(r))&&isFinite(r)&&r>0?setTimeout(()=>this.verifyPokeDelivery(u,r,c),r):w.default.error("Invalid timeout: "+r),c.filter(r=>r.pendingCorrelationId===u).forEach(r=>r.setSubscriptionState("response_in_flight"))}this.backoff.reset()}catch(p){for(const u of c)this.recordActionFailureOn(u,r);p instanceof k.TransportUnavailableError?(w.default.debug(`Twilsock connection (required for subscription) not ready (c:${u}); waiting…`),this.backoff.reset()):(w.default.debug(`Failed an attempt to ${r} subscriptions (c:${u}); retrying`,p),this.persist())}}verifyPokeDelivery(r,c,u){const p=this.latestPokeResponseArrivalTimestampByCorrelationId.get(r),y=p?(new Date).getTime()-p:c;if(y>=c)u.filter(c=>c.pendingCorrelationId===r).forEach(r=>{r.updatePending(null,null),r.retryCount++,this.persisted.delete(r.sid)}),this.persist(),this.latestPokeResponseArrivalTimestampByCorrelationId.delete(r);else{setTimeout(()=>this.verifyPokeDelivery(r,c,u),c-y)}}processLocalActions(r,c){return"cancel"===r?c.filter(r=>!r.rejectedWithError):c}recordActionAttemptOn(r,c,u){if(r.setSubscriptionState("request_in_flight"),"establish"===c)this.persisted.set(r.sid,r),r.updatePending(c,u);else{let p=this.persisted.get(r.sid);p&&p.updatePending(c,u)}}recordActionFailureOn(r,c){r.setSubscriptionState("none"),r.updatePending(null,null),"establish"===c&&this.persisted.delete(r.sid)}request(r,c,u,p){let y=p.map(c=>({object_sid:c.sid,object_type:c.type,last_event_id:"establish"===r?c.lastEventId:void 0,index_name:"establish"===r?c.indexName:void 0,query_string:"establish"===r?c.queryString:void 0})),k=p.filter(r=>r.retryCount>0).length;w.default.debug(`Attempting '${r}' request (c:${c}):`,y);const x={event_protocol_version:3,action:r,correlation_id:c,retried_requests:k,ttl_in_s:-1,requests:y};return"ttl"===u&&(x.reason=u),this.services.network.post(this.services.config.subscriptionsUri,x)}add(r,c){w.default.debug("Establishing intent to subscribe to "+r);const u=this.subscriptions.get(r);u&&c&&u.lastEventId===c.lastEventId||(this.persisted.delete(r),this.subscriptions.set(r,new SubscribedEntity(c)),this.persist())}remove(r){w.default.debug("Establishing intent to unsubscribe from "+r);this.subscriptions.delete(r)&&this.persist()}acceptMessage(r,c){let u;switch(w.default.trace("Subscriptions received",r),r.correlation_id&&this.latestPokeResponseArrivalTimestampByCorrelationId.set(r.correlation_id,(new Date).getTime()),r.event_type){case"subscription_established":this.applySubscriptionEstablishedMessage(r.event,r.correlation_id);break;case"subscription_canceled":this.applySubscriptionCancelledMessage(r.event,r.correlation_id);break;case"subscription_failed":this.applySubscriptionFailedMessage(r.event,r.correlation_id);break;case(u=r.event_type.match(/^(?:map|list|document|stream|live_query)_/)||{}).input:{let p;switch(u[0]){case"map_":p=r.event.map_sid;break;case"list_":p=r.event.list_sid;break;case"document_":p=r.event.document_sid;break;case"stream_":p=r.event.stream_sid;break;case"live_query_":p=r.event.query_id,c=!1,!0===r.strictly_ordered&&(c=!0);break;default:p=void 0}this.applyEventToSubscribedEntity(p,r,c)}break;default:w.default.debug("Dropping unknown message type "+r.event_type)}}applySubscriptionEstablishedMessage(r,c){const u=r.object_sid;let p=this.persisted.get(r.object_sid);p&&p.pendingCorrelationId===c?"interrupted"===r.replay_status?(w.default.debug(`Event Replay for subscription to ${u} (c:${c}) interrupted; continuing eagerly.`),p.updatePending(null,null),this.persisted.delete(p.sid),this.backoff.reset()):"completed"===r.replay_status&&(w.default.debug(`Event Replay for subscription to ${u} (c:${c}) completed. Subscription is ready.`),p.complete(r.last_event_id),this.persisted.set(r.object_sid,p),p.setSubscriptionState("established"),this.backoff.reset()):w.default.debug(`Late message for ${r.object_sid} (c:${c}) dropped.`),this.persist()}applySubscriptionCancelledMessage(r,c){let u=this.persisted.get(r.object_sid);u&&u.pendingCorrelationId===c?(u.updatePending(null,null),u.setSubscriptionState("none"),this.persisted.delete(r.object_sid)):w.default.debug(`Late message for ${r.object_sid} (c:${c}) dropped.`),this.persist()}applySubscriptionFailedMessage(r,c){const u=r.object_sid;let p=this.subscriptions.get(u),y=this.persisted.get(u);p&&y?y.pendingCorrelationId===c&&(w.default.error("Failed to subscribe on "+y.sid,r.error),y.markAsFailed(r),y.setSubscriptionState("none")):!p&&y&&(this.persisted.delete(u),y.setSubscriptionState("none")),this.persist()}applyEventToSubscribedEntity(r,c,u){if(!r)return;u=u||(()=>{let c=this.persisted.get(r);return c&&c.isEstablished})();let p=this.subscriptions.get(r);p?(c.event.type=c.event_type,p.update(c.event,u)):w.default.debug(`Message dropped for SID '${r}', for which there is no subscription.`)}onConnectionStateChanged(r){this.isConnected=r,r&&this.poke("reconnect")}onSubscriptionTtlElapsed(){this.isConnected&&this.poke("ttl")}poke(r){w.default.debug("Triggering event replay for all subscriptions, reason="+r),this.pendingPokeReason=r,this.subscriptionTtlTimer&&(clearTimeout(this.subscriptionTtlTimer),this.subscriptionTtlTimer=null);let c=[];for(let r of this.persisted.values())r.reset(),r.rejectedWithError&&c.push(r);this.persisted.clear();for(let r of c)this.persisted.set(r.sid,r);this.persist()}shutdown(){this.backoff.reset(),this.subscriptions.clear()}}},80336:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SyncDocumentImpl=c.SyncDocument=void 0;const p=u(78191),y=u(13902),w=u(42681),k=u(56862),x=u(83595),E=u(3846);class SyncDocumentImpl extends k.SyncEntity{constructor(r,c,u){super(r,u),this.isDeleted=!1;this.updateMergingQueue=new x.MergingQueue((r,c)=>"number"==typeof c.ttl?{ttl:c.ttl}:r),this.descriptor=c,this.descriptor.data=this.descriptor.data||{},this.descriptor.date_updated=new Date(this.descriptor.date_updated)}get uri(){return this.descriptor.url}get revision(){return this.descriptor.revision}get lastEventId(){return this.descriptor.last_event_id}get dateExpires(){return this.descriptor.date_expires}static get type(){return"document"}get type(){return"document"}get indexName(){}get queryString(){}get sid(){return this.descriptor.sid}get value(){return this.descriptor.data}get dateUpdated(){return this.descriptor.date_updated}get uniqueName(){return this.descriptor.unique_name||null}_update(r){switch(r.date_created=new Date(r.date_created),r.type){case"document_updated":r.id>this.lastEventId?(this.descriptor.last_event_id=r.id,this.descriptor.revision=r.document_revision,this.descriptor.date_updated=r.date_created,this.descriptor.data=r.document_data,this.broadcastEventToListeners("updated",{value:r.document_data,isLocal:!1}),this.services.storage.update(this.type,this.sid,this.uniqueName,{last_event_id:r.id,revision:r.document_revision,date_updated:r.date_created,data:r.document_data})):w.default.trace("Document update skipped, current:",this.lastEventId,", remote:",r.id);break;case"document_removed":this.onRemoved(!1)}}async set(r,c){const u=c||{};return y.validateOptionalTtl(u.ttl),this.updateMergingQueue.squashAndAdd(u,c=>this._setUnconditionally(r,c.ttl))}async mutate(r,c){const u=c||{};return y.validateOptionalTtl(u.ttl),this.updateMergingQueue.add(u,c=>this._setWithIfMatch(r,c.ttl))}async update(r,c){return this.mutate(c=>Object.assign(c,r),c)}async setTtl(r){y.validateMandatoryTtl(r);const c=await this._postUpdateToServer({ttl:r});this.descriptor.date_expires=c.date_expires}async _setUnconditionally(r,c){let u=await this._postUpdateToServer({data:r,revision:void 0,ttl:c});return this._handleSuccessfulUpdateResult(u),this.value}async _setWithIfMatch(r,c){let u=r(y.deepClone(this.value));if(!u)return this.value;{let p=this.revision;try{let r=await this._postUpdateToServer({data:u,revision:p,ttl:c});return this._handleSuccessfulUpdateResult(r),this.value}catch(c){if(412===c.status)return await this._softSync(),this._setWithIfMatch(r);throw c}}}_handleSuccessfulUpdateResult(r){r.last_event_id>this.descriptor.last_event_id&&(this.descriptor.revision=r.revision,this.descriptor.data=r.data,this.descriptor.last_event_id=r.last_event_id,this.descriptor.date_expires=r.date_expires,this.descriptor.date_updated=new Date(r.date_updated),this.services.storage.update(this.type,this.sid,this.uniqueName,{last_event_id:r.last_event_id,revision:r.revision,date_updated:r.date_updated,data:r.data}),this.broadcastEventToListeners("updated",{value:this.value,isLocal:!0}))}async _postUpdateToServer(r){if(this.isDeleted)return Promise.reject(new p.SyncError("The Document has been removed",404,54100));{const c={data:r.data};void 0!==r.ttl&&(c.ttl=r.ttl);const u=r.revision;try{const p=await this.services.network.post(this.uri,c,u);return{revision:p.body.revision,data:r.data,last_event_id:p.body.last_event_id,date_updated:p.body.date_updated,date_expires:p.body.date_expires}}catch(r){throw 404===r.status&&this.onRemoved(!1),r}}}async _softSync(){return this.services.network.get(this.uri).then(r=>{const c={type:"document_updated",id:r.body.last_event_id,document_revision:r.body.revision,document_data:r.body.data,date_created:r.body.date_updated};return this._update(c),this}).catch(r=>{404===r.status?this.onRemoved(!1):w.default.error(`Can't get updates for ${this.sid}:`,r)})}onRemoved(r){this.isDeleted||(this.isDeleted=!0,this._unsubscribe(),this.removalHandler(this.type,this.sid,this.uniqueName),this.broadcastEventToListeners("removed",{isLocal:r}))}async removeDocument(){if(this.isDeleted)return Promise.reject(new p.SyncError("The Document has been removed",404,54100));await this.services.network.delete(this.uri),this.onRemoved(!0)}}c.SyncDocumentImpl=SyncDocumentImpl;class SyncDocument extends E.default{constructor(r){super(),this.syncDocumentImpl=r,this.syncDocumentImpl.attach(this)}get uri(){return this.syncDocumentImpl.uri}get revision(){return this.syncDocumentImpl.revision}get lastEventId(){return this.syncDocumentImpl.lastEventId}get dateExpires(){return this.syncDocumentImpl.dateExpires}static get type(){return SyncDocumentImpl.type}get type(){return SyncDocumentImpl.type}get sid(){return this.syncDocumentImpl.sid}get value(){return this.syncDocumentImpl.value}get dateUpdated(){return this.syncDocumentImpl.dateUpdated}get uniqueName(){return this.syncDocumentImpl.uniqueName}async set(r,c){return this.ensureNotClosed(),this.syncDocumentImpl.set(r,c)}async mutate(r,c){return this.ensureNotClosed(),this.syncDocumentImpl.mutate(r,c)}async update(r,c){return this.ensureNotClosed(),this.syncDocumentImpl.update(r,c)}async setTtl(r){return this.ensureNotClosed(),this.syncDocumentImpl.setTtl(r)}async removeDocument(){return this.ensureNotClosed(),this.syncDocumentImpl.removeDocument()}close(){super.close(),this.syncDocumentImpl.detach(this.listenerUuid)}}c.SyncDocument=SyncDocument,c.default=SyncDocument},55909:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SyncListImpl=c.SyncList=void 0;const p=u(13902),y=u(92343),w=u(78191),k=u(42681),x=u(56862),E=u(68661),I=u(7186),K=u(59522),J=u(83595),ie=u(3846);class SyncListImpl extends x.SyncEntity{constructor(r,c,u){super(r,u);this.updateMergingQueue=new J.NamespacedMergingQueue((r,c)=>"number"==typeof c.ttl?{ttl:c.ttl}:r),this.cache=new K.Cache,this.descriptor=c,this.descriptor.date_updated=new Date(this.descriptor.date_updated)}get uri(){return this.descriptor.url}get revision(){return this.descriptor.revision}get lastEventId(){return this.descriptor.last_event_id}get links(){return this.descriptor.links}get dateExpires(){return this.descriptor.date_expires}static get type(){return"list"}get type(){return"list"}get indexName(){}get queryString(){}get sid(){return this.descriptor.sid}get uniqueName(){return this.descriptor.unique_name||null}get dateUpdated(){return this.descriptor.date_updated}async _addOrUpdateItemOnServer(r,c,u,p){const y={data:c};void 0!==p&&(y.ttl=p);const w=await this.services.network.post(r,y,u);return w.body.data=c,w.body.date_updated=new Date(w.body.date_updated),w.body}async push(r,c){let u=(c||{}).ttl;p.validateOptionalTtl(u);let y=await this._addOrUpdateItemOnServer(this.links.items,r,void 0,u),w=Number(y.index);return this._handleItemMutated(w,y.url,y.last_event_id,y.revision,r,y.date_updated,y.date_expires,!0,!1),this.cache.get(w)}async set(r,c,u){const y=u||{};return p.validateOptionalTtl(y.ttl),this.updateMergingQueue.squashAndAdd(r,y,u=>this._updateItemUnconditionally(r,c,u.ttl))}async _updateItemUnconditionally(r,c,u){let p=await this.get(r);const y=await this._addOrUpdateItemOnServer(p.uri,c,void 0,u);return this._handleItemMutated(r,y.url,y.last_event_id,y.revision,y.data,y.date_updated,y.date_expires,!1,!1),this.cache.get(r)}async _updateItemWithIfMatch(r,c,u){const y=await this.get(r),w=c(p.deepClone(y.value));if(!w)return y;{const p=y.revision;try{const c=await this._addOrUpdateItemOnServer(y.uri,w,p,u);return this._handleItemMutated(r,c.url,c.last_event_id,c.revision,c.data,c.date_updated,c.date_expires,!1,!1),this.cache.get(r)}catch(p){if(412===p.status)return await this._getItemFromServer(r),this._updateItemWithIfMatch(r,c,u);throw p}}}async mutate(r,c,u){const y=u||{};return p.validateOptionalTtl(y.ttl),this.updateMergingQueue.add(r,y,u=>this._updateItemWithIfMatch(r,c,u.ttl))}async update(r,c,u){return this.mutate(r,r=>Object.assign(r,c),u)}async remove(r){let c=await this.get(r),u=await this.services.network.delete(c.uri);this._handleItemRemoved(r,u.body.last_event_id,void 0,new Date(u.body.date_updated),!1)}async get(r){let c=this.cache.get(r);return c||this._getItemFromServer(r)}async _getItemFromServer(r){let c=await this.queryItems({index:r});if(c.items.length<1)throw new w.SyncError(`No item with index ${r} found`,404,54151);return c.items[0]}async queryItems(r){r=r||{};const c=new y.UriBuilder(this.links.items).queryParam("From",r.from).queryParam("PageSize",r.limit).queryParam("Index",r.index).queryParam("PageToken",r.pageToken).queryParam("Order",r.order).build();let u=await this.services.network.get(c),p=u.body.items.map(r=>(r.date_updated=new Date(r.date_updated),this.cache.get(r.index)?this._handleItemMutated(r.index,r.url,r.last_event_id,r.revision,r.data,r.date_updated,r.date_expires,!1,!0):this.cache.store(Number(r.index),new E.ListItem({index:Number(r.index),uri:r.url,revision:r.revision,lastEventId:r.last_event_id,dateUpdated:r.date_updated,dateExpires:r.date_expires,value:r.data}),r.last_event_id),this.cache.get(r.index))),w=u.body.meta;return new I.Paginator(p,r=>this.queryItems({pageToken:r}),w.previous_token,w.next_token)}async getItems(r){return r=r||{},p.validatePageSize(r.pageSize),r.limit=r.pageSize||r.limit||50,r.order=r.order||"asc",this.queryItems(r)}async getContext(){if(!this.context){let r=await this.services.network.get(this.links.context);this._updateContextIfRequired(r.body.data,r.body.last_event_id)}return this.context}async setTtl(r){p.validateMandatoryTtl(r);try{const c={ttl:r},u=await this.services.network.post(this.uri,c);this.descriptor.date_expires=u.body.date_expires}catch(r){throw 404===r.status&&this.onRemoved(!1),r}}async setItemTtl(r,c){p.validateMandatoryTtl(c);let u=await this.get(r);const y={ttl:c},w=await this.services.network.post(u.uri,y);u.updateDateExpires(w.body.date_expires)}async removeList(){await this.services.network.delete(this.uri),this.onRemoved(!0)}onRemoved(r){this._unsubscribe(),this.removalHandler(this.type,this.sid,this.uniqueName),this.broadcastEventToListeners("removed",{isLocal:r})}shouldIgnoreEvent(r,c){return this.cache.isKnown(r,c)}_update(r,c){const u=Number(r.item_index);switch(r.date_created=new Date(r.date_created),r.type){case"list_item_added":case"list_item_updated":this._handleItemMutated(u,r.item_url,r.id,r.item_revision,r.item_data,r.date_created,void 0,"list_item_added"===r.type,!0);break;case"list_item_removed":this._handleItemRemoved(u,r.id,r.item_data,r.date_created,!0);break;case"list_context_updated":this._handleContextUpdate(r.context_data,r.id,r.date_created);break;case"list_removed":this.onRemoved(!1)}c&&this._advanceLastEventId(r.id,r.list_revision)}_advanceLastEventId(r,c){this.lastEventId<r&&(this.descriptor.last_event_id=r,c&&(this.descriptor.revision=c))}_updateRootDateUpdated(r){(!this.descriptor.date_updated||r.getTime()>this.descriptor.date_updated.getTime())&&(this.descriptor.date_updated=r,this.services.storage.update(this.type,this.sid,this.uniqueName,{date_updated:r}))}_handleItemMutated(r,c,u,p,y,w,x,I,K){if(this.shouldIgnoreEvent(r,u))k.default.trace("Item ",r," update skipped, current:",this.lastEventId,", remote:",u);else{this._updateRootDateUpdated(w);let k=this.cache.get(r);if(k)k.update(u,p,y,w),this.cache.store(r,k,u),void 0!==x&&k.updateDateExpires(x),this.emitItemMutationEvent(k,K,!1);else{let k=new E.ListItem({index:r,uri:c,lastEventId:u,revision:p,value:y,dateUpdated:w,dateExpires:x});this.cache.store(r,k,u),this.emitItemMutationEvent(k,K,I)}}}emitItemMutationEvent(r,c,u){let p=u?"itemAdded":"itemUpdated";this.broadcastEventToListeners(p,{item:r,isLocal:!c})}_handleItemRemoved(r,c,u,p,y){this._updateRootDateUpdated(p),this.cache.delete(r,c),this.broadcastEventToListeners("itemRemoved",{index:r,isLocal:!y,value:u})}_handleContextUpdate(r,c,u){this._updateRootDateUpdated(u),this._updateContextIfRequired(r,c)&&this.broadcastEventToListeners("contextUpdated",{context:r,isLocal:!1})}_updateContextIfRequired(r,c){return!this.contextEventId||c>this.contextEventId?(this.context=r,this.contextEventId=c,!0):(k.default.trace("Context update skipped, current:",this.lastEventId,", remote:",c),!1)}}c.SyncListImpl=SyncListImpl;class SyncList extends ie.default{constructor(r){super(),this.syncListImpl=r,this.syncListImpl.attach(this)}get uri(){return this.syncListImpl.uri}get revision(){return this.syncListImpl.revision}get lastEventId(){return this.syncListImpl.lastEventId}get links(){return this.syncListImpl.links}get dateExpires(){return this.syncListImpl.dateExpires}static get type(){return SyncListImpl.type}get type(){return SyncListImpl.type}get sid(){return this.syncListImpl.sid}get uniqueName(){return this.syncListImpl.uniqueName}get dateUpdated(){return this.syncListImpl.dateUpdated}async push(r,c){return this.ensureNotClosed(),this.syncListImpl.push(r,c)}async set(r,c,u){return this.ensureNotClosed(),this.syncListImpl.set(r,c,u)}async mutate(r,c,u){return this.ensureNotClosed(),this.syncListImpl.mutate(r,c,u)}async update(r,c,u){return this.ensureNotClosed(),this.syncListImpl.update(r,c,u)}async remove(r){return this.ensureNotClosed(),this.syncListImpl.remove(r)}async get(r){return this.ensureNotClosed(),this.syncListImpl.get(r)}async getContext(){return this.ensureNotClosed(),this.syncListImpl.getContext()}async getItems(r){return this.ensureNotClosed(),this.syncListImpl.getItems(r)}async setTtl(r){return this.ensureNotClosed(),this.syncListImpl.setTtl(r)}async setItemTtl(r,c){return this.ensureNotClosed(),this.syncListImpl.setItemTtl(r,c)}async removeList(){return this.ensureNotClosed(),this.syncListImpl.removeList()}close(){super.close(),this.syncListImpl.detach(this.listenerUuid)}}c.SyncList=SyncList,c.default=SyncList},99120:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SyncMap=c.SyncMapImpl=void 0;const p=u(13902),y=u(92343),w=u(78191),k=u(42681),x=u(56862),E=u(47517),I=u(7186),K=u(59522),J=u(83595),ie=u(3846);class SyncMapImpl extends x.SyncEntity{constructor(r,c,u){super(r,u);this.updateMergingQueue=new J.NamespacedMergingQueue((r,c)=>"number"==typeof c.ttl?{ttl:c.ttl}:r),this.cache=new K.Cache,this.descriptor=c,this.descriptor.date_updated=new Date(this.descriptor.date_updated),c.items&&c.items.forEach(r=>{r.date_updated=new Date(r.date_updated),this.cache.store(r.key,new E.MapItem(r),r.last_event_id)})}get uri(){return this.descriptor.url}get links(){return this.descriptor.links}get revision(){return this.descriptor.revision}get lastEventId(){return this.descriptor.last_event_id}get dateExpires(){return this.descriptor.date_expires}static get type(){return"map"}get type(){return"map"}get indexName(){}get queryString(){}get sid(){return this.descriptor.sid}get uniqueName(){return this.descriptor.unique_name||null}get dateUpdated(){return this.descriptor.date_updated}async set(r,c,u){const y=u||{};return p.validateOptionalTtl(y.ttl),this.updateMergingQueue.squashAndAdd(r,y,u=>this._putItemUnconditionally(r,c,u.ttl))}async get(r){return this.cache.has(r)?this.cache.get(r):this._getItemFromServer(r)}async _getItemFromServer(r){let c=await this.queryItems({key:r});if(c.items.length<1)throw new w.SyncError(`No item with key ${r} found`,404,54201);return c.items[0]}async mutate(r,c,u){const y=u||{};return p.validateOptionalTtl(y.ttl),this.updateMergingQueue.add(r,y,u=>this._putItemWithIfMatch(r,c,u.ttl))}async update(r,c,u){return this.mutate(r,r=>Object.assign(r,c),u)}async _putItemUnconditionally(r,c,u){const p=await this._putItemToServer(r,c,void 0,u),y=p.item;return this._handleItemMutated(y.key,y.url,y.last_event_id,y.revision,y.data,y.date_updated,y.date_expires,p.added,!1),this.cache.get(y.key)}async _putItemWithIfMatch(r,c,u){const y=await this.get(r).catch(c=>{if(404===c.status)return new E.MapItem({key:r,data:{},last_event_id:-1,revision:"-1",url:null,date_updated:null,date_expires:null});throw c});let w=c(p.deepClone(y.value));if(!w)return y;{let p=y.revision;try{const c=await this._putItemToServer(r,w,p,u),y=c.item;return this._handleItemMutated(y.key,y.url,y.last_event_id,y.revision,y.data,y.date_updated,y.date_expires,c.added,!1),this.cache.get(y.key)}catch(p){if(412===p.status)return await this._getItemFromServer(r),this._putItemWithIfMatch(r,c,u);throw p}}}async _putItemToServer(r,c,u,p){const w=new y.UriBuilder(this.links.items).pathSegment(r).build(),k={data:c};void 0!==p&&(k.ttl=p);try{const r=await this.services.network.put(w,k,u),p=r.body;p.data=c,p.date_updated=new Date(p.date_updated);return{added:201===r.status.code,item:p}}catch(r){throw 404===r.status&&this.onRemoved(!1),r}}async remove(r){if(void 0===r)throw new Error("Key argument is invalid");let c=await this.get(r),u=await this.services.network.delete(c.uri);this._handleItemRemoved(r,u.body.last_event_id,void 0,new Date(u.body.date_updated),!1)}async queryItems(r){r=r||{};const c=new y.UriBuilder(this.links.items).queryParam("From",r.from).queryParam("PageSize",r.limit).queryParam("Key",r.key).queryParam("PageToken",r.pageToken).queryParam("Order",r.order).build();let u=await this.services.network.get(c),p=u.body.items.map(r=>(r.date_updated=new Date(r.date_updated),this.cache.get(r.key)?this._handleItemMutated(r.key,r.url,r.last_event_id,r.revision,r.data,r.date_updated,r.date_expires,!1,!0):this.cache.store(r.key,new E.MapItem(r),r.last_event_id),this.cache.get(r.key)));const w=u.body.meta;return new I.Paginator(p,r=>this.queryItems({pageToken:r}),w.previous_token,w.next_token)}async getItems(r){return r=r||{},p.validatePageSize(r.pageSize),r.limit=r.pageSize||r.limit||50,r.order=r.order||"asc",this.queryItems(r)}shouldIgnoreEvent(r,c){return this.cache.isKnown(r,c)}_update(r,c){switch(r.date_created=new Date(r.date_created),r.type){case"map_item_added":case"map_item_updated":this._handleItemMutated(r.item_key,r.item_url,r.id,r.item_revision,r.item_data,r.date_created,void 0,"map_item_added"===r.type,!0);break;case"map_item_removed":this._handleItemRemoved(r.item_key,r.id,r.item_data,r.date_created,!0);break;case"map_removed":this.onRemoved(!1)}c&&this._advanceLastEventId(r.id,r.map_revision)}_advanceLastEventId(r,c){this.lastEventId<r&&(this.descriptor.last_event_id=r,c&&(this.descriptor.revision=c))}_updateRootDateUpdated(r){(!this.descriptor.date_updated||r.getTime()>this.descriptor.date_updated.getTime())&&(this.descriptor.date_updated=r,this.services.storage.update(this.type,this.sid,this.uniqueName,{date_updated:r}))}_handleItemMutated(r,c,u,p,y,w,x,I,K){if(this.shouldIgnoreEvent(r,u))k.default.trace("Item ",r," update skipped, current:",this.lastEventId,", remote:",u);else{this._updateRootDateUpdated(w);let k=this.cache.get(r);k?(k.update(u,p,y,w),this.cache.store(r,k,u),void 0!==x&&k.updateDateExpires(x),this.emitItemMutationEvent(k,K,!1)):(k=new E.MapItem({key:r,url:c,last_event_id:u,revision:p,data:y,date_updated:w,date_expires:x}),this.cache.store(r,k,u),this.emitItemMutationEvent(k,K,I))}}emitItemMutationEvent(r,c,u){let p=u?"itemAdded":"itemUpdated";this.broadcastEventToListeners(p,{item:r,isLocal:!c})}_handleItemRemoved(r,c,u,p,y){this._updateRootDateUpdated(p),this.cache.delete(r,c),this.broadcastEventToListeners("itemRemoved",{key:r,isLocal:!y,value:u})}onRemoved(r){this._unsubscribe(),this.removalHandler(this.type,this.sid,this.uniqueName),this.broadcastEventToListeners("removed",{isLocal:r})}async setTtl(r){p.validateMandatoryTtl(r);try{const c={ttl:r},u=await this.services.network.post(this.uri,c);this.descriptor.date_expires=u.body.date_expires}catch(r){throw 404===r.status&&this.onRemoved(!1),r}}async setItemTtl(r,c){p.validateMandatoryTtl(c);let u=await this.get(r);const y={ttl:c},w=await this.services.network.post(u.uri,y);u.updateDateExpires(w.body.date_expires)}async removeMap(){await this.services.network.delete(this.uri),this.onRemoved(!0)}}c.SyncMapImpl=SyncMapImpl;class SyncMap extends ie.Closeable{constructor(r){super(),this.syncMapImpl=r,this.syncMapImpl.attach(this)}get uri(){return this.syncMapImpl.uri}get links(){return this.syncMapImpl.links}get revision(){return this.syncMapImpl.revision}get lastEventId(){return this.syncMapImpl.lastEventId}get dateExpires(){return this.syncMapImpl.dateExpires}static get type(){return SyncMapImpl.type}get type(){return SyncMapImpl.type}get sid(){return this.syncMapImpl.sid}get uniqueName(){return this.syncMapImpl.uniqueName}get dateUpdated(){return this.syncMapImpl.dateUpdated}async set(r,c,u){return this.ensureNotClosed(),this.syncMapImpl.set(r,c,u)}async get(r){return this.ensureNotClosed(),this.syncMapImpl.get(r)}async mutate(r,c,u){return this.ensureNotClosed(),this.syncMapImpl.mutate(r,c,u)}async update(r,c,u){return this.ensureNotClosed(),this.syncMapImpl.update(r,c,u)}async remove(r){return this.ensureNotClosed(),this.syncMapImpl.remove(r)}async getItems(r){return this.ensureNotClosed(),this.syncMapImpl.getItems(r)}async setTtl(r){return this.ensureNotClosed(),this.syncMapImpl.setTtl(r)}async setItemTtl(r,c){return this.ensureNotClosed(),this.syncMapImpl.setItemTtl(r,c)}async removeMap(){this.ensureNotClosed(),await this.syncMapImpl.removeMap()}close(){super.close(),this.syncMapImpl.detach(this.listenerUuid)}}c.SyncMap=SyncMap,c.default=SyncMap},42681:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});const p=u(2043).getLogger("twilio-sync");function prepareLine(r,c){return[`${(new Date).toISOString()} Sync ${r}:`].concat(Array.from(c))}c.default={setLevel:function(r){p.setLevel(r)},trace:function(...r){p.trace.apply(null,prepareLine("T",r))},debug:function(...r){p.debug.apply(null,prepareLine("D",r))},info:function(...r){p.info.apply(null,prepareLine("I",r))},warn:function(...r){p.warn.apply(null,prepareLine("W",r))},error:function(...r){p.error.apply(null,prepareLine("E",r))}}},13902:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.validateId=c.validatePageSize=c.validateMandatoryTtl=c.validateOptionalTtl=c.deepClone=void 0;const p=u(78191);function validateTtl(r,c){if(c&&void 0===r)return;const u=typeof r;if("number"!==u||!function isNonNegativeInteger(r){return isInteger(r)&&r>=0}(r)){const c="object"===u?"object":`'${r}' of type '${u}'`;throw new p.default("Invalid TTL, expected a positive integer of type number, was "+c,400,54011)}}function isInteger(r){return!isNaN(parseInt(r))&&isFinite(r)}c.deepClone=function deepClone(r){return JSON.parse(JSON.stringify(r))},c.validateId=function validateId(r){if(void 0===r)return;const c=typeof r;if("string"!==c)throw new Error(`Invalid ID type, expected a string, got '${c}'`)},c.validateOptionalTtl=function validateOptionalTtl(r){validateTtl(r,!0)},c.validateMandatoryTtl=function validateMandatoryTtl(r){validateTtl(r,!1)},c.validatePageSize=function validatePageSize(r){if(!(void 0===r||function isPositiveInteger(r){return isInteger(r)&&r>0}(r)))throw new p.default(`Invalid pageSize parameter. Expected a positive integer, was '${r}'.`,400,54455)}},78191:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SyncNetworkError=c.SyncError=void 0;class SyncError extends Error{constructor(r,c=0,u=0){super(),this.name=this.constructor.name,this.message=`${r} (status: ${c}, code: ${u})`,this.status=c,this.code=u}}c.SyncError=SyncError;c.SyncNetworkError=class SyncNetworkError extends SyncError{constructor(r,c=0,u=0,p){super(r,c,u),this.body=p}},c.default=SyncError},70036:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TreeMap=void 0;class Node{constructor(r,c){this.balanceFactor=0,this.key=r,this.value=c,this.parent=null,this.left=null,this.right=null}get isRoot(){return null===this.parent}get isLeaf(){return null===this.left&&null===this.right}get isLeftChild(){return this.parent.left===this}update(r){this.value=r}replace(r,c){r&&(this.left===c?this.left=c:this.right===c&&(this.right=c))}}class TreeMap{constructor(r,c){this.isLessThan=r||((r,c)=>r<c),this.isEqual=c||((r,c)=>r===c),this.root=null,this.count=null}get size(){return this.count}clear(){this.root=null,this.count=0}set(r,c){let u=this.getNode(r);u?u.update(c):this.insert(r,c)}insert(r,c){let u=new Node(r,c);if(this.count++,!this.root)return void(this.root=u);let p=this.root;for(;;)if(this.isLessThan(r,p.key)){if(!p.left){p.left=u;break}p=p.left}else{if(!p.right){p.right=u;break}p=p.right}for(u.parent=p,p=u;p.parent;){let r=p.parent,c=r.balanceFactor;if(p.isLeftChild?r.balanceFactor++:r.balanceFactor--,Math.abs(r.balanceFactor)<Math.abs(c))break;if(r.balanceFactor<-1||r.balanceFactor>1){this.rebalance(r);break}p=r}}get(r){let c=this.root;for(;c;){if(this.isEqual(r,c.key))return c.value;c=this.isLessThan(r,c.key)?c.left:c.right}return null}delete(r){let c=this.getNode(r);if(!c||c.key!==r)return null;let u=c.parent,p=c.left,y=c.right;if(!!p!=!!y){let r=p||y;u||r?u&&!r?this.root=r:(u.replace(c,null),this.rebalance(u)):this.root=null}else{let r=c.left;for(;r.right;)r=r.right;if(c.left===r)c.isRoot?(this.root=r,r.parent=null):(c.isLeftChild?c.parent.left=r:c.parent.right=r,r.parent=c.parent),r.right=c.right,r.right.parent=r,r.balanceFactor=c.balanceFactor,c={parent:r,isLeftChild:!0};else{let u=r.parent,p=r.left;u.right=p,p&&(p.parent=u),c.isRoot?(this.root=r,r.parent=null):(c.isLeftChild?c.parent.left=r:c.parent.right=r,r.parent=c.parent),r.right=c.right,r.right.parent=r,r.left=c.left,r.left.parent=r,r.balanceFactor=c.balanceFactor,c={parent:u,isLeftChild:!1}}}for(this.count--;c.parent;){let r=c.parent,u=r.balanceFactor;if(c.isLeftChild?r.balanceFactor-=1:r.balanceFactor+=1,Math.abs(r.balanceFactor)>Math.abs(u)){if(!(r.balanceFactor<-1||r.balanceFactor>1))break;if(this.rebalance(r),0!==r.parent.balanceFactor)break;c=r.parent}else c=r}return null}getNode(r){let c=this.root;for(;c;){if(this.isEqual(r,c.key))return c;c=this.isLessThan(r,c.key)?c.left:c.right}return null}rebalance(r){r.balanceFactor<0?r.right.balanceFactor>0?(this.rotateRight(r.right),this.rotateLeft(r)):this.rotateLeft(r):r.balanceFactor>0&&(r.left.balanceFactor<0?(this.rotateLeft(r.left),this.rotateRight(r)):this.rotateRight(r))}rotateLeft(r){let c=r.right;r.right=c.left,null!==c.left&&(c.left.parent=r),c.parent=r.parent,null===c.parent?this.root=c:r.isLeftChild?c.parent.left=c:c.parent.right=c,c.left=r,r.parent=c,r.balanceFactor=r.balanceFactor+1-Math.min(c.balanceFactor,0),c.balanceFactor=c.balanceFactor+1-Math.max(r.balanceFactor,0)}rotateRight(r){let c=r.left;r.left=c.right,null!==c.right&&(c.right.parent=r),c.parent=r.parent,null===c.parent?this.root=c:r.isLeftChild?c.parent.left=c:c.parent.right=c,c.right=r,r.parent=c,r.balanceFactor=r.balanceFactor-1-Math.min(c.balanceFactor,0),c.balanceFactor=c.balanceFactor-1-Math.max(r.balanceFactor,0)}*[Symbol.iterator](){for(let r of this.getIterator())yield r}*getIterator(r=null){let c=this.root;for(;c&&!this.isEqual(r,c.key)&&(null!==r||c.left);)c=this.isLessThan(r,c.key)||null===r?c.left:c.right;if(!c)return null;let u=!0;for(;;)if(u)if(yield[c.key,c.value],u=!1,c.right){for(c=c.right;c.left;)c=c.left;u=!0}else{if(!c.parent)break;u=c.parent.left===c,c=c.parent}else{if(!c.parent)break;u=c.parent.left===c,c=c.parent}return null}*getReverseIterator(r=null){let c=this.root;for(;c&&!this.isEqual(r,c.key)&&(null!==r||c.right);)c=this.isLessThan(r,c.key)&&null!==r?c.left:c.right;if(!c)return null;let u=!0;for(;;)if(u)if(yield[c.key,c.value],u=!1,c.left){for(c=c.left;c.right;)c=c.right;u=!0}else{if(!c.parent)break;u=c.parent.right===c,c=c.parent}else{if(!c.parent)break;u=c.parent.right===c,c=c.parent}return null}}c.TreeMap=TreeMap},92343:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.UriBuilder=void 0;c.UriBuilder=class UriBuilder{constructor(r){this.base=r,this.args=new Array,this.paths=new Array}pathSegment(r){return this.paths.push(encodeURIComponent(r)),this}queryParam(r,c){return void 0!==c&&this.args.push(encodeURIComponent(r)+"="+encodeURIComponent(c)),this}build(){let r=this.base;return this.paths.length&&(r+="/"+this.paths.join("/")),this.args.length&&(r+="?"+this.args.join("&")),r}}},76989:r=>{"use strict";r.exports={i8:"0.12.4"}},91182:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.BackoffRetrier=void 0;const p=u(17187),y=u(89948);class BackoffRetrier extends p.EventEmitter{constructor(r){super(),this.options=r?Object.assign({},r):{}}get inProgress(){return!!this.retrier}start(){if(this.inProgress)throw new Error("Already waiting for next attempt, call finishAttempt(success : boolean) to finish it");this.createRetrier()}stop(){this.cleanRetrier(),this.newBackoff=null,this.usedBackoff=null}modifyBackoff(r){this.newBackoff=r}attemptFailed(){if(!this.inProgress)throw new Error("No attempt is in progress");if(this.newBackoff){!this.usedBackoff||this.usedBackoff<this.newBackoff?this.createRetrier():this.retrier.failed(new Error)}else this.retrier.failed(new Error)}cancel(){this.retrier&&this.retrier.cancel()}cleanRetrier(){this.retrier&&(this.retrier.removeAllListeners(),this.retrier.cancel(),this.retrier=null)}getRetryPolicy(){const r=Object.assign({},this.options);return this.newBackoff&&(r.min=this.newBackoff,r.max=this.options.max&&this.options.max>this.newBackoff?this.options.max:this.newBackoff),r.maxAttemptsCount=this.options.maxAttemptsCount?this.options.maxAttemptsCount+1:void 0,r}createRetrier(){this.cleanRetrier();const r=this.getRetryPolicy();this.retrier=new y.Retrier(r),this.retrier.once("attempt",()=>{this.retrier.on("attempt",()=>this.emit("attempt")),this.retrier.failed(new Error("Skipping first attempt"))}),this.retrier.on("failed",r=>this.emit("failed",r)),this.usedBackoff=this.newBackoff,this.newBackoff=null,this.retrier.start().catch(r=>{})}}c.BackoffRetrier=BackoffRetrier},78726:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Twilsock=c.TwilsockClient=c.TelemetryEvents=void 0;const p=u(17187),y=u(65398),w=u(13416),k=u(21934),x=u(97461),E=u(56460),I=u(6165),K=u(76484),J=u(82454),ie=u(91971),oe=u(62056),se=u(93612),ae=u(25739);class TelemetryEvents{}c.TelemetryEvents=TelemetryEvents,TelemetryEvents.TWILSOCK_CONNECT="twilsock.sdk.connect",TelemetryEvents.TWILSOCK_INIT="twilsock.sdk.init";class TwilsockClient extends p.EventEmitter{constructor(r,c,u={}){super(),this.offlineStorageDeferred=new J.Deferred,u.continuationToken=u.continuationToken?u.continuationToken:se.TokenStorage.getStoredToken(c);let p=this.config=new w.Configuration(r,c,u);y.log.setLevel(p.logLevel);let oe=new E.WebSocketChannel(p.url),ue=u.transport?u.transport:new x.PacketInterface(oe,p);this.channel=u.channel?u.channel:new k.TwilsockImpl(oe,ue,p),this.registrations=u.registrations?u.registrations:new I.Registrations(ue),this.upstream=new K.Upstream(ue,this.channel,p),this.telemetryTracker=new ae.TelemetryTracker(p,ue),this.channel.on("initialized",()=>this.telemetryTracker.canSendTelemetry=!0),oe.on("disconnected",()=>this.telemetryTracker.canSendTelemetry=!1),this.registrations.on("registered",r=>this.emit("registered",r)),this.channel.on("message",(r,c)=>setTimeout(()=>this.emit("message",r,c),0)),this.channel.on("stateChanged",r=>setTimeout(()=>this.emit("stateChanged",r),0)),this.channel.on("connectionError",r=>setTimeout(()=>this.emit("connectionError",r),0)),this.channel.on("tokenAboutToExpire",()=>setTimeout(()=>this.emit("tokenAboutToExpire"),0)),this.channel.on("tokenExpired",()=>setTimeout(()=>this.emit("tokenExpired"),0)),this.channel.on("connected",()=>this.registrations.updateRegistrations()),this.channel.on("connected",()=>this.upstream.sendPendingMessages()),this.channel.on("connected",()=>setTimeout(()=>this.emit("connected"),0)),this.channel.on("beforeConnect",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Establish WebSocket connection","",new Date),TelemetryEvents.TWILSOCK_CONNECT,ae.TelemetryPoint.Start)),this.channel.on("connected",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Establish WebSocket connection","",new Date,new Date),TelemetryEvents.TWILSOCK_CONNECT,ae.TelemetryPoint.End)),this.channel.on("beforeSendInit",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Send Twilsock init","",new Date),TelemetryEvents.TWILSOCK_INIT,ae.TelemetryPoint.Start)),this.channel.on("initialized",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Send Twilsock init","Succeeded",new Date,new Date),TelemetryEvents.TWILSOCK_INIT,ae.TelemetryPoint.End)),this.channel.on("sendInitFailed",()=>this.telemetryTracker.addPartialEvent(new ae.TelemetryEventDescription("Send Twilsock init","Failed",new Date,new Date),TelemetryEvents.TWILSOCK_INIT,ae.TelemetryPoint.End)),this.channel.on("initialized",r=>{this.handleStorageId(c,r),se.TokenStorage.storeToken(r.continuationToken,c),setTimeout(()=>this.emit("initialized",r),0)}),this.channel.on("disconnected",()=>setTimeout(()=>this.emit("disconnected"),0)),this.channel.on("disconnected",()=>this.upstream.rejectPendingMessages()),this.channel.on("disconnected",()=>this.offlineStorageDeferred.fail(new ie.TwilsockError("Client disconnected"))),this.offlineStorageDeferred.promise.catch(()=>{})}emit(r,...c){return y.log.debug(`Emitting ${r.toString()}(${c.map(r=>JSON.stringify(r)).join(", ")})`),super.emit(r,...c)}handleStorageId(r,c){if(c.offlineStorage)if(c.offlineStorage.hasOwnProperty(r))try{this.offlineStorageDeferred.set(oe.OfflineProductStorage.create(c.offlineStorage[r])),y.log.debug(`Offline storage for '${r}' product: ${JSON.stringify(c.offlineStorage[r])}.`)}catch(u){this.offlineStorageDeferred.fail(new ie.TwilsockError(`Failed to parse offline storage for ${r} ${JSON.stringify(c.offlineStorage[r])}. ${u}.`))}else this.offlineStorageDeferred.fail(new ie.TwilsockError(`No offline storage id for '${r}' product: ${JSON.stringify(c.offlineStorage)}`));else this.offlineStorageDeferred.fail(new ie.TwilsockError("No offline storage id"))}storageId(){return this.offlineStorageDeferred.promise}get isConnected(){return this.channel.isConnected}get state(){return this.channel.state}async updateToken(r){if(y.log.trace(`updating token '${r}'`),this.config.token!==r)return this.config.updateToken(r),this.channel.updateToken(r)}setNotificationsContext(r,c){this.registrations.setNotificationsContext(r,c)}removeNotificationsContext(r){this.registrations.removeNotificationsContext(r)}connect(){return this.channel.connect()}disconnect(){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEventsIncludingUnfinished),this.channel.disconnect()}get(r,c){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEvents),this.upstream.send("GET",r,c)}post(r,c,u){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEvents),this.upstream.send("POST",r,c,u)}put(r,c,u){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEvents),this.upstream.send("PUT",r,c,u)}delete(r,c){return this.telemetryTracker.sendTelemetry(ae.EventSendingLimitation.AnyEvents),this.upstream.send("DELETE",r,c)}addTelemetryEvent(r){this.telemetryTracker.addTelemetryEvent(r),this.telemetryTracker.sendTelemetryIfMinimalPortionCollected()}addPartialTelemetryEvent(r,c,u){this.telemetryTracker.addPartialEvent(r,c,u),u===ae.TelemetryPoint.End&&this.telemetryTracker.sendTelemetryIfMinimalPortionCollected()}}c.TwilsockClient=TwilsockClient,c.Twilsock=TwilsockClient},13416:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Configuration=void 0;c.Configuration=class Configuration{constructor(r,c,u={}){this.confirmedCapabilities=new Set,this.activeGrant=c,this._token=r;const p=`wss://tsock.${u.region||"us1"}.twilio.com/v3/wsconnect`;let y=u.twilsock||u.Twilsock||{};this.url=y.uri||p,this._continuationToken=u.continuationToken?u.continuationToken:null,this.logLevel=u.logLevel?u.logLevel:"error",this.retryPolicy=u.retryPolicy?u.retryPolicy:{min:1e3,max:12e4,randomness:.2},this.clientMetadata=u.clientMetadata?u.clientMetadata:{},this.clientMetadata.ver="0.5.14",this.initRegistrations=u.initRegistrations?u.initRegistrations:null,this.tweaks=u.tweaks?u.tweaks:null}get token(){return this._token}get continuationToken(){return this._continuationToken}updateToken(r){this._token=r}updateContinuationToken(r){this._continuationToken=r}}},82454:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Deferred=void 0;c.Deferred=class Deferred{constructor(){this._promise=new Promise((r,c)=>{this._resolve=r,this._reject=c})}get promise(){return this._promise}update(r){this._resolve(r)}set(r){this.current=r,this._resolve(r)}fail(r){this._reject(r)}}},97417:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TransportUnavailableError=void 0;const p=u(91971);class TransportUnavailableError extends p.TwilsockError{constructor(r){super(r)}}c.TransportUnavailableError=TransportUnavailableError},91971:(r,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TwilsockError=void 0;class TwilsockError extends Error{constructor(r){super(r)}}c.TwilsockError=TwilsockError},464:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TwilsockReplyError=void 0;const p=u(91971);class TwilsockReplyError extends p.TwilsockError{constructor(r,c){super(r),this.reply=c}}c.TwilsockReplyError=TwilsockReplyError},72884:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TwilsockUpstreamError=void 0;const p=u(91971);class TwilsockUpstreamError extends p.TwilsockError{constructor(r,c,u){super(c),this.status=r,this.description=c,this.body=u}}c.TwilsockUpstreamError=TwilsockUpstreamError},16895:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TransportUnavailableError=c.TwilsockError=c.Twilsock=c.TwilsockClient=void 0;const p=u(78726);Object.defineProperty(c,"TwilsockClient",{enumerable:!0,get:function(){return p.TwilsockClient}}),Object.defineProperty(c,"Twilsock",{enumerable:!0,get:function(){return p.TwilsockClient}});const y=u(91971);Object.defineProperty(c,"TwilsockError",{enumerable:!0,get:function(){return y.TwilsockError}});const w=u(97417);Object.defineProperty(c,"TransportUnavailableError",{enumerable:!0,get:function(){return w.TransportUnavailableError}})},65398:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.log=c.Logger=void 0;const p=u(2043).getLogger("twilsock");function prepareLine(r,c){return[`${(new Date).toISOString()} Twilsock ${r}:`].concat(Array.from(c))}class Logger{constructor(r){this.prefix="",this.prefix=null!=r&&r.length>0?" "+r+":":""}setLevel(r){p.setLevel(r)}static setLevel(r){p.setLevel(r)}trace(...r){p.debug.apply(null,prepareLine("T",r))}debug(...r){p.debug.apply(null,prepareLine("D",r))}info(...r){p.info.apply(null,prepareLine("I",r))}warn(...r){p.warn.apply(null,prepareLine("W",r))}error(...r){p.error.apply(null,prepareLine("E",r))}static trace(...r){p.trace.apply(null,prepareLine("T",r))}static debug(...r){p.debug.apply(null,prepareLine("D",r))}static info(...r){p.info.apply(null,prepareLine("I",r))}static warn(...r){p.warn.apply(null,prepareLine("W",r))}static error(...r){p.error.apply(null,prepareLine("E",r))}}c.Logger=Logger;let y=new Logger("");c.log=y},43304:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Metadata=void 0;const p=u(31795);c.Metadata=class Metadata{static getMetadata(r){"undefined"!=typeof navigator&&p.parse(navigator.userAgent);let c=r&&r.clientMetadata?r.clientMetadata:{};const u={env:p.name,envv:p.version,os:p.os.family,osv:p.os.version,osa:p.os.architecture,sdk:"js-default"};let y={};return["ver","env","envv","os","osv","osa","type","sdk","sdkv","dev","devv","devt","app","appv"].filter(r=>r in c||r in u).forEach(r=>y[r]=r in c?c[r]:u[r]),y}}},62056:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.OfflineProductStorage=void 0;const p=u(91971);class OfflineProductStorage{constructor(r){this.id=r}static create(r){if(r instanceof Object&&"storage_id"in r)return new OfflineProductStorage(r.storage_id);throw new p.TwilsockError('Field "storage_id" is missing')}}c.OfflineProductStorage=OfflineProductStorage},97461:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.PacketInterface=c.PacketResponse=void 0;const p=u(65398),y=u(55877),w=u(91971),k=u(464),x=u(31844),E=u(31131),I=u(43304);c.PacketResponse=class PacketResponse{};c.PacketInterface=class PacketInterface{constructor(r,c){this.config=c,this.activeRequests=new Map,this.channel=r,this.channel.on("reply",r=>this.processReply(r)),this.channel.on("disconnected",()=>{this.activeRequests.forEach(r=>{clearTimeout(r.timeout),r.reject(new w.TwilsockError("disconnected"))}),this.activeRequests.clear()})}get isConnected(){return this.channel.isConnected}processReply(r){const c=this.activeRequests.get(r.id);c&&(clearTimeout(c.timeout),this.activeRequests.delete(r.id),!function isHttpSuccess(r){return r>=200&&r<300}(r.status.code)?(c.reject(new k.TwilsockReplyError("Transport failure: "+r.status.status,r)),p.log.trace("message rejected")):c.resolve(r))}storeRequest(r,c,u){let y={resolve:c,reject:u,timeout:setTimeout(()=>{p.log.trace("request",r,"is timed out"),u(new w.TwilsockError("Twilsock: request timeout: "+r))},3e4)};this.activeRequests.set(r,y)}shutdown(){this.activeRequests.forEach(r=>{clearTimeout(r.timeout),r.reject(new w.TwilsockError("Twilsock: request cancelled by user"))}),this.activeRequests.clear()}async sendInit(){p.log.trace("sendInit");let r=I.Metadata.getMetadata(this.config),c=new E.Init(this.config.token,this.config.continuationToken,r,this.config.initRegistrations,this.config.tweaks),u=await this.sendWithReply(c);return new E.InitReply(u.id,u.header.continuation_token,u.header.continuation_token_status,u.header.offline_storage,u.header.init_registrations,u.header.debug_info,new Set(u.header.capabilities))}sendClose(){let r=new E.Close;this.send(r)}sendWithReply(r,c){return new Promise((u,p)=>{let y=this.send(r,c);this.storeRequest(y,u,p)})}send(r,c){r.id=r.id||"TM"+y.v4();let u=x.Parser.createPacket(r,function preparePayload(r){switch(typeof r){case"undefined":return"";case"object":return JSON.stringify(r);default:return r}}(c));try{return this.channel.send(u),r.id}catch(c){throw p.log.debug("failed to send ",r,c),p.log.trace(c.stack),c}}}},31844:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Parser=void 0;const p=u(65398);function byteLength(r){return encodeURIComponent(r).replace(/%([0-9A-F]{2})/g,(r,c)=>String.fromCharCode("0x"+c)).length}function uint8ArrayToString(r){let c=Array.prototype.map.call(r,r=>String.fromCharCode(r)).join("").replace(/(.)/g,(r,c)=>{let u=c.charCodeAt(0).toString(16).toUpperCase();return u.length<2&&(u="0"+u),"%"+u});return decodeURIComponent(c)}function getJsonObject(r){return JSON.parse(uint8ArrayToString(r))}c.Parser=class Parser{constructor(){}static parse(r){const c=new Uint8Array(r),u=function getMagic(r){let c="",u=0;for(;u<r.length;++u){const p=String.fromCharCode(r[u]);if(c+=p,"\r"===p){u+=2;break}}const p=c.split(" ");return{size:u,protocol:p[0],version:p[1],headerSize:Number(p[2])}}(c);if("TWILSOCK"!==u.protocol||"V3.0"!==u.version)return void p.log.error(`unsupported protocol: ${u.protocol} ver ${u.version}`);let y=null;try{y=getJsonObject(c.subarray(u.size,u.size+u.headerSize))}catch(c){return void p.log.error("failed to parse message header",c,r)}p.log.debug("message received: ",y.method),p.log.trace("message received: ",y);let w=null;if(y.payload_size>0){const k=2+u.size+u.headerSize,x=y.payload_size;if(y.hasOwnProperty("payload_type")&&0!==y.payload_type.indexOf("application/json"))0===y.payload_type.indexOf("text/plain")&&(w=uint8ArrayToString(c.subarray(k,k+x)));else try{w=getJsonObject(c.subarray(k,k+x))}catch(c){return void p.log.error("failed to parse message body",c,r)}}return{method:y.method,header:y,payload:w}}static createPacket(r,c=""){r.payload_size=byteLength(c);let u=JSON.stringify(r)+"\r\n",y="TWILSOCK V3.0 "+(byteLength(u)-2)+"\r\n";return p.log.debug("send request:",y+u+c),function stringToUint8Array(r){let c=encodeURIComponent(r).replace(/%([0-9A-F]{2})/g,(r,c)=>String.fromCharCode("0x"+c)),u=new Uint8Array(c.length);return Array.prototype.forEach.call(c,(r,c)=>{u[c]=r.charCodeAt(0)}),u}(y+u+c).buffer}}},39416:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.AbstractMessage=void 0;const p=u(55877);c.AbstractMessage=class AbstractMessage{constructor(r){this.id=r||"TM"+p.v4()}}},48448:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Close=void 0;const p=u(39416);class Close extends p.AbstractMessage{constructor(){super(),this.method="close"}}c.Close=Close},31131:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Telemetry=c.Close=c.Reply=c.Message=c.Update=c.InitReply=c.Init=void 0;const p=u(86562);Object.defineProperty(c,"Init",{enumerable:!0,get:function(){return p.Init}});const y=u(14514);Object.defineProperty(c,"InitReply",{enumerable:!0,get:function(){return y.InitReply}});const w=u(48724);Object.defineProperty(c,"Update",{enumerable:!0,get:function(){return w.Update}});const k=u(17586);Object.defineProperty(c,"Message",{enumerable:!0,get:function(){return k.Message}});const x=u(36680);Object.defineProperty(c,"Reply",{enumerable:!0,get:function(){return x.Reply}});const E=u(48448);Object.defineProperty(c,"Close",{enumerable:!0,get:function(){return E.Close}});const I=u(24858);Object.defineProperty(c,"Telemetry",{enumerable:!0,get:function(){return I.Telemetry}})},86562:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Init=void 0;const p=u(39416);class Init extends p.AbstractMessage{constructor(r,c,u,p=null,y=null){super(),this.method="init",this.token=r,this.continuation_token=c,this.metadata=u,this.registrations=p,this.tweaks=y,this.capabilities=["client_update","offline_storage","telemetry.v1"]}}c.Init=Init},14514:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.InitReply=c.ContinuationTokenStatus=void 0;const p=u(39416);c.ContinuationTokenStatus=class ContinuationTokenStatus{};class InitReply extends p.AbstractMessage{constructor(r,c,u,p,y,w,k){super(r),this.continuationToken=c,this.continuationTokenStatus=u,this.offlineStorage=p,this.initRegistrations=y,this.debugInfo=w,this.confirmedCapabilities=k}}c.InitReply=InitReply},17586:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Message=void 0;const p=u(39416);class Message extends p.AbstractMessage{constructor(r,c,u){super(),this.method="message",this.active_grant=r,this.payload_type=c,this.http_request=u}}c.Message=Message},36680:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Reply=void 0;const p=u(39416);class Reply extends p.AbstractMessage{constructor(r){super(r),this.method="reply",this.payload_type="application/json",this.status={code:200,status:"OK"}}}c.Reply=Reply},24858:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TelemetryEvent=c.Telemetry=void 0;const p=u(39416);c.TelemetryEvent=class TelemetryEvent{constructor(r,c,u,p,y,w){this.start=r,this.end=c,this.title=u,this.details=p,this.id=y,this.type=w}};class Telemetry extends p.AbstractMessage{constructor(r){super(),this.method="telemetry.v1",this.events=r}}c.Telemetry=Telemetry},48724:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Update=void 0;const p=u(39416);class Update extends p.AbstractMessage{constructor(r){super(),this.method="update",this.token=r}}c.Update=Update},6165:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Registrations=void 0;const p=u(65398),y=u(17187),w=u(55877),k=u(91971);class Registrations extends y.EventEmitter{constructor(r){super(),this.transport=r,this.registrations=new Map,this.registrationsInProgress=new Map}async putNotificationContext(r,c){const u={method:"put_notification_ctx",notification_ctx_id:r};await this.transport.sendWithReply(u,c)}async deleteNotificationContext(r){let c={method:"delete_notification_ctx",notification_ctx_id:r};await this.transport.sendWithReply(c)}async updateRegistration(r,c){p.log.debug("update registration for context",r);let u=this.registrationsInProgress.get(r);u||(u=new Set,this.registrationsInProgress.set(r,u));const y=w.v4();u.add(y);try{await this.putNotificationContext(r,c),p.log.debug("registration attempt succeeded for context",c),u.delete(y),0===u.size&&(this.registrationsInProgress.delete(r),this.emit("registered",r))}catch(w){p.log.warn("registration attempt failed for context",c),p.log.debug(w),u.delete(y),0===u.size&&(this.registrationsInProgress.delete(r),this.emit("registrationFailed",r,w))}}updateRegistrations(){p.log.trace(`refreshing ${this.registrations.size} registrations`),this.registrations.forEach((r,c)=>{this.updateRegistration(c,r)})}setNotificationsContext(r,c){if(!r||!c)throw new k.TwilsockError("Invalid arguments provided");this.registrations.set(r,c),this.transport.isConnected&&this.updateRegistration(r,c)}async removeNotificationsContext(r){this.registrations.has(r)&&(await this.deleteNotificationContext(r),this.transport.isConnected&&this.registrations.delete(r))}}c.Registrations=Registrations},25739:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.EventSendingLimitation=c.TelemetryPoint=c.TelemetryEventDescription=c.TelemetryTracker=void 0;const p=u(24858),y=u(65398);class TelemetryEventDescription{constructor(r,c,u,p,y,w){this.title=r,this.details=c,this.start=u,this.type=y,this.id=w,this.end=p}toTelemetryEvent(){const r=new Date;let c=this.start,u=this.end?this.end:r;if(u<c){let r=u;u=c,c=r}const y=c.getTime()-r.getTime(),w=u.getTime()-r.getTime();return new p.TelemetryEvent(y,w,this.title,this.details,this.id,this.type)}}var w,k;c.TelemetryEventDescription=TelemetryEventDescription,function(r){r[r.Start=0]="Start",r[r.End=1]="End"}(w||(w={})),c.TelemetryPoint=w,function(r){r[r.MinEventsPortion=0]="MinEventsPortion",r[r.AnyEvents=1]="AnyEvents",r[r.AnyEventsIncludingUnfinished=2]="AnyEventsIncludingUnfinished"}(k||(k={})),c.EventSendingLimitation=k;c.TelemetryTracker=class TelemetryTracker{constructor(r,c){this.minEventsPortionToSend=50,this.maxEventsPortionToSend=100,this.pendingEvents=new Map,this.readyEvents=[],this.hasInitializationFinished=!1,this._canSendTelemetry=!1,this.config=r,this.packetInterface=c}get isTelemetryEnabled(){return this.config.confirmedCapabilities.has("telemetry.v1")}get canSendTelemetry(){return this._canSendTelemetry&&this.isTelemetryEnabled}set canSendTelemetry(r){y.log.debug(`TelemetryTracker.canSendTelemetry: ${r} TelemetryTracker.isTelemetryEnabled: ${this.isTelemetryEnabled}`),this._canSendTelemetry&&!r&&(this.pendingEvents.clear(),this.readyEvents=[]),this._canSendTelemetry=r,r&&this.sendTelemetry(k.AnyEvents),r&&!this.hasInitializationFinished&&(this.hasInitializationFinished=!0)}addTelemetryEvent(r){!this.canSendTelemetry&&this.hasInitializationFinished||this.readyEvents.push(r)}addPartialEvent(r,c,u){y.log.debug(`Adding ${u===w.Start?"starting":"ending"} timepoint for '${c}' event`);let p=this.pendingEvents.has(c);if(u===w.Start)p&&y.log.debug(`Overwriting starting point for '${c}' event`),this.pendingEvents.set(c,r);else{if(!p)return void y.log.error(`Could not find started event for '${c}' event`);this.addTelemetryEvent(this.merge(this.pendingEvents.get(c),r)),this.pendingEvents.delete(c)}}getTelemetryToSend(r){return this.canSendTelemetry&&0!=this.readyEvents.length?r==k.MinEventsPortion&&this.readyEvents.length<this.minEventsPortionToSend?[]:this.getTelemetryPortion(r==k.AnyEventsIncludingUnfinished):[]}getTelemetryPortion(r){const c=Math.min(this.readyEvents.length,this.maxEventsPortionToSend);let u=this.readyEvents.splice(0,c);return r&&u.length<this.maxEventsPortionToSend&&this.pendingEvents.forEach((r,c)=>{if(u.length>=this.maxEventsPortionToSend)return;let p=this.pendingEvents.get(c);this.pendingEvents.delete(c),u.push(new TelemetryEventDescription("[UNFINISHED] "+p.title,p.details,p.start,null,p.type,p.id))}),u}merge(r,c){return new TelemetryEventDescription(c.title?c.title:r.title,c.details?c.details:r.details,r.start,c.end,c.type?c.type:r.type,c.id?c.id:r.id)}sendTelemetryIfMinimalPortionCollected(){this.sendTelemetry(k.MinEventsPortion)}sendTelemetry(r){const c=this.getTelemetryToSend(r);if(0!==c.length)try{this.packetInterface.send(new p.Telemetry(c.map(r=>r.toTelemetryEvent())))}catch(r){y.log.debug(`Error while sending ${c.length} telemetry events due to ${r}; they will be resubmitted`),this.readyEvents=this.readyEvents.concat(c)}}}},76484:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Upstream=void 0;const p=u(65398),y=u(91971),w=u(72884),k=u(31131),x=u(97417);function twilsockAddress(r,c){const u=function parseUri(r){const c=r.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)(\/[^?#]*)(\?[^#]*|)(#.*|)$/);if(c){let r={protocol:c[1],host:c[2],hostname:c[3],port:c[4],pathname:c[5],search:c[6],hash:c[7],params:null};if(r.search.length>0){let c=r.search.substring(1);r.params=c.split("&").map(r=>r.split("=")).reduce((r,c)=>(r.hasOwnProperty(c[0])?Array.isArray(r[c[0]])?r[c[0]].push(c[1]):r[c[0]]=[r[c[0]],c[1]]:r[c[0]]=c[1],r),{})}return r}throw new y.TwilsockError("Incorrect URI: "+r)}(c);let p={method:r,host:u.host,path:u.pathname};return u.params&&(p.params=u.params),p}c.Upstream=class Upstream{constructor(r,c,u){this.config=u,this.transport=r,this.pendingMessages=[],this.twilsock=c}saveMessage(r){return new Promise((c,u)=>{let w={message:r,resolve:c,reject:u,alreadyRejected:!1,timeout:setTimeout(()=>{p.log.debug("request is timed out"),u(new y.TwilsockError("Twilsock: request timeout")),w.alreadyRejected=!0},2e4)};this.pendingMessages.push(w)})}sendPendingMessages(){for(;this.pendingMessages.length;){let r=this.pendingMessages[0];if(!r.alreadyRejected)try{let c=r.message;this.actualSend(c).then(c=>r.resolve(c)).catch(c=>r.reject(c)),clearTimeout(r.timeout)}catch(r){p.log.debug("Failed to send pending message",r);break}this.pendingMessages.splice(0,1)}}rejectPendingMessages(){this.pendingMessages.forEach(r=>{r.reject(new x.TransportUnavailableError("Unable to connect: "+this.twilsock.getTerminationReason)),clearTimeout(r.timeout)}),this.pendingMessages.splice(0,this.pendingMessages.length)}async actualSend(r){let c=r.to,u=r.headers,p=r.body,y={host:c.host,path:c.path,method:c.method,params:c.params,headers:u},x=new k.Message(this.config.activeGrant,u["Content-Type"]||"application/json",y),E=await this.transport.sendWithReply(x,p);if(function isHttpReply(r){return r&&r.header&&r.header.http_status}(E)&&!function isHttpSuccess(r){return r>=200&&r<300}(E.header.http_status.code))throw new w.TwilsockUpstreamError(E.header.http_status.code,E.header.http_status.status,E.body);return{status:E.header.http_status,headers:E.header.http_headers,body:E.body}}send(r,c,u={},p){if(this.twilsock.isTerminalState)return Promise.reject(new x.TransportUnavailableError("Unable to connect: "+this.twilsock.getTerminationReason));let y=function twilsockParams(r,c,u,p){return{to:twilsockAddress(r,c),headers:u,body:p}}(r,c,u,p);return this.twilsock.isConnected?this.actualSend(y):this.saveMessage(y)}}},93612:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TokenStorage=void 0;class TokenStorage{static get sessionStorage(){try{return u.g.sessionStorage}catch(r){return null}}static get window(){try{return u.g.window}catch(r){return null}}static storeToken(r,c){TokenStorage.canStore&&TokenStorage.sessionStorage.setItem(TokenStorage.getKeyName(c),r)}static getStoredToken(r){return TokenStorage.canStore?TokenStorage.sessionStorage.getItem(TokenStorage.getKeyName(r)):null}static initialize(){if(TokenStorage.canStore){TokenStorage.sessionStorage.getItem(TokenStorage.initializedFlag)&&this.clear(),TokenStorage.sessionStorage.setItem(TokenStorage.initializedFlag,"true"),TokenStorage.window.addEventListener("unload",()=>{TokenStorage.sessionStorage.removeItem(TokenStorage.initializedFlag)})}}static clear(){if(TokenStorage.canStore){let r=[];for(let c=0;c<TokenStorage.sessionStorage.length;c++){const u=TokenStorage.sessionStorage.key(c);0===u.indexOf(TokenStorage.tokenStoragePrefix)&&r.push(u)}r.forEach(r=>TokenStorage.sessionStorage.removeItem(r)),TokenStorage.sessionStorage.removeItem(TokenStorage.initializedFlag)}}static getKeyName(r){return`${TokenStorage.tokenStoragePrefix}${r}`}static get canStore(){return TokenStorage.sessionStorage&&TokenStorage.window}}c.TokenStorage=TokenStorage,TokenStorage.initializedFlag="twilio_twilsock_token_storage",TokenStorage.tokenStoragePrefix="twilio_continuation_token_",TokenStorage.initialize()},21934:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TwilsockImpl=c.TwilsockChannel=c.Response=void 0;const p=u(17187),y=u(84907),w=u(65398),k=u(31131),x=u(31844),E=u(464),I=u(91182);c.Response=class Response{};class TwilsockChannel extends p.EventEmitter{constructor(r,c,u){super(),this.terminalStates=["disconnected","rejected"],this.lastEmittedState=void 0,this.tokenExpiredSasCode=20104,this.terminationReason="Connection is not initialized",this.websocket=r,this.websocket.on("connected",()=>this.fsm.socketConnected()),this.websocket.on("disconnected",r=>this.fsm.socketClosed()),this.websocket.on("message",r=>this.onIncomingMessage(r)),this.websocket.on("socketError",r=>this.emit("connectionError",{terminal:!1,message:r.message,httpStatusCode:null,errorCode:null})),this.transport=c,this.config=u,this.retrier=new I.BackoffRetrier(u.retryPolicy),this.retrier.on("attempt",()=>this.retry()),this.retrier.on("failed",r=>{w.log.warn("Retrying failed: "+r.message),this.disconnect()}),"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",()=>{w.log.debug("Browser reported connectivity state: online"),this.fsm.systemOnline()}),window.addEventListener("offline",()=>{w.log.debug("Browser reported connectivity state: offline"),this.websocket.close(),this.fsm.socketClosed()})),this.fsm=new y({init:"disconnected",transitions:[{name:"userConnect",from:["disconnected","rejected"],to:"connecting"},{name:"userConnect",from:["connecting","connected"]},{name:"userDisconnect",from:["connecting","initialising","connected","updating","retrying","rejected","waitSocketClosed","waitOffloadSocketClosed"],to:"disconnecting"},{name:"userRetry",from:["retrying"],to:"connecting"},{name:"socketConnected",from:["connecting"],to:"initialising"},{name:"socketClosed",from:["connecting","initialising","connected","updating","error","waitOffloadSocketClosed"],to:"retrying"},{name:"socketClosed",from:["disconnecting"],to:"disconnected"},{name:"socketClosed",from:["waitSocketClosed"],to:"disconnected"},{name:"socketClosed",from:["rejected"],to:"rejected"},{name:"initSuccess",from:["initialising"],to:"connected"},{name:"initError",from:["initialising"],to:"error"},{name:"tokenRejected",from:["initialising","updating"],to:"rejected"},{name:"protocolError",from:["initialising","connected","updating"],to:"error"},{name:"receiveClose",from:["initialising","connected","updating"],to:"waitSocketClosed"},{name:"receiveOffload",from:["initialising","connected","updating"],to:"waitOffloadSocketClosed"},{name:"unsupportedProtocol",from:["initialising","connected","updating"],to:"unsupported"},{name:"receiveFatalClose",from:["initialising","connected","updating"],to:"unsupported"},{name:"userUpdateToken",from:["disconnected","rejected","connecting","retrying"],to:"connecting"},{name:"userUpdateToken",from:["connected"],to:"updating"},{name:"updateSuccess",from:["updating"],to:"connected"},{name:"updateError",from:["updating"],to:"error"},{name:"userSend",from:["connected"],to:"connected"},{name:"systemOnline",from:["retrying"],to:"connecting"}],methods:{onConnecting:()=>{this.setupSocket(),this.emit("connecting")},onEnterInitialising:()=>{this.sendInit()},onLeaveInitialising:()=>{this.cancelInit()},onEnterUpdating:()=>{this.sendUpdate()},onLeaveUpdating:()=>{this.cancelUpdate()},onEnterRetrying:()=>{this.initRetry(),this.emit("connecting")},onEnterConnected:()=>{this.resetBackoff(),this.onConnected()},onUserUpdateToken:()=>{this.resetBackoff()},onTokenRejected:()=>{this.resetBackoff(),this.closeSocket(!0),this.finalizeSocket()},onUserDisconnect:()=>{this.closeSocket(!0)},onEnterDisconnecting:()=>{this.startDisconnectTimer()},onLeaveDisconnecting:()=>{this.cancelDisconnectTimer()},onEnterWaitSocketClosed:()=>{this.startDisconnectTimer()},onLeaveWaitSocketClosed:()=>{this.cancelDisconnectTimer()},onEnterWaitOffloadSocketClosed:()=>{this.startDisconnectTimer()},onLeaveWaitOffloadSocketClosed:()=>{this.cancelDisconnectTimer()},onDisconnected:()=>{this.resetBackoff(),this.finalizeSocket()},onReceiveClose:(r,c)=>{this.onCloseReceived(c)},onReceiveOffload:(r,c)=>{w.log.debug("onreceiveoffload: ",c),this.modifyBackoff(c.body),this.onCloseReceived(c.status)},onUnsupported:()=>{this.closeSocket(!0),this.finalizeSocket()},onError:(r,c)=>{this.closeSocket(c),this.finalizeSocket()},onEnterState:r=>{"none"!==r.from&&this.changeState(r)},onInvalidTransition:(r,c,u)=>{w.log.warn("FSM: unexpected transition",c,u)}}})}changeState(r){w.log.debug(`FSM: ${r.transition}: ${r.from} --\x3e ${r.to}`),this.lastEmittedState!==this.state&&(this.lastEmittedState=this.state,this.emit("stateChanged",this.state))}resetBackoff(){w.log.trace("resetBackoff"),this.retrier.stop()}modifyBackoff(r){w.log.trace("modifyBackoff",r);let c=r?r.backoff_policy:null;c&&"number"==typeof c.reconnect_min_ms&&this.retrier.modifyBackoff(c.reconnect_min_ms)}startDisconnectTimer(){w.log.trace("startDisconnectTimer"),this.disconnectingTimer&&(clearTimeout(this.disconnectingTimer),this.disconnectingTimer=null),this.disconnectingTimer=setTimeout(()=>{w.log.debug("disconnecting is timed out"),this.closeSocket(!0)},3e3)}cancelDisconnectTimer(){w.log.trace("cancelDisconnectTimer"),this.disconnectingTimer&&(clearTimeout(this.disconnectingTimer),this.disconnectingTimer=null)}get isConnected(){return"connected"===this.state&&this.websocket.isConnected}get state(){switch(this.fsm.state){case"connecting":case"initialising":case"retrying":case"error":return"connecting";case"updating":case"connected":return"connected";case"rejected":return"rejected";case"disconnecting":case"waitSocketClosed":case"waitOffloadSocketClosed":return"disconnecting";case"disconnected":default:return"disconnected"}}initRetry(){w.log.debug("initRetry"),this.retrier.inProgress?this.retrier.attemptFailed():this.retrier.start()}retry(){"connecting"!=this.fsm.state?(w.log.trace("retry"),this.websocket.close(),this.fsm.userRetry()):w.log.trace("can\t retry as already connecting")}onConnected(){this.emit("connected")}finalizeSocket(){w.log.trace("finalizeSocket"),this.websocket.close(),this.emit("disconnected"),this.disconnectedPromiseResolve&&(this.disconnectedPromiseResolve(),this.disconnectedPromiseResolve=null)}setupSocket(){w.log.trace("setupSocket:",this.config.token),this.emit("beforeConnect"),this.websocket.connect()}onIncomingMessage(r){let{method:c,header:u,payload:p}=x.Parser.parse(r);if("reply"!==c&&this.confirmReceiving(u),"notification"===c)this.emit("message",u.message_type,p);else if("reply"===u.method)this.transport.processReply({id:u.id,status:u.status,header:u,body:p});else if("client_update"===u.method)"token_about_to_expire"===u.client_update_type&&this.emit("tokenAboutToExpire");else if("close"===u.method)if(308===u.status.code)w.log.debug("Connection has been offloaded"),this.fsm.receiveOffload({status:u.status.status,body:p});else if(406===u.status.code){const r="Server closed connection because can't parse protocol: "+JSON.stringify(u.status);this.emitReplyConnectionError(r,u,!0),w.log.error(r),this.fsm.receiveFatalClose()}else 417===u.status.code?(w.log.error("Server closed connection because can't parse client reply: "+JSON.stringify(u.status)),this.fsm.receiveFatalClose(u.status.status)):410===u.status.code?(w.log.warn("Server closed connection: "+JSON.stringify(u.status)),this.fsm.receiveClose(u.status.status),this.emit("tokenExpired")):401===u.status.code?(w.log.error("Server closed connection: "+JSON.stringify(u.status)),this.fsm.receiveClose(u.status.status)):(w.log.warn("unexpected message: ",u.status),this.fsm.receiveOffload({status:u.status.status,body:null}))}async sendInit(){w.log.trace("sendInit");try{this.emit("beforeSendInit");let r=await this.transport.sendInit();this.config.updateContinuationToken(r.continuationToken),this.config.confirmedCapabilities=r.confirmedCapabilities,this.fsm.initSuccess(r),this.emit("initialized",r),this.emit("tokenUpdated")}catch(r){if(r instanceof E.TwilsockReplyError){let c=!1;w.log.warn("Init rejected by server: "+JSON.stringify(r.reply.status)),this.emit("sendInitFailed"),401===r.reply.status.code||403===r.reply.status.code?(c=!0,this.fsm.tokenRejected(r.reply.status),r.reply.status.errorCode===this.tokenExpiredSasCode&&this.emit("tokenExpired")):429===r.reply.status.code?(this.modifyBackoff(r.reply.body),this.fsm.initError(!0)):500===r.reply.status.code?this.fsm.initError(!1):this.fsm.initError(!0),this.emitReplyConnectionError(r.message,r.reply,c)}else this.terminationReason=r.message,this.emit("connectionError",{terminal:!0,message:r.message,httpStatusCode:null,errorCode:null}),this.fsm.initError(!0);this.emit("tokenUpdated",r)}}async sendUpdate(){w.log.trace("sendUpdate");let r=new k.Update(this.config.token);try{let c=await this.transport.sendWithReply(r);this.fsm.updateSuccess(c.body),this.emit("tokenUpdated")}catch(r){if(r instanceof E.TwilsockReplyError){let c=!1;w.log.warn("Token update rejected by server: "+JSON.stringify(r.reply.status)),401===r.reply.status.code||403===r.reply.status.code?(c=!0,this.fsm.tokenRejected(r.reply.status),r.reply.status.errorCode===this.tokenExpiredSasCode&&this.emit("tokenExpired")):429===r.reply.status.code?(this.modifyBackoff(r.reply.body),this.fsm.updateError(r.reply.status)):this.fsm.updateError(r.reply.status),this.emitReplyConnectionError(r.message,r.reply,c)}else this.emit("error",!1,r.message,null,null),this.fsm.updateError(r);this.emit("tokenUpdated",r)}}emitReplyConnectionError(r,c,u){const p=c.status&&c.status.description?c.status.description:r,y=c.status.code,w=c.status&&c.status.errorCode?c.status.errorCode:null;u&&(this.terminationReason=p),this.emit("connectionError",{terminal:u,message:p,httpStatusCode:y,errorCode:w})}cancelInit(){w.log.trace("cancelInit")}cancelUpdate(){w.log.trace("cancelUpdate")}confirmReceiving(r){w.log.trace("confirmReceiving");try{this.transport.send(new k.Reply(r.id))}catch(r){w.log.debug("failed to confirm packet receiving",r)}}closeSocket(r){w.log.trace(`closeSocket (graceful: ${r})`),r&&this.transport.isConnected&&this.transport.sendClose(),this.websocket.close(),function trampoline(r){setTimeout(r,0)}(()=>this.fsm.socketClosed())}connect(){w.log.trace("connect"),this.fsm.userConnect()}disconnect(){return w.log.trace("disconnect"),this.fsm.is("disconnected")?Promise.resolve():new Promise(r=>{this.disconnectedPromiseResolve=r,this.fsm.userDisconnect()})}updateToken(r){return w.log.trace("updateToken:",r),new Promise((r,c)=>{this.once("tokenUpdated",u=>{u?c(u):r()}),this.fsm.userUpdateToken()})}get isTerminalState(){return-1!==this.terminalStates.indexOf(this.fsm.state)}get getTerminationReason(){return this.terminationReason}onCloseReceived(r){this.websocket.close()}}c.TwilsockChannel=TwilsockChannel,c.TwilsockImpl=TwilsockChannel},56460:(r,c,u)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.WebSocketChannel=void 0;const p=u(17187),y=u(65398);class WebSocketChannel extends p.EventEmitter{constructor(r){super(),this.url=r,this.WebSocket=u.g.WebSocket||u.g.MozWebSocket||u(40418)}get isConnected(){return this.socket&&1===this.socket.readyState}connect(){y.log.trace("connecting to socket");let r=new this.WebSocket(this.url);r.binaryType="arraybuffer",r.onopen=()=>{y.log.debug("socket opened "+this.url),this.emit("connected")},r.onclose=r=>{y.log.debug("socket closed",r),this.emit("disconnected",r)},r.onerror=r=>{y.log.debug("error:",r),this.emit("socketError",r)},r.onmessage=r=>{this.emit("message",r.data)},this.socket=r}send(r){this.socket.send(r)}close(){if(y.log.trace("closing socket"),this.socket){this.socket.onopen=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null;try{this.socket.close()}finally{}}}}c.WebSocketChannel=WebSocketChannel},42238:function(r,c,u){var p;!function(y,w){"use strict";var k="model",x="name",E="type",I="vendor",K="version",J="mobile",ie="tablet",oe="smarttv",se={extend:function(r,c){var u={};for(var p in r)c[p]&&c[p].length%2==0?u[p]=c[p].concat(r[p]):u[p]=r[p];return u},has:function(r,c){return"string"==typeof r&&-1!==c.toLowerCase().indexOf(r.toLowerCase())},lowerize:function(r){return r.toLowerCase()},major:function(r){return"string"==typeof r?r.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(r,c){return r=r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),void 0===c?r:r.substring(0,255)}},ae={rgx:function(r,c){for(var u,p,y,w,k,x,E=0;E<c.length&&!k;){var I=c[E],K=c[E+1];for(u=p=0;u<I.length&&!k;)if(k=I[u++].exec(r))for(y=0;y<K.length;y++)x=k[++p],"object"==typeof(w=K[y])&&w.length>0?2==w.length?"function"==typeof w[1]?this[w[0]]=w[1].call(this,x):this[w[0]]=w[1]:3==w.length?"function"!=typeof w[1]||w[1].exec&&w[1].test?this[w[0]]=x?x.replace(w[1],w[2]):void 0:this[w[0]]=x?w[1].call(this,x,w[2]):void 0:4==w.length&&(this[w[0]]=x?w[3].call(this,x.replace(w[1],w[2])):void 0):this[w]=x||void 0;E+=2}},str:function(r,c){for(var u in c)if("object"==typeof c[u]&&c[u].length>0){for(var p=0;p<c[u].length;p++)if(se.has(c[u][p],r))return"?"===u?void 0:u}else if(se.has(c[u],r))return"?"===u?void 0:u;return r}},ue={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},le={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[K,[x,"Chrome"]],[/(?:edgios|edga|edg)\/([\w\.]+)/i],[K,[x,"Edge"]],[/edge\/([\w\.]+)/i],[[K,ae.str,ue.browser.oldEdge.version],[x,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[x,K],[/opios[\/\s]+([\w\.]+)/i],[K,[x,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[K,[x,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|instagram)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[x,K],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[K,[x,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[K,[x,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[K,[x,"WeChat"]],[/konqueror\/([\w\.]+)/i],[K,[x,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[K,[x,"IE"]],[/yabrowser\/([\w\.]+)/i],[K,[x,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[x,/(.+)/,"$1 Secure Browser"],K],[/focus\/([\w\.]+)/i],[K,[x,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[K,[x,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[K,[x,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[K,[x,"Dolphin"]],[/coast\/([\w\.]+)/i],[K,[x,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[K,[x,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[K,[x,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[x,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[x,/(.+)/,"$1 Browser"],K],[/(comodo_dragon)\/([\w\.]+)/i],[[x,/_/g," "],K],[/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[x,K],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[x],[/;fbav\/([\w\.]+);/i],[K,[x,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[x,"Facebook"]],[/\s(electron)\/([\w\.]+)\ssafari/i,/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i],[x,K],[/\bgsa\/([\w\.]+)\s.*safari\//i],[K,[x,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[K,[x,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[x,"Chrome WebView"],K],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[K,[x,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[x,K],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[K,[x,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[K,x],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[x,[K,ae.str,ue.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[x,K],[/(navigator|netscape)\/([\w\.-]+)/i],[[x,"Netscape"],K],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[x,K]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",se.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",se.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",se.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-p(?:605|610|587)|sm-t\w+|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus\s10)/i],[k,[I,"Samsung"],[E,ie]],[/(s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[k,[I,"Samsung"],[E,J]],[/\((ip(?:hone|od)[\s\w]*);/i],[k,[I,"Apple"],[E,J]],[/\((ipad);[\w\s\),;-]+(apple)/i],[k,I,[E,ie]],[/applecoremedia\/[\w\.]+\s\((ipad)/i],[k,[I,"Apple"],[E,ie]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[k,[I,"Huawei"],[E,J]],[/\b(bah2?-a?[lw]\d{2})/i],[k,[I,"Huawei"],[E,ie]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\s+build\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[k,/_/g," "],[I,"Xiaomi"],[E,J]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[k,/_/g," "],[I,"Xiaomi"],[E,ie]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[k,[I,"OPPO"],[E,J]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[k,[I,"Vivo"],[E,J]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[k,[I,"Realme"],[E,J]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot[\s-](\w*)/i,/(moto[\s\w\(\)]+(?=\sbuild|\)))/i,/(xt\d{3,4})\sbuild\//i,/(nexus\s6)/i],[k,[I,"Motorola"],[E,J]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[k,[I,"Motorola"],[E,ie]],[/((?=lg)?[vl]k\-?\d{3})\s+build|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[k,[I,"LG"],[E,ie]],[/(nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\s+build/i],[k,[I,"LG"],[E,J]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|[\w-]+)/i],[k,[I,"Lenovo"],[E,ie]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[k,[I,"Nokia"],[E,J]],[/droid.+;\s(pixel\sc)[\s)]/i],[k,[I,"Google"],[E,ie]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[k,[I,"Google"],[E,J]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[k,[I,"Sony"],[E,J]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[k,"Xperia Tablet"],[I,"Sony"],[E,ie]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\s+build/i,/\boneplus\s(a\d{4})[\s)]/i],[k,[I,"OnePlus"],[E,J]],[/(alexa)webm/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[k,[I,"Amazon"],[E,ie]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[k,"Fire Phone"],[I,"Amazon"],[E,J]],[/\((playbook);[\w\s\),;-]+(rim)/i],[k,I,[E,ie]],[/\(bb10;\s(\w+)/i],[k,[I,"BlackBerry"],[E,J]],[/\b(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00c)/i],[k,[I,"ASUS"],[E,ie]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[k,[I,"ASUS"],[E,J]],[/(nexus\s9)/i],[k,[I,"HTC"],[E,ie]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[I,[k,/_/g," "],[E,J]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[k,[I,"Acer"],[E,ie]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[k,[I,"Meizu"],[E,J]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[I,k,[E,J]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[I,k,[E,ie]],[/\s(surface\sduo)\s/i],[k,[I,"Microsoft"],[E,ie]],[/\s(u304aa)\sbuild/i],[k,[I,"AT&T"],[E,J]],[/sie-(\w*)/i],[k,[I,"Siemens"],[E,J]],[/[;\/]\s?(rct\w+)\sbuild/i],[k,[I,"RCA"],[E,ie]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[k,[I,"Dell"],[E,ie]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[k,[I,"Verizon"],[E,ie]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[k,[I,"Barnes & Noble"],[E,ie]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[k,[I,"NuVision"],[E,ie]],[/;\s(k88)\sbuild/i],[k,[I,"ZTE"],[E,ie]],[/;\s(nx\d{3}j)\sbuild/i],[k,[I,"ZTE"],[E,J]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[k,[I,"Swiss"],[E,J]],[/[;\/]\s?(zur\d{3})\sbuild/i],[k,[I,"Swiss"],[E,ie]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[k,[I,"Zeki"],[E,ie]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[I,"Dragon Touch"],k,[E,ie]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[k,[I,"Insignia"],[E,ie]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[k,[I,"NextBook"],[E,ie]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[I,"Voice"],k,[E,J]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[I,"LvTel"],k,[E,J]],[/;\s(ph-1)\s/i],[k,[I,"Essential"],[E,J]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[k,[I,"Envizen"],[E,ie]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[k,[I,"MachSpeed"],[E,ie]],[/[;\/]\s?tu_(1491)\sbuild/i],[k,[I,"Rotor"],[E,ie]],[/(shield[\w\s]+)\sbuild/i],[k,[I,"Nvidia"],[E,ie]],[/(sprint)\s(\w+)/i],[I,k,[E,J]],[/(kin\.[onetw]{3})/i],[[k,/\./g," "],[I,"Microsoft"],[E,J]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[k,[I,"Zebra"],[E,ie]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[k,[I,"Zebra"],[E,J]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[I,k,[E,"console"]],[/droid.+;\s(shield)\sbuild/i],[k,[I,"Nvidia"],[E,"console"]],[/(playstation\s[345portablevi]+)/i],[k,[I,"Sony"],[E,"console"]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[k,[I,"Microsoft"],[E,"console"]],[/smart-tv.+(samsung)/i],[I,[E,oe],k],[/hbbtv.+maple;(\d+)/i],[[k,/^/,"SmartTV"],[I,"Samsung"],[E,oe]],[/linux;\snetcast.+smarttv/i,/lg\snetcast\.tv-201\d/i],[[I,"LG"],k,[E,oe]],[/(apple)\s?tv/i],[I,[k,"Apple TV"],[E,oe]],[/crkey/i],[[k,"Chromecast"],[I,"Google"],[E,oe]],[/droid.+aft([\w])(\sbuild\/|\))/i],[k,[I,"Amazon"],[E,oe]],[/\(dtv[\);].+(aquos)/i],[k,[I,"Sharp"],[E,oe]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[I,se.trim],[k,se.trim],[E,oe]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[E,oe]],[/((pebble))app\/[\d\.]+\s/i],[I,k,[E,"wearable"]],[/droid.+;\s(glass)\s\d/i],[k,[I,"Google"],[E,"wearable"]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[k,[I,"Zebra"],[E,"wearable"]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[k,[E,J]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[k,[E,ie]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[E,se.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[k,[I,"Generic"]],[/(phone)/i],[[E,J]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[K,[x,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[K,[x,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[x,K],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[K,x]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[x,K],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[x,[K,ae.str,ue.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[x,"Windows"],[K,ae.str,ue.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[K,/_/g,"."],[x,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[x,"Mac OS"],[K,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i],[x,K],[/\(bb(10);/i],[K,[x,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[K,[x,"Symbian"]],[/\((series40);/i],[x],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[x,"Firefox OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[K,[x,"webOS"]],[/crkey\/([\d\.]+)/i],[K,[x,"Chromecast"]],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[x,K],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[x,"Chromium OS"],K],[/(sunos)\s?([\w\.\d]*)/i],[[x,"Solaris"],K],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i],[x,K],[/(haiku)\s(\w+)/i],[x,K],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[x,K]]},UAParser=function(r,c){if("object"==typeof r&&(c=r,r=void 0),!(this instanceof UAParser))return new UAParser(r,c).getResult();var u=r||(void 0!==y&&y.navigator&&y.navigator.userAgent?y.navigator.userAgent:""),p=c?se.extend(le,c):le;return this.getBrowser=function(){var r={name:void 0,version:void 0};return ae.rgx.call(r,u,p.browser),r.major=se.major(r.version),r},this.getCPU=function(){var r={architecture:void 0};return ae.rgx.call(r,u,p.cpu),r},this.getDevice=function(){var r={vendor:void 0,model:void 0,type:void 0};return ae.rgx.call(r,u,p.device),r},this.getEngine=function(){var r={name:void 0,version:void 0};return ae.rgx.call(r,u,p.engine),r},this.getOS=function(){var r={name:void 0,version:void 0};return ae.rgx.call(r,u,p.os),r},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return u},this.setUA=function(r){return u=r.length>255?se.trim(r,255):r,this},this.setUA(u),this};UAParser.VERSION="0.7.26",UAParser.BROWSER={NAME:x,MAJOR:"major",VERSION:K},UAParser.CPU={ARCHITECTURE:"architecture"},UAParser.DEVICE={MODEL:k,VENDOR:I,TYPE:E,CONSOLE:"console",MOBILE:J,SMARTTV:oe,TABLET:ie,WEARABLE:"wearable",EMBEDDED:"embedded"},UAParser.ENGINE={NAME:x,VERSION:K},UAParser.OS={NAME:x,VERSION:K},void 0!==c?(r.exports&&(c=r.exports=UAParser),c.UAParser=UAParser):void 0===(p=function(){return UAParser}.call(c,u,c,r))||(r.exports=p);var de=void 0!==y&&(y.jQuery||y.Zepto);if(de&&!de.ua){var pe=new UAParser;de.ua=pe.getResult(),de.ua.get=function(){return pe.getUA()},de.ua.set=function(r){pe.setUA(r);var c=pe.getResult();for(var u in c)de.ua[u]=c[u]}}}("object"==typeof window?window:this)},99413:r=>{r.exports=/[\0-\x1F\x7F-\x9F]/},52326:r=>{r.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},73189:r=>{r.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},35045:r=>{r.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},84205:(r,c,u)=>{"use strict";c.Any=u(29369),c.Cc=u(99413),c.Cf=u(52326),c.P=u(73189),c.Z=u(35045)},29369:r=>{r.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},55877:(r,c,u)=>{var p=u(23570),y=u(71171),w=y;w.v1=p,w.v4=y,r.exports=w},45327:r=>{for(var c=[],u=0;u<256;++u)c[u]=(u+256).toString(16).substr(1);r.exports=function bytesToUuid(r,u){var p=u||0,y=c;return[y[r[p++]],y[r[p++]],y[r[p++]],y[r[p++]],"-",y[r[p++]],y[r[p++]],"-",y[r[p++]],y[r[p++]],"-",y[r[p++]],y[r[p++]],"-",y[r[p++]],y[r[p++]],y[r[p++]],y[r[p++]],y[r[p++]],y[r[p++]]].join("")}},85217:r=>{var c="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(c){var u=new Uint8Array(16);r.exports=function whatwgRNG(){return c(u),u}}else{var p=new Array(16);r.exports=function mathRNG(){for(var r,c=0;c<16;c++)0==(3&c)&&(r=4294967296*Math.random()),p[c]=r>>>((3&c)<<3)&255;return p}}},23570:(r,c,u)=>{var p,y,w=u(85217),k=u(45327),x=0,E=0;r.exports=function v1(r,c,u){var I=c&&u||0,K=c||[],J=(r=r||{}).node||p,ie=void 0!==r.clockseq?r.clockseq:y;if(null==J||null==ie){var oe=w();null==J&&(J=p=[1|oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]]),null==ie&&(ie=y=16383&(oe[6]<<8|oe[7]))}var se=void 0!==r.msecs?r.msecs:(new Date).getTime(),ae=void 0!==r.nsecs?r.nsecs:E+1,ue=se-x+(ae-E)/1e4;if(ue<0&&void 0===r.clockseq&&(ie=ie+1&16383),(ue<0||se>x)&&void 0===r.nsecs&&(ae=0),ae>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");x=se,E=ae,y=ie;var le=(1e4*(268435455&(se+=122192928e5))+ae)%4294967296;K[I++]=le>>>24&255,K[I++]=le>>>16&255,K[I++]=le>>>8&255,K[I++]=255&le;var de=se/4294967296*1e4&268435455;K[I++]=de>>>8&255,K[I++]=255&de,K[I++]=de>>>24&15|16,K[I++]=de>>>16&255,K[I++]=ie>>>8|128,K[I++]=255&ie;for(var pe=0;pe<6;++pe)K[I+pe]=J[pe];return c||k(K)}},71171:(r,c,u)=>{var p=u(85217),y=u(45327);r.exports=function v4(r,c,u){var w=c&&u||0;"string"==typeof r&&(c="binary"===r?new Array(16):null,r=null);var k=(r=r||{}).random||(r.rng||p)();if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,c)for(var x=0;x<16;++x)c[w+x]=k[x];return c||y(k)}},91698:(r,c,u)=>{r.exports=u(35666)},58055:(r,c,u)=>{"use strict";const p=u(13118),y=u(97966),w=u(61269),k=new w({maxSize:1e5}),isObject=r=>!("object"!=typeof r||null===r||r instanceof RegExp||r instanceof Error||r instanceof Date),camelCaseConvert=(r,c)=>{if(!isObject(r))return r;c={deep:!1,pascalCase:!1,...c};const{exclude:u,pascalCase:w,stopPaths:x,deep:E}=c,I=new Set(x),makeMapper=r=>(c,x)=>{if(E&&isObject(x)){const u=void 0===r?c:`${r}.${c}`;I.has(u)||(x=p(x,makeMapper(u)))}if(!u||!((r,c)=>r.some(r=>"string"==typeof r?r===c:(r.lastIndex=0,r.test(c))))(u,c)){const r=w?c+"_":c;if(k.has(r))c=k.get(r);else{const u=y(c,{pascalCase:w});c.length<100&&k.set(r,u),c=u}}return[c,x]};return p(r,makeMapper(void 0))};r.exports=(r,c)=>Array.isArray(r)?Object.keys(r).map(u=>camelCaseConvert(r[u],c)):camelCaseConvert(r,c)},97966:r=>{"use strict";const camelCase=(r,c)=>{if("string"!=typeof r&&!Array.isArray(r))throw new TypeError("Expected the input to be `string | string[]`");if(c={pascalCase:!1,preserveConsecutiveUppercase:!1,...c},0===(r=Array.isArray(r)?r.map(r=>r.trim()).filter(r=>r.length).join("-"):r.trim()).length)return"";if(1===r.length)return c.pascalCase?r.toLocaleUpperCase(c.locale):r.toLocaleLowerCase(c.locale);return r!==r.toLocaleLowerCase(c.locale)&&(r=((r,c)=>{let u=!1,p=!1,y=!1;for(let w=0;w<r.length;w++){const k=r[w];u&&/[\p{Lu}]/u.test(k)?(r=r.slice(0,w)+"-"+r.slice(w),u=!1,y=p,p=!0,w++):p&&y&&/[\p{Ll}]/u.test(k)?(r=r.slice(0,w-1)+"-"+r.slice(w-1),y=p,p=!1,u=!0):(u=k.toLocaleLowerCase(c)===k&&k.toLocaleUpperCase(c)!==k,y=p,p=k.toLocaleUpperCase(c)===k&&k.toLocaleLowerCase(c)!==k)}return r})(r,c.locale)),r=r.replace(/^[_.\- ]+/,""),r=c.preserveConsecutiveUppercase?(r=>r.replace(/^[\p{Lu}](?![\p{Lu}])/gu,r=>r.toLowerCase()))(r):r.toLocaleLowerCase(),c.pascalCase&&(r=r.charAt(0).toLocaleUpperCase(c.locale)+r.slice(1)),((r,c)=>r.replace(/[_.\- ]+([\p{Alpha}\p{N}_]|$)/gu,(r,u)=>u.toLocaleUpperCase(c.locale)).replace(/\d+([\p{Alpha}\p{N}_]|$)/gu,r=>r.toLocaleUpperCase(c.locale)))(r,c)};r.exports=camelCase,r.exports.default=camelCase},13118:r=>{"use strict";const isObject=r=>"object"==typeof r&&null!==r,c=Symbol("skip"),isObjectCustom=r=>isObject(r)&&!(r instanceof RegExp)&&!(r instanceof Error)&&!(r instanceof Date),mapObject=(r,u,p,y=new WeakMap)=>{if(p={deep:!1,target:{},...p},y.has(r))return y.get(r);y.set(r,p.target);const{target:w}=p;delete p.target;const mapArray=r=>r.map(r=>isObjectCustom(r)?mapObject(r,u,p,y):r);if(Array.isArray(r))return mapArray(r);for(const[k,x]of Object.entries(r)){const E=u(k,x,r);if(E===c)continue;let[I,K,{shouldRecurse:J=!0}={}]=E;"__proto__"!==I&&(p.deep&&J&&isObjectCustom(K)&&(K=Array.isArray(K)?mapArray(K):mapObject(K,u,p,y)),w[I]=K)}return w};r.exports=(r,c,u)=>{if(!isObject(r))throw new TypeError(`Expected an object, got \`${r}\` (${typeof r})`);return mapObject(r,c,u)},r.exports.mapObjectSkip=c},15739:r=>{"use strict";r.exports=JSON.parse('{"avatarBackgroundColor":"#edf4fc","avatarForegroundColor":"#5c6784","avatarBorderColor":"#edf4fc","botAnchorTextColor":"#3232d6","botAnchorTextColorVisited":"#5405bd","botBackgroundColor":"#f2f4f5","botIcon":"","botTextColor":"#000000","buttonBackgroundColor":"#edf4fc","buttonHoverBackgroundColor":"#edf4fc","buttonTextColor":"#005cde","carouselTextColor":"#475059","chatIcon":"https://qa-cdn-talkdesk.talkdeskdev.com/cdn-assets/latest/talkdesk/product/app-icons/sms.svg","chatPlaceholder":"Type a message...","chatThemeColor":"#1e0044","chatHoverThemeColor":"#172241","chatTitle":"Talkdesk Chat","chatTitleIcon":"https://qa-cdn-talkdesk.talkdeskdev.com/cdn-assets/latest/talkdesk/product/app-icons/sms.svg","replyBackgroundColor":"transparent","replyBorderColor":"#005cde","replyHoverTextColor":"#edf4fc","replyTextColor":"#005cde","startChatButtonBackgroundColor":"#1e0044","startChatButtonHoverBackgroundColor":"#1e0044","startChatButtonTextColor":"#ffffff","startChatButtonHoverTextColor":"#ffffff","startChatButtonBorderColor":"#1e0044","startChatButtonHoverBorderColor":"#1e0044","userAnchorTextColor":"#e1ccfe","userAnchorTextColorVisited":"#b681fc","userBackgroundColor":"#5405bd","userTextColor":"#ffffff","welcomeMessageBackgroundColor":"#4d356a","welcomeMessageTitleFontSize":"1.5em","welcomeMessageTitleFontFamily":"Roboto-Regular, sans-serif","welcomeMessageTitleColor":"#fff","welcomeMessageContentFontSize":"1em","welcomeMessageContentFontFamily":"Roboto-Regular, sans-serif","welcomeMessageContentColor":"#fff","customMessageFontSize":"14px","customMessageColor":"#202830","customMessageFontFamily":"Roboto-Regular, sans-serif","customMessageBackgroundColor":"rgb(242, 244, 245)","customMessageNoBubbleFontSize":"14px","customMessageNoBubbleColor":"#202830","customMessageNoBubbleFontFamily":"Roboto-Regular, sans-serif","customFieldLabelFontSize":"14px","customFieldLabelFontFamily":"Roboto, -apple-system, system-ui","customFieldLabelColor":"rgb(32, 40, 48)","customFieldInputFontSize":"","customFieldInputFontFamily":"Roboto, -apple-system, system-ui","customFieldInputColor":"#202830","customFieldInputBackgroundColor":"rgb(255, 255, 255)","customFieldInputPlaceholder":"Type","customDropdownLabelFontSize":"14px","customDropdownLabelFontFamily":"Roboto, -apple-system, system-ui","customDropdownLabelColor":"rgb(32, 40, 48)","customDropdownInputFontSize":"14px","customDropdownInputFontFamily":"Roboto, -apple-system, system-ui","customDropdownInputColor":"#202830","customDropdownInputBackgroundColor":"#fff","customDropdownInputPlaceholder":"Select","customButtonFontSize":"14px","customButtonFontFamily":"Arial","customButtonColor":"rgb(0, 63, 189)","customButtonBackgroundColor":"#fff","customButtonBorderColor":"rgb(0, 63, 189)","customButtonHeight":"32px","chatConfirmButtonBackgroundColor":"#3E048B","chatConfirmButtonFontColor":"#ffffff","chatConfirmButtonFontSize":"14px","chatConfirmButtonFontFamily":"Roboto-Regular, sans-serif","chatCancelButtonFontColor":"#3E048B","chatCancelButtonFontFamily":"Roboto-Regular, sans-serif","chatCancelButtonFontSize":"14px","chatDialogBoxIconColor":"#AEB3B8","chatDialogBoxEndChat":"Are you sure you want to end this chat?","chatDialogBoxFontFamily":"Roboto-Regular, sans-serif","chatDialogBoxFontSize":"16px","chatDialogBoxFontColor":"#202830","chatConfirmButtonEndChat":"Yes, end chat","chatCancelButtonEndChat":"Cancel","chatCloseButtonColor":"#ffffff","chatMinimizeButtonColor":"#ffffff","chatDialogBoxRetryEndChat":"There was an error while ending the chat.","chatConfirmButtonRetryEndChat":"Try again","chatCancelButtonRetryEndChat":"Dismiss"}')},68816:r=>{"use strict";r.exports=JSON.parse('{"avatarBackgroundColor":"#edf4fc","avatarForegroundColor":"#5c6784","avatarBorderColor":"#edf4fc","botBackgroundColor":"#f2f4f5","botIcon":"","botTextColor":"#000000","buttonBackgroundColor":"#edf4fc","buttonHoverBackgroundColor":"#edf4fc","buttonTextColor":"#005cde","carouselTextColor":"#475059","chatIcon":"https://prd-cdn-talkdesk.talkdesk.com/cdn-assets/latest/talkdesk/product/app-icons/virtual-agent.svg","chatPlaceholder":"Type a message...","chatThemeColor":"#1e0044","chatHoverThemeColor":"#172241","chatTitle":"Agent assistant","chatTitleIcon":"https://prd-cdn-talkdesk.talkdesk.com/cdn-assets/latest/talkdesk/product/app-icons/virtual-agent.svg","replyBackgroundColor":"transparent","replyBorderColor":"#005cde","replyHoverTextColor":"#edf4fc","replyTextColor":"#005cde","userBackgroundColor":"#5405bd","userTextColor":"#ffffff"}')},89818:(r,c,u)=>{var p={"./00961f60b49e42de9bd4ff426349cb59.json":[33846,846],"./6fbe1bc7-14e2-447b-8ec3-03e32b0643a1virtualagent.json":[9421,421],"./<aloricatouchpointId>.json":[42693,693],"./a3cfca95cd3a44bf969aad6bef36fe80.json":[23375,375],"./default_livechat.json":[15739],"./default_virtualagent.json":[68816]};function webpackAsyncContext(r){if(!u.o(p,r))return Promise.resolve().then(()=>{var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c});var c=p[r],y=c[0];return Promise.all(c.slice(1).map(u.e)).then(()=>u.t(y,3))}webpackAsyncContext.keys=()=>Object.keys(p),webpackAsyncContext.id=89818,r.exports=webpackAsyncContext},99144:r=>{"use strict";r.exports=window[""]},40418:()=>{},51377:()=>{}},y={};function __webpack_require__(r){if(y[r])return y[r].exports;var c=y[r]={id:r,loaded:!1,exports:{}};return p[r].call(c.exports,c,c.exports,__webpack_require__),c.loaded=!0,c.exports}__webpack_require__.m=p,__webpack_require__.n=r=>{var c=r&&r.__esModule?()=>r.default:()=>r;return __webpack_require__.d(c,{a:c}),c},c=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__,__webpack_require__.t=function(u,p){if(1&p&&(u=this(u)),8&p)return u;if("object"==typeof u&&u){if(4&p&&u.__esModule)return u;if(16&p&&"function"==typeof u.then)return u}var y=Object.create(null);__webpack_require__.r(y);var w={};r=r||[null,c({}),c([]),c(c)];for(var k=2&p&&u;"object"==typeof k&&!~r.indexOf(k);k=c(k))Object.getOwnPropertyNames(k).forEach(r=>w[r]=()=>u[r]);return w.default=()=>u,__webpack_require__.d(y,w),y},__webpack_require__.d=(r,c)=>{for(var u in c)__webpack_require__.o(c,u)&&!__webpack_require__.o(r,u)&&Object.defineProperty(r,u,{enumerable:!0,get:c[u]})},__webpack_require__.f={},__webpack_require__.e=r=>Promise.all(Object.keys(__webpack_require__.f).reduce((c,u)=>(__webpack_require__.f[u](r,c),c),[])),__webpack_require__.u=r=>r+".talkdeskchatsdk.js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),__webpack_require__.o=(r,c)=>Object.prototype.hasOwnProperty.call(r,c),u={},__webpack_require__.l=(r,c,p,y)=>{if(u[r])u[r].push(c);else{var w,k;if(void 0!==p)for(var x=document.getElementsByTagName("script"),E=0;E<x.length;E++){var I=x[E];if(I.getAttribute("src")==r||I.getAttribute("data-webpack")=="TalkdeskChatSDK:"+p){w=I;break}}w||(k=!0,(w=document.createElement("script")).charset="utf-8",w.timeout=120,__webpack_require__.nc&&w.setAttribute("nonce",__webpack_require__.nc),w.setAttribute("data-webpack","TalkdeskChatSDK:"+p),w.src=r),u[r]=[c];var onScriptComplete=(c,p)=>{w.onerror=w.onload=null,clearTimeout(K);var y=u[r];if(delete u[r],w.parentNode&&w.parentNode.removeChild(w),y&&y.forEach(r=>r(p)),c)return c(p)},K=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:w}),12e4);w.onerror=onScriptComplete.bind(null,w.onerror),w.onload=onScriptComplete.bind(null,w.onload),k&&document.head.appendChild(w)}},__webpack_require__.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},__webpack_require__.nmd=r=>(r.paths=[],r.children||(r.children=[]),r),(()=>{var r;__webpack_require__.g.importScripts&&(r=__webpack_require__.g.location+"");var c=__webpack_require__.g.document;if(!r&&c&&(c.currentScript&&(r=c.currentScript.src),!r)){var u=c.getElementsByTagName("script");u.length&&(r=u[u.length-1].src)}if(!r)throw new Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=r})(),(()=>{var r={179:0};__webpack_require__.f.j=(c,u)=>{var p=__webpack_require__.o(r,c)?r[c]:void 0;if(0!==p)if(p)u.push(p[2]);else{var y=new Promise((u,y)=>{p=r[c]=[u,y]});u.push(p[2]=y);var w=__webpack_require__.p+__webpack_require__.u(c),k=new Error;__webpack_require__.l(w,u=>{if(__webpack_require__.o(r,c)&&(0!==(p=r[c])&&(r[c]=void 0),p)){var y=u&&("load"===u.type?"missing":u.type),w=u&&u.target&&u.target.src;k.message="Loading chunk "+c+" failed.\n("+y+": "+w+")",k.name="ChunkLoadError",k.type=y,k.request=w,p[1](k)}},"chunk-"+c,c)}};var webpackJsonpCallback=(c,u)=>{for(var p,y,[w,k,x]=u,E=0,I=[];E<w.length;E++)y=w[E],__webpack_require__.o(r,y)&&r[y]&&I.push(r[y][0]),r[y]=0;for(p in k)__webpack_require__.o(k,p)&&(__webpack_require__.m[p]=k[p]);for(x&&x(__webpack_require__),c&&c(u);I.length;)I.shift()()},c=self.webpackChunkTalkdeskChatSDK=self.webpackChunkTalkdeskChatSDK||[];c.forEach(webpackJsonpCallback.bind(null,0)),c.push=webpackJsonpCallback.bind(null,c.push.bind(c))})();var w={};(()=>{"use strict";function _arrayLikeToArray(r,c){(null==c||c>r.length)&&(c=r.length);for(var u=0,p=new Array(c);u<c;u++)p[u]=r[u];return p}function _slicedToArray(r,c){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,c){var u=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=u){var p,y,w=[],k=!0,x=!1;try{for(u=u.call(r);!(k=(p=u.next()).done)&&(w.push(p.value),!c||w.length!==c);k=!0);}catch(r){x=!0,y=r}finally{try{k||null==u.return||u.return()}finally{if(x)throw y}}return w}}(r,c)||function _unsupportedIterableToArray(r,c){if(r){if("string"==typeof r)return _arrayLikeToArray(r,c);var u=Object.prototype.toString.call(r).slice(8,-1);return"Object"===u&&r.constructor&&(u=r.constructor.name),"Map"===u||"Set"===u?Array.from(r):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_arrayLikeToArray(r,c):void 0}}(r,c)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function asyncGeneratorStep(r,c,u,p,y,w,k){try{var x=r[w](k),E=x.value}catch(r){return void u(r)}x.done?c(E):Promise.resolve(E).then(p,y)}function _asyncToGenerator(r){return function(){var c=this,u=arguments;return new Promise((function(p,y){var w=r.apply(c,u);function _next(r){asyncGeneratorStep(w,p,y,_next,_throw,"next",r)}function _throw(r){asyncGeneratorStep(w,p,y,_next,_throw,"throw",r)}_next(void 0)}))}}function _defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}__webpack_require__.d(w,{app:()=>Tr});var r=__webpack_require__(91698),c=__webpack_require__.n(r),u=__webpack_require__(92502),p=__webpack_require__(4819),y=__webpack_require__(4675),k=__webpack_require__(56744),x=__webpack_require__(7167),E=__webpack_require__(71085),I=[{id:y.Z.CONVERSATION_ENGINE_CONNECTOR,resolve:__webpack_require__(95700)}],K=__webpack_require__(20192),J=__webpack_require__(28481),ie=__webpack_require__(67294),oe=__webpack_require__(30305),se=__webpack_require__(93379),ae=__webpack_require__.n(se),ue=__webpack_require__(90169),le={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};ae()(ue.Z,le);const de=ue.Z.locals||{};var pe=function CommunicationForumOff(){return ie.createElement("svg",{height:"100%",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 20.721L3.279 2 2 3.279l.97.97a.896.896 0 0 0-.07.35v12.66l3.617-3.617h5.846l1.809 1.809H6.518v1.809c0 .497.407.904.904.904h9.463L20.721 22l.243-.243.024.025v-.049L22 20.721zm-3.725-6.258l2.713 2.714V8.216a.907.907 0 0 0-.904-.905h-1.81v7.152zM7.505 3.693l8.96 8.962V4.598a.907.907 0 0 0-.904-.904H7.505z"}))},he=function Warning(){return ie.createElement("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46 42L24 4L2 42H46ZM22 36V32H26V36H22ZM22 28H26V20H22V28Z",fill:"currentColor"}),ie.createElement("mask",{id:"mask0_430_33689",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"44",height:"38"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46 42L24 4L2 42H46ZM22 36V32H26V36H22ZM22 28H26V20H22V28Z",fill:"white"})),ie.createElement("g",{mask:"url(#mask0_430_33689)"}))},ge=function ConfirmEndChat(r){var c=r.iconType,u=r.closeComponent,p=r.handleConfirm,y=r.dialogTitle,w=r.dialogConfirmButtonText,k=r.dialogCancelButtonText,x=(0,ie.useState)(!1),E=(0,J.Z)(x,2),I=E[0],K=E[1],se=(0,ie.useContext)(oe.L).webchatState.theme;(0,ie.useEffect)((function(){K(!1)}),[u,p,y,w,k]);var ae=null;switch(c){case"warning":ae=he;break;case"end_chat":ae=pe}var ue=se.confirmEndChat,le=ue.primaryButton,ge=ue.defaultButton,ve=ue.dialogBoxFontFamily,we=ue.dialogBoxFontSize,Se=ue.dialogBoxFontColor,Oe=ue.dialogBoxIconColor;return ie.createElement(ie.Suspense,{fallback:ie.createElement(ie.Fragment,null)},ie.createElement("div",{className:de.confirmEndChatContainer},ie.createElement("div",{className:de.confirmEndChat},ie.createElement("div",{className:de.confirmEndChatImg,style:{color:Oe}},ie.createElement(ae,null)),ie.createElement("div",{className:de.confirmEndChatTitle,style:{color:Se,fontSize:we,fontFamily:ve}},y),ie.createElement("button",{type:"button",className:de.confirmEndChatButton,style:{color:le.textColor,fontSize:le.fontSize,fontFamily:le.fontFamily,backgroundColor:le.backgroundColor,filter:I?"contrast(0.5)":void 0,cursor:I?"not-allowed":void 0},onClick:function confirm(){K(!0),p()},disabled:I},I?ie.createElement("div",{className:de.loading},ie.createElement("div",null),ie.createElement("div",null),ie.createElement("div",null),ie.createElement("div",null)):null,ie.createElement("p",null,w)),ie.createElement("button",{type:"button",className:de.confirmEndChatButton,style:{color:ge.textColor,fontSize:ge.fontSize,fontFamily:ge.fontFamily},onClick:function cancel(){u()}},ie.createElement("p",null,k)))))},ve=__webpack_require__(92137),we=__webpack_require__(87757),Se=__webpack_require__.n(we),Oe=__webpack_require__(8247),Ie=__webpack_require__(40121),De=__webpack_require__(7265),Pe=__webpack_require__(14613),Le=__webpack_require__(60394),je={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};ae()(Le.Z,je);const Fe=Le.Z.locals||{};var Ue=function MinimizeButton(){return ie.createElement("svg",{height:"100%",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},ie.createElement("path",{d:"M19 13H5v-2h14z"}))},$e=function CloseButton(){return ie.createElement("svg",{height:"100%",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},ie.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))},Ze=("".concat(y.Z.TALKDESK_CDN_BASE_URL,"/").concat(y.Z.TALKDESK_CDN_ICONS,"/content/remove.svg"),"".concat(y.Z.TALKDESK_CDN_BASE_URL,"/").concat(y.Z.TALKDESK_CDN_ICONS,"/content/clear.svg"),{image:y.Z.VIRTUAL_AGENT_ICON}),We=function CustomHeader(r){var c=r.title,u=r.subtitle,p=r.image,y=r.cssStyles,w=r.titleColor,k=r.subtitleColor,x=(r.closeButton,r.onClose),E=r.onEndConversation,I=r.showEndConversationButton,K=r.enableEndConversationButton,J=y.backgroundColor,oe=y.iconHeight,se=y.iconWidth,ae=y.closeIconHeight,ue=y.closeIconwidth,le=y.minimizeButtonColor,de=y.closeButtonColor;return ie.createElement("div",{className:Fe.headerWrapper,style:{backgroundColor:J}},ie.createElement("img",{alt:c,className:Fe.headerIcon,src:p,style:{width:se,height:oe}}),ie.createElement("div",{className:Fe.headerTitleWrapper},ie.createElement("p",{id:Fe.headerTitle,className:Fe.headerTitle,style:{color:w}},c),ie.createElement("p",{className:Fe.headerSubTitle,style:{color:k}},null!=u?u:Pe.Z.t("poweredByTalkdesk"))),ie.createElement("button",{type:"button",className:Fe.headerCloseButton,style:{width:ue,height:ae},onClick:x,"data-qa":"minimize-button"},ie.createElement("div",{style:{width:ue,height:ae,color:le}},ie.createElement(Ue,null))),I?ie.createElement("button",{type:"button",className:Fe.headerCloseButton,style:{width:ue,height:ae},onClick:E,disabled:!K},ie.createElement("div",{style:{width:ue,height:ae,color:de,filter:K?void 0:"contrast(0.1)",cursor:K?void 0:"not-allowed"}},ie.createElement($e,null))):null)};We.defaultProps=Ze;const Ge=We;var Ke=__webpack_require__(72164),Je={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};ae()(Ke.Z,Je);const Ye=Ke.Z.locals||{},CustomReply=function(r){var c=r.color,u=r.borderColor,p=r.backgroundColor,y=r.children,w=r.hoverBackgroundColor,k=(0,ie.useState)(!1),x=(0,J.Z)(k,2),E=x[0],I=x[1],K=E?w:p;return ie.createElement("div",{onMouseEnter:function onMouseEnter(){return I(!0)},onMouseLeave:function onMouseLeave(){return I(!1)},className:Ye.customReplyContainer,style:{color:c,borderColor:u,backgroundColor:K}},y)};var Xe=__webpack_require__(96156),Qe=__webpack_require__(86010);const et=__webpack_require__.p+"assets/custom-send-button.svg",tt=__webpack_require__.p+"assets/send-button-hovered.svg";var rt=__webpack_require__(61604),nt={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};ae()(rt.Z,nt);const it=rt.Z.locals||{};const ot=function SendButton(r){var c=r.isDisable,u=(0,ie.useState)(!1),p=(0,J.Z)(u,2),y=p[0],w=p[1],k=y?tt:et;return ie.createElement("div",{className:(0,Qe.Z)(it.customSendButtonContainer,(0,Xe.Z)({},it.isDisable,c)),role:"send-button-icon",onMouseEnter:function onMouseEnter(){return w(!0)},onMouseLeave:function onMouseLeave(){return w(!1)}},ie.createElement("img",{alt:"send-button",src:k}))};var st=__webpack_require__(46373),at={insert:function(r){window._botonicInsertStyles||(window._botonicInsertStyles=[]),window._botonicInsertStyles.push(r)},singleton:!1};ae()(st.Z,at);const ct=st.Z.locals||{};const ut=function TriggerButton(r){var c=r.url,u=void 0===c?y.Z.VIRTUAL_AGENT_ICON:c,p=r.cssStyles,w=(0,ie.useState)(!1),k=(0,J.Z)(w,2),x=k[0],E=k[1],I=p.backgroundColor,K=p.hoverBackgroundColor,oe=p.imageWidth,se=p.imageHeight,ae=p.positionBottom,ue=p.positionRight,le=x?K:I,de=function addHover(){return E(!0)},pe=function removeHover(){return E(!1)};return ie.createElement("div",{onMouseOver:de,onMouseOut:pe,onBlur:de,onFocus:pe,"data-qa":"trigger-button",className:ct.triggerButtonContainer,style:{backgroundColor:le,bottom:ae,right:ue}},ie.createElement("img",{alt:"trigger-button",style:{with:oe,height:se},src:u}))};var lt=__webpack_require__(75741),dt=__webpack_require__(87841),pt=__webpack_require__(4881),ft=__webpack_require__(2577);const ht=__webpack_require__.p+"assets/virtual-assistant-default.svg";var gt,mt=__webpack_require__(70714);!function(r){r.VirtualAgent="virtualAgent",r.Livechat="livechat"}(gt||(gt={}));var yt=function getDefaultBotIcon(r,c){var u=c.avatarBackgroundColor,p=c.avatarForegroundColor,y=c.avatarBorderColor,w=r===gt.Livechat?'<path xmlns="http://www.w3.org/2000/svg" d="M8.964 4l6.073.011c3.846 0 6.963 3.13 6.963 6.99 0 3.617-2.74 6.594-6.251 6.952l-.243.02-3.2 3.683-1.509-1.312 3.784-4.355h.456c2.74 0 4.963-2.232 4.963-4.988 0-2.684-2.108-4.872-4.75-4.985l-.215-.005L8.962 6C6.222 6 4 8.232 4 10.988c0 2.687 2.11 4.883 4.747 4.996l.215.005h1.162v2H8.962C5.117 17.989 2 14.849 2 10.988c0-3.779 2.987-6.857 6.724-6.984L8.964 4zM12 10a1 1 0 110 1.998 1 1 0 010-1.999zm-4 0a1 1 0 110 1.998 1 1 0 010-1.999zm8 0a1 1 0 110 1.998 1 1 0 010-1.999z" transform="translate(4, 4)" fill="'.concat(p,'" />'):'<path d="M8.963 4l6.077.013c3.837 0 6.96 3.135 6.96 6.988 0 3.696-2.872 6.731-6.492 6.974l-3.201 3.682-1.51-1.313 3.785-4.353h.456c2.736 0 4.962-2.239 4.962-4.99 0-2.751-2.226-4.988-4.962-4.988L8.961 6C6.227 6 4 8.239 4 10.99c0 2.757 2.227 5.001 4.963 5.001h1.161v2H8.963C5.124 17.991 2 14.85 2 10.99 2 7.136 5.124 4 8.963 4zm-.4491 5.5575c.614 1.453 2.03 2.39 3.607 2.39 1.528 0 2.927-.897 3.563-2.287l1.818.832c-.96 2.099-3.072 3.455-5.381 3.455-2.383 0-4.521-1.417-5.449-3.61z" transform="translate(4, 4)" fill="'.concat(p,'" />'),k='<?xml version="1.0" encoding="UTF-8"?> \n    <svg viewBox="0 0 32 32"  version="1.1" xmlns="http://www.w3.org/2000/svg"> <title>virtual-assistant</title> \n      <g id="Default-theme" stroke="none" stroke-width="1" fill="'.concat(u,'" fill-rule="evenodd"> \n        <g id="Group">\n          <circle xmlns="http://www.w3.org/2000/svg" cx="16" cy="16" r="15" stroke="').concat(y,'" stroke-width="2"/>\n            ').concat(w,"\n        </g>\n      </g>\n    </svg>");return"data:image/svg+xml;base64,".concat(window.btoa(k))},vt=function(){var r=(0,ve.Z)(Se().mark((function _callee(r,c,u,p,y){var w,k,x,E,I,K,J,ie,oe;return Se().wrap((function _callee$(se){for(;;)switch(se.prev=se.next){case 0:return K=r.avatarBackgroundColor,J=r.avatarForegroundColor,ie=r.avatarBorderColor,oe=yt(c,{avatarBackgroundColor:K,avatarForegroundColor:J,avatarBorderColor:ie}),se.abrupt("return",{enableEndConversationButton:function enableEndConversationButton(){return this.header.custom=function(){var c,w,k;return Ge({title:r.chatTitle,subtitle:r.chatSubtitle,image:r.chatTitleIcon,cssStyles:{backgroundColor:r.chatThemeColor,iconWidth:r.chatTitleIconWidth,iconHeight:r.chatTitleIconHeight,closeIconHeight:null!==(c=r.chatCloseIconHeight)&&void 0!==c?c:"20px",closeIconwidth:null!==(w=r.chatCloseIconWidth)&&void 0!==w?w:"20px",closeButtonColor:r.chatCloseButtonColor,minimizeButtonColor:r.chatMinimizeButtonColor},titleColor:r.chatTitleTextColor,subtitleColor:r.chatSubtitleTextColor,closeButton:null!==(k=r.chatCloseButton)&&void 0!==k?k:"remove",showEndConversationButton:u,onEndConversation:y,onClose:p,enableEndConversationButton:!0})},this},disableEndConversationButton:function disableEndConversationButton(){return this.header.custom=function(){var c,w,k;return Ge({title:r.chatTitle,subtitle:r.chatSubtitle,image:r.chatTitleIcon,cssStyles:{backgroundColor:r.chatThemeColor,iconWidth:r.chatTitleIconWidth,iconHeight:r.chatTitleIconHeight,closeIconHeight:null!==(c=r.chatCloseIconHeight)&&void 0!==c?c:"20px",closeIconwidth:null!==(w=r.chatCloseIconWidth)&&void 0!==w?w:"20px",closeButtonColor:r.chatCloseButtonColor,minimizeButtonColor:r.chatMinimizeButtonColor},titleColor:r.chatTitleTextColor,subtitleColor:r.chatSubtitleTextColor,closeButton:null!==(k=r.chatCloseButton)&&void 0!==k?k:"remove",showEndConversationButton:u,onEndConversation:y,onClose:p,enableEndConversationButton:!1})},this},style:{bottom:r.chatPositionBottom,width:r.chatContainerWidth,height:r.chatContainerHeight,fontFamily:null!==(w=r.chatThemeMainFont)&&void 0!==w?w:"Roboto-Regular, sans-serif"},carousel:{arrow:{left:function left(r){var c=r.scrollCarouselBy;return(0,De.Z)({scrollCarouselBy:c,direction:Ie.Nm.Left})},right:function right(r){var c=r.scrollCarouselBy;return(0,De.Z)({scrollCarouselBy:c,direction:Ie.Nm.Right})}},text:{style:{color:r.carouselTextColor}}},header:{custom:function custom(){var c,w,k;return Ge({title:r.chatTitle,subtitle:r.chatSubtitle,image:r.chatTitleIcon,cssStyles:{backgroundColor:r.chatThemeColor,iconWidth:r.chatTitleIconWidth,iconHeight:r.chatTitleIconHeight,closeIconHeight:null!==(c=r.chatCloseIconHeight)&&void 0!==c?c:"20px",closeIconwidth:null!==(w=r.chatCloseIconWidth)&&void 0!==w?w:"20px",closeButtonColor:r.chatCloseButtonColor,minimizeButtonColor:r.chatMinimizeButtonColor},titleColor:r.chatTitleTextColor,subtitleColor:r.chatSubtitleTextColor,closeButton:null!==(k=r.chatCloseButton)&&void 0!==k?k:"remove",showEndConversationButton:u,onEndConversation:y,onClose:p,enableEndConversationButton:!1})}},message:{customTypes:[lt.Z,ft.Z,dt.Z,pt.Z],bot:{blobTick:!1,image:r.botIcon||ht,style:{border:"0px",borderRadius:"8px",maxWidth:"70%",background:r.botBackgroundColor,color:r.botTextColor,anchorTextColor:r.botAnchorTextColor,anchorTextColorActive:r.botAnchorTextColorVisited},imageStyle:{margin:"12px 0 8px 10px",width:null!==(k=r.botIconWidth)&&void 0!==k?k:"32px",height:null!==(x=r.botIconHeight)&&void 0!==x?x:"32px",borderRadius:"50%",padding:"0px",background:"url('".concat(r.botIcon||oe,"')"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"}},user:{blobTick:!1,style:{border:"0px",borderRadius:"8px",background:r.userBackgroundColor,color:r.userTextColor,anchorTextColor:r.userAnchorTextColor,anchorTextColorActive:r.userAnchorTextColorVisited,overflowWrap:"break-word","-webkit-hyphens":"auto",hyphens:"auto"}},style:{alignItems:"bottom"===r.botIconVerticalAlign?"flex-end":"flex-start",lineHeight:"20px",fontSize:"13px"},timestamps:{format:function format(){return(new Date).toLocaleTimeString(mt.J,mt.c)},style:{paddingLeft:"58px",color:"rgb(111, 118, 125)",fontFamily:"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif"}}},triggerButton:{custom:function custom(){var c,u;return ut({url:r.chatIcon,cssStyles:{backgroundColor:r.chatThemeColor,hoverBackgroundColor:r.chatHoverThemeColor,imageWidth:null!==(c=r.triggerButtonWidth)&&void 0!==c?c:"35px",imageHeight:null!==(u=r.triggerButtonHeight)&&void 0!==u?u:"35px",positionBottom:r.triggerButtonPositionBottom,positionRight:r.triggerButtonPositionRight}})}},userInput:{style:{borderColor:null!==(E=r.userInputSeparatorColor)&&void 0!==E?E:"#dfdfdf",minHeight:null!==(I=r.userInputHeight)&&void 0!==I?I:"56px"},box:{placeholder:r.chatPlaceholder,style:{fontSize:(0,Oe.g)()?"16px":"14px",marginLeft:"6px"}},sendButton:{custom:ot}},replies:{align:"right"},reply:{custom:function custom(c){var u=c.children;return CustomReply({color:r.replyTextColor,borderColor:r.replyBorderColor,backgroundColor:r.replyBackgroundColor,hoverBackgroundColor:r.replyHoverTextColor,children:u})}},button:{style:{color:r.buttonTextColor,background:r.buttonBackgroundColor,border:"none",borderRadius:"8px",margin:"8px 12px 12px",display:"block",width:"calc(100% - 24px)",height:"32px",padding:"8px 32px",fontSize:"13px"},hoverTextColor:r.buttonTextColor,hoverBackground:r.buttonHoverBackgroundColor},startChatButton:{backgroundColor:r.startChatButtonBackgroundColor,hoverBackgroundColor:r.startChatButtonHoverBackgroundColor,textColor:r.startChatButtonTextColor,hoverTextColor:r.startChatButtonHoverTextColor,borderColor:r.startChatButtonBorderColor,hoverBorderColor:r.startChatButtonHoverBorderColor,startNewChatLabel:r.startChatButtonLabel},initialScreen:{welcomeMessageBackgroundColor:r.welcomeMessageBackgroundColor,welcomeMessageTitleFontSize:r.welcomeMessageTitleFontSize,welcomeMessageTitleFontFamily:r.welcomeMessageTitleFontFamily,welcomeMessageTitleColor:r.welcomeMessageTitleColor,welcomeMessageContentFontSize:r.welcomeMessageContentFontSize,welcomeMessageContentFontFamily:r.welcomeMessageContentFontFamily,welcomeMessageContentColor:r.welcomeMessageContentColor,customMessageFontSize:r.customMessageFontSize,customMessageColor:r.customMessageColor,customMessageFontFamily:r.customMessageFontFamily,customMessageBackgroundColor:r.customMessageBackgroundColor,customMessageNoBubbleFontSize:r.customMessageNoBubbleFontSize,customMessageNoBubbleColor:r.customMessageNoBubbleColor,customMessageNoBubbleFontFamily:r.customMessageNoBubbleFontFamily,customFieldLabelFontSize:r.customFieldLabelFontSize,customFieldLabelFontFamily:r.customFieldLabelFontFamily,customFieldLabelColor:r.customFieldLabelColor,customFieldInputFontSize:r.customFieldInputFontSize,customFieldInputFontFamily:r.customFieldInputFontFamily,customFieldInputColor:r.customFieldInputColor,customFieldInputBackgroundColor:r.customFieldInputBackgroundColor,customFieldInputPlaceholder:r.customFieldInputPlaceholder,customDropdownLabelFontSize:r.customDropdownLabelFontSize,customDropdownLabelFontFamily:r.customDropdownLabelFontFamily,customDropdownLabelColor:r.customDropdownLabelColor,customDropdownInputFontSize:r.customDropdownInputFontSize,customDropdownInputFontFamily:r.customDropdownInputFontFamily,customDropdownInputColor:r.customDropdownInputColor,customDropdownInputBackgroundColor:r.customDropdownInputBackgroundColor,customDropdownInputPlaceholder:r.customDropdownInputPlaceholder,customButtonFontSize:r.customButtonFontSize,customButtonFontFamily:r.customButtonFontFamily,customButtonColor:r.customButtonColor,customButtonBackgroundColor:r.customButtonBackgroundColor,customButtonBorderColor:r.customButtonBorderColor,customButtonHeight:r.customButtonHeight},endConversationScreen:{endedMessageLabel:r.endedChatMessage},confirmEndChat:{dialogBoxEndChat:r.chatDialogBoxEndChat,dialogBoxFontFamily:r.chatDialogBoxFontFamily,dialogBoxFontSize:r.chatDialogBoxFontSize,dialogBoxFontColor:r.chatDialogBoxFontColor,confirmButtonEndChat:r.chatConfirmButtonEndChat,cancelButtonEndChat:r.chatCancelButtonEndChat,dialogBoxIconColor:r.chatDialogBoxIconColor,primaryButton:{backgroundColor:r.chatConfirmButtonBackgroundColor,textColor:r.chatConfirmButtonFontColor,fontSize:r.chatConfirmButtonFontSize,fontFamily:r.chatConfirmButtonFontFamily},defaultButton:{textColor:r.chatCancelButtonFontColor,fontSize:r.chatCancelButtonFontSize,fontFamily:r.chatCancelButtonFontFamily}},chatCloseButtonColor:r.chatCloseButtonColor,chatMinimizeButtonColor:r.chatMinimizeButtonColor});case 3:case"end":return se.stop()}}),_callee)})));return function getTheme(c,u,p,y,w){return r.apply(this,arguments)}}(),bt=function getVirtualAgentConfigurations(r,c){return Promise.resolve({autotriggerDelay:void 0,enableAnimations:!0,enableAttachments:!1,enableEmojiPicker:!0,enableUserInput:!0,persistentMenu:void 0})},_t=function getConfigurations(r){return bt()},wt=__webpack_require__(78797),kt=function(){var r=(0,ve.Z)(Se().mark((function _callee(r,c,u){return Se().wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",(0,wt.tQ)(r,c,u));case 1:case"end":return p.stop()}}),_callee)})));return function getTouchpointConfig(c,u,p){return r.apply(this,arguments)}}(),St=__webpack_require__(30159);function _defineProperties(r,c){for(var u=0;u<c.length;u++){var p=c[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}function defineProperty_defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}function ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?ownKeys(Object(u),!0).forEach((function(c){defineProperty_defineProperty(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var Ct={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0};ie.createContext();!function(){function ReportNamespaces(){!function classCallCheck_classCallCheck(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}(this,ReportNamespaces),this.usedNamespaces={}}(function _createClass(r,c,u){return c&&_defineProperties(r.prototype,c),u&&_defineProperties(r,u),r})(ReportNamespaces,[{key:"addUsedNamespaces",value:function addUsedNamespaces(r){var c=this;r.forEach((function(r){c.usedNamespaces[r]||(c.usedNamespaces[r]=!0)}))}},{key:"getUsedNamespaces",value:function getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}])}();var xt={type:"3rdParty",init:function init(r){!function setDefaults(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ct=_objectSpread(_objectSpread({},Ct),r)}(r.options.react),function setI18n(r){r}(r)}};function esm_classCallCheck_classCallCheck(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}function createClass_defineProperties(r,c){for(var u=0;u<c.length;u++){var p=c[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}var Et=[],Tt=Et.forEach,Ot=Et.slice;function defaults(r){return Tt.call(Ot.call(arguments,1),(function(c){if(c)for(var u in c)void 0===r[u]&&(r[u]=c[u])})),r}var At=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Rt=function serializeCookie(r,c,u){var p=u||{};p.path=p.path||"/";var y=r+"="+encodeURIComponent(c);if(p.maxAge>0){var w=p.maxAge-0;if(isNaN(w))throw new Error("maxAge should be a Number");y+="; Max-Age="+Math.floor(w)}if(p.domain){if(!At.test(p.domain))throw new TypeError("option domain is invalid");y+="; Domain="+p.domain}if(p.path){if(!At.test(p.path))throw new TypeError("option path is invalid");y+="; Path="+p.path}if(p.expires){if("function"!=typeof p.expires.toUTCString)throw new TypeError("option expires is invalid");y+="; Expires="+p.expires.toUTCString()}if(p.httpOnly&&(y+="; HttpOnly"),p.secure&&(y+="; Secure"),p.sameSite)switch("string"==typeof p.sameSite?p.sameSite.toLowerCase():p.sameSite){case!0:y+="; SameSite=Strict";break;case"lax":y+="; SameSite=Lax";break;case"strict":y+="; SameSite=Strict";break;case"none":y+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return y},It=function create(r,c,u,p){var y=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};u&&(y.expires=new Date,y.expires.setTime(y.expires.getTime()+60*u*1e3)),p&&(y.domain=p),document.cookie=Rt(r,encodeURIComponent(c),y)},Dt=function read(r){for(var c=r+"=",u=document.cookie.split(";"),p=0;p<u.length;p++){for(var y=u[p];" "===y.charAt(0);)y=y.substring(1,y.length);if(0===y.indexOf(c))return y.substring(c.length,y.length)}return null},Pt={name:"cookie",lookup:function lookup(r){var c;if(r.lookupCookie&&"undefined"!=typeof document){var u=Dt(r.lookupCookie);u&&(c=u)}return c},cacheUserLanguage:function cacheUserLanguage(r,c){c.lookupCookie&&"undefined"!=typeof document&&It(c.lookupCookie,r,c.cookieMinutes,c.cookieDomain,c.cookieOptions)}},Lt={name:"querystring",lookup:function lookup(r){var c;if("undefined"!=typeof window)for(var u=window.location.search.substring(1).split("&"),p=0;p<u.length;p++){var y=u[p].indexOf("=");if(y>0)u[p].substring(0,y)===r.lookupQuerystring&&(c=u[p].substring(y+1))}return c}},Mt=null,jt=function localStorageAvailable(){if(null!==Mt)return Mt;try{Mt="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(r){Mt=!1}return Mt},Nt={name:"localStorage",lookup:function lookup(r){var c;if(r.lookupLocalStorage&&jt()){var u=window.localStorage.getItem(r.lookupLocalStorage);u&&(c=u)}return c},cacheUserLanguage:function cacheUserLanguage(r,c){c.lookupLocalStorage&&jt()&&window.localStorage.setItem(c.lookupLocalStorage,r)}},qt=null,Bt=function sessionStorageAvailable(){if(null!==qt)return qt;try{qt="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(r){qt=!1}return qt},Ft={name:"sessionStorage",lookup:function lookup(r){var c;if(r.lookupSessionStorage&&Bt()){var u=window.sessionStorage.getItem(r.lookupSessionStorage);u&&(c=u)}return c},cacheUserLanguage:function cacheUserLanguage(r,c){c.lookupSessionStorage&&Bt()&&window.sessionStorage.setItem(c.lookupSessionStorage,r)}},Ut={name:"navigator",lookup:function lookup(r){var c=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var u=0;u<navigator.languages.length;u++)c.push(navigator.languages[u]);navigator.userLanguage&&c.push(navigator.userLanguage),navigator.language&&c.push(navigator.language)}return c.length>0?c:void 0}},zt={name:"htmlTag",lookup:function lookup(r){var c,u=r.htmlTag||("undefined"!=typeof document?document.documentElement:null);return u&&"function"==typeof u.getAttribute&&(c=u.getAttribute("lang")),c}},Ht={name:"path",lookup:function lookup(r){var c;if("undefined"!=typeof window){var u=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(u instanceof Array)if("number"==typeof r.lookupFromPathIndex){if("string"!=typeof u[r.lookupFromPathIndex])return;c=u[r.lookupFromPathIndex].replace("/","")}else c=u[0].replace("/","")}return c}},$t={name:"subdomain",lookup:function lookup(r){var c;if("undefined"!=typeof window){var u=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);u instanceof Array&&(c="number"==typeof r.lookupFromSubdomainIndex?u[r.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):u[0].replace("http://","").replace("https://","").replace(".",""))}return c}};var Vt=function(){function Browser(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};esm_classCallCheck_classCallCheck(this,Browser),this.type="languageDetector",this.detectors={},this.init(r,c)}return function createClass_createClass(r,c,u){return c&&createClass_defineProperties(r.prototype,c),u&&createClass_defineProperties(r,u),r}(Browser,[{key:"init",value:function init(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=r,this.options=defaults(c,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=u,this.addDetector(Pt),this.addDetector(Lt),this.addDetector(Nt),this.addDetector(Ft),this.addDetector(Ut),this.addDetector(zt),this.addDetector(Ht),this.addDetector($t)}},{key:"addDetector",value:function addDetector(r){this.detectors[r.name]=r}},{key:"detect",value:function detect(r){var c=this;r||(r=this.options.order);var u=[];return r.forEach((function(r){if(c.detectors[r]){var p=c.detectors[r].lookup(c.options);p&&"string"==typeof p&&(p=[p]),p&&(u=u.concat(p))}})),this.services.languageUtils.getBestMatchFromCodes?u:u.length>0?u[0]:null}},{key:"cacheUserLanguage",value:function cacheUserLanguage(r,c){var u=this;c||(c=this.options.caches),c&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||c.forEach((function(c){u.detectors[c]&&u.detectors[c].cacheUserLanguage(r,u.options)})))}}]),Browser}();Vt.type="languageDetector";const Zt=Vt;function _typeof(r){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var Wt=[],Gt=Wt.forEach,Kt=Wt.slice;function utils_defaults(r){return Gt.call(Kt.call(arguments,1),(function(c){if(c)for(var u in c)void 0===r[u]&&(r[u]=c[u])})),r}function hasXMLHttpRequest(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":_typeof(XMLHttpRequest))}var Jt,Yt,Xt,Qt=__webpack_require__(54579),er=__webpack_require__.t(Qt,2);function request_typeof(r){return(request_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?Jt=global.fetch:"undefined"!=typeof window&&window.fetch&&(Jt=window.fetch)),hasXMLHttpRequest&&("undefined"!=typeof global&&global.XMLHttpRequest?Yt=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(Yt=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?Xt=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(Xt=window.ActiveXObject)),Jt||!er||Yt||Xt||(Jt=Qt||er),"function"!=typeof Jt&&(Jt=void 0);var tr=function addQueryString(r,c){if(c&&"object"===request_typeof(c)){var u="";for(var p in c)u+="&"+encodeURIComponent(p)+"="+encodeURIComponent(c[p]);if(!u)return r;r=r+(-1!==r.indexOf("?")?"&":"?")+u.slice(1)}return r};const rr=function request(r,c,u,p){return"function"==typeof u&&(p=u,u=void 0),p=p||function(){},Jt?function requestWithFetch(r,c,u,p){r.queryStringParams&&(c=tr(c,r.queryStringParams));var y=utils_defaults({},"function"==typeof r.customHeaders?r.customHeaders():r.customHeaders);u&&(y["Content-Type"]="application/json"),Jt(c,utils_defaults({method:u?"POST":"GET",body:u?r.stringify(u):void 0,headers:y},"function"==typeof r.requestOptions?r.requestOptions(u):r.requestOptions)).then((function(r){if(!r.ok)return p(r.statusText||"Error",{status:r.status});r.text().then((function(c){p(null,{status:r.status,data:c})})).catch(p)})).catch(p)}(r,c,u,p):hasXMLHttpRequest||"function"==typeof ActiveXObject?function requestWithXmlHttpRequest(r,c,u,p){u&&"object"===request_typeof(u)&&(u=tr("",u).slice(1)),r.queryStringParams&&(c=tr(c,r.queryStringParams));try{var y;(y=Yt?new Yt:new Xt("MSXML2.XMLHTTP.3.0")).open(u?"POST":"GET",c,1),r.crossDomain||y.setRequestHeader("X-Requested-With","XMLHttpRequest"),y.withCredentials=!!r.withCredentials,u&&y.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),y.overrideMimeType&&y.overrideMimeType("application/json");var w=r.customHeaders;if(w="function"==typeof w?w():w)for(var k in w)y.setRequestHeader(k,w[k]);y.onreadystatechange=function(){y.readyState>3&&p(y.status>=400?y.statusText:null,{status:y.status,data:y.responseText})},y.send(u)}catch(r){console&&console.log(r)}}(r,c,u,p):void 0};function esm_classCallCheck(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}function esm_defineProperties(r,c){for(var u=0;u<c.length;u++){var p=c[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}var nr=function getDefaults(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function parse(r){return JSON.parse(r)},stringify:JSON.stringify,parsePayload:function parsePayload(r,c,u){return function esm_defineProperty(r,c,u){return c in r?Object.defineProperty(r,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[c]=u,r}({},c,u||"")},request:rr,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},ir=function(){function Backend(r){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};esm_classCallCheck(this,Backend),this.services=r,this.options=c,this.allOptions=u,this.type="backend",this.init(r,c,u)}return function esm_createClass(r,c,u){return c&&esm_defineProperties(r.prototype,c),u&&esm_defineProperties(r,u),r}(Backend,[{key:"init",value:function init(r){var c=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=r,this.options=utils_defaults(u,this.options||{},nr()),this.allOptions=p,this.services&&this.options.reloadInterval&&setInterval((function(){return c.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function readMulti(r,c,u){this._readAny(r,r,c,c,u)}},{key:"read",value:function read(r,c,u){this._readAny([r],r,[c],c,u)}},{key:"_readAny",value:function _readAny(r,c,u,p,y){var w=this,k=this.options.loadPath;"function"==typeof this.options.loadPath&&(k=this.options.loadPath(r,u)),(k=function makePromise(r){return function isPromise(r){return!!r&&"function"==typeof r.then}(r)?r:Promise.resolve(r)}(k)).then((function(k){var x=w.services.interpolator.interpolate(k,{lng:r.join("+"),ns:u.join("+")});w.loadUrl(x,y,c,p)}))}},{key:"loadUrl",value:function loadUrl(r,c,u,p){var y=this;this.options.request(this.options,r,void 0,(function(w,k){if(k&&(k.status>=500&&k.status<600||!k.status))return c("failed loading "+r+"; status code: "+k.status,!0);if(k&&k.status>=400&&k.status<500)return c("failed loading "+r+"; status code: "+k.status,!1);if(!k&&w&&w.message&&w.message.indexOf("Failed to fetch")>-1)return c("failed loading "+r+": "+w.message,!0);if(w)return c(w,!1);var x,E;try{x="string"==typeof k.data?y.options.parse(k.data,u,p):k.data}catch(c){E="failed parsing "+r+" to json"}if(E)return c(E,!1);c(null,x)}))}},{key:"create",value:function create(r,c,u,p,y){var w=this;if(this.options.addPath){"string"==typeof r&&(r=[r]);var k=this.options.parsePayload(c,u,p),x=0,E=[],I=[];r.forEach((function(u){var p=w.options.addPath;"function"==typeof w.options.addPath&&(p=w.options.addPath(u,c));var K=w.services.interpolator.interpolate(p,{lng:u,ns:c});w.options.request(w.options,K,k,(function(c,u){x+=1,E.push(c),I.push(u),x===r.length&&y&&y(E,I)}))}))}}},{key:"reload",value:function reload(){var r=this,c=this.services,u=c.backendConnector,p=c.languageUtils,y=c.logger,w=u.language;if(!w||"cimode"!==w.toLowerCase()){var k=[],x=function append(r){p.toResolveHierarchy(r).forEach((function(r){k.indexOf(r)<0&&k.push(r)}))};x(w),this.allOptions.preload&&this.allOptions.preload.forEach((function(r){return x(r)})),k.forEach((function(c){r.allOptions.ns.forEach((function(r){u.read(c,r,"read",null,null,(function(p,w){p&&y.warn("loading namespace ".concat(r," for language ").concat(c," failed"),p),!p&&w&&y.log("loaded namespace ".concat(r," for language ").concat(c),w),u.loaded("".concat(c,"|").concat(r),p,w)}))}))}))}}}]),Backend}();ir.type="backend";const or=ir,sr=(0,ve.Z)(Se().mark((function _callee(){return Se().wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Pe.Z.use(Zt).use(xt).use(or).init({fallbackLng:"en-US",supportedLngs:["en-US","pt-PT"],load:"currentOnly",backend:{loadPath:"".concat("https://talkdeskchatsdk.talkdeskapp.com/locales","/{{lng}}/translation.json")}});case 2:case"end":return r.stop()}}),_callee)})));var ar,cr=__webpack_require__(77360),ur=__webpack_require__(68816),lr=__webpack_require__(15739),dr=(ar={},(0,Xe.Z)(ar,gt.VirtualAgent,ur),(0,Xe.Z)(ar,gt.Livechat,lr),ar),pr=function(){var r=(0,ve.Z)(Se().mark((function _callee(r,c){return Se().wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",__webpack_require__(89818)("./".concat(r,".json")).then((function(r){return r.default})).catch((function(){return dr[c]})));case 1:case"end":return u.stop()}}),_callee)})));return function readFile(c,u){return r.apply(this,arguments)}}(),fr=function(){var r=(0,ve.Z)(Se().mark((function _callee2(r,c,u){var p,y;return Se().wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return p="".concat(c).concat(u),w.next=3,pr(p,r);case 3:return y=w.sent,w.abrupt("return",y);case 5:case"end":return w.stop()}}),_callee2)})));return function getThemeProps(c,u,p){return r.apply(this,arguments)}}(),gr=__webpack_require__(6610),mr=__webpack_require__(5991),yr=__webpack_require__(82234);const vr=function(){function Notifications(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255, 255, 255)",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 100, 89)";(0,gr.Z)(this,Notifications),(0,Xe.Z)(this,"color",void 0),(0,Xe.Z)(this,"backgroundColor",void 0),(0,Xe.Z)(this,"counter",void 0),this.color=r,this.backgroundColor=c,this.counter=0}return(0,mr.Z)(Notifications,[{key:"incrementCounterAndRender",value:function incrementCounterAndRender(){this.counter+=1,this.render()}},{key:"resetCounterAndUnmount",value:function resetCounterAndUnmount(){this.counter=0,this.unmount()}},{key:"render",value:function render(){if(!this.isWidgetOpen()&&0!==this.counter)if(this.isRendered())document.getElementById("notificationsBubble").innerText=String(this.counter);else{var r=(0,yr.OH)(),c=document.createElement("p");c.classList.add("notifications-bubble"),c.id="notificationsBubble",c.style.color=this.color,c.style.backgroundColor=this.backgroundColor,c.innerText=String(this.counter),this.addStoreEventListener(),r.appendChild(c)}}},{key:"unmount",value:function unmount(){this.isRendered()&&document.getElementById("notificationsBubble").remove()}},{key:"isRendered",value:function isRendered(){return!!document.getElementById("notificationsBubble")}},{key:"addTriggerButtonEventListener",value:function addTriggerButtonEventListener(){var r=this,c=(0,yr.OH)();c&&c.addEventListener("click",(function(){r.resetCounterAndUnmount();var c=localStorage.getItem("lastMessageIndex");localStorage.setItem("clearNotifications","true"),localStorage.removeItem("clearNotifications"),localStorage.setItem("lastReadMessageIndex",c)}))}},{key:"addTextareaEventListener",value:function addTextareaEventListener(){var r=this,c=(0,yr.is)();c&&c.addEventListener("focus",(function(){r.counter=0;var c=localStorage.getItem("lastMessageIndex");localStorage.setItem("clearNotifications","true"),localStorage.removeItem("clearNotifications"),localStorage.setItem("lastReadMessageIndex",c)}))}},{key:"addStoreEventListener",value:function addStoreEventListener(){var r=this;window.addEventListener("storage",(function(c){if(c.storageArea===localStorage&&"clearNotifications"===c.key&&"true"===c.newValue){r.resetCounterAndUnmount();var u=localStorage.getItem("lastMessageIndex");localStorage.setItem("lastReadMessageIndex",u)}}))}},{key:"handleNewMessage",value:function handleNewMessage(r){if(localStorage.setItem("lastMessageIndex",String(r)),!(0,yr.OH)())return localStorage.setItem("clearNotifications","true"),localStorage.removeItem("clearNotifications"),void localStorage.setItem("lastReadMessageIndex",String(r));r<=Number(localStorage.getItem("lastReadMessageIndex"))||(this.counter,this.incrementCounterAndRender())}},{key:"isWidgetOpen",value:function isWidgetOpen(){return!(0,yr.OH)()}}]),Notifications}();var br,_r=__webpack_require__(55877),wr=function clearSession(r){var c=r.sessionTimeoutMessage,u=r.selfHostedApp;u&&((0,k.dP)(),u.updateUser({id:(0,_r.v4)()}),c&&u.addBotMessage(function createCustomMessage(r){return{data:r,type:"text",id:(0,_r.v4)()}}(c)))},kr=function setNewTimeout(r,c){br=setTimeout((function(){wr(c)}),r)},Sr={appId:void 0,blockInputs:void 0,coverComponent:void 0,defaultDelay:0,enableAnimations:void 0,enableAttachments:void 0,enableEmojiPicker:void 0,enableUserInput:void 0,defaultTyping:0,getString:void 0,hostId:void 0,onClose:void 0,onInit:void 0,onMessage:void 0,onOpen:void 0,persistentMenu:void 0,shadowDOM:void 0,storage:localStorage,storageKey:y.Z.WEBCHAT_STATE,theme:void 0,visibility:!0,onConversationStart:void 0},Cr=[{path:"DEFAULT",text:/.*/,action:__webpack_require__(38086).Z}];function TalkdeskChatSDK_ownKeys(r,c){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);c&&(p=p.filter((function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable}))),u.push.apply(u,p)}return u}function TalkdeskChatSDK_objectSpread(r){for(var c=1;c<arguments.length;c++){var u=null!=arguments[c]?arguments[c]:{};c%2?TalkdeskChatSDK_ownKeys(Object(u),!0).forEach((function(c){_defineProperty(r,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):TalkdeskChatSDK_ownKeys(Object(u)).forEach((function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(u,c))}))}return r}var xr=function initSession(r){var c=r.isLiveChat,u=r.sessionTimeoutMinutes,p=y.Z.WEBCHAT_LAST_MESSAGE_KEY,w=y.Z.WEBCHAT_SESSION_UPDATE_MINUTES_INTERVAL;if((0,k.bM)(p)&&!c){var x=(0,k.eb)(u);kr(x,r)}(0,k.Xe)()&&((0,k.dX)(),(0,k.V3)()),(0,k.M8)(),setInterval((function(){(0,k.M8)()}),1e3*w*60)},Er=function TalkdeskChatSDK(r,w){var J=this,ie=w.flowId,oe=w.accountId,se=w.region,ae=void 0===se?Ie.yp.USA:se,ue=w.languageCode,le=void 0===ue?y.Z.DEFAULT_LANGUAGE_CODE:ue,de=w.shadowDOM,pe=void 0===de||de,he=w.onOpen,ve=w.onClose;!function _classCallCheck(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}(this,TalkdeskChatSDK),_defineProperty(this,"injector",void 0),_defineProperty(this,"flowId",void 0),_defineProperty(this,"accountId",void 0),_defineProperty(this,"shadowDOM",void 0),_defineProperty(this,"engagement",void 0),_defineProperty(this,"notifications",void 0),_defineProperty(this,"region",void 0),_defineProperty(this,"languageCode",void 0),_defineProperty(this,"theming",void 0),_defineProperty(this,"onOpen",void 0),_defineProperty(this,"onClose",void 0),_defineProperty(this,"onConversationStart",void 0),_defineProperty(this,"sessionTimeoutMinutes",void 0),_defineProperty(this,"sessionTimeoutMessage",void 0),_defineProperty(this,"isLiveChat",void 0),_defineProperty(this,"selfHostedApp",void 0),_defineProperty(this,"init",function(){var r=_asyncToGenerator(c().mark((function _callee(r){var u,p,w,k,x,E,K,ie,oe,se,ae,ue,le,de,pe,he,ve,we,Se,Oe,Ie,De,Pe;return c().wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:if(!J.checkFromUA()){c.next=2;break}return c.abrupt("return");case 2:return k=(w=null!=r?r:{}).enableEmojiPicker,x=void 0===k||k,E=w.enableUserInput,K=void 0===E||E,ie=w.sessionTimeoutMinutes,oe=void 0===ie?void 0:ie,se=w.sessionTimeoutMessage,ae=void 0===se?void 0:se,ue=w.engagement,le=void 0===ue?y.Z.WEBCHAT_ENGAGEMENT_TEXT:ue,de=w.styles,J.engagement=le,J.sessionTimeoutMinutes=oe||Number("15"),J.sessionTimeoutMessage=ae,pe=I.map((function(r){return r.id===y.Z.CONVERSATION_ENGINE_CONNECTOR?TalkdeskChatSDK_objectSpread(TalkdeskChatSDK_objectSpread({},r),{},{options:{tokenId:"".concat(J.accountId,":").concat(J.flowId),region:J.region,languageCode:J.languageCode}}):r})),c.next=9,Promise.all([_t(J.flowId,J.isLiveChat),kt(J.flowId,J.isLiveChat,J.region),sr()]);case 9:return he=c.sent,ve=_slicedToArray(he,2),we=ve[0],Se=ve[1],Oe=null==Se||null===(u=Se.config)||void 0===u||null===(p=u.generalSettings)||void 0===p?void 0:p.showCloseConversationButton,Ie=""===J.accountId?gt.Livechat:gt.VirtualAgent,c.t0=Object,c.next=18,fr(Ie,J.flowId,J.accountId);case 18:return c.t1=c.sent,c.t2=de,J.theming=c.t0.assign.call(c.t0,c.t1,c.t2),c.next=23,vt(J.theming,Ie,Oe,(function(){return J.selfHostedApp.close()}),(function(){J.selfHostedApp.updateWebchatSettings({theme:TalkdeskChatSDK_objectSpread(TalkdeskChatSDK_objectSpread({},J.selfHostedApp.theme),{},{coverComponent:{component:ge,props:{iconType:"end_chat",handleConfirm:function handleConfirm(){J.handleEndChat()},dialogTitle:J.theming.chatDialogBoxEndChat,dialogConfirmButtonText:J.theming.chatConfirmButtonEndChat,dialogCancelButtonText:J.theming.chatCancelButtonEndChat}}})}),J.selfHostedApp.openCoverComponent()}));case 23:if(De=c.sent,!Se||Se.active){c.next=26;break}return c.abrupt("return");case 26:return c.prev=26,c.next=29,Promise.all([__webpack_require__.e(793),__webpack_require__.e(369)]).then(__webpack_require__.bind(__webpack_require__,63369));case 29:Pe=c.sent.default,J.selfHostedApp=new Pe(TalkdeskChatSDK_objectSpread(TalkdeskChatSDK_objectSpread(TalkdeskChatSDK_objectSpread({},Sr),{},{onInit:function onInit(){return J.onInitWebchat()},onOpen:function onOpen(){return J.onOpenWebchat()},onClose:function onClose(){return J.onCloseWebchat()},onConversationStartWebchat:function onConversationStartWebchat(){return J.onConversationStartWebchat()},touchPointConfig:null==Se?void 0:Se.config,onMessage:J.onMessage,routes:Cr,plugins:pe},we),{},{theme:De,appId:J.flowId,livechat:J.isLiveChat,notifications:J.notifications,enableEmojiPicker:x,enableUserInput:K,region:J.region,shadowDOM:J.shadowDOM,enableAttachments:!(null==Se||!Se.enableAttachments)})),c.next=36;break;case 33:c.prev=33,c.t3=c.catch(26),console.error("load self hosted app failed",c.t3);case 36:xr(J),J.selfHostedApp.render(J.injector);case 38:case"end":return c.stop()}}),_callee,null,[[26,33]])})));return function(c){return r.apply(this,arguments)}}()),_defineProperty(this,"onMessage",(function(r,c){var u=c.from;u!==y.Z.WEBCHAT_MSG_FROM_USER||J.isLiveChat||function updateUserSession(r){br&&clearTimeout(br),kr(6e4*r.sessionTimeoutMinutes,r),(0,k.$P)()}(J),J.selfHostedApp.setTyping(u===y.Z.WEBCHAT_MSG_FROM_USER)})),_defineProperty(this,"onInitWebchat",(function(){(0,k.bM)(y.Z.WEBCHAT_IS_CHAT_OPEN_KEY)&&(J.selfHostedApp.open(),(0,St.KO)()&&(0,St.Ij)(!0)),J.isLiveChat&&(0,k.bM)(y.Z.LIVECHAT_CONVERSATION_ENDED)&&(J.selfHostedApp.updateWebchatSettings({theme:TalkdeskChatSDK_objectSpread(TalkdeskChatSDK_objectSpread({},J.selfHostedApp.theme),{},{coverComponent:K.Z})}),J.selfHostedApp.openCoverComponent())})),_defineProperty(this,"setUserInputEnabled",(function(r){J.selfHostedApp.setUserInput(r)})),_defineProperty(this,"onOpenWebchat",(function(){J.onOpen&&"function"==typeof J.onOpen&&J.onOpen(),J.notifications.addTextareaEventListener(),(0,k.Ly)(y.Z.WEBCHAT_IS_CHAT_OPEN_KEY,!0),(0,k.bM)(y.Z.WEBCHAT_WAS_CHAT_OPENED)||((0,k.Ly)(y.Z.WEBCHAT_WAS_CHAT_OPENED,!0),J.isLiveChat||J.selfHostedApp.addUserMessage(function createCustomUserPayload(r){return{data:r,type:"postback"}}(J.engagement)))})),_defineProperty(this,"onCloseWebchat",(function(){J.onClose&&"function"==typeof J.onClose&&J.onClose(),J.notifications.render(),J.notifications.addTriggerButtonEventListener(),(0,k.Ly)(y.Z.WEBCHAT_IS_CHAT_OPEN_KEY,!1)})),_defineProperty(this,"onConversationStartWebchat",(function(){J.onConversationStart&&"function"==typeof J.onConversationStart&&J.onConversationStart()})),_defineProperty(this,"getAuthToken",_asyncToGenerator(c().mark((function _callee2(){var r,w,x,E,I;return c().wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:return x=JSON.parse(localStorage.getItem(y.Z.WEBCHAT_STATE)),E=null==x||null===(r=x.session)||void 0===r||null===(w=r.user)||void 0===w?void 0:w.id,c.next=4,(0,u.h)("".concat(J.accountId,":").concat(J.flowId),E,J.region);case 4:return I=c.sent,(0,k.Ly)(y.Z.WEBCHAT_TOKEN_KEY,TalkdeskChatSDK_objectSpread(TalkdeskChatSDK_objectSpread({},I),{},{expiresAt:(0,p.Vo)(I.expiresAt)})),c.abrupt("return",I);case 7:case"end":return c.stop()}}),_callee2)})))),_defineProperty(this,"getToken",_asyncToGenerator(c().mark((function _callee3(){var r;return c().wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:if(r=(0,k.bM)(y.Z.WEBCHAT_TOKEN_KEY),(0,u.D)(r)){c.next=5;break}return c.next=4,J.getAuthToken();case 4:r=c.sent;case 5:return c.abrupt("return",r);case 6:case"end":return c.stop()}}),_callee3)})))),_defineProperty(this,"resetSession",(function(){wr(J)})),_defineProperty(this,"clearLocalStorage",(function(){(0,k.DL)()})),_defineProperty(this,"setContextParam",function(){var r=_asyncToGenerator(c().mark((function _callee4(r,u,p,y){var w,k;return c().wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:if(J.isLiveChat){c.next=9;break}return c.next=3,J.getToken();case 3:return w=c.sent,k=(0,x.L)(w),c.next=7,(0,E.Y)(y,w,{name:r,properties:TalkdeskChatSDK_objectSpread(TalkdeskChatSDK_objectSpread({},k),u),lifeSpan:p},J.region);case 7:c.next=10;break;case 9:St.Do.setCustomContext(r);case 10:case"end":return c.stop()}}),_callee4)})));return function(c,u,p,y){return r.apply(this,arguments)}}()),_defineProperty(this,"setCustomFieldDefaultValues",(function(r){console.warn('The "setCustomFieldDefaultValues" method will be deprecated, please use "setContextParam"'),St.Do.setInitialScreenContextByCustomDefault(r)})),_defineProperty(this,"checkFromUA",(function(){var r,c=(null===(r=window.navigator)||void 0===r?void 0:r.userAgent)||"";return/googlebot/gi.test(c)})),_defineProperty(this,"handleEndChat",(function(){(0,cr.IO)().catch((function(){J.selfHostedApp.updateWebchatSettings({theme:TalkdeskChatSDK_objectSpread(TalkdeskChatSDK_objectSpread({},J.selfHostedApp.theme),{},{coverComponent:{component:ge,props:{iconType:"warning",handleConfirm:function handleConfirm(){J.handleEndChat()},dialogTitle:J.theming.chatDialogBoxRetryEndChat,dialogConfirmButtonText:J.theming.chatConfirmButtonRetryEndChat,dialogCancelButtonText:J.theming.chatCancelButtonRetryEndChat}}})}),J.selfHostedApp.openCoverComponent()}))})),this.injector=r,this.flowId=ie,this.accountId=oe,this.isLiveChat=!oe,this.region=ae,this.languageCode=le,this.notifications=new vr,this.notifications.render(),this.shadowDOM=pe,this.onOpen=he,this.onClose=ve},Tr=function app(r,c){return new Er(document.getElementById(r),c)}})(),window.TalkdeskChatSDK=w.app})();