UNPKG

@smartrep/web-widget

Version:

Client side library to load the web widget

2 lines 1.09 MB
/*! For license information please see index.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WebChat=t():e.WebChat=t()}(self,(()=>(()=>{var e,t,n,r,o={162:(e,t,n)=>{"use strict";var r=n(3288);e.exports=n(4361)(r),"_sockjs_onload"in n.g&&setTimeout(n.g._sockjs_onload,1)},218:(e,t,n)=>{"use strict";var r=n(6698),o=n(7393),i=n(7785);function a(e,t,n,r){i.call(this,e,t,function(e){return function(t,n,r){var i={};"string"==typeof n&&(i.headers={"Content-type":"text/plain"});var a=o.addPath(t,"/xhr_send"),s=new e("POST",a,n,i);return s.once("finish",(function(e){if(s=null,200!==e&&204!==e)return r(new Error("http status "+e));r()})),function(){s.close(),s=null;var e=new Error("Aborted");e.code=1e3,r(e)}}}(r),n,r)}r(a,i),e.exports=a},321:e=>{"use strict";var t,n=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g;e.exports={quote:function(e){var r=JSON.stringify(e);return n.lastIndex=0,n.test(r)?(t||(t=function(e){var t,n={},r=[];for(t=0;t<65536;t++)r.push(String.fromCharCode(t));return e.lastIndex=0,r.join("").replace(e,(function(e){return n[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""})),e.lastIndex=0,n}(n)),r.replace(n,(function(e){return t[e]}))):r}}},558:(e,t,n)=>{"use strict";var r=n(4642),o=n(7861),i=n(7452),a=n(7393),s=n(6698),l=n(2795).b;function c(e){var t=this;l.call(this),r.polluteGlobalNamespace(),this.id="a"+o.string(6);var i=a.addQuery(e,"c="+encodeURIComponent(r.WPrefix+"."+this.id));n.g[r.WPrefix][this.id]=this._callback.bind(this),this._createScript(i),this.timeoutId=setTimeout((function(){t._abort(new Error("JSONP script loaded abnormally (timeout)"))}),c.timeout)}s(c,l),c.prototype.abort=function(){if(n.g[r.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3,this._abort(e)}},c.timeout=35e3,c.scriptErrorTimeout=1e3,c.prototype._callback=function(e){this._cleanup(),this.aborting||(e&&this.emit("message",e),this.emit("close",null,"network"),this.removeAllListeners())},c.prototype._abort=function(e){this._cleanup(),this.aborting=!0,this.emit("close",e.code,e.message),this.removeAllListeners()},c.prototype._cleanup=function(){if(clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var e=this.script;e.parentNode.removeChild(e),e.onreadystatechange=e.onerror=e.onload=e.onclick=null,this.script=null}delete n.g[r.WPrefix][this.id]},c.prototype._scriptError=function(){var e=this;this.errorTimer||(this.errorTimer=setTimeout((function(){e.loadedOkay||e._abort(new Error("JSONP script loaded abnormally (onerror)"))}),c.scriptErrorTimeout))},c.prototype._createScript=function(e){var t,r=this,a=this.script=n.g.document.createElement("script");if(a.id="a"+o.string(8),a.src=e,a.type="text/javascript",a.charset="UTF-8",a.onerror=this._scriptError.bind(this),a.onload=function(){r._abort(new Error("JSONP script loaded abnormally (onload)"))},a.onreadystatechange=function(){if(a.readyState,/loaded|closed/.test(a.readyState)){if(a&&a.htmlFor&&a.onclick){r.loadedOkay=!0;try{a.onclick()}catch(e){}}a&&r._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===a.async&&n.g.document.attachEvent)if(i.isOpera())(t=this.script2=n.g.document.createElement("script")).text="try{var a = document.getElementById('"+a.id+"'); if(a)a.onerror();}catch(x){};",a.async=t.async=!1;else{try{a.htmlFor=a.id,a.event="onclick"}catch(e){}a.async=!0}void 0!==a.async&&(a.async=!0);var s=n.g.document.getElementsByTagName("head")[0];s.insertBefore(a,s.firstChild),t&&s.insertBefore(t,s.firstChild)},e.exports=c},623:(e,t,n)=>{"use strict";var r=n(7393),o=n(4892),i=n(2014),a=n(4839),s=n(4642),l=n(8735);e.exports=function(e,t){var n,c={};t.forEach((function(e){e.facadeTransport&&(c[e.facadeTransport.transportName]=e.facadeTransport)})),c[a.transportName]=a,e.bootstrap_iframe=function(){var t;s.currentWindowId=l.hash.slice(1),o.attachEvent("message",(function(o){if(o.source===parent&&(void 0===n&&(n=o.origin),o.origin===n)){var a;try{a=JSON.parse(o.data)}catch(e){return void o.data}if(a.windowId===s.currentWindowId)switch(a.type){case"s":var u;try{u=JSON.parse(a.data)}catch(e){a.data;break}var d=u[0],f=u[1],p=u[2],h=u[3];if(d!==e.version)throw new Error('Incompatible SockJS! Main site uses: "'+d+'", the iframe: "'+e.version+'".');if(!r.isOriginEqual(p,l.href)||!r.isOriginEqual(h,l.href))throw new Error("Can't connect to different domain from within an iframe. ("+l.href+", "+p+", "+h+")");t=new i(new c[f](p,h));break;case"m":t._send(a.data);break;case"c":t&&t._close(),t=null}}})),s.postMessage("s")}}},731:(e,t,n)=>{"use strict";var r=n(6698),o=n(218),i=n(6298),a=n(1834),s=n(6960),l=n(7452);function c(e){if(!s.enabled&&!a.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr_streaming",i,a)}r(c,o),c.enabled=function(e){return!e.nullOrigin&&!l.isOpera()&&a.enabled},c.transportName="xhr-streaming",c.roundTrips=2,c.needBody=!!n.g.document,e.exports=c},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},966:(e,t,n)=>{"use strict";n.d(t,{Mx:()=>d,Ob:()=>w,SY:()=>v,TK:()=>p,Xr:()=>s,aN:()=>l,kt:()=>b,nX:()=>c,nx:()=>y,pO:()=>f,z0:()=>u});var r=n(5556),o=n.n(r),i=n(2209),a=n.n(i),s={MOBILE:"mobile",TABLET:"tablet",DESKTOP:"desktop"},l={el:{header:{initialMenuButton:{title:"Reset"},downloadTranscriptButton:{title:"Download transcript"},fullScreenButton:{on:{title:"Exit full screen"},off:{title:"Enter full screen"}},closeButton:{title:"Close"},satisfactionButton:{title:"Αξιολόγηση"}}},en:{header:{initialMenuButton:{title:"Reset"},downloadTranscriptButton:{title:"Download transcript"},fullScreenButton:{on:{title:"Exit full screen"},off:{title:"Enter full screen"}},closeButton:{title:"Close"},satisfactionButton:{title:"Satisfaction"}}}},c={REQUEST:"/geolocation",SUCCESS:"/geolocation",ERROR:"/geolocation_error"},u="chat_session",d={CLIENT:"client",RESPONSE:"response"},f={HIDE:"hide",DISABLE:"disable"},p={TEXT:"text",CAROUSEL:"carousel",DATEPICKER:"datePicker",VIDREPLY:{VIDEO:"vidreply"},IMGREPLY:{IMAGE:"imgreply"},BUTTONS:"buttons",SELECT:"select",CUSTOM_COMPONENT:"component",TOOLTIP:"tooltip",GOOGLE_MAPS:"gmaps"},h=o().shape({title:o().string,url:o().string,payload:o().string,type:o().string,ltarget:o().string}),m=o().oneOf([d.CLIENT,d.RESPONSE]),g=o().shape({title:o().string}),y=o().shape({initialMenuButton:g,downloadTranscriptButton:g,fullScreenButton:g,closeButton:g}),v=o().shape({header:y}),b="mrbot_next_message",w={MESSAGE:a().contains({type:o().oneOf([p.TEXT,p.BUTTONS,p.CAROUSEL,p.IMGREPLY.IMAGE,p.VIDREPLY.VIDEO]),id:o().number,text:o().string,sender:m}),CAROUSEL:a().contains({id:o().number,elements:a().listOf(a().mapContains({title:o().string,subtitle:o().string,imageUrl:o().string,buttons:a().listOf(h),defaultActions:h})),sender:m}),DATEPICKER:a().contains({id:o().number,selectedDate:o().number,selectedTime:o().string,disabled:o().bool,locale:o().string,format:o().string,disablePast:o().bool,disableFuture:o().bool,withTime:o().bool,sender:m,machedDates:o().arrayOf(o().instanceOf(Date)),matchedStyle:o().string,matchedAttr:o().oneOf(["disabled","hidden"])}),VIDREPLY:a().contains({type:o().oneOf([p.TEXT,p.VIDREPLY.VIDEO]),id:o().number,title:o().string,src:o().string,sender:m}),IMGREPLY:a().contains({type:o().oneOf([p.TEXT,p.IMGREPLY.IMAGE]),id:o().number,title:o().string,src:o().string,sender:m}),BUTTONS:a().contains({type:o().oneOf([p.BUTTONS]),id:o().number,text:o().string,hint:o().string,quick_replies:a().listOf(h),buttons:a().listOf(h),sender:m,chooseReply:o().func,getChosenReply:o().func,toggleInputDisabled:o().func,inputState:o().bool,chosenReply:o().string}),SELECT:a().contains({type:o().oneOf([p.SELECT]),config:a().shape({type:o().oneOf(["single","multi"])}),options:a().listOf(h),sender:m})}},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1030:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Inter:400,500,700&display=swap);"]),a.push([e.id,".rw-conversation-container .rw-image-details{object-fit:scale-down;max-width:100%;margin-top:10px}.rw-conversation-container .rw-image-frame{object-position:0 0;object-fit:cover;width:100%;height:100%;border-radius:15px}",""]);const s=a},1111:(e,t,n)=>{"use strict";var r=n(2795).b,o=n(6698),i=n(3285);function a(e,t){r.call(this);var n=this,o=+new Date;this.xo=new t("GET",e),this.xo.once("finish",(function(e,t){var r,a;if(200===e){if(a=+new Date-o,t)try{r=JSON.parse(t)}catch(e){}i.isObject(r)||(r={})}n.emit("finish",r,a),n.removeAllListeners()}))}o(a,r),a.prototype.close=function(){this.removeAllListeners(),this.xo.close()},e.exports=a},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(9788))},1160:(e,t,n)=>{"use strict";var r=n(2063),o=n(3992),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(i,"")}var f=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function h(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(e=e||r);if("blob:"===e.protocol)o=new y(unescape(e.pathname),{});else if("string"===i)for(t in o=new y(e,{}),p)delete o[t];else if("object"===i){for(t in e)t in p||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=s.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=d(e)).replace(a,""),t=t||{};var n,r=c.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],s=!!r[3],l=0;return i?s?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):s?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===o?l>=2&&(n=n.slice(2)):m(o)?n=r[4]:o?i&&(n=n.slice(2)):l>=2&&m(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||m(o),slashesCount:l,rest:n}}function y(e,t,n){if(e=(e=d(e)).replace(a,""),!(this instanceof y))return new y(e,t,n);var i,s,l,c,p,v,b=f.slice(),w=typeof t,E=this,T=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),i=!(s=g(e||"",t=h(t))).protocol&&!s.slashes,E.slashes=s.slashes||i&&t.slashes,E.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||u.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(E.protocol)))&&(b[3]=[/(.*)/,"pathname"]);T<b.length;T++)"function"!=typeof(c=b[T])?(l=c[0],v=c[1],l!=l?E[v]=e:"string"==typeof l?~(p="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof c[2]?(E[v]=e.slice(0,p),e=e.slice(p+c[2])):(E[v]=e.slice(p),e=e.slice(0,p))):(p=l.exec(e))&&(E[v]=p[1],e=e.slice(0,p.index)),E[v]=E[v]||i&&c[3]&&t[v]||"",c[4]&&(E[v]=E[v].toLowerCase())):e=c(e,E);n&&(E.query=n(E.query)),i&&t.slashes&&"/"!==E.pathname.charAt(0)&&(""!==E.pathname||""!==t.pathname)&&(E.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(E.pathname,t.pathname)),"/"!==E.pathname.charAt(0)&&m(E.protocol)&&(E.pathname="/"+E.pathname),r(E.port,E.protocol)||(E.host=E.hostname,E.port=""),E.username=E.password="",E.auth&&(~(p=E.auth.indexOf(":"))?(E.username=E.auth.slice(0,p),E.username=encodeURIComponent(decodeURIComponent(E.username)),E.password=E.auth.slice(p+1),E.password=encodeURIComponent(decodeURIComponent(E.password))):E.username=encodeURIComponent(decodeURIComponent(E.auth)),E.auth=E.password?E.username+":"+E.password:E.username),E.origin="file:"!==E.protocol&&m(E.protocol)&&E.host?E.protocol+"//"+E.host:"null",E.href=E.toString()}y.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),i[e]=t;break;case"port":i[e]=t,r(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,l.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(i.username=t.slice(0,s),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(s+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<f.length;c++){var u=f[c];u[4]&&(i[u[1]]=i[u[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&m(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,i=n.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var a=i+(n.protocol&&n.slashes||m(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&m(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(a+=n.hash),a}},y.extractProtocol=g,y.location=h,y.trimLeft=d,y.qs=o,e.exports=y},1225:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>u,Ng:()=>W});var r=n(6540),o=r.createContext(null),i=function(e){e()},a=function(){return i},s={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=s;function o(){l.onStateChange&&l.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=a(),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,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var l={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=s)},getListeners:function(){return r}};return l}var c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const u=function(e){var t=e.store,n=e.context,i=e.children,a=(0,r.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),s=(0,r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var u=n||o;return r.createElement(u.Provider,{value:a},i)};var d=n(8168),f=n(8587),p=n(4146),h=n.n(p),m=n(4363),g=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],y=["reactReduxForwardedRef"],v=[],b=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function T(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function _(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=f,n.trySubscribe(),f(),function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var S=function(){return[null,0]};function k(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=n.methodName,c=void 0===s?"connectAdvanced":s,u=n.renderCountProp,p=void 0===u?void 0:u,k=n.shouldHandleStateChanges,A=void 0===k||k,C=n.storeKey,O=void 0===C?"store":C,I=(n.withRef,n.forwardRef),x=void 0!==I&&I,N=n.context,D=void 0===N?o:N,M=(0,f.A)(n,g),L=D;return function(t){var n=t.displayName||t.name||"Component",o=a(n),i=(0,d.A)({},M,{getDisplayName:a,methodName:c,renderCountProp:p,shouldHandleStateChanges:A,storeKey:O,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=M.pure,u=s?r.useMemo:function(e){return e()};function g(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,f.A)(n,y);return[n.context,e,t]}),[n]),a=o[0],s=o[1],c=o[2],p=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,m.isContextConsumer)(r.createElement(a.Consumer,null))?a:L}),[a,L]),h=(0,r.useContext)(p),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(h)&&Boolean(h.store);var k=g?n.store:h.store,C=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,i)}(k)}),[k]),O=(0,r.useMemo)((function(){if(!A)return b;var e=l(k,g?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[k,g,h]),I=O[0],x=O[1],N=(0,r.useMemo)((function(){return g?h:(0,d.A)({},h,{subscription:I})}),[g,h,I]),D=(0,r.useReducer)(w,v,S),M=D[0][0],P=D[1];if(M&&M.error)throw M.error;var R=(0,r.useRef)(),B=(0,r.useRef)(c),U=(0,r.useRef)(),F=(0,r.useRef)(!1),H=u((function(){return U.current&&c===B.current?U.current:C(k.getState(),c)}),[k,M,c]);E(T,[B,R,F,c,H,U,x]),E(_,[A,k,I,C,B,R,F,U,x,P],[k,I,C]);var j=(0,r.useMemo)((function(){return r.createElement(t,(0,d.A)({},H,{ref:s}))}),[s,t,H]);return(0,r.useMemo)((function(){return A?r.createElement(p.Provider,{value:N},j):j}),[p,j,N])}var k=s?r.memo(g):g;if(k.WrappedComponent=t,k.displayName=g.displayName=o,x){var C=r.forwardRef((function(e,t){return r.createElement(k,(0,d.A)({},e,{reactReduxForwardedRef:t}))}));return C.displayName=o,C.WrappedComponent=t,h()(C,t)}return h()(k,t)}}function A(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(A(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 o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!A(e[n[o]],t[n[o]]))return!1;return!0}function O(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function x(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=I(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=I(o),o=r(t,n)),o},r}}const N=[function(e){return"function"==typeof e?x(e):void 0},function(e){return e?void 0:O((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?O((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}],D=[function(e){return"function"==typeof e?x(e):void 0},function(e){return e?void 0:O((function(){return{}}))}];function M(e,t,n){return(0,d.A)({},n,e,t)}const L=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return M}}];var P=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function R(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function B(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;return function(o,h){return p?function(o,p){var h,m,g=!d(p,a),y=!u(o,i,p,a);return i=o,a=p,g&&y?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):y?(h=e(i,a),m=!f(h,s),s=h,m&&(c=n(s,l,a)),c):c}(o,h):(s=e(i=o,a=h),l=t(r,a),c=n(s,l,a),p=!0,c)}}function U(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,f.A)(t,P),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?B:R)(a,s,l,e,i)}var F=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function H(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function j(e,t){return e===t}function z(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?k:n,o=t.mapStateToPropsFactories,i=void 0===o?D:o,a=t.mapDispatchToPropsFactories,s=void 0===a?N:a,l=t.mergePropsFactories,c=void 0===l?L:l,u=t.selectorFactory,p=void 0===u?U:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,h=a.areStatesEqual,m=void 0===h?j:h,g=a.areOwnPropsEqual,y=void 0===g?C:g,v=a.areStatePropsEqual,b=void 0===v?C:v,w=a.areMergedPropsEqual,E=void 0===w?C:w,T=(0,f.A)(a,F),_=H(e,i,"mapStateToProps"),S=H(t,s,"mapDispatchToProps"),k=H(n,c,"mergeProps");return r(p,(0,d.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:S,initMergeProps:k,pure:u,areStatesEqual:m,areOwnPropsEqual:y,areStatePropsEqual:b,areMergedPropsEqual:E},T))}}const W=z();var G;G=n(961).unstable_batchedUpdates,i=G},1435:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Inter:400,500,700&display=swap);"]),a.push([e.id,'.rw-conversation-container .rw-header{background-color:#135afe;color:#fff;display:flex;flex-direction:column;justify-content:center;text-align:center;height:55px;font-family:"Inter",sans-serif;position:relative}.rw-conversation-container .rw-header .rw-avatar{all:initial;height:31px;width:31px;position:absolute;top:12px;left:14px}.rw-conversation-container .rw-header.rw-with-subtitle{height:70px}.rw-conversation-container .rw-header.rw-with-subtitle .rw-avatar{top:20px}.rw-conversation-container .rw-header.rw-with-subtitle .rw-title{top:11px}.rw-conversation-container .rw-header.rw-with-subtitle span{bottom:12px;position:absolute;left:22px}.rw-conversation-container .rw-header.rw-with-subtitle span.rw-with-avatar{left:60px}.rw-conversation-container .rw-title{font-size:20px;margin:0;font-family:"Inter",sans-serif;position:absolute;left:20px;font-weight:700}.rw-conversation-container .rw-title.rw-with-avatar{left:58px}.rw-conversation-container .rw-header-buttons{position:absolute;right:10px;display:flex;flex-direction:row}.rw-conversation-container .rw-close-button{display:none}.rw-conversation-container .rw-toggle-fullscreen-button{display:flex;justify-content:center;align-items:center;display:inline-block;background-color:rgba(0,0,0,0);border:0;width:40px;cursor:pointer}.rw-conversation-container .rw-toggle-fullscreen-button:focus,.rw-conversation-container .rw-toggle-fullscreen-button:active,.rw-conversation-container .rw-toggle-fullscreen-button:hover{outline:none}.rw-conversation-container .rw-toggle-fullscreen-button:focus::-moz-focus-inner,.rw-conversation-container .rw-toggle-fullscreen-button:active::-moz-focus-inner,.rw-conversation-container .rw-toggle-fullscreen-button:hover::-moz-focus-inner{border:0}.rw-conversation-container .rw-toggle-fullscreen.rw-default{width:20px;height:20px}.rw-conversation-container .rw-toggle-fullscreen.rw-default:focus,.rw-conversation-container .rw-toggle-fullscreen.rw-default:active,.rw-conversation-container .rw-toggle-fullscreen.rw-default:hover{width:24px;height:24px}.rw-conversation-container .rw-toggle-fullscreen{width:30px;height:30px;padding-top:3px}.rw-conversation-container .rw-toggle-fullscreen:focus,.rw-conversation-container .rw-toggle-fullscreen:active,.rw-conversation-container .rw-toggle-fullscreen:hover{width:34px;height:34px;top:-2px;margin-left:-2px}.rw-conversation-container .rw-toggle-transcript-button{display:flex;justify-content:center;align-items:center;display:inline-block;background-color:rgba(0,0,0,0);border:0;width:40px;cursor:pointer;width:37px}.rw-conversation-container .rw-toggle-transcript-button:focus,.rw-conversation-container .rw-toggle-transcript-button:active,.rw-conversation-container .rw-toggle-transcript-button:hover{outline:none}.rw-conversation-container .rw-toggle-transcript-button:focus::-moz-focus-inner,.rw-conversation-container .rw-toggle-transcript-button:active::-moz-focus-inner,.rw-conversation-container .rw-toggle-transcript-button:hover::-moz-focus-inner{border:0}.rw-conversation-container .rw-custom-button{display:flex;justify-content:center;align-items:center;display:inline-block;background-color:rgba(0,0,0,0);border:0;width:40px;cursor:pointer;width:37px}.rw-conversation-container .rw-custom-button:focus,.rw-conversation-container .rw-custom-button:active,.rw-conversation-container .rw-custom-button:hover{outline:none}.rw-conversation-container .rw-custom-button:focus::-moz-focus-inner,.rw-conversation-container .rw-custom-button:active::-moz-focus-inner,.rw-conversation-container .rw-custom-button:hover::-moz-focus-inner{border:0}.rw-conversation-container .rw-custom-button-img.rw-default{width:20px;height:20px}.rw-conversation-container .rw-custom-button-img.rw-default:focus,.rw-conversation-container .rw-custom-button-img.rw-default:active,.rw-conversation-container .rw-custom-button-img.rw-default:hover{width:24px;height:24px}.rw-conversation-container .rw-custom-button-img{width:30px;height:30px;padding-top:3px}.rw-conversation-container .rw-custom-button-img:focus,.rw-conversation-container .rw-custom-button-img:active,.rw-conversation-container .rw-custom-button-img:hover{width:34px;height:34px;top:-2px;margin-left:-2px}.rw-conversation-container .rw-initial-menu-button{display:flex;justify-content:center;align-items:center;display:inline-block;background-color:rgba(0,0,0,0);border:0;width:40px;cursor:pointer;width:37px}.rw-conversation-container .rw-initial-menu-button:focus,.rw-conversation-container .rw-initial-menu-button:active,.rw-conversation-container .rw-initial-menu-button:hover{outline:none}.rw-conversation-container .rw-initial-menu-button:focus::-moz-focus-inner,.rw-conversation-container .rw-initial-menu-button:active::-moz-focus-inner,.rw-conversation-container .rw-initial-menu-button:hover::-moz-focus-inner{border:0}.rw-conversation-container .rw-initial-menu.rw-default{width:20px;height:20px}.rw-conversation-container .rw-initial-menu.rw-default:focus,.rw-conversation-container .rw-initial-menu.rw-default:active,.rw-conversation-container .rw-initial-menu.rw-default:hover{width:24px;height:24px}.rw-conversation-container .rw-initial-menu{width:30px;height:30px;padding-top:3px}.rw-conversation-container .rw-initial-menu:focus,.rw-conversation-container .rw-initial-menu:active,.rw-conversation-container .rw-initial-menu:hover{width:34px;height:34px;top:-2px;margin-left:-2px}.rw-conversation-container .rw-toggle-transcript.rw-default{width:20px;height:20px}.rw-conversation-container .rw-toggle-transcript.rw-default:focus,.rw-conversation-container .rw-toggle-transcript.rw-default:active,.rw-conversation-container .rw-toggle-transcript.rw-default:hover{width:24px;height:24px}.rw-conversation-container .rw-toggle-transcript{width:30px;height:30px;padding-top:3px}.rw-conversation-container .rw-toggle-transcript:focus,.rw-conversation-container .rw-toggle-transcript:active,.rw-conversation-container .rw-toggle-transcript:hover{width:34px;height:34px;top:-2px;margin-left:-2px}.rw-conversation-container .rw-loading{background-color:#b5b5b5;color:#fff;display:flex;flex-direction:column;text-align:center;padding:5px 0 5px;font-family:"Inter",sans-serif;font-size:14px}.rw-widget-embedded .rw-header{display:none}.rw-full-screen .rw-header{border-radius:0;flex-shrink:0;position:relative}.rw-full-screen .rw-close-button,.rw-full-screen .rw-toggle-fullscreen-button{display:flex;justify-content:center;align-items:center;display:inline-block;background-color:rgba(0,0,0,0);border:0;width:40px;cursor:pointer}.rw-full-screen .rw-close-button:focus,.rw-full-screen .rw-close-button:active,.rw-full-screen .rw-close-button:hover,.rw-full-screen .rw-toggle-fullscreen-button:focus,.rw-full-screen .rw-toggle-fullscreen-button:active,.rw-full-screen .rw-toggle-fullscreen-button:hover{outline:none}.rw-full-screen .rw-close-button:focus::-moz-focus-inner,.rw-full-screen .rw-close-button:active::-moz-focus-inner,.rw-full-screen .rw-close-button:hover::-moz-focus-inner,.rw-full-screen .rw-toggle-fullscreen-button:focus::-moz-focus-inner,.rw-full-screen .rw-toggle-fullscreen-button:active::-moz-focus-inner,.rw-full-screen .rw-toggle-fullscreen-button:hover::-moz-focus-inner{border:0}.rw-full-screen .rw-close.rw-default,.rw-full-screen .rw-toggle-fullscreen.rw-default{width:20px;height:20px}.rw-full-screen .rw-close.rw-default:focus,.rw-full-screen .rw-close.rw-default:active,.rw-full-screen .rw-close.rw-default:hover,.rw-full-screen .rw-toggle-fullscreen.rw-default:focus,.rw-full-screen .rw-toggle-fullscreen.rw-default:active,.rw-full-screen .rw-toggle-fullscreen.rw-default:hover{width:24px;height:24px}.rw-full-screen .rw-close,.rw-full-screen .rw-toggle-fullscreen{width:30px;height:30px;padding-top:3px}.rw-full-screen .rw-close:focus,.rw-full-screen .rw-close:active,.rw-full-screen .rw-close:hover,.rw-full-screen .rw-toggle-fullscreen:focus,.rw-full-screen .rw-toggle-fullscreen:active,.rw-full-screen .rw-toggle-fullscreen:hover{width:34px;height:34px;top:-2px;margin-left:-2px}.rw-full-screen .rw-loading{border-radius:0;flex-shrink:0;position:relative}.rw-full-screen.rw-widget-container .rw-conversation-container{margin-bottom:0px}@media screen and (max-width: 800px){.rw-conversation-container .rw-header{border-radius:0;flex-shrink:0;position:relative}.rw-conversation-container .rw-close-button{display:flex;justify-content:center;align-items:center;display:inline-block;background-color:rgba(0,0,0,0);border:0;width:40px;cursor:pointer}.rw-conversation-container .rw-close-button:focus,.rw-conversation-container .rw-close-button:active,.rw-conversation-container .rw-close-button:hover{outline:none}.rw-conversation-container .rw-close-button:focus::-moz-focus-inner,.rw-conversation-container .rw-close-button:active::-moz-focus-inner,.rw-conversation-container .rw-close-button:hover::-moz-focus-inner{border:0}.rw-conversation-container .rw-close.rw-default{width:20px;height:20px}.rw-conversation-container .rw-close.rw-default:focus,.rw-conversation-container .rw-close.rw-default:active,.rw-conversation-container .rw-close.rw-default:hover{width:24px;height:24px}.rw-conversation-container .rw-close{width:30px;height:30px;padding-top:3px}.rw-conversation-container .rw-close:focus,.rw-conversation-container .rw-close:active,.rw-conversation-container .rw-close:hover{width:34px;height:34px;top:-2px;margin-left:-2px}.rw-conversation-container .rw-toggle-fullscreen-button,.rw-conversation-container .rw-w-.toggle-fullscreen{display:none}.rw-conversation-container .rw-loading{border-radius:0;flex-shrink:0;position:relative}}',""]);const s=a},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1834:(e,t,n)=>{"use strict";var r=n(6698),o=n(7726);function i(e,t,n,r){o.call(this,e,t,n,r)}r(i,o),i.enabled=o.enabled&&o.supportsCORS,e.exports=i},1987:(e,t,n)=>{"use strict";var r=n(4892),o=n(7393),i=n(6698),a=n(2795).b,s=n(3816);function l(e,t,n){if(!l.enabled())throw new Error("Transport created when disabled");a.call(this);var i=this,c=o.addPath(e,"/websocket");c="https"===c.slice(0,5)?"wss"+c.slice(5):"ws"+c.slice(4),this.url=c,this.ws=new s(this.url,[],n),this.ws.onmessage=function(e){e.data,i.emit("message",e.data)},this.unloadRef=r.unloadAdd((function(){i.ws.close()})),this.ws.onclose=function(e){e.code,e.reason,i.emit("close",e.code,e.reason),i._cleanup()},this.ws.onerror=function(e){i.emit("close",1006,"WebSocket connection broken"),i._cleanup()}}i(l,a),l.prototype.send=function(e){var t="["+e+"]";this.ws.send(t)},l.prototype.close=function(){var e=this.ws;this._cleanup(),e&&e.close()},l.prototype._cleanup=function(){var e=this.ws;e&&(e.onmessage=e.onclose=e.onerror=null),r.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},l.enabled=function(){return!!s},l.transportName="websocket",l.roundTrips=2,e.exports=l},2011:(e,t,n)=>{"use strict";var r=n(6698),o=n(2795).b;function i(e,t){o.call(this),this.sendBuffer=[],this.sender=t,this.url=e}r(i,o),i.prototype.send=function(e){this.sendBuffer.push(e),this.sendStop||this.sendSchedule()},i.prototype.sendScheduleWait=function(){var e,t=this;this.sendStop=function(){t.sendStop=null,clearTimeout(e)},e=setTimeout((function(){t.sendStop=null,t.sendSchedule()}),25)},i.prototype.sendSchedule=function(){this.sendBuffer.length;var e=this;if(this.sendBuffer.length>0){var t="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,t,(function(t){e.sendStop=null,t?(e.emit("close",t.code||1006,"Sending error: "+t),e.close()):e.sendScheduleWait()})),this.sendBuffer=[]}},i.prototype._cleanup=function(){this.removeAllListeners()},i.prototype.close=function(){this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=i},2014:(e,t,n)=>{"use strict";var r=n(4642);function o(e){this._transport=e,e.on("message",this._transportMessage.bind(this)),e.on("close",this._transportClose.bind(this))}o.prototype._transportClose=function(e,t){r.postMessage("c",JSON.stringify([e,t]))},o.prototype._transportMessage=function(e){r.postMessage("t",e)},o.prototype._send=function(e){this._transport.send(e)},o.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},e.exports=o},2063:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},2209:(e,t,n)=>{"use strict";var r,o=n(9404),i=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};i.isRequired=i;var a=function(){return i};function s(e,t){return n="Iterable."+e,r=function(e){return o.Iterable.isIterable(e)&&t(e)},function(e){function t(t,n,r,o,i,a){for(var s=arguments.length,l=Array(s>6?s-6:0),c=6;c<s;c++)l[c-6]=arguments[c];return a=a||r,o=o||"<<anonymous>>",null!=n[r]?e.apply(void 0,[n,r,o,i,a].concat(l)):t?new Error("Required "+i+" `"+a+"` was not specified in `"+o+"`."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}((function(e,t,i,a,s){var l=e[t];if(!r(l)){var c=function(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof o.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}(l);return new Error("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected `"+n+"`.")}return null}));var n,r}(r={listOf:a,mapOf:a,orderedMapOf:a,setOf:a,orderedSetOf:a,stackOf:a,iterableOf:a,recordOf:a,shape:a,contains:a,mapContains:a,orderedMapContains:a,list:i,map:i,orderedMap:i,set:i,orderedSet:i,stack:i,seq:i,record:i,iterable:i}).iterable.indexed=s("Indexed",o.Iterable.isIndexed),r.iterable.keyed=s("Keyed",o.Iterable.isKeyed),e.exports=r},2434:(e,t,n)=>{"use strict";var r,o,i=n(7861),a=n(7393);e.exports=function(e,t,s){r||((r=n.g.document.createElement("form")).style.display="none",r.style.position="absolute",r.method="POST",r.enctype="application/x-www-form-urlencoded",r.acceptCharset="UTF-8",(o=n.g.document.createElement("textarea")).name="d",r.appendChild(o),n.g.document.body.appendChild(r));var l="a"+i.string(8);r.target=l,r.action=a.addQuery(a.addPath(e,"/jsonp_send"),"i="+l);var c=function(e){try{return n.g.document.createElement('<iframe name="'+e+'">')}catch(r){var t=n.g.document.createElement("iframe");return t.name=e,t}}(l);c.id=l,c.style.display="none",r.appendChild(c);try{o.value=t}catch(e){}r.submit();var u=function(e){c.onerror&&(c.onreadystatechange=c.onerror=c.onload=null,setTimeout((function(){c.parentNode.removeChild(c),c=null}),500),o.value="",s(e))};return c.onerror=function(){u()},c.onload=function(){u()},c.onreadystatechange=function(e){c.readyState,"complete"===c.readyState&&u()},function(){u(new Error("Aborted"))}}},2521:(e,t,n)=>{"use strict";var r=n(6698),o=n(3157);function i(e){o.call(this),this.initEvent("message",!1,!1),this.data=e}r(i,o),e.exports=i},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function i(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 a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.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,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),T=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var R,B=Object.assign;function U(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var F=!1;function H(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function j(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 1:return H(e.type,!0);default:return""}}function z(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 _:return"Fragment";case T:return"Portal";case k:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case x:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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 q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(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 K(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(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 Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=G(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")