@botfabrik/engine-webclient 4.76.2 → 4.76.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ var M0=Object.defineProperty;var F0=(e,t,n)=>t in e?M0(e,t,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ji=Symbol.for("react.element"),B0=Symbol.for("react.portal"),j0=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),U0=Symbol.for("react.profiler"),H0=Symbol.for("react.provider"),$0=Symbol.for("react.context"),G0=Symbol.for("react.forward_ref"),V0=Symbol.for("react.suspense"),W0=Symbol.for("react.memo"),q0=Symbol.for("react.lazy"),yf=Symbol.iterator;function X0(e){return e===null||typeof e!="object"?null:(e=yf&&e[yf]||e["@@iterator"],typeof e=="function"?e:null)}var ep={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tp=Object.assign,np={};function Lr(e,t,n){this.props=e,this.context=t,this.refs=np,this.updater=n||ep}Lr.prototype.isReactComponent={};Lr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rp(){}rp.prototype=Lr.prototype;function bu(e,t,n){this.props=e,this.context=t,this.refs=np,this.updater=n||ep}var wu=bu.prototype=new rp;wu.constructor=bu;tp(wu,Lr.prototype);wu.isPureReactComponent=!0;var vf=Array.isArray,ip=Object.prototype.hasOwnProperty,xu={current:null},op={key:!0,ref:!0,__self:!0,__source:!0};function sp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)ip.call(t,r)&&!op.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ji,type:e,key:o,ref:s,props:i,_owner:xu.current}}function Q0(e,t){return{$$typeof:ji,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ji}function K0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _f=/\/+/g;function na(e,t){return typeof e=="object"&&e!==null&&e.key!=null?K0(""+e.key):t.toString(36)}function Eo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ji:case B0:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+na(s,0):r,vf(i)?(n="",e!=null&&(n=e.replace(_f,"$&/")+"/"),Eo(i,t,n,"",function(c){return c})):i!=null&&(Tu(i)&&(i=Q0(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(_f,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",vf(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+na(o,a);s+=Eo(o,t,n,l,i)}else if(l=X0(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+na(o,a++),s+=Eo(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Xi(e,t,n){if(e==null)return e;var r=[],i=0;return Eo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Y0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Fe={current:null},So={transition:null},Z0={ReactCurrentDispatcher:Fe,ReactCurrentBatchConfig:So,ReactCurrentOwner:xu};function ap(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:Xi,forEach:function(e,t,n){Xi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xi(e,function(){t++}),t},toArray:function(e){return Xi(e,function(t){return t})||[]},only:function(e){if(!Tu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=Lr;z.Fragment=j0;z.Profiler=U0;z.PureComponent=bu;z.StrictMode=z0;z.Suspense=V0;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z0;z.act=ap;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=tp({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=xu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ip.call(t,l)&&!op.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:ji,type:e.type,key:i,ref:o,props:r,_owner:s}};z.createContext=function(e){return e={$$typeof:$0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:H0,_context:e},e.Consumer=e};z.createElement=sp;z.createFactory=function(e){var t=sp.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:G0,render:e}};z.isValidElement=Tu;z.lazy=function(e){return{$$typeof:q0,_payload:{_status:-1,_result:e},_init:Y0}};z.memo=function(e,t){return{$$typeof:W0,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=So.transition;So.transition={};try{e()}finally{So.transition=t}};z.unstable_act=ap;z.useCallback=function(e,t){return Fe.current.useCallback(e,t)};z.useContext=function(e){return Fe.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Fe.current.useDeferredValue(e)};z.useEffect=function(e,t){return Fe.current.useEffect(e,t)};z.useId=function(){return Fe.current.useId()};z.useImperativeHandle=function(e,t,n){return Fe.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Fe.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Fe.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Fe.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Fe.current.useReducer(e,t,n)};z.useRef=function(e){return Fe.current.useRef(e)};z.useState=function(e){return Fe.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Fe.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Fe.current.useTransition()};z.version="18.3.1";Jh.exports=z;var O=Jh.exports;const Et=Su(O),Ef=L0({__proto__:null,default:Et},[O]);/**
9
+ */var ji=Symbol.for("react.element"),B0=Symbol.for("react.portal"),j0=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),U0=Symbol.for("react.profiler"),H0=Symbol.for("react.provider"),$0=Symbol.for("react.context"),G0=Symbol.for("react.forward_ref"),V0=Symbol.for("react.suspense"),W0=Symbol.for("react.memo"),q0=Symbol.for("react.lazy"),yf=Symbol.iterator;function X0(e){return e===null||typeof e!="object"?null:(e=yf&&e[yf]||e["@@iterator"],typeof e=="function"?e:null)}var ep={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tp=Object.assign,np={};function Lr(e,t,n){this.props=e,this.context=t,this.refs=np,this.updater=n||ep}Lr.prototype.isReactComponent={};Lr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rp(){}rp.prototype=Lr.prototype;function wu(e,t,n){this.props=e,this.context=t,this.refs=np,this.updater=n||ep}var bu=wu.prototype=new rp;bu.constructor=wu;tp(bu,Lr.prototype);bu.isPureReactComponent=!0;var vf=Array.isArray,ip=Object.prototype.hasOwnProperty,xu={current:null},op={key:!0,ref:!0,__self:!0,__source:!0};function sp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)ip.call(t,r)&&!op.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ji,type:e,key:o,ref:s,props:i,_owner:xu.current}}function Q0(e,t){return{$$typeof:ji,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ji}function K0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _f=/\/+/g;function na(e,t){return typeof e=="object"&&e!==null&&e.key!=null?K0(""+e.key):t.toString(36)}function Eo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ji:case B0:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+na(s,0):r,vf(i)?(n="",e!=null&&(n=e.replace(_f,"$&/")+"/"),Eo(i,t,n,"",function(c){return c})):i!=null&&(Tu(i)&&(i=Q0(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(_f,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",vf(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+na(o,a);s+=Eo(o,t,n,l,i)}else if(l=X0(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+na(o,a++),s+=Eo(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Xi(e,t,n){if(e==null)return e;var r=[],i=0;return Eo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Y0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Fe={current:null},So={transition:null},Z0={ReactCurrentDispatcher:Fe,ReactCurrentBatchConfig:So,ReactCurrentOwner:xu};function ap(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:Xi,forEach:function(e,t,n){Xi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xi(e,function(){t++}),t},toArray:function(e){return Xi(e,function(t){return t})||[]},only:function(e){if(!Tu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=Lr;z.Fragment=j0;z.Profiler=U0;z.PureComponent=wu;z.StrictMode=z0;z.Suspense=V0;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z0;z.act=ap;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=tp({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=xu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ip.call(t,l)&&!op.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:ji,type:e.type,key:i,ref:o,props:r,_owner:s}};z.createContext=function(e){return e={$$typeof:$0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:H0,_context:e},e.Consumer=e};z.createElement=sp;z.createFactory=function(e){var t=sp.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:G0,render:e}};z.isValidElement=Tu;z.lazy=function(e){return{$$typeof:q0,_payload:{_status:-1,_result:e},_init:Y0}};z.memo=function(e,t){return{$$typeof:W0,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=So.transition;So.transition={};try{e()}finally{So.transition=t}};z.unstable_act=ap;z.useCallback=function(e,t){return Fe.current.useCallback(e,t)};z.useContext=function(e){return Fe.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Fe.current.useDeferredValue(e)};z.useEffect=function(e,t){return Fe.current.useEffect(e,t)};z.useId=function(){return Fe.current.useId()};z.useImperativeHandle=function(e,t,n){return Fe.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Fe.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Fe.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Fe.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Fe.current.useReducer(e,t,n)};z.useRef=function(e){return Fe.current.useRef(e)};z.useState=function(e){return Fe.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Fe.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Fe.current.useTransition()};z.version="18.3.1";Jh.exports=z;var O=Jh.exports;const Et=Su(O),Ef=L0({__proto__:null,default:Et},[O]);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -22,7 +22,7 @@ var M0=Object.defineProperty;var F0=(e,t,n)=>t in e?M0(e,t,{enumerable:!0,config
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(N,F){var L=N.length;N.push(F);e:for(;0<L;){var Y=L-1>>>1,ae=N[Y];if(0<i(ae,F))N[Y]=F,N[L]=ae,L=Y;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var F=N[0],L=N.pop();if(L!==F){N[0]=L;e:for(var Y=0,ae=N.length,Ct=ae>>>1;Y<Ct;){var kt=2*(Y+1)-1,Nn=N[kt],dt=kt+1,An=N[dt];if(0>i(Nn,L))dt<ae&&0>i(An,Nn)?(N[Y]=An,N[dt]=L,Y=dt):(N[Y]=Nn,N[kt]=L,Y=kt);else if(dt<ae&&0>i(An,L))N[Y]=An,N[dt]=L,Y=dt;else break e}}return F}function i(N,F){var L=N.sortIndex-F.sortIndex;return L!==0?L:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],f=1,h=null,u=3,y=!1,p=!1,E=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=N)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function _(N){if(E=!1,m(N),!p)if(n(l)!==null)p=!0,rr(b);else{var F=n(c);F!==null&&On(_,F.startTime-N)}}function b(N,F){p=!1,E&&(E=!1,g(T),T=-1),y=!0;var L=u;try{for(m(F),h=n(l);h!==null&&(!(h.expirationTime>F)||N&&!se());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,u=h.priorityLevel;var ae=Y(h.expirationTime<=F);F=e.unstable_now(),typeof ae=="function"?h.callback=ae:h===n(l)&&r(l),m(F)}else r(l);h=n(l)}if(h!==null)var Ct=!0;else{var kt=n(c);kt!==null&&On(_,kt.startTime-F),Ct=!1}return Ct}finally{h=null,u=L,y=!1}}var w=!1,x=null,T=-1,M=5,I=-1;function se(){return!(e.unstable_now()-I<M)}function he(){if(x!==null){var N=e.unstable_now();I=N;var F=!0;try{F=x(!0,N)}finally{F?Be():(w=!1,x=null)}}else w=!1}var Be;if(typeof d=="function")Be=function(){d(he)};else if(typeof MessageChannel<"u"){var nr=new MessageChannel,Tt=nr.port2;nr.port1.onmessage=he,Be=function(){Tt.postMessage(null)}}else Be=function(){S(he,0)};function rr(N){x=N,w||(w=!0,Be())}function On(N,F){T=S(function(){N(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){p||y||(p=!0,rr(b))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return u},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(u){case 1:case 2:case 3:var F=3;break;default:F=u}var L=u;u=F;try{return N()}finally{u=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,F){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var L=u;u=N;try{return F()}finally{u=L}},e.unstable_scheduleCallback=function(N,F,L){var Y=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Y+L:Y):L=Y,N){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=L+ae,N={id:f++,callback:F,priorityLevel:N,startTime:L,expirationTime:ae,sortIndex:-1},L>Y?(N.sortIndex=L,t(c,N),n(l)===null&&N===n(c)&&(E?(g(T),T=-1):E=!0,On(_,L-Y))):(N.sortIndex=ae,t(l,N),p||y||(p=!0,rr(b))),N},e.unstable_shouldYield=se,e.unstable_wrapCallback=function(N){var F=u;return function(){var L=u;u=F;try{return N.apply(this,arguments)}finally{u=L}}}})(fp);cp.exports=fp;var ov=cp.exports;/**
25
+ */(function(e){function t(N,F){var L=N.length;N.push(F);e:for(;0<L;){var Y=L-1>>>1,ae=N[Y];if(0<i(ae,F))N[Y]=F,N[L]=ae,L=Y;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var F=N[0],L=N.pop();if(L!==F){N[0]=L;e:for(var Y=0,ae=N.length,Ct=ae>>>1;Y<Ct;){var kt=2*(Y+1)-1,Nn=N[kt],dt=kt+1,An=N[dt];if(0>i(Nn,L))dt<ae&&0>i(An,Nn)?(N[Y]=An,N[dt]=L,Y=dt):(N[Y]=Nn,N[kt]=L,Y=kt);else if(dt<ae&&0>i(An,L))N[Y]=An,N[dt]=L,Y=dt;else break e}}return F}function i(N,F){var L=N.sortIndex-F.sortIndex;return L!==0?L:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],f=1,h=null,u=3,y=!1,p=!1,E=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=N)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function _(N){if(E=!1,m(N),!p)if(n(l)!==null)p=!0,rr(w);else{var F=n(c);F!==null&&On(_,F.startTime-N)}}function w(N,F){p=!1,E&&(E=!1,g(T),T=-1),y=!0;var L=u;try{for(m(F),h=n(l);h!==null&&(!(h.expirationTime>F)||N&&!se());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,u=h.priorityLevel;var ae=Y(h.expirationTime<=F);F=e.unstable_now(),typeof ae=="function"?h.callback=ae:h===n(l)&&r(l),m(F)}else r(l);h=n(l)}if(h!==null)var Ct=!0;else{var kt=n(c);kt!==null&&On(_,kt.startTime-F),Ct=!1}return Ct}finally{h=null,u=L,y=!1}}var b=!1,x=null,T=-1,M=5,I=-1;function se(){return!(e.unstable_now()-I<M)}function he(){if(x!==null){var N=e.unstable_now();I=N;var F=!0;try{F=x(!0,N)}finally{F?Be():(b=!1,x=null)}}else b=!1}var Be;if(typeof d=="function")Be=function(){d(he)};else if(typeof MessageChannel<"u"){var nr=new MessageChannel,Tt=nr.port2;nr.port1.onmessage=he,Be=function(){Tt.postMessage(null)}}else Be=function(){S(he,0)};function rr(N){x=N,b||(b=!0,Be())}function On(N,F){T=S(function(){N(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){p||y||(p=!0,rr(w))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return u},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(u){case 1:case 2:case 3:var F=3;break;default:F=u}var L=u;u=F;try{return N()}finally{u=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,F){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var L=u;u=N;try{return F()}finally{u=L}},e.unstable_scheduleCallback=function(N,F,L){var Y=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Y+L:Y):L=Y,N){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=L+ae,N={id:f++,callback:F,priorityLevel:N,startTime:L,expirationTime:ae,sortIndex:-1},L>Y?(N.sortIndex=L,t(c,N),n(l)===null&&N===n(c)&&(E?(g(T),T=-1):E=!0,On(_,L-Y))):(N.sortIndex=ae,t(l,N),p||y||(p=!0,rr(w))),N},e.unstable_shouldYield=se,e.unstable_wrapCallback=function(N){var F=u;return function(){var L=u;u=F;try{return N.apply(this,arguments)}finally{u=L}}}})(fp);cp.exports=fp;var ov=cp.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var M0=Object.defineProperty;var F0=(e,t,n)=>t in e?M0(e,t,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var sv=O,Qe=ov;function C(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 dp=new Set,vi={};function Zn(e,t){Cr(e,t),Cr(e+"Capture",t)}function Cr(e,t){for(vi[e]=t,e=0;e<t.length;e++)dp.add(t[e])}var qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ka=Object.prototype.hasOwnProperty,av=/^[: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]*$/,Sf={},bf={};function lv(e){return Ka.call(bf,e)?!0:Ka.call(Sf,e)?!1:av.test(e)?bf[e]=!0:(Sf[e]=!0,!1)}function uv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function cv(e,t,n,r){if(t===null||typeof t>"u"||uv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){be[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];be[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new Le(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){be[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){be[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){be[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){be[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cu=/[\-:]([a-z])/g;function ku(e){return e[1].toUpperCase()}"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(Cu,ku);be[t]=new Le(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(Cu,ku);be[t]=new Le(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(Cu,ku);be[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){be[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});be.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){be[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ou(e,t,n,r){var i=be.hasOwnProperty(t)?be[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(cv(t,n,i,r)&&(n=null),r||i===null?lv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Jt=sv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qi=Symbol.for("react.element"),lr=Symbol.for("react.portal"),ur=Symbol.for("react.fragment"),Nu=Symbol.for("react.strict_mode"),Ya=Symbol.for("react.profiler"),hp=Symbol.for("react.provider"),pp=Symbol.for("react.context"),Au=Symbol.for("react.forward_ref"),Za=Symbol.for("react.suspense"),Ja=Symbol.for("react.suspense_list"),Ru=Symbol.for("react.memo"),on=Symbol.for("react.lazy"),mp=Symbol.for("react.offscreen"),wf=Symbol.iterator;function Hr(e){return e===null||typeof e!="object"?null:(e=wf&&e[wf]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Object.assign,ra;function ni(e){if(ra===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ra=t&&t[1]||""}return`
33
+ */var sv=O,Qe=ov;function C(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 dp=new Set,vi={};function Zn(e,t){Cr(e,t),Cr(e+"Capture",t)}function Cr(e,t){for(vi[e]=t,e=0;e<t.length;e++)dp.add(t[e])}var qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ka=Object.prototype.hasOwnProperty,av=/^[: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]*$/,Sf={},wf={};function lv(e){return Ka.call(wf,e)?!0:Ka.call(Sf,e)?!1:av.test(e)?wf[e]=!0:(Sf[e]=!0,!1)}function uv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function cv(e,t,n,r){if(t===null||typeof t>"u"||uv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new Le(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){we[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cu=/[\-:]([a-z])/g;function ku(e){return e[1].toUpperCase()}"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(Cu,ku);we[t]=new Le(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(Cu,ku);we[t]=new Le(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(Cu,ku);we[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ou(e,t,n,r){var i=we.hasOwnProperty(t)?we[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(cv(t,n,i,r)&&(n=null),r||i===null?lv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Jt=sv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qi=Symbol.for("react.element"),lr=Symbol.for("react.portal"),ur=Symbol.for("react.fragment"),Nu=Symbol.for("react.strict_mode"),Ya=Symbol.for("react.profiler"),hp=Symbol.for("react.provider"),pp=Symbol.for("react.context"),Au=Symbol.for("react.forward_ref"),Za=Symbol.for("react.suspense"),Ja=Symbol.for("react.suspense_list"),Ru=Symbol.for("react.memo"),on=Symbol.for("react.lazy"),mp=Symbol.for("react.offscreen"),bf=Symbol.iterator;function Hr(e){return e===null||typeof e!="object"?null:(e=bf&&e[bf]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Object.assign,ra;function ni(e){if(ra===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ra=t&&t[1]||""}return`
34
34
  `+ra+e}var ia=!1;function oa(e,t){if(!e||ia)return"";ia=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
35
35
  `),o=r.stack.split(`
36
36
  `),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
37
- `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ia=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ni(e):""}function fv(e){switch(e.tag){case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return ni("Suspense");case 19:return ni("SuspenseList");case 0:case 2:case 15:return e=oa(e.type,!1),e;case 11:return e=oa(e.type.render,!1),e;case 1:return e=oa(e.type,!0),e;default:return""}}function el(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ur:return"Fragment";case lr:return"Portal";case Ya:return"Profiler";case Nu:return"StrictMode";case Za:return"Suspense";case Ja:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pp:return(e.displayName||"Context")+".Consumer";case hp:return(e._context.displayName||"Context")+".Provider";case Au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ru:return t=e.displayName||null,t!==null?t:el(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return el(e(t))}catch{}}return null}function dv(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=t.render,e=e.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 el(t);case 8:return t===Nu?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hv(e){var t=gp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ki(e){e._valueTracker||(e._valueTracker=hv(e))}function yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tl(e,t){var n=t.checked;return oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vp(e,t){t=t.checked,t!=null&&Ou(e,"checked",t,!1)}function nl(e,t){vp(e,t);var n=Sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rl(e,t.type,n):t.hasOwnProperty("defaultValue")&&rl(e,t.type,Sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rl(e,t,n){(t!=="number"||zo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ri=Array.isArray;function Er(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=""+Sn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function il(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(ri(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sn(n)}}function _p(e,t){var n=Sn(t.value),r=Sn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function kf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ep(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 ol(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ep(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yi,Sp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yi=Yi||document.createElement("div"),Yi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _i(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ui={animationIterationCount:!0,aspectRatio:!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},pv=["Webkit","ms","Moz","O"];Object.keys(ui).forEach(function(e){pv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ui[t]=ui[e]})});function bp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ui.hasOwnProperty(e)&&ui[e]?(""+t).trim():t+"px"}function wp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var mv=oe({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 sl(e,t){if(t){if(mv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function al(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ll=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ul=null,Sr=null,br=null;function Of(e){if(e=Hi(e)){if(typeof ul!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Ts(t),ul(e.stateNode,e.type,t))}}function xp(e){Sr?br?br.push(e):br=[e]:Sr=e}function Tp(){if(Sr){var e=Sr,t=br;if(br=Sr=null,Of(e),t)for(e=0;e<t.length;e++)Of(t[e])}}function Cp(e,t){return e(t)}function kp(){}var sa=!1;function Op(e,t,n){if(sa)return e(t,n);sa=!0;try{return Cp(e,t,n)}finally{sa=!1,(Sr!==null||br!==null)&&(kp(),Tp())}}function Ei(e,t){var n=e.stateNode;if(n===null)return null;var r=Ts(n);if(r===null)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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(C(231,t,typeof n));return n}var cl=!1;if(qt)try{var $r={};Object.defineProperty($r,"passive",{get:function(){cl=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{cl=!1}function gv(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var ci=!1,Uo=null,Ho=!1,fl=null,yv={onError:function(e){ci=!0,Uo=e}};function vv(e,t,n,r,i,o,s,a,l){ci=!1,Uo=null,gv.apply(yv,arguments)}function _v(e,t,n,r,i,o,s,a,l){if(vv.apply(this,arguments),ci){if(ci){var c=Uo;ci=!1,Uo=null}else throw Error(C(198));Ho||(Ho=!0,fl=c)}}function Jn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Np(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Nf(e){if(Jn(e)!==e)throw Error(C(188))}function Ev(e){var t=e.alternate;if(!t){if(t=Jn(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Nf(i),e;if(o===r)return Nf(i),t;o=o.sibling}throw Error(C(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Ap(e){return e=Ev(e),e!==null?Rp(e):null}function Rp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Rp(e);if(t!==null)return t;e=e.sibling}return null}var Pp=Qe.unstable_scheduleCallback,Af=Qe.unstable_cancelCallback,Sv=Qe.unstable_shouldYield,bv=Qe.unstable_requestPaint,ue=Qe.unstable_now,wv=Qe.unstable_getCurrentPriorityLevel,Iu=Qe.unstable_ImmediatePriority,Ip=Qe.unstable_UserBlockingPriority,$o=Qe.unstable_NormalPriority,xv=Qe.unstable_LowPriority,Dp=Qe.unstable_IdlePriority,Ss=null,Pt=null;function Tv(e){if(Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(Ss,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:Ov,Cv=Math.log,kv=Math.LN2;function Ov(e){return e>>>=0,e===0?32:31-(Cv(e)/kv|0)|0}var Zi=64,Ji=4194304;function ii(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Go(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=ii(a):(o&=s,o!==0&&(r=ii(o)))}else s=n&~i,s!==0?r=ii(s):o!==0&&(r=ii(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-St(t),i=1<<n,r|=e[n],t&=~i;return r}function Nv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Av(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-St(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=Nv(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function dl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mp(){var e=Zi;return Zi<<=1,!(Zi&4194240)&&(Zi=64),e}function aa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function Rv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-St(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Du(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Q=0;function Fp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lp,Mu,Bp,jp,zp,hl=!1,eo=[],fn=null,dn=null,hn=null,Si=new Map,bi=new Map,an=[],Pv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rf(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":hn=null;break;case"pointerover":case"pointerout":Si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bi.delete(t.pointerId)}}function Gr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Hi(t),t!==null&&Mu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Iv(e,t,n,r,i){switch(t){case"focusin":return fn=Gr(fn,e,t,n,r,i),!0;case"dragenter":return dn=Gr(dn,e,t,n,r,i),!0;case"mouseover":return hn=Gr(hn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Si.set(o,Gr(Si.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,bi.set(o,Gr(bi.get(o)||null,e,t,n,r,i)),!0}return!1}function Up(e){var t=Ln(e.target);if(t!==null){var n=Jn(t);if(n!==null){if(t=n.tag,t===13){if(t=Np(n),t!==null){e.blockedOn=t,zp(e.priority,function(){Bp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ll=r,n.target.dispatchEvent(r),ll=null}else return t=Hi(n),t!==null&&Mu(t),e.blockedOn=n,!1;t.shift()}return!0}function Pf(e,t,n){bo(e)&&n.delete(t)}function Dv(){hl=!1,fn!==null&&bo(fn)&&(fn=null),dn!==null&&bo(dn)&&(dn=null),hn!==null&&bo(hn)&&(hn=null),Si.forEach(Pf),bi.forEach(Pf)}function Vr(e,t){e.blockedOn===t&&(e.blockedOn=null,hl||(hl=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,Dv)))}function wi(e){function t(i){return Vr(i,e)}if(0<eo.length){Vr(eo[0],e);for(var n=1;n<eo.length;n++){var r=eo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fn!==null&&Vr(fn,e),dn!==null&&Vr(dn,e),hn!==null&&Vr(hn,e),Si.forEach(t),bi.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)Up(n),n.blockedOn===null&&an.shift()}var wr=Jt.ReactCurrentBatchConfig,Vo=!0;function Mv(e,t,n,r){var i=Q,o=wr.transition;wr.transition=null;try{Q=1,Fu(e,t,n,r)}finally{Q=i,wr.transition=o}}function Fv(e,t,n,r){var i=Q,o=wr.transition;wr.transition=null;try{Q=4,Fu(e,t,n,r)}finally{Q=i,wr.transition=o}}function Fu(e,t,n,r){if(Vo){var i=pl(e,t,n,r);if(i===null)ya(e,t,r,Wo,n),Rf(e,r);else if(Iv(i,e,t,n,r))r.stopPropagation();else if(Rf(e,r),t&4&&-1<Pv.indexOf(e)){for(;i!==null;){var o=Hi(i);if(o!==null&&Lp(o),o=pl(e,t,n,r),o===null&&ya(e,t,r,Wo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ya(e,t,r,null,n)}}var Wo=null;function pl(e,t,n,r){if(Wo=null,e=Pu(r),e=Ln(e),e!==null)if(t=Jn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Np(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wo=e,null}function Hp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wv()){case Iu:return 1;case Ip:return 4;case $o:case xv:return 16;case Dp:return 536870912;default:return 16}default:return 16}}var un=null,Lu=null,wo=null;function $p(){if(wo)return wo;var e,t=Lu,n=t.length,r,i="value"in un?un.value:un.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return wo=i.slice(e,1<r?1-r:void 0)}function xo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function to(){return!0}function If(){return!1}function Je(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?to:If,this.isPropagationStopped=If,this}return oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=to)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=to)},persist:function(){},isPersistent:to}),t}var Br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bu=Je(Br),Ui=oe({},Br,{view:0,detail:0}),Lv=Je(Ui),la,ua,Wr,bs=oe({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wr&&(Wr&&e.type==="mousemove"?(la=e.screenX-Wr.screenX,ua=e.screenY-Wr.screenY):ua=la=0,Wr=e),la)},movementY:function(e){return"movementY"in e?e.movementY:ua}}),Df=Je(bs),Bv=oe({},bs,{dataTransfer:0}),jv=Je(Bv),zv=oe({},Ui,{relatedTarget:0}),ca=Je(zv),Uv=oe({},Br,{animationName:0,elapsedTime:0,pseudoElement:0}),Hv=Je(Uv),$v=oe({},Br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gv=Je($v),Vv=oe({},Br,{data:0}),Mf=Je(Vv),Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xv[e])?!!t[e]:!1}function ju(){return Qv}var Kv=oe({},Ui,{key:function(e){if(e.key){var t=Wv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(e){return e.type==="keypress"?xo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yv=Je(Kv),Zv=oe({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ff=Je(Zv),Jv=oe({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),e_=Je(Jv),t_=oe({},Br,{propertyName:0,elapsedTime:0,pseudoElement:0}),n_=Je(t_),r_=oe({},bs,{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:0,deltaMode:0}),i_=Je(r_),o_=[9,13,27,32],zu=qt&&"CompositionEvent"in window,fi=null;qt&&"documentMode"in document&&(fi=document.documentMode);var s_=qt&&"TextEvent"in window&&!fi,Gp=qt&&(!zu||fi&&8<fi&&11>=fi),Lf=" ",Bf=!1;function Vp(e,t){switch(e){case"keyup":return o_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cr=!1;function a_(e,t){switch(e){case"compositionend":return Wp(t);case"keypress":return t.which!==32?null:(Bf=!0,Lf);case"textInput":return e=t.data,e===Lf&&Bf?null:e;default:return null}}function l_(e,t){if(cr)return e==="compositionend"||!zu&&Vp(e,t)?(e=$p(),wo=Lu=un=null,cr=!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 Gp&&t.locale!=="ko"?null:t.data;default:return null}}var u_={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 jf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!u_[e.type]:t==="textarea"}function qp(e,t,n,r){xp(r),t=qo(t,"onChange"),0<t.length&&(n=new Bu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var di=null,xi=null;function c_(e){im(e,0)}function ws(e){var t=hr(e);if(yp(t))return e}function f_(e,t){if(e==="change")return t}var Xp=!1;if(qt){var fa;if(qt){var da="oninput"in document;if(!da){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),da=typeof zf.oninput=="function"}fa=da}else fa=!1;Xp=fa&&(!document.documentMode||9<document.documentMode)}function Uf(){di&&(di.detachEvent("onpropertychange",Qp),xi=di=null)}function Qp(e){if(e.propertyName==="value"&&ws(xi)){var t=[];qp(t,xi,e,Pu(e)),Op(c_,t)}}function d_(e,t,n){e==="focusin"?(Uf(),di=t,xi=n,di.attachEvent("onpropertychange",Qp)):e==="focusout"&&Uf()}function h_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ws(xi)}function p_(e,t){if(e==="click")return ws(t)}function m_(e,t){if(e==="input"||e==="change")return ws(t)}function g_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:g_;function Ti(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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++){var i=n[r];if(!Ka.call(t,i)||!wt(e[i],t[i]))return!1}return!0}function Hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $f(e,t){var n=Hf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hf(n)}}function Kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yp(){for(var e=window,t=zo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zo(e.document)}return t}function Uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function y_(e){var t=Yp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kp(n.ownerDocument.documentElement,n)){if(r!==null&&Uu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=$f(n,o);var s=$f(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var v_=qt&&"documentMode"in document&&11>=document.documentMode,fr=null,ml=null,hi=null,gl=!1;function Gf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gl||fr==null||fr!==zo(r)||(r=fr,"selectionStart"in r&&Uu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hi&&Ti(hi,r)||(hi=r,r=qo(ml,"onSelect"),0<r.length&&(t=new Bu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function no(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:no("Animation","AnimationEnd"),animationiteration:no("Animation","AnimationIteration"),animationstart:no("Animation","AnimationStart"),transitionend:no("Transition","TransitionEnd")},ha={},Zp={};qt&&(Zp=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);function xs(e){if(ha[e])return ha[e];if(!dr[e])return e;var t=dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zp)return ha[e]=t[n];return e}var Jp=xs("animationend"),em=xs("animationiteration"),tm=xs("animationstart"),nm=xs("transitionend"),rm=new Map,Vf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function wn(e,t){rm.set(e,t),Zn(t,[e])}for(var pa=0;pa<Vf.length;pa++){var ma=Vf[pa],__=ma.toLowerCase(),E_=ma[0].toUpperCase()+ma.slice(1);wn(__,"on"+E_)}wn(Jp,"onAnimationEnd");wn(em,"onAnimationIteration");wn(tm,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(nm,"onTransitionEnd");Cr("onMouseEnter",["mouseout","mouseover"]);Cr("onMouseLeave",["mouseout","mouseover"]);Cr("onPointerEnter",["pointerout","pointerover"]);Cr("onPointerLeave",["pointerout","pointerover"]);Zn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),S_=new Set("cancel close invalid load scroll toggle".split(" ").concat(oi));function Wf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,_v(r,t,void 0,e),e.currentTarget=null}function im(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Wf(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Wf(i,a,c),o=l}}}if(Ho)throw e=fl,Ho=!1,fl=null,e}function Z(e,t){var n=t[Sl];n===void 0&&(n=t[Sl]=new Set);var r=e+"__bubble";n.has(r)||(om(t,e,2,!1),n.add(r))}function ga(e,t,n){var r=0;t&&(r|=4),om(n,e,r,t)}var ro="_reactListening"+Math.random().toString(36).slice(2);function Ci(e){if(!e[ro]){e[ro]=!0,dp.forEach(function(n){n!=="selectionchange"&&(S_.has(n)||ga(n,!1,e),ga(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ro]||(t[ro]=!0,ga("selectionchange",!1,t))}}function om(e,t,n,r){switch(Hp(t)){case 1:var i=Mv;break;case 4:i=Fv;break;default:i=Fu}n=i.bind(null,t,n,e),i=void 0,!cl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ya(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Ln(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Op(function(){var c=o,f=Pu(n),h=[];e:{var u=rm.get(e);if(u!==void 0){var y=Bu,p=e;switch(e){case"keypress":if(xo(n)===0)break e;case"keydown":case"keyup":y=Yv;break;case"focusin":p="focus",y=ca;break;case"focusout":p="blur",y=ca;break;case"beforeblur":case"afterblur":y=ca;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Df;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=e_;break;case Jp:case em:case tm:y=Hv;break;case nm:y=n_;break;case"scroll":y=Lv;break;case"wheel":y=i_;break;case"copy":case"cut":case"paste":y=Gv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Ff}var E=(t&4)!==0,S=!E&&e==="scroll",g=E?u!==null?u+"Capture":null:u;E=[];for(var d=c,m;d!==null;){m=d;var _=m.stateNode;if(m.tag===5&&_!==null&&(m=_,g!==null&&(_=Ei(d,g),_!=null&&E.push(ki(d,_,m)))),S)break;d=d.return}0<E.length&&(u=new y(u,p,null,n,f),h.push({event:u,listeners:E}))}}if(!(t&7)){e:{if(u=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",u&&n!==ll&&(p=n.relatedTarget||n.fromElement)&&(Ln(p)||p[Xt]))break e;if((y||u)&&(u=f.window===f?f:(u=f.ownerDocument)?u.defaultView||u.parentWindow:window,y?(p=n.relatedTarget||n.toElement,y=c,p=p?Ln(p):null,p!==null&&(S=Jn(p),p!==S||p.tag!==5&&p.tag!==6)&&(p=null)):(y=null,p=c),y!==p)){if(E=Df,_="onMouseLeave",g="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(E=Ff,_="onPointerLeave",g="onPointerEnter",d="pointer"),S=y==null?u:hr(y),m=p==null?u:hr(p),u=new E(_,d+"leave",y,n,f),u.target=S,u.relatedTarget=m,_=null,Ln(f)===c&&(E=new E(g,d+"enter",p,n,f),E.target=m,E.relatedTarget=S,_=E),S=_,y&&p)t:{for(E=y,g=p,d=0,m=E;m;m=ir(m))d++;for(m=0,_=g;_;_=ir(_))m++;for(;0<d-m;)E=ir(E),d--;for(;0<m-d;)g=ir(g),m--;for(;d--;){if(E===g||g!==null&&E===g.alternate)break t;E=ir(E),g=ir(g)}E=null}else E=null;y!==null&&qf(h,u,y,E,!1),p!==null&&S!==null&&qf(h,S,p,E,!0)}}e:{if(u=c?hr(c):window,y=u.nodeName&&u.nodeName.toLowerCase(),y==="select"||y==="input"&&u.type==="file")var b=f_;else if(jf(u))if(Xp)b=m_;else{b=h_;var w=d_}else(y=u.nodeName)&&y.toLowerCase()==="input"&&(u.type==="checkbox"||u.type==="radio")&&(b=p_);if(b&&(b=b(e,c))){qp(h,b,n,f);break e}w&&w(e,u,c),e==="focusout"&&(w=u._wrapperState)&&w.controlled&&u.type==="number"&&rl(u,"number",u.value)}switch(w=c?hr(c):window,e){case"focusin":(jf(w)||w.contentEditable==="true")&&(fr=w,ml=c,hi=null);break;case"focusout":hi=ml=fr=null;break;case"mousedown":gl=!0;break;case"contextmenu":case"mouseup":case"dragend":gl=!1,Gf(h,n,f);break;case"selectionchange":if(v_)break;case"keydown":case"keyup":Gf(h,n,f)}var x;if(zu)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else cr?Vp(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Gp&&n.locale!=="ko"&&(cr||T!=="onCompositionStart"?T==="onCompositionEnd"&&cr&&(x=$p()):(un=f,Lu="value"in un?un.value:un.textContent,cr=!0)),w=qo(c,T),0<w.length&&(T=new Mf(T,e,null,n,f),h.push({event:T,listeners:w}),x?T.data=x:(x=Wp(n),x!==null&&(T.data=x)))),(x=s_?a_(e,n):l_(e,n))&&(c=qo(c,"onBeforeInput"),0<c.length&&(f=new Mf("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=x))}im(h,t)})}function ki(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ei(e,n),o!=null&&r.unshift(ki(e,o,i)),o=Ei(e,t),o!=null&&r.push(ki(e,o,i))),e=e.return}return r}function ir(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qf(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Ei(n,o),l!=null&&s.unshift(ki(n,l,a))):i||(l=Ei(n,o),l!=null&&s.push(ki(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var b_=/\r\n?/g,w_=/\u0000|\uFFFD/g;function Xf(e){return(typeof e=="string"?e:""+e).replace(b_,`
38
- `).replace(w_,"")}function io(e,t,n){if(t=Xf(t),Xf(e)!==t&&n)throw Error(C(425))}function Xo(){}var yl=null,vl=null;function _l(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var El=typeof setTimeout=="function"?setTimeout:void 0,x_=typeof clearTimeout=="function"?clearTimeout:void 0,Qf=typeof Promise=="function"?Promise:void 0,T_=typeof queueMicrotask=="function"?queueMicrotask:typeof Qf<"u"?function(e){return Qf.resolve(null).then(e).catch(C_)}:El;function C_(e){setTimeout(function(){throw e})}function va(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),wi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);wi(t)}function pn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Kf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var jr=Math.random().toString(36).slice(2),At="__reactFiber$"+jr,Oi="__reactProps$"+jr,Xt="__reactContainer$"+jr,Sl="__reactEvents$"+jr,k_="__reactListeners$"+jr,O_="__reactHandles$"+jr;function Ln(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xt]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kf(e);e!==null;){if(n=e[At])return n;e=Kf(e)}return t}e=n,n=e.parentNode}return null}function Hi(e){return e=e[At]||e[Xt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Ts(e){return e[Oi]||null}var bl=[],pr=-1;function xn(e){return{current:e}}function ee(e){0>pr||(e.current=bl[pr],bl[pr]=null,pr--)}function K(e,t){pr++,bl[pr]=e.current,e.current=t}var bn={},ke=xn(bn),$e=xn(!1),Gn=bn;function kr(e,t){var n=e.type.contextTypes;if(!n)return bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ge(e){return e=e.childContextTypes,e!=null}function Qo(){ee($e),ee(ke)}function Yf(e,t,n){if(ke.current!==bn)throw Error(C(168));K(ke,t),K($e,n)}function sm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(C(108,dv(e)||"Unknown",i));return oe({},n,r)}function Ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bn,Gn=ke.current,K(ke,e),K($e,$e.current),!0}function Zf(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=sm(e,t,Gn),r.__reactInternalMemoizedMergedChildContext=e,ee($e),ee(ke),K(ke,e)):ee($e),K($e,n)}var Ut=null,Cs=!1,_a=!1;function am(e){Ut===null?Ut=[e]:Ut.push(e)}function N_(e){Cs=!0,am(e)}function Tn(){if(!_a&&Ut!==null){_a=!0;var e=0,t=Q;try{var n=Ut;for(Q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ut=null,Cs=!1}catch(i){throw Ut!==null&&(Ut=Ut.slice(e+1)),Pp(Iu,Tn),i}finally{Q=t,_a=!1}}return null}var mr=[],gr=0,Yo=null,Zo=0,tt=[],nt=0,Vn=null,$t=1,Gt="";function In(e,t){mr[gr++]=Zo,mr[gr++]=Yo,Yo=e,Zo=t}function lm(e,t,n){tt[nt++]=$t,tt[nt++]=Gt,tt[nt++]=Vn,Vn=e;var r=$t;e=Gt;var i=32-St(r)-1;r&=~(1<<i),n+=1;var o=32-St(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,$t=1<<32-St(t)+i|n<<i|r,Gt=o+e}else $t=1<<o|n<<i|r,Gt=e}function Hu(e){e.return!==null&&(In(e,1),lm(e,1,0))}function $u(e){for(;e===Yo;)Yo=mr[--gr],mr[gr]=null,Zo=mr[--gr],mr[gr]=null;for(;e===Vn;)Vn=tt[--nt],tt[nt]=null,Gt=tt[--nt],tt[nt]=null,$t=tt[--nt],tt[nt]=null}var Xe=null,qe=null,ne=!1,vt=null;function um(e,t){var n=it(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Jf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xe=e,qe=pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,qe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vn!==null?{id:$t,overflow:Gt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=it(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,qe=null,!0):!1;default:return!1}}function wl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xl(e){if(ne){var t=qe;if(t){var n=t;if(!Jf(e,t)){if(wl(e))throw Error(C(418));t=pn(n.nextSibling);var r=Xe;t&&Jf(e,t)?um(r,n):(e.flags=e.flags&-4097|2,ne=!1,Xe=e)}}else{if(wl(e))throw Error(C(418));e.flags=e.flags&-4097|2,ne=!1,Xe=e}}}function ed(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function oo(e){if(e!==Xe)return!1;if(!ne)return ed(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!_l(e.type,e.memoizedProps)),t&&(t=qe)){if(wl(e))throw cm(),Error(C(418));for(;t;)um(e,t),t=pn(t.nextSibling)}if(ed(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qe=pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qe=null}}else qe=Xe?pn(e.stateNode.nextSibling):null;return!0}function cm(){for(var e=qe;e;)e=pn(e.nextSibling)}function Or(){qe=Xe=null,ne=!1}function Gu(e){vt===null?vt=[e]:vt.push(e)}var A_=Jt.ReactCurrentBatchConfig;function qr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function so(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function td(e){var t=e._init;return t(e._payload)}function fm(e){function t(g,d){if(e){var m=g.deletions;m===null?(g.deletions=[d],g.flags|=16):m.push(d)}}function n(g,d){if(!e)return null;for(;d!==null;)t(g,d),d=d.sibling;return null}function r(g,d){for(g=new Map;d!==null;)d.key!==null?g.set(d.key,d):g.set(d.index,d),d=d.sibling;return g}function i(g,d){return g=vn(g,d),g.index=0,g.sibling=null,g}function o(g,d,m){return g.index=m,e?(m=g.alternate,m!==null?(m=m.index,m<d?(g.flags|=2,d):m):(g.flags|=2,d)):(g.flags|=1048576,d)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,d,m,_){return d===null||d.tag!==6?(d=Ca(m,g.mode,_),d.return=g,d):(d=i(d,m),d.return=g,d)}function l(g,d,m,_){var b=m.type;return b===ur?f(g,d,m.props.children,_,m.key):d!==null&&(d.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===on&&td(b)===d.type)?(_=i(d,m.props),_.ref=qr(g,d,m),_.return=g,_):(_=Ro(m.type,m.key,m.props,null,g.mode,_),_.ref=qr(g,d,m),_.return=g,_)}function c(g,d,m,_){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=ka(m,g.mode,_),d.return=g,d):(d=i(d,m.children||[]),d.return=g,d)}function f(g,d,m,_,b){return d===null||d.tag!==7?(d=Hn(m,g.mode,_,b),d.return=g,d):(d=i(d,m),d.return=g,d)}function h(g,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Ca(""+d,g.mode,m),d.return=g,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Qi:return m=Ro(d.type,d.key,d.props,null,g.mode,m),m.ref=qr(g,null,d),m.return=g,m;case lr:return d=ka(d,g.mode,m),d.return=g,d;case on:var _=d._init;return h(g,_(d._payload),m)}if(ri(d)||Hr(d))return d=Hn(d,g.mode,m,null),d.return=g,d;so(g,d)}return null}function u(g,d,m,_){var b=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return b!==null?null:a(g,d,""+m,_);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Qi:return m.key===b?l(g,d,m,_):null;case lr:return m.key===b?c(g,d,m,_):null;case on:return b=m._init,u(g,d,b(m._payload),_)}if(ri(m)||Hr(m))return b!==null?null:f(g,d,m,_,null);so(g,m)}return null}function y(g,d,m,_,b){if(typeof _=="string"&&_!==""||typeof _=="number")return g=g.get(m)||null,a(d,g,""+_,b);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Qi:return g=g.get(_.key===null?m:_.key)||null,l(d,g,_,b);case lr:return g=g.get(_.key===null?m:_.key)||null,c(d,g,_,b);case on:var w=_._init;return y(g,d,m,w(_._payload),b)}if(ri(_)||Hr(_))return g=g.get(m)||null,f(d,g,_,b,null);so(d,_)}return null}function p(g,d,m,_){for(var b=null,w=null,x=d,T=d=0,M=null;x!==null&&T<m.length;T++){x.index>T?(M=x,x=null):M=x.sibling;var I=u(g,x,m[T],_);if(I===null){x===null&&(x=M);break}e&&x&&I.alternate===null&&t(g,x),d=o(I,d,T),w===null?b=I:w.sibling=I,w=I,x=M}if(T===m.length)return n(g,x),ne&&In(g,T),b;if(x===null){for(;T<m.length;T++)x=h(g,m[T],_),x!==null&&(d=o(x,d,T),w===null?b=x:w.sibling=x,w=x);return ne&&In(g,T),b}for(x=r(g,x);T<m.length;T++)M=y(x,g,T,m[T],_),M!==null&&(e&&M.alternate!==null&&x.delete(M.key===null?T:M.key),d=o(M,d,T),w===null?b=M:w.sibling=M,w=M);return e&&x.forEach(function(se){return t(g,se)}),ne&&In(g,T),b}function E(g,d,m,_){var b=Hr(m);if(typeof b!="function")throw Error(C(150));if(m=b.call(m),m==null)throw Error(C(151));for(var w=b=null,x=d,T=d=0,M=null,I=m.next();x!==null&&!I.done;T++,I=m.next()){x.index>T?(M=x,x=null):M=x.sibling;var se=u(g,x,I.value,_);if(se===null){x===null&&(x=M);break}e&&x&&se.alternate===null&&t(g,x),d=o(se,d,T),w===null?b=se:w.sibling=se,w=se,x=M}if(I.done)return n(g,x),ne&&In(g,T),b;if(x===null){for(;!I.done;T++,I=m.next())I=h(g,I.value,_),I!==null&&(d=o(I,d,T),w===null?b=I:w.sibling=I,w=I);return ne&&In(g,T),b}for(x=r(g,x);!I.done;T++,I=m.next())I=y(x,g,T,I.value,_),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?T:I.key),d=o(I,d,T),w===null?b=I:w.sibling=I,w=I);return e&&x.forEach(function(he){return t(g,he)}),ne&&In(g,T),b}function S(g,d,m,_){if(typeof m=="object"&&m!==null&&m.type===ur&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Qi:e:{for(var b=m.key,w=d;w!==null;){if(w.key===b){if(b=m.type,b===ur){if(w.tag===7){n(g,w.sibling),d=i(w,m.props.children),d.return=g,g=d;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===on&&td(b)===w.type){n(g,w.sibling),d=i(w,m.props),d.ref=qr(g,w,m),d.return=g,g=d;break e}n(g,w);break}else t(g,w);w=w.sibling}m.type===ur?(d=Hn(m.props.children,g.mode,_,m.key),d.return=g,g=d):(_=Ro(m.type,m.key,m.props,null,g.mode,_),_.ref=qr(g,d,m),_.return=g,g=_)}return s(g);case lr:e:{for(w=m.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(g,d.sibling),d=i(d,m.children||[]),d.return=g,g=d;break e}else{n(g,d);break}else t(g,d);d=d.sibling}d=ka(m,g.mode,_),d.return=g,g=d}return s(g);case on:return w=m._init,S(g,d,w(m._payload),_)}if(ri(m))return p(g,d,m,_);if(Hr(m))return E(g,d,m,_);so(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(g,d.sibling),d=i(d,m),d.return=g,g=d):(n(g,d),d=Ca(m,g.mode,_),d.return=g,g=d),s(g)):n(g,d)}return S}var Nr=fm(!0),dm=fm(!1),Jo=xn(null),es=null,yr=null,Vu=null;function Wu(){Vu=yr=es=null}function qu(e){var t=Jo.current;ee(Jo),e._currentValue=t}function Tl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xr(e,t){es=e,Vu=yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(Vu!==e)if(e={context:e,memoizedValue:t,next:null},yr===null){if(es===null)throw Error(C(308));yr=e,es.dependencies={lanes:0,firstContext:e}}else yr=yr.next=e;return t}var Bn=null;function Xu(e){Bn===null?Bn=[e]:Bn.push(e)}function hm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Xu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sn=!1;function Qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qt(e,n)}return i=r.interleaved,i===null?(t.next=t,Xu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qt(e,n)}function To(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}function nd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ts(e,t,n,r){var i=e.updateQueue;sn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;s=0,f=c=l=null,a=o;do{var u=a.lane,y=a.eventTime;if((r&u)===u){f!==null&&(f=f.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,E=a;switch(u=t,y=n,E.tag){case 1:if(p=E.payload,typeof p=="function"){h=p.call(y,h,u);break e}h=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=E.payload,u=typeof p=="function"?p.call(y,h,u):p,u==null)break e;h=oe({},h,u);break e;case 2:sn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,u=i.effects,u===null?i.effects=[a]:u.push(a))}else y={eventTime:y,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=y,l=h):f=f.next=y,s|=u;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;u=a,a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}while(!0);if(f===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);qn|=s,e.lanes=s,e.memoizedState=h}}function rd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(C(191,i));i.call(r)}}}var $i={},It=xn($i),Ni=xn($i),Ai=xn($i);function jn(e){if(e===$i)throw Error(C(174));return e}function Ku(e,t){switch(K(Ai,t),K(Ni,e),K(It,$i),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ol(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ol(t,e)}ee(It),K(It,t)}function Ar(){ee(It),ee(Ni),ee(Ai)}function mm(e){jn(Ai.current);var t=jn(It.current),n=ol(t,e.type);t!==n&&(K(Ni,e),K(It,n))}function Yu(e){Ni.current===e&&(ee(It),ee(Ni))}var re=xn(0);function ns(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ea=[];function Zu(){for(var e=0;e<Ea.length;e++)Ea[e]._workInProgressVersionPrimary=null;Ea.length=0}var Co=Jt.ReactCurrentDispatcher,Sa=Jt.ReactCurrentBatchConfig,Wn=0,ie=null,pe=null,ge=null,rs=!1,pi=!1,Ri=0,R_=0;function we(){throw Error(C(321))}function Ju(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function ec(e,t,n,r,i,o){if(Wn=o,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Co.current=e===null||e.memoizedState===null?M_:F_,e=n(r,i),pi){o=0;do{if(pi=!1,Ri=0,25<=o)throw Error(C(301));o+=1,ge=pe=null,t.updateQueue=null,Co.current=L_,e=n(r,i)}while(pi)}if(Co.current=is,t=pe!==null&&pe.next!==null,Wn=0,ge=pe=ie=null,rs=!1,t)throw Error(C(300));return e}function tc(){var e=Ri!==0;return Ri=0,e}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?ie.memoizedState=ge=e:ge=ge.next=e,ge}function at(){if(pe===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ge===null?ie.memoizedState:ge.next;if(t!==null)ge=t,pe=e;else{if(e===null)throw Error(C(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ge===null?ie.memoizedState=ge=e:ge=ge.next=e}return ge}function Pi(e,t){return typeof t=="function"?t(e):t}function ba(e){var t=at(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=pe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var f=c.lane;if((Wn&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,s=r):l=l.next=h,ie.lanes|=f,qn|=f}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,wt(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ie.lanes|=o,qn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wa(e){var t=at(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);wt(o,t.memoizedState)||(He=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function gm(){}function ym(e,t){var n=ie,r=at(),i=t(),o=!wt(r.memoizedState,i);if(o&&(r.memoizedState=i,He=!0),r=r.queue,nc(Em.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,Ii(9,_m.bind(null,n,r,i,t),void 0,null),ye===null)throw Error(C(349));Wn&30||vm(n,t,i)}return i}function vm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ie.updateQueue,t===null?(t={lastEffect:null,stores:null},ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _m(e,t,n,r){t.value=n,t.getSnapshot=r,Sm(t)&&bm(e)}function Em(e,t,n){return n(function(){Sm(t)&&bm(e)})}function Sm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function bm(e){var t=Qt(e,1);t!==null&&bt(t,e,1,-1)}function id(e){var t=Nt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:e},t.queue=e,e=e.dispatch=D_.bind(null,ie,e),[t.memoizedState,e]}function Ii(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ie.updateQueue,t===null?(t={lastEffect:null,stores:null},ie.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function wm(){return at().memoizedState}function ko(e,t,n,r){var i=Nt();ie.flags|=e,i.memoizedState=Ii(1|t,n,void 0,r===void 0?null:r)}function ks(e,t,n,r){var i=at();r=r===void 0?null:r;var o=void 0;if(pe!==null){var s=pe.memoizedState;if(o=s.destroy,r!==null&&Ju(r,s.deps)){i.memoizedState=Ii(t,n,o,r);return}}ie.flags|=e,i.memoizedState=Ii(1|t,n,o,r)}function od(e,t){return ko(8390656,8,e,t)}function nc(e,t){return ks(2048,8,e,t)}function xm(e,t){return ks(4,2,e,t)}function Tm(e,t){return ks(4,4,e,t)}function Cm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function km(e,t,n){return n=n!=null?n.concat([e]):null,ks(4,4,Cm.bind(null,t,e),n)}function rc(){}function Om(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ju(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nm(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ju(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Am(e,t,n){return Wn&21?(wt(n,t)||(n=Mp(),ie.lanes|=n,qn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,He=!0),e.memoizedState=n)}function P_(e,t){var n=Q;Q=n!==0&&4>n?n:4,e(!0);var r=Sa.transition;Sa.transition={};try{e(!1),t()}finally{Q=n,Sa.transition=r}}function Rm(){return at().memoizedState}function I_(e,t,n){var r=yn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pm(e))Im(t,n);else if(n=hm(e,t,n,r),n!==null){var i=Me();bt(n,e,r,i),Dm(n,t,r)}}function D_(e,t,n){var r=yn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pm(e))Im(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,wt(a,s)){var l=t.interleaved;l===null?(i.next=i,Xu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=hm(e,t,i,r),n!==null&&(i=Me(),bt(n,e,r,i),Dm(n,t,r))}}function Pm(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function Im(e,t){pi=rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}var is={readContext:st,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},M_={readContext:st,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:od,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ko(4194308,4,Cm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=I_.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:id,useDebugValue:rc,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=id(!1),t=e[0];return e=P_.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ie,i=Nt();if(ne){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ye===null)throw Error(C(349));Wn&30||vm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,od(Em.bind(null,r,o,e),[e]),r.flags|=2048,Ii(9,_m.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Nt(),t=ye.identifierPrefix;if(ne){var n=Gt,r=$t;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ri++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=R_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},F_={readContext:st,useCallback:Om,useContext:st,useEffect:nc,useImperativeHandle:km,useInsertionEffect:xm,useLayoutEffect:Tm,useMemo:Nm,useReducer:ba,useRef:wm,useState:function(){return ba(Pi)},useDebugValue:rc,useDeferredValue:function(e){var t=at();return Am(t,pe.memoizedState,e)},useTransition:function(){var e=ba(Pi)[0],t=at().memoizedState;return[e,t]},useMutableSource:gm,useSyncExternalStore:ym,useId:Rm,unstable_isNewReconciler:!1},L_={readContext:st,useCallback:Om,useContext:st,useEffect:nc,useImperativeHandle:km,useInsertionEffect:xm,useLayoutEffect:Tm,useMemo:Nm,useReducer:wa,useRef:wm,useState:function(){return wa(Pi)},useDebugValue:rc,useDeferredValue:function(e){var t=at();return pe===null?t.memoizedState=e:Am(t,pe.memoizedState,e)},useTransition:function(){var e=wa(Pi)[0],t=at().memoizedState;return[e,t]},useMutableSource:gm,useSyncExternalStore:ym,useId:Rm,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=oe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Cl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:oe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Os={isMounted:function(e){return(e=e._reactInternals)?Jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Me(),i=yn(e),o=Vt(r,i);o.payload=t,n!=null&&(o.callback=n),t=mn(e,o,i),t!==null&&(bt(t,e,i,r),To(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Me(),i=yn(e),o=Vt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mn(e,o,i),t!==null&&(bt(t,e,i,r),To(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Me(),r=yn(e),i=Vt(n,r);i.tag=2,t!=null&&(i.callback=t),t=mn(e,i,r),t!==null&&(bt(t,e,r,n),To(t,e,r))}};function sd(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ti(n,r)||!Ti(i,o):!0}function Mm(e,t,n){var r=!1,i=bn,o=t.contextType;return typeof o=="object"&&o!==null?o=st(o):(i=Ge(t)?Gn:ke.current,r=t.contextTypes,o=(r=r!=null)?kr(e,i):bn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Os,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ad(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function kl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Qu(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=st(o):(o=Ge(t)?Gn:ke.current,i.context=kr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Cl(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Os.enqueueReplaceState(i,i.state,null),ts(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Rr(e,t){try{var n="",r=t;do n+=fv(r),r=r.return;while(r);var i=n}catch(o){i=`
37
+ `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ia=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ni(e):""}function fv(e){switch(e.tag){case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return ni("Suspense");case 19:return ni("SuspenseList");case 0:case 2:case 15:return e=oa(e.type,!1),e;case 11:return e=oa(e.type.render,!1),e;case 1:return e=oa(e.type,!0),e;default:return""}}function el(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ur:return"Fragment";case lr:return"Portal";case Ya:return"Profiler";case Nu:return"StrictMode";case Za:return"Suspense";case Ja:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pp:return(e.displayName||"Context")+".Consumer";case hp:return(e._context.displayName||"Context")+".Provider";case Au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ru:return t=e.displayName||null,t!==null?t:el(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return el(e(t))}catch{}}return null}function dv(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=t.render,e=e.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 el(t);case 8:return t===Nu?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hv(e){var t=gp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ki(e){e._valueTracker||(e._valueTracker=hv(e))}function yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tl(e,t){var n=t.checked;return oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vp(e,t){t=t.checked,t!=null&&Ou(e,"checked",t,!1)}function nl(e,t){vp(e,t);var n=Sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rl(e,t.type,n):t.hasOwnProperty("defaultValue")&&rl(e,t.type,Sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rl(e,t,n){(t!=="number"||zo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ri=Array.isArray;function Er(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=""+Sn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function il(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(ri(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sn(n)}}function _p(e,t){var n=Sn(t.value),r=Sn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function kf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ep(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 ol(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ep(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yi,Sp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yi=Yi||document.createElement("div"),Yi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _i(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ui={animationIterationCount:!0,aspectRatio:!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},pv=["Webkit","ms","Moz","O"];Object.keys(ui).forEach(function(e){pv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ui[t]=ui[e]})});function wp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ui.hasOwnProperty(e)&&ui[e]?(""+t).trim():t+"px"}function bp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=wp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var mv=oe({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 sl(e,t){if(t){if(mv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function al(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ll=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ul=null,Sr=null,wr=null;function Of(e){if(e=Hi(e)){if(typeof ul!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Ts(t),ul(e.stateNode,e.type,t))}}function xp(e){Sr?wr?wr.push(e):wr=[e]:Sr=e}function Tp(){if(Sr){var e=Sr,t=wr;if(wr=Sr=null,Of(e),t)for(e=0;e<t.length;e++)Of(t[e])}}function Cp(e,t){return e(t)}function kp(){}var sa=!1;function Op(e,t,n){if(sa)return e(t,n);sa=!0;try{return Cp(e,t,n)}finally{sa=!1,(Sr!==null||wr!==null)&&(kp(),Tp())}}function Ei(e,t){var n=e.stateNode;if(n===null)return null;var r=Ts(n);if(r===null)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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(C(231,t,typeof n));return n}var cl=!1;if(qt)try{var $r={};Object.defineProperty($r,"passive",{get:function(){cl=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{cl=!1}function gv(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var ci=!1,Uo=null,Ho=!1,fl=null,yv={onError:function(e){ci=!0,Uo=e}};function vv(e,t,n,r,i,o,s,a,l){ci=!1,Uo=null,gv.apply(yv,arguments)}function _v(e,t,n,r,i,o,s,a,l){if(vv.apply(this,arguments),ci){if(ci){var c=Uo;ci=!1,Uo=null}else throw Error(C(198));Ho||(Ho=!0,fl=c)}}function Jn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Np(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Nf(e){if(Jn(e)!==e)throw Error(C(188))}function Ev(e){var t=e.alternate;if(!t){if(t=Jn(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Nf(i),e;if(o===r)return Nf(i),t;o=o.sibling}throw Error(C(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Ap(e){return e=Ev(e),e!==null?Rp(e):null}function Rp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Rp(e);if(t!==null)return t;e=e.sibling}return null}var Pp=Qe.unstable_scheduleCallback,Af=Qe.unstable_cancelCallback,Sv=Qe.unstable_shouldYield,wv=Qe.unstable_requestPaint,ue=Qe.unstable_now,bv=Qe.unstable_getCurrentPriorityLevel,Iu=Qe.unstable_ImmediatePriority,Ip=Qe.unstable_UserBlockingPriority,$o=Qe.unstable_NormalPriority,xv=Qe.unstable_LowPriority,Dp=Qe.unstable_IdlePriority,Ss=null,Pt=null;function Tv(e){if(Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(Ss,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:Ov,Cv=Math.log,kv=Math.LN2;function Ov(e){return e>>>=0,e===0?32:31-(Cv(e)/kv|0)|0}var Zi=64,Ji=4194304;function ii(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Go(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=ii(a):(o&=s,o!==0&&(r=ii(o)))}else s=n&~i,s!==0?r=ii(s):o!==0&&(r=ii(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-St(t),i=1<<n,r|=e[n],t&=~i;return r}function Nv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Av(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-St(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=Nv(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function dl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mp(){var e=Zi;return Zi<<=1,!(Zi&4194240)&&(Zi=64),e}function aa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function Rv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-St(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Du(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Q=0;function Fp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lp,Mu,Bp,jp,zp,hl=!1,eo=[],fn=null,dn=null,hn=null,Si=new Map,wi=new Map,an=[],Pv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rf(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":hn=null;break;case"pointerover":case"pointerout":Si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wi.delete(t.pointerId)}}function Gr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Hi(t),t!==null&&Mu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Iv(e,t,n,r,i){switch(t){case"focusin":return fn=Gr(fn,e,t,n,r,i),!0;case"dragenter":return dn=Gr(dn,e,t,n,r,i),!0;case"mouseover":return hn=Gr(hn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Si.set(o,Gr(Si.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,wi.set(o,Gr(wi.get(o)||null,e,t,n,r,i)),!0}return!1}function Up(e){var t=Ln(e.target);if(t!==null){var n=Jn(t);if(n!==null){if(t=n.tag,t===13){if(t=Np(n),t!==null){e.blockedOn=t,zp(e.priority,function(){Bp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ll=r,n.target.dispatchEvent(r),ll=null}else return t=Hi(n),t!==null&&Mu(t),e.blockedOn=n,!1;t.shift()}return!0}function Pf(e,t,n){wo(e)&&n.delete(t)}function Dv(){hl=!1,fn!==null&&wo(fn)&&(fn=null),dn!==null&&wo(dn)&&(dn=null),hn!==null&&wo(hn)&&(hn=null),Si.forEach(Pf),wi.forEach(Pf)}function Vr(e,t){e.blockedOn===t&&(e.blockedOn=null,hl||(hl=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,Dv)))}function bi(e){function t(i){return Vr(i,e)}if(0<eo.length){Vr(eo[0],e);for(var n=1;n<eo.length;n++){var r=eo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fn!==null&&Vr(fn,e),dn!==null&&Vr(dn,e),hn!==null&&Vr(hn,e),Si.forEach(t),wi.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)Up(n),n.blockedOn===null&&an.shift()}var br=Jt.ReactCurrentBatchConfig,Vo=!0;function Mv(e,t,n,r){var i=Q,o=br.transition;br.transition=null;try{Q=1,Fu(e,t,n,r)}finally{Q=i,br.transition=o}}function Fv(e,t,n,r){var i=Q,o=br.transition;br.transition=null;try{Q=4,Fu(e,t,n,r)}finally{Q=i,br.transition=o}}function Fu(e,t,n,r){if(Vo){var i=pl(e,t,n,r);if(i===null)ya(e,t,r,Wo,n),Rf(e,r);else if(Iv(i,e,t,n,r))r.stopPropagation();else if(Rf(e,r),t&4&&-1<Pv.indexOf(e)){for(;i!==null;){var o=Hi(i);if(o!==null&&Lp(o),o=pl(e,t,n,r),o===null&&ya(e,t,r,Wo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ya(e,t,r,null,n)}}var Wo=null;function pl(e,t,n,r){if(Wo=null,e=Pu(r),e=Ln(e),e!==null)if(t=Jn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Np(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wo=e,null}function Hp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bv()){case Iu:return 1;case Ip:return 4;case $o:case xv:return 16;case Dp:return 536870912;default:return 16}default:return 16}}var un=null,Lu=null,bo=null;function $p(){if(bo)return bo;var e,t=Lu,n=t.length,r,i="value"in un?un.value:un.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return bo=i.slice(e,1<r?1-r:void 0)}function xo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function to(){return!0}function If(){return!1}function Je(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?to:If,this.isPropagationStopped=If,this}return oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=to)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=to)},persist:function(){},isPersistent:to}),t}var Br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bu=Je(Br),Ui=oe({},Br,{view:0,detail:0}),Lv=Je(Ui),la,ua,Wr,ws=oe({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wr&&(Wr&&e.type==="mousemove"?(la=e.screenX-Wr.screenX,ua=e.screenY-Wr.screenY):ua=la=0,Wr=e),la)},movementY:function(e){return"movementY"in e?e.movementY:ua}}),Df=Je(ws),Bv=oe({},ws,{dataTransfer:0}),jv=Je(Bv),zv=oe({},Ui,{relatedTarget:0}),ca=Je(zv),Uv=oe({},Br,{animationName:0,elapsedTime:0,pseudoElement:0}),Hv=Je(Uv),$v=oe({},Br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gv=Je($v),Vv=oe({},Br,{data:0}),Mf=Je(Vv),Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xv[e])?!!t[e]:!1}function ju(){return Qv}var Kv=oe({},Ui,{key:function(e){if(e.key){var t=Wv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(e){return e.type==="keypress"?xo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yv=Je(Kv),Zv=oe({},ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ff=Je(Zv),Jv=oe({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),e_=Je(Jv),t_=oe({},Br,{propertyName:0,elapsedTime:0,pseudoElement:0}),n_=Je(t_),r_=oe({},ws,{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:0,deltaMode:0}),i_=Je(r_),o_=[9,13,27,32],zu=qt&&"CompositionEvent"in window,fi=null;qt&&"documentMode"in document&&(fi=document.documentMode);var s_=qt&&"TextEvent"in window&&!fi,Gp=qt&&(!zu||fi&&8<fi&&11>=fi),Lf=" ",Bf=!1;function Vp(e,t){switch(e){case"keyup":return o_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cr=!1;function a_(e,t){switch(e){case"compositionend":return Wp(t);case"keypress":return t.which!==32?null:(Bf=!0,Lf);case"textInput":return e=t.data,e===Lf&&Bf?null:e;default:return null}}function l_(e,t){if(cr)return e==="compositionend"||!zu&&Vp(e,t)?(e=$p(),bo=Lu=un=null,cr=!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 Gp&&t.locale!=="ko"?null:t.data;default:return null}}var u_={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 jf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!u_[e.type]:t==="textarea"}function qp(e,t,n,r){xp(r),t=qo(t,"onChange"),0<t.length&&(n=new Bu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var di=null,xi=null;function c_(e){im(e,0)}function bs(e){var t=hr(e);if(yp(t))return e}function f_(e,t){if(e==="change")return t}var Xp=!1;if(qt){var fa;if(qt){var da="oninput"in document;if(!da){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),da=typeof zf.oninput=="function"}fa=da}else fa=!1;Xp=fa&&(!document.documentMode||9<document.documentMode)}function Uf(){di&&(di.detachEvent("onpropertychange",Qp),xi=di=null)}function Qp(e){if(e.propertyName==="value"&&bs(xi)){var t=[];qp(t,xi,e,Pu(e)),Op(c_,t)}}function d_(e,t,n){e==="focusin"?(Uf(),di=t,xi=n,di.attachEvent("onpropertychange",Qp)):e==="focusout"&&Uf()}function h_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bs(xi)}function p_(e,t){if(e==="click")return bs(t)}function m_(e,t){if(e==="input"||e==="change")return bs(t)}function g_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:g_;function Ti(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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++){var i=n[r];if(!Ka.call(t,i)||!bt(e[i],t[i]))return!1}return!0}function Hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $f(e,t){var n=Hf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hf(n)}}function Kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yp(){for(var e=window,t=zo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zo(e.document)}return t}function Uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function y_(e){var t=Yp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kp(n.ownerDocument.documentElement,n)){if(r!==null&&Uu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=$f(n,o);var s=$f(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var v_=qt&&"documentMode"in document&&11>=document.documentMode,fr=null,ml=null,hi=null,gl=!1;function Gf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gl||fr==null||fr!==zo(r)||(r=fr,"selectionStart"in r&&Uu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hi&&Ti(hi,r)||(hi=r,r=qo(ml,"onSelect"),0<r.length&&(t=new Bu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function no(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:no("Animation","AnimationEnd"),animationiteration:no("Animation","AnimationIteration"),animationstart:no("Animation","AnimationStart"),transitionend:no("Transition","TransitionEnd")},ha={},Zp={};qt&&(Zp=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);function xs(e){if(ha[e])return ha[e];if(!dr[e])return e;var t=dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zp)return ha[e]=t[n];return e}var Jp=xs("animationend"),em=xs("animationiteration"),tm=xs("animationstart"),nm=xs("transitionend"),rm=new Map,Vf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function bn(e,t){rm.set(e,t),Zn(t,[e])}for(var pa=0;pa<Vf.length;pa++){var ma=Vf[pa],__=ma.toLowerCase(),E_=ma[0].toUpperCase()+ma.slice(1);bn(__,"on"+E_)}bn(Jp,"onAnimationEnd");bn(em,"onAnimationIteration");bn(tm,"onAnimationStart");bn("dblclick","onDoubleClick");bn("focusin","onFocus");bn("focusout","onBlur");bn(nm,"onTransitionEnd");Cr("onMouseEnter",["mouseout","mouseover"]);Cr("onMouseLeave",["mouseout","mouseover"]);Cr("onPointerEnter",["pointerout","pointerover"]);Cr("onPointerLeave",["pointerout","pointerover"]);Zn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),S_=new Set("cancel close invalid load scroll toggle".split(" ").concat(oi));function Wf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,_v(r,t,void 0,e),e.currentTarget=null}function im(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Wf(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Wf(i,a,c),o=l}}}if(Ho)throw e=fl,Ho=!1,fl=null,e}function Z(e,t){var n=t[Sl];n===void 0&&(n=t[Sl]=new Set);var r=e+"__bubble";n.has(r)||(om(t,e,2,!1),n.add(r))}function ga(e,t,n){var r=0;t&&(r|=4),om(n,e,r,t)}var ro="_reactListening"+Math.random().toString(36).slice(2);function Ci(e){if(!e[ro]){e[ro]=!0,dp.forEach(function(n){n!=="selectionchange"&&(S_.has(n)||ga(n,!1,e),ga(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ro]||(t[ro]=!0,ga("selectionchange",!1,t))}}function om(e,t,n,r){switch(Hp(t)){case 1:var i=Mv;break;case 4:i=Fv;break;default:i=Fu}n=i.bind(null,t,n,e),i=void 0,!cl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ya(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Ln(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Op(function(){var c=o,f=Pu(n),h=[];e:{var u=rm.get(e);if(u!==void 0){var y=Bu,p=e;switch(e){case"keypress":if(xo(n)===0)break e;case"keydown":case"keyup":y=Yv;break;case"focusin":p="focus",y=ca;break;case"focusout":p="blur",y=ca;break;case"beforeblur":case"afterblur":y=ca;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Df;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=e_;break;case Jp:case em:case tm:y=Hv;break;case nm:y=n_;break;case"scroll":y=Lv;break;case"wheel":y=i_;break;case"copy":case"cut":case"paste":y=Gv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Ff}var E=(t&4)!==0,S=!E&&e==="scroll",g=E?u!==null?u+"Capture":null:u;E=[];for(var d=c,m;d!==null;){m=d;var _=m.stateNode;if(m.tag===5&&_!==null&&(m=_,g!==null&&(_=Ei(d,g),_!=null&&E.push(ki(d,_,m)))),S)break;d=d.return}0<E.length&&(u=new y(u,p,null,n,f),h.push({event:u,listeners:E}))}}if(!(t&7)){e:{if(u=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",u&&n!==ll&&(p=n.relatedTarget||n.fromElement)&&(Ln(p)||p[Xt]))break e;if((y||u)&&(u=f.window===f?f:(u=f.ownerDocument)?u.defaultView||u.parentWindow:window,y?(p=n.relatedTarget||n.toElement,y=c,p=p?Ln(p):null,p!==null&&(S=Jn(p),p!==S||p.tag!==5&&p.tag!==6)&&(p=null)):(y=null,p=c),y!==p)){if(E=Df,_="onMouseLeave",g="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(E=Ff,_="onPointerLeave",g="onPointerEnter",d="pointer"),S=y==null?u:hr(y),m=p==null?u:hr(p),u=new E(_,d+"leave",y,n,f),u.target=S,u.relatedTarget=m,_=null,Ln(f)===c&&(E=new E(g,d+"enter",p,n,f),E.target=m,E.relatedTarget=S,_=E),S=_,y&&p)t:{for(E=y,g=p,d=0,m=E;m;m=ir(m))d++;for(m=0,_=g;_;_=ir(_))m++;for(;0<d-m;)E=ir(E),d--;for(;0<m-d;)g=ir(g),m--;for(;d--;){if(E===g||g!==null&&E===g.alternate)break t;E=ir(E),g=ir(g)}E=null}else E=null;y!==null&&qf(h,u,y,E,!1),p!==null&&S!==null&&qf(h,S,p,E,!0)}}e:{if(u=c?hr(c):window,y=u.nodeName&&u.nodeName.toLowerCase(),y==="select"||y==="input"&&u.type==="file")var w=f_;else if(jf(u))if(Xp)w=m_;else{w=h_;var b=d_}else(y=u.nodeName)&&y.toLowerCase()==="input"&&(u.type==="checkbox"||u.type==="radio")&&(w=p_);if(w&&(w=w(e,c))){qp(h,w,n,f);break e}b&&b(e,u,c),e==="focusout"&&(b=u._wrapperState)&&b.controlled&&u.type==="number"&&rl(u,"number",u.value)}switch(b=c?hr(c):window,e){case"focusin":(jf(b)||b.contentEditable==="true")&&(fr=b,ml=c,hi=null);break;case"focusout":hi=ml=fr=null;break;case"mousedown":gl=!0;break;case"contextmenu":case"mouseup":case"dragend":gl=!1,Gf(h,n,f);break;case"selectionchange":if(v_)break;case"keydown":case"keyup":Gf(h,n,f)}var x;if(zu)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else cr?Vp(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Gp&&n.locale!=="ko"&&(cr||T!=="onCompositionStart"?T==="onCompositionEnd"&&cr&&(x=$p()):(un=f,Lu="value"in un?un.value:un.textContent,cr=!0)),b=qo(c,T),0<b.length&&(T=new Mf(T,e,null,n,f),h.push({event:T,listeners:b}),x?T.data=x:(x=Wp(n),x!==null&&(T.data=x)))),(x=s_?a_(e,n):l_(e,n))&&(c=qo(c,"onBeforeInput"),0<c.length&&(f=new Mf("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=x))}im(h,t)})}function ki(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ei(e,n),o!=null&&r.unshift(ki(e,o,i)),o=Ei(e,t),o!=null&&r.push(ki(e,o,i))),e=e.return}return r}function ir(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qf(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Ei(n,o),l!=null&&s.unshift(ki(n,l,a))):i||(l=Ei(n,o),l!=null&&s.push(ki(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var w_=/\r\n?/g,b_=/\u0000|\uFFFD/g;function Xf(e){return(typeof e=="string"?e:""+e).replace(w_,`
38
+ `).replace(b_,"")}function io(e,t,n){if(t=Xf(t),Xf(e)!==t&&n)throw Error(C(425))}function Xo(){}var yl=null,vl=null;function _l(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var El=typeof setTimeout=="function"?setTimeout:void 0,x_=typeof clearTimeout=="function"?clearTimeout:void 0,Qf=typeof Promise=="function"?Promise:void 0,T_=typeof queueMicrotask=="function"?queueMicrotask:typeof Qf<"u"?function(e){return Qf.resolve(null).then(e).catch(C_)}:El;function C_(e){setTimeout(function(){throw e})}function va(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),bi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);bi(t)}function pn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Kf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var jr=Math.random().toString(36).slice(2),At="__reactFiber$"+jr,Oi="__reactProps$"+jr,Xt="__reactContainer$"+jr,Sl="__reactEvents$"+jr,k_="__reactListeners$"+jr,O_="__reactHandles$"+jr;function Ln(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xt]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kf(e);e!==null;){if(n=e[At])return n;e=Kf(e)}return t}e=n,n=e.parentNode}return null}function Hi(e){return e=e[At]||e[Xt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Ts(e){return e[Oi]||null}var wl=[],pr=-1;function xn(e){return{current:e}}function ee(e){0>pr||(e.current=wl[pr],wl[pr]=null,pr--)}function K(e,t){pr++,wl[pr]=e.current,e.current=t}var wn={},ke=xn(wn),$e=xn(!1),Gn=wn;function kr(e,t){var n=e.type.contextTypes;if(!n)return wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ge(e){return e=e.childContextTypes,e!=null}function Qo(){ee($e),ee(ke)}function Yf(e,t,n){if(ke.current!==wn)throw Error(C(168));K(ke,t),K($e,n)}function sm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(C(108,dv(e)||"Unknown",i));return oe({},n,r)}function Ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wn,Gn=ke.current,K(ke,e),K($e,$e.current),!0}function Zf(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=sm(e,t,Gn),r.__reactInternalMemoizedMergedChildContext=e,ee($e),ee(ke),K(ke,e)):ee($e),K($e,n)}var Ut=null,Cs=!1,_a=!1;function am(e){Ut===null?Ut=[e]:Ut.push(e)}function N_(e){Cs=!0,am(e)}function Tn(){if(!_a&&Ut!==null){_a=!0;var e=0,t=Q;try{var n=Ut;for(Q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ut=null,Cs=!1}catch(i){throw Ut!==null&&(Ut=Ut.slice(e+1)),Pp(Iu,Tn),i}finally{Q=t,_a=!1}}return null}var mr=[],gr=0,Yo=null,Zo=0,tt=[],nt=0,Vn=null,$t=1,Gt="";function In(e,t){mr[gr++]=Zo,mr[gr++]=Yo,Yo=e,Zo=t}function lm(e,t,n){tt[nt++]=$t,tt[nt++]=Gt,tt[nt++]=Vn,Vn=e;var r=$t;e=Gt;var i=32-St(r)-1;r&=~(1<<i),n+=1;var o=32-St(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,$t=1<<32-St(t)+i|n<<i|r,Gt=o+e}else $t=1<<o|n<<i|r,Gt=e}function Hu(e){e.return!==null&&(In(e,1),lm(e,1,0))}function $u(e){for(;e===Yo;)Yo=mr[--gr],mr[gr]=null,Zo=mr[--gr],mr[gr]=null;for(;e===Vn;)Vn=tt[--nt],tt[nt]=null,Gt=tt[--nt],tt[nt]=null,$t=tt[--nt],tt[nt]=null}var Xe=null,qe=null,ne=!1,vt=null;function um(e,t){var n=it(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Jf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xe=e,qe=pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,qe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vn!==null?{id:$t,overflow:Gt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=it(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,qe=null,!0):!1;default:return!1}}function bl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xl(e){if(ne){var t=qe;if(t){var n=t;if(!Jf(e,t)){if(bl(e))throw Error(C(418));t=pn(n.nextSibling);var r=Xe;t&&Jf(e,t)?um(r,n):(e.flags=e.flags&-4097|2,ne=!1,Xe=e)}}else{if(bl(e))throw Error(C(418));e.flags=e.flags&-4097|2,ne=!1,Xe=e}}}function ed(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function oo(e){if(e!==Xe)return!1;if(!ne)return ed(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!_l(e.type,e.memoizedProps)),t&&(t=qe)){if(bl(e))throw cm(),Error(C(418));for(;t;)um(e,t),t=pn(t.nextSibling)}if(ed(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qe=pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qe=null}}else qe=Xe?pn(e.stateNode.nextSibling):null;return!0}function cm(){for(var e=qe;e;)e=pn(e.nextSibling)}function Or(){qe=Xe=null,ne=!1}function Gu(e){vt===null?vt=[e]:vt.push(e)}var A_=Jt.ReactCurrentBatchConfig;function qr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function so(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function td(e){var t=e._init;return t(e._payload)}function fm(e){function t(g,d){if(e){var m=g.deletions;m===null?(g.deletions=[d],g.flags|=16):m.push(d)}}function n(g,d){if(!e)return null;for(;d!==null;)t(g,d),d=d.sibling;return null}function r(g,d){for(g=new Map;d!==null;)d.key!==null?g.set(d.key,d):g.set(d.index,d),d=d.sibling;return g}function i(g,d){return g=vn(g,d),g.index=0,g.sibling=null,g}function o(g,d,m){return g.index=m,e?(m=g.alternate,m!==null?(m=m.index,m<d?(g.flags|=2,d):m):(g.flags|=2,d)):(g.flags|=1048576,d)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,d,m,_){return d===null||d.tag!==6?(d=Ca(m,g.mode,_),d.return=g,d):(d=i(d,m),d.return=g,d)}function l(g,d,m,_){var w=m.type;return w===ur?f(g,d,m.props.children,_,m.key):d!==null&&(d.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===on&&td(w)===d.type)?(_=i(d,m.props),_.ref=qr(g,d,m),_.return=g,_):(_=Ro(m.type,m.key,m.props,null,g.mode,_),_.ref=qr(g,d,m),_.return=g,_)}function c(g,d,m,_){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=ka(m,g.mode,_),d.return=g,d):(d=i(d,m.children||[]),d.return=g,d)}function f(g,d,m,_,w){return d===null||d.tag!==7?(d=Hn(m,g.mode,_,w),d.return=g,d):(d=i(d,m),d.return=g,d)}function h(g,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Ca(""+d,g.mode,m),d.return=g,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Qi:return m=Ro(d.type,d.key,d.props,null,g.mode,m),m.ref=qr(g,null,d),m.return=g,m;case lr:return d=ka(d,g.mode,m),d.return=g,d;case on:var _=d._init;return h(g,_(d._payload),m)}if(ri(d)||Hr(d))return d=Hn(d,g.mode,m,null),d.return=g,d;so(g,d)}return null}function u(g,d,m,_){var w=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return w!==null?null:a(g,d,""+m,_);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Qi:return m.key===w?l(g,d,m,_):null;case lr:return m.key===w?c(g,d,m,_):null;case on:return w=m._init,u(g,d,w(m._payload),_)}if(ri(m)||Hr(m))return w!==null?null:f(g,d,m,_,null);so(g,m)}return null}function y(g,d,m,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return g=g.get(m)||null,a(d,g,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Qi:return g=g.get(_.key===null?m:_.key)||null,l(d,g,_,w);case lr:return g=g.get(_.key===null?m:_.key)||null,c(d,g,_,w);case on:var b=_._init;return y(g,d,m,b(_._payload),w)}if(ri(_)||Hr(_))return g=g.get(m)||null,f(d,g,_,w,null);so(d,_)}return null}function p(g,d,m,_){for(var w=null,b=null,x=d,T=d=0,M=null;x!==null&&T<m.length;T++){x.index>T?(M=x,x=null):M=x.sibling;var I=u(g,x,m[T],_);if(I===null){x===null&&(x=M);break}e&&x&&I.alternate===null&&t(g,x),d=o(I,d,T),b===null?w=I:b.sibling=I,b=I,x=M}if(T===m.length)return n(g,x),ne&&In(g,T),w;if(x===null){for(;T<m.length;T++)x=h(g,m[T],_),x!==null&&(d=o(x,d,T),b===null?w=x:b.sibling=x,b=x);return ne&&In(g,T),w}for(x=r(g,x);T<m.length;T++)M=y(x,g,T,m[T],_),M!==null&&(e&&M.alternate!==null&&x.delete(M.key===null?T:M.key),d=o(M,d,T),b===null?w=M:b.sibling=M,b=M);return e&&x.forEach(function(se){return t(g,se)}),ne&&In(g,T),w}function E(g,d,m,_){var w=Hr(m);if(typeof w!="function")throw Error(C(150));if(m=w.call(m),m==null)throw Error(C(151));for(var b=w=null,x=d,T=d=0,M=null,I=m.next();x!==null&&!I.done;T++,I=m.next()){x.index>T?(M=x,x=null):M=x.sibling;var se=u(g,x,I.value,_);if(se===null){x===null&&(x=M);break}e&&x&&se.alternate===null&&t(g,x),d=o(se,d,T),b===null?w=se:b.sibling=se,b=se,x=M}if(I.done)return n(g,x),ne&&In(g,T),w;if(x===null){for(;!I.done;T++,I=m.next())I=h(g,I.value,_),I!==null&&(d=o(I,d,T),b===null?w=I:b.sibling=I,b=I);return ne&&In(g,T),w}for(x=r(g,x);!I.done;T++,I=m.next())I=y(x,g,T,I.value,_),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?T:I.key),d=o(I,d,T),b===null?w=I:b.sibling=I,b=I);return e&&x.forEach(function(he){return t(g,he)}),ne&&In(g,T),w}function S(g,d,m,_){if(typeof m=="object"&&m!==null&&m.type===ur&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Qi:e:{for(var w=m.key,b=d;b!==null;){if(b.key===w){if(w=m.type,w===ur){if(b.tag===7){n(g,b.sibling),d=i(b,m.props.children),d.return=g,g=d;break e}}else if(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===on&&td(w)===b.type){n(g,b.sibling),d=i(b,m.props),d.ref=qr(g,b,m),d.return=g,g=d;break e}n(g,b);break}else t(g,b);b=b.sibling}m.type===ur?(d=Hn(m.props.children,g.mode,_,m.key),d.return=g,g=d):(_=Ro(m.type,m.key,m.props,null,g.mode,_),_.ref=qr(g,d,m),_.return=g,g=_)}return s(g);case lr:e:{for(b=m.key;d!==null;){if(d.key===b)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(g,d.sibling),d=i(d,m.children||[]),d.return=g,g=d;break e}else{n(g,d);break}else t(g,d);d=d.sibling}d=ka(m,g.mode,_),d.return=g,g=d}return s(g);case on:return b=m._init,S(g,d,b(m._payload),_)}if(ri(m))return p(g,d,m,_);if(Hr(m))return E(g,d,m,_);so(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(g,d.sibling),d=i(d,m),d.return=g,g=d):(n(g,d),d=Ca(m,g.mode,_),d.return=g,g=d),s(g)):n(g,d)}return S}var Nr=fm(!0),dm=fm(!1),Jo=xn(null),es=null,yr=null,Vu=null;function Wu(){Vu=yr=es=null}function qu(e){var t=Jo.current;ee(Jo),e._currentValue=t}function Tl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xr(e,t){es=e,Vu=yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(Vu!==e)if(e={context:e,memoizedValue:t,next:null},yr===null){if(es===null)throw Error(C(308));yr=e,es.dependencies={lanes:0,firstContext:e}}else yr=yr.next=e;return t}var Bn=null;function Xu(e){Bn===null?Bn=[e]:Bn.push(e)}function hm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Xu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sn=!1;function Qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qt(e,n)}return i=r.interleaved,i===null?(t.next=t,Xu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qt(e,n)}function To(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}function nd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ts(e,t,n,r){var i=e.updateQueue;sn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;s=0,f=c=l=null,a=o;do{var u=a.lane,y=a.eventTime;if((r&u)===u){f!==null&&(f=f.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,E=a;switch(u=t,y=n,E.tag){case 1:if(p=E.payload,typeof p=="function"){h=p.call(y,h,u);break e}h=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=E.payload,u=typeof p=="function"?p.call(y,h,u):p,u==null)break e;h=oe({},h,u);break e;case 2:sn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,u=i.effects,u===null?i.effects=[a]:u.push(a))}else y={eventTime:y,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=y,l=h):f=f.next=y,s|=u;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;u=a,a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}while(!0);if(f===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);qn|=s,e.lanes=s,e.memoizedState=h}}function rd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(C(191,i));i.call(r)}}}var $i={},It=xn($i),Ni=xn($i),Ai=xn($i);function jn(e){if(e===$i)throw Error(C(174));return e}function Ku(e,t){switch(K(Ai,t),K(Ni,e),K(It,$i),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ol(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ol(t,e)}ee(It),K(It,t)}function Ar(){ee(It),ee(Ni),ee(Ai)}function mm(e){jn(Ai.current);var t=jn(It.current),n=ol(t,e.type);t!==n&&(K(Ni,e),K(It,n))}function Yu(e){Ni.current===e&&(ee(It),ee(Ni))}var re=xn(0);function ns(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ea=[];function Zu(){for(var e=0;e<Ea.length;e++)Ea[e]._workInProgressVersionPrimary=null;Ea.length=0}var Co=Jt.ReactCurrentDispatcher,Sa=Jt.ReactCurrentBatchConfig,Wn=0,ie=null,pe=null,ge=null,rs=!1,pi=!1,Ri=0,R_=0;function be(){throw Error(C(321))}function Ju(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bt(e[n],t[n]))return!1;return!0}function ec(e,t,n,r,i,o){if(Wn=o,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Co.current=e===null||e.memoizedState===null?M_:F_,e=n(r,i),pi){o=0;do{if(pi=!1,Ri=0,25<=o)throw Error(C(301));o+=1,ge=pe=null,t.updateQueue=null,Co.current=L_,e=n(r,i)}while(pi)}if(Co.current=is,t=pe!==null&&pe.next!==null,Wn=0,ge=pe=ie=null,rs=!1,t)throw Error(C(300));return e}function tc(){var e=Ri!==0;return Ri=0,e}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?ie.memoizedState=ge=e:ge=ge.next=e,ge}function at(){if(pe===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ge===null?ie.memoizedState:ge.next;if(t!==null)ge=t,pe=e;else{if(e===null)throw Error(C(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ge===null?ie.memoizedState=ge=e:ge=ge.next=e}return ge}function Pi(e,t){return typeof t=="function"?t(e):t}function wa(e){var t=at(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=pe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var f=c.lane;if((Wn&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,s=r):l=l.next=h,ie.lanes|=f,qn|=f}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,bt(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ie.lanes|=o,qn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ba(e){var t=at(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);bt(o,t.memoizedState)||(He=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function gm(){}function ym(e,t){var n=ie,r=at(),i=t(),o=!bt(r.memoizedState,i);if(o&&(r.memoizedState=i,He=!0),r=r.queue,nc(Em.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,Ii(9,_m.bind(null,n,r,i,t),void 0,null),ye===null)throw Error(C(349));Wn&30||vm(n,t,i)}return i}function vm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ie.updateQueue,t===null?(t={lastEffect:null,stores:null},ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _m(e,t,n,r){t.value=n,t.getSnapshot=r,Sm(t)&&wm(e)}function Em(e,t,n){return n(function(){Sm(t)&&wm(e)})}function Sm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bt(e,n)}catch{return!0}}function wm(e){var t=Qt(e,1);t!==null&&wt(t,e,1,-1)}function id(e){var t=Nt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:e},t.queue=e,e=e.dispatch=D_.bind(null,ie,e),[t.memoizedState,e]}function Ii(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ie.updateQueue,t===null?(t={lastEffect:null,stores:null},ie.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function bm(){return at().memoizedState}function ko(e,t,n,r){var i=Nt();ie.flags|=e,i.memoizedState=Ii(1|t,n,void 0,r===void 0?null:r)}function ks(e,t,n,r){var i=at();r=r===void 0?null:r;var o=void 0;if(pe!==null){var s=pe.memoizedState;if(o=s.destroy,r!==null&&Ju(r,s.deps)){i.memoizedState=Ii(t,n,o,r);return}}ie.flags|=e,i.memoizedState=Ii(1|t,n,o,r)}function od(e,t){return ko(8390656,8,e,t)}function nc(e,t){return ks(2048,8,e,t)}function xm(e,t){return ks(4,2,e,t)}function Tm(e,t){return ks(4,4,e,t)}function Cm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function km(e,t,n){return n=n!=null?n.concat([e]):null,ks(4,4,Cm.bind(null,t,e),n)}function rc(){}function Om(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ju(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nm(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ju(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Am(e,t,n){return Wn&21?(bt(n,t)||(n=Mp(),ie.lanes|=n,qn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,He=!0),e.memoizedState=n)}function P_(e,t){var n=Q;Q=n!==0&&4>n?n:4,e(!0);var r=Sa.transition;Sa.transition={};try{e(!1),t()}finally{Q=n,Sa.transition=r}}function Rm(){return at().memoizedState}function I_(e,t,n){var r=yn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pm(e))Im(t,n);else if(n=hm(e,t,n,r),n!==null){var i=Me();wt(n,e,r,i),Dm(n,t,r)}}function D_(e,t,n){var r=yn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pm(e))Im(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,bt(a,s)){var l=t.interleaved;l===null?(i.next=i,Xu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=hm(e,t,i,r),n!==null&&(i=Me(),wt(n,e,r,i),Dm(n,t,r))}}function Pm(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function Im(e,t){pi=rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}var is={readContext:st,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},M_={readContext:st,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:od,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ko(4194308,4,Cm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=I_.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:id,useDebugValue:rc,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=id(!1),t=e[0];return e=P_.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ie,i=Nt();if(ne){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ye===null)throw Error(C(349));Wn&30||vm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,od(Em.bind(null,r,o,e),[e]),r.flags|=2048,Ii(9,_m.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Nt(),t=ye.identifierPrefix;if(ne){var n=Gt,r=$t;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ri++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=R_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},F_={readContext:st,useCallback:Om,useContext:st,useEffect:nc,useImperativeHandle:km,useInsertionEffect:xm,useLayoutEffect:Tm,useMemo:Nm,useReducer:wa,useRef:bm,useState:function(){return wa(Pi)},useDebugValue:rc,useDeferredValue:function(e){var t=at();return Am(t,pe.memoizedState,e)},useTransition:function(){var e=wa(Pi)[0],t=at().memoizedState;return[e,t]},useMutableSource:gm,useSyncExternalStore:ym,useId:Rm,unstable_isNewReconciler:!1},L_={readContext:st,useCallback:Om,useContext:st,useEffect:nc,useImperativeHandle:km,useInsertionEffect:xm,useLayoutEffect:Tm,useMemo:Nm,useReducer:ba,useRef:bm,useState:function(){return ba(Pi)},useDebugValue:rc,useDeferredValue:function(e){var t=at();return pe===null?t.memoizedState=e:Am(t,pe.memoizedState,e)},useTransition:function(){var e=ba(Pi)[0],t=at().memoizedState;return[e,t]},useMutableSource:gm,useSyncExternalStore:ym,useId:Rm,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=oe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Cl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:oe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Os={isMounted:function(e){return(e=e._reactInternals)?Jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Me(),i=yn(e),o=Vt(r,i);o.payload=t,n!=null&&(o.callback=n),t=mn(e,o,i),t!==null&&(wt(t,e,i,r),To(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Me(),i=yn(e),o=Vt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mn(e,o,i),t!==null&&(wt(t,e,i,r),To(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Me(),r=yn(e),i=Vt(n,r);i.tag=2,t!=null&&(i.callback=t),t=mn(e,i,r),t!==null&&(wt(t,e,r,n),To(t,e,r))}};function sd(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ti(n,r)||!Ti(i,o):!0}function Mm(e,t,n){var r=!1,i=wn,o=t.contextType;return typeof o=="object"&&o!==null?o=st(o):(i=Ge(t)?Gn:ke.current,r=t.contextTypes,o=(r=r!=null)?kr(e,i):wn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Os,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ad(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function kl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Qu(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=st(o):(o=Ge(t)?Gn:ke.current,i.context=kr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Cl(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Os.enqueueReplaceState(i,i.state,null),ts(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Rr(e,t){try{var n="",r=t;do n+=fv(r),r=r.return;while(r);var i=n}catch(o){i=`
39
39
  Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function xa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ol(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var B_=typeof WeakMap=="function"?WeakMap:Map;function Fm(e,t,n){n=Vt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ss||(ss=!0,Bl=r),Ol(e,t)},n}function Lm(e,t,n){n=Vt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ol(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ol(e,t),typeof r!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ld(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new B_;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Z_.bind(null,e,t,n),t.then(e,e))}function ud(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function cd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vt(-1,1),t.tag=2,mn(n,t,1))),n.lanes|=1),e)}var j_=Jt.ReactCurrentOwner,He=!1;function Ne(e,t,n,r){t.child=e===null?dm(t,null,n,r):Nr(t,e.child,n,r)}function fd(e,t,n,r,i){n=n.render;var o=t.ref;return xr(t,i),r=ec(e,t,n,r,o,i),n=tc(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kt(e,t,i)):(ne&&n&&Hu(t),t.flags|=1,Ne(e,t,r,i),t.child)}function dd(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!fc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Bm(e,t,o,r,i)):(e=Ro(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ti,n(s,r)&&e.ref===t.ref)return Kt(e,t,i)}return t.flags|=1,e=vn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Bm(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ti(o,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,Kt(e,t,i)}return Nl(e,t,n,r,i)}function jm(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(_r,We),We|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(_r,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,K(_r,We),We|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,K(_r,We),We|=r;return Ne(e,t,i,n),t.child}function zm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nl(e,t,n,r,i){var o=Ge(n)?Gn:ke.current;return o=kr(t,o),xr(t,i),n=ec(e,t,n,r,o,i),r=tc(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kt(e,t,i)):(ne&&r&&Hu(t),t.flags|=1,Ne(e,t,n,i),t.child)}function hd(e,t,n,r,i){if(Ge(n)){var o=!0;Ko(t)}else o=!1;if(xr(t,i),t.stateNode===null)Oo(e,t),Mm(t,n,r),kl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=st(c):(c=Ge(n)?Gn:ke.current,c=kr(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&ad(t,s,r,c),sn=!1;var u=t.memoizedState;s.state=u,ts(t,r,s,i),l=t.memoizedState,a!==r||u!==l||$e.current||sn?(typeof f=="function"&&(Cl(t,n,f,r),l=t.memoizedState),(a=sn||sd(t,n,a,r,u,l,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,pm(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:mt(t.type,a),s.props=c,h=t.pendingProps,u=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=st(l):(l=Ge(n)?Gn:ke.current,l=kr(t,l));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||u!==l)&&ad(t,s,r,l),sn=!1,u=t.memoizedState,s.state=u,ts(t,r,s,i);var p=t.memoizedState;a!==h||u!==p||$e.current||sn?(typeof y=="function"&&(Cl(t,n,y,r),p=t.memoizedState),(c=sn||sd(t,n,c,r,u,p,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&u===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&u===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&u===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&u===e.memoizedState||(t.flags|=1024),r=!1)}return Al(e,t,n,r,o,i)}function Al(e,t,n,r,i,o){zm(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Zf(t,n,!1),Kt(e,t,o);r=t.stateNode,j_.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Nr(t,e.child,null,o),t.child=Nr(t,null,a,o)):Ne(e,t,a,o),t.memoizedState=r.state,i&&Zf(t,n,!0),t.child}function Um(e){var t=e.stateNode;t.pendingContext?Yf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yf(e,t.context,!1),Ku(e,t.containerInfo)}function pd(e,t,n,r,i){return Or(),Gu(i),t.flags|=256,Ne(e,t,n,r),t.child}var Rl={dehydrated:null,treeContext:null,retryLane:0};function Pl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hm(e,t,n){var r=t.pendingProps,i=re.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),K(re,i&1),e===null)return xl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Rs(s,r,0,null),e=Hn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Pl(n),t.memoizedState=Rl,e):ic(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return z_(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=vn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=vn(a,o):(o=Hn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Pl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Rl,r}return o=e.child,e=o.sibling,r=vn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ic(e,t){return t=Rs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ao(e,t,n,r){return r!==null&&Gu(r),Nr(t,e.child,null,n),e=ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function z_(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=xa(Error(C(422))),ao(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Rs({mode:"visible",children:r.children},i,0,null),o=Hn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Nr(t,e.child,null,s),t.child.memoizedState=Pl(s),t.memoizedState=Rl,o);if(!(t.mode&1))return ao(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(C(419)),r=xa(o,r,void 0),ao(e,t,s,r)}if(a=(s&e.childLanes)!==0,He||a){if(r=ye,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Qt(e,i),bt(r,e,i,-1))}return cc(),r=xa(Error(C(421))),ao(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=J_.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,qe=pn(i.nextSibling),Xe=t,ne=!0,vt=null,e!==null&&(tt[nt++]=$t,tt[nt++]=Gt,tt[nt++]=Vn,$t=e.id,Gt=e.overflow,Vn=t),t=ic(t,r.children),t.flags|=4096,t)}function md(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Tl(e.return,t,n)}function Ta(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $m(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ne(e,t,r.children,n),r=re.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&md(e,n,t);else if(e.tag===19)md(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(re,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ns(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ta(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ns(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ta(t,!0,n,null,o);break;case"together":Ta(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function U_(e,t,n){switch(t.tag){case 3:Um(t),Or();break;case 5:mm(t);break;case 1:Ge(t.type)&&Ko(t);break;case 4:Ku(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(Jo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?Hm(e,t,n):(K(re,re.current&1),e=Kt(e,t,n),e!==null?e.sibling:null);K(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $m(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,jm(e,t,n)}return Kt(e,t,n)}var Gm,Il,Vm,Wm;Gm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Il=function(){};Vm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,jn(It.current);var o=null;switch(n){case"input":i=tl(e,i),r=tl(e,r),o=[];break;case"select":i=oe({},i,{value:void 0}),r=oe({},r,{value:void 0}),o=[];break;case"textarea":i=il(e,i),r=il(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xo)}sl(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(vi.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(vi.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Z("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Wm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xr(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function H_(e,t,n){var r=t.pendingProps;switch($u(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Ge(t.type)&&Qo(),xe(t),null;case 3:return r=t.stateNode,Ar(),ee($e),ee(ke),Zu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(oo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,vt!==null&&(Ul(vt),vt=null))),Il(e,t),xe(t),null;case 5:Yu(t);var i=jn(Ai.current);if(n=t.type,e!==null&&t.stateNode!=null)Vm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return xe(t),null}if(e=jn(It.current),oo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[At]=t,r[Oi]=o,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(i=0;i<oi.length;i++)Z(oi[i],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":xf(r,o),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Z("invalid",r);break;case"textarea":Cf(r,o),Z("invalid",r)}sl(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&io(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&io(r.textContent,a,e),i=["children",""+a]):vi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Z("scroll",r)}switch(n){case"input":Ki(r),Tf(r,o,!0);break;case"textarea":Ki(r),kf(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Xo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ep(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[At]=t,e[Oi]=r,Gm(e,t,!1,!1),t.stateNode=e;e:{switch(s=al(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;i<oi.length;i++)Z(oi[i],e);i=r;break;case"source":Z("error",e),i=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),i=r;break;case"details":Z("toggle",e),i=r;break;case"input":xf(e,r),i=tl(e,r),Z("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=oe({},r,{value:void 0}),Z("invalid",e);break;case"textarea":Cf(e,r),i=il(e,r),Z("invalid",e);break;default:i=r}sl(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?wp(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Sp(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&_i(e,l):typeof l=="number"&&_i(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(vi.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Z("scroll",e):l!=null&&Ou(e,o,l,s))}switch(n){case"input":Ki(e),Tf(e,r,!1);break;case"textarea":Ki(e),kf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Er(e,!!r.multiple,o,!1):r.defaultValue!=null&&Er(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Xo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)Wm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=jn(Ai.current),jn(It.current),oo(t)){if(r=t.stateNode,n=t.memoizedProps,r[At]=t,(o=r.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:io(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&io(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[At]=t,t.stateNode=r}return xe(t),null;case 13:if(ee(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&qe!==null&&t.mode&1&&!(t.flags&128))cm(),Or(),t.flags|=98560,o=!1;else if(o=oo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(C(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(C(317));o[At]=t}else Or(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),o=!1}else vt!==null&&(Ul(vt),vt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||re.current&1?me===0&&(me=3):cc())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return Ar(),Il(e,t),e===null&&Ci(t.stateNode.containerInfo),xe(t),null;case 10:return qu(t.type._context),xe(t),null;case 17:return Ge(t.type)&&Qo(),xe(t),null;case 19:if(ee(re),o=t.memoizedState,o===null)return xe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Xr(o,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ns(e),s!==null){for(t.flags|=128,Xr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(re,re.current&1|2),t.child}e=e.sibling}o.tail!==null&&ue()>Pr&&(t.flags|=128,r=!0,Xr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ns(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ne)return xe(t),null}else 2*ue()-o.renderingStartTime>Pr&&n!==1073741824&&(t.flags|=128,r=!0,Xr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ue(),t.sibling=null,n=re.current,K(re,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return uc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function $_(e,t){switch($u(t),t.tag){case 1:return Ge(t.type)&&Qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ar(),ee($e),ee(ke),Zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yu(t),null;case 13:if(ee(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(re),null;case 4:return Ar(),null;case 10:return qu(t.type._context),null;case 22:case 23:return uc(),null;case 24:return null;default:return null}}var lo=!1,Ce=!1,G_=typeof WeakSet=="function"?WeakSet:Set,A=null;function vr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function Dl(e,t,n){try{n()}catch(r){le(e,t,r)}}var gd=!1;function V_(e,t){if(yl=Vo,e=Yp(),Uu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,f=0,h=e,u=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(y=h.firstChild)!==null;)u=h,h=y;for(;;){if(h===e)break t;if(u===n&&++c===i&&(a=s),u===o&&++f===r&&(l=s),(y=h.nextSibling)!==null)break;h=u,u=h.parentNode}h=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(vl={focusedElem:e,selectionRange:n},Vo=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var E=p.memoizedProps,S=p.memoizedState,g=t.stateNode,d=g.getSnapshotBeforeUpdate(t.elementType===t.type?E:mt(t.type,E),S);g.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(_){le(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return p=gd,gd=!1,p}function mi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Dl(t,n,o)}i=i.next}while(i!==r)}}function Ns(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 Ml(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qm(e){var t=e.alternate;t!==null&&(e.alternate=null,qm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[Oi],delete t[Sl],delete t[k_],delete t[O_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xm(e){return e.tag===5||e.tag===3||e.tag===4}function yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xo));else if(r!==4&&(e=e.child,e!==null))for(Fl(e,t,n),e=e.sibling;e!==null;)Fl(e,t,n),e=e.sibling}function Ll(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ll(e,t,n),e=e.sibling;e!==null;)Ll(e,t,n),e=e.sibling}var _e=null,gt=!1;function en(e,t,n){for(n=n.child;n!==null;)Qm(e,t,n),n=n.sibling}function Qm(e,t,n){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(Ss,n)}catch{}switch(n.tag){case 5:Ce||vr(n,t);case 6:var r=_e,i=gt;_e=null,en(e,t,n),_e=r,gt=i,_e!==null&&(gt?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(gt?(e=_e,n=n.stateNode,e.nodeType===8?va(e.parentNode,n):e.nodeType===1&&va(e,n),wi(e)):va(_e,n.stateNode));break;case 4:r=_e,i=gt,_e=n.stateNode.containerInfo,gt=!0,en(e,t,n),_e=r,gt=i;break;case 0:case 11:case 14:case 15:if(!Ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Dl(n,t,s),i=i.next}while(i!==r)}en(e,t,n);break;case 1:if(!Ce&&(vr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}en(e,t,n);break;case 21:en(e,t,n);break;case 22:n.mode&1?(Ce=(r=Ce)||n.memoizedState!==null,en(e,t,n),Ce=r):en(e,t,n);break;default:en(e,t,n)}}function vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new G_),t.forEach(function(r){var i=e1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:_e=a.stateNode,gt=!1;break e;case 3:_e=a.stateNode.containerInfo,gt=!0;break e;case 4:_e=a.stateNode.containerInfo,gt=!0;break e}a=a.return}if(_e===null)throw Error(C(160));Qm(o,s,i),_e=null,gt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){le(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Km(t,e),t=t.sibling}function Km(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ht(t,e),Ot(e),r&4){try{mi(3,e,e.return),Ns(3,e)}catch(E){le(e,e.return,E)}try{mi(5,e,e.return)}catch(E){le(e,e.return,E)}}break;case 1:ht(t,e),Ot(e),r&512&&n!==null&&vr(n,n.return);break;case 5:if(ht(t,e),Ot(e),r&512&&n!==null&&vr(n,n.return),e.flags&32){var i=e.stateNode;try{_i(i,"")}catch(E){le(e,e.return,E)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&vp(i,o),al(a,s);var c=al(a,o);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];f==="style"?wp(i,h):f==="dangerouslySetInnerHTML"?Sp(i,h):f==="children"?_i(i,h):Ou(i,f,h,c)}switch(a){case"input":nl(i,o);break;case"textarea":_p(i,o);break;case"select":var u=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Er(i,!!o.multiple,y,!1):u!==!!o.multiple&&(o.defaultValue!=null?Er(i,!!o.multiple,o.defaultValue,!0):Er(i,!!o.multiple,o.multiple?[]:"",!1))}i[Oi]=o}catch(E){le(e,e.return,E)}}break;case 6:if(ht(t,e),Ot(e),r&4){if(e.stateNode===null)throw Error(C(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(E){le(e,e.return,E)}}break;case 3:if(ht(t,e),Ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wi(t.containerInfo)}catch(E){le(e,e.return,E)}break;case 4:ht(t,e),Ot(e);break;case 13:ht(t,e),Ot(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ac=ue())),r&4&&vd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ce=(c=Ce)||f,ht(t,e),Ce=c):ht(t,e),Ot(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(A=e,f=e.child;f!==null;){for(h=A=f;A!==null;){switch(u=A,y=u.child,u.tag){case 0:case 11:case 14:case 15:mi(4,u,u.return);break;case 1:vr(u,u.return);var p=u.stateNode;if(typeof p.componentWillUnmount=="function"){r=u,n=u.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(E){le(r,n,E)}}break;case 5:vr(u,u.return);break;case 22:if(u.memoizedState!==null){Ed(h);continue}}y!==null?(y.return=u,A=y):Ed(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=bp("display",s))}catch(E){le(e,e.return,E)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(E){le(e,e.return,E)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ht(t,e),Ot(e),r&4&&vd(e);break;case 21:break;default:ht(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Xm(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(_i(i,""),r.flags&=-33);var o=yd(e);Ll(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=yd(e);Fl(e,a,s);break;default:throw Error(C(161))}}catch(l){le(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function W_(e,t,n){A=e,Ym(e)}function Ym(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var i=A,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||lo;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ce;a=lo;var c=Ce;if(lo=s,(Ce=l)&&!c)for(A=i;A!==null;)s=A,l=s.child,s.tag===22&&s.memoizedState!==null?Sd(i):l!==null?(l.return=s,A=l):Sd(i);for(;o!==null;)A=o,Ym(o),o=o.sibling;A=i,lo=a,Ce=c}_d(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,A=o):_d(e)}}function _d(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ce||Ns(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ce)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&rd(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}rd(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&wi(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}Ce||t.flags&512&&Ml(t)}catch(u){le(t,t.return,u)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Ed(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Sd(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ns(4,t)}catch(l){le(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){le(t,i,l)}}var o=t.return;try{Ml(t)}catch(l){le(t,o,l)}break;case 5:var s=t.return;try{Ml(t)}catch(l){le(t,s,l)}}}catch(l){le(t,t.return,l)}if(t===e){A=null;break}var a=t.sibling;if(a!==null){a.return=t.return,A=a;break}A=t.return}}var q_=Math.ceil,os=Jt.ReactCurrentDispatcher,oc=Jt.ReactCurrentOwner,ot=Jt.ReactCurrentBatchConfig,q=0,ye=null,fe=null,Se=0,We=0,_r=xn(0),me=0,Di=null,qn=0,As=0,sc=0,gi=null,ze=null,ac=0,Pr=1/0,zt=null,ss=!1,Bl=null,gn=null,uo=!1,cn=null,as=0,yi=0,jl=null,No=-1,Ao=0;function Me(){return q&6?ue():No!==-1?No:No=ue()}function yn(e){return e.mode&1?q&2&&Se!==0?Se&-Se:A_.transition!==null?(Ao===0&&(Ao=Mp()),Ao):(e=Q,e!==0||(e=window.event,e=e===void 0?16:Hp(e.type)),e):1}function bt(e,t,n,r){if(50<yi)throw yi=0,jl=null,Error(C(185));zi(e,n,r),(!(q&2)||e!==ye)&&(e===ye&&(!(q&2)&&(As|=n),me===4&&ln(e,Se)),Ve(e,r),n===1&&q===0&&!(t.mode&1)&&(Pr=ue()+500,Cs&&Tn()))}function Ve(e,t){var n=e.callbackNode;Av(e,t);var r=Go(e,e===ye?Se:0);if(r===0)n!==null&&Af(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Af(n),t===1)e.tag===0?N_(bd.bind(null,e)):am(bd.bind(null,e)),T_(function(){!(q&6)&&Tn()}),n=null;else{switch(Fp(r)){case 1:n=Iu;break;case 4:n=Ip;break;case 16:n=$o;break;case 536870912:n=Dp;break;default:n=$o}n=og(n,Zm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zm(e,t){if(No=-1,Ao=0,q&6)throw Error(C(327));var n=e.callbackNode;if(Tr()&&e.callbackNode!==n)return null;var r=Go(e,e===ye?Se:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ls(e,r);else{t=r;var i=q;q|=2;var o=eg();(ye!==e||Se!==t)&&(zt=null,Pr=ue()+500,Un(e,t));do try{K_();break}catch(a){Jm(e,a)}while(!0);Wu(),os.current=o,q=i,fe!==null?t=0:(ye=null,Se=0,t=me)}if(t!==0){if(t===2&&(i=dl(e),i!==0&&(r=i,t=zl(e,i))),t===1)throw n=Di,Un(e,0),ln(e,r),Ve(e,ue()),n;if(t===6)ln(e,r);else{if(i=e.current.alternate,!(r&30)&&!X_(i)&&(t=ls(e,r),t===2&&(o=dl(e),o!==0&&(r=o,t=zl(e,o))),t===1))throw n=Di,Un(e,0),ln(e,r),Ve(e,ue()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:Dn(e,ze,zt);break;case 3:if(ln(e,r),(r&130023424)===r&&(t=ac+500-ue(),10<t)){if(Go(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Me(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=El(Dn.bind(null,e,ze,zt),t);break}Dn(e,ze,zt);break;case 4:if(ln(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-St(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*q_(r/1960))-r,10<r){e.timeoutHandle=El(Dn.bind(null,e,ze,zt),r);break}Dn(e,ze,zt);break;case 5:Dn(e,ze,zt);break;default:throw Error(C(329))}}}return Ve(e,ue()),e.callbackNode===n?Zm.bind(null,e):null}function zl(e,t){var n=gi;return e.current.memoizedState.isDehydrated&&(Un(e,t).flags|=256),e=ls(e,t),e!==2&&(t=ze,ze=n,t!==null&&Ul(t)),e}function Ul(e){ze===null?ze=e:ze.push.apply(ze,e)}function X_(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!wt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ln(e,t){for(t&=~sc,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function bd(e){if(q&6)throw Error(C(327));Tr();var t=Go(e,0);if(!(t&1))return Ve(e,ue()),null;var n=ls(e,t);if(e.tag!==0&&n===2){var r=dl(e);r!==0&&(t=r,n=zl(e,r))}if(n===1)throw n=Di,Un(e,0),ln(e,t),Ve(e,ue()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e,ze,zt),Ve(e,ue()),null}function lc(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Pr=ue()+500,Cs&&Tn())}}function Xn(e){cn!==null&&cn.tag===0&&!(q&6)&&Tr();var t=q;q|=1;var n=ot.transition,r=Q;try{if(ot.transition=null,Q=1,e)return e()}finally{Q=r,ot.transition=n,q=t,!(q&6)&&Tn()}}function uc(){We=_r.current,ee(_r)}function Un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,x_(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch($u(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qo();break;case 3:Ar(),ee($e),ee(ke),Zu();break;case 5:Yu(r);break;case 4:Ar();break;case 13:ee(re);break;case 19:ee(re);break;case 10:qu(r.type._context);break;case 22:case 23:uc()}n=n.return}if(ye=e,fe=e=vn(e.current,null),Se=We=t,me=0,Di=null,sc=As=qn=0,ze=gi=null,Bn!==null){for(t=0;t<Bn.length;t++)if(n=Bn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Bn=null}return e}function Jm(e,t){do{var n=fe;try{if(Wu(),Co.current=is,rs){for(var r=ie.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}rs=!1}if(Wn=0,ge=pe=ie=null,pi=!1,Ri=0,oc.current=null,n===null||n.return===null){me=1,Di=t,fe=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Se,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=a,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var u=f.alternate;u?(f.updateQueue=u.updateQueue,f.memoizedState=u.memoizedState,f.lanes=u.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=ud(s);if(y!==null){y.flags&=-257,cd(y,s,a,o,t),y.mode&1&&ld(o,c,t),t=y,l=c;var p=t.updateQueue;if(p===null){var E=new Set;E.add(l),t.updateQueue=E}else p.add(l);break e}else{if(!(t&1)){ld(o,c,t),cc();break e}l=Error(C(426))}}else if(ne&&a.mode&1){var S=ud(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),cd(S,s,a,o,t),Gu(Rr(l,a));break e}}o=l=Rr(l,a),me!==4&&(me=2),gi===null?gi=[o]:gi.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Fm(o,l,t);nd(o,g);break e;case 1:a=l;var d=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(gn===null||!gn.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=Lm(o,a,t);nd(o,_);break e}}o=o.return}while(o!==null)}ng(n)}catch(b){t=b,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(!0)}function eg(){var e=os.current;return os.current=is,e===null?is:e}function cc(){(me===0||me===3||me===2)&&(me=4),ye===null||!(qn&268435455)&&!(As&268435455)||ln(ye,Se)}function ls(e,t){var n=q;q|=2;var r=eg();(ye!==e||Se!==t)&&(zt=null,Un(e,t));do try{Q_();break}catch(i){Jm(e,i)}while(!0);if(Wu(),q=n,os.current=r,fe!==null)throw Error(C(261));return ye=null,Se=0,me}function Q_(){for(;fe!==null;)tg(fe)}function K_(){for(;fe!==null&&!Sv();)tg(fe)}function tg(e){var t=ig(e.alternate,e,We);e.memoizedProps=e.pendingProps,t===null?ng(e):fe=t,oc.current=null}function ng(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$_(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,fe=null;return}}else if(n=H_(n,t,We),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);me===0&&(me=5)}function Dn(e,t,n){var r=Q,i=ot.transition;try{ot.transition=null,Q=1,Y_(e,t,n,r)}finally{ot.transition=i,Q=r}return null}function Y_(e,t,n,r){do Tr();while(cn!==null);if(q&6)throw Error(C(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Rv(e,o),e===ye&&(fe=ye=null,Se=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||uo||(uo=!0,og($o,function(){return Tr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ot.transition,ot.transition=null;var s=Q;Q=1;var a=q;q|=4,oc.current=null,V_(e,n),Km(n,e),y_(vl),Vo=!!yl,vl=yl=null,e.current=n,W_(n),bv(),q=a,Q=s,ot.transition=o}else e.current=n;if(uo&&(uo=!1,cn=e,as=i),o=e.pendingLanes,o===0&&(gn=null),Tv(n.stateNode),Ve(e,ue()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(ss)throw ss=!1,e=Bl,Bl=null,e;return as&1&&e.tag!==0&&Tr(),o=e.pendingLanes,o&1?e===jl?yi++:(yi=0,jl=e):yi=0,Tn(),null}function Tr(){if(cn!==null){var e=Fp(as),t=ot.transition,n=Q;try{if(ot.transition=null,Q=16>e?16:e,cn===null)var r=!1;else{if(e=cn,cn=null,as=0,q&6)throw Error(C(331));var i=q;for(q|=4,A=e.current;A!==null;){var o=A,s=o.child;if(A.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(A=c;A!==null;){var f=A;switch(f.tag){case 0:case 11:case 15:mi(8,f,o)}var h=f.child;if(h!==null)h.return=f,A=h;else for(;A!==null;){f=A;var u=f.sibling,y=f.return;if(qm(f),f===c){A=null;break}if(u!==null){u.return=y,A=u;break}A=y}}}var p=o.alternate;if(p!==null){var E=p.child;if(E!==null){p.child=null;do{var S=E.sibling;E.sibling=null,E=S}while(E!==null)}}A=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,A=s;else e:for(;A!==null;){if(o=A,o.flags&2048)switch(o.tag){case 0:case 11:case 15:mi(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,A=g;break e}A=o.return}}var d=e.current;for(A=d;A!==null;){s=A;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,A=m;else e:for(s=d;A!==null;){if(a=A,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ns(9,a)}}catch(b){le(a,a.return,b)}if(a===s){A=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,A=_;break e}A=a.return}}if(q=i,Tn(),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(Ss,e)}catch{}r=!0}return r}finally{Q=n,ot.transition=t}}return!1}function wd(e,t,n){t=Rr(n,t),t=Fm(e,t,1),e=mn(e,t,1),t=Me(),e!==null&&(zi(e,1,t),Ve(e,t))}function le(e,t,n){if(e.tag===3)wd(e,e,n);else for(;t!==null;){if(t.tag===3){wd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gn===null||!gn.has(r))){e=Rr(n,e),e=Lm(t,e,1),t=mn(t,e,1),e=Me(),t!==null&&(zi(t,1,e),Ve(t,e));break}}t=t.return}}function Z_(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Me(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(Se&n)===n&&(me===4||me===3&&(Se&130023424)===Se&&500>ue()-ac?Un(e,0):sc|=n),Ve(e,t)}function rg(e,t){t===0&&(e.mode&1?(t=Ji,Ji<<=1,!(Ji&130023424)&&(Ji=4194304)):t=1);var n=Me();e=Qt(e,t),e!==null&&(zi(e,t,n),Ve(e,n))}function J_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rg(e,n)}function e1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),rg(e,n)}var ig;ig=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,U_(e,t,n);He=!!(e.flags&131072)}else He=!1,ne&&t.flags&1048576&&lm(t,Zo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oo(e,t),e=t.pendingProps;var i=kr(t,ke.current);xr(t,n),i=ec(null,t,r,e,i,n);var o=tc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(o=!0,Ko(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Qu(t),i.updater=Os,t.stateNode=i,i._reactInternals=t,kl(t,r,e,n),t=Al(null,t,r,!0,o,n)):(t.tag=0,ne&&o&&Hu(t),Ne(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=n1(r),e=mt(r,e),i){case 0:t=Nl(null,t,r,e,n);break e;case 1:t=hd(null,t,r,e,n);break e;case 11:t=fd(null,t,r,e,n);break e;case 14:t=dd(null,t,r,mt(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Nl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),hd(e,t,r,i,n);case 3:e:{if(Um(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,i=o.element,pm(e,t),ts(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Rr(Error(C(423)),t),t=pd(e,t,r,n,i);break e}else if(r!==i){i=Rr(Error(C(424)),t),t=pd(e,t,r,n,i);break e}else for(qe=pn(t.stateNode.containerInfo.firstChild),Xe=t,ne=!0,vt=null,n=dm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Or(),r===i){t=Kt(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return mm(t),e===null&&xl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,_l(r,i)?s=null:o!==null&&_l(r,o)&&(t.flags|=32),zm(e,t),Ne(e,t,s,n),t.child;case 6:return e===null&&xl(t),null;case 13:return Hm(e,t,n);case 4:return Ku(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),fd(e,t,r,i,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,K(Jo,r._currentValue),r._currentValue=s,o!==null)if(wt(o.value,s)){if(o.children===i.children&&!$e.current){t=Kt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Vt(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Tl(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(C(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Tl(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ne(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,xr(t,n),i=st(i),r=r(i),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,i=mt(r,t.pendingProps),i=mt(r.type,i),dd(e,t,r,i,n);case 15:return Bm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Oo(e,t),t.tag=1,Ge(r)?(e=!0,Ko(t)):e=!1,xr(t,n),Mm(t,r,i),kl(t,r,i,n),Al(null,t,r,!0,e,n);case 19:return $m(e,t,n);case 22:return jm(e,t,n)}throw Error(C(156,t.tag))};function og(e,t){return Pp(e,t)}function t1(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function it(e,t,n,r){return new t1(e,t,n,r)}function fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n1(e){if(typeof e=="function")return fc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Au)return 11;if(e===Ru)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=it(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ro(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")fc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ur:return Hn(n.children,i,o,t);case Nu:s=8,i|=8;break;case Ya:return e=it(12,n,t,i|2),e.elementType=Ya,e.lanes=o,e;case Za:return e=it(13,n,t,i),e.elementType=Za,e.lanes=o,e;case Ja:return e=it(19,n,t,i),e.elementType=Ja,e.lanes=o,e;case mp:return Rs(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hp:s=10;break e;case pp:s=9;break e;case Au:s=11;break e;case Ru:s=14;break e;case on:s=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=it(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Hn(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Rs(e,t,n,r){return e=it(22,e,r,t),e.elementType=mp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ca(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function ka(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=aa(0),this.expirationTimes=aa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=aa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dc(e,t,n,r,i,o,s,a,l){return e=new r1(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=it(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qu(o),e}function i1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:lr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function sg(e){if(!e)return bn;e=e._reactInternals;e:{if(Jn(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Ge(n))return sm(e,n,t)}return t}function ag(e,t,n,r,i,o,s,a,l){return e=dc(n,r,!0,e,i,o,s,a,l),e.context=sg(null),n=e.current,r=Me(),i=yn(n),o=Vt(r,i),o.callback=t??null,mn(n,o,i),e.current.lanes=i,zi(e,i,r),Ve(e,r),e}function Ps(e,t,n,r){var i=t.current,o=Me(),s=yn(i);return n=sg(n),t.context===null?t.context=n:t.pendingContext=n,t=Vt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mn(i,t,s),e!==null&&(bt(e,i,s,o),To(e,i,s)),s}function us(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hc(e,t){xd(e,t),(e=e.alternate)&&xd(e,t)}function o1(){return null}var lg=typeof reportError=="function"?reportError:function(e){console.error(e)};function pc(e){this._internalRoot=e}Is.prototype.render=pc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Ps(e,t,null,null)};Is.prototype.unmount=pc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xn(function(){Ps(null,e,null,null)}),t[Xt]=null}};function Is(e){this._internalRoot=e}Is.prototype.unstable_scheduleHydration=function(e){if(e){var t=jp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&Up(e)}};function mc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ds(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Td(){}function s1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=us(s);o.call(c)}}var s=ag(t,r,e,0,null,!1,!1,"",Td);return e._reactRootContainer=s,e[Xt]=s.current,Ci(e.nodeType===8?e.parentNode:e),Xn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=us(l);a.call(c)}}var l=dc(e,0,!1,null,null,!1,!1,"",Td);return e._reactRootContainer=l,e[Xt]=l.current,Ci(e.nodeType===8?e.parentNode:e),Xn(function(){Ps(t,l,n,r)}),l}function Ms(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=us(s);a.call(l)}}Ps(t,s,e,i)}else s=s1(n,t,e,i,r);return us(s)}Lp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ii(t.pendingLanes);n!==0&&(Du(t,n|1),Ve(t,ue()),!(q&6)&&(Pr=ue()+500,Tn()))}break;case 13:Xn(function(){var r=Qt(e,1);if(r!==null){var i=Me();bt(r,e,1,i)}}),hc(e,1)}};Mu=function(e){if(e.tag===13){var t=Qt(e,134217728);if(t!==null){var n=Me();bt(t,e,134217728,n)}hc(e,134217728)}};Bp=function(e){if(e.tag===13){var t=yn(e),n=Qt(e,t);if(n!==null){var r=Me();bt(n,e,t,r)}hc(e,t)}};jp=function(){return Q};zp=function(e,t){var n=Q;try{return Q=e,t()}finally{Q=n}};ul=function(e,t,n){switch(t){case"input":if(nl(e,n),t=n.name,n.type==="radio"&&t!=null){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=Ts(r);if(!i)throw Error(C(90));yp(r),nl(r,i)}}}break;case"textarea":_p(e,n);break;case"select":t=n.value,t!=null&&Er(e,!!n.multiple,t,!1)}};Cp=lc;kp=Xn;var a1={usingClientEntryPoint:!1,Events:[Hi,hr,Ts,xp,Tp,lc]},Qr={findFiberByHostInstance:Ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},l1={bundleType:Qr.bundleType,version:Qr.version,rendererPackageName:Qr.rendererPackageName,rendererConfig:Qr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Jt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ap(e),e===null?null:e.stateNode},findFiberByHostInstance:Qr.findFiberByHostInstance||o1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!co.isDisabled&&co.supportsFiber)try{Ss=co.inject(l1),Pt=co}catch{}}Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a1;Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mc(t))throw Error(C(200));return i1(e,t,null,n)};Ze.createRoot=function(e,t){if(!mc(e))throw Error(C(299));var n=!1,r="",i=lg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dc(e,1,!1,null,null,n,!1,r,i),e[Xt]=t.current,Ci(e.nodeType===8?e.parentNode:e),new pc(t)};Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=Ap(t),e=e===null?null:e.stateNode,e};Ze.flushSync=function(e){return Xn(e)};Ze.hydrate=function(e,t,n){if(!Ds(t))throw Error(C(200));return Ms(null,e,t,!0,n)};Ze.hydrateRoot=function(e,t,n){if(!mc(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=lg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ag(t,null,e,1,n??null,i,!1,o,s),e[Xt]=t.current,Ci(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Is(t)};Ze.render=function(e,t,n){if(!Ds(t))throw Error(C(200));return Ms(null,e,t,!1,n)};Ze.unmountComponentAtNode=function(e){if(!Ds(e))throw Error(C(40));return e._reactRootContainer?(Xn(function(){Ms(null,null,e,!1,function(){e._reactRootContainer=null,e[Xt]=null})}),!0):!1};Ze.unstable_batchedUpdates=lc;Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ds(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Ms(e,t,n,!1,r)};Ze.version="18.3.1-next-f1338f8080-20240426";function ug(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ug)}catch(e){console.error(e)}}ug(),up.exports=Ze;var u1=up.exports,cg,Cd=u1;cg=Cd.createRoot,Cd.hydrateRoot;var fg={exports:{}},dg={};/**
40
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function xa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ol(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var B_=typeof WeakMap=="function"?WeakMap:Map;function Fm(e,t,n){n=Vt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ss||(ss=!0,Bl=r),Ol(e,t)},n}function Lm(e,t,n){n=Vt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ol(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ol(e,t),typeof r!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ld(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new B_;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Z_.bind(null,e,t,n),t.then(e,e))}function ud(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function cd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vt(-1,1),t.tag=2,mn(n,t,1))),n.lanes|=1),e)}var j_=Jt.ReactCurrentOwner,He=!1;function Ne(e,t,n,r){t.child=e===null?dm(t,null,n,r):Nr(t,e.child,n,r)}function fd(e,t,n,r,i){n=n.render;var o=t.ref;return xr(t,i),r=ec(e,t,n,r,o,i),n=tc(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kt(e,t,i)):(ne&&n&&Hu(t),t.flags|=1,Ne(e,t,r,i),t.child)}function dd(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!fc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Bm(e,t,o,r,i)):(e=Ro(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ti,n(s,r)&&e.ref===t.ref)return Kt(e,t,i)}return t.flags|=1,e=vn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Bm(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ti(o,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,Kt(e,t,i)}return Nl(e,t,n,r,i)}function jm(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(_r,We),We|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(_r,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,K(_r,We),We|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,K(_r,We),We|=r;return Ne(e,t,i,n),t.child}function zm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nl(e,t,n,r,i){var o=Ge(n)?Gn:ke.current;return o=kr(t,o),xr(t,i),n=ec(e,t,n,r,o,i),r=tc(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kt(e,t,i)):(ne&&r&&Hu(t),t.flags|=1,Ne(e,t,n,i),t.child)}function hd(e,t,n,r,i){if(Ge(n)){var o=!0;Ko(t)}else o=!1;if(xr(t,i),t.stateNode===null)Oo(e,t),Mm(t,n,r),kl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=st(c):(c=Ge(n)?Gn:ke.current,c=kr(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&ad(t,s,r,c),sn=!1;var u=t.memoizedState;s.state=u,ts(t,r,s,i),l=t.memoizedState,a!==r||u!==l||$e.current||sn?(typeof f=="function"&&(Cl(t,n,f,r),l=t.memoizedState),(a=sn||sd(t,n,a,r,u,l,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,pm(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:mt(t.type,a),s.props=c,h=t.pendingProps,u=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=st(l):(l=Ge(n)?Gn:ke.current,l=kr(t,l));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||u!==l)&&ad(t,s,r,l),sn=!1,u=t.memoizedState,s.state=u,ts(t,r,s,i);var p=t.memoizedState;a!==h||u!==p||$e.current||sn?(typeof y=="function"&&(Cl(t,n,y,r),p=t.memoizedState),(c=sn||sd(t,n,c,r,u,p,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&u===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&u===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&u===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&u===e.memoizedState||(t.flags|=1024),r=!1)}return Al(e,t,n,r,o,i)}function Al(e,t,n,r,i,o){zm(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Zf(t,n,!1),Kt(e,t,o);r=t.stateNode,j_.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Nr(t,e.child,null,o),t.child=Nr(t,null,a,o)):Ne(e,t,a,o),t.memoizedState=r.state,i&&Zf(t,n,!0),t.child}function Um(e){var t=e.stateNode;t.pendingContext?Yf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yf(e,t.context,!1),Ku(e,t.containerInfo)}function pd(e,t,n,r,i){return Or(),Gu(i),t.flags|=256,Ne(e,t,n,r),t.child}var Rl={dehydrated:null,treeContext:null,retryLane:0};function Pl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hm(e,t,n){var r=t.pendingProps,i=re.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),K(re,i&1),e===null)return xl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Rs(s,r,0,null),e=Hn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Pl(n),t.memoizedState=Rl,e):ic(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return z_(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=vn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=vn(a,o):(o=Hn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Pl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Rl,r}return o=e.child,e=o.sibling,r=vn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ic(e,t){return t=Rs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ao(e,t,n,r){return r!==null&&Gu(r),Nr(t,e.child,null,n),e=ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function z_(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=xa(Error(C(422))),ao(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Rs({mode:"visible",children:r.children},i,0,null),o=Hn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Nr(t,e.child,null,s),t.child.memoizedState=Pl(s),t.memoizedState=Rl,o);if(!(t.mode&1))return ao(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(C(419)),r=xa(o,r,void 0),ao(e,t,s,r)}if(a=(s&e.childLanes)!==0,He||a){if(r=ye,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Qt(e,i),wt(r,e,i,-1))}return cc(),r=xa(Error(C(421))),ao(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=J_.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,qe=pn(i.nextSibling),Xe=t,ne=!0,vt=null,e!==null&&(tt[nt++]=$t,tt[nt++]=Gt,tt[nt++]=Vn,$t=e.id,Gt=e.overflow,Vn=t),t=ic(t,r.children),t.flags|=4096,t)}function md(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Tl(e.return,t,n)}function Ta(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $m(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ne(e,t,r.children,n),r=re.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&md(e,n,t);else if(e.tag===19)md(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(re,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ns(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ta(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ns(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ta(t,!0,n,null,o);break;case"together":Ta(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function U_(e,t,n){switch(t.tag){case 3:Um(t),Or();break;case 5:mm(t);break;case 1:Ge(t.type)&&Ko(t);break;case 4:Ku(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(Jo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?Hm(e,t,n):(K(re,re.current&1),e=Kt(e,t,n),e!==null?e.sibling:null);K(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $m(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,jm(e,t,n)}return Kt(e,t,n)}var Gm,Il,Vm,Wm;Gm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Il=function(){};Vm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,jn(It.current);var o=null;switch(n){case"input":i=tl(e,i),r=tl(e,r),o=[];break;case"select":i=oe({},i,{value:void 0}),r=oe({},r,{value:void 0}),o=[];break;case"textarea":i=il(e,i),r=il(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xo)}sl(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(vi.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(vi.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Z("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Wm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xr(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function H_(e,t,n){var r=t.pendingProps;switch($u(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Ge(t.type)&&Qo(),xe(t),null;case 3:return r=t.stateNode,Ar(),ee($e),ee(ke),Zu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(oo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,vt!==null&&(Ul(vt),vt=null))),Il(e,t),xe(t),null;case 5:Yu(t);var i=jn(Ai.current);if(n=t.type,e!==null&&t.stateNode!=null)Vm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return xe(t),null}if(e=jn(It.current),oo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[At]=t,r[Oi]=o,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(i=0;i<oi.length;i++)Z(oi[i],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":xf(r,o),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Z("invalid",r);break;case"textarea":Cf(r,o),Z("invalid",r)}sl(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&io(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&io(r.textContent,a,e),i=["children",""+a]):vi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Z("scroll",r)}switch(n){case"input":Ki(r),Tf(r,o,!0);break;case"textarea":Ki(r),kf(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Xo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ep(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[At]=t,e[Oi]=r,Gm(e,t,!1,!1),t.stateNode=e;e:{switch(s=al(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;i<oi.length;i++)Z(oi[i],e);i=r;break;case"source":Z("error",e),i=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),i=r;break;case"details":Z("toggle",e),i=r;break;case"input":xf(e,r),i=tl(e,r),Z("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=oe({},r,{value:void 0}),Z("invalid",e);break;case"textarea":Cf(e,r),i=il(e,r),Z("invalid",e);break;default:i=r}sl(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?bp(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Sp(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&_i(e,l):typeof l=="number"&&_i(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(vi.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Z("scroll",e):l!=null&&Ou(e,o,l,s))}switch(n){case"input":Ki(e),Tf(e,r,!1);break;case"textarea":Ki(e),kf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Er(e,!!r.multiple,o,!1):r.defaultValue!=null&&Er(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Xo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)Wm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=jn(Ai.current),jn(It.current),oo(t)){if(r=t.stateNode,n=t.memoizedProps,r[At]=t,(o=r.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:io(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&io(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[At]=t,t.stateNode=r}return xe(t),null;case 13:if(ee(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&qe!==null&&t.mode&1&&!(t.flags&128))cm(),Or(),t.flags|=98560,o=!1;else if(o=oo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(C(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(C(317));o[At]=t}else Or(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),o=!1}else vt!==null&&(Ul(vt),vt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||re.current&1?me===0&&(me=3):cc())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return Ar(),Il(e,t),e===null&&Ci(t.stateNode.containerInfo),xe(t),null;case 10:return qu(t.type._context),xe(t),null;case 17:return Ge(t.type)&&Qo(),xe(t),null;case 19:if(ee(re),o=t.memoizedState,o===null)return xe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Xr(o,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ns(e),s!==null){for(t.flags|=128,Xr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(re,re.current&1|2),t.child}e=e.sibling}o.tail!==null&&ue()>Pr&&(t.flags|=128,r=!0,Xr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ns(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ne)return xe(t),null}else 2*ue()-o.renderingStartTime>Pr&&n!==1073741824&&(t.flags|=128,r=!0,Xr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ue(),t.sibling=null,n=re.current,K(re,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return uc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function $_(e,t){switch($u(t),t.tag){case 1:return Ge(t.type)&&Qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ar(),ee($e),ee(ke),Zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yu(t),null;case 13:if(ee(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(re),null;case 4:return Ar(),null;case 10:return qu(t.type._context),null;case 22:case 23:return uc(),null;case 24:return null;default:return null}}var lo=!1,Ce=!1,G_=typeof WeakSet=="function"?WeakSet:Set,A=null;function vr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function Dl(e,t,n){try{n()}catch(r){le(e,t,r)}}var gd=!1;function V_(e,t){if(yl=Vo,e=Yp(),Uu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,f=0,h=e,u=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(y=h.firstChild)!==null;)u=h,h=y;for(;;){if(h===e)break t;if(u===n&&++c===i&&(a=s),u===o&&++f===r&&(l=s),(y=h.nextSibling)!==null)break;h=u,u=h.parentNode}h=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(vl={focusedElem:e,selectionRange:n},Vo=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var E=p.memoizedProps,S=p.memoizedState,g=t.stateNode,d=g.getSnapshotBeforeUpdate(t.elementType===t.type?E:mt(t.type,E),S);g.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(_){le(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return p=gd,gd=!1,p}function mi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Dl(t,n,o)}i=i.next}while(i!==r)}}function Ns(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 Ml(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qm(e){var t=e.alternate;t!==null&&(e.alternate=null,qm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[Oi],delete t[Sl],delete t[k_],delete t[O_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xm(e){return e.tag===5||e.tag===3||e.tag===4}function yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xo));else if(r!==4&&(e=e.child,e!==null))for(Fl(e,t,n),e=e.sibling;e!==null;)Fl(e,t,n),e=e.sibling}function Ll(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ll(e,t,n),e=e.sibling;e!==null;)Ll(e,t,n),e=e.sibling}var _e=null,gt=!1;function en(e,t,n){for(n=n.child;n!==null;)Qm(e,t,n),n=n.sibling}function Qm(e,t,n){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(Ss,n)}catch{}switch(n.tag){case 5:Ce||vr(n,t);case 6:var r=_e,i=gt;_e=null,en(e,t,n),_e=r,gt=i,_e!==null&&(gt?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(gt?(e=_e,n=n.stateNode,e.nodeType===8?va(e.parentNode,n):e.nodeType===1&&va(e,n),bi(e)):va(_e,n.stateNode));break;case 4:r=_e,i=gt,_e=n.stateNode.containerInfo,gt=!0,en(e,t,n),_e=r,gt=i;break;case 0:case 11:case 14:case 15:if(!Ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Dl(n,t,s),i=i.next}while(i!==r)}en(e,t,n);break;case 1:if(!Ce&&(vr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}en(e,t,n);break;case 21:en(e,t,n);break;case 22:n.mode&1?(Ce=(r=Ce)||n.memoizedState!==null,en(e,t,n),Ce=r):en(e,t,n);break;default:en(e,t,n)}}function vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new G_),t.forEach(function(r){var i=e1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:_e=a.stateNode,gt=!1;break e;case 3:_e=a.stateNode.containerInfo,gt=!0;break e;case 4:_e=a.stateNode.containerInfo,gt=!0;break e}a=a.return}if(_e===null)throw Error(C(160));Qm(o,s,i),_e=null,gt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){le(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Km(t,e),t=t.sibling}function Km(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ht(t,e),Ot(e),r&4){try{mi(3,e,e.return),Ns(3,e)}catch(E){le(e,e.return,E)}try{mi(5,e,e.return)}catch(E){le(e,e.return,E)}}break;case 1:ht(t,e),Ot(e),r&512&&n!==null&&vr(n,n.return);break;case 5:if(ht(t,e),Ot(e),r&512&&n!==null&&vr(n,n.return),e.flags&32){var i=e.stateNode;try{_i(i,"")}catch(E){le(e,e.return,E)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&vp(i,o),al(a,s);var c=al(a,o);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];f==="style"?bp(i,h):f==="dangerouslySetInnerHTML"?Sp(i,h):f==="children"?_i(i,h):Ou(i,f,h,c)}switch(a){case"input":nl(i,o);break;case"textarea":_p(i,o);break;case"select":var u=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Er(i,!!o.multiple,y,!1):u!==!!o.multiple&&(o.defaultValue!=null?Er(i,!!o.multiple,o.defaultValue,!0):Er(i,!!o.multiple,o.multiple?[]:"",!1))}i[Oi]=o}catch(E){le(e,e.return,E)}}break;case 6:if(ht(t,e),Ot(e),r&4){if(e.stateNode===null)throw Error(C(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(E){le(e,e.return,E)}}break;case 3:if(ht(t,e),Ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{bi(t.containerInfo)}catch(E){le(e,e.return,E)}break;case 4:ht(t,e),Ot(e);break;case 13:ht(t,e),Ot(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ac=ue())),r&4&&vd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ce=(c=Ce)||f,ht(t,e),Ce=c):ht(t,e),Ot(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(A=e,f=e.child;f!==null;){for(h=A=f;A!==null;){switch(u=A,y=u.child,u.tag){case 0:case 11:case 14:case 15:mi(4,u,u.return);break;case 1:vr(u,u.return);var p=u.stateNode;if(typeof p.componentWillUnmount=="function"){r=u,n=u.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(E){le(r,n,E)}}break;case 5:vr(u,u.return);break;case 22:if(u.memoizedState!==null){Ed(h);continue}}y!==null?(y.return=u,A=y):Ed(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=wp("display",s))}catch(E){le(e,e.return,E)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(E){le(e,e.return,E)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ht(t,e),Ot(e),r&4&&vd(e);break;case 21:break;default:ht(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Xm(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(_i(i,""),r.flags&=-33);var o=yd(e);Ll(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=yd(e);Fl(e,a,s);break;default:throw Error(C(161))}}catch(l){le(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function W_(e,t,n){A=e,Ym(e)}function Ym(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var i=A,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||lo;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ce;a=lo;var c=Ce;if(lo=s,(Ce=l)&&!c)for(A=i;A!==null;)s=A,l=s.child,s.tag===22&&s.memoizedState!==null?Sd(i):l!==null?(l.return=s,A=l):Sd(i);for(;o!==null;)A=o,Ym(o),o=o.sibling;A=i,lo=a,Ce=c}_d(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,A=o):_d(e)}}function _d(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ce||Ns(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ce)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&rd(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}rd(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&bi(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}Ce||t.flags&512&&Ml(t)}catch(u){le(t,t.return,u)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Ed(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Sd(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ns(4,t)}catch(l){le(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){le(t,i,l)}}var o=t.return;try{Ml(t)}catch(l){le(t,o,l)}break;case 5:var s=t.return;try{Ml(t)}catch(l){le(t,s,l)}}}catch(l){le(t,t.return,l)}if(t===e){A=null;break}var a=t.sibling;if(a!==null){a.return=t.return,A=a;break}A=t.return}}var q_=Math.ceil,os=Jt.ReactCurrentDispatcher,oc=Jt.ReactCurrentOwner,ot=Jt.ReactCurrentBatchConfig,q=0,ye=null,fe=null,Se=0,We=0,_r=xn(0),me=0,Di=null,qn=0,As=0,sc=0,gi=null,ze=null,ac=0,Pr=1/0,zt=null,ss=!1,Bl=null,gn=null,uo=!1,cn=null,as=0,yi=0,jl=null,No=-1,Ao=0;function Me(){return q&6?ue():No!==-1?No:No=ue()}function yn(e){return e.mode&1?q&2&&Se!==0?Se&-Se:A_.transition!==null?(Ao===0&&(Ao=Mp()),Ao):(e=Q,e!==0||(e=window.event,e=e===void 0?16:Hp(e.type)),e):1}function wt(e,t,n,r){if(50<yi)throw yi=0,jl=null,Error(C(185));zi(e,n,r),(!(q&2)||e!==ye)&&(e===ye&&(!(q&2)&&(As|=n),me===4&&ln(e,Se)),Ve(e,r),n===1&&q===0&&!(t.mode&1)&&(Pr=ue()+500,Cs&&Tn()))}function Ve(e,t){var n=e.callbackNode;Av(e,t);var r=Go(e,e===ye?Se:0);if(r===0)n!==null&&Af(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Af(n),t===1)e.tag===0?N_(wd.bind(null,e)):am(wd.bind(null,e)),T_(function(){!(q&6)&&Tn()}),n=null;else{switch(Fp(r)){case 1:n=Iu;break;case 4:n=Ip;break;case 16:n=$o;break;case 536870912:n=Dp;break;default:n=$o}n=og(n,Zm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zm(e,t){if(No=-1,Ao=0,q&6)throw Error(C(327));var n=e.callbackNode;if(Tr()&&e.callbackNode!==n)return null;var r=Go(e,e===ye?Se:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ls(e,r);else{t=r;var i=q;q|=2;var o=eg();(ye!==e||Se!==t)&&(zt=null,Pr=ue()+500,Un(e,t));do try{K_();break}catch(a){Jm(e,a)}while(!0);Wu(),os.current=o,q=i,fe!==null?t=0:(ye=null,Se=0,t=me)}if(t!==0){if(t===2&&(i=dl(e),i!==0&&(r=i,t=zl(e,i))),t===1)throw n=Di,Un(e,0),ln(e,r),Ve(e,ue()),n;if(t===6)ln(e,r);else{if(i=e.current.alternate,!(r&30)&&!X_(i)&&(t=ls(e,r),t===2&&(o=dl(e),o!==0&&(r=o,t=zl(e,o))),t===1))throw n=Di,Un(e,0),ln(e,r),Ve(e,ue()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:Dn(e,ze,zt);break;case 3:if(ln(e,r),(r&130023424)===r&&(t=ac+500-ue(),10<t)){if(Go(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Me(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=El(Dn.bind(null,e,ze,zt),t);break}Dn(e,ze,zt);break;case 4:if(ln(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-St(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*q_(r/1960))-r,10<r){e.timeoutHandle=El(Dn.bind(null,e,ze,zt),r);break}Dn(e,ze,zt);break;case 5:Dn(e,ze,zt);break;default:throw Error(C(329))}}}return Ve(e,ue()),e.callbackNode===n?Zm.bind(null,e):null}function zl(e,t){var n=gi;return e.current.memoizedState.isDehydrated&&(Un(e,t).flags|=256),e=ls(e,t),e!==2&&(t=ze,ze=n,t!==null&&Ul(t)),e}function Ul(e){ze===null?ze=e:ze.push.apply(ze,e)}function X_(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!bt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ln(e,t){for(t&=~sc,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function wd(e){if(q&6)throw Error(C(327));Tr();var t=Go(e,0);if(!(t&1))return Ve(e,ue()),null;var n=ls(e,t);if(e.tag!==0&&n===2){var r=dl(e);r!==0&&(t=r,n=zl(e,r))}if(n===1)throw n=Di,Un(e,0),ln(e,t),Ve(e,ue()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e,ze,zt),Ve(e,ue()),null}function lc(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Pr=ue()+500,Cs&&Tn())}}function Xn(e){cn!==null&&cn.tag===0&&!(q&6)&&Tr();var t=q;q|=1;var n=ot.transition,r=Q;try{if(ot.transition=null,Q=1,e)return e()}finally{Q=r,ot.transition=n,q=t,!(q&6)&&Tn()}}function uc(){We=_r.current,ee(_r)}function Un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,x_(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch($u(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qo();break;case 3:Ar(),ee($e),ee(ke),Zu();break;case 5:Yu(r);break;case 4:Ar();break;case 13:ee(re);break;case 19:ee(re);break;case 10:qu(r.type._context);break;case 22:case 23:uc()}n=n.return}if(ye=e,fe=e=vn(e.current,null),Se=We=t,me=0,Di=null,sc=As=qn=0,ze=gi=null,Bn!==null){for(t=0;t<Bn.length;t++)if(n=Bn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Bn=null}return e}function Jm(e,t){do{var n=fe;try{if(Wu(),Co.current=is,rs){for(var r=ie.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}rs=!1}if(Wn=0,ge=pe=ie=null,pi=!1,Ri=0,oc.current=null,n===null||n.return===null){me=1,Di=t,fe=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Se,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=a,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var u=f.alternate;u?(f.updateQueue=u.updateQueue,f.memoizedState=u.memoizedState,f.lanes=u.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=ud(s);if(y!==null){y.flags&=-257,cd(y,s,a,o,t),y.mode&1&&ld(o,c,t),t=y,l=c;var p=t.updateQueue;if(p===null){var E=new Set;E.add(l),t.updateQueue=E}else p.add(l);break e}else{if(!(t&1)){ld(o,c,t),cc();break e}l=Error(C(426))}}else if(ne&&a.mode&1){var S=ud(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),cd(S,s,a,o,t),Gu(Rr(l,a));break e}}o=l=Rr(l,a),me!==4&&(me=2),gi===null?gi=[o]:gi.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Fm(o,l,t);nd(o,g);break e;case 1:a=l;var d=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(gn===null||!gn.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=Lm(o,a,t);nd(o,_);break e}}o=o.return}while(o!==null)}ng(n)}catch(w){t=w,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(!0)}function eg(){var e=os.current;return os.current=is,e===null?is:e}function cc(){(me===0||me===3||me===2)&&(me=4),ye===null||!(qn&268435455)&&!(As&268435455)||ln(ye,Se)}function ls(e,t){var n=q;q|=2;var r=eg();(ye!==e||Se!==t)&&(zt=null,Un(e,t));do try{Q_();break}catch(i){Jm(e,i)}while(!0);if(Wu(),q=n,os.current=r,fe!==null)throw Error(C(261));return ye=null,Se=0,me}function Q_(){for(;fe!==null;)tg(fe)}function K_(){for(;fe!==null&&!Sv();)tg(fe)}function tg(e){var t=ig(e.alternate,e,We);e.memoizedProps=e.pendingProps,t===null?ng(e):fe=t,oc.current=null}function ng(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$_(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,fe=null;return}}else if(n=H_(n,t,We),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);me===0&&(me=5)}function Dn(e,t,n){var r=Q,i=ot.transition;try{ot.transition=null,Q=1,Y_(e,t,n,r)}finally{ot.transition=i,Q=r}return null}function Y_(e,t,n,r){do Tr();while(cn!==null);if(q&6)throw Error(C(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Rv(e,o),e===ye&&(fe=ye=null,Se=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||uo||(uo=!0,og($o,function(){return Tr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ot.transition,ot.transition=null;var s=Q;Q=1;var a=q;q|=4,oc.current=null,V_(e,n),Km(n,e),y_(vl),Vo=!!yl,vl=yl=null,e.current=n,W_(n),wv(),q=a,Q=s,ot.transition=o}else e.current=n;if(uo&&(uo=!1,cn=e,as=i),o=e.pendingLanes,o===0&&(gn=null),Tv(n.stateNode),Ve(e,ue()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(ss)throw ss=!1,e=Bl,Bl=null,e;return as&1&&e.tag!==0&&Tr(),o=e.pendingLanes,o&1?e===jl?yi++:(yi=0,jl=e):yi=0,Tn(),null}function Tr(){if(cn!==null){var e=Fp(as),t=ot.transition,n=Q;try{if(ot.transition=null,Q=16>e?16:e,cn===null)var r=!1;else{if(e=cn,cn=null,as=0,q&6)throw Error(C(331));var i=q;for(q|=4,A=e.current;A!==null;){var o=A,s=o.child;if(A.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(A=c;A!==null;){var f=A;switch(f.tag){case 0:case 11:case 15:mi(8,f,o)}var h=f.child;if(h!==null)h.return=f,A=h;else for(;A!==null;){f=A;var u=f.sibling,y=f.return;if(qm(f),f===c){A=null;break}if(u!==null){u.return=y,A=u;break}A=y}}}var p=o.alternate;if(p!==null){var E=p.child;if(E!==null){p.child=null;do{var S=E.sibling;E.sibling=null,E=S}while(E!==null)}}A=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,A=s;else e:for(;A!==null;){if(o=A,o.flags&2048)switch(o.tag){case 0:case 11:case 15:mi(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,A=g;break e}A=o.return}}var d=e.current;for(A=d;A!==null;){s=A;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,A=m;else e:for(s=d;A!==null;){if(a=A,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ns(9,a)}}catch(w){le(a,a.return,w)}if(a===s){A=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,A=_;break e}A=a.return}}if(q=i,Tn(),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(Ss,e)}catch{}r=!0}return r}finally{Q=n,ot.transition=t}}return!1}function bd(e,t,n){t=Rr(n,t),t=Fm(e,t,1),e=mn(e,t,1),t=Me(),e!==null&&(zi(e,1,t),Ve(e,t))}function le(e,t,n){if(e.tag===3)bd(e,e,n);else for(;t!==null;){if(t.tag===3){bd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gn===null||!gn.has(r))){e=Rr(n,e),e=Lm(t,e,1),t=mn(t,e,1),e=Me(),t!==null&&(zi(t,1,e),Ve(t,e));break}}t=t.return}}function Z_(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Me(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(Se&n)===n&&(me===4||me===3&&(Se&130023424)===Se&&500>ue()-ac?Un(e,0):sc|=n),Ve(e,t)}function rg(e,t){t===0&&(e.mode&1?(t=Ji,Ji<<=1,!(Ji&130023424)&&(Ji=4194304)):t=1);var n=Me();e=Qt(e,t),e!==null&&(zi(e,t,n),Ve(e,n))}function J_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rg(e,n)}function e1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),rg(e,n)}var ig;ig=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,U_(e,t,n);He=!!(e.flags&131072)}else He=!1,ne&&t.flags&1048576&&lm(t,Zo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oo(e,t),e=t.pendingProps;var i=kr(t,ke.current);xr(t,n),i=ec(null,t,r,e,i,n);var o=tc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(o=!0,Ko(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Qu(t),i.updater=Os,t.stateNode=i,i._reactInternals=t,kl(t,r,e,n),t=Al(null,t,r,!0,o,n)):(t.tag=0,ne&&o&&Hu(t),Ne(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=n1(r),e=mt(r,e),i){case 0:t=Nl(null,t,r,e,n);break e;case 1:t=hd(null,t,r,e,n);break e;case 11:t=fd(null,t,r,e,n);break e;case 14:t=dd(null,t,r,mt(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Nl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),hd(e,t,r,i,n);case 3:e:{if(Um(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,i=o.element,pm(e,t),ts(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Rr(Error(C(423)),t),t=pd(e,t,r,n,i);break e}else if(r!==i){i=Rr(Error(C(424)),t),t=pd(e,t,r,n,i);break e}else for(qe=pn(t.stateNode.containerInfo.firstChild),Xe=t,ne=!0,vt=null,n=dm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Or(),r===i){t=Kt(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return mm(t),e===null&&xl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,_l(r,i)?s=null:o!==null&&_l(r,o)&&(t.flags|=32),zm(e,t),Ne(e,t,s,n),t.child;case 6:return e===null&&xl(t),null;case 13:return Hm(e,t,n);case 4:return Ku(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),fd(e,t,r,i,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,K(Jo,r._currentValue),r._currentValue=s,o!==null)if(bt(o.value,s)){if(o.children===i.children&&!$e.current){t=Kt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Vt(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Tl(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(C(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Tl(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ne(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,xr(t,n),i=st(i),r=r(i),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,i=mt(r,t.pendingProps),i=mt(r.type,i),dd(e,t,r,i,n);case 15:return Bm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Oo(e,t),t.tag=1,Ge(r)?(e=!0,Ko(t)):e=!1,xr(t,n),Mm(t,r,i),kl(t,r,i,n),Al(null,t,r,!0,e,n);case 19:return $m(e,t,n);case 22:return jm(e,t,n)}throw Error(C(156,t.tag))};function og(e,t){return Pp(e,t)}function t1(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function it(e,t,n,r){return new t1(e,t,n,r)}function fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n1(e){if(typeof e=="function")return fc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Au)return 11;if(e===Ru)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=it(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ro(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")fc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ur:return Hn(n.children,i,o,t);case Nu:s=8,i|=8;break;case Ya:return e=it(12,n,t,i|2),e.elementType=Ya,e.lanes=o,e;case Za:return e=it(13,n,t,i),e.elementType=Za,e.lanes=o,e;case Ja:return e=it(19,n,t,i),e.elementType=Ja,e.lanes=o,e;case mp:return Rs(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hp:s=10;break e;case pp:s=9;break e;case Au:s=11;break e;case Ru:s=14;break e;case on:s=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=it(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Hn(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Rs(e,t,n,r){return e=it(22,e,r,t),e.elementType=mp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ca(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function ka(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=aa(0),this.expirationTimes=aa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=aa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dc(e,t,n,r,i,o,s,a,l){return e=new r1(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=it(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qu(o),e}function i1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:lr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function sg(e){if(!e)return wn;e=e._reactInternals;e:{if(Jn(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Ge(n))return sm(e,n,t)}return t}function ag(e,t,n,r,i,o,s,a,l){return e=dc(n,r,!0,e,i,o,s,a,l),e.context=sg(null),n=e.current,r=Me(),i=yn(n),o=Vt(r,i),o.callback=t??null,mn(n,o,i),e.current.lanes=i,zi(e,i,r),Ve(e,r),e}function Ps(e,t,n,r){var i=t.current,o=Me(),s=yn(i);return n=sg(n),t.context===null?t.context=n:t.pendingContext=n,t=Vt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mn(i,t,s),e!==null&&(wt(e,i,s,o),To(e,i,s)),s}function us(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hc(e,t){xd(e,t),(e=e.alternate)&&xd(e,t)}function o1(){return null}var lg=typeof reportError=="function"?reportError:function(e){console.error(e)};function pc(e){this._internalRoot=e}Is.prototype.render=pc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Ps(e,t,null,null)};Is.prototype.unmount=pc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xn(function(){Ps(null,e,null,null)}),t[Xt]=null}};function Is(e){this._internalRoot=e}Is.prototype.unstable_scheduleHydration=function(e){if(e){var t=jp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&Up(e)}};function mc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ds(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Td(){}function s1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=us(s);o.call(c)}}var s=ag(t,r,e,0,null,!1,!1,"",Td);return e._reactRootContainer=s,e[Xt]=s.current,Ci(e.nodeType===8?e.parentNode:e),Xn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=us(l);a.call(c)}}var l=dc(e,0,!1,null,null,!1,!1,"",Td);return e._reactRootContainer=l,e[Xt]=l.current,Ci(e.nodeType===8?e.parentNode:e),Xn(function(){Ps(t,l,n,r)}),l}function Ms(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=us(s);a.call(l)}}Ps(t,s,e,i)}else s=s1(n,t,e,i,r);return us(s)}Lp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ii(t.pendingLanes);n!==0&&(Du(t,n|1),Ve(t,ue()),!(q&6)&&(Pr=ue()+500,Tn()))}break;case 13:Xn(function(){var r=Qt(e,1);if(r!==null){var i=Me();wt(r,e,1,i)}}),hc(e,1)}};Mu=function(e){if(e.tag===13){var t=Qt(e,134217728);if(t!==null){var n=Me();wt(t,e,134217728,n)}hc(e,134217728)}};Bp=function(e){if(e.tag===13){var t=yn(e),n=Qt(e,t);if(n!==null){var r=Me();wt(n,e,t,r)}hc(e,t)}};jp=function(){return Q};zp=function(e,t){var n=Q;try{return Q=e,t()}finally{Q=n}};ul=function(e,t,n){switch(t){case"input":if(nl(e,n),t=n.name,n.type==="radio"&&t!=null){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=Ts(r);if(!i)throw Error(C(90));yp(r),nl(r,i)}}}break;case"textarea":_p(e,n);break;case"select":t=n.value,t!=null&&Er(e,!!n.multiple,t,!1)}};Cp=lc;kp=Xn;var a1={usingClientEntryPoint:!1,Events:[Hi,hr,Ts,xp,Tp,lc]},Qr={findFiberByHostInstance:Ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},l1={bundleType:Qr.bundleType,version:Qr.version,rendererPackageName:Qr.rendererPackageName,rendererConfig:Qr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Jt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ap(e),e===null?null:e.stateNode},findFiberByHostInstance:Qr.findFiberByHostInstance||o1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!co.isDisabled&&co.supportsFiber)try{Ss=co.inject(l1),Pt=co}catch{}}Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a1;Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mc(t))throw Error(C(200));return i1(e,t,null,n)};Ze.createRoot=function(e,t){if(!mc(e))throw Error(C(299));var n=!1,r="",i=lg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dc(e,1,!1,null,null,n,!1,r,i),e[Xt]=t.current,Ci(e.nodeType===8?e.parentNode:e),new pc(t)};Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=Ap(t),e=e===null?null:e.stateNode,e};Ze.flushSync=function(e){return Xn(e)};Ze.hydrate=function(e,t,n){if(!Ds(t))throw Error(C(200));return Ms(null,e,t,!0,n)};Ze.hydrateRoot=function(e,t,n){if(!mc(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=lg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ag(t,null,e,1,n??null,i,!1,o,s),e[Xt]=t.current,Ci(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Is(t)};Ze.render=function(e,t,n){if(!Ds(t))throw Error(C(200));return Ms(null,e,t,!1,n)};Ze.unmountComponentAtNode=function(e){if(!Ds(e))throw Error(C(40));return e._reactRootContainer?(Xn(function(){Ms(null,null,e,!1,function(){e._reactRootContainer=null,e[Xt]=null})}),!0):!1};Ze.unstable_batchedUpdates=lc;Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ds(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Ms(e,t,n,!1,r)};Ze.version="18.3.1-next-f1338f8080-20240426";function ug(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ug)}catch(e){console.error(e)}}ug(),up.exports=Ze;var u1=up.exports,cg,Cd=u1;cg=Cd.createRoot,Cd.hydrateRoot;var fg={exports:{}},dg={};/**
41
41
  * @license React
42
42
  * use-sync-external-store-with-selector.production.min.js
43
43
  *
@@ -45,11 +45,11 @@ Error generating stack: `+o.message+`
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Gi=O;function c1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var f1=typeof Object.is=="function"?Object.is:c1,d1=Gi.useSyncExternalStore,h1=Gi.useRef,p1=Gi.useEffect,m1=Gi.useMemo,g1=Gi.useDebugValue;dg.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=h1(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=m1(function(){function l(y){if(!c){if(c=!0,f=y,y=r(y),i!==void 0&&s.hasValue){var p=s.value;if(i(p,y))return h=p}return h=y}if(p=h,f1(f,y))return p;var E=r(y);return i!==void 0&&i(p,E)?p:(f=y,h=E)}var c=!1,f,h,u=n===void 0?null:n;return[function(){return l(t())},u===null?void 0:function(){return l(u())}]},[t,n,r,i]);var a=d1(e,o[0],o[1]);return p1(function(){s.hasValue=!0,s.value=a},[a]),g1(a),a};fg.exports=dg;var y1=fg.exports,G="default"in Ef?Et:Ef,kd=Symbol.for("react-redux-context"),Od=typeof globalThis<"u"?globalThis:{};function v1(){if(!G.createContext)return{};const e=Od[kd]??(Od[kd]=new Map);let t=e.get(G.createContext);return t||(t=G.createContext(null),e.set(G.createContext,t)),t}var Yt=v1(),hg=()=>{throw new Error("uSES not initialized!")};function gc(e=Yt){return function(){return G.useContext(e)}}var pg=gc(),mg=hg,_1=e=>{mg=e},E1=(e,t)=>e===t;function S1(e=Yt){const t=e===Yt?pg:gc(e),n=(r,i={})=>{const{equalityFn:o=E1,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:l,getServerState:c,stabilityCheck:f,identityFunctionCheck:h}=t();G.useRef(!0);const u=G.useCallback({[r.name](p){return r(p)}}[r.name],[r,f,s.stabilityCheck]),y=mg(l.addNestedSub,a.getState,c||a.getState,u,o);return G.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var b1=S1(),w1=Symbol.for("react.element"),x1=Symbol.for("react.portal"),T1=Symbol.for("react.fragment"),C1=Symbol.for("react.strict_mode"),k1=Symbol.for("react.profiler"),O1=Symbol.for("react.provider"),N1=Symbol.for("react.context"),A1=Symbol.for("react.server_context"),gg=Symbol.for("react.forward_ref"),R1=Symbol.for("react.suspense"),P1=Symbol.for("react.suspense_list"),yc=Symbol.for("react.memo"),I1=Symbol.for("react.lazy"),D1=gg,M1=yc;function F1(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case w1:{const n=e.type;switch(n){case T1:case k1:case C1:case R1:case P1:return n;default:{const r=n&&n.$$typeof;switch(r){case A1:case N1:case gg:case I1:case yc:case O1:return r;default:return t}}}}case x1:return t}}}function L1(e){return F1(e)===yc}function B1(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a=!1,l,c,f,h,u;function y(d,m){return l=d,c=m,f=e(l,c),h=t(r,c),u=n(f,h,c),a=!0,u}function p(){return f=e(l,c),t.dependsOnOwnProps&&(h=t(r,c)),u=n(f,h,c),u}function E(){return e.dependsOnOwnProps&&(f=e(l,c)),t.dependsOnOwnProps&&(h=t(r,c)),u=n(f,h,c),u}function S(){const d=e(l,c),m=!s(d,f);return f=d,m&&(u=n(f,h,c)),u}function g(d,m){const _=!o(m,c),b=!i(d,l,m,c);return l=d,c=m,_&&b?p():_?E():b?S():u}return function(m,_){return a?g(m,_):y(m,_)}}function j1(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),s=n(e,i),a=r(e,i);return B1(o,s,a,e,i)}function z1(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function Hl(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Nd(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function yg(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=Nd(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Nd(c),c=o(a,l)),c},o}}function vc(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function U1(e){return e&&typeof e=="object"?Hl(t=>z1(e,t)):e?typeof e=="function"?yg(e):vc(e,"mapDispatchToProps"):Hl(t=>({dispatch:t}))}function H1(e){return e?typeof e=="function"?yg(e):vc(e,"mapStateToProps"):Hl(()=>({}))}function $1(e,t,n){return{...n,...e,...t}}function G1(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,c,f){const h=e(l,c,f);return o?i(h,s)||(s=h):(o=!0,s=h),s}}}function V1(e){return e?typeof e=="function"?G1(e):vc(e,"mergeProps"):()=>$1}function W1(e){e()}function q1(){let e=null,t=null;return{clear(){e=null,t=null},notify(){W1(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Ad={notify(){},get:()=>[]};function vg(e,t){let n,r=Ad,i=0,o=!1;function s(E){f();const S=r.subscribe(E);let g=!1;return()=>{g||(g=!0,S(),h())}}function a(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return o}function f(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=q1())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Ad)}function u(){o||(o=!0,f())}function y(){o&&(o=!1,h())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:u,tryUnsubscribe:y,getListeners:()=>r};return p}var X1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q1=typeof navigator<"u"&&navigator.product==="ReactNative",cs=X1||Q1?G.useLayoutEffect:G.useEffect;function Rd(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Oa(e,t){if(Rd(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Rd(e[n[i]],t[n[i]]))return!1;return!0}var K1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Y1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Z1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_g={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J1={[D1]:Z1,[M1]:_g};function Pd(e){return L1(e)?_g:J1[e.$$typeof]||K1}var eE=Object.defineProperty,tE=Object.getOwnPropertyNames,Id=Object.getOwnPropertySymbols,nE=Object.getOwnPropertyDescriptor,rE=Object.getPrototypeOf,Dd=Object.prototype;function $l(e,t){if(typeof t!="string"){if(Dd){const o=rE(t);o&&o!==Dd&&$l(e,o)}let n=tE(t);Id&&(n=n.concat(Id(t)));const r=Pd(e),i=Pd(t);for(let o=0;o<n.length;++o){const s=n[o];if(!Y1[s]&&!(i&&i[s])&&!(r&&r[s])){const a=nE(t,s);try{eE(e,s,a)}catch{}}}}return e}var Eg=hg,iE=e=>{Eg=e},oE=[null,null];function sE(e,t,n){cs(()=>e(...t),n)}function aE(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function lE(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,u=null;const y=()=>{if(h||!a.current)return;const E=t.getState();let S,g;try{S=r(E,i.current)}catch(d){g=d,u=d}g||(u=null),S===o.current?s.current||c():(o.current=S,l.current=S,s.current=!0,f())};return n.onStateChange=y,n.trySubscribe(),y(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,u)throw u}}function uE(e,t){return e===t}function cE(e,t,n,{pure:r,areStatesEqual:i=uE,areOwnPropsEqual:o=Oa,areStatePropsEqual:s=Oa,areMergedPropsEqual:a=Oa,forwardRef:l=!1,context:c=Yt}={}){const f=c,h=H1(e),u=U1(t),y=V1(n),p=!!e;return S=>{const g=S.displayName||S.name||"Component",d=`Connect(${g})`,m={shouldHandleStateChanges:p,displayName:d,wrappedComponentName:g,WrappedComponent:S,initMapStateToProps:h,initMapDispatchToProps:u,initMergeProps:y,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function _(x){const[T,M,I]=G.useMemo(()=>{const{reactReduxForwardedRef:et,...Ur}=x;return[x.context,et,Ur]},[x]),se=G.useMemo(()=>{let et=f;return T!=null&&T.Consumer,et},[T,f]),he=G.useContext(se),Be=!!x.store&&!!x.store.getState&&!!x.store.dispatch,nr=!!he&&!!he.store,Tt=Be?x.store:he.store,rr=nr?he.getServerState:Tt.getState,On=G.useMemo(()=>j1(Tt.dispatch,m),[Tt]),[N,F]=G.useMemo(()=>{if(!p)return oE;const et=vg(Tt,Be?void 0:he.subscription),Ur=et.notifyNestedSubs.bind(et);return[et,Ur]},[Tt,Be,he]),L=G.useMemo(()=>Be?he:{...he,subscription:N},[Be,he,N]),Y=G.useRef(void 0),ae=G.useRef(I),Ct=G.useRef(void 0),kt=G.useRef(!1),Nn=G.useRef(!1),dt=G.useRef(void 0);cs(()=>(Nn.current=!0,()=>{Nn.current=!1}),[]);const An=G.useMemo(()=>()=>Ct.current&&I===ae.current?Ct.current:On(Tt.getState(),I),[Tt,I]),D0=G.useMemo(()=>Ur=>N?lE(p,Tt,N,On,ae,Y,kt,Nn,Ct,F,Ur):()=>{},[N]);sE(aE,[ae,Y,kt,I,Ct,F]);let qi;try{qi=Eg(D0,An,rr?()=>On(rr(),I):An)}catch(et){throw dt.current&&(et.message+=`
48
+ */var Gi=O;function c1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var f1=typeof Object.is=="function"?Object.is:c1,d1=Gi.useSyncExternalStore,h1=Gi.useRef,p1=Gi.useEffect,m1=Gi.useMemo,g1=Gi.useDebugValue;dg.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=h1(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=m1(function(){function l(y){if(!c){if(c=!0,f=y,y=r(y),i!==void 0&&s.hasValue){var p=s.value;if(i(p,y))return h=p}return h=y}if(p=h,f1(f,y))return p;var E=r(y);return i!==void 0&&i(p,E)?p:(f=y,h=E)}var c=!1,f,h,u=n===void 0?null:n;return[function(){return l(t())},u===null?void 0:function(){return l(u())}]},[t,n,r,i]);var a=d1(e,o[0],o[1]);return p1(function(){s.hasValue=!0,s.value=a},[a]),g1(a),a};fg.exports=dg;var y1=fg.exports,G="default"in Ef?Et:Ef,kd=Symbol.for("react-redux-context"),Od=typeof globalThis<"u"?globalThis:{};function v1(){if(!G.createContext)return{};const e=Od[kd]??(Od[kd]=new Map);let t=e.get(G.createContext);return t||(t=G.createContext(null),e.set(G.createContext,t)),t}var Yt=v1(),hg=()=>{throw new Error("uSES not initialized!")};function gc(e=Yt){return function(){return G.useContext(e)}}var pg=gc(),mg=hg,_1=e=>{mg=e},E1=(e,t)=>e===t;function S1(e=Yt){const t=e===Yt?pg:gc(e),n=(r,i={})=>{const{equalityFn:o=E1,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:l,getServerState:c,stabilityCheck:f,identityFunctionCheck:h}=t();G.useRef(!0);const u=G.useCallback({[r.name](p){return r(p)}}[r.name],[r,f,s.stabilityCheck]),y=mg(l.addNestedSub,a.getState,c||a.getState,u,o);return G.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var w1=S1(),b1=Symbol.for("react.element"),x1=Symbol.for("react.portal"),T1=Symbol.for("react.fragment"),C1=Symbol.for("react.strict_mode"),k1=Symbol.for("react.profiler"),O1=Symbol.for("react.provider"),N1=Symbol.for("react.context"),A1=Symbol.for("react.server_context"),gg=Symbol.for("react.forward_ref"),R1=Symbol.for("react.suspense"),P1=Symbol.for("react.suspense_list"),yc=Symbol.for("react.memo"),I1=Symbol.for("react.lazy"),D1=gg,M1=yc;function F1(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case b1:{const n=e.type;switch(n){case T1:case k1:case C1:case R1:case P1:return n;default:{const r=n&&n.$$typeof;switch(r){case A1:case N1:case gg:case I1:case yc:case O1:return r;default:return t}}}}case x1:return t}}}function L1(e){return F1(e)===yc}function B1(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a=!1,l,c,f,h,u;function y(d,m){return l=d,c=m,f=e(l,c),h=t(r,c),u=n(f,h,c),a=!0,u}function p(){return f=e(l,c),t.dependsOnOwnProps&&(h=t(r,c)),u=n(f,h,c),u}function E(){return e.dependsOnOwnProps&&(f=e(l,c)),t.dependsOnOwnProps&&(h=t(r,c)),u=n(f,h,c),u}function S(){const d=e(l,c),m=!s(d,f);return f=d,m&&(u=n(f,h,c)),u}function g(d,m){const _=!o(m,c),w=!i(d,l,m,c);return l=d,c=m,_&&w?p():_?E():w?S():u}return function(m,_){return a?g(m,_):y(m,_)}}function j1(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),s=n(e,i),a=r(e,i);return B1(o,s,a,e,i)}function z1(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function Hl(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Nd(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function yg(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=Nd(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Nd(c),c=o(a,l)),c},o}}function vc(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function U1(e){return e&&typeof e=="object"?Hl(t=>z1(e,t)):e?typeof e=="function"?yg(e):vc(e,"mapDispatchToProps"):Hl(t=>({dispatch:t}))}function H1(e){return e?typeof e=="function"?yg(e):vc(e,"mapStateToProps"):Hl(()=>({}))}function $1(e,t,n){return{...n,...e,...t}}function G1(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,c,f){const h=e(l,c,f);return o?i(h,s)||(s=h):(o=!0,s=h),s}}}function V1(e){return e?typeof e=="function"?G1(e):vc(e,"mergeProps"):()=>$1}function W1(e){e()}function q1(){let e=null,t=null;return{clear(){e=null,t=null},notify(){W1(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Ad={notify(){},get:()=>[]};function vg(e,t){let n,r=Ad,i=0,o=!1;function s(E){f();const S=r.subscribe(E);let g=!1;return()=>{g||(g=!0,S(),h())}}function a(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return o}function f(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=q1())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Ad)}function u(){o||(o=!0,f())}function y(){o&&(o=!1,h())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:u,tryUnsubscribe:y,getListeners:()=>r};return p}var X1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q1=typeof navigator<"u"&&navigator.product==="ReactNative",cs=X1||Q1?G.useLayoutEffect:G.useEffect;function Rd(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Oa(e,t){if(Rd(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Rd(e[n[i]],t[n[i]]))return!1;return!0}var K1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Y1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Z1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_g={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J1={[D1]:Z1,[M1]:_g};function Pd(e){return L1(e)?_g:J1[e.$$typeof]||K1}var eE=Object.defineProperty,tE=Object.getOwnPropertyNames,Id=Object.getOwnPropertySymbols,nE=Object.getOwnPropertyDescriptor,rE=Object.getPrototypeOf,Dd=Object.prototype;function $l(e,t){if(typeof t!="string"){if(Dd){const o=rE(t);o&&o!==Dd&&$l(e,o)}let n=tE(t);Id&&(n=n.concat(Id(t)));const r=Pd(e),i=Pd(t);for(let o=0;o<n.length;++o){const s=n[o];if(!Y1[s]&&!(i&&i[s])&&!(r&&r[s])){const a=nE(t,s);try{eE(e,s,a)}catch{}}}}return e}var Eg=hg,iE=e=>{Eg=e},oE=[null,null];function sE(e,t,n){cs(()=>e(...t),n)}function aE(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function lE(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,u=null;const y=()=>{if(h||!a.current)return;const E=t.getState();let S,g;try{S=r(E,i.current)}catch(d){g=d,u=d}g||(u=null),S===o.current?s.current||c():(o.current=S,l.current=S,s.current=!0,f())};return n.onStateChange=y,n.trySubscribe(),y(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,u)throw u}}function uE(e,t){return e===t}function cE(e,t,n,{pure:r,areStatesEqual:i=uE,areOwnPropsEqual:o=Oa,areStatePropsEqual:s=Oa,areMergedPropsEqual:a=Oa,forwardRef:l=!1,context:c=Yt}={}){const f=c,h=H1(e),u=U1(t),y=V1(n),p=!!e;return S=>{const g=S.displayName||S.name||"Component",d=`Connect(${g})`,m={shouldHandleStateChanges:p,displayName:d,wrappedComponentName:g,WrappedComponent:S,initMapStateToProps:h,initMapDispatchToProps:u,initMergeProps:y,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function _(x){const[T,M,I]=G.useMemo(()=>{const{reactReduxForwardedRef:et,...Ur}=x;return[x.context,et,Ur]},[x]),se=G.useMemo(()=>{let et=f;return T!=null&&T.Consumer,et},[T,f]),he=G.useContext(se),Be=!!x.store&&!!x.store.getState&&!!x.store.dispatch,nr=!!he&&!!he.store,Tt=Be?x.store:he.store,rr=nr?he.getServerState:Tt.getState,On=G.useMemo(()=>j1(Tt.dispatch,m),[Tt]),[N,F]=G.useMemo(()=>{if(!p)return oE;const et=vg(Tt,Be?void 0:he.subscription),Ur=et.notifyNestedSubs.bind(et);return[et,Ur]},[Tt,Be,he]),L=G.useMemo(()=>Be?he:{...he,subscription:N},[Be,he,N]),Y=G.useRef(void 0),ae=G.useRef(I),Ct=G.useRef(void 0),kt=G.useRef(!1),Nn=G.useRef(!1),dt=G.useRef(void 0);cs(()=>(Nn.current=!0,()=>{Nn.current=!1}),[]);const An=G.useMemo(()=>()=>Ct.current&&I===ae.current?Ct.current:On(Tt.getState(),I),[Tt,I]),D0=G.useMemo(()=>Ur=>N?lE(p,Tt,N,On,ae,Y,kt,Nn,Ct,F,Ur):()=>{},[N]);sE(aE,[ae,Y,kt,I,Ct,F]);let qi;try{qi=Eg(D0,An,rr?()=>On(rr(),I):An)}catch(et){throw dt.current&&(et.message+=`
49
49
  The error may be correlated with this previous error:
50
50
  ${dt.current.stack}
51
51
 
52
- `),et}cs(()=>{dt.current=void 0,Ct.current=void 0,Y.current=qi});const ta=G.useMemo(()=>G.createElement(S,{...qi,ref:M}),[M,S,qi]);return G.useMemo(()=>p?G.createElement(se.Provider,{value:L},ta):ta,[se,ta,L])}const w=G.memo(_);if(w.WrappedComponent=S,w.displayName=_.displayName=d,l){const T=G.forwardRef(function(I,se){return G.createElement(w,{...I,reactReduxForwardedRef:se})});return T.displayName=d,T.WrappedComponent=S,$l(T,S)}return $l(w,S)}}var fE=cE;function dE({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=G.useMemo(()=>{const c=vg(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),a=G.useMemo(()=>e.getState(),[e]);cs(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const l=t||Yt;return G.createElement(l.Provider,{value:s},n)}var hE=dE;function Sg(e=Yt){const t=e===Yt?pg:gc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var pE=Sg();function mE(e=Yt){const t=e===Yt?pE:Sg(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var gE=mE();_1(y1.useSyncExternalStoreWithSelector);iE(O.useSyncExternalStore);var Gl=function(e,t){return Gl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Gl(e,t)};function ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var R=function(){return R=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},R.apply(this,arguments)};function Fs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function De(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Ae(e,t){var n=t&&t.cache?t.cache:bE,r=t&&t.serializer?t.serializer:SE,i=t&&t.strategy?t.strategy:vE;return i(e,{cache:n,serializer:r})}function yE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function bg(e,t,n,r){var i=yE(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function wg(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function _c(e,t,n,r,i){return n.bind(t,e,r,i)}function vE(e,t){var n=e.length===1?bg:wg;return _c(e,this,n,t.cache.create(),t.serializer)}function _E(e,t){return _c(e,this,wg,t.cache.create(),t.serializer)}function EE(e,t){return _c(e,this,bg,t.cache.create(),t.serializer)}var SE=function(){return JSON.stringify(arguments)};function Ec(){this.cache=Object.create(null)}Ec.prototype.get=function(e){return this.cache[e]};Ec.prototype.set=function(e,t){this.cache[e]=t};var bE={create:function(){return new Ec}},Re={variadic:_E,monadic:EE};function xg(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});var U;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(U||(U={}));var J;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(J||(J={}));var Ir;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ir||(Ir={}));function Md(e){return e.type===J.literal}function wE(e){return e.type===J.argument}function Tg(e){return e.type===J.number}function Cg(e){return e.type===J.date}function kg(e){return e.type===J.time}function Og(e){return e.type===J.select}function Ng(e){return e.type===J.plural}function xE(e){return e.type===J.pound}function Ag(e){return e.type===J.tag}function Rg(e){return!!(e&&typeof e=="object"&&e.type===Ir.number)}function Vl(e){return!!(e&&typeof e=="object"&&e.type===Ir.dateTime)}var Pg=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,TE=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function CE(e){var t={};return e.replace(TE,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var kE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function OE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(kE).filter(function(u){return u.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),c=0,f=l;c<f.length;c++){var h=f[c];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function NE(e){return e.replace(/^(.*?)-/,"")}var Fd=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ig=/^(@+)?(\+|#+)?[rs]?$/g,AE=/(\*)(0+)|(#+)(0+)|(0+)/g,Dg=/^(0+)$/;function Ld(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ig,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Mg(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function RE(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Dg.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Bd(e){var t={},n=Mg(e);return n||t}function PE(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=NE(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=R(R(R({},t),{notation:"scientific"}),i.options.reduce(function(l,c){return R(R({},l),Bd(c))},{}));continue;case"engineering":t=R(R(R({},t),{notation:"engineering"}),i.options.reduce(function(l,c){return R(R({},l),Bd(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(AE,function(l,c,f,h,u,y){if(c)t.minimumIntegerDigits=f.length;else{if(h&&u)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Dg.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Fd.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Fd,function(l,c,f,h,u,y){return f==="*"?t.minimumFractionDigits=c.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:u&&y?(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length+y.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=R(R({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=R(R({},t),Ld(o)));continue}if(Ig.test(i.stem)){t=R(R({},t),Ld(i.stem));continue}var s=Mg(i.stem);s&&(t=R(R({},t),s));var a=RE(i.stem);a&&(t=R(R({},t),a))}return t}var fo={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function IE(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",c=DE(t);for((c=="H"||c=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function DE(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=fo[r||""]||fo[n||""]||fo["".concat(n,"-001")]||fo["001"];return i[0]}var Na,ME=new RegExp("^".concat(Pg.source,"*")),FE=new RegExp("".concat(Pg.source,"*$"));function $(e,t){return{start:e,end:t}}var LE=!!String.prototype.startsWith&&"_a".startsWith("a",1),BE=!!String.fromCodePoint,jE=!!Object.fromEntries,zE=!!String.prototype.codePointAt,UE=!!String.prototype.trimStart,HE=!!String.prototype.trimEnd,$E=!!Number.isSafeInteger,GE=$E?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Wl=!0;try{var VE=Lg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wl=((Na=VE.exec("a"))===null||Na===void 0?void 0:Na[0])==="a"}catch{Wl=!1}var jd=LE?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},ql=BE?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},zd=jE?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Fg=zE?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},WE=UE?function(t){return t.trimStart()}:function(t){return t.replace(ME,"")},qE=HE?function(t){return t.trimEnd()}:function(t){return t.replace(FE,"")};function Lg(e,t){return new RegExp(e,t)}var Xl;if(Wl){var Ud=Lg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xl=function(t,n){var r;Ud.lastIndex=n;var i=Ud.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Xl=function(t,n){for(var r=[];;){var i=Fg(t,n);if(i===void 0||Bg(i)||YE(i))break;r.push(i),n+=i>=65536?2:1}return ql.apply(void 0,r)};var XE=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:J.pound,location:$(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(U.UNMATCHED_CLOSING_TAG,$(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ql(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:J.literal,value:"<".concat(i,"/>"),location:$(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ql(this.char()))return this.error(U.INVALID_TAG,$(a,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(U.UNMATCHED_CLOSING_TAG,$(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:J.tag,value:i,children:s,location:$(r,this.clonePosition())},err:null}:this.error(U.INVALID_TAG,$(a,this.clonePosition())))}else return this.error(U.UNCLOSED_TAG,$(r,this.clonePosition()))}else return this.error(U.INVALID_TAG,$(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&KE(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=$(r,this.clonePosition());return{val:{type:J.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!QE(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ql.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ql(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(U.EMPTY_ARGUMENT,$(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(U.MALFORMED_ARGUMENT,$(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:J.argument,value:i,location:$(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(U.MALFORMED_ARGUMENT,$(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Xl(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=$(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(U.EXPECT_ARGUMENT_TYPE,$(s,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var u=qE(h.val);if(u.length===0)return this.error(U.EXPECT_ARGUMENT_STYLE,$(this.clonePosition(),this.clonePosition()));var y=$(f,this.clonePosition());c={style:u,styleLocation:y}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var E=$(i,this.clonePosition());if(c&&jd(c==null?void 0:c.style,"::",0)){var S=WE(c.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(S,c.styleLocation);return h.err?h:{val:{type:J.number,value:r,location:E,style:h.val},err:null}}else{if(S.length===0)return this.error(U.EXPECT_DATE_TIME_SKELETON,E);var g=S;this.locale&&(g=IE(S,this.locale));var u={type:Ir.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?CE(g):{}},d=a==="date"?J.date:J.time;return{val:{type:d,value:r,location:E,style:u},err:null}}}return{val:{type:a==="number"?J.number:a==="date"?J.date:J.time,value:r,location:E,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(U.EXPECT_SELECT_ARGUMENT_OPTIONS,$(m,R({},m)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),b=0;if(a!=="select"&&_.value==="offset"){if(!this.bumpIf(":"))return this.error(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),_=this.parseIdentifierIfPossible(),b=h.val}var w=this.tryParsePluralOrSelectOptions(t,a,n,_);if(w.err)return w;var p=this.tryParseArgumentClose(i);if(p.err)return p;var x=$(i,this.clonePosition());return a==="select"?{val:{type:J.select,value:r,options:zd(w.val),location:x},err:null}:{val:{type:J.plural,value:r,options:zd(w.val),offset:b,pluralType:a==="plural"?"cardinal":"ordinal",location:x},err:null}}default:return this.error(U.INVALID_ARGUMENT_TYPE,$(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,$(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(U.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=OE(t)}catch{return this.error(U.INVALID_NUMBER_SKELETON,n)}return{val:{type:Ir.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?PE(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],l=new Set,c=i.value,f=i.location;;){if(c.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_SELECTOR,U.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;f=$(h,this.clonePosition()),c=this.message.slice(h.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?U.DUPLICATE_SELECT_ARGUMENT_SELECTOR:U.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(s=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?U.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:U.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var E=this.tryParseArgumentClose(y);if(E.err)return E;a.push([c,{value:p.val,location:$(y,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,f=o.location}return a.length===0?this.error(n==="select"?U.EXPECT_SELECT_ARGUMENT_SELECTOR:U.EXPECT_PLURAL_ARGUMENT_SELECTOR,$(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(U.MISSING_OTHER_CLAUSE,$(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=$(i,this.clonePosition());return o?(s*=r,GE(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Fg(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(jd(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Bg(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Ql(e){return e>=97&&e<=122||e>=65&&e<=90}function QE(e){return Ql(e)||e===47}function KE(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Bg(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function YE(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Kl(e){e.forEach(function(t){if(delete t.location,Og(t)||Ng(t))for(var n in t.options)delete t.options[n].location,Kl(t.options[n].value);else Tg(t)&&Rg(t.style)||(Cg(t)||kg(t))&&Vl(t.style)?delete t.style.location:Ag(t)&&Kl(t.children)})}function ZE(e,t){t===void 0&&(t={}),t=R({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new XE(e,t).parse();if(n.err){var r=SyntaxError(U[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Kl(n.val),n.val}var Ft;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ft||(Ft={}));var Cn=function(e){ut(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Hd=function(e){ut(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ft.INVALID_VALUE,o)||this}return t}(Cn),JE=function(e){ut(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ft.INVALID_VALUE,i)||this}return t}(Cn),eS=function(e){ut(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ft.MISSING_VALUE,r)||this}return t}(Cn),Oe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Oe||(Oe={}));function tS(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Oe.literal||n.type!==Oe.literal?t.push(n):r.value+=n.value,t},[])}function jg(e){return typeof e=="function"}function Po(e,t,n,r,i,o,s){if(e.length===1&&Md(e[0]))return[{type:Oe.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var f=c[l];if(Md(f)){a.push({type:Oe.literal,value:f.value});continue}if(xE(f)){typeof o=="number"&&a.push({type:Oe.literal,value:n.getNumberFormat(t).format(o)});continue}var h=f.value;if(!(i&&h in i))throw new eS(h,s);var u=i[h];if(wE(f)){(!u||typeof u=="string"||typeof u=="number")&&(u=typeof u=="string"||typeof u=="number"?String(u):""),a.push({type:typeof u=="string"?Oe.literal:Oe.object,value:u});continue}if(Cg(f)){var y=typeof f.style=="string"?r.date[f.style]:Vl(f.style)?f.style.parsedOptions:void 0;a.push({type:Oe.literal,value:n.getDateTimeFormat(t,y).format(u)});continue}if(kg(f)){var y=typeof f.style=="string"?r.time[f.style]:Vl(f.style)?f.style.parsedOptions:r.time.medium;a.push({type:Oe.literal,value:n.getDateTimeFormat(t,y).format(u)});continue}if(Tg(f)){var y=typeof f.style=="string"?r.number[f.style]:Rg(f.style)?f.style.parsedOptions:void 0;y&&y.scale&&(u=u*(y.scale||1)),a.push({type:Oe.literal,value:n.getNumberFormat(t,y).format(u)});continue}if(Ag(f)){var p=f.children,E=f.value,S=i[E];if(!jg(S))throw new JE(E,"function",s);var g=Po(p,t,n,r,i,o),d=S(g.map(function(b){return b.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(b){return{type:typeof b=="string"?Oe.literal:Oe.object,value:b}}))}if(Og(f)){var m=f.options[u]||f.options.other;if(!m)throw new Hd(f.value,u,Object.keys(f.options),s);a.push.apply(a,Po(m.value,t,n,r,i));continue}if(Ng(f)){var m=f.options["=".concat(u)];if(!m){if(!Intl.PluralRules)throw new Cn(`Intl.PluralRules is not available in this environment.
52
+ `),et}cs(()=>{dt.current=void 0,Ct.current=void 0,Y.current=qi});const ta=G.useMemo(()=>G.createElement(S,{...qi,ref:M}),[M,S,qi]);return G.useMemo(()=>p?G.createElement(se.Provider,{value:L},ta):ta,[se,ta,L])}const b=G.memo(_);if(b.WrappedComponent=S,b.displayName=_.displayName=d,l){const T=G.forwardRef(function(I,se){return G.createElement(b,{...I,reactReduxForwardedRef:se})});return T.displayName=d,T.WrappedComponent=S,$l(T,S)}return $l(b,S)}}var fE=cE;function dE({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=G.useMemo(()=>{const c=vg(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),a=G.useMemo(()=>e.getState(),[e]);cs(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const l=t||Yt;return G.createElement(l.Provider,{value:s},n)}var hE=dE;function Sg(e=Yt){const t=e===Yt?pg:gc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var pE=Sg();function mE(e=Yt){const t=e===Yt?pE:Sg(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var gE=mE();_1(y1.useSyncExternalStoreWithSelector);iE(O.useSyncExternalStore);var Gl=function(e,t){return Gl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Gl(e,t)};function ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var R=function(){return R=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},R.apply(this,arguments)};function Fs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function De(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Ae(e,t){var n=t&&t.cache?t.cache:wE,r=t&&t.serializer?t.serializer:SE,i=t&&t.strategy?t.strategy:vE;return i(e,{cache:n,serializer:r})}function yE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wg(e,t,n,r){var i=yE(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function bg(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function _c(e,t,n,r,i){return n.bind(t,e,r,i)}function vE(e,t){var n=e.length===1?wg:bg;return _c(e,this,n,t.cache.create(),t.serializer)}function _E(e,t){return _c(e,this,bg,t.cache.create(),t.serializer)}function EE(e,t){return _c(e,this,wg,t.cache.create(),t.serializer)}var SE=function(){return JSON.stringify(arguments)};function Ec(){this.cache=Object.create(null)}Ec.prototype.get=function(e){return this.cache[e]};Ec.prototype.set=function(e,t){this.cache[e]=t};var wE={create:function(){return new Ec}},Re={variadic:_E,monadic:EE};function xg(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});Ae(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,De([void 0],t,!1)))},{strategy:Re.variadic});var U;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(U||(U={}));var J;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(J||(J={}));var Ir;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ir||(Ir={}));function Md(e){return e.type===J.literal}function bE(e){return e.type===J.argument}function Tg(e){return e.type===J.number}function Cg(e){return e.type===J.date}function kg(e){return e.type===J.time}function Og(e){return e.type===J.select}function Ng(e){return e.type===J.plural}function xE(e){return e.type===J.pound}function Ag(e){return e.type===J.tag}function Rg(e){return!!(e&&typeof e=="object"&&e.type===Ir.number)}function Vl(e){return!!(e&&typeof e=="object"&&e.type===Ir.dateTime)}var Pg=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,TE=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function CE(e){var t={};return e.replace(TE,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var kE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function OE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(kE).filter(function(u){return u.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),c=0,f=l;c<f.length;c++){var h=f[c];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function NE(e){return e.replace(/^(.*?)-/,"")}var Fd=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ig=/^(@+)?(\+|#+)?[rs]?$/g,AE=/(\*)(0+)|(#+)(0+)|(0+)/g,Dg=/^(0+)$/;function Ld(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ig,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Mg(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function RE(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Dg.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Bd(e){var t={},n=Mg(e);return n||t}function PE(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=NE(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=R(R(R({},t),{notation:"scientific"}),i.options.reduce(function(l,c){return R(R({},l),Bd(c))},{}));continue;case"engineering":t=R(R(R({},t),{notation:"engineering"}),i.options.reduce(function(l,c){return R(R({},l),Bd(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(AE,function(l,c,f,h,u,y){if(c)t.minimumIntegerDigits=f.length;else{if(h&&u)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Dg.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Fd.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Fd,function(l,c,f,h,u,y){return f==="*"?t.minimumFractionDigits=c.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:u&&y?(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length+y.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=R(R({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=R(R({},t),Ld(o)));continue}if(Ig.test(i.stem)){t=R(R({},t),Ld(i.stem));continue}var s=Mg(i.stem);s&&(t=R(R({},t),s));var a=RE(i.stem);a&&(t=R(R({},t),a))}return t}var fo={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function IE(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",c=DE(t);for((c=="H"||c=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function DE(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=fo[r||""]||fo[n||""]||fo["".concat(n,"-001")]||fo["001"];return i[0]}var Na,ME=new RegExp("^".concat(Pg.source,"*")),FE=new RegExp("".concat(Pg.source,"*$"));function $(e,t){return{start:e,end:t}}var LE=!!String.prototype.startsWith&&"_a".startsWith("a",1),BE=!!String.fromCodePoint,jE=!!Object.fromEntries,zE=!!String.prototype.codePointAt,UE=!!String.prototype.trimStart,HE=!!String.prototype.trimEnd,$E=!!Number.isSafeInteger,GE=$E?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Wl=!0;try{var VE=Lg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wl=((Na=VE.exec("a"))===null||Na===void 0?void 0:Na[0])==="a"}catch{Wl=!1}var jd=LE?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},ql=BE?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},zd=jE?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Fg=zE?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},WE=UE?function(t){return t.trimStart()}:function(t){return t.replace(ME,"")},qE=HE?function(t){return t.trimEnd()}:function(t){return t.replace(FE,"")};function Lg(e,t){return new RegExp(e,t)}var Xl;if(Wl){var Ud=Lg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xl=function(t,n){var r;Ud.lastIndex=n;var i=Ud.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Xl=function(t,n){for(var r=[];;){var i=Fg(t,n);if(i===void 0||Bg(i)||YE(i))break;r.push(i),n+=i>=65536?2:1}return ql.apply(void 0,r)};var XE=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:J.pound,location:$(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(U.UNMATCHED_CLOSING_TAG,$(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ql(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:J.literal,value:"<".concat(i,"/>"),location:$(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ql(this.char()))return this.error(U.INVALID_TAG,$(a,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(U.UNMATCHED_CLOSING_TAG,$(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:J.tag,value:i,children:s,location:$(r,this.clonePosition())},err:null}:this.error(U.INVALID_TAG,$(a,this.clonePosition())))}else return this.error(U.UNCLOSED_TAG,$(r,this.clonePosition()))}else return this.error(U.INVALID_TAG,$(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&KE(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=$(r,this.clonePosition());return{val:{type:J.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!QE(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ql.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ql(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(U.EMPTY_ARGUMENT,$(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(U.MALFORMED_ARGUMENT,$(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:J.argument,value:i,location:$(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(U.MALFORMED_ARGUMENT,$(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Xl(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=$(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(U.EXPECT_ARGUMENT_TYPE,$(s,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var u=qE(h.val);if(u.length===0)return this.error(U.EXPECT_ARGUMENT_STYLE,$(this.clonePosition(),this.clonePosition()));var y=$(f,this.clonePosition());c={style:u,styleLocation:y}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var E=$(i,this.clonePosition());if(c&&jd(c==null?void 0:c.style,"::",0)){var S=WE(c.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(S,c.styleLocation);return h.err?h:{val:{type:J.number,value:r,location:E,style:h.val},err:null}}else{if(S.length===0)return this.error(U.EXPECT_DATE_TIME_SKELETON,E);var g=S;this.locale&&(g=IE(S,this.locale));var u={type:Ir.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?CE(g):{}},d=a==="date"?J.date:J.time;return{val:{type:d,value:r,location:E,style:u},err:null}}}return{val:{type:a==="number"?J.number:a==="date"?J.date:J.time,value:r,location:E,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(U.EXPECT_SELECT_ARGUMENT_OPTIONS,$(m,R({},m)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&_.value==="offset"){if(!this.bumpIf(":"))return this.error(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),_=this.parseIdentifierIfPossible(),w=h.val}var b=this.tryParsePluralOrSelectOptions(t,a,n,_);if(b.err)return b;var p=this.tryParseArgumentClose(i);if(p.err)return p;var x=$(i,this.clonePosition());return a==="select"?{val:{type:J.select,value:r,options:zd(b.val),location:x},err:null}:{val:{type:J.plural,value:r,options:zd(b.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:x},err:null}}default:return this.error(U.INVALID_ARGUMENT_TYPE,$(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(U.EXPECT_ARGUMENT_CLOSING_BRACE,$(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(U.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=OE(t)}catch{return this.error(U.INVALID_NUMBER_SKELETON,n)}return{val:{type:Ir.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?PE(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],l=new Set,c=i.value,f=i.location;;){if(c.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var u=this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_SELECTOR,U.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;f=$(h,this.clonePosition()),c=this.message.slice(h.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?U.DUPLICATE_SELECT_ARGUMENT_SELECTOR:U.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(s=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?U.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:U.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var E=this.tryParseArgumentClose(y);if(E.err)return E;a.push([c,{value:p.val,location:$(y,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,f=o.location}return a.length===0?this.error(n==="select"?U.EXPECT_SELECT_ARGUMENT_SELECTOR:U.EXPECT_PLURAL_ARGUMENT_SELECTOR,$(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(U.MISSING_OTHER_CLAUSE,$(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=$(i,this.clonePosition());return o?(s*=r,GE(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Fg(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(jd(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Bg(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Ql(e){return e>=97&&e<=122||e>=65&&e<=90}function QE(e){return Ql(e)||e===47}function KE(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Bg(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function YE(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Kl(e){e.forEach(function(t){if(delete t.location,Og(t)||Ng(t))for(var n in t.options)delete t.options[n].location,Kl(t.options[n].value);else Tg(t)&&Rg(t.style)||(Cg(t)||kg(t))&&Vl(t.style)?delete t.style.location:Ag(t)&&Kl(t.children)})}function ZE(e,t){t===void 0&&(t={}),t=R({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new XE(e,t).parse();if(n.err){var r=SyntaxError(U[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Kl(n.val),n.val}var Ft;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ft||(Ft={}));var Cn=function(e){ut(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Hd=function(e){ut(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ft.INVALID_VALUE,o)||this}return t}(Cn),JE=function(e){ut(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ft.INVALID_VALUE,i)||this}return t}(Cn),eS=function(e){ut(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ft.MISSING_VALUE,r)||this}return t}(Cn),Oe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Oe||(Oe={}));function tS(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Oe.literal||n.type!==Oe.literal?t.push(n):r.value+=n.value,t},[])}function jg(e){return typeof e=="function"}function Po(e,t,n,r,i,o,s){if(e.length===1&&Md(e[0]))return[{type:Oe.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var f=c[l];if(Md(f)){a.push({type:Oe.literal,value:f.value});continue}if(xE(f)){typeof o=="number"&&a.push({type:Oe.literal,value:n.getNumberFormat(t).format(o)});continue}var h=f.value;if(!(i&&h in i))throw new eS(h,s);var u=i[h];if(bE(f)){(!u||typeof u=="string"||typeof u=="number")&&(u=typeof u=="string"||typeof u=="number"?String(u):""),a.push({type:typeof u=="string"?Oe.literal:Oe.object,value:u});continue}if(Cg(f)){var y=typeof f.style=="string"?r.date[f.style]:Vl(f.style)?f.style.parsedOptions:void 0;a.push({type:Oe.literal,value:n.getDateTimeFormat(t,y).format(u)});continue}if(kg(f)){var y=typeof f.style=="string"?r.time[f.style]:Vl(f.style)?f.style.parsedOptions:r.time.medium;a.push({type:Oe.literal,value:n.getDateTimeFormat(t,y).format(u)});continue}if(Tg(f)){var y=typeof f.style=="string"?r.number[f.style]:Rg(f.style)?f.style.parsedOptions:void 0;y&&y.scale&&(u=u*(y.scale||1)),a.push({type:Oe.literal,value:n.getNumberFormat(t,y).format(u)});continue}if(Ag(f)){var p=f.children,E=f.value,S=i[E];if(!jg(S))throw new JE(E,"function",s);var g=Po(p,t,n,r,i,o),d=S(g.map(function(w){return w.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(w){return{type:typeof w=="string"?Oe.literal:Oe.object,value:w}}))}if(Og(f)){var m=f.options[u]||f.options.other;if(!m)throw new Hd(f.value,u,Object.keys(f.options),s);a.push.apply(a,Po(m.value,t,n,r,i));continue}if(Ng(f)){var m=f.options["=".concat(u)];if(!m){if(!Intl.PluralRules)throw new Cn(`Intl.PluralRules is not available in this environment.
53
53
  Try polyfilling it using "@formatjs/intl-pluralrules"
54
54
  `,Ft.MISSING_INTL_API,s);var _=n.getPluralRules(t,{type:f.pluralType}).select(u-(f.offset||0));m=f.options[_]||f.options.other}if(!m)throw new Hd(f.value,u,Object.keys(f.options),s);a.push.apply(a,Po(m.value,t,n,r,i,u-(f.offset||0)));continue}}return tS(a)}function nS(e,t){return t?R(R(R({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=R(R({},e[r]),t[r]||{}),n},{})):e}function rS(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=nS(e[r],t[r]),n},R({},e)):e}function Aa(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function iS(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ae(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,De([void 0],n,!1)))},{cache:Aa(e.number),strategy:Re.variadic}),getDateTimeFormat:Ae(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,De([void 0],n,!1)))},{cache:Aa(e.dateTime),strategy:Re.variadic}),getPluralRules:Ae(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,De([void 0],n,!1)))},{cache:Aa(e.pluralRules),strategy:Re.variadic})}}var zg=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var c=o.formatToParts(l);if(c.length===1)return c[0].value;var f=c.reduce(function(h,u){return!h.length||u.type!==Oe.literal||typeof h[h.length-1]!="string"?h.push(u.value):h[h.length-1]+=u.value,h},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Po(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Fs(s,["formatters"]);this.ast=e.__parse(t,R(R({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=rS(e.formats,r),this.formatters=i&&i.formatters||iS(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ZE,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Qn;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Qn||(Qn={}));var Vi=function(e){ut(t,e);function t(n,r,i){var o=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
55
55
  `).concat(s?`
@@ -64,30 +64,30 @@ Description: `).concat(i==null?void 0:i.description,`
64
64
  Try polyfilling it using "@formatjs/intl-displaynames"
65
65
  `,Ft.MISSING_INTL_API));var a=er(r,gS);try{return t(i,a).of(n)}catch(l){o(new ct("Error formatting display name.",i,l))}}var vS=["type","style"],Wd=Date.now();function _S(e){return"".concat(Wd,"_").concat(e,"_").concat(Wd)}function ES(e,t,n,r){r===void 0&&(r={});var i=Gg(e,t,n,r).reduce(function(o,s){var a=s.value;return typeof a!="string"?o.push(a):typeof o[o.length-1]=="string"?o[o.length-1]+=a:o.push(a),o},[]);return i.length===1?i[0]:i.length===0?"":i}function Gg(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||o(new Cn(`Intl.ListFormat is not available in this environment.
66
66
  Try polyfilling it using "@formatjs/intl-listformat"
67
- `,Ft.MISSING_INTL_API));var a=er(r,vS);try{var l={},c=n.map(function(f,h){if(typeof f=="object"){var u=_S(h);return l[u]=f,u}return String(f)});return t(i,a).formatToParts(c).map(function(f){return f.type==="literal"?f:R(R({},f),{value:l[f.value]||f.value})})}catch(f){o(new ct("Error formatting list.",i,f))}return n}var SS=["type"];function bS(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new Cn(`Intl.PluralRules is not available in this environment.
67
+ `,Ft.MISSING_INTL_API));var a=er(r,vS);try{var l={},c=n.map(function(f,h){if(typeof f=="object"){var u=_S(h);return l[u]=f,u}return String(f)});return t(i,a).formatToParts(c).map(function(f){return f.type==="literal"?f:R(R({},f),{value:l[f.value]||f.value})})}catch(f){o(new ct("Error formatting list.",i,f))}return n}var SS=["type"];function wS(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new Cn(`Intl.PluralRules is not available in this environment.
68
68
  Try polyfilling it using "@formatjs/intl-pluralrules"
69
- `,Ft.MISSING_INTL_API));var s=er(r,SS);try{return t(i,s).select(n)}catch(a){o(new ct("Error formatting plural.",i,a))}return"other"}var wS=["numeric","style"];function xS(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Sc(i,"relative",s,o)||{},l=er(n,wS,a);return t(r,l)}function TS(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Cn(`Intl.RelativeTimeFormat is not available in this environment.
69
+ `,Ft.MISSING_INTL_API));var s=er(r,SS);try{return t(i,s).select(n)}catch(a){o(new ct("Error formatting plural.",i,a))}return"other"}var bS=["numeric","style"];function xS(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Sc(i,"relative",s,o)||{},l=er(n,bS,a);return t(r,l)}function TS(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Cn(`Intl.RelativeTimeFormat is not available in this environment.
70
70
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
71
71
  `,Ft.MISSING_INTL_API));try{return xS(e,t,i).format(n,r)}catch(s){e.onError(new ct("Error formatting relative time.",e.locale,s))}return String(n)}var CS=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Vg(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=s&&Sc(i,"number",s,o)||{},l=er(n,CS,a);return t(r,l)}function kS(e,t,n,r){r===void 0&&(r={});try{return Vg(e,t,r).format(n)}catch(i){e.onError(new ct("Error formatting number.",e.locale,i))}return String(n)}function OS(e,t,n,r){r===void 0&&(r={});try{return Vg(e,t,r).formatToParts(n)}catch(i){e.onError(new ct("Error formatting number.",e.locale,i))}return[]}function NS(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function AS(e){e.onWarn&&e.defaultRichTextElements&&NS(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
72
72
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
73
- For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function RS(e,t){var n=cS(t),r=R(R({},Ug),e),i=r.locale,o=r.defaultLocale,s=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new $d('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new $d('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new sS('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),AS(r),R(R({},r),{formatters:n,formatNumber:kS.bind(null,r,n.getNumberFormat),formatNumberToParts:OS.bind(null,r,n.getNumberFormat),formatRelativeTime:TS.bind(null,r,n.getRelativeTimeFormat),formatDate:fS.bind(null,r,n.getDateTimeFormat),formatDateToParts:pS.bind(null,r,n.getDateTimeFormat),formatTime:dS.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:hS.bind(null,r,n.getDateTimeFormat),formatTimeToParts:mS.bind(null,r,n.getDateTimeFormat),formatPlural:bS.bind(null,r,n.getPluralRules),formatMessage:Yl.bind(null,r,n),$t:Yl.bind(null,r,n),formatList:ES.bind(null,r,n.getListFormat),formatListToParts:Gg.bind(null,r,n.getListFormat),formatDisplayName:yS.bind(null,r,n.getDisplayNames)})}function Wg(e){xg(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var qg=R(R({},Ug),{textComponent:O.Fragment});function PS(e){return function(t){return e(O.Children.toArray(t))}}function IS(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var s=n[o];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var bc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=O.createContext(null)):O.createContext(null);bc.Consumer;var DS=bc.Provider,MS=DS,FS=bc;function Bs(){var e=O.useContext(FS);return Wg(e),e}var Zl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Zl||(Zl={}));var Jl;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Jl||(Jl={}));function Xg(e){var t=function(n){var r=Bs(),i=n.value,o=n.children,s=Fs(n,["value","children"]),a=typeof i=="string"?new Date(i||0):i,l=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return o(l)};return t.displayName=Jl[e],t}function Wi(e){var t=function(n){var r=Bs(),i=n.value,o=n.children,s=Fs(n,["value","children"]),a=r[e](i,s);if(typeof o=="function")return o(a);var l=r.textComponent||O.Fragment;return O.createElement(l,null,a)};return t.displayName=Zl[e],t}function Qg(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=jg(r)?PS(r):r,t},{})}var qd=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var s=Qg(r),a=Yl.apply(void 0,De([e,t,n,s],i,!1));return Array.isArray(a)?O.Children.toArray(a):a},Xd=function(e,t){var n=e.defaultRichTextElements,r=Fs(e,["defaultRichTextElements"]),i=Qg(n),o=RS(R(R(R({},qg),r),{defaultRichTextElements:i}),t),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return R(R({},o),{formatMessage:qd.bind(null,s,o.formatters),$t:qd.bind(null,s,o.formatters)})};function Pa(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var LS=function(e){ut(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=Hg(),n.state={cache:n.cache,intl:Xd(Pa(n.props),n.cache),prevConfig:Pa(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,s=Pa(n);return IS(i,s)?null:{intl:Xd(s,o),prevConfig:s}},t.prototype.render=function(){return Wg(this.state.intl),O.createElement(MS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=qg,t}(O.PureComponent);Wi("formatDate");Wi("formatTime");Wi("formatNumber");Wi("formatList");Wi("formatDisplayName");Xg("formatDate");Xg("formatTime");const BS="_app_wkun7_5",jS={app:BS},Kg=()=>zS(window.location.pathname),zS=e=>{const t=e.split("/"),n=e.endsWith("/");return t[t.length-(n?2:1)]},wc=gE,$n=b1;var Yg={exports:{}};/*!
73
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function RS(e,t){var n=cS(t),r=R(R({},Ug),e),i=r.locale,o=r.defaultLocale,s=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new $d('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new $d('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new sS('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),AS(r),R(R({},r),{formatters:n,formatNumber:kS.bind(null,r,n.getNumberFormat),formatNumberToParts:OS.bind(null,r,n.getNumberFormat),formatRelativeTime:TS.bind(null,r,n.getRelativeTimeFormat),formatDate:fS.bind(null,r,n.getDateTimeFormat),formatDateToParts:pS.bind(null,r,n.getDateTimeFormat),formatTime:dS.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:hS.bind(null,r,n.getDateTimeFormat),formatTimeToParts:mS.bind(null,r,n.getDateTimeFormat),formatPlural:wS.bind(null,r,n.getPluralRules),formatMessage:Yl.bind(null,r,n),$t:Yl.bind(null,r,n),formatList:ES.bind(null,r,n.getListFormat),formatListToParts:Gg.bind(null,r,n.getListFormat),formatDisplayName:yS.bind(null,r,n.getDisplayNames)})}function Wg(e){xg(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var qg=R(R({},Ug),{textComponent:O.Fragment});function PS(e){return function(t){return e(O.Children.toArray(t))}}function IS(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var s=n[o];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var wc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=O.createContext(null)):O.createContext(null);wc.Consumer;var DS=wc.Provider,MS=DS,FS=wc;function Bs(){var e=O.useContext(FS);return Wg(e),e}var Zl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Zl||(Zl={}));var Jl;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Jl||(Jl={}));function Xg(e){var t=function(n){var r=Bs(),i=n.value,o=n.children,s=Fs(n,["value","children"]),a=typeof i=="string"?new Date(i||0):i,l=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return o(l)};return t.displayName=Jl[e],t}function Wi(e){var t=function(n){var r=Bs(),i=n.value,o=n.children,s=Fs(n,["value","children"]),a=r[e](i,s);if(typeof o=="function")return o(a);var l=r.textComponent||O.Fragment;return O.createElement(l,null,a)};return t.displayName=Zl[e],t}function Qg(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=jg(r)?PS(r):r,t},{})}var qd=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var s=Qg(r),a=Yl.apply(void 0,De([e,t,n,s],i,!1));return Array.isArray(a)?O.Children.toArray(a):a},Xd=function(e,t){var n=e.defaultRichTextElements,r=Fs(e,["defaultRichTextElements"]),i=Qg(n),o=RS(R(R(R({},qg),r),{defaultRichTextElements:i}),t),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return R(R({},o),{formatMessage:qd.bind(null,s,o.formatters),$t:qd.bind(null,s,o.formatters)})};function Pa(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var LS=function(e){ut(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=Hg(),n.state={cache:n.cache,intl:Xd(Pa(n.props),n.cache),prevConfig:Pa(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,s=Pa(n);return IS(i,s)?null:{intl:Xd(s,o),prevConfig:s}},t.prototype.render=function(){return Wg(this.state.intl),O.createElement(MS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=qg,t}(O.PureComponent);Wi("formatDate");Wi("formatTime");Wi("formatNumber");Wi("formatList");Wi("formatDisplayName");Xg("formatDate");Xg("formatTime");const BS="_app_wkun7_5",jS={app:BS},Kg=()=>zS(window.location.pathname),zS=e=>{const t=e.split("/"),n=e.endsWith("/");return t[t.length-(n?2:1)]},bc=gE,$n=w1;var Yg={exports:{}};/*!
74
74
  Copyright (c) 2018 Jed Watson.
75
75
  Licensed under the MIT License (MIT), see
76
76
  http://jedwatson.github.io/classnames
77
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)t.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Yg);var US=Yg.exports;const k=Su(US),Zg="%[a-f0-9]{2}",Qd=new RegExp("("+Zg+")|([^%]+?)","gi"),Kd=new RegExp("("+Zg+")+","gi");function eu(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],eu(n),eu(r))}function HS(e){try{return decodeURIComponent(e)}catch{let t=e.match(Qd)||[];for(let n=1;n<t.length;n++)e=eu(t,n).join(""),t=e.match(Qd)||[];return e}}function $S(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=Kd.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=HS(n[0]);i!==n[0]&&(t[n[0]]=i)}n=Kd.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function GS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return $S(e)}}function VS(e,t){const n={};if(Array.isArray(t))for(const r of t){const i=Object.getOwnPropertyDescriptor(e,r);i!=null&&i.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){const o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}function Jg(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}const WS=e=>e==null,qS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),tu=Symbol("encodeFragmentIdentifier");function XS(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),"[",i,"]"].join("")]:[...n,[ce(t,e),"[",ce(i,e),"]=",ce(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),"[]"].join("")]:[...n,[ce(t,e),"[]=",ce(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),":list="].join("")]:[...n,[ce(t,e),":list=",ce(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[ce(n,e),t,ce(i,e)].join("")]:[[r,ce(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,ce(t,e)]:[...n,[ce(t,e),"=",ce(r,e)].join("")]}}function QS(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const o=typeof r=="string"&&r.includes(e.arrayFormatSeparator),s=typeof r=="string"&&!o&&Ht(r,e).includes(e.arrayFormatSeparator);r=s?Ht(r,e):r;const a=o||s?r.split(e.arrayFormatSeparator).map(l=>Ht(l,e)):r===null?r:Ht(r,e);i[n]=a};case"bracket-separator":return(n,r,i)=>{const o=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!o){i[n]=r&&Ht(r,e);return}const s=r===null?[]:Ht(r,e).split(e.arrayFormatSeparator);if(i[n]===void 0){i[n]=s;return}i[n]=[...i[n],...s]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function ey(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ce(e,t){return t.encode?t.strict?qS(e):encodeURIComponent(e):e}function Ht(e,t){return t.decode?GS(e):e}function ty(e){return Array.isArray(e)?e.sort():typeof e=="object"?ty(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function ny(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function KS(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function Yd(e,t,n){return n==="string"&&typeof e=="string"?e:typeof n=="function"&&typeof e=="string"?n(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":n==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function xc(e){e=ny(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Tc(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},ey(t.arrayFormatSeparator);const n=QS(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replaceAll("+"," "):i;let[s,a]=Jg(o,"=");s===void 0&&(s=o),a=a===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:Ht(a,t),n(Ht(s,t),a,r)}for(const[i,o]of Object.entries(r))if(typeof o=="object"&&o!==null&&t.types[i]!=="string")for(const[s,a]of Object.entries(o)){const l=t.types[i]?t.types[i].replace("[]",""):void 0;o[s]=Yd(a,t,l)}else typeof o=="object"&&o!==null&&t.types[i]==="string"?r[i]=Object.values(o).join(t.arrayFormatSeparator):r[i]=Yd(o,t,t.types[i]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,o)=>{const s=r[o];return i[o]=s&&typeof s=="object"&&!Array.isArray(s)?ty(s):s,i},Object.create(null))}function ry(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},ey(t.arrayFormatSeparator);const n=s=>t.skipNull&&WS(e[s])||t.skipEmptyString&&e[s]==="",r=XS(t),i={};for(const[s,a]of Object.entries(e))n(s)||(i[s]=a);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const a=e[s];return a===void 0?"":a===null?ce(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?ce(s,t)+"[]":a.reduce(r(s),[]).join("&"):ce(s,t)+"="+ce(a,t)}).filter(s=>s.length>0).join("&")}function iy(e,t){var i;t={decode:!0,...t};let[n,r]=Jg(e,"#");return n===void 0&&(n=e),{url:((i=n==null?void 0:n.split("?"))==null?void 0:i[0])??"",query:Tc(xc(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:Ht(r,t)}:{}}}function oy(e,t){t={encode:!0,strict:!0,[tu]:!0,...t};const n=ny(e.url).split("?")[0]||"",r=xc(e.url),i={...Tc(r,{sort:!1}),...e.query};let o=ry(i,t);o&&(o=`?${o}`);let s=KS(e.url);if(typeof e.fragmentIdentifier=="string"){const a=new URL(n);a.hash=e.fragmentIdentifier,s=t[tu]?a.hash:`#${e.fragmentIdentifier}`}return`${n}${o}${s}`}function sy(e,t,n){n={parseFragmentIdentifier:!0,[tu]:!1,...n};const{url:r,query:i,fragmentIdentifier:o}=iy(e,n);return oy({url:r,query:VS(i,t),fragmentIdentifier:o},n)}function YS(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return sy(e,r,n)}const Cc=Object.freeze(Object.defineProperty({__proto__:null,exclude:YS,extract:xc,parse:Tc,parseUrl:iy,pick:sy,stringify:ry,stringifyUrl:oy},Symbol.toStringTag,{value:"Module"}));var j={},nu={},P={};Object.defineProperty(P,"__esModule",{value:!0});P.GUEST_LOCALE_CHANGED=P.DRAWER_CLOSE=P.DRAWER_OPEN=P.CONVERSATION_RATING_FROM_GUEST=P.TRANSCRIPT_ITEM_GUEST_REACTION=P.TRANSCRIPT_MAIL_REQUEST=P.INBOX_CONNECT_REQUEST=P.RESTART_CHAT_REQUEST=P.EVENT_TO_GUEST=P.NLU_REQUEST_EVENT=P.EXPERTS_DISCONNECTED=P.EXPERTS_DISCONNECT_REQUEST=P.EXPERTS_CONNECTED=P.EXPERTS_CONNECT_REQUEST=P.MESSAGE_TO_GUEST=P.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=P.MESSAGE_FROM_GUEST=P.GUEST_FEEDBACK_RESPONSE=P.GUEST_DISCONNECTED=P.GUEST_CONNECTED=P.TYPING_OFF=P.TYPING_ON=void 0;P.TYPING_ON="core.typing.on";P.TYPING_OFF="core.typing.off";P.GUEST_CONNECTED="core.guest.connected";P.GUEST_DISCONNECTED="core.guest.disconnected";P.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response";P.MESSAGE_FROM_GUEST="core.message.from.guest";P.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest";P.MESSAGE_TO_GUEST="core.message.to.guest";P.EXPERTS_CONNECT_REQUEST="core.experts.connect.request";P.EXPERTS_CONNECTED="core.experts.connected";P.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request";P.EXPERTS_DISCONNECTED="core.experts.disconnected";P.NLU_REQUEST_EVENT="core.nlu.request.event";P.EVENT_TO_GUEST="core.event.to.guest";P.RESTART_CHAT_REQUEST="core.chat.restart.request";P.INBOX_CONNECT_REQUEST="core.inbox.connect.request";P.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request";P.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction";P.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest";P.DRAWER_OPEN="core.drawer.open";P.DRAWER_CLOSE="core.drawer.close";P.GUEST_LOCALE_CHANGED="core.guest.locale.changed";var ay={};Object.defineProperty(ay,"__esModule",{value:!0});var kc={};Object.defineProperty(kc,"__esModule",{value:!0});const ZS=P,JS=()=>({type:ZS.DRAWER_CLOSE});kc.default=JS;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});const eb=P,tb=(e,t)=>({type:eb.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:e,intent:t}});Oc.default=tb;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});const nb=P,rb=e=>({type:nb.GUEST_CONNECTED,payload:{sessionId:e}});Nc.default=rb;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});const ib=P,ob=e=>({type:ib.GUEST_DISCONNECTED,payload:{sessionId:e}});Ac.default=ob;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});const sb=P,ab=(e,t)=>({type:sb.GUEST_LOCALE_CHANGED,payload:{previousLocale:e,newLocale:t}});Rc.default=ab;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const lb=P,ub=e=>({type:lb.DRAWER_OPEN,payload:{parameters:{contentUrl:e}}});Pc.default=ub;var Ic={},te={};Object.defineProperty(te,"__esModule",{value:!0});te.getStringRepresentationFromMessage=te.MessageTypeEnum=te.AudioMessage=te.FileMessage=te.ImageMessage=te.VideoMessage=te.MarkdownMessage=te.DetailMessage=te.TextMessage=te.Message=void 0;let kn=class{constructor(t,n){W(this,"type");W(this,"sender");W(this,"quickReplies");this.type=t,this.sender=n,this.quickReplies=[]}addQuickReply(t,n){this.quickReplies.push({label:t,payload:n})}};te.Message=kn;let cb=class extends kn{constructor(n,r){super(Te.TEXT,r);W(this,"text");this.text=n}};te.TextMessage=cb;let fb=class extends kn{constructor(n,r){super(Te.DETAIL,r);W(this,"title");W(this,"subtitle");W(this,"text");W(this,"imageUrl");W(this,"itemUrl");W(this,"buttons");this.title=n,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(n){this.imageUrl=n}setItemUrl(n){this.itemUrl=n}setSubtitle(n){this.subtitle=n}setText(n){this.text=n}addButton(n){this.buttons.push(n)}};te.DetailMessage=fb;let db=class extends kn{constructor(n,r,i){super(Te.MARKDOWN,i);W(this,"markdown");W(this,"excerpt");W(this,"className");this.markdown=n,this.excerpt=r,this.className=""}setClassName(n){this.className=n}};te.MarkdownMessage=db;class hb extends kn{constructor(n,r){super(Te.VIDEO,r);W(this,"url");this.url=n}}te.VideoMessage=hb;class pb extends kn{constructor(n,r){super(Te.IMAGE,r);W(this,"url");this.url=n}}te.ImageMessage=pb;class mb extends kn{constructor(n,r){super(Te.FILE,r);W(this,"url");this.url=n}}te.FileMessage=mb;class gb extends kn{constructor(n,r){super(Te.AUDIO,r);W(this,"url");this.url=n}}te.AudioMessage=gb;var Te;(function(e){e.TEXT="TEXT",e.DETAIL="DETAIL",e.MARKDOWN="MARKDOWN",e.VIDEO="VIDEO",e.IMAGE="IMAGE",e.FILE="FILE",e.AUDIO="AUDIO"})(Te||(te.MessageTypeEnum=Te={}));const yb=e=>{switch(e.type){case Te.TEXT:return e.text;case Te.DETAIL:const n=e;return`${n.title} // ${n.subtitle}`;case Te.MARKDOWN:return e.excerpt;case Te.VIDEO:return`Video Url: ${e.url}`;case Te.IMAGE:return`Image Url: ${e.url}`;case Te.FILE:return`File Url: ${e.url}`;case Te.AUDIO:return`Audio Url: ${e.url}`;default:throw new Error("Unknown message type "+e.type)}};te.getStringRepresentationFromMessage=yb;var Ue={};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.UserType=Ue.PersonUser=Ue.GuestUser=Ue.BotUser=Ue.User=void 0;class js{constructor(t,n,r,i){W(this,"type");W(this,"id");W(this,"name");W(this,"avatar");this.type=t,this.id=n,this.name=r,this.avatar=i}}Ue.User=js;class vb extends js{constructor(){super(Mi.BOT,null,"Chatbot","bot.svg")}}Ue.BotUser=vb;class _b extends js{constructor(){super(Mi.GUEST,null,"Guest","visitor.svg")}}Ue.GuestUser=_b;class Eb extends js{constructor(t,n,r){super(Mi.PERSON,t,n,r)}}Ue.PersonUser=Eb;var Mi;(function(e){e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON"})(Mi||(Ue.UserType=Mi={}));Object.defineProperty(Ic,"__esModule",{value:!0});const Sb=te,bb=Ue,wb=P,xb=e=>{const t=new Sb.TextMessage(e,new bb.GuestUser);return{type:wb.MESSAGE_FROM_GUEST,message:t}};Ic.default=xb;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const Tb=te,Cb=Ue,kb=P,Ob=(e,t={})=>{const n=new Tb.TextMessage(e,new Cb.GuestUser);return{type:kb.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:n,payload:t}};Dc.default=Ob;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});const Nb=P,Ab=e=>({type:Nb.NLU_REQUEST_EVENT,event:e});Mc.default=Ab;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});const Rb=P,Pb=()=>({type:Rb.RESTART_CHAT_REQUEST});Fc.default=Pb;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});const Ib=P,Db=e=>({type:Ib.MESSAGE_TO_GUEST,message:e});Lc.default=Db;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});const Mb=P,Fb=(e,t)=>({type:Mb.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:e,reaction:t}});Bc.default=Fb;(function(e){var t=X&&X.__createBinding||(Object.create?function(d,m,_,b){b===void 0&&(b=_);var w=Object.getOwnPropertyDescriptor(m,_);(!w||("get"in w?!m.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return m[_]}}),Object.defineProperty(d,b,w)}:function(d,m,_,b){b===void 0&&(b=_),d[b]=m[_]}),n=X&&X.__setModuleDefault||(Object.create?function(d,m){Object.defineProperty(d,"default",{enumerable:!0,value:m})}:function(d,m){d.default=m}),r=X&&X.__importStar||function(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&t(m,d,_);return n(m,d),m},i=X&&X.__exportStar||function(d,m){for(var _ in d)_!=="default"&&!Object.prototype.hasOwnProperty.call(m,_)&&t(m,d,_)},o=X&&X.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.transcriptItemGuestReaction=e.sendMessageToGuest=e.restartChatRequest=e.requestNLUEvent=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.openDrawer=e.guestLocaleChanged=e.guestDisconnected=e.guestConnected=e.feedbackFromGuestResponse=e.closeDrawer=e.ActionTypes=void 0,e.ActionTypes=r(P),i(ay,e);const s=o(kc);e.closeDrawer=s.default;const a=o(Oc);e.feedbackFromGuestResponse=a.default;const l=o(Nc);e.guestConnected=l.default;const c=o(Ac);e.guestDisconnected=c.default;const f=o(Rc);e.guestLocaleChanged=f.default;const h=o(Pc);e.openDrawer=h.default;const u=o(Ic);e.receiveTextMessageFromGuest=u.default;const y=o(Dc);e.receiveTextMessageWithoutAnalysisFromGuest=y.default;const p=o(Mc);e.requestNLUEvent=p.default;const E=o(Fc);e.restartChatRequest=E.default;const S=o(Lc);e.sendMessageToGuest=S.default;const g=o(Bc);e.transcriptItemGuestReaction=g.default})(nu);var Dr={},ly={};Object.defineProperty(ly,"__esModule",{value:!0});var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.NullableKnowledgeBaseAdapter=void 0;class Lb{async upsertApiKnowledgeBase(t){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(t){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(t){throw new Error("Method not implemented.")}async setIndexingStatus(t,n){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(t,n){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(t,n){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(t,n){throw new Error("Method not implemented.")}async subscribeToReindex(t,n){throw new Error("Method not implemented.")}isContentTypeSupported(t){throw new Error("Method not implemented.")}}zs.NullableKnowledgeBaseAdapter=Lb;var Bb=X&&X.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),jb=X&&X.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zb=X&&X.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Bb(t,e,n);return jb(t,e),t};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.NullableCmsAdapter=Dr.KnowledgeBase=void 0;Dr.KnowledgeBase=zb(ly);const Ub=zs;Dr.NullableCmsAdapter={knowledgeBase:new Ub.NullableKnowledgeBaseAdapter};var ru={},uy={};Object.defineProperty(uy,"__esModule",{value:!0});var Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.ButtonTypeEnum=Rt.PostbackButton=Rt.UrlButton=Rt.Button=void 0;class jc{constructor(t,n){W(this,"title");W(this,"type");this.title=t,this.type=n}}Rt.Button=jc;class Hb extends jc{constructor(n,r){super(n,fs.WEB_URL);W(this,"url");this.url=r}}Rt.UrlButton=Hb;class $b extends jc{constructor(n,r){super(n,fs.POSTBACK);W(this,"payload");this.payload=r}}Rt.PostbackButton=$b;var fs;(function(e){e.WEB_URL="web_url",e.POSTBACK="postback"})(fs||(Rt.ButtonTypeEnum=fs={}));var cy={};Object.defineProperty(cy,"__esModule",{value:!0});var Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.SatisfactionEnum=void 0;var Zd;(function(e){e.GOOD="GOOD",e.BAD="BAD"})(Zd||(Us.SatisfactionEnum=Zd={}));(function(e){var t=X&&X.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=X&&X.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(uy,e),n(Rt,e),n(cy,e),n(Us,e),n(te,e),n(Ue,e)})(ru);(function(e){var t=X&&X.__createBinding||(Object.create?function(o,s,a,l){l===void 0&&(l=a);var c=Object.getOwnPropertyDescriptor(s,a);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(o,l,c)}:function(o,s,a,l){l===void 0&&(l=a),o[l]=s[a]}),n=X&&X.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),r=X&&X.__exportStar||function(o,s){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,o,a)},i=X&&X.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var a in o)a!=="default"&&Object.prototype.hasOwnProperty.call(o,a)&&t(s,o,a);return n(s,o),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,r(nu,e),e.Actions=i(nu),e.CMS=i(Dr),r(ru,e),e.Model=i(ru)})(j);const fy=e=>t=>(e.payload.type!==j.ActionTypes.MESSAGE_FROM_GUEST&&t(j.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),t(e.payload)),dy=e=>(t,n)=>{const{quickReplies:r}=n().chat,i=r.find(o=>e.toLocaleLowerCase().indexOf(o.label.toLocaleLowerCase())>-1);return t(i?fy({...i,label:e}):j.receiveTextMessageFromGuest(e))},Hs="MESSAGE_TO_PARENT_PAGE",zc="RESTORE_PREVIOUS_CHAT_MESSAGES",Uc="AUDIO_MESSAGE_FROM_USER",Hc="ENABLE_SPEECH_SUPPORT",$c="ENABLE_TRANSCRIPT_EXPORT",Gb="EXPORT_TRANSCRIPT",Gc="RECEIVE_SPEECH_TRANSCRIPTION",Vc="SHOW_GENERAL_CONDITIONS",Wc="ENABLE_CONVERSATION_RATING",Vb="webclient.get.started",hy="webclient.expand.window",py="webclient.transcript.pdf.download",Wb=[Hs,zc,Uc,Hc,$c,Gb,Gc,Vc,Wc],qb=e=>({type:Uc,buffer:e}),Xb=()=>({type:Hc}),Qb=e=>({type:Gc,transcription:e}),Kb=e=>({type:$c,methods:e}),Yb=e=>({type:j.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),Zb=()=>({type:Vc}),Jb=()=>({type:py}),ew=({rating:e})=>({type:Wc,payload:{rating:e}}),tw=(e,t)=>({type:j.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:t}}),my=e=>j.requestNLUEvent(e),nw=e=>({type:zc,messages:e}),rw=e=>{switch(e.type){case j.ButtonTypeEnum.WEB_URL:return gy(e.url);case j.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},iw=e=>gy(e),gy=e=>({type:Hs,message:{type:"webclient.change.url",url:e}}),ow=e=>({type:Hs,message:{type:"webclient.change.translations",payload:{translations:e}}});/*! js-cookie v3.0.5 | MIT */function po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var sw={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function iu(e,t){function n(i,o,s){if(!(typeof document>"u")){s=po({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),c=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(s[f]=e.read(c,f),i===f)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",po({},o,{expires:-1}))},withAttributes:function(i){return iu(this.converter,po({},this.attributes,i))},withConverter:function(i){return iu(po({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ia=iu(sw,{path:"/"});function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var aw=typeof Symbol=="function"&&Symbol.observable||"@@observable",Jd=aw,Da=()=>Math.random().toString(36).substring(7).split("").join("."),lw={INIT:`@@redux/INIT${Da()}`,REPLACE:`@@redux/REPLACE${Da()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Da()}`},ds=lw;function qc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function yy(e,t,n){if(typeof e!="function")throw new Error(ve(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ve(1));return n(yy)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((S,g)=>{s.set(g,S)}))}function f(){if(l)throw new Error(ve(3));return i}function h(S){if(typeof S!="function")throw new Error(ve(4));if(l)throw new Error(ve(5));let g=!0;c();const d=a++;return s.set(d,S),function(){if(g){if(l)throw new Error(ve(6));g=!1,c(),s.delete(d),o=null}}}function u(S){if(!qc(S))throw new Error(ve(7));if(typeof S.type>"u")throw new Error(ve(8));if(typeof S.type!="string")throw new Error(ve(17));if(l)throw new Error(ve(9));try{l=!0,i=r(i,S)}finally{l=!1}return(o=s).forEach(d=>{d()}),S}function y(S){if(typeof S!="function")throw new Error(ve(10));r=S,u({type:ds.REPLACE})}function p(){const S=h;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ve(11));function d(){const _=g;_.next&&_.next(f())}return d(),{unsubscribe:S(d)}},[Jd](){return this}}}return u({type:ds.INIT}),{dispatch:u,subscribe:h,getState:f,replaceReducer:y,[Jd]:p}}function uw(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ds.INIT})>"u")throw new Error(ve(12));if(typeof n(void 0,{type:ds.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function vy(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{uw(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let f=0;f<r.length;f++){const h=r[f],u=n[h],y=s[h],p=u(y,a);if(typeof p>"u")throw a&&a.type,new Error(ve(14));c[h]=p,l=l||p!==y}return l=l||r.length!==Object.keys(s).length,l?c:s}}function hs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function cw(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(ve(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=hs(...a)(i.dispatch),{...i,dispatch:o}}}function fw(e){return qc(e)&&"type"in e&&typeof e.type=="string"}var _y=Symbol.for("immer-nothing"),eh=Symbol.for("immer-draftable"),Ke=Symbol.for("immer-state");function _t(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Mr=Object.getPrototypeOf;function Kn(e){return!!e&&!!e[Ke]}function Zt(e){var t;return e?Ey(e)||Array.isArray(e)||!!e[eh]||!!((t=e.constructor)!=null&&t[eh])||Gs(e)||Vs(e):!1}var dw=Object.prototype.constructor.toString();function Ey(e){if(!e||typeof e!="object")return!1;const t=Mr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===dw}function Fi(e,t){$s(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function $s(e){const t=e[Ke];return t?t.type_:Array.isArray(e)?1:Gs(e)?2:Vs(e)?3:0}function ou(e,t){return $s(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sy(e,t,n){const r=$s(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function hw(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Gs(e){return e instanceof Map}function Vs(e){return e instanceof Set}function Mn(e){return e.copy_||e.base_}function su(e,t){if(Gs(e))return new Map(e);if(Vs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Ey(e))return Mr(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ke];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Mr(e),n)}function Xc(e,t=!1){return Ws(e)||Kn(e)||!Zt(e)||($s(e)>1&&(e.set=e.add=e.clear=e.delete=pw),Object.freeze(e),t&&Fi(e,(n,r)=>Xc(r,!0))),e}function pw(){_t(2)}function Ws(e){return Object.isFrozen(e)}var mw={};function Yn(e){const t=mw[e];return t||_t(0,e),t}var Li;function by(){return Li}function gw(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function th(e,t){t&&(Yn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function au(e){lu(e),e.drafts_.forEach(yw),e.drafts_=null}function lu(e){e===Li&&(Li=e.parent_)}function nh(e){return Li=gw(Li,e)}function yw(e){const t=e[Ke];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function rh(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ke].modified_&&(au(t),_t(4)),Zt(e)&&(e=ps(t,e),t.parent_||ms(t,e)),t.patches_&&Yn("Patches").generateReplacementPatches_(n[Ke].base_,e,t.patches_,t.inversePatches_)):e=ps(t,n,[]),au(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==_y?e:void 0}function ps(e,t,n){if(Ws(t))return t;const r=t[Ke];if(!r)return Fi(t,(i,o)=>ih(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ms(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Fi(o,(a,l)=>ih(e,r,i,a,l,n,s)),ms(e,i,!1),n&&e.patches_&&Yn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function ih(e,t,n,r,i,o,s){if(Kn(i)){const a=o&&t&&t.type_!==3&&!ou(t.assigned_,r)?o.concat(r):void 0,l=ps(e,i,a);if(Sy(n,r,l),Kn(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Zt(i)&&!Ws(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ps(e,i),(!t||!t.scope_.parent_)&&ms(e,i)}}function ms(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Xc(t,n)}function vw(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:by(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Qc;n&&(i=[r],o=Bi);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var Qc={get(e,t){if(t===Ke)return e;const n=Mn(e);if(!ou(n,t))return _w(e,n,t);const r=n[t];return e.finalized_||!Zt(r)?r:r===Ma(e.base_,t)?(Fa(e),e.copy_[t]=cu(r,e)):r},has(e,t){return t in Mn(e)},ownKeys(e){return Reflect.ownKeys(Mn(e))},set(e,t,n){const r=wy(Mn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Ma(Mn(e),t),o=i==null?void 0:i[Ke];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(hw(n,i)&&(n!==void 0||ou(e.base_,t)))return!0;Fa(e),uu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Ma(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Fa(e),uu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){_t(11)},getPrototypeOf(e){return Mr(e.base_)},setPrototypeOf(){_t(12)}},Bi={};Fi(Qc,(e,t)=>{Bi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bi.deleteProperty=function(e,t){return Bi.set.call(this,e,t,void 0)};Bi.set=function(e,t,n){return Qc.set.call(this,e[0],t,n,e[0])};function Ma(e,t){const n=e[Ke];return(n?Mn(n):e)[t]}function _w(e,t,n){var i;const r=wy(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function wy(e,t){if(!(t in e))return;let n=Mr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Mr(n)}}function uu(e){e.modified_||(e.modified_=!0,e.parent_&&uu(e.parent_))}function Fa(e){e.copy_||(e.copy_=su(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ew=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,f=>n.call(this,f,...c))}}typeof n!="function"&&_t(6),r!==void 0&&typeof r!="function"&&_t(7);let i;if(Zt(t)){const o=nh(this),s=cu(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?au(o):lu(o)}return th(o,r),rh(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===_y&&(i=void 0),this.autoFreeze_&&Xc(i,!0),r){const o=[],s=[];Yn("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else _t(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zt(e)||_t(8),Kn(e)&&(e=Sw(e));const t=nh(this),n=cu(e,void 0);return n[Ke].isManual_=!0,lu(t),n}finishDraft(e,t){const n=e&&e[Ke];(!n||!n.isManual_)&&_t(9);const{scope_:r}=n;return th(r,t),rh(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Yn("Patches").applyPatches_;return Kn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function cu(e,t){const n=Gs(e)?Yn("MapSet").proxyMap_(e,t):Vs(e)?Yn("MapSet").proxySet_(e,t):vw(e,t);return(t?t.scope_:by()).drafts_.push(n),n}function Sw(e){return Kn(e)||_t(10,e),xy(e)}function xy(e){if(!Zt(e)||Ws(e))return e;const t=e[Ke];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=su(e,t.scope_.immer_.useStrictShallowCopy_)}else n=su(e,!0);return Fi(n,(r,i)=>{Sy(n,r,xy(i))}),t&&(t.finalized_=!1),n}var Ye=new Ew,Ty=Ye.produce;Ye.produceWithPatches.bind(Ye);Ye.setAutoFreeze.bind(Ye);Ye.setUseStrictShallowCopy.bind(Ye);Ye.applyPatches.bind(Ye);Ye.createDraft.bind(Ye);Ye.finishDraft.bind(Ye);function Cy(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var bw=Cy(),ww=Cy,xw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hs:hs.apply(null,arguments)};function oh(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Dt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>fw(r)&&r.type===e,n}var ky=class si extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,si.prototype)}static get[Symbol.species](){return si}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new si(...t[0].concat(this)):new si(...t.concat(this))}};function sh(e){return Zt(e)?Ty(e,()=>{}):e}function ah(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Dt(10));const r=n.insert(t,e);return e.set(t,r),r}function Tw(e){return typeof e=="boolean"}var Cw=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new ky;return n&&(Tw(n)?s.push(bw):s.push(ww(n.extraArgument))),s},kw="RTK_autoBatch",Oy=e=>t=>{setTimeout(t,e)},Ow=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Oy(10),Nw=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Ow:e.type==="callback"?e.queueNotification:Oy(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const h=()=>i&&f(),u=r.subscribe(h);return a.add(f),()=>{u(),a.delete(f)}},dispatch(f){var h;try{return i=!((h=f==null?void 0:f.meta)!=null&&h[kw]),o=!i,o&&(s||(s=!0,l(c))),r.dispatch(f)}finally{i=!0}}})},Aw=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new ky(e);return r&&i.push(Nw(typeof r=="object"?r:void 0)),i};function Rw(e){const t=Cw(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(qc(n))a=vy(n);else throw new Error(Dt(1));let l;typeof r=="function"?l=r(t):l=t();let c=hs;i&&(c=xw({trace:!1,...typeof i=="object"&&i}));const f=cw(...l),h=Aw(f);let u=typeof s=="function"?s(h):h();const y=c(...u);return yy(a,o,y)}function Ny(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(Dt(28));if(a in t)throw new Error(Dt(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Pw(e){return typeof e=="function"}function Iw(e,t){let[n,r,i]=Ny(t),o;if(Pw(e))o=()=>sh(e());else{const a=sh(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,h)=>{if(h)if(Kn(f)){const y=h(f,l);return y===void 0?f:y}else{if(Zt(f))return Ty(f,u=>h(u,l));{const u=h(f,l);if(u===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return u}}return f},a)}return s.getInitialState=o,s}var Dw=Symbol.for("rtk-slice-createasyncthunk");function Mw(e,t){return`${e}/${t}`}function Fw({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Dw];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(Dt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(Bw()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(m,_){const b=typeof m=="string"?m:m.type;if(!b)throw new Error(Dt(12));if(b in c.sliceCaseReducersByType)throw new Error(Dt(13));return c.sliceCaseReducersByType[b]=_,f},addMatcher(m,_){return c.sliceMatchers.push({matcher:m,reducer:_}),f},exposeAction(m,_){return c.actionCreators[m]=_,f},exposeCaseReducer(m,_){return c.sliceCaseReducersByName[m]=_,f}};l.forEach(m=>{const _=a[m],b={reducerName:m,type:Mw(o,m),createNotation:typeof i.reducers=="function"};zw(_)?Hw(b,_,f,t):jw(b,_,f)});function h(){const[m={},_=[],b=void 0]=typeof i.extraReducers=="function"?Ny(i.extraReducers):[i.extraReducers],w={...m,...c.sliceCaseReducersByType};return Iw(i.initialState,x=>{for(let T in w)x.addCase(T,w[T]);for(let T of c.sliceMatchers)x.addMatcher(T.matcher,T.reducer);for(let T of _)x.addMatcher(T.matcher,T.reducer);b&&x.addDefaultCase(b)})}const u=m=>m,y=new Map;let p;function E(m,_){return p||(p=h()),p(m,_)}function S(){return p||(p=h()),p.getInitialState()}function g(m,_=!1){function b(x){let T=x[m];return typeof T>"u"&&_&&(T=S()),T}function w(x=u){const T=ah(y,_,{insert:()=>new WeakMap});return ah(T,x,{insert:()=>{const M={};for(const[I,se]of Object.entries(i.selectors??{}))M[I]=Lw(se,x,S,_);return M}})}return{reducerPath:m,getSelectors:w,get selectors(){return w(b)},selectSlice:b}}const d={name:o,reducer:E,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...g(s),injectInto(m,{reducerPath:_,...b}={}){const w=_??s;return m.inject({reducerPath:w,reducer:E},b),{...d,...g(w,!0)}}};return d}}function Lw(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Ay=Fw();function Bw(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function jw({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!Uw(r))throw new Error(Dt(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?oh(e,s):oh(e))}function zw(e){return e._reducerDefinitionType==="asyncThunk"}function Uw(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Hw({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Dt(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:f}=n,h=i(e,o,f);r.exposeAction(t,h),s&&r.addCase(h.fulfilled,s),a&&r.addCase(h.pending,a),l&&r.addCase(h.rejected,l),c&&r.addMatcher(h.settled,c),r.exposeCaseReducer(t,{fulfilled:s||mo,pending:a||mo,rejected:l||mo,settled:c||mo})}function mo(){}function Dt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const $w={useStartScreen:void 0,formValues:{}},Ry=Ay({name:"start-screen",initialState:$w,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,t){e.startScreenStatus="HIDDEN",e.formValues=t.payload}}}),{enableStartScreen:Gw,disableStartScreen:Vw,startChat:Ww,showStartScreen:qw}=Ry.actions,Xw=Ry.reducer,Py="RESET_CHAT_STATE",Qw=()=>({type:Py}),Kc="CONNECT",Yc="CONNECTING",Zc="CONNECTED",Jc="DISCONNECTED",ef="RECONNECTED",tf="RESTORE_SESSION_ID",qs="START",Xs="CLEAR_SESSION_ID",Kw=[Kc,Yc,Zc,Jc,ef,tf],Yw=(e,t)=>({type:Kc,clientName:e,querystrings:t}),Zw=e=>({type:tf,sessionId:e}),Jw=()=>({type:Yc}),ex=()=>({type:Zc}),tx=()=>({type:Jc}),nx=()=>({type:ef}),Iy=(e,t)=>(n,r)=>{const i=r().connection,o=r().startScreen.formValues;let s=i.sessionId;s===void 0&&(s=crypto.randomUUID());let a=i.userId;if(a===void 0){const l=Ia.get("bubble-chat-userId")||Ia.get("bf-webclient-userId");a=l||crypto.randomUUID(),Ia.set("bubble-chat-userId",a)}n({type:qs,payload:{sessionId:s,userId:a,clientName:e,querystrings:{...t,...o}}})},nf=(e,t)=>(n,r)=>{const i=r().connection.sessionId||"";if(n(rx(i)),n(Qw()),r().startScreen.useStartScreen)n(qw());else return n(Iy(e,t))},rx=e=>({type:Xs,payload:{sessionId:e}}),ft=()=>{const e=Bs();return n=>{const r=e.formatMessage({id:n});return r===n?void 0:r}};var zn=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(zn||{}),Dy=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(Dy||{});const ix="_button_bc9qm_54",ox="_buttonDefault_bc9qm_66",sx="_buttonPrimary_bc9qm_80",ax="_accessabilityHidden_bc9qm_132",Ee={button:ix,buttonDefault:ox,buttonPrimary:sx,accessabilityHidden:ax},lx="_chatwindow_phukm_1",ux="_chatcontent_phukm_13",cx={chatwindow:lx,chatcontent:ux},fx="_messageContainer_1wdci_1",dx="_messages_1wdci_10",lh={messageContainer:fx,messages:dx};function Fn(){return Fn=Object.assign?Object.assign.bind():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},Fn.apply(this,arguments)}const hx=["children","options"],D={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var uh;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(uh||(uh={}));const ch=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),fh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},px=["style","script"],mx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,gx=/mailto:/i,yx=/\n{2,}$/,My=/^(\s*>[\s\S]*?)(?=\n{2,})/,vx=/^ *> ?/gm,_x=/^ {2,}\n/,Ex=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Fy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ly=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Sx=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,bx=/^(?:\n *)*\n/,wx=/\r\n?/g,xx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Tx=/^\[\^([^\]]+)]/,Cx=/\f/g,kx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Ox=/^\s*?\[(x|\s)\]/,By=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,fu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Nx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Uy=/^<!--[\s\S]*?(?:-->)/,Ax=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,du=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Rx=/^\{.*\}$/,Px=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ix=/^<([^ >]+@[^ >]+)>/,Dx=/^<([^ >]+:\/[^ >]+)>/,Mx=/-([a-z])?/gi,Hy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Fx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Lx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Bx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,jx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,zx=/\t/g,Ux=/(^ *\||\| *$)/g,Hx=/^ *:-+: *$/,$x=/^ *:-+ *$/,Gx=/^ *-+: *$/,Qs="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Vx=new RegExp(`^([*_])\\1${Qs}\\1\\1(?!\\1)`),Wx=new RegExp(`^([*_])${Qs}\\1(?!\\1|\\w)`),qx=new RegExp(`^==${Qs}==`),Xx=new RegExp(`^~~${Qs}~~`),Qx=/^\\([^0-9A-Za-z\s])/,Kx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Yx=/^\n+/,Zx=/^([ \t]*)/,Jx=/\\([^\\])/g,dh=/ *\n+$/,eT=/(?:^|\n)( *)$/,rf="(?:\\d+\\.)",of="(?:[*+-])";function $y(e){return"( *)("+(e===1?rf:of)+") +"}const Gy=$y(1),Vy=$y(2);function Wy(e){return new RegExp("^"+(e===1?Gy:Vy))}const tT=Wy(1),nT=Wy(2);function qy(e){return new RegExp("^"+(e===1?Gy:Vy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?rf:of)+" )[^\\n]*)*(\\n|$)","gm")}const Xy=qy(1),Qy=qy(2);function Ky(e){const t=e===1?rf:of;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Yy=Ky(1),Zy=Ky(2);function hh(e,t){const n=t===1,r=n?Yy:Zy,i=n?Xy:Qy,o=n?tT:nT;return{match(s,a){const l=eT.exec(a.prevCapture);return l&&(a.list||!a.inline&&!a.simple)?r.exec(s=l[1]+s):null},order:1,parse(s,a,l){const c=n?+s[2]:void 0,f=s[0].replace(yx,`
77
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)t.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Yg);var US=Yg.exports;const k=Su(US),Zg="%[a-f0-9]{2}",Qd=new RegExp("("+Zg+")|([^%]+?)","gi"),Kd=new RegExp("("+Zg+")+","gi");function eu(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],eu(n),eu(r))}function HS(e){try{return decodeURIComponent(e)}catch{let t=e.match(Qd)||[];for(let n=1;n<t.length;n++)e=eu(t,n).join(""),t=e.match(Qd)||[];return e}}function $S(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=Kd.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=HS(n[0]);i!==n[0]&&(t[n[0]]=i)}n=Kd.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function GS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return $S(e)}}function VS(e,t){const n={};if(Array.isArray(t))for(const r of t){const i=Object.getOwnPropertyDescriptor(e,r);i!=null&&i.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){const o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}function Jg(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}const WS=e=>e==null,qS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),tu=Symbol("encodeFragmentIdentifier");function XS(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),"[",i,"]"].join("")]:[...n,[ce(t,e),"[",ce(i,e),"]=",ce(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),"[]"].join("")]:[...n,[ce(t,e),"[]=",ce(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),":list="].join("")]:[...n,[ce(t,e),":list=",ce(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[ce(n,e),t,ce(i,e)].join("")]:[[r,ce(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,ce(t,e)]:[...n,[ce(t,e),"=",ce(r,e)].join("")]}}function QS(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const o=typeof r=="string"&&r.includes(e.arrayFormatSeparator),s=typeof r=="string"&&!o&&Ht(r,e).includes(e.arrayFormatSeparator);r=s?Ht(r,e):r;const a=o||s?r.split(e.arrayFormatSeparator).map(l=>Ht(l,e)):r===null?r:Ht(r,e);i[n]=a};case"bracket-separator":return(n,r,i)=>{const o=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!o){i[n]=r&&Ht(r,e);return}const s=r===null?[]:Ht(r,e).split(e.arrayFormatSeparator);if(i[n]===void 0){i[n]=s;return}i[n]=[...i[n],...s]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function ey(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ce(e,t){return t.encode?t.strict?qS(e):encodeURIComponent(e):e}function Ht(e,t){return t.decode?GS(e):e}function ty(e){return Array.isArray(e)?e.sort():typeof e=="object"?ty(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function ny(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function KS(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function Yd(e,t,n){return n==="string"&&typeof e=="string"?e:typeof n=="function"&&typeof e=="string"?n(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":n==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function xc(e){e=ny(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Tc(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},ey(t.arrayFormatSeparator);const n=QS(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replaceAll("+"," "):i;let[s,a]=Jg(o,"=");s===void 0&&(s=o),a=a===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:Ht(a,t),n(Ht(s,t),a,r)}for(const[i,o]of Object.entries(r))if(typeof o=="object"&&o!==null&&t.types[i]!=="string")for(const[s,a]of Object.entries(o)){const l=t.types[i]?t.types[i].replace("[]",""):void 0;o[s]=Yd(a,t,l)}else typeof o=="object"&&o!==null&&t.types[i]==="string"?r[i]=Object.values(o).join(t.arrayFormatSeparator):r[i]=Yd(o,t,t.types[i]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,o)=>{const s=r[o];return i[o]=s&&typeof s=="object"&&!Array.isArray(s)?ty(s):s,i},Object.create(null))}function ry(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},ey(t.arrayFormatSeparator);const n=s=>t.skipNull&&WS(e[s])||t.skipEmptyString&&e[s]==="",r=XS(t),i={};for(const[s,a]of Object.entries(e))n(s)||(i[s]=a);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const a=e[s];return a===void 0?"":a===null?ce(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?ce(s,t)+"[]":a.reduce(r(s),[]).join("&"):ce(s,t)+"="+ce(a,t)}).filter(s=>s.length>0).join("&")}function iy(e,t){var i;t={decode:!0,...t};let[n,r]=Jg(e,"#");return n===void 0&&(n=e),{url:((i=n==null?void 0:n.split("?"))==null?void 0:i[0])??"",query:Tc(xc(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:Ht(r,t)}:{}}}function oy(e,t){t={encode:!0,strict:!0,[tu]:!0,...t};const n=ny(e.url).split("?")[0]||"",r=xc(e.url),i={...Tc(r,{sort:!1}),...e.query};let o=ry(i,t);o&&(o=`?${o}`);let s=KS(e.url);if(typeof e.fragmentIdentifier=="string"){const a=new URL(n);a.hash=e.fragmentIdentifier,s=t[tu]?a.hash:`#${e.fragmentIdentifier}`}return`${n}${o}${s}`}function sy(e,t,n){n={parseFragmentIdentifier:!0,[tu]:!1,...n};const{url:r,query:i,fragmentIdentifier:o}=iy(e,n);return oy({url:r,query:VS(i,t),fragmentIdentifier:o},n)}function YS(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return sy(e,r,n)}const Cc=Object.freeze(Object.defineProperty({__proto__:null,exclude:YS,extract:xc,parse:Tc,parseUrl:iy,pick:sy,stringify:ry,stringifyUrl:oy},Symbol.toStringTag,{value:"Module"}));var j={},nu={},P={};Object.defineProperty(P,"__esModule",{value:!0});P.GUEST_LOCALE_CHANGED=P.DRAWER_CLOSE=P.DRAWER_OPEN=P.CONVERSATION_RATING_FROM_GUEST=P.TRANSCRIPT_ITEM_GUEST_REACTION=P.TRANSCRIPT_MAIL_REQUEST=P.INBOX_CONNECT_REQUEST=P.RESTART_CHAT_REQUEST=P.EVENT_TO_GUEST=P.NLU_REQUEST_EVENT=P.EXPERTS_DISCONNECTED=P.EXPERTS_DISCONNECT_REQUEST=P.EXPERTS_CONNECTED=P.EXPERTS_CONNECT_REQUEST=P.MESSAGE_TO_GUEST=P.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=P.MESSAGE_FROM_GUEST=P.GUEST_FEEDBACK_RESPONSE=P.GUEST_DISCONNECTED=P.GUEST_CONNECTED=P.TYPING_OFF=P.TYPING_ON=void 0;P.TYPING_ON="core.typing.on";P.TYPING_OFF="core.typing.off";P.GUEST_CONNECTED="core.guest.connected";P.GUEST_DISCONNECTED="core.guest.disconnected";P.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response";P.MESSAGE_FROM_GUEST="core.message.from.guest";P.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest";P.MESSAGE_TO_GUEST="core.message.to.guest";P.EXPERTS_CONNECT_REQUEST="core.experts.connect.request";P.EXPERTS_CONNECTED="core.experts.connected";P.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request";P.EXPERTS_DISCONNECTED="core.experts.disconnected";P.NLU_REQUEST_EVENT="core.nlu.request.event";P.EVENT_TO_GUEST="core.event.to.guest";P.RESTART_CHAT_REQUEST="core.chat.restart.request";P.INBOX_CONNECT_REQUEST="core.inbox.connect.request";P.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request";P.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction";P.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest";P.DRAWER_OPEN="core.drawer.open";P.DRAWER_CLOSE="core.drawer.close";P.GUEST_LOCALE_CHANGED="core.guest.locale.changed";var ay={};Object.defineProperty(ay,"__esModule",{value:!0});var kc={};Object.defineProperty(kc,"__esModule",{value:!0});const ZS=P,JS=()=>({type:ZS.DRAWER_CLOSE});kc.default=JS;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});const ew=P,tw=(e,t)=>({type:ew.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:e,intent:t}});Oc.default=tw;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});const nw=P,rw=e=>({type:nw.GUEST_CONNECTED,payload:{sessionId:e}});Nc.default=rw;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});const iw=P,ow=e=>({type:iw.GUEST_DISCONNECTED,payload:{sessionId:e}});Ac.default=ow;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});const sw=P,aw=(e,t)=>({type:sw.GUEST_LOCALE_CHANGED,payload:{previousLocale:e,newLocale:t}});Rc.default=aw;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const lw=P,uw=e=>({type:lw.DRAWER_OPEN,payload:{parameters:{contentUrl:e}}});Pc.default=uw;var Ic={},te={};Object.defineProperty(te,"__esModule",{value:!0});te.getStringRepresentationFromMessage=te.MessageTypeEnum=te.AudioMessage=te.FileMessage=te.ImageMessage=te.VideoMessage=te.MarkdownMessage=te.DetailMessage=te.TextMessage=te.Message=void 0;let kn=class{constructor(t,n){W(this,"type");W(this,"sender");W(this,"quickReplies");this.type=t,this.sender=n,this.quickReplies=[]}addQuickReply(t,n){this.quickReplies.push({label:t,payload:n})}};te.Message=kn;let cw=class extends kn{constructor(n,r){super(Te.TEXT,r);W(this,"text");this.text=n}};te.TextMessage=cw;let fw=class extends kn{constructor(n,r){super(Te.DETAIL,r);W(this,"title");W(this,"subtitle");W(this,"text");W(this,"imageUrl");W(this,"itemUrl");W(this,"buttons");this.title=n,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(n){this.imageUrl=n}setItemUrl(n){this.itemUrl=n}setSubtitle(n){this.subtitle=n}setText(n){this.text=n}addButton(n){this.buttons.push(n)}};te.DetailMessage=fw;let dw=class extends kn{constructor(n,r,i){super(Te.MARKDOWN,i);W(this,"markdown");W(this,"excerpt");W(this,"className");this.markdown=n,this.excerpt=r,this.className=""}setClassName(n){this.className=n}};te.MarkdownMessage=dw;class hw extends kn{constructor(n,r){super(Te.VIDEO,r);W(this,"url");this.url=n}}te.VideoMessage=hw;class pw extends kn{constructor(n,r){super(Te.IMAGE,r);W(this,"url");this.url=n}}te.ImageMessage=pw;class mw extends kn{constructor(n,r){super(Te.FILE,r);W(this,"url");this.url=n}}te.FileMessage=mw;class gw extends kn{constructor(n,r){super(Te.AUDIO,r);W(this,"url");this.url=n}}te.AudioMessage=gw;var Te;(function(e){e.TEXT="TEXT",e.DETAIL="DETAIL",e.MARKDOWN="MARKDOWN",e.VIDEO="VIDEO",e.IMAGE="IMAGE",e.FILE="FILE",e.AUDIO="AUDIO"})(Te||(te.MessageTypeEnum=Te={}));const yw=e=>{switch(e.type){case Te.TEXT:return e.text;case Te.DETAIL:const n=e;return`${n.title} // ${n.subtitle}`;case Te.MARKDOWN:return e.excerpt;case Te.VIDEO:return`Video Url: ${e.url}`;case Te.IMAGE:return`Image Url: ${e.url}`;case Te.FILE:return`File Url: ${e.url}`;case Te.AUDIO:return`Audio Url: ${e.url}`;default:throw new Error("Unknown message type "+e.type)}};te.getStringRepresentationFromMessage=yw;var Ue={};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.UserType=Ue.PersonUser=Ue.GuestUser=Ue.BotUser=Ue.User=void 0;class js{constructor(t,n,r,i){W(this,"type");W(this,"id");W(this,"name");W(this,"avatar");this.type=t,this.id=n,this.name=r,this.avatar=i}}Ue.User=js;class vw extends js{constructor(){super(Mi.BOT,null,"Chatbot","bot.svg")}}Ue.BotUser=vw;class _w extends js{constructor(){super(Mi.GUEST,null,"Guest","visitor.svg")}}Ue.GuestUser=_w;class Ew extends js{constructor(t,n,r){super(Mi.PERSON,t,n,r)}}Ue.PersonUser=Ew;var Mi;(function(e){e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON"})(Mi||(Ue.UserType=Mi={}));Object.defineProperty(Ic,"__esModule",{value:!0});const Sw=te,ww=Ue,bw=P,xw=e=>{const t=new Sw.TextMessage(e,new ww.GuestUser);return{type:bw.MESSAGE_FROM_GUEST,message:t}};Ic.default=xw;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const Tw=te,Cw=Ue,kw=P,Ow=(e,t={})=>{const n=new Tw.TextMessage(e,new Cw.GuestUser);return{type:kw.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:n,payload:t}};Dc.default=Ow;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});const Nw=P,Aw=e=>({type:Nw.NLU_REQUEST_EVENT,event:e});Mc.default=Aw;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});const Rw=P,Pw=()=>({type:Rw.RESTART_CHAT_REQUEST});Fc.default=Pw;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});const Iw=P,Dw=e=>({type:Iw.MESSAGE_TO_GUEST,message:e});Lc.default=Dw;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});const Mw=P,Fw=(e,t)=>({type:Mw.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:e,reaction:t}});Bc.default=Fw;(function(e){var t=X&&X.__createBinding||(Object.create?function(d,m,_,w){w===void 0&&(w=_);var b=Object.getOwnPropertyDescriptor(m,_);(!b||("get"in b?!m.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return m[_]}}),Object.defineProperty(d,w,b)}:function(d,m,_,w){w===void 0&&(w=_),d[w]=m[_]}),n=X&&X.__setModuleDefault||(Object.create?function(d,m){Object.defineProperty(d,"default",{enumerable:!0,value:m})}:function(d,m){d.default=m}),r=X&&X.__importStar||function(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&t(m,d,_);return n(m,d),m},i=X&&X.__exportStar||function(d,m){for(var _ in d)_!=="default"&&!Object.prototype.hasOwnProperty.call(m,_)&&t(m,d,_)},o=X&&X.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.transcriptItemGuestReaction=e.sendMessageToGuest=e.restartChatRequest=e.requestNLUEvent=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.openDrawer=e.guestLocaleChanged=e.guestDisconnected=e.guestConnected=e.feedbackFromGuestResponse=e.closeDrawer=e.ActionTypes=void 0,e.ActionTypes=r(P),i(ay,e);const s=o(kc);e.closeDrawer=s.default;const a=o(Oc);e.feedbackFromGuestResponse=a.default;const l=o(Nc);e.guestConnected=l.default;const c=o(Ac);e.guestDisconnected=c.default;const f=o(Rc);e.guestLocaleChanged=f.default;const h=o(Pc);e.openDrawer=h.default;const u=o(Ic);e.receiveTextMessageFromGuest=u.default;const y=o(Dc);e.receiveTextMessageWithoutAnalysisFromGuest=y.default;const p=o(Mc);e.requestNLUEvent=p.default;const E=o(Fc);e.restartChatRequest=E.default;const S=o(Lc);e.sendMessageToGuest=S.default;const g=o(Bc);e.transcriptItemGuestReaction=g.default})(nu);var Dr={},ly={};Object.defineProperty(ly,"__esModule",{value:!0});var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.NullableKnowledgeBaseAdapter=void 0;class Lw{async upsertApiKnowledgeBase(t){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(t){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(t){throw new Error("Method not implemented.")}async setIndexingStatus(t,n){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(t,n){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(t,n){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(t,n){throw new Error("Method not implemented.")}async subscribeToReindex(t,n){throw new Error("Method not implemented.")}isContentTypeSupported(t){throw new Error("Method not implemented.")}}zs.NullableKnowledgeBaseAdapter=Lw;var Bw=X&&X.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),jw=X&&X.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zw=X&&X.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Bw(t,e,n);return jw(t,e),t};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.NullableCmsAdapter=Dr.KnowledgeBase=void 0;Dr.KnowledgeBase=zw(ly);const Uw=zs;Dr.NullableCmsAdapter={knowledgeBase:new Uw.NullableKnowledgeBaseAdapter};var ru={},uy={};Object.defineProperty(uy,"__esModule",{value:!0});var Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.ButtonTypeEnum=Rt.PostbackButton=Rt.UrlButton=Rt.Button=void 0;class jc{constructor(t,n){W(this,"title");W(this,"type");this.title=t,this.type=n}}Rt.Button=jc;class Hw extends jc{constructor(n,r){super(n,fs.WEB_URL);W(this,"url");this.url=r}}Rt.UrlButton=Hw;class $w extends jc{constructor(n,r){super(n,fs.POSTBACK);W(this,"payload");this.payload=r}}Rt.PostbackButton=$w;var fs;(function(e){e.WEB_URL="web_url",e.POSTBACK="postback"})(fs||(Rt.ButtonTypeEnum=fs={}));var cy={};Object.defineProperty(cy,"__esModule",{value:!0});var Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.SatisfactionEnum=void 0;var Zd;(function(e){e.GOOD="GOOD",e.BAD="BAD"})(Zd||(Us.SatisfactionEnum=Zd={}));(function(e){var t=X&&X.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=X&&X.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(uy,e),n(Rt,e),n(cy,e),n(Us,e),n(te,e),n(Ue,e)})(ru);(function(e){var t=X&&X.__createBinding||(Object.create?function(o,s,a,l){l===void 0&&(l=a);var c=Object.getOwnPropertyDescriptor(s,a);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(o,l,c)}:function(o,s,a,l){l===void 0&&(l=a),o[l]=s[a]}),n=X&&X.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),r=X&&X.__exportStar||function(o,s){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,o,a)},i=X&&X.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var a in o)a!=="default"&&Object.prototype.hasOwnProperty.call(o,a)&&t(s,o,a);return n(s,o),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,r(nu,e),e.Actions=i(nu),e.CMS=i(Dr),r(ru,e),e.Model=i(ru)})(j);const fy=e=>t=>(e.payload.type!==j.ActionTypes.MESSAGE_FROM_GUEST&&t(j.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),t(e.payload)),dy=e=>(t,n)=>{const{quickReplies:r}=n().chat,i=r.find(o=>e.toLocaleLowerCase().indexOf(o.label.toLocaleLowerCase())>-1);return t(i?fy({...i,label:e}):j.receiveTextMessageFromGuest(e))},Hs="MESSAGE_TO_PARENT_PAGE",zc="RESTORE_PREVIOUS_CHAT_MESSAGES",Uc="AUDIO_MESSAGE_FROM_USER",Hc="ENABLE_SPEECH_SUPPORT",$c="ENABLE_TRANSCRIPT_EXPORT",Gw="EXPORT_TRANSCRIPT",Gc="RECEIVE_SPEECH_TRANSCRIPTION",Vc="SHOW_GENERAL_CONDITIONS",Wc="ENABLE_CONVERSATION_RATING",Vw="webclient.get.started",hy="webclient.expand.window",py="webclient.transcript.pdf.download",Ww=[Hs,zc,Uc,Hc,$c,Gw,Gc,Vc,Wc],qw=e=>({type:Uc,buffer:e}),Xw=()=>({type:Hc}),Qw=e=>({type:Gc,transcription:e}),Kw=e=>({type:$c,methods:e}),Yw=e=>({type:j.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),Zw=()=>({type:Vc}),Jw=()=>({type:py}),eb=({rating:e})=>({type:Wc,payload:{rating:e}}),tb=(e,t)=>({type:j.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:t}}),my=e=>j.requestNLUEvent(e),nb=e=>({type:zc,messages:e}),rb=e=>{switch(e.type){case j.ButtonTypeEnum.WEB_URL:return gy(e.url);case j.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},ib=e=>gy(e),gy=e=>({type:Hs,message:{type:"webclient.change.url",url:e}}),ob=e=>({type:Hs,message:{type:"webclient.change.translations",payload:{translations:e}}});/*! js-cookie v3.0.5 | MIT */function po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var sb={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function iu(e,t){function n(i,o,s){if(!(typeof document>"u")){s=po({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),c=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(s[f]=e.read(c,f),i===f)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",po({},o,{expires:-1}))},withAttributes:function(i){return iu(this.converter,po({},this.attributes,i))},withConverter:function(i){return iu(po({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ia=iu(sb,{path:"/"});function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ab=typeof Symbol=="function"&&Symbol.observable||"@@observable",Jd=ab,Da=()=>Math.random().toString(36).substring(7).split("").join("."),lb={INIT:`@@redux/INIT${Da()}`,REPLACE:`@@redux/REPLACE${Da()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Da()}`},ds=lb;function qc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function yy(e,t,n){if(typeof e!="function")throw new Error(ve(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ve(1));return n(yy)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((S,g)=>{s.set(g,S)}))}function f(){if(l)throw new Error(ve(3));return i}function h(S){if(typeof S!="function")throw new Error(ve(4));if(l)throw new Error(ve(5));let g=!0;c();const d=a++;return s.set(d,S),function(){if(g){if(l)throw new Error(ve(6));g=!1,c(),s.delete(d),o=null}}}function u(S){if(!qc(S))throw new Error(ve(7));if(typeof S.type>"u")throw new Error(ve(8));if(typeof S.type!="string")throw new Error(ve(17));if(l)throw new Error(ve(9));try{l=!0,i=r(i,S)}finally{l=!1}return(o=s).forEach(d=>{d()}),S}function y(S){if(typeof S!="function")throw new Error(ve(10));r=S,u({type:ds.REPLACE})}function p(){const S=h;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ve(11));function d(){const _=g;_.next&&_.next(f())}return d(),{unsubscribe:S(d)}},[Jd](){return this}}}return u({type:ds.INIT}),{dispatch:u,subscribe:h,getState:f,replaceReducer:y,[Jd]:p}}function ub(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ds.INIT})>"u")throw new Error(ve(12));if(typeof n(void 0,{type:ds.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function vy(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{ub(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let f=0;f<r.length;f++){const h=r[f],u=n[h],y=s[h],p=u(y,a);if(typeof p>"u")throw a&&a.type,new Error(ve(14));c[h]=p,l=l||p!==y}return l=l||r.length!==Object.keys(s).length,l?c:s}}function hs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function cb(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(ve(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=hs(...a)(i.dispatch),{...i,dispatch:o}}}function fb(e){return qc(e)&&"type"in e&&typeof e.type=="string"}var _y=Symbol.for("immer-nothing"),eh=Symbol.for("immer-draftable"),Ke=Symbol.for("immer-state");function _t(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Mr=Object.getPrototypeOf;function Kn(e){return!!e&&!!e[Ke]}function Zt(e){var t;return e?Ey(e)||Array.isArray(e)||!!e[eh]||!!((t=e.constructor)!=null&&t[eh])||Gs(e)||Vs(e):!1}var db=Object.prototype.constructor.toString();function Ey(e){if(!e||typeof e!="object")return!1;const t=Mr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===db}function Fi(e,t){$s(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function $s(e){const t=e[Ke];return t?t.type_:Array.isArray(e)?1:Gs(e)?2:Vs(e)?3:0}function ou(e,t){return $s(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sy(e,t,n){const r=$s(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function hb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Gs(e){return e instanceof Map}function Vs(e){return e instanceof Set}function Mn(e){return e.copy_||e.base_}function su(e,t){if(Gs(e))return new Map(e);if(Vs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Ey(e))return Mr(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ke];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Mr(e),n)}function Xc(e,t=!1){return Ws(e)||Kn(e)||!Zt(e)||($s(e)>1&&(e.set=e.add=e.clear=e.delete=pb),Object.freeze(e),t&&Fi(e,(n,r)=>Xc(r,!0))),e}function pb(){_t(2)}function Ws(e){return Object.isFrozen(e)}var mb={};function Yn(e){const t=mb[e];return t||_t(0,e),t}var Li;function wy(){return Li}function gb(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function th(e,t){t&&(Yn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function au(e){lu(e),e.drafts_.forEach(yb),e.drafts_=null}function lu(e){e===Li&&(Li=e.parent_)}function nh(e){return Li=gb(Li,e)}function yb(e){const t=e[Ke];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function rh(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ke].modified_&&(au(t),_t(4)),Zt(e)&&(e=ps(t,e),t.parent_||ms(t,e)),t.patches_&&Yn("Patches").generateReplacementPatches_(n[Ke].base_,e,t.patches_,t.inversePatches_)):e=ps(t,n,[]),au(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==_y?e:void 0}function ps(e,t,n){if(Ws(t))return t;const r=t[Ke];if(!r)return Fi(t,(i,o)=>ih(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ms(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Fi(o,(a,l)=>ih(e,r,i,a,l,n,s)),ms(e,i,!1),n&&e.patches_&&Yn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function ih(e,t,n,r,i,o,s){if(Kn(i)){const a=o&&t&&t.type_!==3&&!ou(t.assigned_,r)?o.concat(r):void 0,l=ps(e,i,a);if(Sy(n,r,l),Kn(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Zt(i)&&!Ws(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ps(e,i),(!t||!t.scope_.parent_)&&ms(e,i)}}function ms(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Xc(t,n)}function vb(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:wy(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Qc;n&&(i=[r],o=Bi);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var Qc={get(e,t){if(t===Ke)return e;const n=Mn(e);if(!ou(n,t))return _b(e,n,t);const r=n[t];return e.finalized_||!Zt(r)?r:r===Ma(e.base_,t)?(Fa(e),e.copy_[t]=cu(r,e)):r},has(e,t){return t in Mn(e)},ownKeys(e){return Reflect.ownKeys(Mn(e))},set(e,t,n){const r=by(Mn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Ma(Mn(e),t),o=i==null?void 0:i[Ke];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(hb(n,i)&&(n!==void 0||ou(e.base_,t)))return!0;Fa(e),uu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Ma(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Fa(e),uu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){_t(11)},getPrototypeOf(e){return Mr(e.base_)},setPrototypeOf(){_t(12)}},Bi={};Fi(Qc,(e,t)=>{Bi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bi.deleteProperty=function(e,t){return Bi.set.call(this,e,t,void 0)};Bi.set=function(e,t,n){return Qc.set.call(this,e[0],t,n,e[0])};function Ma(e,t){const n=e[Ke];return(n?Mn(n):e)[t]}function _b(e,t,n){var i;const r=by(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function by(e,t){if(!(t in e))return;let n=Mr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Mr(n)}}function uu(e){e.modified_||(e.modified_=!0,e.parent_&&uu(e.parent_))}function Fa(e){e.copy_||(e.copy_=su(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Eb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,f=>n.call(this,f,...c))}}typeof n!="function"&&_t(6),r!==void 0&&typeof r!="function"&&_t(7);let i;if(Zt(t)){const o=nh(this),s=cu(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?au(o):lu(o)}return th(o,r),rh(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===_y&&(i=void 0),this.autoFreeze_&&Xc(i,!0),r){const o=[],s=[];Yn("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else _t(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zt(e)||_t(8),Kn(e)&&(e=Sb(e));const t=nh(this),n=cu(e,void 0);return n[Ke].isManual_=!0,lu(t),n}finishDraft(e,t){const n=e&&e[Ke];(!n||!n.isManual_)&&_t(9);const{scope_:r}=n;return th(r,t),rh(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Yn("Patches").applyPatches_;return Kn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function cu(e,t){const n=Gs(e)?Yn("MapSet").proxyMap_(e,t):Vs(e)?Yn("MapSet").proxySet_(e,t):vb(e,t);return(t?t.scope_:wy()).drafts_.push(n),n}function Sb(e){return Kn(e)||_t(10,e),xy(e)}function xy(e){if(!Zt(e)||Ws(e))return e;const t=e[Ke];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=su(e,t.scope_.immer_.useStrictShallowCopy_)}else n=su(e,!0);return Fi(n,(r,i)=>{Sy(n,r,xy(i))}),t&&(t.finalized_=!1),n}var Ye=new Eb,Ty=Ye.produce;Ye.produceWithPatches.bind(Ye);Ye.setAutoFreeze.bind(Ye);Ye.setUseStrictShallowCopy.bind(Ye);Ye.applyPatches.bind(Ye);Ye.createDraft.bind(Ye);Ye.finishDraft.bind(Ye);function Cy(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var wb=Cy(),bb=Cy,xb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hs:hs.apply(null,arguments)};function oh(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Dt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>fb(r)&&r.type===e,n}var ky=class si extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,si.prototype)}static get[Symbol.species](){return si}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new si(...t[0].concat(this)):new si(...t.concat(this))}};function sh(e){return Zt(e)?Ty(e,()=>{}):e}function ah(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Dt(10));const r=n.insert(t,e);return e.set(t,r),r}function Tb(e){return typeof e=="boolean"}var Cb=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new ky;return n&&(Tb(n)?s.push(wb):s.push(bb(n.extraArgument))),s},kb="RTK_autoBatch",Oy=e=>t=>{setTimeout(t,e)},Ob=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Oy(10),Nb=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Ob:e.type==="callback"?e.queueNotification:Oy(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const h=()=>i&&f(),u=r.subscribe(h);return a.add(f),()=>{u(),a.delete(f)}},dispatch(f){var h;try{return i=!((h=f==null?void 0:f.meta)!=null&&h[kb]),o=!i,o&&(s||(s=!0,l(c))),r.dispatch(f)}finally{i=!0}}})},Ab=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new ky(e);return r&&i.push(Nb(typeof r=="object"?r:void 0)),i};function Rb(e){const t=Cb(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(qc(n))a=vy(n);else throw new Error(Dt(1));let l;typeof r=="function"?l=r(t):l=t();let c=hs;i&&(c=xb({trace:!1,...typeof i=="object"&&i}));const f=cb(...l),h=Ab(f);let u=typeof s=="function"?s(h):h();const y=c(...u);return yy(a,o,y)}function Ny(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(Dt(28));if(a in t)throw new Error(Dt(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Pb(e){return typeof e=="function"}function Ib(e,t){let[n,r,i]=Ny(t),o;if(Pb(e))o=()=>sh(e());else{const a=sh(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,h)=>{if(h)if(Kn(f)){const y=h(f,l);return y===void 0?f:y}else{if(Zt(f))return Ty(f,u=>h(u,l));{const u=h(f,l);if(u===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return u}}return f},a)}return s.getInitialState=o,s}var Db=Symbol.for("rtk-slice-createasyncthunk");function Mb(e,t){return`${e}/${t}`}function Fb({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Db];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(Dt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(Bb()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(m,_){const w=typeof m=="string"?m:m.type;if(!w)throw new Error(Dt(12));if(w in c.sliceCaseReducersByType)throw new Error(Dt(13));return c.sliceCaseReducersByType[w]=_,f},addMatcher(m,_){return c.sliceMatchers.push({matcher:m,reducer:_}),f},exposeAction(m,_){return c.actionCreators[m]=_,f},exposeCaseReducer(m,_){return c.sliceCaseReducersByName[m]=_,f}};l.forEach(m=>{const _=a[m],w={reducerName:m,type:Mb(o,m),createNotation:typeof i.reducers=="function"};zb(_)?Hb(w,_,f,t):jb(w,_,f)});function h(){const[m={},_=[],w=void 0]=typeof i.extraReducers=="function"?Ny(i.extraReducers):[i.extraReducers],b={...m,...c.sliceCaseReducersByType};return Ib(i.initialState,x=>{for(let T in b)x.addCase(T,b[T]);for(let T of c.sliceMatchers)x.addMatcher(T.matcher,T.reducer);for(let T of _)x.addMatcher(T.matcher,T.reducer);w&&x.addDefaultCase(w)})}const u=m=>m,y=new Map;let p;function E(m,_){return p||(p=h()),p(m,_)}function S(){return p||(p=h()),p.getInitialState()}function g(m,_=!1){function w(x){let T=x[m];return typeof T>"u"&&_&&(T=S()),T}function b(x=u){const T=ah(y,_,{insert:()=>new WeakMap});return ah(T,x,{insert:()=>{const M={};for(const[I,se]of Object.entries(i.selectors??{}))M[I]=Lb(se,x,S,_);return M}})}return{reducerPath:m,getSelectors:b,get selectors(){return b(w)},selectSlice:w}}const d={name:o,reducer:E,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...g(s),injectInto(m,{reducerPath:_,...w}={}){const b=_??s;return m.inject({reducerPath:b,reducer:E},w),{...d,...g(b,!0)}}};return d}}function Lb(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Ay=Fb();function Bb(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function jb({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!Ub(r))throw new Error(Dt(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?oh(e,s):oh(e))}function zb(e){return e._reducerDefinitionType==="asyncThunk"}function Ub(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Hb({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Dt(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:f}=n,h=i(e,o,f);r.exposeAction(t,h),s&&r.addCase(h.fulfilled,s),a&&r.addCase(h.pending,a),l&&r.addCase(h.rejected,l),c&&r.addMatcher(h.settled,c),r.exposeCaseReducer(t,{fulfilled:s||mo,pending:a||mo,rejected:l||mo,settled:c||mo})}function mo(){}function Dt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const $b={useStartScreen:void 0,formValues:{}},Ry=Ay({name:"start-screen",initialState:$b,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,t){e.startScreenStatus="HIDDEN",e.formValues=t.payload}}}),{enableStartScreen:Gb,disableStartScreen:Vb,startChat:Wb,showStartScreen:qb}=Ry.actions,Xb=Ry.reducer,Py="RESET_CHAT_STATE",Qb=()=>({type:Py}),Kc="CONNECT",Yc="CONNECTING",Zc="CONNECTED",Jc="DISCONNECTED",ef="RECONNECTED",tf="RESTORE_SESSION_ID",qs="START",Xs="CLEAR_SESSION_ID",Kb=[Kc,Yc,Zc,Jc,ef,tf],Yb=(e,t)=>({type:Kc,clientName:e,querystrings:t}),Zb=e=>({type:tf,sessionId:e}),Jb=()=>({type:Yc}),ex=()=>({type:Zc}),tx=()=>({type:Jc}),nx=()=>({type:ef}),Iy=(e,t)=>(n,r)=>{const i=r().connection,o=r().startScreen.formValues;let s=i.sessionId;s===void 0&&(s=crypto.randomUUID());let a=i.userId;if(a===void 0){const l=Ia.get("bubble-chat-userId")||Ia.get("bf-webclient-userId");a=l||crypto.randomUUID(),Ia.set("bubble-chat-userId",a)}n({type:qs,payload:{sessionId:s,userId:a,clientName:e,querystrings:{...t,...o}}})},nf=(e,t)=>(n,r)=>{const i=r().connection.sessionId||"";if(n(rx(i)),n(Qb()),r().startScreen.useStartScreen)n(qb());else return n(Iy(e,t))},rx=e=>({type:Xs,payload:{sessionId:e}}),ft=()=>{const e=Bs();return n=>{const r=e.formatMessage({id:n});return r===n?void 0:r}};var zn=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(zn||{}),Dy=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(Dy||{});const ix="_button_bc9qm_54",ox="_buttonDefault_bc9qm_66",sx="_buttonPrimary_bc9qm_80",ax="_accessabilityHidden_bc9qm_132",Ee={button:ix,buttonDefault:ox,buttonPrimary:sx,accessabilityHidden:ax},lx="_chatwindow_phukm_1",ux="_chatcontent_phukm_13",cx={chatwindow:lx,chatcontent:ux},fx="_messageContainer_1wdci_1",dx="_messages_1wdci_10",lh={messageContainer:fx,messages:dx};function Fn(){return Fn=Object.assign?Object.assign.bind():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},Fn.apply(this,arguments)}const hx=["children","options"],D={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var uh;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(uh||(uh={}));const ch=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),fh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},px=["style","script"],mx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,gx=/mailto:/i,yx=/\n{2,}$/,My=/^(\s*>[\s\S]*?)(?=\n{2,})/,vx=/^ *> ?/gm,_x=/^ {2,}\n/,Ex=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Fy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ly=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Sx=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,wx=/^(?:\n *)*\n/,bx=/\r\n?/g,xx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Tx=/^\[\^([^\]]+)]/,Cx=/\f/g,kx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Ox=/^\s*?\[(x|\s)\]/,By=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,fu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Nx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Uy=/^<!--[\s\S]*?(?:-->)/,Ax=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,du=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Rx=/^\{.*\}$/,Px=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ix=/^<([^ >]+@[^ >]+)>/,Dx=/^<([^ >]+:\/[^ >]+)>/,Mx=/-([a-z])?/gi,Hy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Fx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Lx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Bx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,jx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,zx=/\t/g,Ux=/(^ *\||\| *$)/g,Hx=/^ *:-+: *$/,$x=/^ *:-+ *$/,Gx=/^ *-+: *$/,Qs="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Vx=new RegExp(`^([*_])\\1${Qs}\\1\\1(?!\\1)`),Wx=new RegExp(`^([*_])${Qs}\\1(?!\\1|\\w)`),qx=new RegExp(`^==${Qs}==`),Xx=new RegExp(`^~~${Qs}~~`),Qx=/^\\([^0-9A-Za-z\s])/,Kx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Yx=/^\n+/,Zx=/^([ \t]*)/,Jx=/\\([^\\])/g,dh=/ *\n+$/,eT=/(?:^|\n)( *)$/,rf="(?:\\d+\\.)",of="(?:[*+-])";function $y(e){return"( *)("+(e===1?rf:of)+") +"}const Gy=$y(1),Vy=$y(2);function Wy(e){return new RegExp("^"+(e===1?Gy:Vy))}const tT=Wy(1),nT=Wy(2);function qy(e){return new RegExp("^"+(e===1?Gy:Vy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?rf:of)+" )[^\\n]*)*(\\n|$)","gm")}const Xy=qy(1),Qy=qy(2);function Ky(e){const t=e===1?rf:of;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Yy=Ky(1),Zy=Ky(2);function hh(e,t){const n=t===1,r=n?Yy:Zy,i=n?Xy:Qy,o=n?tT:nT;return{match(s,a){const l=eT.exec(a.prevCapture);return l&&(a.list||!a.inline&&!a.simple)?r.exec(s=l[1]+s):null},order:1,parse(s,a,l){const c=n?+s[2]:void 0,f=s[0].replace(yx,`
78
78
  `).match(i);let h=!1;return{items:f.map(function(u,y){const p=o.exec(u)[0].length,E=new RegExp("^ {1,"+p+"}","gm"),S=u.replace(E,"").replace(o,""),g=y===f.length-1,d=S.indexOf(`
79
79
 
80
- `)!==-1||g&&h;h=d;const m=l.inline,_=l.list;let b;l.list=!0,d?(l.inline=!1,b=S.replace(dh,`
80
+ `)!==-1||g&&h;h=d;const m=l.inline,_=l.list;let w;l.list=!0,d?(l.inline=!1,w=S.replace(dh,`
81
81
 
82
- `)):(l.inline=!0,b=S.replace(dh,""));const w=a(b,l);return l.inline=m,l.list=_,w}),ordered:n,start:c}},render:(s,a,l)=>e(s.ordered?"ol":"ul",{key:l.key,start:s.type===D.orderedList?s.start:void 0},s.items.map(function(c,f){return e("li",{key:f},a(c,l))}))}}const rT=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),iT=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Jy=[My,Fy,Ly,By,zy,jy,Uy,Hy,Xy,Yy,Qy,Zy],oT=[...Jy,/^[^\n]+(?: \n|\n{2,})/,fu,du];function go(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function sT(e){return Gx.test(e)?"right":Hx.test(e)?"center":$x.test(e)?"left":null}function ph(e,t,n,r){const i=n.inTable;n.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((a,l)=>(l.trim()==="|"?a.push(r?{type:D.tableSeparator}:{type:D.text,text:l}):l!==""&&a.push.apply(a,t(l,n)),a),[]);n.inTable=i;let s=[[]];return o.forEach(function(a,l){a.type===D.tableSeparator?l!==0&&l!==o.length-1&&s.push([]):(a.type!==D.text||o[l+1]!=null&&o[l+1].type!==D.tableSeparator||(a.text=a.text.trimEnd()),s[s.length-1].push(a))}),s}function aT(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(Ux,"").split("|").map(sT):[],i=e[3]?function(s,a,l){return s.trim().split(`
82
+ `)):(l.inline=!0,w=S.replace(dh,""));const b=a(w,l);return l.inline=m,l.list=_,b}),ordered:n,start:c}},render:(s,a,l)=>e(s.ordered?"ol":"ul",{key:l.key,start:s.type===D.orderedList?s.start:void 0},s.items.map(function(c,f){return e("li",{key:f},a(c,l))}))}}const rT=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),iT=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Jy=[My,Fy,Ly,By,zy,jy,Uy,Hy,Xy,Yy,Qy,Zy],oT=[...Jy,/^[^\n]+(?: \n|\n{2,})/,fu,du];function go(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function sT(e){return Gx.test(e)?"right":Hx.test(e)?"center":$x.test(e)?"left":null}function ph(e,t,n,r){const i=n.inTable;n.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((a,l)=>(l.trim()==="|"?a.push(r?{type:D.tableSeparator}:{type:D.text,text:l}):l!==""&&a.push.apply(a,t(l,n)),a),[]);n.inTable=i;let s=[[]];return o.forEach(function(a,l){a.type===D.tableSeparator?l!==0&&l!==o.length-1&&s.push([]):(a.type!==D.text||o[l+1]!=null&&o[l+1].type!==D.tableSeparator||(a.text=a.text.trimEnd()),s[s.length-1].push(a))}),s}function aT(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(Ux,"").split("|").map(sT):[],i=e[3]?function(s,a,l){return s.trim().split(`
83
83
  `).map(function(c){return ph(c,a,l,!0)})}(e[3],t,n):[],o=ph(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:o,type:D.table}:{children:o,type:D.paragraph}}function mh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function tn(e){return function(t,n){return n.inline?e.exec(t):null}}function nn(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function Bt(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Kr(e){return function(t){return e.exec(t)}}function lT(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
84
84
  `).every(i=>!Jy.some(o=>o.test(i))&&(n+=i+`
85
85
  `,i.trim()));const r=n.trimEnd();return r==""?null:[n,r]}function uT(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function gh(e){return e.replace(Jx,"$1")}function Io(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=i,o}function cT(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=i,o}function fT(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const La=(e,t,n)=>({children:Io(t,e[1],n)});function Ba(){return{}}function ja(){return null}function dT(...e){return e.filter(Boolean).join(" ")}function za(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r||n}function hT(e="",t={}){function n(u,y,...p){const E=za(t.overrides,`${u}.props`,{});return t.createElement(function(S,g){const d=za(g,S);return d?typeof d=="function"||typeof d=="object"&&"render"in d?d:za(g,`${S}.component`,S):S}(u,t.overrides),Fn({},y,E,{className:dT(y==null?void 0:y.className,E.className)||void 0}),...p)}function r(u){u=u.replace(kx,"");let y=!1;t.forceInline?y=!0:t.forceBlock||(y=jx.test(u)===!1);const p=c(l(y?u:`${u.trimEnd().replace(Yx,"")}
86
86
 
87
- `,{inline:y}));for(;typeof p[p.length-1]=="string"&&!p[p.length-1].trim();)p.pop();if(t.wrapper===null)return p;const E=t.wrapper||(y?"span":"div");let S;if(p.length>1||t.forceWrapper)S=p;else{if(p.length===1)return S=p[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return O.createElement(E,{key:"outer"},S)}function i(u,y){const p=y.match(mx);return p?p.reduce(function(E,S,g){const d=S.indexOf("=");if(d!==-1){const m=function(x){return x.indexOf("-")!==-1&&x.match(Ax)===null&&(x=x.replace(Mx,function(T,M){return M.toUpperCase()})),x}(S.slice(0,d)).trim(),_=function(x){const T=x[0];return(T==='"'||T==="'")&&x.length>=2&&x[x.length-1]===T?x.slice(1,-1):x}(S.slice(d+1).trim()),b=ch[m]||m,w=E[b]=function(x,T,M,I){return T==="style"?M.split(/;\s?/).reduce(function(se,he){const Be=he.slice(0,he.indexOf(":"));return se[Be.trim().replace(/(-[a-z])/g,nr=>nr[1].toUpperCase())]=he.slice(Be.length+1).trim(),se},{}):T==="href"||T==="src"?I(M,x,T):(M.match(Rx)&&(M=M.slice(1,M.length-1)),M==="true"||M!=="false"&&M)}(u,m,_,t.sanitizer);typeof w=="string"&&(fu.test(w)||du.test(w))&&(E[b]=O.cloneElement(r(w.trim()),{key:g}))}else S!=="style"&&(E[ch[S]||S]=!0);return E},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||uT,t.slugify=t.slugify||go,t.namedCodesToUnicode=t.namedCodesToUnicode?Fn({},fh,t.namedCodesToUnicode):fh,t.createElement=t.createElement||O.createElement;const o=[],s={},a={[D.blockQuote]:{match:Bt(My),order:1,parse:(u,y,p)=>({children:y(u[0].replace(vx,""),p)}),render:(u,y,p)=>n("blockquote",{key:p.key},y(u.children,p))},[D.breakLine]:{match:Kr(_x),order:1,parse:Ba,render:(u,y,p)=>n("br",{key:p.key})},[D.breakThematic]:{match:Bt(Ex),order:1,parse:Ba,render:(u,y,p)=>n("hr",{key:p.key})},[D.codeBlock]:{match:Bt(Ly),order:0,parse:u=>({lang:void 0,text:u[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(u,y,p)=>n("pre",{key:p.key},n("code",Fn({},u.attrs,{className:u.lang?`lang-${u.lang}`:""}),u.text))},[D.codeFenced]:{match:Bt(Fy),order:0,parse:u=>({attrs:i("code",u[3]||""),lang:u[2]||void 0,text:u[4],type:D.codeBlock})},[D.codeInline]:{match:nn(Sx),order:3,parse:u=>({text:u[2]}),render:(u,y,p)=>n("code",{key:p.key},u.text)},[D.footnote]:{match:Bt(xx),order:0,parse:u=>(o.push({footnote:u[2],identifier:u[1]}),{}),render:ja},[D.footnoteReference]:{match:tn(Tx),order:1,parse:u=>({target:`#${t.slugify(u[1],go)}`,text:u[1]}),render:(u,y,p)=>n("a",{key:p.key,href:t.sanitizer(u.target,"a","href")},n("sup",{key:p.key},u.text))},[D.gfmTask]:{match:tn(Ox),order:1,parse:u=>({completed:u[1].toLowerCase()==="x"}),render:(u,y,p)=>n("input",{checked:u.completed,key:p.key,readOnly:!0,type:"checkbox"})},[D.heading]:{match:Bt(t.enforceAtxHeadings?jy:By),order:1,parse:(u,y,p)=>({children:Io(y,u[2],p),id:t.slugify(u[2],go),level:u[1].length}),render:(u,y,p)=>n(`h${u.level}`,{id:u.id,key:p.key},y(u.children,p))},[D.headingSetext]:{match:Bt(zy),order:0,parse:(u,y,p)=>({children:Io(y,u[1],p),level:u[2]==="="?1:2,type:D.heading})},[D.htmlBlock]:{match:Kr(fu),order:1,parse(u,y,p){const[,E]=u[3].match(Zx),S=new RegExp(`^${E}`,"gm"),g=u[3].replace(S,""),d=(m=g,oT.some(T=>T.test(m))?fT:Io);var m;const _=u[1].toLowerCase(),b=px.indexOf(_)!==-1,w=(b?_:u[1]).trim(),x={attrs:i(w,u[2]),noInnerParse:b,tag:w};return p.inAnchor=p.inAnchor||_==="a",b?x.text=u[3]:x.children=d(y,g,p),p.inAnchor=!1,x},render:(u,y,p)=>n(u.tag,Fn({key:p.key},u.attrs),u.text||(u.children?y(u.children,p):""))},[D.htmlSelfClosing]:{match:Kr(du),order:1,parse(u){const y=u[1].trim();return{attrs:i(y,u[2]||""),tag:y}},render:(u,y,p)=>n(u.tag,Fn({},u.attrs,{key:p.key}))},[D.htmlComment]:{match:Kr(Uy),order:1,parse:()=>({}),render:ja},[D.image]:{match:nn(iT),order:1,parse:u=>({alt:u[1],target:gh(u[2]),title:u[3]}),render:(u,y,p)=>n("img",{key:p.key,alt:u.alt||void 0,title:u.title||void 0,src:t.sanitizer(u.target,"img","src")})},[D.link]:{match:tn(rT),order:3,parse:(u,y,p)=>({children:cT(y,u[1],p),target:gh(u[2]),title:u[3]}),render:(u,y,p)=>n("a",{key:p.key,href:t.sanitizer(u.target,"a","href"),title:u.title},y(u.children,p))},[D.linkAngleBraceStyleDetector]:{match:tn(Dx),order:0,parse:u=>({children:[{text:u[1],type:D.text}],target:u[1],type:D.link})},[D.linkBareUrlDetector]:{match:(u,y)=>y.inAnchor||t.disableAutoLink?null:tn(Px)(u,y),order:0,parse:u=>({children:[{text:u[1],type:D.text}],target:u[1],title:void 0,type:D.link})},[D.linkMailtoDetector]:{match:tn(Ix),order:0,parse(u){let y=u[1],p=u[1];return gx.test(p)||(p="mailto:"+p),{children:[{text:y.replace("mailto:",""),type:D.text}],target:p,type:D.link}}},[D.orderedList]:hh(n,1),[D.unorderedList]:hh(n,2),[D.newlineCoalescer]:{match:Bt(bx),order:3,parse:Ba,render:()=>`
88
- `},[D.paragraph]:{match:lT,order:3,parse:La,render:(u,y,p)=>n("p",{key:p.key},y(u.children,p))},[D.ref]:{match:tn(Fx),order:0,parse:u=>(s[u[1]]={target:u[2],title:u[4]},{}),render:ja},[D.refImage]:{match:nn(Lx),order:0,parse:u=>({alt:u[1]||void 0,ref:u[2]}),render:(u,y,p)=>s[u.ref]?n("img",{key:p.key,alt:u.alt,src:t.sanitizer(s[u.ref].target,"img","src"),title:s[u.ref].title}):null},[D.refLink]:{match:tn(Bx),order:0,parse:(u,y,p)=>({children:y(u[1],p),fallbackChildren:u[0],ref:u[2]}),render:(u,y,p)=>s[u.ref]?n("a",{key:p.key,href:t.sanitizer(s[u.ref].target,"a","href"),title:s[u.ref].title},y(u.children,p)):n("span",{key:p.key},u.fallbackChildren)},[D.table]:{match:Bt(Hy),order:1,parse:aT,render(u,y,p){const E=u;return n("table",{key:p.key},n("thead",null,n("tr",null,E.header.map(function(S,g){return n("th",{key:g,style:mh(E,g)},y(S,p))}))),n("tbody",null,E.cells.map(function(S,g){return n("tr",{key:g},S.map(function(d,m){return n("td",{key:m,style:mh(E,m)},y(d,p))}))})))}},[D.text]:{match:Kr(Kx),order:4,parse:u=>({text:u[0].replace(Nx,(y,p)=>t.namedCodesToUnicode[p]?t.namedCodesToUnicode[p]:y)}),render:u=>u.text},[D.textBolded]:{match:nn(Vx),order:2,parse:(u,y,p)=>({children:y(u[2],p)}),render:(u,y,p)=>n("strong",{key:p.key},y(u.children,p))},[D.textEmphasized]:{match:nn(Wx),order:3,parse:(u,y,p)=>({children:y(u[2],p)}),render:(u,y,p)=>n("em",{key:p.key},y(u.children,p))},[D.textEscaped]:{match:nn(Qx),order:1,parse:u=>({text:u[1],type:D.text})},[D.textMarked]:{match:nn(qx),order:3,parse:La,render:(u,y,p)=>n("mark",{key:p.key},y(u.children,p))},[D.textStrikethroughed]:{match:nn(Xx),order:3,parse:La,render:(u,y,p)=>n("del",{key:p.key},y(u.children,p))}};t.disableParsingRawHTML===!0&&(delete a[D.htmlBlock],delete a[D.htmlSelfClosing]);const l=function(u){let y=Object.keys(u);function p(E,S){let g=[];for(S.prevCapture=S.prevCapture||"";E;){let d=0;for(;d<y.length;){const m=y[d],_=u[m],b=_.match(E,S);if(b){const w=b[0];S.prevCapture+=w,E=E.substring(w.length);const x=_.parse(b,p,S);x.type==null&&(x.type=m),g.push(x);break}d++}}return S.prevCapture="",g}return y.sort(function(E,S){let g=u[E].order,d=u[S].order;return g!==d?g-d:E<S?-1:1}),function(E,S){return p(function(g){return g.replace(wx,`
89
- `).replace(Cx,"").replace(zx," ")}(E),S)}}(a),c=(f=function(u,y){return function(p,E,S){const g=u[p.type].render;return y?y(()=>g(p,E,S),p,E,S):g(p,E,S)}}(a,t.renderRule),function u(y,p={}){if(Array.isArray(y)){const E=p.key,S=[];let g=!1;for(let d=0;d<y.length;d++){p.key=d;const m=u(y[d],p),_=typeof m=="string";_&&g?S[S.length-1]+=m:m!==null&&S.push(m),g=_}return p.key=E,S}return f(y,u,p)});var f;const h=r(e);return o.length?n("div",null,h,n("footer",{key:"footer"},o.map(function(u){return n("div",{id:t.slugify(u.identifier,go),key:u.identifier},u.identifier,c(l(u.footnote,{inline:!0})))}))):h}const _n=e=>{let{children:t="",options:n}=e,r=function(i,o){if(i==null)return{};var s,a,l={},c=Object.keys(i);for(a=0;a<c.length;a++)o.indexOf(s=c[a])>=0||(l[s]=i[s]);return l}(e,hx);return O.cloneElement(hT(t,n),r)};var e0={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},yh=Et.createContext&&Et.createContext(e0),pT=["attr","size","title"];function mT(e,t){if(e==null)return{};var n=gT(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gs(){return gs=Object.assign?Object.assign.bind():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},gs.apply(this,arguments)}function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(n),!0).forEach(function(r){yT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yT(e,t,n){return t=vT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vT(e){var t=_T(e,"string");return typeof t=="symbol"?t:t+""}function _T(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t0(e){return e&&e.map((t,n)=>Et.createElement(t.tag,ys({key:n},t.attr),t0(t.child)))}function n0(e){return t=>Et.createElement(ET,gs({attr:ys({},e.attr)},t),t0(e.child))}function ET(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=mT(e,pT),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),Et.createElement("svg",gs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:ys(ys({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Et.createElement("title",null,o),e.children)};return yh!==void 0?Et.createElement(yh.Consumer,null,n=>t(n)):t(e0)}function ST(e){return n0({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"},child:[]}]})(e)}function bT(e){return n0({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"},child:[]}]})(e)}const wT="_generalConditionsContainer_1ijeb_1",xT="_generalConditions_1ijeb_1",TT="_generalConditionsHeader_1ijeb_15",CT="_generalConditionsBody_1ijeb_25",kT="_generalConditionsAccept_1ijeb_33",Yr={generalConditionsContainer:wT,generalConditions:xT,generalConditionsHeader:TT,generalConditionsBody:CT,generalConditionsAccept:kT},OT="general-conditions.header",NT="general-conditions.body",_h="general-conditions.accept-conditions-note",AT=()=>{const e=ft(),[t,n]=O.useState(!1),r=()=>n(!t),i=a=>{a.key==="ArrowDown"||a.key==="ArrowRight"?n(!0):a.key==="ArrowUp"||a.key==="ArrowLeft"||a.key==="Escape"?n(!1):(a.key==="Enter"||a.key==="Space"||a.key===" ")&&r()},o=e(OT),s=e(_h);return v.jsxs("div",{className:k(Yr.generalConditionsContainer,"chat__generalConditions"),children:[!!(o!=null&&o.length)&&v.jsxs("div",{className:Yr.generalConditions,children:[v.jsxs("div",{role:"button",onClick:r,onKeyDown:i,tabIndex:0,className:k(Yr.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":t?"true":"false","aria-pressed":t?"true":"false",children:[v.jsx(_n,{children:o}),t?v.jsx(bT,{}):v.jsx(ST,{})]}),v.jsx("div",{className:k(Yr.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:t&&v.jsx(_n,{children:e(NT)||""})})]}),!!(s!=null&&s.length)&&v.jsx("div",{className:k(Yr.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(_n,{children:e(_h)||""})})]})},RT="_message_iyv51_5",PT="_messageBot_iyv51_12",IT="_messageBotLast_iyv51_20",DT="_avatar_iyv51_20",MT="_messageBotFirst_iyv51_24",FT="_messageBotAnimated_iyv51_37",LT="_fadeInLeft_iyv51_1",BT="_messageGuest_iyv51_48",jT="_messageGuestFirst_iyv51_54",zT="_messageGuestLast_iyv51_60",UT="_botAvatar_iyv51_74",HT="_agentAvatar_iyv51_78",$T="_bubble_iyv51_82",GT="_bubbleContent_iyv51_88",VT="_bubbleLeft_iyv51_191",WT="_leftText_iyv51_200",qT="_bubbleRight_iyv51_207",XT="_rightText_iyv51_215",B={message:RT,messageBot:PT,messageBotLast:IT,avatar:DT,messageBotFirst:MT,messageBotAnimated:FT,fadeInLeft:LT,messageGuest:BT,messageGuestFirst:jT,messageGuestLast:zT,botAvatar:UT,agentAvatar:HT,bubble:$T,bubbleContent:GT,bubbleLeft:VT,leftText:WT,bubbleRight:qT,rightText:XT},QT="_botMessageActions_4blu2_1",KT="_alwaysVisible_4blu2_20",YT="_reported_4blu2_27",ZT="_action_4blu2_31",rn={botMessageActions:QT,alwaysVisible:KT,reported:YT,action:ZT},JT=({message:e,alwaysVisible:t,reaction:n,onReaction:r})=>{const i=ft(),[o,s]=O.useState(!1),a=O.useMemo(()=>{const f=e;return f.text||f.markdown||void 0},[e]),l=f=>()=>r(f),c=O.useCallback(()=>{a&&(s(!0),navigator.clipboard.writeText(a),setTimeout(()=>{s(!1)},2e3))},[a]);return v.jsxs("div",{className:k(rn.botMessageActions,t&&rn.alwaysVisible,n&&rn.reported),children:[v.jsx("button",{className:k(rn.action,n==="GOOD"&&rn.reported,"tooltip--right"),tabIndex:0,"aria-label":i(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":i(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:l(n==="GOOD"?null:"GOOD"),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="GOOD"?v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),v.jsx("button",{className:k(rn.action,n==="BAD"&&rn.reported,"tooltip--right"),tabIndex:0,"aria-label":i(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":i(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:l(n==="BAD"?null:"BAD"),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="BAD"?v.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):v.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),(a==null?void 0:a.length)&&v.jsx("button",{className:k(rn.action,"tooltip--right"),tabIndex:0,"aria-label":i("bot-bubble.copy"),"data-title":i("bot-bubble.copy"),onClick:c,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:o?v.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):v.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]})},r0=O.forwardRef(({message:e,isAnimated:t,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,children:o,onReaction:s},a)=>{const l=ft(),c=e.sender.type===j.UserType.BOT;return v.jsxs("li",{ref:a,className:k(B.message,B.messageBot,n&&B.lastMessage,r&&B.messageBotFirst,i&&B.messageBotLast,"chat__bubbleContainer",t&&B.messageBotAnimated,t&&"chat__bubbleContainer--animated",c?"chat__botBubbleContainer":"chat__agentBubbleContainer",r&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:k(B.avatar,c?B.botAvatar:B.agentAvatar,"chat__avatar",c?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:c?"Bot":"Agent",referrerPolicy:"no-referrer"}),v.jsx("div",{className:k(B.bubble,B.bubbleLeft,"chat__bubble",c?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":l(c?"bot-bubble.label":"agent-bubble.label"),children:v.jsx("div",{className:k(B.leftText),children:o})}),s&&v.jsx(JT,{message:e,alwaysVisible:n&&i,reaction:e.reaction,onReaction:s})]})}),e2="_title_1mhh2_1",t2="_subtitle_1mhh2_6",n2="_buttons_1mhh2_11",r2="_button_1mhh2_11",i2="_imageContainer_1mhh2_33",o2="_image_1mhh2_33",s2="_video_container_1mhh2_44",a2="_video_1mhh2_44",l2="_only_1mhh2_54",je={title:e2,subtitle:t2,buttons:n2,button:r2,imageContainer:i2,image:o2,video_container:s2,video:a2,only:l2},u2=({buttons:e,onButtonClick:t})=>v.jsx("div",{className:k(je.buttons,"chat__bubbleButtons"),children:e.map((n,r)=>v.jsx("button",{className:k(je.button,Ee.button,"chat__bubbleButton"),onClick:()=>t(n),children:n.title},r))});var i0={},sf={},af={};Object.defineProperty(af,"__esModule",{value:!0});var c2=O,f2=d2(c2);function d2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}af.default=function(e,t,n){return f2.createElement("a",{href:e,key:n},t)};var lf={};Object.defineProperty(lf,"__esModule",{value:!0});lf.default=function(e){return e};var uf={},Ua,Eh;function h2(){return Eh||(Eh=1,Ua=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ua}var Ha,Sh;function p2(){return Sh||(Sh=1,Ha=/[\0-\x1F\x7F-\x9F]/),Ha}var $a,bh;function m2(){return bh||(bh=1,$a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),$a}var Ga,wh;function g2(){return wh||(wh=1,Ga=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Ga}var Va,xh;function y2(){return xh||(xh=1,Va=function(e){var t={};t.src_Any=h2().source,t.src_Cc=p2().source,t.src_Z=m2().source,t.src_P=g2().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Va}function hu(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Ks(e){return Object.prototype.toString.call(e)}function v2(e){return Ks(e)==="[object String]"}function _2(e){return Ks(e)==="[object Object]"}function E2(e){return Ks(e)==="[object RegExp]"}function Th(e){return Ks(e)==="[object Function]"}function S2(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function b2(e){return Object.keys(e||{}).reduce(function(t,n){return t||o0.hasOwnProperty(n)},!1)}var w2={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},x2="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",T2="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function C2(e){e.__index__=-1,e.__text_cache__=""}function k2(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Ch(){return function(e,t){t.normalize(e)}}function vs(e){var t=e.re=y2()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(x2),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];e.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){var l=e.__schemas__[a];if(l!==null){var c={validate:null,link:null};if(e.__compiled__[a]=c,_2(l)){E2(l.validate)?c.validate=k2(l.validate):Th(l.validate)?c.validate=l.validate:o(a,l),Th(l.normalize)?c.normalize=l.normalize:l.normalize?o(a,l):c.normalize=Ch();return}if(v2(l)){i.push(a);return}o(a,l)}}),i.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:Ch()};var s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(S2).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),C2(e)}function O2(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function kh(e,t){var n=new O2(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function lt(e,t){if(!(this instanceof lt))return new lt(e,t);t||b2(e)&&(t=e,e={}),this.__opts__=hu({},o0,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=hu({},w2,e),this.__compiled__={},this.__tlds__=T2,this.__tlds_replaced__=!1,this.re={},vs(this)}lt.prototype.add=function(t,n){return this.__schemas__[t]=n,vs(this),this};lt.prototype.set=function(t){return this.__opts__=hu(this.__opts__,t),this};lt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,r,i,o,s,a,l,c,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};lt.prototype.pretest=function(t){return this.re.pretest.test(t)};lt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};lt.prototype.match=function(t){var n=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(kh(this,n)),n=this.__last_index__);for(var i=n?t.slice(n):t;this.test(i);)r.push(kh(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};lt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),vs(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,vs(this),this)};lt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};lt.prototype.onCompile=function(){};var N2=lt;const A2=["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"];Object.defineProperty(uf,"__esModule",{value:!0});var R2=N2,P2=s0(R2),I2=A2,D2=s0(I2);function s0(e){return e&&e.__esModule?e:{default:e}}var a0=new P2.default;a0.tlds(D2.default);uf.default=function(e){return a0.match(e)};var cf={};Object.defineProperty(cf,"__esModule",{value:!0});cf.default=function(e){return e};Object.defineProperty(sf,"__esModule",{value:!0});var M2=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),F2=O,Zr=V2(F2),L2=af,B2=Ys(L2),j2=lf,z2=Ys(j2),U2=uf,H2=Ys(U2),$2=cf,G2=Ys($2);function Ys(e){return e&&e.__esModule?e:{default:e}}function V2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function W2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function X2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l0=function(e){X2(t,e);function t(){return W2(this,t),q2(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return M2(t,[{key:"parseString",value:function(r){var i=this;if(r==="")return r;var o=this.props.matchDecorator(r);if(!o)return r;var s=[],a=0;return o.forEach(function(l,c){l.index>a&&s.push(r.substring(a,l.index));var f=i.props.hrefDecorator(l.url),h=i.props.textDecorator(l.text),u=i.props.componentDecorator(f,h,c);s.push(u),a=l.lastIndex}),r.length>a&&s.push(r.substring(a)),s.length===1?s[0]:s}},{key:"parse",value:function(r){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof r=="string"?this.parseString(r):Zr.isValidElement(r)&&r.type!=="a"&&r.type!=="button"?Zr.cloneElement(r,{key:o},this.parse(r.props.children)):Array.isArray(r)?r.map(function(s,a){return i.parse(s,a)}):r}},{key:"render",value:function(){return Zr.createElement(Zr.Fragment,null,this.parse(this.props.children))}}]),t}(Zr.Component);l0.defaultProps={componentDecorator:B2.default,hrefDecorator:z2.default,matchDecorator:H2.default,textDecorator:G2.default};sf.default=l0;Object.defineProperty(i0,"__esModule",{value:!0});var Q2=sf,K2=Y2(Q2);function Y2(e){return e&&e.__esModule?e:{default:e}}var Z2=i0.default=K2.default;const J2="_text_1k7aq_1",eC={text:J2},u0=({text:e,onLinkClick:t})=>{const n=i=>o=>(o.preventDefault(),i&&t(i),!1),r=(i,o,s)=>v.jsx("a",{onClick:n(i),role:"button",children:o},s);return v.jsx("div",{children:e.split(`
90
- `).map((i,o)=>v.jsxs("span",{className:eC.text,children:[v.jsx(Z2,{componentDecorator:r,children:i}),v.jsx("br",{})]},o))})},tC=({subtitle:e,onLinkClick:t})=>e?v.jsx("div",{className:je.subtitle,children:v.jsx(u0,{text:e,onLinkClick:t})}):null,Oh="newtab#",c0=({markdown:e,onLinkClick:t})=>{const n=i=>o=>(o.preventDefault(),i&&t(i),!1),r=({title:i,href:o,children:s})=>o.indexOf(Oh)===0?v.jsx("a",{href:o.slice(Oh.length),title:i,target:"_blank",rel:"noopener noreferrer",children:s}):v.jsx("a",{onClick:n(o),title:i,children:s});return v.jsx(_n,{options:{overrides:{a:r}},children:e})},nC=({text:e,onLinkClick:t})=>e?v.jsx("div",{children:v.jsx(c0,{markdown:e,onLinkClick:t})}):null,rC=({title:e})=>e?v.jsx("h1",{className:je.title,children:e}):null,iC=({title:e,text:t,subtitle:n,buttons:r,onButtonClick:i,onLinkClick:o})=>(e==null?void 0:e.length)||(t==null?void 0:t.length)||(n==null?void 0:n.length)||(r==null?void 0:r.length)?v.jsxs("div",{className:k(B.bubbleContent),children:[v.jsx(rC,{title:e}),v.jsx(nC,{text:t,onLinkClick:o}),v.jsx(tC,{subtitle:n,onLinkClick:o}),v.jsx(u2,{buttons:r,onButtonClick:i})]}):null,oC=({alt:e,imageUrl:t,itemUrl:n,hasBody:r})=>t?n?n.indexOf("youtube.com")>-1?v.jsx("div",{className:je.video_container,children:v.jsx("iframe",{className:k(je.video,{[je.only]:!r}),title:"Youtube",width:"100%",src:n+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):v.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:v.jsx("div",{className:je.imageContainer,children:v.jsx("img",{className:k(je.image,{[je.only]:!r}),src:t,alt:e})})}):v.jsx("div",{className:je.imageContainer,children:v.jsx("img",{className:k(je.image,{[je.only]:!r}),src:t,alt:e})}):null,sC=({title:e,text:t,subtitle:n,imageUrl:r,itemUrl:i,buttons:o,onButtonClick:s,onLinkClick:a})=>{const l=!!(e!=null&&e.length)||!!(t!=null&&t.length)||!!(n!=null&&n.length)||!!(o!=null&&o.length);return v.jsxs("div",{className:k(je.detailMessage),children:[v.jsx(oC,{hasBody:l,imageUrl:r,itemUrl:i,alt:e||n}),l&&v.jsx(iC,{title:e,text:t,subtitle:n,buttons:o,onLinkClick:a,onButtonClick:s})]})},aC=O.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:t,children:n},r)=>{const i=ft();return v.jsx("li",{ref:r,className:k(B.message,B.messageGuest,e&&B.messageGuestFirst,t&&B.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",t&&"chat__bubbleContainer--last"),children:v.jsx("div",{className:k(B.bubble,B.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":i("guest-bubble.label"),children:v.jsx("div",{className:k(B.rightText),children:n})})})}),lC=({markdown:e,className:t,onLinkClick:n})=>v.jsx("div",{className:k(B.bubbleContent,t),children:v.jsx(c0,{markdown:e,onLinkClick:n})}),uC=({text:e,onLinkClick:t})=>v.jsx("div",{className:B.bubbleContent,children:v.jsx(u0,{text:e,onLinkClick:t})}),cC=O.forwardRef(({message:e,isLastMessage:t,isFirstMessageBySender:n,isLastMessageBySender:r,onReaction:i,onButtonClick:o,onLinkClick:s},a)=>{const l=fC(e,o,s);switch(e.sender.type){case j.UserType.GUEST:return v.jsx(aC,{ref:a,isFirstMessageBySender:n,isLastMessageBySender:r,children:l});default:const c=f=>i(e._id,f);return v.jsx(r0,{ref:a,message:e,isAnimated:!1,isLastMessage:t,isFirstMessageBySender:n,isLastMessageBySender:r,onReaction:c,children:l})}}),fC=(e,t,n)=>{switch(e.type){case j.MessageTypeEnum.TEXT:const r=e;return v.jsx(uC,{text:r.text,onLinkClick:n});case j.MessageTypeEnum.DETAIL:const i=e;return v.jsx(sC,{title:i.title,text:i.text,subtitle:i.subtitle,imageUrl:i.imageUrl,itemUrl:i.itemUrl,buttons:i.buttons,onButtonClick:t,onLinkClick:n});case j.MessageTypeEnum.MARKDOWN:const o=e;return v.jsx(lC,{markdown:o.markdown,className:o.className,onLinkClick:n})}},dC=(e,t)=>e.message._id===t.message._id&&e.message.reaction===t.message.reaction&&e.isLastMessage===t.isLastMessage&&e.isFirstMessageBySender===t.isFirstMessageBySender&&e.isLastMessageBySender===t.isLastMessageBySender,hC=Et.memo(cC,dC),pC="_ticontainer_wftg7_1",mC="_tiblock_wftg7_5",gC="_tidot_wftg7_12",yC="_mercuryTypingAnimation_wftg7_1",Jr={ticontainer:pC,tiblock:mC,tidot:gC,mercuryTypingAnimation:yC},vC=({isTyping:e=!1})=>v.jsx("div",{className:Jr.ticontainer,children:v.jsx("div",{className:Jr.tiblock,children:e?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:k(Jr.tidot,"chat__typingIndicator")}),v.jsx("div",{className:k(Jr.tidot,"chat__typingIndicator")}),v.jsx("div",{className:k(Jr.tidot,"chat__typingIndicator")})]}):null})}),_C=Object.assign({_id:"typing-indicator"},new j.TextMessage("",new j.BotUser)),EC=({messages:e,isBotTyping:t,showGeneralConditions:n,onTranscriptItemReaction:r,onButtonClick:i,onLinkClick:o})=>{const s=O.useRef(!0),a=O.useRef(null),l=O.useRef(null),c=O.useRef(null);O.useLayoutEffect(()=>{if(e.length&&a.current){if(l.current){const u=l.current.offsetTop;a.current.scrollTop=u}else if(c.current){const u=c.current.offsetTop;a.current.scrollTop=u}s.current&&(s.current=!1)}},[e,l.current,c.current,s]);let f;const h=e.length;return v.jsxs("div",{ref:a,className:k(lh.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&s.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[n&&v.jsx(AT,{}),v.jsxs("ul",{className:lh.messages,children:[e.map((u,y)=>{const p=SC(u,f),E=bC(u,y,e,t);f=u.sender.type;const S=y+1===h;return v.jsx(hC,{ref:S?c:null,message:u,isLastMessage:S,isFirstMessageBySender:p,isLastMessageBySender:E,onButtonClick:i,onLinkClick:o,onReaction:r},S&&!t?"last":u._id)}),t&&v.jsx(r0,{ref:l,message:_C,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:f!==j.UserType.BOT,isLastMessageBySender:!0,children:v.jsx(vC,{isTyping:!0})},"last")]})]})},SC=(e,t)=>!t||t!==e.sender.type,bC=(e,t,n,r)=>{var a;const i=e.sender.type,o=n.length;return t+1===o?!(i===j.UserType.BOT&&r):i!==((a=n.at(t+1))==null?void 0:a.sender.type)},wC="_bottomSheet_8itd6_1",xC="_bottomSheetOpen_8itd6_15",TC="_bottomSheetClose_8itd6_20",Wt={bottomSheet:wC,bottomSheetOpen:xC,"slide-in":"_slide-in_8itd6_1",bottomSheetClose:TC,"slide-out":"_slide-out_8itd6_1"},CC="_container_ooyn8_1",Nh={container:CC},kC=({contentUrl:e})=>{const t=$n(o=>o.connection.sessionId),[n,r]=O.useState(!1);O.useEffect(()=>{r(o=>o||!!e)},[e]);const i=O.useMemo(()=>{if(e&&t){const o=new URL(e,document.baseURI);return o.searchParams.set("sessionId",t),o.toString()}else return},[e,t]);return v.jsx("div",{className:k(Nh.container,Wt.bottomSheet,{[Wt.bottomSheetOpen]:!!e,[Wt.bottomSheetClose]:n&&!e}),children:i&&v.jsx("iframe",{title:"Drawer",src:i,className:Nh.iframe})})},OC="_container_t5oqt_1",NC={container:OC},AC=({title:e,href:t,children:n})=>v.jsx("a",{href:t,title:e,target:"_blank",rel:"noopener noreferrer",children:n}),RC=()=>{const t=ft()("powered-by");return t&&t.length?v.jsx("div",{className:k(NC.container,"chat__poweredBy"),children:v.jsx(_n,{options:{overrides:{a:AC}},children:t})}):null},PC="_container_rkqaf_1",IC="_formContainer_rkqaf_14",DC="_emailInput_rkqaf_19",MC="_description_rkqaf_48",FC="_actions_rkqaf_53",LC="_validationError_rkqaf_63",BC="_submitted_rkqaf_70",jt={container:PC,formContainer:IC,emailInput:DC,description:MC,actions:FC,validationError:LC,submitted:BC},jC=({visible:e,methods:t,onEmailExport:n,onPdfExport:r,onClose:i})=>{const o=ft(),[s,a]=O.useState(void 0),[l,c]=O.useState(!1),[f,h]=O.useState(!1),[u,y]=O.useState(void 0),p=O.useRef(null);O.useEffect(()=>{var d;e?((d=p.current)==null||d.focus(),c(!1),h(!1),a(e)):s===!0&&a(!1)},[e,s]);const E=d=>{d.preventDefault(),u&&u.length>0&&(n(u),c(!0),setTimeout(i,3*1e3))},S=d=>{const m=d.target.value.trim(),_=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(m);y(_?m:"")},g=()=>{h(!0),r(),setTimeout(i,3*1e3)};return v.jsxs("div",{className:k(jt.container,Wt.bottomSheet,{[Wt.bottomSheetOpen]:s===!0,[Wt.bottomSheetClose]:s===!1}),children:[t.pdf&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:o("export-transcript.pdf.title")}),v.jsx(_n,{className:jt.description,children:o("export-transcript.pdf.description")||""}),v.jsxs("div",{className:jt.actions,children:[v.jsx("button",{type:"button",className:k(Ee.button,Ee.buttonDefault),onClick:i,children:o("export-transcript.pdf.cancel")}),v.jsx("button",{className:k(Ee.button,Ee.buttonPrimary),onClick:g,disabled:f,children:o("export-transcript.pdf.download")})]})]}),t.email&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:o("export-transcript.email.title")}),v.jsx(_n,{className:jt.description,children:o("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:E,className:jt.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:l,ref:p,type:"email",placeholder:o("export-transcript.email.placeholder"),className:jt.emailInput,onChange:S}),(u==null?void 0:u.length)===0?v.jsx("div",{className:jt.validationError,children:o("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:jt.actions,children:[v.jsx("button",{type:"button",className:k(Ee.button,Ee.buttonDefault),onClick:i,children:o("export-transcript.email.cancel")}),v.jsx("button",{type:"submit",disabled:l||u===void 0||u.length===0,className:k(Ee.button,Ee.buttonPrimary),children:o("export-transcript.email.send")})]})]}),l&&v.jsx("div",{className:jt.submitted,children:o("export-transcript.email.success")})]})]})},zC="_inputContainer_1px77_1",UC={inputContainer:zC},HC="_blockUserInput_rv0dg_1",$C={blockUserInput:HC,"append-animate":"_append-animate_rv0dg_1"},GC=({visible:e})=>{const t=ft();return e?v.jsx("div",{className:k($C.blockUserInput,"chat__blockUserInput"),children:t("block-user-input.title")}):null},VC="_callToActionContainer_czz0p_1",WC="_callToActionTitle_czz0p_24",qC="_rateOverlay_czz0p_31",XC="_body_czz0p_50",QC="_footer_czz0p_58",KC="_actions_czz0p_73",YC="_bubbles_czz0p_85",ZC="_rateFeedbackBotBubble_czz0p_112",JC="_rateFeedbackGuestBubble_czz0p_118",ek="_avatar_czz0p_124",tk="_fadeInLeft_czz0p_1",nk="_bubble_czz0p_85",rk="_appear_czz0p_1",ik="_botBubble_czz0p_150",ok="_guestBubble_czz0p_160",sk="_rateText_czz0p_176",ak="_stars_czz0p_181",lk="_starsSmall_czz0p_194",uk="_starsLarge_czz0p_198",ck="_star_czz0p_181",fk="_starReadonly_czz0p_215",dk="_starIcon_czz0p_223",hk="_starsDescriptionContainer_czz0p_241",pk="_starsDescription_czz0p_241",Pe={callToActionContainer:VC,"append-animate":"_append-animate_czz0p_1",callToActionTitle:WC,rateOverlay:qC,body:XC,footer:QC,actions:KC,bubbles:YC,rateFeedbackBotBubble:ZC,rateFeedbackGuestBubble:JC,avatar:ek,fadeInLeft:tk,bubble:nk,appear:rk,botBubble:ik,guestBubble:ok,rateText:sk,stars:ak,starsSmall:lk,starsLarge:uk,star:ck,starReadonly:fk,starIcon:dk,starsDescriptionContainer:hk,starsDescription:pk},mk=({value:e,index:t,count:n,readonly:r,onHover:i,onClick:o})=>{const s=a=>{o&&a.key==="Enter"&&o()};return v.jsx("li",{className:k(Pe.star,{[Pe.starReadonly]:r},"chat__conversationRating__star"),children:v.jsx("div",{role:"radio","aria-checked":e>t?"true":"false","aria-posinset":t+1,"aria-setsize":n,tabIndex:0,onMouseOver:i,onKeyDown:s,onClick:o,children:v.jsx("span",{role:"img","aria-label":"Star",className:k(Pe.starIcon),children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},Ah=5,f0=({value:e,size:t,readonly:n=!1,onChange:r})=>{const[i,o]=O.useState(void 0),s=()=>{o(void 0)},a=c=>()=>{if(!n){const f=c+1;o(f)}},l=c=>()=>{r&&!n&&(r(c===0&&e===1?0:c+1),o(void 0))};return v.jsx("ul",{tabIndex:0,role:"radiogroup",className:k(Pe.stars,{[Pe.starsSmall]:t==="small",[Pe.starsLarge]:t==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:t==="small",chat__conversationRating__stars__large:t==="large"}),onMouseOut:s,children:Array(Ah).fill(0).map((c,f)=>v.jsx(mk,{value:i===void 0?e:i,index:f,count:Ah,readonly:n,onHover:a(f),onClick:l(f)},f))})},gk=({visible:e,onRate:t})=>{const n=ft();return e?v.jsxs("div",{className:k(Pe.callToActionContainer,"chat__conversationRating__callToAction"),children:[v.jsx("div",{className:k(Pe.callToActionTitle,"chat__conversationRating__callToAction__title"),children:n("conversation-rating.call-to-action.title")}),v.jsx(f0,{value:0,size:"small",onChange:t})]}):null},Rh=({isFirstMessageBySender:e,isLastMessageBySender:t,children:n})=>v.jsxs("div",{className:k(B.message,B.messageBot,e&&B.messageBotFirst,t&&B.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",t&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:k(B.avatar,B.botAvatar),src:"bot.svg",alt:"Bot"}),v.jsx("div",{className:k(B.bubble,B.bubbleLeft,"chat__bubble","chat__botBubble"),children:v.jsx("div",{className:k(B.leftText,B.bubbleContent),children:n})})]}),yk=({children:e})=>v.jsx("div",{className:k(B.message,B.messageGuest,B.messageGuestFirst,B.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:v.jsx("div",{className:k(B.bubble,B.bubbleRight,"chat__bubble","chat__guestBubble"),children:v.jsx("div",{className:k(B.rightText,B.bubbleContent),children:e})})}),vk=({visible:e,rating:t,onRate:n,onClose:r})=>{const i=ft(),[o,s]=O.useState(t),[a,l]=O.useState(void 0),[c,f]=O.useState(void 0),[h,u]=O.useState({submitted:!1,feedback:""}),[y,p]=O.useState(!1),E=O.useRef(null);O.useEffect(()=>{e?(u({submitted:!1,feedback:""}),f(e)):c===!0&&f(!1)},[e,c]),O.useEffect(()=>{s(t)},[t]),O.useEffect(()=>{const g=i(`conversation-rating.overlay.bot-message.rate-feedback.value-${o}`);l(g!=null&&g.length?g:void 0)},[o,i]),O.useEffect(()=>{h.submitted?setTimeout(()=>p(!0),h.feedback.length?500:0):p(!1)},[h]);const S=g=>{var m,_;g.preventDefault();const d=((_=(m=E.current)==null?void 0:m.value)==null?void 0:_.trim())||"";n(o,d),u({submitted:!0,feedback:d})};return v.jsx("div",{className:k(Pe.rateOverlay,Wt.bottomSheet,"chat__conversationRating__overlay",{[Wt.bottomSheetOpen]:c===!0,[Wt.bottomSheetClose]:c===!1}),children:v.jsxs("form",{onSubmit:S,children:[v.jsxs("div",{className:k(Pe.body,"chat__conversationRating__overlay__body"),children:[v.jsxs("div",{children:[v.jsx("h2",{children:i("conversation-rating.overlay.title")}),v.jsxs("div",{className:k(Pe.starsDescriptionContainer),children:[v.jsx(f0,{value:o,size:"large",readonly:h.submitted,onChange:s}),v.jsxs("div",{className:k(Pe.starsDescription),children:[v.jsx("div",{children:i("conversation-rating.overlay.star.very-bad")}),v.jsx("div",{children:i("conversation-rating.overlay.star.very-good")})]})]})]}),v.jsx("div",{className:k(Pe.bubbles),children:e&&a&&v.jsxs(v.Fragment,{children:[v.jsx(Rh,{isFirstMessageBySender:!0,isLastMessageBySender:!y||!!h.feedback.length,children:v.jsx("div",{children:a})}),!!h.feedback.length&&v.jsx(yk,{children:h.feedback}),y&&v.jsx(Rh,{isFirstMessageBySender:!!h.feedback.length,isLastMessageBySender:!0,children:v.jsx("div",{children:i("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),v.jsxs("div",{className:k(Pe.footer,"chat__conversationRating__overlay__footer"),children:[!h.submitted&&v.jsx("input",{ref:E,placeholder:i("conversation-rating.overlay.guest-feedback.input-placeholder")}),v.jsx("div",{className:k(Pe.actions,"chat__conversationRating__overlay__footer__actions"),children:h.submitted?v.jsx("button",{type:"button",className:k(Ee.button,Ee.buttonPrimary),onClick:r,children:i("conversation-rating.overlay.action.close")}):v.jsx("button",{type:"submit",className:k(Ee.button,Ee.buttonPrimary),children:i("conversation-rating.overlay.action.submit")})})]})]})})},_k=({conversationRating:{enabled:e,rating:t},numberOfMessagesFromGuest:n,showRatingOverlay:r,setShowRatingOverlay:i,onRate:o})=>{const[s,a]=O.useState(0),l=h=>{a(h),i(!0)},c=()=>i(!1),f=!t&&n>=1;return e?v.jsxs(v.Fragment,{children:[v.jsx(gk,{visible:f,onRate:l}),v.jsx(vk,{visible:r,rating:s,onRate:o,onClose:c})]}):null},Ek="_inputWrapper_1o8hf_5",Sk="_messageInputWrapper_1o8hf_14",bk="_messageInput_1o8hf_14",wk="_buttons_1o8hf_36",xk="_button_1o8hf_36",or={inputWrapper:Ek,messageInputWrapper:Sk,messageInput:bk,buttons:wk,button:xk},Tk="_audioRecorder_xps9k_5",Ck="_recordButton_xps9k_10",kk="_submitButton_xps9k_37",Ok="_cancelButton_xps9k_64",Nk="_recorderIcon_xps9k_91",Ak="_pulse_xps9k_1",Rk="_spinning_xps9k_113",Pk="_spin_xps9k_113",Pn={audioRecorder:Tk,recordButton:Ck,submitButton:kk,cancelButton:Ok,recorderIcon:Nk,pulse:Ak,spinning:Rk,spin:Pk},Ph=2048,_s=16e3;class Ik extends Et.Component{constructor(n){super(n);W(this,"audioInput",null);W(this,"volume",null);W(this,"leftchannel",[]);W(this,"recorder",null);W(this,"recordingLength",0);W(this,"sampleRate",null);W(this,"mediaStream",null);this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(n){this.mediaStream=n,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(n)}initRecording(n){var r=window.AudioContext||window.webkitAudioContext,i=new r;this.sampleRate=i.sampleRate,this.volume=i.createGain(),this.audioInput=i.createMediaStreamSource(n),this.audioInput.connect(this.volume),this.recorder=i.createScriptProcessor(Ph,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(i.destination)}processRecordingInput(n){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const r=n.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(r)),this.recordingLength+=Ph}}handleClickSubmitAudio(){const n=Mk(this.leftchannel,this.recordingLength),r=Fk(n,this.sampleRate||0),i=Dk(r);this.props.onAudioRecorded(i),this.handleClickStopAudio()}handleClickStopAudio(){var n,r,i,o;this.setState({recordingState:"none"}),(n=this.audioInput)==null||n.disconnect(),(r=this.volume)==null||r.disconnect(),(i=this.recorder)==null||i.disconnect(),this.mediaStream&&((o=this.mediaStream)==null||o.getAudioTracks().forEach(s=>{s.stop()}))}render(){return v.jsxs("div",{className:Pn.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:k(Pn.recordButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&v.jsxs("svg",{className:Pn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&v.jsxs("div",{className:Pn.audioRecorder,children:[v.jsx("button",{className:k(Pn.cancelButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),v.jsx("div",{className:Pn.recorderIcon}),v.jsx("button",{className:k(Pn.submitButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const Dk=e=>{const t=new ArrayBuffer(44+e.length*2),n=new DataView(t);yo(n,0,"RIFF"),n.setUint32(4,44+e.length*2,!0),yo(n,8,"WAVE"),yo(n,12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,_s,!0),n.setUint32(28,_s*4,!0),n.setUint16(32,4,!0),n.setUint16(34,16,!0),yo(n,36,"data"),n.setUint32(40,e.length*2,!0);const r=e.length;let i=44;const o=1;for(var s=0;s<r;s++)n.setInt16(i,e[s]*(32767*o),!0),i+=2;return new Blob([n],{type:"audio/wav"})},yo=(e,t,n)=>{for(var r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},Mk=(e,t)=>{const n=new Float32Array(t);let r=0;const i=e.length;for(var o=0;o<i;o++){const s=e[o];n.set(s,r),r+=s.length}return n},Fk=(e,t)=>{if(_s===t)return e;const n=t/_s,r=Math.round(e.length/n),i=new Float32Array(r);let o=0,s=0;for(;o<i.length;){let l=Math.round((o+1)*n),c=0,f=0;for(var a=s;a<l&&a<e.length;a++)c+=e[a],f++;i[o]=c/f,o++,s=l}return i},Lk=({speechSupport:e,transcriptExportEnabled:t,disabled:n,onTextInput:r,onAudioRecorded:i,onOpenTranscriptExportModal:o})=>{const s=ft(),[a,l]=O.useState(!1),c=O.useRef(null),f=()=>{const p=c.current;p&&p.value.trim().length>=1&&r(p.value.trim())&&(p.value="",p.style.height="",l(!1),p.focus())},h=p=>{p.preventDefault(),f()},u=p=>{const E=p.target.value.trim();l(E.length>0),p.target.style.height="";const{scrollHeight:S}=p.target;p.target.style.height=`${S>150?150:S}px`},y=p=>{p.code==="Enter"&&!p.shiftKey&&(p.repeat||f(),p.preventDefault())};return v.jsxs("form",{className:k(or.inputWrapper,"chat__textInput"),onSubmit:h,children:[v.jsx("div",{className:or.messageInputWrapper,children:v.jsx("textarea",{id:"user_input",ref:c,className:or.messageInput,tabIndex:0,placeholder:s("message-input-placeholder"),onChange:u,onKeyDown:y,"aria-label":s("message-input-label")})}),v.jsxs("div",{className:k(or.buttons,"chat__buttons"),children:[!a&&t&&v.jsx("button",{type:"button",className:k(or.button,"chat__button"),"aria-label":s("message-input.actions.export-transcript.label"),"data-title":s("message-input.actions.export-transcript.label"),tabIndex:0,onClick:o,children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),a||!e||navigator.mediaDevices===void 0?v.jsx("button",{className:k(or.button,"chat__button"),type:"submit","aria-label":s("message-input.actions.submit.label"),"data-title":s("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):e&&navigator.mediaDevices!==void 0&&v.jsx(Ik,{translate:s,onAudioRecorded:i})]})]})},Bk="_quickReplies_11l22_1",jk="_quickReply_11l22_9",Ih={quickReplies:Bk,quickReply:jk},zk=({quickReplies:e,onQuickReplyClick:t})=>e.length?v.jsx("div",{className:k(Ih.quickReplies,"chat__quickReplies"),children:e.map(n=>v.jsx("button",{tabIndex:0,className:k(Ih.quickReply,Ee.button,"chat__button","chat__quickReply"),onClick:()=>t(n),children:n.label},n.label))}):null,Dh=5e3,Uk=1e3,Hk=({isBotTyping:e,quickReplies:t,speechSupport:n,transcriptExportEnabled:r,conversationRating:i,numberOfMessagesFromGuest:o,showRatingOverlay:s,setShowRatingOverlay:a,onTextInput:l,onRate:c,onQuickReplyClick:f,onAudioRecorded:h,onOpenTranscriptExportModal:u})=>{const[y,p]=O.useState(!1),E=O.useRef(),S=O.useRef(0);O.useEffect(()=>{if(y&&!e){const d=E.current?Date.now()-E.current:0;d>Dh?p(!1):setTimeout(()=>{p(!1)},Dh-d)}},[y,e]),O.useEffect(()=>{y&&(E.current=Date.now())},[y]);const g=d=>{const m=Date.now()-S.current<Uk;return e||m?(p(!0),!1):(l(d),S.current=Date.now(),!0)};return v.jsxs("div",{className:k(UC.inputContainer),children:[v.jsx(zk,{quickReplies:t,onQuickReplyClick:f}),v.jsx(GC,{visible:y}),!y&&v.jsx(_k,{conversationRating:i,numberOfMessagesFromGuest:o,onRate:c,showRatingOverlay:s,setShowRatingOverlay:a}),v.jsx(Lk,{onTextInput:g,onAudioRecorded:h,speechSupport:n,onOpenTranscriptExportModal:u,transcriptExportEnabled:r,disabled:y})]})},$k=({clientName:e,messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i,speechSupport:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l,onMessageFromUser:c,onRate:f,onQuickReplyClick:h,onButtonClick:u,onLinkClick:y,onAudioRecorded:p,onTranscriptExport:E,onPdfExport:S,onTranscriptItemReaction:g})=>{const d=wc(),m=$n(I=>I.connection.connectionState),[_,b]=O.useState(!1),[w,x]=O.useState(!1),T=s.email||s.pdf,M=t.filter(I=>I.sender.type===Dy.GUEST).length;return O.useEffect(()=>{if(m===zn.CONNECTED){const I=Cc.parse(window.location.search);d(Iy(e,I))}},[m,d]),v.jsxs("div",{children:[v.jsxs("div",{className:`${cx.chatcontent} ${_||w?Ee.accessabilityHidden:""}`,children:[v.jsx(EC,{messages:t,isBotTyping:r,showGeneralConditions:l,onButtonClick:u,onLinkClick:y,onTranscriptItemReaction:g}),v.jsx(Hk,{isBotTyping:r,quickReplies:r?[]:n,numberOfMessagesFromGuest:M,speechSupport:o,transcriptExportEnabled:T,conversationRating:_?{enabled:!1}:a,showRatingOverlay:w,setShowRatingOverlay:x,onRate:f,onQuickReplyClick:h,onTextInput:c,onAudioRecorded:p,onOpenTranscriptExportModal:()=>b(!_)}),v.jsx(RC,{})]}),T&&v.jsx(jC,{methods:s,visible:_,onEmailExport:E,onPdfExport:S,onClose:()=>b(!1)}),v.jsx(kC,{contentUrl:i})]})},Gk=e=>{const{messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i,speechSupport:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l}=e.chat;return{messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i,speechSupport:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l}},Vk=e=>({onRestartChat:(t,n)=>e(nf(t,n)),onMessageFromUser:t=>e(dy(t)),onRate:(t,n)=>e(tw(t,n)),onAudioRecorded:t=>e(qb(t)),onActionFromUser:t=>e(t),onQuickReplyClick:t=>e(fy(t)),onNluEvent:t=>e(my(t)),onButtonClick:t=>e(rw(t)),onLinkClick:t=>e(iw(t)),onTranscriptExport:t=>e(Yb(t)),onPdfExport:()=>e(Jb()),onTranscriptItemReaction:(t,n)=>e(j.transcriptItemGuestReaction(t,n||null))}),Wk=fE(Gk,Vk)($k),qk="_chatwindow_phukm_1",Xk="_chatcontent_phukm_13",Qk={chatwindow:qk,chatcontent:Xk},Kk="_container_1rets_2",Yk="_body_1rets_8",Zk="_intro_1rets_13",Jk="_footer_1rets_26",eO="_startChatButton_1rets_30",tO="_formFields_1rets_34",nO="_formField_1rets_34",rO="_radio_1rets_46",iO="_checkbox_1rets_53",oO="_input_1rets_61",sO="_inputLabel_1rets_91",aO="_selectWrapper_1rets_95",lO="_select_1rets_95",uO="_selectLabel_1rets_137",Ie={container:Kk,body:Yk,intro:Zk,footer:Jk,startChatButton:eO,formFields:tO,formField:nO,radio:rO,checkbox:iO,input:oO,inputLabel:sO,selectWrapper:aO,select:lO,selectLabel:uO},cO=({name:e,label:t,defaultValue:n,required:r,onChange:i})=>{const o=s=>{i(s.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:k(Ie.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[v.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:n==="true",required:r,onChange:o}),v.jsx("div",{children:t})]})},fO=({type:e,name:t,label:n,defaultValue:r,placeholder:i,required:o,multiple:s,min:a,max:l,pattern:c,onChange:f})=>{const h=u=>{f(u.target.value)};return v.jsxs("label",{className:k(Ie.input,"chat__startScreen__input"),htmlFor:t,children:[v.jsx("div",{className:k(Ie.inputLabel),children:n}),v.jsx("input",{type:e,id:t,name:t,defaultValue:r,placeholder:i,required:o,multiple:s,min:a,max:l,pattern:c,onChange:h})]})},dO=({name:e,value:t,label:n,defaultChecked:r,required:i,onChange:o})=>{const s=`${e}-${t}`,a=l=>{o(l.target.value)};return v.jsxs("label",{className:k(Ie.radio,"chat__startScreen__radio"),htmlFor:s,children:[v.jsx("input",{id:s,type:"radio",name:e,value:t,defaultChecked:r,required:i,onChange:a}),v.jsx("span",{className:k(Ie.label),children:n})]})},hO=({name:e,label:t,defaultValue:n,required:r,multiple:i,options:o,onChange:s})=>{const a=l=>{s(l.target.value)};return v.jsxs("label",{className:k(Ie.select,"chat__startScreen__select"),htmlFor:e,children:[v.jsx("div",{className:k(Ie.selectLabel),children:t}),v.jsx("div",{className:k(Ie.selectWrapper),children:v.jsx("select",{id:e,name:e,defaultValue:n,required:r,multiple:i,onChange:a,children:Object.entries(o||{}).map(([l,c])=>v.jsx("option",{value:l,selected:c===n,children:c}))})})]})},pO="start-screen.intro",mO="start-screen.start-chat",pt="start-screen.form",Mh=`${pt}.fields`,gO=()=>{const e=ft(),t=wc(),[n,r]=O.useState({}),i=()=>{const f=Object.entries(n).reduce((h,[u,y])=>({...h,[u]:y.value}),{});t(Ww(f))},o=e(pO),s=e(mO),a=O.useMemo(()=>{var f;return((f=e(Mh))==null?void 0:f.split(";").map(h=>h.trim()))??[]},[e(Mh)]);O.useEffect(()=>{r(a.reduce((f,h)=>({...f,[h]:vO(h,e)}),{}))},[a]);const l=f=>{f.preventDefault(),i()},c=f=>h=>{r(u=>({...u,[f]:{...u[f],value:h}}))};return v.jsxs("form",{onSubmit:l,className:k(Ie.container,"chat__startScreen"),children:[v.jsxs("div",{className:k(Ie.body,"chat__startScreen__body"),children:[o&&v.jsx("div",{className:k(Ie.intro,"chat__startScreen__intro"),children:v.jsx(_n,{options:{overrides:{a:yO}},children:o})}),v.jsx("div",{className:k(Ie.formFields,"chat__startScreen__fields"),children:Object.values(n).map(({type:f,name:h,label:u,placeholder:y,defaultValue:p,options:E,required:S,multiple:g,min:d,max:m,pattern:_})=>v.jsx("div",{className:k(Ie.formField,"chat__startScreen__field"),children:(()=>{switch(f){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:u}),Object.entries(E||{}).map(([b,w])=>v.jsx(dO,{name:h,value:b,label:w,defaultChecked:b===p,required:S,onChange:c(h)}))]});case"checkbox":return v.jsx(cO,{name:h,label:u,defaultValue:p,required:S,onChange:c(h)});case"select":return v.jsx(hO,{name:h,label:u,defaultValue:p,required:S,multiple:g,options:E,onChange:c(h)});default:return v.jsx(fO,{type:f,name:h,label:u,placeholder:y,defaultValue:p,required:S,multiple:g,min:d,max:m,pattern:_,onChange:c(h)})}})()},h))})]}),v.jsx("div",{className:k(Ie.footer,"chat__startScreen__footer"),children:v.jsx("button",{type:"submit",className:k(Ee.button,Ee.buttonPrimary,Ie.startChatButton),children:s})})]})},yO=({title:e,href:t,children:n})=>v.jsx("a",{href:t,title:e,target:"_blank",rel:"noopener noreferrer",children:n}),vO=(e,t)=>{const n=t(`${pt}.${e}.type`)||"text",r=t(`${pt}.${e}.required`)==="true",i=t(`${pt}.${e}.multiple`)==="true",o=t(`${pt}.${e}.placeholder`),s=t(`${pt}.${e}.label`)||"",a=t(`${pt}.${e}.defaultValue`),l=t(`${pt}.${e}.min`),c=t(`${pt}.${e}.max`),f=t(`${pt}.${e}.pattern`),h=EO(t(`${pt}.${e}.options`));return{name:e,label:s,placeholder:o,value:_O(n,a,h)||"",defaultValue:a,options:h,type:n,required:r,multiple:i,min:l,max:c,pattern:f}},_O=(e,t,n)=>t||e==="select"&&Object.keys(n)[0]||"",EO=(e="")=>e.split(";").map(t=>t.trim()).reduce((t,n)=>{const[r,i]=n.split(":").map(o=>o.trim());return{...t,[r]:i}},{}),SO=()=>{const e=Bs();O.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},sr={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},bO=({clientName:e})=>{SO();const t=wc(),n=$n(f=>f.intl.messages),r=ft(),i=$n(f=>f.startScreen.useStartScreen),o=$n(f=>f.startScreen.startScreenStatus),[s,a]=O.useState(void 0);O.useEffect(()=>{const f=Cc.parse(window.location.search);f.cssClassName&&a(f.cssClassName);const h=u=>{switch(u.data.type){case sr.TRIGGER_ACTION:t(u.data.action);break;case sr.TRIGGER_STORY:t(my(u.data.story));break;case sr.ON_CHAT_WINDOW_OPEN:t({type:"webclient.chatwindow.opened"});break;case sr.ON_CHAT_WINDOW_CLOSE:t({type:"webclient.chatwindow.closed"});break;case sr.CHAT_MESSAGE_FROM_GUEST:t(dy(u.data.text));break;case sr.RESTART_CHAT:t(nf(e,f));break}};return t(Yw(e,f)),window.addEventListener("message",u=>h(u),!1),()=>window.removeEventListener("message",h)},[e,t]),O.useEffect(()=>{const f=r("header.restart-chat"),h=r("header.close-chat");t(ow({header:{restartChat:f,closeChat:h}}))},[n,t,r]);const l=i===void 0,c=i===!1||o==="HIDDEN";return v.jsx("div",{className:k(Qk.chatwindow,"chat__chatwindow",s),children:l?null:c?v.jsx(Wk,{clientName:e}):v.jsx(gO,{})})},wO=()=>{const e=Kg(),t=$n(r=>r.intl.locale),n=$n(r=>r.intl.messages);return v.jsx(LS,{locale:t,messages:n,children:v.jsx("div",{className:jS.app,children:v.jsx(bO,{clientName:e})})})};function xO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ff=xO,TO=typeof X=="object"&&X&&X.Object===Object&&X,CO=TO,kO=CO,OO=typeof self=="object"&&self&&self.Object===Object&&self,NO=kO||OO||Function("return this")(),d0=NO,AO=d0,RO=function(){return AO.Date.now()},PO=RO,IO=/\s/;function DO(e){for(var t=e.length;t--&&IO.test(e.charAt(t)););return t}var MO=DO,FO=MO,LO=/^\s+/;function BO(e){return e&&e.slice(0,FO(e)+1).replace(LO,"")}var jO=BO,zO=d0,UO=zO.Symbol,h0=UO,Fh=h0,p0=Object.prototype,HO=p0.hasOwnProperty,$O=p0.toString,ei=Fh?Fh.toStringTag:void 0;function GO(e){var t=HO.call(e,ei),n=e[ei];try{e[ei]=void 0;var r=!0}catch{}var i=$O.call(e);return r&&(t?e[ei]=n:delete e[ei]),i}var VO=GO,WO=Object.prototype,qO=WO.toString;function XO(e){return qO.call(e)}var QO=XO,Lh=h0,KO=VO,YO=QO,ZO="[object Null]",JO="[object Undefined]",Bh=Lh?Lh.toStringTag:void 0;function eN(e){return e==null?e===void 0?JO:ZO:Bh&&Bh in Object(e)?KO(e):YO(e)}var tN=eN;function nN(e){return e!=null&&typeof e=="object"}var rN=nN,iN=tN,oN=rN,sN="[object Symbol]";function aN(e){return typeof e=="symbol"||oN(e)&&iN(e)==sN}var lN=aN,uN=jO,jh=ff,cN=lN,zh=NaN,fN=/^[-+]0x[0-9a-f]+$/i,dN=/^0b[01]+$/i,hN=/^0o[0-7]+$/i,pN=parseInt;function mN(e){if(typeof e=="number")return e;if(cN(e))return zh;if(jh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=jh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uN(e);var n=dN.test(e);return n||hN.test(e)?pN(e.slice(2),n?2:8):fN.test(e)?zh:+e}var gN=mN,yN=ff,Wa=PO,Uh=gN,vN="Expected a function",_N=Math.max,EN=Math.min;function SN(e,t,n){var r,i,o,s,a,l,c=0,f=!1,h=!1,u=!0;if(typeof e!="function")throw new TypeError(vN);t=Uh(t)||0,yN(n)&&(f=!!n.leading,h="maxWait"in n,o=h?_N(Uh(n.maxWait)||0,t):o,u="trailing"in n?!!n.trailing:u);function y(w){var x=r,T=i;return r=i=void 0,c=w,s=e.apply(T,x),s}function p(w){return c=w,a=setTimeout(g,t),f?y(w):s}function E(w){var x=w-l,T=w-c,M=t-x;return h?EN(M,o-T):M}function S(w){var x=w-l,T=w-c;return l===void 0||x>=t||x<0||h&&T>=o}function g(){var w=Wa();if(S(w))return d(w);a=setTimeout(g,E(w))}function d(w){return a=void 0,u&&r?y(w):(r=i=void 0,s)}function m(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function _(){return a===void 0?s:d(Wa())}function b(){var w=Wa(),x=S(w);if(r=arguments,i=this,l=w,x){if(a===void 0)return p(l);if(h)return clearTimeout(a),a=setTimeout(g,t),y(l)}return a===void 0&&(a=setTimeout(g,t)),s}return b.cancel=m,b.flush=_,b}var bN=SN,wN=bN,xN=ff,TN="Expected a function";function CN(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(TN);return xN(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wN(e,t,{leading:r,maxWait:t,trailing:i})}var kN=CN;const ON=Su(kN);function tr(e,t){var n,r;if(typeof t=="function")r=t(e),r!==void 0&&(e=r);else if(Array.isArray(t))for(n=0;n<t.length;n++)r=t[n](e),r!==void 0&&(e=r);return e}function NN(e,t){return e[0]==="-"&&Array.isArray(t)&&/^-\d+$/.test(e)?t.length+parseInt(e,10):e}function AN(e){return/^\d+$/.test(e)}function Do(e){return Object.prototype.toString.call(e)==="[object Object]"}function ai(e){return Object(e)===e}function Mo(e){return Object.keys(e).length===0}var RN=["__proto__","prototype","constructor"],PN=function(e){return RN.indexOf(e)===-1};function Zs(e,t){e.indexOf("[")>=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t),r=n.filter(PN);if(r.length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var Hh=Object.prototype.hasOwnProperty;function V(e,t,n,r){if(!(this instanceof V))return new V(e,t,n,r);typeof t>"u"&&(t=!1),typeof n>"u"&&(n=!0),typeof r>"u"&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var Fr=new V(".",!1,!0,!0);function xt(e){return function(){return Fr[e].apply(Fr,arguments)}}V.prototype._fill=function(e,t,n,r){var i=e.shift();if(e.length>0){if(t[i]=t[i]||(this.useArray&&AN(e[0])?[]:{}),!ai(t[i]))if(this.override)t[i]={};else{if(!(ai(n)&&Mo(n)))throw new Error("Trying to redefine `"+i+"` which is a "+typeof t[i]);return}this._fill(e,t[i],n,r)}else{if(!this.override&&ai(t[i])&&!Mo(t[i])){if(!(ai(n)&&Mo(n)))throw new Error("Trying to redefine non-empty obj['"+i+"']");return}t[i]=tr(n,r)}};V.prototype.object=function(e,t){var n=this;return Object.keys(e).forEach(function(r){var i=t===void 0?null:t[r],o=Zs(r,n.separator).join(n.separator);o.indexOf(n.separator)!==-1?(n._fill(o.split(n.separator),e,e[r],i),delete e[r]):e[r]=tr(e[r],i)}),e};V.prototype.str=function(e,t,n,r){var i=Zs(e,this.separator).join(this.separator);return e.indexOf(this.separator)!==-1?this._fill(i.split(this.separator),n,t,r):n[e]=tr(t,r),n};V.prototype.pick=function(e,t,n,r){var i,o,s,a,l;for(o=Zs(e,this.separator),i=0;i<o.length;i++)if(a=NN(o[i],t),t&&typeof t=="object"&&a in t){if(i===o.length-1)return n?(s=t[a],r&&Array.isArray(t)?t.splice(a,1):delete t[a],Array.isArray(t)&&(l=o.slice(0,-1).join("."),this.cleanup.indexOf(l)===-1&&this.cleanup.push(l)),s):t[a];t=t[a]}else return;return n&&Array.isArray(t)&&(t=t.filter(function(c){return c!==void 0})),t};V.prototype.delete=function(e,t){return this.remove(e,t,!0)};V.prototype.remove=function(e,t,n){var r;if(this.cleanup=[],Array.isArray(e)){for(r=0;r<e.length;r++)this.pick(e[r],t,!0,n);return n||this._cleanup(t),t}else return this.pick(e,t,!0,n)};V.prototype._cleanup=function(e){var t,n,r,i;if(this.cleanup.length){for(n=0;n<this.cleanup.length;n++)r=this.cleanup[n].split("."),i=r.splice(0,-1).join("."),t=i?this.pick(i,e):e,t=t[r[0]].filter(function(o){return o!==void 0}),this.set(this.cleanup[n],t,e);this.cleanup=[]}};V.prototype.del=V.prototype.remove;V.prototype.move=function(e,t,n,r,i){return typeof r=="function"||Array.isArray(r)?this.set(t,tr(this.pick(e,n,!0),r),n,i):(i=r,this.set(t,this.pick(e,n,!0),n,i)),n};V.prototype.transfer=function(e,t,n,r,i,o){return typeof i=="function"||Array.isArray(i)?this.set(t,tr(this.pick(e,n,!0),i),r,o):(o=i,this.set(t,this.pick(e,n,!0),r,o)),r};V.prototype.copy=function(e,t,n,r,i,o){return typeof i=="function"||Array.isArray(i)?this.set(t,tr(JSON.parse(JSON.stringify(this.pick(e,n,!1))),i),r,o):(o=i,this.set(t,this.pick(e,n,!1),r,o)),r};V.prototype.set=function(e,t,n,r){var i,o,s,a;if(typeof t>"u")return n;for(s=Zs(e,this.separator),i=0;i<s.length;i++){if(a=s[i],i===s.length-1)if(r&&Do(t)&&Do(n[a]))for(o in t)Hh.call(t,o)&&(n[a][o]=t[o]);else if(r&&Array.isArray(n[a])&&Array.isArray(t))for(var l=0;l<t.length;l++)n[s[i]].push(t[l]);else n[a]=t;else(!Hh.call(n,a)||!Do(n[a])&&!Array.isArray(n[a]))&&(/^\d+$/.test(s[i+1])?n[a]=[]:n[a]={});n=n[a]}return n};V.prototype.transform=function(e,t,n){return t=t||{},n=n||{},Object.keys(e).forEach((function(r){this.set(e[r],this.pick(r,t),n)}).bind(this)),n};V.prototype.dot=function(e,t,n){t=t||{},n=n||[];var r=Array.isArray(e);return Object.keys(e).forEach((function(i){var o=r&&this.useBrackets?"["+i+"]":i;if(ai(e[i])&&(Do(e[i])&&!Mo(e[i])||Array.isArray(e[i])&&!this.keepArray&&e[i].length!==0))if(r&&this.useBrackets){var s=n[n.length-1]||"";return this.dot(e[i],t,n.slice(0,-1).concat(s+o))}else return this.dot(e[i],t,n.concat(o));else r&&this.useBrackets?t[n.join(this.separator).concat("["+i+"]")]=e[i]:t[n.concat(o).join(this.separator)]=e[i]}).bind(this)),t};V.pick=xt("pick");V.move=xt("move");V.transfer=xt("transfer");V.transform=xt("transform");V.copy=xt("copy");V.object=xt("object");V.str=xt("str");V.set=xt("set");V.delete=xt("delete");V.del=V.remove=xt("remove");V.dot=xt("dot");["override","overwrite"].forEach(function(e){Object.defineProperty(V,e,{get:function(){return Fr.override},set:function(t){Fr.override=!!t}})});["useArray","keepArray","useBrackets"].forEach(function(e){Object.defineProperty(V,e,{get:function(){return Fr[e]},set:function(t){Fr[e]=t}})});V._process=tr;var IN=V;const m0={"message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
87
+ `,{inline:y}));for(;typeof p[p.length-1]=="string"&&!p[p.length-1].trim();)p.pop();if(t.wrapper===null)return p;const E=t.wrapper||(y?"span":"div");let S;if(p.length>1||t.forceWrapper)S=p;else{if(p.length===1)return S=p[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return O.createElement(E,{key:"outer"},S)}function i(u,y){const p=y.match(mx);return p?p.reduce(function(E,S,g){const d=S.indexOf("=");if(d!==-1){const m=function(x){return x.indexOf("-")!==-1&&x.match(Ax)===null&&(x=x.replace(Mx,function(T,M){return M.toUpperCase()})),x}(S.slice(0,d)).trim(),_=function(x){const T=x[0];return(T==='"'||T==="'")&&x.length>=2&&x[x.length-1]===T?x.slice(1,-1):x}(S.slice(d+1).trim()),w=ch[m]||m,b=E[w]=function(x,T,M,I){return T==="style"?M.split(/;\s?/).reduce(function(se,he){const Be=he.slice(0,he.indexOf(":"));return se[Be.trim().replace(/(-[a-z])/g,nr=>nr[1].toUpperCase())]=he.slice(Be.length+1).trim(),se},{}):T==="href"||T==="src"?I(M,x,T):(M.match(Rx)&&(M=M.slice(1,M.length-1)),M==="true"||M!=="false"&&M)}(u,m,_,t.sanitizer);typeof b=="string"&&(fu.test(b)||du.test(b))&&(E[w]=O.cloneElement(r(b.trim()),{key:g}))}else S!=="style"&&(E[ch[S]||S]=!0);return E},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||uT,t.slugify=t.slugify||go,t.namedCodesToUnicode=t.namedCodesToUnicode?Fn({},fh,t.namedCodesToUnicode):fh,t.createElement=t.createElement||O.createElement;const o=[],s={},a={[D.blockQuote]:{match:Bt(My),order:1,parse:(u,y,p)=>({children:y(u[0].replace(vx,""),p)}),render:(u,y,p)=>n("blockquote",{key:p.key},y(u.children,p))},[D.breakLine]:{match:Kr(_x),order:1,parse:Ba,render:(u,y,p)=>n("br",{key:p.key})},[D.breakThematic]:{match:Bt(Ex),order:1,parse:Ba,render:(u,y,p)=>n("hr",{key:p.key})},[D.codeBlock]:{match:Bt(Ly),order:0,parse:u=>({lang:void 0,text:u[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(u,y,p)=>n("pre",{key:p.key},n("code",Fn({},u.attrs,{className:u.lang?`lang-${u.lang}`:""}),u.text))},[D.codeFenced]:{match:Bt(Fy),order:0,parse:u=>({attrs:i("code",u[3]||""),lang:u[2]||void 0,text:u[4],type:D.codeBlock})},[D.codeInline]:{match:nn(Sx),order:3,parse:u=>({text:u[2]}),render:(u,y,p)=>n("code",{key:p.key},u.text)},[D.footnote]:{match:Bt(xx),order:0,parse:u=>(o.push({footnote:u[2],identifier:u[1]}),{}),render:ja},[D.footnoteReference]:{match:tn(Tx),order:1,parse:u=>({target:`#${t.slugify(u[1],go)}`,text:u[1]}),render:(u,y,p)=>n("a",{key:p.key,href:t.sanitizer(u.target,"a","href")},n("sup",{key:p.key},u.text))},[D.gfmTask]:{match:tn(Ox),order:1,parse:u=>({completed:u[1].toLowerCase()==="x"}),render:(u,y,p)=>n("input",{checked:u.completed,key:p.key,readOnly:!0,type:"checkbox"})},[D.heading]:{match:Bt(t.enforceAtxHeadings?jy:By),order:1,parse:(u,y,p)=>({children:Io(y,u[2],p),id:t.slugify(u[2],go),level:u[1].length}),render:(u,y,p)=>n(`h${u.level}`,{id:u.id,key:p.key},y(u.children,p))},[D.headingSetext]:{match:Bt(zy),order:0,parse:(u,y,p)=>({children:Io(y,u[1],p),level:u[2]==="="?1:2,type:D.heading})},[D.htmlBlock]:{match:Kr(fu),order:1,parse(u,y,p){const[,E]=u[3].match(Zx),S=new RegExp(`^${E}`,"gm"),g=u[3].replace(S,""),d=(m=g,oT.some(T=>T.test(m))?fT:Io);var m;const _=u[1].toLowerCase(),w=px.indexOf(_)!==-1,b=(w?_:u[1]).trim(),x={attrs:i(b,u[2]),noInnerParse:w,tag:b};return p.inAnchor=p.inAnchor||_==="a",w?x.text=u[3]:x.children=d(y,g,p),p.inAnchor=!1,x},render:(u,y,p)=>n(u.tag,Fn({key:p.key},u.attrs),u.text||(u.children?y(u.children,p):""))},[D.htmlSelfClosing]:{match:Kr(du),order:1,parse(u){const y=u[1].trim();return{attrs:i(y,u[2]||""),tag:y}},render:(u,y,p)=>n(u.tag,Fn({},u.attrs,{key:p.key}))},[D.htmlComment]:{match:Kr(Uy),order:1,parse:()=>({}),render:ja},[D.image]:{match:nn(iT),order:1,parse:u=>({alt:u[1],target:gh(u[2]),title:u[3]}),render:(u,y,p)=>n("img",{key:p.key,alt:u.alt||void 0,title:u.title||void 0,src:t.sanitizer(u.target,"img","src")})},[D.link]:{match:tn(rT),order:3,parse:(u,y,p)=>({children:cT(y,u[1],p),target:gh(u[2]),title:u[3]}),render:(u,y,p)=>n("a",{key:p.key,href:t.sanitizer(u.target,"a","href"),title:u.title},y(u.children,p))},[D.linkAngleBraceStyleDetector]:{match:tn(Dx),order:0,parse:u=>({children:[{text:u[1],type:D.text}],target:u[1],type:D.link})},[D.linkBareUrlDetector]:{match:(u,y)=>y.inAnchor||t.disableAutoLink?null:tn(Px)(u,y),order:0,parse:u=>({children:[{text:u[1],type:D.text}],target:u[1],title:void 0,type:D.link})},[D.linkMailtoDetector]:{match:tn(Ix),order:0,parse(u){let y=u[1],p=u[1];return gx.test(p)||(p="mailto:"+p),{children:[{text:y.replace("mailto:",""),type:D.text}],target:p,type:D.link}}},[D.orderedList]:hh(n,1),[D.unorderedList]:hh(n,2),[D.newlineCoalescer]:{match:Bt(wx),order:3,parse:Ba,render:()=>`
88
+ `},[D.paragraph]:{match:lT,order:3,parse:La,render:(u,y,p)=>n("p",{key:p.key},y(u.children,p))},[D.ref]:{match:tn(Fx),order:0,parse:u=>(s[u[1]]={target:u[2],title:u[4]},{}),render:ja},[D.refImage]:{match:nn(Lx),order:0,parse:u=>({alt:u[1]||void 0,ref:u[2]}),render:(u,y,p)=>s[u.ref]?n("img",{key:p.key,alt:u.alt,src:t.sanitizer(s[u.ref].target,"img","src"),title:s[u.ref].title}):null},[D.refLink]:{match:tn(Bx),order:0,parse:(u,y,p)=>({children:y(u[1],p),fallbackChildren:u[0],ref:u[2]}),render:(u,y,p)=>s[u.ref]?n("a",{key:p.key,href:t.sanitizer(s[u.ref].target,"a","href"),title:s[u.ref].title},y(u.children,p)):n("span",{key:p.key},u.fallbackChildren)},[D.table]:{match:Bt(Hy),order:1,parse:aT,render(u,y,p){const E=u;return n("table",{key:p.key},n("thead",null,n("tr",null,E.header.map(function(S,g){return n("th",{key:g,style:mh(E,g)},y(S,p))}))),n("tbody",null,E.cells.map(function(S,g){return n("tr",{key:g},S.map(function(d,m){return n("td",{key:m,style:mh(E,m)},y(d,p))}))})))}},[D.text]:{match:Kr(Kx),order:4,parse:u=>({text:u[0].replace(Nx,(y,p)=>t.namedCodesToUnicode[p]?t.namedCodesToUnicode[p]:y)}),render:u=>u.text},[D.textBolded]:{match:nn(Vx),order:2,parse:(u,y,p)=>({children:y(u[2],p)}),render:(u,y,p)=>n("strong",{key:p.key},y(u.children,p))},[D.textEmphasized]:{match:nn(Wx),order:3,parse:(u,y,p)=>({children:y(u[2],p)}),render:(u,y,p)=>n("em",{key:p.key},y(u.children,p))},[D.textEscaped]:{match:nn(Qx),order:1,parse:u=>({text:u[1],type:D.text})},[D.textMarked]:{match:nn(qx),order:3,parse:La,render:(u,y,p)=>n("mark",{key:p.key},y(u.children,p))},[D.textStrikethroughed]:{match:nn(Xx),order:3,parse:La,render:(u,y,p)=>n("del",{key:p.key},y(u.children,p))}};t.disableParsingRawHTML===!0&&(delete a[D.htmlBlock],delete a[D.htmlSelfClosing]);const l=function(u){let y=Object.keys(u);function p(E,S){let g=[];for(S.prevCapture=S.prevCapture||"";E;){let d=0;for(;d<y.length;){const m=y[d],_=u[m],w=_.match(E,S);if(w){const b=w[0];S.prevCapture+=b,E=E.substring(b.length);const x=_.parse(w,p,S);x.type==null&&(x.type=m),g.push(x);break}d++}}return S.prevCapture="",g}return y.sort(function(E,S){let g=u[E].order,d=u[S].order;return g!==d?g-d:E<S?-1:1}),function(E,S){return p(function(g){return g.replace(bx,`
89
+ `).replace(Cx,"").replace(zx," ")}(E),S)}}(a),c=(f=function(u,y){return function(p,E,S){const g=u[p.type].render;return y?y(()=>g(p,E,S),p,E,S):g(p,E,S)}}(a,t.renderRule),function u(y,p={}){if(Array.isArray(y)){const E=p.key,S=[];let g=!1;for(let d=0;d<y.length;d++){p.key=d;const m=u(y[d],p),_=typeof m=="string";_&&g?S[S.length-1]+=m:m!==null&&S.push(m),g=_}return p.key=E,S}return f(y,u,p)});var f;const h=r(e);return o.length?n("div",null,h,n("footer",{key:"footer"},o.map(function(u){return n("div",{id:t.slugify(u.identifier,go),key:u.identifier},u.identifier,c(l(u.footnote,{inline:!0})))}))):h}const _n=e=>{let{children:t="",options:n}=e,r=function(i,o){if(i==null)return{};var s,a,l={},c=Object.keys(i);for(a=0;a<c.length;a++)o.indexOf(s=c[a])>=0||(l[s]=i[s]);return l}(e,hx);return O.cloneElement(hT(t,n),r)};var e0={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},yh=Et.createContext&&Et.createContext(e0),pT=["attr","size","title"];function mT(e,t){if(e==null)return{};var n=gT(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gs(){return gs=Object.assign?Object.assign.bind():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},gs.apply(this,arguments)}function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(n),!0).forEach(function(r){yT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yT(e,t,n){return t=vT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vT(e){var t=_T(e,"string");return typeof t=="symbol"?t:t+""}function _T(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t0(e){return e&&e.map((t,n)=>Et.createElement(t.tag,ys({key:n},t.attr),t0(t.child)))}function n0(e){return t=>Et.createElement(ET,gs({attr:ys({},e.attr)},t),t0(e.child))}function ET(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=mT(e,pT),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),Et.createElement("svg",gs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:ys(ys({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Et.createElement("title",null,o),e.children)};return yh!==void 0?Et.createElement(yh.Consumer,null,n=>t(n)):t(e0)}function ST(e){return n0({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"},child:[]}]})(e)}function wT(e){return n0({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"},child:[]}]})(e)}const bT="_generalConditionsContainer_1ijeb_1",xT="_generalConditions_1ijeb_1",TT="_generalConditionsHeader_1ijeb_15",CT="_generalConditionsBody_1ijeb_25",kT="_generalConditionsAccept_1ijeb_33",Yr={generalConditionsContainer:bT,generalConditions:xT,generalConditionsHeader:TT,generalConditionsBody:CT,generalConditionsAccept:kT},OT="general-conditions.header",NT="general-conditions.body",_h="general-conditions.accept-conditions-note",AT=()=>{const e=ft(),[t,n]=O.useState(!1),r=()=>n(!t),i=a=>{a.key==="ArrowDown"||a.key==="ArrowRight"?n(!0):a.key==="ArrowUp"||a.key==="ArrowLeft"||a.key==="Escape"?n(!1):(a.key==="Enter"||a.key==="Space"||a.key===" ")&&r()},o=e(OT),s=e(_h);return v.jsxs("div",{className:k(Yr.generalConditionsContainer,"chat__generalConditions"),children:[!!(o!=null&&o.length)&&v.jsxs("div",{className:Yr.generalConditions,children:[v.jsxs("div",{role:"button",onClick:r,onKeyDown:i,tabIndex:0,className:k(Yr.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":t?"true":"false","aria-pressed":t?"true":"false",children:[v.jsx(_n,{children:o}),t?v.jsx(wT,{}):v.jsx(ST,{})]}),v.jsx("div",{className:k(Yr.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:t&&v.jsx(_n,{children:e(NT)||""})})]}),!!(s!=null&&s.length)&&v.jsx("div",{className:k(Yr.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(_n,{children:e(_h)||""})})]})},RT="_message_iyv51_5",PT="_messageBot_iyv51_12",IT="_messageBotLast_iyv51_20",DT="_avatar_iyv51_20",MT="_messageBotFirst_iyv51_24",FT="_messageBotAnimated_iyv51_37",LT="_fadeInLeft_iyv51_1",BT="_messageGuest_iyv51_48",jT="_messageGuestFirst_iyv51_54",zT="_messageGuestLast_iyv51_60",UT="_botAvatar_iyv51_74",HT="_agentAvatar_iyv51_78",$T="_bubble_iyv51_82",GT="_bubbleContent_iyv51_88",VT="_bubbleLeft_iyv51_191",WT="_leftText_iyv51_200",qT="_bubbleRight_iyv51_207",XT="_rightText_iyv51_215",B={message:RT,messageBot:PT,messageBotLast:IT,avatar:DT,messageBotFirst:MT,messageBotAnimated:FT,fadeInLeft:LT,messageGuest:BT,messageGuestFirst:jT,messageGuestLast:zT,botAvatar:UT,agentAvatar:HT,bubble:$T,bubbleContent:GT,bubbleLeft:VT,leftText:WT,bubbleRight:qT,rightText:XT},QT="_botMessageActions_4blu2_1",KT="_alwaysVisible_4blu2_20",YT="_reported_4blu2_27",ZT="_action_4blu2_31",rn={botMessageActions:QT,alwaysVisible:KT,reported:YT,action:ZT},JT=({alwaysVisible:e,reaction:t,botMessageRef:n,onReaction:r})=>{const i=ft(),[o,s]=O.useState(!1),a=c=>()=>r(c),l=O.useCallback(async()=>{if(n.current)try{s(!0);const c=n.current.innerHTML,f=n.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([c],{type:"text/html"}),"text/plain":new Blob([f],{type:"text/plain"})})]),await new Promise(h=>setTimeout(h,1500))}finally{s(!1)}},[n.current]);return v.jsxs("div",{className:k(rn.botMessageActions,e&&rn.alwaysVisible,t&&rn.reported),children:[v.jsx("button",{className:k(rn.action,t==="GOOD"&&rn.reported,"tooltip--right"),tabIndex:0,"aria-label":i(t==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":i(t==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:a(t==="GOOD"?null:"GOOD"),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t==="GOOD"?v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),v.jsx("button",{className:k(rn.action,t==="BAD"&&rn.reported,"tooltip--right"),tabIndex:0,"aria-label":i(t==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":i(t==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:a(t==="BAD"?null:"BAD"),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t==="BAD"?v.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):v.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),v.jsx("button",{className:k(rn.action,"tooltip--right"),tabIndex:0,"aria-label":i("bot-bubble.copy"),"data-title":i("bot-bubble.copy"),onClick:l,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:o?v.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):v.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]})},r0=O.forwardRef(({message:e,isAnimated:t,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,children:o,onReaction:s},a)=>{const l=ft(),c=O.useRef(null),f=e.sender.type===j.UserType.BOT;return v.jsxs("li",{ref:a,className:k(B.message,B.messageBot,n&&B.lastMessage,r&&B.messageBotFirst,i&&B.messageBotLast,"chat__bubbleContainer",t&&B.messageBotAnimated,t&&"chat__bubbleContainer--animated",f?"chat__botBubbleContainer":"chat__agentBubbleContainer",r&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:k(B.avatar,f?B.botAvatar:B.agentAvatar,"chat__avatar",f?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:f?"Bot":"Agent",referrerPolicy:"no-referrer"}),v.jsx("div",{ref:c,className:k(B.bubble,B.bubbleLeft,"chat__bubble",f?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":l(f?"bot-bubble.label":"agent-bubble.label"),children:v.jsx("div",{className:k(B.leftText),children:o})}),s&&v.jsx(JT,{alwaysVisible:n&&i,reaction:e.reaction,botMessageRef:c,onReaction:s})]})}),e2="_title_1mhh2_1",t2="_subtitle_1mhh2_6",n2="_buttons_1mhh2_11",r2="_button_1mhh2_11",i2="_imageContainer_1mhh2_33",o2="_image_1mhh2_33",s2="_video_container_1mhh2_44",a2="_video_1mhh2_44",l2="_only_1mhh2_54",je={title:e2,subtitle:t2,buttons:n2,button:r2,imageContainer:i2,image:o2,video_container:s2,video:a2,only:l2},u2=({buttons:e,onButtonClick:t})=>v.jsx("div",{className:k(je.buttons,"chat__bubbleButtons"),children:e.map((n,r)=>v.jsx("button",{className:k(je.button,Ee.button,"chat__bubbleButton"),onClick:()=>t(n),children:n.title},r))});var i0={},sf={},af={};Object.defineProperty(af,"__esModule",{value:!0});var c2=O,f2=d2(c2);function d2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}af.default=function(e,t,n){return f2.createElement("a",{href:e,key:n},t)};var lf={};Object.defineProperty(lf,"__esModule",{value:!0});lf.default=function(e){return e};var uf={},Ua,Eh;function h2(){return Eh||(Eh=1,Ua=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ua}var Ha,Sh;function p2(){return Sh||(Sh=1,Ha=/[\0-\x1F\x7F-\x9F]/),Ha}var $a,wh;function m2(){return wh||(wh=1,$a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),$a}var Ga,bh;function g2(){return bh||(bh=1,Ga=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Ga}var Va,xh;function y2(){return xh||(xh=1,Va=function(e){var t={};t.src_Any=h2().source,t.src_Cc=p2().source,t.src_Z=m2().source,t.src_P=g2().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Va}function hu(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Ks(e){return Object.prototype.toString.call(e)}function v2(e){return Ks(e)==="[object String]"}function _2(e){return Ks(e)==="[object Object]"}function E2(e){return Ks(e)==="[object RegExp]"}function Th(e){return Ks(e)==="[object Function]"}function S2(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function w2(e){return Object.keys(e||{}).reduce(function(t,n){return t||o0.hasOwnProperty(n)},!1)}var b2={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},x2="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",T2="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function C2(e){e.__index__=-1,e.__text_cache__=""}function k2(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Ch(){return function(e,t){t.normalize(e)}}function vs(e){var t=e.re=y2()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(x2),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];e.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){var l=e.__schemas__[a];if(l!==null){var c={validate:null,link:null};if(e.__compiled__[a]=c,_2(l)){E2(l.validate)?c.validate=k2(l.validate):Th(l.validate)?c.validate=l.validate:o(a,l),Th(l.normalize)?c.normalize=l.normalize:l.normalize?o(a,l):c.normalize=Ch();return}if(v2(l)){i.push(a);return}o(a,l)}}),i.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:Ch()};var s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(S2).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),C2(e)}function O2(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function kh(e,t){var n=new O2(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function lt(e,t){if(!(this instanceof lt))return new lt(e,t);t||w2(e)&&(t=e,e={}),this.__opts__=hu({},o0,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=hu({},b2,e),this.__compiled__={},this.__tlds__=T2,this.__tlds_replaced__=!1,this.re={},vs(this)}lt.prototype.add=function(t,n){return this.__schemas__[t]=n,vs(this),this};lt.prototype.set=function(t){return this.__opts__=hu(this.__opts__,t),this};lt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,r,i,o,s,a,l,c,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};lt.prototype.pretest=function(t){return this.re.pretest.test(t)};lt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};lt.prototype.match=function(t){var n=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(kh(this,n)),n=this.__last_index__);for(var i=n?t.slice(n):t;this.test(i);)r.push(kh(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};lt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),vs(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,vs(this),this)};lt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};lt.prototype.onCompile=function(){};var N2=lt;const A2=["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"];Object.defineProperty(uf,"__esModule",{value:!0});var R2=N2,P2=s0(R2),I2=A2,D2=s0(I2);function s0(e){return e&&e.__esModule?e:{default:e}}var a0=new P2.default;a0.tlds(D2.default);uf.default=function(e){return a0.match(e)};var cf={};Object.defineProperty(cf,"__esModule",{value:!0});cf.default=function(e){return e};Object.defineProperty(sf,"__esModule",{value:!0});var M2=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),F2=O,Zr=V2(F2),L2=af,B2=Ys(L2),j2=lf,z2=Ys(j2),U2=uf,H2=Ys(U2),$2=cf,G2=Ys($2);function Ys(e){return e&&e.__esModule?e:{default:e}}function V2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function W2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function X2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l0=function(e){X2(t,e);function t(){return W2(this,t),q2(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return M2(t,[{key:"parseString",value:function(r){var i=this;if(r==="")return r;var o=this.props.matchDecorator(r);if(!o)return r;var s=[],a=0;return o.forEach(function(l,c){l.index>a&&s.push(r.substring(a,l.index));var f=i.props.hrefDecorator(l.url),h=i.props.textDecorator(l.text),u=i.props.componentDecorator(f,h,c);s.push(u),a=l.lastIndex}),r.length>a&&s.push(r.substring(a)),s.length===1?s[0]:s}},{key:"parse",value:function(r){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof r=="string"?this.parseString(r):Zr.isValidElement(r)&&r.type!=="a"&&r.type!=="button"?Zr.cloneElement(r,{key:o},this.parse(r.props.children)):Array.isArray(r)?r.map(function(s,a){return i.parse(s,a)}):r}},{key:"render",value:function(){return Zr.createElement(Zr.Fragment,null,this.parse(this.props.children))}}]),t}(Zr.Component);l0.defaultProps={componentDecorator:B2.default,hrefDecorator:z2.default,matchDecorator:H2.default,textDecorator:G2.default};sf.default=l0;Object.defineProperty(i0,"__esModule",{value:!0});var Q2=sf,K2=Y2(Q2);function Y2(e){return e&&e.__esModule?e:{default:e}}var Z2=i0.default=K2.default;const J2="_text_1k7aq_1",eC={text:J2},u0=({text:e,onLinkClick:t})=>{const n=i=>o=>(o.preventDefault(),i&&t(i),!1),r=(i,o,s)=>v.jsx("a",{onClick:n(i),role:"button",children:o},s);return v.jsx("div",{children:e.split(`
90
+ `).map((i,o)=>v.jsxs("span",{className:eC.text,children:[v.jsx(Z2,{componentDecorator:r,children:i}),v.jsx("br",{})]},o))})},tC=({subtitle:e,onLinkClick:t})=>e?v.jsx("div",{className:je.subtitle,children:v.jsx(u0,{text:e,onLinkClick:t})}):null,Oh="newtab#",c0=({markdown:e,onLinkClick:t})=>{const n=i=>o=>(o.preventDefault(),i&&t(i),!1),r=({title:i,href:o,children:s})=>o.indexOf(Oh)===0?v.jsx("a",{href:o.slice(Oh.length),title:i,target:"_blank",rel:"noopener noreferrer",children:s}):v.jsx("a",{onClick:n(o),title:i,href:o,children:s});return v.jsx(_n,{options:{overrides:{a:r}},children:e})},nC=({text:e,onLinkClick:t})=>e?v.jsx("div",{children:v.jsx(c0,{markdown:e,onLinkClick:t})}):null,rC=({title:e})=>e?v.jsx("h1",{className:je.title,children:e}):null,iC=({title:e,text:t,subtitle:n,buttons:r,onButtonClick:i,onLinkClick:o})=>(e==null?void 0:e.length)||(t==null?void 0:t.length)||(n==null?void 0:n.length)||(r==null?void 0:r.length)?v.jsxs("div",{className:k(B.bubbleContent),children:[v.jsx(rC,{title:e}),v.jsx(nC,{text:t,onLinkClick:o}),v.jsx(tC,{subtitle:n,onLinkClick:o}),v.jsx(u2,{buttons:r,onButtonClick:i})]}):null,oC=({alt:e,imageUrl:t,itemUrl:n,hasBody:r})=>t?n?n.indexOf("youtube.com")>-1?v.jsx("div",{className:je.video_container,children:v.jsx("iframe",{className:k(je.video,{[je.only]:!r}),title:"Youtube",width:"100%",src:n+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):v.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:v.jsx("div",{className:je.imageContainer,children:v.jsx("img",{className:k(je.image,{[je.only]:!r}),src:t,alt:e})})}):v.jsx("div",{className:je.imageContainer,children:v.jsx("img",{className:k(je.image,{[je.only]:!r}),src:t,alt:e})}):null,sC=({title:e,text:t,subtitle:n,imageUrl:r,itemUrl:i,buttons:o,onButtonClick:s,onLinkClick:a})=>{const l=!!(e!=null&&e.length)||!!(t!=null&&t.length)||!!(n!=null&&n.length)||!!(o!=null&&o.length);return v.jsxs("div",{className:k(je.detailMessage),children:[v.jsx(oC,{hasBody:l,imageUrl:r,itemUrl:i,alt:e||n}),l&&v.jsx(iC,{title:e,text:t,subtitle:n,buttons:o,onLinkClick:a,onButtonClick:s})]})},aC=O.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:t,children:n},r)=>{const i=ft();return v.jsx("li",{ref:r,className:k(B.message,B.messageGuest,e&&B.messageGuestFirst,t&&B.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",t&&"chat__bubbleContainer--last"),children:v.jsx("div",{className:k(B.bubble,B.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":i("guest-bubble.label"),children:v.jsx("div",{className:k(B.rightText),children:n})})})}),lC=({markdown:e,className:t,onLinkClick:n})=>v.jsx("div",{className:k(B.bubbleContent,t),children:v.jsx(c0,{markdown:e,onLinkClick:n})}),uC=({text:e,onLinkClick:t})=>v.jsx("div",{className:B.bubbleContent,children:v.jsx(u0,{text:e,onLinkClick:t})}),cC=O.forwardRef(({message:e,isLastMessage:t,isFirstMessageBySender:n,isLastMessageBySender:r,onReaction:i,onButtonClick:o,onLinkClick:s},a)=>{const l=fC(e,o,s);switch(e.sender.type){case j.UserType.GUEST:return v.jsx(aC,{ref:a,isFirstMessageBySender:n,isLastMessageBySender:r,children:l});default:const c=f=>i(e._id,f);return v.jsx(r0,{ref:a,message:e,isAnimated:!1,isLastMessage:t,isFirstMessageBySender:n,isLastMessageBySender:r,onReaction:c,children:l})}}),fC=(e,t,n)=>{switch(e.type){case j.MessageTypeEnum.TEXT:const r=e;return v.jsx(uC,{text:r.text,onLinkClick:n});case j.MessageTypeEnum.DETAIL:const i=e;return v.jsx(sC,{title:i.title,text:i.text,subtitle:i.subtitle,imageUrl:i.imageUrl,itemUrl:i.itemUrl,buttons:i.buttons,onButtonClick:t,onLinkClick:n});case j.MessageTypeEnum.MARKDOWN:const o=e;return v.jsx(lC,{markdown:o.markdown,className:o.className,onLinkClick:n})}},dC=(e,t)=>e.message._id===t.message._id&&e.message.reaction===t.message.reaction&&e.isLastMessage===t.isLastMessage&&e.isFirstMessageBySender===t.isFirstMessageBySender&&e.isLastMessageBySender===t.isLastMessageBySender,hC=Et.memo(cC,dC),pC="_ticontainer_wftg7_1",mC="_tiblock_wftg7_5",gC="_tidot_wftg7_12",yC="_mercuryTypingAnimation_wftg7_1",Jr={ticontainer:pC,tiblock:mC,tidot:gC,mercuryTypingAnimation:yC},vC=({isTyping:e=!1})=>v.jsx("div",{className:Jr.ticontainer,children:v.jsx("div",{className:Jr.tiblock,children:e?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:k(Jr.tidot,"chat__typingIndicator")}),v.jsx("div",{className:k(Jr.tidot,"chat__typingIndicator")}),v.jsx("div",{className:k(Jr.tidot,"chat__typingIndicator")})]}):null})}),_C=Object.assign({_id:"typing-indicator"},new j.TextMessage("",new j.BotUser)),EC=({messages:e,isBotTyping:t,showGeneralConditions:n,onTranscriptItemReaction:r,onButtonClick:i,onLinkClick:o})=>{const s=O.useRef(!0),a=O.useRef(null),l=O.useRef(null),c=O.useRef(null);O.useLayoutEffect(()=>{if(e.length&&a.current){if(l.current){const u=l.current.offsetTop;a.current.scrollTop=u}else if(c.current){const u=c.current.offsetTop;a.current.scrollTop=u}s.current&&(s.current=!1)}},[e,l.current,c.current,s]);let f;const h=e.length;return v.jsxs("div",{ref:a,className:k(lh.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&s.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[n&&v.jsx(AT,{}),v.jsxs("ul",{className:lh.messages,children:[e.map((u,y)=>{const p=SC(u,f),E=wC(u,y,e,t);f=u.sender.type;const S=y+1===h;return v.jsx(hC,{ref:S?c:null,message:u,isLastMessage:S,isFirstMessageBySender:p,isLastMessageBySender:E,onButtonClick:i,onLinkClick:o,onReaction:r},S&&!t?"last":u._id)}),t&&v.jsx(r0,{ref:l,message:_C,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:f!==j.UserType.BOT,isLastMessageBySender:!0,children:v.jsx(vC,{isTyping:!0})},"last")]})]})},SC=(e,t)=>!t||t!==e.sender.type,wC=(e,t,n,r)=>{var a;const i=e.sender.type,o=n.length;return t+1===o?!(i===j.UserType.BOT&&r):i!==((a=n.at(t+1))==null?void 0:a.sender.type)},bC="_bottomSheet_8itd6_1",xC="_bottomSheetOpen_8itd6_15",TC="_bottomSheetClose_8itd6_20",Wt={bottomSheet:bC,bottomSheetOpen:xC,"slide-in":"_slide-in_8itd6_1",bottomSheetClose:TC,"slide-out":"_slide-out_8itd6_1"},CC="_container_ooyn8_1",Nh={container:CC},kC=({contentUrl:e})=>{const t=$n(o=>o.connection.sessionId),[n,r]=O.useState(!1);O.useEffect(()=>{r(o=>o||!!e)},[e]);const i=O.useMemo(()=>{if(e&&t){const o=new URL(e,document.baseURI);return o.searchParams.set("sessionId",t),o.toString()}else return},[e,t]);return v.jsx("div",{className:k(Nh.container,Wt.bottomSheet,{[Wt.bottomSheetOpen]:!!e,[Wt.bottomSheetClose]:n&&!e}),children:i&&v.jsx("iframe",{title:"Drawer",src:i,className:Nh.iframe})})},OC="_container_t5oqt_1",NC={container:OC},AC=({title:e,href:t,children:n})=>v.jsx("a",{href:t,title:e,target:"_blank",rel:"noopener noreferrer",children:n}),RC=()=>{const t=ft()("powered-by");return t&&t.length?v.jsx("div",{className:k(NC.container,"chat__poweredBy"),children:v.jsx(_n,{options:{overrides:{a:AC}},children:t})}):null},PC="_container_rkqaf_1",IC="_formContainer_rkqaf_14",DC="_emailInput_rkqaf_19",MC="_description_rkqaf_48",FC="_actions_rkqaf_53",LC="_validationError_rkqaf_63",BC="_submitted_rkqaf_70",jt={container:PC,formContainer:IC,emailInput:DC,description:MC,actions:FC,validationError:LC,submitted:BC},jC=({visible:e,methods:t,onEmailExport:n,onPdfExport:r,onClose:i})=>{const o=ft(),[s,a]=O.useState(void 0),[l,c]=O.useState(!1),[f,h]=O.useState(!1),[u,y]=O.useState(void 0),p=O.useRef(null);O.useEffect(()=>{var d;e?((d=p.current)==null||d.focus(),c(!1),h(!1),a(e)):s===!0&&a(!1)},[e,s]);const E=d=>{d.preventDefault(),u&&u.length>0&&(n(u),c(!0),setTimeout(i,3*1e3))},S=d=>{const m=d.target.value.trim(),_=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(m);y(_?m:"")},g=()=>{h(!0),r(),setTimeout(i,3*1e3)};return v.jsxs("div",{className:k(jt.container,Wt.bottomSheet,{[Wt.bottomSheetOpen]:s===!0,[Wt.bottomSheetClose]:s===!1}),children:[t.pdf&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:o("export-transcript.pdf.title")}),v.jsx(_n,{className:jt.description,children:o("export-transcript.pdf.description")||""}),v.jsxs("div",{className:jt.actions,children:[v.jsx("button",{type:"button",className:k(Ee.button,Ee.buttonDefault),onClick:i,children:o("export-transcript.pdf.cancel")}),v.jsx("button",{className:k(Ee.button,Ee.buttonPrimary),onClick:g,disabled:f,children:o("export-transcript.pdf.download")})]})]}),t.email&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:o("export-transcript.email.title")}),v.jsx(_n,{className:jt.description,children:o("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:E,className:jt.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:l,ref:p,type:"email",placeholder:o("export-transcript.email.placeholder"),className:jt.emailInput,onChange:S}),(u==null?void 0:u.length)===0?v.jsx("div",{className:jt.validationError,children:o("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:jt.actions,children:[v.jsx("button",{type:"button",className:k(Ee.button,Ee.buttonDefault),onClick:i,children:o("export-transcript.email.cancel")}),v.jsx("button",{type:"submit",disabled:l||u===void 0||u.length===0,className:k(Ee.button,Ee.buttonPrimary),children:o("export-transcript.email.send")})]})]}),l&&v.jsx("div",{className:jt.submitted,children:o("export-transcript.email.success")})]})]})},zC="_inputContainer_1px77_1",UC={inputContainer:zC},HC="_blockUserInput_rv0dg_1",$C={blockUserInput:HC,"append-animate":"_append-animate_rv0dg_1"},GC=({visible:e})=>{const t=ft();return e?v.jsx("div",{className:k($C.blockUserInput,"chat__blockUserInput"),children:t("block-user-input.title")}):null},VC="_callToActionContainer_czz0p_1",WC="_callToActionTitle_czz0p_24",qC="_rateOverlay_czz0p_31",XC="_body_czz0p_50",QC="_footer_czz0p_58",KC="_actions_czz0p_73",YC="_bubbles_czz0p_85",ZC="_rateFeedbackBotBubble_czz0p_112",JC="_rateFeedbackGuestBubble_czz0p_118",ek="_avatar_czz0p_124",tk="_fadeInLeft_czz0p_1",nk="_bubble_czz0p_85",rk="_appear_czz0p_1",ik="_botBubble_czz0p_150",ok="_guestBubble_czz0p_160",sk="_rateText_czz0p_176",ak="_stars_czz0p_181",lk="_starsSmall_czz0p_194",uk="_starsLarge_czz0p_198",ck="_star_czz0p_181",fk="_starReadonly_czz0p_215",dk="_starIcon_czz0p_223",hk="_starsDescriptionContainer_czz0p_241",pk="_starsDescription_czz0p_241",Pe={callToActionContainer:VC,"append-animate":"_append-animate_czz0p_1",callToActionTitle:WC,rateOverlay:qC,body:XC,footer:QC,actions:KC,bubbles:YC,rateFeedbackBotBubble:ZC,rateFeedbackGuestBubble:JC,avatar:ek,fadeInLeft:tk,bubble:nk,appear:rk,botBubble:ik,guestBubble:ok,rateText:sk,stars:ak,starsSmall:lk,starsLarge:uk,star:ck,starReadonly:fk,starIcon:dk,starsDescriptionContainer:hk,starsDescription:pk},mk=({value:e,index:t,count:n,readonly:r,onHover:i,onClick:o})=>{const s=a=>{o&&a.key==="Enter"&&o()};return v.jsx("li",{className:k(Pe.star,{[Pe.starReadonly]:r},"chat__conversationRating__star"),children:v.jsx("div",{role:"radio","aria-checked":e>t?"true":"false","aria-posinset":t+1,"aria-setsize":n,tabIndex:0,onMouseOver:i,onKeyDown:s,onClick:o,children:v.jsx("span",{role:"img","aria-label":"Star",className:k(Pe.starIcon),children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},Ah=5,f0=({value:e,size:t,readonly:n=!1,onChange:r})=>{const[i,o]=O.useState(void 0),s=()=>{o(void 0)},a=c=>()=>{if(!n){const f=c+1;o(f)}},l=c=>()=>{r&&!n&&(r(c===0&&e===1?0:c+1),o(void 0))};return v.jsx("ul",{tabIndex:0,role:"radiogroup",className:k(Pe.stars,{[Pe.starsSmall]:t==="small",[Pe.starsLarge]:t==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:t==="small",chat__conversationRating__stars__large:t==="large"}),onMouseOut:s,children:Array(Ah).fill(0).map((c,f)=>v.jsx(mk,{value:i===void 0?e:i,index:f,count:Ah,readonly:n,onHover:a(f),onClick:l(f)},f))})},gk=({visible:e,onRate:t})=>{const n=ft();return e?v.jsxs("div",{className:k(Pe.callToActionContainer,"chat__conversationRating__callToAction"),children:[v.jsx("div",{className:k(Pe.callToActionTitle,"chat__conversationRating__callToAction__title"),children:n("conversation-rating.call-to-action.title")}),v.jsx(f0,{value:0,size:"small",onChange:t})]}):null},Rh=({isFirstMessageBySender:e,isLastMessageBySender:t,children:n})=>v.jsxs("div",{className:k(B.message,B.messageBot,e&&B.messageBotFirst,t&&B.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",t&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:k(B.avatar,B.botAvatar),src:"bot.svg",alt:"Bot"}),v.jsx("div",{className:k(B.bubble,B.bubbleLeft,"chat__bubble","chat__botBubble"),children:v.jsx("div",{className:k(B.leftText,B.bubbleContent),children:n})})]}),yk=({children:e})=>v.jsx("div",{className:k(B.message,B.messageGuest,B.messageGuestFirst,B.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:v.jsx("div",{className:k(B.bubble,B.bubbleRight,"chat__bubble","chat__guestBubble"),children:v.jsx("div",{className:k(B.rightText,B.bubbleContent),children:e})})}),vk=({visible:e,rating:t,onRate:n,onClose:r})=>{const i=ft(),[o,s]=O.useState(t),[a,l]=O.useState(void 0),[c,f]=O.useState(void 0),[h,u]=O.useState({submitted:!1,feedback:""}),[y,p]=O.useState(!1),E=O.useRef(null);O.useEffect(()=>{e?(u({submitted:!1,feedback:""}),f(e)):c===!0&&f(!1)},[e,c]),O.useEffect(()=>{s(t)},[t]),O.useEffect(()=>{const g=i(`conversation-rating.overlay.bot-message.rate-feedback.value-${o}`);l(g!=null&&g.length?g:void 0)},[o,i]),O.useEffect(()=>{h.submitted?setTimeout(()=>p(!0),h.feedback.length?500:0):p(!1)},[h]);const S=g=>{var m,_;g.preventDefault();const d=((_=(m=E.current)==null?void 0:m.value)==null?void 0:_.trim())||"";n(o,d),u({submitted:!0,feedback:d})};return v.jsx("div",{className:k(Pe.rateOverlay,Wt.bottomSheet,"chat__conversationRating__overlay",{[Wt.bottomSheetOpen]:c===!0,[Wt.bottomSheetClose]:c===!1}),children:v.jsxs("form",{onSubmit:S,children:[v.jsxs("div",{className:k(Pe.body,"chat__conversationRating__overlay__body"),children:[v.jsxs("div",{children:[v.jsx("h2",{children:i("conversation-rating.overlay.title")}),v.jsxs("div",{className:k(Pe.starsDescriptionContainer),children:[v.jsx(f0,{value:o,size:"large",readonly:h.submitted,onChange:s}),v.jsxs("div",{className:k(Pe.starsDescription),children:[v.jsx("div",{children:i("conversation-rating.overlay.star.very-bad")}),v.jsx("div",{children:i("conversation-rating.overlay.star.very-good")})]})]})]}),v.jsx("div",{className:k(Pe.bubbles),children:e&&a&&v.jsxs(v.Fragment,{children:[v.jsx(Rh,{isFirstMessageBySender:!0,isLastMessageBySender:!y||!!h.feedback.length,children:v.jsx("div",{children:a})}),!!h.feedback.length&&v.jsx(yk,{children:h.feedback}),y&&v.jsx(Rh,{isFirstMessageBySender:!!h.feedback.length,isLastMessageBySender:!0,children:v.jsx("div",{children:i("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),v.jsxs("div",{className:k(Pe.footer,"chat__conversationRating__overlay__footer"),children:[!h.submitted&&v.jsx("input",{ref:E,placeholder:i("conversation-rating.overlay.guest-feedback.input-placeholder")}),v.jsx("div",{className:k(Pe.actions,"chat__conversationRating__overlay__footer__actions"),children:h.submitted?v.jsx("button",{type:"button",className:k(Ee.button,Ee.buttonPrimary),onClick:r,children:i("conversation-rating.overlay.action.close")}):v.jsx("button",{type:"submit",className:k(Ee.button,Ee.buttonPrimary),children:i("conversation-rating.overlay.action.submit")})})]})]})})},_k=({conversationRating:{enabled:e,rating:t},numberOfMessagesFromGuest:n,showRatingOverlay:r,setShowRatingOverlay:i,onRate:o})=>{const[s,a]=O.useState(0),l=h=>{a(h),i(!0)},c=()=>i(!1),f=!t&&n>=1;return e?v.jsxs(v.Fragment,{children:[v.jsx(gk,{visible:f,onRate:l}),v.jsx(vk,{visible:r,rating:s,onRate:o,onClose:c})]}):null},Ek="_inputWrapper_1o8hf_5",Sk="_messageInputWrapper_1o8hf_14",wk="_messageInput_1o8hf_14",bk="_buttons_1o8hf_36",xk="_button_1o8hf_36",or={inputWrapper:Ek,messageInputWrapper:Sk,messageInput:wk,buttons:bk,button:xk},Tk="_audioRecorder_xps9k_5",Ck="_recordButton_xps9k_10",kk="_submitButton_xps9k_37",Ok="_cancelButton_xps9k_64",Nk="_recorderIcon_xps9k_91",Ak="_pulse_xps9k_1",Rk="_spinning_xps9k_113",Pk="_spin_xps9k_113",Pn={audioRecorder:Tk,recordButton:Ck,submitButton:kk,cancelButton:Ok,recorderIcon:Nk,pulse:Ak,spinning:Rk,spin:Pk},Ph=2048,_s=16e3;class Ik extends Et.Component{constructor(n){super(n);W(this,"audioInput",null);W(this,"volume",null);W(this,"leftchannel",[]);W(this,"recorder",null);W(this,"recordingLength",0);W(this,"sampleRate",null);W(this,"mediaStream",null);this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(n){this.mediaStream=n,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(n)}initRecording(n){var r=window.AudioContext||window.webkitAudioContext,i=new r;this.sampleRate=i.sampleRate,this.volume=i.createGain(),this.audioInput=i.createMediaStreamSource(n),this.audioInput.connect(this.volume),this.recorder=i.createScriptProcessor(Ph,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(i.destination)}processRecordingInput(n){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const r=n.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(r)),this.recordingLength+=Ph}}handleClickSubmitAudio(){const n=Mk(this.leftchannel,this.recordingLength),r=Fk(n,this.sampleRate||0),i=Dk(r);this.props.onAudioRecorded(i),this.handleClickStopAudio()}handleClickStopAudio(){var n,r,i,o;this.setState({recordingState:"none"}),(n=this.audioInput)==null||n.disconnect(),(r=this.volume)==null||r.disconnect(),(i=this.recorder)==null||i.disconnect(),this.mediaStream&&((o=this.mediaStream)==null||o.getAudioTracks().forEach(s=>{s.stop()}))}render(){return v.jsxs("div",{className:Pn.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:k(Pn.recordButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&v.jsxs("svg",{className:Pn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&v.jsxs("div",{className:Pn.audioRecorder,children:[v.jsx("button",{className:k(Pn.cancelButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),v.jsx("div",{className:Pn.recorderIcon}),v.jsx("button",{className:k(Pn.submitButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const Dk=e=>{const t=new ArrayBuffer(44+e.length*2),n=new DataView(t);yo(n,0,"RIFF"),n.setUint32(4,44+e.length*2,!0),yo(n,8,"WAVE"),yo(n,12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,_s,!0),n.setUint32(28,_s*4,!0),n.setUint16(32,4,!0),n.setUint16(34,16,!0),yo(n,36,"data"),n.setUint32(40,e.length*2,!0);const r=e.length;let i=44;const o=1;for(var s=0;s<r;s++)n.setInt16(i,e[s]*(32767*o),!0),i+=2;return new Blob([n],{type:"audio/wav"})},yo=(e,t,n)=>{for(var r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},Mk=(e,t)=>{const n=new Float32Array(t);let r=0;const i=e.length;for(var o=0;o<i;o++){const s=e[o];n.set(s,r),r+=s.length}return n},Fk=(e,t)=>{if(_s===t)return e;const n=t/_s,r=Math.round(e.length/n),i=new Float32Array(r);let o=0,s=0;for(;o<i.length;){let l=Math.round((o+1)*n),c=0,f=0;for(var a=s;a<l&&a<e.length;a++)c+=e[a],f++;i[o]=c/f,o++,s=l}return i},Lk=({speechSupport:e,transcriptExportEnabled:t,disabled:n,onTextInput:r,onAudioRecorded:i,onOpenTranscriptExportModal:o})=>{const s=ft(),[a,l]=O.useState(!1),c=O.useRef(null),f=()=>{const p=c.current;p&&p.value.trim().length>=1&&r(p.value.trim())&&(p.value="",p.style.height="",l(!1),p.focus())},h=p=>{p.preventDefault(),f()},u=p=>{const E=p.target.value.trim();l(E.length>0),p.target.style.height="";const{scrollHeight:S}=p.target;p.target.style.height=`${S>150?150:S}px`},y=p=>{p.code==="Enter"&&!p.shiftKey&&(p.repeat||f(),p.preventDefault())};return v.jsxs("form",{className:k(or.inputWrapper,"chat__textInput"),onSubmit:h,children:[v.jsx("div",{className:or.messageInputWrapper,children:v.jsx("textarea",{id:"user_input",ref:c,className:or.messageInput,tabIndex:0,placeholder:s("message-input-placeholder"),onChange:u,onKeyDown:y,"aria-label":s("message-input-label")})}),v.jsxs("div",{className:k(or.buttons,"chat__buttons"),children:[!a&&t&&v.jsx("button",{type:"button",className:k(or.button,"chat__button"),"aria-label":s("message-input.actions.export-transcript.label"),"data-title":s("message-input.actions.export-transcript.label"),tabIndex:0,onClick:o,children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),a||!e||navigator.mediaDevices===void 0?v.jsx("button",{className:k(or.button,"chat__button"),type:"submit","aria-label":s("message-input.actions.submit.label"),"data-title":s("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):e&&navigator.mediaDevices!==void 0&&v.jsx(Ik,{translate:s,onAudioRecorded:i})]})]})},Bk="_quickReplies_11l22_1",jk="_quickReply_11l22_9",Ih={quickReplies:Bk,quickReply:jk},zk=({quickReplies:e,onQuickReplyClick:t})=>e.length?v.jsx("div",{className:k(Ih.quickReplies,"chat__quickReplies"),children:e.map(n=>v.jsx("button",{tabIndex:0,className:k(Ih.quickReply,Ee.button,"chat__button","chat__quickReply"),onClick:()=>t(n),children:n.label},n.label))}):null,Dh=5e3,Uk=1e3,Hk=({isBotTyping:e,quickReplies:t,speechSupport:n,transcriptExportEnabled:r,conversationRating:i,numberOfMessagesFromGuest:o,showRatingOverlay:s,setShowRatingOverlay:a,onTextInput:l,onRate:c,onQuickReplyClick:f,onAudioRecorded:h,onOpenTranscriptExportModal:u})=>{const[y,p]=O.useState(!1),E=O.useRef(),S=O.useRef(0);O.useEffect(()=>{if(y&&!e){const d=E.current?Date.now()-E.current:0;d>Dh?p(!1):setTimeout(()=>{p(!1)},Dh-d)}},[y,e]),O.useEffect(()=>{y&&(E.current=Date.now())},[y]);const g=d=>{const m=Date.now()-S.current<Uk;return e||m?(p(!0),!1):(l(d),S.current=Date.now(),!0)};return v.jsxs("div",{className:k(UC.inputContainer),children:[v.jsx(zk,{quickReplies:t,onQuickReplyClick:f}),v.jsx(GC,{visible:y}),!y&&v.jsx(_k,{conversationRating:i,numberOfMessagesFromGuest:o,onRate:c,showRatingOverlay:s,setShowRatingOverlay:a}),v.jsx(Lk,{onTextInput:g,onAudioRecorded:h,speechSupport:n,onOpenTranscriptExportModal:u,transcriptExportEnabled:r,disabled:y})]})},$k=({clientName:e,messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i,speechSupport:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l,onMessageFromUser:c,onRate:f,onQuickReplyClick:h,onButtonClick:u,onLinkClick:y,onAudioRecorded:p,onTranscriptExport:E,onPdfExport:S,onTranscriptItemReaction:g})=>{const d=bc(),m=$n(I=>I.connection.connectionState),[_,w]=O.useState(!1),[b,x]=O.useState(!1),T=s.email||s.pdf,M=t.filter(I=>I.sender.type===Dy.GUEST).length;return O.useEffect(()=>{if(m===zn.CONNECTED){const I=Cc.parse(window.location.search);d(Iy(e,I))}},[m,d]),v.jsxs("div",{children:[v.jsxs("div",{className:`${cx.chatcontent} ${_||b?Ee.accessabilityHidden:""}`,children:[v.jsx(EC,{messages:t,isBotTyping:r,showGeneralConditions:l,onButtonClick:u,onLinkClick:y,onTranscriptItemReaction:g}),v.jsx(Hk,{isBotTyping:r,quickReplies:r?[]:n,numberOfMessagesFromGuest:M,speechSupport:o,transcriptExportEnabled:T,conversationRating:_?{enabled:!1}:a,showRatingOverlay:b,setShowRatingOverlay:x,onRate:f,onQuickReplyClick:h,onTextInput:c,onAudioRecorded:p,onOpenTranscriptExportModal:()=>w(!_)}),v.jsx(RC,{})]}),T&&v.jsx(jC,{methods:s,visible:_,onEmailExport:E,onPdfExport:S,onClose:()=>w(!1)}),v.jsx(kC,{contentUrl:i})]})},Gk=e=>{const{messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i,speechSupport:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l}=e.chat;return{messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i,speechSupport:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l}},Vk=e=>({onRestartChat:(t,n)=>e(nf(t,n)),onMessageFromUser:t=>e(dy(t)),onRate:(t,n)=>e(tb(t,n)),onAudioRecorded:t=>e(qw(t)),onActionFromUser:t=>e(t),onQuickReplyClick:t=>e(fy(t)),onNluEvent:t=>e(my(t)),onButtonClick:t=>e(rb(t)),onLinkClick:t=>e(ib(t)),onTranscriptExport:t=>e(Yw(t)),onPdfExport:()=>e(Jw()),onTranscriptItemReaction:(t,n)=>e(j.transcriptItemGuestReaction(t,n||null))}),Wk=fE(Gk,Vk)($k),qk="_chatwindow_phukm_1",Xk="_chatcontent_phukm_13",Qk={chatwindow:qk,chatcontent:Xk},Kk="_container_1rets_2",Yk="_body_1rets_8",Zk="_intro_1rets_13",Jk="_footer_1rets_26",eO="_startChatButton_1rets_30",tO="_formFields_1rets_34",nO="_formField_1rets_34",rO="_radio_1rets_46",iO="_checkbox_1rets_53",oO="_input_1rets_61",sO="_inputLabel_1rets_91",aO="_selectWrapper_1rets_95",lO="_select_1rets_95",uO="_selectLabel_1rets_137",Ie={container:Kk,body:Yk,intro:Zk,footer:Jk,startChatButton:eO,formFields:tO,formField:nO,radio:rO,checkbox:iO,input:oO,inputLabel:sO,selectWrapper:aO,select:lO,selectLabel:uO},cO=({name:e,label:t,defaultValue:n,required:r,onChange:i})=>{const o=s=>{i(s.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:k(Ie.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[v.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:n==="true",required:r,onChange:o}),v.jsx("div",{children:t})]})},fO=({type:e,name:t,label:n,defaultValue:r,placeholder:i,required:o,multiple:s,min:a,max:l,pattern:c,onChange:f})=>{const h=u=>{f(u.target.value)};return v.jsxs("label",{className:k(Ie.input,"chat__startScreen__input"),htmlFor:t,children:[v.jsx("div",{className:k(Ie.inputLabel),children:n}),v.jsx("input",{type:e,id:t,name:t,defaultValue:r,placeholder:i,required:o,multiple:s,min:a,max:l,pattern:c,onChange:h})]})},dO=({name:e,value:t,label:n,defaultChecked:r,required:i,onChange:o})=>{const s=`${e}-${t}`,a=l=>{o(l.target.value)};return v.jsxs("label",{className:k(Ie.radio,"chat__startScreen__radio"),htmlFor:s,children:[v.jsx("input",{id:s,type:"radio",name:e,value:t,defaultChecked:r,required:i,onChange:a}),v.jsx("span",{className:k(Ie.label),children:n})]})},hO=({name:e,label:t,defaultValue:n,required:r,multiple:i,options:o,onChange:s})=>{const a=l=>{s(l.target.value)};return v.jsxs("label",{className:k(Ie.select,"chat__startScreen__select"),htmlFor:e,children:[v.jsx("div",{className:k(Ie.selectLabel),children:t}),v.jsx("div",{className:k(Ie.selectWrapper),children:v.jsx("select",{id:e,name:e,defaultValue:n,required:r,multiple:i,onChange:a,children:Object.entries(o||{}).map(([l,c])=>v.jsx("option",{value:l,selected:c===n,children:c}))})})]})},pO="start-screen.intro",mO="start-screen.start-chat",pt="start-screen.form",Mh=`${pt}.fields`,gO=()=>{const e=ft(),t=bc(),[n,r]=O.useState({}),i=()=>{const f=Object.entries(n).reduce((h,[u,y])=>({...h,[u]:y.value}),{});t(Wb(f))},o=e(pO),s=e(mO),a=O.useMemo(()=>{var f;return((f=e(Mh))==null?void 0:f.split(";").map(h=>h.trim()))??[]},[e(Mh)]);O.useEffect(()=>{r(a.reduce((f,h)=>({...f,[h]:vO(h,e)}),{}))},[a]);const l=f=>{f.preventDefault(),i()},c=f=>h=>{r(u=>({...u,[f]:{...u[f],value:h}}))};return v.jsxs("form",{onSubmit:l,className:k(Ie.container,"chat__startScreen"),children:[v.jsxs("div",{className:k(Ie.body,"chat__startScreen__body"),children:[o&&v.jsx("div",{className:k(Ie.intro,"chat__startScreen__intro"),children:v.jsx(_n,{options:{overrides:{a:yO}},children:o})}),v.jsx("div",{className:k(Ie.formFields,"chat__startScreen__fields"),children:Object.values(n).map(({type:f,name:h,label:u,placeholder:y,defaultValue:p,options:E,required:S,multiple:g,min:d,max:m,pattern:_})=>v.jsx("div",{className:k(Ie.formField,"chat__startScreen__field"),children:(()=>{switch(f){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:u}),Object.entries(E||{}).map(([w,b])=>v.jsx(dO,{name:h,value:w,label:b,defaultChecked:w===p,required:S,onChange:c(h)}))]});case"checkbox":return v.jsx(cO,{name:h,label:u,defaultValue:p,required:S,onChange:c(h)});case"select":return v.jsx(hO,{name:h,label:u,defaultValue:p,required:S,multiple:g,options:E,onChange:c(h)});default:return v.jsx(fO,{type:f,name:h,label:u,placeholder:y,defaultValue:p,required:S,multiple:g,min:d,max:m,pattern:_,onChange:c(h)})}})()},h))})]}),v.jsx("div",{className:k(Ie.footer,"chat__startScreen__footer"),children:v.jsx("button",{type:"submit",className:k(Ee.button,Ee.buttonPrimary,Ie.startChatButton),children:s})})]})},yO=({title:e,href:t,children:n})=>v.jsx("a",{href:t,title:e,target:"_blank",rel:"noopener noreferrer",children:n}),vO=(e,t)=>{const n=t(`${pt}.${e}.type`)||"text",r=t(`${pt}.${e}.required`)==="true",i=t(`${pt}.${e}.multiple`)==="true",o=t(`${pt}.${e}.placeholder`),s=t(`${pt}.${e}.label`)||"",a=t(`${pt}.${e}.defaultValue`),l=t(`${pt}.${e}.min`),c=t(`${pt}.${e}.max`),f=t(`${pt}.${e}.pattern`),h=EO(t(`${pt}.${e}.options`));return{name:e,label:s,placeholder:o,value:_O(n,a,h)||"",defaultValue:a,options:h,type:n,required:r,multiple:i,min:l,max:c,pattern:f}},_O=(e,t,n)=>t||e==="select"&&Object.keys(n)[0]||"",EO=(e="")=>e.split(";").map(t=>t.trim()).reduce((t,n)=>{const[r,i]=n.split(":").map(o=>o.trim());return{...t,[r]:i}},{}),SO=()=>{const e=Bs();O.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},sr={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},wO=({clientName:e})=>{SO();const t=bc(),n=$n(f=>f.intl.messages),r=ft(),i=$n(f=>f.startScreen.useStartScreen),o=$n(f=>f.startScreen.startScreenStatus),[s,a]=O.useState(void 0);O.useEffect(()=>{const f=Cc.parse(window.location.search);f.cssClassName&&a(f.cssClassName);const h=u=>{switch(u.data.type){case sr.TRIGGER_ACTION:t(u.data.action);break;case sr.TRIGGER_STORY:t(my(u.data.story));break;case sr.ON_CHAT_WINDOW_OPEN:t({type:"webclient.chatwindow.opened"});break;case sr.ON_CHAT_WINDOW_CLOSE:t({type:"webclient.chatwindow.closed"});break;case sr.CHAT_MESSAGE_FROM_GUEST:t(dy(u.data.text));break;case sr.RESTART_CHAT:t(nf(e,f));break}};return t(Yb(e,f)),window.addEventListener("message",u=>h(u),!1),()=>window.removeEventListener("message",h)},[e,t]),O.useEffect(()=>{const f=r("header.restart-chat"),h=r("header.close-chat");t(ob({header:{restartChat:f,closeChat:h}}))},[n,t,r]);const l=i===void 0,c=i===!1||o==="HIDDEN";return v.jsx("div",{className:k(Qk.chatwindow,"chat__chatwindow",s),children:l?null:c?v.jsx(Wk,{clientName:e}):v.jsx(gO,{})})},bO=()=>{const e=Kg(),t=$n(r=>r.intl.locale),n=$n(r=>r.intl.messages);return v.jsx(LS,{locale:t,messages:n,children:v.jsx("div",{className:jS.app,children:v.jsx(wO,{clientName:e})})})};function xO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ff=xO,TO=typeof X=="object"&&X&&X.Object===Object&&X,CO=TO,kO=CO,OO=typeof self=="object"&&self&&self.Object===Object&&self,NO=kO||OO||Function("return this")(),d0=NO,AO=d0,RO=function(){return AO.Date.now()},PO=RO,IO=/\s/;function DO(e){for(var t=e.length;t--&&IO.test(e.charAt(t)););return t}var MO=DO,FO=MO,LO=/^\s+/;function BO(e){return e&&e.slice(0,FO(e)+1).replace(LO,"")}var jO=BO,zO=d0,UO=zO.Symbol,h0=UO,Fh=h0,p0=Object.prototype,HO=p0.hasOwnProperty,$O=p0.toString,ei=Fh?Fh.toStringTag:void 0;function GO(e){var t=HO.call(e,ei),n=e[ei];try{e[ei]=void 0;var r=!0}catch{}var i=$O.call(e);return r&&(t?e[ei]=n:delete e[ei]),i}var VO=GO,WO=Object.prototype,qO=WO.toString;function XO(e){return qO.call(e)}var QO=XO,Lh=h0,KO=VO,YO=QO,ZO="[object Null]",JO="[object Undefined]",Bh=Lh?Lh.toStringTag:void 0;function eN(e){return e==null?e===void 0?JO:ZO:Bh&&Bh in Object(e)?KO(e):YO(e)}var tN=eN;function nN(e){return e!=null&&typeof e=="object"}var rN=nN,iN=tN,oN=rN,sN="[object Symbol]";function aN(e){return typeof e=="symbol"||oN(e)&&iN(e)==sN}var lN=aN,uN=jO,jh=ff,cN=lN,zh=NaN,fN=/^[-+]0x[0-9a-f]+$/i,dN=/^0b[01]+$/i,hN=/^0o[0-7]+$/i,pN=parseInt;function mN(e){if(typeof e=="number")return e;if(cN(e))return zh;if(jh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=jh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uN(e);var n=dN.test(e);return n||hN.test(e)?pN(e.slice(2),n?2:8):fN.test(e)?zh:+e}var gN=mN,yN=ff,Wa=PO,Uh=gN,vN="Expected a function",_N=Math.max,EN=Math.min;function SN(e,t,n){var r,i,o,s,a,l,c=0,f=!1,h=!1,u=!0;if(typeof e!="function")throw new TypeError(vN);t=Uh(t)||0,yN(n)&&(f=!!n.leading,h="maxWait"in n,o=h?_N(Uh(n.maxWait)||0,t):o,u="trailing"in n?!!n.trailing:u);function y(b){var x=r,T=i;return r=i=void 0,c=b,s=e.apply(T,x),s}function p(b){return c=b,a=setTimeout(g,t),f?y(b):s}function E(b){var x=b-l,T=b-c,M=t-x;return h?EN(M,o-T):M}function S(b){var x=b-l,T=b-c;return l===void 0||x>=t||x<0||h&&T>=o}function g(){var b=Wa();if(S(b))return d(b);a=setTimeout(g,E(b))}function d(b){return a=void 0,u&&r?y(b):(r=i=void 0,s)}function m(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function _(){return a===void 0?s:d(Wa())}function w(){var b=Wa(),x=S(b);if(r=arguments,i=this,l=b,x){if(a===void 0)return p(l);if(h)return clearTimeout(a),a=setTimeout(g,t),y(l)}return a===void 0&&(a=setTimeout(g,t)),s}return w.cancel=m,w.flush=_,w}var wN=SN,bN=wN,xN=ff,TN="Expected a function";function CN(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(TN);return xN(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),bN(e,t,{leading:r,maxWait:t,trailing:i})}var kN=CN;const ON=Su(kN);function tr(e,t){var n,r;if(typeof t=="function")r=t(e),r!==void 0&&(e=r);else if(Array.isArray(t))for(n=0;n<t.length;n++)r=t[n](e),r!==void 0&&(e=r);return e}function NN(e,t){return e[0]==="-"&&Array.isArray(t)&&/^-\d+$/.test(e)?t.length+parseInt(e,10):e}function AN(e){return/^\d+$/.test(e)}function Do(e){return Object.prototype.toString.call(e)==="[object Object]"}function ai(e){return Object(e)===e}function Mo(e){return Object.keys(e).length===0}var RN=["__proto__","prototype","constructor"],PN=function(e){return RN.indexOf(e)===-1};function Zs(e,t){e.indexOf("[")>=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t),r=n.filter(PN);if(r.length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var Hh=Object.prototype.hasOwnProperty;function V(e,t,n,r){if(!(this instanceof V))return new V(e,t,n,r);typeof t>"u"&&(t=!1),typeof n>"u"&&(n=!0),typeof r>"u"&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var Fr=new V(".",!1,!0,!0);function xt(e){return function(){return Fr[e].apply(Fr,arguments)}}V.prototype._fill=function(e,t,n,r){var i=e.shift();if(e.length>0){if(t[i]=t[i]||(this.useArray&&AN(e[0])?[]:{}),!ai(t[i]))if(this.override)t[i]={};else{if(!(ai(n)&&Mo(n)))throw new Error("Trying to redefine `"+i+"` which is a "+typeof t[i]);return}this._fill(e,t[i],n,r)}else{if(!this.override&&ai(t[i])&&!Mo(t[i])){if(!(ai(n)&&Mo(n)))throw new Error("Trying to redefine non-empty obj['"+i+"']");return}t[i]=tr(n,r)}};V.prototype.object=function(e,t){var n=this;return Object.keys(e).forEach(function(r){var i=t===void 0?null:t[r],o=Zs(r,n.separator).join(n.separator);o.indexOf(n.separator)!==-1?(n._fill(o.split(n.separator),e,e[r],i),delete e[r]):e[r]=tr(e[r],i)}),e};V.prototype.str=function(e,t,n,r){var i=Zs(e,this.separator).join(this.separator);return e.indexOf(this.separator)!==-1?this._fill(i.split(this.separator),n,t,r):n[e]=tr(t,r),n};V.prototype.pick=function(e,t,n,r){var i,o,s,a,l;for(o=Zs(e,this.separator),i=0;i<o.length;i++)if(a=NN(o[i],t),t&&typeof t=="object"&&a in t){if(i===o.length-1)return n?(s=t[a],r&&Array.isArray(t)?t.splice(a,1):delete t[a],Array.isArray(t)&&(l=o.slice(0,-1).join("."),this.cleanup.indexOf(l)===-1&&this.cleanup.push(l)),s):t[a];t=t[a]}else return;return n&&Array.isArray(t)&&(t=t.filter(function(c){return c!==void 0})),t};V.prototype.delete=function(e,t){return this.remove(e,t,!0)};V.prototype.remove=function(e,t,n){var r;if(this.cleanup=[],Array.isArray(e)){for(r=0;r<e.length;r++)this.pick(e[r],t,!0,n);return n||this._cleanup(t),t}else return this.pick(e,t,!0,n)};V.prototype._cleanup=function(e){var t,n,r,i;if(this.cleanup.length){for(n=0;n<this.cleanup.length;n++)r=this.cleanup[n].split("."),i=r.splice(0,-1).join("."),t=i?this.pick(i,e):e,t=t[r[0]].filter(function(o){return o!==void 0}),this.set(this.cleanup[n],t,e);this.cleanup=[]}};V.prototype.del=V.prototype.remove;V.prototype.move=function(e,t,n,r,i){return typeof r=="function"||Array.isArray(r)?this.set(t,tr(this.pick(e,n,!0),r),n,i):(i=r,this.set(t,this.pick(e,n,!0),n,i)),n};V.prototype.transfer=function(e,t,n,r,i,o){return typeof i=="function"||Array.isArray(i)?this.set(t,tr(this.pick(e,n,!0),i),r,o):(o=i,this.set(t,this.pick(e,n,!0),r,o)),r};V.prototype.copy=function(e,t,n,r,i,o){return typeof i=="function"||Array.isArray(i)?this.set(t,tr(JSON.parse(JSON.stringify(this.pick(e,n,!1))),i),r,o):(o=i,this.set(t,this.pick(e,n,!1),r,o)),r};V.prototype.set=function(e,t,n,r){var i,o,s,a;if(typeof t>"u")return n;for(s=Zs(e,this.separator),i=0;i<s.length;i++){if(a=s[i],i===s.length-1)if(r&&Do(t)&&Do(n[a]))for(o in t)Hh.call(t,o)&&(n[a][o]=t[o]);else if(r&&Array.isArray(n[a])&&Array.isArray(t))for(var l=0;l<t.length;l++)n[s[i]].push(t[l]);else n[a]=t;else(!Hh.call(n,a)||!Do(n[a])&&!Array.isArray(n[a]))&&(/^\d+$/.test(s[i+1])?n[a]=[]:n[a]={});n=n[a]}return n};V.prototype.transform=function(e,t,n){return t=t||{},n=n||{},Object.keys(e).forEach((function(r){this.set(e[r],this.pick(r,t),n)}).bind(this)),n};V.prototype.dot=function(e,t,n){t=t||{},n=n||[];var r=Array.isArray(e);return Object.keys(e).forEach((function(i){var o=r&&this.useBrackets?"["+i+"]":i;if(ai(e[i])&&(Do(e[i])&&!Mo(e[i])||Array.isArray(e[i])&&!this.keepArray&&e[i].length!==0))if(r&&this.useBrackets){var s=n[n.length-1]||"";return this.dot(e[i],t,n.slice(0,-1).concat(s+o))}else return this.dot(e[i],t,n.concat(o));else r&&this.useBrackets?t[n.join(this.separator).concat("["+i+"]")]=e[i]:t[n.concat(o).join(this.separator)]=e[i]}).bind(this)),t};V.pick=xt("pick");V.move=xt("move");V.transfer=xt("transfer");V.transform=xt("transform");V.copy=xt("copy");V.object=xt("object");V.str=xt("str");V.set=xt("set");V.delete=xt("delete");V.del=V.remove=xt("remove");V.dot=xt("dot");["override","overwrite"].forEach(function(e){Object.defineProperty(V,e,{get:function(){return Fr.override},set:function(t){Fr.override=!!t}})});["useArray","keepArray","useBrackets"].forEach(function(e){Object.defineProperty(V,e,{get:function(){return Fr[e]},set:function(t){Fr[e]=t}})});V._process=tr;var IN=V;const m0={"message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
91
91
 
92
92
  - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
93
93
  - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.restart-chat":"Chat neu starten","header.close-chat":"Chat minimieren"},DN={"message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
@@ -99,5 +99,5 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
99
99
  - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.restart-chat":"Redémarrer le chat","header.close-chat":"Minimiser le chat"},FN={"message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
100
100
 
101
101
  - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
102
- - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.close-chat":"Ridurre al minimo la chat"},LN=["de","en","fr","it"],g0={locale:"de",messages:m0},BN=(e,t)=>{if(LN.includes(e)){const n=jN(e),r=IN.dot(t);return{...n,...r}}return t},jN=e=>{switch(e.toString()){case"en":return DN;case"fr":return MN;case"it":return FN;default:return m0}},zN=(e=UN,t)=>{switch(t.type){case Yc:return Object.assign({},e,{connectionState:zn.CONNECTING});case Zc:return Object.assign({},e,{connectionState:zn.CONNECTED});case Jc:return Object.assign({},e,{connectionState:zn.DISCONNECTED});case ef:return Object.assign({},e,{connectionState:zn.RECONNECTED});case tf:return Object.assign({},e,{sessionId:t.sessionId});case qs:return Object.assign({},e,{sessionId:t.payload.sessionId,userId:t.payload.userId});case Xs:return Object.assign({},e,{sessionId:void 0});default:return e}},UN={connectionState:zn.DISCONNECTED,sessionId:void 0,userId:void 0},HN=(e=Gh,t)=>{switch(t.type){case Py:return Gh;case qs:return ar({type:"webclient.chat.started"}),e;case Xs:return ar({type:"webclient.chat.ended"}),e;case j.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case j.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case j.ActionTypes.MESSAGE_FROM_GUEST:case j.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return $h(e,t.message);case j.ActionTypes.MESSAGE_TO_GUEST:ar(t);const n=Object.assign({},t.message,{_id:t.meta.actionId}),r=e.messages.filter(l=>l._id===t.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:r?e.messages:e.messages.concat([n]),quickReplies:n.quickReplies?n.quickReplies:[]});case zc:{const l=t.messages,c=l.length?l[l.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:l,quickReplies:(c==null?void 0:c.quickReplies)||[]})}case Hs:return ar(t.message),e;case j.ActionTypes.EVENT_TO_GUEST:return ar(t.event),e;case j.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:t.payload.parameters.contentUrl});case j.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case j.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:t.payload.locale});case hy:return ar(t),e;case Hc:return Object.assign({},e,{speechSupport:!0});case Gc:const i=new j.TextMessage(t.transcription,new j.GuestUser),o=Object.assign({},i,{_id:crypto.randomUUID()});return $h(e,o);case $c:return Object.assign({},e,{transcriptExportEnabled:t.methods});case Vc:return Object.assign({},e,{showGeneralConditions:!0});case j.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:const s=e.messages.map(l=>l._id===t.payload.actionId?Object.assign({},l,{reaction:t.payload.reaction}):l);return Object.assign({},e,{messages:s});case Wc:const a={enabled:!0,rating:t.payload.rating};return Object.assign({},e,{conversationRating:a});case j.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const l={...e.conversationRating,rating:t.payload};return Object.assign({},e,{conversationRating:l})}default:return e}},$h=(e,t)=>{const n=e.messages[e.messages.length-1],r=(n==null?void 0:n.text)===t.text;return n&&n.sender.type===t.sender.type&&r?e:Object.assign({},e,{messages:e.messages.concat([t]),quickReplies:[]})},ar=e=>{var t;$N()?(t=window.top)==null||t.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},$N=()=>typeof window<"u"&&window.self!==window.top,Gh={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1}},y0=Ay({name:"intl",initialState:g0,reducers:{updateIntl:(e,t)=>{e.locale=t.payload.language,e.messages=t.payload.messages}}}),{updateIntl:GN}=y0.actions,VN=y0.reducer,WN=vy({chat:HN,startScreen:Xw,connection:zN,intl:VN}),v0="bf-webclient-state-last-saved-at",_0="bf-webclient-state",qN=e=>{try{if(!KN())return;const t=Vh(e,v0);if(QN(t))return;{const n=Vh(e,_0);return n===null?void 0:JSON.parse(n)}}catch(t){console.error(t);return}},XN=(e,t)=>{try{const n=JSON.stringify(t);Wh(e,_0,n);let r=new Date().toISOString();Wh(e,v0,r)}catch(n){console.error(n)}},QN=e=>{if(e===null)return!1;let t=new Date(e);return t.setHours(t.getHours()+12),new Date>t},KN=()=>typeof localStorage<"u",Vh=(e,t)=>localStorage.getItem(`${e}_${t}`),Wh=(e,t,n)=>localStorage.setItem(`${e}_${t}`,n),Lt=Object.create(null);Lt.open="0";Lt.close="1";Lt.ping="2";Lt.pong="3";Lt.message="4";Lt.upgrade="5";Lt.noop="6";const Fo=Object.create(null);Object.keys(Lt).forEach(e=>{Fo[Lt[e]]=e});const pu={type:"error",data:"parser error"},E0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",S0=typeof ArrayBuffer=="function",b0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,df=({type:e,data:t},n,r)=>E0&&t instanceof Blob?n?r(t):qh(t,r):S0&&(t instanceof ArrayBuffer||b0(t))?n?r(t):qh(new Blob([t]),r):r(Lt[e]+(t||"")),qh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Xh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let qa;function YN(e,t){if(E0&&e.data instanceof Blob)return e.data.arrayBuffer().then(Xh).then(t);if(S0&&(e.data instanceof ArrayBuffer||b0(e.data)))return t(Xh(e.data));df(e,!1,n=>{qa||(qa=new TextEncoder),t(qa.encode(n))})}const Qh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",li=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Qh.length;e++)li[Qh.charCodeAt(e)]=e;const ZN=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),f=new Uint8Array(c);for(r=0;r<n;r+=4)o=li[e.charCodeAt(r)],s=li[e.charCodeAt(r+1)],a=li[e.charCodeAt(r+2)],l=li[e.charCodeAt(r+3)],f[i++]=o<<2|s>>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|l&63;return c},JN=typeof ArrayBuffer=="function",hf=(e,t)=>{if(typeof e!="string")return{type:"message",data:w0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:eA(e.substring(1),t)}:Fo[n]?e.length>1?{type:Fo[n],data:e.substring(1)}:{type:Fo[n]}:pu},eA=(e,t)=>{if(JN){const n=ZN(e);return w0(n,t)}else return{base64:!0,data:e}},w0=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},x0="",tA=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{df(o,!1,a=>{r[s]=a,++i===n&&t(r.join(x0))})})},nA=(e,t)=>{const n=e.split(x0),r=[];for(let i=0;i<n.length;i++){const o=hf(n[i],t);if(r.push(o),o.type==="error")break}return r};function rA(){return new TransformStream({transform(e,t){YN(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Xa;function vo(e){return e.reduce((t,n)=>t+n.length,0)}function _o(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function iA(e,t){Xa||(Xa=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(vo(n)<1)break;const l=_o(n,1);o=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(vo(n)<2)break;const l=_o(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(vo(n)<8)break;const l=_o(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),f=c.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(pu);break}i=f*Math.pow(2,32)+c.getUint32(4),r=3}else{if(vo(n)<i)break;const l=_o(n,i);a.enqueue(hf(o?l:Xa.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(pu);break}}}})}const T0=4;function de(e){if(e)return oA(e)}function oA(e){for(var t in de.prototype)e[t]=de.prototype[t];return e}de.prototype.on=de.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};de.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};de.prototype.off=de.prototype.removeListener=de.prototype.removeAllListeners=de.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};de.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};de.prototype.emitReserved=de.prototype.emit;de.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};de.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Js=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),rt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),sA="arraybuffer";function C0(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const aA=rt.setTimeout,lA=rt.clearTimeout;function ea(e,t){t.useNativeTimers?(e.setTimeoutFn=aA.bind(rt),e.clearTimeoutFn=lA.bind(rt)):(e.setTimeoutFn=rt.setTimeout.bind(rt),e.clearTimeoutFn=rt.clearTimeout.bind(rt))}const uA=1.33;function cA(e){return typeof e=="string"?fA(e):Math.ceil((e.byteLength||e.size)*uA)}function fA(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function k0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function dA(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function hA(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class pA extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class pf extends de{constructor(t){super(),this.writable=!1,ea(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new pA(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=hf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=dA(t);return n.length?"?"+n:""}}class mA extends pf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};nA(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,tA(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=k0()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let O0=!1;try{O0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const gA=O0;function yA(){}class vA extends mA{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Mt extends de{constructor(t,n,r){super(),this.createRequest=t,ea(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=C0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Mt.requestsCount++,Mt.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=yA,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Mt.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Mt.requestsCount=0;Mt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Kh);else if(typeof addEventListener=="function"){const e="onpagehide"in rt?"pagehide":"unload";addEventListener(e,Kh,!1)}}function Kh(){for(let e in Mt.requests)Mt.requests.hasOwnProperty(e)&&Mt.requests[e].abort()}const _A=function(){const e=N0({xdomain:!1});return e&&e.responseType!==null}();class EA extends vA{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=_A&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Mt(N0,this.uri(),t)}}function N0(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||gA))return new XMLHttpRequest}catch{}if(!t)try{return new rt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const A0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class SA extends pf{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=A0?{}:C0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;df(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&Js(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=k0()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Qa=rt.WebSocket||rt.MozWebSocket;class bA extends SA{createSocket(t,n,r){return A0?new Qa(t,n,r):n?new Qa(t,n):new Qa(t)}doWrite(t,n){this.ws.send(n)}}class wA extends pf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=iA(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=rA();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Js(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const xA={websocket:bA,webtransport:wA,polling:EA},TA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,CA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function mu(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=TA.exec(e||""),o={},s=14;for(;s--;)o[CA[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=kA(o,o.path),o.queryKey=OA(o,o.query),o}function kA(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function OA(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const gu=typeof addEventListener=="function"&&typeof removeEventListener=="function",Lo=[];gu&&addEventListener("offline",()=>{Lo.forEach(e=>e())},!1);class En extends de{constructor(t,n){if(super(),this.binaryType=sA,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=mu(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=mu(n.host).host);ea(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=hA(this.opts.query)),gu&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Lo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=T0,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&En.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",En.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=cA(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Js(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(En.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),gu&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Lo.indexOf(this._offlineEventListener);r!==-1&&Lo.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}En.protocol=T0;class NA extends En{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;En.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;En.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=n.name,this.emitReserved("upgradeError",u)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const u=new Error("probe error: "+h);u.transport=n.name,o(),this.emitReserved("upgradeError",u)};function a(){s("transport closed")}function l(){s("socket closed")}function c(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let AA=class extends NA{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>xA[i]).filter(i=>!!i)),super(t,r)}};function RA(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=mu(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const PA=typeof ArrayBuffer=="function",IA=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,R0=Object.prototype.toString,DA=typeof Blob=="function"||typeof Blob<"u"&&R0.call(Blob)==="[object BlobConstructor]",MA=typeof File=="function"||typeof File<"u"&&R0.call(File)==="[object FileConstructor]";function mf(e){return PA&&(e instanceof ArrayBuffer||IA(e))||DA&&e instanceof Blob||MA&&e instanceof File}function Bo(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Bo(e[n]))return!0;return!1}if(mf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Bo(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Bo(e[n]))return!0;return!1}function FA(e){const t=[],n=e.data,r=e;return r.data=yu(n,t),r.attachments=t.length,{packet:r,buffers:t}}function yu(e,t){if(!e)return e;if(mf(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=yu(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=yu(e[r],t));return n}return e}function LA(e,t){return e.data=vu(e.data,t),delete e.attachments,e}function vu(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=vu(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=vu(e[n],t));return e}const BA=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],jA=5;var H;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(H||(H={}));class zA{constructor(t){this.replacer=t}encode(t){return(t.type===H.EVENT||t.type===H.ACK)&&Bo(t)?this.encodeAsBinary({type:t.type===H.EVENT?H.BINARY_EVENT:H.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===H.BINARY_EVENT||t.type===H.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=FA(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function Yh(e){return Object.prototype.toString.call(e)==="[object Object]"}class gf extends de{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===H.BINARY_EVENT;r||n.type===H.BINARY_ACK?(n.type=r?H.EVENT:H.ACK,this.reconstructor=new UA(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(mf(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(H[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===H.BINARY_EVENT||r.type===H.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(gf.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case H.CONNECT:return Yh(n);case H.DISCONNECT:return n===void 0;case H.CONNECT_ERROR:return typeof n=="string"||Yh(n);case H.EVENT:case H.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&BA.indexOf(n[0])===-1);case H.ACK:case H.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class UA{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=LA(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const HA=Object.freeze(Object.defineProperty({__proto__:null,Decoder:gf,Encoder:zA,get PacketType(){return H},protocol:jA},Symbol.toStringTag,{value:"Module"}));function yt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const $A=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class P0 extends de{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[yt(t,"open",this.onopen.bind(this)),yt(t,"packet",this.onpacket.bind(this)),yt(t,"error",this.onerror.bind(this)),yt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if($A.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:H.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const f=this.ids++,h=n.pop();this._registerAckCallback(f,h),s.id=f}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i),s=(...a)=>{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,a)=>s?i(s):r(a);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:H.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case H.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case H.EVENT:case H.BINARY_EVENT:this.onevent(t);break;case H.ACK:case H.BINARY_ACK:this.onack(t);break;case H.DISCONNECT:this.ondisconnect();break;case H.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:H.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:H.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function zr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}zr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};zr.prototype.reset=function(){this.attempts=0};zr.prototype.setMin=function(e){this.ms=e};zr.prototype.setMax=function(e){this.max=e};zr.prototype.setJitter=function(e){this.jitter=e};class _u extends de{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ea(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new zr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||HA;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new AA(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=yt(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=yt(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(yt(t,"ping",this.onping.bind(this)),yt(t,"data",this.ondata.bind(this)),yt(t,"error",this.onerror.bind(this)),yt(t,"close",this.onclose.bind(this)),yt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Js(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new P0(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ti={};function jo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=RA(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=ti[i]&&o in ti[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new _u(r,t):(ti[i]||(ti[i]=new _u(r,t)),l=ti[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(jo,{Manager:_u,Socket:P0,io:jo,connect:jo});const GA=[j.ActionTypes.MESSAGE_TO_GUEST,j.ActionTypes.EVENT_TO_GUEST,j.ActionTypes.TYPING_ON,j.ActionTypes.TYPING_OFF,j.ActionTypes.RESTART_CHAT_REQUEST,...Kw,...Wb,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],VA=({dispatch:e,getState:t})=>n=>{let r=null;return i=>{let o=n(i);if(i.type===Kc){r!=null&&r.disconnect(),e(Jw());const s=`/chat?${Cc.stringify(i.querystrings)}`;r=jo(`/${i.clientName}${s}`),r.on("action",e),r.on("connect",()=>e(ex())),r.on("disconnect",()=>e(tx())),r.on("reconnect",()=>e(nx())),r.on("set-use-start-screen",a=>{e(a?Gw():Vw())}),r.on("set-translations",(a,l)=>{e(GN({language:a,messages:BN(a,l)}))}),r.on("enable-speech-support",()=>e(Xb())),r.on("enable-transcript-export",a=>e(Kb(a))),r.on("enable-conversation-rating",a=>e(ew(a))),r.on("speech-transcription",a=>e(Qb(a))),r.on("restore-client-state",a=>{e(Zw(a.sessionId)),e(nw(a.messages))}),r.on("expand-window",({devices:a})=>e({type:hy,devices:a})),r.on("show-general-conditions",()=>e(Zb())),r.on("restart-chat",()=>{e(nf(i.clientName,i.querystrings))})}else if(i.type===qs)r==null||r.emit("start-chat",i.payload);else if(i.type===Xs)r==null||r.emit("terminate-session",i.payload);else if(i.type===Vb)r==null||r.emit("get-started",JSON.stringify(i));else if(i.type===Uc)r==null||r.emit("audio-message",i.buffer);else if(i.type===j.ActionTypes.CONVERSATION_RATING_FROM_GUEST)r==null||r.emit("conversation-rating",i.payload);else if(i.type===py){const{connection:{sessionId:s}}=t();window.location.href=`/transcript-pdf/${s}`}else GA.indexOf(i.type)===-1&&i.meta===void 0&&r&&r.emit("action",JSON.stringify(i));return o}},I0=Kg(),WA={...qN(I0),intl:g0},Eu=Rw({middleware:e=>e().concat(VA),reducer:WN,preloadedState:WA});Eu.subscribe(ON(()=>{const e=Eu.getState();XN(I0,{connection:e.connection,startScreen:e.startScreen})},1e3));const qA=document.getElementById("root"),XA=cg(qA);XA.render(v.jsx(hE,{store:Eu,children:v.jsx(wO,{})}));
103
- //# sourceMappingURL=index-BbImyVqa.js.map
102
+ - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.close-chat":"Ridurre al minimo la chat"},LN=["de","en","fr","it"],g0={locale:"de",messages:m0},BN=(e,t)=>{if(LN.includes(e)){const n=jN(e),r=IN.dot(t);return{...n,...r}}return t},jN=e=>{switch(e.toString()){case"en":return DN;case"fr":return MN;case"it":return FN;default:return m0}},zN=(e=UN,t)=>{switch(t.type){case Yc:return Object.assign({},e,{connectionState:zn.CONNECTING});case Zc:return Object.assign({},e,{connectionState:zn.CONNECTED});case Jc:return Object.assign({},e,{connectionState:zn.DISCONNECTED});case ef:return Object.assign({},e,{connectionState:zn.RECONNECTED});case tf:return Object.assign({},e,{sessionId:t.sessionId});case qs:return Object.assign({},e,{sessionId:t.payload.sessionId,userId:t.payload.userId});case Xs:return Object.assign({},e,{sessionId:void 0});default:return e}},UN={connectionState:zn.DISCONNECTED,sessionId:void 0,userId:void 0},HN=(e=Gh,t)=>{switch(t.type){case Py:return Gh;case qs:return ar({type:"webclient.chat.started"}),e;case Xs:return ar({type:"webclient.chat.ended"}),e;case j.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case j.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case j.ActionTypes.MESSAGE_FROM_GUEST:case j.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return $h(e,t.message);case j.ActionTypes.MESSAGE_TO_GUEST:ar(t);const n=Object.assign({},t.message,{_id:t.meta.actionId}),r=e.messages.filter(l=>l._id===t.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:r?e.messages:e.messages.concat([n]),quickReplies:n.quickReplies?n.quickReplies:[]});case zc:{const l=t.messages,c=l.length?l[l.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:l,quickReplies:(c==null?void 0:c.quickReplies)||[]})}case Hs:return ar(t.message),e;case j.ActionTypes.EVENT_TO_GUEST:return ar(t.event),e;case j.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:t.payload.parameters.contentUrl});case j.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case j.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:t.payload.locale});case hy:return ar(t),e;case Hc:return Object.assign({},e,{speechSupport:!0});case Gc:const i=new j.TextMessage(t.transcription,new j.GuestUser),o=Object.assign({},i,{_id:crypto.randomUUID()});return $h(e,o);case $c:return Object.assign({},e,{transcriptExportEnabled:t.methods});case Vc:return Object.assign({},e,{showGeneralConditions:!0});case j.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:const s=e.messages.map(l=>l._id===t.payload.actionId?Object.assign({},l,{reaction:t.payload.reaction}):l);return Object.assign({},e,{messages:s});case Wc:const a={enabled:!0,rating:t.payload.rating};return Object.assign({},e,{conversationRating:a});case j.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const l={...e.conversationRating,rating:t.payload};return Object.assign({},e,{conversationRating:l})}default:return e}},$h=(e,t)=>{const n=e.messages[e.messages.length-1],r=(n==null?void 0:n.text)===t.text;return n&&n.sender.type===t.sender.type&&r?e:Object.assign({},e,{messages:e.messages.concat([t]),quickReplies:[]})},ar=e=>{var t;$N()?(t=window.top)==null||t.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},$N=()=>typeof window<"u"&&window.self!==window.top,Gh={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1}},y0=Ay({name:"intl",initialState:g0,reducers:{updateIntl:(e,t)=>{e.locale=t.payload.language,e.messages=t.payload.messages}}}),{updateIntl:GN}=y0.actions,VN=y0.reducer,WN=vy({chat:HN,startScreen:Xb,connection:zN,intl:VN}),v0="bf-webclient-state-last-saved-at",_0="bf-webclient-state",qN=e=>{try{if(!KN())return;const t=Vh(e,v0);if(QN(t))return;{const n=Vh(e,_0);return n===null?void 0:JSON.parse(n)}}catch(t){console.error(t);return}},XN=(e,t)=>{try{const n=JSON.stringify(t);Wh(e,_0,n);let r=new Date().toISOString();Wh(e,v0,r)}catch(n){console.error(n)}},QN=e=>{if(e===null)return!1;let t=new Date(e);return t.setHours(t.getHours()+12),new Date>t},KN=()=>typeof localStorage<"u",Vh=(e,t)=>localStorage.getItem(`${e}_${t}`),Wh=(e,t,n)=>localStorage.setItem(`${e}_${t}`,n),Lt=Object.create(null);Lt.open="0";Lt.close="1";Lt.ping="2";Lt.pong="3";Lt.message="4";Lt.upgrade="5";Lt.noop="6";const Fo=Object.create(null);Object.keys(Lt).forEach(e=>{Fo[Lt[e]]=e});const pu={type:"error",data:"parser error"},E0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",S0=typeof ArrayBuffer=="function",w0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,df=({type:e,data:t},n,r)=>E0&&t instanceof Blob?n?r(t):qh(t,r):S0&&(t instanceof ArrayBuffer||w0(t))?n?r(t):qh(new Blob([t]),r):r(Lt[e]+(t||"")),qh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Xh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let qa;function YN(e,t){if(E0&&e.data instanceof Blob)return e.data.arrayBuffer().then(Xh).then(t);if(S0&&(e.data instanceof ArrayBuffer||w0(e.data)))return t(Xh(e.data));df(e,!1,n=>{qa||(qa=new TextEncoder),t(qa.encode(n))})}const Qh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",li=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Qh.length;e++)li[Qh.charCodeAt(e)]=e;const ZN=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),f=new Uint8Array(c);for(r=0;r<n;r+=4)o=li[e.charCodeAt(r)],s=li[e.charCodeAt(r+1)],a=li[e.charCodeAt(r+2)],l=li[e.charCodeAt(r+3)],f[i++]=o<<2|s>>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|l&63;return c},JN=typeof ArrayBuffer=="function",hf=(e,t)=>{if(typeof e!="string")return{type:"message",data:b0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:eA(e.substring(1),t)}:Fo[n]?e.length>1?{type:Fo[n],data:e.substring(1)}:{type:Fo[n]}:pu},eA=(e,t)=>{if(JN){const n=ZN(e);return b0(n,t)}else return{base64:!0,data:e}},b0=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},x0="",tA=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{df(o,!1,a=>{r[s]=a,++i===n&&t(r.join(x0))})})},nA=(e,t)=>{const n=e.split(x0),r=[];for(let i=0;i<n.length;i++){const o=hf(n[i],t);if(r.push(o),o.type==="error")break}return r};function rA(){return new TransformStream({transform(e,t){YN(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Xa;function vo(e){return e.reduce((t,n)=>t+n.length,0)}function _o(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function iA(e,t){Xa||(Xa=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(vo(n)<1)break;const l=_o(n,1);o=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(vo(n)<2)break;const l=_o(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(vo(n)<8)break;const l=_o(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),f=c.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(pu);break}i=f*Math.pow(2,32)+c.getUint32(4),r=3}else{if(vo(n)<i)break;const l=_o(n,i);a.enqueue(hf(o?l:Xa.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(pu);break}}}})}const T0=4;function de(e){if(e)return oA(e)}function oA(e){for(var t in de.prototype)e[t]=de.prototype[t];return e}de.prototype.on=de.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};de.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};de.prototype.off=de.prototype.removeListener=de.prototype.removeAllListeners=de.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};de.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};de.prototype.emitReserved=de.prototype.emit;de.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};de.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Js=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),rt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),sA="arraybuffer";function C0(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const aA=rt.setTimeout,lA=rt.clearTimeout;function ea(e,t){t.useNativeTimers?(e.setTimeoutFn=aA.bind(rt),e.clearTimeoutFn=lA.bind(rt)):(e.setTimeoutFn=rt.setTimeout.bind(rt),e.clearTimeoutFn=rt.clearTimeout.bind(rt))}const uA=1.33;function cA(e){return typeof e=="string"?fA(e):Math.ceil((e.byteLength||e.size)*uA)}function fA(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function k0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function dA(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function hA(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class pA extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class pf extends de{constructor(t){super(),this.writable=!1,ea(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new pA(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=hf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=dA(t);return n.length?"?"+n:""}}class mA extends pf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};nA(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,tA(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=k0()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let O0=!1;try{O0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const gA=O0;function yA(){}class vA extends mA{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Mt extends de{constructor(t,n,r){super(),this.createRequest=t,ea(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=C0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Mt.requestsCount++,Mt.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=yA,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Mt.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Mt.requestsCount=0;Mt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Kh);else if(typeof addEventListener=="function"){const e="onpagehide"in rt?"pagehide":"unload";addEventListener(e,Kh,!1)}}function Kh(){for(let e in Mt.requests)Mt.requests.hasOwnProperty(e)&&Mt.requests[e].abort()}const _A=function(){const e=N0({xdomain:!1});return e&&e.responseType!==null}();class EA extends vA{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=_A&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Mt(N0,this.uri(),t)}}function N0(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||gA))return new XMLHttpRequest}catch{}if(!t)try{return new rt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const A0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class SA extends pf{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=A0?{}:C0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;df(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&Js(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=k0()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Qa=rt.WebSocket||rt.MozWebSocket;class wA extends SA{createSocket(t,n,r){return A0?new Qa(t,n,r):n?new Qa(t,n):new Qa(t)}doWrite(t,n){this.ws.send(n)}}class bA extends pf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=iA(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=rA();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Js(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const xA={websocket:wA,webtransport:bA,polling:EA},TA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,CA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function mu(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=TA.exec(e||""),o={},s=14;for(;s--;)o[CA[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=kA(o,o.path),o.queryKey=OA(o,o.query),o}function kA(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function OA(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const gu=typeof addEventListener=="function"&&typeof removeEventListener=="function",Lo=[];gu&&addEventListener("offline",()=>{Lo.forEach(e=>e())},!1);class En extends de{constructor(t,n){if(super(),this.binaryType=sA,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=mu(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=mu(n.host).host);ea(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=hA(this.opts.query)),gu&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Lo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=T0,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&En.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",En.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=cA(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Js(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(En.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),gu&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Lo.indexOf(this._offlineEventListener);r!==-1&&Lo.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}En.protocol=T0;class NA extends En{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;En.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;En.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=n.name,this.emitReserved("upgradeError",u)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const u=new Error("probe error: "+h);u.transport=n.name,o(),this.emitReserved("upgradeError",u)};function a(){s("transport closed")}function l(){s("socket closed")}function c(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let AA=class extends NA{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>xA[i]).filter(i=>!!i)),super(t,r)}};function RA(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=mu(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const PA=typeof ArrayBuffer=="function",IA=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,R0=Object.prototype.toString,DA=typeof Blob=="function"||typeof Blob<"u"&&R0.call(Blob)==="[object BlobConstructor]",MA=typeof File=="function"||typeof File<"u"&&R0.call(File)==="[object FileConstructor]";function mf(e){return PA&&(e instanceof ArrayBuffer||IA(e))||DA&&e instanceof Blob||MA&&e instanceof File}function Bo(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Bo(e[n]))return!0;return!1}if(mf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Bo(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Bo(e[n]))return!0;return!1}function FA(e){const t=[],n=e.data,r=e;return r.data=yu(n,t),r.attachments=t.length,{packet:r,buffers:t}}function yu(e,t){if(!e)return e;if(mf(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=yu(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=yu(e[r],t));return n}return e}function LA(e,t){return e.data=vu(e.data,t),delete e.attachments,e}function vu(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=vu(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=vu(e[n],t));return e}const BA=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],jA=5;var H;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(H||(H={}));class zA{constructor(t){this.replacer=t}encode(t){return(t.type===H.EVENT||t.type===H.ACK)&&Bo(t)?this.encodeAsBinary({type:t.type===H.EVENT?H.BINARY_EVENT:H.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===H.BINARY_EVENT||t.type===H.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=FA(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function Yh(e){return Object.prototype.toString.call(e)==="[object Object]"}class gf extends de{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===H.BINARY_EVENT;r||n.type===H.BINARY_ACK?(n.type=r?H.EVENT:H.ACK,this.reconstructor=new UA(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(mf(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(H[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===H.BINARY_EVENT||r.type===H.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(gf.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case H.CONNECT:return Yh(n);case H.DISCONNECT:return n===void 0;case H.CONNECT_ERROR:return typeof n=="string"||Yh(n);case H.EVENT:case H.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&BA.indexOf(n[0])===-1);case H.ACK:case H.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class UA{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=LA(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const HA=Object.freeze(Object.defineProperty({__proto__:null,Decoder:gf,Encoder:zA,get PacketType(){return H},protocol:jA},Symbol.toStringTag,{value:"Module"}));function yt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const $A=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class P0 extends de{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[yt(t,"open",this.onopen.bind(this)),yt(t,"packet",this.onpacket.bind(this)),yt(t,"error",this.onerror.bind(this)),yt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if($A.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:H.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const f=this.ids++,h=n.pop();this._registerAckCallback(f,h),s.id=f}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i),s=(...a)=>{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,a)=>s?i(s):r(a);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:H.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case H.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case H.EVENT:case H.BINARY_EVENT:this.onevent(t);break;case H.ACK:case H.BINARY_ACK:this.onack(t);break;case H.DISCONNECT:this.ondisconnect();break;case H.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:H.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:H.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function zr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}zr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};zr.prototype.reset=function(){this.attempts=0};zr.prototype.setMin=function(e){this.ms=e};zr.prototype.setMax=function(e){this.max=e};zr.prototype.setJitter=function(e){this.jitter=e};class _u extends de{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ea(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new zr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||HA;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new AA(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=yt(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=yt(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(yt(t,"ping",this.onping.bind(this)),yt(t,"data",this.ondata.bind(this)),yt(t,"error",this.onerror.bind(this)),yt(t,"close",this.onclose.bind(this)),yt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Js(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new P0(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ti={};function jo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=RA(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=ti[i]&&o in ti[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new _u(r,t):(ti[i]||(ti[i]=new _u(r,t)),l=ti[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(jo,{Manager:_u,Socket:P0,io:jo,connect:jo});const GA=[j.ActionTypes.MESSAGE_TO_GUEST,j.ActionTypes.EVENT_TO_GUEST,j.ActionTypes.TYPING_ON,j.ActionTypes.TYPING_OFF,j.ActionTypes.RESTART_CHAT_REQUEST,...Kb,...Ww,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],VA=({dispatch:e,getState:t})=>n=>{let r=null;return i=>{let o=n(i);if(i.type===Kc){r!=null&&r.disconnect(),e(Jb());const s=`/chat?${Cc.stringify(i.querystrings)}`;r=jo(`/${i.clientName}${s}`),r.on("action",e),r.on("connect",()=>e(ex())),r.on("disconnect",()=>e(tx())),r.on("reconnect",()=>e(nx())),r.on("set-use-start-screen",a=>{e(a?Gb():Vb())}),r.on("set-translations",(a,l)=>{e(GN({language:a,messages:BN(a,l)}))}),r.on("enable-speech-support",()=>e(Xw())),r.on("enable-transcript-export",a=>e(Kw(a))),r.on("enable-conversation-rating",a=>e(eb(a))),r.on("speech-transcription",a=>e(Qw(a))),r.on("restore-client-state",a=>{e(Zb(a.sessionId)),e(nb(a.messages))}),r.on("expand-window",({devices:a})=>e({type:hy,devices:a})),r.on("show-general-conditions",()=>e(Zw())),r.on("restart-chat",()=>{e(nf(i.clientName,i.querystrings))})}else if(i.type===qs)r==null||r.emit("start-chat",i.payload);else if(i.type===Xs)r==null||r.emit("terminate-session",i.payload);else if(i.type===Vw)r==null||r.emit("get-started",JSON.stringify(i));else if(i.type===Uc)r==null||r.emit("audio-message",i.buffer);else if(i.type===j.ActionTypes.CONVERSATION_RATING_FROM_GUEST)r==null||r.emit("conversation-rating",i.payload);else if(i.type===py){const{connection:{sessionId:s}}=t();window.location.href=`/transcript-pdf/${s}`}else GA.indexOf(i.type)===-1&&i.meta===void 0&&r&&r.emit("action",JSON.stringify(i));return o}},I0=Kg(),WA={...qN(I0),intl:g0},Eu=Rb({middleware:e=>e().concat(VA),reducer:WN,preloadedState:WA});Eu.subscribe(ON(()=>{const e=Eu.getState();XN(I0,{connection:e.connection,startScreen:e.startScreen})},1e3));const qA=document.getElementById("root"),XA=cg(qA);XA.render(v.jsx(hE,{store:Eu,children:v.jsx(bO,{})}));
103
+ //# sourceMappingURL=index-BItZEiam.js.map