text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.LHCReactAPP=t():e.LHCReactAPP=t()}(window,(function(){return function(e){function t(t){for(var n,i,a=t[0],o=t[1],s=0,l=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&l.push(r[i][0]),r[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(u&&u(t);l.length;)l.shift()()}var n={},r={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=a);var o,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({}[e]||e)+"."+{1:"ad7c3b612e46f2c4314f",2:"40d9c1039428dc388a3a",3:"32bec9bf7574d968a840",4:"7fa5ecf604af79005559",5:"505ef639614fb68798da",6:"3d7644fb33fcfa8b0b20",7:"4fb52e3a214f8fa4ec7f"}[e]+".js"}(e),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var u=new Error;o=function(t){s.onerror=s.onload=null,clearTimeout(l);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,n[1](u)}r[e]=void 0}};var l=setTimeout((function(){o({type:"timeout",target:s})}),12e4);s.onerror=s.onload=o,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="./",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonpLHCReactAPP=window.webpackJsonpLHCReactAPP||[],o=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var u=o;return i(i.s=105)}([function(e,t,n){"use strict";e.exports=n(56)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),i=n.n(r),a=n(4),o=n.n(a),s=new(function(){function e(){i()(this,e);var t,r=document.currentScript||(t=document.getElementsByTagName("script"))[t.length-1],a=n(83);this.prefix=r.getAttribute("scope")||"lhc",this.prefixUppercase=this.prefix.toUpperCase(),this.eventEmitter=new a;try{this.hasSessionStorage=!!window.sessionStorage}catch(e){this.hasSessionStorage=!1}try{this.hasLocalStorage=!!window.localStorage}catch(e){this.hasLocalStorage=!1}}return o()(e,[{key:"emitEvent",value:function(e,t,n){this.eventEmitter.emitEvent(e,t)}},{key:"sendMessageParent",value:function(e,t){window.opener&&!1===window.opener.closed?window.opener.postMessage(this.prefix+"::"+e+"::"+JSON.stringify(t||null),"*"):window.parent&&!1===window.parent.closed&&window.parent.postMessage(this.prefix+"::"+e+"::"+JSON.stringify(t||null),"/"),"undefined"!=typeof LHCEventTracker&&LHCEventTracker(e,t)}},{key:"sendMessageParentDirect",value:function(e,t){var n=null;window.parent&&window.parent["$_"+this.prefixUppercase]&&!1===window.parent.closed?n=window.parent["$_"+this.prefixUppercase].eventListener:window.opener&&window.opener["$_"+this.prefixUppercase]&&!1===window.opener.closed&&(n=window.opener["$_"+this.prefixUppercase].eventListener),null!==n?n.emitEvent(e,t):this.sendMessageParent(e,t)}},{key:"setLocalStorage",value:function(e,t){if(this.hasLocalStorage&&localStorage.setItem)try{localStorage.setItem(this.prefix+e,t)}catch(e){}}},{key:"setSessionStorage",value:function(e,t){if(this.hasSessionStorage&&sessionStorage.setItem)try{sessionStorage.setItem(this.prefix+e,t)}catch(e){}}},{key:"getSessionStorage",value:function(e){return this.hasSessionStorage&&sessionStorage.getItem?sessionStorage.getItem(this.prefix+e):null}},{key:"getLocalStorage",value:function(e){return this.hasLocalStorage&&localStorage.getItem?localStorage.getItem(this.prefix+e):null}},{key:"removeSessionStorage",value:function(e){this.hasSessionStorage&&sessionStorage.removeItem&&sessionStorage.removeItem(this.prefix+e)}},{key:"removeLocalStorage",value:function(e){this.hasLocalStorage&&localStorage.removeItem&&localStorage.removeItem(this.prefix+e)}},{key:"getTimeZone",value:function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;return"undefined"==e&&(e="UTC"),e}catch(e){var t=new Date;return(t.getTimezoneOffset()<(n=new Date(t.getFullYear(),0,1),r=new Date(t.getFullYear(),6,1),Math.max(n.getTimezoneOffset(),r.getTimezoneOffset()))?t.getTimezoneOffset():t.getTimezoneOffset()-60)/60*-1}var n,r}},{key:"getCustomFieldsSubmit",value:function(e){if(e.size>0){var t={name_items:[],values_req:[],value_items:[],value_types:[],encattr:[],value_show:[]};return e.forEach((function(e){t.value_items.push(e.get("value")),t.name_items.push(e.get("name")),t.values_req.push(!0===e.get("required")?"t":"f"),t.encattr.push(!0===e.get("encrypted")?"t":""),t.value_types.push(e.get("type")),t.value_show.push(e.get("show"))})),t}return null}},{key:"prefillFields",value:function(e){var t=e.props.chatwidget.get("attr_prefill");t.length>0&&t.forEach((function(t){e.setState(t)}))}},{key:"logJSError",value:function(e){var t;(t={}).location=location&&location.href?location.href:"",t.message=window.navigator.userAgent,t.stack=e.stack,t.stack=t.stack.replace(/(\r\n|\n|\r)/gm,"");var n=new XMLHttpRequest;n.open("POST",window.lhcChat.base_url+"audit/logjserror",!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.send("data="+encodeURIComponent(JSON.stringify(t)))}}]),e}());window.lhcHelperfunctions=s},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"f",(function(){return hideInvitation})),__webpack_require__.d(__webpack_exports__,"k",(function(){return minimizeWidget})),__webpack_require__.d(__webpack_exports__,"c",(function(){return endChat})),__webpack_require__.d(__webpack_exports__,"e",(function(){return getProducts})),__webpack_require__.d(__webpack_exports__,"v",(function(){return voteAction})),__webpack_require__.d(__webpack_exports__,"r",(function(){return transferToHumanAction})),__webpack_require__.d(__webpack_exports__,"j",(function(){return initProactive})),__webpack_require__.d(__webpack_exports__,"n",(function(){return storeSubscriber})),__webpack_require__.d(__webpack_exports__,"t",(function(){return updateTriggerClicked})),__webpack_require__.d(__webpack_exports__,"q",(function(){return subscribeNotifications})),__webpack_require__.d(__webpack_exports__,"h",(function(){return initOfflineForm})),__webpack_require__.d(__webpack_exports__,"i",(function(){return initOnlineForm})),__webpack_require__.d(__webpack_exports__,"p",(function(){return submitOnlineForm})),__webpack_require__.d(__webpack_exports__,"o",(function(){return submitOfflineForm})),__webpack_require__.d(__webpack_exports__,"g",(function(){return initChatUI})),__webpack_require__.d(__webpack_exports__,"s",(function(){return updateMessage})),__webpack_require__.d(__webpack_exports__,"m",(function(){return parseScript})),__webpack_require__.d(__webpack_exports__,"d",(function(){return fetchMessages})),__webpack_require__.d(__webpack_exports__,"b",(function(){return checkChatStatus})),__webpack_require__.d(__webpack_exports__,"l",(function(){return pageUnload})),__webpack_require__.d(__webpack_exports__,"a",(function(){return addMessage})),__webpack_require__.d(__webpack_exports__,"u",(function(){return userTyping}));var axios__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(11),axios__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_constants_chat_status__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(10);window.lhcAxios=axios__WEBPACK_IMPORTED_MODULE_0___default.a;var syncStatus={msg:!1,status:!1,error_counter:0,auto_close_timeout:null},defaultHeaders={headers:{"Content-Type":"application/x-www-form-urlencoded"}};function closeWidget(){return function(e){e({type:"closeWidget"})}}function abtractAction(e){return function(t){t(e)}}function hideInvitation(){return function(e,t){var n=t();_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("closeWidget",[{sender:"closeButton"}]),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("cancelInvitation",[{name:n.chatwidget.getIn(["proactive","data","invitation_name"])}]),axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"chat/chatwidgetclosed/(vid)/"+n.chatwidget.get("vid"),null,defaultHeaders).then((function(t){e({type:"HIDE_INVITATION"})})).catch((function(e){console.log(e)}))}}function minimizeWidget(e){return function(t,n){!0===n().chatwidget.getIn(["proactive","has"])?hideInvitation()(t,n):_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("closeWidget",[{sender:"closeButton"}]),!e||"popup"!=window.lhcChat.mode&&"embed"!=window.lhcChat.mode||(_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.removeSessionStorage("_chat"),window.close())}}function endChat(e,t){return t=t||"t",function(n,r){clearTimeout(syncStatus.auto_close_timeout),axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"chat/chatwidgetclosed/(eclose)/"+t+"/(hash)/"+e.chat.id+"_"+e.chat.hash+"/(vid)/"+e.vid+"/(close)/"+(e.noClose?"0":"1"),null,defaultHeaders).then((function(t){e.noClose?n({type:"INIT_CLOSE",data:e}):"popup"==window.lhcChat.mode?(_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.removeSessionStorage("_chat"),window.close(),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.eventEmitter.emitEvent("endedChat",[{chat_id:e.chat.id,hash:e.chat.hash}])):_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("endChat",[{show_start:e.show_start,sender:"endButton"}])})).catch((function(e){console.log(e)}))}}function getProducts(e){return function(t){axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/getproducts/"+e.dep_id,null,defaultHeaders).then((function(e){t({type:"INIT_PRODUCTS",data:e.data})})).catch((function(e){console.log(e)}))}}function voteAction(e){return axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"chat/voteaction/"+e.id+"/"+e.hash+"/"+e.type,null,defaultHeaders)}function transferToHumanAction(e){return axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"chat/transfertohuman/"+e.id+"/"+e.hash,null,defaultHeaders)}function initProactive(e){return function(t,n){var r=n(),i={invitation:e.invitation,vid_id:e.vid_id,uts:(new Date).getTime()};r.chatwidget.get("theme")&&(i.theme=r.chatwidget.get("theme")),r.chatwidget.get("vid")&&(i.vid=r.chatwidget.get("vid")),axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/getinvitation",i,defaultHeaders).then((function(e){e.data.chat_id&&e.data.chat_hash?(t({type:"ONLINE_SUBMITTED",data:{success:!0,chatData:{id:e.data.chat_id,hash:e.data.chat_hash}}}),showMessageSnippet({id:e.data.chat_id,hash:e.data.chat_hash})(t,n)):t({type:"PROACTIVE",data:e.data})}))}}function showMessageSnippet(e){return function(t,n){axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/getmessagesnippet",e,defaultHeaders).then((function(e){_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("msgSnippet",[e.data]);var t=n();_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.emitEvent("play_sound",[{type:"new_chat",sound_on:!0===t.chatwidget.getIn(["usersettings","soundOn"]),widget_open:!1}])})).catch((function(e){}))}}function storeSubscriber(e){return function(t,n){var r=n(),i="/(action)/sub";r.chatwidget.hasIn(["chatData","id"])&&r.chatwidget.hasIn(["chatData","hash"])&&(i=i+"/(hash)/"+r.chatwidget.getIn(["chatData","id"])+"_"+r.chatwidget.getIn(["chatData","hash"])),r.chatwidget.get("theme")&&(i=i+"/(theme)/"+r.chatwidget.get("theme")),r.chatwidget.get("vid")&&(i=i+"/(vid)/"+r.chatwidget.get("vid")),axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"notifications/subscribe"+i,{data:e},defaultHeaders).then((function(e){r.chatwidget.hasIn(["chatData","id"])&&r.chatwidget.hasIn(["chatData","hash"])&&t(fetchMessages({chat_id:r.chatwidget.getIn(["chatData","id"]),hash:r.chatwidget.getIn(["chatData","hash"]),lmgsid:r.chatwidget.getIn(["chatLiveData","lmsgid"]),theme:r.chatwidget.get("theme")}))}))}}function updateTriggerClicked(e,t){return function(n,r){var i=r();return axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"genericbot/"+(e.mainType?e.mainType:"buttonclicked")+"/"+i.chatwidget.getIn(["chatData","id"])+"/"+i.chatwidget.getIn(["chatData","hash"])+e.type,t,defaultHeaders)}}function subscribeNotifications(e){return function(e,t){var n=t();_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("subscribeEvent",[{pk:n.chatwidget.getIn(["chat_ui","notifications_pk"])}])}}function initOfflineForm(e){return function(t){axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/onlinesettings",e,defaultHeaders).then((function(e){t({type:"OFFLINE_FIELDS_UPDATED",data:e.data})})).catch((function(e){t({type:"OFFLINE_FIELDS_REJECTED",data:e})}))}}function initOnlineForm(e){return function(t){axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/onlinesettings",e,defaultHeaders).then((function(e){e.data.paid.continue&&!0===e.data.paid.continue?t({type:"ONLINE_SUBMITTED",data:{success:!0,chatData:{id:e.data.paid.id,hash:e.data.paid.hash}}}):t({type:"ONLINE_FIELDS_UPDATED",data:e.data})})).catch((function(e){t({type:"ONLINE_FIELDS_REJECTED",data:e})}))}}function getCaptcha(e,t,n){var r=new Date,i=Math.round(r.getTime()/1e3);axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"captcha/captchastring/fake/"+i,null,defaultHeaders).then((function(r){e({type:"captcha",data:{hash:r.data.result,ts:i}}),n.fields["captcha_"+r.data.result]=i,n.fields.tscaptcha=i,n.fields.tscaptcha_resubmit?delete n.fields.tscaptcha_resubmit:(n.fields.tscaptcha_resubmit=1,t(n)(e))}))}function submitOnlineForm(e){return function(t){t({type:"ONLINE_SUBMITTING"}),axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/submitonline",e,defaultHeaders).then((function(n){!1===n.data.success&&n.data.errors.captcha&&(getCaptcha(t,submitOnlineForm,e),!e.fields.tscaptcha_resubmit)||(t({type:"ONLINE_SUBMITTED",data:n.data}),n.data.t&&_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("botTrigger",[{trigger:n.data.t}]))})).catch((function(e){t({type:"ONLINE_SUBMITT_REJECTED",data:e})}))}}function submitOfflineForm(e){return function(t){t({type:"OFFLINE_SUBMITTING"}),axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/submitoffline",e,{headers:{"Content-Type":"multipart/form-data"}}).then((function(n){!1===n.data.success&&n.data.errors.captcha&&(getCaptcha(t,submitOfflineForm,e),!e.fields.tscaptcha_resubmit)||t({type:"OFFLINE_SUBMITTED",data:n.data})})).catch((function(e){t({type:"OFFLINE_SUBMITT_REJECTED",data:e})}))}}function updateUISettings(e){return function(t,n){axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/uisettings",e,defaultHeaders).then((function(e){t({type:"REFRESH_UI_COMPLETED",data:e.data})})).catch((function(e){console.log(e),t({type:"REFRESH_UI_REJECTED",data:e})}))}}function initChatUI(e){return syncStatus.status=!1,function(t,n){axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/initchat",e,defaultHeaders).then((function(e){t({type:"INIT_CHAT_SUBMITTED",data:e.data}),e.data.init_calls&&e.data.init_calls.forEach((function(e){"nodeJSChat"===e.extension?Promise.all([__webpack_require__.e(1),__webpack_require__.e(7)]).then(__webpack_require__.bind(null,106)).then((function(r){r.nodeJSChat.bootstrap(e.params,t,n)})):e.extension}))})).catch((function(e){console.log(e),t({type:"INIT_CHAT_REJECTED",data:e})}))}}function processResponseCheckStatus(e,t,n){e.op&&e.op.forEach((function(e){var r=e.split(":")[0];if("lhc_chat_redirect"==r)_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("location",[e.split(":")[1].replace(new RegExp("__SPLIT__","g"),":")]);else if("lhc_screenshot"==r){var i=t(),a="";i.chatwidget.hasIn(["chatData","id"])&&(a=a+"/(hash)/"+i.chatwidget.getIn(["chatData","id"])+"_"+i.chatwidget.getIn(["chatData","hash"])),i.chatwidget.get("vid")&&(a=a+"/(vid)/"+i.chatwidget.get("vid")),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("screenshot",[window.lhcChat.base_url+"file/storescreenshot"+a])}else if("lhc_cobrowse"==r)_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("screenshare",[]);else if("lhc_cobrowse_cmd"==r)_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("screenshareCommand",[e]);else if("lhc_ui_refresh"==r){var o=t();updateUISettings({id:o.chatwidget.getIn(["chatData","id"]),hash:o.chatwidget.getIn(["chatData","hash"])})(n,t)}else if(-1!==r.indexOf("lhinst.updateMessageRow")){var s=t();updateMessage({msg_id:r.replace("lhinst.updateMessageRow(","").replace(")",""),id:s.chatwidget.getIn(["chatData","id"]),hash:s.chatwidget.getIn(["chatData","hash"])})(n,t)}}))}function updateMessage(e){return function(t,n){var r=this;n();axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/fetchmessage",e,defaultHeaders).then((function(e){var t=document.getElementById("msg-"+e.data.id);if(null!==t){var n=t.className;t.outerHTML=e.data.msg,t.className=n;var i=document.getElementById("messages-scroll");null!==i&&(i.scrollTop=i.scrollHeight+1e3);var a=document.getElementById("msg-"+e.data.id).getElementsByTagName("script"),o=!0,s=!1,u=void 0;try{for(var l,c=a[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var d=l.value,p={};if(d.hasAttributes())for(var h=d.attributes,f=h.length-1;f>=0;f--)p[h[f].name]=h[f].value;d.attribs=p,parseScript(d,r)}}catch(e){s=!0,u=e}finally{try{o||null==c.return||c.return()}finally{if(s)throw u}}}})).catch((function(e){console.log(e)}))}}function parseScript(domNode,inst){var attr=domNode.attribs;if("lhinst.disableVisitorEditor"==attr["data-bot-action"])inst.disableEditor=!0;else if("lhinst.setDelay"==attr["data-bot-action"])inst.delayData.push(JSON.parse(attr["data-bot-args"]));else if("execute-js"==attr["data-bot-action"])if(attr["data-bot-extension"]){var args={};void 0!==attr["data-bot-args"]&&(args=JSON.parse(attr["data-bot-args"])),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.emitEvent("extensionExecute",[attr["data-bot-extension"],[args]])}else if(attr["data-bot-emit"]){var args={};void 0!==attr["data-bot-args"]&&(args=JSON.parse(attr["data-bot-args"])),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.emitEvent(attr["data-bot-emit"],[args])}else if(attr["data-bot-event"])inst.props[attr["data-bot-event"]]();else if(attr.src){var th=document.getElementsByTagName("head")[0],s=document.createElement("script");s.setAttribute("type","text/javascript"),s.setAttribute("src",attr.src),th.appendChild(s)}else void 0!==domNode.children[0]&&void 0!==domNode.children[0].data&&eval(domNode.children[0].data)}function isNetworkError(e){return!!e.isAxiosError&&!e.response}function fetchMessages(e){return function(t,n){1!=syncStatus.msg&&(syncStatus.msg=!0,axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/fetchmessages",e,defaultHeaders).then((function(r){syncStatus.msg=!1,t({type:"FETCH_MESSAGES_SUBMITTED",data:r.data}),processResponseCheckStatus(r.data,n,t),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.emitEvent("chat.fetch_messages",[r.data,t,n]),(r.data.cs||r.data.closed&&!0===r.data.closed)&&axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/checkchatstatus",e,defaultHeaders).then((function(e){e.data.deleted?(_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("endChat",[{sender:"endButton"}]),clearTimeout(syncStatus.auto_close_timeout)):(t({type:"CHECK_CHAT_STATUS_FINISHED",data:e.data}),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.emitEvent("chat.check_status",[e.data,t,n])),e.data.closed&&!0===e.data.closed&&!e.data.deleted&&setAutoClose(n)})).catch((function(e){t({type:"CHECK_CHAT_STATUS_REJECTED",data:e})}))})).catch((function(e){isNetworkError(e)&&t({type:"NO_CONNECTION",data:!0}),syncStatus.msg=!1})))}}function checkChatStatus(e){return function(t,n){1!=syncStatus.status&&(syncStatus.status=!0,axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/checkchatstatus",e,defaultHeaders).then((function(e){e.data.deleted?(_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("endChat",[{sender:"endButton"}]),clearTimeout(syncStatus.auto_close_timeout)):(syncStatus.status=!1,t({type:"CHECK_CHAT_STATUS_FINISHED",data:e.data}),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.emitEvent("chat.check_status",[e.data,t,n])),e.data.closed&&!0===e.data.closed&&!e.data.deleted&&setAutoClose(n)})).catch((function(e){syncStatus.status=!1})))}}function setAutoClose(e){var t=e();t.chatwidget.hasIn(["chat_ui","open_timeout"])&&(clearTimeout(syncStatus.auto_close_timeout),syncStatus.auto_close_timeout=setTimeout((function(){_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("endChat",[{sender:"endButton"}]),clearTimeout(syncStatus.auto_close_timeout)}),1e3*t.chatwidget.getIn(["chat_ui","open_timeout"])))}function pageUnload(){return function(e,t){var n=t();if(n.chatwidget.hasIn(["chat_ui","close_on_unload"])&&"embed"==n.chatwidget.get("mode")){var r=!1,i=n.chatwidget.hasIn(["chatLiveData","status_sub"])&&(n.chatwidget.getIn(["chatLiveData","status_sub"])==_constants_chat_status__WEBPACK_IMPORTED_MODULE_2__.d||n.chatwidget.getIn(["chatLiveData","status_sub"])==_constants_chat_status__WEBPACK_IMPORTED_MODULE_2__.e||n.chatwidget.getIn(["chatLiveData","status_sub"])==_constants_chat_status__WEBPACK_IMPORTED_MODULE_2__.f&&(n.chatwidget.getIn(["chatLiveData","uid"])>0||n.chatwidget.getIn(["chatLiveData","status"])===_constants_chat_status__WEBPACK_IMPORTED_MODULE_2__.b)),a=n.chatwidget.getIn(["chatLiveData","status"])==_constants_chat_status__WEBPACK_IMPORTED_MODULE_2__.c&&n.chatwidget.getIn(["chatLiveData","uid"])>0;(1==i||a)&&n.chatwidget.hasIn(["chat_ui","survey_id"])&&(n.chatwidget.hasIn(["chat_ui","survey_button"])&&1!==n.chatwidget.getIn(["chat_ui_state","show_survey"])&&1!=i||(r=!0)),!1!==n.chatwidget.get("isMobile")&&!0!==r||_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("endChat",[{sender:"endButton"}])}n.chatwidget.hasIn(["chatData","id"])&&n.chatwidget.hasIn(["chatData","hash"])?axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"chat/userclosechat/"+n.chatwidget.getIn(["chatData","id"])+"/"+n.chatwidget.getIn(["chatData","hash"]),null,defaultHeaders):!0===n.chatwidget.getIn(["proactive","has"])&&"popup"==window.lhcChat.mode&&window.opener&&hideInvitation()(e,t)}}function checkErrorCounter(){2==syncStatus.error_counter&&_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("reloadWidget",[])}function addMessage(e){return function(t,n){try{_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.eventEmitter.emitEvent("messageSend",[{chat_id:e.id,hash:e.hash,msg:e.msg}])}catch(e){_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.logJSError({stack:JSON.stringify(JSON.stringify(e))})}axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"widgetrestapi/addmsguser",e,defaultHeaders).then((function(r){(r.data.error||n().chatwidget.getIn(["chatLiveData","error"]))&&t({type:"ADD_MESSAGES_SUBMITTED",data:{r:r.data.r,msg:e.msg}}),fetchMessages({theme:e.theme,chat_id:e.id,lmgsid:e.lmgsid,hash:e.hash})(t,n),r.data.t&&_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.sendMessageParent("botTrigger",[{trigger:r.data.t}]),void 0===r.data.r||!0===r.data.error&&!0===r.data.system?(syncStatus.error_counter++,2==syncStatus.error_counter&&(_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.logJSError({stack:JSON.stringify(JSON.stringify(r)+"\nRD:"+JSON.stringify(r.data)+"\nRH:"+JSON.stringify(r.headers)+"\nRS:"+JSON.stringify(r.status))}),checkErrorCounter()),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.eventEmitter.emitEvent("messageSendError",[{chat_id:e.id,hash:e.hash,msg:JSON.stringify(r.data)}])):syncStatus.error_counter=0})).catch((function(r){if(isNetworkError(r))t({type:"ADD_MESSAGES_SUBMITTED",data:{r:"SEND_CONNECTION",msg:e.msg}}),t({type:"NO_CONNECTION",data:!0});else{syncStatus.error_counter++;var i=null;i=r.response?JSON.stringify(JSON.stringify(r)+"\nRD:"+JSON.stringify(r.response.data)+"\nRH:"+JSON.stringify(r.response.headers)+"\nRS:"+JSON.stringify(r.response.status)):(r.request,JSON.stringify(JSON.stringify(r))),2==syncStatus.error_counter?(_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.logJSError({stack:i}),_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.eventEmitter.emitEvent("messageSendError",[{chat_id:e.id,hash:e.hash,msg:i}]),checkErrorCounter()):(t({type:"ADD_MESSAGES_SUBMITTED",data:{r:"SEND_FAILED",msg:e.msg}}),addMessage(e)(t,n))}}))}}function userTyping(e,t){return function(n,r){var i=r();"true"===e?_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.eventEmitter.emitEvent("visitorTyping",[{chat_id:i.chatwidget.getIn(["chatData","id"]),hash:i.chatwidget.getIn(["chatData","hash"]),status:!0,msg:t}]):_lib_helperFunctions__WEBPACK_IMPORTED_MODULE_1__.a.eventEmitter.emitEvent("visitorTyping",[{chat_id:i.chatwidget.getIn(["chatData","id"]),hash:i.chatwidget.getIn(["chatData","hash"]),status:!1}]),i.chatwidget.get("overrides").contains("typing")||axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(window.lhcChat.base_url+"chat/usertyping/"+i.chatwidget.getIn(["chatData","id"])+"/"+i.chatwidget.getIn(["chatData","hash"])+"/"+e,{msg:t},defaultHeaders).then((function(e){})).catch((function(e){console.log(e)}))}}},function(e,t,n){var r=n(21),i=n(2);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(60);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return u}));var r=1,i=2,a=5,o=2,s=3,u=5},function(e,t,n){e.exports=n(66)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return z}));var r=n(0),i=n.n(r),a=(n(61),i.a.createContext(null));var o=function(e){e()},s={notify:function(){}};function u(){var e=o,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var l=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}();var c=function(e){var t=e.store,n=e.context,o=e.children,s=Object(r.useMemo)((function(){var e=new l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=s.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,u]);var c=n||a;return i.a.createElement(c.Provider,{value:s},o)};function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var h=n(33),f=n.n(h),g=n(30),m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,_=[],v=[null,null];function y(e,t){var n=e[1];return[t.payload,n+1]}function b(e,t,n){m((function(){return e.apply(void 0,t)}),n)}function w(e,t,n,r,i,a,o){e.current=r,t.current=i,n.current=!1,a.current&&(a.current=null,o())}function E(e,t,n,r,i,a,o,s,u,l){if(e){var c=!1,d=null,p=function(){if(!c){var e,n,p=t.getState();try{e=r(p,i.current)}catch(e){n=e,d=e}n||(d=null),e===a.current?o.current||u():(a.current=e,s.current=e,o.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function S(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,s=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,u=n.methodName,c=void 0===u?"connectAdvanced":u,h=n.renderCountProp,m=void 0===h?void 0:h,S=n.shouldHandleStateChanges,x=void 0===S||S,T=n.storeKey,C=void 0===T?"store":T,I=(n.withRef,n.forwardRef),O=void 0!==I&&I,D=n.context,P=void 0===D?a:D,A=p(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),M=P;return function(t){var n=t.displayName||t.name||"Component",a=s(n),o=d({},A,{getDisplayName:s,methodName:c,renderCountProp:m,shouldHandleStateChanges:x,storeKey:C,displayName:a,wrappedComponentName:n,WrappedComponent:t}),u=A.pure;var h=u?r.useMemo:function(e){return e()};function S(n){var a=Object(r.useMemo)((function(){var e=n.forwardedRef,t=p(n,["forwardedRef"]);return[n.context,e,t]}),[n]),s=a[0],u=a[1],c=a[2],f=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(g.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:M}),[s,M]),m=Object(r.useContext)(f),S=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var T=S?n.store:m.store,C=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,o)}(T)}),[T]),I=Object(r.useMemo)((function(){if(!x)return v;var e=new l(T,S?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[T,S,m]),O=I[0],D=I[1],P=Object(r.useMemo)((function(){return S?m:d({},m,{subscription:O})}),[S,m,O]),A=Object(r.useReducer)(y,_,k),L=A[0][0],N=A[1];if(L&&L.error)throw L.error;var R=Object(r.useRef)(),j=Object(r.useRef)(c),B=Object(r.useRef)(),F=Object(r.useRef)(!1),U=h((function(){return B.current&&c===j.current?B.current:C(T.getState(),c)}),[T,L,c]);b(w,[j,R,F,c,U,B,D]),b(E,[x,T,O,C,j,R,F,B,D,N],[T,O,C]);var z=Object(r.useMemo)((function(){return i.a.createElement(t,d({},U,{ref:u}))}),[u,t,U]);return Object(r.useMemo)((function(){return x?i.a.createElement(f.Provider,{value:P},z):z}),[f,z,P])}var T=u?i.a.memo(S):S;if(T.WrappedComponent=t,T.displayName=a,O){var I=i.a.forwardRef((function(e,t){return i.a.createElement(T,d({},e,{forwardedRef:t}))}));return I.displayName=a,I.WrappedComponent=t,f()(I,t)}return f()(T,t)}}function x(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function T(e,t){if(x(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!x(e[n[i]],t[n[i]]))return!1;return!0}var C=n(19);function I(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function O(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function D(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=O(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=O(i),i=r(t,n)),i},r}}var P=[function(e){return"function"==typeof e?D(e):void 0},function(e){return e?void 0:I((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?I((function(t){return Object(C.b)(e,t)})):void 0}];var A=[function(e){return"function"==typeof e?D(e):void 0},function(e){return e?void 0:I((function(){return{}}))}];function M(e,t,n){return d({},n,{},e,{},t)}var L=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,a=n.areMergedPropsEqual,o=!1;return function(t,n,s){var u=e(t,n,s);return o?i&&a(u,r)||(r=u):(o=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return M}}];function N(e,t,n,r){return function(i,a){return n(e(i,a),t(r,a),a)}}function R(e,t,n,r,i){var a,o,s,u,l,c=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,h=!1;function f(i,h){var f,g,m=!d(h,o),_=!c(i,a);return a=i,o=h,m&&_?(s=e(a,o),t.dependsOnOwnProps&&(u=t(r,o)),l=n(s,u,o)):m?(e.dependsOnOwnProps&&(s=e(a,o)),t.dependsOnOwnProps&&(u=t(r,o)),l=n(s,u,o)):_?(f=e(a,o),g=!p(f,s),s=f,g&&(l=n(s,u,o)),l):l}return function(i,c){return h?f(i,c):(s=e(a=i,o=c),u=t(r,o),l=n(s,u,o),h=!0,l)}}function j(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,a=p(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),o=n(e,a),s=r(e,a),u=i(e,a);return(a.pure?R:N)(o,s,u,e,a)}function B(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function F(e,t){return e===t}function U(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,i=t.mapStateToPropsFactories,a=void 0===i?A:i,o=t.mapDispatchToPropsFactories,s=void 0===o?P:o,u=t.mergePropsFactories,l=void 0===u?L:u,c=t.selectorFactory,h=void 0===c?j:c;return function(e,t,n,i){void 0===i&&(i={});var o=i,u=o.pure,c=void 0===u||u,f=o.areStatesEqual,g=void 0===f?F:f,m=o.areOwnPropsEqual,_=void 0===m?T:m,v=o.areStatePropsEqual,y=void 0===v?T:v,b=o.areMergedPropsEqual,w=void 0===b?T:b,E=p(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),k=B(e,a,"mapStateToProps"),S=B(t,s,"mapDispatchToProps"),x=B(n,l,"mergeProps");return r(h,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:S,initMergeProps:x,pure:c,areStatesEqual:g,areOwnPropsEqual:_,areStatePropsEqual:y,areMergedPropsEqual:w},E))}}var z=U();var H,q=n(26);H=q.unstable_batchedUpdates,o=H},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return k}));var r=n(18),i=n.n(r),a=n(9),o=n.n(a),s=(n(21),n(0)),u=n.n(s),l=(n(51),n(3)),c=n.n(l),d=n(4),p=n.n(d);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g,m,_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},v=u.a.createContext();function y(){return m}function b(){return _}var w=function(){function e(){c()(this,e),this.usedNamespaces={}}return p()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function E(){return g}var k={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_=f({},_,{},e)}(e.options.react),function(e){g=e}(e)}};function S(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var x={};function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&x[t[0]]||("string"==typeof t[0]&&(x[t[0]]=new Date),S.apply(void 0,t))}function C(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return T("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e))))}function O(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var D=n(17),P=n.n(D);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(s.useContext)(v),i=y()&&r||{},a=i.i18n,o=i.defaultNS,u=n||a||E();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new w),!u){T("You will need pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}var d=M({},b(),{},u.options.react,{},t),p=d.useSuspense,h=e||o||u.options&&u.options.defaultNS;h="string"==typeof h?[h]:h||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(h);var f=(u.isInitialized||u.initializedStoreOnce)&&h.every((function(e){return I(e,u,d)}));function g(){return{t:u.getFixedT(null,"fallback"===d.nsMode?h:h[0])}}var m=Object(s.useState)(g()),_=P()(m,2),k=_[0],S=_[1];Object(s.useEffect)((function(){var e=!0,t=d.bindI18n,n=d.bindI18nStore;function r(){e&&S(g())}return f||p||C(u,h,(function(){e&&S(g())})),t&&u&&u.on(t,r),n&&u&&u.store.on(n,r),function(){e=!1,t&&u&&t.split(" ").forEach((function(e){return u.off(e,r)})),n&&u&&n.split(" ").forEach((function(e){return u.store.off(e,r)}))}}),[h.join()]);var x=[k.t,u,f];if(x.t=k.t,x.i18n=u,x.ready=f,f)return x;if(!f&&!p)return x;throw new Promise((function(e){C(u,h,(function(){S(g()),e()}))}))}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var a=r.forwardedRef,o=i()(r,["forwardedRef"]),s=L(e,o),l=P()(s,3),c=R({},o,{t:l[0],i18n:l[1],tReady:l[2]});return t.withRef&&a?c.ref=a:!t.withRef&&a&&(c.forwardedRef=a),u.a.createElement(n,c)}r.displayName="withI18nextTranslation(".concat(O(n),")"),r.WrappedComponent=n;return t.withRef?u.a.forwardRef((function(e,t){return u.a.createElement(r,Object.assign({},e,{forwardedRef:t}))})):r}}},function(e,t,n){var r=n(92),i=n(100),a={decodeEntities:!0,lowerCaseAttributeNames:!1};function o(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return r(i(e,a),t)}o.domToReact=r,o.htmlToDOM=i,e.exports=o},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";var r=n(36),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:u,isUndefined:o,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){var r=n(89),i=n(90),a=n(91);e.exports=function(e,t){return r(e)||i(e,t)||a()}},function(e,t,n){var r=n(84);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(34),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function o(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var u=e,l=t,c=[],d=c,p=!1;function h(){d===c&&(d=c.slice())}function f(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function g(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,h();var n=d.indexOf(e);d.splice(n,1),c=null}}}function m(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,l=u(l,e)}finally{p=!1}for(var t=c=d,n=0;n<t.length;n++){(0,t[n])()}return e}function _(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");u=e,m({type:a.REPLACE})}function v(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return m({type:a.INIT}),(i={dispatch:m,subscribe:g,getState:f,replaceReducer:_})[r.a]=v,i}function u(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},a=0;a<s.length;a++){var l=s[a],c=n[l],d=e[l],p=c(d,t);if(void 0===p){var h=u(l,t);throw new Error(h)}i[l]=p,r=r||p!==d}return(r=r||s.length!==Object.keys(e).length)?i:e}}function c(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=c(i,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return f({},n,{dispatch:r=g.apply(void 0,a)(n.dispatch)})}}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var i=[],a=i.forEach,o=i.slice;function s(e){return a.call(o.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function u(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":r(XMLHttpRequest))}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(module,__webpack_exports__,__webpack_require__){"use strict";var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(15),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2),_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),html_react_parser__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(14),html_react_parser__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(html_react_parser__WEBPACK_IMPORTED_MODULE_8__),react_redux__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(12),react_i18next__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(13),ChatBotIntroMessage=function(_PureComponent){function ChatBotIntroMessage(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,ChatBotIntroMessage),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(ChatBotIntroMessage).call(this,e))).abstractClick=t.abstractClick.bind(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(t)),t.updateTriggerClicked=t.updateTriggerClicked.bind(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(t)),t.processBotAction=t.processBotAction.bind(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5___default()(t)),t.disableEditor=!1,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ChatBotIntroMessage,_PureComponent),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ChatBotIntroMessage,[{key:"addLoader",value:function(e,t){e["data-no-change"]||"button"!=e.type||(t.setAttribute("disabled","disabled"),t.innerHTML='<i class="material-icons">&#xf113;</i>'+t.innerHTML)}},{key:"abstractClick",value:function(e,t){var n=this.props.t;if(this.addLoader(e,t.target),-1!==e.onclick.indexOf("lhinst.updateTriggerClicked"))this.updateTriggerClicked({type:"triggerclicked"},e,t.target);else if(-1!==e.onclick.indexOf("notificationsLHC.sendNotification"));else if(-1!==e.onclick.indexOf("lhinst.buttonClicked"))this.updateTriggerClicked({type:""},e,t.target);else if(-1!==e.onclick.indexOf("lhinst.updateChatClicked"))this.updateTriggerClicked({type:"",mainType:"updatebuttonclicked"},e,t.target);else if(-1!==e.onclick.indexOf("lhinst.editGenericStep"))this.updateTriggerClicked({type:"editgenericstep"},e,t.target);else if(-1!==e.onclick.indexOf("lhinst.dropdownClicked")){var r=document.getElementById("id_generic_list-"+e["data-id"]);r&&"0"!=r.value&&""!=r.value?(e["data-payload"]=r.value,this.updateTriggerClicked({type:"valueclicked"},e,t.target)):alert(n("bot.please_choose"))}else helperFunctions.emitEvent("MessageClick",[e,this.props.dispatch]),console.log("Unknown click event: "+e.onclick);t.preventDefault()}},{key:"updateTriggerClicked",value:function(e,t,n){this.props.setBotPayload({type:e.type,payload:t["data-payload"],id:t["data-id"],processed:void 0===t["data-keep"]})}},{key:"processBotAction",value:function processBotAction(domNode){var attr=domNode.attribs;"lhinst.disableVisitorEditor"==attr["data-bot-action"]?this.disableEditor=!0:"lhinst.setDelay"==attr["data-bot-action"]||"execute-js"==attr["data-bot-action"]&&eval(domNode.children[0].data)}},{key:"render",value:function(){var e=this;return html_react_parser__WEBPACK_IMPORTED_MODULE_8___default()(this.props.content,{replace:function(t){if(t.attribs){var n=Object.assign({},t.attribs);if(t.attribs.onclick&&delete t.attribs.onclick,t.name&&"button"===t.name){if(n.onclick)return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("button",_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},t.attribs,{onClick:function(t){return e.abstractClick(n,t)}}),Object(html_react_parser__WEBPACK_IMPORTED_MODULE_8__.domToReact)(t.children))}else if(t.name&&"a"===t.name){if(n.onclick)return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("a",_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},t.attribs,{onClick:function(t){return e.abstractClick(n,t)}}),Object(html_react_parser__WEBPACK_IMPORTED_MODULE_8__.domToReact)(t.children))}else t.name&&"script"===t.name&&t.attribs["data-bot-action"]&&e.processBotAction(t)}}})}}]),ChatBotIntroMessage}(react__WEBPACK_IMPORTED_MODULE_7__.PureComponent);__webpack_exports__.a=ChatBotIntroMessage},function(e,t,n){"use strict";var r=n(15),i=n.n(r),a=n(3),o=n.n(a),s=n(4),u=n.n(s),l=n(6),c=n.n(l),d=n(7),p=n.n(d),h=n(2),f=n.n(h),g=n(8),m=n.n(g),_=n(9),v=n.n(_),y=n(0),b=n.n(y),w=n(11),E=n.n(w),k=n(14),S=n.n(k),x=n(13),T=n(52),C=n.n(T),I=function(e){function t(e){var n;return o()(this,t),n=c()(this,p()(t).call(this,e)),v()(f()(n),"state",{body:null}),v()(f()(n),"dismissModal",(function(){n.props.toggle()})),v()(f()(n),"generalOnClick",(function(e){var t=n.props.t,r=e["data-bb-code"];if(e["data-promt"]&&"img"==e["data-promt"])(i=prompt(t("bbcode.img_link")))&&(r="["+r+"]"+i+"[/"+r+"]");else if(e["data-promt"]&&"url"==e["data-promt"]){var i;(i=prompt(t("bbcode.link")))&&(r="[url="+i+"]"+t("bbcode.link_here")+"[/url]")}n.props.insertText(r),n.props.toggle()})),v()(f()(n),"generalDataActionClick",(function(e){e["data-action"]&&n.props[e["data-action"]]&&n.props[e["data-action"]]()})),n}return m()(t,e),u()(t,[{key:"componentDidMount",value:function(){var e=this;E.a.get(window.lhcChat.base_url+this.props.dataUrl).then((function(t){e.setState({body:t.data});var r=document.getElementById("dialog-content"),i=n(25),a=r.querySelectorAll('[data-toggle="tab"]');if(a.length>0){var o=0;Array.prototype.forEach.call(a,(function(e){new i.Tab(e)}));var s=new C.a(".tab-content");s.onSwipeLeft((function(){o=o<a.length-1?o+1:0,a[o].Tab.show()})),s.onSwipeRight((function(){o=o>0?o-1:a.length-1,a[o].Tab.show()}))}})).catch((function(e){console.log(e)}))}},{key:"render",value:function(){var e=this;return b.a.createElement(b.a.Fragment,null,null!==this.state.body&&b.a.createElement("div",{className:"fade modal-backdrop show"}),null!==this.state.body&&b.a.createElement("div",{role:"dialog",id:"dialog-content","aria-modal":"true",className:"fade modal show d-block",tabIndex:"-1"},S()(this.state.body,{replace:function(t){if(t.attribs&&"react-close-modal"===t.attribs.id)return b.a.createElement("button",{type:"button",className:"close float-right","data-dismiss":"modal",onClick:e.dismissModal,"aria-label":"Close"},b.a.createElement("span",{"aria-hidden":"true"},"×"));if(t.attribs&&t.attribs.bbitem)return t.attribs.class&&(t.attribs.className=t.attribs.class,delete t.attribs.class),b.a.createElement("a",i()({},t.attribs,{onClick:function(n){return e.generalOnClick(t.attribs)}}),Object(k.domToReact)(t.children));if(t.type&&"tag"===t.type&&t.name&&"input"==t.name&&t.attribs&&t.attribs.type&&"button"==t.attribs.type)return t.attribs.class&&(t.attribs.className=t.attribs.class,delete t.attribs.class),b.a.createElement("input",i()({},t.attribs,{onClick:function(n){return e.generalDataActionClick(t.attribs)}}));if(t.type&&"script"===t.type){if(t.children.length>0)setTimeout((function(){var e=document.createElement("script");e.appendChild(document.createTextNode(t.children[0].data)),document.getElementsByTagName("head").item(0).appendChild(e)}),500);else if(t.attribs&&t.attribs.src){var n=document.createElement("script");n.src=t.attribs.src,n.type="text/javascript",document.getElementsByTagName("head").item(0).appendChild(n)}return b.a.createElement(b.a.Fragment,null)}}})))}}]),t}(y.PureComponent);t.a=Object(x.b)()(I)},function(e,t,n){(function(n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){"use strict";var e=void 0!==n?n:this||window,t=document,r=t.documentElement,i=e.BSN={},a=i.supports=[],o="active",s="left",u=0,l="WebkitTransition"in r.style||"Transition".toLowerCase()in r.style,c="WebkitTransition"in r.style?"Webkit".toLowerCase()+"TransitionEnd":"Transition".toLowerCase()+"end",d="WebkitDuration"in r.style?"Webkit".toLowerCase()+"TransitionDuration":"Transition".toLowerCase()+"Duration",p=function(e){e.focus?e.focus():e.setActive()},h=function(e,t){e.classList.add(t)},f=function(e,t){e.classList.remove(t)},g=function(e,t){return e.classList.contains(t)},m=function(e,t){return[].slice.call(e.getElementsByClassName(t))},_=function(e,n){return"object"==typeof e?e:(n||t).querySelector(e)},v=function(e,t,n,r){r=r||!1,e.addEventListener(t,n,r)},y=function(e,t,n,r){r=r||!1,e.removeEventListener(t,n,r)},b=function(e,t,n,r){v(e,t,(function i(a){n(a),y(e,t,i,r)}),r)},w=!!function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});b(e,"testPassive",null,n)}catch(e){}return t}()&&{passive:!0},E=function(t){var n=l?e.getComputedStyle(t)[d]:0;return n="number"!=typeof(n=parseFloat(n))||isNaN(n)?0:1e3*n},k=function(e,t){var n=0;E(e)?b(e,c,(function(e){!n&&t(e),n=1})):setTimeout((function(){!n&&t(),n=1}),17)},S=function(e,t,n){var r=new CustomEvent(e+".bs."+t);r.relatedTarget=n,this.dispatchEvent(r)};i.version="2.0.27";var x=function(n,i){var a=(n=_(n)).getAttribute("data-target")||n.getAttribute("href"),o=_(a),s=g(n,"modal")?n:o;if(g(n,"modal")&&(n=null),s){i=i||{},this.keyboard=!1!==i.keyboard&&"false"!==s.getAttribute("data-keyboard"),this.backdrop="static"!==i.backdrop&&"static"!==s.getAttribute("data-backdrop")||"static",this.backdrop=!1!==i.backdrop&&"false"!==s.getAttribute("data-backdrop")&&this.backdrop,this.animation=!!g(s,"fade"),this.content=i.content,s.isAnimating=!1;var c,d,b,x,T,C=this,I=null,O=m(r,"fixed-top").concat(m(r,"fixed-bottom")),D=function(){var n,r=e.getComputedStyle(t.body),i=parseInt(r.paddingRight,10);if(c&&(t.body.style.paddingRight=i+d+"px",s.style.paddingRight=d+"px",O.length))for(var a=0;a<O.length;a++)n=e.getComputedStyle(O[a]).paddingRight,O[a].style.paddingRight=parseInt(n)+d+"px"},P=function(){var n,i,a;c=t.body.clientWidth<(n=r.getBoundingClientRect(),e.innerWidth||n.right-Math.abs(n.left)),(a=t.createElement("div")).className="modal-scrollbar-measure",t.body.appendChild(a),i=a.offsetWidth-a.clientWidth,t.body.removeChild(a),d=i},A=function(){(b=_(".modal-backdrop"))&&null!==b&&"object"==typeof b&&(u=0,t.body.removeChild(b),b=null)},M=function(){p(s),s.isAnimating=!1,S.call(s,"shown","modal",I),v(e,"resize",C.update,w),v(s,"click",R),v(t,"keydown",N)},L=function(){s.style.display="",n&&p(n),S.call(s,"hidden","modal"),m(t,"modal show")[0]||(function(){if(t.body.style.paddingRight="",s.style.paddingRight="",O.length)for(var e=0;e<O.length;e++)O[e].style.paddingRight=""}(),f(t.body,"modal-open"),b&&g(b,"fade")?(f(b,"show"),k(b,A)):A(),y(e,"resize",C.update,w),y(s,"click",R),y(t,"keydown",N)),s.isAnimating=!1},N=function(e){s.isAnimating||C.keyboard&&27==e.which&&g(s,"show")&&C.hide()},R=function(e){if(!s.isAnimating){var t=e.target;g(s,"show")&&("modal"===t.parentNode.getAttribute("data-dismiss")||"modal"===t.getAttribute("data-dismiss")||t===s&&"static"!==C.backdrop)&&(C.hide(),I=null,e.preventDefault())}};this.toggle=function(){g(s,"show")?this.hide():this.show()},this.show=function(){g(s,"show")||s.isAnimating||(clearTimeout(T),T=setTimeout((function(){s.isAnimating=!0,S.call(s,"show","modal",I);var e,n=m(t,"modal show")[0];n&&n!==s&&("modalTrigger"in n&&n.modalTrigger.Modal.hide(),"Modal"in n&&n.Modal.hide()),C.backdrop&&!u&&!b&&(e=t.createElement("div"),null===(b=_(".modal-backdrop"))&&(e.setAttribute("class","modal-backdrop"+(C.animation?" fade":"")),b=e,t.body.appendChild(b)),u=1),b&&!g(b,"show")&&(b.offsetWidth,x=E(b),h(b,"show")),setTimeout((function(){s.style.display="block",P(),D(),h(t.body,"modal-open"),h(s,"show"),s.setAttribute("aria-hidden",!1),g(s,"fade")?k(s,M):M()}),l&&b&&x?x:1)}),1))},this.hide=function(){!s.isAnimating&&g(s,"show")&&(clearTimeout(T),T=setTimeout((function(){s.isAnimating=!0,S.call(s,"hide","modal"),b=_(".modal-backdrop"),x=b&&E(b),f(s,"show"),s.setAttribute("aria-hidden",!0),setTimeout((function(){g(s,"fade")?k(s,L):L()}),l&&b&&x?x:2)}),2))},this.setContent=function(e){_(".modal-content",s).innerHTML=e},this.update=function(){g(s,"show")&&(P(),D())},!n||"Modal"in n||v(n,"click",(function(e){if(!s.isAnimating){var t=e.target;(t=t.hasAttribute("data-target")||t.hasAttribute("href")?t:t.parentNode)!==n||g(s,"show")||(s.modalTrigger=n,I=n,C.show(),e.preventDefault())}})),C.content&&C.setContent(C.content),n?(n.Modal=C,s.modalTrigger=n):s.Modal=C}};a.push(["Modal",x,'[data-toggle="modal"]']);var T=function(e,n){e=_(e),this.persist=!0===n||"true"===e.getAttribute("data-persist")||!1;var r=this,i=e.parentNode,a=null,o=_(".dropdown-menu",i),s=function(){for(var e=o.children,t=[],n=0;n<e.length;n++)e[n].children.length&&"A"===e[n].children[0].tagName&&t.push(e[n].children[0]),"A"===e[n].tagName&&t.push(e[n]);return t}(),u=function(e){(e.href&&"#"===e.href.slice(-1)||e.parentNode&&e.parentNode.href&&"#"===e.parentNode.href.slice(-1))&&this.preventDefault()},l=function(){var n=e.open?v:y;n(t,"click",c),n(t,"keydown",m),n(t,"keyup",b),n(t,"focus",c,!0)},c=function(t){var n=t.target,i=n&&(n.getAttribute("data-toggle")||n.parentNode&&"getAttribute"in n.parentNode&&n.parentNode.getAttribute("data-toggle"));("focus"!==t.type||n!==e&&n!==o&&!o.contains(n))&&(n!==o&&!o.contains(n)||!r.persist&&!i)&&(a=n===e||e.contains(n)?e:null,E(),u.call(t,n))},d=function(t){a=e,w(),u.call(t,t.target)},m=function(e){var t=e.which||e.keyCode;38!==t&&40!==t||e.preventDefault()},b=function(n){var i=n.which||n.keyCode,u=t.activeElement,l=s.indexOf(u),c=u===e,d=o.contains(u),h=u.parentNode===o||u.parentNode.parentNode===o;h&&(l=c?0:38===i?l>1?l-1:0:40===i&&l<s.length-1?l+1:l,s[l]&&p(s[l])),(s.length&&h||!s.length&&(d||c)||!d)&&e.open&&27===i&&(r.toggle(),a=null)},w=function(){S.call(i,"show","dropdown",a),h(o,"show"),h(i,"show"),e.setAttribute("aria-expanded",!0),S.call(i,"shown","dropdown",a),e.open=!0,y(e,"click",d),setTimeout((function(){p(o.getElementsByTagName("INPUT")[0]||e),l()}),1)},E=function(){S.call(i,"hide","dropdown",a),f(o,"show"),f(i,"show"),e.setAttribute("aria-expanded",!1),S.call(i,"hidden","dropdown",a),e.open=!1,l(),p(e),setTimeout((function(){v(e,"click",d)}),1)};e.open=!1,this.toggle=function(){g(i,"show")&&e.open?E():w()},"Dropdown"in e||(!1 in o&&o.setAttribute("tabindex","0"),v(e,"click",d)),e.Dropdown=r};a.push(["Dropdown",T,'[data-toggle="dropdown"]']);var C=function(e,n){var r=(e=_(e)).getAttribute("data-height");n=n||{},this.height=!!l&&(n.height||"true"===r);var i,a,u,c,d,p,y,b=this,w=function(e,n){var r=n.charAt(0),i=n.substr(1);if("."===r){for(;e&&e!==t;e=e.parentNode)if(null!==_(n,e.parentNode)&&g(e,i))return e}else if("#"===r)for(;e&&e!==t;e=e.parentNode)if(e.id===i)return e;return!1}(e,".nav"),E=!1,x=w&&_(".dropdown-toggle",w),T=function(){E.style.height="",f(E,"collapsing"),w.isAnimating=!1},C=function(){E?p?T():setTimeout((function(){E.style.height=y+"px",E.offsetWidth,k(E,T)}),50):w.isAnimating=!1,S.call(i,"shown","tab",a)},I=function(){E&&(u.style.float=s,c.style.float=s,d=u.scrollHeight),h(c,o),S.call(i,"show","tab",a),f(u,o),S.call(a,"hidden","tab",i),E&&(y=c.scrollHeight,p=y===d,h(E,"collapsing"),E.style.height=d+"px",E.offsetHeight,u.style.float="",c.style.float=""),g(c,"fade")?setTimeout((function(){h(c,"show"),k(c,C)}),20):C()};if(w){w.isAnimating=!1;var O=function(){var e,t=m(w,o);return 1!==t.length||g(t[0].parentNode,"dropdown")?t.length>1&&(e=t[t.length-1]):e=t[0],e},D=function(){return _(O().getAttribute("href"))};this.show=function(){c=_((i=i||e).getAttribute("href")),a=O(),u=D(),w.isAnimating=!0,f(a,o),a.setAttribute("aria-selected","false"),h(i,o),i.setAttribute("aria-selected","true"),x&&(g(e.parentNode,"dropdown-menu")?g(x,o)||h(x,o):g(x,o)&&f(x,o)),S.call(a,"hide","tab",i),g(u,"fade")?(f(u,"show"),k(u,I)):I()},"Tab"in e||v(e,"click",(function(e){e.preventDefault(),i=e.currentTarget,!w.isAnimating&&!g(i,o)&&b.show()})),b.height&&(E=D().parentNode),e.Tab=b}};a.push(["Tab",C,'[data-toggle="tab"]']);var I=function(e,t){for(var n=0,r=t.length;n<r;n++)new e(t[n])},O=i.initCallback=function(e){e=e||t;for(var n=0,r=a.length;n<r;n++)I(a[n][1],e.querySelectorAll(a[n][2]))};return t.body?O():v(t,"DOMContentLoaded",(function(){O()})),{Modal:x,Dropdown:T,Tab:C}})?r.apply(t,i):r)||(e.exports=a)}).call(this,n(22))},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(57)},function(e,t,n){"use strict";var r=n(3),i=n.n(r),a=n(4),o=n.n(a),s=n(6),u=n.n(s),l=n(7),c=n.n(l),d=n(8),p=n.n(d),h=n(0),f=n.n(h),g=function(e){function t(e){return i()(this,t),u()(this,c()(t).call(this,e))}return p()(t,e),o()(t,[{key:"render",value:function(){return f.a.createElement(f.a.Fragment,null,f.a.createElement("div",{className:"fade modal-backdrop show"}),f.a.createElement("div",{role:"dialog",id:"dialog-content","aria-modal":"true",className:"fade modal show d-block p-2",tabIndex:"-1"},f.a.createElement("div",{className:"modal-content p-2"},f.a.createElement("p",null,this.props.text),f.a.createElement("div",{className:"modal-footer"},f.a.createElement("button",{className:"btn btn-secondary btn-sm",onClick:this.props.close,type:"button"},this.props.closeText)))))}}]),t}(h.PureComponent);t.a=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(e&&"function"==typeof e.then)}},function(e,t,n){(function(r){var i;if("function"==typeof fetch&&(void 0!==r&&r.fetch?i=r.fetch:"undefined"!=typeof window&&window.fetch&&(i=window.fetch)),"undefined"==typeof window||void 0===window.document){var a=i||n(104);a.default&&(a=a.default),t.default=a,e.exports=t.default}}).call(this,n(22))},function(e,t,n){"use strict";e.exports=n(64)},function(e,t,n){"use strict";var r=n(3),i=n.n(r),a=n(4),o=n.n(a),s=n(6),u=n.n(s),l=n(7),c=n.n(l),d=n(2),p=n.n(d),h=n(8),f=n.n(h),g=n(9),m=n.n(g),_=n(0),v=n.n(_),y=n(13),b=function(e){function t(e){var n;return i()(this,t),n=u()(this,c()(t).call(this,e)),m()(p()(n),"state",{hiddenIfPrefilled:!1}),n.onchangeAttr=n.onchangeAttr.bind(p()(n)),n.onFileAdded=n.onFileAdded.bind(p()(n)),n}return f()(t,e),o()(t,[{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.field.get("name"),value:e.value,field:this.props.field})}},{key:"onFileAdded",value:function(e){for(var t=this,n=e.target.files,r=[],i=0;i<n.length;i++)r.push(n.item(i));if(0==n.length)return null;var a=new RegExp("(.|/)("+this.props.field.get("ft_us")+")$","i"),o=this.props.t,s=[];r.forEach((function(e){a.test(e.type)||a.test(e.name)||s.push(e.name+": "+o("file.incorrect_type")),e.size>t.props.field.get("fs")&&s.push(e.name+": "+o("file.to_big_file"))})),s.length>0?alert(s.join("\n")):this.props.onChangeContent({id:this.props.field.get("name"),value:r[0],field:this.props.field})}},{key:"componentDidMount",value:function(){var e=this;"checkbox"==this.props.field.get("type")&&1==this.props.field.get("default")?this.props.onChangeContent({id:this.props.field.get("name"),value:!0}):"dropdown"==this.props.field.get("type")&&this.props.onChangeContent({id:this.props.field.get("name"),value:this.props.defaultValueField}),this.props.attrPrefill&&this.props.attrPrefill.attr_prefill_admin&&this.props.attrPrefill.attr_prefill_admin.forEach((function(t){(t.index==e.props.field.get("identifier")||e.props.field.has("identifier_prefill")&&t.index==e.props.field.get("identifier_prefill"))&&(e.props.onChangeContent({id:e.props.field.get("name"),value:t.value}),e.props.field.has("hide_prefilled")&&1==e.props.field.get("hide_prefilled")&&!1===e.props.isInvalid&&e.setState({hiddenIfPrefilled:!0}))}))}},{key:"render",value:function(){var e=this;if(!0===this.state.hiddenIfPrefilled&&!0!==this.props.isInvalid)return null;var t="col-"+this.props.field.get("width"),n=!0===this.props.field.get("required"),r=[];if(""!=this.props.field.get("class")&&r.push(this.props.field.get("class")),!0===this.props.isInvalid&&r.push("is-invalid"),"text"==this.props.field.get("type"))return v.a.createElement("div",{className:t},v.a.createElement("div",{className:"form-group"},v.a.createElement("label",{className:"control-label"},this.props.field.get("label"),!0===n?"*":""),v.a.createElement("input",{type:"text",className:r.join(" "),required:n,onChange:function(t){return e.onchangeAttr({value:t.target.value})},name:this.props.field.get("name"),defaultValue:this.props.defaultValueField,placeholder:this.props.field.get("placeholder")})));if("password"==this.props.field.get("type"))return v.a.createElement("div",{className:t},v.a.createElement("div",{className:"form-group"},v.a.createElement("label",{className:"control-label"},this.props.field.get("label"),!0===n?"*":""),v.a.createElement("input",{type:"password",autocomplete:"new-password",className:r.join(" "),required:n,onChange:function(t){return e.onchangeAttr({value:t.target.value})},name:this.props.field.get("name"),defaultValue:this.props.defaultValueField,placeholder:this.props.field.get("placeholder")})));if("textarea"==this.props.field.get("type"))return v.a.createElement("div",{className:t},v.a.createElement("div",{className:"form-group"},!this.props.chatUI.has("hide_message_label")&&"question"==this.props.field.get("identifier")&&v.a.createElement("label",{className:"control-label"},this.props.field.get("label"),!0===n?"*":""),v.a.createElement("textarea",{className:r.join(" "),required:n,onChange:function(t){return e.onchangeAttr({value:t.target.value})},name:this.props.field.get("name"),defaultValue:this.props.defaultValueField,placeholder:this.props.field.get("placeholder")})));if("file"==this.props.field.get("type"))return v.a.createElement("div",{className:t},v.a.createElement("div",{className:"form-group overflow-hidden"},v.a.createElement("label",{className:"control-label"},this.props.field.get("label"),!0===n?"*":""),v.a.createElement("input",{type:"file",onChange:function(t){return e.onFileAdded(t)},className:this.props.field.get("class"),required:n,name:this.props.field.get("name")})));if("checkbox"==this.props.field.get("type"))return v.a.createElement("div",{className:t},v.a.createElement("div",{className:"form-group"},v.a.createElement("div",{className:"form-check"},v.a.createElement("input",{className:r.join(" "),id:"check-for-"+this.props.field.get("name"),defaultChecked:this.props.field.get("default"),type:"checkbox",value:"on",onChange:function(t){return e.onchangeAttr({value:t.target.checked})},required:n,name:this.props.field.get("name")}),v.a.createElement("label",{className:"form-check-label",for:"check-for-"+this.props.field.get("name"),dangerouslySetInnerHTML:{__html:this.props.field.get("label")}}))));if("hidden"==this.props.field.get("type"))return v.a.createElement("input",{type:"hidden",className:r.join(" "),required:n,onChange:function(t){return e.onchangeAttr({value:t.target.value})},name:this.props.field.get("name"),defaultValue:this.props.defaultValueField,placeholder:this.props.field.get("placeholder")});if("dropdown"==this.props.field.get("type")){var i=this.props.field.get("options").map((function(t){return v.a.createElement("option",{key:"opt-drop-"+t.get("value"),selected:e.props.defaultValueField==t.get("value"),value:t.get("value")},t.get("name"))}));return v.a.createElement("div",{className:t},v.a.createElement("div",{className:"form-group"},v.a.createElement("label",{className:"control-label"},this.props.field.get("label"),!0===n?"*":""),v.a.createElement("select",{className:r.join(" "),required:n,onChange:function(t){return e.onchangeAttr({value:t.target.value})},name:this.props.field.get("name"),defaultValue:this.props.defaultValueField},i)))}return console.log("Unknown field"),null}}]),t}(_.Component);t.a=Object(y.b)()(b)},function(e,t,n){e.exports=n(103)},function(e,t,n){"use strict";var r=n(30),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var o=c(n);d&&(o=o.concat(d(n)));for(var s=u(t),g=u(n),m=0;m<o.length;++m){var _=o[m];if(!(a[_]||r&&r[_]||g&&g[_]||s&&s[_])){var v=p(n,_);try{l(t,_,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";(function(e,r){var i,a=n(50);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(a.a)(i);t.a=o}).call(this,n(22),n(65)(e))},function(e,t,n){"use strict";
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=o(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))i.call(n,c)&&(u[c]=n[c]);if(r){s=r(n);for(var d=0;d<s.length;d++)a.call(n,s[d])&&(u[s[d]]=n[s[d]])}}return u}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(16);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(16),i=n(71),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(41)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(40))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var u,l=[],c=!1,d=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&h())}function h(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(16),i=n(72),a=n(74),o=n(37),s=n(75),u=n(78),l=n(79),c=n(42);e.exports=function(e){return new Promise((function(t,n){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(f+":"+g)}var m=s(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,a={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,a),h=null}},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var _=(e.withCredentials||l(m))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;_&&(p[e.xsrfHeaderName]=_)}if("setRequestHeader"in h&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(73);e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(a,l),r.forEach(o,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var c=i.concat(a).concat(o).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(d,l),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=n(3),i=n.n(r),a=n(4),o=n.n(a),s=n(6),u=n.n(s),l=n(7),c=n.n(l),d=n(2),p=n.n(d),h=n(8),f=n.n(h),g=n(0),m=n.n(g),_=n(13),v=n(5),y=n(12),b=function(e){function t(e){var n;return i()(this,t),(n=u()(this,c()(t).call(this,e))).onchangeAttr=n.onchangeAttr.bind(p()(n)),n.onchangeAttrProduct=n.onchangeAttrProduct.bind(p()(n)),n}return f()(t,e),o()(t,[{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:"DepartamentID",value:e.value}),!0===this.props.departments.getIn(["settings","product_by_department"])&&this.props.dispatch(Object(v.e)({dep_id:e.value}))}},{key:"onchangeAttrProduct",value:function(e){this.props.onChangeContent({id:"ProductID",value:e.value})}},{key:"componentDidMount",value:function(){!0!==this.props.departments.getIn(["settings","product"])||!0!==this.props.departments.getIn(["settings","product_by_department"])&&!this.props.departments.has("products")||this.props.onChangeContent({id:"HasProductID",value:!0}),0!=this.props.departments.get("departments").size&&(1!=this.props.departments.get("departments").size&&this.props.departments.hasIn(["settings","optional"])?this.props.departments.get("departments").size>1&&this.onchangeAttr({value:-1}):this.onchangeAttr({value:this.props.setDefaultValue||this.props.departments.getIn(["departments",0]).get("value")}))}},{key:"render",value:function(){var e=this,t=this.props.t,n=null;if(this.props.departments.get("departments").size>1&&!this.props.departments.hasIn(["settings","hide_department"])){var r=["form-control","form-control-sm"];!0===this.props.isInvalid&&r.push("is-invalid");var i=this.props.departments.get("departments").map((function(e){return m.a.createElement("option",{key:"dep-"+e.get("value"),value:e.get("value")},e.get("name")," ",e.get("online")?"":t("department.offline"))}));n=m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{className:"control-label"},this.props.departments.getIn(["settings","label"]),"*"),m.a.createElement("select",{id:"id-department-field",defaultValue:this.props.setDefaultValue||this.props.defaultValueField,className:r.join(" "),onChange:function(t){return e.onchangeAttr({value:t.target.value})}},this.props.departments.hasIn(["settings","optional"])&&m.a.createElement("option",{value:"-1"},this.props.departments.getIn(["settings","optional"])),i))}var a=null;if(!0===this.props.departments.getIn(["settings","product"])){var o=["form-control","form-control-sm"];!0===this.props.isInvalidProduct&&o.push("is-invalid");var s=this.props.departments.has("products")?this.props.departments.get("products").map((function(e){return m.a.createElement("option",{key:"product-"+e.get("value"),value:e.get("value")},e.get("name"))})):"";this.props.departments.has("products")&&this.props.departments.get("products").size>0&&(a=m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{className:"control-label"},t("department.product"),!0===this.props.departments.getIn(["settings","product_required"])?"*":""),m.a.createElement("select",{className:o.join(" "),onChange:function(t){return e.onchangeAttrProduct({value:t.target.value})}},m.a.createElement("option",{value:""},t("department.choose_a_product")),s)))}return null!==a||null!==n?m.a.createElement("div",{className:"col-12"},n,a):null}}]),t}(g.Component);t.a=Object(y.b)()(Object(_.b)()(b))},function(e,t,n){var r=n(0),i=/-([a-z])/g,a=/^--[a-zA-Z0-9-]+$|^[^-]+$/;var o=r.version.split(".")[0]>=16;e.exports={PRESERVE_CUSTOM_ATTRIBUTES:o,camelCase:function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");return a.test(e)?e:e.toLowerCase().replace(i,(function(e,t){return t.toUpperCase()}))},invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,a={},o={};for(n in e)r=e[n],i&&(a=t(n,r))&&2===a.length?o[a[0]]=a[1]:"string"==typeof r&&(o[r]=n);return o},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}}},function(e,t,n){for(var r,i=n(102).CASE_SENSITIVE_TAG_NAMES,a={},o=0,s=i.length;o<s;o++)r=i[o],a[r.toLowerCase()]=r;function u(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function l(e){var t=function(e){return a[e]}(e=e.toLowerCase());return t||e}e.exports={formatAttributes:u,formatDOM:function e(t,n,r){n=n||null;for(var i,a,o,s=[],c=0,d=t.length;c<d;c++){switch(i=t[c],o={next:null,prev:s[c-1]||null,parent:n},(a=s[c-1])&&(a.next=o),"#"!==i.nodeName[0]&&(o.name=l(i.nodeName),o.attribs={},i.attributes&&i.attributes.length&&(o.attribs=u(i.attributes))),i.nodeType){case 1:"script"===o.name||"style"===o.name?o.type=o.name:o.type="tag",o.children=e(i.childNodes,o);break;case 3:o.type="text",o.data=i.nodeValue;break;case 8:o.type="comment",o.data=i.nodeValue}s.push(o)}return r&&(s.unshift({name:r.substring(0,r.indexOf(" ")).toLowerCase(),data:r,type:"directive",next:s[0]?s[0]:null,prev:null,parent:n}),s[1]&&(s[1].prev=s[0])),s},isIE:function(e){return e?document.documentMode===e:/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},function(e,t){function n(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,u,"next",e)}function u(e){n(o,i,a,s,u,"throw",e)}s(void 0)}))}}},function(e,t,n){"use strict";var r,i=n(3),a=n.n(i),o=n(4),s=n.n(o),u=n(6),l=n.n(u),c=n(7),d=n.n(c),p=n(2),h=n.n(p),f=n(8),g=n.n(f),m=n(9),_=n.n(m),v=n(0),y=n.n(v),b=n(12),w=n(13),E=n(31),k=n(17),S=n.n(k),x=function(e){function t(e){return a()(this,t),l()(this,d()(t).call(this,e))}return g()(t,e),s()(t,[{key:"render",value:function(){var e=this.props.errors.mapEntries((function(e){var t=S()(e,2),n=t[0],r=t[1];if("captcha"==n||"blocked_user"==n||!isNaN(n))return[y.a.createElement("li",null,r)]}));return e.size>0?y.a.createElement("div",{"data-alert":"",className:"mt-2 alert alert-danger alert-dismissible fade show"},y.a.createElement("ul",{className:"pl-1 m-0"},e)):null}}]),t}(v.Component),T=n(45),C=n(24),I=function(e){function t(e){return a()(this,t),l()(this,d()(t).call(this,e))}return g()(t,e),s()(t,[{key:"componentDidMount",value:function(){new(n(25).Dropdown)(document.getElementById("chat-dropdown-options"))}},{key:"render",value:function(){var e=this;return y.a.createElement("div",{className:"btn-group dropup disable-select pl-2 pt-2"},y.a.createElement("i",{className:"material-icons settings text-muted",id:"chat-dropdown-options","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},""),y.a.createElement("div",{className:"dropdown-menu shadow bg-white lhc-dropdown-menu rounded ml-1"},y.a.createElement("div",{className:"d-flex flex-row px-1"},y.a.createElement("a",{onClick:function(t){return e.props.toggleModal()}},y.a.createElement("i",{className:"material-icons chat-setting-item text-muted mr-0"},"")))))}}]),t}(v.PureComponent),O=n(1),D=n(23),P=function(e){function t(e){return a()(this,t),l()(this,d()(t).call(this,e))}return g()(t,e),s()(t,[{key:"componentDidMount",value:function(){O.a.sendMessageParent("readInvitation",[{name:this.props.invitation.invitation_name||"Manual"}])}},{key:"render",value:function(){return"message"==this.props.mode?y.a.createElement(y.a.Fragment,null,this.props.invitation.prev_msg&&y.a.createElement(D.a,{setBotPayload:this.props.setBotPayload,content:this.props.invitation.prev_msg}),y.a.createElement("div",{className:"message-row message-admin"},y.a.createElement("span",{className:"usr-tit op-tit"},y.a.createElement("i",{title:this.props.invitation.name_support||this.props.invitation.extra_profile,className:"chat-operators mi-fs15 mr-0"},this.props.invitation.bubble&&this.props.invitation.photo&&y.a.createElement("img",{src:this.props.invitation.photo,alt:"",className:"profile-msg-pic"}),(!this.props.invitation.photo||!this.props.invitation.bubble)&&y.a.createElement("i",{className:"material-icons "+(this.props.invitation.bubble?"icon-assistant mr-0":"")},"")),!this.props.invitation.bubble&&(this.props.invitation.name_support||this.props.invitation.extra_profile)),y.a.createElement("div",{className:"msg-body",dangerouslySetInnerHTML:{__html:this.props.invitation.message}})),this.props.invitation.message_full&&y.a.createElement(D.a,{setBotPayload:this.props.setBotPayload,content:this.props.invitation.message_full})):y.a.createElement(y.a.Fragment,null,y.a.createElement("div",{id:"lhc-profile-body"},y.a.createElement("div",{id:"chat-status-container",className:"operator-info d-flex border-bottom p-2"},y.a.createElement("div",null,this.props.invitation.photo&&y.a.createElement("img",{width:"48",height:"48",src:this.props.invitation.photo,title:this.props.invitation.photo_title,alt:""}),!this.props.invitation.photo&&y.a.createElement("i",{className:"icon-assistant material-icons mr-0"},"")),y.a.createElement("div",{className:"p-1 pl-2 w-100"},this.props.invitation.name_support&&!this.props.invitation.hide_name&&y.a.createElement("div",{className:"font-weight-bold"},this.props.invitation.name_support),this.props.invitation.extra_profile&&y.a.createElement("i",null,this.props.invitation.extra_profile)))),"profile_only"!=this.props.mode&&y.a.createElement("div",{id:"messagesBlock"},y.a.createElement("div",{className:"bottom-message position-relative"},y.a.createElement("div",{className:"message-row message-admin pt-1 text-left ml-3"},y.a.createElement("div",{className:"msg-body",dangerouslySetInnerHTML:{__html:this.props.invitation.message}})))))}}]),t}(v.PureComponent),A=n(27),M=n(5);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){_()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=Object(b.b)((function(e){return{chatwidget:e.chatwidget}}))(r=function(e){function t(e){var n;return a()(this,t),n=l()(this,d()(t).call(this,e)),_()(h()(n),"insertText",(function(e){var t=n.textMessageRef.current.selectionStart;n.setState({Question:n.state.Question.substring(0,t)+e+n.state.Question.substring(t)})})),n.apiLoaded=!1,n.state={showBBCode:null,Question:""},n.botPayload=null,n.handleSubmit=n.handleSubmit.bind(h()(n)),n.enterKeyDown=n.enterKeyDown.bind(h()(n)),n.handleContentChange=n.handleContentChange.bind(h()(n)),n.handleContentChangeCustom=n.handleContentChangeCustom.bind(h()(n)),n.setBotPayload=n.setBotPayload.bind(h()(n)),n.toggleModal=n.toggleModal.bind(h()(n)),n.textMessageRef=y.a.createRef(),n.messagesAreaRef=y.a.createRef(),n}return g()(t,e),s()(t,[{key:"toggleModal",value:function(){this.setState({showBBCode:!this.state.showBBCode})}},{key:"enterKeyDown",value:function(e){"Enter"!==e.key||e.shiftKey||(this.handleSubmit(e),e.preventDefault())}},{key:"handleSubmit",value:function(e){if(0==this.props.chatwidget.get("processStatus")){var t=document.getElementById("CSChatMessage");null!==t&&(t.focus(),this.props.setHideMessageField(!1));var n=this.state;n.jsvar=this.props.chatwidget.get("jsVars"),n["captcha_"+this.props.chatwidget.getIn(["captcha","hash"])]=this.props.chatwidget.getIn(["captcha","ts"]),n.tscaptcha=this.props.chatwidget.getIn(["captcha","ts"]),n.user_timezone=O.a.getTimeZone(),n.URLRefer=window.location.href.substring(window.location.protocol.length),n.r=this.props.chatwidget.get("ses_ref"),""!=this.props.chatwidget.get("bot_id")&&(n.bot_id=this.props.chatwidget.get("bot_id")),""!=this.props.chatwidget.get("trigger_id")&&(n.trigger_id=this.props.chatwidget.get("trigger_id")),""!=this.props.chatwidget.get("operator")&&(n.operator=this.props.chatwidget.get("operator")),null!==this.props.chatwidget.get("pvhash")&&(n.pvhash=this.props.chatwidget.get("pvhash")),null!==this.props.chatwidget.get("priority")&&(n.priority=this.props.chatwidget.get("priority")),null!==this.props.chatwidget.get("phash")&&(n.phash=this.props.chatwidget.get("phash"));var r=O.a.getCustomFieldsSubmit(this.props.chatwidget.getIn(["customData","fields"]));null!==r&&(n=N({},n,{},r));var i={department:this.props.chatwidget.get("department"),theme:this.props.chatwidget.get("theme"),mode:this.props.chatwidget.get("mode"),vid:this.props.chatwidget.get("vid"),fields:n};this.botPayload&&(i.bpayload=this.botPayload,this.botPayload=null),!0===this.props.chatwidget.hasIn(["proactive","data","invitation_id"])&&(i.invitation_id=this.props.chatwidget.getIn(["proactive","data","invitation_id"])),this.props.dispatch(Object(M.p)(i)),e&&e.preventDefault()}}},{key:"handleContentChange",value:function(e){var t=this,n=this.state;n[e.id]=e.value,this.setState(n),"DepartamentID"==e.id&&this.props.chatwidget.getIn(["onlineData","department","departments"]).size>0&&this.props.chatwidget.getIn(["onlineData","department","departments"]).map((function(n){n.get("value")==e.value&&(0==n.get("online")&&(t.props.dispatch({type:"dep_default",data:e.value}),t.props.dispatch({type:"onlineStatus",data:!1})),t.props.chatwidget.getIn(["onlineData","dep_forms"])!=e.value&&t.updateOnlineFieldsInit(e.value))}))}},{key:"handleContentChangeCustom",value:function(e){this.props.dispatch({type:"CUSTOM_FIELDS_ITEM",data:{id:e.field.get("index"),value:e.value}})}},{key:"componentDidMount",value:function(){O.a.prefillFields(this),this.updateOnlineFields(),null!==this.props.botPayload&&this.setBotPayload(this.props.botPayload);var e=document.getElementById("CSChatMessage-tmp");null!==e&&document.body.removeChild(e)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("messagesBlock");null!==e&&this.props.setMessages(e.innerHTML);var t=document.getElementById("lhc-profile-body");null!==t&&this.props.setProfile(t.innerHTML);var n=document.getElementById("CSChatMessage");null===n?this.props.setHideMessageField(!0):(this.props.setHideMessageField(!1),n.id="CSChatMessage-tmp",n.style.cssText="position:absolute;left:-999px;bottom:0px;",document.body.appendChild(n))}},{key:"setBotPayload",value:function(e){this.botPayload=e,this.handleSubmit()}},{key:"updateOnlineFieldsInit",value:function(e){this.props.dispatch(Object(M.i)({department:this.props.chatwidget.get("department"),product:this.props.chatwidget.get("product"),theme:this.props.chatwidget.get("theme"),mode:this.props.chatwidget.get("mode"),pvhash:this.props.chatwidget.get("pvhash"),phash:this.props.chatwidget.get("phash"),bot_id:this.props.chatwidget.get("bot_id"),trigger_id:this.props.chatwidget.get("trigger_id"),vid:this.props.chatwidget.get("vid"),dep_default:e||this.props.chatwidget.get("departmentDefault")||0,online:1}))}},{key:"updateOnlineFields",value:function(){!1===this.props.chatwidget.getIn(["onlineData","fetched"])&&this.updateOnlineFieldsInit()}},{key:"componentDidUpdate",value:function(e,t,n){this.updateOnlineFields(),document.getElementById("id-container-fluid")&&O.a.sendMessageParent("widgetHeight",[{height:document.getElementById("id-container-fluid").offsetHeight+40}]);var r=!1;if(!1===this.apiLoaded&&null!==this.props.chatwidget.get("api_data")&&(this.apiLoaded=!0,this.setState(N({},this.state,{},this.props.chatwidget.get("api_data"))),r=!0),(!0===r||!1===e.chatwidget.get("shown")&&!0===this.props.chatwidget.get("shown"))&&"widget"==this.props.chatwidget.get("mode")&&this.textMessageRef.current&&(this.textMessageRef.current.focus(),this.scrollBottom()),!0===this.props.chatwidget.getIn(["onlineData","fetched"])&&!1===e.chatwidget.getIn(["onlineData","fetched"])&&(this.props.chatwidget.hasIn(["chat_ui","uprev"])&&O.a.emitEvent("play_sound",[{type:"new_message",sound_on:!0===this.props.chatwidget.getIn(["usersettings","soundOn"]),widget_open:this.props.chatwidget.get("shown")&&"widget"==this.props.chatwidget.get("mode")||document.hasFocus()}]),this.scrollBottom()),this.props.chatwidget.get("departmentDefault")!==e.chatwidget.get("departmentDefault")){this.setState({DepartamentID:this.props.chatwidget.get("departmentDefault")});var i=document.getElementById("id-department-field");null!==i&&(i.value=this.props.chatwidget.get("departmentDefault")),this.updateOnlineFieldsInit()}}},{key:"scrollBottom",value:function(){var e=this;this.messagesAreaRef.current&&(this.messagesAreaRef.current.scrollTop=this.messagesAreaRef.current.scrollHeight+1e3,setTimeout((function(){e.messagesAreaRef.current&&(e.messagesAreaRef.current.scrollTop=e.messagesAreaRef.current.scrollHeight+1e3)}),450))}},{key:"moveCaretAtEnd",value:function(e){var t=e.target.value;e.target.value="",e.target.value=t}},{key:"render",value:function(){var e=this,t=this.props.t;if(!0===this.props.chatwidget.getIn(["onlineData","fetched"])&&!0===this.props.chatwidget.getIn(["onlineData","disabled"]))return y.a.createElement("div",{className:"alert alert-danger m-2",role:"alert"},t("start_chat.cant_start_a_chat"));if(!1===this.props.chatwidget.getIn(["onlineData","fetched"])||!0===this.props.chatwidget.getIn(["chat_ui","auto_start"]))return null;if(this.props.chatwidget.getIn(["onlineData","fields"]).size>0&&(!this.props.chatwidget.hasIn(["chat_ui","show_messages_box"])||1!=this.props.chatwidget.getIn(["onlineData","fields_visible"])||0!=this.props.chatwidget.getIn(["customData","fields"]).size))var n=this.props.chatwidget.getIn(["onlineData","fields"]).map((function(t){return y.a.createElement(E.a,{chatUI:e.props.chatwidget.get("chat_ui"),key:t.get("identifier"),isInvalid:e.props.chatwidget.hasIn(["validationErrors",t.get("identifier")]),defaultValueField:e.state[t.get("name")]||t.get("value"),attrPrefill:{attr_prefill_admin:e.props.chatwidget.get("attr_prefill_admin"),attr_prefill:e.props.chatwidget.get("attr_prefill")},onChangeContent:e.handleContentChange,field:t})}));else n="";var r=!1,i="";if(this.props.chatwidget.getIn(["customData","fields"]).size>0&&(this.props.chatwidget.getIn(["customData","fields"]).map((function(e){return r=!e.has("type")||"hidden"!==e.get("type")||r})),1==r&&(i=this.props.chatwidget.getIn(["customData","fields"]).map((function(t){return y.a.createElement(E.a,{chatUI:e.props.chatwidget.get("chat_ui"),key:t.get("identifier"),isInvalid:e.props.chatwidget.hasIn(["validationErrors",t.get("identifier")]),defaultValueField:t.get("value"),onChangeContent:e.handleContentChangeCustom,field:t})})))),this.props.chatwidget.hasIn(["onlineData","paid","error"])&&this.props.chatwidget.getIn(["onlineData","paid","error"]))return y.a.createElement("p",{className:"p-2"},this.props.chatwidget.getIn(["onlineData","paid","message"]));if(0==this.props.chatwidget.get("processStatus")||1==this.props.chatwidget.get("processStatus")){if(this.props.chatwidget.hasIn(["chat_ui","show_messages_box"])&&this.props.chatwidget.getIn(["onlineData","department","departments"]).size<=1&&this.props.chatwidget.getIn(["onlineData","fields_visible"])<=1&&(0==this.props.chatwidget.getIn(["customData","fields"]).size||!1===r)){var a="pl-0 no-outline form-control rounded-0 form-control border-left-0 border-right-0 border-0 "+(!0===this.props.chatwidget.get("shown")&&this.textMessageRef.current&&(/\r|\n/.exec(this.state.Question)||this.state.Question.length>this.textMessageRef.current.offsetWidth/8.6)?"msg-two-line":"msg-one-line"),o="flex-grow-1 overflow-scroll position-relative",s="bottom-message px-1";return this.props.chatwidget.hasIn(["chat_ui","msg_expand"])&&"embed"==this.props.chatwidget.get("mode")&&(o="overflow-scroll position-relative",s+=" position-relative"),y.a.createElement(y.a.Fragment,null,this.state.showBBCode&&y.a.createElement(C.a,{showModal:this.state.showBBCode,insertText:this.insertText,toggle:this.toggleModal,dataUrl:"/chat/bbcodeinsert?react=1"}),this.props.chatwidget.hasIn(["validationErrors","blocked_user"])&&y.a.createElement(A.a,{closeText:t("button.close"),close:function(t){return e.props.dispatch(Object(M.k)(!0))},text:this.props.chatwidget.getIn(["validationErrors","blocked_user"])}),!0===this.props.chatwidget.getIn(["proactive","has"])&&!this.props.chatwidget.hasIn(["proactive","data","std_header"])&&y.a.createElement(P,{mode:"profile_only",invitation:this.props.chatwidget.getIn(["proactive","data"])})||this.props.chatwidget.hasIn(["chat_ui","operator_profile"])&&""!=this.props.chatwidget.getIn(["chat_ui","operator_profile"])&&y.a.createElement("div",{id:"lhc-profile-body"},y.a.createElement("div",{id:"chat-status-container",className:"p-2 border-bottom",dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","operator_profile"])}})),y.a.createElement("div",{className:o,id:"messagesBlock"},y.a.createElement("div",{className:s,id:"messages-scroll",ref:this.messagesAreaRef},!0===this.props.chatwidget.getIn(["proactive","has"])&&y.a.createElement(P,{mode:"message",setBotPayload:this.setBotPayload,invitation:this.props.chatwidget.getIn(["proactive","data"])}),!this.props.chatwidget.getIn(["proactive","has"])&&this.props.chatwidget.hasIn(["chat_ui","cmmsg_widget"])&&y.a.createElement(D.a,{setBotPayload:this.setBotPayload,content:this.props.chatwidget.getIn(["chat_ui","cmmsg_widget"])}),1==this.props.chatwidget.get("processStatus")&&""!=this.state.Question&&y.a.createElement("div",{"data-op-id":"0",className:"message-row response"},y.a.createElement("div",{className:"msg-date"}),y.a.createElement("span",{title:"",className:"usr-tit vis-tit"},y.a.createElement("i",{title:t("start_chat.visitor"),className:"material-icons chat-operators mi-fs15 mr-0"},""),y.a.createElement("span",{className:"user-nick-title"},t("start_chat.visitor"))),y.a.createElement("div",{className:"msg-body"},this.state.Question)))),!this.props.chatwidget.getIn(["proactive","has"])&&this.props.chatwidget.hasIn(["chat_ui","custom_html_widget"])&&y.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","custom_html_widget"])}}),(1==this.props.chatwidget.getIn(["onlineData","fields_visible"])||0==this.props.chatwidget.getIn(["onlineData","fields_visible"])&&!this.props.chatwidget.hasIn(["chat_ui","hstr_btn"]))&&y.a.createElement("div",{className:"d-flex flex-row border-top position-relative message-send-area"},this.props.chatwidget.hasIn(["validationErrors","question"])&&y.a.createElement("div",{id:"id-operator-typing",className:"bg-white pl-1"},this.props.chatwidget.getIn(["validationErrors","question"])),1==this.props.chatwidget.getIn(["onlineData","fields_visible"])&&y.a.createElement(y.a.Fragment,null,!this.props.chatwidget.hasIn(["chat_ui","bbc_btnh"])&&y.a.createElement(I,{toggleModal:this.toggleModal}),y.a.createElement("div",{className:"mx-auto w-100"},y.a.createElement("textarea",{autoFocus:"widget"==this.props.chatwidget.get("mode")&&!0===this.props.chatwidget.get("shown"),onFocus:this.moveCaretAtEnd,maxLength:this.props.chatwidget.getIn(["chat_ui","max_length"]),"aria-label":"Type your message here...",id:"CSChatMessage",value:1==this.props.chatwidget.get("processStatus")?"":this.state.Question,placeholder:this.props.chatwidget.hasIn(["chat_ui","placeholder_message"])?this.props.chatwidget.getIn(["chat_ui","placeholder_message"]):t("chat.type_here"),onKeyDown:this.enterKeyDown,onChange:function(t){return e.handleContentChange({id:"Question",value:t.target.value})},ref:this.textMessageRef,rows:"1",className:a})),y.a.createElement("div",{className:"disable-select"},y.a.createElement("div",{className:"user-chatwidget-buttons pt-1",id:"ChatSendButtonContainer"},1!=this.props.chatwidget.get("processStatus")&&y.a.createElement("a",{onClick:this.handleSubmit,title:t("button.start_chat")},y.a.createElement("i",{className:"material-icons text-muted settings"},"")),1==this.props.chatwidget.get("processStatus")&&y.a.createElement("i",{className:"material-icons text-muted settings mr-0"},"")))),0==this.props.chatwidget.getIn(["onlineData","fields_visible"])&&!this.props.chatwidget.hasIn(["chat_ui","hstr_btn"])&&y.a.createElement("button",{className:"mx-auto pb-1 w-100 btn btn-light rounded-0",onClick:this.handleSubmit,title:t("button.start_chat")},this.props.chatwidget.getIn(["chat_ui","custom_start_button"])||t("button.start_chat_With_us"))))}return y.a.createElement("div",{id:"id-container-fluid"},!0===this.props.chatwidget.getIn(["proactive","has"])&&y.a.createElement(P,{mode:"profile",invitation:this.props.chatwidget.getIn(["proactive","data"])})||this.props.chatwidget.hasIn(["chat_ui","operator_profile"])&&""!=this.props.chatwidget.getIn(["chat_ui","operator_profile"])&&y.a.createElement("div",{className:"p-2"+(this.props.chatwidget.hasIn(["chat_ui","np_border"])?"":" border-bottom"),dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","operator_profile"])}}),y.a.createElement("div",{className:"container-fluid"},y.a.createElement(x,{errors:this.props.chatwidget.get("validationErrors")}),!this.props.chatwidget.getIn(["proactive","has"])&&this.props.chatwidget.hasIn(["chat_ui","custom_html_widget"])&&y.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","custom_html_widget"])}}),y.a.createElement("form",{onSubmit:this.handleSubmit},y.a.createElement("div",{className:"row pt-2"},n,i,this.props.chatwidget.hasIn(["onlineData","department"])&&y.a.createElement(T.a,{defaultValueField:this.state.DepartamentID,setDefaultValue:this.props.chatwidget.get("departmentDefault"),onChangeContent:this.handleContentChange,isInvalidProduct:this.props.chatwidget.hasIn(["validationErrors","ProductID"]),isInvalid:this.props.chatwidget.hasIn(["validationErrors","department"]),departments:this.props.chatwidget.getIn(["onlineData","department"])})),(!this.props.chatwidget.hasIn(["chat_ui","hstr_btn"])||""!==i||""!==n||!0===this.props.chatwidget.getIn(["proactive","has"]))&&y.a.createElement("div",{className:"row"},y.a.createElement("div",{className:"col-12 pb-3"},y.a.createElement("button",{disabled:1==this.props.chatwidget.get("processStatus"),type:"submit",className:"btn btn-secondary btn-sm"},this.props.chatwidget.getIn(["chat_ui","custom_start_button"])||t("button.start_chat")))))))}return 2==this.props.chatwidget.get("processStatus")?y.a.createElement("div",{className:"container-fluid",id:"id-container-fluid"},y.a.createElement("div",{className:"row"},y.a.createElement("div",{className:"col-12"},y.a.createElement("p",null,t("start_chat.thank_you_for_feedback"))))):void 0}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.chatwidget.getIn(["chat_ui","auto_start"])&&0==e.chatwidget.get("processStatus")&&("embed"==e.chatwidget.get("mode")||"popup"==e.chatwidget.get("mode")||"widget"==e.chatwidget.get("mode")&&1==e.chatwidget.get("shown"))){var n=t;n.jsvar=e.chatwidget.get("jsVars"),n["captcha_"+e.chatwidget.getIn(["captcha","hash"])]=e.chatwidget.getIn(["captcha","ts"]),n.tscaptcha=e.chatwidget.getIn(["captcha","ts"]),n.user_timezone=O.a.getTimeZone(),n.URLRefer=window.location.href.substring(window.location.protocol.length),n.r=e.chatwidget.get("ses_ref"),""!=e.chatwidget.get("bot_id")&&(n.bot_id=e.chatwidget.get("bot_id")),""!=e.chatwidget.get("trigger_id")&&(n.trigger_id=e.chatwidget.get("trigger_id")),""!=e.chatwidget.get("operator")&&(n.operator=e.chatwidget.get("operator")),null!==e.chatwidget.get("priority")&&(n.priority=e.chatwidget.get("priority")),null!==e.chatwidget.get("pvhash")&&(n.pvhash=e.chatwidget.get("pvhash")),null!==e.chatwidget.get("phash")&&(n.phash=e.chatwidget.get("phash"));var r=O.a.getCustomFieldsSubmit(e.chatwidget.getIn(["customData","fields"]));null!==r&&(n=N({},n,{},r)),null!==e.chatwidget.get("api_data")&&(n=N({},n,{},e.chatwidget.get("api_data")));var i={department:e.chatwidget.get("department"),theme:e.chatwidget.get("theme"),mode:e.chatwidget.get("mode"),vid:e.chatwidget.get("vid"),fields:n};null!==e.botPayload&&(i.bpayload=e.botPayload),!0===e.chatwidget.hasIn(["proactive","data","invitation_id"])&&(i.invitation_id=e.chatwidget.getIn(["proactive","data","invitation_id"])),e.dispatch(Object(M.p)(i))}return null}}]),t}(v.Component))||r;t.a=Object(w.b)()(R)},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports={parse:n(85),stringify:n(88)}},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t],r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}var s={threshold:50,passive:!1},u=function(){function e(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.options=r({},s,n),this.element=null,this.touchStartX=0,this.touchStartY=0,this.touchEndX=0,this.touchEndY=0,this.onSwipeLeftAgent=null,this.onSwipeRightAgent=null,this.onSwipeUpAgent=null,this.onSwipeDownAgent=null,this.onTapAgent=null,this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onSwipeLeft=this.onSwipeLeft.bind(this),this.onSwipeRight=this.onSwipeRight.bind(this),this.onSwipeUp=this.onSwipeUp.bind(this),this.onSwipeDown=this.onSwipeDown.bind(this),this.onTap=this.onTap.bind(this),this.destroy=this.destroy.bind(this),this.handleGesture=this.handleGesture.bind(this);var i=!!this.options.passive&&{passive:!0};this.element=t instanceof EventTarget?t:document.querySelector(t),this.element.addEventListener("touchstart",this.onTouchStart,i),this.element.addEventListener("touchend",this.onTouchEnd,i)}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"onTouchStart",value:function(e){this.touchStartX=e.changedTouches[0].screenX,this.touchStartY=e.changedTouches[0].screenY}},{key:"onTouchEnd",value:function(e){this.touchEndX=e.changedTouches[0].screenX,this.touchEndY=e.changedTouches[0].screenY,this.handleGesture()}},{key:"onSwipeLeft",value:function(e){this.onSwipeLeftAgent=e}},{key:"onSwipeRight",value:function(e){this.onSwipeRightAgent=e}},{key:"onSwipeUp",value:function(e){this.onSwipeUpAgent=e}},{key:"onSwipeDown",value:function(e){this.onSwipeDownAgent=e}},{key:"onTap",value:function(e){this.onTapAgent=e}},{key:"destroy",value:function(){this.element.removeEventListener("touchstart",this.onTouchStart),this.element.removeEventListener("touchend",this.onTouchEnd)}},{key:"handleGesture",value:function(){return this.touchEndX+this.options.threshold<=this.touchStartX?(this.onSwipeLeftAgent&&this.onSwipeLeftAgent(),"swiped left"):this.touchEndX-this.options.threshold>=this.touchStartX?(this.onSwipeRightAgent&&this.onSwipeRightAgent(),"swiped right"):this.touchEndY+this.options.threshold<=this.touchStartY?(this.onSwipeUpAgent&&this.onSwipeUpAgent(),"swiped up"):this.touchEndY-this.options.threshold>=this.touchStartY?(this.onSwipeDownAgent&&this.onSwipeDownAgent(),"swiped down"):this.touchEndY===this.touchStartY?(this.onTapAgent&&this.onTapAgent(),"tap"):void 0}}]),e}();e.exports=u},function(e,t,n){(function(n){var r;
  /*!
   *  howler.js v2.1.3
   *  howlerjs.com
   *
   *  (c) 2013-2019, James Simpson of GoldFire Studios
   *  goldfirestudios.com
   *
   *  MIT License
   */!function(){"use strict";var i=function(){this.init()};i.prototype={init:function(){var e=this||a;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||a;if(e=parseFloat(e),t.ctx||h(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,a.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var o=t._howls[n]._soundById(r[i]);o&&o._node&&(o._node.volume=o._volume*e)}return t}return t._volume},mute:function(e){var t=this||a;t.ctx||h(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,a.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var o=t._howls[n]._soundById(r[i]);o&&o._node&&(o._node.muted=!!e||o._muted)}return t},unload:function(){for(var e=this||a,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,h()),e},codecs:function(e){return(this||a)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||a;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||a,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),i=r&&parseInt(r[0].split("/")[1],10)<33;return e._codecs={mp3:!(i||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||a;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(var r=0;r<e.html5PoolSize;r++)try{var i=new Audio;i._unlocked=!0,e._releaseHtml5Audio(i)}catch(n){e.noAudio=!0}for(r=0;r<e._howls.length;r++)if(!e._howls[r]._webAudio)for(var a=e._howls[r]._getSoundIds(),o=0;o<a.length;o++){var s=e._howls[r]._soundById(a[o]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var u=e.ctx.createBufferSource();u.buffer=e._scratchBuffer,u.connect(e.ctx.destination),void 0===u.start?u.noteOn(0):u.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),u.onended=function(){u.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),e}},_obtainHtml5Audio:function(){var e=this||a;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")})),new Audio},_releaseHtml5Audio:function(e){var t=this||a;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&a.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){e.autoSuspend&&(e._suspendTimer=null,e.state="suspending",e.ctx.suspend().then((function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())})))}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&a.usingWebAudio)return"running"===e.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var a=new i,o=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};o.prototype={init:function(e){var t=this;return a.ctx||h(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhrWithCredentials=e.xhrWithCredentials||!1,t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=a.usingWebAudio&&!t._html5,void 0!==a.ctx&&a.ctx&&a.autoUnlock&&a._unlockAudio(),a._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&t.load(),t},load:function(){var e=null;if(a.noAudio)this._emit("loaderror",null,"No audio support.");else{"string"==typeof this._src&&(this._src=[this._src]);for(var t=0;t<this._src.length;t++){var n,r;if(this._format&&this._format[t])n=this._format[t];else{if("string"!=typeof(r=this._src[t])){this._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(n=/^data:audio\/([^;,]+);/i.exec(r))||(n=/\.([^.]+)$/.exec(r.split("?",1)[0])),n&&(n=n[1].toLowerCase())}if(n||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),n&&a.codecs(n)){e=this._src[t];break}}if(e)return this._src=e,this._state="loading","https:"===window.location.protocol&&"http:"===e.slice(0,5)&&(this._html5=!0,this._webAudio=!1),new s(this),this._webAudio&&l(this),this;this._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var n=this,r=null;if("number"==typeof e)r=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var i=0,o=0;o<n._sounds.length;o++)n._sounds[o]._paused&&!n._sounds[o]._ended&&(i++,r=n._sounds[o]._id);1===i?e=null:r=null}}var s=r?n._soundById(r):n._inactiveSound();if(!s)return null;if(r&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var u=s._id;return n._queue.push({event:"play",action:function(){n.play(u)}}),u}if(r&&!s._paused)return t||n._loadQueue("play"),s._id;n._webAudio&&a._autoResume();var l=Math.max(0,s._seek>0?s._seek:n._sprite[e][0]/1e3),c=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-l),d=1e3*c/Math.abs(s._rate),p=n._sprite[e][0]/1e3,h=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var f=function(){s._paused=!1,s._seek=l,s._start=p,s._stop=h,s._loop=!(!s._loop&&!n._sprite[e][2])};if(!(l>=h)){var g=s._node;if(n._webAudio){var m=function(){n._playLock=!1,f(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;g.gain.setValueAtTime(e,a.ctx.currentTime),s._playStart=a.ctx.currentTime,void 0===g.bufferSource.start?s._loop?g.bufferSource.noteGrainOn(0,l,86400):g.bufferSource.noteGrainOn(0,l,c):s._loop?g.bufferSource.start(0,l,86400):g.bufferSource.start(0,l,c),d!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d)),t||setTimeout((function(){n._emit("play",s._id),n._loadQueue()}),0)};"running"===a.state?m():(n._playLock=!0,n.once("resume",m),n._clearTimer(s._id))}else{var _=function(){g.currentTime=l,g.muted=s._muted||n._muted||a._muted||g.muted,g.volume=s._volume*a.volume(),g.playbackRate=s._rate;try{var r=g.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,f(),r.then((function(){n._playLock=!1,g._unlocked=!0,t||(n._emit("play",s._id),n._loadQueue())})).catch((function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0}))):t||(n._playLock=!1,f(),n._emit("play",s._id),n._loadQueue()),g.playbackRate=s._rate,g.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d):(n._endTimers[s._id]=function(){n._ended(s),g.removeEventListener("ended",n._endTimers[s._id],!1)},g.addEventListener("ended",n._endTimers[s._id],!1))}catch(e){n._emit("playerror",s._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===g.src&&(g.src=n._src,g.load());var v=window&&window.ejecta||!g.readyState&&a._navigator.isCocoonJS;if(g.readyState>=3||v)_();else{n._playLock=!0;var y=function(){_(),g.removeEventListener(a._canPlayEvent,y,!1)};g.addEventListener(a._canPlayEvent,y,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var i=t._soundById(n[r]);if(i&&!i._paused&&(i._seek=t.seek(n[r]),i._rateSeek=0,i._paused=!0,t._stopFade(n[r]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),i=0;i<r.length;i++){n._clearTimer(r[i]);var a=n._soundById(r[i]);a&&(a._seek=a._start||0,a._rateSeek=0,a._paused=!0,a._ended=!0,n._stopFade(r[i]),a._node&&(n._webAudio?a._node.bufferSource&&(void 0===a._node.bufferSource.stop?a._node.bufferSource.noteOff(0):a._node.bufferSource.stop(0),n._cleanBuffer(a._node)):isNaN(a._node.duration)&&a._node.duration!==1/0||(a._node.currentTime=a._start||0,a._node.pause(),a._node.duration===1/0&&n._clearSound(a._node))),t||n._emit("stop",a._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var r=n._getSoundIds(t),i=0;i<r.length;i++){var o=n._soundById(r[i]);o&&(o._muted=e,o._interval&&n._stopFade(o._id),n._webAudio&&o._node?o._node.gain.setValueAtTime(e?0:o._volume,a.ctx.currentTime):o._node&&(o._node.muted=!!a._muted||e),n._emit("mute",o._id))}return n},volume:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._volume;if(1===i.length||2===i.length&&void 0===i[1]){var o=r._getSoundIds(),s=o.indexOf(i[0]);s>=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var u=0;u<t.length;u++)(n=r._soundById(t[u]))&&(n._volume=e,i[2]||r._stopFade(t[u]),r._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,a.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*a.volume()),r._emit("volume",n._id));return r},fade:function(e,t,n,r){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"fade",action:function(){i.fade(e,t,n,r)}}),i;e=parseFloat(e),t=parseFloat(t),n=parseFloat(n),i.volume(e,r);for(var o=i._getSoundIds(r),s=0;s<o.length;s++){var u=i._soundById(o[s]);if(u){if(r||i._stopFade(o[s]),i._webAudio&&!u._muted){var l=a.ctx.currentTime,c=l+n/1e3;u._volume=e,u._node.gain.setValueAtTime(e,l),u._node.gain.linearRampToValueAtTime(t,c)}i._startFadeInterval(u,e,t,n,o[s],void 0===r)}}return i},_startFadeInterval:function(e,t,n,r,i,a){var o=this,s=t,u=n-t,l=Math.abs(u/.01),c=Math.max(4,l>0?r/l:r),d=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var i=(Date.now()-d)/r;d=Date.now(),s+=u*i,s=Math.max(0,s),s=Math.min(1,s),s=Math.round(100*s)/100,o._webAudio?e._volume=s:o.volume(s,e._id,!0),a&&(o._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,o.volume(n,e._id),o._emit("fade",e._id))}),c)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(a.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=r._soundById(parseInt(i[0],10)))&&n._loop;e=i[0],r._loop=e}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var a=r._getSoundIds(t),o=0;o<a.length;o++)(n=r._soundById(a[o]))&&(n._loop=e,r._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop)));return r},rate:function(){var e,t,n,r=this,i=arguments;if(0===i.length)t=r._sounds[0]._id;else if(1===i.length){var o=r._getSoundIds(),s=o.indexOf(i[0]);s>=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if("number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var u=0;u<t.length;u++)if(n=r._soundById(t[u])){r.playing(t[u])&&(n._rateSeek=r.seek(t[u]),n._playStart=r._webAudio?a.ctx.currentTime:n._playStart),n._rate=e,r._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,a.ctx.currentTime):n._node&&(n._node.playbackRate=e);var l=r.seek(t[u]),c=(r._sprite[n._sprite][0]+r._sprite[n._sprite][1])/1e3-l,d=1e3*c/Math.abs(n._rate);!r._endTimers[t[u]]&&n._paused||(r._clearTimer(t[u]),r._endTimers[t[u]]=setTimeout(r._ended.bind(r,n),d)),r._emit("rate",n._id)}return r},seek:function(){var e,t,n=this,r=arguments;if(0===r.length)t=n._sounds[0]._id;else if(1===r.length){var i=n._getSoundIds(),o=i.indexOf(r[0]);o>=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return n;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var s=n._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var u=n.playing(t)?a.ctx.currentTime-s._playStart:0,l=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(l+u*Math.abs(s._rate))}return s._node.currentTime}var c=n.playing(t);c&&n.pause(t,!0),s._seek=e,s._ended=!1,n._clearTimer(t),n._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var d=function(){n._emit("seek",t),c&&n.play(t,!0)};if(c&&!n._webAudio){var p=function(){n._playLock?setTimeout(p,0):d()};setTimeout(p,0)}else d()}return n},playing:function(e){if("number"==typeof e){var t=this._soundById(e);return!!t&&!t._paused}for(var n=0;n<this._sounds.length;n++)if(!this._sounds[n]._paused)return!0;return!1},duration:function(e){var t=this._duration,n=this._soundById(e);return n&&(t=this._sprite[n._sprite][1]/1e3),t},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(a._canPlayEvent,t[n]._loadFn,!1),a._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var r=a._howls.indexOf(e);r>=0&&a._howls.splice(r,1);var i=!0;for(n=0;n<a._howls.length;n++)if(a._howls[n]._src===e._src||e._src.indexOf(a._howls[n]._src)>=0){i=!1;break}return u&&i&&delete u[e._src],a.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this["_on"+e];return"function"==typeof t&&i.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<r.length;i++){var a=n===r[i].id;if(t===r[i].fn&&a||!t&&a){r.splice(i,1);break}}else if(e)this["_on"+e]=[];else{var o=Object.keys(this);for(i=0;i<o.length;i++)0===o[i].indexOf("_on")&&Array.isArray(this[o[i]])&&(this[o[i]]=[])}return this},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var r=this["_on"+e],i=r.length-1;i>=0;i--)r[i].id&&r[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,r[i].fn),0),r[i].once&&this.off(e,r[i].fn,r[i].id));return this._loadQueue(e),this},_loadQueue:function(e){if(this._queue.length>0){var t=this._queue[0];t.event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()}return this},_ended:function(e){var t=e._sprite;if(!this._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(this._ended.bind(this,e),100),this;var n=!(!e._loop&&!this._sprite[t][2]);if(this._emit("end",e._id),!this._webAudio&&n&&this.stop(e._id,!0).play(e._id),this._webAudio&&n){this._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=a.ctx.currentTime;var r=1e3*(e._stop-e._start)/Math.abs(e._rate);this._endTimers[e._id]=setTimeout(this._ended.bind(this,e),r)}return this._webAudio&&!n&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,this._clearTimer(e._id),this._cleanBuffer(e._node),a._autoSuspend()),this._webAudio||n||this.stop(e._id,!0),this},_clearTimer:function(e){if(this._endTimers[e]){if("function"!=typeof this._endTimers[e])clearTimeout(this._endTimers[e]);else{var t=this._soundById(e);t&&t._node&&t._node.removeEventListener("ended",this._endTimers[e],!1)}delete this._endTimers[e]}return this},_soundById:function(e){for(var t=0;t<this._sounds.length;t++)if(e===this._sounds[t]._id)return this._sounds[t];return null},_inactiveSound:function(){this._drain();for(var e=0;e<this._sounds.length;e++)if(this._sounds[e]._ended)return this._sounds[e].reset();return new s(this)},_drain:function(){var e=this._pool,t=0,n=0;if(!(this._sounds.length<e)){for(n=0;n<this._sounds.length;n++)this._sounds[n]._ended&&t++;for(n=this._sounds.length-1;n>=0;n--){if(t<=e)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),t--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=a.ctx.createBufferSource(),e._node.bufferSource.buffer=u[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,a.ctx.currentTime),this},_cleanBuffer:function(e){var t=a._navigator&&a._navigator.vendor.indexOf("Apple")>=0;if(a._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=a._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(a._navigator&&a._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(e){this._parent=e,this.init()};s.prototype={init:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++a._counter,e._sounds.push(this),this.create(),this},create:function(){var e=this._parent,t=a._muted||this._muted||this._parent._muted?0:this._volume;return e._webAudio?(this._node=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),this._node.gain.setValueAtTime(t,a.ctx.currentTime),this._node.paused=!0,this._node.connect(a.masterGain)):a.noAudio||(this._node=a._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(a._canPlayEvent,this._loadFn,!1),this._node.src=e._src,this._node.preload="auto",this._node.volume=t*a.volume(),this._node.load()),this},reset:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++a._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(a._canPlayEvent,this._loadFn,!1)}};var u={},l=function(e){var t=e._src;if(u[t])return e._duration=u[t].duration,void p(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);d(r.buffer,e)}else{var a=new XMLHttpRequest;a.open("GET",t,!0),a.withCredentials=e._xhrWithCredentials,a.responseType="arraybuffer",a.onload=function(){var t=(a.status+"")[0];"0"===t||"2"===t||"3"===t?d(a.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+a.status+".")},a.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete u[t],e.load())},c(a)}},c=function(e){try{e.send()}catch(t){e.onerror()}},d=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},r=function(e){e&&t._sounds.length>0?(u[t._src]=e,p(t,e)):n()};"undefined"!=typeof Promise&&1===a.ctx.decodeAudioData.length?a.ctx.decodeAudioData(e).then(r).catch(n):a.ctx.decodeAudioData(e,r,n)},p=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},h=function(){if(a.usingWebAudio){try{"undefined"!=typeof AudioContext?a.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?a.ctx=new webkitAudioContext:a.usingWebAudio=!1}catch(e){a.usingWebAudio=!1}a.ctx||(a.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(a._navigator&&a._navigator.platform),t=a._navigator&&a._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(a._navigator&&a._navigator.userAgent.toLowerCase());(a._navigator&&a._navigator.standalone&&!r||a._navigator&&!a._navigator.standalone&&!r)&&(a.usingWebAudio=!1)}a.usingWebAudio&&(a.masterGain=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),a.masterGain.gain.setValueAtTime(a._muted?0:a._volume,a.ctx.currentTime),a.masterGain.connect(a.ctx.destination)),a._setup()}};void 0===(r=function(){return{Howler:a,Howl:o}}.apply(t,[]))||(e.exports=r),t.Howler=a,t.Howl=o,"undefined"!=typeof window?(window.HowlerGlobal=i,window.Howler=a,window.Howl=o,window.Sound=s):void 0!==n&&(n.HowlerGlobal=i,n.Howler=a,n.Howl=o,n.Sound=s)}(),
  /*!
   *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
   *  
   *  howler.js v2.1.3
   *  howlerjs.com
   *
   *  (c) 2013-2019, James Simpson of GoldFire Studios
   *  goldfirestudios.com
   *
   *  MIT License
   */
  function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(!this.ctx||!this.ctx.listener)return this;for(var t=this._howls.length-1;t>=0;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){return this.ctx&&this.ctx.listener?(t="number"!=typeof t?this._pos[1]:t,n="number"!=typeof n?this._pos[2]:n,"number"!=typeof e?this._pos:(this._pos=[e,t,n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,a){if(!this.ctx||!this.ctx.listener)return this;var o=this._orientation;return t="number"!=typeof t?o[1]:t,n="number"!=typeof n?o[2]:n,r="number"!=typeof r?o[3]:r,i="number"!=typeof i?o[4]:i,a="number"!=typeof a?o[5]:a,"number"!=typeof e?o:(this._orientation=[e,t,n,r,i,a],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(e,t,n,r,i,a),this)},Howl.prototype.init=(e=Howl.prototype.init,function(t){return this._orientation=t.orientation||[1,0,0],this._stereo=t.stereo||null,this._pos=t.pos||null,this._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},this._onstereo=t.onstereo?[{fn:t.onstereo}]:[],this._onpos=t.onpos?[{fn:t.onpos}]:[],this._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var a=r._getSoundIds(n),o=0;o<a.length;o++){var s=r._soundById(a[o]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||t(s,i),"spatial"===i?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),r._emit("stereo",s._id)}}return r},Howl.prototype.pos=function(e,n,r,i){var a=this;if(!a._webAudio)return a;if("loaded"!==a._state)return a._queue.push({event:"pos",action:function(){a.pos(e,n,r,i)}}),a;if(n="number"!=typeof n?0:n,r="number"!=typeof r?-.5:r,void 0===i){if("number"!=typeof e)return a._pos;a._pos=[e,n,r]}for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var u=a._soundById(o[s]);if(u){if("number"!=typeof e)return u._pos;u._pos=[e,n,r],u._node&&(u._panner&&!u._panner.pan||t(u,"spatial"),void 0!==u._panner.positionX?(u._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):u._panner.setPosition(e,n,r)),a._emit("pos",u._id)}}return a},Howl.prototype.orientation=function(e,n,r,i){var a=this;if(!a._webAudio)return a;if("loaded"!==a._state)return a._queue.push({event:"orientation",action:function(){a.orientation(e,n,r,i)}}),a;if(n="number"!=typeof n?a._orientation[1]:n,r="number"!=typeof r?a._orientation[2]:r,void 0===i){if("number"!=typeof e)return a._orientation;a._orientation=[e,n,r]}for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var u=a._soundById(o[s]);if(u){if("number"!=typeof e)return u._orientation;u._orientation=[e,n,r],u._node&&(u._panner||(u._pos||(u._pos=a._pos||[0,0,-.5]),t(u,"spatial")),void 0!==u._panner.orientationX?(u._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime)):u._panner.setOrientation(e,n,r)),a._emit("orientation",u._id)}}return a},Howl.prototype.pannerAttr=function(){var e,n,r,i=this,a=arguments;if(!i._webAudio)return i;if(0===a.length)return i._pannerAttr;if(1===a.length){if("object"!=typeof a[0])return(r=i._soundById(parseInt(a[0],10)))?r._pannerAttr:i._pannerAttr;e=a[0],void 0===n&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),i._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:i._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:i._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:i._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:i._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:i._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:i._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:i._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:i._panningModel})}else 2===a.length&&(e=a[0],n=parseInt(a[1],10));for(var o=i._getSoundIds(n),s=0;s<o.length;s++)if(r=i._soundById(o[s])){var u=r._pannerAttr;u={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:u.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:u.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:u.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:u.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:u.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:u.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:u.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:u.panningModel};var l=r._panner;l?(l.coneInnerAngle=u.coneInnerAngle,l.coneOuterAngle=u.coneOuterAngle,l.coneOuterGain=u.coneOuterGain,l.distanceModel=u.distanceModel,l.maxDistance=u.maxDistance,l.refDistance=u.refDistance,l.rolloffFactor=u.rolloffFactor,l.panningModel=u.panningModel):(r._pos||(r._pos=i._pos||[0,0,-.5]),t(r,"spatial"))}return i},Sound.prototype.init=function(e){return function(){var t=this._parent;this._orientation=t._orientation,this._stereo=t._stereo,this._pos=t._pos,this._pannerAttr=t._pannerAttr,e.call(this),this._stereo?t.stereo(this._stereo):this._pos&&t.pos(this._pos[0],this._pos[1],this._pos[2],this._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this._parent;return this._orientation=t._orientation,this._stereo=t._stereo,this._pos=t._pos,this._pannerAttr=t._pannerAttr,this._stereo?t.stereo(this._stereo):this._pos?t.pos(this._pos[0],this._pos[1],this._pos[2],this._id):this._panner&&(this._panner.disconnect(0),this._panner=void 0,t._refreshBuffer(this)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()}).call(this,n(22))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(28),i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="PENDING",s="FULFILLED",u="REJECTED";function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[o,s,u],n=e.promiseTypeSuffixes||t,l=e.promiseTypeDelimiter||"_";return function(e){var t=e.dispatch;return function(e){return function(o){var s=void 0,u=void 0;if(!o.payload)return e(o);var c=o.payload;if(Object(r.a)(c))s=c;else if(Object(r.a)(c.promise))s=c.promise,u=c.data;else{if("function"!=typeof c&&"function"!=typeof c.promise)return e(o);if(s=c.promise?c.promise():c(),u=c.promise?c.data:void 0,!Object(r.a)(s))return e(a({},o,{payload:s}))}var d=o.type,p=o.meta,h=i(n,3),f=h[0],g=h[1],m=h[2],_=function(e,t){return a({type:[d,t?m:g].join(l)},null==e?{}:{payload:e},void 0!==p?{meta:p}:{},t?{error:!0}:{})};return e(a({type:[d,f].join(l)},void 0!==u?{payload:u}:{},void 0!==p?{meta:p}:{})),s.then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=_(e,!1);return t(n),{value:e,action:n}}),(function(e){var n=_(e,!0);throw t(n),e}))}}}}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.dispatch;return"function"==typeof n?l()({dispatch:n}):(e&&e.env,null)}}).call(this,n(40))},function(e,t,n){"use strict";(function(e){var r,i,a,o=n(20),s=n(29),u=n.n(s);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof fetch&&(void 0!==e&&e.fetch?r=e.fetch:"undefined"!=typeof window&&window.fetch&&(r=window.fetch)),o.b&&(void 0!==e&&e.XMLHttpRequest?i=e.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(i=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(void 0!==e&&e.ActiveXObject?a=e.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(a=window.ActiveXObject)),r||!s||i||a||(r=u.a||s),"function"!=typeof r&&(r=void 0);var c=function(e,t){if(t&&"object"===l(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e};t.a=function(e,t,n,s){return"function"==typeof n&&(s=n,n=void 0),s=s||function(){},r?function(e,t,n,i){e.queryStringParams&&(t=c(t,e.queryStringParams));var a=Object(o.a)({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);n&&(a["Content-Type"]="application/json"),r(t,Object(o.a)({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:a},"function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions)).then((function(e){if(!e.ok)return i(e.statusText||"Error",{status:e.status});e.text().then((function(t){i(null,{status:e.status,data:t})})).catch(i)})).catch(i)}(e,t,n,s):o.b||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===l(n)&&(n=c("",n).slice(1)),e.queryStringParams&&(t=c(t,e.queryStringParams));try{var o;(o=i?new i:new a("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=e.customHeaders;if(s="function"==typeof s?s():s)for(var u in s)o.setRequestHeader(u,s[u]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}}(e,t,n,s):void 0}}).call(this,n(22))},function(e,t,n){"use strict";
  /** @license React v16.13.0
   * react.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r=n(35),i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,f=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var k=E.prototype=new w;k.constructor=E,r(k,b.prototype),k.isPureReactComponent=!0;var S={current:null},x=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:a,type:e,key:o,ref:s,props:i,_owner:S.current}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var O=/\/+/g,D=[];function P(e,t,n,r){if(D.length){var i=D.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case o:u=!0}}if(u)return r(i,t,""===n?"."+L(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var c=n+L(s=t[l],l);u+=e(s,c,r,i)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),l=0;!(s=t.next()).done;)u+=e(s=s.value,c=n+L(s,l++),r,i);else if("object"===s)throw r=""+t,Error(_(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function R(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j(e,r,n,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),r.push(e))}function j(e,t,n,r,i){var a="";null!=n&&(a=(""+n).replace(O,"$&/")+"/"),M(e,R,t=P(t,a,r,i)),A(t)}var B={current:null};function F(){var e=B.current;if(null===e)throw Error(_(321));return e}var U={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return j(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M(e,N,t=P(null,null,t,n)),A(t)},count:function(e){return M(e,(function(){return null}),null)},toArray:function(e){var t=[];return j(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(_(143));return e}},t.Component=b,t.Fragment=s,t.Profiler=l,t.PureComponent=E,t.StrictMode=u,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null==e)throw Error(_(267,e));var i=r({},e.props),o=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!T.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}return{$$typeof:a,type:e.type,key:o,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.13.0"},function(e,t,n){"use strict";
  /** @license React v16.13.0
   * react-dom.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r=n(0),i=n(35),a=n(58);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));function s(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var u=!1,l=null,c=!1,d=null,p={onError:function(e){u=!0,l=e}};function h(e,t,n,r,i,a,o,c,d){u=!1,l=null,s.apply(p,arguments)}var f=null,g=null,m=null;function _(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,i,a,s,p,f){if(h.apply(this,arguments),u){if(!u)throw Error(o(198));var g=l;u=!1,l=null,c||(c=!0,d=g)}}(r,t,void 0,e),e.currentTarget=null}var v=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;v.hasOwnProperty("ReactCurrentDispatcher")||(v.ReactCurrentDispatcher={current:null}),v.hasOwnProperty("ReactCurrentBatchConfig")||(v.ReactCurrentBatchConfig={suspense:null});var y=/^(.*)[\\\/]/,b="function"==typeof Symbol&&Symbol.for,w=b?Symbol.for("react.element"):60103,E=b?Symbol.for("react.portal"):60106,k=b?Symbol.for("react.fragment"):60107,S=b?Symbol.for("react.strict_mode"):60108,x=b?Symbol.for("react.profiler"):60114,T=b?Symbol.for("react.provider"):60109,C=b?Symbol.for("react.context"):60110,I=b?Symbol.for("react.concurrent_mode"):60111,O=b?Symbol.for("react.forward_ref"):60112,D=b?Symbol.for("react.suspense"):60113,P=b?Symbol.for("react.suspense_list"):60120,A=b?Symbol.for("react.memo"):60115,M=b?Symbol.for("react.lazy"):60116,L=b?Symbol.for("react.block"):60121,N="function"==typeof Symbol&&Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}function j(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case E:return"Portal";case x:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return"Context.Consumer";case T:return"Context.Provider";case O:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return j(e.type);case L:return j(e.render);case M:if(e=1===e._status?e._result:null)return j(e)}return null}function B(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,a=j(e.type);n=null,r&&(n=j(r.type)),r=a,a="",i?a=" (at "+i.fileName.replace(y,"")+":"+i.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}var F=null,U={};function z(){if(F)for(var e in U){var t=U[e],n=F.indexOf(e);if(!(-1<n))throw Error(o(96,e));if(!q[n]){if(!t.extractEvents)throw Error(o(97,e));for(var r in q[n]=t,n=t.eventTypes){var i=void 0,a=n[r],s=t,u=r;if(W.hasOwnProperty(u))throw Error(o(99,u));W[u]=a;var l=a.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&H(l[i],s,u);i=!0}else a.registrationName?(H(a.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(o(98,r,e))}}}}function H(e,t,n){if(V[e])throw Error(o(100,e));V[e]=t,K[e]=t.eventTypes[n].dependencies}var q=[],W={},V={},K={};function $(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!U.hasOwnProperty(t)||U[t]!==r){if(U[t])throw Error(o(102,t));U[t]=r,n=!0}}n&&z()}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Q=null,X=null,Y=null;function J(e){if(e=g(e)){if("function"!=typeof Q)throw Error(o(280));var t=e.stateNode;t&&(t=f(t),Q(e.stateNode,e.type,t))}}function Z(e){X?Y?Y.push(e):Y=[e]:X=e}function ee(){if(X){var e=X,t=Y;if(Y=X=null,J(e),t)for(e=0;e<t.length;e++)J(t[e])}}function te(e,t){return e(t)}function ne(e,t,n,r,i){return e(t,n,r,i)}function re(){}var ie=te,ae=!1,oe=!1;function se(){null===X&&null===Y||(re(),ee())}function ue(e,t,n){if(oe)return e(t,n);oe=!0;try{return ie(e,t,n)}finally{oe=!1,se()}}var le=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ce=Object.prototype.hasOwnProperty,de={},pe={};function he(e,t,n,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){fe[e]=new he(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];fe[t]=new he(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){fe[e]=new he(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){fe[e]=new he(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){fe[e]=new he(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){fe[e]=new he(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){fe[e]=new he(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){fe[e]=new he(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){fe[e]=new he(e,5,!1,e.toLowerCase(),null,!1)}));var ge=/[\-:]([a-z])/g;function me(e){return e[1].toUpperCase()}function _e(e,t,n,r){var i=fe.hasOwnProperty(t)?fe[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!ce.call(pe,e)||!ce.call(de,e)&&(le.test(e)?pe[e]=!0:(de[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function be(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ke(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ve(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&_e(e,"checked",t,!1)}function xe(e,t){Se(e,t);var n=ve(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ie(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ve(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function De(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ve(n)}}function Ae(e,t){var n=ve(t.value),r=ve(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Me(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ge,me);fe[t]=new he(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ge,me);fe[t]=new he(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ge,me);fe[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){fe[e]=new he(e,1,!1,e.toLowerCase(),null,!1)})),fe.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){fe[e]=new he(e,1,!1,e.toLowerCase(),null,!0)}));var Le="http://www.w3.org/1999/xhtml",Ne="http://www.w3.org/2000/svg";function Re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function je(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Be,Fe=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ne||"innerHTML"in e)e.innerHTML=t;else{for((Be=Be||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Be.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function ze(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:ze("Animation","AnimationEnd"),animationiteration:ze("Animation","AnimationIteration"),animationstart:ze("Animation","AnimationStart"),transitionend:ze("Transition","TransitionEnd")},qe={},We={};function Ve(e){if(qe[e])return qe[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return qe[e]=n[t];return e}G&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Ke=Ve("animationend"),$e=Ve("animationiteration"),Ge=Ve("animationstart"),Qe=Ve("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Ye.get(e);return void 0===t&&(t=new Map,Ye.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(o(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return tt(i),e;if(a===r)return tt(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function ot(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)_(e,t[r],n[r]);else t&&_(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(at=rt(at,e)),e=at,at=null,e){if(it(e,ot),at)throw Error(o(95));if(c)throw e=d,c=!1,d=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!G)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function pt(e,t,n,r){if(ct.length){var i=ct.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Cn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ut(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,o=e.eventSystemFlags;0===n&&(o|=64);for(var s=null,u=0;u<q.length;u++){var l=q[u];l&&(l=l.extractEvents(r,t,a,i,o))&&(s=rt(s,l))}st(s)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":Gt(t,"scroll",!0);break;case"focus":case"blur":Gt(t,"focus",!0),Gt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&Gt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&$t(e,t)}n.set(e,null)}}var gt,mt,_t,vt=!1,yt=[],bt=null,wt=null,Et=null,kt=new Map,St=new Map,xt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function It(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Ot(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Dt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=It(t,n,r,i,a),null!==t&&(null!==(t=In(t))&&mt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=Cn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void a.unstable_runWithPriority(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=In(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function Mt(e,t,n){At(e)&&n.delete(t)}function Lt(){for(vt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=In(e.blockedOn))&&gt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==bt&&At(bt)&&(bt=null),null!==wt&&At(wt)&&(wt=null),null!==Et&&At(Et)&&(Et=null),kt.forEach(Mt),St.forEach(Mt)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,vt||(vt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Lt)))}function Rt(e){function t(t){return Nt(t,e)}if(0<yt.length){Nt(yt[0],e);for(var n=1;n<yt.length;n++){var r=yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bt&&Nt(bt,e),null!==wt&&Nt(wt,e),null!==Et&&Nt(Et,e),kt.forEach(t),St.forEach(t),n=0;n<xt.length;n++)(r=xt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<xt.length&&null===(n=xt[0]).blockedOn;)Pt(n),null===n.blockedOn&&xt.shift()}var jt={},Bt=new Map,Ft=new Map,Ut=["abort","abort",Ke,"animationEnd",$e,"animationIteration",Ge,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qe,"transitionEnd","waiting","waiting"];function zt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],a="on"+(i[0].toUpperCase()+i.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),Bt.set(r,a),jt[i]=a}}zt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),zt(Ut,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qt=0;qt<Ht.length;qt++)Ft.set(Ht[qt],0);var Wt=a.unstable_UserBlockingPriority,Vt=a.unstable_runWithPriority,Kt=!0;function $t(e,t){Gt(t,e,!1)}function Gt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=Qt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Yt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Qt(e,t,n,r){ae||re();var i=Yt,a=ae;ae=!0;try{ne(i,e,t,n,r)}finally{(ae=a)||se()}}function Xt(e,t,n,r){Vt(Wt,Yt.bind(null,e,t,n,r))}function Yt(e,t,n,r){if(Kt)if(0<yt.length&&-1<Tt.indexOf(e))e=It(null,e,t,n,r),yt.push(e);else{var i=Jt(e,t,n,r);if(null===i)Ot(e,r);else if(-1<Tt.indexOf(e))e=It(i,e,t,n,r),yt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return bt=Dt(bt,e,t,n,r,i),!0;case"dragenter":return wt=Dt(wt,e,t,n,r,i),!0;case"mouseover":return Et=Dt(Et,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return kt.set(a,Dt(kt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,St.set(a,Dt(St.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Ot(e,r),e=pt(e,r,null,t);try{ue(ht,e)}finally{dt(e)}}}}function Jt(e,t,n,r){if(null!==(n=Cn(n=ut(r)))){var i=Ze(n);if(null===i)n=null;else{var a=i.tag;if(13===a){if(null!==(n=et(i)))return n;n=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=pt(e,r,n,t);try{ue(ht,e)}finally{dt(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Le;function un(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=K[t];for(var r=0;r<t.length;r++)ft(t[r],e,n)}function ln(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function hn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn=null,mn=null;function _n(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yn="function"==typeof setTimeout?setTimeout:void 0,bn="function"==typeof clearTimeout?clearTimeout:void 0;function wn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var kn=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+kn,xn="__reactEventHandlers$"+kn,Tn="__reactContainere$"+kn;function Cn(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[Sn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[Sn])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function In(e){return!(e=e[Sn]||e[Tn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function On(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Dn(e){return e[xn]||null}function Pn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function An(e,t){var n=e.stateNode;if(!n)return null;var r=f(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}function Mn(e,t,n){(t=An(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Ln(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pn(t);for(t=n.length;0<t--;)Mn(n[t],"captured",e);for(t=0;t<n.length;t++)Mn(n[t],"bubbled",e)}}function Nn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=An(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Rn(e){e&&e.dispatchConfig.registrationName&&Nn(e._targetInst,null,e)}function jn(e){it(e,Ln)}var Bn=null,Fn=null,Un=null;function zn(){if(Un)return Un;var e,t,n=Fn,r=n.length,i="value"in Bn?Bn.value:Bn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Un=i.slice(e,1<t?1-t:void 0)}function Hn(){return!0}function qn(){return!1}function Wn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Hn:qn,this.isPropagationStopped=qn,this}function Vn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(o(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function $n(e){e.eventPool=[],e.getPooled=Vn,e.release=Kn}i(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){this.isPersistent=Hn},isPersistent:qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,$n(n),n},$n(Wn);var Gn=Wn.extend({data:null}),Qn=Wn.extend({data:null}),Xn=[9,13,27,32],Yn=G&&"CompositionEvent"in window,Jn=null;G&&"documentMode"in document&&(Jn=document.documentMode);var Zn=G&&"TextEvent"in window&&!Jn,er=G&&(!Yn||Jn&&8<Jn&&11>=Jn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ar(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var or=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Yn)e:{switch(e){case"compositionstart":var a=nr.compositionStart;break e;case"compositionend":a=nr.compositionEnd;break e;case"compositionupdate":a=nr.compositionUpdate;break e}a=void 0}else or?ir(e,n)&&(a=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=nr.compositionStart);return a?(er&&"ko"!==n.locale&&(or||a!==nr.compositionStart?a===nr.compositionEnd&&or&&(i=zn()):(Fn="value"in(Bn=r)?Bn.value:Bn.textContent,or=!0)),a=Gn.getPooled(a,t,n,r),i?a.data=i:null!==(i=ar(n))&&(a.data=i),jn(a),i=a):i=null,(e=Zn?function(e,t){switch(e){case"compositionend":return ar(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(or)return"compositionend"===e||!Yn&&ir(e,t)?(e=zn(),Un=Fn=Bn=null,or=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Qn.getPooled(nr.beforeInput,t,n,r)).data=e,jn(t)):t=null,null===i?t:null===t?i:[i,t]}},ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ur[e.type]:"textarea"===t}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function dr(e,t,n){return(e=Wn.getPooled(cr.change,e,t,n)).type="change",Z(n),jn(e),e}var pr=null,hr=null;function fr(e){st(e)}function gr(e){if(we(On(e)))return e}function mr(e,t){if("change"===e)return t}var _r=!1;function vr(){pr&&(pr.detachEvent("onpropertychange",yr),hr=pr=null)}function yr(e){if("value"===e.propertyName&&gr(hr))if(e=dr(hr,e,ut(e)),ae)st(e);else{ae=!0;try{te(fr,e)}finally{ae=!1,se()}}}function br(e,t,n){"focus"===e?(vr(),hr=n,(pr=t).attachEvent("onpropertychange",yr)):"blur"===e&&vr()}function wr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gr(hr)}function Er(e,t){if("click"===e)return gr(t)}function kr(e,t){if("input"===e||"change"===e)return gr(t)}G&&(_r=lt("input")&&(!document.documentMode||9<document.documentMode));var Sr={eventTypes:cr,_isInputEventSupported:_r,extractEvents:function(e,t,n,r){var i=t?On(t):window,a=i.nodeName&&i.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===i.type)var o=mr;else if(lr(i))if(_r)o=kr;else{o=wr;var s=br}else(a=i.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Er);if(o&&(o=o(e,t)))return dr(o,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Ce(i,"number",i.value)}},xr=Wn.extend({view:null,detail:null}),Tr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tr[e])&&!!t[e]}function Ir(){return Cr}var Or=0,Dr=0,Pr=!1,Ar=!1,Mr=xr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Or;return Or=e.screenX,Pr?"mousemove"===e.type?e.screenX-t:0:(Pr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Dr;return Dr=e.screenY,Ar?"mousemove"===e.type?e.screenY-t:0:(Ar=!0,0)}}),Lr=Mr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Nr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Rr={eventTypes:Nr,extractEvents:function(e,t,n,r,i){var a="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(a&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!o&&!a)return null;(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,o)?(o=t,null!==(t=(t=n.relatedTarget||n.toElement)?Cn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):o=null;if(o===t)return null;if("mouseout"===e||"mouseover"===e)var s=Mr,u=Nr.mouseLeave,l=Nr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Lr,u=Nr.pointerLeave,l=Nr.pointerEnter,c="pointer");if(e=null==o?a:On(o),a=null==t?a:On(t),(u=s.getPooled(u,o,n,r)).type=c+"leave",u.target=e,u.relatedTarget=a,(n=s.getPooled(l,t,n,r)).type=c+"enter",n.target=a,n.relatedTarget=e,c=t,(r=o)&&c)e:{for(l=c,o=0,e=s=r;e;e=Pn(e))o++;for(e=0,t=l;t;t=Pn(t))e++;for(;0<o-e;)s=Pn(s),o--;for(;0<e-o;)l=Pn(l),e--;for(;o--;){if(s===l||s===l.alternate)break e;s=Pn(s),l=Pn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(o=r.alternate)||o!==l);)s.push(r),r=Pn(r);for(r=[];c&&c!==l&&(null===(o=c.alternate)||o!==l);)r.push(c),c=Pn(c);for(c=0;c<s.length;c++)Nn(s[c],"bubbled",u);for(c=r.length;0<c--;)Nn(r[c],"captured",n);return 0==(64&i)?[u]:[u,n]}};var jr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Br=Object.prototype.hasOwnProperty;function Fr(e,t){if(jr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Br.call(t,n[r])||!jr(e[n[r]],t[n[r]]))return!1;return!0}var Ur=G&&"documentMode"in document&&11>=document.documentMode,zr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Hr=null,qr=null,Wr=null,Vr=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vr||null==Hr||Hr!==cn(n)?null:("selectionStart"in(n=Hr)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&Fr(Wr,n)?null:(Wr=n,(e=Wn.getPooled(zr.select,qr,e,t)).type="select",e.target=Hr,jn(e),e))}var $r={eventTypes:zr,extractEvents:function(e,t,n,r,i,a){if(!(a=!(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Je(i),a=K.onSelect;for(var o=0;o<a.length;o++)if(!i.has(a[o])){i=!1;break e}i=!0}a=!i}if(a)return null;switch(i=t?On(t):window,e){case"focus":(lr(i)||"true"===i.contentEditable)&&(Hr=i,qr=t,Wr=null);break;case"blur":Wr=qr=Hr=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vr=!1,Kr(n,r);case"selectionchange":if(Ur)break;case"keydown":case"keyup":return Kr(n,r)}return null}},Gr=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qr=Wn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xr=xr.extend({relatedTarget:null});function Yr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=xr.extend({key:function(e){if(e.key){var t=Jr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Zr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(e){return"keypress"===e.type?Yr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=Mr.extend({dataTransfer:null}),ni=xr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),ri=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Mr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ai={eventTypes:jt,extractEvents:function(e,t,n,r){var i=Bt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Yr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Xr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case Ke:case $e:case Ge:e=Gr;break;case Qe:e=ri;break;case"scroll":e=xr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Lr;break;default:e=Wn}return jn(t=e.getPooled(i,t,n,r)),t}};if(F)throw Error(o(101));F=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),z(),f=Dn,g=In,m=On,$({SimpleEventPlugin:ai,EnterLeaveEventPlugin:Rr,ChangeEventPlugin:Sr,SelectEventPlugin:$r,BeforeInputEventPlugin:sr});var oi=[],si=-1;function ui(e){0>si||(e.current=oi[si],oi[si]=null,si--)}function li(e,t){si++,oi[si]=e.current,e.current=t}var ci={},di={current:ci},pi={current:!1},hi=ci;function fi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function gi(e){return null!=(e=e.childContextTypes)}function mi(){ui(pi),ui(di)}function _i(e,t,n){if(di.current!==ci)throw Error(o(168));li(di,t),li(pi,n)}function vi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,j(t)||"Unknown",a));return i({},n,{},r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,hi=di.current,li(di,e),li(pi,pi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=vi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,ui(pi),ui(di),li(di,e)):ui(pi),li(pi,n)}var wi=a.unstable_runWithPriority,Ei=a.unstable_scheduleCallback,ki=a.unstable_cancelCallback,Si=a.unstable_requestPaint,xi=a.unstable_now,Ti=a.unstable_getCurrentPriorityLevel,Ci=a.unstable_ImmediatePriority,Ii=a.unstable_UserBlockingPriority,Oi=a.unstable_NormalPriority,Di=a.unstable_LowPriority,Pi=a.unstable_IdlePriority,Ai={},Mi=a.unstable_shouldYield,Li=void 0!==Si?Si:function(){},Ni=null,Ri=null,ji=!1,Bi=xi(),Fi=1e4>Bi?xi:function(){return xi()-Bi};function Ui(){switch(Ti()){case Ci:return 99;case Ii:return 98;case Oi:return 97;case Di:return 96;case Pi:return 95;default:throw Error(o(332))}}function zi(e){switch(e){case 99:return Ci;case 98:return Ii;case 97:return Oi;case 96:return Di;case 95:return Pi;default:throw Error(o(332))}}function Hi(e,t){return e=zi(e),wi(e,t)}function qi(e,t,n){return e=zi(e),Ei(e,t,n)}function Wi(e){return null===Ni?(Ni=[e],Ri=Ei(Ci,Ki)):Ni.push(e),Ai}function Vi(){if(null!==Ri){var e=Ri;Ri=null,ki(e)}Ki()}function Ki(){if(!ji&&null!==Ni){ji=!0;var e=0;try{var t=Ni;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ni=null}catch(t){throw null!==Ni&&(Ni=Ni.slice(e+1)),Ei(Ci,Vi),t}finally{ji=!1}}}function $i(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Gi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qi={current:null},Xi=null,Yi=null,Ji=null;function Zi(){Ji=Yi=Xi=null}function ea(e){var t=Qi.current;ui(Qi),e.type._context._currentValue=t}function ta(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function na(e,t){Xi=e,Ji=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Do=!0),e.firstContext=null)}function ra(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Xi)throw Error(o(308));Yi=t,Xi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var ia=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function sa(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ua(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.alternate;null!==n&&oa(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ca(e,t,n,r){var a=e.updateQueue;ia=!1;var o=a.baseQueue,s=a.shared.pending;if(null!==s){if(null!==o){var u=o.next;o.next=s.next,s.next=u}o=s,a.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==o){u=o.next;var l=a.baseState,c=0,d=null,p=null,h=null;if(null!==u)for(var f=u;;){if((s=f.expirationTime)<r){var g={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===h?(p=h=g,d=l):h=h.next=g,s>c&&(c=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),au(s,f.suspenseConfig);e:{var m=e,_=f;switch(s=t,g=n,_.tag){case 1:if("function"==typeof(m=_.payload)){l=m.call(g,l,s);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(s="function"==typeof(m=_.payload)?m.call(g,l,s):m))break e;l=i({},l,s);break e;case 2:ia=!0}}null!==f.callback&&(e.effectTag|=32,null===(s=a.effects)?a.effects=[f]:s.push(f))}if(null===(f=f.next)||f===u){if(null===(s=a.shared.pending))break;f=o.next=s.next,s.next=u,a.baseQueue=o=s,a.shared.pending=null}}null===h?d=l:h.next=p,a.baseState=d,a.baseQueue=h,ou(c),e.expirationTime=c,e.memoizedState=l}}function da(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(o(191,r));r.call(i)}}}var pa=v.ReactCurrentBatchConfig,ha=(new r.Component).refs;function fa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var ga={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),i=pa.suspense;(i=sa(r=$s(r,e,i),i)).payload=t,null!=n&&(i.callback=n),ua(e,i),Gs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),i=pa.suspense;(i=sa(r=$s(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),ua(e,i),Gs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ks(),r=pa.suspense;(r=sa(n=$s(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ua(e,r),Gs(e,n)}};function ma(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!Fr(n,r)||!Fr(i,a))}function _a(e,t,n){var r=!1,i=ci,a=t.contextType;return"object"==typeof a&&null!==a?a=ra(a):(i=gi(t)?hi:di.current,a=(r=null!=(r=t.contextTypes))?fi(e,i):ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function va(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ga.enqueueReplaceState(t,t.state,null)}function ya(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ha,aa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ra(a):(a=gi(t)?hi:di.current,i.context=fi(e,a)),ca(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(fa(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ga.enqueueReplaceState(i,i.state,null),ca(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var ba=Array.isArray;function wa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ha&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ea(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function ka(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Tu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ou(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=Cu(n.type,n.key,n.props,null,e.mode,r)).ref=wa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ou(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Cu(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case E:return(t=Du(t,e.mode,n)).return=e,t}if(ba(t)||R(t))return(t=Iu(t,e.mode,n,null)).return=e,t;Ea(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?n.type===k?d(e,t,n.props.children,r,i):l(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(ba(n)||R(n))return null!==i?null:d(e,t,n,r,null);Ea(e,n)}return null}function f(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return e=e.get(null===r.key?n:r.key)||null,r.type===k?d(t,e,r.props.children,i,r.key):l(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ba(r)||R(r))return d(t,e=e.get(n)||null,r,i,null);Ea(t,r)}return null}function g(i,o,s,u){for(var l=null,c=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var _=h(i,d,s[g],u);if(null===_){null===d&&(d=m);break}e&&d&&null===_.alternate&&t(i,d),o=a(_,o,g),null===c?l=_:c.sibling=_,c=_,d=m}if(g===s.length)return n(i,d),l;if(null===d){for(;g<s.length;g++)null!==(d=p(i,s[g],u))&&(o=a(d,o,g),null===c?l=d:c.sibling=d,c=d);return l}for(d=r(i,d);g<s.length;g++)null!==(m=f(d,i,g,s[g],u))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?l=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),l}function m(i,s,u,l){var c=R(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var d=c=null,g=s,m=s=0,_=null,v=u.next();null!==g&&!v.done;m++,v=u.next()){g.index>m?(_=g,g=null):_=g.sibling;var y=h(i,g,v.value,l);if(null===y){null===g&&(g=_);break}e&&g&&null===y.alternate&&t(i,g),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y,g=_}if(v.done)return n(i,g),c;if(null===g){for(;!v.done;m++,v=u.next())null!==(v=p(i,v.value,l))&&(s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return c}for(g=r(i,g);!v.done;m++,v=u.next())null!==(v=f(g,i,m,v.value,l))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return e&&g.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"==typeof a&&null!==a&&a.type===k&&null===a.key;l&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case w:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){switch(l.tag){case 7:if(a.type===k){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}break;default:if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=wa(e,l,a),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}a.type===k?((r=Iu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Cu(a.type,a.key,a.props,null,e.mode,u)).ref=wa(e,r,a),u.return=e,e=u)}return s(e);case E:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Du(a,e.mode,u)).return=e,e=r}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Ou(a,e.mode,u)).return=e,e=r),s(e);if(ba(a))return g(e,r,a,u);if(R(a))return m(e,r,a,u);if(c&&Ea(e,a),void 0===a&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Sa=ka(!0),xa=ka(!1),Ta={},Ca={current:Ta},Ia={current:Ta},Oa={current:Ta};function Da(e){if(e===Ta)throw Error(o(174));return e}function Pa(e,t){switch(li(Oa,t),li(Ia,e),li(Ca,Ta),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,"");break;default:t=je(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Ca),li(Ca,t)}function Aa(){ui(Ca),ui(Ia),ui(Oa)}function Ma(e){Da(Oa.current);var t=Da(Ca.current),n=je(t,e.type);t!==n&&(li(Ia,e),li(Ca,n))}function La(e){Ia.current===e&&(ui(Ca),ui(Ia))}var Na={current:0};function Ra(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ja(e,t){return{responder:e,props:t}}var Ba=v.ReactCurrentDispatcher,Fa=v.ReactCurrentBatchConfig,Ua=0,za=null,Ha=null,qa=null,Wa=!1;function Va(){throw Error(o(321))}function Ka(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function $a(e,t,n,r,i,a){if(Ua=a,za=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ba.current=null===e||null===e.memoizedState?_o:vo,e=n(r,i),t.expirationTime===Ua){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(o(301));a+=1,qa=Ha=null,t.updateQueue=null,Ba.current=yo,e=n(r,i)}while(t.expirationTime===Ua)}if(Ba.current=mo,t=null!==Ha&&null!==Ha.next,Ua=0,qa=Ha=za=null,Wa=!1,t)throw Error(o(300));return e}function Ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qa?za.memoizedState=qa=e:qa=qa.next=e,qa}function Qa(){if(null===Ha){var e=za.alternate;e=null!==e?e.memoizedState:null}else e=Ha.next;var t=null===qa?za.memoizedState:qa.next;if(null!==t)qa=t,Ha=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ha=e).memoizedState,baseState:Ha.baseState,baseQueue:Ha.baseQueue,queue:Ha.queue,next:null},null===qa?za.memoizedState=qa=e:qa=qa.next=e}return qa}function Xa(e,t){return"function"==typeof t?t(e):t}function Ya(e){var t=Qa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ha,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=a=null,l=i;do{var c=l.expirationTime;if(c<Ua){var d={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=d,a=r):u=u.next=d,c>za.expirationTime&&(za.expirationTime=c,ou(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),au(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=s,jr(r,t.memoizedState)||(Do=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Ja(e){var t=Qa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);jr(a,t.memoizedState)||(Do=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Za(e){var t=Ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:e}).dispatch=go.bind(null,za,e),[t.memoizedState,e]}function eo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=za.updateQueue)?(t={lastEffect:null},za.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function to(){return Qa().memoizedState}function no(e,t,n,r){var i=Ga();za.effectTag|=e,i.memoizedState=eo(1|t,n,void 0,void 0===r?null:r)}function ro(e,t,n,r){var i=Qa();r=void 0===r?null:r;var a=void 0;if(null!==Ha){var o=Ha.memoizedState;if(a=o.destroy,null!==r&&Ka(r,o.deps))return void eo(t,n,a,r)}za.effectTag|=e,i.memoizedState=eo(1|t,n,a,r)}function io(e,t){return no(516,4,e,t)}function ao(e,t){return ro(516,4,e,t)}function oo(e,t){return ro(4,2,e,t)}function so(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function uo(e,t,n){return n=null!=n?n.concat([e]):null,ro(4,2,so.bind(null,t,e),n)}function lo(){}function co(e,t){return Ga().memoizedState=[e,void 0===t?null:t],e}function po(e,t){var n=Qa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ho(e,t){var n=Qa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fo(e,t,n){var r=Ui();Hi(98>r?98:r,(function(){e(!0)})),Hi(97<r?97:r,(function(){var r=Fa.suspense;Fa.suspense=void 0===t?null:t;try{e(!1),n()}finally{Fa.suspense=r}}))}function go(e,t,n){var r=Ks(),i=pa.suspense;i={expirationTime:r=$s(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===za||null!==a&&a===za)Wa=!0,i.expirationTime=Ua,za.expirationTime=Ua;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.eagerReducer=a,i.eagerState=s,jr(s,o))return}catch(e){}Gs(e,r)}}var mo={readContext:ra,useCallback:Va,useContext:Va,useEffect:Va,useImperativeHandle:Va,useLayoutEffect:Va,useMemo:Va,useReducer:Va,useRef:Va,useState:Va,useDebugValue:Va,useResponder:Va,useDeferredValue:Va,useTransition:Va},_o={readContext:ra,useCallback:co,useContext:ra,useEffect:io,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,no(4,2,so.bind(null,t,e),n)},useLayoutEffect:function(e,t){return no(4,2,e,t)},useMemo:function(e,t){var n=Ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=go.bind(null,za,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ga().memoizedState=e},useState:Za,useDebugValue:lo,useResponder:ja,useDeferredValue:function(e,t){var n=Za(e),r=n[0],i=n[1];return io((function(){var n=Fa.suspense;Fa.suspense=void 0===t?null:t;try{i(e)}finally{Fa.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Za(!1),n=t[0];return t=t[1],[co(fo.bind(null,t,e),[t,e]),n]}},vo={readContext:ra,useCallback:po,useContext:ra,useEffect:ao,useImperativeHandle:uo,useLayoutEffect:oo,useMemo:ho,useReducer:Ya,useRef:to,useState:function(){return Ya(Xa)},useDebugValue:lo,useResponder:ja,useDeferredValue:function(e,t){var n=Ya(Xa),r=n[0],i=n[1];return ao((function(){var n=Fa.suspense;Fa.suspense=void 0===t?null:t;try{i(e)}finally{Fa.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Ya(Xa),n=t[0];return t=t[1],[po(fo.bind(null,t,e),[t,e]),n]}},yo={readContext:ra,useCallback:po,useContext:ra,useEffect:ao,useImperativeHandle:uo,useLayoutEffect:oo,useMemo:ho,useReducer:Ja,useRef:to,useState:function(){return Ja(Xa)},useDebugValue:lo,useResponder:ja,useDeferredValue:function(e,t){var n=Ja(Xa),r=n[0],i=n[1];return ao((function(){var n=Fa.suspense;Fa.suspense=void 0===t?null:t;try{i(e)}finally{Fa.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Ja(Xa),n=t[0];return t=t[1],[po(fo.bind(null,t,e),[t,e]),n]}},bo=null,wo=null,Eo=!1;function ko(e,t){var n=Su(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function So(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function xo(e){if(Eo){var t=wo;if(t){var n=t;if(!So(e,t)){if(!(t=wn(n.nextSibling))||!So(e,t))return e.effectTag=-1025&e.effectTag|2,Eo=!1,void(bo=e);ko(bo,n)}bo=e,wo=wn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Eo=!1,bo=e}}function To(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;bo=e}function Co(e){if(e!==bo)return!1;if(!Eo)return To(e),Eo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!vn(t,e.memoizedProps))for(t=wo;t;)ko(e,t),t=wn(t.nextSibling);if(To(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){wo=wn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}wo=null}}else wo=bo?wn(e.stateNode.nextSibling):null;return!0}function Io(){wo=bo=null,Eo=!1}var Oo=v.ReactCurrentOwner,Do=!1;function Po(e,t,n,r){t.child=null===e?xa(t,null,n,r):Sa(t,e.child,n,r)}function Ao(e,t,n,r,i){n=n.render;var a=t.ref;return na(t,i),r=$a(e,t,n,r,a,i),null===e||Do?(t.effectTag|=1,Po(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Go(e,t,i))}function Mo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||xu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Cu(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Lo(e,t,o,r,i,a))}return o=e.child,i<a&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(i,r)&&e.ref===t.ref)?Go(e,t,a):(t.effectTag|=1,(e=Tu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Lo(e,t,n,r,i,a){return null!==e&&Fr(e.memoizedProps,r)&&e.ref===t.ref&&(Do=!1,i<a)?(t.expirationTime=e.expirationTime,Go(e,t,a)):Ro(e,t,n,r,a)}function No(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ro(e,t,n,r,i){var a=gi(n)?hi:di.current;return a=fi(t,a),na(t,i),n=$a(e,t,n,r,a,i),null===e||Do?(t.effectTag|=1,Po(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Go(e,t,i))}function jo(e,t,n,r,i){if(gi(n)){var a=!0;yi(t)}else a=!1;if(na(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),_a(t,n,r),ya(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;"object"==typeof l&&null!==l?l=ra(l):l=fi(t,l=gi(n)?hi:di.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||u!==l)&&va(t,o,r,l),ia=!1;var p=t.memoizedState;o.state=p,ca(t,r,o,i),u=t.memoizedState,s!==r||p!==u||pi.current||ia?("function"==typeof c&&(fa(t,n,c,r),u=t.memoizedState),(s=ia||ma(t,n,s,r,p,u,l))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"==typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,oa(e,t),s=t.memoizedProps,o.props=t.type===t.elementType?s:Gi(t.type,s),u=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=ra(l):l=fi(t,l=gi(n)?hi:di.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||u!==l)&&va(t,o,r,l),ia=!1,u=t.memoizedState,o.state=u,ca(t,r,o,i),p=t.memoizedState,s!==r||u!==p||pi.current||ia?("function"==typeof c&&(fa(t,n,c,r),p=t.memoizedState),(c=ia||ma(t,n,s,r,u,p,l))?(d||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Bo(e,t,n,r,a,i)}function Bo(e,t,n,r,i,a){No(e,t);var o=0!=(64&t.effectTag);if(!r&&!o)return i&&bi(t,n,!1),Go(e,t,a);r=t.stateNode,Oo.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,s,a)):Po(e,t,s,a),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Fo(e){var t=e.stateNode;t.pendingContext?_i(0,t.pendingContext,t.pendingContext!==t.context):t.context&&_i(0,t.context,!1),Pa(e,t.containerInfo)}var Uo,zo,Ho,qo={dehydrated:null,retryTime:0};function Wo(e,t,n){var r,i=t.mode,a=t.pendingProps,o=Na.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&o)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),li(Na,1&o),null===e){if(void 0!==a.fallback&&xo(t),s){if(s=a.fallback,(a=Iu(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Iu(s,i,n,null)).return=t,a.sibling=n,t.memoizedState=qo,t.child=a,n}return i=a.children,t.memoizedState=null,t.child=xa(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(a=a.fallback,(n=Tu(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Tu(i,a)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=qo,t.child=n,i}return n=Sa(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=a.fallback,(a=Iu(null,i,0,null)).return=t,a.child=e,null!==e&&(e.return=a),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Iu(s,i,n,null)).return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=qo,t.child=a,n}return t.memoizedState=null,t.child=Sa(t,e,a.children,n)}function Vo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ta(e.return,t)}function Ko(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailExpiration=0,o.tailMode=i,o.lastEffect=a)}function $o(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Po(e,t,r.children,n),0!=(2&(r=Na.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vo(e,n);else if(19===e.tag)Vo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(li(Na,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ra(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ko(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ra(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ko(t,!0,n,null,a,t.lastEffect);break;case"together":Ko(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Go(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&ou(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Tu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qo(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xo(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return gi(t.type)&&mi(),null;case 3:return Aa(),ui(pi),ui(di),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Co(t)||(t.effectTag|=4),null;case 5:La(t),n=Da(Oa.current);var a=t.type;if(null!==e&&null!=t.stateNode)zo(e,t,a,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Da(Ca.current),Co(t)){r=t.stateNode,a=t.type;var s=t.memoizedProps;switch(r[Sn]=t,r[xn]=s,a){case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)$t(Xe[e],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"form":$t("reset",r),$t("submit",r);break;case"details":$t("toggle",r);break;case"input":ke(r,s),$t("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$t("invalid",r),un(n,"onChange");break;case"textarea":Pe(r,s),$t("invalid",r),un(n,"onChange")}for(var u in an(a,s),e=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"==typeof l?r.textContent!==l&&(e=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(e=["children",""+l]):V.hasOwnProperty(u)&&null!=l&&un(n,u)}switch(a){case"input":be(r),Te(r,s,!0);break;case"textarea":be(r),Me(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Re(a)),e===sn?"script"===a?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(a,{is:r.is}):(e=u.createElement(a),"select"===a&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,a),e[Sn]=t,e[xn]=r,Uo(e,t),t.stateNode=e,u=on(a,r),a){case"iframe":case"object":case"embed":$t("load",e),l=r;break;case"video":case"audio":for(l=0;l<Xe.length;l++)$t(Xe[l],e);l=r;break;case"source":$t("error",e),l=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),l=r;break;case"form":$t("reset",e),$t("submit",e),l=r;break;case"details":$t("toggle",e),l=r;break;case"input":ke(e,r),l=Ee(e,r),$t("invalid",e),un(n,"onChange");break;case"option":l=Ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),$t("invalid",e),un(n,"onChange");break;case"textarea":Pe(e,r),l=De(e,r),$t("invalid",e),un(n,"onChange");break;default:l=r}an(a,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?nn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Fe(e,d):"children"===s?"string"==typeof d?("textarea"!==a||""!==d)&&Ue(e,d):"number"==typeof d&&Ue(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(V.hasOwnProperty(s)?null!=d&&un(n,s):null!=d&&_e(e,s,d,u))}switch(a){case"input":be(e),Te(e,r,!1);break;case"textarea":be(e),Me(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ve(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Oe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=ln)}_n(a,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ho(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Da(Oa.current),Da(Ca.current),Co(t)?(n=t.stateNode,r=t.memoizedProps,n[Sn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sn]=t,t.stateNode=n)}return null;case 13:return ui(Na),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Co(t):(r=null!==(a=e.memoizedState),n||null===a||null!==(a=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=a,a.nextEffect=s):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Na.current)?Cs===bs&&(Cs=ws):(Cs!==bs&&Cs!==ws||(Cs=Es),0!==As&&null!==Ss&&(Mu(Ss,Ts),Lu(Ss,As)))),(n||r)&&(t.effectTag|=4),null);case 4:return Aa(),null;case 10:return ea(t),null;case 17:return gi(t.type)&&mi(),null;case 19:if(ui(Na),null===(r=t.memoizedState))return null;if(a=0!=(64&t.effectTag),null===(s=r.rendering)){if(a)Qo(r,!1);else if(Cs!==bs||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Ra(s))){for(t.effectTag|=64,Qo(r,!1),null!==(a=e.updateQueue)&&(t.updateQueue=a,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(a=r).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(e=a.alternate)?(a.childExpirationTime=0,a.expirationTime=s,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=e.childExpirationTime,a.expirationTime=e.expirationTime,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,s=e.dependencies,a.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return li(Na,1&Na.current|2),t.child}s=s.sibling}}else{if(!a)if(null!==(e=Ra(s))){if(t.effectTag|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Qo(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,a=!0,Qo(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Fi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=Na.current,li(Na,a?1&t|2:1&t),n):null}throw Error(o(156,t.tag))}function Yo(e){switch(e.tag){case 1:gi(e.type)&&mi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Aa(),ui(pi),ui(di),0!=(64&(t=e.effectTag)))throw Error(o(285));return e.effectTag=-4097&t|64,e;case 5:return La(e),null;case 13:return ui(Na),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ui(Na),null;case 4:return Aa(),null;case 10:return ea(e),null;default:return null}}function Jo(e,t){return{value:e,source:t,stack:B(t)}}Uo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},zo=function(e,t,n,r,a){var o=e.memoizedProps;if(o!==r){var s,u,l=t.stateNode;switch(Da(Ca.current),e=null,n){case"input":o=Ee(l,o),r=Ee(l,r),e=[];break;case"option":o=Ie(l,o),r=Ie(l,r),e=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":o=De(l,o),r=De(l,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(l.onclick=ln)}for(s in an(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s)for(u in l=o[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(V.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(s,c)):"children"===s?l===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(V.hasOwnProperty(s)?(null!=c&&un(a,s),e||l===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),a=e,(t.updateQueue=a)&&(t.effectTag|=4)}},Ho=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Zo="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=B(n)),null!==n&&j(n.type),t=t.value,null!==e&&1===e.tag&&j(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){vu(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Gi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(o(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Gi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&da(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}da(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&_n(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Rt(n)))));case 19:case 17:case 20:case 21:return}throw Error(o(163))}function os(e,t,n){switch("function"==typeof Eu&&Eu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Hi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){vu(i,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){vu(e,t)}}(t,n);break;case 5:ts(t);break;case 4:cs(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function us(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:{for(var t=e.return;null!==t;){if(us(t)){var n=t;break e}t=t.return}throw Error(o(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||us(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=ln));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function cs(e,t,n){for(var r,i,a=t,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(o(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var u=e,l=a,c=n,d=l;;)if(os(u,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===l)break e;for(;null===d.sibling;){if(null===d.return||d.return===l)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(u=r,l=a.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,i=!0,a.child.return=a,a=a.child;continue}}else if(os(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function ds(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[xn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),on(e,i),t=on(e,r),i=0;i<a.length;i+=2){var s=a[i],u=a[i+1];"style"===s?nn(n,u):"dangerouslySetInnerHTML"===s?Fe(n,u):"children"===s?Ue(n,u):_e(n,s,u,t)}switch(e){case"input":xe(n,r);break;case"textarea":Ae(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Oe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Oe(n,!!r.multiple,r.defaultValue,!0):Oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Rt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ls=Fi()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"==typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,a.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ps(t);case 19:return void ps(t);case 17:return}throw Error(o(163))}function ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zo),t.forEach((function(t){var r=bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=sa(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rs||(Rs=!0,js=r),es(e,t)},n}function gs(e,t,n){(n=sa(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bs?Bs=new Set([this]):Bs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var ms,_s=Math.ceil,vs=v.ReactCurrentDispatcher,ys=v.ReactCurrentOwner,bs=0,ws=3,Es=4,ks=0,Ss=null,xs=null,Ts=0,Cs=bs,Is=null,Os=1073741823,Ds=1073741823,Ps=null,As=0,Ms=!1,Ls=0,Ns=null,Rs=!1,js=null,Bs=null,Fs=!1,Us=null,zs=90,Hs=null,qs=0,Ws=null,Vs=0;function Ks(){return 0!=(48&ks)?1073741821-(Fi()/10|0):0!==Vs?Vs:Vs=1073741821-(Fi()/10|0)}function $s(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Ui();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&ks))return Ts;if(null!==n)e=$i(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=$i(e,150,100);break;case 97:case 96:e=$i(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==Ss&&e===Ts&&--e,e}function Gs(e,t){if(50<qs)throw qs=0,Ws=null,Error(o(185));if(null!==(e=Qs(e,t))){var n=Ui();1073741823===t?0!=(8&ks)&&0==(48&ks)?Zs(e):(Ys(e),0===ks&&Vi()):Ys(e),0==(4&ks)||98!==n&&99!==n||(null===Hs?Hs=new Map([[e,t]]):(void 0===(n=Hs.get(e))||n>t)&&Hs.set(e,t))}}function Qs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ss===i&&(ou(t),Cs===Es&&Mu(i,Ts)),Lu(i,t)),i}function Xs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Au(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ys(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Wi(Zs.bind(null,e));else{var t=Xs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ks();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ai&&ki(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Wi(Zs.bind(null,e)):qi(r,Js.bind(null,e),{timeout:10*(1073741821-t)-Fi()}),e.callbackNode=t}}}function Js(e,t){if(Vs=0,t)return Nu(e,t=Ks()),Ys(e),null;var n=Xs(e);if(0!==n){if(t=e.callbackNode,0!=(48&ks))throw Error(o(327));if(gu(),e===Ss&&n===Ts||nu(e,n),null!==xs){var r=ks;ks|=16;for(var i=iu();;)try{uu();break}catch(t){ru(e,t)}if(Zi(),ks=r,vs.current=i,1===Cs)throw t=Is,nu(e,n),Mu(e,n),Ys(e),t;if(null===xs)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Cs,Ss=null,r){case bs:case 1:throw Error(o(345));case 2:Nu(e,2<n?2:n);break;case ws:if(Mu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=du(i)),1073741823===Os&&10<(i=Ls+500-Fi())){if(Ms){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,nu(e,n);break}}if(0!==(a=Xs(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=yn(pu.bind(null,e),i);break}pu(e);break;case Es:if(Mu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=du(i)),Ms&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nu(e,n);break}if(0!==(i=Xs(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ds?r=10*(1073741821-Ds)-Fi():1073741823===Os?r=0:(r=10*(1073741821-Os)-5e3,0>(r=(i=Fi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_s(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=yn(pu.bind(null,e),r);break}pu(e);break;case 5:if(1073741823!==Os&&null!==Ps){a=Os;var s=Ps;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(a=Fi()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)))<=i?0:i+r-a),10<r){Mu(e,n),e.timeoutHandle=yn(pu.bind(null,e),r);break}}pu(e);break;default:throw Error(o(329))}if(Ys(e),e.callbackNode===t)return Js.bind(null,e)}}return null}function Zs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&ks))throw Error(o(327));if(gu(),e===Ss&&t===Ts||nu(e,t),null!==xs){var n=ks;ks|=16;for(var r=iu();;)try{su();break}catch(t){ru(e,t)}if(Zi(),ks=n,vs.current=r,1===Cs)throw n=Is,nu(e,t),Mu(e,t),Ys(e),n;if(null!==xs)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ss=null,pu(e),Ys(e)}return null}function eu(e,t){var n=ks;ks|=1;try{return e(t)}finally{0===(ks=n)&&Vi()}}function tu(e,t){var n=ks;ks&=-2,ks|=8;try{return e(t)}finally{0===(ks=n)&&Vi()}}function nu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,bn(n)),null!==xs)for(n=xs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&mi();break;case 3:Aa(),ui(pi),ui(di);break;case 5:La(r);break;case 4:Aa();break;case 13:case 19:ui(Na);break;case 10:ea(r)}n=n.return}Ss=e,xs=Tu(e.current,null),Ts=t,Cs=bs,Is=null,Ds=Os=1073741823,Ps=null,As=0,Ms=!1}function ru(e,t){for(;;){try{if(Zi(),Ba.current=mo,Wa)for(var n=za.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ua=0,qa=Ha=za=null,Wa=!1,null===xs||null===xs.return)return Cs=1,Is=t,xs=null;e:{var i=e,a=xs.return,o=xs,s=t;if(t=Ts,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&o.mode)){var l=o.alternate;l?(o.memoizedState=l.memoizedState,o.expirationTime=l.expirationTime):o.memoizedState=null}var c=0!=(1&Na.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var f=d.memoizedProps;p=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!c)}}if(p){var g=d.updateQueue;if(null===g){var m=new Set;m.add(u),d.updateQueue=m}else g.add(u);if(0==(2&d.mode)){if(d.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var _=sa(1073741823,null);_.tag=2,ua(o,_)}o.expirationTime=1073741823;break e}s=void 0,o=t;var v=i.pingCache;if(null===v?(v=i.pingCache=new hs,s=new Set,v.set(u,s)):void 0===(s=v.get(u))&&(s=new Set,v.set(u,s)),!s.has(o)){s.add(o);var y=yu.bind(null,i,u,o);u.then(y,y)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((j(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+B(o))}5!==Cs&&(Cs=2),s=Jo(s,o),d=a;do{switch(d.tag){case 3:u=s,d.effectTag|=4096,d.expirationTime=t,la(d,fs(d,u,t));break e;case 1:u=s;var b=d.type,w=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof b.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Bs||!Bs.has(w)))){d.effectTag|=4096,d.expirationTime=t,la(d,gs(d,u,t));break e}}d=d.return}while(null!==d)}xs=cu(xs)}catch(e){t=e;continue}break}}function iu(){var e=vs.current;return vs.current=mo,null===e?mo:e}function au(e,t){e<Os&&2<e&&(Os=e),null!==t&&e<Ds&&2<e&&(Ds=e,Ps=t)}function ou(e){e>As&&(As=e)}function su(){for(;null!==xs;)xs=lu(xs)}function uu(){for(;null!==xs&&!Mi();)xs=lu(xs)}function lu(e){var t=ms(e.alternate,e,Ts);return e.memoizedProps=e.pendingProps,null===t&&(t=cu(e)),ys.current=null,t}function cu(e){xs=e;do{var t=xs.alternate;if(e=xs.return,0==(2048&xs.effectTag)){if(t=Xo(t,xs,Ts),1===Ts||1!==xs.childExpirationTime){for(var n=0,r=xs.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}xs.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=xs.firstEffect),null!==xs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=xs.firstEffect),e.lastEffect=xs.lastEffect),1<xs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=xs:e.firstEffect=xs,e.lastEffect=xs))}else{if(null!==(t=Yo(xs)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=xs.sibling))return t;xs=e}while(null!==xs);return Cs===bs&&(Cs=5),null}function du(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function pu(e){var t=Ui();return Hi(99,hu.bind(null,e,t)),null}function hu(e,t){do{gu()}while(null!==Us);if(0!=(48&ks))throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=du(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ss&&(xs=Ss=null,Ts=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var a=ks;ks|=32,ys.current=null,gn=Kt;var s=hn();if(fn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{u.nodeType,d.nodeType}catch(e){u=null;break e}var p=0,h=-1,f=-1,g=0,m=0,_=s,v=null;t:for(;;){for(var y;_!==u||0!==c&&3!==_.nodeType||(h=p+c),_!==d||0!==l&&3!==_.nodeType||(f=p+l),3===_.nodeType&&(p+=_.nodeValue.length),null!==(y=_.firstChild);)v=_,_=y;for(;;){if(_===s)break t;if(v===u&&++g===c&&(h=p),v===d&&++m===l&&(f=p),null!==(y=_.nextSibling))break;v=(_=v).parentNode}_=y}u=-1===h||-1===f?null:{start:h,end:f}}else u=null}u=u||{start:0,end:0}}else u=null;mn={activeElementDetached:null,focusedElem:s,selectionRange:u},Kt=!1,Ns=i;do{try{fu()}catch(e){if(null===Ns)throw Error(o(330));vu(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);Ns=i;do{try{for(s=e,u=t;null!==Ns;){var b=Ns.effectTag;if(16&b&&Ue(Ns.stateNode,""),128&b){var w=Ns.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&b){case 2:ls(Ns),Ns.effectTag&=-3;break;case 6:ls(Ns),Ns.effectTag&=-3,ds(Ns.alternate,Ns);break;case 1024:Ns.effectTag&=-1025;break;case 1028:Ns.effectTag&=-1025,ds(Ns.alternate,Ns);break;case 4:ds(Ns.alternate,Ns);break;case 8:cs(s,c=Ns,u),ss(c)}Ns=Ns.nextEffect}}catch(e){if(null===Ns)throw Error(o(330));vu(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);if(E=mn,w=hn(),b=E.focusedElem,u=E.selectionRange,w!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==u&&fn(b)&&(w=u.start,void 0===(E=u.end)&&(E=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(E,b.value.length)):(E=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),c=b.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!E.extend&&s>u&&(c=u,u=s,s=c),c=pn(b,s),d=pn(b,u),c&&d&&(1!==E.rangeCount||E.anchorNode!==c.node||E.anchorOffset!==c.offset||E.focusNode!==d.node||E.focusOffset!==d.offset)&&((w=w.createRange()).setStart(c.node,c.offset),E.removeAllRanges(),s>u?(E.addRange(w),E.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),E.addRange(w))))),w=[];for(E=b;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(E=w[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Kt=!!gn,mn=gn=null,e.current=n,Ns=i;do{try{for(b=e;null!==Ns;){var k=Ns.effectTag;if(36&k&&as(b,Ns.alternate,Ns),128&k){w=void 0;var S=Ns.ref;if(null!==S){var x=Ns.stateNode;switch(Ns.tag){case 5:w=x;break;default:w=x}"function"==typeof S?S(w):S.current=w}}Ns=Ns.nextEffect}}catch(e){if(null===Ns)throw Error(o(330));vu(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);Ns=null,Li(),ks=a}else e.current=n;if(Fs)Fs=!1,Us=e,zs=t;else for(Ns=i;null!==Ns;)t=Ns.nextEffect,Ns.nextEffect=null,Ns=t;if(0===(t=e.firstPendingTime)&&(Bs=null),1073741823===t?e===Ws?qs++:(qs=0,Ws=e):qs=0,"function"==typeof wu&&wu(n.stateNode,r),Ys(e),Rs)throw Rs=!1,e=js,js=null,e;return 0!=(8&ks)||Vi(),null}function fu(){for(;null!==Ns;){var e=Ns.effectTag;0!=(256&e)&&ns(Ns.alternate,Ns),0==(512&e)||Fs||(Fs=!0,qi(97,(function(){return gu(),null}))),Ns=Ns.nextEffect}}function gu(){if(90!==zs){var e=97<zs?97:zs;return zs=90,Hi(e,mu)}}function mu(){if(null===Us)return!1;var e=Us;if(Us=null,0!=(48&ks))throw Error(o(331));var t=ks;for(ks|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(t){if(null===e)throw Error(o(330));vu(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ks=t,Vi(),!0}function _u(e,t,n){ua(e,t=fs(e,t=Jo(n,t),1073741823)),null!==(e=Qs(e,1073741823))&&Ys(e)}function vu(e,t){if(3===e.tag)_u(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){_u(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bs||!Bs.has(r))){ua(n,e=gs(n,e=Jo(t,e),1073741823)),null!==(n=Qs(n,1073741823))&&Ys(n);break}}n=n.return}}function yu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ss===e&&Ts===n?Cs===Es||Cs===ws&&1073741823===Os&&Fi()-Ls<500?nu(e,Ts):Ms=!0:Au(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ys(e)))}function bu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=$s(t=Ks(),e,null)),null!==(e=Qs(e,t))&&Ys(e)}ms=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||pi.current)Do=!0;else{if(r<n){switch(Do=!1,t.tag){case 3:Fo(t),Io();break;case 5:if(Ma(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:gi(t.type)&&yi(t);break;case 4:Pa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,li(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Wo(e,t,n):(li(Na,1&Na.current),null!==(t=Go(e,t,n))?t.sibling:null);li(Na,1&Na.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return $o(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),li(Na,Na.current),!r)return null}return Go(e,t,n)}Do=!1}}else Do=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=fi(t,di.current),na(t,n),i=$a(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var a=!0;yi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&fa(t,r,s,e),i.updater=ga,t.stateNode=i,i._reactInternalFiber=t,ya(t,r,e,n),t=Bo(null,t,r,!0,a,n)}else t.tag=0,Po(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,a=t.tag=function(e){if("function"==typeof e)return xu(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===A)return 14}return 2}(i),e=Gi(i,e),a){case 0:t=Ro(null,t,i,e,n);break e;case 1:t=jo(null,t,i,e,n);break e;case 11:t=Ao(null,t,i,e,n);break e;case 14:t=Mo(null,t,i,Gi(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ro(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 1:return r=t.type,i=t.pendingProps,jo(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 3:if(Fo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oa(e,t),ca(t,r,null,n),(r=t.memoizedState.element)===i)Io(),t=Go(e,t,n);else{if((i=t.stateNode.hydrate)&&(wo=wn(t.stateNode.containerInfo.firstChild),bo=t,i=Eo=!0),i)for(n=xa(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Po(e,t,r,n),Io();t=t.child}return t;case 5:return Ma(t),null===e&&xo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,vn(r,i)?s=null:null!==a&&vn(r,a)&&(t.effectTag|=16),No(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Po(e,t,s,n),t=t.child),t;case 6:return null===e&&xo(t),null;case 13:return Wo(e,t,n);case 4:return Pa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Sa(t,null,r,n):Po(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ao(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 7:return Po(e,t,t.pendingProps,n),t.child;case 8:case 12:return Po(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var u=t.type._context;if(li(Qi,u._currentValue),u._currentValue=a,null!==s)if(u=s.value,0===(a=jr(u,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(s.children===i.children&&!pi.current){t=Go(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===u.tag&&((c=sa(n,null)).tag=2,ua(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),ta(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Po(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(i=ra(i,a.unstable_observedBits)),t.effectTag|=1,Po(e,t,r,n),t.child;case 14:return a=Gi(i=t.type,t.pendingProps),Mo(e,t,i,a=Gi(i.type,a),r,n);case 15:return Lo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,gi(r)?(e=!0,yi(t)):e=!1,na(t,n),_a(t,r,i),ya(t,r,i,n),Bo(null,t,r,!0,e,n);case 19:return $o(e,t,n)}throw Error(o(156,t.tag))};var wu=null,Eu=null;function ku(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Su(e,t,n,r){return new ku(e,t,n,r)}function xu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tu(e,t){var n=e.alternate;return null===n?((n=Su(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cu(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)xu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Iu(n.children,i,a,t);case I:s=8,i|=7;break;case S:s=8,i|=1;break;case x:return(e=Su(12,n,t,8|i)).elementType=x,e.type=x,e.expirationTime=a,e;case D:return(e=Su(13,n,t,i)).type=D,e.elementType=D,e.expirationTime=a,e;case P:return(e=Su(19,n,t,i)).elementType=P,e.expirationTime=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case C:s=9;break e;case O:s=11;break e;case A:s=14;break e;case M:s=16,r=null;break e;case L:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Su(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=a,t}function Iu(e,t,n,r){return(e=Su(7,e,r,t)).expirationTime=n,e}function Ou(e,t,n){return(e=Su(6,e,null,t)).expirationTime=n,e}function Du(e,t,n){return(t=Su(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Au(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Mu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Lu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Nu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ru(e,t,n,r){var i=t.current,a=Ks(),s=pa.suspense;a=$s(a,i,s);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(gi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var l=n.type;if(gi(l)){n=vi(n,l,u);break e}}n=u}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=sa(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),Gs(i,a),a}function ju(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Bu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Fu(e,t){Bu(e,t),(e=e.alternate)&&Bu(e,t)}function Uu(e,t,n){var r=new Pu(e,t,n=null!=n&&!0===n.hydrate),i=Su(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,aa(i),e[Tn]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Tt.forEach((function(e){ft(e,t,n)})),Ct.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=ju(o);s.call(e)}}Ru(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Uu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var u=i;i=function(){var e=ju(o);u.call(e)}}tu((function(){Ru(t,o,e,i)}))}return ju(o)}function qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Wu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!zu(t))throw Error(o(200));return qu(e,t,null,n)}Uu.prototype.render=function(e){Ru(e,this._internalRoot,null,null)},Uu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ru(null,e,null,(function(){t[Tn]=null}))},gt=function(e){if(13===e.tag){var t=$i(Ks(),150,100);Gs(e,t),Fu(e,t)}},mt=function(e){13===e.tag&&(Gs(e,3),Fu(e,3))},_t=function(e){if(13===e.tag){var t=Ks();Gs(e,t=$s(t,e,null)),Fu(e,t)}},Q=function(e,t,n){switch(t){case"input":if(xe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Dn(r);if(!i)throw Error(o(90));we(r),xe(r,i)}}}break;case"textarea":Ae(e,n);break;case"select":null!=(t=n.value)&&Oe(e,!!n.multiple,t,!1)}},te=eu,ne=function(e,t,n,r,i){var a=ks;ks|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(ks=a)&&Vi()}},re=function(){0==(49&ks)&&(function(){if(null!==Hs){var e=Hs;Hs=null,e.forEach((function(e,t){Nu(t,e),Ys(t)})),Vi()}}(),gu())},ie=function(e,t){var n=ks;ks|=2;try{return e(t)}finally{0===(ks=n)&&Vi()}};var Vu,Ku,$u={Events:[In,On,Dn,$,W,jn,function(e){it(e,Rn)},Z,ee,Yt,st,gu,{current:!1}]};Ku=(Vu={findFiberByHostInstance:Cn,bundleType:0,version:"16.13.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);wu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Eu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},Vu,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Ku?Ku(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$u,t.createPortal=Wu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&ks))throw Error(o(187));var n=ks;ks|=1;try{return Hi(99,e.bind(null,t))}finally{ks=n,Vi()}},t.hydrate=function(e,t,n){if(!zu(t))throw Error(o(200));return Hu(null,e,t,!0,n)},t.render=function(e,t,n){if(!zu(t))throw Error(o(200));return Hu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!zu(e))throw Error(o(40));return!!e._reactRootContainer&&(tu((function(){Hu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tn]=null}))})),!0)},t.unstable_batchedUpdates=eu,t.unstable_createPortal=function(e,t){return Wu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zu(n))throw Error(o(200));if(null==e||void 0===e._reactInternalFiber)throw Error(o(38));return Hu(e,t,n,!1,r)},t.version="16.13.0"},function(e,t,n){"use strict";e.exports=n(59)},function(e,t,n){"use strict";
  /** @license React v0.19.0
   * scheduler.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r,i,a,o,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,l=null,c=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(c,0))},i=function(e,t){l=setTimeout(e,t)},a=function(){clearTimeout(l)},o=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,h=window.Date,f=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var _=h.now();t.unstable_now=function(){return h.now()-_}}var v=!1,y=null,b=-1,w=5,E=0;o=function(){return t.unstable_now()>=E},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,S=k.port2;k.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+w;try{y(!0,e)?S.postMessage(null):(v=!1,y=null)}catch(e){throw S.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,S.postMessage(null))},i=function(e,n){b=f((function(){e(t.unstable_now())}),n)},a=function(){g(b),b=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<I(i,t)))break e;e[r]=t,e[n]=i,n=r}}function T(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>I(o,n))void 0!==u&&0>I(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>I(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],D=[],P=1,A=null,M=3,L=!1,N=!1,R=!1;function j(e){for(var t=T(D);null!==t;){if(null===t.callback)C(D);else{if(!(t.startTime<=e))break;C(D),t.sortIndex=t.expirationTime,x(O,t)}t=T(D)}}function B(e){if(R=!1,j(e),!N)if(null!==T(O))N=!0,r(F);else{var t=T(D);null!==t&&i(B,t.startTime-e)}}function F(e,n){N=!1,R&&(R=!1,a()),L=!0;var r=M;try{for(j(n),A=T(O);null!==A&&(!(A.expirationTime>n)||e&&!o());){var s=A.callback;if(null!==s){A.callback=null,M=A.priorityLevel;var u=s(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?A.callback=u:A===T(O)&&C(O),j(n)}else C(O);A=T(O)}if(null!==A)var l=!0;else{var c=T(D);null!==c&&i(B,c.startTime-n),l=!1}return l}finally{A=null,M=r,L=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||L||(N=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return T(O)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();if("object"==typeof o&&null!==o){var u=o.delay;u="number"==typeof u&&0<u?s+u:s,o="number"==typeof o.timeout?o.timeout:U(e)}else o=U(e),u=s;return e={id:P++,callback:n,priorityLevel:e,startTime:u,expirationTime:o=u+o,sortIndex:-1},u>s?(e.sortIndex=u,x(D,e),null===T(O)&&e===T(D)&&(R?a():R=!0,i(B,u-s))):(e.sortIndex=o,x(O,e),N||L||(N=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var n=T(O);return n!==A&&null!==A&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<A.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){e.exports=n(62)()},function(e,t,n){"use strict";var r=n(63);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
  /** @license React v16.13.0
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,_=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case o:case u:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case _:case m:case l:return e;default:return t}}case a:return t}}}function k(e){return E(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=_,t.Memo=m,t.Portal=a,t.Profiler=u,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||E(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return E(e)===h},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===_},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===u},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===u||e===s||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(16),i=n(36),a=n(67),o=n(43);function s(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var u=s(n(39));u.Axios=a,u.create=function(e){return s(o(u.defaults,e))},u.Cancel=n(44),u.CancelToken=n(80),u.isCancel=n(38),u.all=function(e){return Promise.all(e)},u.spread=n(81),u.isAxiosError=n(82),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(16),i=n(37),a=n(68),o=n(69),s=n(43);function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(16);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(16),i=n(70),a=n(38),o=n(39);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(42);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){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}},e}},function(e,t,n){"use strict";var r=n(16);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(76),i=n(77);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(16),i=["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"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";var r=n(16);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(44);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){var r;
  /*!
   * EventEmitter v5.2.9 - git.io/ee
   * Unlicense - http://unlicense.org/
   * Oliver Caldwell - https://oli.me.uk/
   * @preserve
   */!function(t){"use strict";function i(){}var a=i.prototype,o=t.EventEmitter;function s(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function u(e){return function(){return this[e].apply(this,arguments)}}a.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp)for(n in t={},r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n]);else t=r[e]||(r[e]=[]);return t},a.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},a.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},a.addListener=function(e,t){if(!function e(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&e(t.listener)}(t))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(e),i="object"==typeof t;for(n in r)r.hasOwnProperty(n)&&-1===s(r[n],t)&&r[n].push(i?t:{listener:t,once:!1});return this},a.on=u("addListener"),a.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},a.once=u("addOnceListener"),a.defineEvent=function(e){return this.getListeners(e),this},a.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},a.removeListener=function(e,t){var n,r,i=this.getListenersAsObject(e);for(r in i)i.hasOwnProperty(r)&&-1!==(n=s(i[r],t))&&i[r].splice(n,1);return this},a.off=u("removeListener"),a.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},a.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},a.manipulateListeners=function(e,t,n){var r,i,a=e?this.removeListener:this.addListener,o=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)a.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?a.call(this,r,i):o.call(this,r,i));return this},a.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if(e instanceof RegExp)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},a.removeAllListeners=u("removeEvent"),a.emitEvent=function(e,t){var n,r,i,a,o=this.getListenersAsObject(e);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(e,r.listener),r.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,r.listener);return this},a.trigger=u("emitEvent"),a.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},a.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},a._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},a._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return t.EventEmitter=o,i},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof window?window:this||{})},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t,n){var r=/(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=n(86),a=Object.create?Object.create(null):{};function o(e,t,n,r,i){var a=t.indexOf("<",r),o=t.slice(r,-1===a?void 0:a);/^\s*$/.test(o)&&(o=" "),(!i&&a>-1&&n+e.length>=0||" "!==o)&&e.push({type:"text",content:o})}e.exports=function(e,t){t||(t={}),t.components||(t.components=a);var n,s=[],u=-1,l=[],c={},d=!1;return e.replace(r,(function(r,a){if(d){if(r!=="</"+n.name+">")return;d=!1}var p,h="/"!==r.charAt(1),f=0===r.indexOf("\x3c!--"),g=a+r.length,m=e.charAt(g);h&&!f&&(u++,"tag"===(n=i(r)).type&&t.components[n.name]&&(n.type="component",d=!0),n.voidElement||d||!m||"<"===m||o(n.children,e,u,g,t.ignoreWhitespace),c[n.tagName]=n,0===u&&s.push(n),(p=l[u-1])&&p.children.push(n),l[u]=n),(f||!h||n.voidElement)&&(f||u--,!d&&"<"!==m&&m&&o(p=-1===u?s:l[u].children,e,u,g,t.ignoreWhitespace))})),!s.length&&e.length&&o(s,e,0,0,t.ignoreWhitespace),s}},function(e,t,n){var r=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,i=n(87);e.exports=function(e){var t,n=0,a=!0,o={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(r,(function(r){if("="===r)return a=!0,void n++;a?0===n?((i[r]||"/"===e.charAt(e.length-2))&&(o.voidElement=!0),o.name=r):(o.attrs[t]=r.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(o.attrs[t]=t),t=r),n++,a=!1})),o}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t){function n(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(n,"")+"</"+t.name+">"}}e.exports=function(e){return e.reduce((function(e,t){return e+n("",t)}),"")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){var r=n(93),i=n(46);function a(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,i){for(var o,s,u,l,c=(i=i||{}).library||n(0),d=c.cloneElement,p=c.createElement,h=c.isValidElement,f=[],g="function"==typeof i.replace,m=0,_=t.length;m<_;m++)if(o=t[m],g&&h(s=i.replace(o)))_>1&&(s=d(s,{key:s.key||m})),f.push(s);else if("text"!==o.type){if(u=o.attribs,a(o)||(u=r(o.attribs)),l=null,"script"===o.type||"style"===o.type)o.children[0]&&(u.dangerouslySetInnerHTML={__html:o.children[0].data});else{if("tag"!==o.type)continue;"textarea"===o.name&&o.children[0]?u.defaultValue=o.children[0].data:o.children&&o.children.length&&(l=e(o.children,i))}_>1&&(u.key=m),f.push(p(o.name,u,l))}else f.push(o.data);return 1===f.length?f[0]:f}},function(e,t,n){var r=n(94),i=n(98),a=n(46),o=a.camelCase,s=r.html,u=r.svg,l=r.isCustomAttribute,c=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n,r,d;e=e||{};var p={};for(t in e)r=e[t],l(t)?p[t]=r:(n=t.toLowerCase(),c.call(s,n)?p[(d=s[n]).propertyName]=!!(d.hasBooleanValue||d.hasOverloadedBooleanValue&&!r)||r:c.call(u,t)?p[(d=u[t]).propertyName]=r:a.PRESERVE_CUSTOM_ATTRIBUTES&&(p[t]=r));return null!=e.style&&(p.style=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string.");var t={};return i(e,(function(e,n){e&&n&&(t[o(e)]=n)})),t}(e.style)),p}},function(e,t,n){var r=n(95),i=n(96),a=n(97),o=a.MUST_USE_PROPERTY,s=a.HAS_BOOLEAN_VALUE,u=a.HAS_NUMERIC_VALUE,l=a.HAS_POSITIVE_NUMERIC_VALUE,c=a.HAS_OVERLOADED_BOOLEAN_VALUE;function d(e,t){return(e&t)===t}function p(e,t,n){var r,i,a,p=e.Properties,h=e.DOMAttributeNames;for(i in p)r=h[i]||(n?i:i.toLowerCase()),a=p[i],t[r]={attributeName:r,propertyName:i,mustUseProperty:d(a,o),hasBooleanValue:d(a,s),hasNumericValue:d(a,u),hasPositiveNumericValue:d(a,l),hasOverloadedBooleanValue:d(a,c)}}var h={};p(r,h);var f={};p(i,f,!0);var g={};p(r,g),p(i,g,!0);e.exports={html:h,svg:f,properties:g,isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"))}},function(e,t){e.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},function(e,t){e.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xlinkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},function(e,t){e.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},function(e,t,n){var r=n(99);e.exports=function(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var a,o,s=r(e),u="function"==typeof t,l=0,c=s.length;l<c;l++)a=(n=s[l]).property,o=n.value,u?t(a,o,n):o&&(i||(i={}),i[a]=o);return i}},function(e,t){var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var l=1,d=1;function p(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function h(){var e={line:l,column:d};return function(t){return t.position=new f(e),v(),t}}function f(e){this.start=e,this.end={line:l,column:d},this.source=t.source}f.prototype.content=e;var g=[];function m(n){var r=new Error(t.source+":"+l+":"+d+": "+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=d,r.source=e,!t.silent)throw r;g.push(r)}function _(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){_(i)}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function w(){var e=h(),t=_(a);if(t){if(b(),!_(o))return m("property missing ':'");var r=_(s),i=e({type:"declaration",property:c(t[0].replace(n,"")),value:r?c(r[0].replace(n,"")):""});return _(u),i}}return v(),function(){var e,t=[];for(y(t);e=w();)!1!==e&&(t.push(e),y(t));return t}()}},function(e,t,n){var r=n(101),i=n(47),a=i.formatDOM,o=i.isIE(9),s=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t,n=e.match(s);return n&&n[1]&&(t=n[1],o&&(e=e.replace(n[0],""))),a(r(e),null,t)}},function(e,t,n){var r,i,a,o=n(47),s=/<([a-zA-Z]+[0-9]?)/,u=/<head.*>/i,l=/<body.*>/i,c=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,d=o.isIE(9),p=d||o.isIE();if("function"==typeof window.DOMParser){var h=new window.DOMParser,f=d?"text/xml":"text/html";r=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),d&&(e=e.replace(c,"<$1$2$3/>")),h.parseFromString(e,f)}}if("object"==typeof document.implementation){var g=document.implementation.createHTMLDocument(p?"HTML_DOM_PARSER_TITLE":void 0);i=function(e,t){if(t)return g.documentElement.getElementsByTagName(t)[0].innerHTML=e,g;try{return g.documentElement.innerHTML=e,g}catch(t){if(r)return r(e)}}}var m=document.createElement("template");m.content&&(a=function(e){return m.innerHTML=e,m.content.childNodes});var _=i||r;e.exports=function(e){var t,n,i,o,c=e.match(s);switch(c&&c[1]&&(t=c[1].toLowerCase()),t){case"html":if(r)return n=r(e),u.test(e)||(i=n.getElementsByTagName("head")[0])&&i.parentNode.removeChild(i),l.test(e)||(i=n.getElementsByTagName("body")[0])&&i.parentNode.removeChild(i),n.getElementsByTagName("html");break;case"head":case"body":if(_)return o=_(e).getElementsByTagName(t),l.test(e)&&u.test(e)?o[0].parentNode.childNodes:o;break;default:if(a)return a(e);if(_)return _(e,"body").getElementsByTagName("body")[0].childNodes}return[]}},function(e,t){e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof c?t:c,a=Object.create(i.prototype),o=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return S()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=y(o,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l={};function c(){}function d(){}function p(){}var h={};h[i]=function(){return this};var f=Object.getPrototypeOf,g=f&&f(f(k([])));g&&g!==t&&n.call(g,i)&&(h=g);var m=p.prototype=c.prototype=Object.create(h);function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function v(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var l=u(e[i],e,a);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=m.constructor=p,p.constructor=d,p[o]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},_(v.prototype),v.prototype[a]=function(){return this},e.AsyncIterator=v,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new v(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(m),m[o]="Generator",m[i]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,E.prototype={constructor:E,reset:function(e){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(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},function(e,t,n){"use strict";n.r(t);var r,i=n(0),a=n.n(i),o=n(26),s=n.n(o),u=n(3),l=n.n(u),c=n(4),d=n.n(c),p=n(6),h=n.n(p),f=n(7),g=n.n(f),m=n(8),_=n.n(m),v=n(2),y=n.n(v),b=n(9),w=n.n(b),E=n(12),k=n(5),S=n(1),x=n(13),T=Object(E.b)((function(e){return{chatwidget:e.chatwidget}}))(r=function(e){function t(e){var n;return l()(this,t),(n=h()(this,g()(t).call(this,e))).closeWidget=n.closeWidget.bind(y()(n)),n.endChat=n.endChat.bind(y()(n)),n.popup=n.popup.bind(y()(n)),n}return _()(t,e),d()(t,[{key:"closeWidget",value:function(){this.props.dispatch(Object(k.k)())}},{key:"endChat",value:function(){this.props.endChat()}},{key:"popup",value:function(){this.props.popupChat()}},{key:"componentDidMount",value:function(){var e=document.getElementById("headerDropDown");e&&new(n(25).Dropdown)(e)}},{key:"render",value:function(){var e=this,t=this.props.t,n=!this.props.chatwidget.hasIn(["chat_ui","clinst"])||this.props.chatwidget.get("isMobile"),r=this.props.chatwidget.hasIn(["chat_ui","custom_html_header_body"]),i="row header-chat"+(1==this.props.chatwidget.get("isMobile")?" mobile-header":" desktop-header"),o=!this.props.chatwidget.hasIn(["chat_ui","hide_popup"]),s=!0===this.props.chatwidget.get("isChatting")&&!this.props.chatwidget.hasIn(["chat_ui","hide_close"]),u=this.props.chatwidget.hasIn(["chat_ui","header_buttons"])&&this.props.chatwidget.getIn(["chat_ui","header_buttons"]).map((function(r,i){var u=r.get("pos");if("rtl"==window.lhcChat.staticJS.dir&&(u="left"==u?"right":"left"),"min"==r.get("btn")&&n)return a.a.createElement("a",{className:"minimize-icon header-link float-"+u,title:e.props.chatwidget.getIn(["chat_ui","min_text"])||t("button.minimize"),onClick:e.closeWidget},e.props.chatwidget.hasIn(["chat_ui","img_icon_min"])&&a.a.createElement("img",{className:"px-1",src:e.props.chatwidget.getIn(["chat_ui","img_icon_min"]),alt:""})||a.a.createElement("i",{className:"material-icons"},""));if("popup"==r.get("btn")&&o)return a.a.createElement("a",{className:"header-link float-"+u,title:e.props.chatwidget.getIn(["chat_ui","popup_text"])||t("button.popup"),onClick:e.popup},e.props.chatwidget.hasIn(["chat_ui","img_icon_popup"])&&a.a.createElement("img",{className:"px-1",src:e.props.chatwidget.getIn(["chat_ui","img_icon_popup"]),alt:""})||a.a.createElement("i",{className:"material-icons"},""));if("close"==r.get("btn")&&s){var l=e.props.chatwidget.getIn(["chat_ui","end_chat_text"])||t("button.end_chat");return a.a.createElement("a",{title:l,className:"header-link float-"+u,onClick:e.endChat},e.props.chatwidget.hasIn(["chat_ui","img_icon_close"])&&a.a.createElement("img",{className:"px-1",src:e.props.chatwidget.getIn(["chat_ui","img_icon_close"]),alt:""})||a.a.createElement("i",{className:"material-icons"},""),r.get("print")&&a.a.createElement("span",{className:"end-chat-text"},l))}}));return a.a.createElement("div",{id:"widget-header-content",className:i},r&&a.a.createElement("div",{className:"lhc-custom-header-inside",dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","custom_html_header_body"])}}),a.a.createElement("div",{className:"col-12 px-1"},u))}}]),t}(i.Component))||r,C=Object(x.b)()(T),I=n(49),O=n(14),D=n.n(O),P=n(10),A=n(15),M=n.n(A),L=n(17),N=n.n(L),R=function(e){function t(e){var n;return l()(this,t),(n=h()(this,g()(t).call(this,e))).abstractClick=n.abstractClick.bind(y()(n)),n.imageLoaded=n.imageLoaded.bind(y()(n)),n.updateTriggerClicked=n.updateTriggerClicked.bind(y()(n)),n.disableEditor=!1,n.delayData=[],n}return _()(t,e),d()(t,[{key:"addLoader",value:function(e,t){e["data-no-change"]||"button"!=e.type||(t.setAttribute("disabled","disabled"),t.innerHTML='<i class="material-icons lhc-spin">&#xf113;</i>'+t.innerHTML)}},{key:"abstractClick",value:function(e,t){var n=this,r=this.props.t;if(void 0===e.onchange){if(this.addLoader(e,t.target),e.onclick)if(-1!==e.onclick.indexOf("lhinst.updateTriggerClicked"))this.updateTriggerClicked({type:"/(type)/triggerclicked"},e,t.target);else if(-1!==e.onclick.indexOf("notificationsLHC.sendNotification"))this.props.dispatch(Object(k.q)()),t.target.innerHTML=r("notifications.subscribing"),setTimeout((function(){n.removeMetaMessage(e["data-id"])}),500);else if(-1!==e.onclick.indexOf("lhinst.buttonClicked"))this.updateTriggerClicked({type:""},e,t.target);else if(-1!==e.onclick.indexOf("lhinst.startVoiceCall"))this.props.voiceCall();else if(-1!==e.onclick.indexOf("lhinst.chooseFile"))this.props.abstractAction("fileupload");else if(-1!==e.onclick.indexOf("lhinst.updateChatClicked"))this.updateTriggerClicked({type:"",mainType:"updatebuttonclicked"},e,t.target);else if(-1!==e.onclick.indexOf("lhinst.editGenericStep"))this.updateTriggerClicked({type:"/(type)/editgenericstep"},e,t.target);else if(-1!==e.onclick.indexOf("lhinst.hideShowAction")){var i=JSON.parse(e["data-load"]),a=document.getElementById("message-more-"+i.id);a.classList.contains("hide")?(t.target.innerText=i.hide_text,a.classList.remove("hide")):(t.target.innerText=i.show_text,a.classList.add("hide"))}else if(-1!==e.onclick.indexOf("lhinst.dropdownClicked")){var o=document.getElementById("id_generic_list-"+e["data-id"]);o&&"0"!=o.value&&""!=o.value?(e["data-payload"]=o.value,this.updateTriggerClicked({type:"/(type)/valueclicked"},e,t.target)):alert(r("bot.please_choose"))}else S.a.emitEvent("MessageClick",[e,this.props.dispatch]),console.log("Unknown click event: "+e.onclick);t.preventDefault(),e.src&&e.class&&"img-fluid"==e.class||this.props.focusMessage()}else{if(e.type&&"checkbox"==e.type){if("enable-confirm"==e["payload-type"]){var s=document.getElementById("confirm-button-"+e["data-id"]);t.target.checked?(s.removeAttribute("disabled"),s.onclick=function(t){return n.updateTriggerClicked({type:""},{"data-payload":"confirm","data-id":e["data-id"]},t.target)}):s.setAttribute("disabled","disabled")}return}var u=t.target.options[t.target.selectedIndex],l={"data-payload":u.getAttribute("data-payload"),"data-id":u.getAttribute("data-id")};"trigger"==u.getAttribute("payload-type")?this.updateTriggerClicked({type:"/(type)/triggerclicked"},l,t.target):"button"!=u.getAttribute("payload-type")&&"payload"!=u.getAttribute("payload-type")||this.updateTriggerClicked({type:""},l,t.target)}}},{key:"removeMetaMessage",value:function(e){setTimeout((function(){var t=document.getElementById("msg-"+e);if(t){var n,r=t.getElementsByClassName("meta-message-"+e);for(n=0;n<r.length;n++)r[n].parentNode.removeChild(r[n])}}),500)}},{key:"updateTriggerClicked",value:function(e,t,n){var r=this;this.props.dispatch(Object(k.t)(e,{payload:t["data-payload"],id:t["data-id"],processed:void 0===t["data-keep"]})).then((function(e){t["data-keep"]||r.removeMetaMessage(t["data-id"]),e.data.t&&S.a.sendMessageParent("botTrigger",[{trigger:e.data.t}]),r.props.updateMessages(),r.props.updateStatus()}))}},{key:"imageLoaded",value:function(e){this.props.scrollBottom&&this.props.scrollBottom(!0)}},{key:"componentDidMount",value:function(){var e=this;this.props.setMetaUpdateState(-1!==this.props.msg.msg.indexOf("meta-auto-hide")),1==this.disableEditor?this.props.setEditorEnabled(!1):this.props.setEditorEnabled(!0),this.delayData.length>0&&this.delayData.forEach((function(t){e.props.sendDelay(t)}))}},{key:"formatStringToCamelCase",value:function(e){var t=e.split("-");return 1===t.length?t[0]:t[0]+t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("")}},{key:"getStyleObjectFromString",value:function(e){var t=this,n={};return e.split(";").forEach((function(e){var r=e.split(":"),i=N()(r,2),a=i[0],o=i[1];if(a){var s=t.formatStringToCamelCase(a.trim());n[s]=o.trim()}})),n}},{key:"render",value:function(){var e=this,t=(this.props.t,!1),n=D()(this.props.msg.msg,{replace:function(n){if(n.attribs){var r=Object.assign({},n.attribs);if(n.attribs.class){if(n.attribs.className=n.attribs.class,-1!==n.attribs.className.indexOf("message-row")&&e.props.id>0)n.attribs.className+=" fade-in-fast",e.props.msg.msop>0&&e.props.msg.msop!=e.props.msg.lmsop&&0==t&&(n.attribs.className+=" operator-changes",t=!0);else if(e.props.profilePic&&-1!==n.attribs.className.indexOf("vis-icon-hld"))return a.a.createElement("img",{className:"profile-msg-pic",onLoad:e.imageLoaded,src:e.props.profilePic,alt:"",title:""});delete n.attribs.class}if(n.attribs.onclick&&delete n.attribs.onclick,n.name&&"img"===n.name)return n.attribs.style&&(n.attribs.style=e.getStyleObjectFromString(n.attribs.style)),a.a.createElement("img",M()({},n.attribs,{onLoad:e.imageLoaded,onClick:function(t){return e.abstractClick(r,t)}}));if(n.name&&"button"===n.name){if(r.onclick)return n.attribs.style&&(n.attribs.style=e.getStyleObjectFromString(n.attribs.style)),a.a.createElement("button",M()({},n.attribs,{onClick:function(t){return e.abstractClick(r,t)}}),Object(O.domToReact)(n.children))}else if(n.name&&"a"===n.name){if(r.onclick)return n.attribs.style&&(n.attribs.style=e.getStyleObjectFromString(n.attribs.style)),a.a.createElement("a",M()({},n.attribs,{onClick:function(t){return e.abstractClick(r,t)}}),Object(O.domToReact)(n.children))}else if(n.name&&"select"===n.name){if(r.onchange)return n.attribs.style&&(n.attribs.style=e.getStyleObjectFromString(n.attribs.style)),a.a.createElement("select",M()({},n.attribs,{onChange:function(t){return e.abstractClick(r,t)}}),Object(O.domToReact)(n.children))}else if(n.name&&"input"===n.name){if(n.attribs.type&&"checkbox"==n.attribs.type&&r.onchange)return n.attribs.style&&(n.attribs.style=e.getStyleObjectFromString(n.attribs.style)),a.a.createElement("input",M()({type:"checkbox"},n.attribs,{onChange:function(t){return e.abstractClick(r,t)}}))}else n.name&&"script"===n.name&&n.attribs["data-bot-action"]&&Object(k.m)(n,e)}}});return a.a.createElement(a.a.Fragment,null,1==this.props.hasNew&&this.props.id==this.props.newId&&a.a.createElement("div",{id:"scroll-to-message",className:"message-admin border-bottom new-msg-holder border-danger text-center"},a.a.createElement("span",{className:"new-msg bg-danger text-white d-inline-block fs12 rounded-top"},this.props.newTitle)),n)}}]),t}(i.PureComponent),j=Object(x.b)()(Object(E.b)()(R)),B=n(24),F=n(32),U=n.n(F),z=n(48),H=n.n(z);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){w()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V,K,$,G=function(e){function t(e){var n;return l()(this,t),n=h()(this,g()(t).call(this,e)),w()(y()(n),"state",{hightlight:!1,files:[],uploading:!1,uploadProgress:{},successfullUploaded:!1}),n.fileInputRef=a.a.createRef(),n.openFileDialog=n.openFileDialog.bind(y()(n)),n.onFilesAddedUI=n.onFilesAddedUI.bind(y()(n)),n.onDragOver=n.onDragOver.bind(y()(n)),n.onDragLeave=n.onDragLeave.bind(y()(n)),n.onDrop=n.onDrop.bind(y()(n)),n.onPaste=n.onPaste.bind(y()(n)),n.onFilesAdded=n.onFilesAdded.bind(y()(n)),n.uploadFiles=n.uploadFiles.bind(y()(n)),n.sendRequest=n.sendRequest.bind(y()(n)),n}var n;return _()(t,e),d()(t,[{key:"onFilesAdded",value:function(e){var t=this,n=this.props.t,r=new RegExp("(.|/)("+this.props.fileOptions.get("ft_us")+")$","i"),i=[];e.forEach((function(e){r.test(e.type)||r.test(e.name)||i.push(e.name+": "+n("file.incorrect_type")),e.size>t.props.fileOptions.get("fs")&&i.push(e.name+": "+n("file.to_big_file"))})),i.length>0?alert(i.join("\n")):this.setState({files:e})}},{key:"componentDidUpdate",value:function(e,t){this.state.files.length>0&&0==this.state.uploading&&this.uploadFiles()}},{key:"uploadFiles",value:(n=H()(U.a.mark((function e(){var t,n=this;return U.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({uploadProgress:{},uploading:!0}),t=[],this.state.files.forEach((function(e){t.push(n.sendRequest(e))})),e.prev=3,e.next=6,Promise.all(t);case 6:this.setState({successfullUploaded:!0,uploading:!1,files:[]}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),this.setState({successfullUploaded:!0,uploading:!1,files:[]});case 12:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(){return n.apply(this,arguments)})},{key:"sendRequest",value:function(e){var t=this,n=this.props.t;return new Promise((function(r,i){var a=new XMLHttpRequest;a.upload.addEventListener("progress",(function(r){r.lengthComputable&&(W({},t.state.uploadProgress)[e.name]={state:"pending",percentage:r.loaded/r.total*100},t.props.progress(n("file.uploading")+Math.round(r.loaded/r.total*100)+"%"))})),a.upload.addEventListener("load",(function(n){W({},t.state.uploadProgress)[e.name]={state:"done",percentage:100},t.props.progress("100%"),t.props.onCompletion(),r(a.response)})),a.upload.addEventListener("error",(function(n){var r=W({},t.state.uploadProgress);r[e.name]={state:"error",percentage:0},t.setState({uploadProgress:r}),i(a.response)}));var o=new FormData;o.append("files",e,e.name),a.open("POST",t.props.base_url+"/file/uploadfile/"+t.props.chat_id+"/"+t.props.hash),a.send(o)}))}},{key:"openFileDialog",value:function(){this.state.uploading||this.fileInputRef.current.click()}},{key:"onFilesAddedUI",value:function(e){var t=e.target.files,n=this.fileListToArray(t);this.onFilesAdded(n)}},{key:"onDragOver",value:function(e){e.preventDefault(),this.state.uploading||this.props.onDrag&&this.props.onDrag(!0)}},{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.props.dropArea.current&&(e.props.dropArea.current.ondragover=e.onDragOver,e.props.dropArea.current.ondragleave=e.onDragLeave,e.props.dropArea.current.ondrop=e.onDrop,document.addEventListener("paste",e.onPaste),S.a.eventEmitter.addListener("fileupload",e.openFileDialog))}),1e3)}},{key:"componentWillUnmount",value:function(){this.props.dropArea.current&&(this.props.dropArea.current.ondragover=null,this.props.dropArea.current.ondragleave=null,this.props.dropArea.current.ondrop=null),S.a.eventEmitter.removeListener("fileupload",this.openFileDialog),document.removeEventListener("paste",this.onPaste)}},{key:"onPaste",value:function(e){var t=e&&e.clipboardData&&e.clipboardData.items;if(t&&t.length){for(var n=[],r=0;r<t.length;r++){var i=t[r].getAsFile&&t[r].getAsFile();i&&n.push(i)}n.length>0&&this.onFilesAdded(n)}}},{key:"onDragLeave",value:function(e){this.props.onDrag&&this.props.onDrag(!1)}},{key:"onDrop",value:function(e){if(e.preventDefault(),!this.state.uploading){var t=e.dataTransfer.files,n=this.fileListToArray(t);this.onFilesAdded(n),this.props.onDrag&&this.props.onDrag(!1)}}},{key:"fileListToArray",value:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.item(n));return t}},{key:"render",value:function(){if(this.props.link)return a.a.createElement(a.a.Fragment,null,a.a.createElement("input",{onChange:this.onFilesAddedUI,ref:this.fileInputRef,id:"fileupload",type:"file",name:"files[]",multiple:!this.props.fileOptions.has("one_file_upload"),className:"d-none"}),a.a.createElement("a",{className:"file-uploader",onClick:this.openFileDialog},a.a.createElement("i",{className:"material-icons chat-setting-item text-muted"},"")))}}]),t}(i.PureComponent),Q=Object(x.b)()(G),X=function(e){function t(e){var n;return l()(this,t),n=h()(this,g()(t).call(this,e)),w()(y()(n),"state",{intervalId:null,intervalCheckStatusId:null}),n.syncChat=n.syncChat.bind(y()(n)),n.checkStatusChat=n.checkStatusChat.bind(y()(n)),n}return _()(t,e),d()(t,[{key:"syncChat",value:function(e){this.state.intervalId&&clearTimeout(this.state.intervalId),this.props.updateMessages(),this.setState({intervalId:setTimeout(this.syncChat,this.props.syncInterval)})}},{key:"checkStatusChat",value:function(){this.state.intervalCheckStatusId&&clearTimeout(this.state.intervalCheckStatusId),this.props.updateStatus(),this.setState({intervalCheckStatusId:setTimeout(this.checkStatusChat,this.props.syncInterval)})}},{key:"componentDidMount",value:function(){this.syncChat(),this.checkStatusChat()}},{key:"componentDidUpdate",value:function(e,t){this.props.status==P.c||this.props.status_sub==P.e||this.props.status_sub==P.f||this.props.status_sub==P.d?(this.state.intervalId&&(clearTimeout(this.state.intervalId),this.state.intervalId=null),S.a.sendMessageParent("chatClosed",[])):this.state.intervalId||this.syncChat(),this.props.status_sub==e.status_sub&&this.props.status==e.status&&this.props.initClose==e.initClose&&e.hasSurvey==this.props.hasSurvey||this.checkStatusChat(),this.props.status!=P.c&&this.props.status!=P.b&&this.props.status!=P.a&&this.props.status_sub!=P.e||!this.state.intervalCheckStatusId||0!=this.props.hasSurvey||(clearTimeout(this.state.intervalCheckStatusId),this.state.intervalCheckStatusId=null)}},{key:"componentWillUnmount",value:function(){this.state.intervalId&&clearTimeout(this.state.intervalId),this.state.intervalCheckStatusId&&clearTimeout(this.state.intervalCheckStatusId)}},{key:"render",value:function(){return null}}]),t}(i.PureComponent),Y=function(e){function t(e){var n;return l()(this,t),n=h()(this,g()(t).call(this,e)),w()(y()(n),"state",{dropdown:null}),n}return _()(t,e),d()(t,[{key:"componentDidMount",value:function(){if(document.getElementById(this.props.elementId)){var e=n(25);this.setState({dropdown:new e.Dropdown(document.getElementById(this.props.elementId))})}}},{key:"componentWillUnmount",value:function(){this.state.dropdown&&delete this.state.dropdown}},{key:"render",value:function(){return this.props.children}}]),t}(i.PureComponent),J=n(11),Z=n.n(J),ee=Object(E.b)((function(e){return{chat:e.chatwidget.get("chatData"),chat_ui:e.chatwidget.get("chat_ui")}}))(V=function(e){function t(e){var n;return l()(this,t),(n=h()(this,g()(t).call(this,e))).abstractClick=n.abstractClick.bind(y()(n)),n.checkSwitchButtom=n.checkSwitchButtom.bind(y()(n)),n}return _()(t,e),d()(t,[{key:"abstractClick",value:function(e){var t=this;e.onclick&&("lhinst.voteAction($(this))"==e.onclick?Object(k.v)({id:this.props.chat.get("id"),hash:this.props.chat.get("hash"),type:e["data-id"]}).then((function(e){t.props.updateStatus()})):"notificationsLHC.sendNotification()"==e.onclick?S.a.sendMessageParent("subscribeEvent",[{pk:this.props.chat_ui.get("notifications_pk")}]):-1!==e.onclick.indexOf("lhinst.transferToHuman")?Object(k.r)({id:this.props.chat.get("id"),hash:this.props.chat.get("hash")}).then((function(e){t.props.updateStatus()})):S.a.emitEvent("StatusClick",[e,this.props.dispatch]))}},{key:"checkSwitchButtom",value:function(){this.props.chat_ui.has("switch_to_human")&&this.props.vtm&&this.props.vtm>=this.props.chat_ui.get("switch_to_human")&&Z.a.get(window.lhcChat.base_url+"restapi/isonlinechat/"+this.props.chat.get("id")+"?exclude_bot=true").then((function(e){if(e.data.isonline){var t=document.getElementById("transfer-to-human-btn");null!==t&&t.classList.remove("hide")}}))}},{key:"componentDidMount",value:function(){this.checkSwitchButtom()}},{key:"componentDidUpdate",value:function(e,t,n){this.checkSwitchButtom()}},{key:"render",value:function(){var e=this;return D()(this.props.status,{replace:function(t){if(t.attribs&&t.attribs.onclick&&t.name&&("i"==t.name||"a"==t.name)){var n=Object.assign({},t.attribs);return t.attribs.class&&(t.attribs.className=t.attribs.class,delete t.attribs.class),t.attribs.onclick&&delete t.attribs.onclick,a.a.createElement("i",M()({},t.attribs,{onClick:function(t){return e.abstractClick(n)}}),Object(O.domToReact)(t.children))}}})}}]),t}(i.PureComponent))||V,te=function(e){function t(e){return l()(this,t),h()(this,g()(t).call(this,e))}return _()(t,e),d()(t,[{key:"render",value:function(){return a.a.createElement(a.a.Fragment,null,null!==this.props.profileBefore&&a.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.profileBefore}}),a.a.createElement("div",{className:this.props.msg_expand,id:"messagesBlock",dangerouslySetInnerHTML:{__html:this.props.messagesBefore}}),!this.props.hideMessageField&&a.a.createElement("div",{className:"d-flex flex-row border-top position-relative message-send-area"},a.a.createElement("div",{className:"btn-group dropup disable-select pl-2 pt-2"},a.a.createElement("i",{className:"material-icons settings text-muted","aria-haspopup":"true","aria-expanded":"false"},"")),a.a.createElement("div",{className:"mx-auto pb-1 w-100"},a.a.createElement("textarea",{"aria-label":"Type your message here...",placeholder:this.props.placeholderMessage,id:"CSChatMessage",rows:"1",className:"pl-0 no-outline form-control rounded-0 form-control border-left-0 border-right-0 border-0"})),a.a.createElement("div",{className:"disable-select"},a.a.createElement("div",{className:"user-chatwidget-buttons pt-1",id:"ChatSendButtonContainer"},a.a.createElement("i",{className:"material-icons text-muted settings mr-0"},"")))))}}]),t}(i.PureComponent),ne=n(27),re=a.a.lazy((function(){return n.e(6).then(n.bind(null,139))})),ie=a.a.lazy((function(){return n.e(3).then(n.bind(null,137))})),ae=a.a.lazy((function(){return n.e(2).then(n.bind(null,138))})),oe=Object(E.b)((function(e){return{chatwidget:e.chatwidget}}))(K=function(e){function t(e){var n;return l()(this,t),n=h()(this,g()(t).call(this,e)),w()(y()(n),"state",{value:"",valueSend:!1,showBBCode:null,mailChat:!1,dragging:!1,enabledEditor:!0,showMessages:!1,preloadSurvey:!1,gotToSurvey:!1,voiceMode:!1,showMail:!1,changeFontSize:!1,errorMode:!1,hasNew:!1,newId:0,scrollButton:!1,fontSize:100,otm:0}),w()(y()(n),"insertText",(function(e){var t=n.textMessageRef.current.selectionStart;n.setState({value:n.state.value.substring(0,t)+e+n.state.value.substring(t)})})),n.props.dispatch(Object(k.g)({id:n.props.chatwidget.getIn(["chatData","id"]),hash:n.props.chatwidget.getIn(["chatData","hash"]),theme:n.props.chatwidget.get("theme")})),n.updateMessages(),n.updateStatus(),n.enterKeyDown=n.enterKeyDown.bind(y()(n)),n.handleChange=n.handleChange.bind(y()(n)),n.sendMessage=n.sendMessage.bind(y()(n)),n.endChat=n.endChat.bind(y()(n)),n.mailChat=n.mailChat.bind(y()(n)),n.changeFont=n.changeFont.bind(y()(n)),n.voiceCall=n.voiceCall.bind(y()(n)),n.toggleModal=n.toggleModal.bind(y()(n)),n.setStatusText=n.setStatusText.bind(y()(n)),n.dragging=n.dragging.bind(y()(n)),n.scrollBottom=n.scrollBottom.bind(y()(n)),n.focusMessage=n.focusMessage.bind(y()(n)),n.setEditorEnabled=n.setEditorEnabled.bind(y()(n)),n.sendDelay=n.sendDelay.bind(y()(n)),n.unhideDelayed=n.unhideDelayed.bind(y()(n)),n.toggleSound=n.toggleSound.bind(y()(n)),n.goToSurvey=n.goToSurvey.bind(y()(n)),n.startVoiceRecording=n.startVoiceRecording.bind(y()(n)),n.cancelVoiceRecording=n.cancelVoiceRecording.bind(y()(n)),n.onScrollMessages=n.onScrollMessages.bind(y()(n)),n.scrollToMessage=n.scrollToMessage.bind(y()(n)),n.changeFontAction=n.changeFontAction.bind(y()(n)),n.messagesAreaRef=a.a.createRef(),n.textMessageRef=a.a.createRef(),n.updateMessages=n.updateMessages.bind(y()(n)),n.updateStatus=n.updateStatus.bind(y()(n)),n.abstractAction=n.abstractAction.bind(y()(n)),n.updateMetaAutoHide=n.updateMetaAutoHide.bind(y()(n)),n.setMetaUpdateState=n.setMetaUpdateState.bind(y()(n)),n.keyUp=n.keyUp.bind(y()(n)),n.delayed=!1,n.delayQueue=[],n.intervalPending=null,n.intervalFunction=null,n.unhideDelayedTimer=null,n.pendingMetaUpdate=!1,n.timeoutNewMessage=null,n.isTyping=!1,n.typingStopped=null,n.typingStoppedAction=n.typingStoppedAction.bind(y()(n)),n.currentMessageTyping="",n}return _()(t,e),d()(t,[{key:"dragging",value:function(e){this.setState({dragging:e})}},{key:"goToSurvey",value:function(){this.props.dispatch({type:"UI_STATE",data:{attr:"show_survey",val:1}}),this.setState({gotToSurvey:!0})}},{key:"setStatusText",value:function(e){this.props.dispatch({type:"chat_status_changed",data:{text:e}})}},{key:"startVoiceRecording",value:function(){this.setState({voiceMode:!0})}},{key:"cancelVoiceRecording",value:function(){this.setState({voiceMode:!1})}},{key:"handleChange",value:function(e){this.setState({value:e.target.value}),S.a.setSessionStorage("_ttxt",e.target.value)}},{key:"onScrollMessages",value:function(){this.messagesAreaRef.current&&(this.messagesAreaRef.current.scrollHeight-this.messagesAreaRef.current.scrollTop-this.messagesAreaRef.current.offsetHeight>70?!0!==this.state.scrollButton&&this.setState({scrollButton:!0}):!1!==this.state.scrollButton&&this.setState({scrollButton:!1,otm:0}))}},{key:"scrollToMessage",value:function(){var e=this;if(1==this.state.hasNew&&(clearTimeout(this.timeoutNewMessage),this.timeoutNewMessage=setTimeout((function(){e.setState({hasNew:!1,newId:0})}),1e3)),1==this.state.hasNew&&this.state.otm>0){this.setState({otm:0});try{document.getElementById("scroll-to-message").scrollIntoView()}catch(e){this.scrollBottom()}}else this.scrollBottom()}},{key:"changeFontAction",value:function(e){this.setState({fontSize:this.state.fontSize+(1==e?5:-5)}),S.a.setLocalStorage("_dfs",this.state.fontSize),this.scrollBottom()}},{key:"componentDidMount",value:function(){var e=S.a.getSessionStorage("_ttxt");null!==e&&this.setState({value:e});var t=S.a.getLocalStorage("_dfs");null!==t&&this.setState({fontSize:parseInt(t)});var n=document.getElementById("CSChatMessage");if(null!==n&&(!0===this.props.chatwidget.get("shown")&&"widget"==this.props.chatwidget.get("mode")||"popup"==this.props.chatwidget.get("mode"))){n.focus();var r=document.getElementById("CSChatMessage-tmp");null!==r&&document.body.removeChild(r)}}},{key:"focusMessage",value:function(){this.textMessageRef.current&&(this.textMessageRef.current.focus(),this.state.value.length>0&&(this.textMessageRef.current.selectionStart=this.state.value.length,this.textMessageRef.current.selectionEnd=this.state.value.length))}},{key:"setEditorEnabled",value:function(e){this.setState({enabledEditor:e})}},{key:"hasClass",value:function(e,t){return new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)}},{key:"addClass",value:function(e,t){this.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)}},{key:"removeClass",value:function(e,t){this.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ").replace(/^\s+|\s+$/g,""))}},{key:"setMetaUpdateState",value:function(e){!1===e&&!0===this.pendingMetaUpdate&&(this.pendingMetaUpdate=!1,this.updateMetaAutoHide(),this.scrollBottom()),!0===e&&(this.pendingMetaUpdate=!0,this.updateMetaAutoHide(),this.scrollBottom())}},{key:"updateMetaAutoHide",value:function(){var e=document.getElementById("messages-scroll"),t=e.getElementsByClassName("meta-auto-hide");if(t.length>0){for(n=0;n<t.length-1;n++)t[n].style.display="none";var n,r=e.lastChild;if(r)for(t=r.getElementsByClassName("meta-auto-hide"),n=0;n<t.length;n++)t[n].style.display=""}}},{key:"nextUntil",value:function(e,t){for(var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=[],a=!0;e=e.nextElementSibling;)a&&e&&!e.matches(t)==n?i.push(e):a=r;return i}},{key:"sendDelay",value:function(e){var t=this,n=e.id,r=e.duration,i=e.delay,a=e.untill_message,o=document.getElementById("msg-"+n);o&&(i>0&&this.addClass(o,"hide"),1==a&&this.nextUntil(o,".message-admin",!1,!0).length>0||setTimeout((function(){if(0==t.delayed)if(1==a)null!==t.intervalFunction&&t.intervalFunction(),t.intervalFunction=function(){if(t.nextUntil(o,".message-admin",!1,!0).length>0)o.parentNode.removeChild(o),t.scrollBottom(),t.intervalFunction=null,clearInterval(t.intervalPending);else if(!t.hasClass(o,"meta-hider")){t.addClass(o,"meta-hider"),t.addClass(o,"message-row-typing"),t.removeClass(o,"hide"),t.removeClass(o,"fade-in-fast");var e=o.getElementsByClassName("msg-body"),n=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;t.removeClass(u,"hide")}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}t.scrollBottom()}},clearInterval(t.intervalPending),t.intervalPending=setInterval(t.intervalFunction,150);else{t.delayed=!0,t.addClass(o,"meta-hider"),t.addClass(o,"message-row-typing"),t.nextUntil(o,".meta-hider").forEach((function(e){t.addClass(e,"hide")})),t.unhideDelayedTimer=setTimeout((function(){t.unhideDelayed(n)}),1e3*r),t.removeClass(o,"hide"),t.removeClass(o,"fade-in-fast");var e=o.getElementsByClassName("msg-body"),s=!0,u=!1,l=void 0;try{for(var c,d=e[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var p=c.value;t.removeClass(p,"hide")}}catch(e){u=!0,l=e}finally{try{s||null==d.return||d.return()}finally{if(u)throw l}}i>0&&(t.updateMetaAutoHide(),t.scrollBottom())}else t.addClass(o,"message-row-typing"),t.addClass(o,"meta-hider"),t.delayQueue.push({id:n,delay:r})}),1e3*i))}},{key:"unhideDelayed",value:function(e){var t=this,n=document.getElementById("msg-"+e);if(n)if(this.nextUntil(n,".meta-hider").forEach((function(e){t.removeClass(e,"hide")})),n.parentNode.removeChild(n),this.updateMetaAutoHide(),this.scrollBottom(),this.delayQueue.length>0){var r=this.delayQueue.shift();setTimeout((function(){t.unhideDelayed(r.id)}),1e3*r.delay);var i=document.getElementById("msg-"+r.id);if(null!==i){this.removeClass(i,"hide"),this.removeClass(i,"fade-in-fast");var a=i.getElementsByClassName("msg-body"),o=!0,s=!1,u=void 0;try{for(var l,c=a[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var d=l.value;this.removeClass(d,"hide")}}catch(e){s=!0,u=e}finally{try{o||null==c.return||c.return()}finally{if(s)throw u}}}}else this.delayed=!1}},{key:"componentWillUnmount",value:function(){clearInterval(this.intervalPending),clearInterval(this.typingStopped),clearTimeout(this.unhideDelayedTimer),clearTimeout(this.timeoutNewMessage)}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(e.chatwidget.getIn(["chatLiveData","messages"]).size!=this.props.chatwidget.getIn(["chatLiveData","messages"]).size){var n=!1,r=!0,i=0;this.messagesAreaRef.current&&((i=this.messagesAreaRef.current.scrollHeight-this.messagesAreaRef.current.scrollTop)-this.messagesAreaRef.current.offsetHeight<70?i=0:r=!1,n=!0);var a=this.state.hasNew,o=1==a?this.state.newId:0,s=1==a?this.state.otm:0;if(0!=e.chatwidget.getIn(["chatLiveData","messages"]).size&&!1===this.props.chatwidget.getIn(["chatLiveData","uw"])){var u=this.props.chatwidget.get("shown")&&"widget"==this.props.chatwidget.get("mode")||"widget"!=this.props.chatwidget.get("mode")&&document.hasFocus();0==a?(o=1==(a=0==u||0==window.lhcChat.is_focused||0==r)?e.chatwidget.getIn(["chatLiveData","messages"]).size:0,s=this.props.chatwidget.getIn(["chatLiveData","otm"])):s+=this.props.chatwidget.getIn(["chatLiveData","otm"]);var l=this.props.chatwidget.hasIn(["chat_ui","msg_snippet"])&&this.props.chatwidget.getIn(["chatLiveData","messages",-1,"msg"]);S.a.emitEvent("play_sound",[{msop:this.props.chatwidget.getIn(["chatLiveData","msop"]),msg_body:l,otm:s,type:"new_message",sound_on:!0===this.props.chatwidget.getIn(["usersettings","soundOn"]),widget_open:u}])}else a=!1,o=0,s=0;if(this.setState({valueSend:!1,hasNew:a,newId:o,otm:s,scrollButton:!r}),1==n)return i}else{if(!1===e.chatwidget.get("shown")&&!0===this.props.chatwidget.get("shown"))return 0;this.props.chatwidget.getIn(["chatLiveData","error"])&&(this.props.chatwidget.getIn(["chatLiveData","lmsg"])&&(0==this.state.errorMode||this.props.chatwidget.getIn(["chatLiveData","lmsg"])!=e.chatwidget.getIn(["chatLiveData","lmsg"]))||!this.props.chatwidget.getIn(["chatLiveData","lmsg"])&&0==this.state.errorMode)?this.setState({errorMode:!0,valueSend:!1,value:this.props.chatwidget.getIn(["chatLiveData","lmsg"])}):!this.props.chatwidget.getIn(["chatLiveData","error"])&&e.chatwidget.getIn(["chatLiveData","error"])&&this.setState({errorMode:!1,valueSend:!1,value:""})}return null}},{key:"componentDidUpdate",value:function(e,t,n){var r=this;if(!1!==this.state.showMessages&&e.chatwidget.getIn(["chatLiveData","status"])==this.props.chatwidget.getIn(["chatLiveData","status"])||this.scrollBottom(),(!1===t.enabledEditor&&t.enabledEditor!=this.state.enabledEditor||this.props.chatwidget.get("msgLoaded")!==e.chatwidget.get("msgLoaded"))&&(this.scrollBottom(),(!0!==this.props.chatwidget.getIn(["chat_ui","auto_start"])||"embed"!=this.props.chatwidget.get("mode")||!1===this.props.chatwidget.getIn(["chat_ui","auto_start"])&&"embed"==this.props.chatwidget.get("mode")||!1===t.enabledEditor&&t.enabledEditor!=this.state.enabledEditor)&&(this.focusMessage(),setTimeout((function(){r.focusMessage()}),500))),null!==n&&this.messagesAreaRef.current&&(this.messagesAreaRef.current.scrollTop=this.messagesAreaRef.current.scrollHeight-n),1==this.props.chatwidget.getIn(["chat_ui_state","confirm_close"])&&!1===this.state.preloadSurvey&&this.setState({preloadSurvey:!0}),!1===e.chatwidget.get("shown")&&!0===this.props.chatwidget.get("shown")&&"widget"==this.props.chatwidget.get("mode")&&this.textMessageRef.current&&this.textMessageRef.current.focus(),!0!==this.props.chatwidget.getIn(["chat_ui","start_on_close"])||!0!==this.props.chatwidget.getIn(["chatLiveData","closed"])||void 0!==e.chatwidget.getIn(["chatLiveData","closed"])&&!1!==e.chatwidget.hasIn(["chatLiveData","closed"])&&!1!==e.chatwidget.getIn(["chatLiveData","closed"])||this.props.chatwidget.getIn(["chat_ui","survey_id"])||this.props.endChat({show_start:this.props.chatwidget.get("shown")}),!0===this.props.chatwidget.getIn(["chatLiveData","closed"])&&0===this.props.chatwidget.getIn(["chatLiveData","status_sub"])&&5===e.chatwidget.getIn(["chatLiveData","status_sub"])&&this.props.dispatch(Object(k.g)({id:this.props.chatwidget.getIn(["chatData","id"]),hash:this.props.chatwidget.getIn(["chatData","hash"]),theme:this.props.chatwidget.get("theme")})),!(!0!==this.props.chatwidget.get("shown")||"widget"!=this.props.chatwidget.get("mode")&&"embed"!=this.props.chatwidget.get("mode")||!0!==this.props.chatwidget.get("initLoaded")||!0!==this.props.chatwidget.get("msgLoaded")||0!=e.chatwidget.get("msgLoaded")&&0!=e.chatwidget.get("initLoaded"))){"widget"==this.props.chatwidget.get("mode")&&this.textMessageRef.current&&this.textMessageRef.current.focus();var i=document.getElementById("CSChatMessage-tmp");null!==i&&document.body.removeChild(i)}}},{key:"scrollBottom",value:function(e){var t=this;!this.messagesAreaRef.current||e&&this.state.scrollButton||(this.messagesAreaRef.current.scrollTop=this.messagesAreaRef.current.scrollHeight+1e3,setTimeout((function(){t.messagesAreaRef.current&&(t.messagesAreaRef.current.scrollTop=t.messagesAreaRef.current.scrollHeight+1e3),!1===t.state.showMessages&&t.setState({showMessages:!0})}),450))}},{key:"abstractAction",value:function(e,t){S.a.emitEvent(e,t)}},{key:"updateMessages",value:function(){var e={chat_id:this.props.chatwidget.getIn(["chatData","id"]),hash:this.props.chatwidget.getIn(["chatData","hash"]),lmgsid:this.props.chatwidget.getIn(["chatLiveData","lmsgid"]),theme:this.props.chatwidget.get("theme"),new_chat:this.props.chatwidget.get("newChat")};e.new_chat&&0===e.lmgsid&&(e.old_msg_id=this.props.chatwidget.getIn(["chatData","lmsg_id"])),this.props.dispatch(Object(k.d)(e))}},{key:"updateStatus",value:function(){this.props.dispatch(Object(k.b)({chat_id:this.props.chatwidget.getIn(["chatData","id"]),hash:this.props.chatwidget.getIn(["chatData","hash"]),theme:this.props.chatwidget.get("theme"),mode:this.props.chatwidget.get("mode")}))}},{key:"sendMessage",value:function(){S.a.setSessionStorage("_ttxt",""),this.props.dispatch(Object(k.a)({id:this.props.chatwidget.getIn(["chatData","id"]),hash:this.props.chatwidget.getIn(["chatData","hash"]),msg:this.state.value,mn:this.props.chatwidget.hasIn(["chat_ui","mn"]),theme:this.props.chatwidget.get("theme"),lmgsid:this.props.chatwidget.getIn(["chatLiveData","lmsgid"])})),this.setState({value:"",valueSend:!0,errorMode:!1}),this.currentMessageTyping="",this.focusMessage(),this.scrollBottom()}},{key:"enterKeyDown",value:function(e){"Enter"!==e.key||e.shiftKey||(this.sendMessage(),e.preventDefault())}},{key:"keyUp",value:function(e){"Enter"===e.key||e.shiftKey||(!1===this.isTyping?(this.isTyping=!0,this.props.dispatch(Object(k.u)("true",this.state.value))):(clearTimeout(this.typingStopped),this.typingStopped=setTimeout(this.typingStoppedAction,6e3),this.currentMessageTyping!=this.state.value&&(Math.abs(this.currentMessageTyping.length-this.state.value.length)>6||this.props.chatwidget.get("overrides").contains("typing"))&&(this.currentMessageTyping=this.state.value,this.props.dispatch(Object(k.u)("true",this.state.value)))))}},{key:"typingStoppedAction",value:function(){1==this.isTyping&&(this.isTyping=!1,this.props.dispatch(Object(k.u)("false")))}},{key:"endChat",value:function(){this.props.endChat()}},{key:"toggleModal",value:function(){this.setState({showBBCode:!this.state.showBBCode}),this.state.showBBCode&&this.focusMessage()}},{key:"mailChat",value:function(){this.setState({showMail:!this.state.showMail})}},{key:"changeFont",value:function(){this.setState({changeFontSize:!this.state.changeFontSize})}},{key:"voiceCall",value:function(){var e=void 0!==window.screenLeft?window.screenLeft:window.screenX,t=void 0!==window.screenTop?window.screenTop:window.screenY,n=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,r=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,i=n/window.screen.availWidth,a=(n-parseInt(800))/2/i+e,o="scrollbars=yes,menubar=1,resizable=1,width=800,height=600,top="+((r-parseInt(600))/2/i+t)+",left="+a,s=window.open("",S.a.prefix+"_voice_popup_v2",o),u=!1,l=!1;try{!s||s.closed||void 0===s.closed||"about:blank"===s.location.href?(s=window.open(this.props.chatwidget.get("base_url")+"voicevideo/call/"+this.props.chatwidget.getIn(["chatData","id"])+"/"+this.props.chatwidget.getIn(["chatData","hash"]),S.a.prefix+"_voice_popup_v2",o),l=!0):u=!0}catch(e){u=!0}!s||s.closed||void 0===s.closed||1==l||!0===u&&s.focus()}},{key:"toggleSound",value:function(){this.props.dispatch({type:"toggleSound",data:!this.props.chatwidget.getIn(["usersettings","soundOn"])}),S.a.sendMessageParent("toggleSound",[{sender:"toolbarButton"}])}},{key:"render",value:function(){var e=this,t=this.props.t;if(!1===this.props.chatwidget.get("initLoaded")||!1===this.props.chatwidget.get("msgLoaded")){var n="flex-grow-1 overflow-scroll position-relative";return this.props.chatwidget.hasIn(["chat_ui","msg_expand"])&&(n="overflow-scroll position-relative"),a.a.createElement(te,{profileBefore:this.props.profileBefore,msg_expand:n,messagesBefore:this.props.messagesBefore,placeholderMessage:this.props.chatwidget.hasIn(["chat_ui","placeholder_message"])?this.props.chatwidget.getIn(["chat_ui","placeholder_message"]):t("chat.type_here")})}if(this.props.chatwidget.hasIn(["chatLiveData","ru"])&&this.props.chatwidget.getIn(["chatLiveData","ru"]))return p=this.props.chatwidget.get("base_url")+this.props.chatwidget.getIn(["chatLiveData","ru"]),a.a.createElement(a.a.Fragment,null,a.a.createElement("iframe",{allowtransparency:"true",src:p,frameBorder:"0",className:"flex-grow-1 position-relative iframe-modal"}));if(this.props.chatwidget.get("chatLiveData").has("messages"))var r=this.props.chatwidget.getIn(["chatLiveData","messages"]).map((function(n,r){return a.a.createElement(j,{profilePic:e.props.chatwidget.get("profile_pic"),newTitle:e.props.chatwidget.getIn(["chat_ui","cnew_msgh"])||t("button.new"),newId:e.state.newId,hasNew:e.state.hasNew,voiceCall:e.voiceCall,endChat:e.props.endChat,setMetaUpdateState:e.setMetaUpdateState,sendDelay:e.sendDelay,setEditorEnabled:e.setEditorEnabled,abstractAction:e.abstractAction,updateStatus:e.updateStatus,focusMessage:e.focusMessage,updateMessages:e.updateMessages,scrollBottom:e.scrollBottom,id:r,key:"msg_"+r,msg:n})}));else r="";var o="";o=!0===this.state.dragging?t("chat.drop_files"):this.props.chatwidget.getIn(["chatLiveData","closed"])?t("chat.chat_closed"):this.props.chatwidget.hasIn(["chat_ui","placeholder_message"])?this.props.chatwidget.getIn(["chat_ui","placeholder_message"]):t("chat.type_here");n="flex-grow-1 overflow-scroll position-relative";var s="bottom-message px-1";this.props.chatwidget.hasIn(["chat_ui","msg_expand"])&&"embed"==this.props.chatwidget.get("mode")&&(n="overflow-scroll position-relative",s+=" position-relative");var u="mx-auto w-100";1==this.props.chatwidget.getIn(["chatLiveData","closed"])&&(u+="embed"==this.props.chatwidget.get("mode")?" pr-2":" pr-1");var l=!0,c=!1,d=!1,p="",h="flex-grow-1 position-relative iframe-modal content-loader",f=this.props.chatwidget.hasIn(["chatLiveData","status_sub"])&&(this.props.chatwidget.getIn(["chatLiveData","status_sub"])==P.e||this.props.chatwidget.getIn(["chatLiveData","status_sub"])==P.f&&(this.props.chatwidget.getIn(["chatLiveData","uid"])>0||this.props.chatwidget.getIn(["chatLiveData","status"])===P.b||this.props.chatwidget.getIn(["chatLiveData","status"])==P.c))||this.props.chatwidget.getIn(["chatLiveData","status"])==P.c&&this.props.chatwidget.getIn(["chatLiveData","uid"])>0||!0===this.state.gotToSurvey;(this.props.chatwidget.hasIn(["chatLiveData","status_sub"])&&this.props.chatwidget.getIn(["chatLiveData","status_sub"])==P.e||this.props.chatwidget.getIn(["chatLiveData","status"])==P.c&&this.props.chatwidget.getIn(["chatLiveData","status_sub"])!=P.f)&&(d=!0),(!0===this.state.preloadSurvey||f)&&this.props.chatwidget.hasIn(["chat_ui","survey_id"])&&(p=this.props.chatwidget.get("base_url")+"survey/fillwidget/(chatid)/"+this.props.chatwidget.getIn(["chatData","id"])+"/(hash)/"+this.props.chatwidget.getIn(["chatData","hash"]),this.props.chatwidget.get("theme")&&(p=p+"/(theme)/"+this.props.chatwidget.get("theme")),p=p+"/(survey)/"+this.props.chatwidget.getIn(["chat_ui","survey_id"])+(!0===d?"/(force)/true":""),this.props.chatwidget.hasIn(["chat_ui","survey_url"])&&(p=this.props.chatwidget.getIn(["chat_ui","survey_url"]).replace("{chat_id}",this.props.chatwidget.getIn(["chatData","id"])).replace("{chat_hash}",this.props.chatwidget.getIn(["chatData","hash"]))+(!0===d?"?force=true":"")),c=!0,l=!1,(!1===f||this.props.chatwidget.hasIn(["chat_ui","survey_button"])&&0===this.props.chatwidget.getIn(["chat_ui_state","show_survey"])&&this.props.chatwidget.getIn(["chatLiveData","status"])==P.c&&this.props.chatwidget.getIn(["chatLiveData","status_sub"])!=P.e&&this.props.chatwidget.getIn(["chatLiveData","status_sub"])!=P.f||1==this.props.chatwidget.getIn(["chat_ui_state","confirm_close"]))&&(l=!0,h=" d-none"));var g=this.props.chatwidget.getIn(["chat_ui","end_chat_text"])||t("button.end_chat"),m={fontSize:(this.props.chatwidget.hasIn(["chat_ui","font_size"])?this.state.fontSize:"100")+"%"};return a.a.createElement(a.a.Fragment,null,this.props.chatwidget.getIn(["chatLiveData","abort"])&&a.a.createElement(ne.a,{closeText:t("button.close"),close:function(t){return e.props.dispatch(Object(k.k)(!0))},text:this.props.chatwidget.getIn(["chatLiveData","abort"])}),c&&a.a.createElement("iframe",{allowtransparency:"true",src:p,frameBorder:"0",className:h}),(l||c)&&a.a.createElement(X,{hasSurvey:c,syncInterval:this.props.chatwidget.getIn(["chat_ui","sync_interval"]),updateStatus:this.updateStatus,updateMessages:this.updateMessages,initClose:this.props.chatwidget.get("initClose"),dispatch:this.props.dispatch,status_sub:this.props.chatwidget.getIn(["chatLiveData","status_sub"]),status:this.props.chatwidget.getIn(["chatLiveData","status"]),theme:this.props.chatwidget.get("theme"),lmgsid:this.props.chatwidget.getIn(["chatLiveData","lmsgid"]),hash:this.props.chatwidget.getIn(["chatData","hash"]),chat_id:this.props.chatwidget.getIn(["chatData","id"])}),l&&a.a.createElement(a.a.Fragment,null,1==this.props.chatwidget.getIn(["chat_ui_state","confirm_close"])&&a.a.createElement(B.a,{confirmClose:this.props.endChat,cancelClose:this.props.cancelClose,toggle:this.props.cancelClose,dataUrl:"/chat/confirmleave/"+this.props.chatwidget.getIn(["chatData","id"])+"/"+this.props.chatwidget.getIn(["chatData","hash"])}),this.state.showBBCode&&a.a.createElement(B.a,{showModal:this.state.showBBCode,insertText:this.insertText,toggle:this.toggleModal,dataUrl:"/chat/bbcodeinsert?react=1"}),this.state.showMail&&a.a.createElement(i.Suspense,{fallback:"..."},a.a.createElement(ie,{showModal:this.state.showMail,changeFont:this.changeFont,toggle:this.mailChat,chatHash:this.props.chatwidget.getIn(["chatData","hash"]),chatId:this.props.chatwidget.getIn(["chatData","id"])})),this.state.changeFontSize&&a.a.createElement(i.Suspense,{fallback:"..."},a.a.createElement(ae,{showModal:this.state.changeFontSize,toggle:this.changeFont,changeFont:this.changeFontAction})),"embed"==this.props.chatwidget.get("mode")&&this.props.chatwidget.hasIn(["chat_ui","embed_cls"])&&1==this.props.chatwidget.getIn(["chat_ui","embed_cls"])&&a.a.createElement("div",{className:"close-modal-btn position-absolute"},this.props.chatwidget.hasIn(["chat_ui","close_btn"])&&a.a.createElement("a",{onClick:this.endChat,title:g},a.a.createElement("i",{className:"material-icons settings text-muted"},""),a.a.createElement("span",{className:"embed-close-title"},g))),this.props.chatwidget.hasIn(["chatStatusData","result"])&&!this.props.chatwidget.hasIn(["chat_ui","hide_status"])&&this.props.chatwidget.getIn(["chatStatusData","result"])&&a.a.createElement("div",{id:"chat-status-container",className:"p-2 border-bottom live-status-"+this.props.chatwidget.getIn(["chatLiveData","status"])},a.a.createElement(ee,{updateStatus:this.updateStatus,vtm:this.props.chatwidget.hasIn(["chat_ui","switch_to_human"])&&this.props.chatwidget.getIn(["chatLiveData","status"])==P.b?this.props.chatwidget.getIn(["chatLiveData","vtm"]):0,status:this.props.chatwidget.getIn(["chatStatusData","result"])})),a.a.createElement("div",{className:n,id:"messagesBlock",onScroll:this.onScrollMessages},a.a.createElement("div",{className:s,id:"messages-scroll",style:m,ref:this.messagesAreaRef},this.props.chatwidget.hasIn(["chat_ui","prev_chat"])&&a.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","prev_chat"])}}),r),this.state.scrollButton&&a.a.createElement("div",{className:"position-absolute btn-bottom-scroll fade-in"},a.a.createElement("button",{type:"button",onClick:this.scrollToMessage,className:"btn btn-sm btn-secondary"},this.state.hasNew&&this.state.otm>0&&a.a.createElement("div",null,a.a.createElement("i",{className:"material-icons"},""),this.state.otm," ",1==this.state.otm?this.props.chatwidget.getIn(["chat_ui","cnew_msg"])||t("button.new_msg"):this.props.chatwidget.getIn(["chat_ui","cnew_msgm"])||t("button.new_msgm"))||this.props.chatwidget.getIn(["chat_ui","cscroll_btn"])||t("button.scroll_bottom")))),a.a.createElement("div",{className:(!1===this.props.chatwidget.get("msgLoaded")||!1===this.state.enabledEditor?"d-none ":"d-flex ")+"flex-row border-top position-relative message-send-area"},(this.props.chatwidget.getIn(["chatLiveData","ott"])||this.props.chatwidget.getIn(["chatLiveData","error"])&&"SEND_CONNECTION"!=this.props.chatwidget.getIn(["chatLiveData","error"])||this.props.chatwidget.get("network_down"))&&a.a.createElement("div",{id:"id-operator-typing",className:"bg-white pl-1"},this.props.chatwidget.getIn(["chatLiveData","error"])?-1===this.props.chatwidget.getIn(["chatLiveData","error"]).indexOf("SEND_")?this.props.chatwidget.getIn(["chatLiveData","error"]):t("online_chat."+this.props.chatwidget.getIn(["chatLiveData","error"]).toLowerCase()):this.props.chatwidget.get("network_down")?t("online_chat.send_connection"):this.props.chatwidget.getIn(["chatLiveData","ott"])),"embed"==this.props.chatwidget.get("mode")&&this.props.chatwidget.hasIn(["chat_ui","embed_cls"])&&2==this.props.chatwidget.getIn(["chat_ui","embed_cls"])&&a.a.createElement("div",{className:"inline-cls-btn pt-1 pl-2"},this.props.chatwidget.hasIn(["chat_ui","close_btn"])&&a.a.createElement("a",{onClick:this.endChat,title:g},a.a.createElement("i",{className:"material-icons settings text-muted mr-0"},""))),a.a.createElement(Y,{elementId:"chat-dropdown-options"},a.a.createElement("div",{className:"btn-group dropup disable-select pl-1 pt-2"},a.a.createElement("i",{className:"material-icons settings text-muted",id:"chat-dropdown-options","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},""),a.a.createElement("div",{className:"dropdown-menu shadow bg-white rounded lhc-dropdown-menu ml-1 "+("rtl"==window.lhcChat.staticJS.dir?"dropdown-menu-right":"")},a.a.createElement("div",{className:"d-flex flex-row pl-1"},a.a.createElement("a",{onClick:this.toggleSound,title:t("chat.option_sound")},a.a.createElement("i",{className:"material-icons chat-setting-item text-muted"},!0===this.props.chatwidget.getIn(["usersettings","soundOn"])?a.a.createElement(a.a.Fragment,null,""):a.a.createElement(a.a.Fragment,null,""))),this.props.chatwidget.hasIn(["chat_ui","print"])&&a.a.createElement("a",{target:"_blank",href:this.props.chatwidget.get("base_url")+"chat/printchat/"+this.props.chatwidget.getIn(["chatData","id"])+"/"+this.props.chatwidget.getIn(["chatData","hash"]),title:t("button.print")},a.a.createElement("i",{className:"material-icons chat-setting-item text-muted"},"")),!this.props.chatwidget.getIn(["chatLiveData","closed"])&&this.props.chatwidget.hasIn(["chat_ui","file"])&&a.a.createElement(Q,{fileOptions:this.props.chatwidget.getIn(["chat_ui","file_options"]),onDrag:this.dragging,dropArea:this.textMessageRef,onCompletion:this.updateMessages,progress:this.setStatusText,base_url:this.props.chatwidget.get("base_url"),chat_id:this.props.chatwidget.getIn(["chatData","id"]),hash:this.props.chatwidget.getIn(["chatData","hash"]),link:!0}),!this.props.chatwidget.getIn(["chatLiveData","closed"])&&1==this.props.chatwidget.getIn(["chatLiveData","status"])&&this.props.chatwidget.hasIn(["chat_ui","voice"])&&a.a.createElement("a",{onClick:this.voiceCall,title:t("button.voice")},a.a.createElement("i",{className:"material-icons chat-setting-item text-muted"},"")),!this.props.chatwidget.getIn(["chatLiveData","closed"])&&!this.props.chatwidget.hasIn(["chat_ui","bbc_btnh"])&&a.a.createElement("a",{onClick:this.toggleModal,title:t("button.bb_code")},a.a.createElement("i",{className:"material-icons chat-setting-item text-muted"},"")),this.props.chatwidget.hasIn(["chat_ui","mail"])&&a.a.createElement("a",{onClick:this.mailChat,title:t("button.mail")},a.a.createElement("i",{className:"material-icons chat-setting-item text-muted"},"")),this.props.chatwidget.hasIn(["chat_ui","font_size"])&&a.a.createElement("a",{onClick:function(t){return e.changeFont(t)}},a.a.createElement("i",{className:"material-icons chat-setting-item text-muted"},"")),this.props.chatwidget.hasIn(["chat_ui","close_btn"])&&a.a.createElement("a",{onClick:this.endChat,title:g},a.a.createElement("i",{className:"material-icons chat-setting-item text-muted"},"")))))),a.a.createElement("div",{className:u},this.props.chatwidget.getIn(["chatLiveData","closed"])&&this.props.chatwidget.hasIn(["chat_ui","survey_id"])&&a.a.createElement("button",{onClick:this.goToSurvey,className:"w-100 btn btn-success"},t("online_chat.go_to_survey")),(!this.props.chatwidget.getIn(["chatLiveData","closed"])||!this.props.chatwidget.hasIn(["chat_ui","survey_id"]))&&a.a.createElement("textarea",{onTouchStart:this.scrollBottom,maxLength:this.props.chatwidget.getIn(["chat_ui","max_length"]),onKeyUp:this.keyUp,readOnly:this.props.chatwidget.getIn(["chatLiveData","closed"])||this.props.chatwidget.get("network_down"),id:"CSChatMessage",placeholder:o,onKeyDown:this.enterKeyDown,value:this.props.chatwidget.getIn(["chatLiveData","closed"])?"":this.state.value,onChange:this.handleChange,ref:this.textMessageRef,rows:"1",className:"pl-0 no-outline form-control rounded-0 form-control border-left-0 border-right-0 border-0 "+(!0===this.props.chatwidget.get("shown")&&this.textMessageRef.current&&(/\r|\n/.exec(this.state.value)||this.state.value.length>this.textMessageRef.current.offsetWidth/8.6)?"msg-two-line":"msg-one-line")})),!this.props.chatwidget.getIn(["chatLiveData","closed"])&&!this.props.chatwidget.get("network_down")&&a.a.createElement("div",{className:"disable-select"},a.a.createElement("div",{className:"user-chatwidget-buttons pt-1 pr-1",id:"ChatSendButtonContainer"},!0===this.state.voiceMode&&a.a.createElement(i.Suspense,{fallback:"..."},a.a.createElement(re,{onCompletion:this.updateMessages,progress:this.setStatusText,base_url:this.props.chatwidget.get("base_url"),chat_id:this.props.chatwidget.getIn(["chatData","id"]),hash:this.props.chatwidget.getIn(["chatData","hash"]),maxSeconds:"30",cancel:this.cancelVoiceRecording})),!this.state.valueSend&&this.props.chatwidget.hasIn(["chat_ui","voice_message"])&&void 0!==window.Audio&&0==this.state.value.length&&!1===this.state.voiceMode&&a.a.createElement("a",{onClick:this.startVoiceRecording,title:t("button.record_voice")},a.a.createElement("i",{className:"material-icons text-muted settings mr-0"},"")),!this.state.valueSend&&(!this.props.chatwidget.hasIn(["chat_ui","voice_message"])||!(void 0!==window.Audio)||this.state.value.length>0&&!1===this.state.voiceMode)&&a.a.createElement("a",{onClick:this.sendMessage,title:t("button.send")},a.a.createElement("i",{className:"material-icons text-muted settings mr-0"},"")),this.state.valueSend&&a.a.createElement("i",{className:"material-icons text-muted settings mr-0"},""))))))}}]),t}(i.Component))||K,se=Object(x.b)()(oe),ue=a.a.lazy((function(){return n.e(4).then(n.bind(null,135))})),le=a.a.lazy((function(){return n.e(5).then(n.bind(null,136))})),ce=Object(E.b)((function(e){return{chatwidget:e.chatwidget}}))($=function(e){function t(e){var n;return l()(this,t),n=h()(this,g()(t).call(this,e)),w()(y()(n),"state",{}),n.endChat=n.endChat.bind(y()(n)),n.popupChat=n.popupChat.bind(y()(n)),n.cancelClose=n.cancelClose.bind(y()(n)),n.setProfile=n.setProfile.bind(y()(n)),n.setMessages=n.setMessages.bind(y()(n)),n.setHideMessageField=n.setHideMessageField.bind(y()(n)),n.setBotPayload=n.setBotPayload.bind(y()(n)),n.lastHeiht=0,n.profileHTML=null,n.messagesHTML=null,n.hideMessageField=!1,n.botPayload=null,S.a.eventEmitter.addListener("end_chat_visitor",(function(e){return n.endChat()})),n}return _()(t,e),d()(t,[{key:"cancelClose",value:function(){this.props.dispatch({type:"UI_STATE",data:{attr:"confirm_close",val:0}})}},{key:"setBotPayload",value:function(e){this.botPayload=e}},{key:"endChat",value:function(e){void 0===e&&(e={});var t=!1,n=!1,r=this.props.chatwidget.hasIn(["chatLiveData","status_sub"])&&(this.props.chatwidget.getIn(["chatLiveData","status_sub"])==P.d||this.props.chatwidget.getIn(["chatLiveData","status_sub"])==P.e||this.props.chatwidget.getIn(["chatLiveData","status_sub"])==P.f&&(this.props.chatwidget.getIn(["chatLiveData","uid"])>0||this.props.chatwidget.getIn(["chatLiveData","status"])===P.b||this.props.chatwidget.getIn(["chatLiveData","status"])==P.c)),i=this.props.chatwidget.getIn(["chatLiveData","status"])==P.c&&this.props.chatwidget.getIn(["chatLiveData","uid"])>0;(1==r||i)&&this.props.chatwidget.hasIn(["chat_ui","survey_id"])&&(this.props.chatwidget.hasIn(["chat_ui","survey_button"])&&1!==this.props.chatwidget.getIn(["chat_ui_state","show_survey"])&&1!=r?n=!0:t=!0),!1===t&&this.props.chatwidget.hasIn(["chat_ui","confirm_close"])&&0===this.props.chatwidget.getIn(["chat_ui_state","confirm_close"])?this.props.dispatch({type:"UI_STATE",data:{attr:"confirm_close",val:1}}):(1===this.props.chatwidget.getIn(["chat_ui_state","confirm_close"])&&this.props.dispatch({type:"UI_STATE",data:{attr:"confirm_close",val:2}}),!0!==n?!1===this.props.chatwidget.get("initClose")&&this.props.chatwidget.hasIn(["chat_ui","survey_id"])&&0==t&&(this.props.chatwidget.getIn(["chatLiveData","uid"])>0||this.props.chatwidget.getIn(["chatLiveData","status"])===P.b)?this.props.dispatch(Object(k.c)({show_start:e.show_start,noCloseReason:"SHOW_SURVEY",noClose:!0,vid:this.props.chatwidget.get("vid"),chat:{id:this.props.chatwidget.getIn(["chatData","id"]),hash:this.props.chatwidget.getIn(["chatData","hash"])}})):this.props.dispatch(Object(k.c)({show_start:e.show_start,vid:this.props.chatwidget.get("vid"),chat:{id:this.props.chatwidget.getIn(["chatData","id"]),hash:this.props.chatwidget.getIn(["chatData","hash"])}})):this.props.dispatch({type:"UI_STATE",data:{attr:"show_survey",val:1}}))}},{key:"popupChat",value:function(){var e=null;window.parent&&window.parent["$_"+S.a.prefixUppercase]&&!1===window.parent.closed?e=window.parent["$_"+S.a.prefixUppercase].eventListener:window.opener&&window.opener["$_"+S.a.prefixUppercase]&&!1===window.opener.closed&&(e=window.opener["$_"+S.a.prefixUppercase].eventListener),null!==e?e.emitEvent("openPopup"):S.a.sendMessageParent("openPopup",[])}},{key:"setProfile",value:function(e){this.profileHTML=e}},{key:"setMessages",value:function(e){this.messagesHTML=e}},{key:"setHideMessageField",value:function(e){this.hideMessageField=e}},{key:"render",value:function(){if(!1===this.props.chatwidget.get("loadedCore"))return null;if(!0===this.props.chatwidget.getIn(["proactive","pending"]))return a.a.createElement(i.Suspense,{fallback:"..."},a.a.createElement(le,{setBotPayload:this.setBotPayload}));var e="d-flex flex-column flex-grow-1 reset-container-margins";return"widget"==this.props.chatwidget.get("mode")?e+=1==this.props.chatwidget.get("isMobile")?" mobile-body":" desktop-body":"embed"==this.props.chatwidget.get("mode")&&(e+=1==this.props.chatwidget.get("isMobile")?" mobile-embed-body":" desktop-embed-body"),this.props.chatwidget.hasIn(["chat_ui","msg_expand"])&&"embed"==this.props.chatwidget.get("mode")&&(e+=" mh-100"),!0===this.props.chatwidget.get("isChatting")?(e+=" online-chat online-chat-status-"+this.props.chatwidget.getIn(["chatLiveData","status"]),a.a.createElement(a.a.Fragment,null,this.props.chatwidget.hasIn(["chat_ui","custom_html_header"])&&a.a.createElement("div",{className:"lhc-custom-header-above",dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","custom_html_header"])}}),"widget"==this.props.chatwidget.get("mode")&&a.a.createElement(C,{popupChat:this.popupChat,endChat:this.endChat}),a.a.createElement("div",{className:e},a.a.createElement(se,{hideMessageField:this.hideMessageField,profileBefore:this.profileHTML,messagesBefore:this.messagesHTML,cancelClose:this.cancelClose,endChat:this.endChat})))):!0===this.props.chatwidget.get("isOnline")&&!1===this.props.chatwidget.get("isOfflineMode")?(e+=" start-chat",a.a.createElement(a.a.Fragment,null,this.props.chatwidget.hasIn(["chat_ui","custom_html_header"])&&a.a.createElement("div",{className:"lhc-custom-header-above",dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","custom_html_header"])}}),"widget"==this.props.chatwidget.get("mode")&&a.a.createElement(C,{popupChat:this.popupChat,endChat:this.endChat}),a.a.createElement("div",{className:e},a.a.createElement(I.a,{botPayload:this.botPayload,setHideMessageField:this.setHideMessageField,setProfile:this.setProfile,setMessages:this.setMessages})))):(e+=" offline-chat",a.a.createElement(a.a.Fragment,null,this.props.chatwidget.hasIn(["chat_ui","custom_html_header"])&&a.a.createElement("div",{className:"lhc-custom-header-above",dangerouslySetInnerHTML:{__html:this.props.chatwidget.getIn(["chat_ui","custom_html_header"])}}),"widget"==this.props.chatwidget.get("mode")&&a.a.createElement(C,{popupChat:this.popupChat,endChat:this.endChat}),a.a.createElement("div",{className:e},a.a.createElement(i.Suspense,{fallback:""},a.a.createElement(ue,null)))))}}]),t}(i.Component))||$,de=n(53),pe=function(e){function t(e){var n;return l()(this,t),n=h()(this,g()(t).call(this,e)),w()(y()(n),"state",{}),w()(y()(n),"playSound",(function(e){"new_message"==e.type?(!0===e.sound_on&&(!1===e.widget_open||!0===e.widget_open&&0==window.lhcChat.is_focused)&&n.playSoundFile("new_message"),0==e.widget_open&&S.a.sendMessageParent("unread_message",[{msop:e.msop||null,msg_body:e.msg_body||null,type:"unread_message",otm:e.otm||0}])):"new_invitation"==e.type&&!0===e.sound_on?null===S.a.getSessionStorage("_invs")&&(S.a.setSessionStorage("_invs",1),n.playSoundFile("new_invitation")):"new_chat"==e.type&&!0===e.sound_on&&n.playSoundFile("new_invitation"),0==window.lhcChat.is_focused&&S.a.sendMessageParent("unread_message_title",[{status:!1}])})),w()(y()(n),"playSoundFile",(function(e){new de.Howl({src:[window.lhcChat.base_url+"/widgetrestapi/loadsound/"+e+"_mp3",window.lhcChat.base_url+"/widgetrestapi/loadsound/"+e+"_ogg",window.lhcChat.base_url+"/widgetrestapi/loadsound/"+e+"_wav"],format:["mp3","ogg","wav"],autoplay:!0})})),S.a.eventEmitter.addListener("play_sound",(function(e){return n.playSound(e)})),n}return _()(t,e),d()(t,[{key:"render",value:function(){return null}}]),t}(i.PureComponent),he=Object(E.b)()(pe),fe=function(e){function t(e){var n;return l()(this,t),(n=h()(this,g()(t).call(this,e))).state={hasError:!1},n}return _()(t,e),d()(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,info:t}),S.a.logJSError({stack:e.stack?JSON.stringify(e.stack):""})}},{key:"render",value:function(){return this.state.hasError?a.a.createElement("p",null,"Please re-load window because of an error."):this.props.children}}]),t}(a.a.Component),ge=function(e){function t(){return l()(this,t),h()(this,g()(t).apply(this,arguments))}return _()(t,e),d()(t,[{key:"render",value:function(){return a.a.createElement(a.a.Fragment,null,a.a.createElement(fe,null,a.a.createElement(he,null),a.a.createElement(ce,null)))}}]),t}(i.Component),me=n(19),_e={};function ve(e){e&&(e.value=!0)}function ye(){}function be(e){return void 0===e.size&&(e.size=e.__iterate(Ee)),e.size}function we(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?be(e)+t:t}function Ee(){return!0}function ke(e,t,n){return(0===e&&!Ce(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function Se(e,t){return Te(e,t,0)}function xe(e,t){return Te(e,t,t)}function Te(e,t,n){return void 0===e?n:Ce(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function Ce(e){return e<0||0===e&&1/e==-1/0}function Ie(e){return Boolean(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function Oe(e){return Boolean(e&&e["@@__IMMUTABLE_KEYED__@@"])}function De(e){return Boolean(e&&e["@@__IMMUTABLE_INDEXED__@@"])}function Pe(e){return Oe(e)||De(e)}var Ae=function(e){return Ie(e)?e:Je(e)},Me=function(e){function t(e){return Oe(e)?e:Ze(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ae),Le=function(e){function t(e){return De(e)?e:et(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ae),Ne=function(e){function t(e){return Ie(e)&&!Pe(e)?e:tt(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ae);Ae.Keyed=Me,Ae.Indexed=Le,Ae.Set=Ne;function Re(e){return Boolean(e&&e["@@__IMMUTABLE_SEQ__@@"])}function je(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function Be(e){return Ie(e)||je(e)}var Fe="@@__IMMUTABLE_ORDERED__@@";function Ue(e){return Boolean(e&&e[Fe])}var ze="function"==typeof Symbol&&Symbol.iterator,He=ze||"@@iterator",qe=function(e){this.next=e};function We(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function Ve(){return{value:void 0,done:!0}}function Ke(e){return!!Qe(e)}function $e(e){return e&&"function"==typeof e.next}function Ge(e){var t=Qe(e);return t&&t.call(e)}function Qe(e){var t=e&&(ze&&e[ze]||e["@@iterator"]);if("function"==typeof t)return t}qe.prototype.toString=function(){return"[Iterator]"},qe.KEYS=0,qe.VALUES=1,qe.ENTRIES=2,qe.prototype.inspect=qe.prototype.toSource=function(){return this.toString()},qe.prototype[He]=function(){return this};var Xe=Object.prototype.hasOwnProperty;function Ye(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Je=function(e){function t(e){return null==e?ot():Be(e)?e.toSeq():function(e){var t=lt(e);if(t)return t;if("object"==typeof e)return new rt(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var a=n[t?r-++i:i++];if(!1===e(a[1],a[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new qe((function(){if(i===r)return{value:void 0,done:!0};var a=n[t?r-++i:i++];return We(e,a[0],a[1])}))}return this.__iteratorUncached(e,t)},t}(Ae),Ze=function(e){function t(e){return null==e?ot().toKeyedSeq():Ie(e)?Oe(e)?e.toSeq():e.fromEntrySeq():je(e)?e.toSeq():st(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Je),et=function(e){function t(e){return null==e?ot():Ie(e)?Oe(e)?e.entrySeq():e.toIndexedSeq():je(e)?e.toSeq().entrySeq():ut(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Je),tt=function(e){function t(e){return(Ie(e)&&!Pe(e)?e:et(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Je);Je.isSeq=Re,Je.Keyed=Ze,Je.Set=tt,Je.Indexed=et,Je.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var nt=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[we(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var a=t?r-++i:i++;if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new qe((function(){if(i===r)return{value:void 0,done:!0};var a=t?r-++i:i++;return We(e,a,n[a])}))},t}(et),rt=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return Xe.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,a=0;a!==i;){var o=r[t?i-++a:a++];if(!1===e(n[o],o,this))break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,a=0;return new qe((function(){if(a===i)return{value:void 0,done:!0};var o=r[t?i-++a:a++];return We(e,o,n[o])}))},t}(Ze);rt.prototype[Fe]=!0;var it,at=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=Ge(this._collection),r=0;if($e(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=Ge(this._collection);if(!$e(n))return new qe(Ve);var r=0;return new qe((function(){var t=n.next();return t.done?t:We(e,r++,t.value)}))},t}(et);function ot(){return it||(it=new nt([]))}function st(e){var t=Array.isArray(e)?new nt(e):Ke(e)?new at(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new rt(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function ut(e){var t=lt(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function lt(e){return Ye(e)?new nt(e):Ke(e)?new at(e):void 0}function ct(e){return Boolean(e&&e["@@__IMMUTABLE_MAP__@@"])}function dt(e){return ct(e)&&Ue(e)}function pt(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function ht(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(pt(e)&&pt(t)&&e.equals(t))}var ft="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function gt(e){return e>>>1&1073741824|3221225471&e}var mt=Object.prototype.valueOf;function _t(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return gt(t)}(e);case"string":return e.length>xt?function(e){var t=It[e];void 0===t&&(t=vt(e),Ct===Tt&&(Ct=0,It={}),Ct++,It[e]=t);return t}(e):vt(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?gt(e.hashCode(e)):(e.valueOf!==mt&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(Et&&void 0!==(t=wt.get(e)))return t;if(void 0!==(t=e[St]))return t;if(!bt){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[St]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++kt,1073741824&kt&&(kt=0);if(Et)wt.set(e,t);else{if(void 0!==yt&&!1===yt(e))throw new Error("Non-extensible objects are not allowed as keys.");if(bt)Object.defineProperty(e,St,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[St]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[St]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return vt(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function vt(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return gt(t)}var yt=Object.isExtensible,bt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var wt,Et="function"==typeof WeakMap;Et&&(wt=new WeakMap);var kt=0,St="__immutablehash__";"function"==typeof Symbol&&(St=Symbol(St));var xt=16,Tt=255,Ct=0,It={},Ot=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Nt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Lt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Ze);Ot.prototype[Fe]=!0;var Dt=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&be(this),this._iter.__iterate((function(i){return e(i,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&be(this),new qe((function(){var a=r.next();return a.done?a:We(e,t?n.size-++i:i++,a.value,a)}))},t}(et),Pt=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new qe((function(){var t=n.next();return t.done?t:We(e,t.value,t.value,t)}))},t}(tt),At=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Kt(t);var r=Ie(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new qe((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Kt(r);var i=Ie(r);return We(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}(Ze);function Mt(e){var t=Gt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Qt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new qe((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Lt(e,t,n){var r=Gt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,_e);return a===_e?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate((function(e,i,o){return!1!==r(t.call(n,e,i,o),i,a)}),i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(2,i);return new qe((function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return We(r,s,t.call(n,o[1],s,e),i)}))},r}function Nt(e,t){var n=this,r=Gt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Mt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Qt,r.__iterate=function(n,r){var i=this,a=0;return r&&be(e),e.__iterate((function(e,o){return n(e,t?o:r?i.size-++a:a++,i)}),!r)},r.__iterator=function(r,i){var a=0;i&&be(e);var o=e.__iterator(2,!i);return new qe((function(){var e=o.next();if(e.done)return e;var s=e.value;return We(r,t?s[0]:i?n.size-++a:a++,s[1],e)}))},r}function Rt(e,t,n,r){var i=Gt(e);return r&&(i.has=function(r){var i=e.get(r,_e);return i!==_e&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,_e);return a!==_e&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return e.__iterate((function(e,a,u){if(t.call(n,e,a,u))return s++,i(e,r?a:s-1,o)}),a),s},i.__iteratorUncached=function(i,a){var o=e.__iterator(2,a),s=0;return new qe((function(){for(;;){var a=o.next();if(a.done)return a;var u=a.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return We(i,r?l:s++,c,a)}}))},i}function jt(e,t,n,r){var i=e.size;if(ke(t,n,i))return e;var a=Se(t,i),o=xe(n,i);if(a!=a||o!=o)return jt(e.toSeq().cacheResult(),t,n,r);var s,u=o-a;u==u&&(s=u<0?0:u);var l=Gt(e);return l.size=0===s?s:e.size&&s||void 0,!r&&Re(e)&&s>=0&&(l.get=function(t,n){return(t=we(this,t))>=0&&t<s?e.get(t+a,n):n}),l.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,u=!0,l=0;return e.__iterate((function(e,n){if(!u||!(u=o++<a))return l++,!1!==t(e,r?n:l-1,i)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new qe(Ve);var i=e.__iterator(t,n),o=0,u=0;return new qe((function(){for(;o++<a;)i.next();if(++u>s)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:We(t,u-1,0===t?void 0:e.value[1],e)}))},l}function Bt(e,t,n,r){var i=Gt(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var s=!0,u=0;return e.__iterate((function(e,a,l){if(!s||!(s=t.call(n,e,a,l)))return u++,i(e,r?a:u-1,o)})),u},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var s=e.__iterator(2,a),u=!0,l=0;return new qe((function(){var e,a,c;do{if((e=s.next()).done)return r||1===i?e:We(i,l++,0===i?void 0:e.value[1],e);var d=e.value;a=d[0],c=d[1],u&&(u=t.call(n,c,a,o))}while(u);return 2===i?e:We(i,a,c,e)}))},i}function Ft(e,t){var n=Oe(e),r=[e].concat(t).map((function(e){return Ie(e)?n&&(e=Me(e)):e=n?st(e):ut(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&Oe(i)||De(e)&&De(i))return i}var a=new nt(r);return n?a=a.toKeyedSeq():De(e)||(a=a.toSetSeq()),(a=a.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),a}function Ut(e,t,n){var r=Gt(e);return r.__iterateUncached=function(i,a){if(a)return this.cacheResult().__iterate(i,a);var o=0,s=!1;return function e(u,l){u.__iterate((function(a,u){return(!t||l<t)&&Ie(a)?e(a,l+1):(o++,!1===i(a,n?u:o-1,r)&&(s=!0)),!s}),a)}(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(r,i),o=[],s=0;return new qe((function(){for(;a;){var e=a.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(o.length<t)||!Ie(u))return n?e:We(r,s++,u,e);o.push(a),a=u.__iterator(r,i)}else a=o.pop()}return{value:void 0,done:!0}}))},r}function zt(e,t,n){t||(t=Xt);var r=Oe(e),i=0,a=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).valueSeq().toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?Ze(a):De(e)?et(a):tt(a)}function Ht(e,t,n){if(t||(t=Xt),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return qt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return qt(t,e,n)?n:e}))}function qt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Wt(e,t,n,r){var i=Gt(e),a=new nt(n).map((function(e){return e.size}));return i.size=r?a.max():a.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var a=n.map((function(e){return e=Ae(e),Ge(i?e.reverse():e)})),o=0,s=!1;return new qe((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:We(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Vt(e,t){return e===t?e:Re(e)?t:e.constructor(t)}function Kt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function $t(e){return Oe(e)?Me:De(e)?Le:Ne}function Gt(e){return Object.create((Oe(e)?Ze:De(e)?et:tt).prototype)}function Qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Je.prototype.cacheResult.call(this)}function Xt(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Yt(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function Jt(e,t){if(!e)throw new Error(t)}function Zt(e){Jt(e!==1/0,"Cannot perform this action with an infinite size.")}function en(e){if(Ye(e)&&"string"!=typeof e)return e;if(Ue(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function tn(e){return e&&("function"!=typeof e.constructor||"Object"===e.constructor.name)}function nn(e){return"object"==typeof e&&(Be(e)||Array.isArray(e)||tn(e))}function rn(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function an(e,t){return Be(e)?e.has(t):nn(e)&&Xe.call(e,t)}function on(e,t,n){return Be(e)?e.get(t,n):an(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function sn(e){if(Array.isArray(e))return Yt(e);var t={};for(var n in e)Xe.call(e,n)&&(t[n]=e[n]);return t}function un(e,t){if(!nn(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Be(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!Xe.call(e,t))return e;var n=sn(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function ln(e,t,n){if(!nn(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Be(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(Xe.call(e,t)&&n===e[t])return e;var r=sn(e);return r[t]=n,r}function cn(e,t,n,r){r||(r=n,n=void 0);var i=function e(t,n,r,i,a,o){var s=n===_e;if(i===r.length){var u=s?a:n,l=o(u);return l===u?n:l}if(!s&&!nn(n))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,i).map(rn)+"]: "+n);var c=r[i],d=s?_e:on(n,c,_e),p=e(d===_e?t:Be(d),d,r,i+1,a,o);return p===d?n:p===_e?un(n,c):ln(s?t?qn():{}:n,c,p)}(Be(e),e,en(t),0,n,r);return i===_e?n:i}function dn(e,t,n){return cn(e,t,_e,(function(){return n}))}function pn(e,t){return dn(this,e,t)}function hn(e,t){return cn(e,t,(function(){return _e}))}function fn(e){return hn(this,e)}function gn(e,t,n,r){return cn(e,[t],n,r)}function mn(e,t,n){return 1===arguments.length?e(this):gn(this,e,t,n)}function _n(e,t,n){return cn(this,e,t,n)}function vn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return bn(this,e)}function yn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return bn(this,t,e)}function bn(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=Me(t[i]);0!==a.size&&r.push(a)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){gn(e,r,_e,(function(e){return e===_e?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})):e.constructor(r[0])}function wn(e,t,n){return En(e,t,function(e){return function t(n,r,i){return nn(n)&&nn(r)?En(n,[r],t):e?e(n,r,i):r}}(n))}function En(e,t,n){if(!nn(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Be(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,a=r?Le:Me,o=r?function(t){i===e&&(i=sn(i)),i.push(t)}:function(t,r){var a=Xe.call(i,r),o=a&&n?n(i[r],t,r):t;a&&o===i[r]||(i===e&&(i=sn(i)),i[r]=o)},s=0;s<t.length;s++)a(t[s]).forEach(o);return i}function kn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return wn(this,e)}function Sn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return wn(this,t,e)}function xn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return cn(this,e,qn(),(function(e){return En(e,t)}))}function Tn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return cn(this,e,qn(),(function(e){return wn(e,t)}))}function Cn(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function In(){return this.__ownerID?this:this.__ensureOwner(new ye)}function On(){return this.__ensureOwner()}function Dn(){return this.__altered}Dt.prototype.cacheResult=Ot.prototype.cacheResult=Pt.prototype.cacheResult=At.prototype.cacheResult=Qt;var Pn=function(e){function t(t){return null==t?qn():ct(t)&&!Ue(t)?t:qn().withMutations((function(n){var r=e(t);Zt(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return qn().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Wn(this,e,t)},t.prototype.remove=function(e){return Wn(this,e,_e)},t.prototype.deleteAll=function(e){var t=Ae(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):qn()},t.prototype.sort=function(e){return fr(zt(this,e))},t.prototype.sortBy=function(e,t){return fr(zt(this,t,e))},t.prototype.map=function(e,t){return this.withMutations((function(n){n.forEach((function(r,i){n.set(i,e.call(t,r,i,n))}))}))},t.prototype.__iterator=function(e,t){return new Fn(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Hn(this.size,this._root,e,this.__hash):0===this.size?qn():(this.__ownerID=e,this.__altered=!1,this)},t}(Me);Pn.isMap=ct;var An=Pn.prototype;An["@@__IMMUTABLE_MAP__@@"]=!0,An.delete=An.remove,An.removeAll=An.deleteAll,An.setIn=pn,An.removeIn=An.deleteIn=fn,An.update=mn,An.updateIn=_n,An.merge=An.concat=vn,An.mergeWith=yn,An.mergeDeep=kn,An.mergeDeepWith=Sn,An.mergeIn=xn,An.mergeDeepIn=Tn,An.withMutations=Cn,An.wasAltered=Dn,An.asImmutable=On,An["@@transducer/init"]=An.asMutable=In,An["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},An["@@transducer/result"]=function(e){return e.asImmutable()};var Mn=function(e,t){this.ownerID=e,this.entries=t};Mn.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(ht(n,i[a][0]))return i[a][1];return r},Mn.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===_e,u=this.entries,l=0,c=u.length;l<c&&!ht(r,u[l][0]);l++);var d=l<c;if(d?u[l][1]===i:s)return this;if(ve(o),(s||!d)&&ve(a),!s||1!==u.length){if(!d&&!s&&u.length>=Xn)return function(e,t,n,r){e||(e=new ye);for(var i=new jn(e,_t(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}(e,u,r,i);var p=e&&e===this.ownerID,h=p?u:Yt(u);return d?s?l===c-1?h.pop():h[l]=h.pop():h[l]=[r,i]:h.push([r,i]),p?(this.entries=h,this):new Mn(e,h)}};var Ln=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Ln.prototype.get=function(e,t,n,r){void 0===t&&(t=_t(n));var i=1<<(31&(0===e?t:t>>>e)),a=this.bitmap;return 0==(a&i)?r:this.nodes[Gn(a&i-1)].get(e+5,t,n,r)},Ln.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=_t(r));var s=31&(0===t?n:n>>>t),u=1<<s,l=this.bitmap,c=0!=(l&u);if(!c&&i===_e)return this;var d=Gn(l&u-1),p=this.nodes,h=c?p[d]:void 0,f=Vn(h,e,t+5,n,r,i,a,o);if(f===h)return this;if(!c&&f&&p.length>=Yn)return function(e,t,n,r,i){for(var a=0,o=new Array(32),s=0;0!==n;s++,n>>>=1)o[s]=1&n?t[a++]:void 0;return o[r]=i,new Nn(e,a+1,o)}(e,p,l,s,f);if(c&&!f&&2===p.length&&Kn(p[1^d]))return p[1^d];if(c&&f&&1===p.length&&Kn(f))return f;var g=e&&e===this.ownerID,m=c?f?l:l^u:l|u,_=c?f?Qn(p,d,f,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}(p,d,g):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=new Array(i),o=0,s=0;s<i;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}(p,d,f,g);return g?(this.bitmap=m,this.nodes=_,this):new Ln(e,m,_)};var Nn=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Nn.prototype.get=function(e,t,n,r){void 0===t&&(t=_t(n));var i=31&(0===e?t:t>>>e),a=this.nodes[i];return a?a.get(e+5,t,n,r):r},Nn.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=_t(r));var s=31&(0===t?n:n>>>t),u=i===_e,l=this.nodes,c=l[s];if(u&&!c)return this;var d=Vn(c,e,t+5,n,r,i,a,o);if(d===c)return this;var p=this.count;if(c){if(!d&&--p<Jn)return function(e,t,n,r){for(var i=0,a=0,o=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=u,o[a++]=c)}return new Ln(e,i,o)}(e,l,p,s)}else p++;var h=e&&e===this.ownerID,f=Qn(l,s,d,h);return h?(this.count=p,this.nodes=f,this):new Nn(e,p,f)};var Rn=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Rn.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(ht(n,i[a][0]))return i[a][1];return r},Rn.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=_t(r));var s=i===_e;if(n!==this.keyHash)return s?this:(ve(o),ve(a),$n(this,e,t,n,[r,i]));for(var u=this.entries,l=0,c=u.length;l<c&&!ht(r,u[l][0]);l++);var d=l<c;if(d?u[l][1]===i:s)return this;if(ve(o),(s||!d)&&ve(a),s&&2===c)return new jn(e,this.keyHash,u[1^l]);var p=e&&e===this.ownerID,h=p?u:Yt(u);return d?s?l===c-1?h.pop():h[l]=h.pop():h[l]=[r,i]:h.push([r,i]),p?(this.entries=h,this):new Rn(e,this.keyHash,h)};var jn=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};jn.prototype.get=function(e,t,n,r){return ht(n,this.entry[0])?this.entry[1]:r},jn.prototype.update=function(e,t,n,r,i,a,o){var s=i===_e,u=ht(r,this.entry[0]);return(u?i===this.entry[1]:s)?this:(ve(o),s?void ve(a):u?e&&e===this.ownerID?(this.entry[1]=i,this):new jn(e,this.keyHash,[r,i]):(ve(a),$n(this,e,t,_t(r),[r,i])))},Mn.prototype.iterate=Rn.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ln.prototype.iterate=Nn.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&!1===a.iterate(e,t))return!1}},jn.prototype.iterate=function(e,t){return e(this.entry)};var Bn,Fn=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&zn(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return Un(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return Un(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return Un(e,a.entry);t=this._stack=zn(a,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(qe);function Un(e,t){return We(e,t[0],t[1])}function zn(e,t){return{node:e,index:0,__prev:t}}function Hn(e,t,n,r){var i=Object.create(An);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function qn(){return Bn||(Bn=Hn(0))}function Wn(e,t,n){var r,i;if(e._root){var a={value:!1},o={value:!1};if(r=Vn(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===_e?-1:1:0)}else{if(n===_e)return e;i=1,r=new Mn(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Hn(i,r):qn()}function Vn(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===_e?e:(ve(s),ve(o),new jn(t,r,[i,a]))}function Kn(e){return e.constructor===jn||e.constructor===Rn}function $n(e,t,n,r,i){if(e.keyHash===r)return new Rn(t,r,[e.entry,i]);var a,o=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?r:r>>>n),u=o===s?[$n(e,t,n+5,r,i)]:(a=new jn(t,r,i),o<s?[e,a]:[a,e]);return new Ln(t,1<<o|1<<s,u)}function Gn(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Qn(e,t,n,r){var i=r?e:Yt(e);return i[t]=n,i}var Xn=8,Yn=16,Jn=8;function Zn(e){return Boolean(e&&e["@@__IMMUTABLE_LIST__@@"])}var er=function(e){function t(t){var n=sr();if(null==t)return n;if(Zn(t))return t;var r=e(t),i=r.size;return 0===i?n:(Zt(i),i>0&&i<32?or(0,i,5,null,new nr(r.toArray())):n.withMutations((function(e){e.setSize(i),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=we(this,e))>=0&&e<this.size){var n=cr(this,e+=this._origin);return n&&n.array[31&e]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=we(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?dr(e,t).set(0,n):dr(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,a={value:!1};t>=pr(e._capacity)?r=ur(r,e.__ownerID,0,t,n,a):i=ur(i,e.__ownerID,e._level,t,n,a);if(!a.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return or(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):sr()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){dr(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return dr(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){dr(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return dr(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],a=e("string"!=typeof i&&Ke(i)?i:[i]);0!==a.size&&n.push(a)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return dr(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,r))}))},t.prototype.slice=function(e,t){var n=this.size;return ke(e,t,n)?this:dr(this,Se(e,n),xe(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=ar(this,t);return new qe((function(){var i=r();return i===ir?{value:void 0,done:!0}:We(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=ar(this,t);(n=i())!==ir&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?or(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?sr():(this.__ownerID=e,this.__altered=!1,this)},t}(Le);er.isList=Zn;var tr=er.prototype;tr["@@__IMMUTABLE_LIST__@@"]=!0,tr.delete=tr.remove,tr.merge=tr.concat,tr.setIn=pn,tr.deleteIn=tr.removeIn=fn,tr.update=mn,tr.updateIn=_n,tr.mergeIn=xn,tr.mergeDeepIn=Tn,tr.withMutations=Cn,tr.wasAltered=Dn,tr.asImmutable=On,tr["@@transducer/init"]=tr.asMutable=In,tr["@@transducer/step"]=function(e,t){return e.push(t)},tr["@@transducer/result"]=function(e){return e.asImmutable()};var nr=function(e,t){this.array=e,this.ownerID=t};nr.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new nr([],e);var i,a=0===r;if(t>0){var o=this.array[r];if((i=o&&o.removeBefore(e,t-5,n))===o&&a)return this}if(a&&!i)return this;var s=lr(this,e);if(!a)for(var u=0;u<r;u++)s.array[u]=void 0;return i&&(s.array[r]=i),s},nr.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&31;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-5,n))===a&&i===this.array.length-1)return this}var o=lr(this,e);return o.array.splice(i+1),r&&(o.array[i]=r),o};var rr,ir={};function ar(e,t){var n=e._origin,r=e._capacity,i=pr(r),a=e._tail;return o(e._root,e._level,0);function o(e,s,u){return 0===s?function(e,o){var s=o===i?a&&a.array:e&&e.array,u=o>n?0:n-o,l=r-o;l>32&&(l=32);return function(){if(u===l)return ir;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,i,a){var s,u=e&&e.array,l=a>n?0:n-a>>i,c=1+(r-a>>i);c>32&&(c=32);return function(){for(;;){if(s){var e=s();if(e!==ir)return e;s=null}if(l===c)return ir;var n=t?--c:l++;s=o(u&&u[n],i-5,a+(n<<i))}}}(e,s,u)}}function or(e,t,n,r,i,a,o){var s=Object.create(tr);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function sr(){return rr||(rr=or(0,0,5))}function ur(e,t,n,r,i,a){var o,s=r>>>n&31,u=e&&s<e.array.length;if(!u&&void 0===i)return e;if(n>0){var l=e&&e.array[s],c=ur(l,t,n-5,r,i,a);return c===l?e:((o=lr(e,t)).array[s]=c,o)}return u&&e.array[s]===i?e:(a&&ve(a),o=lr(e,t),void 0===i&&s===o.array.length-1?o.array.pop():o.array[s]=i,o)}function lr(e,t){return t&&e&&t===e.ownerID?e:new nr(e?e.array.slice():[],t)}function cr(e,t){if(t>=pr(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function dr(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new ye,i=e._origin,a=e._capacity,o=i+t,s=void 0===n?a:n<0?a+n:i+n;if(o===i&&s===a)return e;if(o>=s)return e.clear();for(var u=e._level,l=e._root,c=0;o+c<0;)l=new nr(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=5);c&&(o+=c,i+=c,s+=c,a+=c);for(var d=pr(a),p=pr(s);p>=1<<u+5;)l=new nr(l&&l.array.length?[l]:[],r),u+=5;var h=e._tail,f=p<d?cr(e,s-1):p>d?new nr([],r):h;if(h&&p>d&&o<a&&h.array.length){for(var g=l=lr(l,r),m=u;m>5;m-=5){var _=d>>>m&31;g=g.array[_]=lr(g.array[_],r)}g.array[d>>>5&31]=h}if(s<a&&(f=f&&f.removeAfter(r,0,s)),o>=p)o-=p,s-=p,u=5,l=null,f=f&&f.removeBefore(r,0,o);else if(o>i||p<d){for(c=0;l;){var v=o>>>u&31;if(v!==p>>>u&31)break;v&&(c+=(1<<u)*v),u-=5,l=l.array[v]}l&&o>i&&(l=l.removeBefore(r,u,o-c)),l&&p<d&&(l=l.removeAfter(r,u,p-c)),c&&(o-=c,s-=c)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=u,e._root=l,e._tail=f,e.__hash=void 0,e.__altered=!0,e):or(o,s,u,l,f)}function pr(e){return e<32?0:e-1>>>5<<5}var hr,fr=function(e){function t(e){return null==e?mr():dt(e)?e:mr().withMutations((function(t){var n=Me(e);Zt(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):mr()},t.prototype.set=function(e,t){return _r(this,e,t)},t.prototype.remove=function(e){return _r(this,e,_e)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?gr(t,n,e,this.__hash):0===this.size?mr():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(Pn);function gr(e,t,n,r){var i=Object.create(fr.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function mr(){return hr||(hr=gr(qn(),sr()))}function _r(e,t,n){var r,i,a=e._map,o=e._list,s=a.get(t),u=void 0!==s;if(n===_e){if(!u)return e;o.size>=32&&o.size>=2*a.size?(r=(i=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=a.remove(t),i=s===o.size-1?o.pop():o.set(s,void 0))}else if(u){if(n===o.get(s)[1])return e;r=a,i=o.set(s,[t,n])}else r=a.set(t,o.size),i=o.set(o.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):gr(r,i)}fr.isOrderedMap=dt,fr.prototype[Fe]=!0,fr.prototype.delete=fr.prototype.remove;function vr(e){return Boolean(e&&e["@@__IMMUTABLE_STACK__@@"])}var yr=function(e){function t(e){return null==e?kr():vr(e)?e:kr().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=we(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Er(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&vr(t))return t;Zt(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Er(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):kr()},t.prototype.slice=function(t,n){if(ke(t,n,this.size))return this;var r=Se(t,this.size);if(xe(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):Er(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Er(this.size,this._head,e,this.__hash):0===this.size?kr():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new nt(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new nt(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new qe((function(){if(r){var t=r.value;return r=r.next,We(e,n++,t)}return{value:void 0,done:!0}}))},t}(Le);yr.isStack=vr;var br,wr=yr.prototype;function Er(e,t,n,r){var i=Object.create(wr);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function kr(){return br||(br=Er(0))}wr["@@__IMMUTABLE_STACK__@@"]=!0,wr.shift=wr.pop,wr.unshift=wr.push,wr.unshiftAll=wr.pushAll,wr.withMutations=Cn,wr.wasAltered=Dn,wr.asImmutable=On,wr["@@transducer/init"]=wr.asMutable=In,wr["@@transducer/step"]=function(e,t){return e.unshift(t)},wr["@@transducer/result"]=function(e){return e.asImmutable()};function Sr(e){return Boolean(e&&e["@@__IMMUTABLE_SET__@@"])}function xr(e){return Sr(e)&&Ue(e)}function Tr(e,t){if(e===t)return!0;if(!Ie(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||Oe(e)!==Oe(t)||De(e)!==De(t)||Ue(e)!==Ue(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!Pe(e);if(Ue(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ht(i[1],e)&&(n||ht(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var o=!0,s=t.__iterate((function(t,r){if(n?!e.has(t):i?!ht(t,e.get(r,_e)):!ht(e.get(r,_e),t))return o=!1,!1}));return o&&e.size===s}function Cr(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Ir(e){if(!e||"object"!=typeof e)return e;if(!Ie(e)){if(!nn(e))return e;e=Je(e)}if(Oe(e)){var t={};return e.__iterate((function(e,n){t[n]=Ir(e)})),t}var n=[];return e.__iterate((function(e){n.push(Ir(e))})),n}var Or=function(e){function t(t){return null==t?Lr():Sr(t)&&!Ue(t)?t:Lr().withMutations((function(n){var r=e(t);Zt(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(Me(e).keySeq())},t.intersect=function(e){return(e=Ae(e).toArray()).length?Pr.intersect.apply(t(e.pop()),e):Lr()},t.union=function(e){return(e=Ae(e).toArray()).length?Pr.union.apply(t(e.pop()),e):Lr()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Ar(this,this._map.set(e,e))},t.prototype.remove=function(e){return Ar(this,this._map.remove(e))},t.prototype.clear=function(){return Ar(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],i=[];return this.forEach((function(a){var o=e.call(t,a,a,n);o!==a&&(r.push(a),i.push(o))})),this.withMutations((function(e){r.forEach((function(t){return e.remove(t)})),i.forEach((function(t){return e.add(t)}))}))},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return Jr(zt(this,e))},t.prototype.sortBy=function(e,t){return Jr(zt(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(Ne);Or.isSet=Sr;var Dr,Pr=Or.prototype;function Ar(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Mr(e,t){var n=Object.create(Pr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Lr(){return Dr||(Dr=Mr(qn()))}Pr["@@__IMMUTABLE_SET__@@"]=!0,Pr.delete=Pr.remove,Pr.merge=Pr.concat=Pr.union,Pr.withMutations=Cn,Pr.asImmutable=On,Pr["@@transducer/init"]=Pr.asMutable=In,Pr["@@transducer/step"]=function(e,t){return e.add(t)},Pr["@@transducer/result"]=function(e){return e.asImmutable()},Pr.__empty=Lr,Pr.__make=Mr;var Nr,Rr=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Jt(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Nr)return Nr;Nr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+we(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return ke(e,n,this.size)?this:(e=Se(e,this.size),(n=xe(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;a!==n&&!1!==e(i,t?n-++a:a++,this);)i+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;return new qe((function(){if(a===n)return{value:void 0,done:!0};var o=i;return i+=t?-r:r,We(e,t?n-++a:a++,o)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Tr(this,e)},t}(et);function jr(e,t,n){for(var r=en(t),i=0;i!==r.length;)if((e=on(e,r[i++],_e))===_e)return n;return e}function Br(e,t){return jr(this,e,t)}function Fr(e,t){return jr(e,t,_e)!==_e}function Ur(){Zt(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}Ae.isIterable=Ie,Ae.isKeyed=Oe,Ae.isIndexed=De,Ae.isAssociative=Pe,Ae.isOrdered=Ue,Ae.Iterator=qe,Cr(Ae,{toArray:function(){Zt(this.size);var e=new Array(this.size||0),t=Oe(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new Dt(this)},toJS:function(){return Ir(this)},toKeyedSeq:function(){return new Ot(this,!0)},toMap:function(){return Pn(this.toKeyedSeq())},toObject:Ur,toOrderedMap:function(){return fr(this.toKeyedSeq())},toOrderedSet:function(){return Jr(Oe(this)?this.valueSeq():this)},toSet:function(){return Or(Oe(this)?this.valueSeq():this)},toSetSeq:function(){return new Pt(this)},toSeq:function(){return De(this)?this.toIndexedSeq():Oe(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return yr(Oe(this)?this.valueSeq():this)},toList:function(){return er(Oe(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Vt(this,Ft(this,e))},includes:function(e){return this.some((function(t){return ht(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Zt(this.size);var n=!0;return this.__iterate((function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1})),n},filter:function(e,t){return Vt(this,Rt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Zt(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Zt(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Vt(this,Lt(this,e,t))},reduce:function(e,t,n){return Wr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Wr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Vt(this,Nt(this,!0))},slice:function(e,t){return Vt(this,jt(this,e,t,!0))},some:function(e,t){return!this.every($r(e),t)},sort:function(e){return Vt(this,zt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return be(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Pn().asMutable();return e.__iterate((function(i,a){r.update(t.call(n,i,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Tr(this,e)},entrySeq:function(){var e=this;if(e._cache)return new nt(e._cache);var t=e.toSeq().map(Kr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter($r(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(Ee,null,e)},flatMap:function(e,t){return Vt(this,function(e,t,n){var r=$t(e);return e.toSeq().map((function(i,a){return r(t.call(n,i,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Vt(this,Ut(this,e,!0))},fromEntrySeq:function(){return new At(this)},get:function(e,t){return this.find((function(t,n){return ht(n,e)}),void 0,t)},getIn:Br,groupBy:function(e,t){return function(e,t,n){var r=Oe(e),i=(Ue(e)?fr():Pn()).asMutable();e.__iterate((function(a,o){i.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(r?[o,a]:a),e}))}));var a=$t(e);return i.map((function(t){return Vt(e,a(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,_e)!==_e},hasIn:function(e){return Fr(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:Ae(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:Ae(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ht(t,e)}))},keySeq:function(){return this.toSeq().map(Vr).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ht(this,e)},maxBy:function(e,t){return Ht(this,t,e)},min:function(e){return Ht(this,e?Gr(e):Xr)},minBy:function(e,t){return Ht(this,t?Gr(t):Xr,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Vt(this,Bt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile($r(e),t)},sortBy:function(e,t){return Vt(this,zt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Vt(this,function(e,t,n){var r=Gt(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++o&&r(e,i,a)})),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(2,i),s=!0;return new qe((function(){if(!s)return{value:void 0,done:!0};var e=o.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,a)?2===r?e:We(r,u,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile($r(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=Ue(e),n=Oe(e),r=t?1:0;return function(e,t){return t=ft(t,3432918353),t=ft(t<<15|t>>>-15,461845907),t=ft(t<<13|t>>>-13,5),t=ft((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=gt((t=ft(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Yr(_t(e),_t(t))|0}:function(e,t){r=r+Yr(_t(e),_t(t))|0}:t?function(e){r=31*r+_t(e)|0}:function(e){r=r+_t(e)|0}),r)}(this))}});var zr=Ae.prototype;zr["@@__IMMUTABLE_ITERABLE__@@"]=!0,zr[He]=zr.values,zr.toJSON=zr.toArray,zr.__toStringMapper=rn,zr.inspect=zr.toSource=function(){return this.toString()},zr.chain=zr.flatMap,zr.contains=zr.includes,Cr(Me,{flip:function(){return Vt(this,Mt(this))},mapEntries:function(e,t){var n=this,r=0;return Vt(this,this.toSeq().map((function(i,a){return e.call(t,[a,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Vt(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Hr=Me.prototype;Hr["@@__IMMUTABLE_KEYED__@@"]=!0,Hr[He]=zr.entries,Hr.toJSON=Ur,Hr.__toStringMapper=function(e,t){return rn(t)+": "+rn(e)},Cr(Le,{toKeyedSeq:function(){return new Ot(this,!1)},filter:function(e,t){return Vt(this,Rt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Vt(this,Nt(this,!1))},slice:function(e,t){return Vt(this,jt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=Se(e,e<0?this.count():this.size);var r=this.slice(0,e);return Vt(this,1===n?r:r.concat(Yt(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Vt(this,Ut(this,e,!1))},get:function(e,t){return(e=we(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=we(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Vt(this,function(e,t){var n=Gt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate((function(e){return(!a||!1!==n(t,a++,i))&&!1!==n(e,a++,i)}),r),a},n.__iteratorUncached=function(n,r){var i,a=e.__iterator(1,r),o=0;return new qe((function(){return(!i||o%2)&&(i=a.next()).done?i:o%2?We(n,o++,t):We(n,o++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(Yt(arguments)),t=Wt(this.toSeq(),et.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Vt(this,n)},keySeq:function(){return Rr(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Vt(this,Bt(this,e,t,!1))},zip:function(){var e=[this].concat(Yt(arguments));return Vt(this,Wt(this,Qr,e))},zipAll:function(){var e=[this].concat(Yt(arguments));return Vt(this,Wt(this,Qr,e,!0))},zipWith:function(e){var t=Yt(arguments);return t[0]=this,Vt(this,Wt(this,e,t))}});var qr=Le.prototype;function Wr(e,t,n,r,i,a){return Zt(e.size),e.__iterate((function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)}),a),n}function Vr(e,t){return t}function Kr(e,t){return[t,e]}function $r(e){return function(){return!e.apply(this,arguments)}}function Gr(e){return function(){return-e.apply(this,arguments)}}function Qr(){return Yt(arguments)}function Xr(e,t){return e<t?1:e>t?-1:0}function Yr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}qr["@@__IMMUTABLE_INDEXED__@@"]=!0,qr[Fe]=!0,Cr(Ne,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),Ne.prototype.has=zr.includes,Ne.prototype.contains=Ne.prototype.includes,Cr(Ze,Me.prototype),Cr(et,Le.prototype),Cr(tt,Ne.prototype);var Jr=function(e){function t(e){return null==e?ni():xr(e)?e:ni().withMutations((function(t){var n=Ne(e);Zt(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(Me(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Or);Jr.isOrderedSet=xr;var Zr,ei=Jr.prototype;function ti(e,t){var n=Object.create(ei);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ni(){return Zr||(Zr=ti(mr()))}ei[Fe]=!0,ei.zip=qr.zip,ei.zipWith=qr.zipWith,ei.__empty=ni,ei.__make=ti;var ri=function(e,t){var n,r=function(a){var o=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),u=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var c=s[l];u[c]=l,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+oi(this)+' with property "'+c+'" since that property name is part of the Record API.'):ui(i,c)}}this.__ownerID=void 0,this._values=er().withMutations((function(e){e.setSize(o._keys.length),Me(a).forEach((function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)}))}))},i=r.prototype=Object.create(ii);return i.constructor=r,t&&(r.displayName=t),r};ri.prototype.toString=function(){for(var e,t=oi(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+rn(this.get(e));return t+" }"},ri.prototype.equals=function(e){return this===e||e&&this._keys===e._keys&&si(this).equals(si(e))},ri.prototype.hashCode=function(){return si(this).hashCode()},ri.prototype.has=function(e){return this._indices.hasOwnProperty(e)},ri.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},ri.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return ai(this,n)}return this},ri.prototype.remove=function(e){return this.set(e)},ri.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:ai(this,e)},ri.prototype.wasAltered=function(){return this._values.wasAltered()},ri.prototype.toSeq=function(){return si(this)},ri.prototype.toJS=function(){return Ir(this)},ri.prototype.entries=function(){return this.__iterator(2)},ri.prototype.__iterator=function(e,t){return si(this).__iterator(e,t)},ri.prototype.__iterate=function(e,t){return si(this).__iterate(e,t)},ri.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?ai(this,t,e):(this.__ownerID=e,this._values=t,this)},ri.isRecord=je,ri.getDescriptiveName=oi;var ii=ri.prototype;function ai(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function oi(e){return e.constructor.displayName||e.constructor.name||"Record"}function si(e){return st(e._keys.map((function(t){return[t,e.get(t)]})))}function ui(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Jt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}function li(e,t){return function e(t,n,r,i,a,o){var s=Array.isArray(r)?et:tn(r)?Ze:null;if(s){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),a&&""!==i&&a.push(i);var u=n.call(o,i,s(r).map((function(i,o){return e(t,n,i,o,a,r)})),a&&a.slice());return t.pop(),a&&a.pop(),u}return r}([],t||ci,e,"",t&&t.length>2?[]:void 0,{"":e})}function ci(e,t){return Oe(t)?t.toMap():t.toList()}ii["@@__IMMUTABLE_RECORD__@@"]=!0,ii.delete=ii.remove,ii.deleteIn=ii.removeIn=fn,ii.getIn=Br,ii.hasIn=zr.hasIn,ii.merge=vn,ii.mergeWith=yn,ii.mergeIn=xn,ii.mergeDeep=kn,ii.mergeDeepWith=Sn,ii.mergeDeepIn=Tn,ii.setIn=pn,ii.update=mn,ii.updateIn=_n,ii.withMutations=Cn,ii.asMutable=In,ii.asImmutable=On,ii[He]=ii.entries,ii.toJSON=ii.toObject=zr.toObject,ii.inspect=ii.toSource=function(){return this.toString()};var di=li({loadedCore:!1,shown:!0,isMobile:!1,isOnline:!1,isChatting:!1,isOfflineMode:!1,newChat:!0,departmentDefault:null,theme:null,pvhash:null,phash:null,network_down:!1,leave_message:!0,mode:"widget",overrides:[],department:[],product:[],jsVars:[],offlineData:{fetched:!1},onlineData:{fetched:!1},customData:{fields:[]},api_data:null,attr_prefill:[],attr_prefill_admin:[],extension:{},chat_ui:{},chat_ui_state:{confirm_close:0,show_survey:0},processStatus:0,chatData:{},chatLiveData:{lmsop:0,vtm:0,otm:0,msop:0,uid:0,error:"",lmsgid:0,operator:"",messages:[],closed:!1,ott:"",status_sub:0,status:0},chatStatusData:{},usersettings:{soundOn:!1},vid:null,base_url:null,initClose:!1,initLoaded:!1,msgLoaded:!1,proactive:{pending:!1,has:!1,data:{}},lang:"",bot_id:"",trigger_id:"",operator:"",priority:null,ses_ref:null,captcha:{},validationErrors:{}}),pi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:di,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"closedWidget":return!1===e.get("isChatting")&&(e=e.set("processStatus",0).set("isOfflineMode",!1)),e.set("shown",!1);case"loadedCore":return e.set("loadedCore",!0);case"attr_set":return e.setIn(t.attr,t.data);case"profile_pic":return e.set("profile_pic",-1!==t.data.indexOf("http:")||-1!==t.data.indexOf("https:")?t.data:window.lhcChat.base_url+"widgetrestapi/avatar/"+t.data);case"attr_rem":return e.removeIn(t.attr);case"operator":case"leave_message":case"phash":case"pvhash":case"attr_prefill":case"attr_prefill_admin":case"isMobile":case"base_url":case"theme":case"jsVars":case"bot_id":case"trigger_id":case"priority":case"lang":return e.set(t.type,t.data);case"widgetStatus":return 1==t.data&&!0===e.getIn(["proactive","pending"])&&(e=e.setIn(["proactive","pending"],!1)),e.set("shown",t.data);case"PROACTIVE":return e.set("proactive",{pending:!1===e.get("shown")&&!1===t.data.qinv,has:!0,data:t.data});case"HIDE_INVITATION":case"FULL_INVITATION":return e.setIn(["proactive","pending"],!1);case"toggleSound":return e.setIn(["usersettings","soundOn"],t.data);case"endedChat":return e.set("shown",!1).set("processStatus",0).set("isChatting",!1).set("newChat",!0).set("proactive",li({pending:!1,has:!1,data:{}})).set("chatData",li({})).setIn(["onlineData","fetched"],!1).set("chatLiveData",li({lmsop:0,vtm:0,otm:0,msop:0,uid:0,status:0,status_sub:0,uw:!1,ott:"",closed:!1,lmsgid:0,operator:"",messages:[]})).set("chatStatusData",li({})).set("chat_ui_state",li({confirm_close:0,show_survey:0})).set("initClose",!1).set("initLoaded",!1);case"chat_status_changed":return e.setIn(["chatLiveData","ott"],t.data.text);case"onlineStatus":return e.set("isOnline",t.data);case"OFFLINE_FIELDS_UPDATED":return e.set("offlineData",li({fetched:!0,disabled:t.data.disabled,fields_visible:t.data.fields_visible,fields:t.data.fields,department:t.data.department})).set("chat_ui",e.get("chat_ui").merge(li(t.data.chat_ui)));case"department":case"mode":case"product":case"captcha":return e.set(t.type,li(t.data));case"INIT_PRODUCTS":return e.setIn(["onlineData","department","products"],li(t.data.products)).setIn(["onlineData","department","settings","product_required"],t.data.required);case"CHAT_SESSION_REFFERER":return e.set("ses_ref",t.data.ref);case"CHAT_ADD_OVERRIDE":return e.update("overrides",(function(e){return e.push(t.data)}));case"CHAT_REMOVE_OVERRIDE":return e.update("overrides",(function(e){return e.filter((function(e){return e!=t.data}))}));case"ONLINE_SUBMITTED":return!0===t.data.success?(S.a.sendMessageParent("chatStarted",[t.data.chatData,e.get("mode")]),"popup"==e.get("mode")&&(!0===S.a.hasSessionStorage?S.a.setSessionStorage("_chat",JSON.stringify(t.data.chatData)):document.location="#/"+t.data.chatData.id+"/"+t.data.chatData.hash),e.set("processStatus",2).set("isChatting",!0).set("chatData",li(t.data.chatData)).set("validationErrors",li({}))):e.set("validationErrors",li(t.data.errors)).set("processStatus",0).setIn(["chat_ui","auto_start"],!1);case"OFFLINE_SUBMITTED":return!0===t.data.success?(S.a.sendMessageParent("offlineMessage",[]),e.set("processStatus",2).set("validationErrors",li({}))):e.set("validationErrors",li(t.data.errors)).set("processStatus",0);case"INIT_CLOSE":return e.set("initClose",!0);case"CHAT_ALREADY_STARTED":return e.set("processStatus",2).set("isChatting",!0).set("newChat",!1).set("chatData",li(t.data));case"OFFLINE_SUBMITTING":return e.set("processStatus",1);case"CHAT_SET_VID":return e.set("vid",t.data);case"ONLINE_SUBMITTING":return e.set("processStatus",1);case"UI_STATE":return e.setIn(["chat_ui_state",t.data.attr],t.data.val);case"INIT_CHAT_SUBMITTED":return e.setIn(["chatLiveData","operator"],t.data.operator).set("chat_ui",e.get("chat_ui").merge(li(t.data.chat_ui))).setIn(["chatLiveData","status_sub"],t.data.status_sub).setIn(["chatLiveData","status"],t.data.status).set("initLoaded",!0).setIn(["chatLiveData","closed"],t.data.closed&&!0===t.data.closed);case"REFRESH_UI_COMPLETED":return t.data.chat_ui_remove&&t.data.chat_ui_remove.forEach((function(t){e=e.removeIn(t)})),e.set("chat_ui",e.get("chat_ui").merge(li(t.data.chat_ui)));case"FETCH_MESSAGES_SUBMITTED":return t.data.closed_arg&&t.data.closed_arg.survey_id&&(e=e.setIn(["chat_ui","survey_id"],t.data.closed_arg.survey_id)),t.data.disable_survey&&(e=e.removeIn(["chat_ui","survey_id"])),t.data.extension&&(e=e.set("extension",e.get("extension").merge(li(t.data.extension)))),""!==t.data.messages&&(e=e.updateIn(["chatLiveData","messages"],(function(n){return n.push({lmsop:e.getIn(["chatLiveData","msop"]),msop:t.data.msop,msg:t.data.messages})})).setIn(["chatLiveData","uw"],t.data.uw&&!0===t.data.uw).setIn(["chatLiveData","lmsgid"],t.data.message_id).setIn(["chatLiveData","msop"],t.data.lmsop||t.data.msop)),t.data.vtm&&(e=e.updateIn(["chatLiveData","vtm"],(function(e){return e+t.data.vtm}))),t.data.otm&&(e=e.setIn(["chatLiveData","otm"],t.data.otm)),e.get("overrides").contains("typing")||(e=e.setIn(["chatLiveData","ott"],t.data.ott)),e.setIn(["chatLiveData","status_sub"],t.data.status_sub).setIn(["chatLiveData","status"],t.data.status).set("msgLoaded",!0).set("network_down",!1).setIn(["chatLiveData","closed"],t.data.closed&&!0===t.data.closed);case"CHECK_CHAT_STATUS_FINISHED":return t.data.extension&&(e=e.set("extension",e.get("extension").merge(li(t.data.extension)))),e.set("chatStatusData",li(t.data)).setIn(["chatLiveData","closed"],t.data.closed&&!0===t.data.closed||e.getIn(["chatLiveData","closed"])).setIn(["chatLiveData","status"],t.data.status).setIn(["chatLiveData","uid"],t.data.uid).setIn(["chatLiveData","ru"],t.data.ru?t.data.ru:null).set("network_down",!1).setIn(["chatLiveData","status_sub"],t.data.status_sub);case"ONLINE_FIELDS_UPDATED":return e.set("onlineData",li({dep_forms:t.data.dep_forms,disabled:t.data.disabled,fetched:!0,paid:t.data.paid,fields_visible:t.data.fields_visible,fields:t.data.fields,department:t.data.department})).set("chat_ui",e.get("chat_ui").merge(li(t.data.chat_ui)));case"CHAT_UI_UPDATE":return e.set("chat_ui",e.get("chat_ui").merge(li(t.data)));case"CUSTOM_FIELDS":return e.set("customData",li({fields:t.data}));case"dep_default":return e.set("departmentDefault",t.data);case"survey":return e.setIn(["chat_ui","survey_id"],t.data);case"CUSTOM_FIELDS_ITEM":return e.setIn(["customData","fields",t.data.id,"value"],t.data.value);case"ADD_MESSAGES_SUBMITTED":return e.setIn(["chatLiveData","error"],t.data.r).setIn(["chatLiveData","lmsg"],t.data.r?t.data.msg:"");case"NO_CONNECTION":return e.set("network_down",t.data);default:return e}},hi=Object(me.c)({chatwidget:pi});function fi(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var gi=fi();gi.withExtraArgument=fi;var mi=gi,_i=n(54);function vi(e){return(vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){yi(e,t,n[t])}))}return e}function wi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ki(e,t,n){return t&&Ei(e.prototype,t),n&&Ei(e,n),e}function Si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xi(e,t){return!t||"object"!==vi(t)&&"function"!=typeof t?Si(e):t}function Ti(e){return(Ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ci(e,t){return(Ci=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ii(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ci(e,t)}function Oi(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Pi={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,Oi(t))}},Ai=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wi(this,e),this.init(t,n)}return ki(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Pi,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,bi({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Mi=function(){function e(){wi(this,e),this.observers={}}return ki(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function Li(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function Ni(e){return null==e?"":""+e}function Ri(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function ji(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=e[o]}return i()?{}:{obj:e,k:r(a.shift())}}function Bi(e,t,n){var r=ji(e,t,Object);r.obj[r.k]=n}function Fi(e,t){var n=ji(e,t),r=n.obj,i=n.k;if(r)return r[i]}function Ui(e,t,n){var r=Fi(e,n);return void 0!==r?r:Fi(t,n)}function zi(e,t,n){for(var r in t)r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):zi(e[r],t[r],n):e[r]=t[r];return e}function Hi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var qi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Wi(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return qi[e]})):e}var Vi=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return wi(this,t),n=xi(this,Ti(t).call(this)),Mi.call(Si(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return Ii(t,e),ki(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];return n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split(".")),Fi(this.data,a)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(o=e.split("."))[1]),this.addNamespaces(t),Bi(this.data,o,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(o=e.split("."))[1]),this.addNamespaces(t);var s=Fi(this.data,o)||{};r?zi(s,n,i):s=bi({},s,n),Bi(this.data,o,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?bi({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(Mi),Ki={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))})),t}},$i={},Gi=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return wi(this,t),n=xi(this,Ti(t).call(this)),Mi.call(Si(n)),Ri(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Si(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=Ai.create("translator"),n}return Ii(t,e),ki(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t){var n=this;if("object"!==vi(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],t),a=i.key,o=i.namespaces,s=o[o.length-1],u=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(l){var c=t.nsSeparator||this.options.nsSeparator;return s+c+a}return a}var d=this.resolve(e,t),p=d&&d.res,h=d&&d.usedKey||a,f=d&&d.exactUsedKey||a,g=Object.prototype.toString.apply(p),m=["[object Number]","[object Function]","[object RegExp]"],_=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y="string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p;if(v&&p&&y&&m.indexOf(g)<0&&("string"!=typeof _||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,p,t):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(r){var b="[object Array]"===g,w=b?[]:{},E=b?f:h;for(var k in p)if(Object.prototype.hasOwnProperty.call(p,k)){var S="".concat(E).concat(r).concat(k);w[k]=this.translate(S,bi({},t,{joinArrays:!1,ns:o})),w[k]===S&&(w[k]=p[k])}p=w}}else if(v&&"string"==typeof _&&"[object Array]"===g)(p=p.join(_))&&(p=this.extendTranslation(p,e,t));else{var x=!1,T=!1;if(!this.isValidLookup(p)&&void 0!==t.defaultValue){if(x=!0,void 0!==t.count){var C=this.pluralResolver.getSuffix(u,t.count);p=t["defaultValue".concat(C)]}p||(p=t.defaultValue)}this.isValidLookup(p)||(T=!0,p=a);var I=t.defaultValue&&t.defaultValue!==p&&this.options.updateMissing;if(T||x||I){this.logger.log(I?"updateKey":"missingKey",u,s,a,I?t.defaultValue:p);var O=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var P=0;P<D.length;P++)O.push(D[P]);else"all"===this.options.saveMissingTo?O=this.languageUtils.toResolveHierarchy(t.lng||this.language):O.push(t.lng||this.language);var A=function(e,r){n.options.missingKeyHandler?n.options.missingKeyHandler(e,s,r,I?t.defaultValue:p,I,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,s,r,I?t.defaultValue:p,I,t),n.emit("missingKey",e,s,r,p)};if(this.options.saveMissing){var M=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&M?O.forEach((function(e){n.pluralResolver.getPluralFormsOfKey(e,a).forEach((function(t){return A([e],t)}))})):A(O,a)}}p=this.extendTranslation(p,e,t,d),T&&p===a&&this.options.appendNamespaceToMissingKey&&(p="".concat(s,":").concat(a)),T&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:"extendTranslation",value:function(e,t,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(bi({},n,{interpolation:bi({},this.options.interpolation,n.interpolation)}));var a=n.replace&&"string"!=typeof n.replace?n.replace:n;this.options.interpolation.defaultVariables&&(a=bi({},this.options.interpolation.defaultVariables,a)),e=this.interpolator.interpolate(e,a,n.lng||this.language,n),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){return i.translate.apply(i,arguments)}),n)),n.interpolation&&this.interpolator.reset()}var o=n.postProcess||this.options.postProcess,s="string"==typeof o?[o]:o;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Ki.handle(s,e,t,this.options&&this.options.postProcessPassResolved?bi({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,a,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var u=o.extractFromKey(e,s),l=u.key;n=l;var c=u.namespaces;o.options.fallbackNS&&(c=c.concat(o.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,h=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);c.forEach((function(e){o.isValidLookup(t)||(a=e,!$i["".concat(h[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&($i["".concat(h[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(n,'" for namespace "').concat(a,'" for languages "').concat(h.join(", "),"\" won't get resolved as namespace was not yet loaded"),"This means something IS WRONG in your application 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!!!")),h.forEach((function(n){if(!o.isValidLookup(t)){i=n;var a,u,c=l,h=[c];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(h,l,n,e,s);else d&&(a=o.pluralResolver.getSuffix(n,s.count)),d&&p&&h.push(c+a),p&&h.push(c+="".concat(o.options.contextSeparator).concat(s.context)),d&&h.push(c+=a);for(;u=h.pop();)o.isValidLookup(t)||(r=u,t=o.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}]),t}(Mi);function Qi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Xi=function(){function e(t){wi(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=Ai.create("languageUtils")}return ki(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Qi(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Qi(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Qi(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isWhitelisted(e)?i.push(e):n.logger.warn("rejecting non-whitelisted language code: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))})),i}}]),e}(),Yi=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","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","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","id","ja","jbo","ka","kk","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"],nr:[1,2,20,21],fc:22}],Ji={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||e>10)&&e%10==0?2:3)}};function Zi(){var e={};return Yi.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Ji[t.fc]}}))})),e}var ea=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wi(this,e),this.languageUtils=t,this.options=n,this.logger=Ai.create("pluralResolver"),this.rules=Zi()}return ki(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,r=[],i=this.getRule(e);return i?(i.numbers.forEach((function(i){var a=n.getSuffix(e,i);r.push("".concat(t).concat(a))})),r):r}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),a=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),ta=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};wi(this,e),this.logger=Ai.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ki(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Wi,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Hi(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Hi(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Hi(t.nestingPrefix):t.nestingPrefixEscaped||Hi("$t("),this.nestingSuffix=t.nestingSuffix?Hi(t.nestingSuffix):t.nestingSuffixEscaped||Hi(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,a,o,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var i=Ui(t,u,e);return s.alwaysFormat?s.format(i,void 0,n):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(Ui(t,u,o),l,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler;for(o=0;i=this.regexpUnescape.exec(e);){if(void 0===(a=c(i[1].trim())))if("function"==typeof d){var p=d(e,i,r);a="string"==typeof p?p:""}else this.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a="";else"string"==typeof a||this.useRawValueToEscape||(a=Ni(a));if(e=e.replace(i[0],l(a)),this.regexpUnescape.lastIndex=0,++o>=this.maxReplaces)break}for(o=0;i=this.regexp.exec(e);){if(void 0===(a=c(i[1].trim())))if("function"==typeof d){var h=d(e,i,r);a="string"==typeof h?h:""}else this.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a="";else"string"==typeof a||this.useRawValueToEscape||(a=Ni(a));if(a=this.escapeValue?l(this.escape(a)):l(a),e=e.replace(i[0],a),this.regexp.lastIndex=0,++o>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=bi({},i);function o(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),t&&(a=bi({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){if((r=t(o.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Ni(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var na=function(e){function t(e,n,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return wi(this,t),i=xi(this,Ti(t).call(this)),Mi.call(Si(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=Ai.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return Ii(t,e),ki(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,a=[],o=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?o.indexOf(s)<0&&o.push(s):(i.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),a.indexOf(s)<0&&a.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(a.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:a,pending:o,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=Di(e.split("|"),2),i=r[0],a=r[1];t&&this.emit("failedLoading",i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(n){var r,s,u,l,c,d;r=n.loaded,s=a,l=ji(r,[i],Object),c=l.obj,d=l.k,c[d]=c[d]||[],u&&(c[d]=c[d].concat(s)),u||c[d].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){o[e]||(o[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*a,o)}),a):o(s,u)})):o(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=Di(r,2),a=i[0],o=i[1];this.read(a,o,"read",void 0,void 0,(function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(a," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(a),i),t.loaded(e,r,i)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" for namespace "').concat(t,'" as the namespace was not yet loaded'),"This means something IS WRONG in your application 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!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,bi({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(Mi);function ra(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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(e){var t={};if("object"===vi(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===vi(e[2])||"object"===vi(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3}}}function ia(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function aa(){}var oa=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(wi(this,t),e=xi(this,Ti(t).call(this)),Mi.call(Si(e)),e.options=ia(n),e.services={},e.logger=Ai,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),xi(e,Si(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Ii(t,e),ki(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),this.options=bi({},ra(),this.options,ia(t)),this.format=this.options.interpolation.format,n||(n=aa),!this.options.isClone){this.modules.logger?Ai.init(r(this.modules.logger),this.options):Ai.init(null,this.options);var i=new Xi(this.options);this.store=new Vi(this.options.resources,this.options);var a=this.services;a.logger=Ai,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new ea(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new ta(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new na(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Gi(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}this.modules.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var o=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"];o.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=Li(),u=function(){e.changeLanguage(e.options.lng,(function(t,r){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)}))};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aa,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var a=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(i)o(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return o(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(a,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=Li();return e||(e=this.languages),t||(t=this.options.ns),n||(n=aa),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Ki.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=Li();this.emit("languageChanging",e);var i=function(e){e&&(n.language||(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e)),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources(e,(function(i){!function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(i,e)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var i;if("object"!==vi(r)){for(var a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(o))}else i=bi({},r);return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,n.t(t,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this;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 n=this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!!this.hasResourceBundle(n,e)||(!this.services.backendConnector.backend||!(!a(n,e)||r&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=Li();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Li();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)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","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aa,i=bi({},this.options,n,{isClone:!0}),a=new t(i),o=["store","services","language"];return o.forEach((function(t){a[t]=e[t]})),a.translator=new Gi(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a}}]),t}(Mi)),sa=n(20),ua=n(55);function la(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var da=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n||"")},request:ua.a,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},pa=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};la(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}var t,n,r;return t=e,(n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=Object(sa.a)(n,this.options||{},da()),this.allOptions=r,this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){var r=this.options.loadPath;"function"==typeof this.options.loadPath&&(r=this.options.loadPath(e,t));var i=this.services.interpolator.interpolate(r,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(i,n,e,t)}},{key:"read",value:function(e,t,n){var r=this.options.loadPath;"function"==typeof this.options.loadPath&&(r=this.options.loadPath([e],[t]));var i=this.services.interpolator.interpolate(r,{lng:e,ns:t});this.loadUrl(i,n,e,t)}},{key:"loadUrl",value:function(e,t,n,r){var i=this;this.options.request(this.options,e,void 0,(function(a,o){if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+e,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+e,!1);if(!o&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e,!0);if(a)return t(a,!1);var s,u;try{s="string"==typeof o.data?i.options.parse(o.data,n,r):o.data}catch(t){u="failed parsing "+e+" to json"}if(u)return t(u,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r){var i=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r);e.forEach((function(e){var n=i.services.interpolator.interpolate(i.options.addPath,{lng:e,ns:t});i.options.request(i.options,n,a,(function(e,t){}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,a=n.language;if(!a||"cimode"!==a.toLowerCase()){var o=[],s=function(e){r.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};s(a),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),o.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,a){r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&a&&i.log("loaded namespace ".concat(e," for language ").concat(t),a),n.loaded("".concat(t,"|").concat(e),r,a)}))}))}))}}}])&&ca(t.prototype,n),r&&ca(t,r),e}();pa.type="backend";var ha=pa;oa.use(ha).use(x.a);var fa=oa,ga=Object(me.a)(_i.a,mi),ma=Object(me.d)(hi,ga);!function(e,t){var r={},i=!1;function a(e,t,n){if(null===document.getElementById("ext-"+e)){var r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("src",t),i.setAttribute("id","ext-"+e),r.appendChild(i),i.onreadystatechange=i.onload=function(){S.a.emitEvent(e+".init",n)}}else S.a.emitEvent(e+".init",n)}function o(i,o){if(Array.isArray(o)&&(o.push(e),o.push(t)),void 0!==r[i])a(i,r[i],o);else if("modal_ext"==i){var s=new Date;a(i,n.p.replace("/widgetv2/","")+"/modal.ext.min.js?"+s.getFullYear()+s.getMonth()+s.getDate(),o)}}function s(r){if("string"==typeof r.data){var a=r.data.split(":")[0];if(void 0!==r.origin){var s=r.origin.replace("http://","").replace("https://","").replace(/:(\d+)$/,"");if(s!==document.domain&&(void 0===window.lhcChat.domain_lhc||window.lhcChat.domain_lhc!==s)&&"lhc_chat_closed_explicit"!=a&&"lhc_survey_completed"!=a)return}if("lhc_chat_closed_explicit"==a){var u=t();u.chatwidget.hasIn(["chatData","hash"])&&u.chatwidget.hasIn(["chatData","id"])?e(Object(k.c)({vid:u.chatwidget.get("vid"),chat:{id:u.chatwidget.getIn(["chatData","id"]),hash:u.chatwidget.getIn(["chatData","hash"])}})):"popup"==u.chatwidget.get("mode")?(S.a.sendMessageParent("endChat",[{sender:"endButton"}]),window.close()):S.a.sendMessageParent("closeWidget",[{sender:"closeButton"}])}else if("lhc_survey_completed"==a){var l=t();e(Object(k.c)({vid:l.chatwidget.get("vid"),chat:{id:l.chatwidget.getIn(["chatData","id"]),hash:l.chatwidget.getIn(["chatData","hash"])}},"survey"))}else if("lhc_load_ext"==a){var c=r.data.replace("lhc_load_ext:","").split("::");o(c[0],JSON.parse(c[1]))}else if("lhc_event"==a){var d=r.data.replace("lhc_event:","").split("::"),p=JSON.parse(d[1]);Array.isArray(p)&&(p.push(e),p.push(t)),S.a.emitEvent(d[0],p)}else if("lhc_sizing_chat"==a)S.a.sendMessageParent("widgetHeight",[{height:parseInt(r.data.split(":")[1])+50}]);else if("lhc_init"==a){if(!0===i)return;i=!0;var h=JSON.parse(r.data.replace("lhc_init:",""));window.lhcChat={},window.lhcChat.base_url=h.base_url+(h.lang&&""!=h.lang?h.lang.replace("/","")+"/":""),window.lhcChat.staticJS=h.staticJS,window.lhcChat.mode=h.mode,window.lhcChat.is_focused=!0,window.lhcChat.domain_lhc=h.domain_lhc||null,n.p=window.lhcChat.staticJS.chunk_js+"/";var f=new Date;fa.init({backend:{loadPath:h.base_url+"{{lng}}/widgetrestapi/lang/{{ns}}?v=4"+f.getFullYear()+f.getMonth()+f.getDate()},lng:h.lang&&""!=h.lang?h.lang.replace("/",""):"eng",fallbackLng:"eng",debug:!1,interpolation:{escapeValue:!1}},(function(){e({type:"loadedCore"})})),h.base_url=window.lhcChat.base_url,Object.keys(h).forEach((function(t){var n=h[t];"static_chat"===t?(n.id&&n.hash&&e({type:"CHAT_ALREADY_STARTED",data:{id:n.id,hash:n.hash}}),n.vid&&e({type:"CHAT_SET_VID",data:n.vid})):"ses_ref"===t?e({type:"CHAT_SESSION_REFFERER",data:{ref:n}}):"proactive"===t?setTimeout((function(){e(Object(k.j)(n))}),!0===i?0:700):e({type:t,data:n})}));var g=function(e){var t="focus"===e.type;1==t&&S.a.sendMessageParent("unread_message_title",[{status:!0}]),window.lhcChat.is_focused=t};if(window.addEventListener("focus",g),window.addEventListener("blur",g),window.addEventListener("pageshow",g),window.addEventListener("pagehide",g),"popup"==h.mode){S.a.sendMessageParent("endChatCookies");var m=S.a.getSessionStorage("_chat");null===m||h.static_chat.id?h.static_chat.id&&S.a.setSessionStorage("_chat",JSON.stringify(h.static_chat)):e({type:"CHAT_ALREADY_STARTED",data:JSON.parse(m)})}}else if("lhc_continue_chat"==a){var _=t();e(Object(k.g)({id:_.chatwidget.getIn(["chatData","id"]),hash:_.chatwidget.getIn(["chatData","hash"]),theme:_.chatwidget.get("theme")}))}}}[{id:"closedWidget",cb:function(t){e({type:"closedWidget",data:t})}},{id:"endedChat",cb:function(t){e({type:"endedChat",data:t}),"popup"==window.lhcChat.mode&&window.close()}},{id:"endCookies",cb:function(e){S.a.sendMessageParent("endChatCookies",[{force:!0}]),"popup"==window.lhcChat.mode&&S.a.removeSessionStorage("_chat")}},{id:"reopenNotification",cb:function(t){e({type:"CHAT_ALREADY_STARTED",data:{id:t.id,hash:t.hash}})}},{id:"subcribedEvent",cb:function(t){e(Object(k.n)(t.payload))}},{id:"dispatch_direct",cb:function(t){e({type:t.type,data:t.data})}},{id:"attr_set",cb:function(t){e({type:"attr_set",attr:t.attr,data:t.data})}},{id:"attr_rem",cb:function(t){e({type:"attr_rem",attr:t.attr})}},{id:"dispatch_event",cb:function(n){var r=t(),i={};n.attr&&Object.keys(n.attr).forEach((function(e){i[e]=r.chatwidget.getIn(n.attr[e])})),n.attr_params&&Object.keys(n.attr_params).forEach((function(e){i[e]=n.attr_params[e]}));var a={fetchMessages:k.d,addMessage:k.a};e(a[n.func](i))}},{id:"onlineStatus",cb:function(t){e({type:"onlineStatus",data:t})}},{id:"toggleSound",cb:function(t){e({type:"toggleSound",data:t})}},{id:"widgetStatus",cb:function(t){e({type:"widgetStatus",data:t})}},{id:"jsVars",cb:function(t){e({type:"jsVars",data:t})}},{id:"ext_modules",cb:function(e){r=e}},{id:"extensionExecute",cb:function(e,t){o(e,t)}},{id:"chat_check_messages",cb:function(){var n=t();n.chatwidget.hasIn(["chatData","id"])&&e(Object(k.d)({chat_id:n.chatwidget.getIn(["chatData","id"]),hash:n.chatwidget.getIn(["chatData","hash"]),lmgsid:n.chatwidget.getIn(["chatLiveData","lmsgid"]),theme:n.chatwidget.get("theme")}))}},{id:"chat_check_status",cb:function(){var n=t();n.chatwidget.hasIn(["chatData","id"])&&e(Object(k.b)({chat_id:n.chatwidget.getIn(["chatData","id"]),hash:n.chatwidget.getIn(["chatData","hash"]),mode:n.chatwidget.get("mode"),theme:n.chatwidget.get("theme")}))}},{id:"proactive",cb:function(t){setTimeout((function(){e(Object(k.j)(t))}),!0===i?0:700)}},{id:"focus_changed",cb:function(e){var t=e.status||document.hasFocus();t!=window.lhcChat.is_focused&&(window.lhcChat.is_focused=t,1==t&&S.a.sendMessageParent("unread_message_title",[{status:!0}]))}}].forEach((function(e){S.a.eventEmitter.addListener(e.id,e.cb)})),window.addEventListener?(window.addEventListener("message",s,!1),window.addEventListener("beforeunload",(function(){e(Object(k.l)())}),!1)):window.attachEvent?(window.attachEvent("onmessage",s),window.attachEvent("beforeunload",(function(){e(Object(k.l)())}))):document.attachEvent&&(document.attachEvent("onmessage",s),document.attachEvent("beforeunload",(function(){e(Object(k.l)())}))),window.addEventListener("offline",(function(){return e({type:"NO_CONNECTION",data:!0})})),window.opener||window.initializeLHC?window.initializeLHC&&(s({data:window.initializeLHC}),S.a.sendMessageParent("ready_popup",!!window.opener)):S.a.sendMessageParent("ready",!!window.opener)}(ma.dispatch,ma.getState);var _a=ma,va=document.getElementById("root");s.a.render(a.a.createElement(E.a,{store:_a},a.a.createElement(ge,va.dataset)),va)}]).default}));
  //# sourceMappingURL=react.app.js.map