@botfabrik/engine-webclient 4.90.1-alpha.2 → 4.90.2

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.
@@ -1,119 +0,0 @@
1
- var E2=Object.defineProperty;var S2=(n,r,i)=>r in n?E2(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i;var Ce=(n,r,i)=>S2(n,typeof r!="symbol"?r+"":r,i);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();var Al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function go(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fc={exports:{}},Vi={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ag;function T2(){if(ag)return Vi;ag=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(l,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var d in u)d!=="key"&&(f[d]=u[d])}else f=u;return u=f.ref,{$$typeof:n,type:l,key:h,ref:u!==void 0?u:null,props:f}}return Vi.Fragment=r,Vi.jsx=i,Vi.jsxs=i,Vi}var ig;function x2(){return ig||(ig=1,Fc.exports=T2()),Fc.exports}var b=x2(),Vc={exports:{}},Pi={},Pc={exports:{}},Yc={};/**
10
- * @license React
11
- * scheduler.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var sg;function A2(){return sg||(sg=1,function(n){function r(G,X){var J=G.length;G.push(X);e:for(;0<J;){var _e=J-1>>>1,w=G[_e];if(0<u(w,X))G[_e]=X,G[J]=w,J=_e;else break e}}function i(G){return G.length===0?null:G[0]}function l(G){if(G.length===0)return null;var X=G[0],J=G.pop();if(J!==X){G[0]=J;e:for(var _e=0,w=G.length,P=w>>>1;_e<P;){var $=2*(_e+1)-1,Q=G[$],ae=$+1,Se=G[ae];if(0>u(Q,J))ae<w&&0>u(Se,Q)?(G[_e]=Se,G[ae]=J,_e=ae):(G[_e]=Q,G[$]=J,_e=$);else if(ae<w&&0>u(Se,J))G[_e]=Se,G[ae]=J,_e=ae;else break e}}return X}function u(G,X){var J=G.sortIndex-X.sortIndex;return J!==0?J:G.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var m=[],g=[],_=1,S=null,y=3,x=!1,T=!1,z=!1,N=!1,H=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function R(G){for(var X=i(g);X!==null;){if(X.callback===null)l(g);else if(X.startTime<=G)l(g),X.sortIndex=X.expirationTime,r(m,X);else break;X=i(g)}}function E(G){if(z=!1,R(G),!T)if(i(m)!==null)T=!0,U||(U=!0,ie());else{var X=i(g);X!==null&&Te(E,X.startTime-G)}}var U=!1,Y=-1,K=5,re=-1;function ee(){return N?!0:!(n.unstable_now()-re<K)}function le(){if(N=!1,U){var G=n.unstable_now();re=G;var X=!0;try{e:{T=!1,z&&(z=!1,D(Y),Y=-1),x=!0;var J=y;try{t:{for(R(G),S=i(m);S!==null&&!(S.expirationTime>G&&ee());){var _e=S.callback;if(typeof _e=="function"){S.callback=null,y=S.priorityLevel;var w=_e(S.expirationTime<=G);if(G=n.unstable_now(),typeof w=="function"){S.callback=w,R(G),X=!0;break t}S===i(m)&&l(m),R(G)}else l(m);S=i(m)}if(S!==null)X=!0;else{var P=i(g);P!==null&&Te(E,P.startTime-G),X=!1}}break e}finally{S=null,y=J,x=!1}X=void 0}}finally{X?ie():U=!1}}}var ie;if(typeof O=="function")ie=function(){O(le)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,Ie=de.port2;de.port1.onmessage=le,ie=function(){Ie.postMessage(null)}}else ie=function(){H(le,0)};function Te(G,X){Y=H(function(){G(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return y},n.unstable_next=function(G){switch(y){case 1:case 2:case 3:var X=3;break;default:X=y}var J=y;y=X;try{return G()}finally{y=J}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(G,X){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var J=y;y=G;try{return X()}finally{y=J}},n.unstable_scheduleCallback=function(G,X,J){var _e=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?_e+J:_e):J=_e,G){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=J+w,G={id:_++,callback:X,priorityLevel:G,startTime:J,expirationTime:w,sortIndex:-1},J>_e?(G.sortIndex=J,r(g,G),i(m)===null&&G===i(g)&&(z?(D(Y),Y=-1):z=!0,Te(E,J-_e))):(G.sortIndex=w,r(m,G),T||x||(T=!0,U||(U=!0,ie()))),G},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(G){var X=y;return function(){var J=y;y=X;try{return G.apply(this,arguments)}finally{y=J}}}}(Yc)),Yc}var lg;function O2(){return lg||(lg=1,Pc.exports=A2()),Pc.exports}var Zc={exports:{}},pe={};/**
18
- * @license React
19
- * react.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var og;function R2(){if(og)return pe;og=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),S=Symbol.iterator;function y(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,z={};function N(w,P,$){this.props=w,this.context=P,this.refs=z,this.updater=$||x}N.prototype.isReactComponent={},N.prototype.setState=function(w,P){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,P,"setState")},N.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function H(){}H.prototype=N.prototype;function D(w,P,$){this.props=w,this.context=P,this.refs=z,this.updater=$||x}var O=D.prototype=new H;O.constructor=D,T(O,N.prototype),O.isPureReactComponent=!0;var R=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},U=Object.prototype.hasOwnProperty;function Y(w,P,$,Q,ae,Se){return $=Se.ref,{$$typeof:n,type:w,key:P,ref:$!==void 0?$:null,props:Se}}function K(w,P){return Y(w.type,P,void 0,void 0,void 0,w.props)}function re(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function ee(w){var P={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function($){return P[$]})}var le=/\/+/g;function ie(w,P){return typeof w=="object"&&w!==null&&w.key!=null?ee(""+w.key):P.toString(36)}function de(){}function Ie(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(de,de):(w.status="pending",w.then(function(P){w.status==="pending"&&(w.status="fulfilled",w.value=P)},function(P){w.status==="pending"&&(w.status="rejected",w.reason=P)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function Te(w,P,$,Q,ae){var Se=typeof w;(Se==="undefined"||Se==="boolean")&&(w=null);var ce=!1;if(w===null)ce=!0;else switch(Se){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(w.$$typeof){case n:case r:ce=!0;break;case _:return ce=w._init,Te(ce(w._payload),P,$,Q,ae)}}if(ce)return ae=ae(w),ce=Q===""?"."+ie(w,0):Q,R(ae)?($="",ce!=null&&($=ce.replace(le,"$&/")+"/"),Te(ae,P,$,"",function(Ot){return Ot})):ae!=null&&(re(ae)&&(ae=K(ae,$+(ae.key==null||w&&w.key===ae.key?"":(""+ae.key).replace(le,"$&/")+"/")+ce)),P.push(ae)),1;ce=0;var ht=Q===""?".":Q+":";if(R(w))for(var ze=0;ze<w.length;ze++)Q=w[ze],Se=ht+ie(Q,ze),ce+=Te(Q,P,$,Se,ae);else if(ze=y(w),typeof ze=="function")for(w=ze.call(w),ze=0;!(Q=w.next()).done;)Q=Q.value,Se=ht+ie(Q,ze++),ce+=Te(Q,P,$,Se,ae);else if(Se==="object"){if(typeof w.then=="function")return Te(Ie(w),P,$,Q,ae);throw P=String(w),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ce}function G(w,P,$){if(w==null)return w;var Q=[],ae=0;return Te(w,Q,"","",function(Se){return P.call($,Se,ae++)}),Q}function X(w){if(w._status===-1){var P=w._result;P=P(),P.then(function($){(w._status===0||w._status===-1)&&(w._status=1,w._result=$)},function($){(w._status===0||w._status===-1)&&(w._status=2,w._result=$)}),w._status===-1&&(w._status=0,w._result=P)}if(w._status===1)return w._result.default;throw w._result}var J=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function _e(){}return pe.Children={map:G,forEach:function(w,P,$){G(w,function(){P.apply(this,arguments)},$)},count:function(w){var P=0;return G(w,function(){P++}),P},toArray:function(w){return G(w,function(P){return P})||[]},only:function(w){if(!re(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},pe.Component=N,pe.Fragment=i,pe.Profiler=u,pe.PureComponent=D,pe.StrictMode=l,pe.Suspense=m,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,pe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return E.H.useMemoCache(w)}},pe.cache=function(w){return function(){return w.apply(null,arguments)}},pe.cloneElement=function(w,P,$){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var Q=T({},w.props),ae=w.key,Se=void 0;if(P!=null)for(ce in P.ref!==void 0&&(Se=void 0),P.key!==void 0&&(ae=""+P.key),P)!U.call(P,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&P.ref===void 0||(Q[ce]=P[ce]);var ce=arguments.length-2;if(ce===1)Q.children=$;else if(1<ce){for(var ht=Array(ce),ze=0;ze<ce;ze++)ht[ze]=arguments[ze+2];Q.children=ht}return Y(w.type,ae,void 0,void 0,Se,Q)},pe.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},pe.createElement=function(w,P,$){var Q,ae={},Se=null;if(P!=null)for(Q in P.key!==void 0&&(Se=""+P.key),P)U.call(P,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(ae[Q]=P[Q]);var ce=arguments.length-2;if(ce===1)ae.children=$;else if(1<ce){for(var ht=Array(ce),ze=0;ze<ce;ze++)ht[ze]=arguments[ze+2];ae.children=ht}if(w&&w.defaultProps)for(Q in ce=w.defaultProps,ce)ae[Q]===void 0&&(ae[Q]=ce[Q]);return Y(w,Se,void 0,void 0,null,ae)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(w){return{$$typeof:d,render:w}},pe.isValidElement=re,pe.lazy=function(w){return{$$typeof:_,_payload:{_status:-1,_result:w},_init:X}},pe.memo=function(w,P){return{$$typeof:g,type:w,compare:P===void 0?null:P}},pe.startTransition=function(w){var P=E.T,$={};E.T=$;try{var Q=w(),ae=E.S;ae!==null&&ae($,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(_e,J)}catch(Se){J(Se)}finally{E.T=P}},pe.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},pe.use=function(w){return E.H.use(w)},pe.useActionState=function(w,P,$){return E.H.useActionState(w,P,$)},pe.useCallback=function(w,P){return E.H.useCallback(w,P)},pe.useContext=function(w){return E.H.useContext(w)},pe.useDebugValue=function(){},pe.useDeferredValue=function(w,P){return E.H.useDeferredValue(w,P)},pe.useEffect=function(w,P,$){var Q=E.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(w,P)},pe.useId=function(){return E.H.useId()},pe.useImperativeHandle=function(w,P,$){return E.H.useImperativeHandle(w,P,$)},pe.useInsertionEffect=function(w,P){return E.H.useInsertionEffect(w,P)},pe.useLayoutEffect=function(w,P){return E.H.useLayoutEffect(w,P)},pe.useMemo=function(w,P){return E.H.useMemo(w,P)},pe.useOptimistic=function(w,P){return E.H.useOptimistic(w,P)},pe.useReducer=function(w,P,$){return E.H.useReducer(w,P,$)},pe.useRef=function(w){return E.H.useRef(w)},pe.useState=function(w){return E.H.useState(w)},pe.useSyncExternalStore=function(w,P,$){return E.H.useSyncExternalStore(w,P,$)},pe.useTransition=function(){return E.H.useTransition()},pe.version="19.1.0",pe}var ug;function Ia(){return ug||(ug=1,Zc.exports=R2()),Zc.exports}var Xc={exports:{}},gt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var cg;function w2(){if(cg)return gt;cg=1;var n=Ia();function r(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(m,g,_){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:m,containerInfo:g,implementation:_}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,gt.createPortal=function(m,g){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return f(m,g,null,_)},gt.flushSync=function(m){var g=h.T,_=l.p;try{if(h.T=null,l.p=2,m)return m()}finally{h.T=g,l.p=_,l.d.f()}},gt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(m,g))},gt.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},gt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var _=g.as,S=d(_,g.crossOrigin),y=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;_==="style"?l.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:y,fetchPriority:x}):_==="script"&&l.d.X(m,{crossOrigin:S,integrity:y,fetchPriority:x,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var _=d(g.as,g.crossOrigin);l.d.M(m,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(m)},gt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var _=g.as,S=d(_,g.crossOrigin);l.d.L(m,_,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},gt.preloadModule=function(m,g){if(typeof m=="string")if(g){var _=d(g.as,g.crossOrigin);l.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(m)},gt.requestFormReset=function(m){l.d.r(m)},gt.unstable_batchedUpdates=function(m,g){return m(g)},gt.useFormState=function(m,g,_){return h.H.useFormState(m,g,_)},gt.useFormStatus=function(){return h.H.useHostTransitionStatus()},gt.version="19.1.0",gt}var fg;function C2(){if(fg)return Xc.exports;fg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Xc.exports=w2(),Xc.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var hg;function N2(){if(hg)return Pi;hg=1;var n=O2(),r=Ia(),i=C2();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(f(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,s=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return d(o),e;if(c===s)return d(o),t;c=c.sibling}throw Error(l(188))}if(a.return!==s.return)a=o,s=c;else{for(var p=!1,v=o.child;v;){if(v===a){p=!0,a=o,s=c;break}if(v===s){p=!0,s=o,a=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===a){p=!0,a=c,s=o;break}if(v===s){p=!0,s=c,a=o;break}v=v.sibling}if(!p)throw Error(l(189))}}if(a.alternate!==s)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,S=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function Ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case N:return"Profiler";case z:return"StrictMode";case E:return"Suspense";case U:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case O:return(e.displayName||"Context")+".Provider";case D:return(e._context.displayName||"Context")+".Consumer";case R:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:Ie(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Ie(e(t))}catch{}}return null}var Te=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},_e=[],w=-1;function P(e){return{current:e}}function $(e){0>w||(e.current=_e[w],_e[w]=null,w--)}function Q(e,t){w++,_e[w]=e.current,e.current=t}var ae=P(null),Se=P(null),ce=P(null),ht=P(null);function ze(e,t){switch(Q(ce,t),Q(Se,e),Q(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mp(t),e=Bp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ae),Q(ae,e)}function Ot(){$(ae),$(Se),$(ce)}function Sr(e){e.memoizedState!==null&&Q(ht,e);var t=ae.current,a=Bp(t,e.type);t!==a&&(Q(Se,e),Q(ae,a))}function Ya(e){Se.current===e&&($(ae),$(Se)),ht.current===e&&($(ht),ki._currentValue=J)}var dt=Object.prototype.hasOwnProperty,xn=n.unstable_scheduleCallback,Do=n.unstable_cancelCallback,Wv=n.unstable_shouldYield,e1=n.unstable_requestPaint,cn=n.unstable_now,t1=n.unstable_getCurrentPriorityLevel,hd=n.unstable_ImmediatePriority,dd=n.unstable_UserBlockingPriority,fs=n.unstable_NormalPriority,n1=n.unstable_LowPriority,md=n.unstable_IdlePriority,r1=n.log,a1=n.unstable_setDisableYieldValue,Za=null,Rt=null;function Zn(e){if(typeof r1=="function"&&a1(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Za,e)}catch{}}var wt=Math.clz32?Math.clz32:l1,i1=Math.log,s1=Math.LN2;function l1(e){return e>>>=0,e===0?32:31-(i1(e)/s1|0)|0}var hs=256,ds=4194304;function Tr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ms(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=s&134217727;return v!==0?(s=v&~c,s!==0?o=Tr(s):(p&=v,p!==0?o=Tr(p):a||(a=v&~e,a!==0&&(o=Tr(a))))):(v=s&~c,v!==0?o=Tr(v):p!==0?o=Tr(p):a||(a=s&~e,a!==0&&(o=Tr(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Xa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function o1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pd(){var e=hs;return hs<<=1,(hs&4194048)===0&&(hs=256),e}function gd(){var e=ds;return ds<<=1,(ds&62914560)===0&&(ds=4194304),e}function Mo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function u1(e,t,a,s,o,c){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,A=e.expirationTimes,j=e.hiddenUpdates;for(a=p&~a;0<a;){var q=31-wt(a),V=1<<q;v[q]=0,A[q]=-1;var L=j[q];if(L!==null)for(j[q]=null,q=0;q<L.length;q++){var k=L[q];k!==null&&(k.lane&=-536870913)}a&=~V}s!==0&&yd(e,s,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function yd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-wt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function _d(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-wt(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function Bo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function jo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function bd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Jp(e.type))}function c1(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Xn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Xn,vt="__reactProps$"+Xn,Wr="__reactContainer$"+Xn,Uo="__reactEvents$"+Xn,f1="__reactListeners$"+Xn,h1="__reactHandles$"+Xn,vd="__reactResources$"+Xn,Ka="__reactMarker$"+Xn;function Ho(e){delete e[mt],delete e[vt],delete e[Uo],delete e[f1],delete e[h1]}function ea(e){var t=e[mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Wr]||a[mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Lp(e);e!==null;){if(a=e[mt])return a;e=Lp(e)}return t}e=a,a=e.parentNode}return null}function ta(e){if(e=e[mt]||e[Wr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function $a(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function na(e){var t=e[vd];return t||(t=e[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ka]=!0}var Ed=new Set,Sd={};function xr(e,t){ra(e,t),ra(e+"Capture",t)}function ra(e,t){for(Sd[e]=t,e=0;e<t.length;e++)Ed.add(t[e])}var d1=RegExp("^[: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]*$"),Td={},xd={};function m1(e){return dt.call(xd,e)?!0:dt.call(Td,e)?!1:d1.test(e)?xd[e]=!0:(Td[e]=!0,!1)}function ps(e,t,a){if(m1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function gs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function An(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}var Lo,Ad;function aa(e){if(Lo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Lo=t&&t[1]||"",Ad=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Lo+e+Ad}var zo=!1;function ko(e,t){if(!e||zo)return"";zo=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(k){var L=k}Reflect.construct(e,[],V)}else{try{V.call()}catch(k){L=k}e.call(V.prototype)}}else{try{throw Error()}catch(k){L=k}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(k){if(k&&L&&typeof k.stack=="string")return[k.stack,L.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var A=p.split(`
44
- `),j=v.split(`
45
- `);for(o=s=0;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;for(;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;if(s===A.length||o===j.length)for(s=A.length-1,o=j.length-1;1<=s&&0<=o&&A[s]!==j[o];)o--;for(;1<=s&&0<=o;s--,o--)if(A[s]!==j[o]){if(s!==1||o!==1)do if(s--,o--,0>o||A[s]!==j[o]){var q=`
46
- `+A[s].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=s&&0<=o);break}}}finally{zo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?aa(a):""}function p1(e){switch(e.tag){case 26:case 27:case 5:return aa(e.type);case 16:return aa("Lazy");case 13:return aa("Suspense");case 19:return aa("SuspenseList");case 0:case 15:return ko(e.type,!1);case 11:return ko(e.type.render,!1);case 1:return ko(e.type,!0);case 31:return aa("Activity");default:return""}}function Od(e){try{var t="";do t+=p1(e),e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function g1(e){var t=Rd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){s=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ys(e){e._valueTracker||(e._valueTracker=g1(e))}function wd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=Rd(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function _s(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var y1=/[\n"\\]/g;function Vt(e){return e.replace(y1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Go(e,t,a,s,o,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?qo(e,p,Ft(t)):a!=null?qo(e,p,Ft(a)):s!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Ft(v):e.removeAttribute("name")}function Cd(e,t,a,s,o,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;a=a!=null?""+Ft(a):"",t=t!=null?""+Ft(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=v?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function qo(e,t,a){t==="number"&&_s(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ia(e,t,a,s){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Ft(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Nd(e,t,a){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ft(a):""}function Dd(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(l(92));if(Te(s)){if(1<s.length)throw Error(l(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=Ft(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s)}function sa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var _1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Md(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||_1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Bd(e,t,a){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&a[o]!==s&&Md(e,o,s)}else for(var c in t)t.hasOwnProperty(c)&&Md(e,c,t[c])}function Io(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var b1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),v1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bs(e){return v1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Fo=null;function Vo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var la=null,oa=null;function jd(e){var t=ta(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Go(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var o=s[vt]||null;if(!o)throw Error(l(90));Go(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&wd(s)}break e;case"textarea":Nd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ia(e,!!a.multiple,t,!1)}}}var Po=!1;function Ud(e,t,a){if(Po)return e(t,a);Po=!0;try{var s=e(t);return s}finally{if(Po=!1,(la!==null||oa!==null)&&(al(),la&&(t=la,e=oa,oa=la=null,jd(t),e)))for(t=0;t<e.length;t++)jd(e[t])}}function Ja(e,t){var a=e.stateNode;if(a===null)return null;var s=a[vt]||null;if(s===null)return null;a=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(l(231,t,typeof a));return a}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yo=!1;if(On)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){Yo=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{Yo=!1}var Qn=null,Zo=null,vs=null;function Hd(){if(vs)return vs;var e,t=Zo,a=t.length,s,o="value"in Qn?Qn.value:Qn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(s=1;s<=p&&t[a-s]===o[c-s];s++);return vs=o.slice(e,1<s?1-s:void 0)}function Es(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ss(){return!0}function Ld(){return!1}function Et(e){function t(a,s,o,c,p){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ss:Ld,this.isPropagationStopped=Ld,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ss)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ss)},persist:function(){},isPersistent:Ss}),t}var Ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ts=Et(Ar),ei=_({},Ar,{view:0,detail:0}),E1=Et(ei),Xo,Qo,ti,xs=_({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$o,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ti&&(ti&&e.type==="mousemove"?(Xo=e.screenX-ti.screenX,Qo=e.screenY-ti.screenY):Qo=Xo=0,ti=e),Xo)},movementY:function(e){return"movementY"in e?e.movementY:Qo}}),zd=Et(xs),S1=_({},xs,{dataTransfer:0}),T1=Et(S1),x1=_({},ei,{relatedTarget:0}),Ko=Et(x1),A1=_({},Ar,{animationName:0,elapsedTime:0,pseudoElement:0}),O1=Et(A1),R1=_({},Ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w1=Et(R1),C1=_({},Ar,{data:0}),kd=Et(C1),N1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D1={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"},M1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M1[e])?!!t[e]:!1}function $o(){return B1}var j1=_({},ei,{key:function(e){if(e.key){var t=N1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Es(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$o,charCode:function(e){return e.type==="keypress"?Es(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Es(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),U1=Et(j1),H1=_({},xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gd=Et(H1),L1=_({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$o}),z1=Et(L1),k1=_({},Ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),G1=Et(k1),q1=_({},xs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),I1=Et(q1),F1=_({},Ar,{newState:0,oldState:0}),V1=Et(F1),P1=[9,13,27,32],Jo=On&&"CompositionEvent"in window,ni=null;On&&"documentMode"in document&&(ni=document.documentMode);var Y1=On&&"TextEvent"in window&&!ni,qd=On&&(!Jo||ni&&8<ni&&11>=ni),Id=" ",Fd=!1;function Vd(e,t){switch(e){case"keyup":return P1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ua=!1;function Z1(e,t){switch(e){case"compositionend":return Pd(t);case"keypress":return t.which!==32?null:(Fd=!0,Id);case"textInput":return e=t.data,e===Id&&Fd?null:e;default:return null}}function X1(e,t){if(ua)return e==="compositionend"||!Jo&&Vd(e,t)?(e=Hd(),vs=Zo=Qn=null,ua=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qd&&t.locale!=="ko"?null:t.data;default:return null}}var Q1={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q1[e.type]:t==="textarea"}function Zd(e,t,a,s){la?oa?oa.push(s):oa=[s]:la=s,t=cl(t,"onChange"),0<t.length&&(a=new Ts("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ri=null,ai=null;function K1(e){Rp(e,0)}function As(e){var t=$a(e);if(wd(t))return e}function Xd(e,t){if(e==="change")return t}var Qd=!1;if(On){var Wo;if(On){var eu="oninput"in document;if(!eu){var Kd=document.createElement("div");Kd.setAttribute("oninput","return;"),eu=typeof Kd.oninput=="function"}Wo=eu}else Wo=!1;Qd=Wo&&(!document.documentMode||9<document.documentMode)}function $d(){ri&&(ri.detachEvent("onpropertychange",Jd),ai=ri=null)}function Jd(e){if(e.propertyName==="value"&&As(ai)){var t=[];Zd(t,ai,e,Vo(e)),Ud(K1,t)}}function $1(e,t,a){e==="focusin"?($d(),ri=t,ai=a,ri.attachEvent("onpropertychange",Jd)):e==="focusout"&&$d()}function J1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return As(ai)}function W1(e,t){if(e==="click")return As(t)}function eE(e,t){if(e==="input"||e==="change")return As(t)}function tE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:tE;function ii(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!dt.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function Wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function em(e,t){var a=Wd(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Wd(a)}}function tm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_s(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=_s(e.document)}return t}function tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var nE=On&&"documentMode"in document&&11>=document.documentMode,ca=null,nu=null,si=null,ru=!1;function rm(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ru||ca==null||ca!==_s(s)||(s=ca,"selectionStart"in s&&tu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),si&&ii(si,s)||(si=s,s=cl(nu,"onSelect"),0<s.length&&(t=new Ts("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ca)))}function Or(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var fa={animationend:Or("Animation","AnimationEnd"),animationiteration:Or("Animation","AnimationIteration"),animationstart:Or("Animation","AnimationStart"),transitionrun:Or("Transition","TransitionRun"),transitionstart:Or("Transition","TransitionStart"),transitioncancel:Or("Transition","TransitionCancel"),transitionend:Or("Transition","TransitionEnd")},au={},am={};On&&(am=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function Rr(e){if(au[e])return au[e];if(!fa[e])return e;var t=fa[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in am)return au[e]=t[a];return e}var im=Rr("animationend"),sm=Rr("animationiteration"),lm=Rr("animationstart"),rE=Rr("transitionrun"),aE=Rr("transitionstart"),iE=Rr("transitioncancel"),om=Rr("transitionend"),um=new Map,iu="abort auxClick beforeToggle 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(" ");iu.push("scrollEnd");function tn(e,t){um.set(e,t),xr(t,[e])}var cm=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var a=cm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Od(t)},cm.set(e,t),t)}return{value:e,source:t,stack:Od(t)}}var Yt=[],ha=0,su=0;function Os(){for(var e=ha,t=su=ha=0;t<e;){var a=Yt[t];Yt[t++]=null;var s=Yt[t];Yt[t++]=null;var o=Yt[t];Yt[t++]=null;var c=Yt[t];if(Yt[t++]=null,s!==null&&o!==null){var p=s.pending;p===null?o.next=o:(o.next=p.next,p.next=o),s.pending=o}c!==0&&fm(a,o,c)}}function Rs(e,t,a,s){Yt[ha++]=e,Yt[ha++]=t,Yt[ha++]=a,Yt[ha++]=s,su|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function lu(e,t,a,s){return Rs(e,t,a,s),ws(e)}function da(e,t){return Rs(e,null,null,t),ws(e)}function fm(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-wt(a),e=c.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),c):null}function ws(e){if(50<Di)throw Di=0,dc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function sE(e,t,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,a,s){return new sE(e,t,a,s)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,t){var a=e.alternate;return a===null?(a=Nt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function hm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Cs(e,t,a,s,o,c){var p=0;if(s=e,typeof e=="function")ou(e)&&(p=1);else if(typeof e=="string")p=o2(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Nt(31,a,t,o),e.elementType=re,e.lanes=c,e;case T:return wr(a.children,o,c,t);case z:p=8,o|=24;break;case N:return e=Nt(12,a,t,o|2),e.elementType=N,e.lanes=c,e;case E:return e=Nt(13,a,t,o),e.elementType=E,e.lanes=c,e;case U:return e=Nt(19,a,t,o),e.elementType=U,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:case O:p=10;break e;case D:p=9;break e;case R:p=11;break e;case Y:p=14;break e;case K:p=16,s=null;break e}p=29,a=Error(l(130,e===null?"null":typeof e,"")),s=null}return t=Nt(p,a,t,o),t.elementType=e,t.type=s,t.lanes=c,t}function wr(e,t,a,s){return e=Nt(7,e,s,t),e.lanes=a,e}function uu(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function cu(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pa=[],ga=0,Ns=null,Ds=0,Zt=[],Xt=0,Cr=null,wn=1,Cn="";function Nr(e,t){pa[ga++]=Ds,pa[ga++]=Ns,Ns=e,Ds=t}function dm(e,t,a){Zt[Xt++]=wn,Zt[Xt++]=Cn,Zt[Xt++]=Cr,Cr=e;var s=wn;e=Cn;var o=32-wt(s)-1;s&=~(1<<o),a+=1;var c=32-wt(t)+o;if(30<c){var p=o-o%5;c=(s&(1<<p)-1).toString(32),s>>=p,o-=p,wn=1<<32-wt(t)+o|a<<o|s,Cn=c+e}else wn=1<<c|a<<o|s,Cn=e}function fu(e){e.return!==null&&(Nr(e,1),dm(e,1,0))}function hu(e){for(;e===Ns;)Ns=pa[--ga],pa[ga]=null,Ds=pa[--ga],pa[ga]=null;for(;e===Cr;)Cr=Zt[--Xt],Zt[Xt]=null,Cn=Zt[--Xt],Zt[Xt]=null,wn=Zt[--Xt],Zt[Xt]=null}var yt=null,Pe=null,Ne=!1,Dr=null,fn=!1,du=Error(l(519));function Mr(e){var t=Error(l(418,""));throw ui(Pt(t,e)),du}function mm(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[mt]=e,t[vt]=s,a){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(a=0;a<Bi.length;a++)ve(Bi[a],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),Cd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),ys(t);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Dd(t,s.value,s.defaultValue,s.children),ys(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||Dp(t.textContent,a)?(s.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),s.onScroll!=null&&ve("scroll",t),s.onScrollEnd!=null&&ve("scrollend",t),s.onClick!=null&&(t.onclick=fl),t=!0):t=!1,t||Mr(e)}function pm(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:yt=yt.return}}function li(e){if(e!==yt)return!1;if(!Ne)return pm(e),Ne=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Cc(e.type,e.memoizedProps)),a=!a),a&&Pe&&Mr(e),pm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Pe=rn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Pe=null}}else t===27?(t=Pe,fr(e.type)?(e=Bc,Bc=null,Pe=e):Pe=t):Pe=yt?rn(e.stateNode.nextSibling):null;return!0}function oi(){Pe=yt=null,Ne=!1}function gm(){var e=Dr;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Dr=null),e}function ui(e){Dr===null?Dr=[e]:Dr.push(e)}var mu=P(null),Br=null,Nn=null;function Kn(e,t,a){Q(mu,t._currentValue),t._currentValue=a}function Dn(e){e._currentValue=mu.current,$(mu)}function pu(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function gu(e,t,a,s){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var A=0;A<t.length;A++)if(v.context===t[A]){c.lanes|=a,v=c.alternate,v!==null&&(v.lanes|=a),pu(c.return,a,e),s||(p=null);break e}c=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(l(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),pu(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function ci(e,t,a,s){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(l(387));if(p=p.memoizedProps,p!==null){var v=o.type;Ct(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===ht.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ki):e=[ki])}o=o.return}e!==null&&gu(t,e,a,s),t.flags|=262144}function Ms(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jr(e){Br=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return ym(Br,e)}function Bs(e,t){return Br===null&&jr(e),ym(e,t)}function ym(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Nn===null){if(e===null)throw Error(l(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return a}var lE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},oE=n.unstable_scheduleCallback,uE=n.unstable_NormalPriority,et={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yu(){return{controller:new lE,data:new Map,refCount:0}}function fi(e){e.refCount--,e.refCount===0&&oE(uE,function(){e.controller.abort()})}var hi=null,_u=0,ya=0,_a=null;function cE(e,t){if(hi===null){var a=hi=[];_u=0,ya=vc(),_a={status:"pending",value:void 0,then:function(s){a.push(s)}}}return _u++,t.then(_m,_m),t}function _m(){if(--_u===0&&hi!==null){_a!==null&&(_a.status="fulfilled");var e=hi;hi=null,ya=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fE(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var bm=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&cE(e,t),bm!==null&&bm(e,t)};var Ur=P(null);function bu(){var e=Ur.current;return e!==null?e:ke.pooledCache}function js(e,t){t===null?Q(Ur,Ur.current):Q(Ur,t.pool)}function vm(){var e=bu();return e===null?null:{parent:et._currentValue,pool:e}}var di=Error(l(460)),Em=Error(l(474)),Us=Error(l(542)),vu={then:function(){}};function Sm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hs(){}function Tm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Hs,Hs),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e;default:if(typeof t.status=="string")t.then(Hs,Hs);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e}throw mi=t,di}}var mi=null;function xm(){if(mi===null)throw Error(l(459));var e=mi;return mi=null,e}function Am(e){if(e===di||e===Us)throw Error(l(483))}var $n=!1;function Eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Su(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Me&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=ws(e),fm(e,null,a),t}return Rs(e,s,t,a),ws(e)}function pi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,_d(e,a)}}function Tu(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var xu=!1;function gi(){if(xu){var e=_a;if(e!==null)throw e}}function yi(e,t,a,s){xu=!1;var o=e.updateQueue;$n=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var A=v,j=A.next;A.next=null,p===null?c=j:p.next=j,p=A;var q=e.alternate;q!==null&&(q=q.updateQueue,v=q.lastBaseUpdate,v!==p&&(v===null?q.firstBaseUpdate=j:v.next=j,q.lastBaseUpdate=A))}if(c!==null){var V=o.baseState;p=0,q=j=A=null,v=c;do{var L=v.lane&-536870913,k=L!==v.lane;if(k?(Oe&L)===L:(s&L)===L){L!==0&&L===ya&&(xu=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var fe=e,se=v;L=t;var He=a;switch(se.tag){case 1:if(fe=se.payload,typeof fe=="function"){V=fe.call(He,V,L);break e}V=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=se.payload,L=typeof fe=="function"?fe.call(He,V,L):fe,L==null)break e;V=_({},V,L);break e;case 2:$n=!0}}L=v.callback,L!==null&&(e.flags|=64,k&&(e.flags|=8192),k=o.callbacks,k===null?o.callbacks=[L]:k.push(L))}else k={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(j=q=k,A=V):q=q.next=k,p|=L;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;k=v,v=k.next,k.next=null,o.lastBaseUpdate=k,o.shared.pending=null}}while(!0);q===null&&(A=V),o.baseState=A,o.firstBaseUpdate=j,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),lr|=p,e.lanes=p,e.memoizedState=V}}function Om(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Rm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Om(a[e],t)}var ba=P(null),Ls=P(0);function wm(e,t){e=zn,Q(Ls,e),Q(ba,t),zn=e|t.baseLanes}function Au(){Q(Ls,zn),Q(ba,ba.current)}function Ou(){zn=Ls.current,$(ba),$(Ls)}var er=0,ge=null,je=null,Qe=null,zs=!1,va=!1,Hr=!1,ks=0,_i=0,Ea=null,hE=0;function Ze(){throw Error(l(321))}function Ru(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function wu(e,t,a,s,o,c){return er=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?f0:h0,Hr=!1,c=a(s,o),Hr=!1,va&&(c=Nm(t,a,s,o)),Cm(e),c}function Cm(e){G.H=Ps;var t=je!==null&&je.next!==null;if(er=0,Qe=je=ge=null,zs=!1,_i=0,Ea=null,t)throw Error(l(300));e===null||rt||(e=e.dependencies,e!==null&&Ms(e)&&(rt=!0))}function Nm(e,t,a,s){ge=e;var o=0;do{if(va&&(Ea=null),_i=0,va=!1,25<=o)throw Error(l(301));if(o+=1,Qe=je=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}G.H=bE,c=t(a,s)}while(va);return c}function dE(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?bi(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ge.flags|=1024),t}function Cu(){var e=ks!==0;return ks=0,e}function Nu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Du(e){if(zs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zs=!1}er=0,Qe=je=ge=null,va=!1,_i=ks=0,Ea=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ke(){if(je===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Qe===null?ge.memoizedState:Qe.next;if(t!==null)Qe=t,je=e;else{if(e===null)throw ge.alternate===null?Error(l(467)):Error(l(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bi(e){var t=_i;return _i+=1,Ea===null&&(Ea=[]),e=Tm(Ea,e,t),t=ge,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?f0:h0),e}function Gs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bi(e);if(e.$$typeof===O)return pt(e)}throw Error(l(438,String(e)))}function Bu(e){var t=null,a=ge.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=ge.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Mu(),ge.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=ee;return t.index++,a}function Mn(e,t){return typeof t=="function"?t(e):t}function qs(e){var t=Ke();return ju(t,je,e)}function ju(e,t,a){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=a;var o=e.baseQueue,c=s.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,s.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=p=null,A=null,j=t,q=!1;do{var V=j.lane&-536870913;if(V!==j.lane?(Oe&V)===V:(er&V)===V){var L=j.revertLane;if(L===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),V===ya&&(q=!0);else if((er&L)===L){j=j.next,L===ya&&(q=!0);continue}else V={lane:0,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(v=A=V,p=c):A=A.next=V,ge.lanes|=L,lr|=L;V=j.action,Hr&&a(c,V),c=j.hasEagerState?j.eagerState:a(c,V)}else L={lane:V,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(v=A=L,p=c):A=A.next=L,ge.lanes|=V,lr|=V;j=j.next}while(j!==null&&j!==t);if(A===null?p=c:A.next=v,!Ct(c,e.memoizedState)&&(rt=!0,q&&(a=_a,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=A,s.lastRenderedState=c}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Uu(e){var t=Ke(),a=t.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=e;var s=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Ct(c,t.memoizedState)||(rt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,s]}function Dm(e,t,a){var s=ge,o=Ke(),c=Ne;if(c){if(a===void 0)throw Error(l(407));a=a()}else a=t();var p=!Ct((je||o).memoizedState,a);p&&(o.memoizedState=a,rt=!0),o=o.queue;var v=jm.bind(null,s,o,e);if(vi(2048,8,v,[e]),o.getSnapshot!==t||p||Qe!==null&&Qe.memoizedState.tag&1){if(s.flags|=2048,Sa(9,Is(),Bm.bind(null,s,o,a,t),null),ke===null)throw Error(l(349));c||(er&124)!==0||Mm(s,t,a)}return a}function Mm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Mu(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Bm(e,t,a,s){t.value=a,t.getSnapshot=s,Um(t)&&Hm(e)}function jm(e,t,a){return a(function(){Um(t)&&Hm(e)})}function Um(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Hm(e){var t=da(e,2);t!==null&&Ut(t,e,2)}function Hu(e){var t=St();if(typeof e=="function"){var a=e;if(e=a(),Hr){Zn(!0);try{a()}finally{Zn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function Lm(e,t,a,s){return e.baseState=a,ju(e,je,typeof s=="function"?s:Mn)}function mE(e,t,a,s,o){if(Vs(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};G.T!==null?a(!0):c.isTransition=!1,s(c),a=t.pending,a===null?(c.next=t.pending=c,zm(t,c)):(c.next=a.next,t.pending=a.next=c)}}function zm(e,t){var a=t.action,s=t.payload,o=e.state;if(t.isTransition){var c=G.T,p={};G.T=p;try{var v=a(o,s),A=G.S;A!==null&&A(p,v),km(e,t,v)}catch(j){Lu(e,t,j)}finally{G.T=c}}else try{c=a(o,s),km(e,t,c)}catch(j){Lu(e,t,j)}}function km(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Gm(e,t,s)},function(s){return Lu(e,t,s)}):Gm(e,t,a)}function Gm(e,t,a){t.status="fulfilled",t.value=a,qm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,zm(e,a)))}function Lu(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,qm(t),t=t.next;while(t!==s)}e.action=null}function qm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Im(e,t){return t}function Fm(e,t){if(Ne){var a=ke.formState;if(a!==null){e:{var s=ge;if(Ne){if(Pe){t:{for(var o=Pe,c=fn;o.nodeType!==8;){if(!c){o=null;break t}if(o=rn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Pe=rn(o.nextSibling),s=o.data==="F!";break e}}Mr(s)}s=!1}s&&(t=a[0])}}return a=St(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Im,lastRenderedState:t},a.queue=s,a=o0.bind(null,ge,s),s.dispatch=a,s=Hu(!1),c=Iu.bind(null,ge,!1,s.queue),s=St(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=mE.bind(null,ge,o,c,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function Vm(e){var t=Ke();return Pm(t,je,e)}function Pm(e,t,a){if(t=ju(e,t,Im)[0],e=qs(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=bi(t)}catch(p){throw p===di?Us:p}else s=t;t=Ke();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Sa(9,Is(),pE.bind(null,o,a),null)),[s,c,e]}function pE(e,t){e.action=t}function Ym(e){var t=Ke(),a=je;if(a!==null)return Pm(t,a,e);Ke(),t=t.memoizedState,a=Ke();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Sa(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Mu(),ge.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function Is(){return{destroy:void 0,resource:void 0}}function Zm(){return Ke().memoizedState}function Fs(e,t,a,s){var o=St();s=s===void 0?null:s,ge.flags|=e,o.memoizedState=Sa(1|t,Is(),a,s)}function vi(e,t,a,s){var o=Ke();s=s===void 0?null:s;var c=o.memoizedState.inst;je!==null&&s!==null&&Ru(s,je.memoizedState.deps)?o.memoizedState=Sa(t,c,a,s):(ge.flags|=e,o.memoizedState=Sa(1|t,c,a,s))}function Xm(e,t){Fs(8390656,8,e,t)}function Qm(e,t){vi(2048,8,e,t)}function Km(e,t){return vi(4,2,e,t)}function $m(e,t){return vi(4,4,e,t)}function Jm(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wm(e,t,a){a=a!=null?a.concat([e]):null,vi(4,4,Jm.bind(null,t,e),a)}function zu(){}function e0(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&Ru(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function t0(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&Ru(t,s[1]))return s[0];if(s=e(),Hr){Zn(!0);try{e()}finally{Zn(!1)}}return a.memoizedState=[s,t],s}function ku(e,t,a){return a===void 0||(er&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=ap(),ge.lanes|=e,lr|=e,a)}function n0(e,t,a,s){return Ct(a,t)?a:ba.current!==null?(e=ku(e,a,s),Ct(e,t)||(rt=!0),e):(er&42)===0?(rt=!0,e.memoizedState=a):(e=ap(),ge.lanes|=e,lr|=e,t)}function r0(e,t,a,s,o){var c=X.p;X.p=c!==0&&8>c?c:8;var p=G.T,v={};G.T=v,Iu(e,!1,t,a);try{var A=o(),j=G.S;if(j!==null&&j(v,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=fE(A,s);Ei(e,t,q,jt(e))}else Ei(e,t,s,jt(e))}catch(V){Ei(e,t,{then:function(){},status:"rejected",reason:V},jt())}finally{X.p=c,G.T=p}}function gE(){}function Gu(e,t,a,s){if(e.tag!==5)throw Error(l(476));var o=a0(e).queue;r0(e,o,t,J,a===null?gE:function(){return i0(e),a(s)})}function a0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function i0(e){var t=a0(e).next.queue;Ei(e,t,{},jt())}function qu(){return pt(ki)}function s0(){return Ke().memoizedState}function l0(){return Ke().memoizedState}function yE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=Jn(a);var s=Wn(t,e,a);s!==null&&(Ut(s,t,a),pi(s,t,a)),t={cache:yu()},e.payload=t;return}t=t.return}}function _E(e,t,a){var s=jt();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Vs(e)?u0(t,a):(a=lu(e,t,a,s),a!==null&&(Ut(a,e,s),c0(a,t,s)))}function o0(e,t,a){var s=jt();Ei(e,t,a,s)}function Ei(e,t,a,s){var o={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Vs(e))u0(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,a);if(o.hasEagerState=!0,o.eagerState=v,Ct(v,p))return Rs(e,t,o,0),ke===null&&Os(),!1}catch{}finally{}if(a=lu(e,t,o,s),a!==null)return Ut(a,e,s),c0(a,t,s),!0}return!1}function Iu(e,t,a,s){if(s={lane:2,revertLane:vc(),action:s,hasEagerState:!1,eagerState:null,next:null},Vs(e)){if(t)throw Error(l(479))}else t=lu(e,a,s,2),t!==null&&Ut(t,e,2)}function Vs(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function u0(e,t){va=zs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function c0(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,_d(e,a)}}var Ps={readContext:pt,use:Gs,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},f0={readContext:pt,use:Gs,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Xm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Fs(4194308,4,Jm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var a=St();t=t===void 0?null:t;var s=e();if(Hr){Zn(!0);try{e()}finally{Zn(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=St();if(a!==void 0){var o=a(t);if(Hr){Zn(!0);try{a(t)}finally{Zn(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=_E.bind(null,ge,e),[s.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=Hu(e);var t=e.queue,a=o0.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:zu,useDeferredValue:function(e,t){var a=St();return ku(a,e,t)},useTransition:function(){var e=Hu(!1);return e=r0.bind(null,ge,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ge,o=St();if(Ne){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),ke===null)throw Error(l(349));(Oe&124)!==0||Mm(s,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Xm(jm.bind(null,s,c,e),[e]),s.flags|=2048,Sa(9,Is(),Bm.bind(null,s,c,a,t),null),a},useId:function(){var e=St(),t=ke.identifierPrefix;if(Ne){var a=Cn,s=wn;a=(s&~(1<<32-wt(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=ks++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=hE++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:qu,useFormState:Fm,useActionState:Fm,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Iu.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Bu,useCacheRefresh:function(){return St().memoizedState=yE.bind(null,ge)}},h0={readContext:pt,use:Gs,useCallback:e0,useContext:pt,useEffect:Qm,useImperativeHandle:Wm,useInsertionEffect:Km,useLayoutEffect:$m,useMemo:t0,useReducer:qs,useRef:Zm,useState:function(){return qs(Mn)},useDebugValue:zu,useDeferredValue:function(e,t){var a=Ke();return n0(a,je.memoizedState,e,t)},useTransition:function(){var e=qs(Mn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:Dm,useId:s0,useHostTransitionStatus:qu,useFormState:Vm,useActionState:Vm,useOptimistic:function(e,t){var a=Ke();return Lm(a,je,e,t)},useMemoCache:Bu,useCacheRefresh:l0},bE={readContext:pt,use:Gs,useCallback:e0,useContext:pt,useEffect:Qm,useImperativeHandle:Wm,useInsertionEffect:Km,useLayoutEffect:$m,useMemo:t0,useReducer:Uu,useRef:Zm,useState:function(){return Uu(Mn)},useDebugValue:zu,useDeferredValue:function(e,t){var a=Ke();return je===null?ku(a,e,t):n0(a,je.memoizedState,e,t)},useTransition:function(){var e=Uu(Mn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:Dm,useId:s0,useHostTransitionStatus:qu,useFormState:Ym,useActionState:Ym,useOptimistic:function(e,t){var a=Ke();return je!==null?Lm(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Bu,useCacheRefresh:l0},Ta=null,Si=0;function Ys(e){var t=Si;return Si+=1,Ta===null&&(Ta=[]),Tm(Ta,e,t)}function Ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zs(e,t){throw t.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function d0(e){var t=e._init;return t(e._payload)}function m0(e){function t(M,C){if(e){var B=M.deletions;B===null?(M.deletions=[C],M.flags|=16):B.push(C)}}function a(M,C){if(!e)return null;for(;C!==null;)t(M,C),C=C.sibling;return null}function s(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function o(M,C){return M=Rn(M,C),M.index=0,M.sibling=null,M}function c(M,C,B){return M.index=B,e?(B=M.alternate,B!==null?(B=B.index,B<C?(M.flags|=67108866,C):B):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,C,B,F){return C===null||C.tag!==6?(C=uu(B,M.mode,F),C.return=M,C):(C=o(C,B),C.return=M,C)}function A(M,C,B,F){var W=B.type;return W===T?q(M,C,B.props.children,F,B.key):C!==null&&(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&d0(W)===C.type)?(C=o(C,B.props),Ti(C,B),C.return=M,C):(C=Cs(B.type,B.key,B.props,null,M.mode,F),Ti(C,B),C.return=M,C)}function j(M,C,B,F){return C===null||C.tag!==4||C.stateNode.containerInfo!==B.containerInfo||C.stateNode.implementation!==B.implementation?(C=cu(B,M.mode,F),C.return=M,C):(C=o(C,B.children||[]),C.return=M,C)}function q(M,C,B,F,W){return C===null||C.tag!==7?(C=wr(B,M.mode,F,W),C.return=M,C):(C=o(C,B),C.return=M,C)}function V(M,C,B){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=uu(""+C,M.mode,B),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case y:return B=Cs(C.type,C.key,C.props,null,M.mode,B),Ti(B,C),B.return=M,B;case x:return C=cu(C,M.mode,B),C.return=M,C;case K:var F=C._init;return C=F(C._payload),V(M,C,B)}if(Te(C)||ie(C))return C=wr(C,M.mode,B,null),C.return=M,C;if(typeof C.then=="function")return V(M,Ys(C),B);if(C.$$typeof===O)return V(M,Bs(M,C),B);Zs(M,C)}return null}function L(M,C,B,F){var W=C!==null?C.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return W!==null?null:v(M,C,""+B,F);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case y:return B.key===W?A(M,C,B,F):null;case x:return B.key===W?j(M,C,B,F):null;case K:return W=B._init,B=W(B._payload),L(M,C,B,F)}if(Te(B)||ie(B))return W!==null?null:q(M,C,B,F,null);if(typeof B.then=="function")return L(M,C,Ys(B),F);if(B.$$typeof===O)return L(M,C,Bs(M,B),F);Zs(M,B)}return null}function k(M,C,B,F,W){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return M=M.get(B)||null,v(C,M,""+F,W);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case y:return M=M.get(F.key===null?B:F.key)||null,A(C,M,F,W);case x:return M=M.get(F.key===null?B:F.key)||null,j(C,M,F,W);case K:var ye=F._init;return F=ye(F._payload),k(M,C,B,F,W)}if(Te(F)||ie(F))return M=M.get(B)||null,q(C,M,F,W,null);if(typeof F.then=="function")return k(M,C,B,Ys(F),W);if(F.$$typeof===O)return k(M,C,B,Bs(C,F),W);Zs(C,F)}return null}function fe(M,C,B,F){for(var W=null,ye=null,ne=C,oe=C=0,it=null;ne!==null&&oe<B.length;oe++){ne.index>oe?(it=ne,ne=null):it=ne.sibling;var we=L(M,ne,B[oe],F);if(we===null){ne===null&&(ne=it);break}e&&ne&&we.alternate===null&&t(M,ne),C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we,ne=it}if(oe===B.length)return a(M,ne),Ne&&Nr(M,oe),W;if(ne===null){for(;oe<B.length;oe++)ne=V(M,B[oe],F),ne!==null&&(C=c(ne,C,oe),ye===null?W=ne:ye.sibling=ne,ye=ne);return Ne&&Nr(M,oe),W}for(ne=s(ne);oe<B.length;oe++)it=k(ne,M,oe,B[oe],F),it!==null&&(e&&it.alternate!==null&&ne.delete(it.key===null?oe:it.key),C=c(it,C,oe),ye===null?W=it:ye.sibling=it,ye=it);return e&&ne.forEach(function(gr){return t(M,gr)}),Ne&&Nr(M,oe),W}function se(M,C,B,F){if(B==null)throw Error(l(151));for(var W=null,ye=null,ne=C,oe=C=0,it=null,we=B.next();ne!==null&&!we.done;oe++,we=B.next()){ne.index>oe?(it=ne,ne=null):it=ne.sibling;var gr=L(M,ne,we.value,F);if(gr===null){ne===null&&(ne=it);break}e&&ne&&gr.alternate===null&&t(M,ne),C=c(gr,C,oe),ye===null?W=gr:ye.sibling=gr,ye=gr,ne=it}if(we.done)return a(M,ne),Ne&&Nr(M,oe),W;if(ne===null){for(;!we.done;oe++,we=B.next())we=V(M,we.value,F),we!==null&&(C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we);return Ne&&Nr(M,oe),W}for(ne=s(ne);!we.done;oe++,we=B.next())we=k(ne,M,oe,we.value,F),we!==null&&(e&&we.alternate!==null&&ne.delete(we.key===null?oe:we.key),C=c(we,C,oe),ye===null?W=we:ye.sibling=we,ye=we);return e&&ne.forEach(function(v2){return t(M,v2)}),Ne&&Nr(M,oe),W}function He(M,C,B,F){if(typeof B=="object"&&B!==null&&B.type===T&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case y:e:{for(var W=B.key;C!==null;){if(C.key===W){if(W=B.type,W===T){if(C.tag===7){a(M,C.sibling),F=o(C,B.props.children),F.return=M,M=F;break e}}else if(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&d0(W)===C.type){a(M,C.sibling),F=o(C,B.props),Ti(F,B),F.return=M,M=F;break e}a(M,C);break}else t(M,C);C=C.sibling}B.type===T?(F=wr(B.props.children,M.mode,F,B.key),F.return=M,M=F):(F=Cs(B.type,B.key,B.props,null,M.mode,F),Ti(F,B),F.return=M,M=F)}return p(M);case x:e:{for(W=B.key;C!==null;){if(C.key===W)if(C.tag===4&&C.stateNode.containerInfo===B.containerInfo&&C.stateNode.implementation===B.implementation){a(M,C.sibling),F=o(C,B.children||[]),F.return=M,M=F;break e}else{a(M,C);break}else t(M,C);C=C.sibling}F=cu(B,M.mode,F),F.return=M,M=F}return p(M);case K:return W=B._init,B=W(B._payload),He(M,C,B,F)}if(Te(B))return fe(M,C,B,F);if(ie(B)){if(W=ie(B),typeof W!="function")throw Error(l(150));return B=W.call(B),se(M,C,B,F)}if(typeof B.then=="function")return He(M,C,Ys(B),F);if(B.$$typeof===O)return He(M,C,Bs(M,B),F);Zs(M,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,C!==null&&C.tag===6?(a(M,C.sibling),F=o(C,B),F.return=M,M=F):(a(M,C),F=uu(B,M.mode,F),F.return=M,M=F),p(M)):a(M,C)}return function(M,C,B,F){try{Si=0;var W=He(M,C,B,F);return Ta=null,W}catch(ne){if(ne===di||ne===Us)throw ne;var ye=Nt(29,ne,null,M.mode);return ye.lanes=F,ye.return=M,ye}finally{}}}var xa=m0(!0),p0=m0(!1),Qt=P(null),hn=null;function tr(e){var t=e.alternate;Q(tt,tt.current&1),Q(Qt,e),hn===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(hn=e)}function g0(e){if(e.tag===22){if(Q(tt,tt.current),Q(Qt,e),hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(hn=e)}}else nr()}function nr(){Q(tt,tt.current),Q(Qt,Qt.current)}function Bn(e){$(Qt),hn===e&&(hn=null),$(tt)}var tt=P(0);function Xs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Mc(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Fu(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:_({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Vu={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=jt(),o=Jn(s);o.payload=t,a!=null&&(o.callback=a),t=Wn(e,o,s),t!==null&&(Ut(t,e,s),pi(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=jt(),o=Jn(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Wn(e,o,s),t!==null&&(Ut(t,e,s),pi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),s=Jn(a);s.tag=2,t!=null&&(s.callback=t),t=Wn(e,s,a),t!==null&&(Ut(t,e,a),pi(t,e,a))}};function y0(e,t,a,s,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,p):t.prototype&&t.prototype.isPureReactComponent?!ii(a,s)||!ii(o,c):!0}function _0(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&Vu.enqueueReplaceState(t,t.state,null)}function Lr(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=_({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Qs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function b0(e){Qs(e)}function v0(e){console.error(e)}function E0(e){Qs(e)}function Ks(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function S0(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Pu(e,t,a){return a=Jn(a),a.tag=3,a.payload={element:null},a.callback=function(){Ks(e,t)},a}function T0(e){return e=Jn(e),e.tag=3,e}function x0(e,t,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=s.value;e.payload=function(){return o(c)},e.callback=function(){S0(t,a,s)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){S0(t,a,s),typeof o!="function"&&(or===null?or=new Set([this]):or.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})})}function vE(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&ci(t,a,o,!0),a=Qt.current,a!==null){switch(a.tag){case 13:return hn===null?pc():a.alternate===null&&Ye===0&&(Ye=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===vu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),yc(e,s,o)),!1;case 22:return a.flags|=65536,s===vu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),yc(e,s,o)),!1}throw Error(l(435,a.tag))}return yc(e,s,o),pc(),!1}if(Ne)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==du&&(e=Error(l(422),{cause:s}),ui(Pt(e,a)))):(s!==du&&(t=Error(l(423),{cause:s}),ui(Pt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Pt(s,a),o=Pu(e.stateNode,s,o),Tu(e,o),Ye!==4&&(Ye=2)),!1;var c=Error(l(520),{cause:s});if(c=Pt(c,a),Ni===null?Ni=[c]:Ni.push(c),Ye!==4&&(Ye=2),t===null)return!0;s=Pt(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Pu(a.stateNode,s,e),Tu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(or===null||!or.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=T0(o),x0(o,e,a,s),Tu(a,o),!1}a=a.return}while(a!==null);return!1}var A0=Error(l(461)),rt=!1;function st(e,t,a,s){t.child=e===null?p0(t,null,a,s):xa(t,e.child,a,s)}function O0(e,t,a,s,o){a=a.render;var c=t.ref;if("ref"in s){var p={};for(var v in s)v!=="ref"&&(p[v]=s[v])}else p=s;return jr(t),s=wu(e,t,a,p,c,o),v=Cu(),e!==null&&!rt?(Nu(e,t,o),jn(e,t,o)):(Ne&&v&&fu(t),t.flags|=1,st(e,t,s,o),t.child)}function R0(e,t,a,s,o){if(e===null){var c=a.type;return typeof c=="function"&&!ou(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,w0(e,t,c,s,o)):(e=Cs(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Wu(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:ii,a(p,s)&&e.ref===t.ref)return jn(e,t,o)}return t.flags|=1,e=Rn(c,s),e.ref=t.ref,e.return=t,t.child=e}function w0(e,t,a,s,o){if(e!==null){var c=e.memoizedProps;if(ii(c,s)&&e.ref===t.ref)if(rt=!1,t.pendingProps=s=c,Wu(e,o))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,jn(e,t,o)}return Yu(e,t,a,s,o)}function C0(e,t,a){var s=t.pendingProps,o=s.children,c=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=c!==null?c.baseLanes|a:a,e!==null){for(o=t.child=e.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;t.childLanes=c&~s}else t.childLanes=0,t.child=null;return N0(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&js(t,c!==null?c.cachePool:null),c!==null?wm(t,c):Au(),g0(t);else return t.lanes=t.childLanes=536870912,N0(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(js(t,c.cachePool),wm(t,c),nr(),t.memoizedState=null):(e!==null&&js(t,null),Au(),nr());return st(e,t,o,a),t.child}function N0(e,t,a,s){var o=bu();return o=o===null?null:{parent:et._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&js(t,null),Au(),g0(t),e!==null&&ci(e,t,s,!0),null}function $s(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Yu(e,t,a,s,o){return jr(t),a=wu(e,t,a,s,void 0,o),s=Cu(),e!==null&&!rt?(Nu(e,t,o),jn(e,t,o)):(Ne&&s&&fu(t),t.flags|=1,st(e,t,a,o),t.child)}function D0(e,t,a,s,o,c){return jr(t),t.updateQueue=null,a=Nm(t,s,a,o),Cm(e),s=Cu(),e!==null&&!rt?(Nu(e,t,c),jn(e,t,c)):(Ne&&s&&fu(t),t.flags|=1,st(e,t,a,c),t.child)}function M0(e,t,a,s,o){if(jr(t),t.stateNode===null){var c=ma,p=a.contextType;typeof p=="object"&&p!==null&&(c=pt(p)),c=new a(s,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Vu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=s,c.state=t.memoizedState,c.refs={},Eu(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?pt(p):ma,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Fu(t,a,p,s),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Vu.enqueueReplaceState(c,c.state,null),yi(t,s,c,o),gi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,A=Lr(a,v);c.props=A;var j=c.context,q=a.contextType;p=ma,typeof q=="object"&&q!==null&&(p=pt(q));var V=a.getDerivedStateFromProps;q=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||j!==p)&&_0(t,c,s,p),$n=!1;var L=t.memoizedState;c.state=L,yi(t,s,c,o),gi(),j=t.memoizedState,v||L!==j||$n?(typeof V=="function"&&(Fu(t,a,V,s),j=t.memoizedState),(A=$n||y0(t,a,A,s,L,j,p))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=j),c.props=s,c.state=j,c.context=p,s=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{c=t.stateNode,Su(e,t),p=t.memoizedProps,q=Lr(a,p),c.props=q,V=t.pendingProps,L=c.context,j=a.contextType,A=ma,typeof j=="object"&&j!==null&&(A=pt(j)),v=a.getDerivedStateFromProps,(j=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==V||L!==A)&&_0(t,c,s,A),$n=!1,L=t.memoizedState,c.state=L,yi(t,s,c,o),gi();var k=t.memoizedState;p!==V||L!==k||$n||e!==null&&e.dependencies!==null&&Ms(e.dependencies)?(typeof v=="function"&&(Fu(t,a,v,s),k=t.memoizedState),(q=$n||y0(t,a,q,s,L,k,A)||e!==null&&e.dependencies!==null&&Ms(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,k,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,k,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=k),c.props=s,c.state=k,c.context=A,s=q):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),s=!1)}return c=s,$s(e,t),s=(t.flags&128)!==0,c||s?(c=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&s?(t.child=xa(t,e.child,null,o),t.child=xa(t,null,a,o)):st(e,t,a,o),t.memoizedState=c.state,e=t.child):e=jn(e,t,o),e}function B0(e,t,a,s){return oi(),t.flags|=256,st(e,t,a,s),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xu(e){return{baseLanes:e,cachePool:vm()}}function Qu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Kt),e}function j0(e,t,a){var s=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?tr(t):nr(),Ne){var v=Pe,A;if(A=v){e:{for(A=v,v=fn;A.nodeType!==8;){if(!v){v=null;break e}if(A=rn(A.nextSibling),A===null){v=null;break e}}v=A}v!==null?(t.memoizedState={dehydrated:v,treeContext:Cr!==null?{id:wn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},A=Nt(18,null,null,0),A.stateNode=v,A.return=t,t.child=A,yt=t,Pe=null,A=!0):A=!1}A||Mr(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Mc(v)?t.lanes=32:t.lanes=536870912,null;Bn(t)}return v=s.children,s=s.fallback,o?(nr(),o=t.mode,v=Js({mode:"hidden",children:v},o),s=wr(s,o,a,null),v.return=t,s.return=t,v.sibling=s,t.child=v,o=t.child,o.memoizedState=Xu(a),o.childLanes=Qu(e,p,a),t.memoizedState=Zu,s):(tr(t),Ku(t,v))}if(A=e.memoizedState,A!==null&&(v=A.dehydrated,v!==null)){if(c)t.flags&256?(tr(t),t.flags&=-257,t=$u(e,t,a)):t.memoizedState!==null?(nr(),t.child=e.child,t.flags|=128,t=null):(nr(),o=s.fallback,v=t.mode,s=Js({mode:"visible",children:s.children},v),o=wr(o,v,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,xa(t,e.child,null,a),s=t.child,s.memoizedState=Xu(a),s.childLanes=Qu(e,p,a),t.memoizedState=Zu,t=o);else if(tr(t),Mc(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var j=p.dgst;p=j,s=Error(l(419)),s.stack="",s.digest=p,ui({value:s,source:null,stack:null}),t=$u(e,t,a)}else if(rt||ci(e,t,a,!1),p=(a&e.childLanes)!==0,rt||p){if(p=ke,p!==null&&(s=a&-a,s=(s&42)!==0?1:Bo(s),s=(s&(p.suspendedLanes|a))!==0?0:s,s!==0&&s!==A.retryLane))throw A.retryLane=s,da(e,s),Ut(p,e,s),A0;v.data==="$?"||pc(),t=$u(e,t,a)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Pe=rn(v.nextSibling),yt=t,Ne=!0,Dr=null,fn=!1,e!==null&&(Zt[Xt++]=wn,Zt[Xt++]=Cn,Zt[Xt++]=Cr,wn=e.id,Cn=e.overflow,Cr=t),t=Ku(t,s.children),t.flags|=4096);return t}return o?(nr(),o=s.fallback,v=t.mode,A=e.child,j=A.sibling,s=Rn(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,j!==null?o=Rn(j,o):(o=wr(o,v,a,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,v=e.child.memoizedState,v===null?v=Xu(a):(A=v.cachePool,A!==null?(j=et._currentValue,A=A.parent!==j?{parent:j,pool:j}:A):A=vm(),v={baseLanes:v.baseLanes|a,cachePool:A}),o.memoizedState=v,o.childLanes=Qu(e,p,a),t.memoizedState=Zu,s):(tr(t),a=e.child,e=a.sibling,a=Rn(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Ku(e,t){return t=Js({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Js(e,t){return e=Nt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function $u(e,t,a){return xa(t,e.child,null,a),e=Ku(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function U0(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),pu(e.return,t,a)}function Ju(e,t,a,s,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=a,c.tailMode=o)}function H0(e,t,a){var s=t.pendingProps,o=s.revealOrder,c=s.tail;if(st(e,t,s.children,a),s=tt.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&U0(e,a,t);else if(e.tag===19)U0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(Q(tt,s),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Xs(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Ju(t,!1,o,a,c);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Xs(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Ju(t,!0,a,null,c);break;case"together":Ju(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),lr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ci(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Rn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Rn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Wu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ms(e)))}function EE(e,t,a){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),Kn(t,et,e.memoizedState.cache),oi();break;case 27:case 5:Sr(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:Kn(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(tr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?j0(e,t,a):(tr(t),e=jn(e,t,a),e!==null?e.sibling:null);tr(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(ci(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return H0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(tt,tt.current),s)break;return null;case 22:case 23:return t.lanes=0,C0(e,t,a);case 24:Kn(t,et,e.memoizedState.cache)}return jn(e,t,a)}function L0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Wu(e,a)&&(t.flags&128)===0)return rt=!1,EE(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Ne&&(t.flags&1048576)!==0&&dm(t,Ds,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var s=t.elementType,o=s._init;if(s=o(s._payload),t.type=s,typeof s=="function")ou(s)?(e=Lr(s,e),t.tag=1,t=M0(null,t,s,e,a)):(t.tag=0,t=Yu(null,t,s,e,a));else{if(s!=null){if(o=s.$$typeof,o===R){t.tag=11,t=O0(null,t,s,e,a);break e}else if(o===Y){t.tag=14,t=R0(null,t,s,e,a);break e}}throw t=Ie(s)||s,Error(l(306,t,""))}}return t;case 0:return Yu(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=Lr(s,t.pendingProps),M0(e,t,s,o,a);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var c=t.memoizedState;o=c.element,Su(e,t),yi(t,s,null,a);var p=t.memoizedState;if(s=p.cache,Kn(t,et,s),s!==c.cache&&gu(t,[et],a,!0),gi(),s=p.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=B0(e,t,s,a);break e}else if(s!==o){o=Pt(Error(l(424)),t),ui(o),t=B0(e,t,s,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Pe=rn(e.firstChild),yt=t,Ne=!0,Dr=null,fn=!0,a=p0(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(oi(),s===o){t=jn(e,t,a);break e}st(e,t,s,a)}t=t.child}return t;case 26:return $s(e,t),e===null?(a=qp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,s=hl(ce.current).createElement(a),s[mt]=t,s[vt]=e,ot(s,a,e),nt(s),t.stateNode=s):t.memoizedState=qp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Sr(t),e===null&&Ne&&(s=t.stateNode=zp(t.type,t.pendingProps,ce.current),yt=t,fn=!0,o=Pe,fr(t.type)?(Bc=o,Pe=rn(s.firstChild)):Pe=o),st(e,t,t.pendingProps.children,a),$s(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=s=Pe)&&(s=QE(s,t.type,t.pendingProps,fn),s!==null?(t.stateNode=s,yt=t,Pe=rn(s.firstChild),fn=!1,o=!0):o=!1),o||Mr(t)),Sr(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,s=c.children,Cc(o,c)?s=null:p!==null&&Cc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=wu(e,t,dE,null,null,a),ki._currentValue=o),$s(e,t),st(e,t,s,a),t.child;case 6:return e===null&&Ne&&((e=a=Pe)&&(a=KE(a,t.pendingProps,fn),a!==null?(t.stateNode=a,yt=t,Pe=null,e=!0):e=!1),e||Mr(t)),null;case 13:return j0(e,t,a);case 4:return ze(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=xa(t,null,s,a):st(e,t,s,a),t.child;case 11:return O0(e,t,t.type,t.pendingProps,a);case 7:return st(e,t,t.pendingProps,a),t.child;case 8:return st(e,t,t.pendingProps.children,a),t.child;case 12:return st(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Kn(t,t.type,s.value),st(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,jr(t),o=pt(o),s=s(o),t.flags|=1,st(e,t,s,a),t.child;case 14:return R0(e,t,t.type,t.pendingProps,a);case 15:return w0(e,t,t.type,t.pendingProps,a);case 19:return H0(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=Js(s,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Rn(e.child,s),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return C0(e,t,a);case 24:return jr(t),s=pt(et),e===null?(o=bu(),o===null&&(o=ke,c=yu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:s,cache:o},Eu(t),Kn(t,et,o)):((e.lanes&a)!==0&&(Su(e,t),yi(t,null,null,a),gi()),o=e.memoizedState,c=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Kn(t,et,s)):(s=c.cache,Kn(t,et,s),s!==o.cache&&gu(t,[et],a,!0))),st(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Un(e){e.flags|=4}function z0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yp(t)){if(t=Qt.current,t!==null&&((Oe&4194048)===Oe?hn!==null:(Oe&62914560)!==Oe&&(Oe&536870912)===0||t!==hn))throw mi=vu,Em;e.flags|=8192}}function Ws(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gd():536870912,e.lanes|=t,wa|=t)}function xi(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function SE(e,t,a){var s=t.pendingProps;switch(hu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Dn(et),Ot(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(li(t)?Un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gm())),Fe(t),null;case 26:return a=t.memoizedState,e===null?(Un(t),a!==null?(Fe(t),z0(t,a)):(Fe(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Un(t),Fe(t),z0(t,a)):(Fe(t),t.flags&=-16777217):(e.memoizedProps!==s&&Un(t),Fe(t),t.flags&=-16777217),null;case 27:Ya(t),a=ce.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Fe(t),null}e=ae.current,li(t)?mm(t):(e=zp(o,s,a),t.stateNode=e,Un(t))}return Fe(t),null;case 5:if(Ya(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Fe(t),null}if(e=ae.current,li(t))mm(t);else{switch(o=hl(ce.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?o.createElement("select",{is:s.is}):o.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?o.createElement(a,{is:s.is}):o.createElement(a)}}e[mt]=t,e[vt]=s;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(ot(e,a,s),a){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Un(t)}}return Fe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=ce.current,li(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=yt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Dp(e.nodeValue,a)),e||Mr(t)}else e=hl(e).createTextNode(s),e[mt]=t,t.stateNode=e}return Fe(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=li(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[mt]=t}else oi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),o=!1}else o=gm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Bn(t),t):(Bn(t),null)}if(Bn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=s!==null,e=e!==null&&e.memoizedState!==null,a){s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool);var c=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==o&&(s.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Ws(t,t.updateQueue),Fe(t),null;case 4:return Ot(),e===null&&xc(t.stateNode.containerInfo),Fe(t),null;case 10:return Dn(t.type),Fe(t),null;case 19:if($(tt),o=t.memoizedState,o===null)return Fe(t),null;if(s=(t.flags&128)!==0,c=o.rendering,c===null)if(s)xi(o,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Xs(e),c!==null){for(t.flags|=128,xi(o,!1),e=c.updateQueue,t.updateQueue=e,Ws(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)hm(a,e),a=a.sibling;return Q(tt,tt.current&1|2),t.child}e=e.sibling}o.tail!==null&&cn()>nl&&(t.flags|=128,s=!0,xi(o,!1),t.lanes=4194304)}else{if(!s)if(e=Xs(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ws(t,e),xi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!Ne)return Fe(t),null}else 2*cn()-o.renderingStartTime>nl&&a!==536870912&&(t.flags|=128,s=!0,xi(o,!1),t.lanes=4194304);o.isBackwards?(c.sibling=t.child,t.child=c):(e=o.last,e!==null?e.sibling=c:t.child=c,o.last=c)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=cn(),t.sibling=null,e=tt.current,Q(tt,s?e&1|2:e&1),t):(Fe(t),null);case 22:case 23:return Bn(t),Ou(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&Ws(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&$(Ur),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Dn(et),Fe(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function TE(e,t){switch(hu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(et),Ot(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ya(t),null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(tt),null;case 4:return Ot(),null;case 10:return Dn(t.type),null;case 22:case 23:return Bn(t),Ou(),e!==null&&$(Ur),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Dn(et),null;case 25:return null;default:return null}}function k0(e,t){switch(hu(t),t.tag){case 3:Dn(et),Ot();break;case 26:case 27:case 5:Ya(t);break;case 4:Ot();break;case 13:Bn(t);break;case 19:$(tt);break;case 10:Dn(t.type);break;case 22:case 23:Bn(t),Ou(),e!==null&&$(Ur);break;case 24:Dn(et)}}function Ai(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){s=void 0;var c=a.create,p=a.inst;s=c(),p.destroy=s}a=a.next}while(a!==o)}}catch(v){Le(t,t.return,v)}}function rr(e,t,a){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var c=o.next;s=c;do{if((s.tag&e)===e){var p=s.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var A=a,j=v;try{j()}catch(q){Le(o,A,q)}}}s=s.next}while(s!==c)}}catch(q){Le(t,t.return,q)}}function G0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Rm(t,a)}catch(s){Le(e,e.return,s)}}}function q0(e,t,a){a.props=Lr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Le(e,t,s)}}function Oi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(o){Le(e,t,o)}}function dn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Le(e,t,o)}else a.current=null}function I0(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){Le(e,e.return,o)}}function ec(e,t,a){try{var s=e.stateNode;VE(s,e.type,a,t),s[vt]=t}catch(o){Le(e,e.return,o)}}function F0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fr(e.type)||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&fr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nc(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=fl));else if(s!==4&&(s===27&&fr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,a),e=e.sibling;e!==null;)nc(e,t,a),e=e.sibling}function el(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&fr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(el(e,t,a),e=e.sibling;e!==null;)el(e,t,a),e=e.sibling}function V0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ot(t,s,a),t[mt]=e,t[vt]=a}catch(c){Le(e,e.return,c)}}var Hn=!1,Xe=!1,rc=!1,P0=typeof WeakSet=="function"?WeakSet:Set,at=null;function xE(e,t){if(e=e.containerInfo,Rc=_l,e=nm(e),tu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,v=-1,A=-1,j=0,q=0,V=e,L=null;t:for(;;){for(var k;V!==a||o!==0&&V.nodeType!==3||(v=p+o),V!==c||s!==0&&V.nodeType!==3||(A=p+s),V.nodeType===3&&(p+=V.nodeValue.length),(k=V.firstChild)!==null;)L=V,V=k;for(;;){if(V===e)break t;if(L===a&&++j===o&&(v=p),L===c&&++q===s&&(A=p),(k=V.nextSibling)!==null)break;V=L,L=V.parentNode}V=k}a=v===-1||A===-1?null:{start:v,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(wc={focusedElem:e,selectionRange:a},_l=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var fe=Lr(a.type,o,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(fe,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(se){Le(a,a.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Dc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Dc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function Y0(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ar(e,a),s&4&&Ai(5,a);break;case 1:if(ar(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Le(a,a.return,p)}else{var o=Lr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Le(a,a.return,p)}}s&64&&G0(a),s&512&&Oi(a,a.return);break;case 3:if(ar(e,a),s&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Rm(e,t)}catch(p){Le(a,a.return,p)}}break;case 27:t===null&&s&4&&V0(a);case 26:case 5:ar(e,a),t===null&&s&4&&I0(a),s&512&&Oi(a,a.return);break;case 12:ar(e,a);break;case 13:ar(e,a),s&4&&Q0(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=BE.bind(null,a),$E(e,a))));break;case 22:if(s=a.memoizedState!==null||Hn,!s){t=t!==null&&t.memoizedState!==null||Xe,o=Hn;var c=Xe;Hn=s,(Xe=t)&&!c?ir(e,a,(a.subtreeFlags&8772)!==0):ar(e,a),Hn=o,Xe=c}break;case 30:break;default:ar(e,a)}}function Z0(e){var t=e.alternate;t!==null&&(e.alternate=null,Z0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ho(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,Tt=!1;function Ln(e,t,a){for(a=a.child;a!==null;)X0(e,t,a),a=a.sibling}function X0(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Za,a)}catch{}switch(a.tag){case 26:Xe||dn(a,t),Ln(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||dn(a,t);var s=qe,o=Tt;fr(a.type)&&(qe=a.stateNode,Tt=!1),Ln(e,t,a),Ui(a.stateNode),qe=s,Tt=o;break;case 5:Xe||dn(a,t);case 6:if(s=qe,o=Tt,qe=null,Ln(e,t,a),qe=s,Tt=o,qe!==null)if(Tt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(a.stateNode)}catch(c){Le(a,t,c)}else try{qe.removeChild(a.stateNode)}catch(c){Le(a,t,c)}break;case 18:qe!==null&&(Tt?(e=qe,Hp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Fi(e)):Hp(qe,a.stateNode));break;case 4:s=qe,o=Tt,qe=a.stateNode.containerInfo,Tt=!0,Ln(e,t,a),qe=s,Tt=o;break;case 0:case 11:case 14:case 15:Xe||rr(2,a,t),Xe||rr(4,a,t),Ln(e,t,a);break;case 1:Xe||(dn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&q0(a,t,s)),Ln(e,t,a);break;case 21:Ln(e,t,a);break;case 22:Xe=(s=Xe)||a.memoizedState!==null,Ln(e,t,a),Xe=s;break;default:Ln(e,t,a)}}function Q0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fi(e)}catch(a){Le(t,t.return,a)}}function AE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new P0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new P0),t;default:throw Error(l(435,e.tag))}}function ac(e,t){var a=AE(e);t.forEach(function(s){var o=jE.bind(null,e,s);a.has(s)||(a.add(s),s.then(o,o))})}function Dt(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(fr(v.type)){qe=v.stateNode,Tt=!1;break e}break;case 5:qe=v.stateNode,Tt=!1;break e;case 3:case 4:qe=v.stateNode.containerInfo,Tt=!0;break e}v=v.return}if(qe===null)throw Error(l(160));X0(c,p,o),qe=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)K0(t,e),t=t.sibling}var nn=null;function K0(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Mt(e),s&4&&(rr(3,e,e.return),Ai(3,e),rr(5,e,e.return));break;case 1:Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),s&64&&Hn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=nn;if(Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Ka]||c[mt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(s),o.head.insertBefore(c,o.querySelector("head > title"))),ot(c,s,a),c[mt]=e,nt(c),s=c;break e;case"link":var p=Vp("link","href",o).get(s+(a.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(v,1);break t}}c=o.createElement(s),ot(c,s,a),o.head.appendChild(c);break;case"meta":if(p=Vp("meta","content",o).get(s+(a.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(v,1);break t}}c=o.createElement(s),ot(c,s,a),o.head.appendChild(c);break;default:throw Error(l(468,s))}c[mt]=e,nt(c),s=c}e.stateNode=s}else Pp(o,e.type,e.stateNode);else e.stateNode=Fp(o,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?Pp(o,e.type,e.stateNode):Fp(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&ec(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),a!==null&&s&4&&ec(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),e.flags&32){o=e.stateNode;try{sa(o,"")}catch(k){Le(e,e.return,k)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,ec(e,o,a!==null?a.memoizedProps:o)),s&1024&&(rc=!0);break;case 6:if(Dt(t,e),Mt(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(k){Le(e,e.return,k)}}break;case 3:if(pl=null,o=nn,nn=dl(t.containerInfo),Dt(t,e),nn=o,Mt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Fi(t.containerInfo)}catch(k){Le(e,e.return,k)}rc&&(rc=!1,$0(e));break;case 4:s=nn,nn=dl(e.stateNode.containerInfo),Dt(t,e),Mt(e),nn=s;break;case 12:Dt(t,e),Mt(e);break;case 13:Dt(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(cc=cn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ac(e,s)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,j=Hn,q=Xe;if(Hn=j||o,Xe=q||A,Dt(t,e),Xe=q,Hn=j,Mt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||Hn||Xe||zr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(c=A.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=A.stateNode;var V=A.memoizedProps.style,L=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(k){Le(A,A.return,k)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(k){Le(A,A.return,k)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,ac(e,a))));break;case 19:Dt(t,e),Mt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ac(e,s)));break;case 30:break;case 21:break;default:Dt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(F0(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var o=a.stateNode,c=tc(e);el(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(sa(p,""),a.flags&=-33);var v=tc(e);el(e,v,p);break;case 3:case 4:var A=a.stateNode.containerInfo,j=tc(e);nc(e,j,A);break;default:throw Error(l(161))}}catch(q){Le(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ar(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Y0(e,t.alternate,t),t=t.sibling}function zr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:rr(4,t,t.return),zr(t);break;case 1:dn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&q0(t,t.return,a),zr(t);break;case 27:Ui(t.stateNode);case 26:case 5:dn(t,t.return),zr(t);break;case 22:t.memoizedState===null&&zr(t);break;case 30:zr(t);break;default:zr(t)}e=e.sibling}}function ir(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:ir(o,c,a),Ai(4,c);break;case 1:if(ir(o,c,a),s=c,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(j){Le(s,s.return,j)}if(s=c,o=s.updateQueue,o!==null){var v=s.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)Om(A[o],v)}catch(j){Le(s,s.return,j)}}a&&p&64&&G0(c),Oi(c,c.return);break;case 27:V0(c);case 26:case 5:ir(o,c,a),a&&s===null&&p&4&&I0(c),Oi(c,c.return);break;case 12:ir(o,c,a);break;case 13:ir(o,c,a),a&&p&4&&Q0(o,c);break;case 22:c.memoizedState===null&&ir(o,c,a),Oi(c,c.return);break;case 30:break;default:ir(o,c,a)}t=t.sibling}}function ic(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&fi(a))}function sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e))}function mn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)J0(e,t,a,s),t=t.sibling}function J0(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,a,s),o&2048&&Ai(9,t);break;case 1:mn(e,t,a,s);break;case 3:mn(e,t,a,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e)));break;case 12:if(o&2048){mn(e,t,a,s),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Le(t,t.return,A)}}else mn(e,t,a,s);break;case 13:mn(e,t,a,s);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?mn(e,t,a,s):Ri(e,t):c._visibility&2?mn(e,t,a,s):(c._visibility|=2,Aa(e,t,a,s,(t.subtreeFlags&10256)!==0)),o&2048&&ic(p,t);break;case 24:mn(e,t,a,s),o&2048&&sc(t.alternate,t);break;default:mn(e,t,a,s)}}function Aa(e,t,a,s,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,p=t,v=a,A=s,j=p.flags;switch(p.tag){case 0:case 11:case 15:Aa(c,p,v,A,o),Ai(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?Aa(c,p,v,A,o):Ri(c,p):(q._visibility|=2,Aa(c,p,v,A,o)),o&&j&2048&&ic(p.alternate,p);break;case 24:Aa(c,p,v,A,o),o&&j&2048&&sc(p.alternate,p);break;default:Aa(c,p,v,A,o)}t=t.sibling}}function Ri(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,o=s.flags;switch(s.tag){case 22:Ri(a,s),o&2048&&ic(s.alternate,s);break;case 24:Ri(a,s),o&2048&&sc(s.alternate,s);break;default:Ri(a,s)}t=t.sibling}}var wi=8192;function Oa(e){if(e.subtreeFlags&wi)for(e=e.child;e!==null;)W0(e),e=e.sibling}function W0(e){switch(e.tag){case 26:Oa(e),e.flags&wi&&e.memoizedState!==null&&c2(nn,e.memoizedState,e.memoizedProps);break;case 5:Oa(e);break;case 3:case 4:var t=nn;nn=dl(e.stateNode.containerInfo),Oa(e),nn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=wi,wi=16777216,Oa(e),wi=t):Oa(e));break;default:Oa(e)}}function ep(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ci(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];at=s,np(s,e)}ep(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tp(e),e=e.sibling}function tp(e){switch(e.tag){case 0:case 11:case 15:Ci(e),e.flags&2048&&rr(9,e,e.return);break;case 3:Ci(e);break;case 12:Ci(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,tl(e)):Ci(e);break;default:Ci(e)}}function tl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];at=s,np(s,e)}ep(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:rr(8,t,t.return),tl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,tl(t));break;default:tl(t)}e=e.sibling}}function np(e,t){for(;at!==null;){var a=at;switch(a.tag){case 0:case 11:case 15:rr(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:fi(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,at=s;else e:for(a=e;at!==null;){s=at;var o=s.sibling,c=s.return;if(Z0(s),s===a){at=null;break e}if(o!==null){o.return=c,at=o;break e}at=c}}}var OE={getCacheForType:function(e){var t=pt(et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},RE=typeof WeakMap=="function"?WeakMap:Map,Me=0,ke=null,be=null,Oe=0,Be=0,Bt=null,sr=!1,Ra=!1,lc=!1,zn=0,Ye=0,lr=0,kr=0,oc=0,Kt=0,wa=0,Ni=null,xt=null,uc=!1,cc=0,nl=1/0,rl=null,or=null,lt=0,ur=null,Ca=null,Na=0,fc=0,hc=null,rp=null,Di=0,dc=null;function jt(){if((Me&2)!==0&&Oe!==0)return Oe&-Oe;if(G.T!==null){var e=ya;return e!==0?e:vc()}return bd()}function ap(){Kt===0&&(Kt=(Oe&536870912)===0||Ne?pd():536870912);var e=Qt.current;return e!==null&&(e.flags|=32),Kt}function Ut(e,t,a){(e===ke&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Da(e,0),cr(e,Oe,Kt,!1)),Qa(e,a),((Me&2)===0||e!==ke)&&(e===ke&&((Me&2)===0&&(kr|=a),Ye===4&&cr(e,Oe,Kt,!1)),pn(e))}function ip(e,t,a){if((Me&6)!==0)throw Error(l(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Xa(e,t),o=s?NE(e,t):gc(e,t,!0),c=s;do{if(o===0){Ra&&!s&&cr(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!wE(a)){o=gc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;o=Ni;var A=v.current.memoizedState.isDehydrated;if(A&&(Da(v,p).flags|=256),p=gc(v,p,!1),p!==2){if(lc&&!A){v.errorRecoveryDisabledLanes|=c,kr|=c,o=4;break e}c=xt,xt=o,c!==null&&(xt===null?xt=c:xt.push.apply(xt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Da(e,0),cr(e,t,0,!0);break}e:{switch(s=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:cr(s,t,Kt,!sr);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=cc+300-cn(),10<o)){if(cr(s,t,Kt,!sr),ms(s,0,!0)!==0)break e;s.timeoutHandle=jp(sp.bind(null,s,a,xt,rl,uc,t,Kt,kr,wa,sr,c,2,-0,0),o);break e}sp(s,a,xt,rl,uc,t,Kt,kr,wa,sr,c,0,-0,0)}}break}while(!0);pn(e)}function sp(e,t,a,s,o,c,p,v,A,j,q,V,L,k){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(zi={stylesheets:null,count:0,unsuspend:u2},W0(t),V=f2(),V!==null)){e.cancelPendingCommit=V(dp.bind(null,e,t,c,a,s,o,p,v,A,q,1,L,k)),cr(e,c,p,!j);return}dp(e,t,c,a,s,o,p,v,A)}function wE(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var o=a[s],c=o.getSnapshot;o=o.value;try{if(!Ct(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function cr(e,t,a,s){t&=~oc,t&=~kr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var c=31-wt(o),p=1<<c;s[c]=-1,o&=~p}a!==0&&yd(e,a,t)}function al(){return(Me&6)===0?(Mi(0),!1):!0}function mc(){if(be!==null){if(Be===0)var e=be.return;else e=be,Nn=Br=null,Du(e),Ta=null,Si=0,e=be;for(;e!==null;)k0(e.alternate,e),e=e.return;be=null}}function Da(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,YE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),mc(),ke=e,be=a=Rn(e.current,null),Oe=t,Be=0,Bt=null,sr=!1,Ra=Xa(e,t),lc=!1,wa=Kt=oc=kr=lr=Ye=0,xt=Ni=null,uc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-wt(s),c=1<<o;t|=e[o],s&=~c}return zn=t,Os(),a}function lp(e,t){ge=null,G.H=Ps,t===di||t===Us?(t=xm(),Be=3):t===Em?(t=xm(),Be=4):Be=t===A0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,be===null&&(Ye=1,Ks(e,Pt(t,e.current)))}function op(){var e=G.H;return G.H=Ps,e===null?Ps:e}function up(){var e=G.A;return G.A=OE,e}function pc(){Ye=4,sr||(Oe&4194048)!==Oe&&Qt.current!==null||(Ra=!0),(lr&134217727)===0&&(kr&134217727)===0||ke===null||cr(ke,Oe,Kt,!1)}function gc(e,t,a){var s=Me;Me|=2;var o=op(),c=up();(ke!==e||Oe!==t)&&(rl=null,Da(e,t)),t=!1;var p=Ye;e:do try{if(Be!==0&&be!==null){var v=be,A=Bt;switch(Be){case 8:mc(),p=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var j=Be;if(Be=0,Bt=null,Ma(e,v,A,j),a&&Ra){p=0;break e}break;default:j=Be,Be=0,Bt=null,Ma(e,v,A,j)}}CE(),p=Ye;break}catch(q){lp(e,q)}while(!0);return t&&e.shellSuspendCounter++,Nn=Br=null,Me=s,G.H=o,G.A=c,be===null&&(ke=null,Oe=0,Os()),p}function CE(){for(;be!==null;)cp(be)}function NE(e,t){var a=Me;Me|=2;var s=op(),o=up();ke!==e||Oe!==t?(rl=null,nl=cn()+500,Da(e,t)):Ra=Xa(e,t);e:do try{if(Be!==0&&be!==null){t=be;var c=Bt;t:switch(Be){case 1:Be=0,Bt=null,Ma(e,t,c,1);break;case 2:case 9:if(Sm(c)){Be=0,Bt=null,fp(t);break}t=function(){Be!==2&&Be!==9||ke!==e||(Be=7),pn(e)},c.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:Sm(c)?(Be=0,Bt=null,fp(t)):(Be=0,Bt=null,Ma(e,t,c,7));break;case 5:var p=null;switch(be.tag){case 26:p=be.memoizedState;case 5:case 27:var v=be;if(!p||Yp(p)){Be=0,Bt=null;var A=v.sibling;if(A!==null)be=A;else{var j=v.return;j!==null?(be=j,il(j)):be=null}break t}}Be=0,Bt=null,Ma(e,t,c,5);break;case 6:Be=0,Bt=null,Ma(e,t,c,6);break;case 8:mc(),Ye=6;break e;default:throw Error(l(462))}}DE();break}catch(q){lp(e,q)}while(!0);return Nn=Br=null,G.H=s,G.A=o,Me=a,be!==null?0:(ke=null,Oe=0,Os(),Ye)}function DE(){for(;be!==null&&!Wv();)cp(be)}function cp(e){var t=L0(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?il(e):be=t}function fp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=D0(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=D0(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Du(t);default:k0(a,t),t=be=hm(t,zn),t=L0(a,t,zn)}e.memoizedProps=e.pendingProps,t===null?il(e):be=t}function Ma(e,t,a,s){Nn=Br=null,Du(t),Ta=null,Si=0;var o=t.return;try{if(vE(e,o,t,a,Oe)){Ye=1,Ks(e,Pt(a,e.current)),be=null;return}}catch(c){if(o!==null)throw be=o,c;Ye=1,Ks(e,Pt(a,e.current)),be=null;return}t.flags&32768?(Ne||s===1?e=!0:Ra||(Oe&536870912)!==0?e=!1:(sr=e=!0,(s===2||s===9||s===3||s===6)&&(s=Qt.current,s!==null&&s.tag===13&&(s.flags|=16384))),hp(t,e)):il(t)}function il(e){var t=e;do{if((t.flags&32768)!==0){hp(t,sr);return}e=t.return;var a=SE(t.alternate,t,zn);if(a!==null){be=a;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ye===0&&(Ye=5)}function hp(e,t){do{var a=TE(e.alternate,e);if(a!==null){a.flags&=32767,be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=a}while(e!==null);Ye=6,be=null}function dp(e,t,a,s,o,c,p,v,A){e.cancelPendingCommit=null;do sl();while(lt!==0);if((Me&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=su,u1(e,a,c,p,v,A),e===ke&&(be=ke=null,Oe=0),Ca=t,ur=e,Na=a,fc=c,hc=o,rp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,UE(fs,function(){return _p(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=G.T,G.T=null,o=X.p,X.p=2,p=Me,Me|=4;try{xE(e,t,a)}finally{Me=p,X.p=o,G.T=s}}lt=1,mp(),pp(),gp()}}function mp(){if(lt===1){lt=0;var e=ur,t=Ca,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=G.T,G.T=null;var s=X.p;X.p=2;var o=Me;Me|=4;try{K0(t,e);var c=wc,p=nm(e.containerInfo),v=c.focusedElem,A=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&tm(v.ownerDocument.documentElement,v)){if(A!==null&&tu(v)){var j=A.start,q=A.end;if(q===void 0&&(q=j),"selectionStart"in v)v.selectionStart=j,v.selectionEnd=Math.min(q,v.value.length);else{var V=v.ownerDocument||document,L=V&&V.defaultView||window;if(L.getSelection){var k=L.getSelection(),fe=v.textContent.length,se=Math.min(A.start,fe),He=A.end===void 0?se:Math.min(A.end,fe);!k.extend&&se>He&&(p=He,He=se,se=p);var M=em(v,se),C=em(v,He);if(M&&C&&(k.rangeCount!==1||k.anchorNode!==M.node||k.anchorOffset!==M.offset||k.focusNode!==C.node||k.focusOffset!==C.offset)){var B=V.createRange();B.setStart(M.node,M.offset),k.removeAllRanges(),se>He?(k.addRange(B),k.extend(C.node,C.offset)):(B.setEnd(C.node,C.offset),k.addRange(B))}}}}for(V=[],k=v;k=k.parentNode;)k.nodeType===1&&V.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<V.length;v++){var F=V[v];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}_l=!!Rc,wc=Rc=null}finally{Me=o,X.p=s,G.T=a}}e.current=t,lt=2}}function pp(){if(lt===2){lt=0;var e=ur,t=Ca,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=G.T,G.T=null;var s=X.p;X.p=2;var o=Me;Me|=4;try{Y0(e,t.alternate,t)}finally{Me=o,X.p=s,G.T=a}}lt=3}}function gp(){if(lt===4||lt===3){lt=0,e1();var e=ur,t=Ca,a=Na,s=rp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,Ca=ur=null,yp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(or=null),jo(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Za,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=G.T,o=X.p,X.p=2,G.T=null;try{for(var c=e.onRecoverableError,p=0;p<s.length;p++){var v=s[p];c(v.value,{componentStack:v.stack})}}finally{G.T=t,X.p=o}}(Na&3)!==0&&sl(),pn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===dc?Di++:(Di=0,dc=e):Di=0,Mi(0)}}function yp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fi(t)))}function sl(e){return mp(),pp(),gp(),_p()}function _p(){if(lt!==5)return!1;var e=ur,t=fc;fc=0;var a=jo(Na),s=G.T,o=X.p;try{X.p=32>a?32:a,G.T=null,a=hc,hc=null;var c=ur,p=Na;if(lt=0,Ca=ur=null,Na=0,(Me&6)!==0)throw Error(l(331));var v=Me;if(Me|=4,tp(c.current),J0(c,c.current,p,a),Me=v,Mi(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Za,c)}catch{}return!0}finally{X.p=o,G.T=s,yp(e,t)}}function bp(e,t,a){t=Pt(a,t),t=Pu(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Qa(e,2),pn(e))}function Le(e,t,a){if(e.tag===3)bp(e,e,a);else for(;t!==null;){if(t.tag===3){bp(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(or===null||!or.has(s))){e=Pt(a,e),a=T0(2),s=Wn(t,a,2),s!==null&&(x0(a,s,t,e),Qa(s,2),pn(s));break}}t=t.return}}function yc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new RE;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(a)||(lc=!0,o.add(a),e=ME.bind(null,e,t,a),t.then(e,e))}function ME(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(Oe&a)===a&&(Ye===4||Ye===3&&(Oe&62914560)===Oe&&300>cn()-cc?(Me&2)===0&&Da(e,0):oc|=a,wa===Oe&&(wa=0)),pn(e)}function vp(e,t){t===0&&(t=gd()),e=da(e,t),e!==null&&(Qa(e,t),pn(e))}function BE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),vp(e,a)}function jE(e,t){var a=0;switch(e.tag){case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(t),vp(e,a)}function UE(e,t){return xn(e,t)}var ll=null,Ba=null,_c=!1,ol=!1,bc=!1,Gr=0;function pn(e){e!==Ba&&e.next===null&&(Ba===null?ll=Ba=e:Ba=Ba.next=e),ol=!0,_c||(_c=!0,LE())}function Mi(e,t){if(!bc&&ol){bc=!0;do for(var a=!1,s=ll;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var c=0;else{var p=s.suspendedLanes,v=s.pingedLanes;c=(1<<31-wt(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,xp(s,c))}else c=Oe,c=ms(s,s===ke?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Xa(s,c)||(a=!0,xp(s,c));s=s.next}while(a);bc=!1}}function HE(){Ep()}function Ep(){ol=_c=!1;var e=0;Gr!==0&&(PE()&&(e=Gr),Gr=0);for(var t=cn(),a=null,s=ll;s!==null;){var o=s.next,c=Sp(s,t);c===0?(s.next=null,a===null?ll=o:a.next=o,o===null&&(Ba=a)):(a=s,(e!==0||(c&3)!==0)&&(ol=!0)),s=o}Mi(e)}function Sp(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-wt(c),v=1<<p,A=o[p];A===-1?((v&a)===0||(v&s)!==0)&&(o[p]=o1(v,t)):A<=t&&(e.expiredLanes|=v),c&=~v}if(t=ke,a=Oe,a=ms(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Do(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Xa(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&Do(s),jo(a)){case 2:case 8:a=dd;break;case 32:a=fs;break;case 268435456:a=md;break;default:a=fs}return s=Tp.bind(null,e),a=xn(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&Do(s),e.callbackPriority=2,e.callbackNode=null,2}function Tp(e,t){if(lt!==0&&lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(sl()&&e.callbackNode!==a)return null;var s=Oe;return s=ms(e,e===ke?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(ip(e,s,t),Sp(e,cn()),e.callbackNode!=null&&e.callbackNode===a?Tp.bind(null,e):null)}function xp(e,t){if(sl())return null;ip(e,t,!0)}function LE(){ZE(function(){(Me&6)!==0?xn(hd,HE):Ep()})}function vc(){return Gr===0&&(Gr=pd()),Gr}function Ap(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bs(""+e)}function Op(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function zE(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var c=Ap((o[vt]||null).action),p=s.submitter;p&&(t=(t=p[vt]||null)?Ap(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Ts("action","action",null,s,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Gr!==0){var A=p?Op(o,p):new FormData(o);Gu(a,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(v.preventDefault(),A=p?Op(o,p):new FormData(o),Gu(a,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var Ec=0;Ec<iu.length;Ec++){var Sc=iu[Ec],kE=Sc.toLowerCase(),GE=Sc[0].toUpperCase()+Sc.slice(1);tn(kE,"on"+GE)}tn(im,"onAnimationEnd"),tn(sm,"onAnimationIteration"),tn(lm,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(rE,"onTransitionRun"),tn(aE,"onTransitionStart"),tn(iE,"onTransitionCancel"),tn(om,"onTransitionEnd"),ra("onMouseEnter",["mouseout","mouseover"]),ra("onMouseLeave",["mouseout","mouseover"]),ra("onPointerEnter",["pointerout","pointerover"]),ra("onPointerLeave",["pointerout","pointerover"]),xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xr("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(" "),qE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bi));function Rp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],o=s.event;s=s.listeners;e:{var c=void 0;if(t)for(var p=s.length-1;0<=p;p--){var v=s[p],A=v.instance,j=v.currentTarget;if(v=v.listener,A!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=j;try{c(o)}catch(q){Qs(q)}o.currentTarget=null,c=A}else for(p=0;p<s.length;p++){if(v=s[p],A=v.instance,j=v.currentTarget,v=v.listener,A!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=j;try{c(o)}catch(q){Qs(q)}o.currentTarget=null,c=A}}}}function ve(e,t){var a=t[Uo];a===void 0&&(a=t[Uo]=new Set);var s=e+"__bubble";a.has(s)||(wp(t,e,2,!1),a.add(s))}function Tc(e,t,a){var s=0;t&&(s|=4),wp(a,e,s,t)}var ul="_reactListening"+Math.random().toString(36).slice(2);function xc(e){if(!e[ul]){e[ul]=!0,Ed.forEach(function(a){a!=="selectionchange"&&(qE.has(a)||Tc(a,!1,e),Tc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ul]||(t[ul]=!0,Tc("selectionchange",!1,t))}}function wp(e,t,a,s){switch(Jp(t)){case 2:var o=m2;break;case 8:o=p2;break;default:o=zc}a=o.bind(null,t,a,e),o=void 0,!Yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Ac(e,t,a,s,o){var c=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var v=s.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=s.return;p!==null;){var A=p.tag;if((A===3||A===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=ea(v),p===null)return;if(A=p.tag,A===5||A===6||A===26||A===27){s=c=p;continue e}v=v.parentNode}}s=s.return}Ud(function(){var j=c,q=Vo(a),V=[];e:{var L=um.get(e);if(L!==void 0){var k=Ts,fe=e;switch(e){case"keypress":if(Es(a)===0)break e;case"keydown":case"keyup":k=U1;break;case"focusin":fe="focus",k=Ko;break;case"focusout":fe="blur",k=Ko;break;case"beforeblur":case"afterblur":k=Ko;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=T1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=z1;break;case im:case sm:case lm:k=O1;break;case om:k=G1;break;case"scroll":case"scrollend":k=E1;break;case"wheel":k=I1;break;case"copy":case"cut":case"paste":k=w1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Gd;break;case"toggle":case"beforetoggle":k=V1}var se=(t&4)!==0,He=!se&&(e==="scroll"||e==="scrollend"),M=se?L!==null?L+"Capture":null:L;se=[];for(var C=j,B;C!==null;){var F=C;if(B=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||B===null||M===null||(F=Ja(C,M),F!=null&&se.push(ji(C,F,B))),He)break;C=C.return}0<se.length&&(L=new k(L,fe,null,a,q),V.push({event:L,listeners:se}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",L&&a!==Fo&&(fe=a.relatedTarget||a.fromElement)&&(ea(fe)||fe[Wr]))break e;if((k||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,k?(fe=a.relatedTarget||a.toElement,k=j,fe=fe?ea(fe):null,fe!==null&&(He=f(fe),se=fe.tag,fe!==He||se!==5&&se!==27&&se!==6)&&(fe=null)):(k=null,fe=j),k!==fe)){if(se=zd,F="onMouseLeave",M="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(se=Gd,F="onPointerLeave",M="onPointerEnter",C="pointer"),He=k==null?L:$a(k),B=fe==null?L:$a(fe),L=new se(F,C+"leave",k,a,q),L.target=He,L.relatedTarget=B,F=null,ea(q)===j&&(se=new se(M,C+"enter",fe,a,q),se.target=B,se.relatedTarget=He,F=se),He=F,k&&fe)t:{for(se=k,M=fe,C=0,B=se;B;B=ja(B))C++;for(B=0,F=M;F;F=ja(F))B++;for(;0<C-B;)se=ja(se),C--;for(;0<B-C;)M=ja(M),B--;for(;C--;){if(se===M||M!==null&&se===M.alternate)break t;se=ja(se),M=ja(M)}se=null}else se=null;k!==null&&Cp(V,L,k,se,!1),fe!==null&&He!==null&&Cp(V,He,fe,se,!0)}}e:{if(L=j?$a(j):window,k=L.nodeName&&L.nodeName.toLowerCase(),k==="select"||k==="input"&&L.type==="file")var W=Xd;else if(Yd(L))if(Qd)W=eE;else{W=J1;var ye=$1}else k=L.nodeName,!k||k.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?j&&Io(j.elementType)&&(W=Xd):W=W1;if(W&&(W=W(e,j))){Zd(V,W,a,q);break e}ye&&ye(e,L,j),e==="focusout"&&j&&L.type==="number"&&j.memoizedProps.value!=null&&qo(L,"number",L.value)}switch(ye=j?$a(j):window,e){case"focusin":(Yd(ye)||ye.contentEditable==="true")&&(ca=ye,nu=j,si=null);break;case"focusout":si=nu=ca=null;break;case"mousedown":ru=!0;break;case"contextmenu":case"mouseup":case"dragend":ru=!1,rm(V,a,q);break;case"selectionchange":if(nE)break;case"keydown":case"keyup":rm(V,a,q)}var ne;if(Jo)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else ua?Vd(e,a)&&(oe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(oe="onCompositionStart");oe&&(qd&&a.locale!=="ko"&&(ua||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&ua&&(ne=Hd()):(Qn=q,Zo="value"in Qn?Qn.value:Qn.textContent,ua=!0)),ye=cl(j,oe),0<ye.length&&(oe=new kd(oe,e,null,a,q),V.push({event:oe,listeners:ye}),ne?oe.data=ne:(ne=Pd(a),ne!==null&&(oe.data=ne)))),(ne=Y1?Z1(e,a):X1(e,a))&&(oe=cl(j,"onBeforeInput"),0<oe.length&&(ye=new kd("onBeforeInput","beforeinput",null,a,q),V.push({event:ye,listeners:oe}),ye.data=ne)),zE(V,e,j,a,q)}Rp(V,t)})}function ji(e,t,a){return{instance:e,listener:t,currentTarget:a}}function cl(e,t){for(var a=t+"Capture",s=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Ja(e,a),o!=null&&s.unshift(ji(e,o,c)),o=Ja(e,t),o!=null&&s.push(ji(e,o,c))),e.tag===3)return s;e=e.return}return[]}function ja(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cp(e,t,a,s,o){for(var c=t._reactName,p=[];a!==null&&a!==s;){var v=a,A=v.alternate,j=v.stateNode;if(v=v.tag,A!==null&&A===s)break;v!==5&&v!==26&&v!==27||j===null||(A=j,o?(j=Ja(a,c),j!=null&&p.unshift(ji(a,j,A))):o||(j=Ja(a,c),j!=null&&p.push(ji(a,j,A)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var IE=/\r\n?/g,FE=/\u0000|\uFFFD/g;function Np(e){return(typeof e=="string"?e:""+e).replace(IE,`
49
- `).replace(FE,"")}function Dp(e,t){return t=Np(t),Np(e)===t}function fl(){}function Ue(e,t,a,s,o,c){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||sa(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&sa(e,""+s);break;case"className":gs(e,"class",s);break;case"tabIndex":gs(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":gs(e,a,s);break;case"style":Bd(e,s,c);break;case"data":if(t!=="object"){gs(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=bs(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ue(e,t,"name",o.name,o,null),Ue(e,t,"formEncType",o.formEncType,o,null),Ue(e,t,"formMethod",o.formMethod,o,null),Ue(e,t,"formTarget",o.formTarget,o,null)):(Ue(e,t,"encType",o.encType,o,null),Ue(e,t,"method",o.method,o,null),Ue(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=bs(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=fl);break;case"onScroll":s!=null&&ve("scroll",e);break;case"onScrollEnd":s!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=bs(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":ve("beforetoggle",e),ve("toggle",e),ps(e,"popover",s);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ps(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=b1.get(a)||a,ps(e,a,s))}}function Oc(e,t,a,s,o,c){switch(a){case"style":Bd(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"children":typeof s=="string"?sa(e,s):(typeof s=="number"||typeof s=="bigint")&&sa(e,""+s);break;case"onScroll":s!=null&&ve("scroll",e);break;case"onScrollEnd":s!=null&&ve("scrollend",e);break;case"onClick":s!=null&&(e.onclick=fl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[vt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof s=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,o);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):ps(e,a,s)}}}function ot(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var s=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ue(e,t,c,p,a,null)}}o&&Ue(e,t,"srcSet",a.srcSet,a,null),s&&Ue(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var v=c=p=o=null,A=null,j=null;for(s in a)if(a.hasOwnProperty(s)){var q=a[s];if(q!=null)switch(s){case"name":o=q;break;case"type":p=q;break;case"checked":A=q;break;case"defaultChecked":j=q;break;case"value":c=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,t));break;default:Ue(e,t,s,q,a,null)}}Cd(e,c,v,A,j,p,o,!1),ys(e);return;case"select":ve("invalid",e),s=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":s=v;default:Ue(e,t,o,v,a,null)}t=c,a=p,e.multiple=!!s,t!=null?ia(e,!!s,t,!1):a!=null&&ia(e,!!s,a,!0);return;case"textarea":ve("invalid",e),c=o=s=null;for(p in a)if(a.hasOwnProperty(p)&&(v=a[p],v!=null))switch(p){case"value":s=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:Ue(e,t,p,v,a,null)}Dd(e,s,o,c),ys(e);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(s=a[A],s!=null))switch(A){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ue(e,t,A,s,a,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(s=0;s<Bi.length;s++)ve(Bi[s],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in a)if(a.hasOwnProperty(j)&&(s=a[j],s!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ue(e,t,j,s,a,null)}return;default:if(Io(t)){for(q in a)a.hasOwnProperty(q)&&(s=a[q],s!==void 0&&Oc(e,t,q,s,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(s=a[v],s!=null&&Ue(e,t,v,s,a,null))}function VE(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,v=null,A=null,j=null,q=null;for(k in a){var V=a[k];if(a.hasOwnProperty(k)&&V!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":A=V;default:s.hasOwnProperty(k)||Ue(e,t,k,null,s,V)}}for(var L in s){var k=s[L];if(V=a[L],s.hasOwnProperty(L)&&(k!=null||V!=null))switch(L){case"type":c=k;break;case"name":o=k;break;case"checked":j=k;break;case"defaultChecked":q=k;break;case"value":p=k;break;case"defaultValue":v=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(137,t));break;default:k!==V&&Ue(e,t,L,k,s,V)}}Go(e,p,v,A,j,q,c,o);return;case"select":k=p=v=L=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":k=A;default:s.hasOwnProperty(c)||Ue(e,t,c,null,s,A)}for(o in s)if(c=s[o],A=a[o],s.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":L=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==A&&Ue(e,t,o,c,s,A)}t=v,a=p,s=k,L!=null?ia(e,!!a,L,!1):!!s!=!!a&&(t!=null?ia(e,!!a,t,!0):ia(e,!!a,a?[]:"",!1));return;case"textarea":k=L=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!s.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,s,o)}for(p in s)if(o=s[p],c=a[p],s.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":L=o;break;case"defaultValue":k=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&Ue(e,t,p,o,s,c)}Nd(e,L,k);return;case"option":for(var fe in a)if(L=a[fe],a.hasOwnProperty(fe)&&L!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ue(e,t,fe,null,s,L)}for(A in s)if(L=s[A],k=a[A],s.hasOwnProperty(A)&&L!==k&&(L!=null||k!=null))switch(A){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Ue(e,t,A,L,s,k)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in a)L=a[se],a.hasOwnProperty(se)&&L!=null&&!s.hasOwnProperty(se)&&Ue(e,t,se,null,s,L);for(j in s)if(L=s[j],k=a[j],s.hasOwnProperty(j)&&L!==k&&(L!=null||k!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,t));break;default:Ue(e,t,j,L,s,k)}return;default:if(Io(t)){for(var He in a)L=a[He],a.hasOwnProperty(He)&&L!==void 0&&!s.hasOwnProperty(He)&&Oc(e,t,He,void 0,s,L);for(q in s)L=s[q],k=a[q],!s.hasOwnProperty(q)||L===k||L===void 0&&k===void 0||Oc(e,t,q,L,s,k);return}}for(var M in a)L=a[M],a.hasOwnProperty(M)&&L!=null&&!s.hasOwnProperty(M)&&Ue(e,t,M,null,s,L);for(V in s)L=s[V],k=a[V],!s.hasOwnProperty(V)||L===k||L==null&&k==null||Ue(e,t,V,L,s,k)}var Rc=null,wc=null;function hl(e){return e.nodeType===9?e:e.ownerDocument}function Mp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Cc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nc=null;function PE(){var e=window.event;return e&&e.type==="popstate"?e===Nc?!1:(Nc=e,!0):(Nc=null,!1)}var jp=typeof setTimeout=="function"?setTimeout:void 0,YE=typeof clearTimeout=="function"?clearTimeout:void 0,Up=typeof Promise=="function"?Promise:void 0,ZE=typeof queueMicrotask=="function"?queueMicrotask:typeof Up<"u"?function(e){return Up.resolve(null).then(e).catch(XE)}:jp;function XE(e){setTimeout(function(){throw e})}function fr(e){return e==="head"}function Hp(e,t){var a=t,s=0,o=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<s&&8>s){a=s;var p=e.ownerDocument;if(a&1&&Ui(p.documentElement),a&2&&Ui(p.body),a&4)for(a=p.head,Ui(a),p=a.firstChild;p;){var v=p.nextSibling,A=p.nodeName;p[Ka]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=v}}if(o===0){e.removeChild(c),Fi(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:s=a.charCodeAt(0)-48;else s=0;a=c}while(a);Fi(t)}function Dc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Dc(a),Ho(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function QE(e,t,a,s){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=rn(e.nextSibling),e===null)break}return null}function KE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=rn(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function $E(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Bc=null;function Lp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function zp(e,t,a){switch(t=hl(a),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ui(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ho(e)}var $t=new Map,kp=new Set;function dl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kn=X.d;X.d={f:JE,r:WE,D:e2,C:t2,L:n2,m:r2,X:i2,S:a2,M:s2};function JE(){var e=kn.f(),t=al();return e||t}function WE(e){var t=ta(e);t!==null&&t.tag===5&&t.type==="form"?i0(t):kn.r(e)}var Ua=typeof document>"u"?null:document;function Gp(e,t,a){var s=Ua;if(s&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),kp.has(o)||(kp.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),ot(t,"link",e),nt(t),s.head.appendChild(t)))}}function e2(e){kn.D(e),Gp("dns-prefetch",e,null)}function t2(e,t){kn.C(e,t),Gp("preconnect",e,t)}function n2(e,t,a){kn.L(e,t,a);var s=Ua;if(s&&e&&t){var o='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Vt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Vt(a.imageSizes)+'"]')):o+='[href="'+Vt(e)+'"]';var c=o;switch(t){case"style":c=Ha(e);break;case"script":c=La(e)}$t.has(c)||(e=_({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$t.set(c,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(Hi(c))||t==="script"&&s.querySelector(Li(c))||(t=s.createElement("link"),ot(t,"link",e),nt(t),s.head.appendChild(t)))}}function r2(e,t){kn.m(e,t);var a=Ua;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Vt(s)+'"][href="'+Vt(e)+'"]',c=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=La(e)}if(!$t.has(c)&&(e=_({rel:"modulepreload",href:e},t),$t.set(c,e),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Li(c)))return}s=a.createElement("link"),ot(s,"link",e),nt(s),a.head.appendChild(s)}}}function a2(e,t,a){kn.S(e,t,a);var s=Ua;if(s&&e){var o=na(s).hoistableStyles,c=Ha(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=s.querySelector(Hi(c)))v.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(c))&&jc(e,a);var A=p=s.createElement("link");nt(A),ot(A,"link",e),A._p=new Promise(function(j,q){A.onload=j,A.onerror=q}),A.addEventListener("load",function(){v.loading|=1}),A.addEventListener("error",function(){v.loading|=2}),v.loading|=4,ml(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function i2(e,t){kn.X(e,t);var a=Ua;if(a&&e){var s=na(a).hoistableScripts,o=La(e),c=s.get(o);c||(c=a.querySelector(Li(o)),c||(e=_({src:e,async:!0},t),(t=$t.get(o))&&Uc(e,t),c=a.createElement("script"),nt(c),ot(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function s2(e,t){kn.M(e,t);var a=Ua;if(a&&e){var s=na(a).hoistableScripts,o=La(e),c=s.get(o);c||(c=a.querySelector(Li(o)),c||(e=_({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&Uc(e,t),c=a.createElement("script"),nt(c),ot(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function qp(e,t,a,s){var o=(o=ce.current)?dl(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ha(a.href),a=na(o).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ha(a.href);var c=na(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(Hi(e)))&&!c._p&&(p.instance=c,p.state.loading=5),$t.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$t.set(e,a),c||l2(o,e,a,p.state))),t&&s===null)throw Error(l(528,""));return p}if(t&&s!==null)throw Error(l(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=La(a),a=na(o).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Ha(e){return'href="'+Vt(e)+'"'}function Hi(e){return'link[rel="stylesheet"]['+e+"]"}function Ip(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function l2(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),ot(t,"link",a),nt(t),e.head.appendChild(t))}function La(e){return'[src="'+Vt(e)+'"]'}function Li(e){return"script[async]"+e}function Fp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Vt(a.href)+'"]');if(s)return t.instance=s,nt(s),s;var o=_({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),nt(s),ot(s,"style",o),ml(s,a.precedence,e),t.instance=s;case"stylesheet":o=Ha(a.href);var c=e.querySelector(Hi(o));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;s=Ip(a),(o=$t.get(o))&&jc(s,o),c=(e.ownerDocument||e).createElement("link"),nt(c);var p=c;return p._p=new Promise(function(v,A){p.onload=v,p.onerror=A}),ot(c,"link",s),t.state.loading|=4,ml(c,a.precedence,e),t.instance=c;case"script":return c=La(a.src),(o=e.querySelector(Li(c)))?(t.instance=o,nt(o),o):(s=a,(o=$t.get(c))&&(s=_({},a),Uc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),nt(o),ot(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,ml(s,a.precedence,e));return t.instance}function ml(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,c=o,p=0;p<s.length;p++){var v=s[p];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pl=null;function Vp(e,t,a){if(pl===null){var s=new Map,o=pl=new Map;o.set(a,s)}else o=pl,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[Ka]||c[mt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=s.get(p);v?v.push(c):s.set(p,[c])}}return s}function Pp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function o2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Yp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var zi=null;function u2(){}function c2(e,t,a){if(zi===null)throw Error(l(475));var s=zi;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ha(a.href),c=e.querySelector(Hi(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=gl.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=c,nt(c);return}c=e.ownerDocument||e,a=Ip(a),(o=$t.get(o))&&jc(a,o),c=c.createElement("link"),nt(c);var p=c;p._p=new Promise(function(v,A){p.onload=v,p.onerror=A}),ot(c,"link",a),t.instance=c}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(s.count++,t=gl.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function f2(){if(zi===null)throw Error(l(475));var e=zi;return e.stylesheets&&e.count===0&&Hc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Hc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function gl(){if(this.count--,this.count===0){if(this.stylesheets)Hc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yl=null;function Hc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yl=new Map,t.forEach(h2,e),yl=null,gl.call(e))}function h2(e,t){if(!(t.state.loading&4)){var a=yl.get(e);if(a)var s=a.get(null);else{a=new Map,yl.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),s=p)}s&&a.set(null,s)}o=t.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||s,c===s&&a.set(null,o),a.set(p,o),this.count++,s=gl.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ki={$$typeof:O,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function d2(e,t,a,s,o,c,p,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.hiddenUpdates=Mo(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Zp(e,t,a,s,o,c,p,v,A,j,q,V){return e=new d2(e,t,a,p,v,A,j,V),t=1,c===!0&&(t|=24),c=Nt(3,null,null,t),e.current=c,c.stateNode=e,t=yu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:t},Eu(c),e}function Xp(e){return e?(e=ma,e):ma}function Qp(e,t,a,s,o,c){o=Xp(o),s.context===null?s.context=o:s.pendingContext=o,s=Jn(t),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Wn(e,s,t),a!==null&&(Ut(a,e,t),pi(a,e,t))}function Kp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Lc(e,t){Kp(e,t),(e=e.alternate)&&Kp(e,t)}function $p(e){if(e.tag===13){var t=da(e,67108864);t!==null&&Ut(t,e,67108864),Lc(e,67108864)}}var _l=!0;function m2(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=2,zc(e,t,a,s)}finally{X.p=c,G.T=o}}function p2(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=8,zc(e,t,a,s)}finally{X.p=c,G.T=o}}function zc(e,t,a,s){if(_l){var o=kc(s);if(o===null)Ac(e,t,s,bl,a),Wp(e,s);else if(y2(o,e,t,a,s))s.stopPropagation();else if(Wp(e,s),t&4&&-1<g2.indexOf(e)){for(;o!==null;){var c=ta(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Tr(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var A=1<<31-wt(p);v.entanglements[1]|=A,p&=~A}pn(c),(Me&6)===0&&(nl=cn()+500,Mi(0))}}break;case 13:v=da(c,2),v!==null&&Ut(v,c,2),al(),Lc(c,2)}if(c=kc(s),c===null&&Ac(e,t,s,bl,a),c===o)break;o=c}o!==null&&s.stopPropagation()}else Ac(e,t,s,null,a)}}function kc(e){return e=Vo(e),Gc(e)}var bl=null;function Gc(e){if(bl=null,e=ea(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bl=e,null}function Jp(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(t1()){case hd:return 2;case dd:return 8;case fs:case n1:return 32;case md:return 268435456;default:return 32}default:return 32}}var qc=!1,hr=null,dr=null,mr=null,Gi=new Map,qi=new Map,pr=[],g2="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".split(" ");function Wp(e,t){switch(e){case"focusin":case"focusout":hr=null;break;case"dragenter":case"dragleave":dr=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":Gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qi.delete(t.pointerId)}}function Ii(e,t,a,s,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ta(t),t!==null&&$p(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function y2(e,t,a,s,o){switch(t){case"focusin":return hr=Ii(hr,e,t,a,s,o),!0;case"dragenter":return dr=Ii(dr,e,t,a,s,o),!0;case"mouseover":return mr=Ii(mr,e,t,a,s,o),!0;case"pointerover":var c=o.pointerId;return Gi.set(c,Ii(Gi.get(c)||null,e,t,a,s,o)),!0;case"gotpointercapture":return c=o.pointerId,qi.set(c,Ii(qi.get(c)||null,e,t,a,s,o)),!0}return!1}function eg(e){var t=ea(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,c1(e.priority,function(){if(a.tag===13){var s=jt();s=Bo(s);var o=da(a,s);o!==null&&Ut(o,a,s),Lc(a,s)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=kc(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);Fo=s,a.target.dispatchEvent(s),Fo=null}else return t=ta(a),t!==null&&$p(t),e.blockedOn=a,!1;t.shift()}return!0}function tg(e,t,a){vl(e)&&a.delete(t)}function _2(){qc=!1,hr!==null&&vl(hr)&&(hr=null),dr!==null&&vl(dr)&&(dr=null),mr!==null&&vl(mr)&&(mr=null),Gi.forEach(tg),qi.forEach(tg)}function El(e,t){e.blockedOn===t&&(e.blockedOn=null,qc||(qc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_2)))}var Sl=null;function ng(e){Sl!==e&&(Sl=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Sl===e&&(Sl=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(Gc(s||a)===null)continue;break}var c=ta(a);c!==null&&(e.splice(t,3),t-=3,Gu(c,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Fi(e){function t(A){return El(A,e)}hr!==null&&El(hr,e),dr!==null&&El(dr,e),mr!==null&&El(mr,e),Gi.forEach(t),qi.forEach(t);for(var a=0;a<pr.length;a++){var s=pr[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<pr.length&&(a=pr[0],a.blockedOn===null);)eg(a),a.blockedOn===null&&pr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],c=a[s+1],p=o[vt]||null;if(typeof c=="function")p||ng(a);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[vt]||null)v=p.formAction;else if(Gc(o)!==null)continue}else v=p.action;typeof v=="function"?a[s+1]=v:(a.splice(s,3),s-=3),ng(a)}}}function Ic(e){this._internalRoot=e}Tl.prototype.render=Ic.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,s=jt();Qp(a,s,e,t,null,null)},Tl.prototype.unmount=Ic.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qp(e.current,2,null,e,null,null),al(),t[Wr]=null}};function Tl(e){this._internalRoot=e}Tl.prototype.unstable_scheduleHydration=function(e){if(e){var t=bd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<pr.length&&t!==0&&t<pr[a].priority;a++);pr.splice(a,0,e),a===0&&eg(e)}};var rg=r.version;if(rg!=="19.1.0")throw Error(l(527,rg,"19.1.0"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var b2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xl.isDisabled&&xl.supportsFiber)try{Za=xl.inject(b2),Rt=xl}catch{}}return Pi.createRoot=function(e,t){if(!u(e))throw Error(l(299));var a=!1,s="",o=b0,c=v0,p=E0,v=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(v=t.unstable_transitionCallbacks)),t=Zp(e,1,!1,null,null,a,s,o,c,p,v,null),e[Wr]=t.current,xc(e),new Ic(t)},Pi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(l(299));var s=!1,o="",c=b0,p=v0,v=E0,A=null,j=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(A=a.unstable_transitionCallbacks),a.formState!==void 0&&(j=a.formState)),t=Zp(e,1,!0,t,a??null,s,o,c,p,v,A,j),t.context=Xp(null),a=t.current,s=jt(),s=Bo(s),o=Jn(s),o.callback=null,Wn(a,o,s),a=s,t.current.lanes=a,Qa(t,a),pn(t),e[Wr]=t.current,xc(e),new Tl(t)},Pi.version="19.1.0",Pi}var dg;function D2(){if(dg)return Vc.exports;dg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Vc.exports=N2(),Vc.exports}var M2=D2(),I=Ia();const F_=go(I);var Qc={exports:{}},Kc={};/**
50
- * @license React
51
- * use-sync-external-store-with-selector.production.js
52
- *
53
- * Copyright (c) Meta Platforms, Inc. and affiliates.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE file in the root directory of this source tree.
57
- */var mg;function B2(){if(mg)return Kc;mg=1;var n=Ia();function r(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:r,l=n.useSyncExternalStore,u=n.useRef,f=n.useEffect,h=n.useMemo,d=n.useDebugValue;return Kc.useSyncExternalStoreWithSelector=function(m,g,_,S,y){var x=u(null);if(x.current===null){var T={hasValue:!1,value:null};x.current=T}else T=x.current;x=h(function(){function N(E){if(!H){if(H=!0,D=E,E=S(E),y!==void 0&&T.hasValue){var U=T.value;if(y(U,E))return O=U}return O=E}if(U=O,i(D,E))return U;var Y=S(E);return y!==void 0&&y(U,Y)?(D=E,U):(D=E,O=Y)}var H=!1,D,O,R=_===void 0?null:_;return[function(){return N(g())},R===null?void 0:function(){return N(R())}]},[g,_,S,y]);var z=l(m,x[0],x[1]);return f(function(){T.hasValue=!0,T.value=z},[z]),d(z),z},Kc}var pg;function j2(){return pg||(pg=1,Qc.exports=B2()),Qc.exports}var U2=j2(),H2=I.version.startsWith("19"),L2=Symbol.for(H2?"react.transitional.element":"react.element"),z2=Symbol.for("react.portal"),k2=Symbol.for("react.fragment"),G2=Symbol.for("react.strict_mode"),q2=Symbol.for("react.profiler"),I2=Symbol.for("react.consumer"),F2=Symbol.for("react.context"),V_=Symbol.for("react.forward_ref"),V2=Symbol.for("react.suspense"),P2=Symbol.for("react.suspense_list"),Nh=Symbol.for("react.memo"),Y2=Symbol.for("react.lazy"),Z2=V_,X2=Nh;function Q2(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case L2:switch(n=n.type,n){case k2:case q2:case G2:case V2:case P2:return n;default:switch(n=n&&n.$$typeof,n){case F2:case V_:case Y2:case Nh:return n;case I2:return n;default:return r}}case z2:return r}}}function K2(n){return Q2(n)===Nh}function $2(n,r,i,l,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:h}){let d=!1,m,g,_,S,y;function x(D,O){return m=D,g=O,_=n(m,g),S=r(l,g),y=i(_,S,g),d=!0,y}function T(){return _=n(m,g),r.dependsOnOwnProps&&(S=r(l,g)),y=i(_,S,g),y}function z(){return n.dependsOnOwnProps&&(_=n(m,g)),r.dependsOnOwnProps&&(S=r(l,g)),y=i(_,S,g),y}function N(){const D=n(m,g),O=!h(D,_);return _=D,O&&(y=i(_,S,g)),y}function H(D,O){const R=!f(O,g),E=!u(D,m,O,g);return m=D,g=O,R&&E?T():R?z():E?N():y}return function(O,R){return d?H(O,R):x(O,R)}}function J2(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const f=r(n,u),h=i(n,u),d=l(n,u);return $2(f,h,d,n,u)}function W2(n,r){const i={};for(const l in n){const u=n[l];typeof u=="function"&&(i[l]=(...f)=>r(u(...f)))}return i}function Wf(n){return function(i){const l=n(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function gg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function P_(n,r){return function(l,{displayName:u}){const f=function(d,m){return f.dependsOnOwnProps?f.mapToProps(d,m):f.mapToProps(d,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(d,m){f.mapToProps=n,f.dependsOnOwnProps=gg(n);let g=f(d,m);return typeof g=="function"&&(f.mapToProps=g,f.dependsOnOwnProps=gg(g),g=f(d,m)),g},f}}function Dh(n,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function eS(n){return n&&typeof n=="object"?Wf(r=>W2(n,r)):n?typeof n=="function"?P_(n):Dh(n,"mapDispatchToProps"):Wf(r=>({dispatch:r}))}function tS(n){return n?typeof n=="function"?P_(n):Dh(n,"mapStateToProps"):Wf(()=>({}))}function nS(n,r,i){return{...i,...n,...r}}function rS(n){return function(i,{displayName:l,areMergedPropsEqual:u}){let f=!1,h;return function(m,g,_){const S=n(m,g,_);return f?u(S,h)||(h=S):(f=!0,h=S),h}}}function aS(n){return n?typeof n=="function"?rS(n):Dh(n,"mergeProps"):()=>nS}function iS(n){n()}function sS(){let n=null,r=null;return{clear(){n=null,r=null},notify(){iS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let l=n;for(;l;)i.push(l),l=l.next;return i},subscribe(i){let l=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:n=u,function(){!l||n===null||(l=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var yg={notify(){},get:()=>[]};function Y_(n,r){let i,l=yg,u=0,f=!1;function h(z){_();const N=l.subscribe(z);let H=!1;return()=>{H||(H=!0,N(),S())}}function d(){l.notify()}function m(){T.onStateChange&&T.onStateChange()}function g(){return f}function _(){u++,i||(i=r?r.addNestedSub(m):n.subscribe(m),l=sS())}function S(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=yg)}function y(){f||(f=!0,_())}function x(){f&&(f=!1,S())}const T={addNestedSub:h,notifyNestedSubs:d,handleChangeWrapper:m,isSubscribed:g,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>l};return T}var lS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oS=lS(),uS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",cS=uS(),fS=()=>oS||cS?I.useLayoutEffect:I.useEffect,lo=fS();function _g(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function $c(n,r){if(_g(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;const i=Object.keys(n),l=Object.keys(r);if(i.length!==l.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!_g(n[i[u]],r[i[u]]))return!1;return!0}var hS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Z_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pS={[Z2]:mS,[X2]:Z_};function bg(n){return K2(n)?Z_:pS[n.$$typeof]||hS}var gS=Object.defineProperty,yS=Object.getOwnPropertyNames,vg=Object.getOwnPropertySymbols,_S=Object.getOwnPropertyDescriptor,bS=Object.getPrototypeOf,Eg=Object.prototype;function eh(n,r){if(typeof r!="string"){if(Eg){const f=bS(r);f&&f!==Eg&&eh(n,f)}let i=yS(r);vg&&(i=i.concat(vg(r)));const l=bg(n),u=bg(r);for(let f=0;f<i.length;++f){const h=i[f];if(!dS[h]&&!(u&&u[h])&&!(l&&l[h])){const d=_S(r,h);try{gS(n,h,d)}catch{}}}}return n}var Jc=Symbol.for("react-redux-context"),Wc=typeof globalThis<"u"?globalThis:{};function vS(){if(!I.createContext)return{};const n=Wc[Jc]??(Wc[Jc]=new Map);let r=n.get(I.createContext);return r||(r=I.createContext(null),n.set(I.createContext,r)),r}var Pn=vS(),ES=[null,null];function SS(n,r,i){lo(()=>n(...r),i)}function TS(n,r,i,l,u,f){n.current=l,i.current=!1,u.current&&(u.current=null,f())}function xS(n,r,i,l,u,f,h,d,m,g,_){if(!n)return()=>{};let S=!1,y=null;const x=()=>{if(S||!d.current)return;const z=r.getState();let N,H;try{N=l(z,u.current)}catch(D){H=D,y=D}H||(y=null),N===f.current?h.current||g():(f.current=N,m.current=N,h.current=!0,_())};return i.onStateChange=x,i.trySubscribe(),x(),()=>{if(S=!0,i.tryUnsubscribe(),i.onStateChange=null,y)throw y}}function AS(n,r){return n===r}function OS(n,r,i,{pure:l,areStatesEqual:u=AS,areOwnPropsEqual:f=$c,areStatePropsEqual:h=$c,areMergedPropsEqual:d=$c,forwardRef:m=!1,context:g=Pn}={}){const _=g,S=tS(n),y=eS(r),x=aS(i),T=!!n;return N=>{const H=N.displayName||N.name||"Component",D=`Connect(${H})`,O={shouldHandleStateChanges:T,displayName:D,wrappedComponentName:H,WrappedComponent:N,initMapStateToProps:S,initMapDispatchToProps:y,initMergeProps:x,areStatesEqual:u,areStatePropsEqual:h,areOwnPropsEqual:f,areMergedPropsEqual:d};function R(Y){const[K,re,ee]=I.useMemo(()=>{const{reactReduxForwardedRef:dt,...xn}=Y;return[Y.context,dt,xn]},[Y]),le=I.useMemo(()=>{let dt=_;return K!=null&&K.Consumer,dt},[K,_]),ie=I.useContext(le),de=!!Y.store&&!!Y.store.getState&&!!Y.store.dispatch,Ie=!!ie&&!!ie.store,Te=de?Y.store:ie.store,G=Ie?ie.getServerState:Te.getState,X=I.useMemo(()=>J2(Te.dispatch,O),[Te]),[J,_e]=I.useMemo(()=>{if(!T)return ES;const dt=Y_(Te,de?void 0:ie.subscription),xn=dt.notifyNestedSubs.bind(dt);return[dt,xn]},[Te,de,ie]),w=I.useMemo(()=>de?ie:{...ie,subscription:J},[de,ie,J]),P=I.useRef(void 0),$=I.useRef(ee),Q=I.useRef(void 0),ae=I.useRef(!1),Se=I.useRef(!1),ce=I.useRef(void 0);lo(()=>(Se.current=!0,()=>{Se.current=!1}),[]);const ht=I.useMemo(()=>()=>Q.current&&ee===$.current?Q.current:X(Te.getState(),ee),[Te,ee]),ze=I.useMemo(()=>xn=>J?xS(T,Te,J,X,$,P,ae,Se,Q,_e,xn):()=>{},[J]);SS(TS,[$,P,ae,ee,Q,_e]);let Ot;try{Ot=I.useSyncExternalStore(ze,ht,G?()=>X(G(),ee):ht)}catch(dt){throw ce.current&&(dt.message+=`
58
- The error may be correlated with this previous error:
59
- ${ce.current.stack}
60
-
61
- `),dt}lo(()=>{ce.current=void 0,Q.current=void 0,P.current=Ot});const Sr=I.useMemo(()=>I.createElement(N,{...Ot,ref:re}),[re,N,Ot]);return I.useMemo(()=>T?I.createElement(le.Provider,{value:w},Sr):Sr,[le,Sr,w])}const U=I.memo(R);if(U.WrappedComponent=N,U.displayName=R.displayName=D,m){const K=I.forwardRef(function(ee,le){return I.createElement(U,{...ee,reactReduxForwardedRef:le})});return K.displayName=D,K.WrappedComponent=N,eh(K,N)}return eh(U,N)}}var RS=OS;function wS(n){const{children:r,context:i,serverState:l,store:u}=n,f=I.useMemo(()=>{const m=Y_(u);return{store:u,subscription:m,getServerState:l?()=>l:void 0}},[u,l]),h=I.useMemo(()=>u.getState(),[u]);lo(()=>{const{subscription:m}=f;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),h!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[f,h]);const d=i||Pn;return I.createElement(d.Provider,{value:f},r)}var CS=wS;function Mh(n=Pn){return function(){return I.useContext(n)}}var X_=Mh();function Q_(n=Pn){const r=n===Pn?X_:Mh(n),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var NS=Q_();function DS(n=Pn){const r=n===Pn?NS:Q_(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var MS=DS(),BS=(n,r)=>n===r;function jS(n=Pn){const r=n===Pn?X_:Mh(n),i=(l,u={})=>{const{equalityFn:f=BS}=typeof u=="function"?{equalityFn:u}:u,h=r(),{store:d,subscription:m,getServerState:g}=h;I.useRef(!0);const _=I.useCallback({[l.name](y){return l(y)}}[l.name],[l]),S=U2.useSyncExternalStoreWithSelector(m.addNestedSub,d.getState,g||d.getState,_,f);return I.useDebugValue(S),S};return Object.assign(i,{withTypes:()=>i}),i}var US=jS(),ef={exports:{}};/*!
62
- Copyright (c) 2018 Jed Watson.
63
- Licensed under the MIT License (MIT), see
64
- http://jedwatson.github.io/classnames
65
- */var Sg;function HS(){return Sg||(Sg=1,function(n){(function(){var r={}.hasOwnProperty;function i(){for(var f="",h=0;h<arguments.length;h++){var d=arguments[h];d&&(f=u(f,l(d)))}return f}function l(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return i.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var h="";for(var d in f)r.call(f,d)&&f[d]&&(h=u(h,d));return h}function u(f,h){return h?f?f+" "+h:f+h:f}n.exports?(i.default=i,n.exports=i):window.classNames=i})()}(ef)),ef.exports}var LS=HS();const Z=go(LS);var th=function(n,r){return th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])},th(n,r)};function Wt(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");th(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var te=function(){return te=Object.assign||function(r){for(var i,l=1,u=arguments.length;l<u;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(r[f]=i[f])}return r},te.apply(this,arguments)};function yo(n,r){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&r.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(n);u<l.length;u++)r.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(n,l[u])&&(i[l[u]]=n[l[u]]);return i}function _n(n,r,i){if(i||arguments.length===2)for(var l=0,u=r.length,f;l<u;l++)(f||!(l in r))&&(f||(f=Array.prototype.slice.call(r,0,l)),f[l]=r[l]);return n.concat(f||Array.prototype.slice.call(r))}function gn(n,r){var i=r&&r.cache?r.cache:VS,l=r&&r.serializer?r.serializer:IS,u=r&&r.strategy?r.strategy:GS;return u(n,{cache:i,serializer:l})}function zS(n){return n==null||typeof n=="number"||typeof n=="boolean"}function kS(n,r,i,l){var u=zS(l)?l:i(l),f=r.get(u);return typeof f>"u"&&(f=n.call(this,l),r.set(u,f)),f}function K_(n,r,i){var l=Array.prototype.slice.call(arguments,3),u=i(l),f=r.get(u);return typeof f>"u"&&(f=n.apply(this,l),r.set(u,f)),f}function $_(n,r,i,l,u){return i.bind(r,n,l,u)}function GS(n,r){var i=n.length===1?kS:K_;return $_(n,this,i,r.cache.create(),r.serializer)}function qS(n,r){return $_(n,this,K_,r.cache.create(),r.serializer)}var IS=function(){return JSON.stringify(arguments)},FS=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(r){return this.cache[r]},n.prototype.set=function(r,i){this.cache[r]=i},n}(),VS={create:function(){return new FS}},yn={variadic:qS},xe;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(xe||(xe={}));var Ge;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})(Ge||(Ge={}));var ka;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(ka||(ka={}));function Tg(n){return n.type===Ge.literal}function PS(n){return n.type===Ge.argument}function J_(n){return n.type===Ge.number}function W_(n){return n.type===Ge.date}function eb(n){return n.type===Ge.time}function tb(n){return n.type===Ge.select}function nb(n){return n.type===Ge.plural}function YS(n){return n.type===Ge.pound}function rb(n){return n.type===Ge.tag}function ab(n){return!!(n&&typeof n=="object"&&n.type===ka.number)}function nh(n){return!!(n&&typeof n=="object"&&n.type===ka.dateTime)}var ib=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ZS=/(?:[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 XS(n){var r={};return n.replace(ZS,function(i){var l=i.length;switch(i[0]){case"G":r.era=l===4?"long":l===5?"narrow":"short";break;case"y":r.year=l===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":r.month=["numeric","2-digit","short","long","narrow"][l-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][l-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=l===4?"long":l===5?"narrow":"short";break;case"e":if(l<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"c":if(l<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][l-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][l-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][l-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][l-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":r.minute=["numeric","2-digit"][l-1];break;case"s":r.second=["numeric","2-digit"][l-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=l<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""}),r}var QS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function KS(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(QS).filter(function(y){return y.length>0}),i=[],l=0,u=r;l<u.length;l++){var f=u[l],h=f.split("/");if(h.length===0)throw new Error("Invalid number skeleton");for(var d=h[0],m=h.slice(1),g=0,_=m;g<_.length;g++){var S=_[g];if(S.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function $S(n){return n.replace(/^(.*?)-/,"")}var xg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,sb=/^(@+)?(\+|#+)?[rs]?$/g,JS=/(\*)(0+)|(#+)(0+)|(0+)/g,lb=/^(0+)$/;function Ag(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(sb,function(i,l,u){return typeof u!="string"?(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length):u==="+"?r.minimumSignificantDigits=l.length:l[0]==="#"?r.maximumSignificantDigits=l.length:(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length+(typeof u=="string"?u.length:0)),""}),r}function ob(n){switch(n){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 WS(n){var r;if(n[0]==="E"&&n[1]==="E"?(r={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(r={notation:"scientific"},n=n.slice(1)),r){var i=n.slice(0,2);if(i==="+!"?(r.signDisplay="always",n=n.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",n=n.slice(2)),!lb.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function Og(n){var r={},i=ob(n);return i||r}function eT(n){for(var r={},i=0,l=n;i<l.length;i++){var u=l[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=$S(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=te(te(te({},r),{notation:"scientific"}),u.options.reduce(function(m,g){return te(te({},m),Og(g))},{}));continue;case"engineering":r=te(te(te({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return te(te({},m),Og(g))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(JS,function(m,g,_,S,y,x){if(g)r.minimumIntegerDigits=_.length;else{if(S&&y)throw new Error("We currently do not support maximum integer digits");if(x)throw new Error("We currently do not support exact integer digits")}return""});continue}if(lb.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(xg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(xg,function(m,g,_,S,y,x){return _==="*"?r.minimumFractionDigits=g.length:S&&S[0]==="#"?r.maximumFractionDigits=S.length:y&&x?(r.minimumFractionDigits=y.length,r.maximumFractionDigits=y.length+x.length):(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length),""});var f=u.options[0];f==="w"?r=te(te({},r),{trailingZeroDisplay:"stripIfInteger"}):f&&(r=te(te({},r),Ag(f)));continue}if(sb.test(u.stem)){r=te(te({},r),Ag(u.stem));continue}var h=ob(u.stem);h&&(r=te(te({},r),h));var d=WS(u.stem);d&&(r=te(te({},r),d))}return r}var Ol={"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 tT(n,r){for(var i="",l=0;l<n.length;l++){var u=n.charAt(l);if(u==="j"){for(var f=0;l+1<n.length&&n.charAt(l+1)===u;)f++,l++;var h=1+(f&1),d=f<2?1:3+(f>>1),m="a",g=nT(r);for((g=="H"||g=="k")&&(d=0);d-- >0;)i+=m;for(;h-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function nT(n){var r=n.hourCycle;if(r===void 0&&n.hourCycles&&n.hourCycles.length&&(r=n.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,l;i!=="root"&&(l=n.maximize().region);var u=Ol[l||""]||Ol[i||""]||Ol["".concat(i,"-001")]||Ol["001"];return u[0]}var tf,rT=new RegExp("^".concat(ib.source,"*")),aT=new RegExp("".concat(ib.source,"*$"));function Re(n,r){return{start:n,end:r}}var iT=!!String.prototype.startsWith&&"_a".startsWith("a",1),sT=!!String.fromCodePoint,lT=!!Object.fromEntries,oT=!!String.prototype.codePointAt,uT=!!String.prototype.trimStart,cT=!!String.prototype.trimEnd,fT=!!Number.isSafeInteger,hT=fT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},rh=!0;try{var dT=cb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rh=((tf=dT.exec("a"))===null||tf===void 0?void 0:tf[0])==="a"}catch{rh=!1}var Rg=iT?function(r,i,l){return r.startsWith(i,l)}:function(r,i,l){return r.slice(l,l+i.length)===i},ah=sT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var l="",u=r.length,f=0,h;u>f;){if(h=r[f++],h>1114111)throw RangeError(h+" is not a valid code point");l+=h<65536?String.fromCharCode(h):String.fromCharCode(((h-=65536)>>10)+55296,h%1024+56320)}return l},wg=lT?Object.fromEntries:function(r){for(var i={},l=0,u=r;l<u.length;l++){var f=u[l],h=f[0],d=f[1];i[h]=d}return i},ub=oT?function(r,i){return r.codePointAt(i)}:function(r,i){var l=r.length;if(!(i<0||i>=l)){var u=r.charCodeAt(i),f;return u<55296||u>56319||i+1===l||(f=r.charCodeAt(i+1))<56320||f>57343?u:(u-55296<<10)+(f-56320)+65536}},mT=uT?function(r){return r.trimStart()}:function(r){return r.replace(rT,"")},pT=cT?function(r){return r.trimEnd()}:function(r){return r.replace(aT,"")};function cb(n,r){return new RegExp(n,r)}var ih;if(rh){var Cg=cb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ih=function(r,i){var l;Cg.lastIndex=i;var u=Cg.exec(r);return(l=u[1])!==null&&l!==void 0?l:""}}else ih=function(r,i){for(var l=[];;){var u=ub(r,i);if(u===void 0||fb(u)||bT(u))break;l.push(u),i+=u>=65536?2:1}return ah.apply(void 0,l)};var gT=function(){function n(r,i){i===void 0&&(i={}),this.message=r,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 n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(r,i,l){for(var u=[];!this.isEOF();){var f=this.char();if(f===123){var h=this.parseArgument(r,l);if(h.err)return h;u.push(h.val)}else{if(f===125&&r>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),u.push({type:Ge.pound,location:Re(d,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(xe.UNMATCHED_CLOSING_TAG,Re(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&sh(this.peek()||0)){var h=this.parseTag(r,i);if(h.err)return h;u.push(h.val)}else{var h=this.parseLiteral(r,i);if(h.err)return h;u.push(h.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(r,i){var l=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ge.literal,value:"<".concat(u,"/>"),location:Re(l,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(r+1,i,!0);if(f.err)return f;var h=f.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sh(this.char()))return this.error(xe.INVALID_TAG,Re(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(xe.UNMATCHED_CLOSING_TAG,Re(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ge.tag,value:u,children:h,location:Re(l,this.clonePosition())},err:null}:this.error(xe.INVALID_TAG,Re(d,this.clonePosition())))}else return this.error(xe.UNCLOSED_TAG,Re(l,this.clonePosition()))}else return this.error(xe.INVALID_TAG,Re(l,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&_T(this.char());)this.bump();return this.message.slice(r,this.offset())},n.prototype.parseLiteral=function(r,i){for(var l=this.clonePosition(),u="";;){var f=this.tryParseQuote(i);if(f){u+=f;continue}var h=this.tryParseUnquoted(r,i);if(h){u+=h;continue}var d=this.tryParseLeftAngleBracket();if(d){u+=d;continue}break}var m=Re(l,this.clonePosition());return{val:{type:Ge.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!yT(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(r){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(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var l=this.char();if(l===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(l);this.bump()}return ah.apply(void 0,i)},n.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var l=this.char();return l===60||l===123||l===35&&(i==="plural"||i==="selectordinal")||l===125&&r>0?null:(this.bump(),ah(l))},n.prototype.parseArgument=function(r,i){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xe.EMPTY_ARGUMENT,Re(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(xe.MALFORMED_ARGUMENT,Re(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ge.argument,value:u,location:Re(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(l,this.clonePosition())):this.parseArgumentOptions(r,i,u,l);default:return this.error(xe.MALFORMED_ARGUMENT,Re(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),l=ih(this.message,i),u=i+l.length;this.bumpTo(u);var f=this.clonePosition(),h=Re(r,f);return{value:l,location:h}},n.prototype.parseArgumentOptions=function(r,i,l,u){var f,h=this.clonePosition(),d=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(d){case"":return this.error(xe.EXPECT_ARGUMENT_TYPE,Re(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var _=this.clonePosition(),S=this.parseSimpleArgStyleIfPossible();if(S.err)return S;var y=pT(S.val);if(y.length===0)return this.error(xe.EXPECT_ARGUMENT_STYLE,Re(this.clonePosition(),this.clonePosition()));var x=Re(_,this.clonePosition());g={style:y,styleLocation:x}}var T=this.tryParseArgumentClose(u);if(T.err)return T;var z=Re(u,this.clonePosition());if(g&&Rg(g==null?void 0:g.style,"::",0)){var N=mT(g.style.slice(2));if(d==="number"){var S=this.parseNumberSkeletonFromString(N,g.styleLocation);return S.err?S:{val:{type:Ge.number,value:l,location:z,style:S.val},err:null}}else{if(N.length===0)return this.error(xe.EXPECT_DATE_TIME_SKELETON,z);var H=N;this.locale&&(H=tT(N,this.locale));var y={type:ka.dateTime,pattern:H,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?XS(H):{}},D=d==="date"?Ge.date:Ge.time;return{val:{type:D,value:l,location:z,style:y},err:null}}}return{val:{type:d==="number"?Ge.number:d==="date"?Ge.date:Ge.time,value:l,location:z,style:(f=g==null?void 0:g.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(xe.EXPECT_SELECT_ARGUMENT_OPTIONS,Re(O,te({},O)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),E=0;if(d!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Re(this.clonePosition(),this.clonePosition()));this.bumpSpace();var S=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(S.err)return S;this.bumpSpace(),R=this.parseIdentifierIfPossible(),E=S.val}var U=this.tryParsePluralOrSelectOptions(r,d,i,R);if(U.err)return U;var T=this.tryParseArgumentClose(u);if(T.err)return T;var Y=Re(u,this.clonePosition());return d==="select"?{val:{type:Ge.select,value:l,options:wg(U.val),location:Y},err:null}:{val:{type:Ge.plural,value:l,options:wg(U.val),offset:E,pluralType:d==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(xe.INVALID_ARGUMENT_TYPE,Re(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,Re(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var l=this.char();switch(l){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(xe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Re(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=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}},n.prototype.parseNumberSkeletonFromString=function(r,i){var l=[];try{l=KS(r)}catch{return this.error(xe.INVALID_NUMBER_SKELETON,i)}return{val:{type:ka.number,tokens:l,location:i,parsedOptions:this.shouldParseSkeletons?eT(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,l,u){for(var f,h=!1,d=[],m=new Set,g=u.value,_=u.location;;){if(g.length===0){var S=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,xe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;_=Re(S,this.clonePosition()),g=this.message.slice(S.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?xe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:xe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,_);g==="other"&&(h=!0),this.bumpSpace();var x=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?xe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:xe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Re(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(r+1,i,l);if(T.err)return T;var z=this.tryParseArgumentClose(x);if(z.err)return z;d.push([g,{value:T.val,location:Re(x,this.clonePosition())}]),m.add(g),this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=f.value,_=f.location}return d.length===0?this.error(i==="select"?xe.EXPECT_SELECT_ARGUMENT_SELECTOR:xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Re(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(xe.MISSING_OTHER_CLAUSE,Re(this.clonePosition(),this.clonePosition())):{val:d,err:null}},n.prototype.tryParseDecimalInteger=function(r,i){var l=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(l=-1);for(var f=!1,h=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)f=!0,h=h*10+(d-48),this.bump();else break}var m=Re(u,this.clonePosition());return f?(h*=l,hT(h)?{val:h,err:null}:this.error(i,m)):this.error(r,m)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=ub(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},n.prototype.bumpIf=function(r){if(Rg(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(r){var i=this.offset(),l=this.message.indexOf(r,i);return l>=0?(this.bumpTo(l),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&fb(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),l=this.message.charCodeAt(i+(r>=65536?2:1));return l??null},n}();function sh(n){return n>=97&&n<=122||n>=65&&n<=90}function yT(n){return sh(n)||n===47}function _T(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function fb(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function bT(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function lh(n){n.forEach(function(r){if(delete r.location,tb(r)||nb(r))for(var i in r.options)delete r.options[i].location,lh(r.options[i].value);else J_(r)&&ab(r.style)||(W_(r)||eb(r))&&nh(r.style)?delete r.style.location:rb(r)&&lh(r.children)})}function vT(n,r){r===void 0&&(r={}),r=te({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new gT(n,r).parse();if(i.err){var l=SyntaxError(xe[i.err.kind]);throw l.location=i.err.location,l.originalMessage=i.err.message,l}return r!=null&&r.captureLocation||lh(i.val),i.val}var En;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(En||(En={}));var Er=function(n){Wt(r,n);function r(i,l,u){var f=n.call(this,i)||this;return f.code=l,f.originalMessage=u,f}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Ng=function(n){Wt(r,n);function r(i,l,u,f){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(l,'". Options are "').concat(Object.keys(u).join('", "'),'"'),En.INVALID_VALUE,f)||this}return r}(Er),ET=function(n){Wt(r,n);function r(i,l,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(l),En.INVALID_VALUE,u)||this}return r}(Er),ST=function(n){Wt(r,n);function r(i,l){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(l,'"'),En.MISSING_VALUE,l)||this}return r}(Er),_t;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(_t||(_t={}));function TT(n){return n.length<2?n:n.reduce(function(r,i){var l=r[r.length-1];return!l||l.type!==_t.literal||i.type!==_t.literal?r.push(i):l.value+=i.value,r},[])}function hb(n){return typeof n=="function"}function to(n,r,i,l,u,f,h){if(n.length===1&&Tg(n[0]))return[{type:_t.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var _=g[m];if(Tg(_)){d.push({type:_t.literal,value:_.value});continue}if(YS(_)){typeof f=="number"&&d.push({type:_t.literal,value:i.getNumberFormat(r).format(f)});continue}var S=_.value;if(!(u&&S in u))throw new ST(S,h);var y=u[S];if(PS(_)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),d.push({type:typeof y=="string"?_t.literal:_t.object,value:y});continue}if(W_(_)){var x=typeof _.style=="string"?l.date[_.style]:nh(_.style)?_.style.parsedOptions:void 0;d.push({type:_t.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(eb(_)){var x=typeof _.style=="string"?l.time[_.style]:nh(_.style)?_.style.parsedOptions:l.time.medium;d.push({type:_t.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(J_(_)){var x=typeof _.style=="string"?l.number[_.style]:ab(_.style)?_.style.parsedOptions:void 0;x&&x.scale&&(y=y*(x.scale||1)),d.push({type:_t.literal,value:i.getNumberFormat(r,x).format(y)});continue}if(rb(_)){var T=_.children,z=_.value,N=u[z];if(!hb(N))throw new ET(z,"function",h);var H=to(T,r,i,l,u,f),D=N(H.map(function(E){return E.value}));Array.isArray(D)||(D=[D]),d.push.apply(d,D.map(function(E){return{type:typeof E=="string"?_t.literal:_t.object,value:E}}))}if(tb(_)){var O=_.options[y]||_.options.other;if(!O)throw new Ng(_.value,y,Object.keys(_.options),h);d.push.apply(d,to(O.value,r,i,l,u));continue}if(nb(_)){var O=_.options["=".concat(y)];if(!O){if(!Intl.PluralRules)throw new Er(`Intl.PluralRules is not available in this environment.
66
- Try polyfilling it using "@formatjs/intl-pluralrules"
67
- `,En.MISSING_INTL_API,h);var R=i.getPluralRules(r,{type:_.pluralType}).select(y-(_.offset||0));O=_.options[R]||_.options.other}if(!O)throw new Ng(_.value,y,Object.keys(_.options),h);d.push.apply(d,to(O.value,r,i,l,u,y-(_.offset||0)));continue}}return TT(d)}function xT(n,r){return r?te(te(te({},n||{}),r||{}),Object.keys(n).reduce(function(i,l){return i[l]=te(te({},n[l]),r[l]||{}),i},{})):n}function AT(n,r){return r?Object.keys(n).reduce(function(i,l){return i[l]=xT(n[l],r[l]),i},te({},n)):n}function nf(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function OT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.NumberFormat).bind.apply(r,_n([void 0],i,!1)))},{cache:nf(n.number),strategy:yn.variadic}),getDateTimeFormat:gn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.DateTimeFormat).bind.apply(r,_n([void 0],i,!1)))},{cache:nf(n.dateTime),strategy:yn.variadic}),getPluralRules:gn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.PluralRules).bind.apply(r,_n([void 0],i,!1)))},{cache:nf(n.pluralRules),strategy:yn.variadic})}}var db=function(){function n(r,i,l,u){i===void 0&&(i=n.defaultLocale);var f=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=f.formatToParts(m);if(g.length===1)return g[0].value;var _=g.reduce(function(S,y){return!S.length||y.type!==_t.literal||typeof S[S.length-1]!="string"?S.push(y.value):S[S.length-1]+=y.value,S},[]);return _.length<=1?_[0]||"":_},this.formatToParts=function(m){return to(f.ast,f.locales,f.formatters,f.formats,m,void 0,f.message)},this.resolvedOptions=function(){var m;return{locale:((m=f.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=i,this.resolvedLocale=n.resolveLocale(i),typeof r=="string"){if(this.message=r,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=u||{};h.formatters;var d=yo(h,["formatters"]);this.ast=n.__parse(r,te(te({},d),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=AT(n.formats,l),this.formatters=u&&u.formatters||OT(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},n.__parse=vT,n.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"}}},n}(),Kr;(function(n){n.FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Kr||(Kr={}));var os=function(n){Wt(r,n);function r(i,l,u){var f=this,h=u?u instanceof Error?u:new Error(String(u)):void 0;return f=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(l,`
68
- `).concat(h?`
69
- `.concat(h.message,`
70
- `).concat(h.stack):""))||this,f.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,r),f}return r}(Error),RT=function(n){Wt(r,n);function r(i,l){return n.call(this,Kr.UNSUPPORTED_FORMATTER,i,l)||this}return r}(os),wT=function(n){Wt(r,n);function r(i,l){return n.call(this,Kr.INVALID_CONFIG,i,l)||this}return r}(os),Dg=function(n){Wt(r,n);function r(i,l){return n.call(this,Kr.MISSING_DATA,i,l)||this}return r}(os),en=function(n){Wt(r,n);function r(i,l,u){var f=n.call(this,Kr.FORMAT_ERROR,"".concat(i,`
71
- Locale: `).concat(l,`
72
- `),u)||this;return f.locale=l,f}return r}(os),rf=function(n){Wt(r,n);function r(i,l,u,f){var h=n.call(this,"".concat(i,`
73
- MessageID: `).concat(u==null?void 0:u.id,`
74
- Default Message: `).concat(u==null?void 0:u.defaultMessage,`
75
- Description: `).concat(u==null?void 0:u.description,`
76
- `),l,f)||this;return h.descriptor=u,h.locale=l,h}return r}(en),CT=function(n){Wt(r,n);function r(i,l){var u=n.call(this,Kr.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(l,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(f){var h;return(h=f.value)!==null&&h!==void 0?h:JSON.stringify(f)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(os);function NT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Fa(n,r,i){return i===void 0&&(i={}),r.reduce(function(l,u){return u in n?l[u]=n[u]:u in i&&(l[u]=i[u]),l},{})}var DT=function(n){},MT=function(n){},mb={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:DT,onWarn:MT};function pb(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function qr(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function BT(n){n===void 0&&(n=pb());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,l=Intl.DisplayNames,u=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.DateTimeFormat).bind.apply(d,_n([void 0],m,!1)))},{cache:qr(n.dateTime),strategy:yn.variadic}),f=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.NumberFormat).bind.apply(d,_n([void 0],m,!1)))},{cache:qr(n.number),strategy:yn.variadic}),h=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.PluralRules).bind.apply(d,_n([void 0],m,!1)))},{cache:qr(n.pluralRules),strategy:yn.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:gn(function(d,m,g,_){return new db(d,m,g,te({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:h}},_||{}))},{cache:qr(n.message),strategy:yn.variadic}),getRelativeTimeFormat:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(r.bind.apply(r,_n([void 0],d,!1)))},{cache:qr(n.relativeTime),strategy:yn.variadic}),getPluralRules:h,getListFormat:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(i.bind.apply(i,_n([void 0],d,!1)))},{cache:qr(n.list),strategy:yn.variadic}),getDisplayNames:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(l.bind.apply(l,_n([void 0],d,!1)))},{cache:qr(n.displayNames),strategy:yn.variadic})}}function Bh(n,r,i,l){var u=n&&n[r],f;if(u&&(f=u[i]),f)return f;l(new RT("No ".concat(r," format named: ").concat(i)))}function Rl(n,r){return Object.keys(n).reduce(function(i,l){return i[l]=te({timeZone:r},n[l]),i},{})}function Mg(n,r){var i=Object.keys(te(te({},n),r));return i.reduce(function(l,u){return l[u]=te(te({},n[u]||{}),r[u]||{}),l},{})}function Bg(n,r){if(!r)return n;var i=db.formats;return te(te(te({},i),n),{date:Mg(Rl(i.date,r),Rl(n.date||{},r)),time:Mg(Rl(i.time,r),Rl(n.time||{},r))})}var oh=function(n,r,i,l,u){var f=n.locale,h=n.formats,d=n.messages,m=n.defaultLocale,g=n.defaultFormats,_=n.fallbackOnEmptyString,S=n.onError,y=n.timeZone,x=n.defaultRichTextElements;i===void 0&&(i={id:""});var T=i.id,z=i.defaultMessage;NT(!!T,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var N=String(T),H=d&&Object.prototype.hasOwnProperty.call(d,N)&&d[N];if(Array.isArray(H)&&H.length===1&&H[0].type===Ge.literal)return H[0].value;if(!l&&H&&typeof H=="string"&&!x)return H.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=te(te({},x),l||{}),h=Bg(h,y),g=Bg(g,y),!H){if(_===!1&&H==="")return H;if((!z||f&&f.toLowerCase()!==m.toLowerCase())&&S(new CT(i,f)),z)try{var D=r.getMessageFormat(z,m,g,u);return D.format(l)}catch(O){return S(new rf('Error formatting default message for: "'.concat(N,'", rendering default message verbatim'),f,i,O)),typeof z=="string"?z:N}return N}try{var D=r.getMessageFormat(H,f,h,te({formatters:r},u||{}));return D.format(l)}catch(O){S(new rf('Error formatting message: "'.concat(N,'", using ').concat(z?"default message":"id"," as fallback."),f,i,O))}if(z)try{var D=r.getMessageFormat(z,m,g,u);return D.format(l)}catch(O){S(new rf('Error formatting the default message for: "'.concat(N,'", rendering message verbatim'),f,i,O))}return typeof H=="string"?H:typeof z=="string"?z:N},jT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function us(n,r,i,l){var u=n.locale,f=n.formats,h=n.onError,d=n.timeZone;l===void 0&&(l={});var m=l.format,g=te(te({},d&&{timeZone:d}),m&&Bh(f,r,m,h)),_=Fa(l,jT,g);return r==="time"&&!_.hour&&!_.minute&&!_.second&&!_.timeStyle&&!_.dateStyle&&(_=te(te({},_),{hour:"numeric",minute:"numeric"})),i(u,_)}function UT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=f===void 0?{}:f,d=typeof u=="string"?new Date(u||0):u;try{return us(n,"date",r,h).format(d)}catch(m){n.onError(new en("Error formatting date.",n.locale,m))}return String(d)}function HT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=f===void 0?{}:f,d=typeof u=="string"?new Date(u||0):u;try{return us(n,"time",r,h).format(d)}catch(m){n.onError(new en("Error formatting time.",n.locale,m))}return String(d)}function LT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=i[2],d=h===void 0?{}:h,m=typeof u=="string"?new Date(u||0):u,g=typeof f=="string"?new Date(f||0):f;try{return us(n,"dateTimeRange",r,d).formatRange(m,g)}catch(_){n.onError(new en("Error formatting date time range.",n.locale,_))}return String(m)}function zT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=f===void 0?{}:f,d=typeof u=="string"?new Date(u||0):u;try{return us(n,"date",r,h).formatToParts(d)}catch(m){n.onError(new en("Error formatting date.",n.locale,m))}return[]}function kT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],f=i[1],h=f===void 0?{}:f,d=typeof u=="string"?new Date(u||0):u;try{return us(n,"time",r,h).formatToParts(d)}catch(m){n.onError(new en("Error formatting time.",n.locale,m))}return[]}var GT=["style","type","fallback","languageDisplay"];function qT(n,r,i,l){var u=n.locale,f=n.onError,h=Intl.DisplayNames;h||f(new Er(`Intl.DisplayNames is not available in this environment.
77
- Try polyfilling it using "@formatjs/intl-displaynames"
78
- `,En.MISSING_INTL_API));var d=Fa(l,GT);try{return r(u,d).of(i)}catch(m){f(new en("Error formatting display name.",u,m))}}var IT=["type","style"],jg=Date.now();function FT(n){return"".concat(jg,"_").concat(n,"_").concat(jg)}function VT(n,r,i,l){l===void 0&&(l={});var u=gb(n,r,i,l).reduce(function(f,h){var d=h.value;return typeof d!="string"?f.push(d):typeof f[f.length-1]=="string"?f[f.length-1]+=d:f.push(d),f},[]);return u.length===1?u[0]:u.length===0?"":u}function gb(n,r,i,l){var u=n.locale,f=n.onError;l===void 0&&(l={});var h=Intl.ListFormat;h||f(new Er(`Intl.ListFormat is not available in this environment.
79
- Try polyfilling it using "@formatjs/intl-listformat"
80
- `,En.MISSING_INTL_API));var d=Fa(l,IT);try{var m={},g=i.map(function(_,S){if(typeof _=="object"){var y=FT(S);return m[y]=_,y}return String(_)});return r(u,d).formatToParts(g).map(function(_){return _.type==="literal"?_:te(te({},_),{value:m[_.value]||_.value})})}catch(_){f(new en("Error formatting list.",u,_))}return i}var PT=["type"];function YT(n,r,i,l){var u=n.locale,f=n.onError;l===void 0&&(l={}),Intl.PluralRules||f(new Er(`Intl.PluralRules is not available in this environment.
81
- Try polyfilling it using "@formatjs/intl-pluralrules"
82
- `,En.MISSING_INTL_API));var h=Fa(l,PT);try{return r(u,h).select(i)}catch(d){f(new en("Error formatting plural.",u,d))}return"other"}var ZT=["numeric","style"];function XT(n,r,i){var l=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,d=!!h&&Bh(u,"relative",h,f)||{},m=Fa(i,ZT,d);return r(l,m)}function QT(n,r,i,l,u){u===void 0&&(u={}),l||(l="second");var f=Intl.RelativeTimeFormat;f||n.onError(new Er(`Intl.RelativeTimeFormat is not available in this environment.
83
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
- `,En.MISSING_INTL_API));try{return XT(n,r,u).format(i,l)}catch(h){n.onError(new en("Error formatting relative time.",n.locale,h))}return String(i)}var KT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function yb(n,r,i){var l=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,d=h&&Bh(u,"number",h,f)||{},m=Fa(i,KT,d);return r(l,m)}function $T(n,r,i,l){l===void 0&&(l={});try{return yb(n,r,l).format(i)}catch(u){n.onError(new en("Error formatting number.",n.locale,u))}return String(i)}function JT(n,r,i,l){l===void 0&&(l={});try{return yb(n,r,l).formatToParts(i)}catch(u){n.onError(new en("Error formatting number.",n.locale,u))}return[]}function WT(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function ex(n){n.onWarn&&n.defaultRichTextElements&&WT(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
85
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
86
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function tx(n,r){var i=BT(r),l=te(te({},mb),n),u=l.locale,f=l.defaultLocale,h=l.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new Dg('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&h&&h(new Dg('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(h&&h(new wT('"locale" was not configured, using "'.concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),l.locale=l.defaultLocale||"en"),ex(l),te(te({},l),{formatters:i,formatNumber:$T.bind(null,l,i.getNumberFormat),formatNumberToParts:JT.bind(null,l,i.getNumberFormat),formatRelativeTime:QT.bind(null,l,i.getRelativeTimeFormat),formatDate:UT.bind(null,l,i.getDateTimeFormat),formatDateToParts:zT.bind(null,l,i.getDateTimeFormat),formatTime:HT.bind(null,l,i.getDateTimeFormat),formatDateTimeRange:LT.bind(null,l,i.getDateTimeFormat),formatTimeToParts:kT.bind(null,l,i.getDateTimeFormat),formatPlural:YT.bind(null,l,i.getPluralRules),formatMessage:oh.bind(null,l,i),$t:oh.bind(null,l,i),formatList:VT.bind(null,l,i.getListFormat),formatListToParts:gb.bind(null,l,i.getListFormat),formatDisplayName:qT.bind(null,l,i.getDisplayNames)})}function nx(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function _b(n){nx(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var bb=te(te({},mb),{textComponent:I.Fragment}),rx={key:42},ax=function(n){return I.isValidElement(n)?I.createElement(I.Fragment,rx,n):n},ix=function(n){var r;return(r=I.Children.map(n,ax))!==null&&r!==void 0?r:[]};function sx(n){return function(r){return n(I.Children.toArray(r))}}function lx(n,r){if(n===r)return!0;if(!n||!r)return!1;var i=Object.keys(n),l=Object.keys(r),u=i.length;if(l.length!==u)return!1;for(var f=0;f<u;f++){var h=i[f];if(n[h]!==r[h]||!Object.prototype.hasOwnProperty.call(r,h))return!1}return!0}var af={exports:{}},De={};/** @license React v16.13.1
87
- * react-is.production.min.js
88
- *
89
- * Copyright (c) Facebook, Inc. and its affiliates.
90
- *
91
- * This source code is licensed under the MIT license found in the
92
- * LICENSE file in the root directory of this source tree.
93
- */var Ug;function ox(){if(Ug)return De;Ug=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,_=n?Symbol.for("react.forward_ref"):60112,S=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,x=n?Symbol.for("react.memo"):60115,T=n?Symbol.for("react.lazy"):60116,z=n?Symbol.for("react.block"):60121,N=n?Symbol.for("react.fundamental"):60117,H=n?Symbol.for("react.responder"):60118,D=n?Symbol.for("react.scope"):60119;function O(E){if(typeof E=="object"&&E!==null){var U=E.$$typeof;switch(U){case r:switch(E=E.type,E){case m:case g:case l:case f:case u:case S:return E;default:switch(E=E&&E.$$typeof,E){case d:case _:case T:case x:case h:return E;default:return U}}case i:return U}}}function R(E){return O(E)===g}return De.AsyncMode=m,De.ConcurrentMode=g,De.ContextConsumer=d,De.ContextProvider=h,De.Element=r,De.ForwardRef=_,De.Fragment=l,De.Lazy=T,De.Memo=x,De.Portal=i,De.Profiler=f,De.StrictMode=u,De.Suspense=S,De.isAsyncMode=function(E){return R(E)||O(E)===m},De.isConcurrentMode=R,De.isContextConsumer=function(E){return O(E)===d},De.isContextProvider=function(E){return O(E)===h},De.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},De.isForwardRef=function(E){return O(E)===_},De.isFragment=function(E){return O(E)===l},De.isLazy=function(E){return O(E)===T},De.isMemo=function(E){return O(E)===x},De.isPortal=function(E){return O(E)===i},De.isProfiler=function(E){return O(E)===f},De.isStrictMode=function(E){return O(E)===u},De.isSuspense=function(E){return O(E)===S},De.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===l||E===g||E===f||E===u||E===S||E===y||typeof E=="object"&&E!==null&&(E.$$typeof===T||E.$$typeof===x||E.$$typeof===h||E.$$typeof===d||E.$$typeof===_||E.$$typeof===N||E.$$typeof===H||E.$$typeof===D||E.$$typeof===z)},De.typeOf=O,De}var Hg;function ux(){return Hg||(Hg=1,af.exports=ox()),af.exports}var sf,Lg;function cx(){if(Lg)return sf;Lg=1;var n=ux(),r={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},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=l,f[n.Memo]=u;function h(T){return n.isMemo(T)?u:f[T.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,y=Object.prototype;function x(T,z,N){if(typeof z!="string"){if(y){var H=S(z);H&&H!==y&&x(T,H,N)}var D=m(z);g&&(D=D.concat(g(z)));for(var O=h(T),R=h(z),E=0;E<D.length;++E){var U=D[E];if(!i[U]&&!(N&&N[U])&&!(R&&R[U])&&!(O&&O[U])){var Y=_(z,U);try{d(T,U,Y)}catch{}}}}return T}return sf=x,sf}cx();var jh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=I.createContext(null)):I.createContext(null);jh.Consumer;var fx=jh.Provider,hx=fx,dx=jh;function _o(){var n=I.useContext(dx);return _b(n),n}var uh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(uh||(uh={}));var ch;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(ch||(ch={}));function vb(n){var r=function(i){var l=_o(),u=i.value,f=i.children,h=yo(i,["value","children"]),d=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?l.formatDateToParts(d,h):l.formatTimeToParts(d,h);return f(m)};return r.displayName=ch[n],r}function cs(n){var r=function(i){var l=_o(),u=i.value,f=i.children,h=yo(i,["value","children"]),d=l[n](u,h);if(typeof f=="function")return f(d);var m=l.textComponent||I.Fragment;return I.createElement(m,null,d)};return r.displayName=uh[n],r}function Eb(n){return n&&Object.keys(n).reduce(function(r,i){var l=n[i];return r[i]=hb(l)?sx(l):l,r},{})}var zg=function(n,r,i,l){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var h=Eb(l),d=oh.apply(void 0,_n([n,r,i,h],u,!1));return Array.isArray(d)?ix(d):d},kg=function(n,r){var i=n.defaultRichTextElements,l=yo(n,["defaultRichTextElements"]),u=Eb(i),f=tx(te(te(te({},bb),l),{defaultRichTextElements:u}),r),h={locale:f.locale,timeZone:f.timeZone,fallbackOnEmptyString:f.fallbackOnEmptyString,formats:f.formats,defaultLocale:f.defaultLocale,defaultFormats:f.defaultFormats,messages:f.messages,onError:f.onError,defaultRichTextElements:u};return te(te({},f),{formatMessage:zg.bind(null,h,f.formatters),$t:zg.bind(null,h,f.formatters)})};function lf(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}var mx=function(n){Wt(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=pb(),i.state={cache:i.cache,intl:kg(lf(i.props),i.cache),prevConfig:lf(i.props)},i}return r.getDerivedStateFromProps=function(i,l){var u=l.prevConfig,f=l.cache,h=lf(i);return lx(u,h)?null:{intl:kg(h,f),prevConfig:h}},r.prototype.render=function(){return _b(this.state.intl),I.createElement(hx,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=bb,r}(I.PureComponent);cs("formatDate");cs("formatTime");cs("formatNumber");cs("formatList");cs("formatDisplayName");vb("formatDate");vb("formatTime");const px="_app_1rj0t_1",gx={app:px},Va=MS,kt=US,Sb="%[a-f0-9]{2}",Gg=new RegExp("("+Sb+")|([^%]+?)","gi"),qg=new RegExp("("+Sb+")+","gi");function fh(n,r){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;r=r||1;const i=n.slice(0,r),l=n.slice(r);return Array.prototype.concat.call([],fh(i),fh(l))}function yx(n){try{return decodeURIComponent(n)}catch{let r=n.match(Gg)||[];for(let i=1;i<r.length;i++)n=fh(r,i).join(""),r=n.match(Gg)||[];return n}}function _x(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=qg.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=yx(i[0]);u!==i[0]&&(r[i[0]]=u)}i=qg.exec(n)}r["%C2"]="�";const l=Object.keys(r);for(const u of l)n=n.replace(new RegExp(u,"g"),r[u]);return n}function bx(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return _x(n)}}function vx(n,r){const i={};if(Array.isArray(r))for(const l of r){const u=Object.getOwnPropertyDescriptor(n,l);u!=null&&u.enumerable&&Object.defineProperty(i,l,u)}else for(const l of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,l);if(u.enumerable){const f=n[l];r(l,f,n)&&Object.defineProperty(i,l,u)}}return i}function Tb(n,r){if(!(typeof n=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||r==="")return[];const i=n.indexOf(r);return i===-1?[]:[n.slice(0,i),n.slice(i+r.length)]}const Ex=n=>n==null,Sx=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),hh=Symbol("encodeFragmentIdentifier");function Tx(n){switch(n.arrayFormat){case"index":return r=>(i,l)=>{const u=i.length;return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[$e(r,n),"[",u,"]"].join("")]:[...i,[$e(r,n),"[",$e(u,n),"]=",$e(l,n)].join("")]};case"bracket":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[$e(r,n),"[]"].join("")]:[...i,[$e(r,n),"[]=",$e(l,n)].join("")];case"colon-list-separator":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[$e(r,n),":list="].join("")]:[...i,[$e(r,n),":list=",$e(l,n)].join("")];case"comma":case"separator":case"bracket-separator":{const r=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(l,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?l:(u=u===null?"":u,l.length===0?[[$e(i,n),r,$e(u,n)].join("")]:[[l,$e(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,$e(r,n)]:[...i,[$e(r,n),"=",$e(l,n)].join("")]}}function xx(n){let r;switch(n.arrayFormat){case"index":return(i,l,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=l;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=l};case"bracket":return(i,l,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=l;return}if(u[i]===void 0){u[i]=[l];return}u[i]=[...u[i],l]};case"colon-list-separator":return(i,l,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=l;return}if(u[i]===void 0){u[i]=[l];return}u[i]=[...u[i],l]};case"comma":case"separator":return(i,l,u)=>{const f=typeof l=="string"&&l.includes(n.arrayFormatSeparator),h=typeof l=="string"&&!f&&In(l,n).includes(n.arrayFormatSeparator);l=h?In(l,n):l;const d=f||h?l.split(n.arrayFormatSeparator).map(m=>In(m,n)):l===null?l:In(l,n);u[i]=d};case"bracket-separator":return(i,l,u)=>{const f=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!f){u[i]=l&&In(l,n);return}const h=l===null?[]:In(l,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=h;return}u[i]=[...u[i],...h]};default:return(i,l,u)=>{if(u[i]===void 0){u[i]=l;return}u[i]=[...[u[i]].flat(),l]}}}function xb(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $e(n,r){return r.encode?r.strict?Sx(n):encodeURIComponent(n):n}function In(n,r){return r.decode?bx(n):n}function Ab(n){return Array.isArray(n)?n.sort():typeof n=="object"?Ab(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function Ob(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function Ax(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function Ig(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="string[]"&&r.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):r.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Uh(n){n=Ob(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function Hh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},xb(r.arrayFormatSeparator);const i=xx(r),l=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return l;for(const u of n.split("&")){if(u==="")continue;const f=r.decode?u.replaceAll("+"," "):u;let[h,d]=Tb(f,"=");h===void 0&&(h=f),d=d===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?d:In(d,r),i(In(h,r),d,l)}for(const[u,f]of Object.entries(l))if(typeof f=="object"&&f!==null&&r.types[u]!=="string")for(const[h,d]of Object.entries(f)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;f[h]=Ig(d,r,m)}else typeof f=="object"&&f!==null&&r.types[u]==="string"?l[u]=Object.values(f).join(r.arrayFormatSeparator):l[u]=Ig(f,r,r.types[u]);return r.sort===!1?l:(r.sort===!0?Object.keys(l).sort():Object.keys(l).sort(r.sort)).reduce((u,f)=>{const h=l[f];return u[f]=h&&typeof h=="object"&&!Array.isArray(h)?Ab(h):h,u},Object.create(null))}function Rb(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},xb(r.arrayFormatSeparator);const i=h=>r.skipNull&&Ex(n[h])||r.skipEmptyString&&n[h]==="",l=Tx(r),u={};for(const[h,d]of Object.entries(n))i(h)||(u[h]=d);const f=Object.keys(u);return r.sort!==!1&&f.sort(r.sort),f.map(h=>{const d=n[h];return d===void 0?"":d===null?$e(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?$e(h,r)+"[]":d.reduce(l(h),[]).join("&"):$e(h,r)+"="+$e(d,r)}).filter(h=>h.length>0).join("&")}function wb(n,r){var u;r={decode:!0,...r};let[i,l]=Tb(n,"#");return i===void 0&&(i=n),{url:((u=i==null?void 0:i.split("?"))==null?void 0:u[0])??"",query:Hh(Uh(n),r),...r&&r.parseFragmentIdentifier&&l?{fragmentIdentifier:In(l,r)}:{}}}function Cb(n,r){r={encode:!0,strict:!0,[hh]:!0,...r};const i=Ob(n.url).split("?")[0]||"",l=Uh(n.url),u={...Hh(l,{sort:!1}),...n.query};let f=Rb(u,r);f&&(f=`?${f}`);let h=Ax(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[hh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${h}`}function Nb(n,r,i){i={parseFragmentIdentifier:!0,[hh]:!1,...i};const{url:l,query:u,fragmentIdentifier:f}=wb(n,i);return Cb({url:l,query:vx(u,r),fragmentIdentifier:f},i)}function Ox(n,r,i){const l=Array.isArray(r)?u=>!r.includes(u):(u,f)=>!r(u,f);return Nb(n,l,i)}const bo=Object.freeze(Object.defineProperty({__proto__:null,exclude:Ox,extract:Uh,parse:Hh,parseUrl:wb,pick:Nb,stringify:Rb,stringifyUrl:Cb},Symbol.toStringTag,{value:"Module"}));var an={},Ht={},he={},Fg;function It(){return Fg||(Fg=1,Object.defineProperty(he,"__esModule",{value:!0}),he.GUEST_LOCALE_CHANGED=he.DRAWER_CLOSE=he.DRAWER_OPEN=he.CONVERSATION_RATING_FROM_GUEST=he.TRANSCRIPT_ITEM_GUEST_REACTION=he.TRANSCRIPT_MAIL_REQUEST=he.INBOX_CONNECT_REQUEST=he.RESTART_CHAT_REQUEST=he.EVENT_TO_GUEST=he.NLU_REQUEST_EVENT=he.EXPERTS_DISCONNECTED=he.EXPERTS_DISCONNECT_REQUEST=he.EXPERTS_CONNECTED=he.EXPERTS_CONNECT_REQUEST=he.MESSAGE_TO_GUEST=he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=he.MESSAGE_FROM_GUEST=he.GUEST_FEEDBACK_RESPONSE=he.GUEST_DISCONNECTED=he.GUEST_CONNECTED=he.TYPING_OFF=he.TYPING_ON=void 0,he.TYPING_ON="core.typing.on",he.TYPING_OFF="core.typing.off",he.GUEST_CONNECTED="core.guest.connected",he.GUEST_DISCONNECTED="core.guest.disconnected",he.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",he.MESSAGE_FROM_GUEST="core.message.from.guest",he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",he.MESSAGE_TO_GUEST="core.message.to.guest",he.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",he.EXPERTS_CONNECTED="core.experts.connected",he.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",he.EXPERTS_DISCONNECTED="core.experts.disconnected",he.NLU_REQUEST_EVENT="core.nlu.request.event",he.EVENT_TO_GUEST="core.event.to.guest",he.RESTART_CHAT_REQUEST="core.chat.restart.request",he.INBOX_CONNECT_REQUEST="core.inbox.connect.request",he.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",he.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",he.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",he.DRAWER_OPEN="core.drawer.open",he.DRAWER_CLOSE="core.drawer.close",he.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),he}var of={},Vg;function Rx(){return Vg||(Vg=1,Object.defineProperty(of,"__esModule",{value:!0})),of}var wl={},Pg;function wx(){if(Pg)return wl;Pg=1,Object.defineProperty(wl,"__esModule",{value:!0});const n=It(),r=()=>({type:n.DRAWER_CLOSE});return wl.default=r,wl}var Cl={},Yg;function Cx(){if(Yg)return Cl;Yg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:l}});return Cl.default=r,Cl}var Nl={},Zg;function Nx(){if(Zg)return Nl;Zg=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Nl.default=r,Nl}var Dl={},Xg;function Dx(){if(Xg)return Dl;Xg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Dl.default=r,Dl}var Ml={},Qg;function Mx(){if(Qg)return Ml;Qg=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:l}});return Ml.default=r,Ml}var Bl={},Kg;function Bx(){if(Kg)return Bl;Kg=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Bl.default=r,Bl}var jl={},Ve={},$g;function Lh(){if($g)return Ve;$g=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.getStringRepresentationFromMessage=Ve.MessageTypeEnum=Ve.AudioMessage=Ve.FileMessage=Ve.ImageMessage=Ve.VideoMessage=Ve.MarkdownMessage=Ve.DetailMessage=Ve.TextMessage=Ve.Message=void 0;class n{constructor(S,y,x=[],T=[]){Ce(this,"type");Ce(this,"sender");Ce(this,"sources");Ce(this,"quickReplies");this.type=S,this.sender=y,this.sources=x,this.quickReplies=T}addQuickReply(S,y){this.quickReplies.push({label:S,payload:y})}}Ve.Message=n;class r extends n{constructor(y,x,T=[],z=[]){super(m.TEXT,x,T,z);Ce(this,"text");this.text=y}}Ve.TextMessage=r;class i extends n{constructor(y,x){super(m.DETAIL,x);Ce(this,"title");Ce(this,"subtitle");Ce(this,"text");Ce(this,"imageUrl");Ce(this,"itemUrl");Ce(this,"buttons");this.title=y,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(y){this.imageUrl=y}setItemUrl(y){this.itemUrl=y}setSubtitle(y){this.subtitle=y}setText(y){this.text=y}addButton(y){this.buttons.push(y)}}Ve.DetailMessage=i;class l extends n{constructor(y,x,T=[],z=[]){super(m.MARKDOWN,x,T,z);Ce(this,"markdown");this.markdown=y}}Ve.MarkdownMessage=l;class u extends n{constructor(y,x){super(m.VIDEO,x);Ce(this,"url");this.url=y}}Ve.VideoMessage=u;class f extends n{constructor(y,x){super(m.IMAGE,x);Ce(this,"url");this.url=y}}Ve.ImageMessage=f;class h extends n{constructor(y,x){super(m.FILE,x);Ce(this,"url");this.url=y}}Ve.FileMessage=h;class d extends n{constructor(y,x){super(m.AUDIO,x);Ce(this,"url");this.url=y}}Ve.AudioMessage=d;var m;(function(_){_.TEXT="TEXT",_.DETAIL="DETAIL",_.MARKDOWN="MARKDOWN",_.VIDEO="VIDEO",_.IMAGE="IMAGE",_.FILE="FILE",_.AUDIO="AUDIO"})(m||(Ve.MessageTypeEnum=m={}));const g=_=>{switch(_.type){case m.TEXT:return _.text;case m.DETAIL:{const S=_;return`${S.title} // ${S.subtitle}`}case m.MARKDOWN:return _.markdown;case m.VIDEO:return`Video Url: ${_.url}`;case m.IMAGE:return`Image Url: ${_.url}`;case m.FILE:return`File Url: ${_.url}`;case m.AUDIO:return`Audio Url: ${_.url}`;default:throw new Error("Unknown message type "+_.type)}};return Ve.getStringRepresentationFromMessage=g,Ve}var Lt={},Jg;function zh(){if(Jg)return Lt;Jg=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.UserType=Lt.PersonUser=Lt.GuestUser=Lt.BotUser=Lt.User=void 0;class n{constructor(h,d,m,g){Ce(this,"type");Ce(this,"id");Ce(this,"name");Ce(this,"avatar");this.type=h,this.id=d,this.name=m,this.avatar=g}}Lt.User=n;class r extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}Lt.BotUser=r;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}Lt.GuestUser=i;class l extends n{constructor(h,d,m){super(u.PERSON,h,d,m)}}Lt.PersonUser=l;var u;return function(f){f.GUEST="GUEST",f.BOT="BOT",f.PERSON="PERSON"}(u||(Lt.UserType=u={})),Lt}var Wg;function jx(){if(Wg)return jl;Wg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=Lh(),r=zh(),i=It(),l=u=>{const f=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:f}};return jl.default=l,jl}var Ul={},ey;function Ux(){if(ey)return Ul;ey=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=Lh(),r=zh(),i=It(),l=(u,f={})=>{const h=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:h,payload:f}};return Ul.default=l,Ul}var Hl={},ty;function Hx(){if(ty)return Hl;ty=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Hl.default=r,Hl}var Ll={},ny;function Lx(){if(ny)return Ll;ny=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=It(),r=()=>({type:n.RESTART_CHAT_REQUEST});return Ll.default=r,Ll}var zl={},ry;function zx(){if(ry)return zl;ry=1,Object.defineProperty(zl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return zl.default=r,zl}var kl={},ay;function kx(){if(ay)return kl;ay=1,Object.defineProperty(kl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:l}});return kl.default=r,kl}var iy;function sy(){return iy||(iy=1,function(n){var r=Ht&&Ht.__createBinding||(Object.create?function(D,O,R,E){E===void 0&&(E=R);var U=Object.getOwnPropertyDescriptor(O,R);(!U||("get"in U?!O.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return O[R]}}),Object.defineProperty(D,E,U)}:function(D,O,R,E){E===void 0&&(E=R),D[E]=O[R]}),i=Ht&&Ht.__setModuleDefault||(Object.create?function(D,O){Object.defineProperty(D,"default",{enumerable:!0,value:O})}:function(D,O){D.default=O}),l=Ht&&Ht.__importStar||function(){var D=function(O){return D=Object.getOwnPropertyNames||function(R){var E=[];for(var U in R)Object.prototype.hasOwnProperty.call(R,U)&&(E[E.length]=U);return E},D(O)};return function(O){if(O&&O.__esModule)return O;var R={};if(O!=null)for(var E=D(O),U=0;U<E.length;U++)E[U]!=="default"&&r(R,O,E[U]);return i(R,O),R}}(),u=Ht&&Ht.__exportStar||function(D,O){for(var R in D)R!=="default"&&!Object.prototype.hasOwnProperty.call(O,R)&&r(O,D,R)},f=Ht&&Ht.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(n,"__esModule",{value:!0}),n.transcriptItemGuestReaction=n.sendMessageToGuest=n.restartChatRequest=n.requestNLUEvent=n.receiveTextMessageWithoutAnalysisFromGuest=n.receiveTextMessageFromGuest=n.openDrawer=n.guestLocaleChanged=n.guestDisconnected=n.guestConnected=n.feedbackFromGuestResponse=n.closeDrawer=n.ActionTypes=void 0,n.ActionTypes=l(It()),u(Rx(),n);const h=f(wx());n.closeDrawer=h.default;const d=f(Cx());n.feedbackFromGuestResponse=d.default;const m=f(Nx());n.guestConnected=m.default;const g=f(Dx());n.guestDisconnected=g.default;const _=f(Mx());n.guestLocaleChanged=_.default;const S=f(Bx());n.openDrawer=S.default;const y=f(jx());n.receiveTextMessageFromGuest=y.default;const x=f(Ux());n.receiveTextMessageWithoutAnalysisFromGuest=x.default;const T=f(Hx());n.requestNLUEvent=T.default;const z=f(Lx());n.restartChatRequest=z.default;const N=f(zx());n.sendMessageToGuest=N.default;const H=f(kx());n.transcriptItemGuestReaction=H.default}(Ht)),Ht}var zt={},uf={},ly;function Gx(){return ly||(ly=1,Object.defineProperty(uf,"__esModule",{value:!0})),uf}var Yi={},oy;function qx(){if(oy)return Yi;oy=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,l){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,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,l){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,l,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,l,u,f){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,l,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,l){throw new Error("Method not implemented.")}async subscribeToReindex(i,l){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}}return Yi.NullableKnowledgeBaseAdapter=n,Yi}var uy;function Ix(){if(uy)return zt;uy=1;var n=zt&&zt.__createBinding||(Object.create?function(u,f,h,d){d===void 0&&(d=h);var m=Object.getOwnPropertyDescriptor(f,h);(!m||("get"in m?!f.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(u,d,m)}:function(u,f,h,d){d===void 0&&(d=h),u[d]=f[h]}),r=zt&&zt.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),i=zt&&zt.__importStar||function(){var u=function(f){return u=Object.getOwnPropertyNames||function(h){var d=[];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(d[d.length]=m);return d},u(f)};return function(f){if(f&&f.__esModule)return f;var h={};if(f!=null)for(var d=u(f),m=0;m<d.length;m++)d[m]!=="default"&&n(h,f,d[m]);return r(h,f),h}}();Object.defineProperty(zt,"__esModule",{value:!0}),zt.NullableCmsAdapter=zt.KnowledgeBase=void 0,zt.KnowledgeBase=i(Gx());const l=qx();return zt.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},zt}var Ir={},cf={},cy;function Fx(){return cy||(cy=1,Object.defineProperty(cf,"__esModule",{value:!0})),cf}var ff={},fy;function Vx(){return fy||(fy=1,Object.defineProperty(ff,"__esModule",{value:!0})),ff}var hf={},hy;function Px(){return hy||(hy=1,Object.defineProperty(hf,"__esModule",{value:!0})),hf}var df={},dy;function Yx(){return dy||(dy=1,Object.defineProperty(df,"__esModule",{value:!0})),df}var Zi={},my;function Zx(){if(my)return Zi;my=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.checkMiddlewareCondition=void 0;const n=async(r,i,l)=>(Array.isArray(r)?r:[r]).reduce(async(f,h)=>await f?await h(i,l):!1,Promise.resolve(!0));return Zi.checkMiddlewareCondition=n,Zi}var mf={},py;function Xx(){return py||(py=1,Object.defineProperty(mf,"__esModule",{value:!0})),mf}var pf={},gy;function Qx(){return gy||(gy=1,Object.defineProperty(pf,"__esModule",{value:!0})),pf}var gf={},yy;function Kx(){return yy||(yy=1,Object.defineProperty(gf,"__esModule",{value:!0})),gf}var _y;function $x(){return _y||(_y=1,function(n){var r=Ir&&Ir.__createBinding||(Object.create?function(l,u,f,h){h===void 0&&(h=f);var d=Object.getOwnPropertyDescriptor(u,f);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,h,d)}:function(l,u,f,h){h===void 0&&(h=f),l[h]=u[f]}),i=Ir&&Ir.__exportStar||function(l,u){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&r(u,l,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(Fx(),n),i(Vx(),n),i(Px(),n),i(Yx(),n),i(Zx(),n),i(Xx(),n),i(Qx(),n),i(Kx(),n)}(Ir)),Ir}var Fr={},sn={},by;function Jx(){if(by)return sn;by=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.ButtonTypeEnum=sn.PostbackButton=sn.UrlButton=sn.Button=void 0;class n{constructor(f,h){Ce(this,"title");Ce(this,"type");this.title=f,this.type=h}}sn.Button=n;class r extends n{constructor(h,d){super(h,l.WEB_URL);Ce(this,"url");this.url=d}}sn.UrlButton=r;class i extends n{constructor(h,d){super(h,l.POSTBACK);Ce(this,"payload");this.payload=d}}sn.PostbackButton=i;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(sn.ButtonTypeEnum=l={})),sn}var yf={},vy;function Wx(){return vy||(vy=1,Object.defineProperty(yf,"__esModule",{value:!0})),yf}var Xi={},Ey;function eA(){if(Ey)return Xi;Ey=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Xi.SatisfactionEnum=n={})),Xi}var Sy;function Ty(){return Sy||(Sy=1,function(n){var r=Fr&&Fr.__createBinding||(Object.create?function(l,u,f,h){h===void 0&&(h=f);var d=Object.getOwnPropertyDescriptor(u,f);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,h,d)}:function(l,u,f,h){h===void 0&&(h=f),l[h]=u[f]}),i=Fr&&Fr.__exportStar||function(l,u){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&r(u,l,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(Jx(),n),i(Wx(),n),i(eA(),n),i(Lh(),n),i(zh(),n)}(Fr)),Fr}var xy;function tA(){return xy||(xy=1,function(n){var r=an&&an.__createBinding||(Object.create?function(f,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(f,m,g)}:function(f,h,d,m){m===void 0&&(m=d),f[m]=h[d]}),i=an&&an.__setModuleDefault||(Object.create?function(f,h){Object.defineProperty(f,"default",{enumerable:!0,value:h})}:function(f,h){f.default=h}),l=an&&an.__exportStar||function(f,h){for(var d in f)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,f,d)},u=an&&an.__importStar||function(){var f=function(h){return f=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},f(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=f(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=n.Actions=void 0,l(sy(),n),n.Actions=u(sy()),n.CMS=u(Ix()),l($x(),n),l(Ty(),n),n.Model=u(Ty())}(an)),an}var Ee=tA();const Db=n=>r=>(n.payload.type!==Ee.ActionTypes.MESSAGE_FROM_GUEST&&r(Ee.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),Mb=n=>(r,i)=>{const{quickReplies:l}=i().chat,u=l.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return r(u?Db({...u,label:n}):Ee.receiveTextMessageFromGuest(n))},kh="MESSAGE_TO_PARENT_PAGE",Gh="RESTORE_PREVIOUS_CHAT_MESSAGES",qh="AUDIO_MESSAGE_FROM_USER",nA="EXPORT_TRANSCRIPT",Ih="RECEIVE_SPEECH_TRANSCRIPTION",Fh="ENABLE_CONVERSATION_RATING",Bb="LOAD_SOURCE_INFOS_RESPONSE",jb="LOAD_SOURCE_INFOS_ERROR",Vh="LOAD_SOURCE_INFOS_REQUEST",Ph="CLOSE_SOURCE_INFOS",rA="webclient.get.started",Ub="webclient.window.expand",Hb="webclient.window.close",Lb="webclient.transcript.pdf.download",aA=[kh,Gh,qh,nA,Ih,Fh,Vh,Ph],iA=n=>({type:qh,buffer:n}),sA=n=>({type:Ih,transcription:n}),lA=n=>({type:Ee.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),oA=()=>({type:Lb}),uA=({rating:n})=>({type:Fh,payload:{rating:n}}),cA=(n,r)=>({type:Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),zb=n=>Ee.requestNLUEvent(n),fA=n=>({type:Gh,messages:n}),hA=n=>{switch(n.type){case Ee.ButtonTypeEnum.WEB_URL:return kb(n.url);case Ee.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},dA=n=>kb(n),kb=n=>({type:kh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function Gl(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)n[l]=i[l]}return n}var mA={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function dh(n,r){function i(u,f,h){if(!(typeof document>"u")){h=Gl({},r,h),typeof h.expires=="number"&&(h.expires=new Date(Date.now()+h.expires*864e5)),h.expires&&(h.expires=h.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var m in h)h[m]&&(d+="; "+m,h[m]!==!0&&(d+="="+h[m].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+d}}function l(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],h={},d=0;d<f.length;d++){var m=f[d].split("="),g=m.slice(1).join("=");try{var _=decodeURIComponent(m[0]);if(h[_]=n.read(g,_),u===_)break}catch{}}return u?h[u]:h}}return Object.create({set:i,get:l,remove:function(u,f){i(u,"",Gl({},f,{expires:-1}))},withAttributes:function(u){return dh(this.converter,Gl({},this.attributes,u))},withConverter:function(u){return dh(Gl({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var ql=dh(mA,{path:"/"});const ut=[];for(let n=0;n<256;++n)ut.push((n+256).toString(16).slice(1));function pA(n,r=0){return(ut[n[r+0]]+ut[n[r+1]]+ut[n[r+2]]+ut[n[r+3]]+"-"+ut[n[r+4]]+ut[n[r+5]]+"-"+ut[n[r+6]]+ut[n[r+7]]+"-"+ut[n[r+8]]+ut[n[r+9]]+"-"+ut[n[r+10]]+ut[n[r+11]]+ut[n[r+12]]+ut[n[r+13]]+ut[n[r+14]]+ut[n[r+15]]).toLowerCase()}let _f;const gA=new Uint8Array(16);function yA(){if(!_f){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");_f=crypto.getRandomValues.bind(crypto)}return _f(gA)}const _A=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ay={randomUUID:_A};function mh(n,r,i){var u;if(Ay.randomUUID&&!n)return Ay.randomUUID();n=n||{};const l=n.random??((u=n.rng)==null?void 0:u.call(n))??yA();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,pA(l)}function ct(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var bA=typeof Symbol=="function"&&Symbol.observable||"@@observable",Oy=bA,bf=()=>Math.random().toString(36).substring(7).split("").join("."),vA={INIT:`@@redux/INIT${bf()}`,REPLACE:`@@redux/REPLACE${bf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bf()}`},oo=vA;function Yh(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function Gb(n,r,i){if(typeof n!="function")throw new Error(ct(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ct(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ct(1));return i(Gb)(n,r)}let l=n,u=r,f=new Map,h=f,d=0,m=!1;function g(){h===f&&(h=new Map,f.forEach((N,H)=>{h.set(H,N)}))}function _(){if(m)throw new Error(ct(3));return u}function S(N){if(typeof N!="function")throw new Error(ct(4));if(m)throw new Error(ct(5));let H=!0;g();const D=d++;return h.set(D,N),function(){if(H){if(m)throw new Error(ct(6));H=!1,g(),h.delete(D),f=null}}}function y(N){if(!Yh(N))throw new Error(ct(7));if(typeof N.type>"u")throw new Error(ct(8));if(typeof N.type!="string")throw new Error(ct(17));if(m)throw new Error(ct(9));try{m=!0,u=l(u,N)}finally{m=!1}return(f=h).forEach(D=>{D()}),N}function x(N){if(typeof N!="function")throw new Error(ct(10));l=N,y({type:oo.REPLACE})}function T(){const N=S;return{subscribe(H){if(typeof H!="object"||H===null)throw new Error(ct(11));function D(){const R=H;R.next&&R.next(_())}return D(),{unsubscribe:N(D)}},[Oy](){return this}}}return y({type:oo.INIT}),{dispatch:y,subscribe:S,getState:_,replaceReducer:x,[Oy]:T}}function EA(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:oo.INIT})>"u")throw new Error(ct(12));if(typeof i(void 0,{type:oo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ct(13))})}function qb(n){const r=Object.keys(n),i={};for(let f=0;f<r.length;f++){const h=r[f];typeof n[h]=="function"&&(i[h]=n[h])}const l=Object.keys(i);let u;try{EA(i)}catch(f){u=f}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let _=0;_<l.length;_++){const S=l[_],y=i[S],x=h[S],T=y(x,d);if(typeof T>"u")throw d&&d.type,new Error(ct(14));g[S]=T,m=m||T!==x}return m=m||l.length!==Object.keys(h).length,m?g:h}}function uo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...l)=>r(i(...l)))}function SA(...n){return r=>(i,l)=>{const u=r(i,l);let f=()=>{throw new Error(ct(15))};const h={getState:u.getState,dispatch:(m,...g)=>f(m,...g)},d=n.map(m=>m(h));return f=uo(...d)(u.dispatch),{...u,dispatch:f}}}function TA(n){return Yh(n)&&"type"in n&&typeof n.type=="string"}var Ib=Symbol.for("immer-nothing"),Ry=Symbol.for("immer-draftable"),Gt=Symbol.for("immer-state");function un(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Ga=Object.getPrototypeOf;function $r(n){return!!n&&!!n[Gt]}function Yn(n){var r;return n?Fb(n)||Array.isArray(n)||!!n[Ry]||!!((r=n.constructor)!=null&&r[Ry])||Eo(n)||So(n):!1}var xA=Object.prototype.constructor.toString();function Fb(n){if(!n||typeof n!="object")return!1;const r=Ga(n);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===xA}function co(n,r){vo(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,l)=>r(l,i,n))}function vo(n){const r=n[Gt];return r?r.type_:Array.isArray(n)?1:Eo(n)?2:So(n)?3:0}function ph(n,r){return vo(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function Vb(n,r,i){const l=vo(n);l===2?n.set(r,i):l===3?n.add(i):n[r]=i}function AA(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function Eo(n){return n instanceof Map}function So(n){return n instanceof Set}function Zr(n){return n.copy_||n.base_}function gh(n,r){if(Eo(n))return new Map(n);if(So(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=Fb(n);if(r===!0||r==="class_only"&&!i){const l=Object.getOwnPropertyDescriptors(n);delete l[Gt];let u=Reflect.ownKeys(l);for(let f=0;f<u.length;f++){const h=u[f],d=l[h];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(l[h]={configurable:!0,writable:!0,enumerable:d.enumerable,value:n[h]})}return Object.create(Ga(n),l)}else{const l=Ga(n);if(l!==null&&i)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function Zh(n,r=!1){return To(n)||$r(n)||!Yn(n)||(vo(n)>1&&(n.set=n.add=n.clear=n.delete=OA),Object.freeze(n),r&&Object.entries(n).forEach(([i,l])=>Zh(l,!0))),n}function OA(){un(2)}function To(n){return Object.isFrozen(n)}var RA={};function Jr(n){const r=RA[n];return r||un(0,n),r}var rs;function Pb(){return rs}function wA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function wy(n,r){r&&(Jr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function yh(n){_h(n),n.drafts_.forEach(CA),n.drafts_=null}function _h(n){n===rs&&(rs=n.parent_)}function Cy(n){return rs=wA(rs,n)}function CA(n){const r=n[Gt];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Ny(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[Gt].modified_&&(yh(r),un(4)),Yn(n)&&(n=fo(r,n),r.parent_||ho(r,n)),r.patches_&&Jr("Patches").generateReplacementPatches_(i[Gt].base_,n,r.patches_,r.inversePatches_)):n=fo(r,i,[]),yh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==Ib?n:void 0}function fo(n,r,i){if(To(r))return r;const l=r[Gt];if(!l)return co(r,(u,f)=>Dy(n,l,r,u,f,i)),r;if(l.scope_!==n)return r;if(!l.modified_)return ho(n,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const u=l.copy_;let f=u,h=!1;l.type_===3&&(f=new Set(u),u.clear(),h=!0),co(f,(d,m)=>Dy(n,l,u,d,m,i,h)),ho(n,u,!1),i&&n.patches_&&Jr("Patches").generatePatches_(l,i,n.patches_,n.inversePatches_)}return l.copy_}function Dy(n,r,i,l,u,f,h){if($r(u)){const d=f&&r&&r.type_!==3&&!ph(r.assigned_,l)?f.concat(l):void 0,m=fo(n,u,d);if(Vb(i,l,m),$r(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Yn(u)&&!To(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;fo(n,u),(!r||!r.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,l)&&ho(n,u)}}function ho(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Zh(r,i)}function NA(n,r){const i=Array.isArray(n),l={type_:i?1:0,scope_:r?r.scope_:Pb(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,f=Xh;i&&(u=[l],f=as);const{revoke:h,proxy:d}=Proxy.revocable(u,f);return l.draft_=d,l.revoke_=h,d}var Xh={get(n,r){if(r===Gt)return n;const i=Zr(n);if(!ph(i,r))return DA(n,i,r);const l=i[r];return n.finalized_||!Yn(l)?l:l===vf(n.base_,r)?(Ef(n),n.copy_[r]=vh(l,n)):l},has(n,r){return r in Zr(n)},ownKeys(n){return Reflect.ownKeys(Zr(n))},set(n,r,i){const l=Yb(Zr(n),r);if(l!=null&&l.set)return l.set.call(n.draft_,i),!0;if(!n.modified_){const u=vf(Zr(n),r),f=u==null?void 0:u[Gt];if(f&&f.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(AA(i,u)&&(i!==void 0||ph(n.base_,r)))return!0;Ef(n),bh(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return vf(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,Ef(n),bh(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Zr(n),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){un(11)},getPrototypeOf(n){return Ga(n.base_)},setPrototypeOf(){un(12)}},as={};co(Xh,(n,r)=>{as[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});as.deleteProperty=function(n,r){return as.set.call(this,n,r,void 0)};as.set=function(n,r,i){return Xh.set.call(this,n[0],r,i,n[0])};function vf(n,r){const i=n[Gt];return(i?Zr(i):n)[r]}function DA(n,r,i){var u;const l=Yb(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function Yb(n,r){if(!(r in n))return;let i=Ga(n);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=Ga(i)}}function bh(n){n.modified_||(n.modified_=!0,n.parent_&&bh(n.parent_))}function Ef(n){n.copy_||(n.copy_=gh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var MA=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,l)=>{if(typeof r=="function"&&typeof i!="function"){const f=i;i=r;const h=this;return function(m=f,...g){return h.produce(m,_=>i.call(this,_,...g))}}typeof i!="function"&&un(6),l!==void 0&&typeof l!="function"&&un(7);let u;if(Yn(r)){const f=Cy(this),h=vh(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?yh(f):_h(f)}return wy(f,l),Ny(u,f)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Ib&&(u=void 0),this.autoFreeze_&&Zh(u,!0),l){const f=[],h=[];Jr("Patches").generateReplacementPatches_(r,u,f,h),l(f,h)}return u}else un(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...d)=>this.produceWithPatches(h,m=>r(m,...d));let l,u;return[this.produce(r,i,(h,d)=>{l=h,u=d}),l,u]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){Yn(n)||un(8),$r(n)&&(n=BA(n));const r=Cy(this),i=vh(n,void 0);return i[Gt].isManual_=!0,_h(r),i}finishDraft(n,r){const i=n&&n[Gt];(!i||!i.isManual_)&&un(9);const{scope_:l}=i;return wy(l,r),Ny(void 0,l)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(r=r.slice(i+1));const l=Jr("Patches").applyPatches_;return $r(n)?l(n,r):this.produce(n,u=>l(u,r))}};function vh(n,r){const i=Eo(n)?Jr("MapSet").proxyMap_(n,r):So(n)?Jr("MapSet").proxySet_(n,r):NA(n,r);return(r?r.scope_:Pb()).drafts_.push(i),i}function BA(n){return $r(n)||un(10,n),Zb(n)}function Zb(n){if(!Yn(n)||To(n))return n;const r=n[Gt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=gh(n,r.scope_.immer_.useStrictShallowCopy_)}else i=gh(n,!0);return co(i,(l,u)=>{Vb(i,l,Zb(u))}),r&&(r.finalized_=!1),i}var qt=new MA,Xb=qt.produce;qt.produceWithPatches.bind(qt);qt.setAutoFreeze.bind(qt);qt.setUseStrictShallowCopy.bind(qt);qt.applyPatches.bind(qt);qt.createDraft.bind(qt);qt.finishDraft.bind(qt);function Qb(n){return({dispatch:i,getState:l})=>u=>f=>typeof f=="function"?f(i,l,n):u(f)}var jA=Qb(),UA=Qb,HA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?uo:uo.apply(null,arguments)};function My(n,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(Fn(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:l[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=l=>TA(l)&&l.type===n,i}var Kb=class es extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,es.prototype)}static get[Symbol.species](){return es}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new es(...r[0].concat(this)):new es(...r.concat(this))}};function By(n){return Yn(n)?Xb(n,()=>{}):n}function Il(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function LA(n){return typeof n=="boolean"}var zA=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=r??{};let h=new Kb;return i&&(LA(i)?h.push(jA):h.push(UA(i.extraArgument))),h},kA="RTK_autoBatch",jy=n=>r=>{setTimeout(r,n)},GA=(n={type:"raf"})=>r=>(...i)=>{const l=r(...i);let u=!0,f=!1,h=!1;const d=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jy(10):n.type==="callback"?n.queueNotification:jy(n.timeout),g=()=>{h=!1,f&&(f=!1,d.forEach(_=>_()))};return Object.assign({},l,{subscribe(_){const S=()=>u&&_(),y=l.subscribe(S);return d.add(_),()=>{y(),d.delete(_)}},dispatch(_){var S;try{return u=!((S=_==null?void 0:_.meta)!=null&&S[kA]),f=!u,f&&(h||(h=!0,m(g))),l.dispatch(_)}finally{u=!0}}})},qA=n=>function(i){const{autoBatch:l=!0}=i??{};let u=new Kb(n);return l&&u.push(GA(typeof l=="object"?l:void 0)),u};function IA(n){const r=zA(),{reducer:i=void 0,middleware:l,devTools:u=!0,preloadedState:f=void 0,enhancers:h=void 0}=n||{};let d;if(typeof i=="function")d=i;else if(Yh(i))d=qb(i);else throw new Error(Fn(1));let m;typeof l=="function"?m=l(r):m=r();let g=uo;u&&(g=HA({trace:!1,...typeof u=="object"&&u}));const _=SA(...m),S=qA(_);let y=typeof h=="function"?h(S):S();const x=g(...y);return Gb(d,f,x)}function $b(n){const r={},i=[];let l;const u={addCase(f,h){const d=typeof f=="string"?f:f.type;if(!d)throw new Error(Fn(28));if(d in r)throw new Error(Fn(29));return r[d]=h,u},addMatcher(f,h){return i.push({matcher:f,reducer:h}),u},addDefaultCase(f){return l=f,u}};return n(u),[r,i,l]}function FA(n){return typeof n=="function"}function VA(n,r){let[i,l,u]=$b(r),f;if(FA(n))f=()=>By(n());else{const d=By(n);f=()=>d}function h(d=f(),m){let g=[i[m.type],...l.filter(({matcher:_})=>_(m)).map(({reducer:_})=>_)];return g.filter(_=>!!_).length===0&&(g=[u]),g.reduce((_,S)=>{if(S)if($r(_)){const x=S(_,m);return x===void 0?_:x}else{if(Yn(_))return Xb(_,y=>S(y,m));{const y=S(_,m);if(y===void 0){if(_===null)return _;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return _},d)}return h.getInitialState=f,h}var PA=Symbol.for("rtk-slice-createasyncthunk");function YA(n,r){return`${n}/${r}`}function ZA({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[PA];return function(u){const{name:f,reducerPath:h=f}=u;if(!f)throw new Error(Fn(11));const d=(typeof u.reducers=="function"?u.reducers(QA()):u.reducers)||{},m=Object.keys(d),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},_={addCase(R,E){const U=typeof R=="string"?R:R.type;if(!U)throw new Error(Fn(12));if(U in g.sliceCaseReducersByType)throw new Error(Fn(13));return g.sliceCaseReducersByType[U]=E,_},addMatcher(R,E){return g.sliceMatchers.push({matcher:R,reducer:E}),_},exposeAction(R,E){return g.actionCreators[R]=E,_},exposeCaseReducer(R,E){return g.sliceCaseReducersByName[R]=E,_}};m.forEach(R=>{const E=d[R],U={reducerName:R,type:YA(f,R),createNotation:typeof u.reducers=="function"};$A(E)?WA(U,E,_,r):KA(U,E,_)});function S(){const[R={},E=[],U=void 0]=typeof u.extraReducers=="function"?$b(u.extraReducers):[u.extraReducers],Y={...R,...g.sliceCaseReducersByType};return VA(u.initialState,K=>{for(let re in Y)K.addCase(re,Y[re]);for(let re of g.sliceMatchers)K.addMatcher(re.matcher,re.reducer);for(let re of E)K.addMatcher(re.matcher,re.reducer);U&&K.addDefaultCase(U)})}const y=R=>R,x=new Map,T=new WeakMap;let z;function N(R,E){return z||(z=S()),z(R,E)}function H(){return z||(z=S()),z.getInitialState()}function D(R,E=!1){function U(K){let re=K[R];return typeof re>"u"&&E&&(re=Il(T,U,H)),re}function Y(K=y){const re=Il(x,E,()=>new WeakMap);return Il(re,K,()=>{const ee={};for(const[le,ie]of Object.entries(u.selectors??{}))ee[le]=XA(ie,K,()=>Il(T,K,H),E);return ee})}return{reducerPath:R,getSelectors:Y,get selectors(){return Y(U)},selectSlice:U}}const O={name:f,reducer:N,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:H,...D(h),injectInto(R,{reducerPath:E,...U}={}){const Y=E??h;return R.inject({reducerPath:Y,reducer:N},U),{...O,...D(Y,!0)}}};return O}}function XA(n,r,i,l){function u(f,...h){let d=r(f);return typeof d>"u"&&l&&(d=i()),n(d,...h)}return u.unwrapped=n,u}var Qh=ZA();function QA(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:n}}function KA({type:n,reducerName:r,createNotation:i},l,u){let f,h;if("reducer"in l){if(i&&!JA(l))throw new Error(Fn(17));f=l.reducer,h=l.prepare}else f=l;u.addCase(n,f).exposeCaseReducer(r,f).exposeAction(r,h?My(n,h):My(n))}function $A(n){return n._reducerDefinitionType==="asyncThunk"}function JA(n){return n._reducerDefinitionType==="reducerWithPrepare"}function WA({type:n,reducerName:r},i,l,u){if(!u)throw new Error(Fn(18));const{payloadCreator:f,fulfilled:h,pending:d,rejected:m,settled:g,options:_}=i,S=u(n,f,_);l.exposeAction(r,S),h&&l.addCase(S.fulfilled,h),d&&l.addCase(S.pending,d),m&&l.addCase(S.rejected,m),g&&l.addMatcher(S.settled,g),l.exposeCaseReducer(r,{fulfilled:h||Fl,pending:d||Fl,rejected:m||Fl,settled:g||Fl})}function Fl(){}function Fn(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const eO={formValues:{}},Jb=Qh({name:"start-screen",initialState:eO,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:tO,showStartScreen:nO}=Jb.actions,rO=Jb.reducer,Wb="RESET_CHAT_STATE",aO=()=>({type:Hb}),iO=()=>({type:Wb}),Uy=n=>(r,i)=>{const l=i();return r({type:Vh,payload:{chunkId:n}}),fetch(`/cms/public/vector-store/chunks/${n}`,{headers:{"Accept-Language":l.intl.locale}}).then(u=>{if(!u.ok)throw r({type:jb}),new Error(`HTTP error! Status: ${u.status}`);return u.json()}).then(u=>{const f={...u,chunkId:n};r({type:Bb,payload:f})})},sO=()=>({type:Ph}),Kh="CONNECT",$h="CONNECTING",Jh="CONNECTED",Wh="DISCONNECTED",ed="RECONNECTED",td="RESTORE_SESSION_ID",xo="START",Ao="CLEAR_SESSION_ID",lO=[Kh,$h,Jh,Wh,ed,td],oO=(n,r)=>({type:Kh,clientName:n,querystrings:r}),uO=n=>({type:td,sessionId:n}),cO=()=>({type:$h}),fO=()=>({type:Jh}),hO=()=>({type:Wh}),dO=()=>({type:ed}),ev=(n,r)=>(i,l)=>{const u=l().connection,f=l().startScreen.formValues;let h=u.sessionId;h===void 0&&(h=mh());let d=u.userId;if(d===void 0){const m=ql.get("bubble-chat-user-id")||ql.get("bubble-chat-userId")||ql.get("bf-webclient-userId");d=m||mh(),ql.set("bubble-chat-user-id",d)}i({type:xo,payload:{sessionId:h,userId:d,clientName:n,querystrings:{...r,...f}}})},Oo=(n,r)=>(i,l)=>{const u=l().connection.sessionId||"";if(i(mO(u)),i(iO()),l().settings.enableStartScreen)i(nO());else return i(ev(n,r))},mO=n=>({type:Ao,payload:{sessionId:n}}),We=()=>{const n=_o();return i=>{const l=n.formatMessage({id:i});return l===i?void 0:l}};var Qr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Qr||{}),mo=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(mo||{});const pO="_container_q2uun_1",gO="_chatcontent_q2uun_6",yO="_accessabilityHidden_q2uun_12",Sf={container:pO,chatcontent:gO,accessabilityHidden:yO},_O="_messageContainer_1m8fy_1",bO="_messages_1m8fy_13",Hy={messageContainer:_O,messages:bO};function Xr(){return Xr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(n[l]=i[l])}return n},Xr.apply(this,arguments)}const vO=["children","options"],ue={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 Ly;(function(n){n[n.MAX=0]="MAX",n[n.HIGH=1]="HIGH",n[n.MED=2]="MED",n[n.LOW=3]="LOW",n[n.MIN=4]="MIN"})(Ly||(Ly={}));const zy=["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((n,r)=>(n[r.toLowerCase()]=r,n),{class:"className",for:"htmlFor"}),ky={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},EO=["style","script"],SO=["src","href","data","formAction","srcDoc","action"],TO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,xO=/mailto:/i,AO=/\n{2,}$/,tv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,OO=/^ *> ?/gm,RO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,wO=/^ {2,}\n/,CO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,nv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,rv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,NO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,DO=/^(?:\n *)*\n/,MO=/\r\n?/g,BO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,jO=/^\[\^([^\]]+)]/,UO=/\f/g,HO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,LO=/^\s*?\[(x|\s)\]/,av=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,iv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,sv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Eh=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,zO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,lv=/^<!--[\s\S]*?(?:-->)/,kO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Sh=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,GO=/^\{.*\}$/,qO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,IO=/^<([^ >]+@[^ >]+)>/,FO=/^<([^ >]+:\/[^ >]+)>/,VO=/-([a-z])?/gi,ov=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,PO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,YO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,ZO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,XO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,QO=/\t/g,KO=/(^ *\||\| *$)/g,$O=/^ *:-+: *$/,JO=/^ *:-+ *$/,WO=/^ *-+: *$/,Ro="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",eR=new RegExp(`^([*_])\\1${Ro}\\1\\1(?!\\1)`),tR=new RegExp(`^([*_])${Ro}\\1(?!\\1)`),nR=new RegExp(`^(==)${Ro}\\1`),rR=new RegExp(`^(~~)${Ro}\\1`),aR=/^\\([^0-9A-Za-z\s])/,Gy=/\\([^0-9A-Za-z\s])/g,iR=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,sR=/^\n+/,lR=/^([ \t]*)/,oR=/\\([^\\])/g,uR=/(?:^|\n)( *)$/,nd="(?:\\d+\\.)",rd="(?:[*+-])";function uv(n){return"( *)("+(n===1?nd:rd)+") +"}const cv=uv(1),fv=uv(2);function hv(n){return new RegExp("^"+(n===1?cv:fv))}const cR=hv(1),fR=hv(2);function dv(n){return new RegExp("^"+(n===1?cv:fv)+"[^\\n]*(?:\\n(?!\\1"+(n===1?nd:rd)+" )[^\\n]*)*(\\n|$)","gm")}const hR=dv(1),dR=dv(2);function mv(n){const r=n===1?nd:rd;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const pv=mv(1),gv=mv(2);function qy(n,r){const i=r===1,l=i?pv:gv,u=i?hR:dR,f=i?cR:fR;return{match:qa(function(h,d){const m=uR.exec(d.prevCapture);return m&&(d.list||!d.inline&&!d.simple)?l.exec(h=m[1]+h):null}),order:1,parse(h,d,m){const g=i?+h[2]:void 0,_=h[0].replace(AO,`
94
- `).match(u);let S=!1;return{items:_.map(function(y,x){const T=f.exec(y)[0].length,z=new RegExp("^ {1,"+T+"}","gm"),N=y.replace(z,"").replace(f,""),H=x===_.length-1,D=N.indexOf(`
95
-
96
- `)!==-1||H&&S;S=D;const O=m.inline,R=m.list;let E;m.list=!0,D?(m.inline=!1,E=is(N)+`
97
-
98
- `):(m.inline=!0,E=is(N));const U=d(E,m);return m.inline=O,m.list=R,U}),ordered:i,start:g}},render:(h,d,m)=>n(h.ordered?"ol":"ul",{key:m.key,start:h.type===ue.orderedList?h.start:void 0},h.items.map(function(g,_){return n("li",{key:_},d(g,m))}))}}const mR=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),pR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,yv=[tv,nv,rv,av,sv,iv,ov,pv,gv],gR=[...yv,/^[^\n]+(?: \n|\n{2,})/,Eh,lv,Sh];function is(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function Qi(n){return n.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 yR(n){return WO.test(n)?"right":$O.test(n)?"center":JO.test(n)?"left":null}function Iy(n,r,i,l){const u=i.inTable;i.inTable=!0;let f=[[]],h="";function d(){if(!h)return;const m=f[f.length-1];m.push.apply(m,r(h,i)),h=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,_)=>{m.trim()==="|"&&(d(),l)?g!==0&&g!==_.length-1&&f.push([]):h+=m}),d(),i.inTable=u,f}function _R(n,r,i){i.inline=!0;const l=n[2]?n[2].replace(KO,"").split("|").map(yR):[],u=n[3]?function(h,d,m){return h.trim().split(`
99
- `).map(function(g){return Iy(g,d,m,!0)})}(n[3],r,i):[],f=Iy(n[1],r,i,!!u.length);return i.inline=!1,u.length?{align:l,cells:u,header:f,type:ue.table}:{children:f,type:ue.paragraph}}function Fy(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function qa(n){return n.inline=1,n}function yr(n){return qa(function(r,i){return i.inline?n.exec(r):null})}function _r(n){return qa(function(r,i){return i.inline||i.simple?n.exec(r):null})}function Gn(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function Ki(n){return qa(function(r){return n.exec(r)})}function bR(n,r){if(r.inline||r.simple)return null;let i="";n.split(`
100
- `).every(u=>(u+=`
101
- `,!yv.some(f=>f.test(u))&&(i+=u,!!u.trim())));const l=is(i);return l==""?null:[i,,l]}const vR=/(javascript|vbscript|data(?!:image)):/i;function ER(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(vR.test(r))return null}catch{return null}return n}function Vy(n){return n.replace(oR,"$1")}function no(n,r,i){const l=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const f=n(r,i);return i.inline=l,i.simple=u,f}function SR(n,r,i){const l=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const f=n(r,i);return i.inline=l,i.simple=u,f}function TR(n,r,i){const l=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=l,u}const Tf=(n,r,i)=>({children:no(r,n[2],i)});function xf(){return{}}function Af(){return null}function xR(...n){return n.filter(Boolean).join(" ")}function Of(n,r,i){let l=n;const u=r.split(".");for(;u.length&&(l=l[u[0]],l!==void 0);)u.shift();return l||i}function AR(n="",r={}){function i(y,x,...T){const z=Of(r.overrides,`${y}.props`,{});return r.createElement(function(N,H){const D=Of(H,N);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:Of(H,`${N}.component`,N):N}(y,r.overrides),Xr({},x,z,{className:xR(x==null?void 0:x.className,z.className)||void 0}),...T)}function l(y){y=y.replace(HO,"");let x=!1;r.forceInline?x=!0:r.forceBlock||(x=XO.test(y)===!1);const T=g(m(x?y:`${is(y).replace(sR,"")}
102
-
103
- `,{inline:x}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(r.wrapper===null)return T;const z=r.wrapper||(x?"span":"div");let N;if(T.length>1||r.forceWrapper)N=T;else{if(T.length===1)return N=T[0],typeof N=="string"?i("span",{key:"outer"},N):N;N=null}return r.createElement(z,{key:"outer"},N)}function u(y,x){const T=x.match(TO);return T?T.reduce(function(z,N){const H=N.indexOf("=");if(H!==-1){const D=function(U){return U.indexOf("-")!==-1&&U.match(kO)===null&&(U=U.replace(VO,function(Y,K){return K.toUpperCase()})),U}(N.slice(0,H)).trim(),O=function(U){const Y=U[0];return(Y==='"'||Y==="'")&&U.length>=2&&U[U.length-1]===Y?U.slice(1,-1):U}(N.slice(H+1).trim()),R=zy[D]||D;if(R==="ref")return z;const E=z[R]=function(U,Y,K,re){return Y==="style"?function(ee){const le=[];let ie="",de=!1,Ie=!1,Te="";if(!ee)return le;for(let X=0;X<ee.length;X++){const J=ee[X];if(J!=='"'&&J!=="'"||de||(Ie?J===Te&&(Ie=!1,Te=""):(Ie=!0,Te=J)),J==="("&&ie.endsWith("url")?de=!0:J===")"&&de&&(de=!1),J!==";"||Ie||de)ie+=J;else{const _e=ie.trim();if(_e){const w=_e.indexOf(":");if(w>0){const P=_e.slice(0,w).trim(),$=_e.slice(w+1).trim();le.push([P,$])}}ie=""}}const G=ie.trim();if(G){const X=G.indexOf(":");if(X>0){const J=G.slice(0,X).trim(),_e=G.slice(X+1).trim();le.push([J,_e])}}return le}(K).reduce(function(ee,[le,ie]){return ee[le.replace(/(-[a-z])/g,de=>de[1].toUpperCase())]=re(ie,U,le),ee},{}):SO.indexOf(Y)!==-1?re(K,U,Y):(K.match(GO)&&(K=K.slice(1,K.length-1)),K==="true"||K!=="false"&&K)}(y,D,O,r.sanitizer);typeof E=="string"&&(Eh.test(E)||Sh.test(E))&&(z[R]=l(E.trim()))}else N!=="style"&&(z[zy[N]||N]=!0);return z},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||ER,r.slugify=r.slugify||Qi,r.namedCodesToUnicode=r.namedCodesToUnicode?Xr({},ky,r.namedCodesToUnicode):ky,r.createElement=r.createElement||I.createElement;const f=[],h={},d={[ue.blockQuote]:{match:Gn(tv),order:1,parse(y,x,T){const[,z,N]=y[0].replace(OO,"").match(RO);return{alert:z,children:x(N,T)}},render(y,x,T){const z={key:T.key};return y.alert&&(z.className="markdown-alert-"+r.slugify(y.alert.toLowerCase(),Qi),y.children.unshift({attrs:{},children:[{type:ue.text,text:y.alert}],noInnerParse:!0,type:ue.htmlBlock,tag:"header"})),i("blockquote",z,x(y.children,T))}},[ue.breakLine]:{match:Ki(wO),order:1,parse:xf,render:(y,x,T)=>i("br",{key:T.key})},[ue.breakThematic]:{match:Gn(CO),order:1,parse:xf,render:(y,x,T)=>i("hr",{key:T.key})},[ue.codeBlock]:{match:Gn(rv),order:0,parse:y=>({lang:void 0,text:is(y[0].replace(/^ {4}/gm,"")).replace(Gy,"$1")}),render:(y,x,T)=>i("pre",{key:T.key},i("code",Xr({},y.attrs,{className:y.lang?`lang-${y.lang}`:""}),y.text))},[ue.codeFenced]:{match:Gn(nv),order:0,parse:y=>({attrs:u("code",y[3]||""),lang:y[2]||void 0,text:y[4],type:ue.codeBlock})},[ue.codeInline]:{match:_r(NO),order:3,parse:y=>({text:y[2].replace(Gy,"$1")}),render:(y,x,T)=>i("code",{key:T.key},y.text)},[ue.footnote]:{match:Gn(BO),order:0,parse:y=>(f.push({footnote:y[2],identifier:y[1]}),{}),render:Af},[ue.footnoteReference]:{match:yr(jO),order:1,parse:y=>({target:`#${r.slugify(y[1],Qi)}`,text:y[1]}),render:(y,x,T)=>i("a",{key:T.key,href:r.sanitizer(y.target,"a","href")},i("sup",{key:T.key},y.text))},[ue.gfmTask]:{match:yr(LO),order:1,parse:y=>({completed:y[1].toLowerCase()==="x"}),render:(y,x,T)=>i("input",{checked:y.completed,key:T.key,readOnly:!0,type:"checkbox"})},[ue.heading]:{match:Gn(r.enforceAtxHeadings?iv:av),order:1,parse:(y,x,T)=>({children:no(x,y[2],T),id:r.slugify(y[2],Qi),level:y[1].length}),render:(y,x,T)=>i(`h${y.level}`,{id:y.id,key:T.key},x(y.children,T))},[ue.headingSetext]:{match:Gn(sv),order:0,parse:(y,x,T)=>({children:no(x,y[1],T),level:y[2]==="="?1:2,type:ue.heading})},[ue.htmlBlock]:{match:Ki(Eh),order:1,parse(y,x,T){const[,z]=y[3].match(lR),N=new RegExp(`^${z}`,"gm"),H=y[3].replace(N,""),D=(O=H,gR.some(K=>K.test(O))?TR:no);var O;const R=y[1].toLowerCase(),E=EO.indexOf(R)!==-1,U=(E?R:y[1]).trim(),Y={attrs:u(U,y[2]),noInnerParse:E,tag:U};return T.inAnchor=T.inAnchor||R==="a",E?Y.text=y[3]:Y.children=D(x,H,T),T.inAnchor=!1,Y},render:(y,x,T)=>i(y.tag,Xr({key:T.key},y.attrs),y.text||(y.children?x(y.children,T):""))},[ue.htmlSelfClosing]:{match:Ki(Sh),order:1,parse(y){const x=y[1].trim();return{attrs:u(x,y[2]||""),tag:x}},render:(y,x,T)=>i(y.tag,Xr({},y.attrs,{key:T.key}))},[ue.htmlComment]:{match:Ki(lv),order:1,parse:()=>({}),render:Af},[ue.image]:{match:_r(pR),order:1,parse:y=>({alt:y[1],target:Vy(y[2]),title:y[3]}),render:(y,x,T)=>i("img",{key:T.key,alt:y.alt||void 0,title:y.title||void 0,src:r.sanitizer(y.target,"img","src")})},[ue.link]:{match:yr(mR),order:3,parse:(y,x,T)=>({children:SR(x,y[1],T),target:Vy(y[2]),title:y[3]}),render:(y,x,T)=>i("a",{key:T.key,href:r.sanitizer(y.target,"a","href"),title:y.title},x(y.children,T))},[ue.linkAngleBraceStyleDetector]:{match:yr(FO),order:0,parse:y=>({children:[{text:y[1],type:ue.text}],target:y[1],type:ue.link})},[ue.linkBareUrlDetector]:{match:qa((y,x)=>x.inAnchor||r.disableAutoLink?null:yr(qO)(y,x)),order:0,parse:y=>({children:[{text:y[1],type:ue.text}],target:y[1],title:void 0,type:ue.link})},[ue.linkMailtoDetector]:{match:yr(IO),order:0,parse(y){let x=y[1],T=y[1];return xO.test(T)||(T="mailto:"+T),{children:[{text:x.replace("mailto:",""),type:ue.text}],target:T,type:ue.link}}},[ue.orderedList]:qy(i,1),[ue.unorderedList]:qy(i,2),[ue.newlineCoalescer]:{match:Gn(DO),order:3,parse:xf,render:()=>`
104
- `},[ue.paragraph]:{match:qa(bR),order:3,parse:Tf,render:(y,x,T)=>i("p",{key:T.key},x(y.children,T))},[ue.ref]:{match:yr(PO),order:0,parse:y=>(h[y[1]]={target:y[2],title:y[4]},{}),render:Af},[ue.refImage]:{match:_r(YO),order:0,parse:y=>({alt:y[1]||void 0,ref:y[2]}),render:(y,x,T)=>h[y.ref]?i("img",{key:T.key,alt:y.alt,src:r.sanitizer(h[y.ref].target,"img","src"),title:h[y.ref].title}):null},[ue.refLink]:{match:yr(ZO),order:0,parse:(y,x,T)=>({children:x(y[1],T),fallbackChildren:y[0],ref:y[2]}),render:(y,x,T)=>h[y.ref]?i("a",{key:T.key,href:r.sanitizer(h[y.ref].target,"a","href"),title:h[y.ref].title},x(y.children,T)):i("span",{key:T.key},y.fallbackChildren)},[ue.table]:{match:Gn(ov),order:1,parse:_R,render(y,x,T){const z=y;return i("table",{key:T.key},i("thead",null,i("tr",null,z.header.map(function(N,H){return i("th",{key:H,style:Fy(z,H)},x(N,T))}))),i("tbody",null,z.cells.map(function(N,H){return i("tr",{key:H},N.map(function(D,O){return i("td",{key:O,style:Fy(z,O)},x(D,T))}))})))}},[ue.text]:{match:Ki(iR),order:4,parse:y=>({text:y[0].replace(zO,(x,T)=>r.namedCodesToUnicode[T]?r.namedCodesToUnicode[T]:x)}),render:y=>y.text},[ue.textBolded]:{match:_r(eR),order:2,parse:(y,x,T)=>({children:x(y[2],T)}),render:(y,x,T)=>i("strong",{key:T.key},x(y.children,T))},[ue.textEmphasized]:{match:_r(tR),order:3,parse:(y,x,T)=>({children:x(y[2],T)}),render:(y,x,T)=>i("em",{key:T.key},x(y.children,T))},[ue.textEscaped]:{match:_r(aR),order:1,parse:y=>({text:y[1],type:ue.text})},[ue.textMarked]:{match:_r(nR),order:3,parse:Tf,render:(y,x,T)=>i("mark",{key:T.key},x(y.children,T))},[ue.textStrikethroughed]:{match:_r(rR),order:3,parse:Tf,render:(y,x,T)=>i("del",{key:T.key},x(y.children,T))}};r.disableParsingRawHTML===!0&&(delete d[ue.htmlBlock],delete d[ue.htmlSelfClosing]);const m=function(y){let x=Object.keys(y);function T(z,N){let H,D,O=[],R="",E="";for(N.prevCapture=N.prevCapture||"";z;){let U=0;for(;U<x.length;){if(R=x[U],H=y[R],N.inline&&!H.match.inline){U++;continue}const Y=H.match(z,N);if(Y){E=Y[0],N.prevCapture+=E,z=z.substring(E.length),D=H.parse(Y,T,N),D.type==null&&(D.type=R),O.push(D);break}U++}}return N.prevCapture="",O}return x.sort(function(z,N){let H=y[z].order,D=y[N].order;return H!==D?H-D:z<N?-1:1}),function(z,N){return T(function(H){return H.replace(MO,`
105
- `).replace(UO,"").replace(QO," ")}(z),N)}}(d),g=(_=function(y,x){return function(T,z,N){const H=y[T.type].render;return x?x(()=>H(T,z,N),T,z,N):H(T,z,N)}}(d,r.renderRule),function y(x,T={}){if(Array.isArray(x)){const z=T.key,N=[];let H=!1;for(let D=0;D<x.length;D++){T.key=D;const O=y(x[D],T),R=typeof O=="string";R&&H?N[N.length-1]+=O:O!==null&&N.push(O),H=R}return T.key=z,N}return _(x,y,T)});var _;const S=l(n);return f.length?i("div",null,S,i("footer",{key:"footer"},f.map(function(y){return i("div",{id:r.slugify(y.identifier,Qi),key:y.identifier},y.identifier,g(m(y.footnote,{inline:!0})))}))):S}const bn=n=>{let{children:r="",options:i}=n,l=function(u,f){if(u==null)return{};var h,d,m={},g=Object.keys(u);for(d=0;d<g.length;d++)f.indexOf(h=g[d])>=0||(m[h]=u[h]);return m}(n,vO);return I.cloneElement(AR(r,i),l)},OR="_generalConditionsContainer_55hjg_1",RR="_generalConditions_55hjg_1",wR="_generalConditionsHeader_55hjg_15",CR="_generalConditionsBody_55hjg_26",NR="_generalConditionsAccept_55hjg_35",$i={generalConditionsContainer:OR,generalConditions:RR,generalConditionsHeader:wR,generalConditionsBody:CR,generalConditionsAccept:NR},DR=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})}),MR=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})}),BR="general-conditions.header",jR="general-conditions.body",Py="general-conditions.accept-conditions-note",UR=()=>{const n=We(),[r,i]=I.useState(!1),l=()=>i(!r),u=d=>{d.key==="ArrowDown"||d.key==="ArrowRight"?i(!0):d.key==="ArrowUp"||d.key==="ArrowLeft"||d.key==="Escape"?i(!1):(d.key==="Enter"||d.key==="Space"||d.key===" ")&&l()},f=n(BR),h=n(Py);return b.jsxs("div",{className:Z($i.generalConditionsContainer,"chat__generalConditions"),children:[!!(f!=null&&f.length)&&b.jsxs("div",{className:$i.generalConditions,children:[b.jsxs("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:Z($i.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[b.jsx(bn,{children:f}),r?b.jsx(MR,{}):b.jsx(DR,{})]}),b.jsx("div",{className:Z($i.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&b.jsx(bn,{children:n(jR)||""})})]}),!!(h!=null&&h.length)&&b.jsx("div",{className:Z($i.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:b.jsx(bn,{children:n(Py)||""})})]})},HR="_message_59o8c_1",LR="_messageBot_59o8c_9",zR="_messageBotLast_59o8c_19",kR="_avatar_59o8c_19",GR="_messageBotFirst_59o8c_24",qR="_messageBotAnimated_59o8c_37",IR="_messageGuest_59o8c_48",FR="_messageGuestFirst_59o8c_54",VR="_messageGuestLast_59o8c_60",PR="_botAvatar_59o8c_74",YR="_agentAvatar_59o8c_78",ZR="_bubble_59o8c_82",XR="_bubbleContent_59o8c_88",QR="_bubbleLeft_59o8c_102",KR="_leftText_59o8c_113",$R="_bubbleRight_59o8c_120",JR="_rightText_59o8c_130",WR="_sourceInfoReference_59o8c_162",ew="_sourceInfoReferenceActive_59o8c_176",me={message:HR,messageBot:LR,messageBotLast:zR,avatar:kR,messageBotFirst:GR,messageBotAnimated:qR,messageGuest:IR,messageGuestFirst:FR,messageGuestLast:VR,botAvatar:PR,agentAvatar:YR,bubble:ZR,bubbleContent:XR,bubbleLeft:QR,leftText:KR,bubbleRight:$R,rightText:JR,sourceInfoReference:WR,sourceInfoReferenceActive:ew},tw="_botMessageActions_1dl7x_1",nw="_alwaysVisible_1dl7x_22",rw="_reported_1dl7x_29",aw="_action_1dl7x_33",br={botMessageActions:tw,alwaysVisible:nw,reported:rw,action:aw},iw=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:l,onReaction:u})=>{const f=We(),[h,d]=I.useState(!1),m=_=>()=>u(_),g=I.useCallback(async()=>{if(l.current)try{d(!0);const _=l.current.innerHTML,S=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([_],{type:"text/html"}),"text/plain":new Blob([S],{type:"text/plain"})})]),await new Promise(y=>setTimeout(y,1500))}finally{d(!1)}},[l]);return b.jsxs("div",{className:Z(br.botMessageActions,n&&br.alwaysVisible,i&&br.reported),children:[r===mo.BOT&&b.jsx("button",{className:Z(br.action,i==="GOOD"&&br.reported,"tooltip--top-right"),tabIndex:0,"aria-label":f(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":f(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:m(i==="GOOD"?null:"GOOD"),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="GOOD"?b.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"}):b.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"})})}),r===mo.BOT&&b.jsx("button",{className:Z(br.action,i==="BAD"&&br.reported,"tooltip--top-right"),tabIndex:0,"aria-label":f(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":f(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:m(i==="BAD"?null:"BAD"),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="BAD"?b.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"}):b.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"})})}),b.jsx("button",{className:Z(br.action,"tooltip--top-right"),tabIndex:0,"aria-label":f("bot-bubble.copy"),"data-title":f("bot-bubble.copy"),onClick:g,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?b.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"}):b.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"})})})]})},_v=I.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,children:f,onReaction:h},d)=>{const m=We(),g=I.useRef(null),_=n.sender.type===Ee.UserType.BOT;return b.jsxs("li",{ref:d,className:Z(me.message,me.messageBot,i&&me.lastMessage,l&&me.messageBotFirst,u&&me.messageBotLast,"chat__bubbleContainer",r&&me.messageBotAnimated,r&&"chat__bubbleContainer--animated",_?"chat__botBubbleContainer":"chat__agentBubbleContainer",l&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[b.jsx("img",{className:Z(me.avatar,_?me.botAvatar:me.agentAvatar,"chat__avatar",_?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:_?"Bot":"Agent",referrerPolicy:"no-referrer"}),b.jsx("div",{ref:g,className:Z(me.bubble,me.bubbleLeft,"chat__bubble",_?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(_?"bot-bubble.label":"agent-bubble.label"),children:b.jsx("div",{className:Z(me.leftText),children:f})}),h&&b.jsx(iw,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),sw="_sourceList_1n31h_1",lw="_source_1n31h_1",ow="_label_1n31h_37",Rf={sourceList:sw,source:lw,label:ow},bv=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.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"})}),vv=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.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"})}),Ev=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.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"})}),Sv=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.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"})}),uw=({type:n,...r})=>{switch(n){case"WEBSITE":return b.jsx(Sv,{...r});case"PDF":return b.jsx(Ev,{...r});case"DOCX":return b.jsx(bv,{...r});default:return b.jsx(vv,{...r})}},ad=({sources:n,onLinkClick:r})=>{const i=We(),l=f=>()=>{r(f.url)},u=f=>h=>{(h.key==="Enter"||h.key===" ")&&r(f.url)};return n.length?b.jsx("ul",{className:Rf.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>b.jsx("li",{className:Rf.source,children:b.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:l(f),onKeyDown:u(f),children:[b.jsx(uw,{type:f.type,"aria-hidden":"true"}),b.jsx("div",{className:Rf.label,children:f.label})]})},f.url))}):null},cw="_button_3ui4g_1",fw="_buttonDefault_3ui4g_13",hw="_buttonPrimary_3ui4g_28",ss={button:cw,buttonDefault:fw,buttonPrimary:hw},wo=({className:n,children:r,...i})=>b.jsx("button",{className:Z(ss.button,n),type:"button",...i,children:r}),dw="_title_b904h_1",mw="_subtitle_b904h_6",pw="_buttons_b904h_11",gw="_button_b904h_11",yw="_imageContainer_b904h_34",_w="_image_b904h_34",bw="_video_container_b904h_49",vw="_video_b904h_49",Ew="_only_b904h_63",At={title:dw,subtitle:mw,buttons:pw,button:gw,imageContainer:yw,image:_w,video_container:bw,video:vw,only:Ew},Sw=({buttons:n,onButtonClick:r})=>b.jsx("div",{className:Z(At.buttons,"chat__bubbleButtons"),children:n.map((i,l)=>b.jsx(wo,{className:Z(At.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},l))});var Vl={},Pl={},Yl={},Yy;function Tw(){if(Yy)return Yl;Yy=1,Object.defineProperty(Yl,"__esModule",{value:!0});var n=Ia(),r=i(n);function i(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(u[f]=l[f]);return u.default=l,u}return Yl.default=function(l,u,f){return r.createElement("a",{href:l,key:f},u)},Yl}var Zl={},Zy;function xw(){return Zy||(Zy=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=function(n){return n}),Zl}var Xl={},wf,Xy;function Aw(){return Xy||(Xy=1,wf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),wf}var Cf,Qy;function Ow(){return Qy||(Qy=1,Cf=/[\0-\x1F\x7F-\x9F]/),Cf}var Nf,Ky;function Rw(){return Ky||(Ky=1,Nf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Nf}var Df,$y;function ww(){return $y||($y=1,Df=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Df}var Mf,Jy;function Cw(){return Jy||(Jy=1,Mf=function(n){var r={};r.src_Any=Aw().source,r.src_Cc=Ow().source,r.src_Z=Rw().source,r.src_P=ww().source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var i="[><|]";return r.src_pseudo_letter="(?:(?!"+i+"|"+r.src_ZPCc+")"+r.src_Any+")",r.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]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+i+"|"+r.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+r.src_ZCc+"|[.]).|"+(n&&n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+r.src_ZCc+").|\\!(?!"+r.src_ZCc+"|[!]).|\\?(?!"+r.src_ZCc+"|[?]).)+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),Mf}var Bf,Wy;function Nw(){if(Wy)return Bf;Wy=1;function n(O){var R=Array.prototype.slice.call(arguments,1);return R.forEach(function(E){E&&Object.keys(E).forEach(function(U){O[U]=E[U]})}),O}function r(O){return Object.prototype.toString.call(O)}function i(O){return r(O)==="[object String]"}function l(O){return r(O)==="[object Object]"}function u(O){return r(O)==="[object RegExp]"}function f(O){return r(O)==="[object Function]"}function h(O){return O.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function m(O){return Object.keys(O||{}).reduce(function(R,E){return R||d.hasOwnProperty(E)},!1)}var g={"http:":{validate:function(O,R,E){var U=O.slice(R);return E.re.http||(E.re.http=new RegExp("^\\/\\/"+E.re.src_auth+E.re.src_host_port_strict+E.re.src_path,"i")),E.re.http.test(U)?U.match(E.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(O,R,E){var U=O.slice(R);return E.re.no_http||(E.re.no_http=new RegExp("^"+E.re.src_auth+"(?:localhost|(?:(?:"+E.re.src_domain+")\\.)+"+E.re.src_domain_root+")"+E.re.src_port+E.re.src_host_terminator+E.re.src_path,"i")),E.re.no_http.test(U)?R>=3&&O[R-3]===":"||R>=3&&O[R-3]==="/"?0:U.match(E.re.no_http)[0].length:0}},"mailto:":{validate:function(O,R,E){var U=O.slice(R);return E.re.mailto||(E.re.mailto=new RegExp("^"+E.re.src_email_name+"@"+E.re.src_host_strict,"i")),E.re.mailto.test(U)?U.match(E.re.mailto)[0].length:0}}},_="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]",S="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function y(O){O.__index__=-1,O.__text_cache__=""}function x(O){return function(R,E){var U=R.slice(E);return O.test(U)?U.match(O)[0].length:0}}function T(){return function(O,R){R.normalize(O)}}function z(O){var R=O.re=Cw()(O.__opts__),E=O.__tlds__.slice();O.onCompile(),O.__tlds_replaced__||E.push(_),E.push(R.src_xn),R.src_tlds=E.join("|");function U(ee){return ee.replace("%TLDS%",R.src_tlds)}R.email_fuzzy=RegExp(U(R.tpl_email_fuzzy),"i"),R.link_fuzzy=RegExp(U(R.tpl_link_fuzzy),"i"),R.link_no_ip_fuzzy=RegExp(U(R.tpl_link_no_ip_fuzzy),"i"),R.host_fuzzy_test=RegExp(U(R.tpl_host_fuzzy_test),"i");var Y=[];O.__compiled__={};function K(ee,le){throw new Error('(LinkifyIt) Invalid schema "'+ee+'": '+le)}Object.keys(O.__schemas__).forEach(function(ee){var le=O.__schemas__[ee];if(le!==null){var ie={validate:null,link:null};if(O.__compiled__[ee]=ie,l(le)){u(le.validate)?ie.validate=x(le.validate):f(le.validate)?ie.validate=le.validate:K(ee,le),f(le.normalize)?ie.normalize=le.normalize:le.normalize?K(ee,le):ie.normalize=T();return}if(i(le)){Y.push(ee);return}K(ee,le)}}),Y.forEach(function(ee){O.__compiled__[O.__schemas__[ee]]&&(O.__compiled__[ee].validate=O.__compiled__[O.__schemas__[ee]].validate,O.__compiled__[ee].normalize=O.__compiled__[O.__schemas__[ee]].normalize)}),O.__compiled__[""]={validate:null,normalize:T()};var re=Object.keys(O.__compiled__).filter(function(ee){return ee.length>0&&O.__compiled__[ee]}).map(h).join("|");O.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+R.src_ZPCc+"))("+re+")","i"),O.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+R.src_ZPCc+"))("+re+")","ig"),O.re.pretest=RegExp("("+O.re.schema_test.source+")|("+O.re.host_fuzzy_test.source+")|@","i"),y(O)}function N(O,R){var E=O.__index__,U=O.__last_index__,Y=O.__text_cache__.slice(E,U);this.schema=O.__schema__.toLowerCase(),this.index=E+R,this.lastIndex=U+R,this.raw=Y,this.text=Y,this.url=Y}function H(O,R){var E=new N(O,R);return O.__compiled__[E.schema].normalize(E,O),E}function D(O,R){if(!(this instanceof D))return new D(O,R);R||m(O)&&(R=O,O={}),this.__opts__=n({},d,R),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},g,O),this.__compiled__={},this.__tlds__=S,this.__tlds_replaced__=!1,this.re={},z(this)}return D.prototype.add=function(R,E){return this.__schemas__[R]=E,z(this),this},D.prototype.set=function(R){return this.__opts__=n(this.__opts__,R),this},D.prototype.test=function(R){if(this.__text_cache__=R,this.__index__=-1,!R.length)return!1;var E,U,Y,K,re,ee,le,ie,de;if(this.re.schema_test.test(R)){for(le=this.re.schema_search,le.lastIndex=0;(E=le.exec(R))!==null;)if(K=this.testSchemaAt(R,E[2],le.lastIndex),K){this.__schema__=E[2],this.__index__=E.index+E[1].length,this.__last_index__=E.index+E[0].length+K;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(ie=R.search(this.re.host_fuzzy_test),ie>=0&&(this.__index__<0||ie<this.__index__)&&(U=R.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(re=U.index+U[1].length,(this.__index__<0||re<this.__index__)&&(this.__schema__="",this.__index__=re,this.__last_index__=U.index+U[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(de=R.indexOf("@"),de>=0&&(Y=R.match(this.re.email_fuzzy))!==null&&(re=Y.index+Y[1].length,ee=Y.index+Y[0].length,(this.__index__<0||re<this.__index__||re===this.__index__&&ee>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=re,this.__last_index__=ee))),this.__index__>=0},D.prototype.pretest=function(R){return this.re.pretest.test(R)},D.prototype.testSchemaAt=function(R,E,U){return this.__compiled__[E.toLowerCase()]?this.__compiled__[E.toLowerCase()].validate(R,U,this):0},D.prototype.match=function(R){var E=0,U=[];this.__index__>=0&&this.__text_cache__===R&&(U.push(H(this,E)),E=this.__last_index__);for(var Y=E?R.slice(E):R;this.test(Y);)U.push(H(this,E)),Y=Y.slice(this.__last_index__),E+=this.__last_index__;return U.length?U:null},D.prototype.tlds=function(R,E){return R=Array.isArray(R)?R:[R],E?(this.__tlds__=this.__tlds__.concat(R).sort().filter(function(U,Y,K){return U!==K[Y-1]}).reverse(),z(this),this):(this.__tlds__=R.slice(),this.__tlds_replaced__=!0,z(this),this)},D.prototype.normalize=function(R){R.schema||(R.url="http://"+R.url),R.schema==="mailto:"&&!/^mailto:/i.test(R.url)&&(R.url="mailto:"+R.url)},D.prototype.onCompile=function(){},Bf=D,Bf}const Dw=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","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","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","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","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","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","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","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","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","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","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","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","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","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","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","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","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","shell","shia","shiksha","shoes","shop","shopping","shouji","show","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","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","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 e_;function Mw(){if(e_)return Xl;e_=1,Object.defineProperty(Xl,"__esModule",{value:!0});var n=Nw(),r=u(n),i=Dw,l=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var f=new r.default;return f.tlds(l.default),Xl.default=function(h){return f.match(h)},Xl}var Ql={},t_;function Bw(){return t_||(t_=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.default=function(n){return n}),Ql}var n_;function jw(){if(n_)return Pl;n_=1,Object.defineProperty(Pl,"__esModule",{value:!0});var n=function(){function H(D,O){for(var R=0;R<O.length;R++){var E=O[R];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(D,E.key,E)}}return function(D,O,R){return O&&H(D.prototype,O),R&&H(D,R),D}}(),r=Ia(),i=y(r),l=Tw(),u=S(l),f=xw(),h=S(f),d=Mw(),m=S(d),g=Bw(),_=S(g);function S(H){return H&&H.__esModule?H:{default:H}}function y(H){if(H&&H.__esModule)return H;var D={};if(H!=null)for(var O in H)Object.prototype.hasOwnProperty.call(H,O)&&(D[O]=H[O]);return D.default=H,D}function x(H,D){if(!(H instanceof D))throw new TypeError("Cannot call a class as a function")}function T(H,D){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:H}function z(H,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);H.prototype=Object.create(D&&D.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(H,D):H.__proto__=D)}var N=function(H){z(D,H);function D(){return x(this,D),T(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return n(D,[{key:"parseString",value:function(R){var E=this;if(R==="")return R;var U=this.props.matchDecorator(R);if(!U)return R;var Y=[],K=0;return U.forEach(function(re,ee){re.index>K&&Y.push(R.substring(K,re.index));var le=E.props.hrefDecorator(re.url),ie=E.props.textDecorator(re.text),de=E.props.componentDecorator(le,ie,ee);Y.push(de),K=re.lastIndex}),R.length>K&&Y.push(R.substring(K)),Y.length===1?Y[0]:Y}},{key:"parse",value:function(R){var E=this,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof R=="string"?this.parseString(R):i.isValidElement(R)&&R.type!=="a"&&R.type!=="button"?i.cloneElement(R,{key:U},this.parse(R.props.children)):Array.isArray(R)?R.map(function(Y,K){return E.parse(Y,K)}):R}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),D}(i.Component);return N.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:_.default},Pl.default=N,Pl}var r_;function Uw(){if(r_)return Vl;r_=1,Object.defineProperty(Vl,"__esModule",{value:!0});var n=jw(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}return Vl.default=r.default,Vl}var Hw=Uw();const Lw=go(Hw),zw="_text_gp0s0_1",kw="_command_gp0s0_5",a_={text:zw,command:kw},Tv=({text:n,commands:r=[],onLinkClick:i})=>{const l=d=>m=>(m.preventDefault(),d&&i(d),!1),u=(d,m,g)=>b.jsx("a",{onClick:l(d),role:"button",children:m},g),f=r.find(d=>n.startsWith(`/${d}`)),h=f?n.slice(f.length+1):n;return b.jsxs("div",{children:[f&&b.jsxs("code",{className:a_.command,children:["/",f]}),h.split(`
106
- `).map((d,m)=>b.jsxs("span",{className:a_.text,children:[b.jsx(Lw,{componentDecorator:u,children:d}),b.jsx("br",{})]},m))]})},Gw=({subtitle:n,onLinkClick:r})=>n?b.jsx("div",{className:At.subtitle,children:b.jsx(Tv,{text:n,onLinkClick:r})}):null,i_="newtab#",xv=({markdown:n,markdownOptions:r={},onLinkClick:i})=>{const l=f=>h=>(h.preventDefault(),f&&i(f),!1),u=({title:f,href:h,children:d})=>h.indexOf(i_)===0?b.jsx("a",{href:h.slice(i_.length),title:f,target:"_blank",rel:"noopener noreferrer",children:d}):b.jsx("a",{onClick:l(h),title:f,href:h,children:d});return b.jsx(bn,{options:{...r,overrides:{a:u}},children:n})},qw=({text:n,onLinkClick:r})=>n?b.jsx("div",{children:b.jsx(xv,{markdown:n,onLinkClick:r})}):null,Iw=({title:n})=>n?b.jsx("h1",{className:At.title,children:n}):null,Fw=({title:n,text:r,subtitle:i,buttons:l,onButtonClick:u,onLinkClick:f})=>(n==null?void 0:n.length)||(r==null?void 0:r.length)||(i==null?void 0:i.length)||(l==null?void 0:l.length)?b.jsxs("div",{className:Z(me.bubbleContent),children:[b.jsx(Iw,{title:n}),b.jsx(qw,{text:r,onLinkClick:f}),b.jsx(Gw,{subtitle:i,onLinkClick:f}),b.jsx(Sw,{buttons:l,onButtonClick:u})]}):null,Vw=({alt:n,imageUrl:r,itemUrl:i,hasBody:l})=>r?i?i.indexOf("youtube.com")>-1?b.jsx("div",{className:At.video_container,children:b.jsx("iframe",{className:Z(At.video,{[At.only]:!l}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):b.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:b.jsx("div",{className:At.imageContainer,children:b.jsx("img",{className:Z(At.image,{[At.only]:!l}),src:r,alt:n})})}):b.jsx("div",{className:At.imageContainer,children:b.jsx("img",{className:Z(At.image,{[At.only]:!l}),src:r,alt:n})}):null,Pw=({title:n,text:r,subtitle:i,imageUrl:l,itemUrl:u,buttons:f,sources:h,onButtonClick:d,onLinkClick:m})=>{const g=!!(n!=null&&n.length)||!!(r!=null&&r.length)||!!(i!=null&&i.length)||!!(f!=null&&f.length);return b.jsxs("div",{className:Z(At.detailMessage),children:[b.jsx(Vw,{hasBody:g,imageUrl:l,itemUrl:u,alt:n||i}),g&&b.jsx(Fw,{title:n,text:r,subtitle:i,buttons:f,onLinkClick:m,onButtonClick:d}),b.jsx(ad,{sources:h,onLinkClick:m})]})},Yw=I.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},l)=>{const u=We();return b.jsx("li",{ref:l,className:Z(me.message,me.messageGuest,n&&me.messageGuestFirst,r&&me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:b.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:b.jsx("div",{className:Z(me.rightText),children:i})})})}),Zw="_markdown_nw7vg_1",Av={markdown:Zw},Kl="source-info-reference",Xw=({markdown:n,sources:r,onLinkClick:i})=>{const l=Va(),u=Qw(),f=kt(m=>{const g=m.chat.sourceInfos;if((g==null?void 0:g.type)==="loaded"||(g==null?void 0:g.type)==="loading")return g.chunkId}),h=m=>g=>{const _=g.key;(_==="ArrowDown"||_==="ArrowRight"||_==="Enter"||_===" "||_==="Space")&&(g.stopPropagation(),l(Uy(m)))},d=m=>()=>{l(Uy(m))};return I.useLayoutEffect(()=>{document.querySelectorAll(`.${Kl}`).forEach(m=>{var S,y,x,T;const g=m.previousSibling;g&&g.nodeType===Node.TEXT_NODE&&((S=g.textContent)!=null&&S.endsWith(" "))&&((y=g.textContent)!=null&&y.trim().length)&&m.classList.add(`${Kl}--before-space`);const _=m.nextSibling;_&&_.nodeType===Node.TEXT_NODE&&((x=_.textContent)!=null&&x.startsWith(" "))&&((T=_.textContent)!=null&&T.trim().length)&&m.classList.add(`${Kl}--after-space`)})},[n]),b.jsxs("div",{className:me.bubbleContent,children:[b.jsx("div",{className:Av.markdown,children:b.jsx(xv,{markdown:n,onLinkClick:i,markdownOptions:{renderRule(m,g,_,S){if(g.type===ue.footnoteReference){const y=g.text===f;return b.jsx("span",{className:Z(me.sourceInfoReference,y&&me.sourceInfoReferenceActive,Kl),children:b.jsx("a",{type:"button",tabIndex:0,onClick:d(g.text),onKeyDown:h(g.text),children:u(g.text)})},S.key)}return m()}}})}),b.jsx(ad,{sources:r,onLinkClick:i})]})},Qw=()=>{const n=[];return i=>{const l=n.indexOf(i);return l>-1?l+1:(n.push(i),n.length)}},Kw=({text:n,commands:r,sources:i,onLinkClick:l})=>b.jsxs("div",{className:me.bubbleContent,children:[b.jsx(Tv,{text:n,commands:r,onLinkClick:l}),b.jsx(ad,{sources:i,onLinkClick:l})]}),$w=I.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:f,onButtonClick:h,onLinkClick:d},m)=>{const g=Jw(n,r,h,d);switch(n.sender.type){case Ee.UserType.GUEST:return b.jsx(Yw,{ref:m,isFirstMessageBySender:l,isLastMessageBySender:u,children:g});default:{const _=S=>f(n._id,S);return b.jsx(_v,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:_,children:g})}}}),Jw=(n,r,i,l)=>{switch(n.type){case Ee.MessageTypeEnum.TEXT:{const u=n;return b.jsx(Kw,{text:u.text,commands:r,sources:n.sources||[],onLinkClick:l})}case Ee.MessageTypeEnum.DETAIL:{const u=n;return b.jsx(Pw,{title:u.title,text:u.text,subtitle:u.subtitle,imageUrl:u.imageUrl,itemUrl:u.itemUrl,buttons:u.buttons,sources:n.sources||[],onButtonClick:i,onLinkClick:l})}case Ee.MessageTypeEnum.MARKDOWN:{const u=n;return b.jsx(Xw,{markdown:u.markdown,sources:u.sources||[],onLinkClick:l})}}},Ww=(n,r)=>n.message._id===r.message._id&&n.message.reaction===r.message.reaction&&n.isLastMessage===r.isLastMessage&&n.isFirstMessageBySender===r.isFirstMessageBySender&&n.isLastMessageBySender===r.isLastMessageBySender,eC=F_.memo($w,Ww),tC="_ticontainer_xg0dn_1",nC="_tiblock_xg0dn_5",rC="_tidot_xg0dn_12",Ji={ticontainer:tC,tiblock:nC,tidot:rC},aC=({isTyping:n=!1})=>b.jsx("div",{className:Ji.ticontainer,children:b.jsx("div",{className:Ji.tiblock,children:n?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:Z(Ji.tidot,"chat__typingIndicator")}),b.jsx("div",{className:Z(Ji.tidot,"chat__typingIndicator")}),b.jsx("div",{className:Z(Ji.tidot,"chat__typingIndicator")})]}):null})}),iC=Object.assign({_id:"typing-indicator"},new Ee.TextMessage("",new Ee.BotUser)),sC=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const h=I.useRef(0),d=I.useRef(!0),m=I.useRef(null),g=I.useRef(null),_=I.useRef(null),S=kt(T=>T.settings.enableGeneralConditions);I.useLayoutEffect(()=>{if(n.length&&m.current&&(h.current<n.length||r)){if(g.current){const T=g.current.offsetTop;m.current.scrollTop=T}else if(_.current){const T=_.current.offsetTop;m.current.scrollTop=T}d.current&&(d.current=!1),h.current=n.length}},[n,d,r]);let y;const x=n.length;return b.jsxs("div",{ref:m,className:Z(Hy.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&b.jsx(UR,{}),b.jsxs("ul",{className:Hy.messages,children:[n.map((T,z)=>{const N=lC(T,y),H=oC(T,z,n,r);y=T.sender.type;const D=z+1===x;return b.jsx(eC,{ref:D?_:null,message:T,commands:i,isLastMessage:D,isFirstMessageBySender:N,isLastMessageBySender:H,onButtonClick:u,onLinkClick:f,onReaction:l},D&&!r?"last":T._id)}),r&&b.jsx(_v,{ref:g,message:iC,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:y!==Ee.UserType.BOT,isLastMessageBySender:!0,children:b.jsx(aC,{isTyping:!0})},"last")]})]})},lC=(n,r)=>!r||r!==n.sender.type,oC=(n,r,i,l)=>{var d;const u=n.sender.type,f=i.length;return r+1===f?!(u===Ee.UserType.BOT&&l):u!==((d=i.at(r+1))==null?void 0:d.sender.type)},uC="_bottomSheet_jp8dl_1",cC="_bottomSheetOpen_jp8dl_15",fC="_bottomSheetClose_jp8dl_20",Vn={bottomSheet:uC,bottomSheetOpen:cC,bottomSheetClose:fC},hC="_container_xc2nx_1",s_={container:hC},dC=({contentUrl:n})=>{const r=kt(f=>f.connection.sessionId),[i,l]=I.useState(!1);I.useEffect(()=>{l(f=>f||!!n)},[n]);const u=I.useMemo(()=>{if(n&&r){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",r),f.toString()}else return},[n,r]);return b.jsx("div",{className:Z(s_.container,Vn.bottomSheet,{[Vn.bottomSheetOpen]:!!n,[Vn.bottomSheetClose]:i&&!n}),children:u&&b.jsx("iframe",{title:"Drawer",src:u,className:s_.iframe})})},mC="_container_tr4tn_1",pC={container:mC},gC=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),yC=()=>{const r=We()("powered-by");return r&&r.length?b.jsx("div",{className:Z(pC.container,"chat__poweredBy"),children:b.jsx(bn,{options:{overrides:{a:gC}},children:r})}):null},l_=({className:n,children:r,...i})=>b.jsx(wo,{className:Z(ss.buttonDefault,n),type:"button",...i,children:r}),ls=({className:n,children:r,...i})=>b.jsx(wo,{className:Z(ss.buttonPrimary,n),...i,children:r}),_C="_container_h23mk_1",bC="_formContainer_h23mk_17",vC="_emailInput_h23mk_22",EC="_description_h23mk_52",SC="_actions_h23mk_57",TC="_validationError_h23mk_67",xC="_submitted_h23mk_74",qn={container:_C,formContainer:bC,emailInput:vC,description:EC,actions:SC,validationError:TC,submitted:xC},AC=({visible:n,enableTranscriptExportPdf:r,enableTranscriptExportEmail:i,onEmailExport:l,onPdfExport:u,onClose:f})=>{const h=We(),[d,m]=I.useState(void 0),[g,_]=I.useState(!1),[S,y]=I.useState(!1),[x,T]=I.useState(void 0),z=I.useRef(null);I.useEffect(()=>{var O;n?((O=z.current)==null||O.focus(),_(!1),y(!1),m(n)):d===!0&&m(!1)},[n,d]);const N=O=>{O.preventDefault(),x&&x.length>0&&(l(x),_(!0),setTimeout(f,3*1e3))},H=O=>{const R=O.target.value.trim(),E=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);T(E?R:"")},D=()=>{y(!0),u(),setTimeout(f,3*1e3)};return b.jsxs("div",{className:Z(qn.container,Vn.bottomSheet,{[Vn.bottomSheetOpen]:d===!0,[Vn.bottomSheetClose]:d===!1}),children:[r&&b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:h("export-transcript.pdf.title")}),b.jsx(bn,{className:qn.description,children:h("export-transcript.pdf.description")||""}),b.jsxs("div",{className:qn.actions,children:[b.jsx(l_,{onClick:f,children:h("export-transcript.pdf.cancel")}),b.jsx(ls,{onClick:D,disabled:S,children:h("export-transcript.pdf.download")})]})]}),i&&b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:h("export-transcript.email.title")}),b.jsx(bn,{className:qn.description,children:h("export-transcript.email.description")||""}),b.jsxs("form",{onSubmit:N,className:qn.formContainer,children:[b.jsxs("div",{children:[b.jsx("input",{disabled:g,ref:z,type:"email",placeholder:h("export-transcript.email.placeholder"),className:qn.emailInput,onChange:H}),(x==null?void 0:x.length)===0?b.jsx("div",{className:qn.validationError,children:h("export-transcript.email.invalid")}):null]}),b.jsxs("div",{className:qn.actions,children:[b.jsx(l_,{onClick:f,children:h("export-transcript.email.cancel")}),b.jsx(ls,{type:"submit",disabled:g||x===void 0||x.length===0,children:h("export-transcript.email.send")})]})]}),g&&b.jsx("div",{className:qn.submitted,children:h("export-transcript.email.success")})]})]})},OC="_inputContainer_fi5ao_1",RC={inputContainer:OC},wC="_blockUserInput_pot9c_1",CC={blockUserInput:wC},NC=({visible:n})=>{const r=We();return n?b.jsx("div",{className:Z(CC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},DC="_commandsDropdown_5ytuv_1",MC="_commands_5ytuv_1",BC="_command_5ytuv_1",jC="_commandActive_5ytuv_46",UC="_commandsSelections_5ytuv_55",ts={commandsDropdown:DC,commands:MC,command:BC,commandActive:jC,commandsSelections:UC},HC=(n,r)=>{I.useEffect(()=>{const i=l=>{n.current&&!n.current.contains(l.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},LC=(n,r,i,l,u)=>{I.useEffect(()=>{const f=h=>{if(n.length)switch(h.key){case"Enter":i(n[r]);break;case"ArrowUp":l(d=>d>0?d-1:n.length-1);break;case"ArrowDown":l(d=>d<n.length-1?d+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,r,i,l,u])},zC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:l})=>{const u=I.useRef(null),f=We(),[h,d]=I.useState([]),[m,g]=I.useState(o_(r)),[_,S]=I.useState(0),y=x=>i(`/${x}`);return HC(u,()=>d([])),LC(h,_,y,S,d),I.useEffect(()=>{g(o_(r))},[r]),I.useEffect(()=>{const x=n.length||0;x===0||x>m||!n.startsWith("/")?d([]):d(r.filter(kC(n))),S(0)},[r,n,m]),I.useEffect(()=>{l(!!h.length)},[h,l]),h.length?b.jsx("div",{ref:u,className:ts.commandsDropdown,children:b.jsx("ul",{className:ts.commands,role:"listbox",children:h.map((x,T)=>b.jsxs("li",{className:Z([ts.command,_===T&&ts.commandActive]),role:"option",onClick:()=>y(x),onMouseOver:()=>S(T),children:[b.jsxs("h1",{children:["/",x]}),b.jsx("p",{children:f(`commands.${x}`)})]},x))})}):null},o_=n=>Math.max(...n.map(r=>r.length+1)),kC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},u_=3,GC=({commands:n,onSelectCommand:r})=>{const i=We(),[l,u]=I.useState(!1),f=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=l?n:n.slice(0,u_);return b.jsxs("div",{className:ts.commandsSelections,children:[m.map(g=>b.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${g}`),"data-title":i(`commands.${g}`),tabIndex:0,onClick:f(g),children:["/",g]},g)),m.length<n.length?b.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-more.action")},"show-more"):m.length>u_?b.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-less.action")},"show-less"):null]})},qC="_callToActionContainer_bkfcm_1",IC="_callToActionTitle_bkfcm_23",FC="_rateOverlay_bkfcm_30",VC="_body_bkfcm_52",PC="_footer_bkfcm_60",YC="_actions_bkfcm_73",ZC="_bubbles_bkfcm_101",XC="_stars_bkfcm_203",QC="_starsSmall_bkfcm_215",KC="_starsLarge_bkfcm_219",$C="_star_bkfcm_203",JC="_starReadonly_bkfcm_236",WC="_starIcon_bkfcm_246",e3="_starsDescriptionContainer_bkfcm_264",t3="_starsDescription_bkfcm_264",bt={callToActionContainer:qC,callToActionTitle:IC,rateOverlay:FC,body:VC,footer:PC,actions:YC,bubbles:ZC,stars:XC,starsSmall:QC,starsLarge:KC,star:$C,starReadonly:JC,starIcon:WC,starsDescriptionContainer:e3,starsDescription:t3},n3=({value:n,index:r,count:i,readonly:l,onHover:u,onClick:f})=>{const h=d=>{f&&d.key==="Enter"&&f()};return b.jsx("li",{className:Z(bt.star,{[bt.starReadonly]:l},"chat__conversationRating__star"),children:b.jsx("div",{role:"radio","aria-checked":n>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:h,onClick:f,children:b.jsx("span",{role:"img","aria-label":"Star",className:Z(bt.starIcon),children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.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"})})})})})},c_=5,Ov=({value:n,size:r,readonly:i=!1,onChange:l})=>{const[u,f]=I.useState(void 0),h=()=>{f(void 0)},d=g=>()=>{if(!i){const _=g+1;f(_)}},m=g=>()=>{l&&!i&&(l(g===0&&n===1?0:g+1),f(void 0))};return b.jsx("ul",{tabIndex:0,role:"radiogroup",className:Z(bt.stars,{[bt.starsSmall]:r==="small",[bt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(c_).fill(0).map((g,_)=>b.jsx(n3,{value:u===void 0?n:u,index:_,count:c_,readonly:i,onHover:d(_),onClick:m(_)},_))})},r3=({visible:n,onRate:r})=>{const i=We();return n?b.jsxs("div",{className:Z(bt.callToActionContainer,"chat__conversationRating__callToAction"),children:[b.jsx("div",{className:Z(bt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),b.jsx(Ov,{value:0,size:"small",onChange:r})]}):null},jf=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>b.jsxs("div",{className:Z(me.message,me.messageBot,n&&me.messageBotFirst,r&&me.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[b.jsx("img",{className:Z(me.avatar,me.botAvatar),src:"bot.svg",alt:"Bot"}),b.jsx("div",{className:Z(me.bubble,me.bubbleLeft,"chat__bubble","chat__botBubble"),children:b.jsx("div",{className:Z(me.leftText,me.bubbleContent),children:i})})]}),a3=({children:n})=>b.jsx("div",{className:Z(me.message,me.messageGuest,me.messageGuestFirst,me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:b.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),children:b.jsx("div",{className:Z(me.rightText,me.bubbleContent),children:n})})}),i3=({visible:n,rating:r,onRate:i,onClose:l})=>{const u=We(),[f,h]=I.useState(r),[d,m]=I.useState(void 0),[g,_]=I.useState(void 0),[S,y]=I.useState({submitted:!1,feedback:""}),[x,T]=I.useState(!1),z=I.useRef(null);I.useEffect(()=>{n?(y({submitted:!1,feedback:""}),_(n)):g===!0&&_(!1)},[n,g]),I.useEffect(()=>{h(r)},[r]),I.useEffect(()=>{const H=u(`conversation-rating.overlay.bot-message.rate-feedback.value-${f}`);m(H!=null&&H.length?H:void 0)},[f,u]),I.useEffect(()=>{S.submitted?setTimeout(()=>T(!0),S.feedback.length?500:0):T(!1)},[S]);const N=H=>{var O,R;H.preventDefault();const D=((R=(O=z.current)==null?void 0:O.value)==null?void 0:R.trim())||"";i(f,D),y({submitted:!0,feedback:D})};return b.jsx("div",{className:Z(bt.rateOverlay,Vn.bottomSheet,"chat__conversationRating__overlay",{[Vn.bottomSheetOpen]:g===!0,[Vn.bottomSheetClose]:g===!1}),children:b.jsxs("form",{onSubmit:N,children:[b.jsxs("div",{className:Z(bt.body,"chat__conversationRating__overlay__body"),children:[b.jsx("div",{}),b.jsx("div",{className:Z(bt.bubbles),children:n&&d&&b.jsxs(b.Fragment,{children:[b.jsxs(jf,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[b.jsx("h2",{children:u("conversation-rating.overlay.title")}),b.jsxs("div",{className:Z(bt.starsDescriptionContainer),children:[b.jsx(Ov,{value:f,size:"large",readonly:S.submitted,onChange:h}),b.jsxs("div",{className:Z(bt.starsDescription),children:[b.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),b.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),b.jsx(jf,{isFirstMessageBySender:!1,isLastMessageBySender:!x||!!S.feedback.length,children:b.jsx("div",{children:d})}),!!S.feedback.length&&b.jsx(a3,{children:S.feedback}),x&&b.jsx(jf,{isFirstMessageBySender:!!S.feedback.length,isLastMessageBySender:!0,children:b.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),b.jsxs("div",{className:Z(bt.footer,"chat__conversationRating__overlay__footer"),children:[!S.submitted&&b.jsx("input",{ref:z,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),b.jsx("div",{className:Z(bt.actions,"chat__conversationRating__overlay__footer__actions"),children:S.submitted?b.jsx(ls,{type:"button",onClick:l,children:u("conversation-rating.overlay.action.close")}):b.jsx(ls,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},s3=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:l,setShowRatingOverlay:u,onRate:f})=>{const[h,d]=I.useState(0),m=S=>{d(S),u(!0)},g=()=>u(!1),_=!r&&i>=1;return n?b.jsxs(b.Fragment,{children:[b.jsx(r3,{visible:_,onRate:m}),b.jsx(i3,{visible:l,rating:h,onRate:f,onClose:g})]}):null},l3=I.memo(s3),o3="_inputWrapper_e3h44_1",u3="_withOpenCommands_e3h44_14",c3="_messageInputWrapper_e3h44_20",f3="_messageInput_e3h44_20",h3="_buttons_e3h44_44",d3="_button_e3h44_44",Vr={inputWrapper:o3,withOpenCommands:u3,messageInputWrapper:c3,messageInput:f3,buttons:h3,button:d3},m3="_audioRecorder_g845f_1",p3="_audioButton_g845f_6",g3="_recorderIcon_g845f_37",y3="_spinning_g845f_60",Pr={audioRecorder:m3,audioButton:p3,recorderIcon:g3,spinning:y3},f_=2048,po=16e3;class _3 extends F_.Component{constructor(i){super(i);Ce(this,"audioInput",null);Ce(this,"volume",null);Ce(this,"leftchannel",[]);Ce(this,"recorder",null);Ce(this,"recordingLength",0);Ce(this,"sampleRate",null);Ce(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 l=window.AudioContext||window.webkitAudioContext,u=new l;this.sampleRate=u.sampleRate,this.volume=u.createGain(),this.audioInput=u.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=u.createScriptProcessor(f_,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(u.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const l=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(l)),this.recordingLength+=f_}}handleClickSubmitAudio(){const i=v3(this.leftchannel,this.recordingLength),l=E3(i,this.sampleRate||0),u=b3(l);this.props.onAudioRecorded(u),this.handleClickStopAudio()}handleClickStopAudio(){var i,l,u,f;this.setState({recordingState:"none"}),(i=this.audioInput)==null||i.disconnect(),(l=this.volume)==null||l.disconnect(),(u=this.recorder)==null||u.disconnect(),this.mediaStream&&((f=this.mediaStream)==null||f.getAudioTracks().forEach(h=>{h.stop()}))}render(){return b.jsxs("div",{className:Pr.audioRecorder,children:[this.state.recordingState==="none"&&b.jsx("button",{className:Z(Pr.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:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&b.jsxs("svg",{className:Pr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&b.jsxs("div",{className:Pr.audioRecorder,children:[b.jsx("button",{className:Z(Pr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),b.jsx("div",{className:Pr.recorderIcon}),b.jsx("button",{className:Z(Pr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const b3=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);$l(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),$l(i,8,"WAVE"),$l(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,po,!0),i.setUint32(28,po*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),$l(i,36,"data"),i.setUint32(40,n.length*2,!0);const l=n.length;let u=44;const f=1;for(let h=0;h<l;h++)i.setInt16(u,n[h]*(32767*f),!0),u+=2;return new Blob([i],{type:"audio/wav"})},$l=(n,r,i)=>{for(let l=0;l<i.length;l++)n.setUint8(r+l,i.charCodeAt(l))},v3=(n,r)=>{const i=new Float32Array(r);let l=0;const u=n.length;for(let f=0;f<u;f++){const h=n[f];i.set(h,l),l+=h.length}return i},E3=(n,r)=>{if(po===r)return n;const i=r/po,l=Math.round(n.length/i),u=new Float32Array(l);let f=0,h=0;for(;f<u.length;){const d=Math.round((f+1)*i);let m=0,g=0;for(let _=h;_<d&&_<n.length;_++)m+=n[_],g++;u[f]=m/g,f++,h=d}return u},S3=({disabled:n,textInput:r,commandsVisible:i,onTextInput:l,onTextInputSubmit:u,onAudioRecorded:f,onOpenTranscriptExportModal:h})=>{const d=We(),m=I.useRef(null),{enableTranscriptExportPdf:g,enableTranscriptExportEmail:_,enableSpeechSupport:S}=kt(N=>N.settings);I.useEffect(()=>{var N;(N=m.current)==null||N.focus()},[r]);const y=()=>{const N=m.current;N&&r.trim().length>=1&&u(r.trim())&&(N.value="",N.style.height="",N.focus())},x=N=>{N.preventDefault(),y()},T=N=>{const H=N.target.value;l(H),N.target.style.height="";const{scrollHeight:D}=N.target;N.target.style.height=`${D>150?150:D}px`},z=N=>{N.code==="Enter"&&!N.shiftKey?(N.repeat||y(),N.preventDefault()):i&&(N.code==="ArrowUp"||N.code==="ArrowDown")&&N.preventDefault()};return b.jsxs("form",{className:Z(Vr.inputWrapper,i&&Vr.withOpenCommands,"chat__textInput"),onSubmit:x,children:[b.jsx("div",{className:Vr.messageInputWrapper,children:b.jsx("textarea",{id:"user_input",ref:m,className:Vr.messageInput,tabIndex:0,placeholder:d("message-input-placeholder"),value:r,onChange:T,onKeyDown:z,"aria-label":d("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),b.jsxs("div",{className:Z(Vr.buttons,"chat__buttons"),children:[!r.length&&(g||_)&&b.jsx("button",{type:"button",className:Z(Vr.button,"chat__button"),"aria-label":d("message-input.actions.export-transcript.label"),"data-title":d("message-input.actions.export-transcript.label"),tabIndex:0,onClick:h,children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.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"})})}),r.length||!S||navigator.mediaDevices===void 0?b.jsx("button",{className:Z(Vr.button,"chat__button"),type:"submit","aria-label":d("message-input.actions.submit.label"),"data-title":d("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.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"})})}):S&&navigator.mediaDevices!==void 0&&b.jsx(_3,{translate:d,onAudioRecorded:f})]})]})},T3="_quickReplies_83npe_1",x3="_quickReply_83npe_9",h_={quickReplies:T3,quickReply:x3},A3=({quickReplies:n,onQuickReplyClick:r})=>n.length?b.jsx("div",{className:Z(h_.quickReplies,"chat__quickReplies"),children:n.map(i=>b.jsx(wo,{tabIndex:0,className:Z(h_.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,d_=5e3,O3=1e3,R3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:f,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:_,onOpenTranscriptExportModal:S})=>{const[y,x]=I.useState(""),[T,z]=I.useState(!1),[N,H]=I.useState(!1),D=I.useRef(0),O=I.useRef(0);I.useEffect(()=>{if(T&&!n){const U=D.current?Date.now()-D.current:0;U>d_?z(!1):setTimeout(()=>{z(!1)},d_-U)}},[T,n]),I.useEffect(()=>{T&&(D.current=Date.now())},[T]);const R=U=>{const Y=Date.now()-O.current<O3;return N?!1:n||Y?(z(!0),!1):(d(U),x(""),O.current=Date.now(),!0)},E=U=>{x(U+" ")};return b.jsxs("div",{className:Z(RC.inputContainer),children:[b.jsx(A3,{quickReplies:r,onQuickReplyClick:g}),b.jsx(NC,{visible:T}),!T&&b.jsx(l3,{conversationRating:i,numberOfMessagesFromGuest:l,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!(f!=null&&f.length)&&b.jsx(zC,{text:y,commands:f,onSelectCommand:E,onVisibilityChange:H}),b.jsx(S3,{textInput:y,disabled:T,commandsVisible:N,onTextInput:x,onTextInputSubmit:R,onOpenTranscriptExportModal:S,onAudioRecorded:_}),!!(f!=null&&f.length)&&b.jsx(GC,{commands:f,onSelectCommand:x})]})},w3=({clientName:n,messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:_,onAudioRecorded:S,onTranscriptExport:y,onPdfExport:x,onTranscriptItemReaction:T})=>{const z=Va(),N=kt(ee=>ee.connection.connectionState),{enableTranscriptExportPdf:H,enableTranscriptExportEmail:D,commands:O}=kt(ee=>ee.settings),[R,E]=I.useState(!1),[U,Y]=I.useState(!1),K=H||D,re=r.filter(ee=>ee.sender.type===mo.GUEST).length;return I.useEffect(()=>{if(N===Qr.CONNECTED){const ee=bo.parse(window.location.search);z(ev(n,ee))}},[n,N,z]),b.jsxs("div",{className:Sf.container,children:[b.jsxs("div",{className:Z([Sf.chatcontent,(R||U)&&Sf.accessabilityHidden]),children:[b.jsx(sC,{messages:r,isBotTyping:l,commands:O,onButtonClick:g,onLinkClick:_,onTranscriptItemReaction:T}),b.jsx(R3,{isBotTyping:l,quickReplies:l?[]:i,numberOfMessagesFromGuest:re,conversationRating:R?{enabled:!1}:f,showRatingOverlay:U,setShowRatingOverlay:Y,commands:O,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:S,onOpenTranscriptExportModal:()=>E(!R)}),b.jsx(yC,{})]}),K&&b.jsx(AC,{enableTranscriptExportPdf:H,enableTranscriptExportEmail:D,visible:R,onEmailExport:y,onPdfExport:x,onClose:()=>E(!1)}),b.jsx(dC,{contentUrl:u})]})},C3=n=>{const{messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f}=n.chat;return{messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f}},N3=n=>({onRestartChat:(r,i)=>n(Oo(r,i)),onMessageFromUser:r=>n(Mb(r)),onRate:(r,i)=>n(cA(r,i)),onAudioRecorded:r=>n(iA(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(Db(r)),onNluEvent:r=>n(zb(r)),onButtonClick:r=>n(hA(r)),onLinkClick:r=>n(dA(r)),onTranscriptExport:r=>n(lA(r)),onPdfExport:()=>n(oA()),onTranscriptItemReaction:(r,i)=>n(Ee.transcriptItemGuestReaction(r,i||null))}),D3=RS(C3,N3)(w3),Rv=()=>M3(window.location.pathname),M3=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},wv=()=>I.useMemo(()=>Rv(),[]),Cv=()=>{const[n,r]=I.useState(!1);return I.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},id=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},B3=({onClick:n})=>{const r=We();return Cv()?b.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:id(n),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},j3=()=>{const n=We(),r=Cv(),i=kt(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return r&&i?b.jsx("button",{className:"tooltip--bottom-left","aria-label":n("header.expand-chat"),"data-title":n("header.expand-chat"),tabIndex:0,onClick:l,onKeyDown:id(l),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})})}):null},U3="_header_1hky6_1",H3="_logoContainer_1hky6_13",L3="_logo_1hky6_13",z3="_actions_1hky6_27",Jl={header:U3,logoContainer:H3,logo:L3,actions:z3},k3=({onClick:n})=>{const r=We();return b.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.restart-chat"),"data-title":r("header.restart-chat"),tabIndex:0,onClick:n,onKeyDown:id(n),children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[b.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"}),b.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"})]})})},m_=({className:n,withActions:r=!0,...i})=>{const l=Va(),u=wv(),f=()=>{const d=bo.parse(window.location.search);l(Oo(u,d))},h=()=>{l(aO())};return b.jsxs("div",{className:Z([Jl.header,n]),...i,children:[b.jsx("div",{className:Jl.logoContainer,children:b.jsx("div",{className:Jl.logo})}),b.jsxs("div",{className:Jl.actions,children:[r&&b.jsx(k3,{onClick:f}),b.jsx(j3,{}),b.jsx(B3,{onClick:h})]})]})},G3="_chatwindow_6v6ob_1",q3="_chatwindowWithAside_6v6ob_46",p_={chatwindow:G3,chatwindowWithAside:q3},I3="_sourceInfos_1878a_1",F3="_sourceDetails_1878a_16",V3="_sourceHeader_1878a_23",P3="_sourceHeaderIcon_1878a_43",Y3="_openSourceButton_1878a_47",Z3="_closeSourceInfosButton_1878a_70",X3="_sourceContent_1878a_85",Q3="_loadingSourceInfos_1878a_109",K3="_loading_1878a_109",$3="_loadingError_1878a_123",Sn={sourceInfos:I3,sourceDetails:F3,sourceHeader:V3,sourceHeaderIcon:P3,openSourceButton:Y3,closeSourceInfosButton:Z3,sourceContent:X3,loadingSourceInfos:Q3,loading:K3,loadingError:$3},J3=({onClick:n})=>{const r=We();return b.jsx("button",{className:Z(Sn.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:n,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})})})},W3=n=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:b.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"})}),e6=({type:n,...r})=>{switch(n){case"WEBSITE":return b.jsx(Sv,{...r});case"PDF":return b.jsx(Ev,{...r});case"DOCX":return b.jsx(bv,{...r});case"TEXT":return b.jsx(W3,{...r});default:return b.jsx(vv,{...r})}},t6=({sourceInfos:n,onClose:r})=>b.jsxs("div",{className:Sn.sourceHeader,children:[b.jsx("div",{className:Sn.sourceHeaderIcon,children:n&&b.jsx(e6,{type:n.knowledgeBaseType})}),b.jsx("div",{children:n&&b.jsx("h1",{children:n.title})}),b.jsx(J3,{onClick:r})]}),n6=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),r6=({className:n,children:r,...i})=>b.jsx("a",{className:Z(ss.button,ss.buttonPrimary,n),type:"button",...i,children:r}),a6=({label:n,url:r})=>b.jsxs(r6,{className:Sn.openSourceButton,href:r,target:"_blank",children:[b.jsx("p",{children:n}),b.jsx("div",{children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:b.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"})})})]}),i6=({sourceInfos:n})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:Z(Sn.sourceContent,Av.markdown),children:b.jsx(bn,{options:{overrides:{a:n6}},children:n.content})}),b.jsx(a6,{label:n.title,url:n.url})]}),s6=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,l6=()=>{const n=We();return b.jsxs("div",{className:Sn.loadingError,children:[b.jsx("h1",{children:n("source-infos.error.title")}),b.jsx("img",{src:s6,title:n("source-infos.error.title")}),b.jsx("p",{children:n("source-infos.error.info")})]})},o6=()=>b.jsx("div",{className:Sn.loadingSourceInfos,children:b.jsx("svg",{className:Sn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})})}),u6=()=>{const n=Va(),r=kt(l=>l.chat.sourceInfos),i=()=>{n(sO())};return r?b.jsxs("div",{className:Sn.sourceInfos,children:[b.jsx("div",{className:Sn.sourceDetails,children:b.jsx(t6,{sourceInfos:r.type==="loaded"?r:void 0,onClose:i})}),r.type==="loading"?b.jsx(o6,{}):r.type==="loading-error"?b.jsx(l6,{}):b.jsx(i6,{sourceInfos:r})]}):null},c6="_container_114wy_1",f6="_body_114wy_7",h6="_intro_114wy_14",d6="_footer_114wy_39",m6="_footnote_114wy_43",p6="_containerWithFootnote_114wy_58",g6="_startChatButton_114wy_73",y6="_formFields_114wy_77",_6="_formField_114wy_77",b6="_radio_114wy_89",v6="_checkbox_114wy_96",E6="_input_114wy_104",S6="_inputLabel_114wy_138",T6="_selectWrapper_114wy_142",x6="_select_114wy_142",A6="_selectLabel_114wy_188",ft={container:c6,body:f6,intro:h6,footer:d6,footnote:m6,containerWithFootnote:p6,startChatButton:g6,formFields:y6,formField:_6,radio:b6,checkbox:v6,input:E6,inputLabel:S6,selectWrapper:T6,select:x6,selectLabel:A6},O6=({name:n,label:r,defaultValue:i,required:l,onChange:u})=>{const f=h=>{u(h.currentTarget.checked?"true":"false")};return b.jsxs("label",{className:Z(ft.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[b.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:l,onChange:f}),b.jsx("div",{children:r})]})},R6=({type:n,name:r,label:i,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:_})=>{const S=y=>{_(y.target.value)};return b.jsxs("label",{className:Z(ft.input,"chat__startScreen__input"),htmlFor:r,children:[b.jsx("div",{className:Z(ft.inputLabel),children:i}),b.jsx("input",{type:n,id:r,name:r,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:S})]})},w6=({name:n,value:r,label:i,defaultChecked:l,required:u,onChange:f})=>{const h=`${n}-${r}`,d=m=>{f(m.target.value)};return b.jsxs("label",{className:Z(ft.radio,"chat__startScreen__radio"),htmlFor:h,children:[b.jsx("input",{id:h,type:"radio",name:n,value:r,defaultChecked:l,required:u,onChange:d}),b.jsx("span",{className:Z(ft.label),children:i})]})},C6=({name:n,label:r,defaultValue:i,required:l,multiple:u,options:f,onChange:h})=>{const d=m=>{h(m.target.value)};return b.jsxs("label",{className:Z(ft.select,"chat__startScreen__select"),htmlFor:n,children:[b.jsx("div",{className:Z(ft.selectLabel),children:r}),b.jsx("div",{className:Z(ft.selectWrapper),children:b.jsx("select",{id:n,name:n,defaultValue:i,required:l,multiple:u,onChange:d,children:Object.entries(f||{}).map(([m,g])=>b.jsx("option",{value:m,selected:g===i,children:g}))})})]})},N6="start-screen.intro",D6="start-screen.start-chat",M6="start-screen.footnote",ln="start-screen.form",g_=`${ln}.fields`,B6=()=>{const n=We(),r=Va(),[i,l]=I.useState({}),u=()=>{const S=Object.entries(i).reduce((y,[x,T])=>({...y,[x]:T.value}),{});r(tO(S))},f=n(N6),h=n(D6),d=n(M6),m=I.useMemo(()=>{var S;return((S=n(g_))==null?void 0:S.split(";").map(y=>y.trim()))??[]},[n(g_)]);I.useEffect(()=>{m.length&&Object.keys(i).length===0&&l(m.reduce((S,y)=>({...S,[y]:j6(y,n)}),{}))},[n,m,i]);const g=S=>{S.preventDefault(),u()},_=S=>y=>{l(x=>({...x,[S]:{...x[S],value:y}}))};return b.jsxs("form",{onSubmit:g,className:Z(ft.container,d&&ft.containerWithFootnote,"chat__startScreen"),children:[b.jsxs("div",{className:Z(ft.body,"chat__startScreen__body"),children:[f&&b.jsx("div",{className:Z(ft.intro,"chat__startScreen__intro"),children:b.jsx(bn,{options:{overrides:{a:y_}},children:f})}),b.jsx("div",{className:Z(ft.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:S,name:y,label:x,placeholder:T,defaultValue:z,options:N,required:H,multiple:D,min:O,max:R,pattern:E})=>b.jsx("div",{className:Z(ft.formField,"chat__startScreen__field"),children:(()=>{switch(S){case"radio":return b.jsxs(b.Fragment,{children:[b.jsx("div",{children:x}),Object.entries(N||{}).map(([U,Y])=>b.jsx(w6,{name:y,value:U,label:Y,defaultChecked:U===z,required:H,onChange:_(y)}))]});case"checkbox":return b.jsx(O6,{name:y,label:x,defaultValue:z,required:H,onChange:_(y)});case"select":return b.jsx(C6,{name:y,label:x,defaultValue:z,required:H,multiple:D,options:N,onChange:_(y)});default:return b.jsx(R6,{type:S,name:y,label:x,placeholder:T,defaultValue:z,required:H,multiple:D,min:O,max:R,pattern:E,onChange:_(y)})}})()},y))})]}),b.jsxs("div",{className:Z(ft.footer,"chat__startScreen__footer"),children:[b.jsx(ls,{type:"submit",className:ft.startChatButton,children:h}),d&&b.jsx("div",{className:ft.footnote,children:b.jsx(bn,{options:{overrides:{a:y_}},children:d})})]})]})},y_=({title:n,href:r,children:i})=>b.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),j6=(n,r)=>{const i=r(`${ln}.${n}.type`)||"text",l=r(`${ln}.${n}.required`)==="true",u=r(`${ln}.${n}.multiple`)==="true",f=r(`${ln}.${n}.placeholder`),h=r(`${ln}.${n}.label`)||"",d=r(`${ln}.${n}.defaultValue`),m=r(`${ln}.${n}.min`),g=r(`${ln}.${n}.max`),_=r(`${ln}.${n}.pattern`),S=H6(r(`${ln}.${n}.options`));return{name:n,label:h,placeholder:f,value:U6(i,d,S)||"",defaultValue:d,options:S,type:i,required:l,multiple:u,min:m,max:g,pattern:_}},U6=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",H6=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[l,u]=i.split(":").map(f=>f.trim());return{...r,[l]:u}},{}),L6=()=>{const n=_o();I.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},za={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"},z6=({clientName:n})=>{L6();const r=Va(),i=kt(_=>_.intl.messages),l=We(),u=kt(_=>_.settings.enableStartScreen),f=kt(_=>_.startScreen.startScreenStatus),[h,d]=I.useState(void 0);I.useEffect(()=>{const _=bo.parse(window.location.search);_.cssClassName&&d(_.cssClassName);const S=y=>{switch(y.data.type){case za.TRIGGER_ACTION:r(y.data.action);break;case za.TRIGGER_STORY:r(zb(y.data.story));break;case za.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case za.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case za.CHAT_MESSAGE_FROM_GUEST:r(Mb(y.data.text));break;case za.RESTART_CHAT:r(Oo(n,_));break}};return r(oO(n,_)),window.addEventListener("message",y=>S(y),!1),()=>window.removeEventListener("message",S)},[n,r]),I.useEffect(()=>{const _=l("page.title");_&&document&&(document.title=_)},[i,l]);const m=u===void 0,g=u===!1||f==="HIDDEN";return b.jsx("div",{className:Z(p_.chatwindow,g&&p_.chatwindowWithAside,"chat__chatwindow",h),children:m?null:g?b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx(m_,{})}),b.jsx("main",{children:b.jsx(D3,{clientName:n})}),b.jsx("aside",{children:b.jsx(u6,{})})]}):b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx(m_,{withActions:!1})}),b.jsx("main",{children:b.jsx(B6,{})})]})})},k6=1024,G6=()=>{const n=wv(),r=kt(f=>f.intl.locale),i=kt(f=>f.intl.messages),[l,u]=I.useState(__());return I.useEffect(()=>{const f=()=>{u(__())};return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),b.jsx(mx,{locale:r,messages:i,children:b.jsx("div",{className:Z([gx.app,l?"chat__large":"chat__small"]),children:b.jsx(z6,{clientName:n})})})},__=()=>window.innerWidth>=k6;var Uf,b_;function sd(){if(b_)return Uf;b_=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Uf=n,Uf}var Hf,v_;function q6(){if(v_)return Hf;v_=1;var n=typeof Al=="object"&&Al&&Al.Object===Object&&Al;return Hf=n,Hf}var Lf,E_;function Nv(){if(E_)return Lf;E_=1;var n=q6(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return Lf=i,Lf}var zf,S_;function I6(){if(S_)return zf;S_=1;var n=Nv(),r=function(){return n.Date.now()};return zf=r,zf}var kf,T_;function F6(){if(T_)return kf;T_=1;var n=/\s/;function r(i){for(var l=i.length;l--&&n.test(i.charAt(l)););return l}return kf=r,kf}var Gf,x_;function V6(){if(x_)return Gf;x_=1;var n=F6(),r=/^\s+/;function i(l){return l&&l.slice(0,n(l)+1).replace(r,"")}return Gf=i,Gf}var qf,A_;function Dv(){if(A_)return qf;A_=1;var n=Nv(),r=n.Symbol;return qf=r,qf}var If,O_;function P6(){if(O_)return If;O_=1;var n=Dv(),r=Object.prototype,i=r.hasOwnProperty,l=r.toString,u=n?n.toStringTag:void 0;function f(h){var d=i.call(h,u),m=h[u];try{h[u]=void 0;var g=!0}catch{}var _=l.call(h);return g&&(d?h[u]=m:delete h[u]),_}return If=f,If}var Ff,R_;function Y6(){if(R_)return Ff;R_=1;var n=Object.prototype,r=n.toString;function i(l){return r.call(l)}return Ff=i,Ff}var Vf,w_;function Z6(){if(w_)return Vf;w_=1;var n=Dv(),r=P6(),i=Y6(),l="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function h(d){return d==null?d===void 0?u:l:f&&f in Object(d)?r(d):i(d)}return Vf=h,Vf}var Pf,C_;function X6(){if(C_)return Pf;C_=1;function n(r){return r!=null&&typeof r=="object"}return Pf=n,Pf}var Yf,N_;function Q6(){if(N_)return Yf;N_=1;var n=Z6(),r=X6(),i="[object Symbol]";function l(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Yf=l,Yf}var Zf,D_;function K6(){if(D_)return Zf;D_=1;var n=V6(),r=sd(),i=Q6(),l=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return l;if(r(g)){var _=typeof g.valueOf=="function"?g.valueOf():g;g=r(_)?_+"":_}if(typeof g!="string")return g===0?g:+g;g=n(g);var S=f.test(g);return S||h.test(g)?d(g.slice(2),S?2:8):u.test(g)?l:+g}return Zf=m,Zf}var Xf,M_;function $6(){if(M_)return Xf;M_=1;var n=sd(),r=I6(),i=K6(),l="Expected a function",u=Math.max,f=Math.min;function h(d,m,g){var _,S,y,x,T,z,N=0,H=!1,D=!1,O=!0;if(typeof d!="function")throw new TypeError(l);m=i(m)||0,n(g)&&(H=!!g.leading,D="maxWait"in g,y=D?u(i(g.maxWait)||0,m):y,O="trailing"in g?!!g.trailing:O);function R(de){var Ie=_,Te=S;return _=S=void 0,N=de,x=d.apply(Te,Ie),x}function E(de){return N=de,T=setTimeout(K,m),H?R(de):x}function U(de){var Ie=de-z,Te=de-N,G=m-Ie;return D?f(G,y-Te):G}function Y(de){var Ie=de-z,Te=de-N;return z===void 0||Ie>=m||Ie<0||D&&Te>=y}function K(){var de=r();if(Y(de))return re(de);T=setTimeout(K,U(de))}function re(de){return T=void 0,O&&_?R(de):(_=S=void 0,x)}function ee(){T!==void 0&&clearTimeout(T),N=0,_=z=S=T=void 0}function le(){return T===void 0?x:re(r())}function ie(){var de=r(),Ie=Y(de);if(_=arguments,S=this,z=de,Ie){if(T===void 0)return E(z);if(D)return clearTimeout(T),T=setTimeout(K,m),R(z)}return T===void 0&&(T=setTimeout(K,m)),x}return ie.cancel=ee,ie.flush=le,ie}return Xf=h,Xf}var Qf,B_;function J6(){if(B_)return Qf;B_=1;var n=$6(),r=sd(),i="Expected a function";function l(u,f,h){var d=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(h)&&(d="leading"in h?!!h.leading:d,m="trailing"in h?!!h.trailing:m),n(u,f,{leading:d,maxWait:f,trailing:m})}return Qf=l,Qf}var W6=J6();const e4=go(W6);function t4(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function n4(n){return n}function r4(n,r){r=r||{};const i=r.delimiter||".",l=r.maxDepth,u=r.transformKey||n4,f={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(_){const S=d[_],y=r.safe&&Array.isArray(S),x=Object.prototype.toString.call(S),T=t4(S),z=x==="[object Object]"||x==="[object Array]",N=m?m+i+u(_):u(_);if(!y&&!T&&z&&Object.keys(S).length&&(!r.maxDepth||g<l))return h(S,N,g+1);f[N]=S})}return h(n),f}const Mv={"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","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","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:
107
-
108
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
109
- - 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.expand-chat":"Chat vergrössern","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"},a4={"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","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","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:
110
-
111
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
112
- - 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.expand-chat":"Expand 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"},i4={"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","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","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:
113
-
114
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
115
- - 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.expand-chat":"Agrandir 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"},s4={"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","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","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:
116
-
117
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
118
- - 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.expand-chat":"Allarga 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"},l4=["de","en","fr","it"],Bv={locale:"de",messages:Mv},o4=(n,r)=>{if(l4.includes(n)){const i=u4(n),l=r4(r);return{...i,...l}}return r},u4=n=>{switch(n.toString()){case"en":return a4;case"fr":return i4;case"it":return s4;default:return Mv}},c4=(n=f4,r)=>{switch(r.type){case $h:return Object.assign({},n,{connectionState:Qr.CONNECTING});case Jh:return Object.assign({},n,{connectionState:Qr.CONNECTED});case Wh:return Object.assign({},n,{connectionState:Qr.DISCONNECTED});case ed:return Object.assign({},n,{connectionState:Qr.RECONNECTED});case td:return Object.assign({},n,{sessionId:r.sessionId});case xo:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case Ao:return Object.assign({},n,{sessionId:void 0});default:return n}},f4={connectionState:Qr.DISCONNECTED,sessionId:void 0,userId:void 0},h4=(n=U_,r)=>{switch(r.type){case Wb:return U_;case xo:return Yr({type:"webclient.chat.started"}),n;case Ao:return Yr({type:"webclient.chat.ended"}),n;case Ee.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Ee.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Ee.ActionTypes.MESSAGE_FROM_GUEST:case Ee.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return j_(n,r.message);case Ee.ActionTypes.MESSAGE_TO_GUEST:{Yr(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),l=n.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:l?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Gh:{const i=r.messages,l=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:(l==null?void 0:l.quickReplies)||[]})}case kh:return Yr(r.message),n;case Ee.ActionTypes.EVENT_TO_GUEST:return Yr(r.event),n;case Ee.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:r.payload.parameters.contentUrl});case Ee.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Ee.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:r.payload.locale});case Ub:return Yr(r),n;case Hb:return Yr(r),n;case Ih:{const i=new Ee.TextMessage(r.transcription,new Ee.GuestUser),l=Object.assign({},i,{_id:mh()});return j_(n,l)}case Ee.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(l=>l._id===r.payload.actionId?Object.assign({},l,{reaction:r.payload.reaction}):l);return Object.assign({},n,{messages:i})}case Fh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:i})}case Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:i})}case Vh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case jb:return{...n,sourceInfos:{type:"loading-error"}};case Bb:return{...n,sourceInfos:{type:"loaded",chunkId:r.payload.chunkId,knowledgeBaseType:r.payload.knowledgeBaseType,title:r.payload.title,content:r.payload.content,url:r.payload.url}};case Ph:return{...n,sourceInfos:void 0};default:return n}},j_=(n,r)=>{const i=n.messages[n.messages.length-1],l=(i==null?void 0:i.text)===r.text;return i&&i.sender.type===r.sender.type&&l?n:Object.assign({},n,{messages:n.messages.concat([r]),quickReplies:[]})},Yr=n=>{var r;d4()?(r=window.top)==null||r.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},d4=()=>typeof window<"u"&&window.self!==window.top,U_={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},jv=Qh({name:"intl",initialState:Bv,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:m4}=jv.actions,p4=jv.reducer,g4={enableStartScreen:!1,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},Uv=Qh({name:"settings",initialState:g4,reducers:{setSettings(n,r){n.enableStartScreen=r.payload.enableStartScreen,n.enableStandaloneView=r.payload.enableStandaloneView,n.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,n.enableGeneralConditions=r.payload.enableGeneralConditions,n.enableSpeechSupport=r.payload.enableSpeechSupport,n.commands=r.payload.commands}}}),{setSettings:y4}=Uv.actions,_4=Uv.reducer,b4=qb({settings:_4,chat:h4,startScreen:rO,connection:c4,intl:p4}),v4="bubble-chat",Hv="state-last-saved-at",Lv="state",E4=n=>{try{if(!x4())return;const r=H_(n,Hv);if(T4(r))return;{const i=H_(n,Lv);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},S4=(n,r)=>{try{const i=JSON.stringify(r);L_(n,Lv,i);const l=new Date().toISOString();L_(n,Hv,l)}catch(i){console.error(i)}},T4=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},x4=()=>typeof localStorage<"u",H_=(n,r)=>{const i=zv(n,r);return localStorage.getItem(i)},L_=(n,r,i)=>{const l=zv(n,r);return localStorage.setItem(l,i)},zv=(n,r)=>`${v4}-${n}-${r}`,Tn=Object.create(null);Tn.open="0";Tn.close="1";Tn.ping="2";Tn.pong="3";Tn.message="4";Tn.upgrade="5";Tn.noop="6";const ro=Object.create(null);Object.keys(Tn).forEach(n=>{ro[Tn[n]]=n});const Th={type:"error",data:"parser error"},kv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gv=typeof ArrayBuffer=="function",qv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,ld=({type:n,data:r},i,l)=>kv&&r instanceof Blob?i?l(r):z_(r,l):Gv&&(r instanceof ArrayBuffer||qv(r))?i?l(r):z_(new Blob([r]),l):l(Tn[n]+(r||"")),z_=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function k_(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Kf;function A4(n,r){if(kv&&n.data instanceof Blob)return n.data.arrayBuffer().then(k_).then(r);if(Gv&&(n.data instanceof ArrayBuffer||qv(n.data)))return r(k_(n.data));ld(n,!1,i=>{Kf||(Kf=new TextEncoder),r(Kf.encode(i))})}const G_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ns=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<G_.length;n++)ns[G_.charCodeAt(n)]=n;const O4=n=>{let r=n.length*.75,i=n.length,l,u=0,f,h,d,m;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const g=new ArrayBuffer(r),_=new Uint8Array(g);for(l=0;l<i;l+=4)f=ns[n.charCodeAt(l)],h=ns[n.charCodeAt(l+1)],d=ns[n.charCodeAt(l+2)],m=ns[n.charCodeAt(l+3)],_[u++]=f<<2|h>>4,_[u++]=(h&15)<<4|d>>2,_[u++]=(d&3)<<6|m&63;return g},R4=typeof ArrayBuffer=="function",od=(n,r)=>{if(typeof n!="string")return{type:"message",data:Iv(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:w4(n.substring(1),r)}:ro[i]?n.length>1?{type:ro[i],data:n.substring(1)}:{type:ro[i]}:Th},w4=(n,r)=>{if(R4){const i=O4(n);return Iv(i,r)}else return{base64:!0,data:n}},Iv=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Fv="",C4=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((f,h)=>{ld(f,!1,d=>{l[h]=d,++u===i&&r(l.join(Fv))})})},N4=(n,r)=>{const i=n.split(Fv),l=[];for(let u=0;u<i.length;u++){const f=od(i[u],r);if(l.push(f),f.type==="error")break}return l};function D4(){return new TransformStream({transform(n,r){A4(n,i=>{const l=i.length;let u;if(l<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,l);else if(l<65536){u=new Uint8Array(3);const f=new DataView(u.buffer);f.setUint8(0,126),f.setUint16(1,l)}else{u=new Uint8Array(9);const f=new DataView(u.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let $f;function Wl(n){return n.reduce((r,i)=>r+i.length,0)}function eo(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let l=0;for(let u=0;u<r;u++)i[u]=n[0][l++],l===n[0].length&&(n.shift(),l=0);return n.length&&l<n[0].length&&(n[0]=n[0].slice(l)),i}function M4(n,r){$f||($f=new TextDecoder);const i=[];let l=0,u=-1,f=!1;return new TransformStream({transform(h,d){for(i.push(h);;){if(l===0){if(Wl(i)<1)break;const m=eo(i,1);f=(m[0]&128)===128,u=m[0]&127,u<126?l=3:u===126?l=1:l=2}else if(l===1){if(Wl(i)<2)break;const m=eo(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),l=3}else if(l===2){if(Wl(i)<8)break;const m=eo(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),_=g.getUint32(0);if(_>Math.pow(2,21)-1){d.enqueue(Th);break}u=_*Math.pow(2,32)+g.getUint32(4),l=3}else{if(Wl(i)<u)break;const m=eo(i,u);d.enqueue(od(f?m:$f.decode(m),r)),l=0}if(u===0||u>n){d.enqueue(Th);break}}}})}const Vv=4;function Je(n){if(n)return B4(n)}function B4(n){for(var r in Je.prototype)n[r]=Je.prototype[r];return n}Je.prototype.on=Je.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};Je.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};Je.prototype.off=Je.prototype.removeListener=Je.prototype.removeAllListeners=Je.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,u=0;u<i.length;u++)if(l=i[u],l===r||l.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};Je.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+n],l=1;l<arguments.length;l++)r[l-1]=arguments[l];if(i){i=i.slice(0);for(var l=0,u=i.length;l<u;++l)i[l].apply(this,r)}return this};Je.prototype.emitReserved=Je.prototype.emit;Je.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Je.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Co=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Jt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),j4="arraybuffer";function Pv(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const U4=Jt.setTimeout,H4=Jt.clearTimeout;function No(n,r){r.useNativeTimers?(n.setTimeoutFn=U4.bind(Jt),n.clearTimeoutFn=H4.bind(Jt)):(n.setTimeoutFn=Jt.setTimeout.bind(Jt),n.clearTimeoutFn=Jt.clearTimeout.bind(Jt))}const L4=1.33;function z4(n){return typeof n=="string"?k4(n):Math.ceil((n.byteLength||n.size)*L4)}function k4(n){let r=0,i=0;for(let l=0,u=n.length;l<u;l++)r=n.charCodeAt(l),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(l++,i+=4);return i}function Yv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function G4(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function q4(n){let r={},i=n.split("&");for(let l=0,u=i.length;l<u;l++){let f=i[l].split("=");r[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return r}class I4 extends Error{constructor(r,i,l){super(r),this.description=i,this.context=l,this.type="TransportError"}}class ud extends Je{constructor(r){super(),this.writable=!1,No(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,l){return super.emitReserved("error",new I4(r,i,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=od(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=G4(r);return i.length?"?"+i:""}}class F4 extends ud{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||i()})),this.writable||(l++,this.once("drain",function(){--l||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};N4(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,C4(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=Yv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let Zv=!1;try{Zv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const V4=Zv;function P4(){}class Y4 extends F4{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let l=location.port;l||(l=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||l!==r.port}}doWrite(r,i){const l=this.request({method:"POST",data:r});l.on("success",i),l.on("error",(u,f)=>{this.onError("xhr post error",u,f)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,l)=>{this.onError("xhr poll error",i,l)}),this.pollXhr=r}}class vn extends Je{constructor(r,i,l){super(),this.createRequest=r,No(this,l),this._opts=l,this._method=l.method||"GET",this._uri=i,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var r;const i=Pv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(i);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&l.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var u;l.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=vn.requestsCount++,vn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=P4,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete vn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}vn.requestsCount=0;vn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",q_);else if(typeof addEventListener=="function"){const n="onpagehide"in Jt?"pagehide":"unload";addEventListener(n,q_,!1)}}function q_(){for(let n in vn.requests)vn.requests.hasOwnProperty(n)&&vn.requests[n].abort()}const Z4=function(){const n=Xv({xdomain:!1});return n&&n.responseType!==null}();class X4 extends Y4{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=Z4&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new vn(Xv,this.uri(),r)}}function Xv(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||V4))return new XMLHttpRequest}catch{}if(!r)try{return new Jt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Qv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Q4 extends ud{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=Qv?{}:Pv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,l)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const l=r[i],u=i===r.length-1;ld(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}u&&Co(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=Yv()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Jf=Jt.WebSocket||Jt.MozWebSocket;class K4 extends Q4{createSocket(r,i,l){return Qv?new Jf(r,i,l):i?new Jf(r,i):new Jf(r)}doWrite(r,i){this.ws.send(i)}}class $4 extends ud{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=M4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=D4();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const f=()=>{l.read().then(({done:d,value:m})=>{d||(this.onPacket(m),f())}).catch(d=>{})};f();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const l=r[i],u=i===r.length-1;this._writer.write(l).then(()=>{u&&Co(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const J4={websocket:K4,webtransport:$4,polling:X4},W4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,eN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xh(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),l=n.indexOf("]");i!=-1&&l!=-1&&(n=n.substring(0,i)+n.substring(i,l).replace(/:/g,";")+n.substring(l,n.length));let u=W4.exec(n||""),f={},h=14;for(;h--;)f[eN[h]]=u[h]||"";return i!=-1&&l!=-1&&(f.source=r,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=tN(f,f.path),f.queryKey=nN(f,f.query),f}function tN(n,r){const i=/\/{2,9}/g,l=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&l.splice(0,1),r.slice(-1)=="/"&&l.splice(l.length-1,1),l}function nN(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,f){u&&(i[u]=f)}),i}const Ah=typeof addEventListener=="function"&&typeof removeEventListener=="function",ao=[];Ah&&addEventListener("offline",()=>{ao.forEach(n=>n())},!1);class vr extends Je{constructor(r,i){if(super(),this.binaryType=j4,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const l=xh(r);i.hostname=l.host,i.secure=l.protocol==="https"||l.protocol==="wss",i.port=l.port,l.query&&(i.query=l.query)}else i.host&&(i.hostname=xh(i.host).host);No(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(l=>{const u=l.prototype.name;this.transports.push(u),this._transportsByName[u]=l}),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=q4(this.opts.query)),Ah&&(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"})},ao.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=Vv,i.transport=r,this.id&&(i.sid=this.id);const l=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&vr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.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",vr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.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=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),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 r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let l=0;l<this.writeBuffer.length;l++){const u=this.writeBuffer[l].data;if(u&&(i+=z4(u)),l>0&&i>this._maxPayload)return this.writeBuffer.slice(0,l);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Co(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,l){return this._sendPacket("message",r,i,l),this}send(r,i,l){return this._sendPacket("message",r,i,l),this}_sendPacket(r,i,l,u){if(typeof i=="function"&&(u=i,i=void 0),typeof l=="function"&&(u=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const f={type:r,data:i,options:l};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},l=()=>{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?l():r()}):this.upgrading?l():r()),this}_onError(r){if(vr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,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(),Ah&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=ao.indexOf(this._offlineEventListener);l!==-1&&ao.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}vr.protocol=Vv;class rN extends vr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),l=!1;vr.priorWebsocketSuccess=!1;const u=()=>{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!l)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;vr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(_(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const y=new Error("probe error");y.transport=i.name,this.emitReserved("upgradeError",y)}}))};function f(){l||(l=!0,_(),i.close(),i=null)}const h=S=>{const y=new Error("probe error: "+S);y.transport=i.name,f(),this.emitReserved("upgradeError",y)};function d(){h("transport closed")}function m(){h("socket closed")}function g(S){i&&S.name!==i.name&&f()}const _=()=>{i.removeListener("open",u),i.removeListener("error",h),i.removeListener("close",d),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",h),i.once("close",d),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{l||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let l=0;l<r.length;l++)~this.transports.indexOf(r[l])&&i.push(r[l]);return i}}let aN=class extends rN{constructor(r,i={}){const l=typeof r=="object"?r:i;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(u=>J4[u]).filter(u=>!!u)),super(r,l)}};function iN(n,r="",i){let l=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),l=xh(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const f=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+f+":"+l.port+r,l.href=l.protocol+"://"+f+(i&&i.port===l.port?"":":"+l.port),l}const sN=typeof ArrayBuffer=="function",lN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Kv=Object.prototype.toString,oN=typeof Blob=="function"||typeof Blob<"u"&&Kv.call(Blob)==="[object BlobConstructor]",uN=typeof File=="function"||typeof File<"u"&&Kv.call(File)==="[object FileConstructor]";function cd(n){return sN&&(n instanceof ArrayBuffer||lN(n))||oN&&n instanceof Blob||uN&&n instanceof File}function io(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)if(io(n[i]))return!0;return!1}if(cd(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return io(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&io(n[i]))return!0;return!1}function cN(n){const r=[],i=n.data,l=n;return l.data=Oh(i,r),l.attachments=r.length,{packet:l,buffers:r}}function Oh(n,r){if(!n)return n;if(cd(n)){const i={_placeholder:!0,num:r.length};return r.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let l=0;l<n.length;l++)i[l]=Oh(n[l],r);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=Oh(n[l],r));return i}return n}function fN(n,r){return n.data=Rh(n.data,r),delete n.attachments,n}function Rh(n,r){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<r.length)return r[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Rh(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Rh(n[i],r));return n}const hN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],dN=5;var Ae;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Ae||(Ae={}));class mN{constructor(r){this.replacer=r}encode(r){return(r.type===Ae.EVENT||r.type===Ae.ACK)&&io(r)?this.encodeAsBinary({type:r.type===Ae.EVENT?Ae.BINARY_EVENT:Ae.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ae.BINARY_EVENT||r.type===Ae.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=cN(r),l=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(l),u}}function I_(n){return Object.prototype.toString.call(n)==="[object Object]"}class fd extends Je{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const l=i.type===Ae.BINARY_EVENT;l||i.type===Ae.BINARY_ACK?(i.type=l?Ae.EVENT:Ae.ACK,this.reconstructor=new pN(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(cd(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),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: "+r)}decodeString(r){let i=0;const l={type:Number(r.charAt(0))};if(Ae[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Ae.BINARY_EVENT||l.type===Ae.BINARY_ACK){const f=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const h=r.substring(f,i);if(h!=Number(h)||r.charAt(i)!=="-")throw new Error("Illegal attachments");l.attachments=Number(h)}if(r.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););l.nsp=r.substring(f,i)}else l.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const f=i+1;for(;++i;){const h=r.charAt(i);if(h==null||Number(h)!=h){--i;break}if(i===r.length)break}l.id=Number(r.substring(f,i+1))}if(r.charAt(++i)){const f=this.tryParse(r.substr(i));if(fd.isPayloadValid(l.type,f))l.data=f;else throw new Error("invalid payload")}return l}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ae.CONNECT:return I_(i);case Ae.DISCONNECT:return i===void 0;case Ae.CONNECT_ERROR:return typeof i=="string"||I_(i);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&hN.indexOf(i[0])===-1);case Ae.ACK:case Ae.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class pN{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=fN(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const gN=Object.freeze(Object.defineProperty({__proto__:null,Decoder:fd,Encoder:mN,get PacketType(){return Ae},protocol:dN},Symbol.toStringTag,{value:"Module"}));function on(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const yN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class $v extends Je{constructor(r,i,l){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=r,this.nsp=i,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[on(r,"open",this.onopen.bind(this)),on(r,"packet",this.onpacket.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"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(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var l,u,f;if(yN.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const h={type:Ae.EVENT,data:i};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const _=this.ids++,S=i.pop();this._registerAckCallback(_,S),h.id=_}const d=(u=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!d||(m?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(r,i){var l;const u=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===r&&this.sendBuffer.splice(d,1);i.call(this,new Error("operation has timed out"))},u),h=(...d)=>{this.io.clearTimeoutFn(f),i.apply(this,d)};h.withError=!0,this.acks[r]=h}emitWithAck(r,...i){return new Promise((l,u)=>{const f=(h,d)=>h?u(h):l(d);f.withError=!0,i.push(f),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...f)=>l!==this._queue[0]?void 0:(u!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...f)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ae.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(l=>String(l.id)===r)){const l=this.acks[r];delete this.acks[r],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ae.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.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 Ae.EVENT:case Ae.BINARY_EVENT:this.onevent(r);break;case Ae.ACK:case Ae.BINARY_ACK:this.onack(r);break;case Ae.DISCONNECT:this.ondisconnect();break;case Ae.CONNECT_ERROR:this.destroy();const l=new Error(r.data.message);l.data=r.data.data,this.emitReserved("connect_error",l);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const l of i)l.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let l=!1;return function(...u){l||(l=!0,i.packet({type:Ae.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ae.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let l=0;l<i.length;l++)if(r===i[l])return i.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let l=0;l<i.length;l++)if(r===i[l])return i.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const l of i)l.apply(this,r.data)}}}function Pa(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Pa.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*n);n=(Math.floor(r*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Pa.prototype.reset=function(){this.attempts=0};Pa.prototype.setMin=function(n){this.ms=n};Pa.prototype.setMax=function(n){this.max=n};Pa.prototype.setJitter=function(n){this.jitter=n};class wh extends Je{constructor(r,i){var l;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,No(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((l=i.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new Pa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||gN;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new aN(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=on(i,"open",function(){l.onopen(),r&&r()}),f=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=on(i,"error",f);if(this._timeout!==!1){const d=this._timeout,m=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),i.close()},d);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(h),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(on(r,"ping",this.onping.bind(this)),on(r,"data",this.ondata.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){Co(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let l=this.nsps[r];return l?this._autoConnect&&!l.active&&l.connect():(l=new $v(this,r,i),this.nsps[r]=l),l}_destroy(r){const i=Object.keys(this.nsps);for(const l of i)if(this.nsps[l].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let l=0;l<i.length;l++)this.engine.write(i[l],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=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 l=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Wi={};function so(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=iN(n,r.path||"/socket.io"),l=i.source,u=i.id,f=i.path,h=Wi[u]&&f in Wi[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new wh(l,r):(Wi[u]||(Wi[u]=new wh(l,r)),m=Wi[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(so,{Manager:wh,Socket:$v,io:so,connect:so});const _N=[Ee.ActionTypes.MESSAGE_TO_GUEST,Ee.ActionTypes.EVENT_TO_GUEST,Ee.ActionTypes.TYPING_ON,Ee.ActionTypes.TYPING_OFF,Ee.ActionTypes.RESTART_CHAT_REQUEST,...lO,...aA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],bN=({dispatch:n,getState:r})=>i=>{let l=null;return u=>{const f=i(u);if(u.type===Kh){l!=null&&l.disconnect(),n(cO());const h=`/chat?${bo.stringify(u.querystrings)}`;l=so(`/${u.clientName}${h}`),l.on("action",n),l.on("connect",()=>n(fO())),l.on("disconnect",()=>n(hO())),l.on("reconnect",()=>n(dO())),l.on("set-translations",(d,m)=>{n(m4({language:d,messages:o4(d,m)}))}),l.on("set-settings",d=>{n(y4(d))}),l.on("enable-conversation-rating",d=>n(uA(d))),l.on("speech-transcription",d=>n(sA(d))),l.on("restore-client-state",d=>{n(uO(d.sessionId)),n(fA(d.messages))}),l.on("expand-window",({devices:d,initial:m=!1})=>{n({type:Ub,devices:d,initial:m})}),l.on("restart-chat",()=>{n(Oo(u.clientName,u.querystrings))})}else if(u.type===xo)l==null||l.emit("start-chat",u.payload);else if(u.type===Ao)l==null||l.emit("terminate-session",u.payload);else if(u.type===rA)l==null||l.emit("get-started",JSON.stringify(u));else if(u.type===qh)l==null||l.emit("audio-message",u.buffer);else if(u.type===Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST)l==null||l.emit("conversation-rating",u.payload);else if(u.type===Lb){const{connection:{sessionId:h}}=r();window.location.href=`/transcript-pdf/${h}`}else _N.indexOf(u.type)===-1&&u.meta===void 0&&l&&l.emit("action",JSON.stringify(u));return f}},Jv=Rv(),vN={...E4(Jv),intl:Bv},Ch=IA({middleware:n=>n().concat(bN),reducer:b4,preloadedState:vN});Ch.subscribe(e4(()=>{const n=Ch.getState();S4(Jv,{connection:n.connection,startScreen:n.startScreen})},1e3));const EN=document.getElementById("root"),SN=M2.createRoot(EN);SN.render(b.jsx(CS,{store:Ch,children:b.jsx(G6,{})}));
119
- //# sourceMappingURL=index-Dsewv1TL.js.map