!function(){"use strict";function N(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1;o=t.__.length&&t.__.push({}),t.__[e]}function Ot(e){return Ct=1,t=Rt,e=e,(r=kt(_t++,2)).t=t,r.__c||(r.__=[n?n(e):Rt(void 0,e),function(e){e=r.t(r.__[0],e);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=gt),r.__;var t,n,r}function It(e,t){var n=kt(_t++,3);!w.__s&&Pt(n.__H,t)&&(n.__=e,n.__H=t,gt.__H.__h.push(n))}function Bt(e,t){var n=kt(_t++,7);return Pt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Lt(){Tt.some(function(t){if(t.__P)try{t.__H.__h.forEach(Dt),t.__H.__h.forEach(Nt),t.__H.__h=[]}catch(e){return t.__H.__h=[],w.__e(e,t.__v),!0}}),Tt=[]}w.__r=function(e){Et&&Et(e),_t=0;e=(gt=e.__c).__H;e&&(e.__h.forEach(Dt),e.__h.forEach(Nt),e.__h=[])},w.diffed=function(e){At&&At(e);e=e.__c;e&&e.__H&&e.__H.__h.length&&(1!==Tt.push(e)&&vt===w.requestAnimationFrame||((vt=w.requestAnimationFrame)||function(e){function t(){clearTimeout(r),jt&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);jt&&(n=requestAnimationFrame(t))})(Lt))},w.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Dt),t.__h=t.__h.filter(function(e){return!e.__||Nt(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],w.__e(e,t.__v)}}),St&&St(e,n)},w.unmount=function(e){Mt&&Mt(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Dt)}catch(e){w.__e(e,t.__v)}};var jt="function"==typeof requestAnimationFrame;function Dt(e){"function"==typeof e.u&&e.u()}function Nt(e){e.u=e.__()}function Pt(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Rt(e,t){return"function"==typeof t?t(e):t}function c(e,t){var n,r,t=(t=void 0===t?{}:t).insertAt;e&&"undefined"!=typeof document&&(n=document.head||document.getElementsByTagName("head")[0],(r=document.createElement("style")).type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)))}c("/* http://meyerweb.com/eric/tools/css/reset/\n v5.0.1 | 20191019\n License: none (public domain)\n*/\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, menu, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmain, menu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, main, menu, nav, section {\n\tdisplay: block;\n}\n/* HTML5 hidden-attribute fix for newer browsers */\n*[hidden] {\n display: none;\n}\nbody {\n\tline-height: 1;\n}\nmenu, ol, ul {\n\tlist-style: none;\n}\nblockquote, q {\n\tquotes: none;\n}\nblockquote:before, blockquote:after,\nq:before, q:after {\n\tcontent: '';\n\tcontent: none;\n}\ntable {\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}\n"),c("@font-face {\n font-family: 'Roboto';\n src: url('/fonts/Roboto-Regular.woff2');\n src: url('/fonts/Roboto-Regular.woff2') format('woff2'),\n url('/fonts/Roboto-Regular.woff') format('woff'),\n url('/fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'Roboto';\n src: url('/fonts/Roboto-Medium.woff2');\n src: url('/fonts/Roboto-Medium.woff2') format('woff2'), url('/fonts/Roboto-Medium.woff') format('woff'),\n url('/fonts/Roboto-Medium.eot?#iefix') format('embedded-opentype');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n}\n");function Ut(){return Ht.promo}c("html, body {\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n}\n\nbody * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n outline: none;\n}\n\ninput, textarea {\n -webkit-user-select: initial;\n -moz-user-select: initial;\n -ms-user-select: initial;\n user-select: initial;\n font-style: normal;\n font-family: Roboto, Helvetica, Arial, sans-serif;\n}\n\nbody {\n font-family: Roboto, Helvetica, Arial, sans-serif;\n font-style: normal;\n color: #313942;\n}\n\nbutton:active {\n transform: translateY(1px);\n}\n\n#app {\n display: flex;\n flex-direction: column;\n height: 100%;\n}");var Ht={gso:"",forms:"",button:"",promo:""};var Ft=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var zt=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i>>0,t>>>=0,Array(o));++r>>0)?(e=yo(e))&&("string"==typeof t||null!=t&&!Wo(t))&&!(t=mo(t))&&zo(e)?Ho($o(e),0,n):e.split(t,n):[]};var Jo=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=t<=e?e:t)),e};var ei=function(e,t,n){return e=yo(e),n=null==n?0:Jo(Re(n),0,e.length),t=mo(t),e.slice(n,n+t.length)==t};var ti=function(e){return yo(e).toUpperCase()};var ni=function(e,t){for(var n=e.length;n--&&-1>16,(65280&e)>>8,255&e]}),Ui=function(e){if("transparent"===e)return!1;e=Ri(e);return(299*e[0]+587*e[1]+114*e[2])/255e3<.6},Hi=wt(["device","manager"])(function(e){var t=e.device,n=e.manager,r=e.theme,e=e.canDefaultCloseButtonBeVisible;return b(Ni,{manager:n,theme:r,canDefaultCloseButtonBeVisible:e||"mobile"===t})}),Fi=K(function(e){function t(e){if(!e)throw new Error("missing options");if(!e.handler)throw new Error("missing handler parameter");this.scrollElement=e.scrollElement||window,this.conditions=e.conditions||{},this.handler=e.handler,this.values={},this.tracked={},this.success=!1,this.throttleVal=e.throttle||100,this.processing=!1,this.stopped=!1,this._parse(),"pageYOffset"in this.scrollElement?(this._addBottom(),this._addTop()):(this._addBottomEl(),this._addTopEl(),this._addScrollLeft()),this._addWidth(),this._onScroll()}t.prototype.addCondition=function(e,t){this.conditions[e]=t,this._parse()},t.prototype.removeCondition=function(e){delete this.conditions[e],this._parse()},t.prototype.addTracker=function(e,t){this.tracked[e]={cb:t,name:e}},t.prototype._addBottom=function(){this.addTracker("bottom",function(e){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)-(e.pageYOffset+e.innerHeight)})},t.prototype._addTop=function(){this.addTracker("top",function(e){return e.pageYOffset})},t.prototype._addBottomEl=function(){this.addTracker("bottom",function(e){return Math.max(e.scrollHeight,e.offsetHeight)-(e.scrollTop+e.offsetHeight)})},t.prototype._addTopEl=function(){this.addTracker("top",function(e){return e.scrollTop})},t.prototype._addScrollLeft=function(){this.addTracker("scrollLeft",function(e){return e.scrollLeft})},t.prototype._addWidth=function(){this.addTracker("width",function(e){return e.innerWidth})},t.prototype._parse=function(){for(var e in this._parsed={},this._wantedTrackers=[],this._parsedMax={},this._parsedMin={},this.conditions)if(this.conditions.hasOwnProperty(e))switch(e.substr(0,4)){case"min-":this._wantedTrackers.push(e.substr(4,e.length)),this._parsedMin[e.substr(4,e.length)]=this.conditions[e];break;case"max-":this._wantedTrackers.push(e.substr(4,e.length)),this._parsedMax[e.substr(4,e.length)]=this.conditions[e];break;default:this._wantedTrackers.push(e),this._parsed[e]=this.conditions[e]}},t.prototype._check=function(){var e,t,n=[];for(e in this.values)this._parsed.hasOwnProperty(e)&&n.push(this._parsed[e]==this.values[e]),this._parsedMin.hasOwnProperty(e)&&n.push(this._parsedMin[e]<=this.values[e]),this._parsedMax.hasOwnProperty(e)&&n.push(this._parsedMax[e]>=this.values[e]);n.length&&-1==n.indexOf(!1)&&(this.processing=!0,t=this._done.bind(this),window.requestAnimationFrame(this.handler.bind(this,this.values,t)))},t.prototype._done=function(){this.processing=!1},t.prototype._onScroll=function(){this._onScrollHandler=this._throttledHandler(),this.scrollElement.addEventListener("scroll",this._onScrollHandler,!1)},t.prototype._throttledHandler=function(){var n=this;return this.throttle(function(e){if(n._wantedTrackers.length&&!n.processing){for(var t=0;t":">",'"':""","'":"'"}),Vi=/[&<>"']/g,Wi=RegExp(Vi.source);var Gi=function(e){return(e=yo(e))&&Wi.test(e)?e.replace(Vi,zi):e};var qi=function(e,t){return no(e,t)};function E(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function A(e){if(null===e||!0===e||!1===e)return NaN;e=Number(e);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var Xi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Yi(t){return function(e){e=e||{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var h={date:Yi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Yi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Yi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ki(o){return function(e,t){var n,t=t||{},r=(t="formatting"===(t.context?String(t.context):"standalone")&&o.formattingValues?(r=o.defaultFormattingWidth||o.defaultWidth,n=t.width?String(t.width):r,o.formattingValues[n]||o.formattingValues[r]):(n=o.defaultWidth,r=t.width?String(t.width):o.defaultWidth,o.values[r]||o.values[n]),o.argumentCallback?o.argumentCallback(e):e);return t[r]}}function $i(o){return function(e,t){var n=String(e),e=t||{},t=e.width,r=t&&o.matchPatterns[t]||o.matchPatterns[o.defaultMatchWidth],r=n.match(r);if(!r)return null;r=r[0],t=t&&o.parsePatterns[t]||o.parsePatterns[o.defaultParseWidth],t="[object Array]"===Object.prototype.toString.call(t)?function(e,t){for(var n=0;n=n.getTime()?t+1:e.getTime()>=r.getTime()?t:t-1}function fa(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");e=E(e),e=ca(e).getTime()-function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=la(e),t=new Date(0);return t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0),ca(t)}(e).getTime();return Math.round(e/6048e5)+1}function da(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=t||{},n=t.locale,n=n&&n.options&&n.options.weekStartsOn,n=null==n?0:A(n),n=null==t.weekStartsOn?n:A(t.weekStartsOn);if(!(0<=n&&n<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");t=E(e),e=t.getUTCDay(),e=(e=r.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function pa(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");e=E(e),e=da(e,t).getTime()-function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=null==(n=(n=(r=t||{}).locale)&&n.options&&n.options.firstWeekContainsDate)?1:A(n),n=null==r.firstWeekContainsDate?n:A(r.firstWeekContainsDate),r=ha(e,t),e=new Date(0);return e.setUTCFullYear(r,0,n),e.setUTCHours(0,0,0,0),da(e,t)}(e,t).getTime();return Math.round(e/6048e5)+1}var _a="midnight",ga="noon",va="morning",ma="afternoon",ya="evening",ba="night",wa={G:function(e,t,n){var r=0>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function d(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:[e[1]<<(t-=32)|e[0]>>>32-t,e[0]<>>32-t]}function h(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=_(e,[4283543511,3981806797]),e=g(e,[0,e[0]>>>1]),e=_(e,[3301882366,444984403]),e=g(e,[0,e[0]>>>1])}function s(e,t){for(var n=(e=e||"").length%16,r=e.length-n,o=[0,t=t||0],i=[0,t],a=[0,0],s=[0,0],u=[2277735313,289559509],c=[1291169091,658871167],l=0;l>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}function n(){var e;if(a())return e=m(),!!window.WebGLRenderingContext&&!!e}function r(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")}var _=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},g=function(e,t){return[e[0]^t[0],e[1]^t[1]]},e={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},v=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,r=e.length;nt.name?1:e.name=0)r="Windows Phone";else if(e.indexOf("win")>=0)r="Windows";else if(e.indexOf("android")>=0)r="Android";else if(e.indexOf("linux")>=0||e.indexOf("cros")>=0)r="Linux";else if(e.indexOf("iphone")>=0||e.indexOf("ipad")>=0)r="iOS";else if(e.indexOf("mac")>=0)r="Mac";else r="Other";if(("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&r!=="Windows Phone"&&r!=="Android"&&r!=="iOS"&&r!=="Other")return true;if(typeof t!=="undefined"){t=t.toLowerCase();if(t.indexOf("win")>=0&&r!=="Windows"&&r!=="Windows Phone")return true;else if(t.indexOf("linux")>=0&&r!=="Linux"&&r!=="Android")return true;else if(t.indexOf("mac")>=0&&r!=="Mac"&&r!=="iOS")return true;else if((t.indexOf("win")===-1&&t.indexOf("linux")===-1&&t.indexOf("mac")===-1)!==(r==="Other"))return true}if(n.indexOf("win")>=0&&r!=="Windows"&&r!=="Windows Phone")return true;else if((n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&r!=="Linux"&&r!=="Android")return true;else if((n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&r!=="Mac"&&r!=="iOS")return true;else{var i=n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0;if(i!==(r==="Other"))return true}return typeof navigator.plugins==="undefined"&&r!=="Windows"&&r!=="Windows Phone"}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e=navigator.userAgent.toLowerCase(),t=navigator.productSub,n;if(e.indexOf("firefox")>=0)n="Firefox";else if(e.indexOf("opera")>=0||e.indexOf("opr")>=0)n="Opera";else if(e.indexOf("chrome")>=0)n="Chrome";else if(e.indexOf("safari")>=0)n="Safari";else if(e.indexOf("trident")>=0)n="Internet Explorer";else n="Other";if((n==="Chrome"||n==="Safari"||n==="Opera")&&t!=="20030107")return true;var r=eval.toString().length,o;if(r===37&&n!=="Safari"&&n!=="Firefox"&&n!=="Other")return true;else if(r===39&&n!=="Internet Explorer"&&n!=="Other")return true;else if(r===33&&n!=="Chrome"&&n!=="Opera"&&n!=="Other")return true;try{throw"a"}catch(e){try{e.toSource();o=true}catch(e){o=false}}return o&&n!=="Firefox"&&n!=="Other"}())}},{key:"touchSupport",getData:function(e){e(function(){var e=0,t,n;if(typeof navigator.maxTouchPoints!=="undefined")e=navigator.maxTouchPoints;else if(typeof navigator.msMaxTouchPoints!=="undefined")e=navigator.msMaxTouchPoints;try{document.createEvent("TouchEvent");t=true}catch(e){t=false}return[e,t,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var c=["monospace","sans-serif","serif"],l=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"],n=(t.fonts.extendedJsFonts&&(l=l.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),l=(l=l.concat(t.fonts.userDefinedFonts)).filter(function(e,t){return l.indexOf(e)===t}),"mmmmmmmmmmlli"),r="72px",t=document.getElementsByTagName("body")[0],o=document.createElement("div"),f=document.createElement("div"),i={},a={},d=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize=r,e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML=n,e},s=function(){for(var e=[],t=0,n=c.length;t=n.components.length)r(i.data);else{var t=n.components[a];if(n.excludes[t.key])o(!1);else{if(!e&&t.pauseBefore)return--a,setTimeout(function(){o(!0)},1);try{t.getData(function(e){i.addPreprocessedComponent(t.key,e),o(!1)},n)}catch(e){i.addPreprocessedComponent(t.key,String(e)),o(!1)}}}}var i={data:[],addPreprocessedComponent:function(e,t){"function"==typeof n.preprocessor&&(t=n.preprocessor(e,t)),i.data.push({key:e,value:t})}},a=-1;o(!1)},r.getPromise=function(n){return new Promise(function(e,t){r.get(n,e)})},r.getV18=function(i,a){return null==a&&(a=i,i={}),r.get(i,function(e){for(var t=[],n=0;n'+e+""}))}}),g&&b(gi,{message:n}),v&&b(Ns,{keyboard:f,isLastMessage:r})),s&&r&&b("div",{className:j.delivery_status,style:{position:o.system_font?"static":void 0,font:o.system_font,color:o.system_color}},function(e){switch(e){case wn:return L("delivery_status_sending");case xn:return L("delivery_status_sent");case Cn:return L("delivery_status_read");case Tn:return L("delivery_status_error");default:return null}}(u)))}var j={message_wrapper:"styles_message_wrapper__3GZur",message_wrapper_outgoing:"styles_message_wrapper_outgoing__7UtSi",message_wrapper_date_delimiter:"styles_message_wrapper_date_delimiter__1vXc8",message_wrapper_date:"styles_message_wrapper_date__3tHj4",delimiter:"styles_delimiter__Zza9w",date:"styles_date__1m0j8",message:"styles_message__2NxOH",message_stretched:"styles_message_stretched__2YPcD",message_outgoing:"styles_message_outgoing__3Iu4e",message_without_mask:"styles_message_without_mask__3KQWm",author_name:"styles_author_name__2kJQG",text:"styles_text__2dASC",delivery_status:"styles_delivery_status__2Ckp_",author:"styles_author__2oSsP",author_avatar:"styles_author_avatar__1YnoQ"},qu=(c("\n.styles_message_wrapper__3GZur {\n position: relative;\n display: flex;\n flex-direction: column;\n padding-top: 4px;\n}\n.styles_message_wrapper_outgoing__7UtSi {\n padding-top: 3px; /* Из-за отсутствия тени, отступ кажется больше */\n}\n.styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) + .styles_message_wrapper_outgoing__7UtSi,\n.styles_message_wrapper_outgoing__7UtSi + .styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) {\n padding-top: 12px;\n}\n.styles_message_wrapper_date_delimiter__1vXc8,\n.styles_message_wrapper_date__3tHj4 {\n padding-top: 10px !important;\n}\n\n.styles_delimiter__Zza9w {\n display: flex;\n align-items: center;\n justify-content: center;\n\n white-space: nowrap;\n margin: 0 -13px 9px;\n padding: 0 14px;\n font-size: 12px;\n line-height: 16px;\n color: #B1B8BA;\n}\n.styles_delimiter__Zza9w::before {\n margin-right: 14px;\n}\n.styles_delimiter__Zza9w::after {\n margin-left: 14px;\n}\n.styles_delimiter__Zza9w::before,\n.styles_delimiter__Zza9w::after {\n content: '';\n width: 100%;\n height: 2px;\n background: #B1B8BA;\n opacity: 0.3;\n margin-top: 1px;\n}\n.styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) + .styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) .styles_delimiter__Zza9w {\n margin-top: 3px;\n}\n\n.styles_date__1m0j8 {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n line-height: 12px;\n color: #B1B8BA;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n margin-bottom: 8px;\n}\n\n.styles_message__2NxOH {\n position: relative;\n display: inline-flex;\n flex-direction: column;\n padding: 10px 11px;\n background: #FDFBFB;\n border-radius: 10px;\n font-size: 14px;\n line-height: 18px;\n max-width: 65%;\n}\n.styles_message__2NxOH:after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 10px;\n background: rgba(0, 0, 0, 0.12);\n left: 0;\n bottom: -1px;\n z-index: -1;\n}\n.styles_message_stretched__2YPcD {\n width: 65%;\n}\n.styles_message__2NxOH:not(.styles_message_outgoing__3Iu4e) {\n margin-right: auto;\n} \n.styles_message_outgoing__3Iu4e {\n margin-left: auto;\n background: linear-gradient(90deg, #425FF5 1.6%, #3082FE 124.66%), #F3F3F3;\n color: #fff;\n}\n.styles_message_outgoing__3Iu4e:after {\n background: none;\n}\n\n.styles_message_without_mask__3KQWm:after {\n content: unset;\n}\n\n.styles_author_name__2kJQG {\n color: #8F9A9D;\n}\n\n.styles_text__2dASC {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n line-height: 18px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n.styles_text__2dASC a {\n color: #313942;\n}\n.styles_message_outgoing__3Iu4e .styles_text__2dASC a {\n color: #fff;\n}\n\n.styles_delivery_status__2Ckp_ {\n position: absolute;\n right: 0;\n bottom: -15px;\n display: flex;\n justify-content: flex-end;\n font-size: 12px;\n line-height: 12px;\n color: #B1B8BA;\n padding-top: 3px;\n}\n\n.styles_author__2oSsP {\n display: flex;\n align-items: center;\n margin: 8px 0 4px 4px;\n}\n.styles_message_wrapper_outgoing__7UtSi + .styles_message_wrapper__3GZur:not(.styles_message_wrapper_outgoing__7UtSi) .styles_author__2oSsP {\n margin-top: 0;\n}\n.styles_author_avatar__1YnoQ {\n height: 24px;\n width: 24px;\n overflow: hidden;\n -o-object-fit: cover;\n object-fit: cover;\n border-radius: 50%;\n}\n.styles_author_name__2kJQG {\n margin-left: 5px;\n margin-top: 6px;\n color: #B1B8BA;\n font-size: 12px;\n line-height: 14px;\n}\n"),/(?:https?:)?\/\/(?:[\w-]+\.)+[\w#-./@~]*(?:\?(?:[\w!#$%&,-.;=]+)?)?/gi),Xu=wt(["newMessageDelimiterId"])(function(e){return b(Gu,e)}),Yu="styles_messages__MlKbB",Zu="styles_messages_border__D4TM2",Ku="styles_messages_custom_bg__37cwb",$u="styles_messages_custom_bg_image__3gibe",Qu="styles_messages_inner__3riuD",Ju="styles_copyright__2ueu9",ec=(c('\n.styles_messages__MlKbB {\n height: 100%;\n width: 100%;\n overflow-y: scroll;\n overflow-x: hidden;\n}\n.styles_messages__MlKbB:before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n background-color: #F1F2F8;\n background-image: url(\'/src/svg/background-mask.svg\');\n background-repeat: repeat;\n}\n.styles_messages__MlKbB::-webkit-scrollbar {\n width: 0px;\n background: transparent;\n}\n.styles_messages_border__D4TM2:before {\n content: "";\n border: 1px solid #CDCED2;\n border-top: 0;\n border-bottom-right-radius: 13px;\n border-bottom-left-radius: 13px;\n}\n.styles_messages_custom_bg__37cwb:before {\n background-image: none;\n background-color: inherit;\n border-color: transparent;\n}\n\n.styles_messages_custom_bg_image__3gibe:before {\n background-image: inherit;\n background-color: inherit;\n border-color: transparent;\n}\n\n.styles_messages_inner__3riuD {\n position: relative;\n z-index: 1;\n min-height: 100%;\n padding: 0 14px 116px;\n}\n\n.styles_copyright__2ueu9 {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n bottom: 26px;\n left: 0;\n width: 100%;\n z-index: 0;\n color: #B1B8BA;\n font-size: 12px;\n line-height: 14px;\n white-space: pre;\n}\n.styles_copyright__2ueu9 a {\n text-decoration: none;\n color: #3C6CF9\n}'),function(t){function e(e){t.call(this,e),this.state={width:"100%"},this.lastDiff=0,this.restoreScrollTop=this.restoreScrollTop.bind(this),this.checkIsStickToBottom=this.checkIsStickToBottom.bind(this),this.updateWidth=this.updateWidth.bind(this)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.componentDidMount=function(){this.messages&&(this.messages.scrollTop=this.messages.scrollHeight,this.updateWidth()),this.initSteady(),window.addEventListener("resize",this.updateWidth)},e.prototype.getSnapshotBeforeUpdate=function(){this.scrollHeight=this.messages.scrollHeight,this.maxScrollTop=this.scrollHeight-this.messages.offsetHeight,this.scrollTop=this.messages.scrollTop},e.prototype.componentDidUpdate=function(e){var t=this,e=e.isSteadyEnabled,n=this.props,r=n.readLastMessage,o=n.composeHeight,i=n.isSteadyEnabled;r(),this.lastDiff=this.messages.scrollHeight-this.scrollHeight-o,this.checkIsStickToBottom()&&(this.messages.scrollTop=this.messages.scrollHeight),e!==i&&(i?setTimeout(function(){t.toggleSteady(i)}):this.toggleSteady(i))},e.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.updateWidth),this.toggleSteady(!1)},e.prototype.updateWidth=function(){var e;this.messages&&(e=this.messages.offsetWidth-this.messages.clientWidth,this.setState({width:window.innerWidth+e}))},e.prototype.initSteady=function(){var n=this;this.steadyTop=new Fi({scrollElement:this.messages,conditions:{top:0},handler:function(e,t){n.props.getPastMessages().then(function(){n.restoreScrollTop("up"),t()})}}),this.steadyBottom=new Fi({scrollElement:this.messages,conditions:{bottom:0},handler:function(e,t){n.props.unsetNewMessageDelimiter(),n.props.getNewMessages().then(function(){n.restoreScrollTop(),t()})}})},e.prototype.toggleSteady=function(e){e?this.resumeSteady():this.stopSteady()},e.prototype.stopSteady=function(){this.steadyTop.stop(),this.steadyBottom.stop()},e.prototype.resumeSteady=function(){this.steadyTop.resume(),this.steadyBottom.resume()},e.prototype.restoreScrollTop=function(e){0this.maxScrollTop},e.prototype.render=function(){var t=this,e=this.props,n=e.messages,r=e.theme,o=e.isMobile,i=e.selectorOpenState,a=e.conversations,s=e.selectedConversationInfo,s=s=void 0===s?{}:s,u=s.id,s=s.is_closed,e=e.isMultiDialogsEnabled,c=this.state.width,l="widget"===_("AMO_LIVECHAT_MODE"),f=Math.max(C(r,"compose.height",0),29),f=29"']/g,za=RegExp(Ha.source),Va=RegExp(Fa.source),Wa=/<%-([\s\S]+?)%>/g,Ga=/<%([\s\S]+?)%>/g,qa=/<%=([\s\S]+?)%>/g,Xa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ya=/^\w*$/,Za=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ka=/[\\^$.*+?()[\]{}|]/g,$a=RegExp(Ka.source),Qa=/^\s+|\s+$/g,Ja=/^\s+/,es=/\s+$/,ts=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ns=/\{\n\/\* \[wrapped with (.+)\] \*/,rs=/,? & /,os=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,is=/\\(\\)?/g,as=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ss=/\w*$/,us=/^[-+]0x[0-9a-f]+$/i,cs=/^0b[01]+$/i,ls=/^\[object .+?Constructor\]$/,fs=/^0o[0-7]+$/i,ds=/^(?:0|[1-9]\d*)$/,hs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ps=/($^)/,_s=/['\n\r\u2028\u2029\\]/g,i="\\ud800-\\udfff",a="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",s="\\u2700-\\u27bf",e="a-z\\xdf-\\xf6\\xf8-\\xff",t="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",c="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="["+i+"]",l="["+c+"]",f="["+a+"]",d="["+s+"]",h="["+e+"]",c="[^"+i+c+"\\d+"+s+e+t+"]",s="\\ud83c[\\udffb-\\udfff]",e="[^"+i+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",t="["+t+"]",_="(?:"+h+"|"+c+")",c="(?:"+t+"|"+c+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:"+f+"|"+s+")"+"?",y="["+u+"]?",y=y+m+("(?:\\u200d(?:"+[e,p,r].join("|")+")"+y+m+")*"),m="(?:"+[d,p,r].join("|")+")"+y,d="(?:"+[e+f+"?",f,p,r,n].join("|")+")",gs=RegExp("['’]","g"),vs=RegExp(f,"g"),b=RegExp(s+"(?="+s+")|"+d+y,"g"),ms=RegExp([t+"?"+h+"+"+g+"(?="+[l,t,"$"].join("|")+")",c+"+"+v+"(?="+[l,t+_,"$"].join("|")+")",t+"?"+_+"+"+g,t+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",m].join("|"),"g"),w=RegExp("[\\u200d"+i+a+u+"]"),ys=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ws=-1,ra={},oa=(ra[Ma]=ra[ka]=ra[Oa]=ra[Ia]=ra[Ba]=ra[La]=ra[ja]=ra[Da]=ra[Na]=!0,ra[Gi]=ra[xa]=ra[ta]=ra[qi]=ra[na]=ra[Xi]=ra[Ca]=ra[Ta]=ra[Yi]=ra[Zi]=ra[Ki]=ra[$i]=ra[Qi]=ra[Ji]=ra[ea]=!1,{}),x=(oa[Gi]=oa[xa]=oa[ta]=oa[na]=oa[qi]=oa[Xi]=oa[Ma]=oa[ka]=oa[Oa]=oa[Ia]=oa[Ba]=oa[Yi]=oa[Zi]=oa[Ki]=oa[$i]=oa[Qi]=oa[Ji]=oa[Sa]=oa[La]=oa[ja]=oa[Da]=oa[Na]=!0,oa[Ca]=oa[Ta]=oa[ea]=!1,{"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"}),xs=parseFloat,Cs=parseInt,e="object"==typeof M&&M&&M.Object===Object&&M,p="object"==typeof self&&self&&self.Object===Object&&self,ia=e||p||Function("return this")(),r=S&&!S.nodeType&&S,o=r&&A&&!A.nodeType&&A,Ts=o&&o.exports===r,C=Ts&&e.process,n=function(){try{var e=o&&o.require&&o.require("util").types;return e?e:C&&C.binding&&C.binding("util")}catch(e){}}(),Es=n&&n.isArrayBuffer,As=n&&n.isDate,Ss=n&&n.isMap,Ms=n&&n.isRegExp,ks=n&&n.isSet,Os=n&&n.isTypedArray;function aa(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Is(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o":">",'"':""","'":"'"});function eu(e){return"\\"+x[e]}function ha(e){return w.test(e)}function tu(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function nu(t,n){return function(e){return t(n(e))}}function pa(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var va=function o(e){var C=(e=null==e?ia:va.defaults(ia.Object(),e,va.pick(ia,bs))).Array,i=e.Date,B=e.Error,L=e.Function,j=e.Math,_=e.Object,D=e.RegExp,z=e.String,m=e.TypeError,V=C.prototype,W=L.prototype,G=_.prototype,q=e["__core-js_shared__"],X=W.toString,N=G.hasOwnProperty,Y=0,Z=(W=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",K=G.toString,$=X.call(_),Q=ia._,J=D("^"+X.call(N).replace(Ka,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=Ts?e.Buffer:Fi,t=e.Symbol,ee=e.Uint8Array,te=W?W.allocUnsafe:Fi,ne=nu(_.getPrototypeOf,_),re=_.create,oe=G.propertyIsEnumerable,ie=V.splice,ae=t?t.isConcatSpreadable:Fi,se=t?t.iterator:Fi,ue=t?t.toStringTag:Fi,ce=function(){try{var e=Qn(_,"defineProperty");return e({},"",{}),e}catch(e){}}(),le=e.clearTimeout!==ia.clearTimeout&&e.clearTimeout,fe=i&&i.now!==ia.Date.now&&i.now,de=e.setTimeout!==ia.setTimeout&&e.setTimeout,he=j.ceil,pe=j.floor,_e=_.getOwnPropertySymbols,W=W?W.isBuffer:Fi,ge=e.isFinite,ve=V.join,me=nu(_.keys,_),y=j.max,T=j.min,ye=i.now,be=e.parseInt,we=j.random,xe=V.reverse,i=Qn(e,"DataView"),Ce=Qn(e,"Map"),Te=Qn(e,"Promise"),Ee=Qn(e,"Set"),e=Qn(e,"WeakMap"),Ae=Qn(_,"create"),Se=e&&new e,Me={},ke=Cr(i),Oe=Cr(Ce),Ie=Cr(Te),Be=Cr(Ee),Le=Cr(e),t=t?t.prototype:Fi,je=t?t.valueOf:Fi,De=t?t.toString:Fi;function p(e){if(F(e)&&!H(e)&&!(e instanceof v)){if(e instanceof g)return e;if(N.call(e,"__wrapped__"))return Tr(e)}return new g(e)}var Ne=function(e){if(!x(e))return{};if(re)return re(e);Pe.prototype=e;e=new Pe;return Pe.prototype=Fi,e};function Pe(){}function Re(){}function g(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=Fi}function v(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Wi,this.__views__=[]}function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t>>0,t>>>=0,C(o));++r>>1,a=e[i];null!==a&&!A(a)&&(n?a<=t:a>>0)?(e=h(e))&&("string"==typeof t||null!=t&&!Mo(t))&&!(t=c(t))&&ha(e)?un(ga(e),0,n):e.split(t,n):[]},p.spread=function(n,r){if("function"!=typeof n)throw new m(zi);return r=null==r?0:y(S(r),0),a(function(e){var t=e[r],e=un(e,0,r);return t&&la(e,t),aa(n,this,e)})},p.tail=function(e){var t=null==e?0:e.length;return t?s(e,1,t):[]},p.take=function(e,t,n){return e&&e.length?s(e,0,(t=n||t===Fi?1:S(t))<0?0:t):[]},p.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?s(e,(t=r-(t=n||t===Fi?1:S(t)))<0?0:t,r):[]},p.takeRightWhile=function(e,t){return e&&e.length?Jt(e,f(t,3),!1,!0):[]},p.takeWhile=function(e,t){return e&&e.length?Jt(e,f(t,3)):[]},p.tap=function(e,t){return t(e),e},p.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new m(zi);return x(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),uo(e,t,{leading:r,maxWait:t,trailing:o})},p.thru=Wr,p.toArray=jo,p.toPairs=ti,p.toPairsIn=ni,p.toPath=function(e){return H(e)?ca(e,xr):A(e)?[e]:E(wr(h(e)))},p.toPlainObject=Po,p.transform=function(e,r,o){var t,n=H(e),i=n||bo(e)||Io(e);return r=f(r,4),null==o&&(t=e&&e.constructor,o=i?n?new t:[]:x(e)&&xo(t)?Ne(ne(e)):{}),(i?sa:ft)(e,function(e,t,n){return r(o,e,t,n)}),o},p.unary=function(e){return oo(e,1)},p.union=Br,p.unionBy=Lr,p.unionWith=jr,p.uniq=function(e){return e&&e.length?Kt(e):[]},p.uniqBy=function(e,t){return e&&e.length?Kt(e,f(t,2)):[]},p.uniqWith=function(e,t){return t="function"==typeof t?t:Fi,e&&e.length?Kt(e,Fi,t):[]},p.unset=function(e,t){return null==e||$t(e,t)},p.unzip=Dr,p.unzipWith=Nr,p.update=function(e,t,n){return null==e?e:Qt(e,t,on(n))},p.updateWith=function(e,t,n,r){return r="function"==typeof r?r:Fi,null==e?e:Qt(e,t,on(n),r)},p.values=ri,p.valuesIn=function(e){return null==e?[]:Ys(e,O(e))},p.without=Pr,p.words=pi,p.wrap=function(e,t){return ho(on(t),e)},p.xor=Rr,p.xorBy=Ur,p.xorWith=Hr,p.zip=Fr,p.zipObject=function(e,t){return nn(e||[],t||[],Ye)},p.zipObjectDeep=function(e,t){return nn(e||[],t||[],zt)},p.zipWith=zr,p.entries=ti,p.entriesIn=ni,p.extend=Uo,p.extendWith=Ho,Ci(p,p),p.add=Li,p.attempt=_i,p.camelCase=oi,p.capitalize=ii,p.ceil=ji,p.clamp=function(e,t,n){return n===Fi&&(n=t,t=Fi),n!==Fi&&(n=(n=M(n))==n?n:0),t!==Fi&&(t=(t=M(t))==t?t:0),et(M(e),t,n)},p.clone=function(e){return b(e,4)},p.cloneDeep=function(e){return b(e,5)},p.cloneDeepWith=function(e,t){return b(e,5,t="function"==typeof t?t:Fi)},p.cloneWith=function(e,t){return b(e,4,t="function"==typeof t?t:Fi)},p.conformsTo=function(e,t){return null==t||tt(e,t,k(t))},p.deburr=ai,p.defaultTo=function(e,t){return null==e||e!=e?t:e},p.divide=Di,p.endsWith=function(e,t,n){e=h(e),t=c(t);var r=e.length,r=n=n===Fi?r:et(S(n),0,r);return 0<=(n-=t.length)&&e.slice(n,r)==t},p.eq=U,p.escape=function(e){return(e=h(e))&&Va.test(e)?e.replace(Fa,Js):e},p.escapeRegExp=function(e){return(e=h(e))&&$a.test(e)?e.replace(Ka,"\\$&"):e},p.every=function(e,t,n){return(H(e)?Ls:at)(e,f(t=n&&d(e,t,n)?Fi:t,3))},p.find=Xr,p.findIndex=Er,p.findKey=function(e,t){return Us(e,f(t,3),ft)},p.findLast=Yr,p.findLastIndex=Ar,p.findLastKey=function(e,t){return Us(e,f(t,3),dt)},p.floor=Ni,p.forEach=Zr,p.forEachRight=Kr,p.forIn=function(e,t){return null==e?e:ct(e,f(t,3),O)},p.forInRight=function(e,t){return null==e?e:lt(e,f(t,3),O)},p.forOwn=function(e,t){return e&&ft(e,f(t,3))},p.forOwnRight=function(e,t){return e&&dt(e,f(t,3))},p.get=Go,p.gt=go,p.gte=vo,p.has=function(e,t){return null!=e&&tr(e,t,vt)},p.hasIn=qo,p.head=Mr,p.identity=I,p.includes=function(e,t,n,r){return e=l(e)?e:ri(e),n=n&&!r?S(n):0,r=e.length,n<0&&(n=y(r+n,0)),Oo(e)?n<=r&&-1=T(t=t,n=n)&&e=this.__values__.length;return{done:e,value:e?Fi:this.__values__[this.__index__++]}},p.prototype.plant=function(e){for(var t,n=this;n instanceof Re;)var r=Tr(n),o=(r.__index__=0,r.__values__=Fi,t?o.__wrapped__=r:t=r,r),n=n.__wrapped__;return o.__wrapped__=e,t},p.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof v?(e=e,(e=(e=this.__actions__.length?new v(this):e).reverse()).__actions__.push({func:Wr,args:[Ir],thisArg:Fi}),new g(e,this.__chain__)):this.thru(Ir)},p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=function(){return en(this.__wrapped__,this.__actions__)},p.prototype.first=p.prototype.head,se&&(p.prototype[se]=function(){return this}),p}();o?((o.exports=va)._=va,r._=va):ia._=va}.call(M)}),function(t){function e(e){t.call(this,e),this.state={isButtonVisible:!1,isEmojiPickerVisible:!1},this.onTextareaInput=this.onTextareaInput.bind(this),this.onTextareaKeyDown=this.onTextareaKeyDown.bind(this),this.onTextareaHeightChange=this.onTextareaHeightChange.bind(this),this.toggleEmojiPicker=this.toggleEmojiPicker.bind(this),this.addEmoji=this.addEmoji.bind(this),this.sendMessage=this.sendMessage.bind(this)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.componentDidMount=function(){var e=this.props.selectorOpenState;nc(this.textarea),this.textarea.addEventListener("autosize:resized",this.onTextareaHeightChange),this.onTextareaHeightChange(),e===En&&this.textarea.focus()},e.prototype.onTextareaInput=function(){this.setState({isButtonVisible:this.textarea.value.length})},e.prototype.onTextareaKeyDown=function(e){13!==e.keyCode||e.shiftKey||(e.preventDefault(),this.sendMessage())},e.prototype.onTextareaHeightChange=function(){this.props.onHeightChange&&this.textarea&&this.props.onHeightChange(this.textarea.clientHeight)},e.prototype.sendMessage=function(){this.state.isButtonVisible&&(this.props.onSendMessage(this.textarea.value),this.textarea.value="",nc.update(this.textarea),this.setState({isButtonVisible:!1}))},e.prototype.toggleEmojiPicker=function(){this.setState({isEmojiPickerVisible:!this.state.isEmojiPickerVisible})},e.prototype.addEmoji=function(e){var t,n,r=this.textarea;document.selection?(r.focus(),document.selection.createRange().text=e):r.selectionStart||0===r.selectionStart?(t=r.selectionStart,n=r.selectionEnd,r.value=r.value.substring(0,t)+e+r.value.substring(n,r.value.length),t===n&&(t+=1),n+=1):r.value+=e,this.onTextareaInput(),r.focus(),r.setSelectionRange&&(t||n)&&r.setSelectionRange(t,n)},e.prototype.render=function(){var e,t=this,n=this.props,r=n.isMobile,o=n.theme,i=n.selectorOpenState,n=n.selectedConversationInfo,n=(n=void 0===n?{}:n).is_closed,a=this.state,s=a.isButtonVisible,a=a.isEmojiPickerVisible,u=i!==En,i=i===An;return b("div",{className:x(((e={})[D.compose_wrapper]=!0,e[D.compose_wrapper_border]=!r,e[D.disabled]=u&&!r||i||n,e))},b("div",{className:D.compose},b("textarea",{ref:function(e){t.textarea=e},className:D.textarea,placeholder:L("compose_placeholder"),onInput:this.onTextareaInput,onKeyDown:this.onTextareaKeyDown,tabIndex:0,style:{minHeight:Math.max(C(o,"compose.height",29),29)}}),b("div",{className:D.emoji_picker_container},b(lc,{close:this.toggleEmojiPicker,visible:a,onEmojiAdd:this.addEmoji}),b(oc,{className:D.smile_icon,onClick:this.toggleEmojiPicker}))),b("span",{className:x(((u={})[D.button]=!0,u[D.button_hidden]=!s,u)),role:"button",onClick:this.sendMessage,onKeyDown:Es,tabIndex:0},b(rc,{className:D.button_icon,style:{fill:C(o,"compose.button_background","")}})))},e}(Qe)),dc=wt(["device","selectedConversationInfo","selectorOpenState"],qo)(function(e){var t=e.sendMessage,n=e.device,r=e.theme,o=e.onHeightChange,i=e.selectorOpenState,e=e.selectedConversationInfo;return b(fc,{isMobile:"mobile"===n,theme:r,onHeightChange:o,onSendMessage:t,selectorOpenState:i,selectedConversationInfo:e})}),hc=function(){return o.Date.now()},pc=Math.max,_c=Math.min;var gc=function(r,n,e){var o,i,a,s,u,c,l=0,f=!1,d=!1,t=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function h(e){var t=o,n=i;return o=i=void 0,l=e,s=r.apply(n,t)}function p(e){var t=e-c;return void 0===c||n<=t||t<0||d&&a<=e-l}function _(){var e,t=hc();if(p(t))return g(t);u=setTimeout(_,(e=n-((t=t)-c),d?_c(e,a-(t-l)):e))}function g(e){return u=void 0,t&&o?h(e):(o=i=void 0,s)}function v(){var e=hc(),t=p(e);if(o=arguments,i=this,c=e,t){if(void 0===u)return l=e=c,u=setTimeout(_,n),f?h(e):s;if(d)return clearTimeout(u),u=setTimeout(_,n),h(c)}return void 0===u&&(u=setTimeout(_,n)),s}return n=Ne(n)||0,m(e)&&(f=!!e.leading,d="maxWait"in e,a=d?pc(Ne(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){void 0!==u&&clearTimeout(u),o=c=i=u=void(l=0)},v.flush=function(){return void 0===u?s:g(hc())},v};var vc=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),gc(e,t,{leading:r,maxWait:t,trailing:o})};function mc(e,t){for(var n in t)e[n]=t[n];return e}function yc(e,t,n){var r=(i=e.getState()).messages,o=i.isMultiDialogsEnabled,i=(i=void 0===(i=i.selectedConversationInfo)?{}:i).id;o&&e.action(As(e).updateLastMessage)(t,t.conversation_id),n===i&&e.setState({welcomeMessageShouldBeBubbled:!1,messages:r.concat(t)})}function bc(e,t){var n,r,o=t.is_closed,i=t.id,a=t.name;o?e.action(As(e).onConversationClose)(t):(t=(o=e.getState()).conversations,o.messages,n=!(o=o.selectedConversationInfo.id)||o===i,t=t.map(function(e){return e.id!==i?e:r=Object.assign({},e,{name:a})}),e.action(k.setConversations)(t),n&&e.action(k.setSelectedConversationInfo)(r),d({method:"conversations:update",payload:t,selected:o}))}function wc(e,t){return e=e.getState().messages,!za(e,{id:t.id})}function xc(e,t){var n=t.message_id,t=t.delivery_status;e.action(js)(n,{status:t})}function Cc(e){if(Ec()){var t=e.messages,n=e.selectedConversationInfo,n=(n=void 0===n?{}:n).id,r=e.conversations,o=e.isMultiDialogsEnabled,r=Ds({conversations:r,conversationId:n,messages:t,isMultiDialogsEnabled:o});try{localStorage.setItem(Ec(),JSON.stringify({version:e.version,lastReadTimestamp:e.lastReadTimestamp,messages:r,manager:e.manager}))}catch(e){}}}function Tc(o){Cs({uuid:_("AMO_LIVECHAT_UUID"),onInit:function(e){var t=e.payload.multi_dialogs;o.action(k.setIsSocketInited)(t),o.action(k.setIsMultiDialogsEnabled)(t),t?((r=e.payload.chat.conversations||[]).length&&r.length<2?o.action(k.setSelectedConversationInfo)(r[0]):o.action(As(o).setSelectorOpenState)(An),o.action(k.setConversations)(r)):o.action(k.setChat)(e.payload.chat);function n(){var e=o.getState().shouldTryToAddWelcomeMessageAgain;o.action(k.setIsMessagesFetched)(),e&&o.action(O(o).tryToAddWelcomeMessage)()}var r=o.getState().selectedConversationInfo,e=(r=void 0===r?{}:r).id;!t||e?o.action(O(o).getNewMessages)().then(function(){return d({method:"bubble"})}).then(n).catch(Es):n(),d({method:"livechat:multi-dialogs-enabled",payload:t}),ds().then(function(){return o.action(k.updateManager)()}).catch(Es)},onUpdate:function(e){var n,t,r;n=o,t=e.payload.updates,r=e.payload.conversation_id,Ra(t,function(e,t){switch(!0){case!bn(e.message)&&wc(n,e.message):return yc(n,e.message,r);case!bn(e.conversation):return bc(n,e.conversation);case!bn(e.delivery_status):return xc(n,e.delivery_status)}}),e.payload.badge&&o.action(k.updateBadge)(e.payload.badge)},onAddConversation:function(e){var t=o.getState().conversations;o.action(k.setSelectedConversationInfo)(e.payload),o.action(k.setConversations)([e.payload].concat(t))}})}var Ec=function(){var e=_("AMO_LIVECHAT_BUTTON_ID"),t=_("AMO_LIVECHAT_UUID");return t?"amo-livechat-state-"+t+"-"+e:""};function Ac(){var a,i,e={version:6,conversationId:"",chatId:"",device:"desktop",selectorOpenState:En,newMessageDelimiterId:null,isSteadyEnabled:!0,pastMessagesLoaded:!1,newMessagesLoaded:!1,lastReadMessageId:null,lastReadTimestamp:null,welcomeMessageShouldBeBubbled:!0,isOpened:!1,isBubbleVisible:!1,isMultiDialogsEnabled:!1,isSocketInited:!1,isMessagesFetched:!1,badge:0,manager:{avatar:_("AMO_LIVECHAT_DEFAULT_AVATAR"),isAccount:!0,name:_("AMO_LIVECHAT_TITLE")},messages:[],conversations:[]},t=function(){if(!Ec())return{};try{return JSON.parse(localStorage.getItem(Ec()))}catch(e){return{}}}()||{},n=e.version===t.version,r=(a=n?f({},e,t):f({},e),i=[],a=a||{},{action:function(o){function i(e){s(e,!1,o)}return function(){for(var e=arguments,t=[a],n=0;n