@botfabrik/engine-webclient 4.80.5 → 4.80.7

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 i1=Object.defineProperty;var o1=(e,n,i)=>n in e?i1(e,n,{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 Tp;function s1(){if(Tp)return me;Tp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function m(D){return D===null||typeof D!="object"?null:(D=b&&D[b]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function R(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}R.prototype.isReactComponent={},R.prototype.setState=function(D,j){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,j,"setState")},R.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=R.prototype;function N(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}var x=N.prototype=new O;x.constructor=N,_(x,R.prototype),x.isPureReactComponent=!0;var k=Array.isArray,T=Object.prototype.hasOwnProperty,F={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function V(D,j,ce){var he,ye={},ve=null,ke=null;if(j!=null)for(he in j.ref!==void 0&&(ke=j.ref),j.key!==void 0&&(ve=""+j.key),j)T.call(j,he)&&!z.hasOwnProperty(he)&&(ye[he]=j[he]);var Te=arguments.length-2;if(Te===1)ye.children=ce;else if(1<Te){for(var Re=Array(Te),et=0;et<Te;et++)Re[et]=arguments[et+2];ye.children=Re}if(D&&D.defaultProps)for(he in Te=D.defaultProps,Te)ye[he]===void 0&&(ye[he]=Te[he]);return{$$typeof:e,type:D,key:ve,ref:ke,props:ye,_owner:F.current}}function fe(D,j){return{$$typeof:e,type:D.type,key:j,ref:D.ref,props:D.props,_owner:D._owner}}function te(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function oe(D){var j={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ce){return j[ce]})}var pe=/\/+/g;function ue(D,j){return typeof D=="object"&&D!==null&&D.key!=null?oe(""+D.key):j.toString(36)}function Ue(D,j,ce,he,ye){var ve=typeof D;(ve==="undefined"||ve==="boolean")&&(D=null);var ke=!1;if(D===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(D.$$typeof){case e:case n:ke=!0}}if(ke)return ke=D,ye=ye(ke),D=he===""?"."+ue(ke,0):he,k(ye)?(ce="",D!=null&&(ce=D.replace(pe,"$&/")+"/"),Ue(ye,j,ce,"",function(et){return et})):ye!=null&&(te(ye)&&(ye=fe(ye,ce+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(pe,"$&/")+"/")+D)),j.push(ye)),1;if(ke=0,he=he===""?".":he+":",k(D))for(var Te=0;Te<D.length;Te++){ve=D[Te];var Re=he+ue(ve,Te);ke+=Ue(ve,j,ce,Re,ye)}else if(Re=m(D),typeof Re=="function")for(D=Re.call(D),Te=0;!(ve=D.next()).done;)ve=ve.value,Re=he+ue(ve,Te++),ke+=Ue(ve,j,ce,Re,ye);else if(ve==="object")throw j=String(D),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ke}function Ie(D,j,ce){if(D==null)return D;var he=[],ye=0;return Ue(D,he,"","",function(ve){return j.call(ce,ve,ye++)}),he}function $e(D){if(D._status===-1){var j=D._result;j=j(),j.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce)},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce)}),D._status===-1&&(D._status=0,D._result=j)}if(D._status===1)return D._result.default;throw D._result}var Ne={current:null},W={transition:null},re={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:W,ReactCurrentOwner:F};function K(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ie,forEach:function(D,j,ce){Ie(D,function(){j.apply(this,arguments)},ce)},count:function(D){var j=0;return Ie(D,function(){j++}),j},toArray:function(D){return Ie(D,function(j){return j})||[]},only:function(D){if(!te(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},me.Component=R,me.Fragment=i,me.Profiler=l,me.PureComponent=N,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,me.act=K,me.cloneElement=function(D,j,ce){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var he=_({},D.props),ye=D.key,ve=D.ref,ke=D._owner;if(j!=null){if(j.ref!==void 0&&(ve=j.ref,ke=F.current),j.key!==void 0&&(ye=""+j.key),D.type&&D.type.defaultProps)var Te=D.type.defaultProps;for(Re in j)T.call(j,Re)&&!z.hasOwnProperty(Re)&&(he[Re]=j[Re]===void 0&&Te!==void 0?Te[Re]:j[Re])}var Re=arguments.length-2;if(Re===1)he.children=ce;else if(1<Re){Te=Array(Re);for(var et=0;et<Re;et++)Te[et]=arguments[et+2];he.children=Te}return{$$typeof:e,type:D.type,key:ye,ref:ve,props:he,_owner:ke}},me.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:u,_context:D},D.Consumer=D},me.createElement=V,me.createFactory=function(D){var j=V.bind(null,D);return j.type=D,j},me.createRef=function(){return{current:null}},me.forwardRef=function(D){return{$$typeof:h,render:D}},me.isValidElement=te,me.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:$e}},me.memo=function(D,j){return{$$typeof:v,type:D,compare:j===void 0?null:j}},me.startTransition=function(D){var j=W.transition;W.transition={};try{D()}finally{W.transition=j}},me.unstable_act=K,me.useCallback=function(D,j){return Ne.current.useCallback(D,j)},me.useContext=function(D){return Ne.current.useContext(D)},me.useDebugValue=function(){},me.useDeferredValue=function(D){return Ne.current.useDeferredValue(D)},me.useEffect=function(D,j){return Ne.current.useEffect(D,j)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(D,j,ce){return Ne.current.useImperativeHandle(D,j,ce)},me.useInsertionEffect=function(D,j){return Ne.current.useInsertionEffect(D,j)},me.useLayoutEffect=function(D,j){return Ne.current.useLayoutEffect(D,j)},me.useMemo=function(D,j){return Ne.current.useMemo(D,j)},me.useReducer=function(D,j,ce){return Ne.current.useReducer(D,j,ce)},me.useRef=function(D){return Ne.current.useRef(D)},me.useState=function(D){return Ne.current.useState(D)},me.useSyncExternalStore=function(D,j,ce){return Ne.current.useSyncExternalStore(D,j,ce)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var Cp;function Jn(){return Cp||(Cp=1,pu.exports=s1()),pu.exports}/**
9
+ */var Tp;function s1(){if(Tp)return me;Tp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function m(D){return D===null||typeof D!="object"?null:(D=b&&D[b]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function R(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}R.prototype.isReactComponent={},R.prototype.setState=function(D,j){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,j,"setState")},R.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=R.prototype;function N(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}var x=N.prototype=new O;x.constructor=N,_(x,R.prototype),x.isPureReactComponent=!0;var k=Array.isArray,T=Object.prototype.hasOwnProperty,F={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function V(D,j,ce){var he,ye={},ve=null,ke=null;if(j!=null)for(he in j.ref!==void 0&&(ke=j.ref),j.key!==void 0&&(ve=""+j.key),j)T.call(j,he)&&!z.hasOwnProperty(he)&&(ye[he]=j[he]);var Te=arguments.length-2;if(Te===1)ye.children=ce;else if(1<Te){for(var Re=Array(Te),et=0;et<Te;et++)Re[et]=arguments[et+2];ye.children=Re}if(D&&D.defaultProps)for(he in Te=D.defaultProps,Te)ye[he]===void 0&&(ye[he]=Te[he]);return{$$typeof:e,type:D,key:ve,ref:ke,props:ye,_owner:F.current}}function fe(D,j){return{$$typeof:e,type:D.type,key:j,ref:D.ref,props:D.props,_owner:D._owner}}function te(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function oe(D){var j={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ce){return j[ce]})}var pe=/\/+/g;function ue(D,j){return typeof D=="object"&&D!==null&&D.key!=null?oe(""+D.key):j.toString(36)}function Ue(D,j,ce,he,ye){var ve=typeof D;(ve==="undefined"||ve==="boolean")&&(D=null);var ke=!1;if(D===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(D.$$typeof){case e:case n:ke=!0}}if(ke)return ke=D,ye=ye(ke),D=he===""?"."+ue(ke,0):he,k(ye)?(ce="",D!=null&&(ce=D.replace(pe,"$&/")+"/"),Ue(ye,j,ce,"",function(et){return et})):ye!=null&&(te(ye)&&(ye=fe(ye,ce+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(pe,"$&/")+"/")+D)),j.push(ye)),1;if(ke=0,he=he===""?".":he+":",k(D))for(var Te=0;Te<D.length;Te++){ve=D[Te];var Re=he+ue(ve,Te);ke+=Ue(ve,j,ce,Re,ye)}else if(Re=m(D),typeof Re=="function")for(D=Re.call(D),Te=0;!(ve=D.next()).done;)ve=ve.value,Re=he+ue(ve,Te++),ke+=Ue(ve,j,ce,Re,ye);else if(ve==="object")throw j=String(D),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ke}function Ie(D,j,ce){if(D==null)return D;var he=[],ye=0;return Ue(D,he,"","",function(ve){return j.call(ce,ve,ye++)}),he}function $e(D){if(D._status===-1){var j=D._result;j=j(),j.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce)},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce)}),D._status===-1&&(D._status=0,D._result=j)}if(D._status===1)return D._result.default;throw D._result}var Ne={current:null},W={transition:null},re={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:W,ReactCurrentOwner:F};function Z(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ie,forEach:function(D,j,ce){Ie(D,function(){j.apply(this,arguments)},ce)},count:function(D){var j=0;return Ie(D,function(){j++}),j},toArray:function(D){return Ie(D,function(j){return j})||[]},only:function(D){if(!te(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},me.Component=R,me.Fragment=i,me.Profiler=l,me.PureComponent=N,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,me.act=Z,me.cloneElement=function(D,j,ce){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var he=_({},D.props),ye=D.key,ve=D.ref,ke=D._owner;if(j!=null){if(j.ref!==void 0&&(ve=j.ref,ke=F.current),j.key!==void 0&&(ye=""+j.key),D.type&&D.type.defaultProps)var Te=D.type.defaultProps;for(Re in j)T.call(j,Re)&&!z.hasOwnProperty(Re)&&(he[Re]=j[Re]===void 0&&Te!==void 0?Te[Re]:j[Re])}var Re=arguments.length-2;if(Re===1)he.children=ce;else if(1<Re){Te=Array(Re);for(var et=0;et<Re;et++)Te[et]=arguments[et+2];he.children=Te}return{$$typeof:e,type:D.type,key:ye,ref:ve,props:he,_owner:ke}},me.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:u,_context:D},D.Consumer=D},me.createElement=V,me.createFactory=function(D){var j=V.bind(null,D);return j.type=D,j},me.createRef=function(){return{current:null}},me.forwardRef=function(D){return{$$typeof:h,render:D}},me.isValidElement=te,me.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:$e}},me.memo=function(D,j){return{$$typeof:v,type:D,compare:j===void 0?null:j}},me.startTransition=function(D){var j=W.transition;W.transition={};try{D()}finally{W.transition=j}},me.unstable_act=Z,me.useCallback=function(D,j){return Ne.current.useCallback(D,j)},me.useContext=function(D){return Ne.current.useContext(D)},me.useDebugValue=function(){},me.useDeferredValue=function(D){return Ne.current.useDeferredValue(D)},me.useEffect=function(D,j){return Ne.current.useEffect(D,j)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(D,j,ce){return Ne.current.useImperativeHandle(D,j,ce)},me.useInsertionEffect=function(D,j){return Ne.current.useInsertionEffect(D,j)},me.useLayoutEffect=function(D,j){return Ne.current.useLayoutEffect(D,j)},me.useMemo=function(D,j){return Ne.current.useMemo(D,j)},me.useReducer=function(D,j,ce){return Ne.current.useReducer(D,j,ce)},me.useRef=function(D){return Ne.current.useRef(D)},me.useState=function(D){return Ne.current.useState(D)},me.useSyncExternalStore=function(D,j,ce){return Ne.current.useSyncExternalStore(D,j,ce)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var Cp;function Jn(){return Cp||(Cp=1,pu.exports=s1()),pu.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -22,7 +22,7 @@ var i1=Object.defineProperty;var o1=(e,n,i)=>n in e?i1(e,n,{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
- */var Op;function u1(){return Op||(Op=1,function(e){function n(W,re){var K=W.length;W.push(re);e:for(;0<K;){var D=K-1>>>1,j=W[D];if(0<l(j,re))W[D]=re,W[K]=j,K=D;else break e}}function i(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var re=W[0],K=W.pop();if(K!==re){W[0]=K;e:for(var D=0,j=W.length,ce=j>>>1;D<ce;){var he=2*(D+1)-1,ye=W[he],ve=he+1,ke=W[ve];if(0>l(ye,K))ve<j&&0>l(ke,ye)?(W[D]=ke,W[ve]=K,D=ve):(W[D]=ye,W[he]=K,D=he);else if(ve<j&&0>l(ke,K))W[D]=ke,W[ve]=K,D=ve;else break e}}return re}function l(W,re){var K=W.sortIndex-re.sortIndex;return K!==0?K:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],v=[],y=1,b=null,m=3,w=!1,_=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(W){for(var re=i(v);re!==null;){if(re.callback===null)s(v);else if(re.startTime<=W)s(v),re.sortIndex=re.expirationTime,n(p,re);else break;re=i(v)}}function k(W){if(S=!1,x(W),!_)if(i(p)!==null)_=!0,$e(T);else{var re=i(v);re!==null&&Ne(k,re.startTime-W)}}function T(W,re){_=!1,S&&(S=!1,O(V),V=-1),w=!0;var K=m;try{for(x(re),b=i(p);b!==null&&(!(b.expirationTime>re)||W&&!oe());){var D=b.callback;if(typeof D=="function"){b.callback=null,m=b.priorityLevel;var j=D(b.expirationTime<=re);re=e.unstable_now(),typeof j=="function"?b.callback=j:b===i(p)&&s(p),x(re)}else s(p);b=i(p)}if(b!==null)var ce=!0;else{var he=i(v);he!==null&&Ne(k,he.startTime-re),ce=!1}return ce}finally{b=null,m=K,w=!1}}var F=!1,z=null,V=-1,fe=5,te=-1;function oe(){return!(e.unstable_now()-te<fe)}function pe(){if(z!==null){var W=e.unstable_now();te=W;var re=!0;try{re=z(!0,W)}finally{re?ue():(F=!1,z=null)}}else F=!1}var ue;if(typeof N=="function")ue=function(){N(pe)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ie=Ue.port2;Ue.port1.onmessage=pe,ue=function(){Ie.postMessage(null)}}else ue=function(){R(pe,0)};function $e(W){z=W,F||(F=!0,ue())}function Ne(W,re){V=R(function(){W(e.unstable_now())},re)}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(W){W.callback=null},e.unstable_continueExecution=function(){_||w||(_=!0,$e(T))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(W){switch(m){case 1:case 2:case 3:var re=3;break;default:re=m}var K=m;m=re;try{return W()}finally{m=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var K=m;m=W;try{return re()}finally{m=K}},e.unstable_scheduleCallback=function(W,re,K){var D=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?D+K:D):K=D,W){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=K+j,W={id:y++,callback:re,priorityLevel:W,startTime:K,expirationTime:j,sortIndex:-1},K>D?(W.sortIndex=K,n(v,W),i(p)===null&&W===i(v)&&(S?(O(V),V=-1):S=!0,Ne(k,K-D))):(W.sortIndex=j,n(p,W),_||w||(_=!0,$e(T))),W},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(W){var re=m;return function(){var K=m;m=re;try{return W.apply(this,arguments)}finally{m=K}}}}(yu)),yu}var Np;function c1(){return Np||(Np=1,gu.exports=u1()),gu.exports}/**
25
+ */var Op;function u1(){return Op||(Op=1,function(e){function n(W,re){var Z=W.length;W.push(re);e:for(;0<Z;){var D=Z-1>>>1,j=W[D];if(0<l(j,re))W[D]=re,W[Z]=j,Z=D;else break e}}function i(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var re=W[0],Z=W.pop();if(Z!==re){W[0]=Z;e:for(var D=0,j=W.length,ce=j>>>1;D<ce;){var he=2*(D+1)-1,ye=W[he],ve=he+1,ke=W[ve];if(0>l(ye,Z))ve<j&&0>l(ke,ye)?(W[D]=ke,W[ve]=Z,D=ve):(W[D]=ye,W[he]=Z,D=he);else if(ve<j&&0>l(ke,Z))W[D]=ke,W[ve]=Z,D=ve;else break e}}return re}function l(W,re){var Z=W.sortIndex-re.sortIndex;return Z!==0?Z:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],v=[],y=1,b=null,m=3,w=!1,_=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(W){for(var re=i(v);re!==null;){if(re.callback===null)s(v);else if(re.startTime<=W)s(v),re.sortIndex=re.expirationTime,n(p,re);else break;re=i(v)}}function k(W){if(S=!1,x(W),!_)if(i(p)!==null)_=!0,$e(T);else{var re=i(v);re!==null&&Ne(k,re.startTime-W)}}function T(W,re){_=!1,S&&(S=!1,O(V),V=-1),w=!0;var Z=m;try{for(x(re),b=i(p);b!==null&&(!(b.expirationTime>re)||W&&!oe());){var D=b.callback;if(typeof D=="function"){b.callback=null,m=b.priorityLevel;var j=D(b.expirationTime<=re);re=e.unstable_now(),typeof j=="function"?b.callback=j:b===i(p)&&s(p),x(re)}else s(p);b=i(p)}if(b!==null)var ce=!0;else{var he=i(v);he!==null&&Ne(k,he.startTime-re),ce=!1}return ce}finally{b=null,m=Z,w=!1}}var F=!1,z=null,V=-1,fe=5,te=-1;function oe(){return!(e.unstable_now()-te<fe)}function pe(){if(z!==null){var W=e.unstable_now();te=W;var re=!0;try{re=z(!0,W)}finally{re?ue():(F=!1,z=null)}}else F=!1}var ue;if(typeof N=="function")ue=function(){N(pe)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ie=Ue.port2;Ue.port1.onmessage=pe,ue=function(){Ie.postMessage(null)}}else ue=function(){R(pe,0)};function $e(W){z=W,F||(F=!0,ue())}function Ne(W,re){V=R(function(){W(e.unstable_now())},re)}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(W){W.callback=null},e.unstable_continueExecution=function(){_||w||(_=!0,$e(T))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(W){switch(m){case 1:case 2:case 3:var re=3;break;default:re=m}var Z=m;m=re;try{return W()}finally{m=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Z=m;m=W;try{return re()}finally{m=Z}},e.unstable_scheduleCallback=function(W,re,Z){var D=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?D+Z:D):Z=D,W){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=Z+j,W={id:y++,callback:re,priorityLevel:W,startTime:Z,expirationTime:j,sortIndex:-1},Z>D?(W.sortIndex=Z,n(v,W),i(p)===null&&W===i(v)&&(S?(O(V),V=-1):S=!0,Ne(k,Z-D))):(W.sortIndex=j,n(p,W),_||w||(_=!0,$e(T))),W},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(W){var re=m;return function(){var Z=m;m=re;try{return W.apply(this,arguments)}finally{m=Z}}}}(yu)),yu}var Np;function c1(){return Np||(Np=1,gu.exports=u1()),gu.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var i1=Object.defineProperty;var o1=(e,n,i)=>n in e?i1(e,n,{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 Ap;function f1(){if(Ap)return Et;Ap=1;var e=Jn(),n=c1();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(t,r){f(t,r),f(t+"Capture",r)}function f(t,r){for(l[t]=r,t=0;t<r.length;t++)s.add(r[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,v=/^[: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]*$/,y={},b={};function m(t){return p.call(b,t)?!0:p.call(y,t)?!1:v.test(t)?b[t]=!0:(y[t]=!0,!1)}function w(t,r,o,a){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function _(t,r,o,a){if(r===null||typeof r>"u"||w(t,r,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function S(t,r,o,a,c,d,g){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=t,this.type=r,this.sanitizeURL=d,this.removeEmptyString=g}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];R[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new S(t,2,!1,t,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(t){R[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function N(t){return t[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(t){var r=t.replace(O,N);R[r]=new S(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(O,N);R[r]=new S(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(O,N);R[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function x(t,r,o,a){var c=R.hasOwnProperty(r)?R[r]:null;(c!==null?c.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(_(r,o,c,a)&&(o=null),a||c===null?m(r)&&(o===null?t.removeAttribute(r):t.setAttribute(r,""+o)):c.mustUseProperty?t[c.propertyName]=o===null?c.type===3?!1:"":o:(r=c.attributeName,a=c.attributeNamespace,o===null?t.removeAttribute(r):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,a?t.setAttributeNS(a,r,o):t.setAttribute(r,o))))}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),F=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),oe=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),W=Symbol.iterator;function re(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var K=Object.assign,D;function j(t){if(D===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);D=r&&r[1]||""}return`
33
+ */var Ap;function f1(){if(Ap)return Et;Ap=1;var e=Jn(),n=c1();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(t,r){f(t,r),f(t+"Capture",r)}function f(t,r){for(l[t]=r,t=0;t<r.length;t++)s.add(r[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,v=/^[: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]*$/,y={},b={};function m(t){return p.call(b,t)?!0:p.call(y,t)?!1:v.test(t)?b[t]=!0:(y[t]=!0,!1)}function w(t,r,o,a){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function _(t,r,o,a){if(r===null||typeof r>"u"||w(t,r,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function S(t,r,o,a,c,d,g){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=t,this.type=r,this.sanitizeURL=d,this.removeEmptyString=g}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];R[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new S(t,2,!1,t,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(t){R[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function N(t){return t[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(t){var r=t.replace(O,N);R[r]=new S(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(O,N);R[r]=new S(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(O,N);R[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function x(t,r,o,a){var c=R.hasOwnProperty(r)?R[r]:null;(c!==null?c.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(_(r,o,c,a)&&(o=null),a||c===null?m(r)&&(o===null?t.removeAttribute(r):t.setAttribute(r,""+o)):c.mustUseProperty?t[c.propertyName]=o===null?c.type===3?!1:"":o:(r=c.attributeName,a=c.attributeNamespace,o===null?t.removeAttribute(r):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,a?t.setAttributeNS(a,r,o):t.setAttribute(r,o))))}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),F=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),oe=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),W=Symbol.iterator;function re(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var Z=Object.assign,D;function j(t){if(D===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);D=r&&r[1]||""}return`
34
34
  `+D+t}var ce=!1;function he(t,r){if(!t||ce)return"";ce=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(L){var a=L}Reflect.construct(t,[],r)}else{try{r.call()}catch(L){a=L}t.call(r.prototype)}else{try{throw Error()}catch(L){a=L}t()}}catch(L){if(L&&a&&typeof L.stack=="string"){for(var c=L.stack.split(`
35
35
  `),d=a.stack.split(`
36
36
  `),g=c.length-1,C=d.length-1;1<=g&&0<=C&&c[g]!==d[C];)C--;for(;1<=g&&0<=C;g--,C--)if(c[g]!==d[C]){if(g!==1||C!==1)do if(g--,C--,0>C||c[g]!==d[C]){var A=`
37
- `+c[g].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=g&&0<=C);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?j(t):""}function ye(t){switch(t.tag){case 5:return j(t.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return t=he(t.type,!1),t;case 11:return t=he(t.type.render,!1),t;case 1:return t=he(t.type,!0),t;default:return""}}function ve(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case F:return"Portal";case fe:return"Profiler";case V:return"StrictMode";case ue:return"Suspense";case Ue:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case oe:return(t.displayName||"Context")+".Consumer";case te:return(t._context.displayName||"Context")+".Provider";case pe:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ie:return r=t.displayName||null,r!==null?r:ve(t.type)||"Memo";case $e:r=t._payload,t=t._init;try{return ve(t(r))}catch{}}return null}function ke(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(r);case 8:return r===V?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function et(t){var r=Re(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),a=""+t[r];if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,d=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,d.call(this,g)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ni(t){t._valueTracker||(t._valueTracker=et(t))}function ct(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),a="";return t&&(a=Re(t)?t.checked?"true":"false":t.value),t=a,t!==o?(r.setValue(t),!0):!1}function Jt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ea(t,r){var o=r.checked;return K({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function If(t,r){var o=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;o=Te(r.value!=null?r.value:o),t._wrapperState={initialChecked:a,initialValue:o,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Df(t,r){r=r.checked,r!=null&&x(t,"checked",r,!1)}function wa(t,r){Df(t,r);var o=Te(r.value),a=r.type;if(o!=null)a==="number"?(o===0&&t.value===""||t.value!=o)&&(t.value=""+o):t.value!==""+o&&(t.value=""+o);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?Sa(t,r.type,o):r.hasOwnProperty("defaultValue")&&Sa(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Pf(t,r,o){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,o||r===t.value||(t.value=r),t.defaultValue=r}o=t.name,o!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,o!==""&&(t.name=o)}function Sa(t,r,o){(r!=="number"||Jt(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ii=Array.isArray;function bn(t,r,o,a){if(t=t.options,r){r={};for(var c=0;c<o.length;c++)r["$"+o[c]]=!0;for(o=0;o<t.length;o++)c=r.hasOwnProperty("$"+t[o].value),t[o].selected!==c&&(t[o].selected=c),c&&a&&(t[o].defaultSelected=!0)}else{for(o=""+Te(o),r=null,c=0;c<t.length;c++){if(t[c].value===o){t[c].selected=!0,a&&(t[c].defaultSelected=!0);return}r!==null||t[c].disabled||(r=t[c])}r!==null&&(r.selected=!0)}}function xa(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return K({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Mf(t,r){var o=r.value;if(o==null){if(o=r.children,r=r.defaultValue,o!=null){if(r!=null)throw Error(i(92));if(ii(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),o=r}t._wrapperState={initialValue:Te(o)}}function Ff(t,r){var o=Te(r.value),a=Te(r.defaultValue);o!=null&&(o=""+o,o!==t.value&&(t.value=o),r.defaultValue==null&&t.defaultValue!==o&&(t.defaultValue=o)),a!=null&&(t.defaultValue=""+a)}function Lf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Bf(t){switch(t){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 ba(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Bf(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var co,jf=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,a,c){MSApp.execUnsafeLocalFunction(function(){return t(r,o,a,c)})}:t}(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(co=co||document.createElement("div"),co.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=co.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function oi(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var si={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},lv=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(t){lv.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),si[r]=si[t]})});function Uf(t,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||si.hasOwnProperty(t)&&si[t]?(""+r).trim():r+"px"}function Hf(t,r){t=t.style;for(var o in r)if(r.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=Uf(o,r[o],a);o==="float"&&(o="cssFloat"),a?t.setProperty(o,c):t[o]=c}}var uv=K({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 Ta(t,r){if(r){if(uv[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Ca(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 ka=null;function Ra(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Oa=null,Tn=null,Cn=null;function zf(t){if(t=Ri(t)){if(typeof Oa!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Po(r),Oa(t.stateNode,t.type,r))}}function Gf(t){Tn?Cn?Cn.push(t):Cn=[t]:Tn=t}function $f(){if(Tn){var t=Tn,r=Cn;if(Cn=Tn=null,zf(t),r)for(t=0;t<r.length;t++)zf(r[t])}}function qf(t,r){return t(r)}function Vf(){}var Na=!1;function Wf(t,r,o){if(Na)return t(r,o);Na=!0;try{return qf(t,r,o)}finally{Na=!1,(Tn!==null||Cn!==null)&&(Vf(),$f())}}function ai(t,r){var o=t.stateNode;if(o===null)return null;var a=Po(o);if(a===null)return null;o=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var Aa=!1;if(h)try{var li={};Object.defineProperty(li,"passive",{get:function(){Aa=!0}}),window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{Aa=!1}function cv(t,r,o,a,c,d,g,C,A){var L=Array.prototype.slice.call(arguments,3);try{r.apply(o,L)}catch(H){this.onError(H)}}var ui=!1,fo=null,ho=!1,Ia=null,fv={onError:function(t){ui=!0,fo=t}};function dv(t,r,o,a,c,d,g,C,A){ui=!1,fo=null,cv.apply(fv,arguments)}function hv(t,r,o,a,c,d,g,C,A){if(dv.apply(this,arguments),ui){if(ui){var L=fo;ui=!1,fo=null}else throw Error(i(198));ho||(ho=!0,Ia=L)}}function Jr(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function Zf(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function Kf(t){if(Jr(t)!==t)throw Error(i(188))}function pv(t){var r=t.alternate;if(!r){if(r=Jr(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,a=r;;){var c=o.return;if(c===null)break;var d=c.alternate;if(d===null){if(a=c.return,a!==null){o=a;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===o)return Kf(c),t;if(d===a)return Kf(c),r;d=d.sibling}throw Error(i(188))}if(o.return!==a.return)o=c,a=d;else{for(var g=!1,C=c.child;C;){if(C===o){g=!0,o=c,a=d;break}if(C===a){g=!0,a=c,o=d;break}C=C.sibling}if(!g){for(C=d.child;C;){if(C===o){g=!0,o=d,a=c;break}if(C===a){g=!0,a=d,o=c;break}C=C.sibling}if(!g)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function Qf(t){return t=pv(t),t!==null?Xf(t):null}function Xf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Xf(t);if(r!==null)return r;t=t.sibling}return null}var Yf=n.unstable_scheduleCallback,Jf=n.unstable_cancelCallback,mv=n.unstable_shouldYield,gv=n.unstable_requestPaint,ze=n.unstable_now,yv=n.unstable_getCurrentPriorityLevel,Da=n.unstable_ImmediatePriority,ed=n.unstable_UserBlockingPriority,po=n.unstable_NormalPriority,vv=n.unstable_LowPriority,td=n.unstable_IdlePriority,mo=null,er=null;function _v(t){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(mo,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:Sv,Ev=Math.log,wv=Math.LN2;function Sv(t){return t>>>=0,t===0?32:31-(Ev(t)/wv|0)|0}var go=64,yo=4194304;function ci(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vo(t,r){var o=t.pendingLanes;if(o===0)return 0;var a=0,c=t.suspendedLanes,d=t.pingedLanes,g=o&268435455;if(g!==0){var C=g&~c;C!==0?a=ci(C):(d&=g,d!==0&&(a=ci(d)))}else g=o&~c,g!==0?a=ci(g):d!==0&&(a=ci(d));if(a===0)return 0;if(r!==0&&r!==a&&(r&c)===0&&(c=a&-a,d=r&-r,c>=d||c===16&&(d&4194240)!==0))return r;if((a&4)!==0&&(a|=o&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)o=31-Ht(r),c=1<<o,a|=t[o],r&=~c;return a}function xv(t,r){switch(t){case 1:case 2:case 4:return r+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 r+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 bv(t,r){for(var o=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes;0<d;){var g=31-Ht(d),C=1<<g,A=c[g];A===-1?((C&o)===0||(C&a)!==0)&&(c[g]=xv(C,r)):A<=r&&(t.expiredLanes|=C),d&=~C}}function Pa(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function rd(){var t=go;return go<<=1,(go&4194240)===0&&(go=64),t}function Ma(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function fi(t,r,o){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ht(r),t[r]=o}function Tv(t,r){var o=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<o;){var c=31-Ht(o),d=1<<c;r[c]=0,a[c]=-1,t[c]=-1,o&=~d}}function Fa(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var a=31-Ht(o),c=1<<a;c&r|t[a]&r&&(t[a]|=r),o&=~c}}var Oe=0;function nd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var id,La,od,sd,ad,Ba=!1,_o=[],Rr=null,Or=null,Nr=null,di=new Map,hi=new Map,Ar=[],Cv="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 ld(t,r){switch(t){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Or=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":di.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":hi.delete(r.pointerId)}}function pi(t,r,o,a,c,d){return t===null||t.nativeEvent!==d?(t={blockedOn:r,domEventName:o,eventSystemFlags:a,nativeEvent:d,targetContainers:[c]},r!==null&&(r=Ri(r),r!==null&&La(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function kv(t,r,o,a,c){switch(r){case"focusin":return Rr=pi(Rr,t,r,o,a,c),!0;case"dragenter":return Or=pi(Or,t,r,o,a,c),!0;case"mouseover":return Nr=pi(Nr,t,r,o,a,c),!0;case"pointerover":var d=c.pointerId;return di.set(d,pi(di.get(d)||null,t,r,o,a,c)),!0;case"gotpointercapture":return d=c.pointerId,hi.set(d,pi(hi.get(d)||null,t,r,o,a,c)),!0}return!1}function ud(t){var r=en(t.target);if(r!==null){var o=Jr(r);if(o!==null){if(r=o.tag,r===13){if(r=Zf(o),r!==null){t.blockedOn=r,ad(t.priority,function(){od(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Eo(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=Ua(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var a=new o.constructor(o.type,o);ka=a,o.target.dispatchEvent(a),ka=null}else return r=Ri(o),r!==null&&La(r),t.blockedOn=o,!1;r.shift()}return!0}function cd(t,r,o){Eo(t)&&o.delete(r)}function Rv(){Ba=!1,Rr!==null&&Eo(Rr)&&(Rr=null),Or!==null&&Eo(Or)&&(Or=null),Nr!==null&&Eo(Nr)&&(Nr=null),di.forEach(cd),hi.forEach(cd)}function mi(t,r){t.blockedOn===r&&(t.blockedOn=null,Ba||(Ba=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Rv)))}function gi(t){function r(c){return mi(c,t)}if(0<_o.length){mi(_o[0],t);for(var o=1;o<_o.length;o++){var a=_o[o];a.blockedOn===t&&(a.blockedOn=null)}}for(Rr!==null&&mi(Rr,t),Or!==null&&mi(Or,t),Nr!==null&&mi(Nr,t),di.forEach(r),hi.forEach(r),o=0;o<Ar.length;o++)a=Ar[o],a.blockedOn===t&&(a.blockedOn=null);for(;0<Ar.length&&(o=Ar[0],o.blockedOn===null);)ud(o),o.blockedOn===null&&Ar.shift()}var kn=k.ReactCurrentBatchConfig,wo=!0;function Ov(t,r,o,a){var c=Oe,d=kn.transition;kn.transition=null;try{Oe=1,ja(t,r,o,a)}finally{Oe=c,kn.transition=d}}function Nv(t,r,o,a){var c=Oe,d=kn.transition;kn.transition=null;try{Oe=4,ja(t,r,o,a)}finally{Oe=c,kn.transition=d}}function ja(t,r,o,a){if(wo){var c=Ua(t,r,o,a);if(c===null)nl(t,r,a,So,o),ld(t,a);else if(kv(c,t,r,o,a))a.stopPropagation();else if(ld(t,a),r&4&&-1<Cv.indexOf(t)){for(;c!==null;){var d=Ri(c);if(d!==null&&id(d),d=Ua(t,r,o,a),d===null&&nl(t,r,a,So,o),d===c)break;c=d}c!==null&&a.stopPropagation()}else nl(t,r,a,null,o)}}var So=null;function Ua(t,r,o,a){if(So=null,t=Ra(a),t=en(t),t!==null)if(r=Jr(t),r===null)t=null;else if(o=r.tag,o===13){if(t=Zf(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return So=t,null}function fd(t){switch(t){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(yv()){case Da:return 1;case ed:return 4;case po:case vv:return 16;case td:return 536870912;default:return 16}default:return 16}}var Ir=null,Ha=null,xo=null;function dd(){if(xo)return xo;var t,r=Ha,o=r.length,a,c="value"in Ir?Ir.value:Ir.textContent,d=c.length;for(t=0;t<o&&r[t]===c[t];t++);var g=o-t;for(a=1;a<=g&&r[o-a]===c[d-a];a++);return xo=c.slice(t,1<a?1-a:void 0)}function bo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function To(){return!0}function hd(){return!1}function St(t){function r(o,a,c,d,g){this._reactName=o,this._targetInst=c,this.type=a,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var C in t)t.hasOwnProperty(C)&&(o=t[C],this[C]=o?o(d):d[C]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?To:hd,this.isPropagationStopped=hd,this}return K(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),r}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},za=St(Rn),yi=K({},Rn,{view:0,detail:0}),Av=St(yi),Ga,$a,vi,Co=K({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Va,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==vi&&(vi&&t.type==="mousemove"?(Ga=t.screenX-vi.screenX,$a=t.screenY-vi.screenY):$a=Ga=0,vi=t),Ga)},movementY:function(t){return"movementY"in t?t.movementY:$a}}),pd=St(Co),Iv=K({},Co,{dataTransfer:0}),Dv=St(Iv),Pv=K({},yi,{relatedTarget:0}),qa=St(Pv),Mv=K({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Fv=St(Mv),Lv=K({},Rn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bv=St(Lv),jv=K({},Rn,{data:0}),md=St(jv),Uv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hv={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"},zv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gv(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=zv[t])?!!r[t]:!1}function Va(){return Gv}var $v=K({},yi,{key:function(t){if(t.key){var r=Uv[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=bo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Va,charCode:function(t){return t.type==="keypress"?bo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qv=St($v),Vv=K({},Co,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gd=St(Vv),Wv=K({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Va}),Zv=St(Wv),Kv=K({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qv=St(Kv),Xv=K({},Co,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Yv=St(Xv),Jv=[9,13,27,32],Wa=h&&"CompositionEvent"in window,_i=null;h&&"documentMode"in document&&(_i=document.documentMode);var e_=h&&"TextEvent"in window&&!_i,yd=h&&(!Wa||_i&&8<_i&&11>=_i),vd=" ",_d=!1;function Ed(t,r){switch(t){case"keyup":return Jv.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var On=!1;function t_(t,r){switch(t){case"compositionend":return wd(r);case"keypress":return r.which!==32?null:(_d=!0,vd);case"textInput":return t=r.data,t===vd&&_d?null:t;default:return null}}function r_(t,r){if(On)return t==="compositionend"||!Wa&&Ed(t,r)?(t=dd(),xo=Ha=Ir=null,On=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return yd&&r.locale!=="ko"?null:r.data;default:return null}}var n_={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 Sd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!n_[t.type]:r==="textarea"}function xd(t,r,o,a){Gf(a),r=Ao(r,"onChange"),0<r.length&&(o=new za("onChange","change",null,o,a),t.push({event:o,listeners:r}))}var Ei=null,wi=null;function i_(t){Hd(t,0)}function ko(t){var r=Pn(t);if(ct(r))return t}function o_(t,r){if(t==="change")return r}var bd=!1;if(h){var Za;if(h){var Ka="oninput"in document;if(!Ka){var Td=document.createElement("div");Td.setAttribute("oninput","return;"),Ka=typeof Td.oninput=="function"}Za=Ka}else Za=!1;bd=Za&&(!document.documentMode||9<document.documentMode)}function Cd(){Ei&&(Ei.detachEvent("onpropertychange",kd),wi=Ei=null)}function kd(t){if(t.propertyName==="value"&&ko(wi)){var r=[];xd(r,wi,t,Ra(t)),Wf(i_,r)}}function s_(t,r,o){t==="focusin"?(Cd(),Ei=r,wi=o,Ei.attachEvent("onpropertychange",kd)):t==="focusout"&&Cd()}function a_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ko(wi)}function l_(t,r){if(t==="click")return ko(r)}function u_(t,r){if(t==="input"||t==="change")return ko(r)}function c_(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var zt=typeof Object.is=="function"?Object.is:c_;function Si(t,r){if(zt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),a=Object.keys(r);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var c=o[a];if(!p.call(r,c)||!zt(t[c],r[c]))return!1}return!0}function Rd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Od(t,r){var o=Rd(t);t=0;for(var a;o;){if(o.nodeType===3){if(a=t+o.textContent.length,t<=r&&a>=r)return{node:o,offset:r-t};t=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Rd(o)}}function Nd(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Nd(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Ad(){for(var t=window,r=Jt();r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Jt(t.document)}return r}function Qa(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function f_(t){var r=Ad(),o=t.focusedElem,a=t.selectionRange;if(r!==o&&o&&o.ownerDocument&&Nd(o.ownerDocument.documentElement,o)){if(a!==null&&Qa(o)){if(r=a.start,t=a.end,t===void 0&&(t=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(t,o.value.length);else if(t=(r=o.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var c=o.textContent.length,d=Math.min(a.start,c);a=a.end===void 0?d:Math.min(a.end,c),!t.extend&&d>a&&(c=a,a=d,d=c),c=Od(o,d);var g=Od(o,a);c&&g&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==g.node||t.focusOffset!==g.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),d>a?(t.addRange(r),t.extend(g.node,g.offset)):(r.setEnd(g.node,g.offset),t.addRange(r)))}}for(r=[],t=o;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<r.length;o++)t=r[o],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var d_=h&&"documentMode"in document&&11>=document.documentMode,Nn=null,Xa=null,xi=null,Ya=!1;function Id(t,r,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ya||Nn==null||Nn!==Jt(a)||(a=Nn,"selectionStart"in a&&Qa(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),xi&&Si(xi,a)||(xi=a,a=Ao(Xa,"onSelect"),0<a.length&&(r=new za("onSelect","select",null,r,o),t.push({event:r,listeners:a}),r.target=Nn)))}function Ro(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var An={animationend:Ro("Animation","AnimationEnd"),animationiteration:Ro("Animation","AnimationIteration"),animationstart:Ro("Animation","AnimationStart"),transitionend:Ro("Transition","TransitionEnd")},Ja={},Dd={};h&&(Dd=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function Oo(t){if(Ja[t])return Ja[t];if(!An[t])return t;var r=An[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in Dd)return Ja[t]=r[o];return t}var Pd=Oo("animationend"),Md=Oo("animationiteration"),Fd=Oo("animationstart"),Ld=Oo("transitionend"),Bd=new Map,jd="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 Dr(t,r){Bd.set(t,r),u(r,[t])}for(var el=0;el<jd.length;el++){var tl=jd[el],h_=tl.toLowerCase(),p_=tl[0].toUpperCase()+tl.slice(1);Dr(h_,"on"+p_)}Dr(Pd,"onAnimationEnd"),Dr(Md,"onAnimationIteration"),Dr(Fd,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Ld,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="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(" "),m_=new Set("cancel close invalid load scroll toggle".split(" ").concat(bi));function Ud(t,r,o){var a=t.type||"unknown-event";t.currentTarget=o,hv(a,r,void 0,t),t.currentTarget=null}function Hd(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var a=t[o],c=a.event;a=a.listeners;e:{var d=void 0;if(r)for(var g=a.length-1;0<=g;g--){var C=a[g],A=C.instance,L=C.currentTarget;if(C=C.listener,A!==d&&c.isPropagationStopped())break e;Ud(c,C,L),d=A}else for(g=0;g<a.length;g++){if(C=a[g],A=C.instance,L=C.currentTarget,C=C.listener,A!==d&&c.isPropagationStopped())break e;Ud(c,C,L),d=A}}}if(ho)throw t=Ia,ho=!1,Ia=null,t}function De(t,r){var o=r[ul];o===void 0&&(o=r[ul]=new Set);var a=t+"__bubble";o.has(a)||(zd(r,t,2,!1),o.add(a))}function rl(t,r,o){var a=0;r&&(a|=4),zd(o,t,a,r)}var No="_reactListening"+Math.random().toString(36).slice(2);function Ti(t){if(!t[No]){t[No]=!0,s.forEach(function(o){o!=="selectionchange"&&(m_.has(o)||rl(o,!1,t),rl(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[No]||(r[No]=!0,rl("selectionchange",!1,r))}}function zd(t,r,o,a){switch(fd(r)){case 1:var c=Ov;break;case 4:c=Nv;break;default:c=ja}o=c.bind(null,r,o,t),c=void 0,!Aa||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(c=!0),a?c!==void 0?t.addEventListener(r,o,{capture:!0,passive:c}):t.addEventListener(r,o,!0):c!==void 0?t.addEventListener(r,o,{passive:c}):t.addEventListener(r,o,!1)}function nl(t,r,o,a,c){var d=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var C=a.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.parentNode===c)break;if(g===4)for(g=a.return;g!==null;){var A=g.tag;if((A===3||A===4)&&(A=g.stateNode.containerInfo,A===c||A.nodeType===8&&A.parentNode===c))return;g=g.return}for(;C!==null;){if(g=en(C),g===null)return;if(A=g.tag,A===5||A===6){a=d=g;continue e}C=C.parentNode}}a=a.return}Wf(function(){var L=d,H=Ra(o),G=[];e:{var U=Bd.get(t);if(U!==void 0){var Z=za,X=t;switch(t){case"keypress":if(bo(o)===0)break e;case"keydown":case"keyup":Z=qv;break;case"focusin":X="focus",Z=qa;break;case"focusout":X="blur",Z=qa;break;case"beforeblur":case"afterblur":Z=qa;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Dv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Zv;break;case Pd:case Md:case Fd:Z=Fv;break;case Ld:Z=Qv;break;case"scroll":Z=Av;break;case"wheel":Z=Yv;break;case"copy":case"cut":case"paste":Z=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=gd}var Y=(r&4)!==0,Ge=!Y&&t==="scroll",P=Y?U!==null?U+"Capture":null:U;Y=[];for(var I=L,M;I!==null;){M=I;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,P!==null&&($=ai(I,P),$!=null&&Y.push(Ci(I,$,M)))),Ge)break;I=I.return}0<Y.length&&(U=new Z(U,X,null,o,H),G.push({event:U,listeners:Y}))}}if((r&7)===0){e:{if(U=t==="mouseover"||t==="pointerover",Z=t==="mouseout"||t==="pointerout",U&&o!==ka&&(X=o.relatedTarget||o.fromElement)&&(en(X)||X[hr]))break e;if((Z||U)&&(U=H.window===H?H:(U=H.ownerDocument)?U.defaultView||U.parentWindow:window,Z?(X=o.relatedTarget||o.toElement,Z=L,X=X?en(X):null,X!==null&&(Ge=Jr(X),X!==Ge||X.tag!==5&&X.tag!==6)&&(X=null)):(Z=null,X=L),Z!==X)){if(Y=pd,$="onMouseLeave",P="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Y=gd,$="onPointerLeave",P="onPointerEnter",I="pointer"),Ge=Z==null?U:Pn(Z),M=X==null?U:Pn(X),U=new Y($,I+"leave",Z,o,H),U.target=Ge,U.relatedTarget=M,$=null,en(H)===L&&(Y=new Y(P,I+"enter",X,o,H),Y.target=M,Y.relatedTarget=Ge,$=Y),Ge=$,Z&&X)t:{for(Y=Z,P=X,I=0,M=Y;M;M=In(M))I++;for(M=0,$=P;$;$=In($))M++;for(;0<I-M;)Y=In(Y),I--;for(;0<M-I;)P=In(P),M--;for(;I--;){if(Y===P||P!==null&&Y===P.alternate)break t;Y=In(Y),P=In(P)}Y=null}else Y=null;Z!==null&&Gd(G,U,Z,Y,!1),X!==null&&Ge!==null&&Gd(G,Ge,X,Y,!0)}}e:{if(U=L?Pn(L):window,Z=U.nodeName&&U.nodeName.toLowerCase(),Z==="select"||Z==="input"&&U.type==="file")var ee=o_;else if(Sd(U))if(bd)ee=u_;else{ee=a_;var ne=s_}else(Z=U.nodeName)&&Z.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ee=l_);if(ee&&(ee=ee(t,L))){xd(G,ee,o,H);break e}ne&&ne(t,U,L),t==="focusout"&&(ne=U._wrapperState)&&ne.controlled&&U.type==="number"&&Sa(U,"number",U.value)}switch(ne=L?Pn(L):window,t){case"focusin":(Sd(ne)||ne.contentEditable==="true")&&(Nn=ne,Xa=L,xi=null);break;case"focusout":xi=Xa=Nn=null;break;case"mousedown":Ya=!0;break;case"contextmenu":case"mouseup":case"dragend":Ya=!1,Id(G,o,H);break;case"selectionchange":if(d_)break;case"keydown":case"keyup":Id(G,o,H)}var ie;if(Wa)e:{switch(t){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else On?Ed(t,o)&&(ae="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(yd&&o.locale!=="ko"&&(On||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&On&&(ie=dd()):(Ir=H,Ha="value"in Ir?Ir.value:Ir.textContent,On=!0)),ne=Ao(L,ae),0<ne.length&&(ae=new md(ae,t,null,o,H),G.push({event:ae,listeners:ne}),ie?ae.data=ie:(ie=wd(o),ie!==null&&(ae.data=ie)))),(ie=e_?t_(t,o):r_(t,o))&&(L=Ao(L,"onBeforeInput"),0<L.length&&(H=new md("onBeforeInput","beforeinput",null,o,H),G.push({event:H,listeners:L}),H.data=ie))}Hd(G,r)})}function Ci(t,r,o){return{instance:t,listener:r,currentTarget:o}}function Ao(t,r){for(var o=r+"Capture",a=[];t!==null;){var c=t,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=ai(t,o),d!=null&&a.unshift(Ci(t,d,c)),d=ai(t,r),d!=null&&a.push(Ci(t,d,c))),t=t.return}return a}function In(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Gd(t,r,o,a,c){for(var d=r._reactName,g=[];o!==null&&o!==a;){var C=o,A=C.alternate,L=C.stateNode;if(A!==null&&A===a)break;C.tag===5&&L!==null&&(C=L,c?(A=ai(o,d),A!=null&&g.unshift(Ci(o,A,C))):c||(A=ai(o,d),A!=null&&g.push(Ci(o,A,C)))),o=o.return}g.length!==0&&t.push({event:r,listeners:g})}var g_=/\r\n?/g,y_=/\u0000|\uFFFD/g;function $d(t){return(typeof t=="string"?t:""+t).replace(g_,`
38
- `).replace(y_,"")}function Io(t,r,o){if(r=$d(r),$d(t)!==r&&o)throw Error(i(425))}function Do(){}var il=null,ol=null;function sl(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var al=typeof setTimeout=="function"?setTimeout:void 0,v_=typeof clearTimeout=="function"?clearTimeout:void 0,qd=typeof Promise=="function"?Promise:void 0,__=typeof queueMicrotask=="function"?queueMicrotask:typeof qd<"u"?function(t){return qd.resolve(null).then(t).catch(E_)}:al;function E_(t){setTimeout(function(){throw t})}function ll(t,r){var o=r,a=0;do{var c=o.nextSibling;if(t.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(a===0){t.removeChild(c),gi(r);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);gi(r)}function Pr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Vd(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return t;r--}else o==="/$"&&r++}t=t.previousSibling}return null}var Dn=Math.random().toString(36).slice(2),tr="__reactFiber$"+Dn,ki="__reactProps$"+Dn,hr="__reactContainer$"+Dn,ul="__reactEvents$"+Dn,w_="__reactListeners$"+Dn,S_="__reactHandles$"+Dn;function en(t){var r=t[tr];if(r)return r;for(var o=t.parentNode;o;){if(r=o[hr]||o[tr]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=Vd(t);t!==null;){if(o=t[tr])return o;t=Vd(t)}return r}t=o,o=t.parentNode}return null}function Ri(t){return t=t[tr]||t[hr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Pn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Po(t){return t[ki]||null}var cl=[],Mn=-1;function Mr(t){return{current:t}}function Pe(t){0>Mn||(t.current=cl[Mn],cl[Mn]=null,Mn--)}function Ae(t,r){Mn++,cl[Mn]=t.current,t.current=r}var Fr={},st=Mr(Fr),mt=Mr(!1),tn=Fr;function Fn(t,r){var o=t.type.contextTypes;if(!o)return Fr;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in o)c[d]=r[d];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function gt(t){return t=t.childContextTypes,t!=null}function Mo(){Pe(mt),Pe(st)}function Wd(t,r,o){if(st.current!==Fr)throw Error(i(168));Ae(st,r),Ae(mt,o)}function Zd(t,r,o){var a=t.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var c in a)if(!(c in r))throw Error(i(108,ke(t)||"Unknown",c));return K({},o,a)}function Fo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fr,tn=st.current,Ae(st,t),Ae(mt,mt.current),!0}function Kd(t,r,o){var a=t.stateNode;if(!a)throw Error(i(169));o?(t=Zd(t,r,tn),a.__reactInternalMemoizedMergedChildContext=t,Pe(mt),Pe(st),Ae(st,t)):Pe(mt),Ae(mt,o)}var pr=null,Lo=!1,fl=!1;function Qd(t){pr===null?pr=[t]:pr.push(t)}function x_(t){Lo=!0,Qd(t)}function Lr(){if(!fl&&pr!==null){fl=!0;var t=0,r=Oe;try{var o=pr;for(Oe=1;t<o.length;t++){var a=o[t];do a=a(!0);while(a!==null)}pr=null,Lo=!1}catch(c){throw pr!==null&&(pr=pr.slice(t+1)),Yf(Da,Lr),c}finally{Oe=r,fl=!1}}return null}var Ln=[],Bn=0,Bo=null,jo=0,It=[],Dt=0,rn=null,mr=1,gr="";function nn(t,r){Ln[Bn++]=jo,Ln[Bn++]=Bo,Bo=t,jo=r}function Xd(t,r,o){It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,rn=t;var a=mr;t=gr;var c=32-Ht(a)-1;a&=~(1<<c),o+=1;var d=32-Ht(r)+c;if(30<d){var g=c-c%5;d=(a&(1<<g)-1).toString(32),a>>=g,c-=g,mr=1<<32-Ht(r)+c|o<<c|a,gr=d+t}else mr=1<<d|o<<c|a,gr=t}function dl(t){t.return!==null&&(nn(t,1),Xd(t,1,0))}function hl(t){for(;t===Bo;)Bo=Ln[--Bn],Ln[Bn]=null,jo=Ln[--Bn],Ln[Bn]=null;for(;t===rn;)rn=It[--Dt],It[Dt]=null,gr=It[--Dt],It[Dt]=null,mr=It[--Dt],It[Dt]=null}var xt=null,bt=null,Fe=!1,Gt=null;function Yd(t,r){var o=Lt(5,null,null,0);o.elementType="DELETED",o.stateNode=r,o.return=t,r=t.deletions,r===null?(t.deletions=[o],t.flags|=16):r.push(o)}function Jd(t,r){switch(t.tag){case 5:var o=t.type;return r=r.nodeType!==1||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,xt=t,bt=Pr(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,xt=t,bt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=rn!==null?{id:mr,overflow:gr}:null,t.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=Lt(18,null,null,0),o.stateNode=r,o.return=t,t.child=o,xt=t,bt=null,!0):!1;default:return!1}}function pl(t){return(t.mode&1)!==0&&(t.flags&128)===0}function ml(t){if(Fe){var r=bt;if(r){var o=r;if(!Jd(t,r)){if(pl(t))throw Error(i(418));r=Pr(o.nextSibling);var a=xt;r&&Jd(t,r)?Yd(a,o):(t.flags=t.flags&-4097|2,Fe=!1,xt=t)}}else{if(pl(t))throw Error(i(418));t.flags=t.flags&-4097|2,Fe=!1,xt=t}}}function eh(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;xt=t}function Uo(t){if(t!==xt)return!1;if(!Fe)return eh(t),Fe=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!sl(t.type,t.memoizedProps)),r&&(r=bt)){if(pl(t))throw th(),Error(i(418));for(;r;)Yd(t,r),r=Pr(r.nextSibling)}if(eh(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"){if(r===0){bt=Pr(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}t=t.nextSibling}bt=null}}else bt=xt?Pr(t.stateNode.nextSibling):null;return!0}function th(){for(var t=bt;t;)t=Pr(t.nextSibling)}function jn(){bt=xt=null,Fe=!1}function gl(t){Gt===null?Gt=[t]:Gt.push(t)}var b_=k.ReactCurrentBatchConfig;function Oi(t,r,o){if(t=o.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,t));var c=a,d=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===d?r.ref:(r=function(g){var C=c.refs;g===null?delete C[d]:C[d]=g},r._stringRef=d,r)}if(typeof t!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,t))}return t}function Ho(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function rh(t){var r=t._init;return r(t._payload)}function nh(t){function r(P,I){if(t){var M=P.deletions;M===null?(P.deletions=[I],P.flags|=16):M.push(I)}}function o(P,I){if(!t)return null;for(;I!==null;)r(P,I),I=I.sibling;return null}function a(P,I){for(P=new Map;I!==null;)I.key!==null?P.set(I.key,I):P.set(I.index,I),I=I.sibling;return P}function c(P,I){return P=qr(P,I),P.index=0,P.sibling=null,P}function d(P,I,M){return P.index=M,t?(M=P.alternate,M!==null?(M=M.index,M<I?(P.flags|=2,I):M):(P.flags|=2,I)):(P.flags|=1048576,I)}function g(P){return t&&P.alternate===null&&(P.flags|=2),P}function C(P,I,M,$){return I===null||I.tag!==6?(I=au(M,P.mode,$),I.return=P,I):(I=c(I,M),I.return=P,I)}function A(P,I,M,$){var ee=M.type;return ee===z?H(P,I,M.props.children,$,M.key):I!==null&&(I.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&rh(ee)===I.type)?($=c(I,M.props),$.ref=Oi(P,I,M),$.return=P,$):($=fs(M.type,M.key,M.props,null,P.mode,$),$.ref=Oi(P,I,M),$.return=P,$)}function L(P,I,M,$){return I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation?(I=lu(M,P.mode,$),I.return=P,I):(I=c(I,M.children||[]),I.return=P,I)}function H(P,I,M,$,ee){return I===null||I.tag!==7?(I=dn(M,P.mode,$,ee),I.return=P,I):(I=c(I,M),I.return=P,I)}function G(P,I,M){if(typeof I=="string"&&I!==""||typeof I=="number")return I=au(""+I,P.mode,M),I.return=P,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case T:return M=fs(I.type,I.key,I.props,null,P.mode,M),M.ref=Oi(P,null,I),M.return=P,M;case F:return I=lu(I,P.mode,M),I.return=P,I;case $e:var $=I._init;return G(P,$(I._payload),M)}if(ii(I)||re(I))return I=dn(I,P.mode,M,null),I.return=P,I;Ho(P,I)}return null}function U(P,I,M,$){var ee=I!==null?I.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:C(P,I,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return M.key===ee?A(P,I,M,$):null;case F:return M.key===ee?L(P,I,M,$):null;case $e:return ee=M._init,U(P,I,ee(M._payload),$)}if(ii(M)||re(M))return ee!==null?null:H(P,I,M,$,null);Ho(P,M)}return null}function Z(P,I,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return P=P.get(M)||null,C(I,P,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return P=P.get($.key===null?M:$.key)||null,A(I,P,$,ee);case F:return P=P.get($.key===null?M:$.key)||null,L(I,P,$,ee);case $e:var ne=$._init;return Z(P,I,M,ne($._payload),ee)}if(ii($)||re($))return P=P.get(M)||null,H(I,P,$,ee,null);Ho(I,$)}return null}function X(P,I,M,$){for(var ee=null,ne=null,ie=I,ae=I=0,Ye=null;ie!==null&&ae<M.length;ae++){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var be=U(P,ie,M[ae],$);if(be===null){ie===null&&(ie=Ye);break}t&&ie&&be.alternate===null&&r(P,ie),I=d(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be,ie=Ye}if(ae===M.length)return o(P,ie),Fe&&nn(P,ae),ee;if(ie===null){for(;ae<M.length;ae++)ie=G(P,M[ae],$),ie!==null&&(I=d(ie,I,ae),ne===null?ee=ie:ne.sibling=ie,ne=ie);return Fe&&nn(P,ae),ee}for(ie=a(P,ie);ae<M.length;ae++)Ye=Z(ie,P,ae,M[ae],$),Ye!==null&&(t&&Ye.alternate!==null&&ie.delete(Ye.key===null?ae:Ye.key),I=d(Ye,I,ae),ne===null?ee=Ye:ne.sibling=Ye,ne=Ye);return t&&ie.forEach(function(Vr){return r(P,Vr)}),Fe&&nn(P,ae),ee}function Y(P,I,M,$){var ee=re(M);if(typeof ee!="function")throw Error(i(150));if(M=ee.call(M),M==null)throw Error(i(151));for(var ne=ee=null,ie=I,ae=I=0,Ye=null,be=M.next();ie!==null&&!be.done;ae++,be=M.next()){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var Vr=U(P,ie,be.value,$);if(Vr===null){ie===null&&(ie=Ye);break}t&&ie&&Vr.alternate===null&&r(P,ie),I=d(Vr,I,ae),ne===null?ee=Vr:ne.sibling=Vr,ne=Vr,ie=Ye}if(be.done)return o(P,ie),Fe&&nn(P,ae),ee;if(ie===null){for(;!be.done;ae++,be=M.next())be=G(P,be.value,$),be!==null&&(I=d(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be);return Fe&&nn(P,ae),ee}for(ie=a(P,ie);!be.done;ae++,be=M.next())be=Z(ie,P,ae,be.value,$),be!==null&&(t&&be.alternate!==null&&ie.delete(be.key===null?ae:be.key),I=d(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be);return t&&ie.forEach(function(n1){return r(P,n1)}),Fe&&nn(P,ae),ee}function Ge(P,I,M,$){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case T:e:{for(var ee=M.key,ne=I;ne!==null;){if(ne.key===ee){if(ee=M.type,ee===z){if(ne.tag===7){o(P,ne.sibling),I=c(ne,M.props.children),I.return=P,P=I;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&rh(ee)===ne.type){o(P,ne.sibling),I=c(ne,M.props),I.ref=Oi(P,ne,M),I.return=P,P=I;break e}o(P,ne);break}else r(P,ne);ne=ne.sibling}M.type===z?(I=dn(M.props.children,P.mode,$,M.key),I.return=P,P=I):($=fs(M.type,M.key,M.props,null,P.mode,$),$.ref=Oi(P,I,M),$.return=P,P=$)}return g(P);case F:e:{for(ne=M.key;I!==null;){if(I.key===ne)if(I.tag===4&&I.stateNode.containerInfo===M.containerInfo&&I.stateNode.implementation===M.implementation){o(P,I.sibling),I=c(I,M.children||[]),I.return=P,P=I;break e}else{o(P,I);break}else r(P,I);I=I.sibling}I=lu(M,P.mode,$),I.return=P,P=I}return g(P);case $e:return ne=M._init,Ge(P,I,ne(M._payload),$)}if(ii(M))return X(P,I,M,$);if(re(M))return Y(P,I,M,$);Ho(P,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,I!==null&&I.tag===6?(o(P,I.sibling),I=c(I,M),I.return=P,P=I):(o(P,I),I=au(M,P.mode,$),I.return=P,P=I),g(P)):o(P,I)}return Ge}var Un=nh(!0),ih=nh(!1),zo=Mr(null),Go=null,Hn=null,yl=null;function vl(){yl=Hn=Go=null}function _l(t){var r=zo.current;Pe(zo),t._currentValue=r}function El(t,r,o){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===o)break;t=t.return}}function zn(t,r){Go=t,yl=Hn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(yt=!0),t.firstContext=null)}function Pt(t){var r=t._currentValue;if(yl!==t)if(t={context:t,memoizedValue:r,next:null},Hn===null){if(Go===null)throw Error(i(308));Hn=t,Go.dependencies={lanes:0,firstContext:t}}else Hn=Hn.next=t;return r}var on=null;function wl(t){on===null?on=[t]:on.push(t)}function oh(t,r,o,a){var c=r.interleaved;return c===null?(o.next=o,wl(r)):(o.next=c.next,c.next=o),r.interleaved=o,yr(t,a)}function yr(t,r){t.lanes|=r;var o=t.alternate;for(o!==null&&(o.lanes|=r),o=t,t=t.return;t!==null;)t.childLanes|=r,o=t.alternate,o!==null&&(o.childLanes|=r),o=t,t=t.return;return o.tag===3?o.stateNode:null}var Br=!1;function Sl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sh(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function vr(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function jr(t,r,o){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var c=a.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r,yr(t,o)}return c=a.interleaved,c===null?(r.next=r,wl(a)):(r.next=c.next,c.next=r),a.interleaved=r,yr(t,o)}function $o(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194240)!==0)){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Fa(t,o)}}function ah(t,r){var o=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var c=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var g={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};d===null?c=d=g:d=d.next=g,o=o.next}while(o!==null);d===null?c=d=r:d=d.next=r}else c=d=r;o={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:a.shared,effects:a.effects},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}function qo(t,r,o,a){var c=t.updateQueue;Br=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var A=C,L=A.next;A.next=null,g===null?d=L:g.next=L,g=A;var H=t.alternate;H!==null&&(H=H.updateQueue,C=H.lastBaseUpdate,C!==g&&(C===null?H.firstBaseUpdate=L:C.next=L,H.lastBaseUpdate=A))}if(d!==null){var G=c.baseState;g=0,H=L=A=null,C=d;do{var U=C.lane,Z=C.eventTime;if((a&U)===U){H!==null&&(H=H.next={eventTime:Z,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var X=t,Y=C;switch(U=r,Z=o,Y.tag){case 1:if(X=Y.payload,typeof X=="function"){G=X.call(Z,G,U);break e}G=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=Y.payload,U=typeof X=="function"?X.call(Z,G,U):X,U==null)break e;G=K({},G,U);break e;case 2:Br=!0}}C.callback!==null&&C.lane!==0&&(t.flags|=64,U=c.effects,U===null?c.effects=[C]:U.push(C))}else Z={eventTime:Z,lane:U,tag:C.tag,payload:C.payload,callback:C.callback,next:null},H===null?(L=H=Z,A=G):H=H.next=Z,g|=U;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;U=C,C=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}}while(!0);if(H===null&&(A=G),c.baseState=A,c.firstBaseUpdate=L,c.lastBaseUpdate=H,r=c.shared.interleaved,r!==null){c=r;do g|=c.lane,c=c.next;while(c!==r)}else d===null&&(c.shared.lanes=0);ln|=g,t.lanes=g,t.memoizedState=G}}function lh(t,r,o){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var a=t[r],c=a.callback;if(c!==null){if(a.callback=null,a=o,typeof c!="function")throw Error(i(191,c));c.call(a)}}}var Ni={},rr=Mr(Ni),Ai=Mr(Ni),Ii=Mr(Ni);function sn(t){if(t===Ni)throw Error(i(174));return t}function xl(t,r){switch(Ae(Ii,r),Ae(Ai,t),Ae(rr,Ni),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:ba(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=ba(r,t)}Pe(rr),Ae(rr,r)}function Gn(){Pe(rr),Pe(Ai),Pe(Ii)}function uh(t){sn(Ii.current);var r=sn(rr.current),o=ba(r,t.type);r!==o&&(Ae(Ai,t),Ae(rr,o))}function bl(t){Ai.current===t&&(Pe(rr),Pe(Ai))}var Le=Mr(0);function Vo(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Tl=[];function Cl(){for(var t=0;t<Tl.length;t++)Tl[t]._workInProgressVersionPrimary=null;Tl.length=0}var Wo=k.ReactCurrentDispatcher,kl=k.ReactCurrentBatchConfig,an=0,Be=null,Ze=null,Qe=null,Zo=!1,Di=!1,Pi=0,T_=0;function at(){throw Error(i(321))}function Rl(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!zt(t[o],r[o]))return!1;return!0}function Ol(t,r,o,a,c,d){if(an=d,Be=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Wo.current=t===null||t.memoizedState===null?O_:N_,t=o(a,c),Di){d=0;do{if(Di=!1,Pi=0,25<=d)throw Error(i(301));d+=1,Qe=Ze=null,r.updateQueue=null,Wo.current=A_,t=o(a,c)}while(Di)}if(Wo.current=Xo,r=Ze!==null&&Ze.next!==null,an=0,Qe=Ze=Be=null,Zo=!1,r)throw Error(i(300));return t}function Nl(){var t=Pi!==0;return Pi=0,t}function nr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Be.memoizedState=Qe=t:Qe=Qe.next=t,Qe}function Mt(){if(Ze===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Ze.next;var r=Qe===null?Be.memoizedState:Qe.next;if(r!==null)Qe=r,Ze=t;else{if(t===null)throw Error(i(310));Ze=t,t={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Qe===null?Be.memoizedState=Qe=t:Qe=Qe.next=t}return Qe}function Mi(t,r){return typeof r=="function"?r(t):r}function Al(t){var r=Mt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=Ze,c=a.baseQueue,d=o.pending;if(d!==null){if(c!==null){var g=c.next;c.next=d.next,d.next=g}a.baseQueue=c=d,o.pending=null}if(c!==null){d=c.next,a=a.baseState;var C=g=null,A=null,L=d;do{var H=L.lane;if((an&H)===H)A!==null&&(A=A.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),a=L.hasEagerState?L.eagerState:t(a,L.action);else{var G={lane:H,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};A===null?(C=A=G,g=a):A=A.next=G,Be.lanes|=H,ln|=H}L=L.next}while(L!==null&&L!==d);A===null?g=a:A.next=C,zt(a,r.memoizedState)||(yt=!0),r.memoizedState=a,r.baseState=g,r.baseQueue=A,o.lastRenderedState=a}if(t=o.interleaved,t!==null){c=t;do d=c.lane,Be.lanes|=d,ln|=d,c=c.next;while(c!==t)}else c===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function Il(t){var r=Mt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=o.dispatch,c=o.pending,d=r.memoizedState;if(c!==null){o.pending=null;var g=c=c.next;do d=t(d,g.action),g=g.next;while(g!==c);zt(d,r.memoizedState)||(yt=!0),r.memoizedState=d,r.baseQueue===null&&(r.baseState=d),o.lastRenderedState=d}return[d,a]}function ch(){}function fh(t,r){var o=Be,a=Mt(),c=r(),d=!zt(a.memoizedState,c);if(d&&(a.memoizedState=c,yt=!0),a=a.queue,Dl(ph.bind(null,o,a,t),[t]),a.getSnapshot!==r||d||Qe!==null&&Qe.memoizedState.tag&1){if(o.flags|=2048,Fi(9,hh.bind(null,o,a,c,r),void 0,null),Xe===null)throw Error(i(349));(an&30)!==0||dh(o,r,c)}return c}function dh(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function hh(t,r,o,a){r.value=o,r.getSnapshot=a,mh(r)&&gh(t)}function ph(t,r,o){return o(function(){mh(r)&&gh(t)})}function mh(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!zt(t,o)}catch{return!0}}function gh(t){var r=yr(t,1);r!==null&&Wt(r,t,1,-1)}function yh(t){var r=nr();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:t},r.queue=t,t=t.dispatch=R_.bind(null,Be,t),[r.memoizedState,t]}function Fi(t,r,o,a){return t={tag:t,create:r,destroy:o,deps:a,next:null},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.lastEffect=t.next=t):(o=r.lastEffect,o===null?r.lastEffect=t.next=t:(a=o.next,o.next=t,t.next=a,r.lastEffect=t)),t}function vh(){return Mt().memoizedState}function Ko(t,r,o,a){var c=nr();Be.flags|=t,c.memoizedState=Fi(1|r,o,void 0,a===void 0?null:a)}function Qo(t,r,o,a){var c=Mt();a=a===void 0?null:a;var d=void 0;if(Ze!==null){var g=Ze.memoizedState;if(d=g.destroy,a!==null&&Rl(a,g.deps)){c.memoizedState=Fi(r,o,d,a);return}}Be.flags|=t,c.memoizedState=Fi(1|r,o,d,a)}function _h(t,r){return Ko(8390656,8,t,r)}function Dl(t,r){return Qo(2048,8,t,r)}function Eh(t,r){return Qo(4,2,t,r)}function wh(t,r){return Qo(4,4,t,r)}function Sh(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function xh(t,r,o){return o=o!=null?o.concat([t]):null,Qo(4,4,Sh.bind(null,r,t),o)}function Pl(){}function bh(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Rl(r,a[1])?a[0]:(o.memoizedState=[t,r],t)}function Th(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Rl(r,a[1])?a[0]:(t=t(),o.memoizedState=[t,r],t)}function Ch(t,r,o){return(an&21)===0?(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=o):(zt(o,r)||(o=rd(),Be.lanes|=o,ln|=o,t.baseState=!0),r)}function C_(t,r){var o=Oe;Oe=o!==0&&4>o?o:4,t(!0);var a=kl.transition;kl.transition={};try{t(!1),r()}finally{Oe=o,kl.transition=a}}function kh(){return Mt().memoizedState}function k_(t,r,o){var a=Gr(t);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Rh(t))Oh(r,o);else if(o=oh(t,r,o,a),o!==null){var c=dt();Wt(o,t,a,c),Nh(o,r,a)}}function R_(t,r,o){var a=Gr(t),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Rh(t))Oh(r,c);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=r.lastRenderedReducer,d!==null))try{var g=r.lastRenderedState,C=d(g,o);if(c.hasEagerState=!0,c.eagerState=C,zt(C,g)){var A=r.interleaved;A===null?(c.next=c,wl(r)):(c.next=A.next,A.next=c),r.interleaved=c;return}}catch{}finally{}o=oh(t,r,c,a),o!==null&&(c=dt(),Wt(o,t,a,c),Nh(o,r,a))}}function Rh(t){var r=t.alternate;return t===Be||r!==null&&r===Be}function Oh(t,r){Di=Zo=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Nh(t,r,o){if((o&4194240)!==0){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Fa(t,o)}}var Xo={readContext:Pt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},O_={readContext:Pt,useCallback:function(t,r){return nr().memoizedState=[t,r===void 0?null:r],t},useContext:Pt,useEffect:_h,useImperativeHandle:function(t,r,o){return o=o!=null?o.concat([t]):null,Ko(4194308,4,Sh.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Ko(4194308,4,t,r)},useInsertionEffect:function(t,r){return Ko(4,2,t,r)},useMemo:function(t,r){var o=nr();return r=r===void 0?null:r,t=t(),o.memoizedState=[t,r],t},useReducer:function(t,r,o){var a=nr();return r=o!==void 0?o(r):r,a.memoizedState=a.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},a.queue=t,t=t.dispatch=k_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var r=nr();return t={current:t},r.memoizedState=t},useState:yh,useDebugValue:Pl,useDeferredValue:function(t){return nr().memoizedState=t},useTransition:function(){var t=yh(!1),r=t[0];return t=C_.bind(null,t[1]),nr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,o){var a=Be,c=nr();if(Fe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Xe===null)throw Error(i(349));(an&30)!==0||dh(a,r,o)}c.memoizedState=o;var d={value:o,getSnapshot:r};return c.queue=d,_h(ph.bind(null,a,d,t),[t]),a.flags|=2048,Fi(9,hh.bind(null,a,d,o,r),void 0,null),o},useId:function(){var t=nr(),r=Xe.identifierPrefix;if(Fe){var o=gr,a=mr;o=(a&~(1<<32-Ht(a)-1)).toString(32)+o,r=":"+r+"R"+o,o=Pi++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=T_++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},N_={readContext:Pt,useCallback:bh,useContext:Pt,useEffect:Dl,useImperativeHandle:xh,useInsertionEffect:Eh,useLayoutEffect:wh,useMemo:Th,useReducer:Al,useRef:vh,useState:function(){return Al(Mi)},useDebugValue:Pl,useDeferredValue:function(t){var r=Mt();return Ch(r,Ze.memoizedState,t)},useTransition:function(){var t=Al(Mi)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:ch,useSyncExternalStore:fh,useId:kh,unstable_isNewReconciler:!1},A_={readContext:Pt,useCallback:bh,useContext:Pt,useEffect:Dl,useImperativeHandle:xh,useInsertionEffect:Eh,useLayoutEffect:wh,useMemo:Th,useReducer:Il,useRef:vh,useState:function(){return Il(Mi)},useDebugValue:Pl,useDeferredValue:function(t){var r=Mt();return Ze===null?r.memoizedState=t:Ch(r,Ze.memoizedState,t)},useTransition:function(){var t=Il(Mi)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:ch,useSyncExternalStore:fh,useId:kh,unstable_isNewReconciler:!1};function $t(t,r){if(t&&t.defaultProps){r=K({},r),t=t.defaultProps;for(var o in t)r[o]===void 0&&(r[o]=t[o]);return r}return r}function Ml(t,r,o,a){r=t.memoizedState,o=o(a,r),o=o==null?r:K({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Yo={isMounted:function(t){return(t=t._reactInternals)?Jr(t)===t:!1},enqueueSetState:function(t,r,o){t=t._reactInternals;var a=dt(),c=Gr(t),d=vr(a,c);d.payload=r,o!=null&&(d.callback=o),r=jr(t,d,c),r!==null&&(Wt(r,t,c,a),$o(r,t,c))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var a=dt(),c=Gr(t),d=vr(a,c);d.tag=1,d.payload=r,o!=null&&(d.callback=o),r=jr(t,d,c),r!==null&&(Wt(r,t,c,a),$o(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=dt(),a=Gr(t),c=vr(o,a);c.tag=2,r!=null&&(c.callback=r),r=jr(t,c,a),r!==null&&(Wt(r,t,a,o),$o(r,t,a))}};function Ah(t,r,o,a,c,d,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,d,g):r.prototype&&r.prototype.isPureReactComponent?!Si(o,a)||!Si(c,d):!0}function Ih(t,r,o){var a=!1,c=Fr,d=r.contextType;return typeof d=="object"&&d!==null?d=Pt(d):(c=gt(r)?tn:st.current,a=r.contextTypes,d=(a=a!=null)?Fn(t,c):Fr),r=new r(o,d),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Yo,t.stateNode=r,r._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=d),r}function Dh(t,r,o,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,a),r.state!==t&&Yo.enqueueReplaceState(r,r.state,null)}function Fl(t,r,o,a){var c=t.stateNode;c.props=o,c.state=t.memoizedState,c.refs={},Sl(t);var d=r.contextType;typeof d=="object"&&d!==null?c.context=Pt(d):(d=gt(r)?tn:st.current,c.context=Fn(t,d)),c.state=t.memoizedState,d=r.getDerivedStateFromProps,typeof d=="function"&&(Ml(t,r,d,o),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(r=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),r!==c.state&&Yo.enqueueReplaceState(c,c.state,null),qo(t,o,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function $n(t,r){try{var o="",a=r;do o+=ye(a),a=a.return;while(a);var c=o}catch(d){c=`
37
+ `+c[g].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=g&&0<=C);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?j(t):""}function ye(t){switch(t.tag){case 5:return j(t.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return t=he(t.type,!1),t;case 11:return t=he(t.type.render,!1),t;case 1:return t=he(t.type,!0),t;default:return""}}function ve(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case F:return"Portal";case fe:return"Profiler";case V:return"StrictMode";case ue:return"Suspense";case Ue:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case oe:return(t.displayName||"Context")+".Consumer";case te:return(t._context.displayName||"Context")+".Provider";case pe:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ie:return r=t.displayName||null,r!==null?r:ve(t.type)||"Memo";case $e:r=t._payload,t=t._init;try{return ve(t(r))}catch{}}return null}function ke(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(r);case 8:return r===V?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function et(t){var r=Re(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),a=""+t[r];if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,d=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,d.call(this,g)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ni(t){t._valueTracker||(t._valueTracker=et(t))}function ct(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),a="";return t&&(a=Re(t)?t.checked?"true":"false":t.value),t=a,t!==o?(r.setValue(t),!0):!1}function Jt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ea(t,r){var o=r.checked;return Z({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function If(t,r){var o=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;o=Te(r.value!=null?r.value:o),t._wrapperState={initialChecked:a,initialValue:o,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Df(t,r){r=r.checked,r!=null&&x(t,"checked",r,!1)}function wa(t,r){Df(t,r);var o=Te(r.value),a=r.type;if(o!=null)a==="number"?(o===0&&t.value===""||t.value!=o)&&(t.value=""+o):t.value!==""+o&&(t.value=""+o);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?Sa(t,r.type,o):r.hasOwnProperty("defaultValue")&&Sa(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Pf(t,r,o){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,o||r===t.value||(t.value=r),t.defaultValue=r}o=t.name,o!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,o!==""&&(t.name=o)}function Sa(t,r,o){(r!=="number"||Jt(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ii=Array.isArray;function bn(t,r,o,a){if(t=t.options,r){r={};for(var c=0;c<o.length;c++)r["$"+o[c]]=!0;for(o=0;o<t.length;o++)c=r.hasOwnProperty("$"+t[o].value),t[o].selected!==c&&(t[o].selected=c),c&&a&&(t[o].defaultSelected=!0)}else{for(o=""+Te(o),r=null,c=0;c<t.length;c++){if(t[c].value===o){t[c].selected=!0,a&&(t[c].defaultSelected=!0);return}r!==null||t[c].disabled||(r=t[c])}r!==null&&(r.selected=!0)}}function xa(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return Z({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Mf(t,r){var o=r.value;if(o==null){if(o=r.children,r=r.defaultValue,o!=null){if(r!=null)throw Error(i(92));if(ii(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),o=r}t._wrapperState={initialValue:Te(o)}}function Ff(t,r){var o=Te(r.value),a=Te(r.defaultValue);o!=null&&(o=""+o,o!==t.value&&(t.value=o),r.defaultValue==null&&t.defaultValue!==o&&(t.defaultValue=o)),a!=null&&(t.defaultValue=""+a)}function Lf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Bf(t){switch(t){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 ba(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Bf(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var co,jf=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,a,c){MSApp.execUnsafeLocalFunction(function(){return t(r,o,a,c)})}:t}(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(co=co||document.createElement("div"),co.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=co.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function oi(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var si={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},lv=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(t){lv.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),si[r]=si[t]})});function Uf(t,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||si.hasOwnProperty(t)&&si[t]?(""+r).trim():r+"px"}function Hf(t,r){t=t.style;for(var o in r)if(r.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=Uf(o,r[o],a);o==="float"&&(o="cssFloat"),a?t.setProperty(o,c):t[o]=c}}var uv=Z({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 Ta(t,r){if(r){if(uv[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Ca(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 ka=null;function Ra(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Oa=null,Tn=null,Cn=null;function zf(t){if(t=Ri(t)){if(typeof Oa!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Po(r),Oa(t.stateNode,t.type,r))}}function Gf(t){Tn?Cn?Cn.push(t):Cn=[t]:Tn=t}function $f(){if(Tn){var t=Tn,r=Cn;if(Cn=Tn=null,zf(t),r)for(t=0;t<r.length;t++)zf(r[t])}}function qf(t,r){return t(r)}function Vf(){}var Na=!1;function Wf(t,r,o){if(Na)return t(r,o);Na=!0;try{return qf(t,r,o)}finally{Na=!1,(Tn!==null||Cn!==null)&&(Vf(),$f())}}function ai(t,r){var o=t.stateNode;if(o===null)return null;var a=Po(o);if(a===null)return null;o=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var Aa=!1;if(h)try{var li={};Object.defineProperty(li,"passive",{get:function(){Aa=!0}}),window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{Aa=!1}function cv(t,r,o,a,c,d,g,C,A){var L=Array.prototype.slice.call(arguments,3);try{r.apply(o,L)}catch(H){this.onError(H)}}var ui=!1,fo=null,ho=!1,Ia=null,fv={onError:function(t){ui=!0,fo=t}};function dv(t,r,o,a,c,d,g,C,A){ui=!1,fo=null,cv.apply(fv,arguments)}function hv(t,r,o,a,c,d,g,C,A){if(dv.apply(this,arguments),ui){if(ui){var L=fo;ui=!1,fo=null}else throw Error(i(198));ho||(ho=!0,Ia=L)}}function Jr(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function Kf(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function Zf(t){if(Jr(t)!==t)throw Error(i(188))}function pv(t){var r=t.alternate;if(!r){if(r=Jr(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,a=r;;){var c=o.return;if(c===null)break;var d=c.alternate;if(d===null){if(a=c.return,a!==null){o=a;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===o)return Zf(c),t;if(d===a)return Zf(c),r;d=d.sibling}throw Error(i(188))}if(o.return!==a.return)o=c,a=d;else{for(var g=!1,C=c.child;C;){if(C===o){g=!0,o=c,a=d;break}if(C===a){g=!0,a=c,o=d;break}C=C.sibling}if(!g){for(C=d.child;C;){if(C===o){g=!0,o=d,a=c;break}if(C===a){g=!0,a=d,o=c;break}C=C.sibling}if(!g)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function Qf(t){return t=pv(t),t!==null?Xf(t):null}function Xf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Xf(t);if(r!==null)return r;t=t.sibling}return null}var Yf=n.unstable_scheduleCallback,Jf=n.unstable_cancelCallback,mv=n.unstable_shouldYield,gv=n.unstable_requestPaint,ze=n.unstable_now,yv=n.unstable_getCurrentPriorityLevel,Da=n.unstable_ImmediatePriority,ed=n.unstable_UserBlockingPriority,po=n.unstable_NormalPriority,vv=n.unstable_LowPriority,td=n.unstable_IdlePriority,mo=null,er=null;function _v(t){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(mo,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:Sv,Ev=Math.log,wv=Math.LN2;function Sv(t){return t>>>=0,t===0?32:31-(Ev(t)/wv|0)|0}var go=64,yo=4194304;function ci(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vo(t,r){var o=t.pendingLanes;if(o===0)return 0;var a=0,c=t.suspendedLanes,d=t.pingedLanes,g=o&268435455;if(g!==0){var C=g&~c;C!==0?a=ci(C):(d&=g,d!==0&&(a=ci(d)))}else g=o&~c,g!==0?a=ci(g):d!==0&&(a=ci(d));if(a===0)return 0;if(r!==0&&r!==a&&(r&c)===0&&(c=a&-a,d=r&-r,c>=d||c===16&&(d&4194240)!==0))return r;if((a&4)!==0&&(a|=o&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)o=31-Ht(r),c=1<<o,a|=t[o],r&=~c;return a}function xv(t,r){switch(t){case 1:case 2:case 4:return r+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 r+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 bv(t,r){for(var o=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes;0<d;){var g=31-Ht(d),C=1<<g,A=c[g];A===-1?((C&o)===0||(C&a)!==0)&&(c[g]=xv(C,r)):A<=r&&(t.expiredLanes|=C),d&=~C}}function Pa(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function rd(){var t=go;return go<<=1,(go&4194240)===0&&(go=64),t}function Ma(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function fi(t,r,o){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ht(r),t[r]=o}function Tv(t,r){var o=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<o;){var c=31-Ht(o),d=1<<c;r[c]=0,a[c]=-1,t[c]=-1,o&=~d}}function Fa(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var a=31-Ht(o),c=1<<a;c&r|t[a]&r&&(t[a]|=r),o&=~c}}var Oe=0;function nd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var id,La,od,sd,ad,Ba=!1,_o=[],Rr=null,Or=null,Nr=null,di=new Map,hi=new Map,Ar=[],Cv="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 ld(t,r){switch(t){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Or=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":di.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":hi.delete(r.pointerId)}}function pi(t,r,o,a,c,d){return t===null||t.nativeEvent!==d?(t={blockedOn:r,domEventName:o,eventSystemFlags:a,nativeEvent:d,targetContainers:[c]},r!==null&&(r=Ri(r),r!==null&&La(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function kv(t,r,o,a,c){switch(r){case"focusin":return Rr=pi(Rr,t,r,o,a,c),!0;case"dragenter":return Or=pi(Or,t,r,o,a,c),!0;case"mouseover":return Nr=pi(Nr,t,r,o,a,c),!0;case"pointerover":var d=c.pointerId;return di.set(d,pi(di.get(d)||null,t,r,o,a,c)),!0;case"gotpointercapture":return d=c.pointerId,hi.set(d,pi(hi.get(d)||null,t,r,o,a,c)),!0}return!1}function ud(t){var r=en(t.target);if(r!==null){var o=Jr(r);if(o!==null){if(r=o.tag,r===13){if(r=Kf(o),r!==null){t.blockedOn=r,ad(t.priority,function(){od(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Eo(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=Ua(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var a=new o.constructor(o.type,o);ka=a,o.target.dispatchEvent(a),ka=null}else return r=Ri(o),r!==null&&La(r),t.blockedOn=o,!1;r.shift()}return!0}function cd(t,r,o){Eo(t)&&o.delete(r)}function Rv(){Ba=!1,Rr!==null&&Eo(Rr)&&(Rr=null),Or!==null&&Eo(Or)&&(Or=null),Nr!==null&&Eo(Nr)&&(Nr=null),di.forEach(cd),hi.forEach(cd)}function mi(t,r){t.blockedOn===r&&(t.blockedOn=null,Ba||(Ba=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Rv)))}function gi(t){function r(c){return mi(c,t)}if(0<_o.length){mi(_o[0],t);for(var o=1;o<_o.length;o++){var a=_o[o];a.blockedOn===t&&(a.blockedOn=null)}}for(Rr!==null&&mi(Rr,t),Or!==null&&mi(Or,t),Nr!==null&&mi(Nr,t),di.forEach(r),hi.forEach(r),o=0;o<Ar.length;o++)a=Ar[o],a.blockedOn===t&&(a.blockedOn=null);for(;0<Ar.length&&(o=Ar[0],o.blockedOn===null);)ud(o),o.blockedOn===null&&Ar.shift()}var kn=k.ReactCurrentBatchConfig,wo=!0;function Ov(t,r,o,a){var c=Oe,d=kn.transition;kn.transition=null;try{Oe=1,ja(t,r,o,a)}finally{Oe=c,kn.transition=d}}function Nv(t,r,o,a){var c=Oe,d=kn.transition;kn.transition=null;try{Oe=4,ja(t,r,o,a)}finally{Oe=c,kn.transition=d}}function ja(t,r,o,a){if(wo){var c=Ua(t,r,o,a);if(c===null)nl(t,r,a,So,o),ld(t,a);else if(kv(c,t,r,o,a))a.stopPropagation();else if(ld(t,a),r&4&&-1<Cv.indexOf(t)){for(;c!==null;){var d=Ri(c);if(d!==null&&id(d),d=Ua(t,r,o,a),d===null&&nl(t,r,a,So,o),d===c)break;c=d}c!==null&&a.stopPropagation()}else nl(t,r,a,null,o)}}var So=null;function Ua(t,r,o,a){if(So=null,t=Ra(a),t=en(t),t!==null)if(r=Jr(t),r===null)t=null;else if(o=r.tag,o===13){if(t=Kf(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return So=t,null}function fd(t){switch(t){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(yv()){case Da:return 1;case ed:return 4;case po:case vv:return 16;case td:return 536870912;default:return 16}default:return 16}}var Ir=null,Ha=null,xo=null;function dd(){if(xo)return xo;var t,r=Ha,o=r.length,a,c="value"in Ir?Ir.value:Ir.textContent,d=c.length;for(t=0;t<o&&r[t]===c[t];t++);var g=o-t;for(a=1;a<=g&&r[o-a]===c[d-a];a++);return xo=c.slice(t,1<a?1-a:void 0)}function bo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function To(){return!0}function hd(){return!1}function St(t){function r(o,a,c,d,g){this._reactName=o,this._targetInst=c,this.type=a,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var C in t)t.hasOwnProperty(C)&&(o=t[C],this[C]=o?o(d):d[C]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?To:hd,this.isPropagationStopped=hd,this}return Z(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),r}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},za=St(Rn),yi=Z({},Rn,{view:0,detail:0}),Av=St(yi),Ga,$a,vi,Co=Z({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Va,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==vi&&(vi&&t.type==="mousemove"?(Ga=t.screenX-vi.screenX,$a=t.screenY-vi.screenY):$a=Ga=0,vi=t),Ga)},movementY:function(t){return"movementY"in t?t.movementY:$a}}),pd=St(Co),Iv=Z({},Co,{dataTransfer:0}),Dv=St(Iv),Pv=Z({},yi,{relatedTarget:0}),qa=St(Pv),Mv=Z({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Fv=St(Mv),Lv=Z({},Rn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bv=St(Lv),jv=Z({},Rn,{data:0}),md=St(jv),Uv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hv={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"},zv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gv(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=zv[t])?!!r[t]:!1}function Va(){return Gv}var $v=Z({},yi,{key:function(t){if(t.key){var r=Uv[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=bo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Va,charCode:function(t){return t.type==="keypress"?bo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qv=St($v),Vv=Z({},Co,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gd=St(Vv),Wv=Z({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Va}),Kv=St(Wv),Zv=Z({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qv=St(Zv),Xv=Z({},Co,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Yv=St(Xv),Jv=[9,13,27,32],Wa=h&&"CompositionEvent"in window,_i=null;h&&"documentMode"in document&&(_i=document.documentMode);var e_=h&&"TextEvent"in window&&!_i,yd=h&&(!Wa||_i&&8<_i&&11>=_i),vd=" ",_d=!1;function Ed(t,r){switch(t){case"keyup":return Jv.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var On=!1;function t_(t,r){switch(t){case"compositionend":return wd(r);case"keypress":return r.which!==32?null:(_d=!0,vd);case"textInput":return t=r.data,t===vd&&_d?null:t;default:return null}}function r_(t,r){if(On)return t==="compositionend"||!Wa&&Ed(t,r)?(t=dd(),xo=Ha=Ir=null,On=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return yd&&r.locale!=="ko"?null:r.data;default:return null}}var n_={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 Sd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!n_[t.type]:r==="textarea"}function xd(t,r,o,a){Gf(a),r=Ao(r,"onChange"),0<r.length&&(o=new za("onChange","change",null,o,a),t.push({event:o,listeners:r}))}var Ei=null,wi=null;function i_(t){Hd(t,0)}function ko(t){var r=Pn(t);if(ct(r))return t}function o_(t,r){if(t==="change")return r}var bd=!1;if(h){var Ka;if(h){var Za="oninput"in document;if(!Za){var Td=document.createElement("div");Td.setAttribute("oninput","return;"),Za=typeof Td.oninput=="function"}Ka=Za}else Ka=!1;bd=Ka&&(!document.documentMode||9<document.documentMode)}function Cd(){Ei&&(Ei.detachEvent("onpropertychange",kd),wi=Ei=null)}function kd(t){if(t.propertyName==="value"&&ko(wi)){var r=[];xd(r,wi,t,Ra(t)),Wf(i_,r)}}function s_(t,r,o){t==="focusin"?(Cd(),Ei=r,wi=o,Ei.attachEvent("onpropertychange",kd)):t==="focusout"&&Cd()}function a_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ko(wi)}function l_(t,r){if(t==="click")return ko(r)}function u_(t,r){if(t==="input"||t==="change")return ko(r)}function c_(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var zt=typeof Object.is=="function"?Object.is:c_;function Si(t,r){if(zt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),a=Object.keys(r);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var c=o[a];if(!p.call(r,c)||!zt(t[c],r[c]))return!1}return!0}function Rd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Od(t,r){var o=Rd(t);t=0;for(var a;o;){if(o.nodeType===3){if(a=t+o.textContent.length,t<=r&&a>=r)return{node:o,offset:r-t};t=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Rd(o)}}function Nd(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Nd(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Ad(){for(var t=window,r=Jt();r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Jt(t.document)}return r}function Qa(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function f_(t){var r=Ad(),o=t.focusedElem,a=t.selectionRange;if(r!==o&&o&&o.ownerDocument&&Nd(o.ownerDocument.documentElement,o)){if(a!==null&&Qa(o)){if(r=a.start,t=a.end,t===void 0&&(t=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(t,o.value.length);else if(t=(r=o.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var c=o.textContent.length,d=Math.min(a.start,c);a=a.end===void 0?d:Math.min(a.end,c),!t.extend&&d>a&&(c=a,a=d,d=c),c=Od(o,d);var g=Od(o,a);c&&g&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==g.node||t.focusOffset!==g.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),d>a?(t.addRange(r),t.extend(g.node,g.offset)):(r.setEnd(g.node,g.offset),t.addRange(r)))}}for(r=[],t=o;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<r.length;o++)t=r[o],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var d_=h&&"documentMode"in document&&11>=document.documentMode,Nn=null,Xa=null,xi=null,Ya=!1;function Id(t,r,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ya||Nn==null||Nn!==Jt(a)||(a=Nn,"selectionStart"in a&&Qa(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),xi&&Si(xi,a)||(xi=a,a=Ao(Xa,"onSelect"),0<a.length&&(r=new za("onSelect","select",null,r,o),t.push({event:r,listeners:a}),r.target=Nn)))}function Ro(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var An={animationend:Ro("Animation","AnimationEnd"),animationiteration:Ro("Animation","AnimationIteration"),animationstart:Ro("Animation","AnimationStart"),transitionend:Ro("Transition","TransitionEnd")},Ja={},Dd={};h&&(Dd=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function Oo(t){if(Ja[t])return Ja[t];if(!An[t])return t;var r=An[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in Dd)return Ja[t]=r[o];return t}var Pd=Oo("animationend"),Md=Oo("animationiteration"),Fd=Oo("animationstart"),Ld=Oo("transitionend"),Bd=new Map,jd="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 Dr(t,r){Bd.set(t,r),u(r,[t])}for(var el=0;el<jd.length;el++){var tl=jd[el],h_=tl.toLowerCase(),p_=tl[0].toUpperCase()+tl.slice(1);Dr(h_,"on"+p_)}Dr(Pd,"onAnimationEnd"),Dr(Md,"onAnimationIteration"),Dr(Fd,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Ld,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="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(" "),m_=new Set("cancel close invalid load scroll toggle".split(" ").concat(bi));function Ud(t,r,o){var a=t.type||"unknown-event";t.currentTarget=o,hv(a,r,void 0,t),t.currentTarget=null}function Hd(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var a=t[o],c=a.event;a=a.listeners;e:{var d=void 0;if(r)for(var g=a.length-1;0<=g;g--){var C=a[g],A=C.instance,L=C.currentTarget;if(C=C.listener,A!==d&&c.isPropagationStopped())break e;Ud(c,C,L),d=A}else for(g=0;g<a.length;g++){if(C=a[g],A=C.instance,L=C.currentTarget,C=C.listener,A!==d&&c.isPropagationStopped())break e;Ud(c,C,L),d=A}}}if(ho)throw t=Ia,ho=!1,Ia=null,t}function De(t,r){var o=r[ul];o===void 0&&(o=r[ul]=new Set);var a=t+"__bubble";o.has(a)||(zd(r,t,2,!1),o.add(a))}function rl(t,r,o){var a=0;r&&(a|=4),zd(o,t,a,r)}var No="_reactListening"+Math.random().toString(36).slice(2);function Ti(t){if(!t[No]){t[No]=!0,s.forEach(function(o){o!=="selectionchange"&&(m_.has(o)||rl(o,!1,t),rl(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[No]||(r[No]=!0,rl("selectionchange",!1,r))}}function zd(t,r,o,a){switch(fd(r)){case 1:var c=Ov;break;case 4:c=Nv;break;default:c=ja}o=c.bind(null,r,o,t),c=void 0,!Aa||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(c=!0),a?c!==void 0?t.addEventListener(r,o,{capture:!0,passive:c}):t.addEventListener(r,o,!0):c!==void 0?t.addEventListener(r,o,{passive:c}):t.addEventListener(r,o,!1)}function nl(t,r,o,a,c){var d=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var C=a.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.parentNode===c)break;if(g===4)for(g=a.return;g!==null;){var A=g.tag;if((A===3||A===4)&&(A=g.stateNode.containerInfo,A===c||A.nodeType===8&&A.parentNode===c))return;g=g.return}for(;C!==null;){if(g=en(C),g===null)return;if(A=g.tag,A===5||A===6){a=d=g;continue e}C=C.parentNode}}a=a.return}Wf(function(){var L=d,H=Ra(o),G=[];e:{var U=Bd.get(t);if(U!==void 0){var K=za,X=t;switch(t){case"keypress":if(bo(o)===0)break e;case"keydown":case"keyup":K=qv;break;case"focusin":X="focus",K=qa;break;case"focusout":X="blur",K=qa;break;case"beforeblur":case"afterblur":K=qa;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Dv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Kv;break;case Pd:case Md:case Fd:K=Fv;break;case Ld:K=Qv;break;case"scroll":K=Av;break;case"wheel":K=Yv;break;case"copy":case"cut":case"paste":K=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=gd}var Y=(r&4)!==0,Ge=!Y&&t==="scroll",P=Y?U!==null?U+"Capture":null:U;Y=[];for(var I=L,M;I!==null;){M=I;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,P!==null&&($=ai(I,P),$!=null&&Y.push(Ci(I,$,M)))),Ge)break;I=I.return}0<Y.length&&(U=new K(U,X,null,o,H),G.push({event:U,listeners:Y}))}}if((r&7)===0){e:{if(U=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",U&&o!==ka&&(X=o.relatedTarget||o.fromElement)&&(en(X)||X[hr]))break e;if((K||U)&&(U=H.window===H?H:(U=H.ownerDocument)?U.defaultView||U.parentWindow:window,K?(X=o.relatedTarget||o.toElement,K=L,X=X?en(X):null,X!==null&&(Ge=Jr(X),X!==Ge||X.tag!==5&&X.tag!==6)&&(X=null)):(K=null,X=L),K!==X)){if(Y=pd,$="onMouseLeave",P="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Y=gd,$="onPointerLeave",P="onPointerEnter",I="pointer"),Ge=K==null?U:Pn(K),M=X==null?U:Pn(X),U=new Y($,I+"leave",K,o,H),U.target=Ge,U.relatedTarget=M,$=null,en(H)===L&&(Y=new Y(P,I+"enter",X,o,H),Y.target=M,Y.relatedTarget=Ge,$=Y),Ge=$,K&&X)t:{for(Y=K,P=X,I=0,M=Y;M;M=In(M))I++;for(M=0,$=P;$;$=In($))M++;for(;0<I-M;)Y=In(Y),I--;for(;0<M-I;)P=In(P),M--;for(;I--;){if(Y===P||P!==null&&Y===P.alternate)break t;Y=In(Y),P=In(P)}Y=null}else Y=null;K!==null&&Gd(G,U,K,Y,!1),X!==null&&Ge!==null&&Gd(G,Ge,X,Y,!0)}}e:{if(U=L?Pn(L):window,K=U.nodeName&&U.nodeName.toLowerCase(),K==="select"||K==="input"&&U.type==="file")var ee=o_;else if(Sd(U))if(bd)ee=u_;else{ee=a_;var ne=s_}else(K=U.nodeName)&&K.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ee=l_);if(ee&&(ee=ee(t,L))){xd(G,ee,o,H);break e}ne&&ne(t,U,L),t==="focusout"&&(ne=U._wrapperState)&&ne.controlled&&U.type==="number"&&Sa(U,"number",U.value)}switch(ne=L?Pn(L):window,t){case"focusin":(Sd(ne)||ne.contentEditable==="true")&&(Nn=ne,Xa=L,xi=null);break;case"focusout":xi=Xa=Nn=null;break;case"mousedown":Ya=!0;break;case"contextmenu":case"mouseup":case"dragend":Ya=!1,Id(G,o,H);break;case"selectionchange":if(d_)break;case"keydown":case"keyup":Id(G,o,H)}var ie;if(Wa)e:{switch(t){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else On?Ed(t,o)&&(ae="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(yd&&o.locale!=="ko"&&(On||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&On&&(ie=dd()):(Ir=H,Ha="value"in Ir?Ir.value:Ir.textContent,On=!0)),ne=Ao(L,ae),0<ne.length&&(ae=new md(ae,t,null,o,H),G.push({event:ae,listeners:ne}),ie?ae.data=ie:(ie=wd(o),ie!==null&&(ae.data=ie)))),(ie=e_?t_(t,o):r_(t,o))&&(L=Ao(L,"onBeforeInput"),0<L.length&&(H=new md("onBeforeInput","beforeinput",null,o,H),G.push({event:H,listeners:L}),H.data=ie))}Hd(G,r)})}function Ci(t,r,o){return{instance:t,listener:r,currentTarget:o}}function Ao(t,r){for(var o=r+"Capture",a=[];t!==null;){var c=t,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=ai(t,o),d!=null&&a.unshift(Ci(t,d,c)),d=ai(t,r),d!=null&&a.push(Ci(t,d,c))),t=t.return}return a}function In(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Gd(t,r,o,a,c){for(var d=r._reactName,g=[];o!==null&&o!==a;){var C=o,A=C.alternate,L=C.stateNode;if(A!==null&&A===a)break;C.tag===5&&L!==null&&(C=L,c?(A=ai(o,d),A!=null&&g.unshift(Ci(o,A,C))):c||(A=ai(o,d),A!=null&&g.push(Ci(o,A,C)))),o=o.return}g.length!==0&&t.push({event:r,listeners:g})}var g_=/\r\n?/g,y_=/\u0000|\uFFFD/g;function $d(t){return(typeof t=="string"?t:""+t).replace(g_,`
38
+ `).replace(y_,"")}function Io(t,r,o){if(r=$d(r),$d(t)!==r&&o)throw Error(i(425))}function Do(){}var il=null,ol=null;function sl(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var al=typeof setTimeout=="function"?setTimeout:void 0,v_=typeof clearTimeout=="function"?clearTimeout:void 0,qd=typeof Promise=="function"?Promise:void 0,__=typeof queueMicrotask=="function"?queueMicrotask:typeof qd<"u"?function(t){return qd.resolve(null).then(t).catch(E_)}:al;function E_(t){setTimeout(function(){throw t})}function ll(t,r){var o=r,a=0;do{var c=o.nextSibling;if(t.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(a===0){t.removeChild(c),gi(r);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);gi(r)}function Pr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Vd(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return t;r--}else o==="/$"&&r++}t=t.previousSibling}return null}var Dn=Math.random().toString(36).slice(2),tr="__reactFiber$"+Dn,ki="__reactProps$"+Dn,hr="__reactContainer$"+Dn,ul="__reactEvents$"+Dn,w_="__reactListeners$"+Dn,S_="__reactHandles$"+Dn;function en(t){var r=t[tr];if(r)return r;for(var o=t.parentNode;o;){if(r=o[hr]||o[tr]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=Vd(t);t!==null;){if(o=t[tr])return o;t=Vd(t)}return r}t=o,o=t.parentNode}return null}function Ri(t){return t=t[tr]||t[hr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Pn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Po(t){return t[ki]||null}var cl=[],Mn=-1;function Mr(t){return{current:t}}function Pe(t){0>Mn||(t.current=cl[Mn],cl[Mn]=null,Mn--)}function Ae(t,r){Mn++,cl[Mn]=t.current,t.current=r}var Fr={},st=Mr(Fr),mt=Mr(!1),tn=Fr;function Fn(t,r){var o=t.type.contextTypes;if(!o)return Fr;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in o)c[d]=r[d];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function gt(t){return t=t.childContextTypes,t!=null}function Mo(){Pe(mt),Pe(st)}function Wd(t,r,o){if(st.current!==Fr)throw Error(i(168));Ae(st,r),Ae(mt,o)}function Kd(t,r,o){var a=t.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var c in a)if(!(c in r))throw Error(i(108,ke(t)||"Unknown",c));return Z({},o,a)}function Fo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fr,tn=st.current,Ae(st,t),Ae(mt,mt.current),!0}function Zd(t,r,o){var a=t.stateNode;if(!a)throw Error(i(169));o?(t=Kd(t,r,tn),a.__reactInternalMemoizedMergedChildContext=t,Pe(mt),Pe(st),Ae(st,t)):Pe(mt),Ae(mt,o)}var pr=null,Lo=!1,fl=!1;function Qd(t){pr===null?pr=[t]:pr.push(t)}function x_(t){Lo=!0,Qd(t)}function Lr(){if(!fl&&pr!==null){fl=!0;var t=0,r=Oe;try{var o=pr;for(Oe=1;t<o.length;t++){var a=o[t];do a=a(!0);while(a!==null)}pr=null,Lo=!1}catch(c){throw pr!==null&&(pr=pr.slice(t+1)),Yf(Da,Lr),c}finally{Oe=r,fl=!1}}return null}var Ln=[],Bn=0,Bo=null,jo=0,It=[],Dt=0,rn=null,mr=1,gr="";function nn(t,r){Ln[Bn++]=jo,Ln[Bn++]=Bo,Bo=t,jo=r}function Xd(t,r,o){It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,rn=t;var a=mr;t=gr;var c=32-Ht(a)-1;a&=~(1<<c),o+=1;var d=32-Ht(r)+c;if(30<d){var g=c-c%5;d=(a&(1<<g)-1).toString(32),a>>=g,c-=g,mr=1<<32-Ht(r)+c|o<<c|a,gr=d+t}else mr=1<<d|o<<c|a,gr=t}function dl(t){t.return!==null&&(nn(t,1),Xd(t,1,0))}function hl(t){for(;t===Bo;)Bo=Ln[--Bn],Ln[Bn]=null,jo=Ln[--Bn],Ln[Bn]=null;for(;t===rn;)rn=It[--Dt],It[Dt]=null,gr=It[--Dt],It[Dt]=null,mr=It[--Dt],It[Dt]=null}var xt=null,bt=null,Fe=!1,Gt=null;function Yd(t,r){var o=Lt(5,null,null,0);o.elementType="DELETED",o.stateNode=r,o.return=t,r=t.deletions,r===null?(t.deletions=[o],t.flags|=16):r.push(o)}function Jd(t,r){switch(t.tag){case 5:var o=t.type;return r=r.nodeType!==1||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,xt=t,bt=Pr(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,xt=t,bt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=rn!==null?{id:mr,overflow:gr}:null,t.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=Lt(18,null,null,0),o.stateNode=r,o.return=t,t.child=o,xt=t,bt=null,!0):!1;default:return!1}}function pl(t){return(t.mode&1)!==0&&(t.flags&128)===0}function ml(t){if(Fe){var r=bt;if(r){var o=r;if(!Jd(t,r)){if(pl(t))throw Error(i(418));r=Pr(o.nextSibling);var a=xt;r&&Jd(t,r)?Yd(a,o):(t.flags=t.flags&-4097|2,Fe=!1,xt=t)}}else{if(pl(t))throw Error(i(418));t.flags=t.flags&-4097|2,Fe=!1,xt=t}}}function eh(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;xt=t}function Uo(t){if(t!==xt)return!1;if(!Fe)return eh(t),Fe=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!sl(t.type,t.memoizedProps)),r&&(r=bt)){if(pl(t))throw th(),Error(i(418));for(;r;)Yd(t,r),r=Pr(r.nextSibling)}if(eh(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"){if(r===0){bt=Pr(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}t=t.nextSibling}bt=null}}else bt=xt?Pr(t.stateNode.nextSibling):null;return!0}function th(){for(var t=bt;t;)t=Pr(t.nextSibling)}function jn(){bt=xt=null,Fe=!1}function gl(t){Gt===null?Gt=[t]:Gt.push(t)}var b_=k.ReactCurrentBatchConfig;function Oi(t,r,o){if(t=o.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,t));var c=a,d=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===d?r.ref:(r=function(g){var C=c.refs;g===null?delete C[d]:C[d]=g},r._stringRef=d,r)}if(typeof t!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,t))}return t}function Ho(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function rh(t){var r=t._init;return r(t._payload)}function nh(t){function r(P,I){if(t){var M=P.deletions;M===null?(P.deletions=[I],P.flags|=16):M.push(I)}}function o(P,I){if(!t)return null;for(;I!==null;)r(P,I),I=I.sibling;return null}function a(P,I){for(P=new Map;I!==null;)I.key!==null?P.set(I.key,I):P.set(I.index,I),I=I.sibling;return P}function c(P,I){return P=qr(P,I),P.index=0,P.sibling=null,P}function d(P,I,M){return P.index=M,t?(M=P.alternate,M!==null?(M=M.index,M<I?(P.flags|=2,I):M):(P.flags|=2,I)):(P.flags|=1048576,I)}function g(P){return t&&P.alternate===null&&(P.flags|=2),P}function C(P,I,M,$){return I===null||I.tag!==6?(I=au(M,P.mode,$),I.return=P,I):(I=c(I,M),I.return=P,I)}function A(P,I,M,$){var ee=M.type;return ee===z?H(P,I,M.props.children,$,M.key):I!==null&&(I.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&rh(ee)===I.type)?($=c(I,M.props),$.ref=Oi(P,I,M),$.return=P,$):($=fs(M.type,M.key,M.props,null,P.mode,$),$.ref=Oi(P,I,M),$.return=P,$)}function L(P,I,M,$){return I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation?(I=lu(M,P.mode,$),I.return=P,I):(I=c(I,M.children||[]),I.return=P,I)}function H(P,I,M,$,ee){return I===null||I.tag!==7?(I=dn(M,P.mode,$,ee),I.return=P,I):(I=c(I,M),I.return=P,I)}function G(P,I,M){if(typeof I=="string"&&I!==""||typeof I=="number")return I=au(""+I,P.mode,M),I.return=P,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case T:return M=fs(I.type,I.key,I.props,null,P.mode,M),M.ref=Oi(P,null,I),M.return=P,M;case F:return I=lu(I,P.mode,M),I.return=P,I;case $e:var $=I._init;return G(P,$(I._payload),M)}if(ii(I)||re(I))return I=dn(I,P.mode,M,null),I.return=P,I;Ho(P,I)}return null}function U(P,I,M,$){var ee=I!==null?I.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:C(P,I,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return M.key===ee?A(P,I,M,$):null;case F:return M.key===ee?L(P,I,M,$):null;case $e:return ee=M._init,U(P,I,ee(M._payload),$)}if(ii(M)||re(M))return ee!==null?null:H(P,I,M,$,null);Ho(P,M)}return null}function K(P,I,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return P=P.get(M)||null,C(I,P,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return P=P.get($.key===null?M:$.key)||null,A(I,P,$,ee);case F:return P=P.get($.key===null?M:$.key)||null,L(I,P,$,ee);case $e:var ne=$._init;return K(P,I,M,ne($._payload),ee)}if(ii($)||re($))return P=P.get(M)||null,H(I,P,$,ee,null);Ho(I,$)}return null}function X(P,I,M,$){for(var ee=null,ne=null,ie=I,ae=I=0,Ye=null;ie!==null&&ae<M.length;ae++){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var be=U(P,ie,M[ae],$);if(be===null){ie===null&&(ie=Ye);break}t&&ie&&be.alternate===null&&r(P,ie),I=d(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be,ie=Ye}if(ae===M.length)return o(P,ie),Fe&&nn(P,ae),ee;if(ie===null){for(;ae<M.length;ae++)ie=G(P,M[ae],$),ie!==null&&(I=d(ie,I,ae),ne===null?ee=ie:ne.sibling=ie,ne=ie);return Fe&&nn(P,ae),ee}for(ie=a(P,ie);ae<M.length;ae++)Ye=K(ie,P,ae,M[ae],$),Ye!==null&&(t&&Ye.alternate!==null&&ie.delete(Ye.key===null?ae:Ye.key),I=d(Ye,I,ae),ne===null?ee=Ye:ne.sibling=Ye,ne=Ye);return t&&ie.forEach(function(Vr){return r(P,Vr)}),Fe&&nn(P,ae),ee}function Y(P,I,M,$){var ee=re(M);if(typeof ee!="function")throw Error(i(150));if(M=ee.call(M),M==null)throw Error(i(151));for(var ne=ee=null,ie=I,ae=I=0,Ye=null,be=M.next();ie!==null&&!be.done;ae++,be=M.next()){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var Vr=U(P,ie,be.value,$);if(Vr===null){ie===null&&(ie=Ye);break}t&&ie&&Vr.alternate===null&&r(P,ie),I=d(Vr,I,ae),ne===null?ee=Vr:ne.sibling=Vr,ne=Vr,ie=Ye}if(be.done)return o(P,ie),Fe&&nn(P,ae),ee;if(ie===null){for(;!be.done;ae++,be=M.next())be=G(P,be.value,$),be!==null&&(I=d(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be);return Fe&&nn(P,ae),ee}for(ie=a(P,ie);!be.done;ae++,be=M.next())be=K(ie,P,ae,be.value,$),be!==null&&(t&&be.alternate!==null&&ie.delete(be.key===null?ae:be.key),I=d(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be);return t&&ie.forEach(function(n1){return r(P,n1)}),Fe&&nn(P,ae),ee}function Ge(P,I,M,$){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case T:e:{for(var ee=M.key,ne=I;ne!==null;){if(ne.key===ee){if(ee=M.type,ee===z){if(ne.tag===7){o(P,ne.sibling),I=c(ne,M.props.children),I.return=P,P=I;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&rh(ee)===ne.type){o(P,ne.sibling),I=c(ne,M.props),I.ref=Oi(P,ne,M),I.return=P,P=I;break e}o(P,ne);break}else r(P,ne);ne=ne.sibling}M.type===z?(I=dn(M.props.children,P.mode,$,M.key),I.return=P,P=I):($=fs(M.type,M.key,M.props,null,P.mode,$),$.ref=Oi(P,I,M),$.return=P,P=$)}return g(P);case F:e:{for(ne=M.key;I!==null;){if(I.key===ne)if(I.tag===4&&I.stateNode.containerInfo===M.containerInfo&&I.stateNode.implementation===M.implementation){o(P,I.sibling),I=c(I,M.children||[]),I.return=P,P=I;break e}else{o(P,I);break}else r(P,I);I=I.sibling}I=lu(M,P.mode,$),I.return=P,P=I}return g(P);case $e:return ne=M._init,Ge(P,I,ne(M._payload),$)}if(ii(M))return X(P,I,M,$);if(re(M))return Y(P,I,M,$);Ho(P,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,I!==null&&I.tag===6?(o(P,I.sibling),I=c(I,M),I.return=P,P=I):(o(P,I),I=au(M,P.mode,$),I.return=P,P=I),g(P)):o(P,I)}return Ge}var Un=nh(!0),ih=nh(!1),zo=Mr(null),Go=null,Hn=null,yl=null;function vl(){yl=Hn=Go=null}function _l(t){var r=zo.current;Pe(zo),t._currentValue=r}function El(t,r,o){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===o)break;t=t.return}}function zn(t,r){Go=t,yl=Hn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(yt=!0),t.firstContext=null)}function Pt(t){var r=t._currentValue;if(yl!==t)if(t={context:t,memoizedValue:r,next:null},Hn===null){if(Go===null)throw Error(i(308));Hn=t,Go.dependencies={lanes:0,firstContext:t}}else Hn=Hn.next=t;return r}var on=null;function wl(t){on===null?on=[t]:on.push(t)}function oh(t,r,o,a){var c=r.interleaved;return c===null?(o.next=o,wl(r)):(o.next=c.next,c.next=o),r.interleaved=o,yr(t,a)}function yr(t,r){t.lanes|=r;var o=t.alternate;for(o!==null&&(o.lanes|=r),o=t,t=t.return;t!==null;)t.childLanes|=r,o=t.alternate,o!==null&&(o.childLanes|=r),o=t,t=t.return;return o.tag===3?o.stateNode:null}var Br=!1;function Sl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sh(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function vr(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function jr(t,r,o){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var c=a.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r,yr(t,o)}return c=a.interleaved,c===null?(r.next=r,wl(a)):(r.next=c.next,c.next=r),a.interleaved=r,yr(t,o)}function $o(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194240)!==0)){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Fa(t,o)}}function ah(t,r){var o=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var c=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var g={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};d===null?c=d=g:d=d.next=g,o=o.next}while(o!==null);d===null?c=d=r:d=d.next=r}else c=d=r;o={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:a.shared,effects:a.effects},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}function qo(t,r,o,a){var c=t.updateQueue;Br=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var A=C,L=A.next;A.next=null,g===null?d=L:g.next=L,g=A;var H=t.alternate;H!==null&&(H=H.updateQueue,C=H.lastBaseUpdate,C!==g&&(C===null?H.firstBaseUpdate=L:C.next=L,H.lastBaseUpdate=A))}if(d!==null){var G=c.baseState;g=0,H=L=A=null,C=d;do{var U=C.lane,K=C.eventTime;if((a&U)===U){H!==null&&(H=H.next={eventTime:K,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var X=t,Y=C;switch(U=r,K=o,Y.tag){case 1:if(X=Y.payload,typeof X=="function"){G=X.call(K,G,U);break e}G=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=Y.payload,U=typeof X=="function"?X.call(K,G,U):X,U==null)break e;G=Z({},G,U);break e;case 2:Br=!0}}C.callback!==null&&C.lane!==0&&(t.flags|=64,U=c.effects,U===null?c.effects=[C]:U.push(C))}else K={eventTime:K,lane:U,tag:C.tag,payload:C.payload,callback:C.callback,next:null},H===null?(L=H=K,A=G):H=H.next=K,g|=U;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;U=C,C=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}}while(!0);if(H===null&&(A=G),c.baseState=A,c.firstBaseUpdate=L,c.lastBaseUpdate=H,r=c.shared.interleaved,r!==null){c=r;do g|=c.lane,c=c.next;while(c!==r)}else d===null&&(c.shared.lanes=0);ln|=g,t.lanes=g,t.memoizedState=G}}function lh(t,r,o){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var a=t[r],c=a.callback;if(c!==null){if(a.callback=null,a=o,typeof c!="function")throw Error(i(191,c));c.call(a)}}}var Ni={},rr=Mr(Ni),Ai=Mr(Ni),Ii=Mr(Ni);function sn(t){if(t===Ni)throw Error(i(174));return t}function xl(t,r){switch(Ae(Ii,r),Ae(Ai,t),Ae(rr,Ni),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:ba(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=ba(r,t)}Pe(rr),Ae(rr,r)}function Gn(){Pe(rr),Pe(Ai),Pe(Ii)}function uh(t){sn(Ii.current);var r=sn(rr.current),o=ba(r,t.type);r!==o&&(Ae(Ai,t),Ae(rr,o))}function bl(t){Ai.current===t&&(Pe(rr),Pe(Ai))}var Le=Mr(0);function Vo(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Tl=[];function Cl(){for(var t=0;t<Tl.length;t++)Tl[t]._workInProgressVersionPrimary=null;Tl.length=0}var Wo=k.ReactCurrentDispatcher,kl=k.ReactCurrentBatchConfig,an=0,Be=null,Ke=null,Qe=null,Ko=!1,Di=!1,Pi=0,T_=0;function at(){throw Error(i(321))}function Rl(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!zt(t[o],r[o]))return!1;return!0}function Ol(t,r,o,a,c,d){if(an=d,Be=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Wo.current=t===null||t.memoizedState===null?O_:N_,t=o(a,c),Di){d=0;do{if(Di=!1,Pi=0,25<=d)throw Error(i(301));d+=1,Qe=Ke=null,r.updateQueue=null,Wo.current=A_,t=o(a,c)}while(Di)}if(Wo.current=Xo,r=Ke!==null&&Ke.next!==null,an=0,Qe=Ke=Be=null,Ko=!1,r)throw Error(i(300));return t}function Nl(){var t=Pi!==0;return Pi=0,t}function nr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Be.memoizedState=Qe=t:Qe=Qe.next=t,Qe}function Mt(){if(Ke===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var r=Qe===null?Be.memoizedState:Qe.next;if(r!==null)Qe=r,Ke=t;else{if(t===null)throw Error(i(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Qe===null?Be.memoizedState=Qe=t:Qe=Qe.next=t}return Qe}function Mi(t,r){return typeof r=="function"?r(t):r}function Al(t){var r=Mt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=Ke,c=a.baseQueue,d=o.pending;if(d!==null){if(c!==null){var g=c.next;c.next=d.next,d.next=g}a.baseQueue=c=d,o.pending=null}if(c!==null){d=c.next,a=a.baseState;var C=g=null,A=null,L=d;do{var H=L.lane;if((an&H)===H)A!==null&&(A=A.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),a=L.hasEagerState?L.eagerState:t(a,L.action);else{var G={lane:H,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};A===null?(C=A=G,g=a):A=A.next=G,Be.lanes|=H,ln|=H}L=L.next}while(L!==null&&L!==d);A===null?g=a:A.next=C,zt(a,r.memoizedState)||(yt=!0),r.memoizedState=a,r.baseState=g,r.baseQueue=A,o.lastRenderedState=a}if(t=o.interleaved,t!==null){c=t;do d=c.lane,Be.lanes|=d,ln|=d,c=c.next;while(c!==t)}else c===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function Il(t){var r=Mt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=o.dispatch,c=o.pending,d=r.memoizedState;if(c!==null){o.pending=null;var g=c=c.next;do d=t(d,g.action),g=g.next;while(g!==c);zt(d,r.memoizedState)||(yt=!0),r.memoizedState=d,r.baseQueue===null&&(r.baseState=d),o.lastRenderedState=d}return[d,a]}function ch(){}function fh(t,r){var o=Be,a=Mt(),c=r(),d=!zt(a.memoizedState,c);if(d&&(a.memoizedState=c,yt=!0),a=a.queue,Dl(ph.bind(null,o,a,t),[t]),a.getSnapshot!==r||d||Qe!==null&&Qe.memoizedState.tag&1){if(o.flags|=2048,Fi(9,hh.bind(null,o,a,c,r),void 0,null),Xe===null)throw Error(i(349));(an&30)!==0||dh(o,r,c)}return c}function dh(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function hh(t,r,o,a){r.value=o,r.getSnapshot=a,mh(r)&&gh(t)}function ph(t,r,o){return o(function(){mh(r)&&gh(t)})}function mh(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!zt(t,o)}catch{return!0}}function gh(t){var r=yr(t,1);r!==null&&Wt(r,t,1,-1)}function yh(t){var r=nr();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:t},r.queue=t,t=t.dispatch=R_.bind(null,Be,t),[r.memoizedState,t]}function Fi(t,r,o,a){return t={tag:t,create:r,destroy:o,deps:a,next:null},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.lastEffect=t.next=t):(o=r.lastEffect,o===null?r.lastEffect=t.next=t:(a=o.next,o.next=t,t.next=a,r.lastEffect=t)),t}function vh(){return Mt().memoizedState}function Zo(t,r,o,a){var c=nr();Be.flags|=t,c.memoizedState=Fi(1|r,o,void 0,a===void 0?null:a)}function Qo(t,r,o,a){var c=Mt();a=a===void 0?null:a;var d=void 0;if(Ke!==null){var g=Ke.memoizedState;if(d=g.destroy,a!==null&&Rl(a,g.deps)){c.memoizedState=Fi(r,o,d,a);return}}Be.flags|=t,c.memoizedState=Fi(1|r,o,d,a)}function _h(t,r){return Zo(8390656,8,t,r)}function Dl(t,r){return Qo(2048,8,t,r)}function Eh(t,r){return Qo(4,2,t,r)}function wh(t,r){return Qo(4,4,t,r)}function Sh(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function xh(t,r,o){return o=o!=null?o.concat([t]):null,Qo(4,4,Sh.bind(null,r,t),o)}function Pl(){}function bh(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Rl(r,a[1])?a[0]:(o.memoizedState=[t,r],t)}function Th(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Rl(r,a[1])?a[0]:(t=t(),o.memoizedState=[t,r],t)}function Ch(t,r,o){return(an&21)===0?(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=o):(zt(o,r)||(o=rd(),Be.lanes|=o,ln|=o,t.baseState=!0),r)}function C_(t,r){var o=Oe;Oe=o!==0&&4>o?o:4,t(!0);var a=kl.transition;kl.transition={};try{t(!1),r()}finally{Oe=o,kl.transition=a}}function kh(){return Mt().memoizedState}function k_(t,r,o){var a=Gr(t);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Rh(t))Oh(r,o);else if(o=oh(t,r,o,a),o!==null){var c=dt();Wt(o,t,a,c),Nh(o,r,a)}}function R_(t,r,o){var a=Gr(t),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Rh(t))Oh(r,c);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=r.lastRenderedReducer,d!==null))try{var g=r.lastRenderedState,C=d(g,o);if(c.hasEagerState=!0,c.eagerState=C,zt(C,g)){var A=r.interleaved;A===null?(c.next=c,wl(r)):(c.next=A.next,A.next=c),r.interleaved=c;return}}catch{}finally{}o=oh(t,r,c,a),o!==null&&(c=dt(),Wt(o,t,a,c),Nh(o,r,a))}}function Rh(t){var r=t.alternate;return t===Be||r!==null&&r===Be}function Oh(t,r){Di=Ko=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Nh(t,r,o){if((o&4194240)!==0){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Fa(t,o)}}var Xo={readContext:Pt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},O_={readContext:Pt,useCallback:function(t,r){return nr().memoizedState=[t,r===void 0?null:r],t},useContext:Pt,useEffect:_h,useImperativeHandle:function(t,r,o){return o=o!=null?o.concat([t]):null,Zo(4194308,4,Sh.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Zo(4194308,4,t,r)},useInsertionEffect:function(t,r){return Zo(4,2,t,r)},useMemo:function(t,r){var o=nr();return r=r===void 0?null:r,t=t(),o.memoizedState=[t,r],t},useReducer:function(t,r,o){var a=nr();return r=o!==void 0?o(r):r,a.memoizedState=a.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},a.queue=t,t=t.dispatch=k_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var r=nr();return t={current:t},r.memoizedState=t},useState:yh,useDebugValue:Pl,useDeferredValue:function(t){return nr().memoizedState=t},useTransition:function(){var t=yh(!1),r=t[0];return t=C_.bind(null,t[1]),nr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,o){var a=Be,c=nr();if(Fe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Xe===null)throw Error(i(349));(an&30)!==0||dh(a,r,o)}c.memoizedState=o;var d={value:o,getSnapshot:r};return c.queue=d,_h(ph.bind(null,a,d,t),[t]),a.flags|=2048,Fi(9,hh.bind(null,a,d,o,r),void 0,null),o},useId:function(){var t=nr(),r=Xe.identifierPrefix;if(Fe){var o=gr,a=mr;o=(a&~(1<<32-Ht(a)-1)).toString(32)+o,r=":"+r+"R"+o,o=Pi++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=T_++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},N_={readContext:Pt,useCallback:bh,useContext:Pt,useEffect:Dl,useImperativeHandle:xh,useInsertionEffect:Eh,useLayoutEffect:wh,useMemo:Th,useReducer:Al,useRef:vh,useState:function(){return Al(Mi)},useDebugValue:Pl,useDeferredValue:function(t){var r=Mt();return Ch(r,Ke.memoizedState,t)},useTransition:function(){var t=Al(Mi)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:ch,useSyncExternalStore:fh,useId:kh,unstable_isNewReconciler:!1},A_={readContext:Pt,useCallback:bh,useContext:Pt,useEffect:Dl,useImperativeHandle:xh,useInsertionEffect:Eh,useLayoutEffect:wh,useMemo:Th,useReducer:Il,useRef:vh,useState:function(){return Il(Mi)},useDebugValue:Pl,useDeferredValue:function(t){var r=Mt();return Ke===null?r.memoizedState=t:Ch(r,Ke.memoizedState,t)},useTransition:function(){var t=Il(Mi)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:ch,useSyncExternalStore:fh,useId:kh,unstable_isNewReconciler:!1};function $t(t,r){if(t&&t.defaultProps){r=Z({},r),t=t.defaultProps;for(var o in t)r[o]===void 0&&(r[o]=t[o]);return r}return r}function Ml(t,r,o,a){r=t.memoizedState,o=o(a,r),o=o==null?r:Z({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Yo={isMounted:function(t){return(t=t._reactInternals)?Jr(t)===t:!1},enqueueSetState:function(t,r,o){t=t._reactInternals;var a=dt(),c=Gr(t),d=vr(a,c);d.payload=r,o!=null&&(d.callback=o),r=jr(t,d,c),r!==null&&(Wt(r,t,c,a),$o(r,t,c))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var a=dt(),c=Gr(t),d=vr(a,c);d.tag=1,d.payload=r,o!=null&&(d.callback=o),r=jr(t,d,c),r!==null&&(Wt(r,t,c,a),$o(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=dt(),a=Gr(t),c=vr(o,a);c.tag=2,r!=null&&(c.callback=r),r=jr(t,c,a),r!==null&&(Wt(r,t,a,o),$o(r,t,a))}};function Ah(t,r,o,a,c,d,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,d,g):r.prototype&&r.prototype.isPureReactComponent?!Si(o,a)||!Si(c,d):!0}function Ih(t,r,o){var a=!1,c=Fr,d=r.contextType;return typeof d=="object"&&d!==null?d=Pt(d):(c=gt(r)?tn:st.current,a=r.contextTypes,d=(a=a!=null)?Fn(t,c):Fr),r=new r(o,d),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Yo,t.stateNode=r,r._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=d),r}function Dh(t,r,o,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,a),r.state!==t&&Yo.enqueueReplaceState(r,r.state,null)}function Fl(t,r,o,a){var c=t.stateNode;c.props=o,c.state=t.memoizedState,c.refs={},Sl(t);var d=r.contextType;typeof d=="object"&&d!==null?c.context=Pt(d):(d=gt(r)?tn:st.current,c.context=Fn(t,d)),c.state=t.memoizedState,d=r.getDerivedStateFromProps,typeof d=="function"&&(Ml(t,r,d,o),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(r=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),r!==c.state&&Yo.enqueueReplaceState(c,c.state,null),qo(t,o,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function $n(t,r){try{var o="",a=r;do o+=ye(a),a=a.return;while(a);var c=o}catch(d){c=`
39
39
  Error generating stack: `+d.message+`
40
- `+d.stack}return{value:t,source:r,stack:c,digest:null}}function Ll(t,r,o){return{value:t,source:null,stack:o??null,digest:r??null}}function Bl(t,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var I_=typeof WeakMap=="function"?WeakMap:Map;function Ph(t,r,o){o=vr(-1,o),o.tag=3,o.payload={element:null};var a=r.value;return o.callback=function(){os||(os=!0,Jl=a),Bl(t,r)},o}function Mh(t,r,o){o=vr(-1,o),o.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var c=r.value;o.payload=function(){return a(c)},o.callback=function(){Bl(t,r)}}var d=t.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(o.callback=function(){Bl(t,r),typeof a!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})}),o}function Fh(t,r,o){var a=t.pingCache;if(a===null){a=t.pingCache=new I_;var c=new Set;a.set(r,c)}else c=a.get(r),c===void 0&&(c=new Set,a.set(r,c));c.has(o)||(c.add(o),t=V_.bind(null,t,r,o),r.then(t,t))}function Lh(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Bh(t,r,o,a,c){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=vr(-1,1),r.tag=2,jr(o,r,1))),o.lanes|=1),t):(t.flags|=65536,t.lanes=c,t)}var D_=k.ReactCurrentOwner,yt=!1;function ft(t,r,o,a){r.child=t===null?ih(r,null,o,a):Un(r,t.child,o,a)}function jh(t,r,o,a,c){o=o.render;var d=r.ref;return zn(r,c),a=Ol(t,r,o,a,d,c),o=Nl(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&o&&dl(r),r.flags|=1,ft(t,r,a,c),r.child)}function Uh(t,r,o,a,c){if(t===null){var d=o.type;return typeof d=="function"&&!su(d)&&d.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=d,Hh(t,r,d,a,c)):(t=fs(o.type,null,a,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(d=t.child,(t.lanes&c)===0){var g=d.memoizedProps;if(o=o.compare,o=o!==null?o:Si,o(g,a)&&t.ref===r.ref)return _r(t,r,c)}return r.flags|=1,t=qr(d,a),t.ref=r.ref,t.return=r,r.child=t}function Hh(t,r,o,a,c){if(t!==null){var d=t.memoizedProps;if(Si(d,a)&&t.ref===r.ref)if(yt=!1,r.pendingProps=a=d,(t.lanes&c)!==0)(t.flags&131072)!==0&&(yt=!0);else return r.lanes=t.lanes,_r(t,r,c)}return jl(t,r,o,a,c)}function zh(t,r,o){var a=r.pendingProps,c=a.children,d=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Vn,Tt),Tt|=o;else{if((o&1073741824)===0)return t=d!==null?d.baseLanes|o:o,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Ae(Vn,Tt),Tt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=d!==null?d.baseLanes:o,Ae(Vn,Tt),Tt|=a}else d!==null?(a=d.baseLanes|o,r.memoizedState=null):a=o,Ae(Vn,Tt),Tt|=a;return ft(t,r,c,o),r.child}function Gh(t,r){var o=r.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function jl(t,r,o,a,c){var d=gt(o)?tn:st.current;return d=Fn(r,d),zn(r,c),o=Ol(t,r,o,a,d,c),a=Nl(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&a&&dl(r),r.flags|=1,ft(t,r,o,c),r.child)}function $h(t,r,o,a,c){if(gt(o)){var d=!0;Fo(r)}else d=!1;if(zn(r,c),r.stateNode===null)es(t,r),Ih(r,o,a),Fl(r,o,a,c),a=!0;else if(t===null){var g=r.stateNode,C=r.memoizedProps;g.props=C;var A=g.context,L=o.contextType;typeof L=="object"&&L!==null?L=Pt(L):(L=gt(o)?tn:st.current,L=Fn(r,L));var H=o.getDerivedStateFromProps,G=typeof H=="function"||typeof g.getSnapshotBeforeUpdate=="function";G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==a||A!==L)&&Dh(r,g,a,L),Br=!1;var U=r.memoizedState;g.state=U,qo(r,a,g,c),A=r.memoizedState,C!==a||U!==A||mt.current||Br?(typeof H=="function"&&(Ml(r,o,H,a),A=r.memoizedState),(C=Br||Ah(r,o,C,a,U,A,L))?(G||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=A),g.props=a,g.state=A,g.context=L,a=C):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{g=r.stateNode,sh(t,r),C=r.memoizedProps,L=r.type===r.elementType?C:$t(r.type,C),g.props=L,G=r.pendingProps,U=g.context,A=o.contextType,typeof A=="object"&&A!==null?A=Pt(A):(A=gt(o)?tn:st.current,A=Fn(r,A));var Z=o.getDerivedStateFromProps;(H=typeof Z=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==G||U!==A)&&Dh(r,g,a,A),Br=!1,U=r.memoizedState,g.state=U,qo(r,a,g,c);var X=r.memoizedState;C!==G||U!==X||mt.current||Br?(typeof Z=="function"&&(Ml(r,o,Z,a),X=r.memoizedState),(L=Br||Ah(r,o,L,a,U,X,A)||!1)?(H||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,X,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,X,A)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=X),g.props=a,g.state=X,g.context=A,a=L):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),a=!1)}return Ul(t,r,o,a,d,c)}function Ul(t,r,o,a,c,d){Gh(t,r);var g=(r.flags&128)!==0;if(!a&&!g)return c&&Kd(r,o,!1),_r(t,r,d);a=r.stateNode,D_.current=r;var C=g&&typeof o.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&g?(r.child=Un(r,t.child,null,d),r.child=Un(r,null,C,d)):ft(t,r,C,d),r.memoizedState=a.state,c&&Kd(r,o,!0),r.child}function qh(t){var r=t.stateNode;r.pendingContext?Wd(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Wd(t,r.context,!1),xl(t,r.containerInfo)}function Vh(t,r,o,a,c){return jn(),gl(c),r.flags|=256,ft(t,r,o,a),r.child}var Hl={dehydrated:null,treeContext:null,retryLane:0};function zl(t){return{baseLanes:t,cachePool:null,transitions:null}}function Wh(t,r,o){var a=r.pendingProps,c=Le.current,d=!1,g=(r.flags&128)!==0,C;if((C=g)||(C=t!==null&&t.memoizedState===null?!1:(c&2)!==0),C?(d=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return ml(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(g=a.children,t=a.fallback,d?(a=r.mode,d=r.child,g={mode:"hidden",children:g},(a&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=g):d=ds(g,a,0,null),t=dn(t,a,o,null),d.return=r,t.return=r,d.sibling=t,r.child=d,r.child.memoizedState=zl(o),r.memoizedState=Hl,t):Gl(r,g));if(c=t.memoizedState,c!==null&&(C=c.dehydrated,C!==null))return P_(t,r,g,a,C,c,o);if(d){d=a.fallback,g=r.mode,c=t.child,C=c.sibling;var A={mode:"hidden",children:a.children};return(g&1)===0&&r.child!==c?(a=r.child,a.childLanes=0,a.pendingProps=A,r.deletions=null):(a=qr(c,A),a.subtreeFlags=c.subtreeFlags&14680064),C!==null?d=qr(C,d):(d=dn(d,g,o,null),d.flags|=2),d.return=r,a.return=r,a.sibling=d,r.child=a,a=d,d=r.child,g=t.child.memoizedState,g=g===null?zl(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=t.childLanes&~o,r.memoizedState=Hl,a}return d=t.child,t=d.sibling,a=qr(d,{mode:"visible",children:a.children}),(r.mode&1)===0&&(a.lanes=o),a.return=r,a.sibling=null,t!==null&&(o=r.deletions,o===null?(r.deletions=[t],r.flags|=16):o.push(t)),r.child=a,r.memoizedState=null,a}function Gl(t,r){return r=ds({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function Jo(t,r,o,a){return a!==null&&gl(a),Un(r,t.child,null,o),t=Gl(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function P_(t,r,o,a,c,d,g){if(o)return r.flags&256?(r.flags&=-257,a=Ll(Error(i(422))),Jo(t,r,g,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(d=a.fallback,c=r.mode,a=ds({mode:"visible",children:a.children},c,0,null),d=dn(d,c,g,null),d.flags|=2,a.return=r,d.return=r,a.sibling=d,r.child=a,(r.mode&1)!==0&&Un(r,t.child,null,g),r.child.memoizedState=zl(g),r.memoizedState=Hl,d);if((r.mode&1)===0)return Jo(t,r,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var C=a.dgst;return a=C,d=Error(i(419)),a=Ll(d,a,void 0),Jo(t,r,g,a)}if(C=(g&t.childLanes)!==0,yt||C){if(a=Xe,a!==null){switch(g&-g){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(a.suspendedLanes|g))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,yr(t,c),Wt(a,t,c,-1))}return ou(),a=Ll(Error(i(421))),Jo(t,r,g,a)}return c.data==="$?"?(r.flags|=128,r.child=t.child,r=W_.bind(null,t),c._reactRetry=r,null):(t=d.treeContext,bt=Pr(c.nextSibling),xt=r,Fe=!0,Gt=null,t!==null&&(It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,mr=t.id,gr=t.overflow,rn=r),r=Gl(r,a.children),r.flags|=4096,r)}function Zh(t,r,o){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),El(t.return,r,o)}function $l(t,r,o,a,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:c}:(d.isBackwards=r,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=o,d.tailMode=c)}function Kh(t,r,o){var a=r.pendingProps,c=a.revealOrder,d=a.tail;if(ft(t,r,a.children,o),a=Le.current,(a&2)!==0)a=a&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Zh(t,o,r);else if(t.tag===19)Zh(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Ae(Le,a),(r.mode&1)===0)r.memoizedState=null;else switch(c){case"forwards":for(o=r.child,c=null;o!==null;)t=o.alternate,t!==null&&Vo(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=r.child,r.child=null):(c=o.sibling,o.sibling=null),$l(r,!1,c,o,d);break;case"backwards":for(o=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&Vo(t)===null){r.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}$l(r,!0,o,null,d);break;case"together":$l(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function es(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function _r(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),ln|=r.lanes,(o&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=qr(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=qr(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function M_(t,r,o){switch(r.tag){case 3:qh(r),jn();break;case 5:uh(r);break;case 1:gt(r.type)&&Fo(r);break;case 4:xl(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,c=r.memoizedProps.value;Ae(zo,a._currentValue),a._currentValue=c;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Le,Le.current&1),r.flags|=128,null):(o&r.child.childLanes)!==0?Wh(t,r,o):(Ae(Le,Le.current&1),t=_r(t,r,o),t!==null?t.sibling:null);Ae(Le,Le.current&1);break;case 19:if(a=(o&r.childLanes)!==0,(t.flags&128)!==0){if(a)return Kh(t,r,o);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ae(Le,Le.current),a)break;return null;case 22:case 23:return r.lanes=0,zh(t,r,o)}return _r(t,r,o)}var Qh,ql,Xh,Yh;Qh=function(t,r){for(var o=r.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},ql=function(){},Xh=function(t,r,o,a){var c=t.memoizedProps;if(c!==a){t=r.stateNode,sn(rr.current);var d=null;switch(o){case"input":c=Ea(t,c),a=Ea(t,a),d=[];break;case"select":c=K({},c,{value:void 0}),a=K({},a,{value:void 0}),d=[];break;case"textarea":c=xa(t,c),a=xa(t,a),d=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Do)}Ta(o,a);var g;o=null;for(L in c)if(!a.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var C=c[L];for(g in C)C.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?d||(d=[]):(d=d||[]).push(L,null));for(L in a){var A=a[L];if(C=c!=null?c[L]:void 0,a.hasOwnProperty(L)&&A!==C&&(A!=null||C!=null))if(L==="style")if(C){for(g in C)!C.hasOwnProperty(g)||A&&A.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in A)A.hasOwnProperty(g)&&C[g]!==A[g]&&(o||(o={}),o[g]=A[g])}else o||(d||(d=[]),d.push(L,o)),o=A;else L==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,C=C?C.__html:void 0,A!=null&&C!==A&&(d=d||[]).push(L,A)):L==="children"?typeof A!="string"&&typeof A!="number"||(d=d||[]).push(L,""+A):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(l.hasOwnProperty(L)?(A!=null&&L==="onScroll"&&De("scroll",t),d||C===A||(d=[])):(d=d||[]).push(L,A))}o&&(d=d||[]).push("style",o);var L=d;(r.updateQueue=L)&&(r.flags|=4)}},Yh=function(t,r,o,a){o!==a&&(r.flags|=4)};function Li(t,r){if(!Fe)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function lt(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,a=0;if(r)for(var c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=a,t.childLanes=o,r}function F_(t,r,o){var a=r.pendingProps;switch(hl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(r),null;case 1:return gt(r.type)&&Mo(),lt(r),null;case 3:return a=r.stateNode,Gn(),Pe(mt),Pe(st),Cl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Uo(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Gt!==null&&(ru(Gt),Gt=null))),ql(t,r),lt(r),null;case 5:bl(r);var c=sn(Ii.current);if(o=r.type,t!==null&&r.stateNode!=null)Xh(t,r,o,a,c),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!a){if(r.stateNode===null)throw Error(i(166));return lt(r),null}if(t=sn(rr.current),Uo(r)){a=r.stateNode,o=r.type;var d=r.memoizedProps;switch(a[tr]=r,a[ki]=d,t=(r.mode&1)!==0,o){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":If(a,d),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!d.multiple},De("invalid",a);break;case"textarea":Mf(a,d),De("invalid",a)}Ta(o,d),c=null;for(var g in d)if(d.hasOwnProperty(g)){var C=d[g];g==="children"?typeof C=="string"?a.textContent!==C&&(d.suppressHydrationWarning!==!0&&Io(a.textContent,C,t),c=["children",C]):typeof C=="number"&&a.textContent!==""+C&&(d.suppressHydrationWarning!==!0&&Io(a.textContent,C,t),c=["children",""+C]):l.hasOwnProperty(g)&&C!=null&&g==="onScroll"&&De("scroll",a)}switch(o){case"input":ni(a),Pf(a,d,!0);break;case"textarea":ni(a),Lf(a);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(a.onclick=Do)}a=c,r.updateQueue=a,a!==null&&(r.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Bf(o)),t==="http://www.w3.org/1999/xhtml"?o==="script"?(t=g.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=g.createElement(o,{is:a.is}):(t=g.createElement(o),o==="select"&&(g=t,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):t=g.createElementNS(t,o),t[tr]=r,t[ki]=a,Qh(t,r,!1,!1),r.stateNode=t;e:{switch(g=Ca(o,a),o){case"dialog":De("cancel",t),De("close",t),c=a;break;case"iframe":case"object":case"embed":De("load",t),c=a;break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],t);c=a;break;case"source":De("error",t),c=a;break;case"img":case"image":case"link":De("error",t),De("load",t),c=a;break;case"details":De("toggle",t),c=a;break;case"input":If(t,a),c=Ea(t,a),De("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=K({},a,{value:void 0}),De("invalid",t);break;case"textarea":Mf(t,a),c=xa(t,a),De("invalid",t);break;default:c=a}Ta(o,c),C=c;for(d in C)if(C.hasOwnProperty(d)){var A=C[d];d==="style"?Hf(t,A):d==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&jf(t,A)):d==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&oi(t,A):typeof A=="number"&&oi(t,""+A):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?A!=null&&d==="onScroll"&&De("scroll",t):A!=null&&x(t,d,A,g))}switch(o){case"input":ni(t),Pf(t,a,!1);break;case"textarea":ni(t),Lf(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Te(a.value));break;case"select":t.multiple=!!a.multiple,d=a.value,d!=null?bn(t,!!a.multiple,d,!1):a.defaultValue!=null&&bn(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=Do)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return lt(r),null;case 6:if(t&&r.stateNode!=null)Yh(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(i(166));if(o=sn(Ii.current),sn(rr.current),Uo(r)){if(a=r.stateNode,o=r.memoizedProps,a[tr]=r,(d=a.nodeValue!==o)&&(t=xt,t!==null))switch(t.tag){case 3:Io(a.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Io(a.nodeValue,o,(t.mode&1)!==0)}d&&(r.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[tr]=r,r.stateNode=a}return lt(r),null;case 13:if(Pe(Le),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&bt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)th(),jn(),r.flags|=98560,d=!1;else if(d=Uo(r),a!==null&&a.dehydrated!==null){if(t===null){if(!d)throw Error(i(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[tr]=r}else jn(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;lt(r),d=!1}else Gt!==null&&(ru(Gt),Gt=null),d=!0;if(!d)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=o,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Le.current&1)!==0?Ke===0&&(Ke=3):ou())),r.updateQueue!==null&&(r.flags|=4),lt(r),null);case 4:return Gn(),ql(t,r),t===null&&Ti(r.stateNode.containerInfo),lt(r),null;case 10:return _l(r.type._context),lt(r),null;case 17:return gt(r.type)&&Mo(),lt(r),null;case 19:if(Pe(Le),d=r.memoizedState,d===null)return lt(r),null;if(a=(r.flags&128)!==0,g=d.rendering,g===null)if(a)Li(d,!1);else{if(Ke!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=Vo(t),g!==null){for(r.flags|=128,Li(d,!1),a=g.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),r.subtreeFlags=0,a=o,o=r.child;o!==null;)d=o,t=a,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=t,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,t=g.dependencies,d.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o=o.sibling;return Ae(Le,Le.current&1|2),r.child}t=t.sibling}d.tail!==null&&ze()>Wn&&(r.flags|=128,a=!0,Li(d,!1),r.lanes=4194304)}else{if(!a)if(t=Vo(g),t!==null){if(r.flags|=128,a=!0,o=t.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),Li(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Fe)return lt(r),null}else 2*ze()-d.renderingStartTime>Wn&&o!==1073741824&&(r.flags|=128,a=!0,Li(d,!1),r.lanes=4194304);d.isBackwards?(g.sibling=r.child,r.child=g):(o=d.last,o!==null?o.sibling=g:r.child=g,d.last=g)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=ze(),r.sibling=null,o=Le.current,Ae(Le,a?o&1|2:o&1),r):(lt(r),null);case 22:case 23:return iu(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(Tt&1073741824)!==0&&(lt(r),r.subtreeFlags&6&&(r.flags|=8192)):lt(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function L_(t,r){switch(hl(r),r.tag){case 1:return gt(r.type)&&Mo(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Gn(),Pe(mt),Pe(st),Cl(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return bl(r),null;case 13:if(Pe(Le),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));jn()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Pe(Le),null;case 4:return Gn(),null;case 10:return _l(r.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var ts=!1,ut=!1,B_=typeof WeakSet=="function"?WeakSet:Set,Q=null;function qn(t,r){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){He(t,r,a)}else o.current=null}function Vl(t,r,o){try{o()}catch(a){He(t,r,a)}}var Jh=!1;function j_(t,r){if(il=wo,t=Ad(),Qa(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var c=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var g=0,C=-1,A=-1,L=0,H=0,G=t,U=null;t:for(;;){for(var Z;G!==o||c!==0&&G.nodeType!==3||(C=g+c),G!==d||a!==0&&G.nodeType!==3||(A=g+a),G.nodeType===3&&(g+=G.nodeValue.length),(Z=G.firstChild)!==null;)U=G,G=Z;for(;;){if(G===t)break t;if(U===o&&++L===c&&(C=g),U===d&&++H===a&&(A=g),(Z=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=Z}o=C===-1||A===-1?null:{start:C,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(ol={focusedElem:t,selectionRange:o},wo=!1,Q=r;Q!==null;)if(r=Q,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Q=t;else for(;Q!==null;){r=Q;try{var X=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Y=X.memoizedProps,Ge=X.memoizedState,P=r.stateNode,I=P.getSnapshotBeforeUpdate(r.elementType===r.type?Y:$t(r.type,Y),Ge);P.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var M=r.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(i(163))}}catch($){He(r,r.return,$)}if(t=r.sibling,t!==null){t.return=r.return,Q=t;break}Q=r.return}return X=Jh,Jh=!1,X}function Bi(t,r,o){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&t)===t){var d=c.destroy;c.destroy=void 0,d!==void 0&&Vl(r,o,d)}c=c.next}while(c!==a)}}function rs(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var a=o.create;o.destroy=a()}o=o.next}while(o!==r)}}function Wl(t){var r=t.ref;if(r!==null){var o=t.stateNode;switch(t.tag){case 5:t=o;break;default:t=o}typeof r=="function"?r(t):r.current=t}}function ep(t){var r=t.alternate;r!==null&&(t.alternate=null,ep(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[tr],delete r[ki],delete r[ul],delete r[w_],delete r[S_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function tp(t){return t.tag===5||t.tag===3||t.tag===4}function rp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||tp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Zl(t,r,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(t,r):o.insertBefore(t,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(t,o)):(r=o,r.appendChild(t)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Do));else if(a!==4&&(t=t.child,t!==null))for(Zl(t,r,o),t=t.sibling;t!==null;)Zl(t,r,o),t=t.sibling}function Kl(t,r,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Kl(t,r,o),t=t.sibling;t!==null;)Kl(t,r,o),t=t.sibling}var tt=null,qt=!1;function Ur(t,r,o){for(o=o.child;o!==null;)np(t,r,o),o=o.sibling}function np(t,r,o){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(mo,o)}catch{}switch(o.tag){case 5:ut||qn(o,r);case 6:var a=tt,c=qt;tt=null,Ur(t,r,o),tt=a,qt=c,tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):tt.removeChild(o.stateNode));break;case 18:tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?ll(t.parentNode,o):t.nodeType===1&&ll(t,o),gi(t)):ll(tt,o.stateNode));break;case 4:a=tt,c=qt,tt=o.stateNode.containerInfo,qt=!0,Ur(t,r,o),tt=a,qt=c;break;case 0:case 11:case 14:case 15:if(!ut&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var d=c,g=d.destroy;d=d.tag,g!==void 0&&((d&2)!==0||(d&4)!==0)&&Vl(o,r,g),c=c.next}while(c!==a)}Ur(t,r,o);break;case 1:if(!ut&&(qn(o,r),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(C){He(o,r,C)}Ur(t,r,o);break;case 21:Ur(t,r,o);break;case 22:o.mode&1?(ut=(a=ut)||o.memoizedState!==null,Ur(t,r,o),ut=a):Ur(t,r,o);break;default:Ur(t,r,o)}}function ip(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new B_),r.forEach(function(a){var c=Z_.bind(null,t,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Vt(t,r){var o=r.deletions;if(o!==null)for(var a=0;a<o.length;a++){var c=o[a];try{var d=t,g=r,C=g;e:for(;C!==null;){switch(C.tag){case 5:tt=C.stateNode,qt=!1;break e;case 3:tt=C.stateNode.containerInfo,qt=!0;break e;case 4:tt=C.stateNode.containerInfo,qt=!0;break e}C=C.return}if(tt===null)throw Error(i(160));np(d,g,c),tt=null,qt=!1;var A=c.alternate;A!==null&&(A.return=null),c.return=null}catch(L){He(c,r,L)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)op(r,t),r=r.sibling}function op(t,r){var o=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Vt(r,t),ir(t),a&4){try{Bi(3,t,t.return),rs(3,t)}catch(Y){He(t,t.return,Y)}try{Bi(5,t,t.return)}catch(Y){He(t,t.return,Y)}}break;case 1:Vt(r,t),ir(t),a&512&&o!==null&&qn(o,o.return);break;case 5:if(Vt(r,t),ir(t),a&512&&o!==null&&qn(o,o.return),t.flags&32){var c=t.stateNode;try{oi(c,"")}catch(Y){He(t,t.return,Y)}}if(a&4&&(c=t.stateNode,c!=null)){var d=t.memoizedProps,g=o!==null?o.memoizedProps:d,C=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{C==="input"&&d.type==="radio"&&d.name!=null&&Df(c,d),Ca(C,g);var L=Ca(C,d);for(g=0;g<A.length;g+=2){var H=A[g],G=A[g+1];H==="style"?Hf(c,G):H==="dangerouslySetInnerHTML"?jf(c,G):H==="children"?oi(c,G):x(c,H,G,L)}switch(C){case"input":wa(c,d);break;case"textarea":Ff(c,d);break;case"select":var U=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var Z=d.value;Z!=null?bn(c,!!d.multiple,Z,!1):U!==!!d.multiple&&(d.defaultValue!=null?bn(c,!!d.multiple,d.defaultValue,!0):bn(c,!!d.multiple,d.multiple?[]:"",!1))}c[ki]=d}catch(Y){He(t,t.return,Y)}}break;case 6:if(Vt(r,t),ir(t),a&4){if(t.stateNode===null)throw Error(i(162));c=t.stateNode,d=t.memoizedProps;try{c.nodeValue=d}catch(Y){He(t,t.return,Y)}}break;case 3:if(Vt(r,t),ir(t),a&4&&o!==null&&o.memoizedState.isDehydrated)try{gi(r.containerInfo)}catch(Y){He(t,t.return,Y)}break;case 4:Vt(r,t),ir(t);break;case 13:Vt(r,t),ir(t),c=t.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(Yl=ze())),a&4&&ip(t);break;case 22:if(H=o!==null&&o.memoizedState!==null,t.mode&1?(ut=(L=ut)||H,Vt(r,t),ut=L):Vt(r,t),ir(t),a&8192){if(L=t.memoizedState!==null,(t.stateNode.isHidden=L)&&!H&&(t.mode&1)!==0)for(Q=t,H=t.child;H!==null;){for(G=Q=H;Q!==null;){switch(U=Q,Z=U.child,U.tag){case 0:case 11:case 14:case 15:Bi(4,U,U.return);break;case 1:qn(U,U.return);var X=U.stateNode;if(typeof X.componentWillUnmount=="function"){a=U,o=U.return;try{r=a,X.props=r.memoizedProps,X.state=r.memoizedState,X.componentWillUnmount()}catch(Y){He(a,o,Y)}}break;case 5:qn(U,U.return);break;case 22:if(U.memoizedState!==null){lp(G);continue}}Z!==null?(Z.return=U,Q=Z):lp(G)}H=H.sibling}e:for(H=null,G=t;;){if(G.tag===5){if(H===null){H=G;try{c=G.stateNode,L?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(C=G.stateNode,A=G.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null,C.style.display=Uf("display",g))}catch(Y){He(t,t.return,Y)}}}else if(G.tag===6){if(H===null)try{G.stateNode.nodeValue=L?"":G.memoizedProps}catch(Y){He(t,t.return,Y)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;H===G&&(H=null),G=G.return}H===G&&(H=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Vt(r,t),ir(t),a&4&&ip(t);break;case 21:break;default:Vt(r,t),ir(t)}}function ir(t){var r=t.flags;if(r&2){try{e:{for(var o=t.return;o!==null;){if(tp(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(oi(c,""),a.flags&=-33);var d=rp(t);Kl(t,d,c);break;case 3:case 4:var g=a.stateNode.containerInfo,C=rp(t);Zl(t,C,g);break;default:throw Error(i(161))}}catch(A){He(t,t.return,A)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function U_(t,r,o){Q=t,sp(t)}function sp(t,r,o){for(var a=(t.mode&1)!==0;Q!==null;){var c=Q,d=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||ts;if(!g){var C=c.alternate,A=C!==null&&C.memoizedState!==null||ut;C=ts;var L=ut;if(ts=g,(ut=A)&&!L)for(Q=c;Q!==null;)g=Q,A=g.child,g.tag===22&&g.memoizedState!==null?up(c):A!==null?(A.return=g,Q=A):up(c);for(;d!==null;)Q=d,sp(d),d=d.sibling;Q=c,ts=C,ut=L}ap(t)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,Q=d):ap(t)}}function ap(t){for(;Q!==null;){var r=Q;if((r.flags&8772)!==0){var o=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:ut||rs(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!ut)if(o===null)a.componentDidMount();else{var c=r.elementType===r.type?o.memoizedProps:$t(r.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var d=r.updateQueue;d!==null&&lh(r,d,a);break;case 3:var g=r.updateQueue;if(g!==null){if(o=null,r.child!==null)switch(r.child.tag){case 5:o=r.child.stateNode;break;case 1:o=r.child.stateNode}lh(r,g,o)}break;case 5:var C=r.stateNode;if(o===null&&r.flags&4){o=C;var A=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&o.focus();break;case"img":A.src&&(o.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var L=r.alternate;if(L!==null){var H=L.memoizedState;if(H!==null){var G=H.dehydrated;G!==null&&gi(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||r.flags&512&&Wl(r)}catch(U){He(r,r.return,U)}}if(r===t){Q=null;break}if(o=r.sibling,o!==null){o.return=r.return,Q=o;break}Q=r.return}}function lp(t){for(;Q!==null;){var r=Q;if(r===t){Q=null;break}var o=r.sibling;if(o!==null){o.return=r.return,Q=o;break}Q=r.return}}function up(t){for(;Q!==null;){var r=Q;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{rs(4,r)}catch(A){He(r,o,A)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var c=r.return;try{a.componentDidMount()}catch(A){He(r,c,A)}}var d=r.return;try{Wl(r)}catch(A){He(r,d,A)}break;case 5:var g=r.return;try{Wl(r)}catch(A){He(r,g,A)}}}catch(A){He(r,r.return,A)}if(r===t){Q=null;break}var C=r.sibling;if(C!==null){C.return=r.return,Q=C;break}Q=r.return}}var H_=Math.ceil,ns=k.ReactCurrentDispatcher,Ql=k.ReactCurrentOwner,Ft=k.ReactCurrentBatchConfig,Se=0,Xe=null,qe=null,rt=0,Tt=0,Vn=Mr(0),Ke=0,ji=null,ln=0,is=0,Xl=0,Ui=null,vt=null,Yl=0,Wn=1/0,Er=null,os=!1,Jl=null,Hr=null,ss=!1,zr=null,as=0,Hi=0,eu=null,ls=-1,us=0;function dt(){return(Se&6)!==0?ze():ls!==-1?ls:ls=ze()}function Gr(t){return(t.mode&1)===0?1:(Se&2)!==0&&rt!==0?rt&-rt:b_.transition!==null?(us===0&&(us=rd()),us):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:fd(t.type)),t)}function Wt(t,r,o,a){if(50<Hi)throw Hi=0,eu=null,Error(i(185));fi(t,o,a),((Se&2)===0||t!==Xe)&&(t===Xe&&((Se&2)===0&&(is|=o),Ke===4&&$r(t,rt)),_t(t,a),o===1&&Se===0&&(r.mode&1)===0&&(Wn=ze()+500,Lo&&Lr()))}function _t(t,r){var o=t.callbackNode;bv(t,r);var a=vo(t,t===Xe?rt:0);if(a===0)o!==null&&Jf(o),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(o!=null&&Jf(o),r===1)t.tag===0?x_(fp.bind(null,t)):Qd(fp.bind(null,t)),__(function(){(Se&6)===0&&Lr()}),o=null;else{switch(nd(a)){case 1:o=Da;break;case 4:o=ed;break;case 16:o=po;break;case 536870912:o=td;break;default:o=po}o=_p(o,cp.bind(null,t))}t.callbackPriority=r,t.callbackNode=o}}function cp(t,r){if(ls=-1,us=0,(Se&6)!==0)throw Error(i(327));var o=t.callbackNode;if(Zn()&&t.callbackNode!==o)return null;var a=vo(t,t===Xe?rt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||r)r=cs(t,a);else{r=a;var c=Se;Se|=2;var d=hp();(Xe!==t||rt!==r)&&(Er=null,Wn=ze()+500,cn(t,r));do try{$_();break}catch(C){dp(t,C)}while(!0);vl(),ns.current=d,Se=c,qe!==null?r=0:(Xe=null,rt=0,r=Ke)}if(r!==0){if(r===2&&(c=Pa(t),c!==0&&(a=c,r=tu(t,c))),r===1)throw o=ji,cn(t,0),$r(t,a),_t(t,ze()),o;if(r===6)$r(t,a);else{if(c=t.current.alternate,(a&30)===0&&!z_(c)&&(r=cs(t,a),r===2&&(d=Pa(t),d!==0&&(a=d,r=tu(t,d))),r===1))throw o=ji,cn(t,0),$r(t,a),_t(t,ze()),o;switch(t.finishedWork=c,t.finishedLanes=a,r){case 0:case 1:throw Error(i(345));case 2:fn(t,vt,Er);break;case 3:if($r(t,a),(a&130023424)===a&&(r=Yl+500-ze(),10<r)){if(vo(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){dt(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=al(fn.bind(null,t,vt,Er),r);break}fn(t,vt,Er);break;case 4:if($r(t,a),(a&4194240)===a)break;for(r=t.eventTimes,c=-1;0<a;){var g=31-Ht(a);d=1<<g,g=r[g],g>c&&(c=g),a&=~d}if(a=c,a=ze()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*H_(a/1960))-a,10<a){t.timeoutHandle=al(fn.bind(null,t,vt,Er),a);break}fn(t,vt,Er);break;case 5:fn(t,vt,Er);break;default:throw Error(i(329))}}}return _t(t,ze()),t.callbackNode===o?cp.bind(null,t):null}function tu(t,r){var o=Ui;return t.current.memoizedState.isDehydrated&&(cn(t,r).flags|=256),t=cs(t,r),t!==2&&(r=vt,vt=o,r!==null&&ru(r)),t}function ru(t){vt===null?vt=t:vt.push.apply(vt,t)}function z_(t){for(var r=t;;){if(r.flags&16384){var o=r.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var c=o[a],d=c.getSnapshot;c=c.value;try{if(!zt(d(),c))return!1}catch{return!1}}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function $r(t,r){for(r&=~Xl,r&=~is,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var o=31-Ht(r),a=1<<o;t[o]=-1,r&=~a}}function fp(t){if((Se&6)!==0)throw Error(i(327));Zn();var r=vo(t,0);if((r&1)===0)return _t(t,ze()),null;var o=cs(t,r);if(t.tag!==0&&o===2){var a=Pa(t);a!==0&&(r=a,o=tu(t,a))}if(o===1)throw o=ji,cn(t,0),$r(t,r),_t(t,ze()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,fn(t,vt,Er),_t(t,ze()),null}function nu(t,r){var o=Se;Se|=1;try{return t(r)}finally{Se=o,Se===0&&(Wn=ze()+500,Lo&&Lr())}}function un(t){zr!==null&&zr.tag===0&&(Se&6)===0&&Zn();var r=Se;Se|=1;var o=Ft.transition,a=Oe;try{if(Ft.transition=null,Oe=1,t)return t()}finally{Oe=a,Ft.transition=o,Se=r,(Se&6)===0&&Lr()}}function iu(){Tt=Vn.current,Pe(Vn)}function cn(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,v_(o)),qe!==null)for(o=qe.return;o!==null;){var a=o;switch(hl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Mo();break;case 3:Gn(),Pe(mt),Pe(st),Cl();break;case 5:bl(a);break;case 4:Gn();break;case 13:Pe(Le);break;case 19:Pe(Le);break;case 10:_l(a.type._context);break;case 22:case 23:iu()}o=o.return}if(Xe=t,qe=t=qr(t.current,null),rt=Tt=r,Ke=0,ji=null,Xl=is=ln=0,vt=Ui=null,on!==null){for(r=0;r<on.length;r++)if(o=on[r],a=o.interleaved,a!==null){o.interleaved=null;var c=a.next,d=o.pending;if(d!==null){var g=d.next;d.next=c,a.next=g}o.pending=a}on=null}return t}function dp(t,r){do{var o=qe;try{if(vl(),Wo.current=Xo,Zo){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Zo=!1}if(an=0,Qe=Ze=Be=null,Di=!1,Pi=0,Ql.current=null,o===null||o.return===null){Ke=1,ji=r,qe=null;break}e:{var d=t,g=o.return,C=o,A=r;if(r=rt,C.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var L=A,H=C,G=H.tag;if((H.mode&1)===0&&(G===0||G===11||G===15)){var U=H.alternate;U?(H.updateQueue=U.updateQueue,H.memoizedState=U.memoizedState,H.lanes=U.lanes):(H.updateQueue=null,H.memoizedState=null)}var Z=Lh(g);if(Z!==null){Z.flags&=-257,Bh(Z,g,C,d,r),Z.mode&1&&Fh(d,L,r),r=Z,A=L;var X=r.updateQueue;if(X===null){var Y=new Set;Y.add(A),r.updateQueue=Y}else X.add(A);break e}else{if((r&1)===0){Fh(d,L,r),ou();break e}A=Error(i(426))}}else if(Fe&&C.mode&1){var Ge=Lh(g);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),Bh(Ge,g,C,d,r),gl($n(A,C));break e}}d=A=$n(A,C),Ke!==4&&(Ke=2),Ui===null?Ui=[d]:Ui.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,r&=-r,d.lanes|=r;var P=Ph(d,A,r);ah(d,P);break e;case 1:C=A;var I=d.type,M=d.stateNode;if((d.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Hr===null||!Hr.has(M)))){d.flags|=65536,r&=-r,d.lanes|=r;var $=Mh(d,C,r);ah(d,$);break e}}d=d.return}while(d!==null)}mp(o)}catch(ee){r=ee,qe===o&&o!==null&&(qe=o=o.return);continue}break}while(!0)}function hp(){var t=ns.current;return ns.current=Xo,t===null?Xo:t}function ou(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),Xe===null||(ln&268435455)===0&&(is&268435455)===0||$r(Xe,rt)}function cs(t,r){var o=Se;Se|=2;var a=hp();(Xe!==t||rt!==r)&&(Er=null,cn(t,r));do try{G_();break}catch(c){dp(t,c)}while(!0);if(vl(),Se=o,ns.current=a,qe!==null)throw Error(i(261));return Xe=null,rt=0,Ke}function G_(){for(;qe!==null;)pp(qe)}function $_(){for(;qe!==null&&!mv();)pp(qe)}function pp(t){var r=vp(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,r===null?mp(t):qe=r,Ql.current=null}function mp(t){var r=t;do{var o=r.alternate;if(t=r.return,(r.flags&32768)===0){if(o=F_(o,r,Tt),o!==null){qe=o;return}}else{if(o=L_(o,r),o!==null){o.flags&=32767,qe=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ke=6,qe=null;return}}if(r=r.sibling,r!==null){qe=r;return}qe=r=t}while(r!==null);Ke===0&&(Ke=5)}function fn(t,r,o){var a=Oe,c=Ft.transition;try{Ft.transition=null,Oe=1,q_(t,r,o,a)}finally{Ft.transition=c,Oe=a}return null}function q_(t,r,o,a){do Zn();while(zr!==null);if((Se&6)!==0)throw Error(i(327));o=t.finishedWork;var c=t.finishedLanes;if(o===null)return null;if(t.finishedWork=null,t.finishedLanes=0,o===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var d=o.lanes|o.childLanes;if(Tv(t,d),t===Xe&&(qe=Xe=null,rt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||ss||(ss=!0,_p(po,function(){return Zn(),null})),d=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||d){d=Ft.transition,Ft.transition=null;var g=Oe;Oe=1;var C=Se;Se|=4,Ql.current=null,j_(t,o),op(o,t),f_(ol),wo=!!il,ol=il=null,t.current=o,U_(o),gv(),Se=C,Oe=g,Ft.transition=d}else t.current=o;if(ss&&(ss=!1,zr=t,as=c),d=t.pendingLanes,d===0&&(Hr=null),_v(o.stateNode),_t(t,ze()),r!==null)for(a=t.onRecoverableError,o=0;o<r.length;o++)c=r[o],a(c.value,{componentStack:c.stack,digest:c.digest});if(os)throw os=!1,t=Jl,Jl=null,t;return(as&1)!==0&&t.tag!==0&&Zn(),d=t.pendingLanes,(d&1)!==0?t===eu?Hi++:(Hi=0,eu=t):Hi=0,Lr(),null}function Zn(){if(zr!==null){var t=nd(as),r=Ft.transition,o=Oe;try{if(Ft.transition=null,Oe=16>t?16:t,zr===null)var a=!1;else{if(t=zr,zr=null,as=0,(Se&6)!==0)throw Error(i(331));var c=Se;for(Se|=4,Q=t.current;Q!==null;){var d=Q,g=d.child;if((Q.flags&16)!==0){var C=d.deletions;if(C!==null){for(var A=0;A<C.length;A++){var L=C[A];for(Q=L;Q!==null;){var H=Q;switch(H.tag){case 0:case 11:case 15:Bi(8,H,d)}var G=H.child;if(G!==null)G.return=H,Q=G;else for(;Q!==null;){H=Q;var U=H.sibling,Z=H.return;if(ep(H),H===L){Q=null;break}if(U!==null){U.return=Z,Q=U;break}Q=Z}}}var X=d.alternate;if(X!==null){var Y=X.child;if(Y!==null){X.child=null;do{var Ge=Y.sibling;Y.sibling=null,Y=Ge}while(Y!==null)}}Q=d}}if((d.subtreeFlags&2064)!==0&&g!==null)g.return=d,Q=g;else e:for(;Q!==null;){if(d=Q,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Bi(9,d,d.return)}var P=d.sibling;if(P!==null){P.return=d.return,Q=P;break e}Q=d.return}}var I=t.current;for(Q=I;Q!==null;){g=Q;var M=g.child;if((g.subtreeFlags&2064)!==0&&M!==null)M.return=g,Q=M;else e:for(g=I;Q!==null;){if(C=Q,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:rs(9,C)}}catch(ee){He(C,C.return,ee)}if(C===g){Q=null;break e}var $=C.sibling;if($!==null){$.return=C.return,Q=$;break e}Q=C.return}}if(Se=c,Lr(),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(mo,t)}catch{}a=!0}return a}finally{Oe=o,Ft.transition=r}}return!1}function gp(t,r,o){r=$n(o,r),r=Ph(t,r,1),t=jr(t,r,1),r=dt(),t!==null&&(fi(t,1,r),_t(t,r))}function He(t,r,o){if(t.tag===3)gp(t,t,o);else for(;r!==null;){if(r.tag===3){gp(r,t,o);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hr===null||!Hr.has(a))){t=$n(o,t),t=Mh(r,t,1),r=jr(r,t,1),t=dt(),r!==null&&(fi(r,1,t),_t(r,t));break}}r=r.return}}function V_(t,r,o){var a=t.pingCache;a!==null&&a.delete(r),r=dt(),t.pingedLanes|=t.suspendedLanes&o,Xe===t&&(rt&o)===o&&(Ke===4||Ke===3&&(rt&130023424)===rt&&500>ze()-Yl?cn(t,0):Xl|=o),_t(t,r)}function yp(t,r){r===0&&((t.mode&1)===0?r=1:(r=yo,yo<<=1,(yo&130023424)===0&&(yo=4194304)));var o=dt();t=yr(t,r),t!==null&&(fi(t,r,o),_t(t,o))}function W_(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),yp(t,o)}function Z_(t,r){var o=0;switch(t.tag){case 13:var a=t.stateNode,c=t.memoizedState;c!==null&&(o=c.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(r),yp(t,o)}var vp;vp=function(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps||mt.current)yt=!0;else{if((t.lanes&o)===0&&(r.flags&128)===0)return yt=!1,M_(t,r,o);yt=(t.flags&131072)!==0}else yt=!1,Fe&&(r.flags&1048576)!==0&&Xd(r,jo,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;es(t,r),t=r.pendingProps;var c=Fn(r,st.current);zn(r,o),c=Ol(null,r,a,t,c,o);var d=Nl();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,gt(a)?(d=!0,Fo(r)):d=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Sl(r),c.updater=Yo,r.stateNode=c,c._reactInternals=r,Fl(r,a,t,o),r=Ul(null,r,a,!0,d,o)):(r.tag=0,Fe&&d&&dl(r),ft(null,r,c,o),r=r.child),r;case 16:a=r.elementType;e:{switch(es(t,r),t=r.pendingProps,c=a._init,a=c(a._payload),r.type=a,c=r.tag=Q_(a),t=$t(a,t),c){case 0:r=jl(null,r,a,t,o);break e;case 1:r=$h(null,r,a,t,o);break e;case 11:r=jh(null,r,a,t,o);break e;case 14:r=Uh(null,r,a,$t(a.type,t),o);break e}throw Error(i(306,a,""))}return r;case 0:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),jl(t,r,a,c,o);case 1:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),$h(t,r,a,c,o);case 3:e:{if(qh(r),t===null)throw Error(i(387));a=r.pendingProps,d=r.memoizedState,c=d.element,sh(t,r),qo(r,a,null,o);var g=r.memoizedState;if(a=g.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},r.updateQueue.baseState=d,r.memoizedState=d,r.flags&256){c=$n(Error(i(423)),r),r=Vh(t,r,a,o,c);break e}else if(a!==c){c=$n(Error(i(424)),r),r=Vh(t,r,a,o,c);break e}else for(bt=Pr(r.stateNode.containerInfo.firstChild),xt=r,Fe=!0,Gt=null,o=ih(r,null,a,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(jn(),a===c){r=_r(t,r,o);break e}ft(t,r,a,o)}r=r.child}return r;case 5:return uh(r),t===null&&ml(r),a=r.type,c=r.pendingProps,d=t!==null?t.memoizedProps:null,g=c.children,sl(a,c)?g=null:d!==null&&sl(a,d)&&(r.flags|=32),Gh(t,r),ft(t,r,g,o),r.child;case 6:return t===null&&ml(r),null;case 13:return Wh(t,r,o);case 4:return xl(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=Un(r,null,a,o):ft(t,r,a,o),r.child;case 11:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),jh(t,r,a,c,o);case 7:return ft(t,r,r.pendingProps,o),r.child;case 8:return ft(t,r,r.pendingProps.children,o),r.child;case 12:return ft(t,r,r.pendingProps.children,o),r.child;case 10:e:{if(a=r.type._context,c=r.pendingProps,d=r.memoizedProps,g=c.value,Ae(zo,a._currentValue),a._currentValue=g,d!==null)if(zt(d.value,g)){if(d.children===c.children&&!mt.current){r=_r(t,r,o);break e}}else for(d=r.child,d!==null&&(d.return=r);d!==null;){var C=d.dependencies;if(C!==null){g=d.child;for(var A=C.firstContext;A!==null;){if(A.context===a){if(d.tag===1){A=vr(-1,o&-o),A.tag=2;var L=d.updateQueue;if(L!==null){L=L.shared;var H=L.pending;H===null?A.next=A:(A.next=H.next,H.next=A),L.pending=A}}d.lanes|=o,A=d.alternate,A!==null&&(A.lanes|=o),El(d.return,o,r),C.lanes|=o;break}A=A.next}}else if(d.tag===10)g=d.type===r.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(i(341));g.lanes|=o,C=g.alternate,C!==null&&(C.lanes|=o),El(g,o,r),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===r){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}ft(t,r,c.children,o),r=r.child}return r;case 9:return c=r.type,a=r.pendingProps.children,zn(r,o),c=Pt(c),a=a(c),r.flags|=1,ft(t,r,a,o),r.child;case 14:return a=r.type,c=$t(a,r.pendingProps),c=$t(a.type,c),Uh(t,r,a,c,o);case 15:return Hh(t,r,r.type,r.pendingProps,o);case 17:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),es(t,r),r.tag=1,gt(a)?(t=!0,Fo(r)):t=!1,zn(r,o),Ih(r,a,c),Fl(r,a,c,o),Ul(null,r,a,!0,t,o);case 19:return Kh(t,r,o);case 22:return zh(t,r,o)}throw Error(i(156,r.tag))};function _p(t,r){return Yf(t,r)}function K_(t,r,o,a){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(t,r,o,a){return new K_(t,r,o,a)}function su(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Q_(t){if(typeof t=="function")return su(t)?1:0;if(t!=null){if(t=t.$$typeof,t===pe)return 11;if(t===Ie)return 14}return 2}function qr(t,r){var o=t.alternate;return o===null?(o=Lt(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&14680064,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o}function fs(t,r,o,a,c,d){var g=2;if(a=t,typeof t=="function")su(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case z:return dn(o.children,c,d,r);case V:g=8,c|=8;break;case fe:return t=Lt(12,o,r,c|2),t.elementType=fe,t.lanes=d,t;case ue:return t=Lt(13,o,r,c),t.elementType=ue,t.lanes=d,t;case Ue:return t=Lt(19,o,r,c),t.elementType=Ue,t.lanes=d,t;case Ne:return ds(o,c,d,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:g=10;break e;case oe:g=9;break e;case pe:g=11;break e;case Ie:g=14;break e;case $e:g=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Lt(g,o,r,c),r.elementType=t,r.type=a,r.lanes=d,r}function dn(t,r,o,a){return t=Lt(7,t,a,r),t.lanes=o,t}function ds(t,r,o,a){return t=Lt(22,t,a,r),t.elementType=Ne,t.lanes=o,t.stateNode={isHidden:!1},t}function au(t,r,o){return t=Lt(6,t,null,r),t.lanes=o,t}function lu(t,r,o){return r=Lt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function X_(t,r,o,a,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function uu(t,r,o,a,c,d,g,C,A){return t=new X_(t,r,o,C,A),r===1?(r=1,d===!0&&(r|=8)):r=0,d=Lt(3,null,null,r),t.current=d,d.stateNode=t,d.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sl(d),t}function Y_(t,r,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:a==null?null:""+a,children:t,containerInfo:r,implementation:o}}function Ep(t){if(!t)return Fr;t=t._reactInternals;e:{if(Jr(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(gt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var o=t.type;if(gt(o))return Zd(t,o,r)}return r}function wp(t,r,o,a,c,d,g,C,A){return t=uu(o,a,!0,t,c,d,g,C,A),t.context=Ep(null),o=t.current,a=dt(),c=Gr(o),d=vr(a,c),d.callback=r??null,jr(o,d,c),t.current.lanes=c,fi(t,c,a),_t(t,a),t}function hs(t,r,o,a){var c=r.current,d=dt(),g=Gr(c);return o=Ep(o),r.context===null?r.context=o:r.pendingContext=o,r=vr(d,g),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=jr(c,r,g),t!==null&&(Wt(t,c,g,d),$o(t,c,g)),g}function ps(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Sp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function cu(t,r){Sp(t,r),(t=t.alternate)&&Sp(t,r)}function J_(){return null}var xp=typeof reportError=="function"?reportError:function(t){console.error(t)};function fu(t){this._internalRoot=t}ms.prototype.render=fu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));hs(t,r,null,null)},ms.prototype.unmount=fu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;un(function(){hs(null,t,null,null)}),r[hr]=null}};function ms(t){this._internalRoot=t}ms.prototype.unstable_scheduleHydration=function(t){if(t){var r=sd();t={blockedOn:null,target:t,priority:r};for(var o=0;o<Ar.length&&r!==0&&r<Ar[o].priority;o++);Ar.splice(o,0,t),o===0&&ud(t)}};function du(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function gs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function bp(){}function e1(t,r,o,a,c){if(c){if(typeof a=="function"){var d=a;a=function(){var L=ps(g);d.call(L)}}var g=wp(r,a,t,0,null,!1,!1,"",bp);return t._reactRootContainer=g,t[hr]=g.current,Ti(t.nodeType===8?t.parentNode:t),un(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var C=a;a=function(){var L=ps(A);C.call(L)}}var A=uu(t,0,!1,null,null,!1,!1,"",bp);return t._reactRootContainer=A,t[hr]=A.current,Ti(t.nodeType===8?t.parentNode:t),un(function(){hs(r,A,o,a)}),A}function ys(t,r,o,a,c){var d=o._reactRootContainer;if(d){var g=d;if(typeof c=="function"){var C=c;c=function(){var A=ps(g);C.call(A)}}hs(r,g,t,c)}else g=e1(o,r,t,c,a);return ps(g)}id=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var o=ci(r.pendingLanes);o!==0&&(Fa(r,o|1),_t(r,ze()),(Se&6)===0&&(Wn=ze()+500,Lr()))}break;case 13:un(function(){var a=yr(t,1);if(a!==null){var c=dt();Wt(a,t,1,c)}}),cu(t,1)}},La=function(t){if(t.tag===13){var r=yr(t,134217728);if(r!==null){var o=dt();Wt(r,t,134217728,o)}cu(t,134217728)}},od=function(t){if(t.tag===13){var r=Gr(t),o=yr(t,r);if(o!==null){var a=dt();Wt(o,t,r,a)}cu(t,r)}},sd=function(){return Oe},ad=function(t,r){var o=Oe;try{return Oe=t,r()}finally{Oe=o}},Oa=function(t,r,o){switch(r){case"input":if(wa(t,o),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<o.length;r++){var a=o[r];if(a!==t&&a.form===t.form){var c=Po(a);if(!c)throw Error(i(90));ct(a),wa(a,c)}}}break;case"textarea":Ff(t,o);break;case"select":r=o.value,r!=null&&bn(t,!!o.multiple,r,!1)}},qf=nu,Vf=un;var t1={usingClientEntryPoint:!1,Events:[Ri,Pn,Po,Gf,$f,nu]},zi={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},r1={bundleType:zi.bundleType,version:zi.version,rendererPackageName:zi.rendererPackageName,rendererConfig:zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Qf(t),t===null?null:t.stateNode},findFiberByHostInstance:zi.findFiberByHostInstance||J_,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 vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{mo=vs.inject(r1),er=vs}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t1,Et.createPortal=function(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!du(r))throw Error(i(200));return Y_(t,r,null,o)},Et.createRoot=function(t,r){if(!du(t))throw Error(i(299));var o=!1,a="",c=xp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=uu(t,1,!1,null,null,o,!1,a,c),t[hr]=r.current,Ti(t.nodeType===8?t.parentNode:t),new fu(r)},Et.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=Qf(r),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return un(t)},Et.hydrate=function(t,r,o){if(!gs(r))throw Error(i(200));return ys(null,t,r,!0,o)},Et.hydrateRoot=function(t,r,o){if(!du(t))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,c=!1,d="",g=xp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),r=wp(r,null,t,1,o??null,c,!1,d,g),t[hr]=r.current,Ti(t),a)for(t=0;t<a.length;t++)o=a[t],c=o._getVersion,c=c(o._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,c]:r.mutableSourceEagerHydrationData.push(o,c);return new ms(r)},Et.render=function(t,r,o){if(!gs(r))throw Error(i(200));return ys(null,t,r,!1,o)},Et.unmountComponentAtNode=function(t){if(!gs(t))throw Error(i(40));return t._reactRootContainer?(un(function(){ys(null,null,t,!1,function(){t._reactRootContainer=null,t[hr]=null})}),!0):!1},Et.unstable_batchedUpdates=nu,Et.unstable_renderSubtreeIntoContainer=function(t,r,o,a){if(!gs(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return ys(t,r,o,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Ip;function d1(){if(Ip)return mu.exports;Ip=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),mu.exports=f1(),mu.exports}var Dp;function h1(){if(Dp)return Es;Dp=1;var e=d1();return Es.createRoot=e.createRoot,Es.hydrateRoot=e.hydrateRoot,Es}var p1=h1(),B=Jn();const r0=oa(B);var vu={exports:{}},_u={};/**
40
+ `+d.stack}return{value:t,source:r,stack:c,digest:null}}function Ll(t,r,o){return{value:t,source:null,stack:o??null,digest:r??null}}function Bl(t,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var I_=typeof WeakMap=="function"?WeakMap:Map;function Ph(t,r,o){o=vr(-1,o),o.tag=3,o.payload={element:null};var a=r.value;return o.callback=function(){os||(os=!0,Jl=a),Bl(t,r)},o}function Mh(t,r,o){o=vr(-1,o),o.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var c=r.value;o.payload=function(){return a(c)},o.callback=function(){Bl(t,r)}}var d=t.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(o.callback=function(){Bl(t,r),typeof a!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})}),o}function Fh(t,r,o){var a=t.pingCache;if(a===null){a=t.pingCache=new I_;var c=new Set;a.set(r,c)}else c=a.get(r),c===void 0&&(c=new Set,a.set(r,c));c.has(o)||(c.add(o),t=V_.bind(null,t,r,o),r.then(t,t))}function Lh(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Bh(t,r,o,a,c){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=vr(-1,1),r.tag=2,jr(o,r,1))),o.lanes|=1),t):(t.flags|=65536,t.lanes=c,t)}var D_=k.ReactCurrentOwner,yt=!1;function ft(t,r,o,a){r.child=t===null?ih(r,null,o,a):Un(r,t.child,o,a)}function jh(t,r,o,a,c){o=o.render;var d=r.ref;return zn(r,c),a=Ol(t,r,o,a,d,c),o=Nl(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&o&&dl(r),r.flags|=1,ft(t,r,a,c),r.child)}function Uh(t,r,o,a,c){if(t===null){var d=o.type;return typeof d=="function"&&!su(d)&&d.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=d,Hh(t,r,d,a,c)):(t=fs(o.type,null,a,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(d=t.child,(t.lanes&c)===0){var g=d.memoizedProps;if(o=o.compare,o=o!==null?o:Si,o(g,a)&&t.ref===r.ref)return _r(t,r,c)}return r.flags|=1,t=qr(d,a),t.ref=r.ref,t.return=r,r.child=t}function Hh(t,r,o,a,c){if(t!==null){var d=t.memoizedProps;if(Si(d,a)&&t.ref===r.ref)if(yt=!1,r.pendingProps=a=d,(t.lanes&c)!==0)(t.flags&131072)!==0&&(yt=!0);else return r.lanes=t.lanes,_r(t,r,c)}return jl(t,r,o,a,c)}function zh(t,r,o){var a=r.pendingProps,c=a.children,d=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Vn,Tt),Tt|=o;else{if((o&1073741824)===0)return t=d!==null?d.baseLanes|o:o,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Ae(Vn,Tt),Tt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=d!==null?d.baseLanes:o,Ae(Vn,Tt),Tt|=a}else d!==null?(a=d.baseLanes|o,r.memoizedState=null):a=o,Ae(Vn,Tt),Tt|=a;return ft(t,r,c,o),r.child}function Gh(t,r){var o=r.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function jl(t,r,o,a,c){var d=gt(o)?tn:st.current;return d=Fn(r,d),zn(r,c),o=Ol(t,r,o,a,d,c),a=Nl(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&a&&dl(r),r.flags|=1,ft(t,r,o,c),r.child)}function $h(t,r,o,a,c){if(gt(o)){var d=!0;Fo(r)}else d=!1;if(zn(r,c),r.stateNode===null)es(t,r),Ih(r,o,a),Fl(r,o,a,c),a=!0;else if(t===null){var g=r.stateNode,C=r.memoizedProps;g.props=C;var A=g.context,L=o.contextType;typeof L=="object"&&L!==null?L=Pt(L):(L=gt(o)?tn:st.current,L=Fn(r,L));var H=o.getDerivedStateFromProps,G=typeof H=="function"||typeof g.getSnapshotBeforeUpdate=="function";G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==a||A!==L)&&Dh(r,g,a,L),Br=!1;var U=r.memoizedState;g.state=U,qo(r,a,g,c),A=r.memoizedState,C!==a||U!==A||mt.current||Br?(typeof H=="function"&&(Ml(r,o,H,a),A=r.memoizedState),(C=Br||Ah(r,o,C,a,U,A,L))?(G||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=A),g.props=a,g.state=A,g.context=L,a=C):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{g=r.stateNode,sh(t,r),C=r.memoizedProps,L=r.type===r.elementType?C:$t(r.type,C),g.props=L,G=r.pendingProps,U=g.context,A=o.contextType,typeof A=="object"&&A!==null?A=Pt(A):(A=gt(o)?tn:st.current,A=Fn(r,A));var K=o.getDerivedStateFromProps;(H=typeof K=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==G||U!==A)&&Dh(r,g,a,A),Br=!1,U=r.memoizedState,g.state=U,qo(r,a,g,c);var X=r.memoizedState;C!==G||U!==X||mt.current||Br?(typeof K=="function"&&(Ml(r,o,K,a),X=r.memoizedState),(L=Br||Ah(r,o,L,a,U,X,A)||!1)?(H||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,X,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,X,A)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=X),g.props=a,g.state=X,g.context=A,a=L):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),a=!1)}return Ul(t,r,o,a,d,c)}function Ul(t,r,o,a,c,d){Gh(t,r);var g=(r.flags&128)!==0;if(!a&&!g)return c&&Zd(r,o,!1),_r(t,r,d);a=r.stateNode,D_.current=r;var C=g&&typeof o.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&g?(r.child=Un(r,t.child,null,d),r.child=Un(r,null,C,d)):ft(t,r,C,d),r.memoizedState=a.state,c&&Zd(r,o,!0),r.child}function qh(t){var r=t.stateNode;r.pendingContext?Wd(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Wd(t,r.context,!1),xl(t,r.containerInfo)}function Vh(t,r,o,a,c){return jn(),gl(c),r.flags|=256,ft(t,r,o,a),r.child}var Hl={dehydrated:null,treeContext:null,retryLane:0};function zl(t){return{baseLanes:t,cachePool:null,transitions:null}}function Wh(t,r,o){var a=r.pendingProps,c=Le.current,d=!1,g=(r.flags&128)!==0,C;if((C=g)||(C=t!==null&&t.memoizedState===null?!1:(c&2)!==0),C?(d=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return ml(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(g=a.children,t=a.fallback,d?(a=r.mode,d=r.child,g={mode:"hidden",children:g},(a&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=g):d=ds(g,a,0,null),t=dn(t,a,o,null),d.return=r,t.return=r,d.sibling=t,r.child=d,r.child.memoizedState=zl(o),r.memoizedState=Hl,t):Gl(r,g));if(c=t.memoizedState,c!==null&&(C=c.dehydrated,C!==null))return P_(t,r,g,a,C,c,o);if(d){d=a.fallback,g=r.mode,c=t.child,C=c.sibling;var A={mode:"hidden",children:a.children};return(g&1)===0&&r.child!==c?(a=r.child,a.childLanes=0,a.pendingProps=A,r.deletions=null):(a=qr(c,A),a.subtreeFlags=c.subtreeFlags&14680064),C!==null?d=qr(C,d):(d=dn(d,g,o,null),d.flags|=2),d.return=r,a.return=r,a.sibling=d,r.child=a,a=d,d=r.child,g=t.child.memoizedState,g=g===null?zl(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=t.childLanes&~o,r.memoizedState=Hl,a}return d=t.child,t=d.sibling,a=qr(d,{mode:"visible",children:a.children}),(r.mode&1)===0&&(a.lanes=o),a.return=r,a.sibling=null,t!==null&&(o=r.deletions,o===null?(r.deletions=[t],r.flags|=16):o.push(t)),r.child=a,r.memoizedState=null,a}function Gl(t,r){return r=ds({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function Jo(t,r,o,a){return a!==null&&gl(a),Un(r,t.child,null,o),t=Gl(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function P_(t,r,o,a,c,d,g){if(o)return r.flags&256?(r.flags&=-257,a=Ll(Error(i(422))),Jo(t,r,g,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(d=a.fallback,c=r.mode,a=ds({mode:"visible",children:a.children},c,0,null),d=dn(d,c,g,null),d.flags|=2,a.return=r,d.return=r,a.sibling=d,r.child=a,(r.mode&1)!==0&&Un(r,t.child,null,g),r.child.memoizedState=zl(g),r.memoizedState=Hl,d);if((r.mode&1)===0)return Jo(t,r,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var C=a.dgst;return a=C,d=Error(i(419)),a=Ll(d,a,void 0),Jo(t,r,g,a)}if(C=(g&t.childLanes)!==0,yt||C){if(a=Xe,a!==null){switch(g&-g){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(a.suspendedLanes|g))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,yr(t,c),Wt(a,t,c,-1))}return ou(),a=Ll(Error(i(421))),Jo(t,r,g,a)}return c.data==="$?"?(r.flags|=128,r.child=t.child,r=W_.bind(null,t),c._reactRetry=r,null):(t=d.treeContext,bt=Pr(c.nextSibling),xt=r,Fe=!0,Gt=null,t!==null&&(It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,mr=t.id,gr=t.overflow,rn=r),r=Gl(r,a.children),r.flags|=4096,r)}function Kh(t,r,o){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),El(t.return,r,o)}function $l(t,r,o,a,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:c}:(d.isBackwards=r,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=o,d.tailMode=c)}function Zh(t,r,o){var a=r.pendingProps,c=a.revealOrder,d=a.tail;if(ft(t,r,a.children,o),a=Le.current,(a&2)!==0)a=a&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Kh(t,o,r);else if(t.tag===19)Kh(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Ae(Le,a),(r.mode&1)===0)r.memoizedState=null;else switch(c){case"forwards":for(o=r.child,c=null;o!==null;)t=o.alternate,t!==null&&Vo(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=r.child,r.child=null):(c=o.sibling,o.sibling=null),$l(r,!1,c,o,d);break;case"backwards":for(o=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&Vo(t)===null){r.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}$l(r,!0,o,null,d);break;case"together":$l(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function es(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function _r(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),ln|=r.lanes,(o&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=qr(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=qr(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function M_(t,r,o){switch(r.tag){case 3:qh(r),jn();break;case 5:uh(r);break;case 1:gt(r.type)&&Fo(r);break;case 4:xl(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,c=r.memoizedProps.value;Ae(zo,a._currentValue),a._currentValue=c;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Le,Le.current&1),r.flags|=128,null):(o&r.child.childLanes)!==0?Wh(t,r,o):(Ae(Le,Le.current&1),t=_r(t,r,o),t!==null?t.sibling:null);Ae(Le,Le.current&1);break;case 19:if(a=(o&r.childLanes)!==0,(t.flags&128)!==0){if(a)return Zh(t,r,o);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ae(Le,Le.current),a)break;return null;case 22:case 23:return r.lanes=0,zh(t,r,o)}return _r(t,r,o)}var Qh,ql,Xh,Yh;Qh=function(t,r){for(var o=r.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},ql=function(){},Xh=function(t,r,o,a){var c=t.memoizedProps;if(c!==a){t=r.stateNode,sn(rr.current);var d=null;switch(o){case"input":c=Ea(t,c),a=Ea(t,a),d=[];break;case"select":c=Z({},c,{value:void 0}),a=Z({},a,{value:void 0}),d=[];break;case"textarea":c=xa(t,c),a=xa(t,a),d=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Do)}Ta(o,a);var g;o=null;for(L in c)if(!a.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var C=c[L];for(g in C)C.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?d||(d=[]):(d=d||[]).push(L,null));for(L in a){var A=a[L];if(C=c!=null?c[L]:void 0,a.hasOwnProperty(L)&&A!==C&&(A!=null||C!=null))if(L==="style")if(C){for(g in C)!C.hasOwnProperty(g)||A&&A.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in A)A.hasOwnProperty(g)&&C[g]!==A[g]&&(o||(o={}),o[g]=A[g])}else o||(d||(d=[]),d.push(L,o)),o=A;else L==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,C=C?C.__html:void 0,A!=null&&C!==A&&(d=d||[]).push(L,A)):L==="children"?typeof A!="string"&&typeof A!="number"||(d=d||[]).push(L,""+A):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(l.hasOwnProperty(L)?(A!=null&&L==="onScroll"&&De("scroll",t),d||C===A||(d=[])):(d=d||[]).push(L,A))}o&&(d=d||[]).push("style",o);var L=d;(r.updateQueue=L)&&(r.flags|=4)}},Yh=function(t,r,o,a){o!==a&&(r.flags|=4)};function Li(t,r){if(!Fe)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function lt(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,a=0;if(r)for(var c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=a,t.childLanes=o,r}function F_(t,r,o){var a=r.pendingProps;switch(hl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(r),null;case 1:return gt(r.type)&&Mo(),lt(r),null;case 3:return a=r.stateNode,Gn(),Pe(mt),Pe(st),Cl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Uo(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Gt!==null&&(ru(Gt),Gt=null))),ql(t,r),lt(r),null;case 5:bl(r);var c=sn(Ii.current);if(o=r.type,t!==null&&r.stateNode!=null)Xh(t,r,o,a,c),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!a){if(r.stateNode===null)throw Error(i(166));return lt(r),null}if(t=sn(rr.current),Uo(r)){a=r.stateNode,o=r.type;var d=r.memoizedProps;switch(a[tr]=r,a[ki]=d,t=(r.mode&1)!==0,o){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":If(a,d),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!d.multiple},De("invalid",a);break;case"textarea":Mf(a,d),De("invalid",a)}Ta(o,d),c=null;for(var g in d)if(d.hasOwnProperty(g)){var C=d[g];g==="children"?typeof C=="string"?a.textContent!==C&&(d.suppressHydrationWarning!==!0&&Io(a.textContent,C,t),c=["children",C]):typeof C=="number"&&a.textContent!==""+C&&(d.suppressHydrationWarning!==!0&&Io(a.textContent,C,t),c=["children",""+C]):l.hasOwnProperty(g)&&C!=null&&g==="onScroll"&&De("scroll",a)}switch(o){case"input":ni(a),Pf(a,d,!0);break;case"textarea":ni(a),Lf(a);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(a.onclick=Do)}a=c,r.updateQueue=a,a!==null&&(r.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Bf(o)),t==="http://www.w3.org/1999/xhtml"?o==="script"?(t=g.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=g.createElement(o,{is:a.is}):(t=g.createElement(o),o==="select"&&(g=t,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):t=g.createElementNS(t,o),t[tr]=r,t[ki]=a,Qh(t,r,!1,!1),r.stateNode=t;e:{switch(g=Ca(o,a),o){case"dialog":De("cancel",t),De("close",t),c=a;break;case"iframe":case"object":case"embed":De("load",t),c=a;break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],t);c=a;break;case"source":De("error",t),c=a;break;case"img":case"image":case"link":De("error",t),De("load",t),c=a;break;case"details":De("toggle",t),c=a;break;case"input":If(t,a),c=Ea(t,a),De("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=Z({},a,{value:void 0}),De("invalid",t);break;case"textarea":Mf(t,a),c=xa(t,a),De("invalid",t);break;default:c=a}Ta(o,c),C=c;for(d in C)if(C.hasOwnProperty(d)){var A=C[d];d==="style"?Hf(t,A):d==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&jf(t,A)):d==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&oi(t,A):typeof A=="number"&&oi(t,""+A):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?A!=null&&d==="onScroll"&&De("scroll",t):A!=null&&x(t,d,A,g))}switch(o){case"input":ni(t),Pf(t,a,!1);break;case"textarea":ni(t),Lf(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Te(a.value));break;case"select":t.multiple=!!a.multiple,d=a.value,d!=null?bn(t,!!a.multiple,d,!1):a.defaultValue!=null&&bn(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=Do)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return lt(r),null;case 6:if(t&&r.stateNode!=null)Yh(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(i(166));if(o=sn(Ii.current),sn(rr.current),Uo(r)){if(a=r.stateNode,o=r.memoizedProps,a[tr]=r,(d=a.nodeValue!==o)&&(t=xt,t!==null))switch(t.tag){case 3:Io(a.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Io(a.nodeValue,o,(t.mode&1)!==0)}d&&(r.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[tr]=r,r.stateNode=a}return lt(r),null;case 13:if(Pe(Le),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&bt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)th(),jn(),r.flags|=98560,d=!1;else if(d=Uo(r),a!==null&&a.dehydrated!==null){if(t===null){if(!d)throw Error(i(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[tr]=r}else jn(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;lt(r),d=!1}else Gt!==null&&(ru(Gt),Gt=null),d=!0;if(!d)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=o,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Le.current&1)!==0?Ze===0&&(Ze=3):ou())),r.updateQueue!==null&&(r.flags|=4),lt(r),null);case 4:return Gn(),ql(t,r),t===null&&Ti(r.stateNode.containerInfo),lt(r),null;case 10:return _l(r.type._context),lt(r),null;case 17:return gt(r.type)&&Mo(),lt(r),null;case 19:if(Pe(Le),d=r.memoizedState,d===null)return lt(r),null;if(a=(r.flags&128)!==0,g=d.rendering,g===null)if(a)Li(d,!1);else{if(Ze!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=Vo(t),g!==null){for(r.flags|=128,Li(d,!1),a=g.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),r.subtreeFlags=0,a=o,o=r.child;o!==null;)d=o,t=a,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=t,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,t=g.dependencies,d.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o=o.sibling;return Ae(Le,Le.current&1|2),r.child}t=t.sibling}d.tail!==null&&ze()>Wn&&(r.flags|=128,a=!0,Li(d,!1),r.lanes=4194304)}else{if(!a)if(t=Vo(g),t!==null){if(r.flags|=128,a=!0,o=t.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),Li(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Fe)return lt(r),null}else 2*ze()-d.renderingStartTime>Wn&&o!==1073741824&&(r.flags|=128,a=!0,Li(d,!1),r.lanes=4194304);d.isBackwards?(g.sibling=r.child,r.child=g):(o=d.last,o!==null?o.sibling=g:r.child=g,d.last=g)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=ze(),r.sibling=null,o=Le.current,Ae(Le,a?o&1|2:o&1),r):(lt(r),null);case 22:case 23:return iu(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(Tt&1073741824)!==0&&(lt(r),r.subtreeFlags&6&&(r.flags|=8192)):lt(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function L_(t,r){switch(hl(r),r.tag){case 1:return gt(r.type)&&Mo(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Gn(),Pe(mt),Pe(st),Cl(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return bl(r),null;case 13:if(Pe(Le),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));jn()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Pe(Le),null;case 4:return Gn(),null;case 10:return _l(r.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var ts=!1,ut=!1,B_=typeof WeakSet=="function"?WeakSet:Set,Q=null;function qn(t,r){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){He(t,r,a)}else o.current=null}function Vl(t,r,o){try{o()}catch(a){He(t,r,a)}}var Jh=!1;function j_(t,r){if(il=wo,t=Ad(),Qa(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var c=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var g=0,C=-1,A=-1,L=0,H=0,G=t,U=null;t:for(;;){for(var K;G!==o||c!==0&&G.nodeType!==3||(C=g+c),G!==d||a!==0&&G.nodeType!==3||(A=g+a),G.nodeType===3&&(g+=G.nodeValue.length),(K=G.firstChild)!==null;)U=G,G=K;for(;;){if(G===t)break t;if(U===o&&++L===c&&(C=g),U===d&&++H===a&&(A=g),(K=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=K}o=C===-1||A===-1?null:{start:C,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(ol={focusedElem:t,selectionRange:o},wo=!1,Q=r;Q!==null;)if(r=Q,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Q=t;else for(;Q!==null;){r=Q;try{var X=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Y=X.memoizedProps,Ge=X.memoizedState,P=r.stateNode,I=P.getSnapshotBeforeUpdate(r.elementType===r.type?Y:$t(r.type,Y),Ge);P.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var M=r.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(i(163))}}catch($){He(r,r.return,$)}if(t=r.sibling,t!==null){t.return=r.return,Q=t;break}Q=r.return}return X=Jh,Jh=!1,X}function Bi(t,r,o){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&t)===t){var d=c.destroy;c.destroy=void 0,d!==void 0&&Vl(r,o,d)}c=c.next}while(c!==a)}}function rs(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var a=o.create;o.destroy=a()}o=o.next}while(o!==r)}}function Wl(t){var r=t.ref;if(r!==null){var o=t.stateNode;switch(t.tag){case 5:t=o;break;default:t=o}typeof r=="function"?r(t):r.current=t}}function ep(t){var r=t.alternate;r!==null&&(t.alternate=null,ep(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[tr],delete r[ki],delete r[ul],delete r[w_],delete r[S_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function tp(t){return t.tag===5||t.tag===3||t.tag===4}function rp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||tp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Kl(t,r,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(t,r):o.insertBefore(t,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(t,o)):(r=o,r.appendChild(t)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Do));else if(a!==4&&(t=t.child,t!==null))for(Kl(t,r,o),t=t.sibling;t!==null;)Kl(t,r,o),t=t.sibling}function Zl(t,r,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Zl(t,r,o),t=t.sibling;t!==null;)Zl(t,r,o),t=t.sibling}var tt=null,qt=!1;function Ur(t,r,o){for(o=o.child;o!==null;)np(t,r,o),o=o.sibling}function np(t,r,o){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(mo,o)}catch{}switch(o.tag){case 5:ut||qn(o,r);case 6:var a=tt,c=qt;tt=null,Ur(t,r,o),tt=a,qt=c,tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):tt.removeChild(o.stateNode));break;case 18:tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?ll(t.parentNode,o):t.nodeType===1&&ll(t,o),gi(t)):ll(tt,o.stateNode));break;case 4:a=tt,c=qt,tt=o.stateNode.containerInfo,qt=!0,Ur(t,r,o),tt=a,qt=c;break;case 0:case 11:case 14:case 15:if(!ut&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var d=c,g=d.destroy;d=d.tag,g!==void 0&&((d&2)!==0||(d&4)!==0)&&Vl(o,r,g),c=c.next}while(c!==a)}Ur(t,r,o);break;case 1:if(!ut&&(qn(o,r),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(C){He(o,r,C)}Ur(t,r,o);break;case 21:Ur(t,r,o);break;case 22:o.mode&1?(ut=(a=ut)||o.memoizedState!==null,Ur(t,r,o),ut=a):Ur(t,r,o);break;default:Ur(t,r,o)}}function ip(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new B_),r.forEach(function(a){var c=K_.bind(null,t,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Vt(t,r){var o=r.deletions;if(o!==null)for(var a=0;a<o.length;a++){var c=o[a];try{var d=t,g=r,C=g;e:for(;C!==null;){switch(C.tag){case 5:tt=C.stateNode,qt=!1;break e;case 3:tt=C.stateNode.containerInfo,qt=!0;break e;case 4:tt=C.stateNode.containerInfo,qt=!0;break e}C=C.return}if(tt===null)throw Error(i(160));np(d,g,c),tt=null,qt=!1;var A=c.alternate;A!==null&&(A.return=null),c.return=null}catch(L){He(c,r,L)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)op(r,t),r=r.sibling}function op(t,r){var o=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Vt(r,t),ir(t),a&4){try{Bi(3,t,t.return),rs(3,t)}catch(Y){He(t,t.return,Y)}try{Bi(5,t,t.return)}catch(Y){He(t,t.return,Y)}}break;case 1:Vt(r,t),ir(t),a&512&&o!==null&&qn(o,o.return);break;case 5:if(Vt(r,t),ir(t),a&512&&o!==null&&qn(o,o.return),t.flags&32){var c=t.stateNode;try{oi(c,"")}catch(Y){He(t,t.return,Y)}}if(a&4&&(c=t.stateNode,c!=null)){var d=t.memoizedProps,g=o!==null?o.memoizedProps:d,C=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{C==="input"&&d.type==="radio"&&d.name!=null&&Df(c,d),Ca(C,g);var L=Ca(C,d);for(g=0;g<A.length;g+=2){var H=A[g],G=A[g+1];H==="style"?Hf(c,G):H==="dangerouslySetInnerHTML"?jf(c,G):H==="children"?oi(c,G):x(c,H,G,L)}switch(C){case"input":wa(c,d);break;case"textarea":Ff(c,d);break;case"select":var U=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var K=d.value;K!=null?bn(c,!!d.multiple,K,!1):U!==!!d.multiple&&(d.defaultValue!=null?bn(c,!!d.multiple,d.defaultValue,!0):bn(c,!!d.multiple,d.multiple?[]:"",!1))}c[ki]=d}catch(Y){He(t,t.return,Y)}}break;case 6:if(Vt(r,t),ir(t),a&4){if(t.stateNode===null)throw Error(i(162));c=t.stateNode,d=t.memoizedProps;try{c.nodeValue=d}catch(Y){He(t,t.return,Y)}}break;case 3:if(Vt(r,t),ir(t),a&4&&o!==null&&o.memoizedState.isDehydrated)try{gi(r.containerInfo)}catch(Y){He(t,t.return,Y)}break;case 4:Vt(r,t),ir(t);break;case 13:Vt(r,t),ir(t),c=t.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(Yl=ze())),a&4&&ip(t);break;case 22:if(H=o!==null&&o.memoizedState!==null,t.mode&1?(ut=(L=ut)||H,Vt(r,t),ut=L):Vt(r,t),ir(t),a&8192){if(L=t.memoizedState!==null,(t.stateNode.isHidden=L)&&!H&&(t.mode&1)!==0)for(Q=t,H=t.child;H!==null;){for(G=Q=H;Q!==null;){switch(U=Q,K=U.child,U.tag){case 0:case 11:case 14:case 15:Bi(4,U,U.return);break;case 1:qn(U,U.return);var X=U.stateNode;if(typeof X.componentWillUnmount=="function"){a=U,o=U.return;try{r=a,X.props=r.memoizedProps,X.state=r.memoizedState,X.componentWillUnmount()}catch(Y){He(a,o,Y)}}break;case 5:qn(U,U.return);break;case 22:if(U.memoizedState!==null){lp(G);continue}}K!==null?(K.return=U,Q=K):lp(G)}H=H.sibling}e:for(H=null,G=t;;){if(G.tag===5){if(H===null){H=G;try{c=G.stateNode,L?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(C=G.stateNode,A=G.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null,C.style.display=Uf("display",g))}catch(Y){He(t,t.return,Y)}}}else if(G.tag===6){if(H===null)try{G.stateNode.nodeValue=L?"":G.memoizedProps}catch(Y){He(t,t.return,Y)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;H===G&&(H=null),G=G.return}H===G&&(H=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Vt(r,t),ir(t),a&4&&ip(t);break;case 21:break;default:Vt(r,t),ir(t)}}function ir(t){var r=t.flags;if(r&2){try{e:{for(var o=t.return;o!==null;){if(tp(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(oi(c,""),a.flags&=-33);var d=rp(t);Zl(t,d,c);break;case 3:case 4:var g=a.stateNode.containerInfo,C=rp(t);Kl(t,C,g);break;default:throw Error(i(161))}}catch(A){He(t,t.return,A)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function U_(t,r,o){Q=t,sp(t)}function sp(t,r,o){for(var a=(t.mode&1)!==0;Q!==null;){var c=Q,d=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||ts;if(!g){var C=c.alternate,A=C!==null&&C.memoizedState!==null||ut;C=ts;var L=ut;if(ts=g,(ut=A)&&!L)for(Q=c;Q!==null;)g=Q,A=g.child,g.tag===22&&g.memoizedState!==null?up(c):A!==null?(A.return=g,Q=A):up(c);for(;d!==null;)Q=d,sp(d),d=d.sibling;Q=c,ts=C,ut=L}ap(t)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,Q=d):ap(t)}}function ap(t){for(;Q!==null;){var r=Q;if((r.flags&8772)!==0){var o=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:ut||rs(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!ut)if(o===null)a.componentDidMount();else{var c=r.elementType===r.type?o.memoizedProps:$t(r.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var d=r.updateQueue;d!==null&&lh(r,d,a);break;case 3:var g=r.updateQueue;if(g!==null){if(o=null,r.child!==null)switch(r.child.tag){case 5:o=r.child.stateNode;break;case 1:o=r.child.stateNode}lh(r,g,o)}break;case 5:var C=r.stateNode;if(o===null&&r.flags&4){o=C;var A=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&o.focus();break;case"img":A.src&&(o.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var L=r.alternate;if(L!==null){var H=L.memoizedState;if(H!==null){var G=H.dehydrated;G!==null&&gi(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||r.flags&512&&Wl(r)}catch(U){He(r,r.return,U)}}if(r===t){Q=null;break}if(o=r.sibling,o!==null){o.return=r.return,Q=o;break}Q=r.return}}function lp(t){for(;Q!==null;){var r=Q;if(r===t){Q=null;break}var o=r.sibling;if(o!==null){o.return=r.return,Q=o;break}Q=r.return}}function up(t){for(;Q!==null;){var r=Q;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{rs(4,r)}catch(A){He(r,o,A)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var c=r.return;try{a.componentDidMount()}catch(A){He(r,c,A)}}var d=r.return;try{Wl(r)}catch(A){He(r,d,A)}break;case 5:var g=r.return;try{Wl(r)}catch(A){He(r,g,A)}}}catch(A){He(r,r.return,A)}if(r===t){Q=null;break}var C=r.sibling;if(C!==null){C.return=r.return,Q=C;break}Q=r.return}}var H_=Math.ceil,ns=k.ReactCurrentDispatcher,Ql=k.ReactCurrentOwner,Ft=k.ReactCurrentBatchConfig,Se=0,Xe=null,qe=null,rt=0,Tt=0,Vn=Mr(0),Ze=0,ji=null,ln=0,is=0,Xl=0,Ui=null,vt=null,Yl=0,Wn=1/0,Er=null,os=!1,Jl=null,Hr=null,ss=!1,zr=null,as=0,Hi=0,eu=null,ls=-1,us=0;function dt(){return(Se&6)!==0?ze():ls!==-1?ls:ls=ze()}function Gr(t){return(t.mode&1)===0?1:(Se&2)!==0&&rt!==0?rt&-rt:b_.transition!==null?(us===0&&(us=rd()),us):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:fd(t.type)),t)}function Wt(t,r,o,a){if(50<Hi)throw Hi=0,eu=null,Error(i(185));fi(t,o,a),((Se&2)===0||t!==Xe)&&(t===Xe&&((Se&2)===0&&(is|=o),Ze===4&&$r(t,rt)),_t(t,a),o===1&&Se===0&&(r.mode&1)===0&&(Wn=ze()+500,Lo&&Lr()))}function _t(t,r){var o=t.callbackNode;bv(t,r);var a=vo(t,t===Xe?rt:0);if(a===0)o!==null&&Jf(o),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(o!=null&&Jf(o),r===1)t.tag===0?x_(fp.bind(null,t)):Qd(fp.bind(null,t)),__(function(){(Se&6)===0&&Lr()}),o=null;else{switch(nd(a)){case 1:o=Da;break;case 4:o=ed;break;case 16:o=po;break;case 536870912:o=td;break;default:o=po}o=_p(o,cp.bind(null,t))}t.callbackPriority=r,t.callbackNode=o}}function cp(t,r){if(ls=-1,us=0,(Se&6)!==0)throw Error(i(327));var o=t.callbackNode;if(Kn()&&t.callbackNode!==o)return null;var a=vo(t,t===Xe?rt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||r)r=cs(t,a);else{r=a;var c=Se;Se|=2;var d=hp();(Xe!==t||rt!==r)&&(Er=null,Wn=ze()+500,cn(t,r));do try{$_();break}catch(C){dp(t,C)}while(!0);vl(),ns.current=d,Se=c,qe!==null?r=0:(Xe=null,rt=0,r=Ze)}if(r!==0){if(r===2&&(c=Pa(t),c!==0&&(a=c,r=tu(t,c))),r===1)throw o=ji,cn(t,0),$r(t,a),_t(t,ze()),o;if(r===6)$r(t,a);else{if(c=t.current.alternate,(a&30)===0&&!z_(c)&&(r=cs(t,a),r===2&&(d=Pa(t),d!==0&&(a=d,r=tu(t,d))),r===1))throw o=ji,cn(t,0),$r(t,a),_t(t,ze()),o;switch(t.finishedWork=c,t.finishedLanes=a,r){case 0:case 1:throw Error(i(345));case 2:fn(t,vt,Er);break;case 3:if($r(t,a),(a&130023424)===a&&(r=Yl+500-ze(),10<r)){if(vo(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){dt(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=al(fn.bind(null,t,vt,Er),r);break}fn(t,vt,Er);break;case 4:if($r(t,a),(a&4194240)===a)break;for(r=t.eventTimes,c=-1;0<a;){var g=31-Ht(a);d=1<<g,g=r[g],g>c&&(c=g),a&=~d}if(a=c,a=ze()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*H_(a/1960))-a,10<a){t.timeoutHandle=al(fn.bind(null,t,vt,Er),a);break}fn(t,vt,Er);break;case 5:fn(t,vt,Er);break;default:throw Error(i(329))}}}return _t(t,ze()),t.callbackNode===o?cp.bind(null,t):null}function tu(t,r){var o=Ui;return t.current.memoizedState.isDehydrated&&(cn(t,r).flags|=256),t=cs(t,r),t!==2&&(r=vt,vt=o,r!==null&&ru(r)),t}function ru(t){vt===null?vt=t:vt.push.apply(vt,t)}function z_(t){for(var r=t;;){if(r.flags&16384){var o=r.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var c=o[a],d=c.getSnapshot;c=c.value;try{if(!zt(d(),c))return!1}catch{return!1}}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function $r(t,r){for(r&=~Xl,r&=~is,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var o=31-Ht(r),a=1<<o;t[o]=-1,r&=~a}}function fp(t){if((Se&6)!==0)throw Error(i(327));Kn();var r=vo(t,0);if((r&1)===0)return _t(t,ze()),null;var o=cs(t,r);if(t.tag!==0&&o===2){var a=Pa(t);a!==0&&(r=a,o=tu(t,a))}if(o===1)throw o=ji,cn(t,0),$r(t,r),_t(t,ze()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,fn(t,vt,Er),_t(t,ze()),null}function nu(t,r){var o=Se;Se|=1;try{return t(r)}finally{Se=o,Se===0&&(Wn=ze()+500,Lo&&Lr())}}function un(t){zr!==null&&zr.tag===0&&(Se&6)===0&&Kn();var r=Se;Se|=1;var o=Ft.transition,a=Oe;try{if(Ft.transition=null,Oe=1,t)return t()}finally{Oe=a,Ft.transition=o,Se=r,(Se&6)===0&&Lr()}}function iu(){Tt=Vn.current,Pe(Vn)}function cn(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,v_(o)),qe!==null)for(o=qe.return;o!==null;){var a=o;switch(hl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Mo();break;case 3:Gn(),Pe(mt),Pe(st),Cl();break;case 5:bl(a);break;case 4:Gn();break;case 13:Pe(Le);break;case 19:Pe(Le);break;case 10:_l(a.type._context);break;case 22:case 23:iu()}o=o.return}if(Xe=t,qe=t=qr(t.current,null),rt=Tt=r,Ze=0,ji=null,Xl=is=ln=0,vt=Ui=null,on!==null){for(r=0;r<on.length;r++)if(o=on[r],a=o.interleaved,a!==null){o.interleaved=null;var c=a.next,d=o.pending;if(d!==null){var g=d.next;d.next=c,a.next=g}o.pending=a}on=null}return t}function dp(t,r){do{var o=qe;try{if(vl(),Wo.current=Xo,Ko){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Ko=!1}if(an=0,Qe=Ke=Be=null,Di=!1,Pi=0,Ql.current=null,o===null||o.return===null){Ze=1,ji=r,qe=null;break}e:{var d=t,g=o.return,C=o,A=r;if(r=rt,C.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var L=A,H=C,G=H.tag;if((H.mode&1)===0&&(G===0||G===11||G===15)){var U=H.alternate;U?(H.updateQueue=U.updateQueue,H.memoizedState=U.memoizedState,H.lanes=U.lanes):(H.updateQueue=null,H.memoizedState=null)}var K=Lh(g);if(K!==null){K.flags&=-257,Bh(K,g,C,d,r),K.mode&1&&Fh(d,L,r),r=K,A=L;var X=r.updateQueue;if(X===null){var Y=new Set;Y.add(A),r.updateQueue=Y}else X.add(A);break e}else{if((r&1)===0){Fh(d,L,r),ou();break e}A=Error(i(426))}}else if(Fe&&C.mode&1){var Ge=Lh(g);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),Bh(Ge,g,C,d,r),gl($n(A,C));break e}}d=A=$n(A,C),Ze!==4&&(Ze=2),Ui===null?Ui=[d]:Ui.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,r&=-r,d.lanes|=r;var P=Ph(d,A,r);ah(d,P);break e;case 1:C=A;var I=d.type,M=d.stateNode;if((d.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Hr===null||!Hr.has(M)))){d.flags|=65536,r&=-r,d.lanes|=r;var $=Mh(d,C,r);ah(d,$);break e}}d=d.return}while(d!==null)}mp(o)}catch(ee){r=ee,qe===o&&o!==null&&(qe=o=o.return);continue}break}while(!0)}function hp(){var t=ns.current;return ns.current=Xo,t===null?Xo:t}function ou(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),Xe===null||(ln&268435455)===0&&(is&268435455)===0||$r(Xe,rt)}function cs(t,r){var o=Se;Se|=2;var a=hp();(Xe!==t||rt!==r)&&(Er=null,cn(t,r));do try{G_();break}catch(c){dp(t,c)}while(!0);if(vl(),Se=o,ns.current=a,qe!==null)throw Error(i(261));return Xe=null,rt=0,Ze}function G_(){for(;qe!==null;)pp(qe)}function $_(){for(;qe!==null&&!mv();)pp(qe)}function pp(t){var r=vp(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,r===null?mp(t):qe=r,Ql.current=null}function mp(t){var r=t;do{var o=r.alternate;if(t=r.return,(r.flags&32768)===0){if(o=F_(o,r,Tt),o!==null){qe=o;return}}else{if(o=L_(o,r),o!==null){o.flags&=32767,qe=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ze=6,qe=null;return}}if(r=r.sibling,r!==null){qe=r;return}qe=r=t}while(r!==null);Ze===0&&(Ze=5)}function fn(t,r,o){var a=Oe,c=Ft.transition;try{Ft.transition=null,Oe=1,q_(t,r,o,a)}finally{Ft.transition=c,Oe=a}return null}function q_(t,r,o,a){do Kn();while(zr!==null);if((Se&6)!==0)throw Error(i(327));o=t.finishedWork;var c=t.finishedLanes;if(o===null)return null;if(t.finishedWork=null,t.finishedLanes=0,o===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var d=o.lanes|o.childLanes;if(Tv(t,d),t===Xe&&(qe=Xe=null,rt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||ss||(ss=!0,_p(po,function(){return Kn(),null})),d=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||d){d=Ft.transition,Ft.transition=null;var g=Oe;Oe=1;var C=Se;Se|=4,Ql.current=null,j_(t,o),op(o,t),f_(ol),wo=!!il,ol=il=null,t.current=o,U_(o),gv(),Se=C,Oe=g,Ft.transition=d}else t.current=o;if(ss&&(ss=!1,zr=t,as=c),d=t.pendingLanes,d===0&&(Hr=null),_v(o.stateNode),_t(t,ze()),r!==null)for(a=t.onRecoverableError,o=0;o<r.length;o++)c=r[o],a(c.value,{componentStack:c.stack,digest:c.digest});if(os)throw os=!1,t=Jl,Jl=null,t;return(as&1)!==0&&t.tag!==0&&Kn(),d=t.pendingLanes,(d&1)!==0?t===eu?Hi++:(Hi=0,eu=t):Hi=0,Lr(),null}function Kn(){if(zr!==null){var t=nd(as),r=Ft.transition,o=Oe;try{if(Ft.transition=null,Oe=16>t?16:t,zr===null)var a=!1;else{if(t=zr,zr=null,as=0,(Se&6)!==0)throw Error(i(331));var c=Se;for(Se|=4,Q=t.current;Q!==null;){var d=Q,g=d.child;if((Q.flags&16)!==0){var C=d.deletions;if(C!==null){for(var A=0;A<C.length;A++){var L=C[A];for(Q=L;Q!==null;){var H=Q;switch(H.tag){case 0:case 11:case 15:Bi(8,H,d)}var G=H.child;if(G!==null)G.return=H,Q=G;else for(;Q!==null;){H=Q;var U=H.sibling,K=H.return;if(ep(H),H===L){Q=null;break}if(U!==null){U.return=K,Q=U;break}Q=K}}}var X=d.alternate;if(X!==null){var Y=X.child;if(Y!==null){X.child=null;do{var Ge=Y.sibling;Y.sibling=null,Y=Ge}while(Y!==null)}}Q=d}}if((d.subtreeFlags&2064)!==0&&g!==null)g.return=d,Q=g;else e:for(;Q!==null;){if(d=Q,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Bi(9,d,d.return)}var P=d.sibling;if(P!==null){P.return=d.return,Q=P;break e}Q=d.return}}var I=t.current;for(Q=I;Q!==null;){g=Q;var M=g.child;if((g.subtreeFlags&2064)!==0&&M!==null)M.return=g,Q=M;else e:for(g=I;Q!==null;){if(C=Q,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:rs(9,C)}}catch(ee){He(C,C.return,ee)}if(C===g){Q=null;break e}var $=C.sibling;if($!==null){$.return=C.return,Q=$;break e}Q=C.return}}if(Se=c,Lr(),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(mo,t)}catch{}a=!0}return a}finally{Oe=o,Ft.transition=r}}return!1}function gp(t,r,o){r=$n(o,r),r=Ph(t,r,1),t=jr(t,r,1),r=dt(),t!==null&&(fi(t,1,r),_t(t,r))}function He(t,r,o){if(t.tag===3)gp(t,t,o);else for(;r!==null;){if(r.tag===3){gp(r,t,o);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hr===null||!Hr.has(a))){t=$n(o,t),t=Mh(r,t,1),r=jr(r,t,1),t=dt(),r!==null&&(fi(r,1,t),_t(r,t));break}}r=r.return}}function V_(t,r,o){var a=t.pingCache;a!==null&&a.delete(r),r=dt(),t.pingedLanes|=t.suspendedLanes&o,Xe===t&&(rt&o)===o&&(Ze===4||Ze===3&&(rt&130023424)===rt&&500>ze()-Yl?cn(t,0):Xl|=o),_t(t,r)}function yp(t,r){r===0&&((t.mode&1)===0?r=1:(r=yo,yo<<=1,(yo&130023424)===0&&(yo=4194304)));var o=dt();t=yr(t,r),t!==null&&(fi(t,r,o),_t(t,o))}function W_(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),yp(t,o)}function K_(t,r){var o=0;switch(t.tag){case 13:var a=t.stateNode,c=t.memoizedState;c!==null&&(o=c.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(r),yp(t,o)}var vp;vp=function(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps||mt.current)yt=!0;else{if((t.lanes&o)===0&&(r.flags&128)===0)return yt=!1,M_(t,r,o);yt=(t.flags&131072)!==0}else yt=!1,Fe&&(r.flags&1048576)!==0&&Xd(r,jo,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;es(t,r),t=r.pendingProps;var c=Fn(r,st.current);zn(r,o),c=Ol(null,r,a,t,c,o);var d=Nl();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,gt(a)?(d=!0,Fo(r)):d=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Sl(r),c.updater=Yo,r.stateNode=c,c._reactInternals=r,Fl(r,a,t,o),r=Ul(null,r,a,!0,d,o)):(r.tag=0,Fe&&d&&dl(r),ft(null,r,c,o),r=r.child),r;case 16:a=r.elementType;e:{switch(es(t,r),t=r.pendingProps,c=a._init,a=c(a._payload),r.type=a,c=r.tag=Q_(a),t=$t(a,t),c){case 0:r=jl(null,r,a,t,o);break e;case 1:r=$h(null,r,a,t,o);break e;case 11:r=jh(null,r,a,t,o);break e;case 14:r=Uh(null,r,a,$t(a.type,t),o);break e}throw Error(i(306,a,""))}return r;case 0:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),jl(t,r,a,c,o);case 1:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),$h(t,r,a,c,o);case 3:e:{if(qh(r),t===null)throw Error(i(387));a=r.pendingProps,d=r.memoizedState,c=d.element,sh(t,r),qo(r,a,null,o);var g=r.memoizedState;if(a=g.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},r.updateQueue.baseState=d,r.memoizedState=d,r.flags&256){c=$n(Error(i(423)),r),r=Vh(t,r,a,o,c);break e}else if(a!==c){c=$n(Error(i(424)),r),r=Vh(t,r,a,o,c);break e}else for(bt=Pr(r.stateNode.containerInfo.firstChild),xt=r,Fe=!0,Gt=null,o=ih(r,null,a,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(jn(),a===c){r=_r(t,r,o);break e}ft(t,r,a,o)}r=r.child}return r;case 5:return uh(r),t===null&&ml(r),a=r.type,c=r.pendingProps,d=t!==null?t.memoizedProps:null,g=c.children,sl(a,c)?g=null:d!==null&&sl(a,d)&&(r.flags|=32),Gh(t,r),ft(t,r,g,o),r.child;case 6:return t===null&&ml(r),null;case 13:return Wh(t,r,o);case 4:return xl(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=Un(r,null,a,o):ft(t,r,a,o),r.child;case 11:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),jh(t,r,a,c,o);case 7:return ft(t,r,r.pendingProps,o),r.child;case 8:return ft(t,r,r.pendingProps.children,o),r.child;case 12:return ft(t,r,r.pendingProps.children,o),r.child;case 10:e:{if(a=r.type._context,c=r.pendingProps,d=r.memoizedProps,g=c.value,Ae(zo,a._currentValue),a._currentValue=g,d!==null)if(zt(d.value,g)){if(d.children===c.children&&!mt.current){r=_r(t,r,o);break e}}else for(d=r.child,d!==null&&(d.return=r);d!==null;){var C=d.dependencies;if(C!==null){g=d.child;for(var A=C.firstContext;A!==null;){if(A.context===a){if(d.tag===1){A=vr(-1,o&-o),A.tag=2;var L=d.updateQueue;if(L!==null){L=L.shared;var H=L.pending;H===null?A.next=A:(A.next=H.next,H.next=A),L.pending=A}}d.lanes|=o,A=d.alternate,A!==null&&(A.lanes|=o),El(d.return,o,r),C.lanes|=o;break}A=A.next}}else if(d.tag===10)g=d.type===r.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(i(341));g.lanes|=o,C=g.alternate,C!==null&&(C.lanes|=o),El(g,o,r),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===r){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}ft(t,r,c.children,o),r=r.child}return r;case 9:return c=r.type,a=r.pendingProps.children,zn(r,o),c=Pt(c),a=a(c),r.flags|=1,ft(t,r,a,o),r.child;case 14:return a=r.type,c=$t(a,r.pendingProps),c=$t(a.type,c),Uh(t,r,a,c,o);case 15:return Hh(t,r,r.type,r.pendingProps,o);case 17:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),es(t,r),r.tag=1,gt(a)?(t=!0,Fo(r)):t=!1,zn(r,o),Ih(r,a,c),Fl(r,a,c,o),Ul(null,r,a,!0,t,o);case 19:return Zh(t,r,o);case 22:return zh(t,r,o)}throw Error(i(156,r.tag))};function _p(t,r){return Yf(t,r)}function Z_(t,r,o,a){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(t,r,o,a){return new Z_(t,r,o,a)}function su(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Q_(t){if(typeof t=="function")return su(t)?1:0;if(t!=null){if(t=t.$$typeof,t===pe)return 11;if(t===Ie)return 14}return 2}function qr(t,r){var o=t.alternate;return o===null?(o=Lt(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&14680064,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o}function fs(t,r,o,a,c,d){var g=2;if(a=t,typeof t=="function")su(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case z:return dn(o.children,c,d,r);case V:g=8,c|=8;break;case fe:return t=Lt(12,o,r,c|2),t.elementType=fe,t.lanes=d,t;case ue:return t=Lt(13,o,r,c),t.elementType=ue,t.lanes=d,t;case Ue:return t=Lt(19,o,r,c),t.elementType=Ue,t.lanes=d,t;case Ne:return ds(o,c,d,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:g=10;break e;case oe:g=9;break e;case pe:g=11;break e;case Ie:g=14;break e;case $e:g=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Lt(g,o,r,c),r.elementType=t,r.type=a,r.lanes=d,r}function dn(t,r,o,a){return t=Lt(7,t,a,r),t.lanes=o,t}function ds(t,r,o,a){return t=Lt(22,t,a,r),t.elementType=Ne,t.lanes=o,t.stateNode={isHidden:!1},t}function au(t,r,o){return t=Lt(6,t,null,r),t.lanes=o,t}function lu(t,r,o){return r=Lt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function X_(t,r,o,a,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function uu(t,r,o,a,c,d,g,C,A){return t=new X_(t,r,o,C,A),r===1?(r=1,d===!0&&(r|=8)):r=0,d=Lt(3,null,null,r),t.current=d,d.stateNode=t,d.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sl(d),t}function Y_(t,r,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:a==null?null:""+a,children:t,containerInfo:r,implementation:o}}function Ep(t){if(!t)return Fr;t=t._reactInternals;e:{if(Jr(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(gt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var o=t.type;if(gt(o))return Kd(t,o,r)}return r}function wp(t,r,o,a,c,d,g,C,A){return t=uu(o,a,!0,t,c,d,g,C,A),t.context=Ep(null),o=t.current,a=dt(),c=Gr(o),d=vr(a,c),d.callback=r??null,jr(o,d,c),t.current.lanes=c,fi(t,c,a),_t(t,a),t}function hs(t,r,o,a){var c=r.current,d=dt(),g=Gr(c);return o=Ep(o),r.context===null?r.context=o:r.pendingContext=o,r=vr(d,g),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=jr(c,r,g),t!==null&&(Wt(t,c,g,d),$o(t,c,g)),g}function ps(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Sp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function cu(t,r){Sp(t,r),(t=t.alternate)&&Sp(t,r)}function J_(){return null}var xp=typeof reportError=="function"?reportError:function(t){console.error(t)};function fu(t){this._internalRoot=t}ms.prototype.render=fu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));hs(t,r,null,null)},ms.prototype.unmount=fu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;un(function(){hs(null,t,null,null)}),r[hr]=null}};function ms(t){this._internalRoot=t}ms.prototype.unstable_scheduleHydration=function(t){if(t){var r=sd();t={blockedOn:null,target:t,priority:r};for(var o=0;o<Ar.length&&r!==0&&r<Ar[o].priority;o++);Ar.splice(o,0,t),o===0&&ud(t)}};function du(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function gs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function bp(){}function e1(t,r,o,a,c){if(c){if(typeof a=="function"){var d=a;a=function(){var L=ps(g);d.call(L)}}var g=wp(r,a,t,0,null,!1,!1,"",bp);return t._reactRootContainer=g,t[hr]=g.current,Ti(t.nodeType===8?t.parentNode:t),un(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var C=a;a=function(){var L=ps(A);C.call(L)}}var A=uu(t,0,!1,null,null,!1,!1,"",bp);return t._reactRootContainer=A,t[hr]=A.current,Ti(t.nodeType===8?t.parentNode:t),un(function(){hs(r,A,o,a)}),A}function ys(t,r,o,a,c){var d=o._reactRootContainer;if(d){var g=d;if(typeof c=="function"){var C=c;c=function(){var A=ps(g);C.call(A)}}hs(r,g,t,c)}else g=e1(o,r,t,c,a);return ps(g)}id=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var o=ci(r.pendingLanes);o!==0&&(Fa(r,o|1),_t(r,ze()),(Se&6)===0&&(Wn=ze()+500,Lr()))}break;case 13:un(function(){var a=yr(t,1);if(a!==null){var c=dt();Wt(a,t,1,c)}}),cu(t,1)}},La=function(t){if(t.tag===13){var r=yr(t,134217728);if(r!==null){var o=dt();Wt(r,t,134217728,o)}cu(t,134217728)}},od=function(t){if(t.tag===13){var r=Gr(t),o=yr(t,r);if(o!==null){var a=dt();Wt(o,t,r,a)}cu(t,r)}},sd=function(){return Oe},ad=function(t,r){var o=Oe;try{return Oe=t,r()}finally{Oe=o}},Oa=function(t,r,o){switch(r){case"input":if(wa(t,o),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<o.length;r++){var a=o[r];if(a!==t&&a.form===t.form){var c=Po(a);if(!c)throw Error(i(90));ct(a),wa(a,c)}}}break;case"textarea":Ff(t,o);break;case"select":r=o.value,r!=null&&bn(t,!!o.multiple,r,!1)}},qf=nu,Vf=un;var t1={usingClientEntryPoint:!1,Events:[Ri,Pn,Po,Gf,$f,nu]},zi={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},r1={bundleType:zi.bundleType,version:zi.version,rendererPackageName:zi.rendererPackageName,rendererConfig:zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Qf(t),t===null?null:t.stateNode},findFiberByHostInstance:zi.findFiberByHostInstance||J_,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 vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{mo=vs.inject(r1),er=vs}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t1,Et.createPortal=function(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!du(r))throw Error(i(200));return Y_(t,r,null,o)},Et.createRoot=function(t,r){if(!du(t))throw Error(i(299));var o=!1,a="",c=xp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=uu(t,1,!1,null,null,o,!1,a,c),t[hr]=r.current,Ti(t.nodeType===8?t.parentNode:t),new fu(r)},Et.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=Qf(r),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return un(t)},Et.hydrate=function(t,r,o){if(!gs(r))throw Error(i(200));return ys(null,t,r,!0,o)},Et.hydrateRoot=function(t,r,o){if(!du(t))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,c=!1,d="",g=xp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),r=wp(r,null,t,1,o??null,c,!1,d,g),t[hr]=r.current,Ti(t),a)for(t=0;t<a.length;t++)o=a[t],c=o._getVersion,c=c(o._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,c]:r.mutableSourceEagerHydrationData.push(o,c);return new ms(r)},Et.render=function(t,r,o){if(!gs(r))throw Error(i(200));return ys(null,t,r,!1,o)},Et.unmountComponentAtNode=function(t){if(!gs(t))throw Error(i(40));return t._reactRootContainer?(un(function(){ys(null,null,t,!1,function(){t._reactRootContainer=null,t[hr]=null})}),!0):!1},Et.unstable_batchedUpdates=nu,Et.unstable_renderSubtreeIntoContainer=function(t,r,o,a){if(!gs(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return ys(t,r,o,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Ip;function d1(){if(Ip)return mu.exports;Ip=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),mu.exports=f1(),mu.exports}var Dp;function h1(){if(Dp)return Es;Dp=1;var e=d1();return Es.createRoot=e.createRoot,Es.hydrateRoot=e.hydrateRoot,Es}var p1=h1(),B=Jn();const r0=oa(B);var vu={exports:{}},_u={};/**
41
41
  * @license React
42
42
  * use-sync-external-store-with-selector.production.js
43
43
  *
@@ -45,15 +45,15 @@ Error generating stack: `+d.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 Pp;function m1(){if(Pp)return _u;Pp=1;var e=Jn();function n(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var i=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return _u.useSyncExternalStoreWithSelector=function(p,v,y,b,m){var w=l(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=f(function(){function R(T){if(!O){if(O=!0,N=T,T=b(T),m!==void 0&&_.hasValue){var F=_.value;if(m(F,T))return x=F}return x=T}if(F=x,i(N,T))return F;var z=b(T);return m!==void 0&&m(F,z)?(N=T,F):(N=T,x=z)}var O=!1,N,x,k=y===void 0?null:y;return[function(){return R(v())},k===null?void 0:function(){return R(k())}]},[v,y,b,m]);var S=s(p,w[0],w[1]);return u(function(){_.hasValue=!0,_.value=S},[S]),h(S),S},_u}var Mp;function g1(){return Mp||(Mp=1,vu.exports=m1()),vu.exports}var y1=g1(),v1=B.version.startsWith("19"),_1=Symbol.for(v1?"react.transitional.element":"react.element"),E1=Symbol.for("react.portal"),w1=Symbol.for("react.fragment"),S1=Symbol.for("react.strict_mode"),x1=Symbol.for("react.profiler"),b1=Symbol.for("react.consumer"),T1=Symbol.for("react.context"),n0=Symbol.for("react.forward_ref"),C1=Symbol.for("react.suspense"),k1=Symbol.for("react.suspense_list"),Zc=Symbol.for("react.memo"),R1=Symbol.for("react.lazy"),O1=n0,N1=Zc;function A1(e){if(typeof e=="object"&&e!==null){const{$$typeof:n}=e;switch(n){case _1:switch(e=e.type,e){case w1:case x1:case S1:case C1:case k1:return e;default:switch(e=e&&e.$$typeof,e){case T1:case n0:case R1:case Zc:return e;case b1:return e;default:return n}}case E1:return n}}}function I1(e){return A1(e)===Zc}function D1(e,n,i,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:f}){let h=!1,p,v,y,b,m;function w(N,x){return p=N,v=x,y=e(p,v),b=n(s,v),m=i(y,b,v),h=!0,m}function _(){return y=e(p,v),n.dependsOnOwnProps&&(b=n(s,v)),m=i(y,b,v),m}function S(){return e.dependsOnOwnProps&&(y=e(p,v)),n.dependsOnOwnProps&&(b=n(s,v)),m=i(y,b,v),m}function R(){const N=e(p,v),x=!f(N,y);return y=N,x&&(m=i(y,b,v)),m}function O(N,x){const k=!u(x,v),T=!l(N,p,x,v);return p=N,v=x,k&&T?_():k?S():T?R():m}return function(x,k){return h?O(x,k):w(x,k)}}function P1(e,{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:s,...l}){const u=n(e,l),f=i(e,l),h=s(e,l);return D1(u,f,h,e,l)}function M1(e,n){const i={};for(const s in e){const l=e[s];typeof l=="function"&&(i[s]=(...u)=>n(l(...u)))}return i}function yc(e){return function(i){const s=e(i);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Fp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function i0(e,n){return function(s,{displayName:l}){const u=function(h,p){return u.dependsOnOwnProps?u.mapToProps(h,p):u.mapToProps(h,void 0)};return u.dependsOnOwnProps=!0,u.mapToProps=function(h,p){u.mapToProps=e,u.dependsOnOwnProps=Fp(e);let v=u(h,p);return typeof v=="function"&&(u.mapToProps=v,u.dependsOnOwnProps=Fp(v),v=u(h,p)),v},u}}function Kc(e,n){return(i,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${n} argument when connecting component ${s.wrappedComponentName}.`)}}function F1(e){return e&&typeof e=="object"?yc(n=>M1(e,n)):e?typeof e=="function"?i0(e):Kc(e,"mapDispatchToProps"):yc(n=>({dispatch:n}))}function L1(e){return e?typeof e=="function"?i0(e):Kc(e,"mapStateToProps"):yc(()=>({}))}function B1(e,n,i){return{...i,...e,...n}}function j1(e){return function(i,{displayName:s,areMergedPropsEqual:l}){let u=!1,f;return function(p,v,y){const b=e(p,v,y);return u?l(b,f)||(f=b):(u=!0,f=b),f}}}function U1(e){return e?typeof e=="function"?j1(e):Kc(e,"mergeProps"):()=>B1}function H1(e){e()}function z1(){let e=null,n=null;return{clear(){e=null,n=null},notify(){H1(()=>{let i=e;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=e;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const l=n={callback:i,next:null,prev:n};return l.prev?l.prev.next=l:e=l,function(){!s||e===null||(s=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var Lp={notify(){},get:()=>[]};function o0(e,n){let i,s=Lp,l=0,u=!1;function f(S){y();const R=s.subscribe(S);let O=!1;return()=>{O||(O=!0,R(),b())}}function h(){s.notify()}function p(){_.onStateChange&&_.onStateChange()}function v(){return u}function y(){l++,i||(i=n?n.addNestedSub(p):e.subscribe(p),s=z1())}function b(){l--,i&&l===0&&(i(),i=void 0,s.clear(),s=Lp)}function m(){u||(u=!0,y())}function w(){u&&(u=!1,b())}const _={addNestedSub:f,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:v,trySubscribe:m,tryUnsubscribe:w,getListeners:()=>s};return _}var G1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$1=G1(),q1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",V1=q1(),W1=()=>$1||V1?B.useLayoutEffect:B.useEffect,Js=W1();function Bp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function Eu(e,n){if(Bp(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(let l=0;l<i.length;l++)if(!Object.prototype.hasOwnProperty.call(n,i[l])||!Bp(e[i[l]],n[i[l]]))return!1;return!0}var Z1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},K1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X1={[O1]:Q1,[N1]:s0};function jp(e){return I1(e)?s0:X1[e.$$typeof]||Z1}var Y1=Object.defineProperty,J1=Object.getOwnPropertyNames,Up=Object.getOwnPropertySymbols,eE=Object.getOwnPropertyDescriptor,tE=Object.getPrototypeOf,Hp=Object.prototype;function vc(e,n){if(typeof n!="string"){if(Hp){const u=tE(n);u&&u!==Hp&&vc(e,u)}let i=J1(n);Up&&(i=i.concat(Up(n)));const s=jp(e),l=jp(n);for(let u=0;u<i.length;++u){const f=i[u];if(!K1[f]&&!(l&&l[f])&&!(s&&s[f])){const h=eE(n,f);try{Y1(e,f,h)}catch{}}}}return e}var wu=Symbol.for("react-redux-context"),Su=typeof globalThis<"u"?globalThis:{};function rE(){if(!B.createContext)return{};const e=Su[wu]??(Su[wu]=new Map);let n=e.get(B.createContext);return n||(n=B.createContext(null),e.set(B.createContext,n)),n}var Cr=rE(),nE=[null,null];function iE(e,n,i){Js(()=>e(...n),i)}function oE(e,n,i,s,l,u){e.current=s,i.current=!1,l.current&&(l.current=null,u())}function sE(e,n,i,s,l,u,f,h,p,v,y){if(!e)return()=>{};let b=!1,m=null;const w=()=>{if(b||!h.current)return;const S=n.getState();let R,O;try{R=s(S,l.current)}catch(N){O=N,m=N}O||(m=null),R===u.current?f.current||v():(u.current=R,p.current=R,f.current=!0,y())};return i.onStateChange=w,i.trySubscribe(),w(),()=>{if(b=!0,i.tryUnsubscribe(),i.onStateChange=null,m)throw m}}function aE(e,n){return e===n}function lE(e,n,i,{pure:s,areStatesEqual:l=aE,areOwnPropsEqual:u=Eu,areStatePropsEqual:f=Eu,areMergedPropsEqual:h=Eu,forwardRef:p=!1,context:v=Cr}={}){const y=v,b=L1(e),m=F1(n),w=U1(i),_=!!e;return R=>{const O=R.displayName||R.name||"Component",N=`Connect(${O})`,x={shouldHandleStateChanges:_,displayName:N,wrappedComponentName:O,WrappedComponent:R,initMapStateToProps:b,initMapDispatchToProps:m,initMergeProps:w,areStatesEqual:l,areStatePropsEqual:f,areOwnPropsEqual:u,areMergedPropsEqual:h};function k(z){const[V,fe,te]=B.useMemo(()=>{const{reactReduxForwardedRef:ct,...Jt}=z;return[z.context,ct,Jt]},[z]),oe=B.useMemo(()=>{let ct=y;return V!=null&&V.Consumer,ct},[V,y]),pe=B.useContext(oe),ue=!!z.store&&!!z.store.getState&&!!z.store.dispatch,Ue=!!pe&&!!pe.store,Ie=ue?z.store:pe.store,$e=Ue?pe.getServerState:Ie.getState,Ne=B.useMemo(()=>P1(Ie.dispatch,x),[Ie]),[W,re]=B.useMemo(()=>{if(!_)return nE;const ct=o0(Ie,ue?void 0:pe.subscription),Jt=ct.notifyNestedSubs.bind(ct);return[ct,Jt]},[Ie,ue,pe]),K=B.useMemo(()=>ue?pe:{...pe,subscription:W},[ue,pe,W]),D=B.useRef(void 0),j=B.useRef(te),ce=B.useRef(void 0),he=B.useRef(!1),ye=B.useRef(!1),ve=B.useRef(void 0);Js(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=B.useMemo(()=>()=>ce.current&&te===j.current?ce.current:Ne(Ie.getState(),te),[Ie,te]),Te=B.useMemo(()=>Jt=>W?sE(_,Ie,W,Ne,j,D,he,ye,ce,re,Jt):()=>{},[W]);iE(oE,[j,D,he,te,ce,re]);let Re;try{Re=B.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ct){throw ve.current&&(ct.message+=`
48
+ */var Pp;function m1(){if(Pp)return _u;Pp=1;var e=Jn();function n(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var i=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return _u.useSyncExternalStoreWithSelector=function(p,v,y,b,m){var w=l(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=f(function(){function R(T){if(!O){if(O=!0,N=T,T=b(T),m!==void 0&&_.hasValue){var F=_.value;if(m(F,T))return x=F}return x=T}if(F=x,i(N,T))return F;var z=b(T);return m!==void 0&&m(F,z)?(N=T,F):(N=T,x=z)}var O=!1,N,x,k=y===void 0?null:y;return[function(){return R(v())},k===null?void 0:function(){return R(k())}]},[v,y,b,m]);var S=s(p,w[0],w[1]);return u(function(){_.hasValue=!0,_.value=S},[S]),h(S),S},_u}var Mp;function g1(){return Mp||(Mp=1,vu.exports=m1()),vu.exports}var y1=g1(),v1=B.version.startsWith("19"),_1=Symbol.for(v1?"react.transitional.element":"react.element"),E1=Symbol.for("react.portal"),w1=Symbol.for("react.fragment"),S1=Symbol.for("react.strict_mode"),x1=Symbol.for("react.profiler"),b1=Symbol.for("react.consumer"),T1=Symbol.for("react.context"),n0=Symbol.for("react.forward_ref"),C1=Symbol.for("react.suspense"),k1=Symbol.for("react.suspense_list"),Kc=Symbol.for("react.memo"),R1=Symbol.for("react.lazy"),O1=n0,N1=Kc;function A1(e){if(typeof e=="object"&&e!==null){const{$$typeof:n}=e;switch(n){case _1:switch(e=e.type,e){case w1:case x1:case S1:case C1:case k1:return e;default:switch(e=e&&e.$$typeof,e){case T1:case n0:case R1:case Kc:return e;case b1:return e;default:return n}}case E1:return n}}}function I1(e){return A1(e)===Kc}function D1(e,n,i,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:f}){let h=!1,p,v,y,b,m;function w(N,x){return p=N,v=x,y=e(p,v),b=n(s,v),m=i(y,b,v),h=!0,m}function _(){return y=e(p,v),n.dependsOnOwnProps&&(b=n(s,v)),m=i(y,b,v),m}function S(){return e.dependsOnOwnProps&&(y=e(p,v)),n.dependsOnOwnProps&&(b=n(s,v)),m=i(y,b,v),m}function R(){const N=e(p,v),x=!f(N,y);return y=N,x&&(m=i(y,b,v)),m}function O(N,x){const k=!u(x,v),T=!l(N,p,x,v);return p=N,v=x,k&&T?_():k?S():T?R():m}return function(x,k){return h?O(x,k):w(x,k)}}function P1(e,{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:s,...l}){const u=n(e,l),f=i(e,l),h=s(e,l);return D1(u,f,h,e,l)}function M1(e,n){const i={};for(const s in e){const l=e[s];typeof l=="function"&&(i[s]=(...u)=>n(l(...u)))}return i}function yc(e){return function(i){const s=e(i);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Fp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function i0(e,n){return function(s,{displayName:l}){const u=function(h,p){return u.dependsOnOwnProps?u.mapToProps(h,p):u.mapToProps(h,void 0)};return u.dependsOnOwnProps=!0,u.mapToProps=function(h,p){u.mapToProps=e,u.dependsOnOwnProps=Fp(e);let v=u(h,p);return typeof v=="function"&&(u.mapToProps=v,u.dependsOnOwnProps=Fp(v),v=u(h,p)),v},u}}function Zc(e,n){return(i,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${n} argument when connecting component ${s.wrappedComponentName}.`)}}function F1(e){return e&&typeof e=="object"?yc(n=>M1(e,n)):e?typeof e=="function"?i0(e):Zc(e,"mapDispatchToProps"):yc(n=>({dispatch:n}))}function L1(e){return e?typeof e=="function"?i0(e):Zc(e,"mapStateToProps"):yc(()=>({}))}function B1(e,n,i){return{...i,...e,...n}}function j1(e){return function(i,{displayName:s,areMergedPropsEqual:l}){let u=!1,f;return function(p,v,y){const b=e(p,v,y);return u?l(b,f)||(f=b):(u=!0,f=b),f}}}function U1(e){return e?typeof e=="function"?j1(e):Zc(e,"mergeProps"):()=>B1}function H1(e){e()}function z1(){let e=null,n=null;return{clear(){e=null,n=null},notify(){H1(()=>{let i=e;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=e;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const l=n={callback:i,next:null,prev:n};return l.prev?l.prev.next=l:e=l,function(){!s||e===null||(s=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var Lp={notify(){},get:()=>[]};function o0(e,n){let i,s=Lp,l=0,u=!1;function f(S){y();const R=s.subscribe(S);let O=!1;return()=>{O||(O=!0,R(),b())}}function h(){s.notify()}function p(){_.onStateChange&&_.onStateChange()}function v(){return u}function y(){l++,i||(i=n?n.addNestedSub(p):e.subscribe(p),s=z1())}function b(){l--,i&&l===0&&(i(),i=void 0,s.clear(),s=Lp)}function m(){u||(u=!0,y())}function w(){u&&(u=!1,b())}const _={addNestedSub:f,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:v,trySubscribe:m,tryUnsubscribe:w,getListeners:()=>s};return _}var G1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$1=G1(),q1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",V1=q1(),W1=()=>$1||V1?B.useLayoutEffect:B.useEffect,Js=W1();function Bp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function Eu(e,n){if(Bp(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(let l=0;l<i.length;l++)if(!Object.prototype.hasOwnProperty.call(n,i[l])||!Bp(e[i[l]],n[i[l]]))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},Z1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X1={[O1]:Q1,[N1]:s0};function jp(e){return I1(e)?s0:X1[e.$$typeof]||K1}var Y1=Object.defineProperty,J1=Object.getOwnPropertyNames,Up=Object.getOwnPropertySymbols,eE=Object.getOwnPropertyDescriptor,tE=Object.getPrototypeOf,Hp=Object.prototype;function vc(e,n){if(typeof n!="string"){if(Hp){const u=tE(n);u&&u!==Hp&&vc(e,u)}let i=J1(n);Up&&(i=i.concat(Up(n)));const s=jp(e),l=jp(n);for(let u=0;u<i.length;++u){const f=i[u];if(!Z1[f]&&!(l&&l[f])&&!(s&&s[f])){const h=eE(n,f);try{Y1(e,f,h)}catch{}}}}return e}var wu=Symbol.for("react-redux-context"),Su=typeof globalThis<"u"?globalThis:{};function rE(){if(!B.createContext)return{};const e=Su[wu]??(Su[wu]=new Map);let n=e.get(B.createContext);return n||(n=B.createContext(null),e.set(B.createContext,n)),n}var Cr=rE(),nE=[null,null];function iE(e,n,i){Js(()=>e(...n),i)}function oE(e,n,i,s,l,u){e.current=s,i.current=!1,l.current&&(l.current=null,u())}function sE(e,n,i,s,l,u,f,h,p,v,y){if(!e)return()=>{};let b=!1,m=null;const w=()=>{if(b||!h.current)return;const S=n.getState();let R,O;try{R=s(S,l.current)}catch(N){O=N,m=N}O||(m=null),R===u.current?f.current||v():(u.current=R,p.current=R,f.current=!0,y())};return i.onStateChange=w,i.trySubscribe(),w(),()=>{if(b=!0,i.tryUnsubscribe(),i.onStateChange=null,m)throw m}}function aE(e,n){return e===n}function lE(e,n,i,{pure:s,areStatesEqual:l=aE,areOwnPropsEqual:u=Eu,areStatePropsEqual:f=Eu,areMergedPropsEqual:h=Eu,forwardRef:p=!1,context:v=Cr}={}){const y=v,b=L1(e),m=F1(n),w=U1(i),_=!!e;return R=>{const O=R.displayName||R.name||"Component",N=`Connect(${O})`,x={shouldHandleStateChanges:_,displayName:N,wrappedComponentName:O,WrappedComponent:R,initMapStateToProps:b,initMapDispatchToProps:m,initMergeProps:w,areStatesEqual:l,areStatePropsEqual:f,areOwnPropsEqual:u,areMergedPropsEqual:h};function k(z){const[V,fe,te]=B.useMemo(()=>{const{reactReduxForwardedRef:ct,...Jt}=z;return[z.context,ct,Jt]},[z]),oe=B.useMemo(()=>{let ct=y;return V!=null&&V.Consumer,ct},[V,y]),pe=B.useContext(oe),ue=!!z.store&&!!z.store.getState&&!!z.store.dispatch,Ue=!!pe&&!!pe.store,Ie=ue?z.store:pe.store,$e=Ue?pe.getServerState:Ie.getState,Ne=B.useMemo(()=>P1(Ie.dispatch,x),[Ie]),[W,re]=B.useMemo(()=>{if(!_)return nE;const ct=o0(Ie,ue?void 0:pe.subscription),Jt=ct.notifyNestedSubs.bind(ct);return[ct,Jt]},[Ie,ue,pe]),Z=B.useMemo(()=>ue?pe:{...pe,subscription:W},[ue,pe,W]),D=B.useRef(void 0),j=B.useRef(te),ce=B.useRef(void 0),he=B.useRef(!1),ye=B.useRef(!1),ve=B.useRef(void 0);Js(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=B.useMemo(()=>()=>ce.current&&te===j.current?ce.current:Ne(Ie.getState(),te),[Ie,te]),Te=B.useMemo(()=>Jt=>W?sE(_,Ie,W,Ne,j,D,he,ye,ce,re,Jt):()=>{},[W]);iE(oE,[j,D,he,te,ce,re]);let Re;try{Re=B.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ct){throw ve.current&&(ct.message+=`
49
49
  The error may be correlated with this previous error:
50
50
  ${ve.current.stack}
51
51
 
52
- `),ct}Js(()=>{ve.current=void 0,ce.current=void 0,D.current=Re});const et=B.useMemo(()=>B.createElement(R,{...Re,ref:fe}),[fe,R,Re]);return B.useMemo(()=>_?B.createElement(oe.Provider,{value:K},et):et,[oe,et,K])}const F=B.memo(k);if(F.WrappedComponent=R,F.displayName=k.displayName=N,p){const V=B.forwardRef(function(te,oe){return B.createElement(F,{...te,reactReduxForwardedRef:oe})});return V.displayName=N,V.WrappedComponent=R,vc(V,R)}return vc(F,R)}}var uE=lE;function cE(e){const{children:n,context:i,serverState:s,store:l}=e,u=B.useMemo(()=>{const p=o0(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),f=B.useMemo(()=>l.getState(),[l]);Js(()=>{const{subscription:p}=u;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),f!==l.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[u,f]);const h=i||Cr;return B.createElement(h.Provider,{value:u},n)}var fE=cE;function Qc(e=Cr){return function(){return B.useContext(e)}}var a0=Qc();function l0(e=Cr){const n=e===Cr?a0:Qc(e),i=()=>{const{store:s}=n();return s};return Object.assign(i,{withTypes:()=>i}),i}var dE=l0();function hE(e=Cr){const n=e===Cr?dE:l0(e),i=()=>n().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var pE=hE(),mE=(e,n)=>e===n;function gE(e=Cr){const n=e===Cr?a0:Qc(e),i=(s,l={})=>{const{equalityFn:u=mE}=typeof l=="function"?{equalityFn:l}:l,f=n(),{store:h,subscription:p,getServerState:v}=f;B.useRef(!0);const y=B.useCallback({[s.name](m){return s(m)}}[s.name],[s]),b=y1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,v||h.getState,y,u);return B.useDebugValue(b),b};return Object.assign(i,{withTypes:()=>i}),i}var yE=gE(),xu={exports:{}};/*!
52
+ `),ct}Js(()=>{ve.current=void 0,ce.current=void 0,D.current=Re});const et=B.useMemo(()=>B.createElement(R,{...Re,ref:fe}),[fe,R,Re]);return B.useMemo(()=>_?B.createElement(oe.Provider,{value:Z},et):et,[oe,et,Z])}const F=B.memo(k);if(F.WrappedComponent=R,F.displayName=k.displayName=N,p){const V=B.forwardRef(function(te,oe){return B.createElement(F,{...te,reactReduxForwardedRef:oe})});return V.displayName=N,V.WrappedComponent=R,vc(V,R)}return vc(F,R)}}var uE=lE;function cE(e){const{children:n,context:i,serverState:s,store:l}=e,u=B.useMemo(()=>{const p=o0(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),f=B.useMemo(()=>l.getState(),[l]);Js(()=>{const{subscription:p}=u;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),f!==l.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[u,f]);const h=i||Cr;return B.createElement(h.Provider,{value:u},n)}var fE=cE;function Qc(e=Cr){return function(){return B.useContext(e)}}var a0=Qc();function l0(e=Cr){const n=e===Cr?a0:Qc(e),i=()=>{const{store:s}=n();return s};return Object.assign(i,{withTypes:()=>i}),i}var dE=l0();function hE(e=Cr){const n=e===Cr?dE:l0(e),i=()=>n().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var pE=hE(),mE=(e,n)=>e===n;function gE(e=Cr){const n=e===Cr?a0:Qc(e),i=(s,l={})=>{const{equalityFn:u=mE}=typeof l=="function"?{equalityFn:l}:l,f=n(),{store:h,subscription:p,getServerState:v}=f;B.useRef(!0);const y=B.useCallback({[s.name](m){return s(m)}}[s.name],[s]),b=y1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,v||h.getState,y,u);return B.useDebugValue(b),b};return Object.assign(i,{withTypes:()=>i}),i}var yE=gE(),xu={exports:{}};/*!
53
53
  Copyright (c) 2018 Jed Watson.
54
54
  Licensed under the MIT License (MIT), see
55
55
  http://jedwatson.github.io/classnames
56
- */var zp;function vE(){return zp||(zp=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var u="",f=0;f<arguments.length;f++){var h=arguments[f];h&&(u=l(u,s(h)))}return u}function s(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return i.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var h in u)n.call(u,h)&&u[h]&&(f=l(f,h));return f}function l(u,f){return f?u?u+" "+f:u+f:u}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(xu)),xu.exports}var _E=vE();const q=oa(_E);var _c=function(e,n){return _c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])},_c(e,n)};function jt(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");_c(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}var J=function(){return J=Object.assign||function(n){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},J.apply(this,arguments)};function sa(e,n){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(i[s[l]]=e[s[l]]);return i}function ar(e,n,i){if(i||arguments.length===2)for(var s=0,l=n.length,u;s<l;s++)(u||!(s in n))&&(u||(u=Array.prototype.slice.call(n,0,s)),u[s]=n[s]);return e.concat(u||Array.prototype.slice.call(n))}function or(e,n){var i=n&&n.cache?n.cache:CE,s=n&&n.serializer?n.serializer:bE,l=n&&n.strategy?n.strategy:SE;return l(e,{cache:i,serializer:s})}function EE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wE(e,n,i,s){var l=EE(s)?s:i(s),u=n.get(l);return typeof u>"u"&&(u=e.call(this,s),n.set(l,u)),u}function u0(e,n,i){var s=Array.prototype.slice.call(arguments,3),l=i(s),u=n.get(l);return typeof u>"u"&&(u=e.apply(this,s),n.set(l,u)),u}function c0(e,n,i,s,l){return i.bind(n,e,s,l)}function SE(e,n){var i=e.length===1?wE:u0;return c0(e,this,i,n.cache.create(),n.serializer)}function xE(e,n){return c0(e,this,u0,n.cache.create(),n.serializer)}var bE=function(){return JSON.stringify(arguments)},TE=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(n){return this.cache[n]},e.prototype.set=function(n,i){this.cache[n]=i},e}(),CE={create:function(){return new TE}},sr={variadic:xE},_e;(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"})(_e||(_e={}));var Me;(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"})(Me||(Me={}));var Qn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qn||(Qn={}));function Gp(e){return e.type===Me.literal}function kE(e){return e.type===Me.argument}function f0(e){return e.type===Me.number}function d0(e){return e.type===Me.date}function h0(e){return e.type===Me.time}function p0(e){return e.type===Me.select}function m0(e){return e.type===Me.plural}function RE(e){return e.type===Me.pound}function g0(e){return e.type===Me.tag}function y0(e){return!!(e&&typeof e=="object"&&e.type===Qn.number)}function Ec(e){return!!(e&&typeof e=="object"&&e.type===Qn.dateTime)}var v0=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,OE=/(?:[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 NE(e){var n={};return e.replace(OE,function(i){var s=i.length;switch(i[0]){case"G":n.era=s===4?"long":s===5?"narrow":"short";break;case"y":n.year=s===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":n.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][s-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][s-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][s-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][s-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":n.minute=["numeric","2-digit"][s-1];break;case"s":n.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=s<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""}),n}var AE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function IE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(AE).filter(function(m){return m.length>0}),i=[],s=0,l=n;s<l.length;s++){var u=l[s],f=u.split("/");if(f.length===0)throw new Error("Invalid number skeleton");for(var h=f[0],p=f.slice(1),v=0,y=p;v<y.length;v++){var b=y[v];if(b.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:p})}return i}function DE(e){return e.replace(/^(.*?)-/,"")}var $p=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_0=/^(@+)?(\+|#+)?[rs]?$/g,PE=/(\*)(0+)|(#+)(0+)|(0+)/g,E0=/^(0+)$/;function qp(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(_0,function(i,s,l){return typeof l!="string"?(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length):l==="+"?n.minimumSignificantDigits=s.length:s[0]==="#"?n.maximumSignificantDigits=s.length:(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length+(typeof l=="string"?l.length:0)),""}),n}function w0(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 ME(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var i=e.slice(0,2);if(i==="+!"?(n.signDisplay="always",e=e.slice(2)):i==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!E0.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Vp(e){var n={},i=w0(e);return i||n}function FE(e){for(var n={},i=0,s=e;i<s.length;i++){var l=s[i];switch(l.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=l.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=DE(l.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=J(J(J({},n),{notation:"scientific"}),l.options.reduce(function(p,v){return J(J({},p),Vp(v))},{}));continue;case"engineering":n=J(J(J({},n),{notation:"engineering"}),l.options.reduce(function(p,v){return J(J({},p),Vp(v))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(l.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(l.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");l.options[0].replace(PE,function(p,v,y,b,m,w){if(v)n.minimumIntegerDigits=y.length;else{if(b&&m)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(E0.test(l.stem)){n.minimumIntegerDigits=l.stem.length;continue}if($p.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace($p,function(p,v,y,b,m,w){return y==="*"?n.minimumFractionDigits=v.length:b&&b[0]==="#"?n.maximumFractionDigits=b.length:m&&w?(n.minimumFractionDigits=m.length,n.maximumFractionDigits=m.length+w.length):(n.minimumFractionDigits=v.length,n.maximumFractionDigits=v.length),""});var u=l.options[0];u==="w"?n=J(J({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=J(J({},n),qp(u)));continue}if(_0.test(l.stem)){n=J(J({},n),qp(l.stem));continue}var f=w0(l.stem);f&&(n=J(J({},n),f));var h=ME(l.stem);h&&(n=J(J({},n),h))}return n}var ws={"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 LE(e,n){for(var i="",s=0;s<e.length;s++){var l=e.charAt(s);if(l==="j"){for(var u=0;s+1<e.length&&e.charAt(s+1)===l;)u++,s++;var f=1+(u&1),h=u<2?1:3+(u>>1),p="a",v=BE(n);for((v=="H"||v=="k")&&(h=0);h-- >0;)i+=p;for(;f-- >0;)i=v+i}else l==="J"?i+="H":i+=l}return i}function BE(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,s;i!=="root"&&(s=e.maximize().region);var l=ws[s||""]||ws[i||""]||ws["".concat(i,"-001")]||ws["001"];return l[0]}var bu,jE=new RegExp("^".concat(v0.source,"*")),UE=new RegExp("".concat(v0.source,"*$"));function we(e,n){return{start:e,end:n}}var HE=!!String.prototype.startsWith&&"_a".startsWith("a",1),zE=!!String.fromCodePoint,GE=!!Object.fromEntries,$E=!!String.prototype.codePointAt,qE=!!String.prototype.trimStart,VE=!!String.prototype.trimEnd,WE=!!Number.isSafeInteger,ZE=WE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wc=!0;try{var KE=x0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wc=((bu=KE.exec("a"))===null||bu===void 0?void 0:bu[0])==="a"}catch{wc=!1}var Wp=HE?function(n,i,s){return n.startsWith(i,s)}:function(n,i,s){return n.slice(s,s+i.length)===i},Sc=zE?String.fromCodePoint:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var s="",l=n.length,u=0,f;l>u;){if(f=n[u++],f>1114111)throw RangeError(f+" is not a valid code point");s+=f<65536?String.fromCharCode(f):String.fromCharCode(((f-=65536)>>10)+55296,f%1024+56320)}return s},Zp=GE?Object.fromEntries:function(n){for(var i={},s=0,l=n;s<l.length;s++){var u=l[s],f=u[0],h=u[1];i[f]=h}return i},S0=$E?function(n,i){return n.codePointAt(i)}:function(n,i){var s=n.length;if(!(i<0||i>=s)){var l=n.charCodeAt(i),u;return l<55296||l>56319||i+1===s||(u=n.charCodeAt(i+1))<56320||u>57343?l:(l-55296<<10)+(u-56320)+65536}},QE=qE?function(n){return n.trimStart()}:function(n){return n.replace(jE,"")},XE=VE?function(n){return n.trimEnd()}:function(n){return n.replace(UE,"")};function x0(e,n){return new RegExp(e,n)}var xc;if(wc){var Kp=x0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xc=function(n,i){var s;Kp.lastIndex=i;var l=Kp.exec(n);return(s=l[1])!==null&&s!==void 0?s:""}}else xc=function(n,i){for(var s=[];;){var l=S0(n,i);if(l===void 0||b0(l)||tw(l))break;s.push(l),i+=l>=65536?2:1}return Sc.apply(void 0,s)};var YE=function(){function e(n,i){i===void 0&&(i={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.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(n,i,s){for(var l=[];!this.isEOF();){var u=this.char();if(u===123){var f=this.parseArgument(n,s);if(f.err)return f;l.push(f.val)}else{if(u===125&&n>0)break;if(u===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),l.push({type:Me.pound,location:we(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&bc(this.peek()||0)){var f=this.parseTag(n,i);if(f.err)return f;l.push(f.val)}else{var f=this.parseLiteral(n,i);if(f.err)return f;l.push(f.val)}}}return{val:l,err:null}},e.prototype.parseTag=function(n,i){var s=this.clonePosition();this.bump();var l=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Me.literal,value:"<".concat(l,"/>"),location:we(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(n+1,i,!0);if(u.err)return u;var f=u.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!bc(this.char()))return this.error(_e.INVALID_TAG,we(h,this.clonePosition()));var p=this.clonePosition(),v=this.parseTagName();return l!==v?this.error(_e.UNMATCHED_CLOSING_TAG,we(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:f,location:we(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,we(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,we(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,we(s,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&ew(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,i){for(var s=this.clonePosition(),l="";;){var u=this.tryParseQuote(i);if(u){l+=u;continue}var f=this.tryParseUnquoted(n,i);if(f){l+=f;continue}var h=this.tryParseLeftAngleBracket();if(h){l+=h;continue}break}var p=we(s,this.clonePosition());return{val:{type:Me.literal,value:l,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!JE(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){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(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return Sc.apply(void 0,i)},e.prototype.tryParseUnquoted=function(n,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&n>0?null:(this.bump(),Sc(s))},e.prototype.parseArgument=function(n,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,we(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:we(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition())):this.parseArgumentOptions(n,i,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),i=this.offset(),s=xc(this.message,i),l=i+s.length;this.bumpTo(l);var u=this.clonePosition(),f=we(n,u);return{value:s,location:f}},e.prototype.parseArgumentOptions=function(n,i,s,l){var u,f=this.clonePosition(),h=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(h){case"":return this.error(_e.EXPECT_ARGUMENT_TYPE,we(f,p));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),b=this.parseSimpleArgStyleIfPossible();if(b.err)return b;var m=XE(b.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var w=we(y,this.clonePosition());v={style:m,styleLocation:w}}var _=this.tryParseArgumentClose(l);if(_.err)return _;var S=we(l,this.clonePosition());if(v&&Wp(v==null?void 0:v.style,"::",0)){var R=QE(v.style.slice(2));if(h==="number"){var b=this.parseNumberSkeletonFromString(R,v.styleLocation);return b.err?b:{val:{type:Me.number,value:s,location:S,style:b.val},err:null}}else{if(R.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,S);var O=R;this.locale&&(O=LE(R,this.locale));var m={type:Qn.dateTime,pattern:O,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?NE(O):{}},N=h==="date"?Me.date:Me.time;return{val:{type:N,value:s,location:S,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:S,style:(u=v==null?void 0:v.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,we(x,J({},x)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),T=0;if(h!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var b=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(b.err)return b;this.bumpSpace(),k=this.parseIdentifierIfPossible(),T=b.val}var F=this.tryParsePluralOrSelectOptions(n,h,i,k);if(F.err)return F;var _=this.tryParseArgumentClose(l);if(_.err)return _;var z=we(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Zp(F.val),location:z},err:null}:{val:{type:Me.plural,value:s,options:Zp(F.val),offset:T,pluralType:h==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,we(f,p))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var l=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(l,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,i){var s=[];try{s=IE(n)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,i)}return{val:{type:Qn.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?FE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,i,s,l){for(var u,f=!1,h=[],p=new Set,v=l.value,y=l.location;;){if(v.length===0){var b=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;y=we(b,this.clonePosition()),v=this.message.slice(b.offset,this.offset())}else break}if(p.has(v))return this.error(i==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);v==="other"&&(f=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(n+1,i,s);if(_.err)return _;var S=this.tryParseArgumentClose(w);if(S.err)return S;h.push([v,{value:_.val,location:we(w,this.clonePosition())}]),p.add(v),this.bumpSpace(),u=this.parseIdentifierIfPossible(),v=u.value,y=u.location}return h.length===0?this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!f?this.error(_e.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(n,i){var s=1,l=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var u=!1,f=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)u=!0,f=f*10+(h-48),this.bump();else break}var p=we(l,this.clonePosition());return u?(f*=s,ZE(f)?{val:f,err:null}:this.error(i,p)):this.error(n,p)},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 n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var i=S0(this.message,n);if(i===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(n,i){return{val:null,err:{kind:n,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(Wp(this.message,n,this.offset())){for(var i=0;i<n.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var i=this.offset(),s=this.message.indexOf(n,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var i=this.offset();if(i===n)break;if(i>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&b0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(n>=65536?2:1));return s??null},e}();function bc(e){return e>=97&&e<=122||e>=65&&e<=90}function JE(e){return bc(e)||e===47}function ew(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 b0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function tw(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 Tc(e){e.forEach(function(n){if(delete n.location,p0(n)||m0(n))for(var i in n.options)delete n.options[i].location,Tc(n.options[i].value);else f0(n)&&y0(n.style)||(d0(n)||h0(n))&&Ec(n.style)?delete n.style.location:g0(n)&&Tc(n.children)})}function rw(e,n){n===void 0&&(n={}),n=J({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new YE(e,n).parse();if(i.err){var s=SyntaxError(_e[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return n!=null&&n.captureLocation||Tc(i.val),i.val}var cr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(cr||(cr={}));var Yr=function(e){jt(n,e);function n(i,s,l){var u=e.call(this,i)||this;return u.code=s,u.originalMessage=l,u}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),Qp=function(e){jt(n,e);function n(i,s,l,u){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(l).join('", "'),'"'),cr.INVALID_VALUE,u)||this}return n}(Yr),nw=function(e){jt(n,e);function n(i,s,l){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),cr.INVALID_VALUE,l)||this}return n}(Yr),iw=function(e){jt(n,e);function n(i,s){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),cr.MISSING_VALUE,s)||this}return n}(Yr),ht;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ht||(ht={}));function ow(e){return e.length<2?e:e.reduce(function(n,i){var s=n[n.length-1];return!s||s.type!==ht.literal||i.type!==ht.literal?n.push(i):s.value+=i.value,n},[])}function T0(e){return typeof e=="function"}function Ws(e,n,i,s,l,u,f){if(e.length===1&&Gp(e[0]))return[{type:ht.literal,value:e[0].value}];for(var h=[],p=0,v=e;p<v.length;p++){var y=v[p];if(Gp(y)){h.push({type:ht.literal,value:y.value});continue}if(RE(y)){typeof u=="number"&&h.push({type:ht.literal,value:i.getNumberFormat(n).format(u)});continue}var b=y.value;if(!(l&&b in l))throw new iw(b,f);var m=l[b];if(kE(y)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?ht.literal:ht.object,value:m});continue}if(d0(y)){var w=typeof y.style=="string"?s.date[y.style]:Ec(y.style)?y.style.parsedOptions:void 0;h.push({type:ht.literal,value:i.getDateTimeFormat(n,w).format(m)});continue}if(h0(y)){var w=typeof y.style=="string"?s.time[y.style]:Ec(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:ht.literal,value:i.getDateTimeFormat(n,w).format(m)});continue}if(f0(y)){var w=typeof y.style=="string"?s.number[y.style]:y0(y.style)?y.style.parsedOptions:void 0;w&&w.scale&&(m=m*(w.scale||1)),h.push({type:ht.literal,value:i.getNumberFormat(n,w).format(m)});continue}if(g0(y)){var _=y.children,S=y.value,R=l[S];if(!T0(R))throw new nw(S,"function",f);var O=Ws(_,n,i,s,l,u),N=R(O.map(function(T){return T.value}));Array.isArray(N)||(N=[N]),h.push.apply(h,N.map(function(T){return{type:typeof T=="string"?ht.literal:ht.object,value:T}}))}if(p0(y)){var x=y.options[m]||y.options.other;if(!x)throw new Qp(y.value,m,Object.keys(y.options),f);h.push.apply(h,Ws(x.value,n,i,s,l));continue}if(m0(y)){var x=y.options["=".concat(m)];if(!x){if(!Intl.PluralRules)throw new Yr(`Intl.PluralRules is not available in this environment.
56
+ */var zp;function vE(){return zp||(zp=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var u="",f=0;f<arguments.length;f++){var h=arguments[f];h&&(u=l(u,s(h)))}return u}function s(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return i.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var h in u)n.call(u,h)&&u[h]&&(f=l(f,h));return f}function l(u,f){return f?u?u+" "+f:u+f:u}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(xu)),xu.exports}var _E=vE();const q=oa(_E);var _c=function(e,n){return _c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])},_c(e,n)};function jt(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");_c(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}var J=function(){return J=Object.assign||function(n){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},J.apply(this,arguments)};function sa(e,n){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(i[s[l]]=e[s[l]]);return i}function ar(e,n,i){if(i||arguments.length===2)for(var s=0,l=n.length,u;s<l;s++)(u||!(s in n))&&(u||(u=Array.prototype.slice.call(n,0,s)),u[s]=n[s]);return e.concat(u||Array.prototype.slice.call(n))}function or(e,n){var i=n&&n.cache?n.cache:CE,s=n&&n.serializer?n.serializer:bE,l=n&&n.strategy?n.strategy:SE;return l(e,{cache:i,serializer:s})}function EE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wE(e,n,i,s){var l=EE(s)?s:i(s),u=n.get(l);return typeof u>"u"&&(u=e.call(this,s),n.set(l,u)),u}function u0(e,n,i){var s=Array.prototype.slice.call(arguments,3),l=i(s),u=n.get(l);return typeof u>"u"&&(u=e.apply(this,s),n.set(l,u)),u}function c0(e,n,i,s,l){return i.bind(n,e,s,l)}function SE(e,n){var i=e.length===1?wE:u0;return c0(e,this,i,n.cache.create(),n.serializer)}function xE(e,n){return c0(e,this,u0,n.cache.create(),n.serializer)}var bE=function(){return JSON.stringify(arguments)},TE=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(n){return this.cache[n]},e.prototype.set=function(n,i){this.cache[n]=i},e}(),CE={create:function(){return new TE}},sr={variadic:xE},_e;(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"})(_e||(_e={}));var Me;(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"})(Me||(Me={}));var Qn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qn||(Qn={}));function Gp(e){return e.type===Me.literal}function kE(e){return e.type===Me.argument}function f0(e){return e.type===Me.number}function d0(e){return e.type===Me.date}function h0(e){return e.type===Me.time}function p0(e){return e.type===Me.select}function m0(e){return e.type===Me.plural}function RE(e){return e.type===Me.pound}function g0(e){return e.type===Me.tag}function y0(e){return!!(e&&typeof e=="object"&&e.type===Qn.number)}function Ec(e){return!!(e&&typeof e=="object"&&e.type===Qn.dateTime)}var v0=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,OE=/(?:[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 NE(e){var n={};return e.replace(OE,function(i){var s=i.length;switch(i[0]){case"G":n.era=s===4?"long":s===5?"narrow":"short";break;case"y":n.year=s===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":n.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][s-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][s-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][s-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][s-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":n.minute=["numeric","2-digit"][s-1];break;case"s":n.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=s<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""}),n}var AE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function IE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(AE).filter(function(m){return m.length>0}),i=[],s=0,l=n;s<l.length;s++){var u=l[s],f=u.split("/");if(f.length===0)throw new Error("Invalid number skeleton");for(var h=f[0],p=f.slice(1),v=0,y=p;v<y.length;v++){var b=y[v];if(b.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:p})}return i}function DE(e){return e.replace(/^(.*?)-/,"")}var $p=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_0=/^(@+)?(\+|#+)?[rs]?$/g,PE=/(\*)(0+)|(#+)(0+)|(0+)/g,E0=/^(0+)$/;function qp(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(_0,function(i,s,l){return typeof l!="string"?(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length):l==="+"?n.minimumSignificantDigits=s.length:s[0]==="#"?n.maximumSignificantDigits=s.length:(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length+(typeof l=="string"?l.length:0)),""}),n}function w0(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 ME(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var i=e.slice(0,2);if(i==="+!"?(n.signDisplay="always",e=e.slice(2)):i==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!E0.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Vp(e){var n={},i=w0(e);return i||n}function FE(e){for(var n={},i=0,s=e;i<s.length;i++){var l=s[i];switch(l.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=l.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=DE(l.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=J(J(J({},n),{notation:"scientific"}),l.options.reduce(function(p,v){return J(J({},p),Vp(v))},{}));continue;case"engineering":n=J(J(J({},n),{notation:"engineering"}),l.options.reduce(function(p,v){return J(J({},p),Vp(v))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(l.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(l.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");l.options[0].replace(PE,function(p,v,y,b,m,w){if(v)n.minimumIntegerDigits=y.length;else{if(b&&m)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(E0.test(l.stem)){n.minimumIntegerDigits=l.stem.length;continue}if($p.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace($p,function(p,v,y,b,m,w){return y==="*"?n.minimumFractionDigits=v.length:b&&b[0]==="#"?n.maximumFractionDigits=b.length:m&&w?(n.minimumFractionDigits=m.length,n.maximumFractionDigits=m.length+w.length):(n.minimumFractionDigits=v.length,n.maximumFractionDigits=v.length),""});var u=l.options[0];u==="w"?n=J(J({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=J(J({},n),qp(u)));continue}if(_0.test(l.stem)){n=J(J({},n),qp(l.stem));continue}var f=w0(l.stem);f&&(n=J(J({},n),f));var h=ME(l.stem);h&&(n=J(J({},n),h))}return n}var ws={"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 LE(e,n){for(var i="",s=0;s<e.length;s++){var l=e.charAt(s);if(l==="j"){for(var u=0;s+1<e.length&&e.charAt(s+1)===l;)u++,s++;var f=1+(u&1),h=u<2?1:3+(u>>1),p="a",v=BE(n);for((v=="H"||v=="k")&&(h=0);h-- >0;)i+=p;for(;f-- >0;)i=v+i}else l==="J"?i+="H":i+=l}return i}function BE(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,s;i!=="root"&&(s=e.maximize().region);var l=ws[s||""]||ws[i||""]||ws["".concat(i,"-001")]||ws["001"];return l[0]}var bu,jE=new RegExp("^".concat(v0.source,"*")),UE=new RegExp("".concat(v0.source,"*$"));function we(e,n){return{start:e,end:n}}var HE=!!String.prototype.startsWith&&"_a".startsWith("a",1),zE=!!String.fromCodePoint,GE=!!Object.fromEntries,$E=!!String.prototype.codePointAt,qE=!!String.prototype.trimStart,VE=!!String.prototype.trimEnd,WE=!!Number.isSafeInteger,KE=WE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wc=!0;try{var ZE=x0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wc=((bu=ZE.exec("a"))===null||bu===void 0?void 0:bu[0])==="a"}catch{wc=!1}var Wp=HE?function(n,i,s){return n.startsWith(i,s)}:function(n,i,s){return n.slice(s,s+i.length)===i},Sc=zE?String.fromCodePoint:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var s="",l=n.length,u=0,f;l>u;){if(f=n[u++],f>1114111)throw RangeError(f+" is not a valid code point");s+=f<65536?String.fromCharCode(f):String.fromCharCode(((f-=65536)>>10)+55296,f%1024+56320)}return s},Kp=GE?Object.fromEntries:function(n){for(var i={},s=0,l=n;s<l.length;s++){var u=l[s],f=u[0],h=u[1];i[f]=h}return i},S0=$E?function(n,i){return n.codePointAt(i)}:function(n,i){var s=n.length;if(!(i<0||i>=s)){var l=n.charCodeAt(i),u;return l<55296||l>56319||i+1===s||(u=n.charCodeAt(i+1))<56320||u>57343?l:(l-55296<<10)+(u-56320)+65536}},QE=qE?function(n){return n.trimStart()}:function(n){return n.replace(jE,"")},XE=VE?function(n){return n.trimEnd()}:function(n){return n.replace(UE,"")};function x0(e,n){return new RegExp(e,n)}var xc;if(wc){var Zp=x0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xc=function(n,i){var s;Zp.lastIndex=i;var l=Zp.exec(n);return(s=l[1])!==null&&s!==void 0?s:""}}else xc=function(n,i){for(var s=[];;){var l=S0(n,i);if(l===void 0||b0(l)||tw(l))break;s.push(l),i+=l>=65536?2:1}return Sc.apply(void 0,s)};var YE=function(){function e(n,i){i===void 0&&(i={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.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(n,i,s){for(var l=[];!this.isEOF();){var u=this.char();if(u===123){var f=this.parseArgument(n,s);if(f.err)return f;l.push(f.val)}else{if(u===125&&n>0)break;if(u===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),l.push({type:Me.pound,location:we(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&bc(this.peek()||0)){var f=this.parseTag(n,i);if(f.err)return f;l.push(f.val)}else{var f=this.parseLiteral(n,i);if(f.err)return f;l.push(f.val)}}}return{val:l,err:null}},e.prototype.parseTag=function(n,i){var s=this.clonePosition();this.bump();var l=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Me.literal,value:"<".concat(l,"/>"),location:we(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(n+1,i,!0);if(u.err)return u;var f=u.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!bc(this.char()))return this.error(_e.INVALID_TAG,we(h,this.clonePosition()));var p=this.clonePosition(),v=this.parseTagName();return l!==v?this.error(_e.UNMATCHED_CLOSING_TAG,we(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:f,location:we(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,we(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,we(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,we(s,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&ew(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,i){for(var s=this.clonePosition(),l="";;){var u=this.tryParseQuote(i);if(u){l+=u;continue}var f=this.tryParseUnquoted(n,i);if(f){l+=f;continue}var h=this.tryParseLeftAngleBracket();if(h){l+=h;continue}break}var p=we(s,this.clonePosition());return{val:{type:Me.literal,value:l,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!JE(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){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(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return Sc.apply(void 0,i)},e.prototype.tryParseUnquoted=function(n,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&n>0?null:(this.bump(),Sc(s))},e.prototype.parseArgument=function(n,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,we(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:we(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition())):this.parseArgumentOptions(n,i,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),i=this.offset(),s=xc(this.message,i),l=i+s.length;this.bumpTo(l);var u=this.clonePosition(),f=we(n,u);return{value:s,location:f}},e.prototype.parseArgumentOptions=function(n,i,s,l){var u,f=this.clonePosition(),h=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(h){case"":return this.error(_e.EXPECT_ARGUMENT_TYPE,we(f,p));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),b=this.parseSimpleArgStyleIfPossible();if(b.err)return b;var m=XE(b.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var w=we(y,this.clonePosition());v={style:m,styleLocation:w}}var _=this.tryParseArgumentClose(l);if(_.err)return _;var S=we(l,this.clonePosition());if(v&&Wp(v==null?void 0:v.style,"::",0)){var R=QE(v.style.slice(2));if(h==="number"){var b=this.parseNumberSkeletonFromString(R,v.styleLocation);return b.err?b:{val:{type:Me.number,value:s,location:S,style:b.val},err:null}}else{if(R.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,S);var O=R;this.locale&&(O=LE(R,this.locale));var m={type:Qn.dateTime,pattern:O,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?NE(O):{}},N=h==="date"?Me.date:Me.time;return{val:{type:N,value:s,location:S,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:S,style:(u=v==null?void 0:v.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,we(x,J({},x)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),T=0;if(h!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var b=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(b.err)return b;this.bumpSpace(),k=this.parseIdentifierIfPossible(),T=b.val}var F=this.tryParsePluralOrSelectOptions(n,h,i,k);if(F.err)return F;var _=this.tryParseArgumentClose(l);if(_.err)return _;var z=we(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Kp(F.val),location:z},err:null}:{val:{type:Me.plural,value:s,options:Kp(F.val),offset:T,pluralType:h==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,we(f,p))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var l=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(l,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,i){var s=[];try{s=IE(n)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,i)}return{val:{type:Qn.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?FE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,i,s,l){for(var u,f=!1,h=[],p=new Set,v=l.value,y=l.location;;){if(v.length===0){var b=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;y=we(b,this.clonePosition()),v=this.message.slice(b.offset,this.offset())}else break}if(p.has(v))return this.error(i==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);v==="other"&&(f=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(n+1,i,s);if(_.err)return _;var S=this.tryParseArgumentClose(w);if(S.err)return S;h.push([v,{value:_.val,location:we(w,this.clonePosition())}]),p.add(v),this.bumpSpace(),u=this.parseIdentifierIfPossible(),v=u.value,y=u.location}return h.length===0?this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!f?this.error(_e.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(n,i){var s=1,l=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var u=!1,f=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)u=!0,f=f*10+(h-48),this.bump();else break}var p=we(l,this.clonePosition());return u?(f*=s,KE(f)?{val:f,err:null}:this.error(i,p)):this.error(n,p)},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 n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var i=S0(this.message,n);if(i===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(n,i){return{val:null,err:{kind:n,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(Wp(this.message,n,this.offset())){for(var i=0;i<n.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var i=this.offset(),s=this.message.indexOf(n,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var i=this.offset();if(i===n)break;if(i>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&b0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(n>=65536?2:1));return s??null},e}();function bc(e){return e>=97&&e<=122||e>=65&&e<=90}function JE(e){return bc(e)||e===47}function ew(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 b0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function tw(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 Tc(e){e.forEach(function(n){if(delete n.location,p0(n)||m0(n))for(var i in n.options)delete n.options[i].location,Tc(n.options[i].value);else f0(n)&&y0(n.style)||(d0(n)||h0(n))&&Ec(n.style)?delete n.style.location:g0(n)&&Tc(n.children)})}function rw(e,n){n===void 0&&(n={}),n=J({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new YE(e,n).parse();if(i.err){var s=SyntaxError(_e[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return n!=null&&n.captureLocation||Tc(i.val),i.val}var cr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(cr||(cr={}));var Yr=function(e){jt(n,e);function n(i,s,l){var u=e.call(this,i)||this;return u.code=s,u.originalMessage=l,u}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),Qp=function(e){jt(n,e);function n(i,s,l,u){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(l).join('", "'),'"'),cr.INVALID_VALUE,u)||this}return n}(Yr),nw=function(e){jt(n,e);function n(i,s,l){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),cr.INVALID_VALUE,l)||this}return n}(Yr),iw=function(e){jt(n,e);function n(i,s){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),cr.MISSING_VALUE,s)||this}return n}(Yr),ht;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ht||(ht={}));function ow(e){return e.length<2?e:e.reduce(function(n,i){var s=n[n.length-1];return!s||s.type!==ht.literal||i.type!==ht.literal?n.push(i):s.value+=i.value,n},[])}function T0(e){return typeof e=="function"}function Ws(e,n,i,s,l,u,f){if(e.length===1&&Gp(e[0]))return[{type:ht.literal,value:e[0].value}];for(var h=[],p=0,v=e;p<v.length;p++){var y=v[p];if(Gp(y)){h.push({type:ht.literal,value:y.value});continue}if(RE(y)){typeof u=="number"&&h.push({type:ht.literal,value:i.getNumberFormat(n).format(u)});continue}var b=y.value;if(!(l&&b in l))throw new iw(b,f);var m=l[b];if(kE(y)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?ht.literal:ht.object,value:m});continue}if(d0(y)){var w=typeof y.style=="string"?s.date[y.style]:Ec(y.style)?y.style.parsedOptions:void 0;h.push({type:ht.literal,value:i.getDateTimeFormat(n,w).format(m)});continue}if(h0(y)){var w=typeof y.style=="string"?s.time[y.style]:Ec(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:ht.literal,value:i.getDateTimeFormat(n,w).format(m)});continue}if(f0(y)){var w=typeof y.style=="string"?s.number[y.style]:y0(y.style)?y.style.parsedOptions:void 0;w&&w.scale&&(m=m*(w.scale||1)),h.push({type:ht.literal,value:i.getNumberFormat(n,w).format(m)});continue}if(g0(y)){var _=y.children,S=y.value,R=l[S];if(!T0(R))throw new nw(S,"function",f);var O=Ws(_,n,i,s,l,u),N=R(O.map(function(T){return T.value}));Array.isArray(N)||(N=[N]),h.push.apply(h,N.map(function(T){return{type:typeof T=="string"?ht.literal:ht.object,value:T}}))}if(p0(y)){var x=y.options[m]||y.options.other;if(!x)throw new Qp(y.value,m,Object.keys(y.options),f);h.push.apply(h,Ws(x.value,n,i,s,l));continue}if(m0(y)){var x=y.options["=".concat(m)];if(!x){if(!Intl.PluralRules)throw new Yr(`Intl.PluralRules is not available in this environment.
57
57
  Try polyfilling it using "@formatjs/intl-pluralrules"
58
58
  `,cr.MISSING_INTL_API,f);var k=i.getPluralRules(n,{type:y.pluralType}).select(m-(y.offset||0));x=y.options[k]||y.options.other}if(!x)throw new Qp(y.value,m,Object.keys(y.options),f);h.push.apply(h,Ws(x.value,n,i,s,l,m-(y.offset||0)));continue}}return ow(h)}function sw(e,n){return n?J(J(J({},e||{}),n||{}),Object.keys(e).reduce(function(i,s){return i[s]=J(J({},e[s]),n[s]||{}),i},{})):e}function aw(e,n){return n?Object.keys(e).reduce(function(i,s){return i[s]=sw(e[s],n[s]),i},J({},e)):e}function Tu(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function lw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.NumberFormat).bind.apply(n,ar([void 0],i,!1)))},{cache:Tu(e.number),strategy:sr.variadic}),getDateTimeFormat:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.DateTimeFormat).bind.apply(n,ar([void 0],i,!1)))},{cache:Tu(e.dateTime),strategy:sr.variadic}),getPluralRules:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.PluralRules).bind.apply(n,ar([void 0],i,!1)))},{cache:Tu(e.pluralRules),strategy:sr.variadic})}}var C0=function(){function e(n,i,s,l){i===void 0&&(i=e.defaultLocale);var u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(p){var v=u.formatToParts(p);if(v.length===1)return v[0].value;var y=v.reduce(function(b,m){return!b.length||m.type!==ht.literal||typeof b[b.length-1]!="string"?b.push(m.value):b[b.length-1]+=m.value,b},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(p){return Ws(u.ast,u.locales,u.formatters,u.formats,p,void 0,u.message)},this.resolvedOptions=function(){var p;return{locale:((p=u.resolvedLocale)===null||p===void 0?void 0:p.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof n=="string"){if(this.message=n,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=l||{};f.formatters;var h=sa(f,["formatters"]);this.ast=e.__parse(n,J(J({},h),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=aw(e.formats,s),this.formatters=l&&l.formatters||lw(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(n){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(n);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=rw,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}(),wn;(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"})(wn||(wn={}));var ao=function(e){jt(n,e);function n(i,s,l){var u=this,f=l?l instanceof Error?l:new Error(String(l)):void 0;return u=e.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
59
59
  `).concat(f?`
@@ -74,37 +74,37 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
74
74
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
75
75
  `,cr.MISSING_INTL_API));try{return Nw(e,n,l).format(i,s)}catch(f){e.onError(new Ut("Error formatting relative time.",e.locale,f))}return String(i)}var Iw=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function N0(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var f=i.format,h=f&&Xc(l,"number",f,u)||{},p=ei(i,Iw,h);return n(s,p)}function Dw(e,n,i,s){s===void 0&&(s={});try{return N0(e,n,s).format(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return String(i)}function Pw(e,n,i,s){s===void 0&&(s={});try{return N0(e,n,s).formatToParts(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return[]}function Mw(e){var n=e?e[Object.keys(e)[0]]:void 0;return typeof n=="string"}function Fw(e){e.onWarn&&e.defaultRichTextElements&&Mw(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
76
76
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
77
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Lw(e,n){var i=mw(n),s=J(J({},k0),e),l=s.locale,u=s.defaultLocale,f=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&f?f(new Xp('Missing locale data for locale: "'.concat(l,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(l).length&&f&&f(new Xp('Missing locale data for locale: "'.concat(l,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(f&&f(new cw('"locale" was not configured, using "'.concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),Fw(s),J(J({},s),{formatters:i,formatNumber:Dw.bind(null,s,i.getNumberFormat),formatNumberToParts:Pw.bind(null,s,i.getNumberFormat),formatRelativeTime:Aw.bind(null,s,i.getRelativeTimeFormat),formatDate:yw.bind(null,s,i.getDateTimeFormat),formatDateToParts:Ew.bind(null,s,i.getDateTimeFormat),formatTime:vw.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:_w.bind(null,s,i.getDateTimeFormat),formatTimeToParts:ww.bind(null,s,i.getDateTimeFormat),formatPlural:Rw.bind(null,s,i.getPluralRules),formatMessage:Cc.bind(null,s,i),$t:Cc.bind(null,s,i),formatList:Cw.bind(null,s,i.getListFormat),formatListToParts:O0.bind(null,s,i.getListFormat),formatDisplayName:xw.bind(null,s,i.getDisplayNames)})}function Bw(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}function A0(e){Bw(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var I0=J(J({},k0),{textComponent:B.Fragment});function jw(e){return function(n){return e(B.Children.toArray(n))}}function Uw(e,n){if(e===n)return!0;if(!e||!n)return!1;var i=Object.keys(e),s=Object.keys(n),l=i.length;if(s.length!==l)return!1;for(var u=0;u<l;u++){var f=i[u];if(e[f]!==n[f]||!Object.prototype.hasOwnProperty.call(n,f))return!1}return!0}var ku={exports:{}},Ce={};/** @license React v16.13.1
77
+ For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Lw(e,n){var i=mw(n),s=J(J({},k0),e),l=s.locale,u=s.defaultLocale,f=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&f?f(new Xp('Missing locale data for locale: "'.concat(l,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(l).length&&f&&f(new Xp('Missing locale data for locale: "'.concat(l,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(f&&f(new cw('"locale" was not configured, using "'.concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),Fw(s),J(J({},s),{formatters:i,formatNumber:Dw.bind(null,s,i.getNumberFormat),formatNumberToParts:Pw.bind(null,s,i.getNumberFormat),formatRelativeTime:Aw.bind(null,s,i.getRelativeTimeFormat),formatDate:yw.bind(null,s,i.getDateTimeFormat),formatDateToParts:Ew.bind(null,s,i.getDateTimeFormat),formatTime:vw.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:_w.bind(null,s,i.getDateTimeFormat),formatTimeToParts:ww.bind(null,s,i.getDateTimeFormat),formatPlural:Rw.bind(null,s,i.getPluralRules),formatMessage:Cc.bind(null,s,i),$t:Cc.bind(null,s,i),formatList:Cw.bind(null,s,i.getListFormat),formatListToParts:O0.bind(null,s,i.getListFormat),formatDisplayName:xw.bind(null,s,i.getDisplayNames)})}function Bw(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}function A0(e){Bw(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var I0=J(J({},k0),{textComponent:B.Fragment}),jw={key:42},Uw=function(e){return B.isValidElement(e)?B.createElement(B.Fragment,jw,e):e},Hw=function(e){var n;return(n=B.Children.map(e,Uw))!==null&&n!==void 0?n:[]};function zw(e){return function(n){return e(B.Children.toArray(n))}}function Gw(e,n){if(e===n)return!0;if(!e||!n)return!1;var i=Object.keys(e),s=Object.keys(n),l=i.length;if(s.length!==l)return!1;for(var u=0;u<l;u++){var f=i[u];if(e[f]!==n[f]||!Object.prototype.hasOwnProperty.call(n,f))return!1}return!0}var ku={exports:{}},Ce={};/** @license React v16.13.1
78
78
  * react-is.production.min.js
79
79
  *
80
80
  * Copyright (c) Facebook, Inc. and its affiliates.
81
81
  *
82
82
  * This source code is licensed under the MIT license found in the
83
83
  * LICENSE file in the root directory of this source tree.
84
- */var tm;function Hw(){if(tm)return Ce;tm=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var F=T.$$typeof;switch(F){case n:switch(T=T.type,T){case p:case v:case s:case u:case l:case b:return T;default:switch(T=T&&T.$$typeof,T){case h:case y:case _:case w:case f:return T;default:return F}}case i:return F}}}function k(T){return x(T)===v}return Ce.AsyncMode=p,Ce.ConcurrentMode=v,Ce.ContextConsumer=h,Ce.ContextProvider=f,Ce.Element=n,Ce.ForwardRef=y,Ce.Fragment=s,Ce.Lazy=_,Ce.Memo=w,Ce.Portal=i,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=b,Ce.isAsyncMode=function(T){return k(T)||x(T)===p},Ce.isConcurrentMode=k,Ce.isContextConsumer=function(T){return x(T)===h},Ce.isContextProvider=function(T){return x(T)===f},Ce.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===n},Ce.isForwardRef=function(T){return x(T)===y},Ce.isFragment=function(T){return x(T)===s},Ce.isLazy=function(T){return x(T)===_},Ce.isMemo=function(T){return x(T)===w},Ce.isPortal=function(T){return x(T)===i},Ce.isProfiler=function(T){return x(T)===u},Ce.isStrictMode=function(T){return x(T)===l},Ce.isSuspense=function(T){return x(T)===b},Ce.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===s||T===v||T===u||T===l||T===b||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===_||T.$$typeof===w||T.$$typeof===f||T.$$typeof===h||T.$$typeof===y||T.$$typeof===R||T.$$typeof===O||T.$$typeof===N||T.$$typeof===S)},Ce.typeOf=x,Ce}var rm;function zw(){return rm||(rm=1,ku.exports=Hw()),ku.exports}var Ru,nm;function Gw(){if(nm)return Ru;nm=1;var e=zw(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=s,u[e.Memo]=l;function f(_){return e.isMemo(_)?l:u[_.$$typeof]||n}var h=Object.defineProperty,p=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,m=Object.prototype;function w(_,S,R){if(typeof S!="string"){if(m){var O=b(S);O&&O!==m&&w(_,O,R)}var N=p(S);v&&(N=N.concat(v(S)));for(var x=f(_),k=f(S),T=0;T<N.length;++T){var F=N[T];if(!i[F]&&!(R&&R[F])&&!(k&&k[F])&&!(x&&x[F])){var z=y(S,F);try{h(_,F,z)}catch{}}}}return _}return Ru=w,Ru}Gw();var Yc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Yc.Consumer;var $w=Yc.Provider,qw=$w,Vw=Yc;function aa(){var e=B.useContext(Vw);return A0(e),e}var kc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(kc||(kc={}));var Rc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Rc||(Rc={}));function D0(e){var n=function(i){var s=aa(),l=i.value,u=i.children,f=sa(i,["value","children"]),h=typeof l=="string"?new Date(l||0):l,p=e==="formatDate"?s.formatDateToParts(h,f):s.formatTimeToParts(h,f);return u(p)};return n.displayName=Rc[e],n}function uo(e){var n=function(i){var s=aa(),l=i.value,u=i.children,f=sa(i,["value","children"]),h=s[e](l,f);if(typeof u=="function")return u(h);var p=s.textComponent||B.Fragment;return B.createElement(p,null,h)};return n.displayName=kc[e],n}function P0(e){return e&&Object.keys(e).reduce(function(n,i){var s=e[i];return n[i]=T0(s)?jw(s):s,n},{})}var im=function(e,n,i,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var f=P0(s),h=Cc.apply(void 0,ar([e,n,i,f],l,!1));return Array.isArray(h)?B.Children.toArray(h):h},om=function(e,n){var i=e.defaultRichTextElements,s=sa(e,["defaultRichTextElements"]),l=P0(i),u=Lw(J(J(J({},I0),s),{defaultRichTextElements:l}),n),f={locale:u.locale,timeZone:u.timeZone,fallbackOnEmptyString:u.fallbackOnEmptyString,formats:u.formats,defaultLocale:u.defaultLocale,defaultFormats:u.defaultFormats,messages:u.messages,onError:u.onError,defaultRichTextElements:l};return J(J({},u),{formatMessage:im.bind(null,f,u.formatters),$t:im.bind(null,f,u.formatters)})};function Ou(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 Ww=function(e){jt(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.cache=R0(),i.state={cache:i.cache,intl:om(Ou(i.props),i.cache),prevConfig:Ou(i.props)},i}return n.getDerivedStateFromProps=function(i,s){var l=s.prevConfig,u=s.cache,f=Ou(i);return Uw(l,f)?null:{intl:om(f,u),prevConfig:f}},n.prototype.render=function(){return A0(this.state.intl),B.createElement(qw,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=I0,n}(B.PureComponent);uo("formatDate");uo("formatTime");uo("formatNumber");uo("formatList");uo("formatDisplayName");D0("formatDate");D0("formatTime");const Zw="_app_1rj0t_1",Kw={app:Zw},ti=pE,Qr=yE,M0="%[a-f0-9]{2}",sm=new RegExp("("+M0+")|([^%]+?)","gi"),am=new RegExp("("+M0+")+","gi");function Oc(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;const i=e.slice(0,n),s=e.slice(n);return Array.prototype.concat.call([],Oc(i),Oc(s))}function Qw(e){try{return decodeURIComponent(e)}catch{let n=e.match(sm)||[];for(let i=1;i<n.length;i++)e=Oc(n,i).join(""),n=e.match(sm)||[];return e}}function Xw(e){const n={"%FE%FF":"��","%FF%FE":"��"};let i=am.exec(e);for(;i;){try{n[i[0]]=decodeURIComponent(i[0])}catch{const l=Qw(i[0]);l!==i[0]&&(n[i[0]]=l)}i=am.exec(e)}n["%C2"]="�";const s=Object.keys(n);for(const l of s)e=e.replace(new RegExp(l,"g"),n[l]);return e}function Yw(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Xw(e)}}function Jw(e,n){const i={};if(Array.isArray(n))for(const s of n){const l=Object.getOwnPropertyDescriptor(e,s);l!=null&&l.enumerable&&Object.defineProperty(i,s,l)}else for(const s of Reflect.ownKeys(e)){const l=Object.getOwnPropertyDescriptor(e,s);if(l.enumerable){const u=e[s];n(s,u,e)&&Object.defineProperty(i,s,l)}}return i}function F0(e,n){if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||n==="")return[];const i=e.indexOf(n);return i===-1?[]:[e.slice(0,i),e.slice(i+n.length)]}const eS=e=>e==null,tS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Nc=Symbol("encodeFragmentIdentifier");function rS(e){switch(e.arrayFormat){case"index":return n=>(i,s)=>{const l=i.length;return s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),"[",l,"]"].join("")]:[...i,[Ve(n,e),"[",Ve(l,e),"]=",Ve(s,e)].join("")]};case"bracket":return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),"[]"].join("")]:[...i,[Ve(n,e),"[]=",Ve(s,e)].join("")];case"colon-list-separator":return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),":list="].join("")]:[...i,[Ve(n,e),":list=",Ve(s,e)].join("")];case"comma":case"separator":case"bracket-separator":{const n=e.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?s:(l=l===null?"":l,s.length===0?[[Ve(i,e),n,Ve(l,e)].join("")]:[[s,Ve(l,e)].join(e.arrayFormatSeparator)])}default:return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,Ve(n,e)]:[...i,[Ve(n,e),"=",Ve(s,e)].join("")]}}function nS(e){let n;switch(e.arrayFormat){case"index":return(i,s,l)=>{if(n=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!n){l[i]=s;return}l[i]===void 0&&(l[i]={}),l[i][n[1]]=s};case"bracket":return(i,s,l)=>{if(n=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!n){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"colon-list-separator":return(i,s,l)=>{if(n=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!n){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"comma":case"separator":return(i,s,l)=>{const u=typeof s=="string"&&s.includes(e.arrayFormatSeparator),f=typeof s=="string"&&!u&&xr(s,e).includes(e.arrayFormatSeparator);s=f?xr(s,e):s;const h=u||f?s.split(e.arrayFormatSeparator).map(p=>xr(p,e)):s===null?s:xr(s,e);l[i]=h};case"bracket-separator":return(i,s,l)=>{const u=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!u){l[i]=s&&xr(s,e);return}const f=s===null?[]:xr(s,e).split(e.arrayFormatSeparator);if(l[i]===void 0){l[i]=f;return}l[i]=[...l[i],...f]};default:return(i,s,l)=>{if(l[i]===void 0){l[i]=s;return}l[i]=[...[l[i]].flat(),s]}}}function L0(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ve(e,n){return n.encode?n.strict?tS(e):encodeURIComponent(e):e}function xr(e,n){return n.decode?Yw(e):e}function B0(e){return Array.isArray(e)?e.sort():typeof e=="object"?B0(Object.keys(e)).sort((n,i)=>Number(n)-Number(i)).map(n=>e[n]):e}function j0(e){const n=e.indexOf("#");return n!==-1&&(e=e.slice(0,n)),e}function iS(e){let n="";const i=e.indexOf("#");return i!==-1&&(n=e.slice(i)),n}function lm(e,n,i){return i==="string"&&typeof e=="string"?e:typeof i=="function"&&typeof e=="string"?i(e):n.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":i==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||n.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function Jc(e){e=j0(e);const n=e.indexOf("?");return n===-1?"":e.slice(n+1)}function ef(e,n){n={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...n},L0(n.arrayFormatSeparator);const i=nS(n),s=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return s;for(const l of e.split("&")){if(l==="")continue;const u=n.decode?l.replaceAll("+"," "):l;let[f,h]=F0(u,"=");f===void 0&&(f=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?h:xr(h,n),i(xr(f,n),h,s)}for(const[l,u]of Object.entries(s))if(typeof u=="object"&&u!==null&&n.types[l]!=="string")for(const[f,h]of Object.entries(u)){const p=n.types[l]?n.types[l].replace("[]",""):void 0;u[f]=lm(h,n,p)}else typeof u=="object"&&u!==null&&n.types[l]==="string"?s[l]=Object.values(u).join(n.arrayFormatSeparator):s[l]=lm(u,n,n.types[l]);return n.sort===!1?s:(n.sort===!0?Object.keys(s).sort():Object.keys(s).sort(n.sort)).reduce((l,u)=>{const f=s[u];return l[u]=f&&typeof f=="object"&&!Array.isArray(f)?B0(f):f,l},Object.create(null))}function U0(e,n){if(!e)return"";n={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...n},L0(n.arrayFormatSeparator);const i=f=>n.skipNull&&eS(e[f])||n.skipEmptyString&&e[f]==="",s=rS(n),l={};for(const[f,h]of Object.entries(e))i(f)||(l[f]=h);const u=Object.keys(l);return n.sort!==!1&&u.sort(n.sort),u.map(f=>{const h=e[f];return h===void 0?"":h===null?Ve(f,n):Array.isArray(h)?h.length===0&&n.arrayFormat==="bracket-separator"?Ve(f,n)+"[]":h.reduce(s(f),[]).join("&"):Ve(f,n)+"="+Ve(h,n)}).filter(f=>f.length>0).join("&")}function H0(e,n){var l;n={decode:!0,...n};let[i,s]=F0(e,"#");return i===void 0&&(i=e),{url:((l=i==null?void 0:i.split("?"))==null?void 0:l[0])??"",query:ef(Jc(e),n),...n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:xr(s,n)}:{}}}function z0(e,n){n={encode:!0,strict:!0,[Nc]:!0,...n};const i=j0(e.url).split("?")[0]||"",s=Jc(e.url),l={...ef(s,{sort:!1}),...e.query};let u=U0(l,n);u&&(u=`?${u}`);let f=iS(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(i);h.hash=e.fragmentIdentifier,f=n[Nc]?h.hash:`#${e.fragmentIdentifier}`}return`${i}${u}${f}`}function G0(e,n,i){i={parseFragmentIdentifier:!0,[Nc]:!1,...i};const{url:s,query:l,fragmentIdentifier:u}=H0(e,i);return z0({url:s,query:Jw(l,n),fragmentIdentifier:u},i)}function oS(e,n,i){const s=Array.isArray(n)?l=>!n.includes(l):(l,u)=>!n(l,u);return G0(e,s,i)}const la=Object.freeze(Object.defineProperty({__proto__:null,exclude:oS,extract:Jc,parse:ef,parseUrl:H0,pick:G0,stringify:U0,stringifyUrl:z0},Symbol.toStringTag,{value:"Module"}));var Zt={},Ct={},le={},um;function At(){return um||(um=1,Object.defineProperty(le,"__esModule",{value:!0}),le.GUEST_LOCALE_CHANGED=le.DRAWER_CLOSE=le.DRAWER_OPEN=le.CONVERSATION_RATING_FROM_GUEST=le.TRANSCRIPT_ITEM_GUEST_REACTION=le.TRANSCRIPT_MAIL_REQUEST=le.INBOX_CONNECT_REQUEST=le.RESTART_CHAT_REQUEST=le.EVENT_TO_GUEST=le.NLU_REQUEST_EVENT=le.EXPERTS_DISCONNECTED=le.EXPERTS_DISCONNECT_REQUEST=le.EXPERTS_CONNECTED=le.EXPERTS_CONNECT_REQUEST=le.MESSAGE_TO_GUEST=le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=le.MESSAGE_FROM_GUEST=le.GUEST_FEEDBACK_RESPONSE=le.GUEST_DISCONNECTED=le.GUEST_CONNECTED=le.TYPING_OFF=le.TYPING_ON=void 0,le.TYPING_ON="core.typing.on",le.TYPING_OFF="core.typing.off",le.GUEST_CONNECTED="core.guest.connected",le.GUEST_DISCONNECTED="core.guest.disconnected",le.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",le.MESSAGE_FROM_GUEST="core.message.from.guest",le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",le.MESSAGE_TO_GUEST="core.message.to.guest",le.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",le.EXPERTS_CONNECTED="core.experts.connected",le.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",le.EXPERTS_DISCONNECTED="core.experts.disconnected",le.NLU_REQUEST_EVENT="core.nlu.request.event",le.EVENT_TO_GUEST="core.event.to.guest",le.RESTART_CHAT_REQUEST="core.chat.restart.request",le.INBOX_CONNECT_REQUEST="core.inbox.connect.request",le.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",le.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",le.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",le.DRAWER_OPEN="core.drawer.open",le.DRAWER_CLOSE="core.drawer.close",le.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),le}var Nu={},cm;function sS(){return cm||(cm=1,Object.defineProperty(Nu,"__esModule",{value:!0})),Nu}var xs={},fm;function aS(){if(fm)return xs;fm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=At(),n=()=>({type:e.DRAWER_CLOSE});return xs.default=n,xs}var bs={},dm;function lS(){if(dm)return bs;dm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return bs.default=n,bs}var Ts={},hm;function uS(){if(hm)return Ts;hm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_CONNECTED,payload:{sessionId:i}});return Ts.default=n,Ts}var Cs={},pm;function cS(){if(pm)return Cs;pm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:i}});return Cs.default=n,Cs}var ks={},mm;function fS(){if(mm)return ks;mm=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return ks.default=n,ks}var Rs={},gm;function dS(){if(gm)return Rs;gm=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=At(),n=i=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Rs.default=n,Rs}var Os={},je={},ym;function tf(){if(ym)return je;ym=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getStringRepresentationFromMessage=je.MessageTypeEnum=je.AudioMessage=je.FileMessage=je.ImageMessage=je.VideoMessage=je.MarkdownMessage=je.DetailMessage=je.TextMessage=je.Message=void 0;class e{constructor(b,m){xe(this,"type");xe(this,"sender");xe(this,"quickReplies");this.type=b,this.sender=m,this.quickReplies=[]}addQuickReply(b,m){this.quickReplies.push({label:b,payload:m})}}je.Message=e;class n extends e{constructor(m,w){super(p.TEXT,w);xe(this,"text");this.text=m}}je.TextMessage=n;class i extends e{constructor(m,w){super(p.DETAIL,w);xe(this,"title");xe(this,"subtitle");xe(this,"text");xe(this,"imageUrl");xe(this,"itemUrl");xe(this,"buttons");this.title=m,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(m){this.imageUrl=m}setItemUrl(m){this.itemUrl=m}setSubtitle(m){this.subtitle=m}setText(m){this.text=m}addButton(m){this.buttons.push(m)}}je.DetailMessage=i;class s extends e{constructor(m,w,_){super(p.MARKDOWN,_);xe(this,"markdown");xe(this,"excerpt");xe(this,"className");this.markdown=m,this.excerpt=w,this.className=""}setClassName(m){this.className=m}}je.MarkdownMessage=s;class l extends e{constructor(m,w){super(p.VIDEO,w);xe(this,"url");this.url=m}}je.VideoMessage=l;class u extends e{constructor(m,w){super(p.IMAGE,w);xe(this,"url");this.url=m}}je.ImageMessage=u;class f extends e{constructor(m,w){super(p.FILE,w);xe(this,"url");this.url=m}}je.FileMessage=f;class h extends e{constructor(m,w){super(p.AUDIO,w);xe(this,"url");this.url=m}}je.AudioMessage=h;var p;(function(y){y.TEXT="TEXT",y.DETAIL="DETAIL",y.MARKDOWN="MARKDOWN",y.VIDEO="VIDEO",y.IMAGE="IMAGE",y.FILE="FILE",y.AUDIO="AUDIO"})(p||(je.MessageTypeEnum=p={}));const v=y=>{switch(y.type){case p.TEXT:return y.text;case p.DETAIL:{const b=y;return`${b.title} // ${b.subtitle}`}case p.MARKDOWN:return y.excerpt;case p.VIDEO:return`Video Url: ${y.url}`;case p.IMAGE:return`Image Url: ${y.url}`;case p.FILE:return`File Url: ${y.url}`;case p.AUDIO:return`Audio Url: ${y.url}`;default:throw new Error("Unknown message type "+y.type)}};return je.getStringRepresentationFromMessage=v,je}var kt={},vm;function rf(){if(vm)return kt;vm=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.UserType=kt.PersonUser=kt.GuestUser=kt.BotUser=kt.User=void 0;class e{constructor(f,h,p,v){xe(this,"type");xe(this,"id");xe(this,"name");xe(this,"avatar");this.type=f,this.id=h,this.name=p,this.avatar=v}}kt.User=e;class n extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=n;class i extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}kt.GuestUser=i;class s extends e{constructor(f,h,p){super(l.PERSON,f,h,p)}}kt.PersonUser=s;var l;return function(u){u.GUEST="GUEST",u.BOT="BOT",u.PERSON="PERSON"}(l||(kt.UserType=l={})),kt}var _m;function hS(){if(_m)return Os;_m=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=tf(),n=rf(),i=At(),s=l=>{const u=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:u}};return Os.default=s,Os}var Ns={},Em;function pS(){if(Em)return Ns;Em=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=tf(),n=rf(),i=At(),s=(l,u={})=>{const f=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:f,payload:u}};return Ns.default=s,Ns}var As={},wm;function mS(){if(wm)return As;wm=1,Object.defineProperty(As,"__esModule",{value:!0});const e=At(),n=i=>({type:e.NLU_REQUEST_EVENT,event:i});return As.default=n,As}var Is={},Sm;function gS(){if(Sm)return Is;Sm=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=At(),n=()=>({type:e.RESTART_CHAT_REQUEST});return Is.default=n,Is}var Ds={},xm;function yS(){if(xm)return Ds;xm=1,Object.defineProperty(Ds,"__esModule",{value:!0});const e=At(),n=i=>({type:e.MESSAGE_TO_GUEST,message:i});return Ds.default=n,Ds}var Ps={},bm;function vS(){if(bm)return Ps;bm=1,Object.defineProperty(Ps,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return Ps.default=n,Ps}var Tm;function Cm(){return Tm||(Tm=1,function(e){var n=Ct&&Ct.__createBinding||(Object.create?function(N,x,k,T){T===void 0&&(T=k);var F=Object.getOwnPropertyDescriptor(x,k);(!F||("get"in F?!x.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return x[k]}}),Object.defineProperty(N,T,F)}:function(N,x,k,T){T===void 0&&(T=k),N[T]=x[k]}),i=Ct&&Ct.__setModuleDefault||(Object.create?function(N,x){Object.defineProperty(N,"default",{enumerable:!0,value:x})}:function(N,x){N.default=x}),s=Ct&&Ct.__importStar||function(){var N=function(x){return N=Object.getOwnPropertyNames||function(k){var T=[];for(var F in k)Object.prototype.hasOwnProperty.call(k,F)&&(T[T.length]=F);return T},N(x)};return function(x){if(x&&x.__esModule)return x;var k={};if(x!=null)for(var T=N(x),F=0;F<T.length;F++)T[F]!=="default"&&n(k,x,T[F]);return i(k,x),k}}(),l=Ct&&Ct.__exportStar||function(N,x){for(var k in N)k!=="default"&&!Object.prototype.hasOwnProperty.call(x,k)&&n(x,N,k)},u=Ct&&Ct.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};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=s(At()),l(sS(),e);const f=u(aS());e.closeDrawer=f.default;const h=u(lS());e.feedbackFromGuestResponse=h.default;const p=u(uS());e.guestConnected=p.default;const v=u(cS());e.guestDisconnected=v.default;const y=u(fS());e.guestLocaleChanged=y.default;const b=u(dS());e.openDrawer=b.default;const m=u(hS());e.receiveTextMessageFromGuest=m.default;const w=u(pS());e.receiveTextMessageWithoutAnalysisFromGuest=w.default;const _=u(mS());e.requestNLUEvent=_.default;const S=u(gS());e.restartChatRequest=S.default;const R=u(yS());e.sendMessageToGuest=R.default;const O=u(vS());e.transcriptItemGuestReaction=O.default}(Ct)),Ct}var Rt={},Au={},km;function _S(){return km||(km=1,Object.defineProperty(Au,"__esModule",{value:!0})),Au}var $i={},Rm;function ES(){if(Rm)return $i;Rm=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.NullableKnowledgeBaseAdapter=void 0;class e{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,l){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}}return $i.NullableKnowledgeBaseAdapter=e,$i}var Om;function wS(){if(Om)return Rt;Om=1;var e=Rt&&Rt.__createBinding||(Object.create?function(l,u,f,h){h===void 0&&(h=f);var p=Object.getOwnPropertyDescriptor(u,f);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,h,p)}:function(l,u,f,h){h===void 0&&(h=f),l[h]=u[f]}),n=Rt&&Rt.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),i=Rt&&Rt.__importStar||function(){var l=function(u){return l=Object.getOwnPropertyNames||function(f){var h=[];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(h[h.length]=p);return h},l(u)};return function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var h=l(u),p=0;p<h.length;p++)h[p]!=="default"&&e(f,u,h[p]);return n(f,u),f}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=i(_S());const s=ES();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pn={},Iu={},Nm;function SS(){return Nm||(Nm=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var Kt={},Am;function xS(){if(Am)return Kt;Am=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.ButtonTypeEnum=Kt.PostbackButton=Kt.UrlButton=Kt.Button=void 0;class e{constructor(u,f){xe(this,"title");xe(this,"type");this.title=u,this.type=f}}Kt.Button=e;class n extends e{constructor(f,h){super(f,s.WEB_URL);xe(this,"url");this.url=h}}Kt.UrlButton=n;class i extends e{constructor(f,h){super(f,s.POSTBACK);xe(this,"payload");this.payload=h}}Kt.PostbackButton=i;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Kt.ButtonTypeEnum=s={})),Kt}var Du={},Im;function bS(){return Im||(Im=1,Object.defineProperty(Du,"__esModule",{value:!0})),Du}var qi={},Dm;function TS(){if(Dm)return qi;Dm=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.SatisfactionEnum=void 0;var e;return function(n){n.GOOD="GOOD",n.BAD="BAD"}(e||(qi.SatisfactionEnum=e={})),qi}var Pm;function Mm(){return Pm||(Pm=1,function(e){var n=pn&&pn.__createBinding||(Object.create?function(s,l,u,f){f===void 0&&(f=u);var h=Object.getOwnPropertyDescriptor(l,u);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,f,h)}:function(s,l,u,f){f===void 0&&(f=u),s[f]=l[u]}),i=pn&&pn.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&n(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),i(SS(),e),i(xS(),e),i(bS(),e),i(TS(),e),i(tf(),e),i(rf(),e)}(pn)),pn}var Fm;function CS(){return Fm||(Fm=1,function(e){var n=Zt&&Zt.__createBinding||(Object.create?function(u,f,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(f,h);(!v||("get"in v?!f.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(u,p,v)}:function(u,f,h,p){p===void 0&&(p=h),u[p]=f[h]}),i=Zt&&Zt.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),s=Zt&&Zt.__exportStar||function(u,f){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(f,h)&&n(f,u,h)},l=Zt&&Zt.__importStar||function(){var u=function(f){return u=Object.getOwnPropertyNames||function(h){var p=[];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(p[p.length]=v);return p},u(f)};return function(f){if(f&&f.__esModule)return f;var h={};if(f!=null)for(var p=u(f),v=0;v<p.length;v++)p[v]!=="default"&&n(h,f,p[v]);return i(h,f),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(Cm(),e),e.Actions=l(Cm()),e.CMS=l(wS()),s(Mm(),e),e.Model=l(Mm())}(Zt)),Zt}var ge=CS();const $0=e=>n=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&n(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),n(e.payload)),q0=e=>(n,i)=>{const{quickReplies:s}=i().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return n(l?$0({...l,label:e}):ge.receiveTextMessageFromGuest(e))},nf="MESSAGE_TO_PARENT_PAGE",of="RESTORE_PREVIOUS_CHAT_MESSAGES",sf="AUDIO_MESSAGE_FROM_USER",af="ENABLE_SPEECH_SUPPORT",lf="ENABLE_TRANSCRIPT_EXPORT",kS="EXPORT_TRANSCRIPT",uf="RECEIVE_SPEECH_TRANSCRIPTION",cf="SHOW_GENERAL_CONDITIONS",ff="ENABLE_CONVERSATION_RATING",df="SET_COMMANDS",V0="LOAD_SOURCE_INFOS_RESPONSE",W0="LOAD_SOURCE_INFOS_ERROR",hf="LOAD_SOURCE_INFOS_REQUEST",pf="CLOSE_SOURCE_INFOS",RS="webclient.get.started",Z0="webclient.window.expand",K0="webclient.window.close",Q0="webclient.transcript.pdf.download",OS=[nf,of,sf,af,lf,kS,uf,cf,ff,df,hf,pf],NS=e=>({type:sf,buffer:e}),AS=()=>({type:af}),IS=e=>({type:uf,transcription:e}),DS=e=>({type:lf,methods:e}),PS=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),MS=()=>({type:cf}),FS=e=>({type:df,payload:{commands:e}}),LS=()=>({type:Q0}),BS=({rating:e})=>({type:ff,payload:{rating:e}}),jS=(e,n)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:n}}),X0=e=>ge.requestNLUEvent(e),US=e=>({type:of,messages:e}),HS=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Y0(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},zS=e=>Y0(e),Y0=e=>({type:nf,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function Ms(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)e[s]=i[s]}return e}var GS={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 Ac(e,n){function i(l,u,f){if(!(typeof document>"u")){f=Ms({},n,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var p in f)f[p]&&(h+="; "+p,f[p]!==!0&&(h+="="+f[p].split(";")[0]));return document.cookie=l+"="+e.write(u,l)+h}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var u=document.cookie?document.cookie.split("; "):[],f={},h=0;h<u.length;h++){var p=u[h].split("="),v=p.slice(1).join("=");try{var y=decodeURIComponent(p[0]);if(f[y]=e.read(v,y),l===y)break}catch{}}return l?f[l]:f}}return Object.create({set:i,get:s,remove:function(l,u){i(l,"",Ms({},u,{expires:-1}))},withAttributes:function(l){return Ac(this.converter,Ms({},this.attributes,l))},withConverter:function(l){return Ac(Ms({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var Pu=Ac(GS,{path:"/"});function it(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 $S=typeof Symbol=="function"&&Symbol.observable||"@@observable",Lm=$S,Mu=()=>Math.random().toString(36).substring(7).split("").join("."),qS={INIT:`@@redux/INIT${Mu()}`,REPLACE:`@@redux/REPLACE${Mu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Mu()}`},ea=qS;function mf(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function J0(e,n,i){if(typeof e!="function")throw new Error(it(2));if(typeof n=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(it(0));if(typeof n=="function"&&typeof i>"u"&&(i=n,n=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(it(1));return i(J0)(e,n)}let s=e,l=n,u=new Map,f=u,h=0,p=!1;function v(){f===u&&(f=new Map,u.forEach((R,O)=>{f.set(O,R)}))}function y(){if(p)throw new Error(it(3));return l}function b(R){if(typeof R!="function")throw new Error(it(4));if(p)throw new Error(it(5));let O=!0;v();const N=h++;return f.set(N,R),function(){if(O){if(p)throw new Error(it(6));O=!1,v(),f.delete(N),u=null}}}function m(R){if(!mf(R))throw new Error(it(7));if(typeof R.type>"u")throw new Error(it(8));if(typeof R.type!="string")throw new Error(it(17));if(p)throw new Error(it(9));try{p=!0,l=s(l,R)}finally{p=!1}return(u=f).forEach(N=>{N()}),R}function w(R){if(typeof R!="function")throw new Error(it(10));s=R,m({type:ea.REPLACE})}function _(){const R=b;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(it(11));function N(){const k=O;k.next&&k.next(y())}return N(),{unsubscribe:R(N)}},[Lm](){return this}}}return m({type:ea.INIT}),{dispatch:m,subscribe:b,getState:y,replaceReducer:w,[Lm]:_}}function VS(e){Object.keys(e).forEach(n=>{const i=e[n];if(typeof i(void 0,{type:ea.INIT})>"u")throw new Error(it(12));if(typeof i(void 0,{type:ea.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(it(13))})}function ey(e){const n=Object.keys(e),i={};for(let u=0;u<n.length;u++){const f=n[u];typeof e[f]=="function"&&(i[f]=e[f])}const s=Object.keys(i);let l;try{VS(i)}catch(u){l=u}return function(f={},h){if(l)throw l;let p=!1;const v={};for(let y=0;y<s.length;y++){const b=s[y],m=i[b],w=f[b],_=m(w,h);if(typeof _>"u")throw h&&h.type,new Error(it(14));v[b]=_,p=p||_!==w}return p=p||s.length!==Object.keys(f).length,p?v:f}}function ta(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,i)=>(...s)=>n(i(...s)))}function WS(...e){return n=>(i,s)=>{const l=n(i,s);let u=()=>{throw new Error(it(15))};const f={getState:l.getState,dispatch:(p,...v)=>u(p,...v)},h=e.map(p=>p(f));return u=ta(...h)(l.dispatch),{...l,dispatch:u}}}function ZS(e){return mf(e)&&"type"in e&&typeof e.type=="string"}var ty=Symbol.for("immer-nothing"),Bm=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Yt(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Xn=Object.getPrototypeOf;function Sn(e){return!!e&&!!e[Ot]}function kr(e){var n;return e?ry(e)||Array.isArray(e)||!!e[Bm]||!!((n=e.constructor)!=null&&n[Bm])||ca(e)||fa(e):!1}var KS=Object.prototype.constructor.toString();function ry(e){if(!e||typeof e!="object")return!1;const n=Xn(e);if(n===null)return!0;const i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===KS}function to(e,n){ua(e)===0?Object.entries(e).forEach(([i,s])=>{n(i,s,e)}):e.forEach((i,s)=>n(s,i,e))}function ua(e){const n=e[Ot];return n?n.type_:Array.isArray(e)?1:ca(e)?2:fa(e)?3:0}function Ic(e,n){return ua(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function ny(e,n,i){const s=ua(e);s===2?e.set(n,i):s===3?e.add(i):e[n]=i}function QS(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function ca(e){return e instanceof Map}function fa(e){return e instanceof Set}function vn(e){return e.copy_||e.base_}function Dc(e,n){if(ca(e))return new Map(e);if(fa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!n&&ry(e))return Xn(e)?{...e}:Object.assign(Object.create(null),e);const i=Object.getOwnPropertyDescriptors(e);delete i[Ot];let s=Reflect.ownKeys(i);for(let l=0;l<s.length;l++){const u=s[l],f=i[u];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(i[u]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[u]})}return Object.create(Xn(e),i)}function gf(e,n=!1){return da(e)||Sn(e)||!kr(e)||(ua(e)>1&&(e.set=e.add=e.clear=e.delete=XS),Object.freeze(e),n&&to(e,(i,s)=>gf(s,!0))),e}function XS(){Yt(2)}function da(e){return Object.isFrozen(e)}var YS={};function xn(e){const n=YS[e];return n||Yt(0,e),n}var ro;function iy(){return ro}function JS(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jm(e,n){n&&(xn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Pc(e){Mc(e),e.drafts_.forEach(e2),e.drafts_=null}function Mc(e){e===ro&&(ro=e.parent_)}function Um(e){return ro=JS(ro,e)}function e2(e){const n=e[Ot];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function Hm(e,n){n.unfinalizedDrafts_=n.drafts_.length;const i=n.drafts_[0];return e!==void 0&&e!==i?(i[Ot].modified_&&(Pc(n),Yt(4)),kr(e)&&(e=ra(n,e),n.parent_||na(n,e)),n.patches_&&xn("Patches").generateReplacementPatches_(i[Ot].base_,e,n.patches_,n.inversePatches_)):e=ra(n,i,[]),Pc(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==ty?e:void 0}function ra(e,n,i){if(da(n))return n;const s=n[Ot];if(!s)return to(n,(l,u)=>zm(e,s,n,l,u,i)),n;if(s.scope_!==e)return n;if(!s.modified_)return na(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const l=s.copy_;let u=l,f=!1;s.type_===3&&(u=new Set(l),l.clear(),f=!0),to(u,(h,p)=>zm(e,s,l,h,p,i,f)),na(e,l,!1),i&&e.patches_&&xn("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function zm(e,n,i,s,l,u,f){if(Sn(l)){const h=u&&n&&n.type_!==3&&!Ic(n.assigned_,s)?u.concat(s):void 0,p=ra(e,l,h);if(ny(i,s,p),Sn(p))e.canAutoFreeze_=!1;else return}else f&&i.add(l);if(kr(l)&&!da(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ra(e,l),(!n||!n.scope_.parent_)&&na(e,l)}}function na(e,n,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gf(n,i)}function t2(e,n){const i=Array.isArray(e),s={type_:i?1:0,scope_:n?n.scope_:iy(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=yf;i&&(l=[s],u=no);const{revoke:f,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=f,h}var yf={get(e,n){if(n===Ot)return e;const i=vn(e);if(!Ic(i,n))return r2(e,i,n);const s=i[n];return e.finalized_||!kr(s)?s:s===Fu(e.base_,n)?(Lu(e),e.copy_[n]=Lc(s,e)):s},has(e,n){return n in vn(e)},ownKeys(e){return Reflect.ownKeys(vn(e))},set(e,n,i){const s=oy(vn(e),n);if(s!=null&&s.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const l=Fu(vn(e),n),u=l==null?void 0:l[Ot];if(u&&u.base_===i)return e.copy_[n]=i,e.assigned_[n]=!1,!0;if(QS(i,l)&&(i!==void 0||Ic(e.base_,n)))return!0;Lu(e),Fc(e)}return e.copy_[n]===i&&(i!==void 0||n in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=i,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Fu(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Lu(e),Fc(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const i=vn(e),s=Reflect.getOwnPropertyDescriptor(i,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:i[n]}},defineProperty(){Yt(11)},getPrototypeOf(e){return Xn(e.base_)},setPrototypeOf(){Yt(12)}},no={};to(yf,(e,n)=>{no[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});no.deleteProperty=function(e,n){return no.set.call(this,e,n,void 0)};no.set=function(e,n,i){return yf.set.call(this,e[0],n,i,e[0])};function Fu(e,n){const i=e[Ot];return(i?vn(i):e)[n]}function r2(e,n,i){var l;const s=oy(n,i);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function oy(e,n){if(!(n in e))return;let i=Xn(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,n);if(s)return s;i=Xn(i)}}function Fc(e){e.modified_||(e.modified_=!0,e.parent_&&Fc(e.parent_))}function Lu(e){e.copy_||(e.copy_=Dc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var n2=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,i,s)=>{if(typeof n=="function"&&typeof i!="function"){const u=i;i=n;const f=this;return function(p=u,...v){return f.produce(p,y=>i.call(this,y,...v))}}typeof i!="function"&&Yt(6),s!==void 0&&typeof s!="function"&&Yt(7);let l;if(kr(n)){const u=Um(this),f=Lc(n,void 0);let h=!0;try{l=i(f),h=!1}finally{h?Pc(u):Mc(u)}return jm(u,s),Hm(l,u)}else if(!n||typeof n!="object"){if(l=i(n),l===void 0&&(l=n),l===ty&&(l=void 0),this.autoFreeze_&&gf(l,!0),s){const u=[],f=[];xn("Patches").generateReplacementPatches_(n,l,u,f),s(u,f)}return l}else Yt(1,n)},this.produceWithPatches=(n,i)=>{if(typeof n=="function")return(f,...h)=>this.produceWithPatches(f,p=>n(p,...h));let s,l;return[this.produce(n,i,(f,h)=>{s=f,l=h}),s,l]},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){kr(e)||Yt(8),Sn(e)&&(e=i2(e));const n=Um(this),i=Lc(e,void 0);return i[Ot].isManual_=!0,Mc(n),i}finishDraft(e,n){const i=e&&e[Ot];(!i||!i.isManual_)&&Yt(9);const{scope_:s}=i;return jm(s,n),Hm(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let i;for(i=n.length-1;i>=0;i--){const l=n[i];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}i>-1&&(n=n.slice(i+1));const s=xn("Patches").applyPatches_;return Sn(e)?s(e,n):this.produce(e,l=>s(l,n))}};function Lc(e,n){const i=ca(e)?xn("MapSet").proxyMap_(e,n):fa(e)?xn("MapSet").proxySet_(e,n):t2(e,n);return(n?n.scope_:iy()).drafts_.push(i),i}function i2(e){return Sn(e)||Yt(10,e),sy(e)}function sy(e){if(!kr(e)||da(e))return e;const n=e[Ot];let i;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,i=Dc(e,n.scope_.immer_.useStrictShallowCopy_)}else i=Dc(e,!0);return to(i,(s,l)=>{ny(i,s,sy(l))}),n&&(n.finalized_=!1),i}var Nt=new n2,ay=Nt.produce;Nt.produceWithPatches.bind(Nt);Nt.setAutoFreeze.bind(Nt);Nt.setUseStrictShallowCopy.bind(Nt);Nt.applyPatches.bind(Nt);Nt.createDraft.bind(Nt);Nt.finishDraft.bind(Nt);function ly(e){return({dispatch:i,getState:s})=>l=>u=>typeof u=="function"?u(i,s,e):l(u)}var o2=ly(),s2=ly,a2=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ta:ta.apply(null,arguments)};function Gm(e,n){function i(...s){if(n){let l=n(...s);if(!l)throw new Error(br(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:s[0]}}return i.toString=()=>`${e}`,i.type=e,i.match=s=>ZS(s)&&s.type===e,i}var uy=class Xi extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Xi.prototype)}static get[Symbol.species](){return Xi}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Xi(...n[0].concat(this)):new Xi(...n.concat(this))}};function $m(e){return kr(e)?ay(e,()=>{}):e}function qm(e,n,i){return e.has(n)?e.get(n):e.set(n,i(n)).get(n)}function l2(e){return typeof e=="boolean"}var u2=()=>function(n){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=n??{};let f=new uy;return i&&(l2(i)?f.push(o2):f.push(s2(i.extraArgument))),f},c2="RTK_autoBatch",Vm=e=>n=>{setTimeout(n,e)},f2=(e={type:"raf"})=>n=>(...i)=>{const s=n(...i);let l=!0,u=!1,f=!1;const h=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Vm(10):e.type==="callback"?e.queueNotification:Vm(e.timeout),v=()=>{f=!1,u&&(u=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const b=()=>l&&y(),m=s.subscribe(b);return h.add(y),()=>{m(),h.delete(y)}},dispatch(y){var b;try{return l=!((b=y==null?void 0:y.meta)!=null&&b[c2]),u=!l,u&&(f||(f=!0,p(v))),s.dispatch(y)}finally{l=!0}}})},d2=e=>function(i){const{autoBatch:s=!0}=i??{};let l=new uy(e);return s&&l.push(f2(typeof s=="object"?s:void 0)),l};function h2(e){const n=u2(),{reducer:i=void 0,middleware:s,devTools:l=!0,preloadedState:u=void 0,enhancers:f=void 0}=e||{};let h;if(typeof i=="function")h=i;else if(mf(i))h=ey(i);else throw new Error(br(1));let p;typeof s=="function"?p=s(n):p=n();let v=ta;l&&(v=a2({trace:!1,...typeof l=="object"&&l}));const y=WS(...p),b=d2(y);let m=typeof f=="function"?f(b):b();const w=v(...m);return J0(h,u,w)}function cy(e){const n={},i=[];let s;const l={addCase(u,f){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(br(28));if(h in n)throw new Error(br(29));return n[h]=f,l},addMatcher(u,f){return i.push({matcher:u,reducer:f}),l},addDefaultCase(u){return s=u,l}};return e(l),[n,i,s]}function p2(e){return typeof e=="function"}function m2(e,n){let[i,s,l]=cy(n),u;if(p2(e))u=()=>$m(e());else{const h=$m(e);u=()=>h}function f(h=u(),p){let v=[i[p.type],...s.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return v.filter(y=>!!y).length===0&&(v=[l]),v.reduce((y,b)=>{if(b)if(Sn(y)){const w=b(y,p);return w===void 0?y:w}else{if(kr(y))return ay(y,m=>b(m,p));{const m=b(y,p);if(m===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return y},h)}return f.getInitialState=u,f}var g2=Symbol.for("rtk-slice-createasyncthunk");function y2(e,n){return`${e}/${n}`}function v2({creators:e}={}){var i;const n=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[g2];return function(l){const{name:u,reducerPath:f=u}=l;if(!u)throw new Error(br(11));const h=(typeof l.reducers=="function"?l.reducers(E2()):l.reducers)||{},p=Object.keys(h),v={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(x,k){const T=typeof x=="string"?x:x.type;if(!T)throw new Error(br(12));if(T in v.sliceCaseReducersByType)throw new Error(br(13));return v.sliceCaseReducersByType[T]=k,y},addMatcher(x,k){return v.sliceMatchers.push({matcher:x,reducer:k}),y},exposeAction(x,k){return v.actionCreators[x]=k,y},exposeCaseReducer(x,k){return v.sliceCaseReducersByName[x]=k,y}};p.forEach(x=>{const k=h[x],T={reducerName:x,type:y2(u,x),createNotation:typeof l.reducers=="function"};S2(k)?b2(T,k,y,n):w2(T,k,y)});function b(){const[x={},k=[],T=void 0]=typeof l.extraReducers=="function"?cy(l.extraReducers):[l.extraReducers],F={...x,...v.sliceCaseReducersByType};return m2(l.initialState,z=>{for(let V in F)z.addCase(V,F[V]);for(let V of v.sliceMatchers)z.addMatcher(V.matcher,V.reducer);for(let V of k)z.addMatcher(V.matcher,V.reducer);T&&z.addDefaultCase(T)})}const m=x=>x,w=new Map;let _;function S(x,k){return _||(_=b()),_(x,k)}function R(){return _||(_=b()),_.getInitialState()}function O(x,k=!1){function T(z){let V=z[x];return typeof V>"u"&&k&&(V=R()),V}function F(z=m){const V=qm(w,k,()=>new WeakMap);return qm(V,z,()=>{const fe={};for(const[te,oe]of Object.entries(l.selectors??{}))fe[te]=_2(oe,z,R,k);return fe})}return{reducerPath:x,getSelectors:F,get selectors(){return F(T)},selectSlice:T}}const N={name:u,reducer:S,actions:v.actionCreators,caseReducers:v.sliceCaseReducersByName,getInitialState:R,...O(f),injectInto(x,{reducerPath:k,...T}={}){const F=k??f;return x.inject({reducerPath:F,reducer:S},T),{...N,...O(F,!0)}}};return N}}function _2(e,n,i,s){function l(u,...f){let h=n(u);return typeof h>"u"&&s&&(h=i()),e(h,...f)}return l.unwrapped=e,l}var fy=v2();function E2(){function e(n,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...i}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...i){return n(...i)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:i}},asyncThunk:e}}function w2({type:e,reducerName:n,createNotation:i},s,l){let u,f;if("reducer"in s){if(i&&!x2(s))throw new Error(br(17));u=s.reducer,f=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,f?Gm(e,f):Gm(e))}function S2(e){return e._reducerDefinitionType==="asyncThunk"}function x2(e){return e._reducerDefinitionType==="reducerWithPrepare"}function b2({type:e,reducerName:n},i,s,l){if(!l)throw new Error(br(18));const{payloadCreator:u,fulfilled:f,pending:h,rejected:p,settled:v,options:y}=i,b=l(e,u,y);s.exposeAction(n,b),f&&s.addCase(b.fulfilled,f),h&&s.addCase(b.pending,h),p&&s.addCase(b.rejected,p),v&&s.addMatcher(b.settled,v),s.exposeCaseReducer(n,{fulfilled:f||Fs,pending:h||Fs,rejected:p||Fs,settled:v||Fs})}function Fs(){}function br(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 T2={useStartScreen:void 0,formValues:{}},dy=fy({name:"start-screen",initialState:T2,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,n){e.startScreenStatus="HIDDEN",e.formValues=n.payload}}}),{enableStartScreen:C2,disableStartScreen:k2,startChat:R2,showStartScreen:O2}=dy.actions,N2=dy.reducer,hy="RESET_CHAT_STATE",A2=()=>({type:K0}),I2=()=>({type:hy}),Wm=e=>(n,i)=>{const s=i();return n({type:hf,payload:{chunkId:e}}),fetch(`/cms/public/vector-store/chunks/${e}`,{headers:{"Accept-Language":s.intl.locale}}).then(l=>{if(!l.ok)throw n({type:W0}),new Error(`HTTP error! Status: ${l.status}`);return l.json()}).then(l=>n({type:V0,payload:l}))},D2=()=>({type:pf}),nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function P2(e,n=0){return(nt[e[n+0]]+nt[e[n+1]]+nt[e[n+2]]+nt[e[n+3]]+"-"+nt[e[n+4]]+nt[e[n+5]]+"-"+nt[e[n+6]]+nt[e[n+7]]+"-"+nt[e[n+8]]+nt[e[n+9]]+"-"+nt[e[n+10]]+nt[e[n+11]]+nt[e[n+12]]+nt[e[n+13]]+nt[e[n+14]]+nt[e[n+15]]).toLowerCase()}let Bu;const M2=new Uint8Array(16);function F2(){if(!Bu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bu=crypto.getRandomValues.bind(crypto)}return Bu(M2)}const L2=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Zm={randomUUID:L2};function Bc(e,n,i){var l;if(Zm.randomUUID&&!e)return Zm.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??F2();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,P2(s)}const vf="CONNECT",_f="CONNECTING",Ef="CONNECTED",wf="DISCONNECTED",Sf="RECONNECTED",xf="RESTORE_SESSION_ID",ha="START",pa="CLEAR_SESSION_ID",B2=[vf,_f,Ef,wf,Sf,xf],j2=(e,n)=>({type:vf,clientName:e,querystrings:n}),U2=e=>({type:xf,sessionId:e}),H2=()=>({type:_f}),z2=()=>({type:Ef}),G2=()=>({type:wf}),$2=()=>({type:Sf}),py=(e,n)=>(i,s)=>{const l=s().connection,u=s().startScreen.formValues;let f=l.sessionId;f===void 0&&(f=Bc());let h=l.userId;if(h===void 0){const p=Pu.get("bubble-chat-userId")||Pu.get("bf-webclient-userId");h=p||Bc(),Pu.set("bubble-chat-userId",h)}i({type:ha,payload:{sessionId:f,userId:h,clientName:e,querystrings:{...n,...u}}})},ma=(e,n)=>(i,s)=>{const l=s().connection.sessionId||"";if(i(q2(l)),i(I2()),s().startScreen.useStartScreen)i(O2());else return i(py(e,n))},q2=e=>({type:pa,payload:{sessionId:e}}),Je=()=>{const e=aa();return i=>{const s=e.formatMessage({id:i});return s===i?void 0:s}};var En=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(En||{}),my=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(my||{});const V2="_container_q2uun_1",W2="_chatcontent_q2uun_6",Z2="_accessabilityHidden_q2uun_12",ju={container:V2,chatcontent:W2,accessabilityHidden:Z2},K2="_messageContainer_1m8fy_1",Q2="_messages_1m8fy_13",Km={messageContainer:K2,messages:Q2};function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},_n.apply(this,arguments)}const X2=["children","options"],se={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",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Qm;(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"})(Qm||(Qm={}));const Xm=["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,n)=>(e[n.toLowerCase()]=n,e),{class:"className",for:"htmlFor"}),Ym={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Y2=["style","script"],J2=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,ex=/mailto:/i,tx=/\n{2,}$/,gy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,rx=/^ *> ?/gm,nx=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,ix=/^ {2,}\n/,ox=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,vy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,sx=/^(`+)((?:\\`|[^`])+)\1/,ax=/^(?:\n *)*\n/,lx=/\r\n?/g,ux=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,cx=/^\[\^([^\]]+)]/,fx=/\f/g,dx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,hx=/^\s*?\[(x|\s)\]/,_y=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ey=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,px=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sy=/^<!--[\s\S]*?(?:-->)/,mx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Uc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,gx=/^\{.*\}$/,yx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,vx=/^<([^ >]+@[^ >]+)>/,_x=/^<([^ >]+:\/[^ >]+)>/,Ex=/-([a-z])?/gi,xy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,wx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Sx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,bx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Tx=/\t/g,Cx=/(^ *\||\| *$)/g,kx=/^ *:-+: *$/,Rx=/^ *:-+ *$/,Ox=/^ *-+: *$/,ga="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Nx=new RegExp(`^([*_])\\1${ga}\\1\\1(?!\\1)`),Ax=new RegExp(`^([*_])${ga}\\1(?!\\1)`),Ix=new RegExp(`^(==)${ga}\\1`),Dx=new RegExp(`^(~~)${ga}\\1`),Px=/^\\([^0-9A-Za-z\s])/,Uu=/\\([^0-9A-Za-z\s])/g,Mx=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,Fx=/^\n+/,Lx=/^([ \t]*)/,Bx=/\\([^\\])/g,jx=/(?:^|\n)( *)$/,bf="(?:\\d+\\.)",Tf="(?:[*+-])";function by(e){return"( *)("+(e===1?bf:Tf)+") +"}const Ty=by(1),Cy=by(2);function ky(e){return new RegExp("^"+(e===1?Ty:Cy))}const Ux=ky(1),Hx=ky(2);function Ry(e){return new RegExp("^"+(e===1?Ty:Cy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?bf:Tf)+" )[^\\n]*)*(\\n|$)","gm")}const zx=Ry(1),Gx=Ry(2);function Oy(e){const n=e===1?bf:Tf;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const Ny=Oy(1),Ay=Oy(2);function Jm(e,n){const i=n===1,s=i?Ny:Ay,l=i?zx:Gx,u=i?Ux:Hx;return{match:Yn(function(f,h){const p=jx.exec(h.prevCapture);return p&&(h.list||!h.inline&&!h.simple)?s.exec(f=p[1]+f):null}),order:1,parse(f,h,p){const v=i?+f[2]:void 0,y=f[0].replace(tx,`
84
+ */var tm;function $w(){if(tm)return Ce;tm=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var F=T.$$typeof;switch(F){case n:switch(T=T.type,T){case p:case v:case s:case u:case l:case b:return T;default:switch(T=T&&T.$$typeof,T){case h:case y:case _:case w:case f:return T;default:return F}}case i:return F}}}function k(T){return x(T)===v}return Ce.AsyncMode=p,Ce.ConcurrentMode=v,Ce.ContextConsumer=h,Ce.ContextProvider=f,Ce.Element=n,Ce.ForwardRef=y,Ce.Fragment=s,Ce.Lazy=_,Ce.Memo=w,Ce.Portal=i,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=b,Ce.isAsyncMode=function(T){return k(T)||x(T)===p},Ce.isConcurrentMode=k,Ce.isContextConsumer=function(T){return x(T)===h},Ce.isContextProvider=function(T){return x(T)===f},Ce.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===n},Ce.isForwardRef=function(T){return x(T)===y},Ce.isFragment=function(T){return x(T)===s},Ce.isLazy=function(T){return x(T)===_},Ce.isMemo=function(T){return x(T)===w},Ce.isPortal=function(T){return x(T)===i},Ce.isProfiler=function(T){return x(T)===u},Ce.isStrictMode=function(T){return x(T)===l},Ce.isSuspense=function(T){return x(T)===b},Ce.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===s||T===v||T===u||T===l||T===b||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===_||T.$$typeof===w||T.$$typeof===f||T.$$typeof===h||T.$$typeof===y||T.$$typeof===R||T.$$typeof===O||T.$$typeof===N||T.$$typeof===S)},Ce.typeOf=x,Ce}var rm;function qw(){return rm||(rm=1,ku.exports=$w()),ku.exports}var Ru,nm;function Vw(){if(nm)return Ru;nm=1;var e=qw(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=s,u[e.Memo]=l;function f(_){return e.isMemo(_)?l:u[_.$$typeof]||n}var h=Object.defineProperty,p=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,m=Object.prototype;function w(_,S,R){if(typeof S!="string"){if(m){var O=b(S);O&&O!==m&&w(_,O,R)}var N=p(S);v&&(N=N.concat(v(S)));for(var x=f(_),k=f(S),T=0;T<N.length;++T){var F=N[T];if(!i[F]&&!(R&&R[F])&&!(k&&k[F])&&!(x&&x[F])){var z=y(S,F);try{h(_,F,z)}catch{}}}}return _}return Ru=w,Ru}Vw();var Yc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Yc.Consumer;var Ww=Yc.Provider,Kw=Ww,Zw=Yc;function aa(){var e=B.useContext(Zw);return A0(e),e}var kc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(kc||(kc={}));var Rc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Rc||(Rc={}));function D0(e){var n=function(i){var s=aa(),l=i.value,u=i.children,f=sa(i,["value","children"]),h=typeof l=="string"?new Date(l||0):l,p=e==="formatDate"?s.formatDateToParts(h,f):s.formatTimeToParts(h,f);return u(p)};return n.displayName=Rc[e],n}function uo(e){var n=function(i){var s=aa(),l=i.value,u=i.children,f=sa(i,["value","children"]),h=s[e](l,f);if(typeof u=="function")return u(h);var p=s.textComponent||B.Fragment;return B.createElement(p,null,h)};return n.displayName=kc[e],n}function P0(e){return e&&Object.keys(e).reduce(function(n,i){var s=e[i];return n[i]=T0(s)?zw(s):s,n},{})}var im=function(e,n,i,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var f=P0(s),h=Cc.apply(void 0,ar([e,n,i,f],l,!1));return Array.isArray(h)?Hw(h):h},om=function(e,n){var i=e.defaultRichTextElements,s=sa(e,["defaultRichTextElements"]),l=P0(i),u=Lw(J(J(J({},I0),s),{defaultRichTextElements:l}),n),f={locale:u.locale,timeZone:u.timeZone,fallbackOnEmptyString:u.fallbackOnEmptyString,formats:u.formats,defaultLocale:u.defaultLocale,defaultFormats:u.defaultFormats,messages:u.messages,onError:u.onError,defaultRichTextElements:l};return J(J({},u),{formatMessage:im.bind(null,f,u.formatters),$t:im.bind(null,f,u.formatters)})};function Ou(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 Qw=function(e){jt(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.cache=R0(),i.state={cache:i.cache,intl:om(Ou(i.props),i.cache),prevConfig:Ou(i.props)},i}return n.getDerivedStateFromProps=function(i,s){var l=s.prevConfig,u=s.cache,f=Ou(i);return Gw(l,f)?null:{intl:om(f,u),prevConfig:f}},n.prototype.render=function(){return A0(this.state.intl),B.createElement(Kw,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=I0,n}(B.PureComponent);uo("formatDate");uo("formatTime");uo("formatNumber");uo("formatList");uo("formatDisplayName");D0("formatDate");D0("formatTime");const Xw="_app_1rj0t_1",Yw={app:Xw},ti=pE,Qr=yE,M0="%[a-f0-9]{2}",sm=new RegExp("("+M0+")|([^%]+?)","gi"),am=new RegExp("("+M0+")+","gi");function Oc(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;const i=e.slice(0,n),s=e.slice(n);return Array.prototype.concat.call([],Oc(i),Oc(s))}function Jw(e){try{return decodeURIComponent(e)}catch{let n=e.match(sm)||[];for(let i=1;i<n.length;i++)e=Oc(n,i).join(""),n=e.match(sm)||[];return e}}function eS(e){const n={"%FE%FF":"��","%FF%FE":"��"};let i=am.exec(e);for(;i;){try{n[i[0]]=decodeURIComponent(i[0])}catch{const l=Jw(i[0]);l!==i[0]&&(n[i[0]]=l)}i=am.exec(e)}n["%C2"]="�";const s=Object.keys(n);for(const l of s)e=e.replace(new RegExp(l,"g"),n[l]);return e}function tS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return eS(e)}}function rS(e,n){const i={};if(Array.isArray(n))for(const s of n){const l=Object.getOwnPropertyDescriptor(e,s);l!=null&&l.enumerable&&Object.defineProperty(i,s,l)}else for(const s of Reflect.ownKeys(e)){const l=Object.getOwnPropertyDescriptor(e,s);if(l.enumerable){const u=e[s];n(s,u,e)&&Object.defineProperty(i,s,l)}}return i}function F0(e,n){if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||n==="")return[];const i=e.indexOf(n);return i===-1?[]:[e.slice(0,i),e.slice(i+n.length)]}const nS=e=>e==null,iS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Nc=Symbol("encodeFragmentIdentifier");function oS(e){switch(e.arrayFormat){case"index":return n=>(i,s)=>{const l=i.length;return s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),"[",l,"]"].join("")]:[...i,[Ve(n,e),"[",Ve(l,e),"]=",Ve(s,e)].join("")]};case"bracket":return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),"[]"].join("")]:[...i,[Ve(n,e),"[]=",Ve(s,e)].join("")];case"colon-list-separator":return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),":list="].join("")]:[...i,[Ve(n,e),":list=",Ve(s,e)].join("")];case"comma":case"separator":case"bracket-separator":{const n=e.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?s:(l=l===null?"":l,s.length===0?[[Ve(i,e),n,Ve(l,e)].join("")]:[[s,Ve(l,e)].join(e.arrayFormatSeparator)])}default:return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,Ve(n,e)]:[...i,[Ve(n,e),"=",Ve(s,e)].join("")]}}function sS(e){let n;switch(e.arrayFormat){case"index":return(i,s,l)=>{if(n=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!n){l[i]=s;return}l[i]===void 0&&(l[i]={}),l[i][n[1]]=s};case"bracket":return(i,s,l)=>{if(n=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!n){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"colon-list-separator":return(i,s,l)=>{if(n=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!n){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"comma":case"separator":return(i,s,l)=>{const u=typeof s=="string"&&s.includes(e.arrayFormatSeparator),f=typeof s=="string"&&!u&&xr(s,e).includes(e.arrayFormatSeparator);s=f?xr(s,e):s;const h=u||f?s.split(e.arrayFormatSeparator).map(p=>xr(p,e)):s===null?s:xr(s,e);l[i]=h};case"bracket-separator":return(i,s,l)=>{const u=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!u){l[i]=s&&xr(s,e);return}const f=s===null?[]:xr(s,e).split(e.arrayFormatSeparator);if(l[i]===void 0){l[i]=f;return}l[i]=[...l[i],...f]};default:return(i,s,l)=>{if(l[i]===void 0){l[i]=s;return}l[i]=[...[l[i]].flat(),s]}}}function L0(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ve(e,n){return n.encode?n.strict?iS(e):encodeURIComponent(e):e}function xr(e,n){return n.decode?tS(e):e}function B0(e){return Array.isArray(e)?e.sort():typeof e=="object"?B0(Object.keys(e)).sort((n,i)=>Number(n)-Number(i)).map(n=>e[n]):e}function j0(e){const n=e.indexOf("#");return n!==-1&&(e=e.slice(0,n)),e}function aS(e){let n="";const i=e.indexOf("#");return i!==-1&&(n=e.slice(i)),n}function lm(e,n,i){return i==="string"&&typeof e=="string"?e:typeof i=="function"&&typeof e=="string"?i(e):n.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":i==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||n.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function Jc(e){e=j0(e);const n=e.indexOf("?");return n===-1?"":e.slice(n+1)}function ef(e,n){n={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...n},L0(n.arrayFormatSeparator);const i=sS(n),s=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return s;for(const l of e.split("&")){if(l==="")continue;const u=n.decode?l.replaceAll("+"," "):l;let[f,h]=F0(u,"=");f===void 0&&(f=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?h:xr(h,n),i(xr(f,n),h,s)}for(const[l,u]of Object.entries(s))if(typeof u=="object"&&u!==null&&n.types[l]!=="string")for(const[f,h]of Object.entries(u)){const p=n.types[l]?n.types[l].replace("[]",""):void 0;u[f]=lm(h,n,p)}else typeof u=="object"&&u!==null&&n.types[l]==="string"?s[l]=Object.values(u).join(n.arrayFormatSeparator):s[l]=lm(u,n,n.types[l]);return n.sort===!1?s:(n.sort===!0?Object.keys(s).sort():Object.keys(s).sort(n.sort)).reduce((l,u)=>{const f=s[u];return l[u]=f&&typeof f=="object"&&!Array.isArray(f)?B0(f):f,l},Object.create(null))}function U0(e,n){if(!e)return"";n={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...n},L0(n.arrayFormatSeparator);const i=f=>n.skipNull&&nS(e[f])||n.skipEmptyString&&e[f]==="",s=oS(n),l={};for(const[f,h]of Object.entries(e))i(f)||(l[f]=h);const u=Object.keys(l);return n.sort!==!1&&u.sort(n.sort),u.map(f=>{const h=e[f];return h===void 0?"":h===null?Ve(f,n):Array.isArray(h)?h.length===0&&n.arrayFormat==="bracket-separator"?Ve(f,n)+"[]":h.reduce(s(f),[]).join("&"):Ve(f,n)+"="+Ve(h,n)}).filter(f=>f.length>0).join("&")}function H0(e,n){var l;n={decode:!0,...n};let[i,s]=F0(e,"#");return i===void 0&&(i=e),{url:((l=i==null?void 0:i.split("?"))==null?void 0:l[0])??"",query:ef(Jc(e),n),...n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:xr(s,n)}:{}}}function z0(e,n){n={encode:!0,strict:!0,[Nc]:!0,...n};const i=j0(e.url).split("?")[0]||"",s=Jc(e.url),l={...ef(s,{sort:!1}),...e.query};let u=U0(l,n);u&&(u=`?${u}`);let f=aS(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(i);h.hash=e.fragmentIdentifier,f=n[Nc]?h.hash:`#${e.fragmentIdentifier}`}return`${i}${u}${f}`}function G0(e,n,i){i={parseFragmentIdentifier:!0,[Nc]:!1,...i};const{url:s,query:l,fragmentIdentifier:u}=H0(e,i);return z0({url:s,query:rS(l,n),fragmentIdentifier:u},i)}function lS(e,n,i){const s=Array.isArray(n)?l=>!n.includes(l):(l,u)=>!n(l,u);return G0(e,s,i)}const la=Object.freeze(Object.defineProperty({__proto__:null,exclude:lS,extract:Jc,parse:ef,parseUrl:H0,pick:G0,stringify:U0,stringifyUrl:z0},Symbol.toStringTag,{value:"Module"}));var Kt={},Ct={},le={},um;function At(){return um||(um=1,Object.defineProperty(le,"__esModule",{value:!0}),le.GUEST_LOCALE_CHANGED=le.DRAWER_CLOSE=le.DRAWER_OPEN=le.CONVERSATION_RATING_FROM_GUEST=le.TRANSCRIPT_ITEM_GUEST_REACTION=le.TRANSCRIPT_MAIL_REQUEST=le.INBOX_CONNECT_REQUEST=le.RESTART_CHAT_REQUEST=le.EVENT_TO_GUEST=le.NLU_REQUEST_EVENT=le.EXPERTS_DISCONNECTED=le.EXPERTS_DISCONNECT_REQUEST=le.EXPERTS_CONNECTED=le.EXPERTS_CONNECT_REQUEST=le.MESSAGE_TO_GUEST=le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=le.MESSAGE_FROM_GUEST=le.GUEST_FEEDBACK_RESPONSE=le.GUEST_DISCONNECTED=le.GUEST_CONNECTED=le.TYPING_OFF=le.TYPING_ON=void 0,le.TYPING_ON="core.typing.on",le.TYPING_OFF="core.typing.off",le.GUEST_CONNECTED="core.guest.connected",le.GUEST_DISCONNECTED="core.guest.disconnected",le.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",le.MESSAGE_FROM_GUEST="core.message.from.guest",le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",le.MESSAGE_TO_GUEST="core.message.to.guest",le.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",le.EXPERTS_CONNECTED="core.experts.connected",le.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",le.EXPERTS_DISCONNECTED="core.experts.disconnected",le.NLU_REQUEST_EVENT="core.nlu.request.event",le.EVENT_TO_GUEST="core.event.to.guest",le.RESTART_CHAT_REQUEST="core.chat.restart.request",le.INBOX_CONNECT_REQUEST="core.inbox.connect.request",le.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",le.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",le.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",le.DRAWER_OPEN="core.drawer.open",le.DRAWER_CLOSE="core.drawer.close",le.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),le}var Nu={},cm;function uS(){return cm||(cm=1,Object.defineProperty(Nu,"__esModule",{value:!0})),Nu}var xs={},fm;function cS(){if(fm)return xs;fm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=At(),n=()=>({type:e.DRAWER_CLOSE});return xs.default=n,xs}var bs={},dm;function fS(){if(dm)return bs;dm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return bs.default=n,bs}var Ts={},hm;function dS(){if(hm)return Ts;hm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_CONNECTED,payload:{sessionId:i}});return Ts.default=n,Ts}var Cs={},pm;function hS(){if(pm)return Cs;pm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:i}});return Cs.default=n,Cs}var ks={},mm;function pS(){if(mm)return ks;mm=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return ks.default=n,ks}var Rs={},gm;function mS(){if(gm)return Rs;gm=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=At(),n=i=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Rs.default=n,Rs}var Os={},je={},ym;function tf(){if(ym)return je;ym=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getStringRepresentationFromMessage=je.MessageTypeEnum=je.AudioMessage=je.FileMessage=je.ImageMessage=je.VideoMessage=je.MarkdownMessage=je.DetailMessage=je.TextMessage=je.Message=void 0;class e{constructor(b,m){xe(this,"type");xe(this,"sender");xe(this,"quickReplies");this.type=b,this.sender=m,this.quickReplies=[]}addQuickReply(b,m){this.quickReplies.push({label:b,payload:m})}}je.Message=e;class n extends e{constructor(m,w){super(p.TEXT,w);xe(this,"text");this.text=m}}je.TextMessage=n;class i extends e{constructor(m,w){super(p.DETAIL,w);xe(this,"title");xe(this,"subtitle");xe(this,"text");xe(this,"imageUrl");xe(this,"itemUrl");xe(this,"buttons");this.title=m,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(m){this.imageUrl=m}setItemUrl(m){this.itemUrl=m}setSubtitle(m){this.subtitle=m}setText(m){this.text=m}addButton(m){this.buttons.push(m)}}je.DetailMessage=i;class s extends e{constructor(m,w,_){super(p.MARKDOWN,_);xe(this,"markdown");xe(this,"excerpt");xe(this,"className");this.markdown=m,this.excerpt=w,this.className=""}setClassName(m){this.className=m}}je.MarkdownMessage=s;class l extends e{constructor(m,w){super(p.VIDEO,w);xe(this,"url");this.url=m}}je.VideoMessage=l;class u extends e{constructor(m,w){super(p.IMAGE,w);xe(this,"url");this.url=m}}je.ImageMessage=u;class f extends e{constructor(m,w){super(p.FILE,w);xe(this,"url");this.url=m}}je.FileMessage=f;class h extends e{constructor(m,w){super(p.AUDIO,w);xe(this,"url");this.url=m}}je.AudioMessage=h;var p;(function(y){y.TEXT="TEXT",y.DETAIL="DETAIL",y.MARKDOWN="MARKDOWN",y.VIDEO="VIDEO",y.IMAGE="IMAGE",y.FILE="FILE",y.AUDIO="AUDIO"})(p||(je.MessageTypeEnum=p={}));const v=y=>{switch(y.type){case p.TEXT:return y.text;case p.DETAIL:{const b=y;return`${b.title} // ${b.subtitle}`}case p.MARKDOWN:return y.excerpt;case p.VIDEO:return`Video Url: ${y.url}`;case p.IMAGE:return`Image Url: ${y.url}`;case p.FILE:return`File Url: ${y.url}`;case p.AUDIO:return`Audio Url: ${y.url}`;default:throw new Error("Unknown message type "+y.type)}};return je.getStringRepresentationFromMessage=v,je}var kt={},vm;function rf(){if(vm)return kt;vm=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.UserType=kt.PersonUser=kt.GuestUser=kt.BotUser=kt.User=void 0;class e{constructor(f,h,p,v){xe(this,"type");xe(this,"id");xe(this,"name");xe(this,"avatar");this.type=f,this.id=h,this.name=p,this.avatar=v}}kt.User=e;class n extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=n;class i extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}kt.GuestUser=i;class s extends e{constructor(f,h,p){super(l.PERSON,f,h,p)}}kt.PersonUser=s;var l;return function(u){u.GUEST="GUEST",u.BOT="BOT",u.PERSON="PERSON"}(l||(kt.UserType=l={})),kt}var _m;function gS(){if(_m)return Os;_m=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=tf(),n=rf(),i=At(),s=l=>{const u=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:u}};return Os.default=s,Os}var Ns={},Em;function yS(){if(Em)return Ns;Em=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=tf(),n=rf(),i=At(),s=(l,u={})=>{const f=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:f,payload:u}};return Ns.default=s,Ns}var As={},wm;function vS(){if(wm)return As;wm=1,Object.defineProperty(As,"__esModule",{value:!0});const e=At(),n=i=>({type:e.NLU_REQUEST_EVENT,event:i});return As.default=n,As}var Is={},Sm;function _S(){if(Sm)return Is;Sm=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=At(),n=()=>({type:e.RESTART_CHAT_REQUEST});return Is.default=n,Is}var Ds={},xm;function ES(){if(xm)return Ds;xm=1,Object.defineProperty(Ds,"__esModule",{value:!0});const e=At(),n=i=>({type:e.MESSAGE_TO_GUEST,message:i});return Ds.default=n,Ds}var Ps={},bm;function wS(){if(bm)return Ps;bm=1,Object.defineProperty(Ps,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return Ps.default=n,Ps}var Tm;function Cm(){return Tm||(Tm=1,function(e){var n=Ct&&Ct.__createBinding||(Object.create?function(N,x,k,T){T===void 0&&(T=k);var F=Object.getOwnPropertyDescriptor(x,k);(!F||("get"in F?!x.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return x[k]}}),Object.defineProperty(N,T,F)}:function(N,x,k,T){T===void 0&&(T=k),N[T]=x[k]}),i=Ct&&Ct.__setModuleDefault||(Object.create?function(N,x){Object.defineProperty(N,"default",{enumerable:!0,value:x})}:function(N,x){N.default=x}),s=Ct&&Ct.__importStar||function(){var N=function(x){return N=Object.getOwnPropertyNames||function(k){var T=[];for(var F in k)Object.prototype.hasOwnProperty.call(k,F)&&(T[T.length]=F);return T},N(x)};return function(x){if(x&&x.__esModule)return x;var k={};if(x!=null)for(var T=N(x),F=0;F<T.length;F++)T[F]!=="default"&&n(k,x,T[F]);return i(k,x),k}}(),l=Ct&&Ct.__exportStar||function(N,x){for(var k in N)k!=="default"&&!Object.prototype.hasOwnProperty.call(x,k)&&n(x,N,k)},u=Ct&&Ct.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};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=s(At()),l(uS(),e);const f=u(cS());e.closeDrawer=f.default;const h=u(fS());e.feedbackFromGuestResponse=h.default;const p=u(dS());e.guestConnected=p.default;const v=u(hS());e.guestDisconnected=v.default;const y=u(pS());e.guestLocaleChanged=y.default;const b=u(mS());e.openDrawer=b.default;const m=u(gS());e.receiveTextMessageFromGuest=m.default;const w=u(yS());e.receiveTextMessageWithoutAnalysisFromGuest=w.default;const _=u(vS());e.requestNLUEvent=_.default;const S=u(_S());e.restartChatRequest=S.default;const R=u(ES());e.sendMessageToGuest=R.default;const O=u(wS());e.transcriptItemGuestReaction=O.default}(Ct)),Ct}var Rt={},Au={},km;function SS(){return km||(km=1,Object.defineProperty(Au,"__esModule",{value:!0})),Au}var $i={},Rm;function xS(){if(Rm)return $i;Rm=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.NullableKnowledgeBaseAdapter=void 0;class e{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,l){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}}return $i.NullableKnowledgeBaseAdapter=e,$i}var Om;function bS(){if(Om)return Rt;Om=1;var e=Rt&&Rt.__createBinding||(Object.create?function(l,u,f,h){h===void 0&&(h=f);var p=Object.getOwnPropertyDescriptor(u,f);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,h,p)}:function(l,u,f,h){h===void 0&&(h=f),l[h]=u[f]}),n=Rt&&Rt.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),i=Rt&&Rt.__importStar||function(){var l=function(u){return l=Object.getOwnPropertyNames||function(f){var h=[];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(h[h.length]=p);return h},l(u)};return function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var h=l(u),p=0;p<h.length;p++)h[p]!=="default"&&e(f,u,h[p]);return n(f,u),f}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=i(SS());const s=xS();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pn={},Iu={},Nm;function TS(){return Nm||(Nm=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var Zt={},Am;function CS(){if(Am)return Zt;Am=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.ButtonTypeEnum=Zt.PostbackButton=Zt.UrlButton=Zt.Button=void 0;class e{constructor(u,f){xe(this,"title");xe(this,"type");this.title=u,this.type=f}}Zt.Button=e;class n extends e{constructor(f,h){super(f,s.WEB_URL);xe(this,"url");this.url=h}}Zt.UrlButton=n;class i extends e{constructor(f,h){super(f,s.POSTBACK);xe(this,"payload");this.payload=h}}Zt.PostbackButton=i;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Zt.ButtonTypeEnum=s={})),Zt}var Du={},Im;function kS(){return Im||(Im=1,Object.defineProperty(Du,"__esModule",{value:!0})),Du}var qi={},Dm;function RS(){if(Dm)return qi;Dm=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.SatisfactionEnum=void 0;var e;return function(n){n.GOOD="GOOD",n.BAD="BAD"}(e||(qi.SatisfactionEnum=e={})),qi}var Pm;function Mm(){return Pm||(Pm=1,function(e){var n=pn&&pn.__createBinding||(Object.create?function(s,l,u,f){f===void 0&&(f=u);var h=Object.getOwnPropertyDescriptor(l,u);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,f,h)}:function(s,l,u,f){f===void 0&&(f=u),s[f]=l[u]}),i=pn&&pn.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&n(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),i(TS(),e),i(CS(),e),i(kS(),e),i(RS(),e),i(tf(),e),i(rf(),e)}(pn)),pn}var Fm;function OS(){return Fm||(Fm=1,function(e){var n=Kt&&Kt.__createBinding||(Object.create?function(u,f,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(f,h);(!v||("get"in v?!f.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(u,p,v)}:function(u,f,h,p){p===void 0&&(p=h),u[p]=f[h]}),i=Kt&&Kt.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),s=Kt&&Kt.__exportStar||function(u,f){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(f,h)&&n(f,u,h)},l=Kt&&Kt.__importStar||function(){var u=function(f){return u=Object.getOwnPropertyNames||function(h){var p=[];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(p[p.length]=v);return p},u(f)};return function(f){if(f&&f.__esModule)return f;var h={};if(f!=null)for(var p=u(f),v=0;v<p.length;v++)p[v]!=="default"&&n(h,f,p[v]);return i(h,f),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(Cm(),e),e.Actions=l(Cm()),e.CMS=l(bS()),s(Mm(),e),e.Model=l(Mm())}(Kt)),Kt}var ge=OS();const $0=e=>n=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&n(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),n(e.payload)),q0=e=>(n,i)=>{const{quickReplies:s}=i().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return n(l?$0({...l,label:e}):ge.receiveTextMessageFromGuest(e))},nf="MESSAGE_TO_PARENT_PAGE",of="RESTORE_PREVIOUS_CHAT_MESSAGES",sf="AUDIO_MESSAGE_FROM_USER",af="ENABLE_SPEECH_SUPPORT",lf="ENABLE_TRANSCRIPT_EXPORT",NS="EXPORT_TRANSCRIPT",uf="RECEIVE_SPEECH_TRANSCRIPTION",cf="SHOW_GENERAL_CONDITIONS",ff="ENABLE_CONVERSATION_RATING",df="SET_COMMANDS",V0="LOAD_SOURCE_INFOS_RESPONSE",W0="LOAD_SOURCE_INFOS_ERROR",hf="LOAD_SOURCE_INFOS_REQUEST",pf="CLOSE_SOURCE_INFOS",AS="webclient.get.started",K0="webclient.window.expand",Z0="webclient.window.close",Q0="webclient.transcript.pdf.download",IS=[nf,of,sf,af,lf,NS,uf,cf,ff,df,hf,pf],DS=e=>({type:sf,buffer:e}),PS=()=>({type:af}),MS=e=>({type:uf,transcription:e}),FS=e=>({type:lf,methods:e}),LS=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),BS=()=>({type:cf}),jS=e=>({type:df,payload:{commands:e}}),US=()=>({type:Q0}),HS=({rating:e})=>({type:ff,payload:{rating:e}}),zS=(e,n)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:n}}),X0=e=>ge.requestNLUEvent(e),GS=e=>({type:of,messages:e}),$S=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Y0(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},qS=e=>Y0(e),Y0=e=>({type:nf,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function Ms(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)e[s]=i[s]}return e}var VS={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 Ac(e,n){function i(l,u,f){if(!(typeof document>"u")){f=Ms({},n,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var p in f)f[p]&&(h+="; "+p,f[p]!==!0&&(h+="="+f[p].split(";")[0]));return document.cookie=l+"="+e.write(u,l)+h}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var u=document.cookie?document.cookie.split("; "):[],f={},h=0;h<u.length;h++){var p=u[h].split("="),v=p.slice(1).join("=");try{var y=decodeURIComponent(p[0]);if(f[y]=e.read(v,y),l===y)break}catch{}}return l?f[l]:f}}return Object.create({set:i,get:s,remove:function(l,u){i(l,"",Ms({},u,{expires:-1}))},withAttributes:function(l){return Ac(this.converter,Ms({},this.attributes,l))},withConverter:function(l){return Ac(Ms({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var Pu=Ac(VS,{path:"/"});function it(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 WS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Lm=WS,Mu=()=>Math.random().toString(36).substring(7).split("").join("."),KS={INIT:`@@redux/INIT${Mu()}`,REPLACE:`@@redux/REPLACE${Mu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Mu()}`},ea=KS;function mf(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function J0(e,n,i){if(typeof e!="function")throw new Error(it(2));if(typeof n=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(it(0));if(typeof n=="function"&&typeof i>"u"&&(i=n,n=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(it(1));return i(J0)(e,n)}let s=e,l=n,u=new Map,f=u,h=0,p=!1;function v(){f===u&&(f=new Map,u.forEach((R,O)=>{f.set(O,R)}))}function y(){if(p)throw new Error(it(3));return l}function b(R){if(typeof R!="function")throw new Error(it(4));if(p)throw new Error(it(5));let O=!0;v();const N=h++;return f.set(N,R),function(){if(O){if(p)throw new Error(it(6));O=!1,v(),f.delete(N),u=null}}}function m(R){if(!mf(R))throw new Error(it(7));if(typeof R.type>"u")throw new Error(it(8));if(typeof R.type!="string")throw new Error(it(17));if(p)throw new Error(it(9));try{p=!0,l=s(l,R)}finally{p=!1}return(u=f).forEach(N=>{N()}),R}function w(R){if(typeof R!="function")throw new Error(it(10));s=R,m({type:ea.REPLACE})}function _(){const R=b;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(it(11));function N(){const k=O;k.next&&k.next(y())}return N(),{unsubscribe:R(N)}},[Lm](){return this}}}return m({type:ea.INIT}),{dispatch:m,subscribe:b,getState:y,replaceReducer:w,[Lm]:_}}function ZS(e){Object.keys(e).forEach(n=>{const i=e[n];if(typeof i(void 0,{type:ea.INIT})>"u")throw new Error(it(12));if(typeof i(void 0,{type:ea.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(it(13))})}function ey(e){const n=Object.keys(e),i={};for(let u=0;u<n.length;u++){const f=n[u];typeof e[f]=="function"&&(i[f]=e[f])}const s=Object.keys(i);let l;try{ZS(i)}catch(u){l=u}return function(f={},h){if(l)throw l;let p=!1;const v={};for(let y=0;y<s.length;y++){const b=s[y],m=i[b],w=f[b],_=m(w,h);if(typeof _>"u")throw h&&h.type,new Error(it(14));v[b]=_,p=p||_!==w}return p=p||s.length!==Object.keys(f).length,p?v:f}}function ta(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,i)=>(...s)=>n(i(...s)))}function QS(...e){return n=>(i,s)=>{const l=n(i,s);let u=()=>{throw new Error(it(15))};const f={getState:l.getState,dispatch:(p,...v)=>u(p,...v)},h=e.map(p=>p(f));return u=ta(...h)(l.dispatch),{...l,dispatch:u}}}function XS(e){return mf(e)&&"type"in e&&typeof e.type=="string"}var ty=Symbol.for("immer-nothing"),Bm=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Yt(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Xn=Object.getPrototypeOf;function Sn(e){return!!e&&!!e[Ot]}function kr(e){var n;return e?ry(e)||Array.isArray(e)||!!e[Bm]||!!((n=e.constructor)!=null&&n[Bm])||ca(e)||fa(e):!1}var YS=Object.prototype.constructor.toString();function ry(e){if(!e||typeof e!="object")return!1;const n=Xn(e);if(n===null)return!0;const i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===YS}function to(e,n){ua(e)===0?Object.entries(e).forEach(([i,s])=>{n(i,s,e)}):e.forEach((i,s)=>n(s,i,e))}function ua(e){const n=e[Ot];return n?n.type_:Array.isArray(e)?1:ca(e)?2:fa(e)?3:0}function Ic(e,n){return ua(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function ny(e,n,i){const s=ua(e);s===2?e.set(n,i):s===3?e.add(i):e[n]=i}function JS(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function ca(e){return e instanceof Map}function fa(e){return e instanceof Set}function vn(e){return e.copy_||e.base_}function Dc(e,n){if(ca(e))return new Map(e);if(fa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!n&&ry(e))return Xn(e)?{...e}:Object.assign(Object.create(null),e);const i=Object.getOwnPropertyDescriptors(e);delete i[Ot];let s=Reflect.ownKeys(i);for(let l=0;l<s.length;l++){const u=s[l],f=i[u];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(i[u]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[u]})}return Object.create(Xn(e),i)}function gf(e,n=!1){return da(e)||Sn(e)||!kr(e)||(ua(e)>1&&(e.set=e.add=e.clear=e.delete=e2),Object.freeze(e),n&&to(e,(i,s)=>gf(s,!0))),e}function e2(){Yt(2)}function da(e){return Object.isFrozen(e)}var t2={};function xn(e){const n=t2[e];return n||Yt(0,e),n}var ro;function iy(){return ro}function r2(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jm(e,n){n&&(xn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Pc(e){Mc(e),e.drafts_.forEach(n2),e.drafts_=null}function Mc(e){e===ro&&(ro=e.parent_)}function Um(e){return ro=r2(ro,e)}function n2(e){const n=e[Ot];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function Hm(e,n){n.unfinalizedDrafts_=n.drafts_.length;const i=n.drafts_[0];return e!==void 0&&e!==i?(i[Ot].modified_&&(Pc(n),Yt(4)),kr(e)&&(e=ra(n,e),n.parent_||na(n,e)),n.patches_&&xn("Patches").generateReplacementPatches_(i[Ot].base_,e,n.patches_,n.inversePatches_)):e=ra(n,i,[]),Pc(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==ty?e:void 0}function ra(e,n,i){if(da(n))return n;const s=n[Ot];if(!s)return to(n,(l,u)=>zm(e,s,n,l,u,i)),n;if(s.scope_!==e)return n;if(!s.modified_)return na(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const l=s.copy_;let u=l,f=!1;s.type_===3&&(u=new Set(l),l.clear(),f=!0),to(u,(h,p)=>zm(e,s,l,h,p,i,f)),na(e,l,!1),i&&e.patches_&&xn("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function zm(e,n,i,s,l,u,f){if(Sn(l)){const h=u&&n&&n.type_!==3&&!Ic(n.assigned_,s)?u.concat(s):void 0,p=ra(e,l,h);if(ny(i,s,p),Sn(p))e.canAutoFreeze_=!1;else return}else f&&i.add(l);if(kr(l)&&!da(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ra(e,l),(!n||!n.scope_.parent_)&&na(e,l)}}function na(e,n,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gf(n,i)}function i2(e,n){const i=Array.isArray(e),s={type_:i?1:0,scope_:n?n.scope_:iy(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=yf;i&&(l=[s],u=no);const{revoke:f,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=f,h}var yf={get(e,n){if(n===Ot)return e;const i=vn(e);if(!Ic(i,n))return o2(e,i,n);const s=i[n];return e.finalized_||!kr(s)?s:s===Fu(e.base_,n)?(Lu(e),e.copy_[n]=Lc(s,e)):s},has(e,n){return n in vn(e)},ownKeys(e){return Reflect.ownKeys(vn(e))},set(e,n,i){const s=oy(vn(e),n);if(s!=null&&s.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const l=Fu(vn(e),n),u=l==null?void 0:l[Ot];if(u&&u.base_===i)return e.copy_[n]=i,e.assigned_[n]=!1,!0;if(JS(i,l)&&(i!==void 0||Ic(e.base_,n)))return!0;Lu(e),Fc(e)}return e.copy_[n]===i&&(i!==void 0||n in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=i,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Fu(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Lu(e),Fc(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const i=vn(e),s=Reflect.getOwnPropertyDescriptor(i,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:i[n]}},defineProperty(){Yt(11)},getPrototypeOf(e){return Xn(e.base_)},setPrototypeOf(){Yt(12)}},no={};to(yf,(e,n)=>{no[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});no.deleteProperty=function(e,n){return no.set.call(this,e,n,void 0)};no.set=function(e,n,i){return yf.set.call(this,e[0],n,i,e[0])};function Fu(e,n){const i=e[Ot];return(i?vn(i):e)[n]}function o2(e,n,i){var l;const s=oy(n,i);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function oy(e,n){if(!(n in e))return;let i=Xn(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,n);if(s)return s;i=Xn(i)}}function Fc(e){e.modified_||(e.modified_=!0,e.parent_&&Fc(e.parent_))}function Lu(e){e.copy_||(e.copy_=Dc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var s2=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,i,s)=>{if(typeof n=="function"&&typeof i!="function"){const u=i;i=n;const f=this;return function(p=u,...v){return f.produce(p,y=>i.call(this,y,...v))}}typeof i!="function"&&Yt(6),s!==void 0&&typeof s!="function"&&Yt(7);let l;if(kr(n)){const u=Um(this),f=Lc(n,void 0);let h=!0;try{l=i(f),h=!1}finally{h?Pc(u):Mc(u)}return jm(u,s),Hm(l,u)}else if(!n||typeof n!="object"){if(l=i(n),l===void 0&&(l=n),l===ty&&(l=void 0),this.autoFreeze_&&gf(l,!0),s){const u=[],f=[];xn("Patches").generateReplacementPatches_(n,l,u,f),s(u,f)}return l}else Yt(1,n)},this.produceWithPatches=(n,i)=>{if(typeof n=="function")return(f,...h)=>this.produceWithPatches(f,p=>n(p,...h));let s,l;return[this.produce(n,i,(f,h)=>{s=f,l=h}),s,l]},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){kr(e)||Yt(8),Sn(e)&&(e=a2(e));const n=Um(this),i=Lc(e,void 0);return i[Ot].isManual_=!0,Mc(n),i}finishDraft(e,n){const i=e&&e[Ot];(!i||!i.isManual_)&&Yt(9);const{scope_:s}=i;return jm(s,n),Hm(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let i;for(i=n.length-1;i>=0;i--){const l=n[i];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}i>-1&&(n=n.slice(i+1));const s=xn("Patches").applyPatches_;return Sn(e)?s(e,n):this.produce(e,l=>s(l,n))}};function Lc(e,n){const i=ca(e)?xn("MapSet").proxyMap_(e,n):fa(e)?xn("MapSet").proxySet_(e,n):i2(e,n);return(n?n.scope_:iy()).drafts_.push(i),i}function a2(e){return Sn(e)||Yt(10,e),sy(e)}function sy(e){if(!kr(e)||da(e))return e;const n=e[Ot];let i;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,i=Dc(e,n.scope_.immer_.useStrictShallowCopy_)}else i=Dc(e,!0);return to(i,(s,l)=>{ny(i,s,sy(l))}),n&&(n.finalized_=!1),i}var Nt=new s2,ay=Nt.produce;Nt.produceWithPatches.bind(Nt);Nt.setAutoFreeze.bind(Nt);Nt.setUseStrictShallowCopy.bind(Nt);Nt.applyPatches.bind(Nt);Nt.createDraft.bind(Nt);Nt.finishDraft.bind(Nt);function ly(e){return({dispatch:i,getState:s})=>l=>u=>typeof u=="function"?u(i,s,e):l(u)}var l2=ly(),u2=ly,c2=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ta:ta.apply(null,arguments)};function Gm(e,n){function i(...s){if(n){let l=n(...s);if(!l)throw new Error(br(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:s[0]}}return i.toString=()=>`${e}`,i.type=e,i.match=s=>XS(s)&&s.type===e,i}var uy=class Xi extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Xi.prototype)}static get[Symbol.species](){return Xi}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Xi(...n[0].concat(this)):new Xi(...n.concat(this))}};function $m(e){return kr(e)?ay(e,()=>{}):e}function qm(e,n,i){return e.has(n)?e.get(n):e.set(n,i(n)).get(n)}function f2(e){return typeof e=="boolean"}var d2=()=>function(n){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=n??{};let f=new uy;return i&&(f2(i)?f.push(l2):f.push(u2(i.extraArgument))),f},h2="RTK_autoBatch",Vm=e=>n=>{setTimeout(n,e)},p2=(e={type:"raf"})=>n=>(...i)=>{const s=n(...i);let l=!0,u=!1,f=!1;const h=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Vm(10):e.type==="callback"?e.queueNotification:Vm(e.timeout),v=()=>{f=!1,u&&(u=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const b=()=>l&&y(),m=s.subscribe(b);return h.add(y),()=>{m(),h.delete(y)}},dispatch(y){var b;try{return l=!((b=y==null?void 0:y.meta)!=null&&b[h2]),u=!l,u&&(f||(f=!0,p(v))),s.dispatch(y)}finally{l=!0}}})},m2=e=>function(i){const{autoBatch:s=!0}=i??{};let l=new uy(e);return s&&l.push(p2(typeof s=="object"?s:void 0)),l};function g2(e){const n=d2(),{reducer:i=void 0,middleware:s,devTools:l=!0,preloadedState:u=void 0,enhancers:f=void 0}=e||{};let h;if(typeof i=="function")h=i;else if(mf(i))h=ey(i);else throw new Error(br(1));let p;typeof s=="function"?p=s(n):p=n();let v=ta;l&&(v=c2({trace:!1,...typeof l=="object"&&l}));const y=QS(...p),b=m2(y);let m=typeof f=="function"?f(b):b();const w=v(...m);return J0(h,u,w)}function cy(e){const n={},i=[];let s;const l={addCase(u,f){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(br(28));if(h in n)throw new Error(br(29));return n[h]=f,l},addMatcher(u,f){return i.push({matcher:u,reducer:f}),l},addDefaultCase(u){return s=u,l}};return e(l),[n,i,s]}function y2(e){return typeof e=="function"}function v2(e,n){let[i,s,l]=cy(n),u;if(y2(e))u=()=>$m(e());else{const h=$m(e);u=()=>h}function f(h=u(),p){let v=[i[p.type],...s.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return v.filter(y=>!!y).length===0&&(v=[l]),v.reduce((y,b)=>{if(b)if(Sn(y)){const w=b(y,p);return w===void 0?y:w}else{if(kr(y))return ay(y,m=>b(m,p));{const m=b(y,p);if(m===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return y},h)}return f.getInitialState=u,f}var _2=Symbol.for("rtk-slice-createasyncthunk");function E2(e,n){return`${e}/${n}`}function w2({creators:e}={}){var i;const n=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[_2];return function(l){const{name:u,reducerPath:f=u}=l;if(!u)throw new Error(br(11));const h=(typeof l.reducers=="function"?l.reducers(x2()):l.reducers)||{},p=Object.keys(h),v={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(x,k){const T=typeof x=="string"?x:x.type;if(!T)throw new Error(br(12));if(T in v.sliceCaseReducersByType)throw new Error(br(13));return v.sliceCaseReducersByType[T]=k,y},addMatcher(x,k){return v.sliceMatchers.push({matcher:x,reducer:k}),y},exposeAction(x,k){return v.actionCreators[x]=k,y},exposeCaseReducer(x,k){return v.sliceCaseReducersByName[x]=k,y}};p.forEach(x=>{const k=h[x],T={reducerName:x,type:E2(u,x),createNotation:typeof l.reducers=="function"};T2(k)?k2(T,k,y,n):b2(T,k,y)});function b(){const[x={},k=[],T=void 0]=typeof l.extraReducers=="function"?cy(l.extraReducers):[l.extraReducers],F={...x,...v.sliceCaseReducersByType};return v2(l.initialState,z=>{for(let V in F)z.addCase(V,F[V]);for(let V of v.sliceMatchers)z.addMatcher(V.matcher,V.reducer);for(let V of k)z.addMatcher(V.matcher,V.reducer);T&&z.addDefaultCase(T)})}const m=x=>x,w=new Map;let _;function S(x,k){return _||(_=b()),_(x,k)}function R(){return _||(_=b()),_.getInitialState()}function O(x,k=!1){function T(z){let V=z[x];return typeof V>"u"&&k&&(V=R()),V}function F(z=m){const V=qm(w,k,()=>new WeakMap);return qm(V,z,()=>{const fe={};for(const[te,oe]of Object.entries(l.selectors??{}))fe[te]=S2(oe,z,R,k);return fe})}return{reducerPath:x,getSelectors:F,get selectors(){return F(T)},selectSlice:T}}const N={name:u,reducer:S,actions:v.actionCreators,caseReducers:v.sliceCaseReducersByName,getInitialState:R,...O(f),injectInto(x,{reducerPath:k,...T}={}){const F=k??f;return x.inject({reducerPath:F,reducer:S},T),{...N,...O(F,!0)}}};return N}}function S2(e,n,i,s){function l(u,...f){let h=n(u);return typeof h>"u"&&s&&(h=i()),e(h,...f)}return l.unwrapped=e,l}var fy=w2();function x2(){function e(n,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...i}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...i){return n(...i)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:i}},asyncThunk:e}}function b2({type:e,reducerName:n,createNotation:i},s,l){let u,f;if("reducer"in s){if(i&&!C2(s))throw new Error(br(17));u=s.reducer,f=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,f?Gm(e,f):Gm(e))}function T2(e){return e._reducerDefinitionType==="asyncThunk"}function C2(e){return e._reducerDefinitionType==="reducerWithPrepare"}function k2({type:e,reducerName:n},i,s,l){if(!l)throw new Error(br(18));const{payloadCreator:u,fulfilled:f,pending:h,rejected:p,settled:v,options:y}=i,b=l(e,u,y);s.exposeAction(n,b),f&&s.addCase(b.fulfilled,f),h&&s.addCase(b.pending,h),p&&s.addCase(b.rejected,p),v&&s.addMatcher(b.settled,v),s.exposeCaseReducer(n,{fulfilled:f||Fs,pending:h||Fs,rejected:p||Fs,settled:v||Fs})}function Fs(){}function br(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 R2={useStartScreen:void 0,formValues:{}},dy=fy({name:"start-screen",initialState:R2,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,n){e.startScreenStatus="HIDDEN",e.formValues=n.payload}}}),{enableStartScreen:O2,disableStartScreen:N2,startChat:A2,showStartScreen:I2}=dy.actions,D2=dy.reducer,hy="RESET_CHAT_STATE",P2=()=>({type:Z0}),M2=()=>({type:hy}),Wm=e=>(n,i)=>{const s=i();return n({type:hf,payload:{chunkId:e}}),fetch(`/cms/public/vector-store/chunks/${e}`,{headers:{"Accept-Language":s.intl.locale}}).then(l=>{if(!l.ok)throw n({type:W0}),new Error(`HTTP error! Status: ${l.status}`);return l.json()}).then(l=>n({type:V0,payload:l}))},F2=()=>({type:pf}),nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function L2(e,n=0){return(nt[e[n+0]]+nt[e[n+1]]+nt[e[n+2]]+nt[e[n+3]]+"-"+nt[e[n+4]]+nt[e[n+5]]+"-"+nt[e[n+6]]+nt[e[n+7]]+"-"+nt[e[n+8]]+nt[e[n+9]]+"-"+nt[e[n+10]]+nt[e[n+11]]+nt[e[n+12]]+nt[e[n+13]]+nt[e[n+14]]+nt[e[n+15]]).toLowerCase()}let Bu;const B2=new Uint8Array(16);function j2(){if(!Bu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bu=crypto.getRandomValues.bind(crypto)}return Bu(B2)}const U2=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Km={randomUUID:U2};function Bc(e,n,i){var l;if(Km.randomUUID&&!e)return Km.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??j2();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,L2(s)}const vf="CONNECT",_f="CONNECTING",Ef="CONNECTED",wf="DISCONNECTED",Sf="RECONNECTED",xf="RESTORE_SESSION_ID",ha="START",pa="CLEAR_SESSION_ID",H2=[vf,_f,Ef,wf,Sf,xf],z2=(e,n)=>({type:vf,clientName:e,querystrings:n}),G2=e=>({type:xf,sessionId:e}),$2=()=>({type:_f}),q2=()=>({type:Ef}),V2=()=>({type:wf}),W2=()=>({type:Sf}),py=(e,n)=>(i,s)=>{const l=s().connection,u=s().startScreen.formValues;let f=l.sessionId;f===void 0&&(f=Bc());let h=l.userId;if(h===void 0){const p=Pu.get("bubble-chat-userId")||Pu.get("bf-webclient-userId");h=p||Bc(),Pu.set("bubble-chat-userId",h)}i({type:ha,payload:{sessionId:f,userId:h,clientName:e,querystrings:{...n,...u}}})},ma=(e,n)=>(i,s)=>{const l=s().connection.sessionId||"";if(i(K2(l)),i(M2()),s().startScreen.useStartScreen)i(I2());else return i(py(e,n))},K2=e=>({type:pa,payload:{sessionId:e}}),Je=()=>{const e=aa();return i=>{const s=e.formatMessage({id:i});return s===i?void 0:s}};var En=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(En||{}),my=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(my||{});const Z2="_container_q2uun_1",Q2="_chatcontent_q2uun_6",X2="_accessabilityHidden_q2uun_12",ju={container:Z2,chatcontent:Q2,accessabilityHidden:X2},Y2="_messageContainer_1m8fy_1",J2="_messages_1m8fy_13",Zm={messageContainer:Y2,messages:J2};function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},_n.apply(this,arguments)}const ex=["children","options"],se={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",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Qm;(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"})(Qm||(Qm={}));const Xm=["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,n)=>(e[n.toLowerCase()]=n,e),{class:"className",for:"htmlFor"}),Ym={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},tx=["style","script"],rx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,nx=/mailto:/i,ix=/\n{2,}$/,gy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,ox=/^ *> ?/gm,sx=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,ax=/^ {2,}\n/,lx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,vy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,ux=/^(`+)((?:\\`|[^`])+)\1/,cx=/^(?:\n *)*\n/,fx=/\r\n?/g,dx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,hx=/^\[\^([^\]]+)]/,px=/\f/g,mx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,gx=/^\s*?\[(x|\s)\]/,_y=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ey=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,yx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sy=/^<!--[\s\S]*?(?:-->)/,vx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Uc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,_x=/^\{.*\}$/,Ex=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wx=/^<([^ >]+@[^ >]+)>/,Sx=/^<([^ >]+:\/[^ >]+)>/,xx=/-([a-z])?/gi,xy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,bx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Tx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Cx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,kx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Rx=/\t/g,Ox=/(^ *\||\| *$)/g,Nx=/^ *:-+: *$/,Ax=/^ *:-+ *$/,Ix=/^ *-+: *$/,ga="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Dx=new RegExp(`^([*_])\\1${ga}\\1\\1(?!\\1)`),Px=new RegExp(`^([*_])${ga}\\1(?!\\1)`),Mx=new RegExp(`^(==)${ga}\\1`),Fx=new RegExp(`^(~~)${ga}\\1`),Lx=/^\\([^0-9A-Za-z\s])/,Uu=/\\([^0-9A-Za-z\s])/g,Bx=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,jx=/^\n+/,Ux=/^([ \t]*)/,Hx=/\\([^\\])/g,zx=/(?:^|\n)( *)$/,bf="(?:\\d+\\.)",Tf="(?:[*+-])";function by(e){return"( *)("+(e===1?bf:Tf)+") +"}const Ty=by(1),Cy=by(2);function ky(e){return new RegExp("^"+(e===1?Ty:Cy))}const Gx=ky(1),$x=ky(2);function Ry(e){return new RegExp("^"+(e===1?Ty:Cy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?bf:Tf)+" )[^\\n]*)*(\\n|$)","gm")}const qx=Ry(1),Vx=Ry(2);function Oy(e){const n=e===1?bf:Tf;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const Ny=Oy(1),Ay=Oy(2);function Jm(e,n){const i=n===1,s=i?Ny:Ay,l=i?qx:Vx,u=i?Gx:$x;return{match:Yn(function(f,h){const p=zx.exec(h.prevCapture);return p&&(h.list||!h.inline&&!h.simple)?s.exec(f=p[1]+f):null}),order:1,parse(f,h,p){const v=i?+f[2]:void 0,y=f[0].replace(ix,`
85
85
  `).match(l);let b=!1;return{items:y.map(function(m,w){const _=u.exec(m)[0].length,S=new RegExp("^ {1,"+_+"}","gm"),R=m.replace(S,"").replace(u,""),O=w===y.length-1,N=R.indexOf(`
86
86
 
87
87
  `)!==-1||O&&b;b=N;const x=p.inline,k=p.list;let T;p.list=!0,N?(p.inline=!1,T=io(R)+`
88
88
 
89
- `):(p.inline=!0,T=io(R));const F=h(T,p);return p.inline=x,p.list=k,F}),ordered:i,start:v}},render:(f,h,p)=>e(f.ordered?"ol":"ul",{key:p.key,start:f.type===se.orderedList?f.start:void 0},f.items.map(function(v,y){return e("li",{key:y},h(v,p))}))}}const $x=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),qx=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Iy=[gy,yy,vy,_y,wy,Ey,xy,Ny,Ay],Vx=[...Iy,/^[^\n]+(?: \n|\n{2,})/,jc,Sy,Uc];function io(e){let n=e.length;for(;n>0&&e[n-1]<=" ";)n--;return e.slice(0,n)}function Vi(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 Wx(e){return Ox.test(e)?"right":kx.test(e)?"center":Rx.test(e)?"left":null}function eg(e,n,i,s){const l=i.inTable;i.inTable=!0;let u=[[]],f="";function h(){if(!f)return;const p=u[u.length-1];p.push.apply(p,n(f,i)),f=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,v,y)=>{p.trim()==="|"&&(h(),s)?v!==0&&v!==y.length-1&&u.push([]):f+=p}),h(),i.inTable=l,u}function Zx(e,n,i){i.inline=!0;const s=e[2]?e[2].replace(Cx,"").split("|").map(Wx):[],l=e[3]?function(f,h,p){return f.trim().split(`
90
- `).map(function(v){return eg(v,h,p,!0)})}(e[3],n,i):[],u=eg(e[1],n,i,!!l.length);return i.inline=!1,l.length?{align:s,cells:l,header:u,type:se.table}:{children:u,type:se.paragraph}}function tg(e,n){return e.align[n]==null?{}:{textAlign:e.align[n]}}function Yn(e){return e.inline=1,e}function Wr(e){return Yn(function(n,i){return i.inline?e.exec(n):null})}function Zr(e){return Yn(function(n,i){return i.inline||i.simple?e.exec(n):null})}function wr(e){return function(n,i){return i.inline||i.simple?null:e.exec(n)}}function Wi(e){return Yn(function(n){return e.exec(n)})}function Kx(e,n){if(n.inline||n.simple)return null;let i="";e.split(`
89
+ `):(p.inline=!0,T=io(R));const F=h(T,p);return p.inline=x,p.list=k,F}),ordered:i,start:v}},render:(f,h,p)=>e(f.ordered?"ol":"ul",{key:p.key,start:f.type===se.orderedList?f.start:void 0},f.items.map(function(v,y){return e("li",{key:y},h(v,p))}))}}const Wx=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Kx=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Iy=[gy,yy,vy,_y,wy,Ey,xy,Ny,Ay],Zx=[...Iy,/^[^\n]+(?: \n|\n{2,})/,jc,Sy,Uc];function io(e){let n=e.length;for(;n>0&&e[n-1]<=" ";)n--;return e.slice(0,n)}function Vi(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 Qx(e){return Ix.test(e)?"right":Nx.test(e)?"center":Ax.test(e)?"left":null}function eg(e,n,i,s){const l=i.inTable;i.inTable=!0;let u=[[]],f="";function h(){if(!f)return;const p=u[u.length-1];p.push.apply(p,n(f,i)),f=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,v,y)=>{p.trim()==="|"&&(h(),s)?v!==0&&v!==y.length-1&&u.push([]):f+=p}),h(),i.inTable=l,u}function Xx(e,n,i){i.inline=!0;const s=e[2]?e[2].replace(Ox,"").split("|").map(Qx):[],l=e[3]?function(f,h,p){return f.trim().split(`
90
+ `).map(function(v){return eg(v,h,p,!0)})}(e[3],n,i):[],u=eg(e[1],n,i,!!l.length);return i.inline=!1,l.length?{align:s,cells:l,header:u,type:se.table}:{children:u,type:se.paragraph}}function tg(e,n){return e.align[n]==null?{}:{textAlign:e.align[n]}}function Yn(e){return e.inline=1,e}function Wr(e){return Yn(function(n,i){return i.inline?e.exec(n):null})}function Kr(e){return Yn(function(n,i){return i.inline||i.simple?e.exec(n):null})}function wr(e){return function(n,i){return i.inline||i.simple?null:e.exec(n)}}function Wi(e){return Yn(function(n){return e.exec(n)})}function Yx(e,n){if(n.inline||n.simple)return null;let i="";e.split(`
91
91
  `).every(l=>(l+=`
92
- `,!Iy.some(u=>u.test(l))&&(i+=l,!!l.trim())));const s=io(i);return s==""?null:[i,,s]}function Qx(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 rg(e){return e.replace(Bx,"$1")}function Zs(e,n,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!0,i.simple=!0;const u=e(n,i);return i.inline=s,i.simple=l,u}function Xx(e,n,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!1,i.simple=!0;const u=e(n,i);return i.inline=s,i.simple=l,u}function Yx(e,n,i){const s=i.inline||!1;i.inline=!1;const l=e(n,i);return i.inline=s,l}const Hu=(e,n,i)=>({children:Zs(n,e[2],i)});function zu(){return{}}function Gu(){return null}function Jx(...e){return e.filter(Boolean).join(" ")}function $u(e,n,i){let s=e;const l=n.split(".");for(;l.length&&(s=s[l[0]],s!==void 0);)l.shift();return s||i}function eb(e="",n={}){function i(m,w,..._){const S=$u(n.overrides,`${m}.props`,{});return n.createElement(function(R,O){const N=$u(O,R);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:$u(O,`${R}.component`,R):R}(m,n.overrides),_n({},w,S,{className:Jx(w==null?void 0:w.className,S.className)||void 0}),..._)}function s(m){m=m.replace(dx,"");let w=!1;n.forceInline?w=!0:n.forceBlock||(w=bx.test(m)===!1);const _=v(p(w?m:`${io(m).replace(Fx,"")}
92
+ `,!Iy.some(u=>u.test(l))&&(i+=l,!!l.trim())));const s=io(i);return s==""?null:[i,,s]}function Jx(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 rg(e){return e.replace(Hx,"$1")}function Ks(e,n,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!0,i.simple=!0;const u=e(n,i);return i.inline=s,i.simple=l,u}function eb(e,n,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!1,i.simple=!0;const u=e(n,i);return i.inline=s,i.simple=l,u}function tb(e,n,i){const s=i.inline||!1;i.inline=!1;const l=e(n,i);return i.inline=s,l}const Hu=(e,n,i)=>({children:Ks(n,e[2],i)});function zu(){return{}}function Gu(){return null}function rb(...e){return e.filter(Boolean).join(" ")}function $u(e,n,i){let s=e;const l=n.split(".");for(;l.length&&(s=s[l[0]],s!==void 0);)l.shift();return s||i}function nb(e="",n={}){function i(m,w,..._){const S=$u(n.overrides,`${m}.props`,{});return n.createElement(function(R,O){const N=$u(O,R);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:$u(O,`${R}.component`,R):R}(m,n.overrides),_n({},w,S,{className:rb(w==null?void 0:w.className,S.className)||void 0}),..._)}function s(m){m=m.replace(mx,"");let w=!1;n.forceInline?w=!0:n.forceBlock||(w=kx.test(m)===!1);const _=v(p(w?m:`${io(m).replace(jx,"")}
93
93
 
94
- `,{inline:w}));for(;typeof _[_.length-1]=="string"&&!_[_.length-1].trim();)_.pop();if(n.wrapper===null)return _;const S=n.wrapper||(w?"span":"div");let R;if(_.length>1||n.forceWrapper)R=_;else{if(_.length===1)return R=_[0],typeof R=="string"?i("span",{key:"outer"},R):R;R=null}return n.createElement(S,{key:"outer"},R)}function l(m,w){const _=w.match(J2);return _?_.reduce(function(S,R){const O=R.indexOf("=");if(O!==-1){const N=function(F){return F.indexOf("-")!==-1&&F.match(mx)===null&&(F=F.replace(Ex,function(z,V){return V.toUpperCase()})),F}(R.slice(0,O)).trim(),x=function(F){const z=F[0];return(z==='"'||z==="'")&&F.length>=2&&F[F.length-1]===z?F.slice(1,-1):F}(R.slice(O+1).trim()),k=Xm[N]||N;if(k==="ref")return S;const T=S[k]=function(F,z,V,fe){return z==="style"?V.split(/;\s?/).reduce(function(te,oe){const pe=oe.slice(0,oe.indexOf(":"));return te[pe.trim().replace(/(-[a-z])/g,ue=>ue[1].toUpperCase())]=oe.slice(pe.length+1).trim(),te},{}):z==="href"||z==="src"?fe(V,F,z):(V.match(gx)&&(V=V.slice(1,V.length-1)),V==="true"||V!=="false"&&V)}(m,N,x,n.sanitizer);typeof T=="string"&&(jc.test(T)||Uc.test(T))&&(S[k]=s(T.trim()))}else R!=="style"&&(S[Xm[R]||R]=!0);return S},{}):null}n.overrides=n.overrides||{},n.sanitizer=n.sanitizer||Qx,n.slugify=n.slugify||Vi,n.namedCodesToUnicode=n.namedCodesToUnicode?_n({},Ym,n.namedCodesToUnicode):Ym,n.createElement=n.createElement||B.createElement;const u=[],f={},h={[se.blockQuote]:{match:wr(gy),order:1,parse(m,w,_){const[,S,R]=m[0].replace(rx,"").match(nx);return{alert:S,children:w(R,_)}},render(m,w,_){const S={key:_.key};return m.alert&&(S.className="markdown-alert-"+n.slugify(m.alert.toLowerCase(),Vi),m.children.unshift({attrs:{},children:[{type:se.text,text:m.alert}],noInnerParse:!0,type:se.htmlBlock,tag:"header"})),i("blockquote",S,w(m.children,_))}},[se.breakLine]:{match:Wi(ix),order:1,parse:zu,render:(m,w,_)=>i("br",{key:_.key})},[se.breakThematic]:{match:wr(ox),order:1,parse:zu,render:(m,w,_)=>i("hr",{key:_.key})},[se.codeBlock]:{match:wr(vy),order:0,parse:m=>({lang:void 0,text:io(m[0].replace(/^ {4}/gm,"")).replace(Uu,"$1")}),render:(m,w,_)=>i("pre",{key:_.key},i("code",_n({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[se.codeFenced]:{match:wr(yy),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4].replace(Uu,"$1"),type:se.codeBlock})},[se.codeInline]:{match:Zr(sx),order:3,parse:m=>({text:m[2].replace(Uu,"$1")}),render:(m,w,_)=>i("code",{key:_.key},m.text)},[se.footnote]:{match:wr(ux),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Gu},[se.footnoteReference]:{match:Wr(cx),order:1,parse:m=>({target:`#${n.slugify(m[1],Vi)}`,text:m[1]}),render:(m,w,_)=>i("a",{key:_.key,href:n.sanitizer(m.target,"a","href")},i("sup",{key:_.key},m.text))},[se.gfmTask]:{match:Wr(hx),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,w,_)=>i("input",{checked:m.completed,key:_.key,readOnly:!0,type:"checkbox"})},[se.heading]:{match:wr(n.enforceAtxHeadings?Ey:_y),order:1,parse:(m,w,_)=>({children:Zs(w,m[2],_),id:n.slugify(m[2],Vi),level:m[1].length}),render:(m,w,_)=>i(`h${m.level}`,{id:m.id,key:_.key},w(m.children,_))},[se.headingSetext]:{match:wr(wy),order:0,parse:(m,w,_)=>({children:Zs(w,m[1],_),level:m[2]==="="?1:2,type:se.heading})},[se.htmlBlock]:{match:Wi(jc),order:1,parse(m,w,_){const[,S]=m[3].match(Lx),R=new RegExp(`^${S}`,"gm"),O=m[3].replace(R,""),N=(x=O,Vx.some(V=>V.test(x))?Yx:Zs);var x;const k=m[1].toLowerCase(),T=Y2.indexOf(k)!==-1,F=(T?k:m[1]).trim(),z={attrs:l(F,m[2]),noInnerParse:T,tag:F};return _.inAnchor=_.inAnchor||k==="a",T?z.text=m[3]:z.children=N(w,O,_),_.inAnchor=!1,z},render:(m,w,_)=>i(m.tag,_n({key:_.key},m.attrs),m.text||(m.children?w(m.children,_):""))},[se.htmlSelfClosing]:{match:Wi(Uc),order:1,parse(m){const w=m[1].trim();return{attrs:l(w,m[2]||""),tag:w}},render:(m,w,_)=>i(m.tag,_n({},m.attrs,{key:_.key}))},[se.htmlComment]:{match:Wi(Sy),order:1,parse:()=>({}),render:Gu},[se.image]:{match:Zr(qx),order:1,parse:m=>({alt:m[1],target:rg(m[2]),title:m[3]}),render:(m,w,_)=>i("img",{key:_.key,alt:m.alt||void 0,title:m.title||void 0,src:n.sanitizer(m.target,"img","src")})},[se.link]:{match:Wr($x),order:3,parse:(m,w,_)=>({children:Xx(w,m[1],_),target:rg(m[2]),title:m[3]}),render:(m,w,_)=>i("a",{key:_.key,href:n.sanitizer(m.target,"a","href"),title:m.title},w(m.children,_))},[se.linkAngleBraceStyleDetector]:{match:Wr(_x),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],type:se.link})},[se.linkBareUrlDetector]:{match:Yn((m,w)=>w.inAnchor||n.disableAutoLink?null:Wr(yx)(m,w)),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],title:void 0,type:se.link})},[se.linkMailtoDetector]:{match:Wr(vx),order:0,parse(m){let w=m[1],_=m[1];return ex.test(_)||(_="mailto:"+_),{children:[{text:w.replace("mailto:",""),type:se.text}],target:_,type:se.link}}},[se.orderedList]:Jm(i,1),[se.unorderedList]:Jm(i,2),[se.newlineCoalescer]:{match:wr(ax),order:3,parse:zu,render:()=>`
95
- `},[se.paragraph]:{match:Yn(Kx),order:3,parse:Hu,render:(m,w,_)=>i("p",{key:_.key},w(m.children,_))},[se.ref]:{match:Wr(wx),order:0,parse:m=>(f[m[1]]={target:m[2],title:m[4]},{}),render:Gu},[se.refImage]:{match:Zr(Sx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,w,_)=>f[m.ref]?i("img",{key:_.key,alt:m.alt,src:n.sanitizer(f[m.ref].target,"img","src"),title:f[m.ref].title}):null},[se.refLink]:{match:Wr(xx),order:0,parse:(m,w,_)=>({children:w(m[1],_),fallbackChildren:m[0],ref:m[2]}),render:(m,w,_)=>f[m.ref]?i("a",{key:_.key,href:n.sanitizer(f[m.ref].target,"a","href"),title:f[m.ref].title},w(m.children,_)):i("span",{key:_.key},m.fallbackChildren)},[se.table]:{match:wr(xy),order:1,parse:Zx,render(m,w,_){const S=m;return i("table",{key:_.key},i("thead",null,i("tr",null,S.header.map(function(R,O){return i("th",{key:O,style:tg(S,O)},w(R,_))}))),i("tbody",null,S.cells.map(function(R,O){return i("tr",{key:O},R.map(function(N,x){return i("td",{key:x,style:tg(S,x)},w(N,_))}))})))}},[se.text]:{match:Wi(Mx),order:4,parse:m=>({text:m[0].replace(px,(w,_)=>n.namedCodesToUnicode[_]?n.namedCodesToUnicode[_]:w)}),render:m=>m.text},[se.textBolded]:{match:Zr(Nx),order:2,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("strong",{key:_.key},w(m.children,_))},[se.textEmphasized]:{match:Zr(Ax),order:3,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("em",{key:_.key},w(m.children,_))},[se.textEscaped]:{match:Zr(Px),order:1,parse:m=>({text:m[1],type:se.text})},[se.textMarked]:{match:Zr(Ix),order:3,parse:Hu,render:(m,w,_)=>i("mark",{key:_.key},w(m.children,_))},[se.textStrikethroughed]:{match:Zr(Dx),order:3,parse:Hu,render:(m,w,_)=>i("del",{key:_.key},w(m.children,_))}};n.disableParsingRawHTML===!0&&(delete h[se.htmlBlock],delete h[se.htmlSelfClosing]);const p=function(m){let w=Object.keys(m);function _(S,R){let O,N,x=[],k="",T="";for(R.prevCapture=R.prevCapture||"";S;){let F=0;for(;F<w.length;){if(k=w[F],O=m[k],R.inline&&!O.match.inline){F++;continue}const z=O.match(S,R);if(z){T=z[0],R.prevCapture+=T,S=S.substring(T.length),N=O.parse(z,_,R),N.type==null&&(N.type=k),x.push(N);break}F++}}return R.prevCapture="",x}return w.sort(function(S,R){let O=m[S].order,N=m[R].order;return O!==N?O-N:S<R?-1:1}),function(S,R){return _(function(O){return O.replace(lx,`
96
- `).replace(fx,"").replace(Tx," ")}(S),R)}}(h),v=(y=function(m,w){return function(_,S,R){const O=m[_.type].render;return w?w(()=>O(_,S,R),_,S,R):O(_,S,R)}}(h,n.renderRule),function m(w,_={}){if(Array.isArray(w)){const S=_.key,R=[];let O=!1;for(let N=0;N<w.length;N++){_.key=N;const x=m(w[N],_),k=typeof x=="string";k&&O?R[R.length-1]+=x:x!==null&&R.push(x),O=k}return _.key=S,R}return y(w,m,_)});var y;const b=s(e);return u.length?i("div",null,b,i("footer",{key:"footer"},u.map(function(m){return i("div",{id:n.slugify(m.identifier,Vi),key:m.identifier},m.identifier,v(p(m.footnote,{inline:!0})))}))):b}const lr=e=>{let{children:n="",options:i}=e,s=function(l,u){if(l==null)return{};var f,h,p={},v=Object.keys(l);for(h=0;h<v.length;h++)u.indexOf(f=v[h])>=0||(p[f]=l[f]);return p}(e,X2);return B.cloneElement(eb(n,i),s)},tb="_generalConditionsContainer_55hjg_1",rb="_generalConditions_55hjg_1",nb="_generalConditionsHeader_55hjg_15",ib="_generalConditionsBody_55hjg_26",ob="_generalConditionsAccept_55hjg_35",Zi={generalConditionsContainer:tb,generalConditions:rb,generalConditionsHeader:nb,generalConditionsBody:ib,generalConditionsAccept:ob},sb=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),ab=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),lb="general-conditions.header",ub="general-conditions.body",ng="general-conditions.accept-conditions-note",cb=()=>{const e=Je(),[n,i]=B.useState(!1),s=()=>i(!n),l=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},u=e(lb),f=e(ng);return E.jsxs("div",{className:q(Zi.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&E.jsxs("div",{className:Zi.generalConditions,children:[E.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:q(Zi.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":n?"true":"false","aria-pressed":n?"true":"false",children:[E.jsx(lr,{children:u}),n?E.jsx(ab,{}):E.jsx(sb,{})]}),E.jsx("div",{className:q(Zi.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:n&&E.jsx(lr,{children:e(ub)||""})})]}),!!(f!=null&&f.length)&&E.jsx("div",{className:q(Zi.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:E.jsx(lr,{children:e(ng)||""})})]})},fb="_message_1qom7_1",db="_messageBot_1qom7_9",hb="_messageBotLast_1qom7_19",pb="_avatar_1qom7_19",mb="_messageBotFirst_1qom7_24",gb="_messageBotAnimated_1qom7_37",yb="_messageGuest_1qom7_48",vb="_messageGuestFirst_1qom7_54",_b="_messageGuestLast_1qom7_60",Eb="_botAvatar_1qom7_74",wb="_agentAvatar_1qom7_78",Sb="_bubble_1qom7_82",xb="_bubbleContent_1qom7_88",bb="_bubbleLeft_1qom7_102",Tb="_leftText_1qom7_113",Cb="_bubbleRight_1qom7_120",kb="_rightText_1qom7_130",Rb="_sourceInfoReference_1qom7_162",de={message:fb,messageBot:db,messageBotLast:hb,avatar:pb,messageBotFirst:mb,messageBotAnimated:gb,messageGuest:yb,messageGuestFirst:vb,messageGuestLast:_b,botAvatar:Eb,agentAvatar:wb,bubble:Sb,bubbleContent:xb,bubbleLeft:bb,leftText:Tb,bubbleRight:Cb,rightText:kb,sourceInfoReference:Rb},Ob="_botMessageActions_1dl7x_1",Nb="_alwaysVisible_1dl7x_22",Ab="_reported_1dl7x_29",Ib="_action_1dl7x_33",Kr={botMessageActions:Ob,alwaysVisible:Nb,reported:Ab,action:Ib},Db=({alwaysVisible:e,reaction:n,botMessageRef:i,onReaction:s})=>{const l=Je(),[u,f]=B.useState(!1),h=v=>()=>s(v),p=B.useCallback(async()=>{if(i.current)try{f(!0);const v=i.current.innerHTML,y=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([y],{type:"text/plain"})})]),await new Promise(b=>setTimeout(b,1500))}finally{f(!1)}},[i]);return E.jsxs("div",{className:q(Kr.botMessageActions,e&&Kr.alwaysVisible,n&&Kr.reported),children:[E.jsx("button",{className:q(Kr.action,n==="GOOD"&&Kr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:h(n==="GOOD"?null:"GOOD"),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="GOOD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Kr.action,n==="BAD"&&Kr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:h(n==="BAD"?null:"BAD"),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="BAD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Kr.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?E.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"}):E.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"})})})]})},Dy=B.forwardRef(({message:e,isAnimated:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:f},h)=>{const p=Je(),v=B.useRef(null),y=e.sender.type===ge.UserType.BOT;return E.jsxs("li",{ref:h,className:q(de.message,de.messageBot,i&&de.lastMessage,s&&de.messageBotFirst,l&&de.messageBotLast,"chat__bubbleContainer",n&&de.messageBotAnimated,n&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,y?de.botAvatar:de.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),E.jsx("div",{ref:v,className:q(de.bubble,de.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:E.jsx("div",{className:q(de.leftText),children:u})}),f&&E.jsx(Db,{alwaysVisible:i&&l,reaction:e.reaction,botMessageRef:v,onReaction:f})]})}),Pb="_button_3ui4g_1",Mb="_buttonDefault_3ui4g_13",Fb="_buttonPrimary_3ui4g_28",oo={button:Pb,buttonDefault:Mb,buttonPrimary:Fb},ya=({className:e,children:n,...i})=>E.jsx("button",{className:q(oo.button,e),type:"button",...i,children:n}),Lb="_title_b904h_1",Bb="_subtitle_b904h_6",jb="_buttons_b904h_11",Ub="_button_b904h_11",Hb="_imageContainer_b904h_34",zb="_image_b904h_34",Gb="_video_container_b904h_49",$b="_video_b904h_49",qb="_only_b904h_63",wt={title:Lb,subtitle:Bb,buttons:jb,button:Ub,imageContainer:Hb,image:zb,video_container:Gb,video:$b,only:qb},Vb=({buttons:e,onButtonClick:n})=>E.jsx("div",{className:q(wt.buttons,"chat__bubbleButtons"),children:e.map((i,s)=>E.jsx(ya,{className:q(wt.button,"chat__bubbleButton"),onClick:()=>n(i),children:i.title},s))});var Ls={},Bs={},js={},ig;function Wb(){if(ig)return js;ig=1,Object.defineProperty(js,"__esModule",{value:!0});var e=Jn(),n=i(e);function i(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l.default=s,l}return js.default=function(s,l,u){return n.createElement("a",{href:s,key:u},l)},js}var Us={},og;function Zb(){return og||(og=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=function(e){return e}),Us}var Hs={},qu,sg;function Kb(){return sg||(sg=1,qu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),qu}var Vu,ag;function Qb(){return ag||(ag=1,Vu=/[\0-\x1F\x7F-\x9F]/),Vu}var Wu,lg;function Xb(){return lg||(lg=1,Wu=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Wu}var Zu,ug;function Yb(){return ug||(ug=1,Zu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Zu}var Ku,cg;function Jb(){return cg||(cg=1,Ku=function(e){var n={};n.src_Any=Kb().source,n.src_Cc=Qb().source,n.src_Z=Xb().source,n.src_P=Yb().source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");var i="[><|]";return n.src_pseudo_letter="(?:(?!"+i+"|"+n.src_ZPCc+")"+n.src_Any+")",n.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]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+i+"|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}),Ku}var Qu,fg;function eT(){if(fg)return Qu;fg=1;function e(x){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(T){T&&Object.keys(T).forEach(function(F){x[F]=T[F]})}),x}function n(x){return Object.prototype.toString.call(x)}function i(x){return n(x)==="[object String]"}function s(x){return n(x)==="[object Object]"}function l(x){return n(x)==="[object RegExp]"}function u(x){return n(x)==="[object Function]"}function f(x){return x.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(x){return Object.keys(x||{}).reduce(function(k,T){return k||h.hasOwnProperty(T)},!1)}var v={"http:":{validate:function(x,k,T){var F=x.slice(k);return T.re.http||(T.re.http=new RegExp("^\\/\\/"+T.re.src_auth+T.re.src_host_port_strict+T.re.src_path,"i")),T.re.http.test(F)?F.match(T.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(x,k,T){var F=x.slice(k);return T.re.no_http||(T.re.no_http=new RegExp("^"+T.re.src_auth+"(?:localhost|(?:(?:"+T.re.src_domain+")\\.)+"+T.re.src_domain_root+")"+T.re.src_port+T.re.src_host_terminator+T.re.src_path,"i")),T.re.no_http.test(F)?k>=3&&x[k-3]===":"||k>=3&&x[k-3]==="/"?0:F.match(T.re.no_http)[0].length:0}},"mailto:":{validate:function(x,k,T){var F=x.slice(k);return T.re.mailto||(T.re.mailto=new RegExp("^"+T.re.src_email_name+"@"+T.re.src_host_strict,"i")),T.re.mailto.test(F)?F.match(T.re.mailto)[0].length:0}}},y="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]",b="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(x){x.__index__=-1,x.__text_cache__=""}function w(x){return function(k,T){var F=k.slice(T);return x.test(F)?F.match(x)[0].length:0}}function _(){return function(x,k){k.normalize(x)}}function S(x){var k=x.re=Jb()(x.__opts__),T=x.__tlds__.slice();x.onCompile(),x.__tlds_replaced__||T.push(y),T.push(k.src_xn),k.src_tlds=T.join("|");function F(te){return te.replace("%TLDS%",k.src_tlds)}k.email_fuzzy=RegExp(F(k.tpl_email_fuzzy),"i"),k.link_fuzzy=RegExp(F(k.tpl_link_fuzzy),"i"),k.link_no_ip_fuzzy=RegExp(F(k.tpl_link_no_ip_fuzzy),"i"),k.host_fuzzy_test=RegExp(F(k.tpl_host_fuzzy_test),"i");var z=[];x.__compiled__={};function V(te,oe){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+oe)}Object.keys(x.__schemas__).forEach(function(te){var oe=x.__schemas__[te];if(oe!==null){var pe={validate:null,link:null};if(x.__compiled__[te]=pe,s(oe)){l(oe.validate)?pe.validate=w(oe.validate):u(oe.validate)?pe.validate=oe.validate:V(te,oe),u(oe.normalize)?pe.normalize=oe.normalize:oe.normalize?V(te,oe):pe.normalize=_();return}if(i(oe)){z.push(te);return}V(te,oe)}}),z.forEach(function(te){x.__compiled__[x.__schemas__[te]]&&(x.__compiled__[te].validate=x.__compiled__[x.__schemas__[te]].validate,x.__compiled__[te].normalize=x.__compiled__[x.__schemas__[te]].normalize)}),x.__compiled__[""]={validate:null,normalize:_()};var fe=Object.keys(x.__compiled__).filter(function(te){return te.length>0&&x.__compiled__[te]}).map(f).join("|");x.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","i"),x.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","ig"),x.re.pretest=RegExp("("+x.re.schema_test.source+")|("+x.re.host_fuzzy_test.source+")|@","i"),m(x)}function R(x,k){var T=x.__index__,F=x.__last_index__,z=x.__text_cache__.slice(T,F);this.schema=x.__schema__.toLowerCase(),this.index=T+k,this.lastIndex=F+k,this.raw=z,this.text=z,this.url=z}function O(x,k){var T=new R(x,k);return x.__compiled__[T.schema].normalize(T,x),T}function N(x,k){if(!(this instanceof N))return new N(x,k);k||p(x)&&(k=x,x={}),this.__opts__=e({},h,k),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},v,x),this.__compiled__={},this.__tlds__=b,this.__tlds_replaced__=!1,this.re={},S(this)}return N.prototype.add=function(k,T){return this.__schemas__[k]=T,S(this),this},N.prototype.set=function(k){return this.__opts__=e(this.__opts__,k),this},N.prototype.test=function(k){if(this.__text_cache__=k,this.__index__=-1,!k.length)return!1;var T,F,z,V,fe,te,oe,pe,ue;if(this.re.schema_test.test(k)){for(oe=this.re.schema_search,oe.lastIndex=0;(T=oe.exec(k))!==null;)if(V=this.testSchemaAt(k,T[2],oe.lastIndex),V){this.__schema__=T[2],this.__index__=T.index+T[1].length,this.__last_index__=T.index+T[0].length+V;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(pe=k.search(this.re.host_fuzzy_test),pe>=0&&(this.__index__<0||pe<this.__index__)&&(F=k.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(fe=F.index+F[1].length,(this.__index__<0||fe<this.__index__)&&(this.__schema__="",this.__index__=fe,this.__last_index__=F.index+F[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ue=k.indexOf("@"),ue>=0&&(z=k.match(this.re.email_fuzzy))!==null&&(fe=z.index+z[1].length,te=z.index+z[0].length,(this.__index__<0||fe<this.__index__||fe===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=fe,this.__last_index__=te))),this.__index__>=0},N.prototype.pretest=function(k){return this.re.pretest.test(k)},N.prototype.testSchemaAt=function(k,T,F){return this.__compiled__[T.toLowerCase()]?this.__compiled__[T.toLowerCase()].validate(k,F,this):0},N.prototype.match=function(k){var T=0,F=[];this.__index__>=0&&this.__text_cache__===k&&(F.push(O(this,T)),T=this.__last_index__);for(var z=T?k.slice(T):k;this.test(z);)F.push(O(this,T)),z=z.slice(this.__last_index__),T+=this.__last_index__;return F.length?F:null},N.prototype.tlds=function(k,T){return k=Array.isArray(k)?k:[k],T?(this.__tlds__=this.__tlds__.concat(k).sort().filter(function(F,z,V){return F!==V[z-1]}).reverse(),S(this),this):(this.__tlds__=k.slice(),this.__tlds_replaced__=!0,S(this),this)},N.prototype.normalize=function(k){k.schema||(k.url="http://"+k.url),k.schema==="mailto:"&&!/^mailto:/i.test(k.url)&&(k.url="mailto:"+k.url)},N.prototype.onCompile=function(){},Qu=N,Qu}const tT=JSON.parse('["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","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var dg;function rT(){if(dg)return Hs;dg=1,Object.defineProperty(Hs,"__esModule",{value:!0});var e=eT(),n=l(e),i=tT,s=l(i);function l(f){return f&&f.__esModule?f:{default:f}}var u=new n.default;return u.tlds(s.default),Hs.default=function(f){return u.match(f)},Hs}var zs={},hg;function nT(){return hg||(hg=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=function(e){return e}),zs}var pg;function iT(){if(pg)return Bs;pg=1,Object.defineProperty(Bs,"__esModule",{value:!0});var e=function(){function O(N,x){for(var k=0;k<x.length;k++){var T=x[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(N,T.key,T)}}return function(N,x,k){return x&&O(N.prototype,x),k&&O(N,k),N}}(),n=Jn(),i=m(n),s=Wb(),l=b(s),u=Zb(),f=b(u),h=rT(),p=b(h),v=nT(),y=b(v);function b(O){return O&&O.__esModule?O:{default:O}}function m(O){if(O&&O.__esModule)return O;var N={};if(O!=null)for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(N[x]=O[x]);return N.default=O,N}function w(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function _(O,N){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:O}function S(O,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);O.prototype=Object.create(N&&N.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(O,N):O.__proto__=N)}var R=function(O){S(N,O);function N(){return w(this,N),_(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return e(N,[{key:"parseString",value:function(k){var T=this;if(k==="")return k;var F=this.props.matchDecorator(k);if(!F)return k;var z=[],V=0;return F.forEach(function(fe,te){fe.index>V&&z.push(k.substring(V,fe.index));var oe=T.props.hrefDecorator(fe.url),pe=T.props.textDecorator(fe.text),ue=T.props.componentDecorator(oe,pe,te);z.push(ue),V=fe.lastIndex}),k.length>V&&z.push(k.substring(V)),z.length===1?z[0]:z}},{key:"parse",value:function(k){var T=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="string"?this.parseString(k):i.isValidElement(k)&&k.type!=="a"&&k.type!=="button"?i.cloneElement(k,{key:F},this.parse(k.props.children)):Array.isArray(k)?k.map(function(z,V){return T.parse(z,V)}):k}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),N}(i.Component);return R.defaultProps={componentDecorator:l.default,hrefDecorator:f.default,matchDecorator:p.default,textDecorator:y.default},Bs.default=R,Bs}var mg;function oT(){if(mg)return Ls;mg=1,Object.defineProperty(Ls,"__esModule",{value:!0});var e=iT(),n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}return Ls.default=n.default,Ls}var sT=oT();const aT=oa(sT),lT="_text_gp0s0_1",uT="_command_gp0s0_5",gg={text:lT,command:uT},Py=({text:e,commands:n=[],onLinkClick:i})=>{const s=h=>p=>(p.preventDefault(),h&&i(h),!1),l=(h,p,v)=>E.jsx("a",{onClick:s(h),role:"button",children:p},v),u=n.find(h=>e.startsWith(`/${h}`)),f=u?e.slice(u.length+1):e;return E.jsxs("div",{children:[u&&E.jsxs("code",{className:gg.command,children:["/",u]}),f.split(`
97
- `).map((h,p)=>E.jsxs("span",{className:gg.text,children:[E.jsx(aT,{componentDecorator:l,children:h}),E.jsx("br",{})]},p))]})},cT=({subtitle:e,onLinkClick:n})=>e?E.jsx("div",{className:wt.subtitle,children:E.jsx(Py,{text:e,onLinkClick:n})}):null,yg="newtab#",My=({markdown:e,markdownOptions:n={},onLinkClick:i})=>{const s=u=>f=>(f.preventDefault(),u&&i(u),!1),l=({title:u,href:f,children:h})=>f.indexOf(yg)===0?E.jsx("a",{href:f.slice(yg.length),title:u,target:"_blank",rel:"noopener noreferrer",children:h}):E.jsx("a",{onClick:s(f),title:u,href:f,children:h});return E.jsx(lr,{options:{...n,overrides:{a:l}},children:e})},fT=({text:e,onLinkClick:n})=>e?E.jsx("div",{children:E.jsx(My,{markdown:e,onLinkClick:n})}):null,dT=({title:e})=>e?E.jsx("h1",{className:wt.title,children:e}):null,hT=({title:e,text:n,subtitle:i,buttons:s,onButtonClick:l,onLinkClick:u})=>(e==null?void 0:e.length)||(n==null?void 0:n.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?E.jsxs("div",{className:q(de.bubbleContent),children:[E.jsx(dT,{title:e}),E.jsx(fT,{text:n,onLinkClick:u}),E.jsx(cT,{subtitle:i,onLinkClick:u}),E.jsx(Vb,{buttons:s,onButtonClick:l})]}):null,pT=({alt:e,imageUrl:n,itemUrl:i,hasBody:s})=>n?i?i.indexOf("youtube.com")>-1?E.jsx("div",{className:wt.video_container,children:E.jsx("iframe",{className:q(wt.video,{[wt.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):E.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})})}):E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})}):null,mT=({title:e,text:n,subtitle:i,imageUrl:s,itemUrl:l,buttons:u,onButtonClick:f,onLinkClick:h})=>{const p=!!(e!=null&&e.length)||!!(n!=null&&n.length)||!!(i!=null&&i.length)||!!(u!=null&&u.length);return E.jsxs("div",{className:q(wt.detailMessage),children:[E.jsx(pT,{hasBody:p,imageUrl:s,itemUrl:l,alt:e||i}),p&&E.jsx(hT,{title:e,text:n,subtitle:i,buttons:u,onLinkClick:h,onButtonClick:f})]})},gT=B.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:n,children:i},s)=>{const l=Je();return E.jsx("li",{ref:s,className:q(de.message,de.messageGuest,e&&de.messageGuestFirst,n&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:E.jsx("div",{className:q(de.rightText),children:i})})})}),yT="_markdown_nw7vg_1",Fy={markdown:yT},Gs="source-info-reference",vT=({markdown:e,className:n,onLinkClick:i})=>{const s=ti(),l=_T(),u=h=>p=>{const v=p.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(p.stopPropagation(),s(Wm(h)))},f=h=>()=>{s(Wm(h))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Gs}`).forEach(h=>{var y,b,m,w;const p=h.previousSibling;p&&p.nodeType===Node.TEXT_NODE&&((y=p.textContent)!=null&&y.endsWith(" "))&&((b=p.textContent)!=null&&b.trim().length)&&h.classList.add(`${Gs}--before-space`);const v=h.nextSibling;v&&v.nodeType===Node.TEXT_NODE&&((m=v.textContent)!=null&&m.startsWith(" "))&&((w=v.textContent)!=null&&w.trim().length)&&h.classList.add(`${Gs}--after-space`)})},[e]),E.jsx("div",{className:q(de.bubbleContent,Fy.markdown,n),children:E.jsx(My,{markdown:e,onLinkClick:i,markdownOptions:{renderRule(h,p,v,y){return p.type===se.footnoteReference?E.jsx("span",{className:q(de.sourceInfoReference,Gs),children:E.jsx("a",{type:"button",tabIndex:0,onClick:f(p.text),onKeyDown:u(p.text),children:l(p.text)})},y.key):h()}}})})},_T=()=>{const e=[];return i=>{const s=e.indexOf(i);return s>-1?s+1:(e.push(i),e.length)}},ET=({text:e,commands:n,onLinkClick:i})=>E.jsx("div",{className:de.bubbleContent,children:E.jsx(Py,{text:e,commands:n,onLinkClick:i})}),wT=B.forwardRef(({message:e,commands:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:u,onButtonClick:f,onLinkClick:h},p)=>{const v=ST(e,n,f,h);switch(e.sender.type){case ge.UserType.GUEST:return E.jsx(gT,{ref:p,isFirstMessageBySender:s,isLastMessageBySender:l,children:v});default:{const y=b=>u(e._id,b);return E.jsx(Dy,{ref:p,message:e,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:y,children:v})}}}),ST=(e,n,i,s)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const l=e;return E.jsx(ET,{text:l.text,commands:n,onLinkClick:s})}case ge.MessageTypeEnum.DETAIL:{const l=e;return E.jsx(mT,{title:l.title,text:l.text,subtitle:l.subtitle,imageUrl:l.imageUrl,itemUrl:l.itemUrl,buttons:l.buttons,onButtonClick:i,onLinkClick:s})}case ge.MessageTypeEnum.MARKDOWN:{const l=e;return E.jsx(vT,{markdown:l.markdown,className:l.className,onLinkClick:s})}}},xT=(e,n)=>e.message._id===n.message._id&&e.message.reaction===n.message.reaction&&e.isLastMessage===n.isLastMessage&&e.isFirstMessageBySender===n.isFirstMessageBySender&&e.isLastMessageBySender===n.isLastMessageBySender,bT=r0.memo(wT,xT),TT="_ticontainer_xg0dn_1",CT="_tiblock_xg0dn_5",kT="_tidot_xg0dn_12",Ki={ticontainer:TT,tiblock:CT,tidot:kT},RT=({isTyping:e=!1})=>E.jsx("div",{className:Ki.ticontainer,children:E.jsx("div",{className:Ki.tiblock,children:e?E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(Ki.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Ki.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Ki.tidot,"chat__typingIndicator")})]}):null})}),OT=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),NT=({messages:e,isBotTyping:n,showGeneralConditions:i,commands:s,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const h=B.useRef(0),p=B.useRef(!0),v=B.useRef(null),y=B.useRef(null),b=B.useRef(null);B.useLayoutEffect(()=>{if(e.length&&v.current&&(h.current<e.length||n)){if(y.current){const _=y.current.offsetTop;v.current.scrollTop=_}else if(b.current){const _=b.current.offsetTop;v.current.scrollTop=_}p.current&&(p.current=!1),h.current=e.length}},[e,p,n]);let m;const w=e.length;return E.jsxs("div",{ref:v,className:q(Km.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&p.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[i&&E.jsx(cb,{}),E.jsxs("ul",{className:Km.messages,children:[e.map((_,S)=>{const R=AT(_,m),O=IT(_,S,e,n);m=_.sender.type;const N=S+1===w;return E.jsx(bT,{ref:N?b:null,message:_,commands:s,isLastMessage:N,isFirstMessageBySender:R,isLastMessageBySender:O,onButtonClick:u,onLinkClick:f,onReaction:l},N&&!n?"last":_._id)}),n&&E.jsx(Dy,{ref:y,message:OT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:m!==ge.UserType.BOT,isLastMessageBySender:!0,children:E.jsx(RT,{isTyping:!0})},"last")]})]})},AT=(e,n)=>!n||n!==e.sender.type,IT=(e,n,i,s)=>{var h;const l=e.sender.type,u=i.length;return n+1===u?!(l===ge.UserType.BOT&&s):l!==((h=i.at(n+1))==null?void 0:h.sender.type)},DT="_bottomSheet_jp8dl_1",PT="_bottomSheetOpen_jp8dl_15",MT="_bottomSheetClose_jp8dl_20",Tr={bottomSheet:DT,bottomSheetOpen:PT,bottomSheetClose:MT},FT="_container_xc2nx_1",vg={container:FT},LT=({contentUrl:e})=>{const n=Qr(u=>u.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(u=>u||!!e)},[e]);const l=B.useMemo(()=>{if(e&&n){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",n),u.toString()}else return},[e,n]);return E.jsx("div",{className:q(vg.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:!!e,[Tr.bottomSheetClose]:i&&!e}),children:l&&E.jsx("iframe",{title:"Drawer",src:l,className:vg.iframe})})},BT="_container_tr4tn_1",jT={container:BT},UT=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),HT=()=>{const n=Je()("powered-by");return n&&n.length?E.jsx("div",{className:q(jT.container,"chat__poweredBy"),children:E.jsx(lr,{options:{overrides:{a:UT}},children:n})}):null},_g=({className:e,children:n,...i})=>E.jsx(ya,{className:q(oo.buttonDefault,e),type:"button",...i,children:n}),so=({className:e,children:n,...i})=>E.jsx(ya,{className:q(oo.buttonPrimary,e),...i,children:n}),zT="_container_h23mk_1",GT="_formContainer_h23mk_17",$T="_emailInput_h23mk_22",qT="_description_h23mk_52",VT="_actions_h23mk_57",WT="_validationError_h23mk_67",ZT="_submitted_h23mk_74",Sr={container:zT,formContainer:GT,emailInput:$T,description:qT,actions:VT,validationError:WT,submitted:ZT},KT=({visible:e,methods:n,onEmailExport:i,onPdfExport:s,onClose:l})=>{const u=Je(),[f,h]=B.useState(void 0),[p,v]=B.useState(!1),[y,b]=B.useState(!1),[m,w]=B.useState(void 0),_=B.useRef(null);B.useEffect(()=>{var N;e?((N=_.current)==null||N.focus(),v(!1),b(!1),h(e)):f===!0&&h(!1)},[e,f]);const S=N=>{N.preventDefault(),m&&m.length>0&&(i(m),v(!0),setTimeout(l,3*1e3))},R=N=>{const x=N.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(x);w(k?x:"")},O=()=>{b(!0),s(),setTimeout(l,3*1e3)};return E.jsxs("div",{className:q(Sr.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:f===!0,[Tr.bottomSheetClose]:f===!1}),children:[n.pdf&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.pdf.title")}),E.jsx(lr,{className:Sr.description,children:u("export-transcript.pdf.description")||""}),E.jsxs("div",{className:Sr.actions,children:[E.jsx(_g,{onClick:l,children:u("export-transcript.pdf.cancel")}),E.jsx(so,{onClick:O,disabled:y,children:u("export-transcript.pdf.download")})]})]}),n.email&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.email.title")}),E.jsx(lr,{className:Sr.description,children:u("export-transcript.email.description")||""}),E.jsxs("form",{onSubmit:S,className:Sr.formContainer,children:[E.jsxs("div",{children:[E.jsx("input",{disabled:p,ref:_,type:"email",placeholder:u("export-transcript.email.placeholder"),className:Sr.emailInput,onChange:R}),(m==null?void 0:m.length)===0?E.jsx("div",{className:Sr.validationError,children:u("export-transcript.email.invalid")}):null]}),E.jsxs("div",{className:Sr.actions,children:[E.jsx(_g,{onClick:l,children:u("export-transcript.email.cancel")}),E.jsx(so,{type:"submit",disabled:p||m===void 0||m.length===0,children:u("export-transcript.email.send")})]})]}),p&&E.jsx("div",{className:Sr.submitted,children:u("export-transcript.email.success")})]})]})},QT="_inputContainer_fi5ao_1",XT={inputContainer:QT},YT="_blockUserInput_mjy87_1",JT={blockUserInput:YT},eC=({visible:e})=>{const n=Je();return e?E.jsx("div",{className:q(JT.blockUserInput,"chat__blockUserInput"),children:n("block-user-input.title")}):null},tC="_commandsDropdown_5ytuv_1",rC="_commands_5ytuv_1",nC="_command_5ytuv_1",iC="_commandActive_5ytuv_46",oC="_commandsSelections_5ytuv_55",Yi={commandsDropdown:tC,commands:rC,command:nC,commandActive:iC,commandsSelections:oC},sC=(e,n)=>{B.useEffect(()=>{const i=s=>{e.current&&!e.current.contains(s.target)&&n()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[e,n])},aC=(e,n,i,s,l)=>{B.useEffect(()=>{const u=f=>{if(e.length)switch(f.key){case"Enter":i(e[n]);break;case"ArrowUp":s(h=>h>0?h-1:e.length-1);break;case"ArrowDown":s(h=>h<e.length-1?h+1:0);break;case"Escape":l([]);break}};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[e,n,i,s,l])},lC=({text:e,commands:n,onSelectCommand:i,onVisibilityChange:s})=>{const l=B.useRef(null),u=Je(),[f,h]=B.useState([]),[p,v]=B.useState(Eg(n)),[y,b]=B.useState(0),m=w=>i(`/${w}`);return sC(l,()=>h([])),aC(f,y,m,b,h),B.useEffect(()=>{v(Eg(n))},[n]),B.useEffect(()=>{const w=e.length||0;w===0||w>p||!e.startsWith("/")?h([]):h(n.filter(uC(e))),b(0)},[n,e,p]),B.useEffect(()=>{s(!!f.length)},[f,s]),f.length?E.jsx("div",{ref:l,className:Yi.commandsDropdown,children:E.jsx("ul",{className:Yi.commands,role:"listbox",children:f.map((w,_)=>E.jsxs("li",{className:q([Yi.command,y===_&&Yi.commandActive]),role:"option",onClick:()=>m(w),onMouseOver:()=>b(_),children:[E.jsxs("h1",{children:["/",w]}),E.jsx("p",{children:u(`commands.${w}`)})]},w))})}):null},Eg=e=>Math.max(...e.map(n=>n.length+1)),uC=e=>n=>{const i=`/${n}`;return i.startsWith(e)&&i.length>=e.length},wg=3,cC=({commands:e,onSelectCommand:n})=>{const i=Je(),[s,l]=B.useState(!1),u=v=>()=>{n(`/${v}`),l(!1)},f=()=>{l(!0)},h=()=>{l(!1)},p=s?e:e.slice(0,wg);return E.jsxs("div",{className:Yi.commandsSelections,children:[p.map(v=>E.jsxs("button",{onClick:u(v),children:["/",v]})),p.length<e.length?E.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:f,children:i("commands.show-more.action")},"show-more"):p.length>wg?E.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},fC="_callToActionContainer_bkfcm_1",dC="_callToActionTitle_bkfcm_23",hC="_rateOverlay_bkfcm_30",pC="_body_bkfcm_52",mC="_footer_bkfcm_60",gC="_actions_bkfcm_73",yC="_bubbles_bkfcm_101",vC="_stars_bkfcm_203",_C="_starsSmall_bkfcm_215",EC="_starsLarge_bkfcm_219",wC="_star_bkfcm_203",SC="_starReadonly_bkfcm_236",xC="_starIcon_bkfcm_246",bC="_starsDescriptionContainer_bkfcm_264",TC="_starsDescription_bkfcm_264",pt={callToActionContainer:fC,callToActionTitle:dC,rateOverlay:hC,body:pC,footer:mC,actions:gC,bubbles:yC,stars:vC,starsSmall:_C,starsLarge:EC,star:wC,starReadonly:SC,starIcon:xC,starsDescriptionContainer:bC,starsDescription:TC},CC=({value:e,index:n,count:i,readonly:s,onHover:l,onClick:u})=>{const f=h=>{u&&h.key==="Enter"&&u()};return E.jsx("li",{className:q(pt.star,{[pt.starReadonly]:s},"chat__conversationRating__star"),children:E.jsx("div",{role:"radio","aria-checked":e>n?"true":"false","aria-posinset":n+1,"aria-setsize":i,tabIndex:0,onMouseOver:l,onKeyDown:f,onClick:u,children:E.jsx("span",{role:"img","aria-label":"Star",className:q(pt.starIcon),children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})})})})},Sg=5,Ly=({value:e,size:n,readonly:i=!1,onChange:s})=>{const[l,u]=B.useState(void 0),f=()=>{u(void 0)},h=v=>()=>{if(!i){const y=v+1;u(y)}},p=v=>()=>{s&&!i&&(s(v===0&&e===1?0:v+1),u(void 0))};return E.jsx("ul",{tabIndex:0,role:"radiogroup",className:q(pt.stars,{[pt.starsSmall]:n==="small",[pt.starsLarge]:n==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:n==="small",chat__conversationRating__stars__large:n==="large"}),onMouseOut:f,children:Array(Sg).fill(0).map((v,y)=>E.jsx(CC,{value:l===void 0?e:l,index:y,count:Sg,readonly:i,onHover:h(y),onClick:p(y)},y))})},kC=({visible:e,onRate:n})=>{const i=Je();return e?E.jsxs("div",{className:q(pt.callToActionContainer,"chat__conversationRating__callToAction"),children:[E.jsx("div",{className:q(pt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),E.jsx(Ly,{value:0,size:"small",onChange:n})]}):null},Xu=({isFirstMessageBySender:e,isLastMessageBySender:n,children:i})=>E.jsxs("div",{className:q(de.message,de.messageBot,e&&de.messageBotFirst,n&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),E.jsx("div",{className:q(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:E.jsx("div",{className:q(de.leftText,de.bubbleContent),children:i})})]}),RC=({children:e})=>E.jsx("div",{className:q(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:E.jsx("div",{className:q(de.rightText,de.bubbleContent),children:e})})}),OC=({visible:e,rating:n,onRate:i,onClose:s})=>{const l=Je(),[u,f]=B.useState(n),[h,p]=B.useState(void 0),[v,y]=B.useState(void 0),[b,m]=B.useState({submitted:!1,feedback:""}),[w,_]=B.useState(!1),S=B.useRef(null);B.useEffect(()=>{e?(m({submitted:!1,feedback:""}),y(e)):v===!0&&y(!1)},[e,v]),B.useEffect(()=>{f(n)},[n]),B.useEffect(()=>{const O=l(`conversation-rating.overlay.bot-message.rate-feedback.value-${u}`);p(O!=null&&O.length?O:void 0)},[u,l]),B.useEffect(()=>{b.submitted?setTimeout(()=>_(!0),b.feedback.length?500:0):_(!1)},[b]);const R=O=>{var x,k;O.preventDefault();const N=((k=(x=S.current)==null?void 0:x.value)==null?void 0:k.trim())||"";i(u,N),m({submitted:!0,feedback:N})};return E.jsx("div",{className:q(pt.rateOverlay,Tr.bottomSheet,"chat__conversationRating__overlay",{[Tr.bottomSheetOpen]:v===!0,[Tr.bottomSheetClose]:v===!1}),children:E.jsxs("form",{onSubmit:R,children:[E.jsxs("div",{className:q(pt.body,"chat__conversationRating__overlay__body"),children:[E.jsx("div",{}),E.jsx("div",{className:q(pt.bubbles),children:e&&h&&E.jsxs(E.Fragment,{children:[E.jsxs(Xu,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[E.jsx("h2",{children:l("conversation-rating.overlay.title")}),E.jsxs("div",{className:q(pt.starsDescriptionContainer),children:[E.jsx(Ly,{value:u,size:"large",readonly:b.submitted,onChange:f}),E.jsxs("div",{className:q(pt.starsDescription),children:[E.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),E.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),E.jsx(Xu,{isFirstMessageBySender:!1,isLastMessageBySender:!w||!!b.feedback.length,children:E.jsx("div",{children:h})}),!!b.feedback.length&&E.jsx(RC,{children:b.feedback}),w&&E.jsx(Xu,{isFirstMessageBySender:!!b.feedback.length,isLastMessageBySender:!0,children:E.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),E.jsxs("div",{className:q(pt.footer,"chat__conversationRating__overlay__footer"),children:[!b.submitted&&E.jsx("input",{ref:S,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),E.jsx("div",{className:q(pt.actions,"chat__conversationRating__overlay__footer__actions"),children:b.submitted?E.jsx(so,{type:"button",onClick:s,children:l("conversation-rating.overlay.action.close")}):E.jsx(so,{type:"submit",children:l("conversation-rating.overlay.action.submit")})})]})]})})},NC=({conversationRating:{enabled:e,rating:n},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[f,h]=B.useState(0),p=b=>{h(b),l(!0)},v=()=>l(!1),y=!n&&i>=1;return e?E.jsxs(E.Fragment,{children:[E.jsx(kC,{visible:y,onRate:p}),E.jsx(OC,{visible:s,rating:f,onRate:u,onClose:v})]}):null},AC="_inputWrapper_e3h44_1",IC="_withOpenCommands_e3h44_14",DC="_messageInputWrapper_e3h44_20",PC="_messageInput_e3h44_20",MC="_buttons_e3h44_44",FC="_button_e3h44_44",mn={inputWrapper:AC,withOpenCommands:IC,messageInputWrapper:DC,messageInput:PC,buttons:MC,button:FC},LC="_audioRecorder_g845f_1",BC="_audioButton_g845f_6",jC="_recorderIcon_g845f_37",UC="_spinning_g845f_60",gn={audioRecorder:LC,audioButton:BC,recorderIcon:jC,spinning:UC},xg=2048,ia=16e3;class HC extends r0.Component{constructor(i){super(i);xe(this,"audioInput",null);xe(this,"volume",null);xe(this,"leftchannel",[]);xe(this,"recorder",null);xe(this,"recordingLength",0);xe(this,"sampleRate",null);xe(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(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const s=window.AudioContext||window.webkitAudioContext,l=new s;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(xg,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const s=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(s)),this.recordingLength+=xg}}handleClickSubmitAudio(){const i=GC(this.leftchannel,this.recordingLength),s=$C(i,this.sampleRate||0),l=zC(s);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){var i,s,l,u;this.setState({recordingState:"none"}),(i=this.audioInput)==null||i.disconnect(),(s=this.volume)==null||s.disconnect(),(l=this.recorder)==null||l.disconnect(),this.mediaStream&&((u=this.mediaStream)==null||u.getAudioTracks().forEach(f=>{f.stop()}))}render(){return E.jsxs("div",{className:gn.audioRecorder,children:[this.state.recordingState==="none"&&E.jsx("button",{className:q(gn.audioButton,"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:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&E.jsxs("svg",{className:gn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&E.jsxs("div",{className:gn.audioRecorder,children:[E.jsx("button",{className:q(gn.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),E.jsx("div",{className:gn.recorderIcon}),E.jsx("button",{className:q(gn.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),E.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const zC=e=>{const n=new ArrayBuffer(44+e.length*2),i=new DataView(n);$s(i,0,"RIFF"),i.setUint32(4,44+e.length*2,!0),$s(i,8,"WAVE"),$s(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,ia,!0),i.setUint32(28,ia*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),$s(i,36,"data"),i.setUint32(40,e.length*2,!0);const s=e.length;let l=44;const u=1;for(let f=0;f<s;f++)i.setInt16(l,e[f]*(32767*u),!0),l+=2;return new Blob([i],{type:"audio/wav"})},$s=(e,n,i)=>{for(let s=0;s<i.length;s++)e.setUint8(n+s,i.charCodeAt(s))},GC=(e,n)=>{const i=new Float32Array(n);let s=0;const l=e.length;for(let u=0;u<l;u++){const f=e[u];i.set(f,s),s+=f.length}return i},$C=(e,n)=>{if(ia===n)return e;const i=n/ia,s=Math.round(e.length/i),l=new Float32Array(s);let u=0,f=0;for(;u<l.length;){const h=Math.round((u+1)*i);let p=0,v=0;for(let y=f;y<h&&y<e.length;y++)p+=e[y],v++;l[u]=p/v,u++,f=h}return l},qC=({speechSupport:e,transcriptExportEnabled:n,disabled:i,textInput:s,commandsVisible:l,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:h,onOpenTranscriptExportModal:p})=>{const v=Je(),y=B.useRef(null);B.useEffect(()=>{var S;(S=y.current)==null||S.focus()},[s]);const b=()=>{const S=y.current;S&&s.trim().length>=1&&f(s.trim())&&(S.value="",S.style.height="",S.focus())},m=S=>{S.preventDefault(),b()},w=S=>{const R=S.target.value;u(R),S.target.style.height="";const{scrollHeight:O}=S.target;S.target.style.height=`${O>150?150:O}px`},_=S=>{S.code==="Enter"&&!S.shiftKey?(S.repeat||b(),S.preventDefault()):l&&(S.code==="ArrowUp"||S.code==="ArrowDown")&&S.preventDefault()};return E.jsxs("form",{className:q(mn.inputWrapper,l&&mn.withOpenCommands,"chat__textInput"),onSubmit:m,children:[E.jsx("div",{className:mn.messageInputWrapper,children:E.jsx("textarea",{id:"user_input",ref:y,className:mn.messageInput,tabIndex:0,placeholder:v("message-input-placeholder"),value:s,onChange:w,onKeyDown:_,"aria-label":v("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),E.jsxs("div",{className:q(mn.buttons,"chat__buttons"),children:[!s.length&&n&&E.jsx("button",{type:"button",className:q(mn.button,"chat__button"),"aria-label":v("message-input.actions.export-transcript.label"),"data-title":v("message-input.actions.export-transcript.label"),tabIndex:0,onClick:p,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})}),s.length||!e||navigator.mediaDevices===void 0?E.jsx("button",{className:q(mn.button,"chat__button"),type:"submit","aria-label":v("message-input.actions.submit.label"),"data-title":v("message-input.actions.submit.label"),tabIndex:0,disabled:i,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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&&E.jsx(HC,{translate:v,onAudioRecorded:h})]})]})},VC="_quickReplies_83npe_1",WC="_quickReply_83npe_9",bg={quickReplies:VC,quickReply:WC},ZC=({quickReplies:e,onQuickReplyClick:n})=>e.length?E.jsx("div",{className:q(bg.quickReplies,"chat__quickReplies"),children:e.map(i=>E.jsx(ya,{tabIndex:0,className:q(bg.quickReply,"chat__button","chat__quickReply"),onClick:()=>n(i),children:i.label},i.label))}):null,Tg=5e3,KC=1e3,QC=({isBotTyping:e,quickReplies:n,speechSupport:i,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:f,commands:h,setShowRatingOverlay:p,onTextInput:v,onRate:y,onQuickReplyClick:b,onAudioRecorded:m,onOpenTranscriptExportModal:w})=>{const[_,S]=B.useState(""),[R,O]=B.useState(!1),[N,x]=B.useState(!1),k=B.useRef(),T=B.useRef(0);B.useEffect(()=>{if(R&&!e){const V=k.current?Date.now()-k.current:0;V>Tg?O(!1):setTimeout(()=>{O(!1)},Tg-V)}},[R,e]),B.useEffect(()=>{R&&(k.current=Date.now())},[R]);const F=V=>{const fe=Date.now()-T.current<KC;return N?!1:e||fe?(O(!0),!1):(v(V),S(""),T.current=Date.now(),!0)},z=V=>{S(V+" ")};return E.jsxs("div",{className:q(XT.inputContainer),children:[E.jsx(ZC,{quickReplies:n,onQuickReplyClick:b}),E.jsx(eC,{visible:R}),!R&&E.jsx(NC,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:y,showRatingOverlay:f,setShowRatingOverlay:p}),!!(h!=null&&h.length)&&E.jsx(lC,{text:_,commands:h,onSelectCommand:z,onVisibilityChange:x}),E.jsx(qC,{textInput:_,speechSupport:i,transcriptExportEnabled:s,disabled:R,commandsVisible:N,onTextInput:S,onTextInputSubmit:F,onOpenTranscriptExportModal:w,onAudioRecorded:m}),!!(h!=null&&h.length)&&E.jsx(cC,{commands:h,onSelectCommand:S})]})},XC=({clientName:e,messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v,onMessageFromUser:y,onRate:b,onQuickReplyClick:m,onButtonClick:w,onLinkClick:_,onAudioRecorded:S,onTranscriptExport:R,onPdfExport:O,onTranscriptItemReaction:N})=>{const x=ti(),k=Qr(oe=>oe.connection.connectionState),[T,F]=B.useState(!1),[z,V]=B.useState(!1),fe=f.email||f.pdf,te=n.filter(oe=>oe.sender.type===my.GUEST).length;return B.useEffect(()=>{if(k===En.CONNECTED){const oe=la.parse(window.location.search);x(py(e,oe))}},[e,k,x]),E.jsxs("div",{className:ju.container,children:[E.jsxs("div",{className:q([ju.chatcontent,(T||z)&&ju.accessabilityHidden]),children:[E.jsx(NT,{messages:n,isBotTyping:s,showGeneralConditions:p,commands:v,onButtonClick:w,onLinkClick:_,onTranscriptItemReaction:N}),E.jsx(QC,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:te,speechSupport:u,transcriptExportEnabled:fe,conversationRating:T?{enabled:!1}:h,showRatingOverlay:z,setShowRatingOverlay:V,commands:v,onRate:b,onQuickReplyClick:m,onTextInput:y,onAudioRecorded:S,onOpenTranscriptExportModal:()=>F(!T)}),E.jsx(HT,{})]}),fe&&E.jsx(KT,{methods:f,visible:T,onEmailExport:R,onPdfExport:O,onClose:()=>F(!1)}),E.jsx(LT,{contentUrl:l})]})},YC=e=>{const{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v}=e.chat;return{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v}},JC=e=>({onRestartChat:(n,i)=>e(ma(n,i)),onMessageFromUser:n=>e(q0(n)),onRate:(n,i)=>e(jS(n,i)),onAudioRecorded:n=>e(NS(n)),onActionFromUser:n=>e(n),onQuickReplyClick:n=>e($0(n)),onNluEvent:n=>e(X0(n)),onButtonClick:n=>e(HS(n)),onLinkClick:n=>e(zS(n)),onTranscriptExport:n=>e(PS(n)),onPdfExport:()=>e(LS()),onTranscriptItemReaction:(n,i)=>e(ge.transcriptItemGuestReaction(n,i||null))}),ek=uE(YC,JC)(XC),By=()=>tk(window.location.pathname),tk=e=>{const n=e.split("/"),i=e.endsWith("/");return n[n.length-(i?2:1)]},jy=()=>B.useMemo(()=>By(),[]),rk="_header_19p33_1",nk="_logoContainer_19p33_13",ik="_logo_19p33_13",ok="_actions_19p33_26",sk="_closeButton_19p33_72",Ji={header:rk,logoContainer:nk,logo:ik,actions:ok,closeButton:sk},Uy=e=>n=>{const i=n.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(n.stopPropagation(),e())},ak=({onClick:e})=>{const n=Je();return E.jsx("button",{className:q(Ji.closeButton,"tooltip--bottom"),"aria-label":n("header.close-chat"),"data-title":n("header.close-chat"),tabIndex:0,onClick:e,onKeyDown:Uy(e),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},lk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:"tooltip--bottom","aria-label":n("header.restart-chat"),"data-title":n("header.restart-chat"),tabIndex:0,onClick:e,onKeyDown:Uy(e),children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[E.jsx("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"}),E.jsx("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"})]})})},Cg=({className:e,withActions:n=!0,...i})=>{const s=ti(),l=jy(),u=()=>{const h=la.parse(window.location.search);s(ma(l,h))},f=()=>{s(A2())};return E.jsxs("div",{className:q([Ji.header,e]),...i,children:[E.jsx("div",{className:Ji.logoContainer,children:E.jsx("div",{className:Ji.logo})}),E.jsxs("div",{className:Ji.actions,children:[n&&E.jsx(lk,{onClick:u}),E.jsx(ak,{onClick:f})]})]})},uk="_chatwindow_6v6ob_1",ck="_chatwindowWithAside_6v6ob_46",kg={chatwindow:uk,chatwindowWithAside:ck},fk="_sourceInfos_1qwkt_1",dk="_sourceDetails_1qwkt_16",hk="_sourceHeader_1qwkt_23",pk="_sourceHeaderIcon_1qwkt_43",mk="_openSourceButton_1qwkt_47",gk="_closeSourceInfosButton_1qwkt_70",yk="_sourceContent_1qwkt_85",vk="_loadingSourceInfos_1qwkt_108",_k="_loading_1qwkt_108",Ek="_loadingError_1qwkt_122",fr={sourceInfos:fk,sourceDetails:dk,sourceHeader:hk,sourceHeaderIcon:pk,openSourceButton:mk,closeSourceInfosButton:gk,sourceContent:yk,loadingSourceInfos:vk,loading:_k,loadingError:Ek},wk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:q(fr.closeSourceInfosButton,"tooltip--bottom"),"aria-label":n("source-infos.close"),"data-title":n("source-infos.close"),tabIndex:0,onClick:e,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Sk=({type:e})=>{switch(e){case"WEBSITE":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})});case"PDF":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})});case"DOCX":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});case"TEXT":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});default:return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})})}},xk=({sourceInfos:e,onClose:n})=>E.jsxs("div",{className:fr.sourceHeader,children:[E.jsx("div",{className:fr.sourceHeaderIcon,children:e&&E.jsx(Sk,{type:e.knowledgeBaseType})}),E.jsx("div",{children:e&&E.jsx("h1",{children:e.title})}),E.jsx(wk,{onClick:n})]}),bk=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),Tk=({className:e,children:n,...i})=>E.jsx("a",{className:q(oo.button,oo.buttonPrimary,e),type:"button",...i,children:n}),Ck=({label:e,url:n})=>E.jsxs(Tk,{className:fr.openSourceButton,href:n,target:"_blank",children:[E.jsx("p",{children:e}),E.jsx("div",{children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"})})})]}),kk=({sourceInfos:e})=>E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(fr.sourceContent,Fy.markdown),children:E.jsx(lr,{options:{overrides:{a:bk}},children:e.content})}),E.jsx(Ck,{label:e.title,url:e.url})]}),Rk=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,Ok=()=>{const e=Je();return E.jsxs("div",{className:fr.loadingError,children:[E.jsx("h1",{children:e("source-infos.error.title")}),E.jsx("img",{src:Rk,title:e("source-infos.error.title")}),E.jsx("p",{children:e("source-infos.error.info")})]})},Nk=()=>E.jsx("div",{className:fr.loadingSourceInfos,children:E.jsx("svg",{className:fr.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})}),Ak=()=>{const e=ti(),n=Qr(s=>s.chat.sourceInfos),i=()=>{e(D2())};return n?E.jsxs("div",{className:fr.sourceInfos,children:[E.jsx("div",{className:fr.sourceDetails,children:E.jsx(xk,{sourceInfos:n.type==="loaded"?n:void 0,onClose:i})}),n.type==="loading"?E.jsx(Nk,{}):n.type==="loading-error"?E.jsx(Ok,{}):E.jsx(kk,{sourceInfos:n})]}):null},Ik="_container_114wy_1",Dk="_body_114wy_7",Pk="_intro_114wy_14",Mk="_footer_114wy_39",Fk="_footnote_114wy_43",Lk="_containerWithFootnote_114wy_58",Bk="_startChatButton_114wy_73",jk="_formFields_114wy_77",Uk="_formField_114wy_77",Hk="_radio_114wy_89",zk="_checkbox_114wy_96",Gk="_input_114wy_104",$k="_inputLabel_114wy_138",qk="_selectWrapper_114wy_142",Vk="_select_114wy_142",Wk="_selectLabel_114wy_188",ot={container:Ik,body:Dk,intro:Pk,footer:Mk,footnote:Fk,containerWithFootnote:Lk,startChatButton:Bk,formFields:jk,formField:Uk,radio:Hk,checkbox:zk,input:Gk,inputLabel:$k,selectWrapper:qk,select:Vk,selectLabel:Wk},Zk=({name:e,label:n,defaultValue:i,required:s,onChange:l})=>{const u=f=>{l(f.currentTarget.checked?"true":"false")};return E.jsxs("label",{className:q(ot.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[E.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:i==="true",required:s,onChange:u}),E.jsx("div",{children:n})]})},Kk=({type:e,name:n,label:i,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:y})=>{const b=m=>{y(m.target.value)};return E.jsxs("label",{className:q(ot.input,"chat__startScreen__input"),htmlFor:n,children:[E.jsx("div",{className:q(ot.inputLabel),children:i}),E.jsx("input",{type:e,id:n,name:n,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:b})]})},Qk=({name:e,value:n,label:i,defaultChecked:s,required:l,onChange:u})=>{const f=`${e}-${n}`,h=p=>{u(p.target.value)};return E.jsxs("label",{className:q(ot.radio,"chat__startScreen__radio"),htmlFor:f,children:[E.jsx("input",{id:f,type:"radio",name:e,value:n,defaultChecked:s,required:l,onChange:h}),E.jsx("span",{className:q(ot.label),children:i})]})},Xk=({name:e,label:n,defaultValue:i,required:s,multiple:l,options:u,onChange:f})=>{const h=p=>{f(p.target.value)};return E.jsxs("label",{className:q(ot.select,"chat__startScreen__select"),htmlFor:e,children:[E.jsx("div",{className:q(ot.selectLabel),children:n}),E.jsx("div",{className:q(ot.selectWrapper),children:E.jsx("select",{id:e,name:e,defaultValue:i,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,v])=>E.jsx("option",{value:p,selected:v===i,children:v}))})})]})},Yk="start-screen.intro",Jk="start-screen.start-chat",eR="start-screen.footnote",Qt="start-screen.form",Rg=`${Qt}.fields`,tR=()=>{const e=Je(),n=ti(),[i,s]=B.useState({}),l=()=>{const b=Object.entries(i).reduce((m,[w,_])=>({...m,[w]:_.value}),{});n(R2(b))},u=e(Yk),f=e(Jk),h=e(eR),p=B.useMemo(()=>{var b;return((b=e(Rg))==null?void 0:b.split(";").map(m=>m.trim()))??[]},[e(Rg)]);B.useEffect(()=>{p.length&&Object.keys(i).length===0&&s(p.reduce((b,m)=>({...b,[m]:rR(m,e)}),{}))},[e,p,i]);const v=b=>{b.preventDefault(),l()},y=b=>m=>{s(w=>({...w,[b]:{...w[b],value:m}}))};return E.jsxs("form",{onSubmit:v,className:q(ot.container,h&&ot.containerWithFootnote,"chat__startScreen"),children:[E.jsxs("div",{className:q(ot.body,"chat__startScreen__body"),children:[u&&E.jsx("div",{className:q(ot.intro,"chat__startScreen__intro"),children:E.jsx(lr,{options:{overrides:{a:Og}},children:u})}),E.jsx("div",{className:q(ot.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:b,name:m,label:w,placeholder:_,defaultValue:S,options:R,required:O,multiple:N,min:x,max:k,pattern:T})=>E.jsx("div",{className:q(ot.formField,"chat__startScreen__field"),children:(()=>{switch(b){case"radio":return E.jsxs(E.Fragment,{children:[E.jsx("div",{children:w}),Object.entries(R||{}).map(([F,z])=>E.jsx(Qk,{name:m,value:F,label:z,defaultChecked:F===S,required:O,onChange:y(m)}))]});case"checkbox":return E.jsx(Zk,{name:m,label:w,defaultValue:S,required:O,onChange:y(m)});case"select":return E.jsx(Xk,{name:m,label:w,defaultValue:S,required:O,multiple:N,options:R,onChange:y(m)});default:return E.jsx(Kk,{type:b,name:m,label:w,placeholder:_,defaultValue:S,required:O,multiple:N,min:x,max:k,pattern:T,onChange:y(m)})}})()},m))})]}),E.jsxs("div",{className:q(ot.footer,"chat__startScreen__footer"),children:[E.jsx(so,{type:"submit",className:ot.startChatButton,children:f}),h&&E.jsx("div",{className:ot.footnote,children:E.jsx(lr,{options:{overrides:{a:Og}},children:h})})]})]})},Og=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),rR=(e,n)=>{const i=n(`${Qt}.${e}.type`)||"text",s=n(`${Qt}.${e}.required`)==="true",l=n(`${Qt}.${e}.multiple`)==="true",u=n(`${Qt}.${e}.placeholder`),f=n(`${Qt}.${e}.label`)||"",h=n(`${Qt}.${e}.defaultValue`),p=n(`${Qt}.${e}.min`),v=n(`${Qt}.${e}.max`),y=n(`${Qt}.${e}.pattern`),b=iR(n(`${Qt}.${e}.options`));return{name:e,label:f,placeholder:u,value:nR(i,h,b)||"",defaultValue:h,options:b,type:i,required:s,multiple:l,min:p,max:v,pattern:y}},nR=(e,n,i)=>n||e==="select"&&Object.keys(i)[0]||"",iR=(e="")=>e.split(";").map(n=>n.trim()).reduce((n,i)=>{const[s,l]=i.split(":").map(u=>u.trim());return{...n,[s]:l}},{}),oR=()=>{const e=aa();B.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Kn={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"},sR=({clientName:e})=>{oR();const n=ti(),i=Qr(y=>y.intl.messages),s=Je(),l=Qr(y=>y.startScreen.useStartScreen),u=Qr(y=>y.startScreen.startScreenStatus),[f,h]=B.useState(void 0);B.useEffect(()=>{const y=la.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const b=m=>{switch(m.data.type){case Kn.TRIGGER_ACTION:n(m.data.action);break;case Kn.TRIGGER_STORY:n(X0(m.data.story));break;case Kn.ON_CHAT_WINDOW_OPEN:n({type:"webclient.chatwindow.opened"});break;case Kn.ON_CHAT_WINDOW_CLOSE:n({type:"webclient.chatwindow.closed"});break;case Kn.CHAT_MESSAGE_FROM_GUEST:n(q0(m.data.text));break;case Kn.RESTART_CHAT:n(ma(e,y));break}};return n(j2(e,y)),window.addEventListener("message",m=>b(m),!1),()=>window.removeEventListener("message",b)},[e,n]),B.useEffect(()=>{const y=s("page.title");y&&document&&(document.title=y)},[i,s]);const p=l===void 0,v=l===!1||u==="HIDDEN";return E.jsx("div",{className:q(kg.chatwindow,v&&kg.chatwindowWithAside,"chat__chatwindow",f),children:p?null:v?E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(Cg,{})}),E.jsx("main",{children:E.jsx(ek,{clientName:e})}),E.jsx("aside",{children:E.jsx(Ak,{})})]}):E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(Cg,{withActions:!1})}),E.jsx("main",{children:E.jsx(tR,{})})]})})},aR=1024,lR=()=>{const e=jy(),n=Qr(u=>u.intl.locale),i=Qr(u=>u.intl.messages),[s,l]=B.useState(Ng());return B.useEffect(()=>{const u=()=>{l(Ng())};return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),E.jsx(Ww,{locale:n,messages:i,children:E.jsx("div",{className:q([Kw.app,s?"chat__large":"chat__small"]),children:E.jsx(sR,{clientName:e})})})},Ng=()=>window.innerWidth>=aR;var Yu,Ag;function Cf(){if(Ag)return Yu;Ag=1;function e(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return Yu=e,Yu}var Ju,Ig;function uR(){if(Ig)return Ju;Ig=1;var e=typeof _s=="object"&&_s&&_s.Object===Object&&_s;return Ju=e,Ju}var ec,Dg;function Hy(){if(Dg)return ec;Dg=1;var e=uR(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return ec=i,ec}var tc,Pg;function cR(){if(Pg)return tc;Pg=1;var e=Hy(),n=function(){return e.Date.now()};return tc=n,tc}var rc,Mg;function fR(){if(Mg)return rc;Mg=1;var e=/\s/;function n(i){for(var s=i.length;s--&&e.test(i.charAt(s)););return s}return rc=n,rc}var nc,Fg;function dR(){if(Fg)return nc;Fg=1;var e=fR(),n=/^\s+/;function i(s){return s&&s.slice(0,e(s)+1).replace(n,"")}return nc=i,nc}var ic,Lg;function zy(){if(Lg)return ic;Lg=1;var e=Hy(),n=e.Symbol;return ic=n,ic}var oc,Bg;function hR(){if(Bg)return oc;Bg=1;var e=zy(),n=Object.prototype,i=n.hasOwnProperty,s=n.toString,l=e?e.toStringTag:void 0;function u(f){var h=i.call(f,l),p=f[l];try{f[l]=void 0;var v=!0}catch{}var y=s.call(f);return v&&(h?f[l]=p:delete f[l]),y}return oc=u,oc}var sc,jg;function pR(){if(jg)return sc;jg=1;var e=Object.prototype,n=e.toString;function i(s){return n.call(s)}return sc=i,sc}var ac,Ug;function mR(){if(Ug)return ac;Ug=1;var e=zy(),n=hR(),i=pR(),s="[object Null]",l="[object Undefined]",u=e?e.toStringTag:void 0;function f(h){return h==null?h===void 0?l:s:u&&u in Object(h)?n(h):i(h)}return ac=f,ac}var lc,Hg;function gR(){if(Hg)return lc;Hg=1;function e(n){return n!=null&&typeof n=="object"}return lc=e,lc}var uc,zg;function yR(){if(zg)return uc;zg=1;var e=mR(),n=gR(),i="[object Symbol]";function s(l){return typeof l=="symbol"||n(l)&&e(l)==i}return uc=s,uc}var cc,Gg;function vR(){if(Gg)return cc;Gg=1;var e=dR(),n=Cf(),i=yR(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;function p(v){if(typeof v=="number")return v;if(i(v))return s;if(n(v)){var y=typeof v.valueOf=="function"?v.valueOf():v;v=n(y)?y+"":y}if(typeof v!="string")return v===0?v:+v;v=e(v);var b=u.test(v);return b||f.test(v)?h(v.slice(2),b?2:8):l.test(v)?s:+v}return cc=p,cc}var fc,$g;function _R(){if($g)return fc;$g=1;var e=Cf(),n=cR(),i=vR(),s="Expected a function",l=Math.max,u=Math.min;function f(h,p,v){var y,b,m,w,_,S,R=0,O=!1,N=!1,x=!0;if(typeof h!="function")throw new TypeError(s);p=i(p)||0,e(v)&&(O=!!v.leading,N="maxWait"in v,m=N?l(i(v.maxWait)||0,p):m,x="trailing"in v?!!v.trailing:x);function k(ue){var Ue=y,Ie=b;return y=b=void 0,R=ue,w=h.apply(Ie,Ue),w}function T(ue){return R=ue,_=setTimeout(V,p),O?k(ue):w}function F(ue){var Ue=ue-S,Ie=ue-R,$e=p-Ue;return N?u($e,m-Ie):$e}function z(ue){var Ue=ue-S,Ie=ue-R;return S===void 0||Ue>=p||Ue<0||N&&Ie>=m}function V(){var ue=n();if(z(ue))return fe(ue);_=setTimeout(V,F(ue))}function fe(ue){return _=void 0,x&&y?k(ue):(y=b=void 0,w)}function te(){_!==void 0&&clearTimeout(_),R=0,y=S=b=_=void 0}function oe(){return _===void 0?w:fe(n())}function pe(){var ue=n(),Ue=z(ue);if(y=arguments,b=this,S=ue,Ue){if(_===void 0)return T(S);if(N)return clearTimeout(_),_=setTimeout(V,p),k(S)}return _===void 0&&(_=setTimeout(V,p)),w}return pe.cancel=te,pe.flush=oe,pe}return fc=f,fc}var dc,qg;function ER(){if(qg)return dc;qg=1;var e=_R(),n=Cf(),i="Expected a function";function s(l,u,f){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(i);return n(f)&&(h="leading"in f?!!f.leading:h,p="trailing"in f?!!f.trailing:p),e(l,u,{leading:h,maxWait:u,trailing:p})}return dc=s,dc}var wR=ER();const SR=oa(wR);var hc,Vg;function xR(){if(Vg)return hc;Vg=1;function e(w,_){var S,R;if(typeof _=="function")R=_(w),R!==void 0&&(w=R);else if(Array.isArray(_))for(S=0;S<_.length;S++)R=_[S](w),R!==void 0&&(w=R);return w}function n(w,_){return w[0]==="-"&&Array.isArray(_)&&/^-\d+$/.test(w)?_.length+parseInt(w,10):w}function i(w){return/^\d+$/.test(w)}function s(w){return Object.prototype.toString.call(w)==="[object Object]"}function l(w){return Object(w)===w}function u(w){return Object.keys(w).length===0}var f=["__proto__","prototype","constructor"],h=function(w){return f.indexOf(w)===-1};function p(w,_){w.indexOf("[")>=0&&(w=w.replace(/\[/g,_).replace(/]/g,""));var S=w.split(_),R=S.filter(h);if(R.length!==S.length)throw Error("Refusing to update blacklisted property "+w);return S}var v=Object.prototype.hasOwnProperty;function y(w,_,S,R){if(!(this instanceof y))return new y(w,_,S,R);typeof _>"u"&&(_=!1),typeof S>"u"&&(S=!0),typeof R>"u"&&(R=!0),this.separator=w||".",this.override=_,this.useArray=S,this.useBrackets=R,this.keepArray=!1,this.cleanup=[]}var b=new y(".",!1,!0,!0);function m(w){return function(){return b[w].apply(b,arguments)}}return y.prototype._fill=function(w,_,S,R){var O=w.shift();if(w.length>0){if(_[O]=_[O]||(this.useArray&&i(w[0])?[]:{}),!l(_[O]))if(this.override)_[O]={};else{if(!(l(S)&&u(S)))throw new Error("Trying to redefine `"+O+"` which is a "+typeof _[O]);return}this._fill(w,_[O],S,R)}else{if(!this.override&&l(_[O])&&!u(_[O])){if(!(l(S)&&u(S)))throw new Error("Trying to redefine non-empty obj['"+O+"']");return}_[O]=e(S,R)}},y.prototype.object=function(w,_){var S=this;return Object.keys(w).forEach(function(R){var O=_===void 0?null:_[R],N=p(R,S.separator).join(S.separator);N.indexOf(S.separator)!==-1?(S._fill(N.split(S.separator),w,w[R],O),delete w[R]):w[R]=e(w[R],O)}),w},y.prototype.str=function(w,_,S,R){var O=p(w,this.separator).join(this.separator);return w.indexOf(this.separator)!==-1?this._fill(O.split(this.separator),S,_,R):S[w]=e(_,R),S},y.prototype.pick=function(w,_,S,R){var O,N,x,k,T;for(N=p(w,this.separator),O=0;O<N.length;O++)if(k=n(N[O],_),_&&typeof _=="object"&&k in _){if(O===N.length-1)return S?(x=_[k],R&&Array.isArray(_)?_.splice(k,1):delete _[k],Array.isArray(_)&&(T=N.slice(0,-1).join("."),this.cleanup.indexOf(T)===-1&&this.cleanup.push(T)),x):_[k];_=_[k]}else return;return S&&Array.isArray(_)&&(_=_.filter(function(F){return F!==void 0})),_},y.prototype.delete=function(w,_){return this.remove(w,_,!0)},y.prototype.remove=function(w,_,S){var R;if(this.cleanup=[],Array.isArray(w)){for(R=0;R<w.length;R++)this.pick(w[R],_,!0,S);return S||this._cleanup(_),_}else return this.pick(w,_,!0,S)},y.prototype._cleanup=function(w){var _,S,R,O;if(this.cleanup.length){for(S=0;S<this.cleanup.length;S++)R=this.cleanup[S].split("."),O=R.splice(0,-1).join("."),_=O?this.pick(O,w):w,_=_[R[0]].filter(function(N){return N!==void 0}),this.set(this.cleanup[S],_,w);this.cleanup=[]}},y.prototype.del=y.prototype.remove,y.prototype.move=function(w,_,S,R,O){return typeof R=="function"||Array.isArray(R)?this.set(_,e(this.pick(w,S,!0),R),S,O):(O=R,this.set(_,this.pick(w,S,!0),S,O)),S},y.prototype.transfer=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(this.pick(w,S,!0),O),R,N):(N=O,this.set(_,this.pick(w,S,!0),R,N)),R},y.prototype.copy=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(JSON.parse(JSON.stringify(this.pick(w,S,!1))),O),R,N):(N=O,this.set(_,this.pick(w,S,!1),R,N)),R},y.prototype.set=function(w,_,S,R){var O,N,x,k;if(typeof _>"u")return S;for(x=p(w,this.separator),O=0;O<x.length;O++){if(k=x[O],O===x.length-1)if(R&&s(_)&&s(S[k]))for(N in _)v.call(_,N)&&(S[k][N]=_[N]);else if(R&&Array.isArray(S[k])&&Array.isArray(_))for(var T=0;T<_.length;T++)S[x[O]].push(_[T]);else S[k]=_;else(!v.call(S,k)||!s(S[k])&&!Array.isArray(S[k]))&&(/^\d+$/.test(x[O+1])?S[k]=[]:S[k]={});S=S[k]}return S},y.prototype.transform=function(w,_,S){return _=_||{},S=S||{},Object.keys(w).forEach((function(R){this.set(w[R],this.pick(R,_),S)}).bind(this)),S},y.prototype.dot=function(w,_,S){_=_||{},S=S||[];var R=Array.isArray(w);return Object.keys(w).forEach((function(O){var N=R&&this.useBrackets?"["+O+"]":O;if(l(w[O])&&(s(w[O])&&!u(w[O])||Array.isArray(w[O])&&!this.keepArray&&w[O].length!==0))if(R&&this.useBrackets){var x=S[S.length-1]||"";return this.dot(w[O],_,S.slice(0,-1).concat(x+N))}else return this.dot(w[O],_,S.concat(N));else R&&this.useBrackets?_[S.join(this.separator).concat("["+O+"]")]=w[O]:_[S.concat(N).join(this.separator)]=w[O]}).bind(this)),_},y.pick=m("pick"),y.move=m("move"),y.transfer=m("transfer"),y.transform=m("transform"),y.copy=m("copy"),y.object=m("object"),y.str=m("str"),y.set=m("set"),y.delete=m("delete"),y.del=y.remove=m("remove"),y.dot=m("dot"),["override","overwrite"].forEach(function(w){Object.defineProperty(y,w,{get:function(){return b.override},set:function(_){b.override=!!_}})}),["useArray","keepArray","useBrackets"].forEach(function(w){Object.defineProperty(y,w,{get:function(){return b[w]},set:function(_){b[w]=_}})}),y._process=e,hc=y,hc}var bR=xR();const Gy={"page.title":"Bubble Chat Chatbot","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:
94
+ `,{inline:w}));for(;typeof _[_.length-1]=="string"&&!_[_.length-1].trim();)_.pop();if(n.wrapper===null)return _;const S=n.wrapper||(w?"span":"div");let R;if(_.length>1||n.forceWrapper)R=_;else{if(_.length===1)return R=_[0],typeof R=="string"?i("span",{key:"outer"},R):R;R=null}return n.createElement(S,{key:"outer"},R)}function l(m,w){const _=w.match(rx);return _?_.reduce(function(S,R){const O=R.indexOf("=");if(O!==-1){const N=function(F){return F.indexOf("-")!==-1&&F.match(vx)===null&&(F=F.replace(xx,function(z,V){return V.toUpperCase()})),F}(R.slice(0,O)).trim(),x=function(F){const z=F[0];return(z==='"'||z==="'")&&F.length>=2&&F[F.length-1]===z?F.slice(1,-1):F}(R.slice(O+1).trim()),k=Xm[N]||N;if(k==="ref")return S;const T=S[k]=function(F,z,V,fe){return z==="style"?V.split(/;\s?/).reduce(function(te,oe){const pe=oe.slice(0,oe.indexOf(":"));return te[pe.trim().replace(/(-[a-z])/g,ue=>ue[1].toUpperCase())]=oe.slice(pe.length+1).trim(),te},{}):z==="href"||z==="src"?fe(V,F,z):(V.match(_x)&&(V=V.slice(1,V.length-1)),V==="true"||V!=="false"&&V)}(m,N,x,n.sanitizer);typeof T=="string"&&(jc.test(T)||Uc.test(T))&&(S[k]=s(T.trim()))}else R!=="style"&&(S[Xm[R]||R]=!0);return S},{}):null}n.overrides=n.overrides||{},n.sanitizer=n.sanitizer||Jx,n.slugify=n.slugify||Vi,n.namedCodesToUnicode=n.namedCodesToUnicode?_n({},Ym,n.namedCodesToUnicode):Ym,n.createElement=n.createElement||B.createElement;const u=[],f={},h={[se.blockQuote]:{match:wr(gy),order:1,parse(m,w,_){const[,S,R]=m[0].replace(ox,"").match(sx);return{alert:S,children:w(R,_)}},render(m,w,_){const S={key:_.key};return m.alert&&(S.className="markdown-alert-"+n.slugify(m.alert.toLowerCase(),Vi),m.children.unshift({attrs:{},children:[{type:se.text,text:m.alert}],noInnerParse:!0,type:se.htmlBlock,tag:"header"})),i("blockquote",S,w(m.children,_))}},[se.breakLine]:{match:Wi(ax),order:1,parse:zu,render:(m,w,_)=>i("br",{key:_.key})},[se.breakThematic]:{match:wr(lx),order:1,parse:zu,render:(m,w,_)=>i("hr",{key:_.key})},[se.codeBlock]:{match:wr(vy),order:0,parse:m=>({lang:void 0,text:io(m[0].replace(/^ {4}/gm,"")).replace(Uu,"$1")}),render:(m,w,_)=>i("pre",{key:_.key},i("code",_n({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[se.codeFenced]:{match:wr(yy),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4].replace(Uu,"$1"),type:se.codeBlock})},[se.codeInline]:{match:Kr(ux),order:3,parse:m=>({text:m[2].replace(Uu,"$1")}),render:(m,w,_)=>i("code",{key:_.key},m.text)},[se.footnote]:{match:wr(dx),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Gu},[se.footnoteReference]:{match:Wr(hx),order:1,parse:m=>({target:`#${n.slugify(m[1],Vi)}`,text:m[1]}),render:(m,w,_)=>i("a",{key:_.key,href:n.sanitizer(m.target,"a","href")},i("sup",{key:_.key},m.text))},[se.gfmTask]:{match:Wr(gx),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,w,_)=>i("input",{checked:m.completed,key:_.key,readOnly:!0,type:"checkbox"})},[se.heading]:{match:wr(n.enforceAtxHeadings?Ey:_y),order:1,parse:(m,w,_)=>({children:Ks(w,m[2],_),id:n.slugify(m[2],Vi),level:m[1].length}),render:(m,w,_)=>i(`h${m.level}`,{id:m.id,key:_.key},w(m.children,_))},[se.headingSetext]:{match:wr(wy),order:0,parse:(m,w,_)=>({children:Ks(w,m[1],_),level:m[2]==="="?1:2,type:se.heading})},[se.htmlBlock]:{match:Wi(jc),order:1,parse(m,w,_){const[,S]=m[3].match(Ux),R=new RegExp(`^${S}`,"gm"),O=m[3].replace(R,""),N=(x=O,Zx.some(V=>V.test(x))?tb:Ks);var x;const k=m[1].toLowerCase(),T=tx.indexOf(k)!==-1,F=(T?k:m[1]).trim(),z={attrs:l(F,m[2]),noInnerParse:T,tag:F};return _.inAnchor=_.inAnchor||k==="a",T?z.text=m[3]:z.children=N(w,O,_),_.inAnchor=!1,z},render:(m,w,_)=>i(m.tag,_n({key:_.key},m.attrs),m.text||(m.children?w(m.children,_):""))},[se.htmlSelfClosing]:{match:Wi(Uc),order:1,parse(m){const w=m[1].trim();return{attrs:l(w,m[2]||""),tag:w}},render:(m,w,_)=>i(m.tag,_n({},m.attrs,{key:_.key}))},[se.htmlComment]:{match:Wi(Sy),order:1,parse:()=>({}),render:Gu},[se.image]:{match:Kr(Kx),order:1,parse:m=>({alt:m[1],target:rg(m[2]),title:m[3]}),render:(m,w,_)=>i("img",{key:_.key,alt:m.alt||void 0,title:m.title||void 0,src:n.sanitizer(m.target,"img","src")})},[se.link]:{match:Wr(Wx),order:3,parse:(m,w,_)=>({children:eb(w,m[1],_),target:rg(m[2]),title:m[3]}),render:(m,w,_)=>i("a",{key:_.key,href:n.sanitizer(m.target,"a","href"),title:m.title},w(m.children,_))},[se.linkAngleBraceStyleDetector]:{match:Wr(Sx),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],type:se.link})},[se.linkBareUrlDetector]:{match:Yn((m,w)=>w.inAnchor||n.disableAutoLink?null:Wr(Ex)(m,w)),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],title:void 0,type:se.link})},[se.linkMailtoDetector]:{match:Wr(wx),order:0,parse(m){let w=m[1],_=m[1];return nx.test(_)||(_="mailto:"+_),{children:[{text:w.replace("mailto:",""),type:se.text}],target:_,type:se.link}}},[se.orderedList]:Jm(i,1),[se.unorderedList]:Jm(i,2),[se.newlineCoalescer]:{match:wr(cx),order:3,parse:zu,render:()=>`
95
+ `},[se.paragraph]:{match:Yn(Yx),order:3,parse:Hu,render:(m,w,_)=>i("p",{key:_.key},w(m.children,_))},[se.ref]:{match:Wr(bx),order:0,parse:m=>(f[m[1]]={target:m[2],title:m[4]},{}),render:Gu},[se.refImage]:{match:Kr(Tx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,w,_)=>f[m.ref]?i("img",{key:_.key,alt:m.alt,src:n.sanitizer(f[m.ref].target,"img","src"),title:f[m.ref].title}):null},[se.refLink]:{match:Wr(Cx),order:0,parse:(m,w,_)=>({children:w(m[1],_),fallbackChildren:m[0],ref:m[2]}),render:(m,w,_)=>f[m.ref]?i("a",{key:_.key,href:n.sanitizer(f[m.ref].target,"a","href"),title:f[m.ref].title},w(m.children,_)):i("span",{key:_.key},m.fallbackChildren)},[se.table]:{match:wr(xy),order:1,parse:Xx,render(m,w,_){const S=m;return i("table",{key:_.key},i("thead",null,i("tr",null,S.header.map(function(R,O){return i("th",{key:O,style:tg(S,O)},w(R,_))}))),i("tbody",null,S.cells.map(function(R,O){return i("tr",{key:O},R.map(function(N,x){return i("td",{key:x,style:tg(S,x)},w(N,_))}))})))}},[se.text]:{match:Wi(Bx),order:4,parse:m=>({text:m[0].replace(yx,(w,_)=>n.namedCodesToUnicode[_]?n.namedCodesToUnicode[_]:w)}),render:m=>m.text},[se.textBolded]:{match:Kr(Dx),order:2,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("strong",{key:_.key},w(m.children,_))},[se.textEmphasized]:{match:Kr(Px),order:3,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("em",{key:_.key},w(m.children,_))},[se.textEscaped]:{match:Kr(Lx),order:1,parse:m=>({text:m[1],type:se.text})},[se.textMarked]:{match:Kr(Mx),order:3,parse:Hu,render:(m,w,_)=>i("mark",{key:_.key},w(m.children,_))},[se.textStrikethroughed]:{match:Kr(Fx),order:3,parse:Hu,render:(m,w,_)=>i("del",{key:_.key},w(m.children,_))}};n.disableParsingRawHTML===!0&&(delete h[se.htmlBlock],delete h[se.htmlSelfClosing]);const p=function(m){let w=Object.keys(m);function _(S,R){let O,N,x=[],k="",T="";for(R.prevCapture=R.prevCapture||"";S;){let F=0;for(;F<w.length;){if(k=w[F],O=m[k],R.inline&&!O.match.inline){F++;continue}const z=O.match(S,R);if(z){T=z[0],R.prevCapture+=T,S=S.substring(T.length),N=O.parse(z,_,R),N.type==null&&(N.type=k),x.push(N);break}F++}}return R.prevCapture="",x}return w.sort(function(S,R){let O=m[S].order,N=m[R].order;return O!==N?O-N:S<R?-1:1}),function(S,R){return _(function(O){return O.replace(fx,`
96
+ `).replace(px,"").replace(Rx," ")}(S),R)}}(h),v=(y=function(m,w){return function(_,S,R){const O=m[_.type].render;return w?w(()=>O(_,S,R),_,S,R):O(_,S,R)}}(h,n.renderRule),function m(w,_={}){if(Array.isArray(w)){const S=_.key,R=[];let O=!1;for(let N=0;N<w.length;N++){_.key=N;const x=m(w[N],_),k=typeof x=="string";k&&O?R[R.length-1]+=x:x!==null&&R.push(x),O=k}return _.key=S,R}return y(w,m,_)});var y;const b=s(e);return u.length?i("div",null,b,i("footer",{key:"footer"},u.map(function(m){return i("div",{id:n.slugify(m.identifier,Vi),key:m.identifier},m.identifier,v(p(m.footnote,{inline:!0})))}))):b}const lr=e=>{let{children:n="",options:i}=e,s=function(l,u){if(l==null)return{};var f,h,p={},v=Object.keys(l);for(h=0;h<v.length;h++)u.indexOf(f=v[h])>=0||(p[f]=l[f]);return p}(e,ex);return B.cloneElement(nb(n,i),s)},ib="_generalConditionsContainer_55hjg_1",ob="_generalConditions_55hjg_1",sb="_generalConditionsHeader_55hjg_15",ab="_generalConditionsBody_55hjg_26",lb="_generalConditionsAccept_55hjg_35",Ki={generalConditionsContainer:ib,generalConditions:ob,generalConditionsHeader:sb,generalConditionsBody:ab,generalConditionsAccept:lb},ub=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),cb=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),fb="general-conditions.header",db="general-conditions.body",ng="general-conditions.accept-conditions-note",hb=()=>{const e=Je(),[n,i]=B.useState(!1),s=()=>i(!n),l=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},u=e(fb),f=e(ng);return E.jsxs("div",{className:q(Ki.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&E.jsxs("div",{className:Ki.generalConditions,children:[E.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:q(Ki.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":n?"true":"false","aria-pressed":n?"true":"false",children:[E.jsx(lr,{children:u}),n?E.jsx(cb,{}):E.jsx(ub,{})]}),E.jsx("div",{className:q(Ki.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:n&&E.jsx(lr,{children:e(db)||""})})]}),!!(f!=null&&f.length)&&E.jsx("div",{className:q(Ki.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:E.jsx(lr,{children:e(ng)||""})})]})},pb="_message_1qom7_1",mb="_messageBot_1qom7_9",gb="_messageBotLast_1qom7_19",yb="_avatar_1qom7_19",vb="_messageBotFirst_1qom7_24",_b="_messageBotAnimated_1qom7_37",Eb="_messageGuest_1qom7_48",wb="_messageGuestFirst_1qom7_54",Sb="_messageGuestLast_1qom7_60",xb="_botAvatar_1qom7_74",bb="_agentAvatar_1qom7_78",Tb="_bubble_1qom7_82",Cb="_bubbleContent_1qom7_88",kb="_bubbleLeft_1qom7_102",Rb="_leftText_1qom7_113",Ob="_bubbleRight_1qom7_120",Nb="_rightText_1qom7_130",Ab="_sourceInfoReference_1qom7_162",de={message:pb,messageBot:mb,messageBotLast:gb,avatar:yb,messageBotFirst:vb,messageBotAnimated:_b,messageGuest:Eb,messageGuestFirst:wb,messageGuestLast:Sb,botAvatar:xb,agentAvatar:bb,bubble:Tb,bubbleContent:Cb,bubbleLeft:kb,leftText:Rb,bubbleRight:Ob,rightText:Nb,sourceInfoReference:Ab},Ib="_botMessageActions_1dl7x_1",Db="_alwaysVisible_1dl7x_22",Pb="_reported_1dl7x_29",Mb="_action_1dl7x_33",Zr={botMessageActions:Ib,alwaysVisible:Db,reported:Pb,action:Mb},Fb=({alwaysVisible:e,reaction:n,botMessageRef:i,onReaction:s})=>{const l=Je(),[u,f]=B.useState(!1),h=v=>()=>s(v),p=B.useCallback(async()=>{if(i.current)try{f(!0);const v=i.current.innerHTML,y=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([y],{type:"text/plain"})})]),await new Promise(b=>setTimeout(b,1500))}finally{f(!1)}},[i]);return E.jsxs("div",{className:q(Zr.botMessageActions,e&&Zr.alwaysVisible,n&&Zr.reported),children:[E.jsx("button",{className:q(Zr.action,n==="GOOD"&&Zr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:h(n==="GOOD"?null:"GOOD"),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="GOOD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Zr.action,n==="BAD"&&Zr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:h(n==="BAD"?null:"BAD"),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="BAD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Zr.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?E.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"}):E.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"})})})]})},Dy=B.forwardRef(({message:e,isAnimated:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:f},h)=>{const p=Je(),v=B.useRef(null),y=e.sender.type===ge.UserType.BOT;return E.jsxs("li",{ref:h,className:q(de.message,de.messageBot,i&&de.lastMessage,s&&de.messageBotFirst,l&&de.messageBotLast,"chat__bubbleContainer",n&&de.messageBotAnimated,n&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,y?de.botAvatar:de.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),E.jsx("div",{ref:v,className:q(de.bubble,de.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:E.jsx("div",{className:q(de.leftText),children:u})}),f&&E.jsx(Fb,{alwaysVisible:i&&l,reaction:e.reaction,botMessageRef:v,onReaction:f})]})}),Lb="_button_3ui4g_1",Bb="_buttonDefault_3ui4g_13",jb="_buttonPrimary_3ui4g_28",oo={button:Lb,buttonDefault:Bb,buttonPrimary:jb},ya=({className:e,children:n,...i})=>E.jsx("button",{className:q(oo.button,e),type:"button",...i,children:n}),Ub="_title_b904h_1",Hb="_subtitle_b904h_6",zb="_buttons_b904h_11",Gb="_button_b904h_11",$b="_imageContainer_b904h_34",qb="_image_b904h_34",Vb="_video_container_b904h_49",Wb="_video_b904h_49",Kb="_only_b904h_63",wt={title:Ub,subtitle:Hb,buttons:zb,button:Gb,imageContainer:$b,image:qb,video_container:Vb,video:Wb,only:Kb},Zb=({buttons:e,onButtonClick:n})=>E.jsx("div",{className:q(wt.buttons,"chat__bubbleButtons"),children:e.map((i,s)=>E.jsx(ya,{className:q(wt.button,"chat__bubbleButton"),onClick:()=>n(i),children:i.title},s))});var Ls={},Bs={},js={},ig;function Qb(){if(ig)return js;ig=1,Object.defineProperty(js,"__esModule",{value:!0});var e=Jn(),n=i(e);function i(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l.default=s,l}return js.default=function(s,l,u){return n.createElement("a",{href:s,key:u},l)},js}var Us={},og;function Xb(){return og||(og=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=function(e){return e}),Us}var Hs={},qu,sg;function Yb(){return sg||(sg=1,qu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),qu}var Vu,ag;function Jb(){return ag||(ag=1,Vu=/[\0-\x1F\x7F-\x9F]/),Vu}var Wu,lg;function eT(){return lg||(lg=1,Wu=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Wu}var Ku,ug;function tT(){return ug||(ug=1,Ku=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Ku}var Zu,cg;function rT(){return cg||(cg=1,Zu=function(e){var n={};n.src_Any=Yb().source,n.src_Cc=Jb().source,n.src_Z=eT().source,n.src_P=tT().source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");var i="[><|]";return n.src_pseudo_letter="(?:(?!"+i+"|"+n.src_ZPCc+")"+n.src_Any+")",n.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]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+i+"|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}),Zu}var Qu,fg;function nT(){if(fg)return Qu;fg=1;function e(x){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(T){T&&Object.keys(T).forEach(function(F){x[F]=T[F]})}),x}function n(x){return Object.prototype.toString.call(x)}function i(x){return n(x)==="[object String]"}function s(x){return n(x)==="[object Object]"}function l(x){return n(x)==="[object RegExp]"}function u(x){return n(x)==="[object Function]"}function f(x){return x.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(x){return Object.keys(x||{}).reduce(function(k,T){return k||h.hasOwnProperty(T)},!1)}var v={"http:":{validate:function(x,k,T){var F=x.slice(k);return T.re.http||(T.re.http=new RegExp("^\\/\\/"+T.re.src_auth+T.re.src_host_port_strict+T.re.src_path,"i")),T.re.http.test(F)?F.match(T.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(x,k,T){var F=x.slice(k);return T.re.no_http||(T.re.no_http=new RegExp("^"+T.re.src_auth+"(?:localhost|(?:(?:"+T.re.src_domain+")\\.)+"+T.re.src_domain_root+")"+T.re.src_port+T.re.src_host_terminator+T.re.src_path,"i")),T.re.no_http.test(F)?k>=3&&x[k-3]===":"||k>=3&&x[k-3]==="/"?0:F.match(T.re.no_http)[0].length:0}},"mailto:":{validate:function(x,k,T){var F=x.slice(k);return T.re.mailto||(T.re.mailto=new RegExp("^"+T.re.src_email_name+"@"+T.re.src_host_strict,"i")),T.re.mailto.test(F)?F.match(T.re.mailto)[0].length:0}}},y="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]",b="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(x){x.__index__=-1,x.__text_cache__=""}function w(x){return function(k,T){var F=k.slice(T);return x.test(F)?F.match(x)[0].length:0}}function _(){return function(x,k){k.normalize(x)}}function S(x){var k=x.re=rT()(x.__opts__),T=x.__tlds__.slice();x.onCompile(),x.__tlds_replaced__||T.push(y),T.push(k.src_xn),k.src_tlds=T.join("|");function F(te){return te.replace("%TLDS%",k.src_tlds)}k.email_fuzzy=RegExp(F(k.tpl_email_fuzzy),"i"),k.link_fuzzy=RegExp(F(k.tpl_link_fuzzy),"i"),k.link_no_ip_fuzzy=RegExp(F(k.tpl_link_no_ip_fuzzy),"i"),k.host_fuzzy_test=RegExp(F(k.tpl_host_fuzzy_test),"i");var z=[];x.__compiled__={};function V(te,oe){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+oe)}Object.keys(x.__schemas__).forEach(function(te){var oe=x.__schemas__[te];if(oe!==null){var pe={validate:null,link:null};if(x.__compiled__[te]=pe,s(oe)){l(oe.validate)?pe.validate=w(oe.validate):u(oe.validate)?pe.validate=oe.validate:V(te,oe),u(oe.normalize)?pe.normalize=oe.normalize:oe.normalize?V(te,oe):pe.normalize=_();return}if(i(oe)){z.push(te);return}V(te,oe)}}),z.forEach(function(te){x.__compiled__[x.__schemas__[te]]&&(x.__compiled__[te].validate=x.__compiled__[x.__schemas__[te]].validate,x.__compiled__[te].normalize=x.__compiled__[x.__schemas__[te]].normalize)}),x.__compiled__[""]={validate:null,normalize:_()};var fe=Object.keys(x.__compiled__).filter(function(te){return te.length>0&&x.__compiled__[te]}).map(f).join("|");x.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","i"),x.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","ig"),x.re.pretest=RegExp("("+x.re.schema_test.source+")|("+x.re.host_fuzzy_test.source+")|@","i"),m(x)}function R(x,k){var T=x.__index__,F=x.__last_index__,z=x.__text_cache__.slice(T,F);this.schema=x.__schema__.toLowerCase(),this.index=T+k,this.lastIndex=F+k,this.raw=z,this.text=z,this.url=z}function O(x,k){var T=new R(x,k);return x.__compiled__[T.schema].normalize(T,x),T}function N(x,k){if(!(this instanceof N))return new N(x,k);k||p(x)&&(k=x,x={}),this.__opts__=e({},h,k),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},v,x),this.__compiled__={},this.__tlds__=b,this.__tlds_replaced__=!1,this.re={},S(this)}return N.prototype.add=function(k,T){return this.__schemas__[k]=T,S(this),this},N.prototype.set=function(k){return this.__opts__=e(this.__opts__,k),this},N.prototype.test=function(k){if(this.__text_cache__=k,this.__index__=-1,!k.length)return!1;var T,F,z,V,fe,te,oe,pe,ue;if(this.re.schema_test.test(k)){for(oe=this.re.schema_search,oe.lastIndex=0;(T=oe.exec(k))!==null;)if(V=this.testSchemaAt(k,T[2],oe.lastIndex),V){this.__schema__=T[2],this.__index__=T.index+T[1].length,this.__last_index__=T.index+T[0].length+V;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(pe=k.search(this.re.host_fuzzy_test),pe>=0&&(this.__index__<0||pe<this.__index__)&&(F=k.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(fe=F.index+F[1].length,(this.__index__<0||fe<this.__index__)&&(this.__schema__="",this.__index__=fe,this.__last_index__=F.index+F[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ue=k.indexOf("@"),ue>=0&&(z=k.match(this.re.email_fuzzy))!==null&&(fe=z.index+z[1].length,te=z.index+z[0].length,(this.__index__<0||fe<this.__index__||fe===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=fe,this.__last_index__=te))),this.__index__>=0},N.prototype.pretest=function(k){return this.re.pretest.test(k)},N.prototype.testSchemaAt=function(k,T,F){return this.__compiled__[T.toLowerCase()]?this.__compiled__[T.toLowerCase()].validate(k,F,this):0},N.prototype.match=function(k){var T=0,F=[];this.__index__>=0&&this.__text_cache__===k&&(F.push(O(this,T)),T=this.__last_index__);for(var z=T?k.slice(T):k;this.test(z);)F.push(O(this,T)),z=z.slice(this.__last_index__),T+=this.__last_index__;return F.length?F:null},N.prototype.tlds=function(k,T){return k=Array.isArray(k)?k:[k],T?(this.__tlds__=this.__tlds__.concat(k).sort().filter(function(F,z,V){return F!==V[z-1]}).reverse(),S(this),this):(this.__tlds__=k.slice(),this.__tlds_replaced__=!0,S(this),this)},N.prototype.normalize=function(k){k.schema||(k.url="http://"+k.url),k.schema==="mailto:"&&!/^mailto:/i.test(k.url)&&(k.url="mailto:"+k.url)},N.prototype.onCompile=function(){},Qu=N,Qu}const iT=JSON.parse('["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","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var dg;function oT(){if(dg)return Hs;dg=1,Object.defineProperty(Hs,"__esModule",{value:!0});var e=nT(),n=l(e),i=iT,s=l(i);function l(f){return f&&f.__esModule?f:{default:f}}var u=new n.default;return u.tlds(s.default),Hs.default=function(f){return u.match(f)},Hs}var zs={},hg;function sT(){return hg||(hg=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=function(e){return e}),zs}var pg;function aT(){if(pg)return Bs;pg=1,Object.defineProperty(Bs,"__esModule",{value:!0});var e=function(){function O(N,x){for(var k=0;k<x.length;k++){var T=x[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(N,T.key,T)}}return function(N,x,k){return x&&O(N.prototype,x),k&&O(N,k),N}}(),n=Jn(),i=m(n),s=Qb(),l=b(s),u=Xb(),f=b(u),h=oT(),p=b(h),v=sT(),y=b(v);function b(O){return O&&O.__esModule?O:{default:O}}function m(O){if(O&&O.__esModule)return O;var N={};if(O!=null)for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(N[x]=O[x]);return N.default=O,N}function w(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function _(O,N){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:O}function S(O,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);O.prototype=Object.create(N&&N.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(O,N):O.__proto__=N)}var R=function(O){S(N,O);function N(){return w(this,N),_(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return e(N,[{key:"parseString",value:function(k){var T=this;if(k==="")return k;var F=this.props.matchDecorator(k);if(!F)return k;var z=[],V=0;return F.forEach(function(fe,te){fe.index>V&&z.push(k.substring(V,fe.index));var oe=T.props.hrefDecorator(fe.url),pe=T.props.textDecorator(fe.text),ue=T.props.componentDecorator(oe,pe,te);z.push(ue),V=fe.lastIndex}),k.length>V&&z.push(k.substring(V)),z.length===1?z[0]:z}},{key:"parse",value:function(k){var T=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="string"?this.parseString(k):i.isValidElement(k)&&k.type!=="a"&&k.type!=="button"?i.cloneElement(k,{key:F},this.parse(k.props.children)):Array.isArray(k)?k.map(function(z,V){return T.parse(z,V)}):k}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),N}(i.Component);return R.defaultProps={componentDecorator:l.default,hrefDecorator:f.default,matchDecorator:p.default,textDecorator:y.default},Bs.default=R,Bs}var mg;function lT(){if(mg)return Ls;mg=1,Object.defineProperty(Ls,"__esModule",{value:!0});var e=aT(),n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}return Ls.default=n.default,Ls}var uT=lT();const cT=oa(uT),fT="_text_gp0s0_1",dT="_command_gp0s0_5",gg={text:fT,command:dT},Py=({text:e,commands:n=[],onLinkClick:i})=>{const s=h=>p=>(p.preventDefault(),h&&i(h),!1),l=(h,p,v)=>E.jsx("a",{onClick:s(h),role:"button",children:p},v),u=n.find(h=>e.startsWith(`/${h}`)),f=u?e.slice(u.length+1):e;return E.jsxs("div",{children:[u&&E.jsxs("code",{className:gg.command,children:["/",u]}),f.split(`
97
+ `).map((h,p)=>E.jsxs("span",{className:gg.text,children:[E.jsx(cT,{componentDecorator:l,children:h}),E.jsx("br",{})]},p))]})},hT=({subtitle:e,onLinkClick:n})=>e?E.jsx("div",{className:wt.subtitle,children:E.jsx(Py,{text:e,onLinkClick:n})}):null,yg="newtab#",My=({markdown:e,markdownOptions:n={},onLinkClick:i})=>{const s=u=>f=>(f.preventDefault(),u&&i(u),!1),l=({title:u,href:f,children:h})=>f.indexOf(yg)===0?E.jsx("a",{href:f.slice(yg.length),title:u,target:"_blank",rel:"noopener noreferrer",children:h}):E.jsx("a",{onClick:s(f),title:u,href:f,children:h});return E.jsx(lr,{options:{...n,overrides:{a:l}},children:e})},pT=({text:e,onLinkClick:n})=>e?E.jsx("div",{children:E.jsx(My,{markdown:e,onLinkClick:n})}):null,mT=({title:e})=>e?E.jsx("h1",{className:wt.title,children:e}):null,gT=({title:e,text:n,subtitle:i,buttons:s,onButtonClick:l,onLinkClick:u})=>(e==null?void 0:e.length)||(n==null?void 0:n.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?E.jsxs("div",{className:q(de.bubbleContent),children:[E.jsx(mT,{title:e}),E.jsx(pT,{text:n,onLinkClick:u}),E.jsx(hT,{subtitle:i,onLinkClick:u}),E.jsx(Zb,{buttons:s,onButtonClick:l})]}):null,yT=({alt:e,imageUrl:n,itemUrl:i,hasBody:s})=>n?i?i.indexOf("youtube.com")>-1?E.jsx("div",{className:wt.video_container,children:E.jsx("iframe",{className:q(wt.video,{[wt.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):E.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})})}):E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})}):null,vT=({title:e,text:n,subtitle:i,imageUrl:s,itemUrl:l,buttons:u,onButtonClick:f,onLinkClick:h})=>{const p=!!(e!=null&&e.length)||!!(n!=null&&n.length)||!!(i!=null&&i.length)||!!(u!=null&&u.length);return E.jsxs("div",{className:q(wt.detailMessage),children:[E.jsx(yT,{hasBody:p,imageUrl:s,itemUrl:l,alt:e||i}),p&&E.jsx(gT,{title:e,text:n,subtitle:i,buttons:u,onLinkClick:h,onButtonClick:f})]})},_T=B.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:n,children:i},s)=>{const l=Je();return E.jsx("li",{ref:s,className:q(de.message,de.messageGuest,e&&de.messageGuestFirst,n&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:E.jsx("div",{className:q(de.rightText),children:i})})})}),ET="_markdown_nw7vg_1",Fy={markdown:ET},Gs="source-info-reference",wT=({markdown:e,className:n,onLinkClick:i})=>{const s=ti(),l=ST(),u=h=>p=>{const v=p.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(p.stopPropagation(),s(Wm(h)))},f=h=>()=>{s(Wm(h))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Gs}`).forEach(h=>{var y,b,m,w;const p=h.previousSibling;p&&p.nodeType===Node.TEXT_NODE&&((y=p.textContent)!=null&&y.endsWith(" "))&&((b=p.textContent)!=null&&b.trim().length)&&h.classList.add(`${Gs}--before-space`);const v=h.nextSibling;v&&v.nodeType===Node.TEXT_NODE&&((m=v.textContent)!=null&&m.startsWith(" "))&&((w=v.textContent)!=null&&w.trim().length)&&h.classList.add(`${Gs}--after-space`)})},[e]),E.jsx("div",{className:q(de.bubbleContent,Fy.markdown,n),children:E.jsx(My,{markdown:e,onLinkClick:i,markdownOptions:{renderRule(h,p,v,y){return p.type===se.footnoteReference?E.jsx("span",{className:q(de.sourceInfoReference,Gs),children:E.jsx("a",{type:"button",tabIndex:0,onClick:f(p.text),onKeyDown:u(p.text),children:l(p.text)})},y.key):h()}}})})},ST=()=>{const e=[];return i=>{const s=e.indexOf(i);return s>-1?s+1:(e.push(i),e.length)}},xT=({text:e,commands:n,onLinkClick:i})=>E.jsx("div",{className:de.bubbleContent,children:E.jsx(Py,{text:e,commands:n,onLinkClick:i})}),bT=B.forwardRef(({message:e,commands:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:u,onButtonClick:f,onLinkClick:h},p)=>{const v=TT(e,n,f,h);switch(e.sender.type){case ge.UserType.GUEST:return E.jsx(_T,{ref:p,isFirstMessageBySender:s,isLastMessageBySender:l,children:v});default:{const y=b=>u(e._id,b);return E.jsx(Dy,{ref:p,message:e,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:y,children:v})}}}),TT=(e,n,i,s)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const l=e;return E.jsx(xT,{text:l.text,commands:n,onLinkClick:s})}case ge.MessageTypeEnum.DETAIL:{const l=e;return E.jsx(vT,{title:l.title,text:l.text,subtitle:l.subtitle,imageUrl:l.imageUrl,itemUrl:l.itemUrl,buttons:l.buttons,onButtonClick:i,onLinkClick:s})}case ge.MessageTypeEnum.MARKDOWN:{const l=e;return E.jsx(wT,{markdown:l.markdown,className:l.className,onLinkClick:s})}}},CT=(e,n)=>e.message._id===n.message._id&&e.message.reaction===n.message.reaction&&e.isLastMessage===n.isLastMessage&&e.isFirstMessageBySender===n.isFirstMessageBySender&&e.isLastMessageBySender===n.isLastMessageBySender,kT=r0.memo(bT,CT),RT="_ticontainer_xg0dn_1",OT="_tiblock_xg0dn_5",NT="_tidot_xg0dn_12",Zi={ticontainer:RT,tiblock:OT,tidot:NT},AT=({isTyping:e=!1})=>E.jsx("div",{className:Zi.ticontainer,children:E.jsx("div",{className:Zi.tiblock,children:e?E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")})]}):null})}),IT=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),DT=({messages:e,isBotTyping:n,showGeneralConditions:i,commands:s,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const h=B.useRef(0),p=B.useRef(!0),v=B.useRef(null),y=B.useRef(null),b=B.useRef(null);B.useLayoutEffect(()=>{if(e.length&&v.current&&(h.current<e.length||n)){if(y.current){const _=y.current.offsetTop;v.current.scrollTop=_}else if(b.current){const _=b.current.offsetTop;v.current.scrollTop=_}p.current&&(p.current=!1),h.current=e.length}},[e,p,n]);let m;const w=e.length;return E.jsxs("div",{ref:v,className:q(Zm.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&p.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[i&&E.jsx(hb,{}),E.jsxs("ul",{className:Zm.messages,children:[e.map((_,S)=>{const R=PT(_,m),O=MT(_,S,e,n);m=_.sender.type;const N=S+1===w;return E.jsx(kT,{ref:N?b:null,message:_,commands:s,isLastMessage:N,isFirstMessageBySender:R,isLastMessageBySender:O,onButtonClick:u,onLinkClick:f,onReaction:l},N&&!n?"last":_._id)}),n&&E.jsx(Dy,{ref:y,message:IT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:m!==ge.UserType.BOT,isLastMessageBySender:!0,children:E.jsx(AT,{isTyping:!0})},"last")]})]})},PT=(e,n)=>!n||n!==e.sender.type,MT=(e,n,i,s)=>{var h;const l=e.sender.type,u=i.length;return n+1===u?!(l===ge.UserType.BOT&&s):l!==((h=i.at(n+1))==null?void 0:h.sender.type)},FT="_bottomSheet_jp8dl_1",LT="_bottomSheetOpen_jp8dl_15",BT="_bottomSheetClose_jp8dl_20",Tr={bottomSheet:FT,bottomSheetOpen:LT,bottomSheetClose:BT},jT="_container_xc2nx_1",vg={container:jT},UT=({contentUrl:e})=>{const n=Qr(u=>u.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(u=>u||!!e)},[e]);const l=B.useMemo(()=>{if(e&&n){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",n),u.toString()}else return},[e,n]);return E.jsx("div",{className:q(vg.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:!!e,[Tr.bottomSheetClose]:i&&!e}),children:l&&E.jsx("iframe",{title:"Drawer",src:l,className:vg.iframe})})},HT="_container_tr4tn_1",zT={container:HT},GT=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),$T=()=>{const n=Je()("powered-by");return n&&n.length?E.jsx("div",{className:q(zT.container,"chat__poweredBy"),children:E.jsx(lr,{options:{overrides:{a:GT}},children:n})}):null},_g=({className:e,children:n,...i})=>E.jsx(ya,{className:q(oo.buttonDefault,e),type:"button",...i,children:n}),so=({className:e,children:n,...i})=>E.jsx(ya,{className:q(oo.buttonPrimary,e),...i,children:n}),qT="_container_h23mk_1",VT="_formContainer_h23mk_17",WT="_emailInput_h23mk_22",KT="_description_h23mk_52",ZT="_actions_h23mk_57",QT="_validationError_h23mk_67",XT="_submitted_h23mk_74",Sr={container:qT,formContainer:VT,emailInput:WT,description:KT,actions:ZT,validationError:QT,submitted:XT},YT=({visible:e,methods:n,onEmailExport:i,onPdfExport:s,onClose:l})=>{const u=Je(),[f,h]=B.useState(void 0),[p,v]=B.useState(!1),[y,b]=B.useState(!1),[m,w]=B.useState(void 0),_=B.useRef(null);B.useEffect(()=>{var N;e?((N=_.current)==null||N.focus(),v(!1),b(!1),h(e)):f===!0&&h(!1)},[e,f]);const S=N=>{N.preventDefault(),m&&m.length>0&&(i(m),v(!0),setTimeout(l,3*1e3))},R=N=>{const x=N.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(x);w(k?x:"")},O=()=>{b(!0),s(),setTimeout(l,3*1e3)};return E.jsxs("div",{className:q(Sr.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:f===!0,[Tr.bottomSheetClose]:f===!1}),children:[n.pdf&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.pdf.title")}),E.jsx(lr,{className:Sr.description,children:u("export-transcript.pdf.description")||""}),E.jsxs("div",{className:Sr.actions,children:[E.jsx(_g,{onClick:l,children:u("export-transcript.pdf.cancel")}),E.jsx(so,{onClick:O,disabled:y,children:u("export-transcript.pdf.download")})]})]}),n.email&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.email.title")}),E.jsx(lr,{className:Sr.description,children:u("export-transcript.email.description")||""}),E.jsxs("form",{onSubmit:S,className:Sr.formContainer,children:[E.jsxs("div",{children:[E.jsx("input",{disabled:p,ref:_,type:"email",placeholder:u("export-transcript.email.placeholder"),className:Sr.emailInput,onChange:R}),(m==null?void 0:m.length)===0?E.jsx("div",{className:Sr.validationError,children:u("export-transcript.email.invalid")}):null]}),E.jsxs("div",{className:Sr.actions,children:[E.jsx(_g,{onClick:l,children:u("export-transcript.email.cancel")}),E.jsx(so,{type:"submit",disabled:p||m===void 0||m.length===0,children:u("export-transcript.email.send")})]})]}),p&&E.jsx("div",{className:Sr.submitted,children:u("export-transcript.email.success")})]})]})},JT="_inputContainer_fi5ao_1",eC={inputContainer:JT},tC="_blockUserInput_mjy87_1",rC={blockUserInput:tC},nC=({visible:e})=>{const n=Je();return e?E.jsx("div",{className:q(rC.blockUserInput,"chat__blockUserInput"),children:n("block-user-input.title")}):null},iC="_commandsDropdown_5ytuv_1",oC="_commands_5ytuv_1",sC="_command_5ytuv_1",aC="_commandActive_5ytuv_46",lC="_commandsSelections_5ytuv_55",Yi={commandsDropdown:iC,commands:oC,command:sC,commandActive:aC,commandsSelections:lC},uC=(e,n)=>{B.useEffect(()=>{const i=s=>{e.current&&!e.current.contains(s.target)&&n()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[e,n])},cC=(e,n,i,s,l)=>{B.useEffect(()=>{const u=f=>{if(e.length)switch(f.key){case"Enter":i(e[n]);break;case"ArrowUp":s(h=>h>0?h-1:e.length-1);break;case"ArrowDown":s(h=>h<e.length-1?h+1:0);break;case"Escape":l([]);break}};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[e,n,i,s,l])},fC=({text:e,commands:n,onSelectCommand:i,onVisibilityChange:s})=>{const l=B.useRef(null),u=Je(),[f,h]=B.useState([]),[p,v]=B.useState(Eg(n)),[y,b]=B.useState(0),m=w=>i(`/${w}`);return uC(l,()=>h([])),cC(f,y,m,b,h),B.useEffect(()=>{v(Eg(n))},[n]),B.useEffect(()=>{const w=e.length||0;w===0||w>p||!e.startsWith("/")?h([]):h(n.filter(dC(e))),b(0)},[n,e,p]),B.useEffect(()=>{s(!!f.length)},[f,s]),f.length?E.jsx("div",{ref:l,className:Yi.commandsDropdown,children:E.jsx("ul",{className:Yi.commands,role:"listbox",children:f.map((w,_)=>E.jsxs("li",{className:q([Yi.command,y===_&&Yi.commandActive]),role:"option",onClick:()=>m(w),onMouseOver:()=>b(_),children:[E.jsxs("h1",{children:["/",w]}),E.jsx("p",{children:u(`commands.${w}`)})]},w))})}):null},Eg=e=>Math.max(...e.map(n=>n.length+1)),dC=e=>n=>{const i=`/${n}`;return i.startsWith(e)&&i.length>=e.length},wg=3,hC=({commands:e,onSelectCommand:n})=>{const i=Je(),[s,l]=B.useState(!1),u=v=>()=>{n(`/${v}`),l(!1)},f=()=>{l(!0)},h=()=>{l(!1)},p=s?e:e.slice(0,wg);return E.jsxs("div",{className:Yi.commandsSelections,children:[p.map(v=>E.jsxs("button",{onClick:u(v),children:["/",v]})),p.length<e.length?E.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:f,children:i("commands.show-more.action")},"show-more"):p.length>wg?E.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},pC="_callToActionContainer_bkfcm_1",mC="_callToActionTitle_bkfcm_23",gC="_rateOverlay_bkfcm_30",yC="_body_bkfcm_52",vC="_footer_bkfcm_60",_C="_actions_bkfcm_73",EC="_bubbles_bkfcm_101",wC="_stars_bkfcm_203",SC="_starsSmall_bkfcm_215",xC="_starsLarge_bkfcm_219",bC="_star_bkfcm_203",TC="_starReadonly_bkfcm_236",CC="_starIcon_bkfcm_246",kC="_starsDescriptionContainer_bkfcm_264",RC="_starsDescription_bkfcm_264",pt={callToActionContainer:pC,callToActionTitle:mC,rateOverlay:gC,body:yC,footer:vC,actions:_C,bubbles:EC,stars:wC,starsSmall:SC,starsLarge:xC,star:bC,starReadonly:TC,starIcon:CC,starsDescriptionContainer:kC,starsDescription:RC},OC=({value:e,index:n,count:i,readonly:s,onHover:l,onClick:u})=>{const f=h=>{u&&h.key==="Enter"&&u()};return E.jsx("li",{className:q(pt.star,{[pt.starReadonly]:s},"chat__conversationRating__star"),children:E.jsx("div",{role:"radio","aria-checked":e>n?"true":"false","aria-posinset":n+1,"aria-setsize":i,tabIndex:0,onMouseOver:l,onKeyDown:f,onClick:u,children:E.jsx("span",{role:"img","aria-label":"Star",className:q(pt.starIcon),children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})})})})},Sg=5,Ly=({value:e,size:n,readonly:i=!1,onChange:s})=>{const[l,u]=B.useState(void 0),f=()=>{u(void 0)},h=v=>()=>{if(!i){const y=v+1;u(y)}},p=v=>()=>{s&&!i&&(s(v===0&&e===1?0:v+1),u(void 0))};return E.jsx("ul",{tabIndex:0,role:"radiogroup",className:q(pt.stars,{[pt.starsSmall]:n==="small",[pt.starsLarge]:n==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:n==="small",chat__conversationRating__stars__large:n==="large"}),onMouseOut:f,children:Array(Sg).fill(0).map((v,y)=>E.jsx(OC,{value:l===void 0?e:l,index:y,count:Sg,readonly:i,onHover:h(y),onClick:p(y)},y))})},NC=({visible:e,onRate:n})=>{const i=Je();return e?E.jsxs("div",{className:q(pt.callToActionContainer,"chat__conversationRating__callToAction"),children:[E.jsx("div",{className:q(pt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),E.jsx(Ly,{value:0,size:"small",onChange:n})]}):null},Xu=({isFirstMessageBySender:e,isLastMessageBySender:n,children:i})=>E.jsxs("div",{className:q(de.message,de.messageBot,e&&de.messageBotFirst,n&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),E.jsx("div",{className:q(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:E.jsx("div",{className:q(de.leftText,de.bubbleContent),children:i})})]}),AC=({children:e})=>E.jsx("div",{className:q(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:E.jsx("div",{className:q(de.rightText,de.bubbleContent),children:e})})}),IC=({visible:e,rating:n,onRate:i,onClose:s})=>{const l=Je(),[u,f]=B.useState(n),[h,p]=B.useState(void 0),[v,y]=B.useState(void 0),[b,m]=B.useState({submitted:!1,feedback:""}),[w,_]=B.useState(!1),S=B.useRef(null);B.useEffect(()=>{e?(m({submitted:!1,feedback:""}),y(e)):v===!0&&y(!1)},[e,v]),B.useEffect(()=>{f(n)},[n]),B.useEffect(()=>{const O=l(`conversation-rating.overlay.bot-message.rate-feedback.value-${u}`);p(O!=null&&O.length?O:void 0)},[u,l]),B.useEffect(()=>{b.submitted?setTimeout(()=>_(!0),b.feedback.length?500:0):_(!1)},[b]);const R=O=>{var x,k;O.preventDefault();const N=((k=(x=S.current)==null?void 0:x.value)==null?void 0:k.trim())||"";i(u,N),m({submitted:!0,feedback:N})};return E.jsx("div",{className:q(pt.rateOverlay,Tr.bottomSheet,"chat__conversationRating__overlay",{[Tr.bottomSheetOpen]:v===!0,[Tr.bottomSheetClose]:v===!1}),children:E.jsxs("form",{onSubmit:R,children:[E.jsxs("div",{className:q(pt.body,"chat__conversationRating__overlay__body"),children:[E.jsx("div",{}),E.jsx("div",{className:q(pt.bubbles),children:e&&h&&E.jsxs(E.Fragment,{children:[E.jsxs(Xu,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[E.jsx("h2",{children:l("conversation-rating.overlay.title")}),E.jsxs("div",{className:q(pt.starsDescriptionContainer),children:[E.jsx(Ly,{value:u,size:"large",readonly:b.submitted,onChange:f}),E.jsxs("div",{className:q(pt.starsDescription),children:[E.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),E.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),E.jsx(Xu,{isFirstMessageBySender:!1,isLastMessageBySender:!w||!!b.feedback.length,children:E.jsx("div",{children:h})}),!!b.feedback.length&&E.jsx(AC,{children:b.feedback}),w&&E.jsx(Xu,{isFirstMessageBySender:!!b.feedback.length,isLastMessageBySender:!0,children:E.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),E.jsxs("div",{className:q(pt.footer,"chat__conversationRating__overlay__footer"),children:[!b.submitted&&E.jsx("input",{ref:S,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),E.jsx("div",{className:q(pt.actions,"chat__conversationRating__overlay__footer__actions"),children:b.submitted?E.jsx(so,{type:"button",onClick:s,children:l("conversation-rating.overlay.action.close")}):E.jsx(so,{type:"submit",children:l("conversation-rating.overlay.action.submit")})})]})]})})},DC=({conversationRating:{enabled:e,rating:n},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[f,h]=B.useState(0),p=b=>{h(b),l(!0)},v=()=>l(!1),y=!n&&i>=1;return e?E.jsxs(E.Fragment,{children:[E.jsx(NC,{visible:y,onRate:p}),E.jsx(IC,{visible:s,rating:f,onRate:u,onClose:v})]}):null},PC="_inputWrapper_e3h44_1",MC="_withOpenCommands_e3h44_14",FC="_messageInputWrapper_e3h44_20",LC="_messageInput_e3h44_20",BC="_buttons_e3h44_44",jC="_button_e3h44_44",mn={inputWrapper:PC,withOpenCommands:MC,messageInputWrapper:FC,messageInput:LC,buttons:BC,button:jC},UC="_audioRecorder_g845f_1",HC="_audioButton_g845f_6",zC="_recorderIcon_g845f_37",GC="_spinning_g845f_60",gn={audioRecorder:UC,audioButton:HC,recorderIcon:zC,spinning:GC},xg=2048,ia=16e3;class $C extends r0.Component{constructor(i){super(i);xe(this,"audioInput",null);xe(this,"volume",null);xe(this,"leftchannel",[]);xe(this,"recorder",null);xe(this,"recordingLength",0);xe(this,"sampleRate",null);xe(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(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const s=window.AudioContext||window.webkitAudioContext,l=new s;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(xg,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const s=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(s)),this.recordingLength+=xg}}handleClickSubmitAudio(){const i=VC(this.leftchannel,this.recordingLength),s=WC(i,this.sampleRate||0),l=qC(s);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){var i,s,l,u;this.setState({recordingState:"none"}),(i=this.audioInput)==null||i.disconnect(),(s=this.volume)==null||s.disconnect(),(l=this.recorder)==null||l.disconnect(),this.mediaStream&&((u=this.mediaStream)==null||u.getAudioTracks().forEach(f=>{f.stop()}))}render(){return E.jsxs("div",{className:gn.audioRecorder,children:[this.state.recordingState==="none"&&E.jsx("button",{className:q(gn.audioButton,"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:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&E.jsxs("svg",{className:gn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&E.jsxs("div",{className:gn.audioRecorder,children:[E.jsx("button",{className:q(gn.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),E.jsx("div",{className:gn.recorderIcon}),E.jsx("button",{className:q(gn.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),E.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const qC=e=>{const n=new ArrayBuffer(44+e.length*2),i=new DataView(n);$s(i,0,"RIFF"),i.setUint32(4,44+e.length*2,!0),$s(i,8,"WAVE"),$s(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,ia,!0),i.setUint32(28,ia*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),$s(i,36,"data"),i.setUint32(40,e.length*2,!0);const s=e.length;let l=44;const u=1;for(let f=0;f<s;f++)i.setInt16(l,e[f]*(32767*u),!0),l+=2;return new Blob([i],{type:"audio/wav"})},$s=(e,n,i)=>{for(let s=0;s<i.length;s++)e.setUint8(n+s,i.charCodeAt(s))},VC=(e,n)=>{const i=new Float32Array(n);let s=0;const l=e.length;for(let u=0;u<l;u++){const f=e[u];i.set(f,s),s+=f.length}return i},WC=(e,n)=>{if(ia===n)return e;const i=n/ia,s=Math.round(e.length/i),l=new Float32Array(s);let u=0,f=0;for(;u<l.length;){const h=Math.round((u+1)*i);let p=0,v=0;for(let y=f;y<h&&y<e.length;y++)p+=e[y],v++;l[u]=p/v,u++,f=h}return l},KC=({speechSupport:e,transcriptExportEnabled:n,disabled:i,textInput:s,commandsVisible:l,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:h,onOpenTranscriptExportModal:p})=>{const v=Je(),y=B.useRef(null);B.useEffect(()=>{var S;(S=y.current)==null||S.focus()},[s]);const b=()=>{const S=y.current;S&&s.trim().length>=1&&f(s.trim())&&(S.value="",S.style.height="",S.focus())},m=S=>{S.preventDefault(),b()},w=S=>{const R=S.target.value;u(R),S.target.style.height="";const{scrollHeight:O}=S.target;S.target.style.height=`${O>150?150:O}px`},_=S=>{S.code==="Enter"&&!S.shiftKey?(S.repeat||b(),S.preventDefault()):l&&(S.code==="ArrowUp"||S.code==="ArrowDown")&&S.preventDefault()};return E.jsxs("form",{className:q(mn.inputWrapper,l&&mn.withOpenCommands,"chat__textInput"),onSubmit:m,children:[E.jsx("div",{className:mn.messageInputWrapper,children:E.jsx("textarea",{id:"user_input",ref:y,className:mn.messageInput,tabIndex:0,placeholder:v("message-input-placeholder"),value:s,onChange:w,onKeyDown:_,"aria-label":v("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),E.jsxs("div",{className:q(mn.buttons,"chat__buttons"),children:[!s.length&&n&&E.jsx("button",{type:"button",className:q(mn.button,"chat__button"),"aria-label":v("message-input.actions.export-transcript.label"),"data-title":v("message-input.actions.export-transcript.label"),tabIndex:0,onClick:p,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})}),s.length||!e||navigator.mediaDevices===void 0?E.jsx("button",{className:q(mn.button,"chat__button"),type:"submit","aria-label":v("message-input.actions.submit.label"),"data-title":v("message-input.actions.submit.label"),tabIndex:0,disabled:i,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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&&E.jsx($C,{translate:v,onAudioRecorded:h})]})]})},ZC="_quickReplies_83npe_1",QC="_quickReply_83npe_9",bg={quickReplies:ZC,quickReply:QC},XC=({quickReplies:e,onQuickReplyClick:n})=>e.length?E.jsx("div",{className:q(bg.quickReplies,"chat__quickReplies"),children:e.map(i=>E.jsx(ya,{tabIndex:0,className:q(bg.quickReply,"chat__button","chat__quickReply"),onClick:()=>n(i),children:i.label},i.label))}):null,Tg=5e3,YC=1e3,JC=({isBotTyping:e,quickReplies:n,speechSupport:i,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:f,commands:h,setShowRatingOverlay:p,onTextInput:v,onRate:y,onQuickReplyClick:b,onAudioRecorded:m,onOpenTranscriptExportModal:w})=>{const[_,S]=B.useState(""),[R,O]=B.useState(!1),[N,x]=B.useState(!1),k=B.useRef(),T=B.useRef(0);B.useEffect(()=>{if(R&&!e){const V=k.current?Date.now()-k.current:0;V>Tg?O(!1):setTimeout(()=>{O(!1)},Tg-V)}},[R,e]),B.useEffect(()=>{R&&(k.current=Date.now())},[R]);const F=V=>{const fe=Date.now()-T.current<YC;return N?!1:e||fe?(O(!0),!1):(v(V),S(""),T.current=Date.now(),!0)},z=V=>{S(V+" ")};return E.jsxs("div",{className:q(eC.inputContainer),children:[E.jsx(XC,{quickReplies:n,onQuickReplyClick:b}),E.jsx(nC,{visible:R}),!R&&E.jsx(DC,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:y,showRatingOverlay:f,setShowRatingOverlay:p}),!!(h!=null&&h.length)&&E.jsx(fC,{text:_,commands:h,onSelectCommand:z,onVisibilityChange:x}),E.jsx(KC,{textInput:_,speechSupport:i,transcriptExportEnabled:s,disabled:R,commandsVisible:N,onTextInput:S,onTextInputSubmit:F,onOpenTranscriptExportModal:w,onAudioRecorded:m}),!!(h!=null&&h.length)&&E.jsx(hC,{commands:h,onSelectCommand:S})]})},ek=({clientName:e,messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v,onMessageFromUser:y,onRate:b,onQuickReplyClick:m,onButtonClick:w,onLinkClick:_,onAudioRecorded:S,onTranscriptExport:R,onPdfExport:O,onTranscriptItemReaction:N})=>{const x=ti(),k=Qr(oe=>oe.connection.connectionState),[T,F]=B.useState(!1),[z,V]=B.useState(!1),fe=f.email||f.pdf,te=n.filter(oe=>oe.sender.type===my.GUEST).length;return B.useEffect(()=>{if(k===En.CONNECTED){const oe=la.parse(window.location.search);x(py(e,oe))}},[e,k,x]),E.jsxs("div",{className:ju.container,children:[E.jsxs("div",{className:q([ju.chatcontent,(T||z)&&ju.accessabilityHidden]),children:[E.jsx(DT,{messages:n,isBotTyping:s,showGeneralConditions:p,commands:v,onButtonClick:w,onLinkClick:_,onTranscriptItemReaction:N}),E.jsx(JC,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:te,speechSupport:u,transcriptExportEnabled:fe,conversationRating:T?{enabled:!1}:h,showRatingOverlay:z,setShowRatingOverlay:V,commands:v,onRate:b,onQuickReplyClick:m,onTextInput:y,onAudioRecorded:S,onOpenTranscriptExportModal:()=>F(!T)}),E.jsx($T,{})]}),fe&&E.jsx(YT,{methods:f,visible:T,onEmailExport:R,onPdfExport:O,onClose:()=>F(!1)}),E.jsx(UT,{contentUrl:l})]})},tk=e=>{const{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v}=e.chat;return{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v}},rk=e=>({onRestartChat:(n,i)=>e(ma(n,i)),onMessageFromUser:n=>e(q0(n)),onRate:(n,i)=>e(zS(n,i)),onAudioRecorded:n=>e(DS(n)),onActionFromUser:n=>e(n),onQuickReplyClick:n=>e($0(n)),onNluEvent:n=>e(X0(n)),onButtonClick:n=>e($S(n)),onLinkClick:n=>e(qS(n)),onTranscriptExport:n=>e(LS(n)),onPdfExport:()=>e(US()),onTranscriptItemReaction:(n,i)=>e(ge.transcriptItemGuestReaction(n,i||null))}),nk=uE(tk,rk)(ek),By=()=>ik(window.location.pathname),ik=e=>{const n=e.split("/"),i=e.endsWith("/");return n[n.length-(i?2:1)]},jy=()=>B.useMemo(()=>By(),[]),ok="_header_19p33_1",sk="_logoContainer_19p33_13",ak="_logo_19p33_13",lk="_actions_19p33_26",uk="_closeButton_19p33_72",Ji={header:ok,logoContainer:sk,logo:ak,actions:lk,closeButton:uk},Uy=e=>n=>{const i=n.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(n.stopPropagation(),e())},ck=({onClick:e})=>{const n=Je();return E.jsx("button",{className:q(Ji.closeButton,"tooltip--bottom"),"aria-label":n("header.close-chat"),"data-title":n("header.close-chat"),tabIndex:0,onClick:e,onKeyDown:Uy(e),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},fk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:"tooltip--bottom","aria-label":n("header.restart-chat"),"data-title":n("header.restart-chat"),tabIndex:0,onClick:e,onKeyDown:Uy(e),children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[E.jsx("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"}),E.jsx("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"})]})})},Cg=({className:e,withActions:n=!0,...i})=>{const s=ti(),l=jy(),u=()=>{const h=la.parse(window.location.search);s(ma(l,h))},f=()=>{s(P2())};return E.jsxs("div",{className:q([Ji.header,e]),...i,children:[E.jsx("div",{className:Ji.logoContainer,children:E.jsx("div",{className:Ji.logo})}),E.jsxs("div",{className:Ji.actions,children:[n&&E.jsx(fk,{onClick:u}),E.jsx(ck,{onClick:f})]})]})},dk="_chatwindow_6v6ob_1",hk="_chatwindowWithAside_6v6ob_46",kg={chatwindow:dk,chatwindowWithAside:hk},pk="_sourceInfos_1qwkt_1",mk="_sourceDetails_1qwkt_16",gk="_sourceHeader_1qwkt_23",yk="_sourceHeaderIcon_1qwkt_43",vk="_openSourceButton_1qwkt_47",_k="_closeSourceInfosButton_1qwkt_70",Ek="_sourceContent_1qwkt_85",wk="_loadingSourceInfos_1qwkt_108",Sk="_loading_1qwkt_108",xk="_loadingError_1qwkt_122",fr={sourceInfos:pk,sourceDetails:mk,sourceHeader:gk,sourceHeaderIcon:yk,openSourceButton:vk,closeSourceInfosButton:_k,sourceContent:Ek,loadingSourceInfos:wk,loading:Sk,loadingError:xk},bk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:q(fr.closeSourceInfosButton,"tooltip--bottom"),"aria-label":n("source-infos.close"),"data-title":n("source-infos.close"),tabIndex:0,onClick:e,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Tk=({type:e})=>{switch(e){case"WEBSITE":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})});case"PDF":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})});case"DOCX":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});case"TEXT":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});default:return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})})}},Ck=({sourceInfos:e,onClose:n})=>E.jsxs("div",{className:fr.sourceHeader,children:[E.jsx("div",{className:fr.sourceHeaderIcon,children:e&&E.jsx(Tk,{type:e.knowledgeBaseType})}),E.jsx("div",{children:e&&E.jsx("h1",{children:e.title})}),E.jsx(bk,{onClick:n})]}),kk=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),Rk=({className:e,children:n,...i})=>E.jsx("a",{className:q(oo.button,oo.buttonPrimary,e),type:"button",...i,children:n}),Ok=({label:e,url:n})=>E.jsxs(Rk,{className:fr.openSourceButton,href:n,target:"_blank",children:[E.jsx("p",{children:e}),E.jsx("div",{children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"})})})]}),Nk=({sourceInfos:e})=>E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(fr.sourceContent,Fy.markdown),children:E.jsx(lr,{options:{overrides:{a:kk}},children:e.content})}),E.jsx(Ok,{label:e.title,url:e.url})]}),Ak=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,Ik=()=>{const e=Je();return E.jsxs("div",{className:fr.loadingError,children:[E.jsx("h1",{children:e("source-infos.error.title")}),E.jsx("img",{src:Ak,title:e("source-infos.error.title")}),E.jsx("p",{children:e("source-infos.error.info")})]})},Dk=()=>E.jsx("div",{className:fr.loadingSourceInfos,children:E.jsx("svg",{className:fr.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})}),Pk=()=>{const e=ti(),n=Qr(s=>s.chat.sourceInfos),i=()=>{e(F2())};return n?E.jsxs("div",{className:fr.sourceInfos,children:[E.jsx("div",{className:fr.sourceDetails,children:E.jsx(Ck,{sourceInfos:n.type==="loaded"?n:void 0,onClose:i})}),n.type==="loading"?E.jsx(Dk,{}):n.type==="loading-error"?E.jsx(Ik,{}):E.jsx(Nk,{sourceInfos:n})]}):null},Mk="_container_114wy_1",Fk="_body_114wy_7",Lk="_intro_114wy_14",Bk="_footer_114wy_39",jk="_footnote_114wy_43",Uk="_containerWithFootnote_114wy_58",Hk="_startChatButton_114wy_73",zk="_formFields_114wy_77",Gk="_formField_114wy_77",$k="_radio_114wy_89",qk="_checkbox_114wy_96",Vk="_input_114wy_104",Wk="_inputLabel_114wy_138",Kk="_selectWrapper_114wy_142",Zk="_select_114wy_142",Qk="_selectLabel_114wy_188",ot={container:Mk,body:Fk,intro:Lk,footer:Bk,footnote:jk,containerWithFootnote:Uk,startChatButton:Hk,formFields:zk,formField:Gk,radio:$k,checkbox:qk,input:Vk,inputLabel:Wk,selectWrapper:Kk,select:Zk,selectLabel:Qk},Xk=({name:e,label:n,defaultValue:i,required:s,onChange:l})=>{const u=f=>{l(f.currentTarget.checked?"true":"false")};return E.jsxs("label",{className:q(ot.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[E.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:i==="true",required:s,onChange:u}),E.jsx("div",{children:n})]})},Yk=({type:e,name:n,label:i,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:y})=>{const b=m=>{y(m.target.value)};return E.jsxs("label",{className:q(ot.input,"chat__startScreen__input"),htmlFor:n,children:[E.jsx("div",{className:q(ot.inputLabel),children:i}),E.jsx("input",{type:e,id:n,name:n,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:b})]})},Jk=({name:e,value:n,label:i,defaultChecked:s,required:l,onChange:u})=>{const f=`${e}-${n}`,h=p=>{u(p.target.value)};return E.jsxs("label",{className:q(ot.radio,"chat__startScreen__radio"),htmlFor:f,children:[E.jsx("input",{id:f,type:"radio",name:e,value:n,defaultChecked:s,required:l,onChange:h}),E.jsx("span",{className:q(ot.label),children:i})]})},eR=({name:e,label:n,defaultValue:i,required:s,multiple:l,options:u,onChange:f})=>{const h=p=>{f(p.target.value)};return E.jsxs("label",{className:q(ot.select,"chat__startScreen__select"),htmlFor:e,children:[E.jsx("div",{className:q(ot.selectLabel),children:n}),E.jsx("div",{className:q(ot.selectWrapper),children:E.jsx("select",{id:e,name:e,defaultValue:i,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,v])=>E.jsx("option",{value:p,selected:v===i,children:v}))})})]})},tR="start-screen.intro",rR="start-screen.start-chat",nR="start-screen.footnote",Qt="start-screen.form",Rg=`${Qt}.fields`,iR=()=>{const e=Je(),n=ti(),[i,s]=B.useState({}),l=()=>{const b=Object.entries(i).reduce((m,[w,_])=>({...m,[w]:_.value}),{});n(A2(b))},u=e(tR),f=e(rR),h=e(nR),p=B.useMemo(()=>{var b;return((b=e(Rg))==null?void 0:b.split(";").map(m=>m.trim()))??[]},[e(Rg)]);B.useEffect(()=>{p.length&&Object.keys(i).length===0&&s(p.reduce((b,m)=>({...b,[m]:oR(m,e)}),{}))},[e,p,i]);const v=b=>{b.preventDefault(),l()},y=b=>m=>{s(w=>({...w,[b]:{...w[b],value:m}}))};return E.jsxs("form",{onSubmit:v,className:q(ot.container,h&&ot.containerWithFootnote,"chat__startScreen"),children:[E.jsxs("div",{className:q(ot.body,"chat__startScreen__body"),children:[u&&E.jsx("div",{className:q(ot.intro,"chat__startScreen__intro"),children:E.jsx(lr,{options:{overrides:{a:Og}},children:u})}),E.jsx("div",{className:q(ot.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:b,name:m,label:w,placeholder:_,defaultValue:S,options:R,required:O,multiple:N,min:x,max:k,pattern:T})=>E.jsx("div",{className:q(ot.formField,"chat__startScreen__field"),children:(()=>{switch(b){case"radio":return E.jsxs(E.Fragment,{children:[E.jsx("div",{children:w}),Object.entries(R||{}).map(([F,z])=>E.jsx(Jk,{name:m,value:F,label:z,defaultChecked:F===S,required:O,onChange:y(m)}))]});case"checkbox":return E.jsx(Xk,{name:m,label:w,defaultValue:S,required:O,onChange:y(m)});case"select":return E.jsx(eR,{name:m,label:w,defaultValue:S,required:O,multiple:N,options:R,onChange:y(m)});default:return E.jsx(Yk,{type:b,name:m,label:w,placeholder:_,defaultValue:S,required:O,multiple:N,min:x,max:k,pattern:T,onChange:y(m)})}})()},m))})]}),E.jsxs("div",{className:q(ot.footer,"chat__startScreen__footer"),children:[E.jsx(so,{type:"submit",className:ot.startChatButton,children:f}),h&&E.jsx("div",{className:ot.footnote,children:E.jsx(lr,{options:{overrides:{a:Og}},children:h})})]})]})},Og=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),oR=(e,n)=>{const i=n(`${Qt}.${e}.type`)||"text",s=n(`${Qt}.${e}.required`)==="true",l=n(`${Qt}.${e}.multiple`)==="true",u=n(`${Qt}.${e}.placeholder`),f=n(`${Qt}.${e}.label`)||"",h=n(`${Qt}.${e}.defaultValue`),p=n(`${Qt}.${e}.min`),v=n(`${Qt}.${e}.max`),y=n(`${Qt}.${e}.pattern`),b=aR(n(`${Qt}.${e}.options`));return{name:e,label:f,placeholder:u,value:sR(i,h,b)||"",defaultValue:h,options:b,type:i,required:s,multiple:l,min:p,max:v,pattern:y}},sR=(e,n,i)=>n||e==="select"&&Object.keys(i)[0]||"",aR=(e="")=>e.split(";").map(n=>n.trim()).reduce((n,i)=>{const[s,l]=i.split(":").map(u=>u.trim());return{...n,[s]:l}},{}),lR=()=>{const e=aa();B.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Zn={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"},uR=({clientName:e})=>{lR();const n=ti(),i=Qr(y=>y.intl.messages),s=Je(),l=Qr(y=>y.startScreen.useStartScreen),u=Qr(y=>y.startScreen.startScreenStatus),[f,h]=B.useState(void 0);B.useEffect(()=>{const y=la.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const b=m=>{switch(m.data.type){case Zn.TRIGGER_ACTION:n(m.data.action);break;case Zn.TRIGGER_STORY:n(X0(m.data.story));break;case Zn.ON_CHAT_WINDOW_OPEN:n({type:"webclient.chatwindow.opened"});break;case Zn.ON_CHAT_WINDOW_CLOSE:n({type:"webclient.chatwindow.closed"});break;case Zn.CHAT_MESSAGE_FROM_GUEST:n(q0(m.data.text));break;case Zn.RESTART_CHAT:n(ma(e,y));break}};return n(z2(e,y)),window.addEventListener("message",m=>b(m),!1),()=>window.removeEventListener("message",b)},[e,n]),B.useEffect(()=>{const y=s("page.title");y&&document&&(document.title=y)},[i,s]);const p=l===void 0,v=l===!1||u==="HIDDEN";return E.jsx("div",{className:q(kg.chatwindow,v&&kg.chatwindowWithAside,"chat__chatwindow",f),children:p?null:v?E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(Cg,{})}),E.jsx("main",{children:E.jsx(nk,{clientName:e})}),E.jsx("aside",{children:E.jsx(Pk,{})})]}):E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(Cg,{withActions:!1})}),E.jsx("main",{children:E.jsx(iR,{})})]})})},cR=1024,fR=()=>{const e=jy(),n=Qr(u=>u.intl.locale),i=Qr(u=>u.intl.messages),[s,l]=B.useState(Ng());return B.useEffect(()=>{const u=()=>{l(Ng())};return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),E.jsx(Qw,{locale:n,messages:i,children:E.jsx("div",{className:q([Yw.app,s?"chat__large":"chat__small"]),children:E.jsx(uR,{clientName:e})})})},Ng=()=>window.innerWidth>=cR;var Yu,Ag;function Cf(){if(Ag)return Yu;Ag=1;function e(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return Yu=e,Yu}var Ju,Ig;function dR(){if(Ig)return Ju;Ig=1;var e=typeof _s=="object"&&_s&&_s.Object===Object&&_s;return Ju=e,Ju}var ec,Dg;function Hy(){if(Dg)return ec;Dg=1;var e=dR(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return ec=i,ec}var tc,Pg;function hR(){if(Pg)return tc;Pg=1;var e=Hy(),n=function(){return e.Date.now()};return tc=n,tc}var rc,Mg;function pR(){if(Mg)return rc;Mg=1;var e=/\s/;function n(i){for(var s=i.length;s--&&e.test(i.charAt(s)););return s}return rc=n,rc}var nc,Fg;function mR(){if(Fg)return nc;Fg=1;var e=pR(),n=/^\s+/;function i(s){return s&&s.slice(0,e(s)+1).replace(n,"")}return nc=i,nc}var ic,Lg;function zy(){if(Lg)return ic;Lg=1;var e=Hy(),n=e.Symbol;return ic=n,ic}var oc,Bg;function gR(){if(Bg)return oc;Bg=1;var e=zy(),n=Object.prototype,i=n.hasOwnProperty,s=n.toString,l=e?e.toStringTag:void 0;function u(f){var h=i.call(f,l),p=f[l];try{f[l]=void 0;var v=!0}catch{}var y=s.call(f);return v&&(h?f[l]=p:delete f[l]),y}return oc=u,oc}var sc,jg;function yR(){if(jg)return sc;jg=1;var e=Object.prototype,n=e.toString;function i(s){return n.call(s)}return sc=i,sc}var ac,Ug;function vR(){if(Ug)return ac;Ug=1;var e=zy(),n=gR(),i=yR(),s="[object Null]",l="[object Undefined]",u=e?e.toStringTag:void 0;function f(h){return h==null?h===void 0?l:s:u&&u in Object(h)?n(h):i(h)}return ac=f,ac}var lc,Hg;function _R(){if(Hg)return lc;Hg=1;function e(n){return n!=null&&typeof n=="object"}return lc=e,lc}var uc,zg;function ER(){if(zg)return uc;zg=1;var e=vR(),n=_R(),i="[object Symbol]";function s(l){return typeof l=="symbol"||n(l)&&e(l)==i}return uc=s,uc}var cc,Gg;function wR(){if(Gg)return cc;Gg=1;var e=mR(),n=Cf(),i=ER(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;function p(v){if(typeof v=="number")return v;if(i(v))return s;if(n(v)){var y=typeof v.valueOf=="function"?v.valueOf():v;v=n(y)?y+"":y}if(typeof v!="string")return v===0?v:+v;v=e(v);var b=u.test(v);return b||f.test(v)?h(v.slice(2),b?2:8):l.test(v)?s:+v}return cc=p,cc}var fc,$g;function SR(){if($g)return fc;$g=1;var e=Cf(),n=hR(),i=wR(),s="Expected a function",l=Math.max,u=Math.min;function f(h,p,v){var y,b,m,w,_,S,R=0,O=!1,N=!1,x=!0;if(typeof h!="function")throw new TypeError(s);p=i(p)||0,e(v)&&(O=!!v.leading,N="maxWait"in v,m=N?l(i(v.maxWait)||0,p):m,x="trailing"in v?!!v.trailing:x);function k(ue){var Ue=y,Ie=b;return y=b=void 0,R=ue,w=h.apply(Ie,Ue),w}function T(ue){return R=ue,_=setTimeout(V,p),O?k(ue):w}function F(ue){var Ue=ue-S,Ie=ue-R,$e=p-Ue;return N?u($e,m-Ie):$e}function z(ue){var Ue=ue-S,Ie=ue-R;return S===void 0||Ue>=p||Ue<0||N&&Ie>=m}function V(){var ue=n();if(z(ue))return fe(ue);_=setTimeout(V,F(ue))}function fe(ue){return _=void 0,x&&y?k(ue):(y=b=void 0,w)}function te(){_!==void 0&&clearTimeout(_),R=0,y=S=b=_=void 0}function oe(){return _===void 0?w:fe(n())}function pe(){var ue=n(),Ue=z(ue);if(y=arguments,b=this,S=ue,Ue){if(_===void 0)return T(S);if(N)return clearTimeout(_),_=setTimeout(V,p),k(S)}return _===void 0&&(_=setTimeout(V,p)),w}return pe.cancel=te,pe.flush=oe,pe}return fc=f,fc}var dc,qg;function xR(){if(qg)return dc;qg=1;var e=SR(),n=Cf(),i="Expected a function";function s(l,u,f){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(i);return n(f)&&(h="leading"in f?!!f.leading:h,p="trailing"in f?!!f.trailing:p),e(l,u,{leading:h,maxWait:u,trailing:p})}return dc=s,dc}var bR=xR();const TR=oa(bR);var hc,Vg;function CR(){if(Vg)return hc;Vg=1;function e(w,_){var S,R;if(typeof _=="function")R=_(w),R!==void 0&&(w=R);else if(Array.isArray(_))for(S=0;S<_.length;S++)R=_[S](w),R!==void 0&&(w=R);return w}function n(w,_){return w[0]==="-"&&Array.isArray(_)&&/^-\d+$/.test(w)?_.length+parseInt(w,10):w}function i(w){return/^\d+$/.test(w)}function s(w){return Object.prototype.toString.call(w)==="[object Object]"}function l(w){return Object(w)===w}function u(w){return Object.keys(w).length===0}var f=["__proto__","prototype","constructor"],h=function(w){return f.indexOf(w)===-1};function p(w,_){w.indexOf("[")>=0&&(w=w.replace(/\[/g,_).replace(/]/g,""));var S=w.split(_),R=S.filter(h);if(R.length!==S.length)throw Error("Refusing to update blacklisted property "+w);return S}var v=Object.prototype.hasOwnProperty;function y(w,_,S,R){if(!(this instanceof y))return new y(w,_,S,R);typeof _>"u"&&(_=!1),typeof S>"u"&&(S=!0),typeof R>"u"&&(R=!0),this.separator=w||".",this.override=_,this.useArray=S,this.useBrackets=R,this.keepArray=!1,this.cleanup=[]}var b=new y(".",!1,!0,!0);function m(w){return function(){return b[w].apply(b,arguments)}}return y.prototype._fill=function(w,_,S,R){var O=w.shift();if(w.length>0){if(_[O]=_[O]||(this.useArray&&i(w[0])?[]:{}),!l(_[O]))if(this.override)_[O]={};else{if(!(l(S)&&u(S)))throw new Error("Trying to redefine `"+O+"` which is a "+typeof _[O]);return}this._fill(w,_[O],S,R)}else{if(!this.override&&l(_[O])&&!u(_[O])){if(!(l(S)&&u(S)))throw new Error("Trying to redefine non-empty obj['"+O+"']");return}_[O]=e(S,R)}},y.prototype.object=function(w,_){var S=this;return Object.keys(w).forEach(function(R){var O=_===void 0?null:_[R],N=p(R,S.separator).join(S.separator);N.indexOf(S.separator)!==-1?(S._fill(N.split(S.separator),w,w[R],O),delete w[R]):w[R]=e(w[R],O)}),w},y.prototype.str=function(w,_,S,R){var O=p(w,this.separator).join(this.separator);return w.indexOf(this.separator)!==-1?this._fill(O.split(this.separator),S,_,R):S[w]=e(_,R),S},y.prototype.pick=function(w,_,S,R){var O,N,x,k,T;for(N=p(w,this.separator),O=0;O<N.length;O++)if(k=n(N[O],_),_&&typeof _=="object"&&k in _){if(O===N.length-1)return S?(x=_[k],R&&Array.isArray(_)?_.splice(k,1):delete _[k],Array.isArray(_)&&(T=N.slice(0,-1).join("."),this.cleanup.indexOf(T)===-1&&this.cleanup.push(T)),x):_[k];_=_[k]}else return;return S&&Array.isArray(_)&&(_=_.filter(function(F){return F!==void 0})),_},y.prototype.delete=function(w,_){return this.remove(w,_,!0)},y.prototype.remove=function(w,_,S){var R;if(this.cleanup=[],Array.isArray(w)){for(R=0;R<w.length;R++)this.pick(w[R],_,!0,S);return S||this._cleanup(_),_}else return this.pick(w,_,!0,S)},y.prototype._cleanup=function(w){var _,S,R,O;if(this.cleanup.length){for(S=0;S<this.cleanup.length;S++)R=this.cleanup[S].split("."),O=R.splice(0,-1).join("."),_=O?this.pick(O,w):w,_=_[R[0]].filter(function(N){return N!==void 0}),this.set(this.cleanup[S],_,w);this.cleanup=[]}},y.prototype.del=y.prototype.remove,y.prototype.move=function(w,_,S,R,O){return typeof R=="function"||Array.isArray(R)?this.set(_,e(this.pick(w,S,!0),R),S,O):(O=R,this.set(_,this.pick(w,S,!0),S,O)),S},y.prototype.transfer=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(this.pick(w,S,!0),O),R,N):(N=O,this.set(_,this.pick(w,S,!0),R,N)),R},y.prototype.copy=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(JSON.parse(JSON.stringify(this.pick(w,S,!1))),O),R,N):(N=O,this.set(_,this.pick(w,S,!1),R,N)),R},y.prototype.set=function(w,_,S,R){var O,N,x,k;if(typeof _>"u")return S;for(x=p(w,this.separator),O=0;O<x.length;O++){if(k=x[O],O===x.length-1)if(R&&s(_)&&s(S[k]))for(N in _)v.call(_,N)&&(S[k][N]=_[N]);else if(R&&Array.isArray(S[k])&&Array.isArray(_))for(var T=0;T<_.length;T++)S[x[O]].push(_[T]);else S[k]=_;else(!v.call(S,k)||!s(S[k])&&!Array.isArray(S[k]))&&(/^\d+$/.test(x[O+1])?S[k]=[]:S[k]={});S=S[k]}return S},y.prototype.transform=function(w,_,S){return _=_||{},S=S||{},Object.keys(w).forEach((function(R){this.set(w[R],this.pick(R,_),S)}).bind(this)),S},y.prototype.dot=function(w,_,S){_=_||{},S=S||[];var R=Array.isArray(w);return Object.keys(w).forEach((function(O){var N=R&&this.useBrackets?"["+O+"]":O;if(l(w[O])&&(s(w[O])&&!u(w[O])||Array.isArray(w[O])&&!this.keepArray&&w[O].length!==0))if(R&&this.useBrackets){var x=S[S.length-1]||"";return this.dot(w[O],_,S.slice(0,-1).concat(x+N))}else return this.dot(w[O],_,S.concat(N));else R&&this.useBrackets?_[S.join(this.separator).concat("["+O+"]")]=w[O]:_[S.concat(N).join(this.separator)]=w[O]}).bind(this)),_},y.pick=m("pick"),y.move=m("move"),y.transfer=m("transfer"),y.transform=m("transform"),y.copy=m("copy"),y.object=m("object"),y.str=m("str"),y.set=m("set"),y.delete=m("delete"),y.del=y.remove=m("remove"),y.dot=m("dot"),["override","overwrite"].forEach(function(w){Object.defineProperty(y,w,{get:function(){return b.override},set:function(_){b.override=!!_}})}),["useArray","keepArray","useBrackets"].forEach(function(w){Object.defineProperty(y,w,{get:function(){return b[w]},set:function(_){b[w]=_}})}),y._process=e,hc=y,hc}var kR=CR();const Gy={"page.title":"Bubble Chat Chatbot","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:
98
98
 
99
99
  - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
100
- - 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","source-infos.close":"Schliessen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},TR={"page.title":"Bubble Chat Chatbot","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:
100
+ - 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","source-infos.close":"Schliessen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},RR={"page.title":"Bubble Chat Chatbot","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:
101
101
 
102
102
  - The chat history is stored in the EU area and can only be viewed by authorized personnel.
103
- - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.close-chat":"Minimize chat","source-infos.close":"Close","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},CR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
103
+ - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.close-chat":"Minimize chat","source-infos.close":"Close","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},OR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
104
104
 
105
105
  - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
106
- - 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","source-infos.close":"Fermer","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},kR={"page.title":"Bubble Chat Chatbot","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:
106
+ - 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","source-infos.close":"Fermer","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},NR={"page.title":"Bubble Chat Chatbot","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:
107
107
 
108
108
  - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
109
- - 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","source-infos.close":"Chiudere","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},RR=["de","en","fr","it"],$y={locale:"de",messages:Gy},OR=(e,n)=>{if(RR.includes(e)){const i=NR(e),s=bR.dot(n);return{...i,...s}}return n},NR=e=>{switch(e.toString()){case"en":return TR;case"fr":return CR;case"it":return kR;default:return Gy}},AR=(e=IR,n)=>{switch(n.type){case _f:return Object.assign({},e,{connectionState:En.CONNECTING});case Ef:return Object.assign({},e,{connectionState:En.CONNECTED});case wf:return Object.assign({},e,{connectionState:En.DISCONNECTED});case Sf:return Object.assign({},e,{connectionState:En.RECONNECTED});case xf:return Object.assign({},e,{sessionId:n.sessionId});case ha:return Object.assign({},e,{sessionId:n.payload.sessionId,userId:n.payload.userId});case pa:return Object.assign({},e,{sessionId:void 0});default:return e}},IR={connectionState:En.DISCONNECTED,sessionId:void 0,userId:void 0},DR=(e=Zg,n)=>{switch(n.type){case hy:return Zg;case ha:return yn({type:"webclient.chat.started"}),e;case pa:return yn({type:"webclient.chat.ended"}),e;case ge.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case ge.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case ge.ActionTypes.MESSAGE_FROM_GUEST:case ge.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Wg(e,n.message);case ge.ActionTypes.MESSAGE_TO_GUEST:{yn(n);const i=Object.assign({},n.message,{_id:n.meta.actionId}),s=e.messages.filter(l=>l._id===n.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:s?e.messages:e.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case of:{const i=n.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:i,quickReplies:(s==null?void 0:s.quickReplies)||[]})}case nf:return yn(n.message),e;case ge.ActionTypes.EVENT_TO_GUEST:return yn(n.event),e;case ge.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:n.payload.parameters.contentUrl});case ge.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case ge.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:n.payload.locale});case Z0:return yn(n),e;case K0:return yn(n),e;case af:return Object.assign({},e,{speechSupport:!0});case uf:{const i=new ge.TextMessage(n.transcription,new ge.GuestUser),s=Object.assign({},i,{_id:Bc()});return Wg(e,s)}case lf:return Object.assign({},e,{transcriptExportEnabled:n.methods});case cf:return Object.assign({},e,{showGeneralConditions:!0});case ge.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=e.messages.map(s=>s._id===n.payload.actionId?Object.assign({},s,{reaction:n.payload.reaction}):s);return Object.assign({},e,{messages:i})}case ff:{const i={enabled:!0,rating:n.payload.rating};return Object.assign({},e,{conversationRating:i})}case ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...e.conversationRating,rating:n.payload};return Object.assign({},e,{conversationRating:i})}case df:return{...e,commands:n.payload.commands};case hf:return{...e,sourceInfos:{type:"loading",chunkId:n.payload.chunkId}};case W0:return{...e,sourceInfos:{type:"loading-error"}};case V0:return{...e,sourceInfos:{type:"loaded",chunkId:n.payload.chunkId,knowledgeBaseType:n.payload.knowledgeBaseType,title:n.payload.title,content:n.payload.content,url:n.payload.url}};case pf:return{...e,sourceInfos:void 0};default:return e}},Wg=(e,n)=>{const i=e.messages[e.messages.length-1],s=(i==null?void 0:i.text)===n.text;return i&&i.sender.type===n.sender.type&&s?e:Object.assign({},e,{messages:e.messages.concat([n]),quickReplies:[]})},yn=e=>{var n;PR()?(n=window.top)==null||n.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},PR=()=>typeof window<"u"&&window.self!==window.top,Zg={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1},commands:[]},qy=fy({name:"intl",initialState:$y,reducers:{updateIntl:(e,n)=>{e.locale=n.payload.language,e.messages=n.payload.messages}}}),{updateIntl:MR}=qy.actions,FR=qy.reducer,LR=ey({chat:DR,startScreen:N2,connection:AR,intl:FR}),Vy="bf-webclient-state-last-saved-at",Wy="bf-webclient-state",BR=e=>{try{if(!HR())return;const n=Kg(e,Vy);if(UR(n))return;{const i=Kg(e,Wy);return i===null?void 0:JSON.parse(i)}}catch(n){console.error(n);return}},jR=(e,n)=>{try{const i=JSON.stringify(n);Qg(e,Wy,i);const s=new Date().toISOString();Qg(e,Vy,s)}catch(i){console.error(i)}},UR=e=>{if(e===null)return!1;const n=new Date(e);return n.setHours(n.getHours()+12),new Date>n},HR=()=>typeof localStorage<"u",Kg=(e,n)=>localStorage.getItem(`${e}_${n}`),Qg=(e,n,i)=>localStorage.setItem(`${e}_${n}`,i),dr=Object.create(null);dr.open="0";dr.close="1";dr.ping="2";dr.pong="3";dr.message="4";dr.upgrade="5";dr.noop="6";const Ks=Object.create(null);Object.keys(dr).forEach(e=>{Ks[dr[e]]=e});const Hc={type:"error",data:"parser error"},Zy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ky=typeof ArrayBuffer=="function",Qy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,kf=({type:e,data:n},i,s)=>Zy&&n instanceof Blob?i?s(n):Xg(n,s):Ky&&(n instanceof ArrayBuffer||Qy(n))?i?s(n):Xg(new Blob([n]),s):s(dr[e]+(n||"")),Xg=(e,n)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];n("b"+(s||""))},i.readAsDataURL(e)};function Yg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let pc;function zR(e,n){if(Zy&&e.data instanceof Blob)return e.data.arrayBuffer().then(Yg).then(n);if(Ky&&(e.data instanceof ArrayBuffer||Qy(e.data)))return n(Yg(e.data));kf(e,!1,i=>{pc||(pc=new TextEncoder),n(pc.encode(i))})}const Jg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Jg.length;e++)eo[Jg.charCodeAt(e)]=e;const GR=e=>{let n=e.length*.75,i=e.length,s,l=0,u,f,h,p;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const v=new ArrayBuffer(n),y=new Uint8Array(v);for(s=0;s<i;s+=4)u=eo[e.charCodeAt(s)],f=eo[e.charCodeAt(s+1)],h=eo[e.charCodeAt(s+2)],p=eo[e.charCodeAt(s+3)],y[l++]=u<<2|f>>4,y[l++]=(f&15)<<4|h>>2,y[l++]=(h&3)<<6|p&63;return v},$R=typeof ArrayBuffer=="function",Rf=(e,n)=>{if(typeof e!="string")return{type:"message",data:Xy(e,n)};const i=e.charAt(0);return i==="b"?{type:"message",data:qR(e.substring(1),n)}:Ks[i]?e.length>1?{type:Ks[i],data:e.substring(1)}:{type:Ks[i]}:Hc},qR=(e,n)=>{if($R){const i=GR(e);return Xy(i,n)}else return{base64:!0,data:e}},Xy=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Yy="",VR=(e,n)=>{const i=e.length,s=new Array(i);let l=0;e.forEach((u,f)=>{kf(u,!1,h=>{s[f]=h,++l===i&&n(s.join(Yy))})})},WR=(e,n)=>{const i=e.split(Yy),s=[];for(let l=0;l<i.length;l++){const u=Rf(i[l],n);if(s.push(u),u.type==="error")break}return s};function ZR(){return new TransformStream({transform(e,n){zR(e,i=>{const s=i.length;let l;if(s<126)l=new Uint8Array(1),new DataView(l.buffer).setUint8(0,s);else if(s<65536){l=new Uint8Array(3);const u=new DataView(l.buffer);u.setUint8(0,126),u.setUint16(1,s)}else{l=new Uint8Array(9);const u=new DataView(l.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(l[0]|=128),n.enqueue(l),n.enqueue(i)})}})}let mc;function qs(e){return e.reduce((n,i)=>n+i.length,0)}function Vs(e,n){if(e[0].length===n)return e.shift();const i=new Uint8Array(n);let s=0;for(let l=0;l<n;l++)i[l]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),i}function KR(e,n){mc||(mc=new TextDecoder);const i=[];let s=0,l=-1,u=!1;return new TransformStream({transform(f,h){for(i.push(f);;){if(s===0){if(qs(i)<1)break;const p=Vs(i,1);u=(p[0]&128)===128,l=p[0]&127,l<126?s=3:l===126?s=1:s=2}else if(s===1){if(qs(i)<2)break;const p=Vs(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(qs(i)<8)break;const p=Vs(i,8),v=new DataView(p.buffer,p.byteOffset,p.length),y=v.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(Hc);break}l=y*Math.pow(2,32)+v.getUint32(4),s=3}else{if(qs(i)<l)break;const p=Vs(i,l);h.enqueue(Rf(u?p:mc.decode(p),n)),s=0}if(l===0||l>e){h.enqueue(Hc);break}}}})}const Jy=4;function We(e){if(e)return QR(e)}function QR(e){for(var n in We.prototype)e[n]=We.prototype[n];return e}We.prototype.on=We.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this};We.prototype.once=function(e,n){function i(){this.off(e,i),n.apply(this,arguments)}return i.fn=n,this.on(e,i),this};We.prototype.off=We.prototype.removeListener=We.prototype.removeAllListeners=We.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+e];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,l=0;l<i.length;l++)if(s=i[l],s===n||s.fn===n){i.splice(l,1);break}return i.length===0&&delete this._callbacks["$"+e],this};We.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),i=this._callbacks["$"+e],s=1;s<arguments.length;s++)n[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,l=i.length;s<l;++s)i[s].apply(this,n)}return this};We.prototype.emitReserved=We.prototype.emit;We.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};We.prototype.hasListeners=function(e){return!!this.listeners(e).length};const va=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,i)=>i(n,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),XR="arraybuffer";function ev(e,...n){return n.reduce((i,s)=>(e.hasOwnProperty(s)&&(i[s]=e[s]),i),{})}const YR=Bt.setTimeout,JR=Bt.clearTimeout;function _a(e,n){n.useNativeTimers?(e.setTimeoutFn=YR.bind(Bt),e.clearTimeoutFn=JR.bind(Bt)):(e.setTimeoutFn=Bt.setTimeout.bind(Bt),e.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const eO=1.33;function tO(e){return typeof e=="string"?rO(e):Math.ceil((e.byteLength||e.size)*eO)}function rO(e){let n=0,i=0;for(let s=0,l=e.length;s<l;s++)n=e.charCodeAt(s),n<128?i+=1:n<2048?i+=2:n<55296||n>=57344?i+=3:(s++,i+=4);return i}function tv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function nO(e){let n="";for(let i in e)e.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n}function iO(e){let n={},i=e.split("&");for(let s=0,l=i.length;s<l;s++){let u=i[s].split("=");n[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return n}class oO extends Error{constructor(n,i,s){super(n),this.description=i,this.context=s,this.type="TransportError"}}class Of extends We{constructor(n){super(),this.writable=!1,_a(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,i,s){return super.emitReserved("error",new oO(n,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const i=Rf(n,this.socket.binaryType);this.onPacket(i)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,i={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const i=nO(n);return i.length?"?"+i:""}}class sO extends Of{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const i=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};WR(n,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,VR(n,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=tv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(n,i)}}let rv=!1;try{rv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const aO=rv;function lO(){}class uO extends sO{constructor(n){if(super(n),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}}doWrite(n,i){const s=this.request({method:"POST",data:n});s.on("success",i),s.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=n}}class ur extends We{constructor(n,i,s){super(),this.createRequest=n,_a(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var n;const i=ev(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let l in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(l)&&s.setRequestHeader(l,this._opts.extraHeaders[l])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var l;s.readyState===3&&((l=this._opts.cookieJar)===null||l===void 0||l.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(l){this.setTimeoutFn(()=>{this._onError(l)},0);return}typeof document<"u"&&(this._index=ur.requestsCount++,ur.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=lO,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ur.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ur.requestsCount=0;ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",e0);else if(typeof addEventListener=="function"){const e="onpagehide"in Bt?"pagehide":"unload";addEventListener(e,e0,!1)}}function e0(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const cO=function(){const e=nv({xdomain:!1});return e&&e.responseType!==null}();class fO extends uO{constructor(n){super(n);const i=n&&n.forceBase64;this.supportsBinary=cO&&!i}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new ur(nv,this.uri(),n)}}function nv(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||aO))return new XMLHttpRequest}catch{}if(!n)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const iv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class dO extends Of{get name(){return"websocket"}doOpen(){const n=this.uri(),i=this.opts.protocols,s=iv?{}:ev(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,i,s)}catch(l){return this.emitReserved("error",l)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const s=n[i],l=i===n.length-1;kf(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&va(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=tv()),this.supportsBinary||(i.b64=1),this.createUri(n,i)}}const gc=Bt.WebSocket||Bt.MozWebSocket;class hO extends dO{createSocket(n,i,s){return iv?new gc(n,i,s):i?new gc(n,i):new gc(n)}doWrite(n,i){this.ws.send(i)}}class pO extends Of{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const i=KR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=n.readable.pipeThrough(i).getReader(),l=ZR();l.readable.pipeTo(n.writable),this._writer=l.writable.getWriter();const u=()=>{s.read().then(({done:h,value:p})=>{h||(this.onPacket(p),u())}).catch(h=>{})};u();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const s=n[i],l=i===n.length-1;this._writer.write(s).then(()=>{l&&va(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const mO={websocket:hO,webtransport:pO,polling:fO},gO=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zc(e){if(e.length>8e3)throw"URI too long";const n=e,i=e.indexOf("["),s=e.indexOf("]");i!=-1&&s!=-1&&(e=e.substring(0,i)+e.substring(i,s).replace(/:/g,";")+e.substring(s,e.length));let l=gO.exec(e||""),u={},f=14;for(;f--;)u[yO[f]]=l[f]||"";return i!=-1&&s!=-1&&(u.source=n,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=vO(u,u.path),u.queryKey=_O(u,u.query),u}function vO(e,n){const i=/\/{2,9}/g,s=n.replace(i,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&s.splice(0,1),n.slice(-1)=="/"&&s.splice(s.length-1,1),s}function _O(e,n){const i={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(i[l]=u)}),i}const Gc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qs=[];Gc&&addEventListener("offline",()=>{Qs.forEach(e=>e())},!1);class Xr extends We{constructor(n,i){if(super(),this.binaryType=XR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(i=n,n=null),n){const s=zc(n);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=zc(i.host).host);_a(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const l=s.prototype.name;this.transports.push(l),this._transportsByName[l]=s}),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},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=iO(this.opts.query)),Gc&&(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"})},Qs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const i=Object.assign({},this.opts.query);i.EIO=Jy,i.transport=n,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&Xr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(n);i.open(),this.setTransport(i)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Xr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=n.data,this._onError(i);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),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 n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const l=this.writeBuffer[s].data;if(l&&(i+=tO(l)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,va(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,i,s){return this._sendPacket("message",n,i,s),this}send(n,i,s){return this._sendPacket("message",n,i,s),this}_sendPacket(n,i,s,l){if(typeof i=="function"&&(l=i,i=void 0),typeof s=="function"&&(l=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const u={type:n,data:i,options:s};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),n()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():n()}):this.upgrading?s():n()),this}_onError(n){if(Xr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,i){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(),Gc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Qs.indexOf(this._offlineEventListener);s!==-1&&Qs.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,i),this.writeBuffer=[],this._prevBufferLen=0}}}Xr.protocol=Jy;class EO extends Xr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let i=this.createTransport(n),s=!1;Xr.priorWebsocketSuccess=!1;const l=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Xr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=i.name,this.emitReserved("upgradeError",m)}}))};function u(){s||(s=!0,y(),i.close(),i=null)}const f=b=>{const m=new Error("probe error: "+b);m.transport=i.name,u(),this.emitReserved("upgradeError",m)};function h(){f("transport closed")}function p(){f("socket closed")}function v(b){i&&b.name!==i.name&&u()}const y=()=>{i.removeListener("open",l),i.removeListener("error",f),i.removeListener("close",h),this.off("close",p),this.off("upgrading",v)};i.once("open",l),i.once("error",f),i.once("close",h),this.once("close",p),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const i=[];for(let s=0;s<n.length;s++)~this.transports.indexOf(n[s])&&i.push(n[s]);return i}}let wO=class extends EO{constructor(n,i={}){const s=typeof n=="object"?n:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(l=>mO[l]).filter(l=>!!l)),super(n,s)}};function SO(e,n="",i){let s=e;i=i||typeof location<"u"&&location,e==null&&(e=i.protocol+"//"+i.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=i.protocol+e:e=i.host+e),/^(https?|wss?):\/\//.test(e)||(typeof i<"u"?e=i.protocol+"//"+e:e="https://"+e),s=zc(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const u=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+u+":"+s.port+n,s.href=s.protocol+"://"+u+(i&&i.port===s.port?"":":"+s.port),s}const xO=typeof ArrayBuffer=="function",bO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ov=Object.prototype.toString,TO=typeof Blob=="function"||typeof Blob<"u"&&ov.call(Blob)==="[object BlobConstructor]",CO=typeof File=="function"||typeof File<"u"&&ov.call(File)==="[object FileConstructor]";function Nf(e){return xO&&(e instanceof ArrayBuffer||bO(e))||TO&&e instanceof Blob||CO&&e instanceof File}function Xs(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,s=e.length;i<s;i++)if(Xs(e[i]))return!0;return!1}if(Nf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Xs(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Xs(e[i]))return!0;return!1}function kO(e){const n=[],i=e.data,s=e;return s.data=$c(i,n),s.attachments=n.length,{packet:s,buffers:n}}function $c(e,n){if(!e)return e;if(Nf(e)){const i={_placeholder:!0,num:n.length};return n.push(e),i}else if(Array.isArray(e)){const i=new Array(e.length);for(let s=0;s<e.length;s++)i[s]=$c(e[s],n);return i}else if(typeof e=="object"&&!(e instanceof Date)){const i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=$c(e[s],n));return i}return e}function RO(e,n){return e.data=qc(e.data,n),delete e.attachments,e}function qc(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let i=0;i<e.length;i++)e[i]=qc(e[i],n);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=qc(e[i],n));return e}const OO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],NO=5;var Ee;(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"})(Ee||(Ee={}));class AO{constructor(n){this.replacer=n}encode(n){return(n.type===Ee.EVENT||n.type===Ee.ACK)&&Xs(n)?this.encodeAsBinary({type:n.type===Ee.EVENT?Ee.BINARY_EVENT:Ee.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let i=""+n.type;return(n.type===Ee.BINARY_EVENT||n.type===Ee.BINARY_ACK)&&(i+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(i+=n.nsp+","),n.id!=null&&(i+=n.id),n.data!=null&&(i+=JSON.stringify(n.data,this.replacer)),i}encodeAsBinary(n){const i=kO(n),s=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(s),l}}function t0(e){return Object.prototype.toString.call(e)==="[object Object]"}class Af extends We{constructor(n){super(),this.reviver=n}add(n){let i;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(n);const s=i.type===Ee.BINARY_EVENT;s||i.type===Ee.BINARY_ACK?(i.type=s?Ee.EVENT:Ee.ACK,this.reconstructor=new IO(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Nf(n)||n.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(n),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let i=0;const s={type:Number(n.charAt(0))};if(Ee[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ee.BINARY_EVENT||s.type===Ee.BINARY_ACK){const u=i+1;for(;n.charAt(++i)!=="-"&&i!=n.length;);const f=n.substring(u,i);if(f!=Number(f)||n.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(f)}if(n.charAt(i+1)==="/"){const u=i+1;for(;++i&&!(n.charAt(i)===","||i===n.length););s.nsp=n.substring(u,i)}else s.nsp="/";const l=n.charAt(i+1);if(l!==""&&Number(l)==l){const u=i+1;for(;++i;){const f=n.charAt(i);if(f==null||Number(f)!=f){--i;break}if(i===n.length)break}s.id=Number(n.substring(u,i+1))}if(n.charAt(++i)){const u=this.tryParse(n.substr(i));if(Af.isPayloadValid(s.type,u))s.data=u;else throw new Error("invalid payload")}return s}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,i){switch(n){case Ee.CONNECT:return t0(i);case Ee.DISCONNECT:return i===void 0;case Ee.CONNECT_ERROR:return typeof i=="string"||t0(i);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&OO.indexOf(i[0])===-1);case Ee.ACK:case Ee.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class IO{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const i=RO(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const DO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Af,Encoder:AO,get PacketType(){return Ee},protocol:NO},Symbol.toStringTag,{value:"Module"}));function Xt(e,n,i){return e.on(n,i),function(){e.off(n,i)}}const PO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sv extends We{constructor(n,i,s){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=n,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[Xt(n,"open",this.onopen.bind(this)),Xt(n,"packet",this.onpacket.bind(this)),Xt(n,"error",this.onerror.bind(this)),Xt(n,"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(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...i){var s,l,u;if(PO.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(i.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const f={type:Ee.EVENT,data:i};if(f.options={},f.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,b=i.pop();this._registerAckCallback(y,b),f.id=y}const h=(l=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||l===void 0?void 0:l.writable,p=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!h||(p?(this.notifyOutgoingListeners(f),this.packet(f)):this.sendBuffer.push(f)),this.flags={},this}_registerAckCallback(n,i){var s;const l=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(l===void 0){this.acks[n]=i;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===n&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},l),f=(...h)=>{this.io.clearTimeoutFn(u),i.apply(this,h)};f.withError=!0,this.acks[n]=f}emitWithAck(n,...i){return new Promise((s,l)=>{const u=(f,h)=>f?l(f):s(h);u.withError=!0,i.push(u),this.emit(n,...i)})}_addToQueue(n){let i;typeof n[n.length-1]=="function"&&(i=n.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((l,...u)=>s!==this._queue[0]?void 0:(l!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(l)):(this._queue.shift(),i&&i(null,...u)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!n||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(s=>String(s.id)===n)){const s=this.acks[n];delete this.acks[n],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Ee.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.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 Ee.EVENT:case Ee.BINARY_EVENT:this.onevent(n);break;case Ee.ACK:case Ee.BINARY_ACK:this.onack(n);break;case Ee.DISCONNECT:this.ondisconnect();break;case Ee.CONNECT_ERROR:this.destroy();const s=new Error(n.data.message);s.data=n.data.data,this.emitReserved("connect_error",s);break}}onevent(n){const i=n.data||[];n.id!=null&&i.push(this.ack(n.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const i=this;let s=!1;return function(...l){s||(s=!0,i.packet({type:Ee.ACK,id:n,data:l}))}}onack(n){const i=this.acks[n.id];typeof i=="function"&&(delete this.acks[n.id],i.withError&&n.data.unshift(null),i.apply(this,n.data))}onconnect(n,i){this.id=n,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(n===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(n===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,n.data)}}}function ri(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}ri.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),i=Math.floor(n*this.jitter*e);e=(Math.floor(n*10)&1)==0?e-i:e+i}return Math.min(e,this.max)|0};ri.prototype.reset=function(){this.attempts=0};ri.prototype.setMin=function(e){this.ms=e};ri.prototype.setMax=function(e){this.max=e};ri.prototype.setJitter=function(e){this.jitter=e};class Vc extends We{constructor(n,i){var s;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(i=n,n=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,_a(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new ri({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=n;const l=i.parser||DO;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var i;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(i=this.backoff)===null||i===void 0||i.setMin(n),this)}randomizationFactor(n){var i;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(i=this.backoff)===null||i===void 0||i.setJitter(n),this)}reconnectionDelayMax(n){var i;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(i=this.backoff)===null||i===void 0||i.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new wO(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Xt(i,"open",function(){s.onopen(),n&&n()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},f=Xt(i,"error",u);if(this._timeout!==!1){const h=this._timeout,p=this.setTimeoutFn(()=>{l(),u(new Error("timeout")),i.close()},h);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(l),this.subs.push(f),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Xt(n,"ping",this.onping.bind(this)),Xt(n,"data",this.ondata.bind(this)),Xt(n,"error",this.onerror.bind(this)),Xt(n,"close",this.onclose.bind(this)),Xt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(i){this.onclose("parse error",i)}}ondecoded(n){va(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,i){let s=this.nsps[n];return s?this._autoConnect&&!s.active&&s.connect():(s=new sv(this,n,i),this.nsps[n]=s),s}_destroy(n){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(n){const i=this.encoder.encode(n);for(let s=0;s<i.length;s++)this.engine.write(i[s],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(l=>{l?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",l)):n.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const Qi={};function Ys(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const i=SO(e,n.path||"/socket.io"),s=i.source,l=i.id,u=i.path,f=Qi[l]&&u in Qi[l].nsps,h=n.forceNew||n["force new connection"]||n.multiplex===!1||f;let p;return h?p=new Vc(s,n):(Qi[l]||(Qi[l]=new Vc(s,n)),p=Qi[l]),i.query&&!n.query&&(n.query=i.queryKey),p.socket(i.path,n)}Object.assign(Ys,{Manager:Vc,Socket:sv,io:Ys,connect:Ys});const MO=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...B2,...OS,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],FO=({dispatch:e,getState:n})=>i=>{let s=null;return l=>{const u=i(l);if(l.type===vf){s!=null&&s.disconnect(),e(H2());const f=`/chat?${la.stringify(l.querystrings)}`;s=Ys(`/${l.clientName}${f}`),s.on("action",e),s.on("connect",()=>e(z2())),s.on("disconnect",()=>e(G2())),s.on("reconnect",()=>e($2())),s.on("set-use-start-screen",h=>{e(h?C2():k2())}),s.on("set-commands",(h=[])=>{e(FS(h))}),s.on("set-translations",(h,p)=>{e(MR({language:h,messages:OR(h,p)}))}),s.on("enable-speech-support",()=>e(AS())),s.on("enable-transcript-export",h=>e(DS(h))),s.on("enable-conversation-rating",h=>e(BS(h))),s.on("speech-transcription",h=>e(IS(h))),s.on("restore-client-state",h=>{e(U2(h.sessionId)),e(US(h.messages))}),s.on("expand-window",({devices:h})=>e({type:Z0,devices:h})),s.on("show-general-conditions",()=>e(MS())),s.on("restart-chat",()=>{e(ma(l.clientName,l.querystrings))})}else if(l.type===ha)s==null||s.emit("start-chat",l.payload);else if(l.type===pa)s==null||s.emit("terminate-session",l.payload);else if(l.type===RS)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===sf)s==null||s.emit("audio-message",l.buffer);else if(l.type===ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s==null||s.emit("conversation-rating",l.payload);else if(l.type===Q0){const{connection:{sessionId:f}}=n();window.location.href=`/transcript-pdf/${f}`}else MO.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},av=By(),LO={...BR(av),intl:$y},Wc=h2({middleware:e=>e().concat(FO),reducer:LR,preloadedState:LO});Wc.subscribe(SR(()=>{const e=Wc.getState();jR(av,{connection:e.connection,startScreen:e.startScreen})},1e3));const BO=document.getElementById("root"),jO=p1.createRoot(BO);jO.render(E.jsx(fE,{store:Wc,children:E.jsx(lR,{})}));
110
- //# sourceMappingURL=index-Cb9Q_t5H.js.map
109
+ - 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","source-infos.close":"Chiudere","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},AR=["de","en","fr","it"],$y={locale:"de",messages:Gy},IR=(e,n)=>{if(AR.includes(e)){const i=DR(e),s=kR.dot(n);return{...i,...s}}return n},DR=e=>{switch(e.toString()){case"en":return RR;case"fr":return OR;case"it":return NR;default:return Gy}},PR=(e=MR,n)=>{switch(n.type){case _f:return Object.assign({},e,{connectionState:En.CONNECTING});case Ef:return Object.assign({},e,{connectionState:En.CONNECTED});case wf:return Object.assign({},e,{connectionState:En.DISCONNECTED});case Sf:return Object.assign({},e,{connectionState:En.RECONNECTED});case xf:return Object.assign({},e,{sessionId:n.sessionId});case ha:return Object.assign({},e,{sessionId:n.payload.sessionId,userId:n.payload.userId});case pa:return Object.assign({},e,{sessionId:void 0});default:return e}},MR={connectionState:En.DISCONNECTED,sessionId:void 0,userId:void 0},FR=(e=Kg,n)=>{switch(n.type){case hy:return Kg;case ha:return yn({type:"webclient.chat.started"}),e;case pa:return yn({type:"webclient.chat.ended"}),e;case ge.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case ge.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case ge.ActionTypes.MESSAGE_FROM_GUEST:case ge.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Wg(e,n.message);case ge.ActionTypes.MESSAGE_TO_GUEST:{yn(n);const i=Object.assign({},n.message,{_id:n.meta.actionId}),s=e.messages.filter(l=>l._id===n.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:s?e.messages:e.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case of:{const i=n.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:i,quickReplies:(s==null?void 0:s.quickReplies)||[]})}case nf:return yn(n.message),e;case ge.ActionTypes.EVENT_TO_GUEST:return yn(n.event),e;case ge.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:n.payload.parameters.contentUrl});case ge.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case ge.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:n.payload.locale});case K0:return yn(n),e;case Z0:return yn(n),e;case af:return Object.assign({},e,{speechSupport:!0});case uf:{const i=new ge.TextMessage(n.transcription,new ge.GuestUser),s=Object.assign({},i,{_id:Bc()});return Wg(e,s)}case lf:return Object.assign({},e,{transcriptExportEnabled:n.methods});case cf:return Object.assign({},e,{showGeneralConditions:!0});case ge.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=e.messages.map(s=>s._id===n.payload.actionId?Object.assign({},s,{reaction:n.payload.reaction}):s);return Object.assign({},e,{messages:i})}case ff:{const i={enabled:!0,rating:n.payload.rating};return Object.assign({},e,{conversationRating:i})}case ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...e.conversationRating,rating:n.payload};return Object.assign({},e,{conversationRating:i})}case df:return{...e,commands:n.payload.commands};case hf:return{...e,sourceInfos:{type:"loading",chunkId:n.payload.chunkId}};case W0:return{...e,sourceInfos:{type:"loading-error"}};case V0:return{...e,sourceInfos:{type:"loaded",chunkId:n.payload.chunkId,knowledgeBaseType:n.payload.knowledgeBaseType,title:n.payload.title,content:n.payload.content,url:n.payload.url}};case pf:return{...e,sourceInfos:void 0};default:return e}},Wg=(e,n)=>{const i=e.messages[e.messages.length-1],s=(i==null?void 0:i.text)===n.text;return i&&i.sender.type===n.sender.type&&s?e:Object.assign({},e,{messages:e.messages.concat([n]),quickReplies:[]})},yn=e=>{var n;LR()?(n=window.top)==null||n.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},LR=()=>typeof window<"u"&&window.self!==window.top,Kg={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1},commands:[]},qy=fy({name:"intl",initialState:$y,reducers:{updateIntl:(e,n)=>{e.locale=n.payload.language,e.messages=n.payload.messages}}}),{updateIntl:BR}=qy.actions,jR=qy.reducer,UR=ey({chat:FR,startScreen:D2,connection:PR,intl:jR}),Vy="bf-webclient-state-last-saved-at",Wy="bf-webclient-state",HR=e=>{try{if(!$R())return;const n=Zg(e,Vy);if(GR(n))return;{const i=Zg(e,Wy);return i===null?void 0:JSON.parse(i)}}catch(n){console.error(n);return}},zR=(e,n)=>{try{const i=JSON.stringify(n);Qg(e,Wy,i);const s=new Date().toISOString();Qg(e,Vy,s)}catch(i){console.error(i)}},GR=e=>{if(e===null)return!1;const n=new Date(e);return n.setHours(n.getHours()+12),new Date>n},$R=()=>typeof localStorage<"u",Zg=(e,n)=>localStorage.getItem(`${e}_${n}`),Qg=(e,n,i)=>localStorage.setItem(`${e}_${n}`,i),dr=Object.create(null);dr.open="0";dr.close="1";dr.ping="2";dr.pong="3";dr.message="4";dr.upgrade="5";dr.noop="6";const Zs=Object.create(null);Object.keys(dr).forEach(e=>{Zs[dr[e]]=e});const Hc={type:"error",data:"parser error"},Ky=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Zy=typeof ArrayBuffer=="function",Qy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,kf=({type:e,data:n},i,s)=>Ky&&n instanceof Blob?i?s(n):Xg(n,s):Zy&&(n instanceof ArrayBuffer||Qy(n))?i?s(n):Xg(new Blob([n]),s):s(dr[e]+(n||"")),Xg=(e,n)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];n("b"+(s||""))},i.readAsDataURL(e)};function Yg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let pc;function qR(e,n){if(Ky&&e.data instanceof Blob)return e.data.arrayBuffer().then(Yg).then(n);if(Zy&&(e.data instanceof ArrayBuffer||Qy(e.data)))return n(Yg(e.data));kf(e,!1,i=>{pc||(pc=new TextEncoder),n(pc.encode(i))})}const Jg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Jg.length;e++)eo[Jg.charCodeAt(e)]=e;const VR=e=>{let n=e.length*.75,i=e.length,s,l=0,u,f,h,p;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const v=new ArrayBuffer(n),y=new Uint8Array(v);for(s=0;s<i;s+=4)u=eo[e.charCodeAt(s)],f=eo[e.charCodeAt(s+1)],h=eo[e.charCodeAt(s+2)],p=eo[e.charCodeAt(s+3)],y[l++]=u<<2|f>>4,y[l++]=(f&15)<<4|h>>2,y[l++]=(h&3)<<6|p&63;return v},WR=typeof ArrayBuffer=="function",Rf=(e,n)=>{if(typeof e!="string")return{type:"message",data:Xy(e,n)};const i=e.charAt(0);return i==="b"?{type:"message",data:KR(e.substring(1),n)}:Zs[i]?e.length>1?{type:Zs[i],data:e.substring(1)}:{type:Zs[i]}:Hc},KR=(e,n)=>{if(WR){const i=VR(e);return Xy(i,n)}else return{base64:!0,data:e}},Xy=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Yy="",ZR=(e,n)=>{const i=e.length,s=new Array(i);let l=0;e.forEach((u,f)=>{kf(u,!1,h=>{s[f]=h,++l===i&&n(s.join(Yy))})})},QR=(e,n)=>{const i=e.split(Yy),s=[];for(let l=0;l<i.length;l++){const u=Rf(i[l],n);if(s.push(u),u.type==="error")break}return s};function XR(){return new TransformStream({transform(e,n){qR(e,i=>{const s=i.length;let l;if(s<126)l=new Uint8Array(1),new DataView(l.buffer).setUint8(0,s);else if(s<65536){l=new Uint8Array(3);const u=new DataView(l.buffer);u.setUint8(0,126),u.setUint16(1,s)}else{l=new Uint8Array(9);const u=new DataView(l.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(l[0]|=128),n.enqueue(l),n.enqueue(i)})}})}let mc;function qs(e){return e.reduce((n,i)=>n+i.length,0)}function Vs(e,n){if(e[0].length===n)return e.shift();const i=new Uint8Array(n);let s=0;for(let l=0;l<n;l++)i[l]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),i}function YR(e,n){mc||(mc=new TextDecoder);const i=[];let s=0,l=-1,u=!1;return new TransformStream({transform(f,h){for(i.push(f);;){if(s===0){if(qs(i)<1)break;const p=Vs(i,1);u=(p[0]&128)===128,l=p[0]&127,l<126?s=3:l===126?s=1:s=2}else if(s===1){if(qs(i)<2)break;const p=Vs(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(qs(i)<8)break;const p=Vs(i,8),v=new DataView(p.buffer,p.byteOffset,p.length),y=v.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(Hc);break}l=y*Math.pow(2,32)+v.getUint32(4),s=3}else{if(qs(i)<l)break;const p=Vs(i,l);h.enqueue(Rf(u?p:mc.decode(p),n)),s=0}if(l===0||l>e){h.enqueue(Hc);break}}}})}const Jy=4;function We(e){if(e)return JR(e)}function JR(e){for(var n in We.prototype)e[n]=We.prototype[n];return e}We.prototype.on=We.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this};We.prototype.once=function(e,n){function i(){this.off(e,i),n.apply(this,arguments)}return i.fn=n,this.on(e,i),this};We.prototype.off=We.prototype.removeListener=We.prototype.removeAllListeners=We.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+e];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,l=0;l<i.length;l++)if(s=i[l],s===n||s.fn===n){i.splice(l,1);break}return i.length===0&&delete this._callbacks["$"+e],this};We.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),i=this._callbacks["$"+e],s=1;s<arguments.length;s++)n[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,l=i.length;s<l;++s)i[s].apply(this,n)}return this};We.prototype.emitReserved=We.prototype.emit;We.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};We.prototype.hasListeners=function(e){return!!this.listeners(e).length};const va=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,i)=>i(n,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),eO="arraybuffer";function ev(e,...n){return n.reduce((i,s)=>(e.hasOwnProperty(s)&&(i[s]=e[s]),i),{})}const tO=Bt.setTimeout,rO=Bt.clearTimeout;function _a(e,n){n.useNativeTimers?(e.setTimeoutFn=tO.bind(Bt),e.clearTimeoutFn=rO.bind(Bt)):(e.setTimeoutFn=Bt.setTimeout.bind(Bt),e.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const nO=1.33;function iO(e){return typeof e=="string"?oO(e):Math.ceil((e.byteLength||e.size)*nO)}function oO(e){let n=0,i=0;for(let s=0,l=e.length;s<l;s++)n=e.charCodeAt(s),n<128?i+=1:n<2048?i+=2:n<55296||n>=57344?i+=3:(s++,i+=4);return i}function tv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function sO(e){let n="";for(let i in e)e.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n}function aO(e){let n={},i=e.split("&");for(let s=0,l=i.length;s<l;s++){let u=i[s].split("=");n[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return n}class lO extends Error{constructor(n,i,s){super(n),this.description=i,this.context=s,this.type="TransportError"}}class Of extends We{constructor(n){super(),this.writable=!1,_a(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,i,s){return super.emitReserved("error",new lO(n,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const i=Rf(n,this.socket.binaryType);this.onPacket(i)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,i={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const i=sO(n);return i.length?"?"+i:""}}class uO extends Of{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const i=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};QR(n,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,ZR(n,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=tv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(n,i)}}let rv=!1;try{rv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const cO=rv;function fO(){}class dO extends uO{constructor(n){if(super(n),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}}doWrite(n,i){const s=this.request({method:"POST",data:n});s.on("success",i),s.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=n}}class ur extends We{constructor(n,i,s){super(),this.createRequest=n,_a(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var n;const i=ev(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let l in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(l)&&s.setRequestHeader(l,this._opts.extraHeaders[l])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var l;s.readyState===3&&((l=this._opts.cookieJar)===null||l===void 0||l.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(l){this.setTimeoutFn(()=>{this._onError(l)},0);return}typeof document<"u"&&(this._index=ur.requestsCount++,ur.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=fO,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ur.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ur.requestsCount=0;ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",e0);else if(typeof addEventListener=="function"){const e="onpagehide"in Bt?"pagehide":"unload";addEventListener(e,e0,!1)}}function e0(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const hO=function(){const e=nv({xdomain:!1});return e&&e.responseType!==null}();class pO extends dO{constructor(n){super(n);const i=n&&n.forceBase64;this.supportsBinary=hO&&!i}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new ur(nv,this.uri(),n)}}function nv(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||cO))return new XMLHttpRequest}catch{}if(!n)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const iv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class mO extends Of{get name(){return"websocket"}doOpen(){const n=this.uri(),i=this.opts.protocols,s=iv?{}:ev(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,i,s)}catch(l){return this.emitReserved("error",l)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const s=n[i],l=i===n.length-1;kf(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&va(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=tv()),this.supportsBinary||(i.b64=1),this.createUri(n,i)}}const gc=Bt.WebSocket||Bt.MozWebSocket;class gO extends mO{createSocket(n,i,s){return iv?new gc(n,i,s):i?new gc(n,i):new gc(n)}doWrite(n,i){this.ws.send(i)}}class yO extends Of{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const i=YR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=n.readable.pipeThrough(i).getReader(),l=XR();l.readable.pipeTo(n.writable),this._writer=l.writable.getWriter();const u=()=>{s.read().then(({done:h,value:p})=>{h||(this.onPacket(p),u())}).catch(h=>{})};u();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const s=n[i],l=i===n.length-1;this._writer.write(s).then(()=>{l&&va(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const vO={websocket:gO,webtransport:yO,polling:pO},_O=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,EO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zc(e){if(e.length>8e3)throw"URI too long";const n=e,i=e.indexOf("["),s=e.indexOf("]");i!=-1&&s!=-1&&(e=e.substring(0,i)+e.substring(i,s).replace(/:/g,";")+e.substring(s,e.length));let l=_O.exec(e||""),u={},f=14;for(;f--;)u[EO[f]]=l[f]||"";return i!=-1&&s!=-1&&(u.source=n,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=wO(u,u.path),u.queryKey=SO(u,u.query),u}function wO(e,n){const i=/\/{2,9}/g,s=n.replace(i,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&s.splice(0,1),n.slice(-1)=="/"&&s.splice(s.length-1,1),s}function SO(e,n){const i={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(i[l]=u)}),i}const Gc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qs=[];Gc&&addEventListener("offline",()=>{Qs.forEach(e=>e())},!1);class Xr extends We{constructor(n,i){if(super(),this.binaryType=eO,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(i=n,n=null),n){const s=zc(n);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=zc(i.host).host);_a(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const l=s.prototype.name;this.transports.push(l),this._transportsByName[l]=s}),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},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=aO(this.opts.query)),Gc&&(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"})},Qs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const i=Object.assign({},this.opts.query);i.EIO=Jy,i.transport=n,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&Xr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(n);i.open(),this.setTransport(i)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Xr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=n.data,this._onError(i);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),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 n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const l=this.writeBuffer[s].data;if(l&&(i+=iO(l)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,va(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,i,s){return this._sendPacket("message",n,i,s),this}send(n,i,s){return this._sendPacket("message",n,i,s),this}_sendPacket(n,i,s,l){if(typeof i=="function"&&(l=i,i=void 0),typeof s=="function"&&(l=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const u={type:n,data:i,options:s};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),n()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():n()}):this.upgrading?s():n()),this}_onError(n){if(Xr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,i){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(),Gc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Qs.indexOf(this._offlineEventListener);s!==-1&&Qs.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,i),this.writeBuffer=[],this._prevBufferLen=0}}}Xr.protocol=Jy;class xO extends Xr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let i=this.createTransport(n),s=!1;Xr.priorWebsocketSuccess=!1;const l=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Xr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=i.name,this.emitReserved("upgradeError",m)}}))};function u(){s||(s=!0,y(),i.close(),i=null)}const f=b=>{const m=new Error("probe error: "+b);m.transport=i.name,u(),this.emitReserved("upgradeError",m)};function h(){f("transport closed")}function p(){f("socket closed")}function v(b){i&&b.name!==i.name&&u()}const y=()=>{i.removeListener("open",l),i.removeListener("error",f),i.removeListener("close",h),this.off("close",p),this.off("upgrading",v)};i.once("open",l),i.once("error",f),i.once("close",h),this.once("close",p),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const i=[];for(let s=0;s<n.length;s++)~this.transports.indexOf(n[s])&&i.push(n[s]);return i}}let bO=class extends xO{constructor(n,i={}){const s=typeof n=="object"?n:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(l=>vO[l]).filter(l=>!!l)),super(n,s)}};function TO(e,n="",i){let s=e;i=i||typeof location<"u"&&location,e==null&&(e=i.protocol+"//"+i.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=i.protocol+e:e=i.host+e),/^(https?|wss?):\/\//.test(e)||(typeof i<"u"?e=i.protocol+"//"+e:e="https://"+e),s=zc(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const u=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+u+":"+s.port+n,s.href=s.protocol+"://"+u+(i&&i.port===s.port?"":":"+s.port),s}const CO=typeof ArrayBuffer=="function",kO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ov=Object.prototype.toString,RO=typeof Blob=="function"||typeof Blob<"u"&&ov.call(Blob)==="[object BlobConstructor]",OO=typeof File=="function"||typeof File<"u"&&ov.call(File)==="[object FileConstructor]";function Nf(e){return CO&&(e instanceof ArrayBuffer||kO(e))||RO&&e instanceof Blob||OO&&e instanceof File}function Xs(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,s=e.length;i<s;i++)if(Xs(e[i]))return!0;return!1}if(Nf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Xs(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Xs(e[i]))return!0;return!1}function NO(e){const n=[],i=e.data,s=e;return s.data=$c(i,n),s.attachments=n.length,{packet:s,buffers:n}}function $c(e,n){if(!e)return e;if(Nf(e)){const i={_placeholder:!0,num:n.length};return n.push(e),i}else if(Array.isArray(e)){const i=new Array(e.length);for(let s=0;s<e.length;s++)i[s]=$c(e[s],n);return i}else if(typeof e=="object"&&!(e instanceof Date)){const i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=$c(e[s],n));return i}return e}function AO(e,n){return e.data=qc(e.data,n),delete e.attachments,e}function qc(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let i=0;i<e.length;i++)e[i]=qc(e[i],n);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=qc(e[i],n));return e}const IO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],DO=5;var Ee;(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"})(Ee||(Ee={}));class PO{constructor(n){this.replacer=n}encode(n){return(n.type===Ee.EVENT||n.type===Ee.ACK)&&Xs(n)?this.encodeAsBinary({type:n.type===Ee.EVENT?Ee.BINARY_EVENT:Ee.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let i=""+n.type;return(n.type===Ee.BINARY_EVENT||n.type===Ee.BINARY_ACK)&&(i+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(i+=n.nsp+","),n.id!=null&&(i+=n.id),n.data!=null&&(i+=JSON.stringify(n.data,this.replacer)),i}encodeAsBinary(n){const i=NO(n),s=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(s),l}}function t0(e){return Object.prototype.toString.call(e)==="[object Object]"}class Af extends We{constructor(n){super(),this.reviver=n}add(n){let i;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(n);const s=i.type===Ee.BINARY_EVENT;s||i.type===Ee.BINARY_ACK?(i.type=s?Ee.EVENT:Ee.ACK,this.reconstructor=new MO(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Nf(n)||n.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(n),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let i=0;const s={type:Number(n.charAt(0))};if(Ee[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ee.BINARY_EVENT||s.type===Ee.BINARY_ACK){const u=i+1;for(;n.charAt(++i)!=="-"&&i!=n.length;);const f=n.substring(u,i);if(f!=Number(f)||n.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(f)}if(n.charAt(i+1)==="/"){const u=i+1;for(;++i&&!(n.charAt(i)===","||i===n.length););s.nsp=n.substring(u,i)}else s.nsp="/";const l=n.charAt(i+1);if(l!==""&&Number(l)==l){const u=i+1;for(;++i;){const f=n.charAt(i);if(f==null||Number(f)!=f){--i;break}if(i===n.length)break}s.id=Number(n.substring(u,i+1))}if(n.charAt(++i)){const u=this.tryParse(n.substr(i));if(Af.isPayloadValid(s.type,u))s.data=u;else throw new Error("invalid payload")}return s}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,i){switch(n){case Ee.CONNECT:return t0(i);case Ee.DISCONNECT:return i===void 0;case Ee.CONNECT_ERROR:return typeof i=="string"||t0(i);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&IO.indexOf(i[0])===-1);case Ee.ACK:case Ee.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class MO{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const i=AO(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const FO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Af,Encoder:PO,get PacketType(){return Ee},protocol:DO},Symbol.toStringTag,{value:"Module"}));function Xt(e,n,i){return e.on(n,i),function(){e.off(n,i)}}const LO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sv extends We{constructor(n,i,s){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=n,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[Xt(n,"open",this.onopen.bind(this)),Xt(n,"packet",this.onpacket.bind(this)),Xt(n,"error",this.onerror.bind(this)),Xt(n,"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(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...i){var s,l,u;if(LO.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(i.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const f={type:Ee.EVENT,data:i};if(f.options={},f.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,b=i.pop();this._registerAckCallback(y,b),f.id=y}const h=(l=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||l===void 0?void 0:l.writable,p=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!h||(p?(this.notifyOutgoingListeners(f),this.packet(f)):this.sendBuffer.push(f)),this.flags={},this}_registerAckCallback(n,i){var s;const l=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(l===void 0){this.acks[n]=i;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===n&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},l),f=(...h)=>{this.io.clearTimeoutFn(u),i.apply(this,h)};f.withError=!0,this.acks[n]=f}emitWithAck(n,...i){return new Promise((s,l)=>{const u=(f,h)=>f?l(f):s(h);u.withError=!0,i.push(u),this.emit(n,...i)})}_addToQueue(n){let i;typeof n[n.length-1]=="function"&&(i=n.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((l,...u)=>s!==this._queue[0]?void 0:(l!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(l)):(this._queue.shift(),i&&i(null,...u)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!n||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(s=>String(s.id)===n)){const s=this.acks[n];delete this.acks[n],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Ee.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.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 Ee.EVENT:case Ee.BINARY_EVENT:this.onevent(n);break;case Ee.ACK:case Ee.BINARY_ACK:this.onack(n);break;case Ee.DISCONNECT:this.ondisconnect();break;case Ee.CONNECT_ERROR:this.destroy();const s=new Error(n.data.message);s.data=n.data.data,this.emitReserved("connect_error",s);break}}onevent(n){const i=n.data||[];n.id!=null&&i.push(this.ack(n.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const i=this;let s=!1;return function(...l){s||(s=!0,i.packet({type:Ee.ACK,id:n,data:l}))}}onack(n){const i=this.acks[n.id];typeof i=="function"&&(delete this.acks[n.id],i.withError&&n.data.unshift(null),i.apply(this,n.data))}onconnect(n,i){this.id=n,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(n===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(n===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,n.data)}}}function ri(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}ri.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),i=Math.floor(n*this.jitter*e);e=(Math.floor(n*10)&1)==0?e-i:e+i}return Math.min(e,this.max)|0};ri.prototype.reset=function(){this.attempts=0};ri.prototype.setMin=function(e){this.ms=e};ri.prototype.setMax=function(e){this.max=e};ri.prototype.setJitter=function(e){this.jitter=e};class Vc extends We{constructor(n,i){var s;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(i=n,n=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,_a(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new ri({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=n;const l=i.parser||FO;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var i;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(i=this.backoff)===null||i===void 0||i.setMin(n),this)}randomizationFactor(n){var i;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(i=this.backoff)===null||i===void 0||i.setJitter(n),this)}reconnectionDelayMax(n){var i;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(i=this.backoff)===null||i===void 0||i.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new bO(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Xt(i,"open",function(){s.onopen(),n&&n()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},f=Xt(i,"error",u);if(this._timeout!==!1){const h=this._timeout,p=this.setTimeoutFn(()=>{l(),u(new Error("timeout")),i.close()},h);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(l),this.subs.push(f),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Xt(n,"ping",this.onping.bind(this)),Xt(n,"data",this.ondata.bind(this)),Xt(n,"error",this.onerror.bind(this)),Xt(n,"close",this.onclose.bind(this)),Xt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(i){this.onclose("parse error",i)}}ondecoded(n){va(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,i){let s=this.nsps[n];return s?this._autoConnect&&!s.active&&s.connect():(s=new sv(this,n,i),this.nsps[n]=s),s}_destroy(n){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(n){const i=this.encoder.encode(n);for(let s=0;s<i.length;s++)this.engine.write(i[s],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(l=>{l?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",l)):n.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const Qi={};function Ys(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const i=TO(e,n.path||"/socket.io"),s=i.source,l=i.id,u=i.path,f=Qi[l]&&u in Qi[l].nsps,h=n.forceNew||n["force new connection"]||n.multiplex===!1||f;let p;return h?p=new Vc(s,n):(Qi[l]||(Qi[l]=new Vc(s,n)),p=Qi[l]),i.query&&!n.query&&(n.query=i.queryKey),p.socket(i.path,n)}Object.assign(Ys,{Manager:Vc,Socket:sv,io:Ys,connect:Ys});const BO=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...H2,...IS,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],jO=({dispatch:e,getState:n})=>i=>{let s=null;return l=>{const u=i(l);if(l.type===vf){s!=null&&s.disconnect(),e($2());const f=`/chat?${la.stringify(l.querystrings)}`;s=Ys(`/${l.clientName}${f}`),s.on("action",e),s.on("connect",()=>e(q2())),s.on("disconnect",()=>e(V2())),s.on("reconnect",()=>e(W2())),s.on("set-use-start-screen",h=>{e(h?O2():N2())}),s.on("set-commands",(h=[])=>{e(jS(h))}),s.on("set-translations",(h,p)=>{e(BR({language:h,messages:IR(h,p)}))}),s.on("enable-speech-support",()=>e(PS())),s.on("enable-transcript-export",h=>e(FS(h))),s.on("enable-conversation-rating",h=>e(HS(h))),s.on("speech-transcription",h=>e(MS(h))),s.on("restore-client-state",h=>{e(G2(h.sessionId)),e(GS(h.messages))}),s.on("expand-window",({devices:h})=>e({type:K0,devices:h})),s.on("show-general-conditions",()=>e(BS())),s.on("restart-chat",()=>{e(ma(l.clientName,l.querystrings))})}else if(l.type===ha)s==null||s.emit("start-chat",l.payload);else if(l.type===pa)s==null||s.emit("terminate-session",l.payload);else if(l.type===AS)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===sf)s==null||s.emit("audio-message",l.buffer);else if(l.type===ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s==null||s.emit("conversation-rating",l.payload);else if(l.type===Q0){const{connection:{sessionId:f}}=n();window.location.href=`/transcript-pdf/${f}`}else BO.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},av=By(),UO={...HR(av),intl:$y},Wc=g2({middleware:e=>e().concat(jO),reducer:UR,preloadedState:UO});Wc.subscribe(TR(()=>{const e=Wc.getState();zR(av,{connection:e.connection,startScreen:e.startScreen})},1e3));const HO=document.getElementById("root"),zO=p1.createRoot(HO);zO.render(E.jsx(fE,{store:Wc,children:E.jsx(fR,{})}));
110
+ //# sourceMappingURL=index-CQU-fM3b.js.map