@botfabrik/engine-webclient 4.92.3 → 4.93.1
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.
- package/README.md +1 -1
- package/dist/client/assets/index-CQifi_K_.css +1 -0
- package/dist/client/assets/index-J_X7d2_u.js +119 -0
- package/dist/client/assets/index-J_X7d2_u.js.map +1 -0
- package/dist/client/index.html +2 -2
- package/package.json +2 -2
- package/dist/client/assets/index-CsJd2KHn.css +0 -1
- package/dist/client/assets/index-RvyNofo4.js +0 -119
- package/dist/client/assets/index-RvyNofo4.js.map +0 -1
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
var y2=Object.defineProperty;var _2=(n,r,i)=>r in n?y2(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i;var Ce=(n,r,i)=>_2(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 Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Gc={exports:{}},Pi={};/**
|
|
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 eg;function b2(){if(eg)return Pi;eg=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 Pi.Fragment=r,Pi.jsx=i,Pi.jsxs=i,Pi}var tg;function v2(){return tg||(tg=1,Gc.exports=b2()),Gc.exports}var v=v2(),qc={exports:{}},Yi={},Fc={exports:{}},Ic={};/**
|
|
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 ng;function E2(){return ng||(ng=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,E=null,y=3,x=!1,T=!1,z=!1,N=!1,U=typeof setTimeout=="function"?setTimeout:null,M=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 S(G){if(z=!1,R(G),!T)if(i(m)!==null)T=!0,k||(k=!0,ie());else{var X=i(g);X!==null&&Te(S,X.startTime-G)}}var k=!1,Y=-1,K=5,re=-1;function ee(){return N?!0:!(n.unstable_now()-re<K)}function le(){if(N=!1,k){var G=n.unstable_now();re=G;var X=!0;try{e:{T=!1,z&&(z=!1,M(Y),Y=-1),x=!0;var J=y;try{t:{for(R(G),E=i(m);E!==null&&!(E.expirationTime>G&&ee());){var _e=E.callback;if(typeof _e=="function"){E.callback=null,y=E.priorityLevel;var w=_e(E.expirationTime<=G);if(G=n.unstable_now(),typeof w=="function"){E.callback=w,R(G),X=!0;break t}E===i(m)&&l(m),R(G)}else l(m);E=i(m)}if(E!==null)X=!0;else{var P=i(g);P!==null&&Te(S,P.startTime-G),X=!1}}break e}finally{E=null,y=J,x=!1}X=void 0}}finally{X?ie():k=!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(){U(le,0)};function Te(G,X){Y=U(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?(M(Y),Y=-1):z=!0,Te(S,J-_e))):(G.sortIndex=w,r(m,G),T||x||(T=!0,k||(k=!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}}}}(Ic)),Ic}var rg;function S2(){return rg||(rg=1,Fc.exports=E2()),Fc.exports}var Vc={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 ag;function T2(){if(ag)return pe;ag=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"),E=Symbol.iterator;function y(w){return w===null||typeof w!="object"?null:(w=E&&w[E]||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 U(){}U.prototype=N.prototype;function M(w,P,$){this.props=w,this.context=P,this.refs=z,this.updater=$||x}var O=M.prototype=new U;O.constructor=M,T(O,N.prototype),O.isPureReactComponent=!0;var R=Array.isArray,S={H:null,A:null,T:null,S:null,V:null},k=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(wt){return wt})):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 dt=Q===""?".":Q+":";if(R(w))for(var ke=0;ke<w.length;ke++)Q=w[ke],Se=dt+ie(Q,ke),ce+=Te(Q,P,$,Se,ae);else if(ke=y(w),typeof ke=="function")for(w=ke.call(w),ke=0;!(Q=w.next()).done;)Q=Q.value,Se=dt+ie(Q,ke++),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=M,pe.StrictMode=l,pe.Suspense=m,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,pe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return S.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)!k.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 dt=Array(ce),ke=0;ke<ce;ke++)dt[ke]=arguments[ke+2];Q.children=dt}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)k.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 dt=Array(ce),ke=0;ke<ce;ke++)dt[ke]=arguments[ke+2];ae.children=dt}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=S.T,$={};S.T=$;try{var Q=w(),ae=S.S;ae!==null&&ae($,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(_e,J)}catch(Se){J(Se)}finally{S.T=P}},pe.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},pe.use=function(w){return S.H.use(w)},pe.useActionState=function(w,P,$){return S.H.useActionState(w,P,$)},pe.useCallback=function(w,P){return S.H.useCallback(w,P)},pe.useContext=function(w){return S.H.useContext(w)},pe.useDebugValue=function(){},pe.useDeferredValue=function(w,P){return S.H.useDeferredValue(w,P)},pe.useEffect=function(w,P,$){var Q=S.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 S.H.useId()},pe.useImperativeHandle=function(w,P,$){return S.H.useImperativeHandle(w,P,$)},pe.useInsertionEffect=function(w,P){return S.H.useInsertionEffect(w,P)},pe.useLayoutEffect=function(w,P){return S.H.useLayoutEffect(w,P)},pe.useMemo=function(w,P){return S.H.useMemo(w,P)},pe.useOptimistic=function(w,P){return S.H.useOptimistic(w,P)},pe.useReducer=function(w,P,$){return S.H.useReducer(w,P,$)},pe.useRef=function(w){return S.H.useRef(w)},pe.useState=function(w){return S.H.useState(w)},pe.useSyncExternalStore=function(w,P,$){return S.H.useSyncExternalStore(w,P,$)},pe.useTransition=function(){return S.H.useTransition()},pe.version="19.1.0",pe}var ig;function Ia(){return ig||(ig=1,Vc.exports=T2()),Vc.exports}var Pc={exports:{}},yt={};/**
|
|
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 sg;function x2(){if(sg)return yt;sg=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 E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,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 yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,yt.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,_)},yt.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()}},yt.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))},yt.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},yt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var _=g.as,E=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:E,integrity:y,fetchPriority:x}):_==="script"&&l.d.X(m,{crossOrigin:E,integrity:y,fetchPriority:x,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},yt.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)},yt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var _=g.as,E=d(_,g.crossOrigin);l.d.L(m,_,{crossOrigin:E,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})}},yt.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)},yt.requestFormReset=function(m){l.d.r(m)},yt.unstable_batchedUpdates=function(m,g){return m(g)},yt.useFormState=function(m,g,_){return h.H.useFormState(m,g,_)},yt.useFormStatus=function(){return h.H.useHostTransitionStatus()},yt.version="19.1.0",yt}var lg;function A2(){if(lg)return Pc.exports;lg=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(),Pc.exports=x2(),Pc.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 og;function O2(){if(og)return Yi;og=1;var n=S2(),r=Ia(),i=A2();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,b=o.child;b;){if(b===a){p=!0,a=o,s=c;break}if(b===s){p=!0,s=o,a=c;break}b=b.sibling}if(!p){for(b=c.child;b;){if(b===a){p=!0,a=c,s=o;break}if(b===s){p=!0,s=c,a=o;break}b=b.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,E=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"),U=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),k=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 S:return"Suspense";case k: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 M: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),dt=P(null);function ke(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)?R0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=R0(t),e=C0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ae),Q(ae,e)}function wt(){$(ae),$(Se),$(ce)}function Tr(e){e.memoizedState!==null&&Q(dt,e);var t=ae.current,a=C0(t,e.type);t!==a&&(Q(Se,e),Q(ae,a))}function Za(e){Se.current===e&&($(ae),$(Se)),dt.current===e&&($(dt),Gi._currentValue=J)}var mt=Object.prototype.hasOwnProperty,An=n.unstable_scheduleCallback,Ro=n.unstable_cancelCallback,Qv=n.unstable_shouldYield,Kv=n.unstable_requestPaint,hn=n.unstable_now,$v=n.unstable_getCurrentPriorityLevel,od=n.unstable_ImmediatePriority,ud=n.unstable_UserBlockingPriority,hs=n.unstable_NormalPriority,Jv=n.unstable_LowPriority,cd=n.unstable_IdlePriority,Wv=n.log,e1=n.unstable_setDisableYieldValue,Xa=null,Rt=null;function Xn(e){if(typeof Wv=="function"&&e1(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Xa,e)}catch{}}var Ct=Math.clz32?Math.clz32:r1,t1=Math.log,n1=Math.LN2;function r1(e){return e>>>=0,e===0?32:31-(t1(e)/n1|0)|0}var ds=256,ms=4194304;function xr(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 ps(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 b=s&134217727;return b!==0?(s=b&~c,s!==0?o=xr(s):(p&=b,p!==0?o=xr(p):a||(a=b&~e,a!==0&&(o=xr(a))))):(b=s&~c,b!==0?o=xr(b):p!==0?o=xr(p):a||(a=s&~e,a!==0&&(o=xr(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 Qa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function a1(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 fd(){var e=ds;return ds<<=1,(ds&4194048)===0&&(ds=256),e}function hd(){var e=ms;return ms<<=1,(ms&62914560)===0&&(ms=4194304),e}function Co(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function i1(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 b=e.entanglements,A=e.expirationTimes,j=e.hiddenUpdates;for(a=p&~a;0<a;){var q=31-Ct(a),V=1<<q;b[q]=0,A[q]=-1;var H=j[q];if(H!==null)for(j[q]=null,q=0;q<H.length;q++){var L=H[q];L!==null&&(L.lane&=-536870913)}a&=~V}s!==0&&dd(e,s,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function dd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Ct(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function md(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-Ct(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function No(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 Do(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:X0(e.type))}function s1(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Qn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Qn,Et="__reactProps$"+Qn,ea="__reactContainer$"+Qn,Mo="__reactEvents$"+Qn,l1="__reactListeners$"+Qn,o1="__reactHandles$"+Qn,gd="__reactResources$"+Qn,$a="__reactMarker$"+Qn;function Bo(e){delete e[pt],delete e[Et],delete e[Mo],delete e[l1],delete e[o1]}function ta(e){var t=e[pt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ea]||a[pt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=B0(e);e!==null;){if(a=e[pt])return a;e=B0(e)}return t}e=a,a=e.parentNode}return null}function na(e){if(e=e[pt]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ja(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ra(e){var t=e[gd];return t||(t=e[gd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[$a]=!0}var yd=new Set,_d={};function Ar(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(_d[e]=t,e=0;e<t.length;e++)yd.add(t[e])}var u1=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]*$"),bd={},vd={};function c1(e){return mt.call(vd,e)?!0:mt.call(bd,e)?!1:u1.test(e)?vd[e]=!0:(bd[e]=!0,!1)}function gs(e,t,a){if(c1(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 ys(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 On(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 jo,Ed;function ia(e){if(jo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);jo=t&&t[1]||"",Ed=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+jo+e+Ed}var Uo=!1;function Ho(e,t){if(!e||Uo)return"";Uo=!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(L){var H=L}Reflect.construct(e,[],V)}else{try{V.call()}catch(L){H=L}e.call(V.prototype)}}else{try{throw Error()}catch(L){H=L}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(L){if(L&&H&&typeof L.stack=="string")return[L.stack,H.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],b=c[1];if(p&&b){var A=p.split(`
|
|
44
|
-
`),j=b.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{Uo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ia(a):""}function f1(e){switch(e.tag){case 26:case 27:case 5:return ia(e.type);case 16:return ia("Lazy");case 13:return ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return Ho(e.type,!1);case 11:return Ho(e.type.render,!1);case 1:return Ho(e.type,!0);case 31:return ia("Activity");default:return""}}function Sd(e){try{var t="";do t+=f1(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 Td(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e){var t=Td(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 _s(e){e._valueTracker||(e._valueTracker=h1(e))}function xd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=Td(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function bs(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 d1=/[\n"\\]/g;function It(e){return e.replace(d1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lo(e,t,a,s,o,c,p,b){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?zo(e,p,Ft(t)):a!=null?zo(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"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Ft(b):e.removeAttribute("name")}function Ad(e,t,a,s,o,c,p,b){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,b||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=b?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function zo(e,t,a){t==="number"&&bs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function sa(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 Od(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 wd(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 la(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var m1=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 Rd(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||m1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Cd(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&&Rd(e,o,s)}else for(var c in t)t.hasOwnProperty(c)&&Rd(e,c,t[c])}function ko(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 p1=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"]]),g1=/^[\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 vs(e){return g1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Go=null;function qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,ua=null;function Nd(e){var t=na(e);if(t&&(e=t.stateNode)){var a=e[Et]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lo(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="'+It(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var o=s[Et]||null;if(!o)throw Error(l(90));Lo(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&&xd(s)}break e;case"textarea":Od(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&sa(e,!!a.multiple,t,!1)}}}var Fo=!1;function Dd(e,t,a){if(Fo)return e(t,a);Fo=!0;try{var s=e(t);return s}finally{if(Fo=!1,(oa!==null||ua!==null)&&(il(),oa&&(t=oa,e=ua,ua=oa=null,Nd(t),e)))for(t=0;t<e.length;t++)Nd(e[t])}}function Wa(e,t){var a=e.stateNode;if(a===null)return null;var s=a[Et]||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 wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Io=!1;if(wn)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Io=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Io=!1}var Kn=null,Vo=null,Es=null;function Md(){if(Es)return Es;var e,t=Vo,a=t.length,s,o="value"in Kn?Kn.value:Kn.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 Es=o.slice(e,1<s?1-s:void 0)}function Ss(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 Ts(){return!0}function Bd(){return!1}function St(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 b in e)e.hasOwnProperty(b)&&(a=e[b],this[b]=a?a(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ts:Bd,this.isPropagationStopped=Bd,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=Ts)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ts)},persist:function(){},isPersistent:Ts}),t}var Or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=St(Or),ti=_({},Or,{view:0,detail:0}),y1=St(ti),Po,Yo,ni,As=_({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xo,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!==ni&&(ni&&e.type==="mousemove"?(Po=e.screenX-ni.screenX,Yo=e.screenY-ni.screenY):Yo=Po=0,ni=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:Yo}}),jd=St(As),_1=_({},As,{dataTransfer:0}),b1=St(_1),v1=_({},ti,{relatedTarget:0}),Zo=St(v1),E1=_({},Or,{animationName:0,elapsedTime:0,pseudoElement:0}),S1=St(E1),T1=_({},Or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),x1=St(T1),A1=_({},Or,{data:0}),Ud=St(A1),O1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w1={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"},R1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=R1[e])?!!t[e]:!1}function Xo(){return C1}var N1=_({},ti,{key:function(e){if(e.key){var t=O1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xo,charCode:function(e){return e.type==="keypress"?Ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D1=St(N1),M1=_({},As,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hd=St(M1),B1=_({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xo}),j1=St(B1),U1=_({},Or,{propertyName:0,elapsedTime:0,pseudoElement:0}),H1=St(U1),L1=_({},As,{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}),z1=St(L1),k1=_({},Or,{newState:0,oldState:0}),G1=St(k1),q1=[9,13,27,32],Qo=wn&&"CompositionEvent"in window,ri=null;wn&&"documentMode"in document&&(ri=document.documentMode);var F1=wn&&"TextEvent"in window&&!ri,Ld=wn&&(!Qo||ri&&8<ri&&11>=ri),zd=" ",kd=!1;function Gd(e,t){switch(e){case"keyup":return q1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ca=!1;function I1(e,t){switch(e){case"compositionend":return qd(t);case"keypress":return t.which!==32?null:(kd=!0,zd);case"textInput":return e=t.data,e===zd&&kd?null:e;default:return null}}function V1(e,t){if(ca)return e==="compositionend"||!Qo&&Gd(e,t)?(e=Md(),Es=Vo=Kn=null,ca=!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 Ld&&t.locale!=="ko"?null:t.data;default:return null}}var P1={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 Fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P1[e.type]:t==="textarea"}function Id(e,t,a,s){oa?ua?ua.push(s):ua=[s]:oa=s,t=fl(t,"onChange"),0<t.length&&(a=new xs("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ai=null,ii=null;function Y1(e){T0(e,0)}function Os(e){var t=Ja(e);if(xd(t))return e}function Vd(e,t){if(e==="change")return t}var Pd=!1;if(wn){var Ko;if(wn){var $o="oninput"in document;if(!$o){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),$o=typeof Yd.oninput=="function"}Ko=$o}else Ko=!1;Pd=Ko&&(!document.documentMode||9<document.documentMode)}function Zd(){ai&&(ai.detachEvent("onpropertychange",Xd),ii=ai=null)}function Xd(e){if(e.propertyName==="value"&&Os(ii)){var t=[];Id(t,ii,e,qo(e)),Dd(Y1,t)}}function Z1(e,t,a){e==="focusin"?(Zd(),ai=t,ii=a,ai.attachEvent("onpropertychange",Xd)):e==="focusout"&&Zd()}function X1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(ii)}function Q1(e,t){if(e==="click")return Os(t)}function K1(e,t){if(e==="input"||e==="change")return Os(t)}function $1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:$1;function si(e,t){if(Nt(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(!mt.call(t,o)||!Nt(e[o],t[o]))return!1}return!0}function Qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kd(e,t){var a=Qd(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=Qd(a)}}function $d(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$d(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bs(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=bs(e.document)}return t}function Jo(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 J1=wn&&"documentMode"in document&&11>=document.documentMode,fa=null,Wo=null,li=null,eu=!1;function Wd(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;eu||fa==null||fa!==bs(s)||(s=fa,"selectionStart"in s&&Jo(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}),li&&si(li,s)||(li=s,s=fl(Wo,"onSelect"),0<s.length&&(t=new xs("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=fa)))}function wr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ha={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionrun:wr("Transition","TransitionRun"),transitionstart:wr("Transition","TransitionStart"),transitioncancel:wr("Transition","TransitionCancel"),transitionend:wr("Transition","TransitionEnd")},tu={},em={};wn&&(em=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function Rr(e){if(tu[e])return tu[e];if(!ha[e])return e;var t=ha[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in em)return tu[e]=t[a];return e}var tm=Rr("animationend"),nm=Rr("animationiteration"),rm=Rr("animationstart"),W1=Rr("transitionrun"),eE=Rr("transitionstart"),tE=Rr("transitioncancel"),am=Rr("transitionend"),im=new Map,nu="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(" ");nu.push("scrollEnd");function nn(e,t){im.set(e,t),Ar(t,[e])}var sm=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var a=sm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Sd(t)},sm.set(e,t),t)}return{value:e,source:t,stack:Sd(t)}}var Pt=[],da=0,ru=0;function ws(){for(var e=da,t=ru=da=0;t<e;){var a=Pt[t];Pt[t++]=null;var s=Pt[t];Pt[t++]=null;var o=Pt[t];Pt[t++]=null;var c=Pt[t];if(Pt[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&&lm(a,o,c)}}function Rs(e,t,a,s){Pt[da++]=e,Pt[da++]=t,Pt[da++]=a,Pt[da++]=s,ru|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function au(e,t,a,s){return Rs(e,t,a,s),Cs(e)}function ma(e,t){return Rs(e,null,null,t),Cs(e)}function lm(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-Ct(a),e=c.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),c):null}function Cs(e){if(50<Mi)throw Mi=0,cc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};function nE(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 Dt(e,t,a,s){return new nE(e,t,a,s)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,t){var a=e.alternate;return a===null?(a=Dt(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 om(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 Ns(e,t,a,s,o,c){var p=0;if(s=e,typeof e=="function")iu(e)&&(p=1);else if(typeof e=="string")p=a2(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Dt(31,a,t,o),e.elementType=re,e.lanes=c,e;case T:return Cr(a.children,o,c,t);case z:p=8,o|=24;break;case N:return e=Dt(12,a,t,o|2),e.elementType=N,e.lanes=c,e;case S:return e=Dt(13,a,t,o),e.elementType=S,e.lanes=c,e;case k:return e=Dt(19,a,t,o),e.elementType=k,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:case O:p=10;break e;case M: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=Dt(p,a,t,o),t.elementType=e,t.type=s,t.lanes=c,t}function Cr(e,t,a,s){return e=Dt(7,e,s,t),e.lanes=a,e}function su(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function lu(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ga=[],ya=0,Ds=null,Ms=0,Yt=[],Zt=0,Nr=null,Cn=1,Nn="";function Dr(e,t){ga[ya++]=Ms,ga[ya++]=Ds,Ds=e,Ms=t}function um(e,t,a){Yt[Zt++]=Cn,Yt[Zt++]=Nn,Yt[Zt++]=Nr,Nr=e;var s=Cn;e=Nn;var o=32-Ct(s)-1;s&=~(1<<o),a+=1;var c=32-Ct(t)+o;if(30<c){var p=o-o%5;c=(s&(1<<p)-1).toString(32),s>>=p,o-=p,Cn=1<<32-Ct(t)+o|a<<o|s,Nn=c+e}else Cn=1<<c|a<<o|s,Nn=e}function ou(e){e.return!==null&&(Dr(e,1),um(e,1,0))}function uu(e){for(;e===Ds;)Ds=ga[--ya],ga[ya]=null,Ms=ga[--ya],ga[ya]=null;for(;e===Nr;)Nr=Yt[--Zt],Yt[Zt]=null,Nn=Yt[--Zt],Yt[Zt]=null,Cn=Yt[--Zt],Yt[Zt]=null}var _t=null,Ye=null,Ne=!1,Mr=null,dn=!1,cu=Error(l(519));function Br(e){var t=Error(l(418,""));throw ci(Vt(t,e)),cu}function cm(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[pt]=e,t[Et]=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<ji.length;a++)ve(ji[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),Ad(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),_s(t);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),wd(t,s.value,s.defaultValue,s.children),_s(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||w0(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=hl),t=!0):t=!1,t||Br(e)}function fm(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 13:dn=!1;return;case 27:case 3:dn=!0;return;default:_t=_t.return}}function oi(e){if(e!==_t)return!1;if(!Ne)return fm(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")||Oc(e.type,e.memoizedProps)),a=!a),a&&Ye&&Br(e),fm(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){Ye=an(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Ye=null}}else t===27?(t=Ye,hr(e.type)?(e=Nc,Nc=null,Ye=e):Ye=t):Ye=_t?an(e.stateNode.nextSibling):null;return!0}function ui(){Ye=_t=null,Ne=!1}function hm(){var e=Mr;return e!==null&&(At===null?At=e:At.push.apply(At,e),Mr=null),e}function ci(e){Mr===null?Mr=[e]:Mr.push(e)}var fu=P(null),jr=null,Dn=null;function $n(e,t,a){Q(fu,t._currentValue),t._currentValue=a}function Mn(e){e._currentValue=fu.current,$(fu)}function hu(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 du(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 b=c;c=o;for(var A=0;A<t.length;A++)if(b.context===t[A]){c.lanes|=a,b=c.alternate,b!==null&&(b.lanes|=a),hu(c.return,a,e),s||(p=null);break e}c=b.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),hu(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 fi(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 b=o.type;Nt(o.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}else if(o===dt.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Gi):e=[Gi])}o=o.return}e!==null&&du(t,e,a,s),t.flags|=262144}function Bs(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ur(e){jr=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return dm(jr,e)}function js(e,t){return jr===null&&Ur(e),dm(e,t)}function dm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Dn===null){if(e===null)throw Error(l(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return a}var rE=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()})}},aE=n.unstable_scheduleCallback,iE=n.unstable_NormalPriority,tt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new rE,data:new Map,refCount:0}}function hi(e){e.refCount--,e.refCount===0&&aE(iE,function(){e.controller.abort()})}var di=null,pu=0,_a=0,ba=null;function sE(e,t){if(di===null){var a=di=[];pu=0,_a=yc(),ba={status:"pending",value:void 0,then:function(s){a.push(s)}}}return pu++,t.then(mm,mm),t}function mm(){if(--pu===0&&di!==null){ba!==null&&(ba.status="fulfilled");var e=di;di=null,_a=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function lE(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 pm=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&sE(e,t),pm!==null&&pm(e,t)};var Hr=P(null);function gu(){var e=Hr.current;return e!==null?e:Ge.pooledCache}function Us(e,t){t===null?Q(Hr,Hr.current):Q(Hr,t.pool)}function gm(){var e=gu();return e===null?null:{parent:tt._currentValue,pool:e}}var mi=Error(l(460)),ym=Error(l(474)),Hs=Error(l(542)),yu={then:function(){}};function _m(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ls(){}function bm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ls,Ls),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Em(e),e;default:if(typeof t.status=="string")t.then(Ls,Ls);else{if(e=Ge,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,Em(e),e}throw pi=t,mi}}var pi=null;function vm(){if(pi===null)throw Error(l(459));var e=pi;return pi=null,e}function Em(e){if(e===mi||e===Hs)throw Error(l(483))}var Jn=!1;function _u(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(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 Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function er(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=Cs(e),lm(e,null,a),t}return Rs(e,s,t,a),Cs(e)}function gi(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,md(e,a)}}function vu(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 Eu=!1;function yi(){if(Eu){var e=ba;if(e!==null)throw e}}function _i(e,t,a,s){Eu=!1;var o=e.updateQueue;Jn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var A=b,j=A.next;A.next=null,p===null?c=j:p.next=j,p=A;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==p&&(b===null?q.firstBaseUpdate=j:b.next=j,q.lastBaseUpdate=A))}if(c!==null){var V=o.baseState;p=0,q=j=A=null,b=c;do{var H=b.lane&-536870913,L=H!==b.lane;if(L?(Oe&H)===H:(s&H)===H){H!==0&&H===_a&&(Eu=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var fe=e,se=b;H=t;var Le=a;switch(se.tag){case 1:if(fe=se.payload,typeof fe=="function"){V=fe.call(Le,V,H);break e}V=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=se.payload,H=typeof fe=="function"?fe.call(Le,V,H):fe,H==null)break e;V=_({},V,H);break e;case 2:Jn=!0}}H=b.callback,H!==null&&(e.flags|=64,L&&(e.flags|=8192),L=o.callbacks,L===null?o.callbacks=[H]:L.push(H))}else L={lane:H,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(j=q=L,A=V):q=q.next=L,p|=H;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;L=b,b=L.next,L.next=null,o.lastBaseUpdate=L,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),or|=p,e.lanes=p,e.memoizedState=V}}function Sm(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Tm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Sm(a[e],t)}var va=P(null),zs=P(0);function xm(e,t){e=kn,Q(zs,e),Q(va,t),kn=e|t.baseLanes}function Su(){Q(zs,kn),Q(va,va.current)}function Tu(){kn=zs.current,$(va),$(zs)}var tr=0,ge=null,Ue=null,$e=null,ks=!1,Ea=!1,Lr=!1,Gs=0,bi=0,Sa=null,oE=0;function Xe(){throw Error(l(321))}function xu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Nt(e[a],t[a]))return!1;return!0}function Au(e,t,a,s,o,c){return tr=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?lp:op,Lr=!1,c=a(s,o),Lr=!1,Ea&&(c=Om(t,a,s,o)),Am(e),c}function Am(e){G.H=Ys;var t=Ue!==null&&Ue.next!==null;if(tr=0,$e=Ue=ge=null,ks=!1,bi=0,Sa=null,t)throw Error(l(300));e===null||at||(e=e.dependencies,e!==null&&Bs(e)&&(at=!0))}function Om(e,t,a,s){ge=e;var o=0;do{if(Ea&&(Sa=null),bi=0,Ea=!1,25<=o)throw Error(l(301));if(o+=1,$e=Ue=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=pE,c=t(a,s)}while(Ea);return c}function uE(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ou(){var e=Gs!==0;return Gs=0,e}function wu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ru(e){if(ks){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ks=!1}tr=0,$e=Ue=ge=null,Ea=!1,bi=Gs=0,Sa=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ge.memoizedState=$e=e:$e=$e.next=e,$e}function Je(){if(Ue===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=$e===null?ge.memoizedState:$e.next;if(t!==null)$e=t,Ue=e;else{if(e===null)throw ge.alternate===null?Error(l(467)):Error(l(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},$e===null?ge.memoizedState=$e=e:$e=$e.next=e}return $e}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=bi;return bi+=1,Sa===null&&(Sa=[]),e=bm(Sa,e,t),t=ge,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?lp:op),e}function qs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===O)return gt(e)}throw Error(l(438,String(e)))}function Nu(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=Cu(),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 Bn(e,t){return typeof t=="function"?t(e):t}function Fs(e){var t=Je();return Du(t,Ue,e)}function Du(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 b=p=null,A=null,j=t,q=!1;do{var V=j.lane&-536870913;if(V!==j.lane?(Oe&V)===V:(tr&V)===V){var H=j.revertLane;if(H===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),V===_a&&(q=!0);else if((tr&H)===H){j=j.next,H===_a&&(q=!0);continue}else V={lane:0,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(b=A=V,p=c):A=A.next=V,ge.lanes|=H,or|=H;V=j.action,Lr&&a(c,V),c=j.hasEagerState?j.eagerState:a(c,V)}else H={lane:V,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(b=A=H,p=c):A=A.next=H,ge.lanes|=V,or|=V;j=j.next}while(j!==null&&j!==t);if(A===null?p=c:A.next=b,!Nt(c,e.memoizedState)&&(at=!0,q&&(a=ba,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 Mu(e){var t=Je(),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);Nt(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,s]}function wm(e,t,a){var s=ge,o=Je(),c=Ne;if(c){if(a===void 0)throw Error(l(407));a=a()}else a=t();var p=!Nt((Ue||o).memoizedState,a);p&&(o.memoizedState=a,at=!0),o=o.queue;var b=Nm.bind(null,s,o,e);if(Ei(2048,8,b,[e]),o.getSnapshot!==t||p||$e!==null&&$e.memoizedState.tag&1){if(s.flags|=2048,Ta(9,Is(),Cm.bind(null,s,o,a,t),null),Ge===null)throw Error(l(349));c||(tr&124)!==0||Rm(s,t,a)}return a}function Rm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Cu(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Cm(e,t,a,s){t.value=a,t.getSnapshot=s,Dm(t)&&Mm(e)}function Nm(e,t,a){return a(function(){Dm(t)&&Mm(e)})}function Dm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Nt(e,a)}catch{return!0}}function Mm(e){var t=ma(e,2);t!==null&&Ht(t,e,2)}function Bu(e){var t=Tt();if(typeof e=="function"){var a=e;if(e=a(),Lr){Xn(!0);try{a()}finally{Xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:e},t}function Bm(e,t,a,s){return e.baseState=a,Du(e,Ue,typeof s=="function"?s:Bn)}function cE(e,t,a,s,o){if(Ps(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,jm(t,c)):(c.next=a.next,t.pending=a.next=c)}}function jm(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 b=a(o,s),A=G.S;A!==null&&A(p,b),Um(e,t,b)}catch(j){ju(e,t,j)}finally{G.T=c}}else try{c=a(o,s),Um(e,t,c)}catch(j){ju(e,t,j)}}function Um(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Hm(e,t,s)},function(s){return ju(e,t,s)}):Hm(e,t,a)}function Hm(e,t,a){t.status="fulfilled",t.value=a,Lm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,jm(e,a)))}function ju(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,Lm(t),t=t.next;while(t!==s)}e.action=null}function Lm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zm(e,t){return t}function km(e,t){if(Ne){var a=Ge.formState;if(a!==null){e:{var s=ge;if(Ne){if(Ye){t:{for(var o=Ye,c=dn;o.nodeType!==8;){if(!c){o=null;break t}if(o=an(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ye=an(o.nextSibling),s=o.data==="F!";break e}}Br(s)}s=!1}s&&(t=a[0])}}return a=Tt(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zm,lastRenderedState:t},a.queue=s,a=ap.bind(null,ge,s),s.dispatch=a,s=Bu(!1),c=ku.bind(null,ge,!1,s.queue),s=Tt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=cE.bind(null,ge,o,c,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function Gm(e){var t=Je();return qm(t,Ue,e)}function qm(e,t,a){if(t=Du(e,t,zm)[0],e=Fs(Bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=vi(t)}catch(p){throw p===mi?Hs:p}else s=t;t=Je();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Ta(9,Is(),fE.bind(null,o,a),null)),[s,c,e]}function fE(e,t){e.action=t}function Fm(e){var t=Je(),a=Ue;if(a!==null)return qm(t,a,e);Je(),t=t.memoizedState,a=Je();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Ta(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Cu(),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 Im(){return Je().memoizedState}function Vs(e,t,a,s){var o=Tt();s=s===void 0?null:s,ge.flags|=e,o.memoizedState=Ta(1|t,Is(),a,s)}function Ei(e,t,a,s){var o=Je();s=s===void 0?null:s;var c=o.memoizedState.inst;Ue!==null&&s!==null&&xu(s,Ue.memoizedState.deps)?o.memoizedState=Ta(t,c,a,s):(ge.flags|=e,o.memoizedState=Ta(1|t,c,a,s))}function Vm(e,t){Vs(8390656,8,e,t)}function Pm(e,t){Ei(2048,8,e,t)}function Ym(e,t){return Ei(4,2,e,t)}function Zm(e,t){return Ei(4,4,e,t)}function Xm(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 Qm(e,t,a){a=a!=null?a.concat([e]):null,Ei(4,4,Xm.bind(null,t,e),a)}function Uu(){}function Km(e,t){var a=Je();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&xu(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function $m(e,t){var a=Je();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&xu(t,s[1]))return s[0];if(s=e(),Lr){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[s,t],s}function Hu(e,t,a){return a===void 0||(tr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=e0(),ge.lanes|=e,or|=e,a)}function Jm(e,t,a,s){return Nt(a,t)?a:va.current!==null?(e=Hu(e,a,s),Nt(e,t)||(at=!0),e):(tr&42)===0?(at=!0,e.memoizedState=a):(e=e0(),ge.lanes|=e,or|=e,t)}function Wm(e,t,a,s,o){var c=X.p;X.p=c!==0&&8>c?c:8;var p=G.T,b={};G.T=b,ku(e,!1,t,a);try{var A=o(),j=G.S;if(j!==null&&j(b,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=lE(A,s);Si(e,t,q,Ut(e))}else Si(e,t,s,Ut(e))}catch(V){Si(e,t,{then:function(){},status:"rejected",reason:V},Ut())}finally{X.p=c,G.T=p}}function hE(){}function Lu(e,t,a,s){if(e.tag!==5)throw Error(l(476));var o=ep(e).queue;Wm(e,o,t,J,a===null?hE:function(){return tp(e),a(s)})}function ep(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:Bn,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tp(e){var t=ep(e).next.queue;Si(e,t,{},Ut())}function zu(){return gt(Gi)}function np(){return Je().memoizedState}function rp(){return Je().memoizedState}function dE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ut();e=Wn(a);var s=er(t,e,a);s!==null&&(Ht(s,t,a),gi(s,t,a)),t={cache:mu()},e.payload=t;return}t=t.return}}function mE(e,t,a){var s=Ut();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ps(e)?ip(t,a):(a=au(e,t,a,s),a!==null&&(Ht(a,e,s),sp(a,t,s)))}function ap(e,t,a){var s=Ut();Si(e,t,a,s)}function Si(e,t,a,s){var o={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))ip(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,b=c(p,a);if(o.hasEagerState=!0,o.eagerState=b,Nt(b,p))return Rs(e,t,o,0),Ge===null&&ws(),!1}catch{}finally{}if(a=au(e,t,o,s),a!==null)return Ht(a,e,s),sp(a,t,s),!0}return!1}function ku(e,t,a,s){if(s={lane:2,revertLane:yc(),action:s,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(l(479))}else t=au(e,a,s,2),t!==null&&Ht(t,e,2)}function Ps(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function ip(e,t){Ea=ks=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function sp(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,md(e,a)}}var Ys={readContext:gt,use:qs,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe},lp={readContext:gt,use:qs,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Vm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Vs(4194308,4,Xm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var a=Tt();t=t===void 0?null:t;var s=e();if(Lr){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=Tt();if(a!==void 0){var o=a(t);if(Lr){Xn(!0);try{a(t)}finally{Xn(!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=mE.bind(null,ge,e),[s.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Bu(e);var t=e.queue,a=ap.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Tt();return Hu(a,e,t)},useTransition:function(){var e=Bu(!1);return e=Wm.bind(null,ge,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ge,o=Tt();if(Ne){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),Ge===null)throw Error(l(349));(Oe&124)!==0||Rm(s,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Vm(Nm.bind(null,s,c,e),[e]),s.flags|=2048,Ta(9,Is(),Cm.bind(null,s,c,a,t),null),a},useId:function(){var e=Tt(),t=Ge.identifierPrefix;if(Ne){var a=Nn,s=Cn;a=(s&~(1<<32-Ct(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=Gs++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=oE++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:zu,useFormState:km,useActionState:km,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ku.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Nu,useCacheRefresh:function(){return Tt().memoizedState=dE.bind(null,ge)}},op={readContext:gt,use:qs,useCallback:Km,useContext:gt,useEffect:Pm,useImperativeHandle:Qm,useInsertionEffect:Ym,useLayoutEffect:Zm,useMemo:$m,useReducer:Fs,useRef:Im,useState:function(){return Fs(Bn)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Je();return Jm(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Fs(Bn)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:wm,useId:np,useHostTransitionStatus:zu,useFormState:Gm,useActionState:Gm,useOptimistic:function(e,t){var a=Je();return Bm(a,Ue,e,t)},useMemoCache:Nu,useCacheRefresh:rp},pE={readContext:gt,use:qs,useCallback:Km,useContext:gt,useEffect:Pm,useImperativeHandle:Qm,useInsertionEffect:Ym,useLayoutEffect:Zm,useMemo:$m,useReducer:Mu,useRef:Im,useState:function(){return Mu(Bn)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Je();return Ue===null?Hu(a,e,t):Jm(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Mu(Bn)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:wm,useId:np,useHostTransitionStatus:zu,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,t){var a=Je();return Ue!==null?Bm(a,Ue,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Nu,useCacheRefresh:rp},xa=null,Ti=0;function Zs(e){var t=Ti;return Ti+=1,xa===null&&(xa=[]),bm(xa,e,t)}function xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xs(e,t){throw t.$$typeof===E?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function up(e){var t=e._init;return t(e._payload)}function cp(e){function t(D,C){if(e){var B=D.deletions;B===null?(D.deletions=[C],D.flags|=16):B.push(C)}}function a(D,C){if(!e)return null;for(;C!==null;)t(D,C),C=C.sibling;return null}function s(D){for(var C=new Map;D!==null;)D.key!==null?C.set(D.key,D):C.set(D.index,D),D=D.sibling;return C}function o(D,C){return D=Rn(D,C),D.index=0,D.sibling=null,D}function c(D,C,B){return D.index=B,e?(B=D.alternate,B!==null?(B=B.index,B<C?(D.flags|=67108866,C):B):(D.flags|=67108866,C)):(D.flags|=1048576,C)}function p(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function b(D,C,B,I){return C===null||C.tag!==6?(C=su(B,D.mode,I),C.return=D,C):(C=o(C,B),C.return=D,C)}function A(D,C,B,I){var W=B.type;return W===T?q(D,C,B.props.children,I,B.key):C!==null&&(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&up(W)===C.type)?(C=o(C,B.props),xi(C,B),C.return=D,C):(C=Ns(B.type,B.key,B.props,null,D.mode,I),xi(C,B),C.return=D,C)}function j(D,C,B,I){return C===null||C.tag!==4||C.stateNode.containerInfo!==B.containerInfo||C.stateNode.implementation!==B.implementation?(C=lu(B,D.mode,I),C.return=D,C):(C=o(C,B.children||[]),C.return=D,C)}function q(D,C,B,I,W){return C===null||C.tag!==7?(C=Cr(B,D.mode,I,W),C.return=D,C):(C=o(C,B),C.return=D,C)}function V(D,C,B){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=su(""+C,D.mode,B),C.return=D,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case y:return B=Ns(C.type,C.key,C.props,null,D.mode,B),xi(B,C),B.return=D,B;case x:return C=lu(C,D.mode,B),C.return=D,C;case K:var I=C._init;return C=I(C._payload),V(D,C,B)}if(Te(C)||ie(C))return C=Cr(C,D.mode,B,null),C.return=D,C;if(typeof C.then=="function")return V(D,Zs(C),B);if(C.$$typeof===O)return V(D,js(D,C),B);Xs(D,C)}return null}function H(D,C,B,I){var W=C!==null?C.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return W!==null?null:b(D,C,""+B,I);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case y:return B.key===W?A(D,C,B,I):null;case x:return B.key===W?j(D,C,B,I):null;case K:return W=B._init,B=W(B._payload),H(D,C,B,I)}if(Te(B)||ie(B))return W!==null?null:q(D,C,B,I,null);if(typeof B.then=="function")return H(D,C,Zs(B),I);if(B.$$typeof===O)return H(D,C,js(D,B),I);Xs(D,B)}return null}function L(D,C,B,I,W){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return D=D.get(B)||null,b(C,D,""+I,W);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case y:return D=D.get(I.key===null?B:I.key)||null,A(C,D,I,W);case x:return D=D.get(I.key===null?B:I.key)||null,j(C,D,I,W);case K:var ye=I._init;return I=ye(I._payload),L(D,C,B,I,W)}if(Te(I)||ie(I))return D=D.get(B)||null,q(C,D,I,W,null);if(typeof I.then=="function")return L(D,C,B,Zs(I),W);if(I.$$typeof===O)return L(D,C,B,js(C,I),W);Xs(C,I)}return null}function fe(D,C,B,I){for(var W=null,ye=null,ne=C,oe=C=0,st=null;ne!==null&&oe<B.length;oe++){ne.index>oe?(st=ne,ne=null):st=ne.sibling;var Re=H(D,ne,B[oe],I);if(Re===null){ne===null&&(ne=st);break}e&&ne&&Re.alternate===null&&t(D,ne),C=c(Re,C,oe),ye===null?W=Re:ye.sibling=Re,ye=Re,ne=st}if(oe===B.length)return a(D,ne),Ne&&Dr(D,oe),W;if(ne===null){for(;oe<B.length;oe++)ne=V(D,B[oe],I),ne!==null&&(C=c(ne,C,oe),ye===null?W=ne:ye.sibling=ne,ye=ne);return Ne&&Dr(D,oe),W}for(ne=s(ne);oe<B.length;oe++)st=L(ne,D,oe,B[oe],I),st!==null&&(e&&st.alternate!==null&&ne.delete(st.key===null?oe:st.key),C=c(st,C,oe),ye===null?W=st:ye.sibling=st,ye=st);return e&&ne.forEach(function(yr){return t(D,yr)}),Ne&&Dr(D,oe),W}function se(D,C,B,I){if(B==null)throw Error(l(151));for(var W=null,ye=null,ne=C,oe=C=0,st=null,Re=B.next();ne!==null&&!Re.done;oe++,Re=B.next()){ne.index>oe?(st=ne,ne=null):st=ne.sibling;var yr=H(D,ne,Re.value,I);if(yr===null){ne===null&&(ne=st);break}e&&ne&&yr.alternate===null&&t(D,ne),C=c(yr,C,oe),ye===null?W=yr:ye.sibling=yr,ye=yr,ne=st}if(Re.done)return a(D,ne),Ne&&Dr(D,oe),W;if(ne===null){for(;!Re.done;oe++,Re=B.next())Re=V(D,Re.value,I),Re!==null&&(C=c(Re,C,oe),ye===null?W=Re:ye.sibling=Re,ye=Re);return Ne&&Dr(D,oe),W}for(ne=s(ne);!Re.done;oe++,Re=B.next())Re=L(ne,D,oe,Re.value,I),Re!==null&&(e&&Re.alternate!==null&&ne.delete(Re.key===null?oe:Re.key),C=c(Re,C,oe),ye===null?W=Re:ye.sibling=Re,ye=Re);return e&&ne.forEach(function(g2){return t(D,g2)}),Ne&&Dr(D,oe),W}function Le(D,C,B,I){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(D,C.sibling),I=o(C,B.props.children),I.return=D,D=I;break e}}else if(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&up(W)===C.type){a(D,C.sibling),I=o(C,B.props),xi(I,B),I.return=D,D=I;break e}a(D,C);break}else t(D,C);C=C.sibling}B.type===T?(I=Cr(B.props.children,D.mode,I,B.key),I.return=D,D=I):(I=Ns(B.type,B.key,B.props,null,D.mode,I),xi(I,B),I.return=D,D=I)}return p(D);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(D,C.sibling),I=o(C,B.children||[]),I.return=D,D=I;break e}else{a(D,C);break}else t(D,C);C=C.sibling}I=lu(B,D.mode,I),I.return=D,D=I}return p(D);case K:return W=B._init,B=W(B._payload),Le(D,C,B,I)}if(Te(B))return fe(D,C,B,I);if(ie(B)){if(W=ie(B),typeof W!="function")throw Error(l(150));return B=W.call(B),se(D,C,B,I)}if(typeof B.then=="function")return Le(D,C,Zs(B),I);if(B.$$typeof===O)return Le(D,C,js(D,B),I);Xs(D,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,C!==null&&C.tag===6?(a(D,C.sibling),I=o(C,B),I.return=D,D=I):(a(D,C),I=su(B,D.mode,I),I.return=D,D=I),p(D)):a(D,C)}return function(D,C,B,I){try{Ti=0;var W=Le(D,C,B,I);return xa=null,W}catch(ne){if(ne===mi||ne===Hs)throw ne;var ye=Dt(29,ne,null,D.mode);return ye.lanes=I,ye.return=D,ye}finally{}}}var Aa=cp(!0),fp=cp(!1),Xt=P(null),mn=null;function nr(e){var t=e.alternate;Q(nt,nt.current&1),Q(Xt,e),mn===null&&(t===null||va.current!==null||t.memoizedState!==null)&&(mn=e)}function hp(e){if(e.tag===22){if(Q(nt,nt.current),Q(Xt,e),mn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(mn=e)}}else rr()}function rr(){Q(nt,nt.current),Q(Xt,Xt.current)}function jn(e){$(Xt),mn===e&&(mn=null),$(nt)}var nt=P(0);function Qs(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==="$?"||Cc(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 Gu(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 qu={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=Ut(),o=Wn(s);o.payload=t,a!=null&&(o.callback=a),t=er(e,o,s),t!==null&&(Ht(t,e,s),gi(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=Ut(),o=Wn(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=er(e,o,s),t!==null&&(Ht(t,e,s),gi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ut(),s=Wn(a);s.tag=2,t!=null&&(s.callback=t),t=er(e,s,a),t!==null&&(Ht(t,e,a),gi(t,e,a))}};function dp(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?!si(a,s)||!si(o,c):!0}function mp(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&&qu.enqueueReplaceState(t,t.state,null)}function zr(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 Ks=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 pp(e){Ks(e)}function gp(e){console.error(e)}function yp(e){Ks(e)}function $s(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function _p(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 Fu(e,t,a){return a=Wn(a),a.tag=3,a.payload={element:null},a.callback=function(){$s(e,t)},a}function bp(e){return e=Wn(e),e.tag=3,e}function vp(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(){_p(t,a,s)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){_p(t,a,s),typeof o!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function gE(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&fi(t,a,o,!0),a=Xt.current,a!==null){switch(a.tag){case 13:return mn===null?hc():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===yu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),mc(e,s,o)),!1;case 22:return a.flags|=65536,s===yu?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)),mc(e,s,o)),!1}throw Error(l(435,a.tag))}return mc(e,s,o),hc(),!1}if(Ne)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==cu&&(e=Error(l(422),{cause:s}),ci(Vt(e,a)))):(s!==cu&&(t=Error(l(423),{cause:s}),ci(Vt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Vt(s,a),o=Fu(e.stateNode,s,o),vu(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(l(520),{cause:s});if(c=Vt(c,a),Di===null?Di=[c]:Di.push(c),Ze!==4&&(Ze=2),t===null)return!0;s=Vt(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Fu(a.stateNode,s,e),vu(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"&&(ur===null||!ur.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=bp(o),vp(o,e,a,s),vu(a,o),!1}a=a.return}while(a!==null);return!1}var Ep=Error(l(461)),at=!1;function lt(e,t,a,s){t.child=e===null?fp(t,null,a,s):Aa(t,e.child,a,s)}function Sp(e,t,a,s,o){a=a.render;var c=t.ref;if("ref"in s){var p={};for(var b in s)b!=="ref"&&(p[b]=s[b])}else p=s;return Ur(t),s=Au(e,t,a,p,c,o),b=Ou(),e!==null&&!at?(wu(e,t,o),Un(e,t,o)):(Ne&&b&&ou(t),t.flags|=1,lt(e,t,s,o),t.child)}function Tp(e,t,a,s,o){if(e===null){var c=a.type;return typeof c=="function"&&!iu(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,xp(e,t,c,s,o)):(e=Ns(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ku(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:si,a(p,s)&&e.ref===t.ref)return Un(e,t,o)}return t.flags|=1,e=Rn(c,s),e.ref=t.ref,e.return=t,t.child=e}function xp(e,t,a,s,o){if(e!==null){var c=e.memoizedProps;if(si(c,s)&&e.ref===t.ref)if(at=!1,t.pendingProps=s=c,Ku(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Un(e,t,o)}return Iu(e,t,a,s,o)}function Ap(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 Op(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Us(t,c!==null?c.cachePool:null),c!==null?xm(t,c):Su(),hp(t);else return t.lanes=t.childLanes=536870912,Op(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Us(t,c.cachePool),xm(t,c),rr(),t.memoizedState=null):(e!==null&&Us(t,null),Su(),rr());return lt(e,t,o,a),t.child}function Op(e,t,a,s){var o=gu();return o=o===null?null:{parent:tt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Us(t,null),Su(),hp(t),e!==null&&fi(e,t,s,!0),null}function Js(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 Iu(e,t,a,s,o){return Ur(t),a=Au(e,t,a,s,void 0,o),s=Ou(),e!==null&&!at?(wu(e,t,o),Un(e,t,o)):(Ne&&s&&ou(t),t.flags|=1,lt(e,t,a,o),t.child)}function wp(e,t,a,s,o,c){return Ur(t),t.updateQueue=null,a=Om(t,s,a,o),Am(e),s=Ou(),e!==null&&!at?(wu(e,t,c),Un(e,t,c)):(Ne&&s&&ou(t),t.flags|=1,lt(e,t,a,c),t.child)}function Rp(e,t,a,s,o){if(Ur(t),t.stateNode===null){var c=pa,p=a.contextType;typeof p=="object"&&p!==null&&(c=gt(p)),c=new a(s,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=qu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=s,c.state=t.memoizedState,c.refs={},_u(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?gt(p):pa,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Gu(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&&qu.enqueueReplaceState(c,c.state,null),_i(t,s,c,o),yi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,A=zr(a,b);c.props=A;var j=c.context,q=a.contextType;p=pa,typeof q=="object"&&q!==null&&(p=gt(q));var V=a.getDerivedStateFromProps;q=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||j!==p)&&mp(t,c,s,p),Jn=!1;var H=t.memoizedState;c.state=H,_i(t,s,c,o),yi(),j=t.memoizedState,b||H!==j||Jn?(typeof V=="function"&&(Gu(t,a,V,s),j=t.memoizedState),(A=Jn||dp(t,a,A,s,H,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,bu(e,t),p=t.memoizedProps,q=zr(a,p),c.props=q,V=t.pendingProps,H=c.context,j=a.contextType,A=pa,typeof j=="object"&&j!==null&&(A=gt(j)),b=a.getDerivedStateFromProps,(j=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==V||H!==A)&&mp(t,c,s,A),Jn=!1,H=t.memoizedState,c.state=H,_i(t,s,c,o),yi();var L=t.memoizedState;p!==V||H!==L||Jn||e!==null&&e.dependencies!==null&&Bs(e.dependencies)?(typeof b=="function"&&(Gu(t,a,b,s),L=t.memoizedState),(q=Jn||dp(t,a,q,s,H,L,A)||e!==null&&e.dependencies!==null&&Bs(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,L,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,L,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=L),c.props=s,c.state=L,c.context=A,s=q):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),s=!1)}return c=s,Js(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=Aa(t,e.child,null,o),t.child=Aa(t,null,a,o)):lt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=Un(e,t,o),e}function Cp(e,t,a,s){return ui(),t.flags|=256,lt(e,t,a,s),t.child}var Vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:gm()}}function Yu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Qt),e}function Np(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:(nt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?nr(t):rr(),Ne){var b=Ye,A;if(A=b){e:{for(A=b,b=dn;A.nodeType!==8;){if(!b){b=null;break e}if(A=an(A.nextSibling),A===null){b=null;break e}}b=A}b!==null?(t.memoizedState={dehydrated:b,treeContext:Nr!==null?{id:Cn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},A=Dt(18,null,null,0),A.stateNode=b,A.return=t,t.child=A,_t=t,Ye=null,A=!0):A=!1}A||Br(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Cc(b)?t.lanes=32:t.lanes=536870912,null;jn(t)}return b=s.children,s=s.fallback,o?(rr(),o=t.mode,b=Ws({mode:"hidden",children:b},o),s=Cr(s,o,a,null),b.return=t,s.return=t,b.sibling=s,t.child=b,o=t.child,o.memoizedState=Pu(a),o.childLanes=Yu(e,p,a),t.memoizedState=Vu,s):(nr(t),Zu(t,b))}if(A=e.memoizedState,A!==null&&(b=A.dehydrated,b!==null)){if(c)t.flags&256?(nr(t),t.flags&=-257,t=Xu(e,t,a)):t.memoizedState!==null?(rr(),t.child=e.child,t.flags|=128,t=null):(rr(),o=s.fallback,b=t.mode,s=Ws({mode:"visible",children:s.children},b),o=Cr(o,b,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,Aa(t,e.child,null,a),s=t.child,s.memoizedState=Pu(a),s.childLanes=Yu(e,p,a),t.memoizedState=Vu,t=o);else if(nr(t),Cc(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var j=p.dgst;p=j,s=Error(l(419)),s.stack="",s.digest=p,ci({value:s,source:null,stack:null}),t=Xu(e,t,a)}else if(at||fi(e,t,a,!1),p=(a&e.childLanes)!==0,at||p){if(p=Ge,p!==null&&(s=a&-a,s=(s&42)!==0?1:No(s),s=(s&(p.suspendedLanes|a))!==0?0:s,s!==0&&s!==A.retryLane))throw A.retryLane=s,ma(e,s),Ht(p,e,s),Ep;b.data==="$?"||hc(),t=Xu(e,t,a)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ye=an(b.nextSibling),_t=t,Ne=!0,Mr=null,dn=!1,e!==null&&(Yt[Zt++]=Cn,Yt[Zt++]=Nn,Yt[Zt++]=Nr,Cn=e.id,Nn=e.overflow,Nr=t),t=Zu(t,s.children),t.flags|=4096);return t}return o?(rr(),o=s.fallback,b=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=Cr(o,b,a,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,b=e.child.memoizedState,b===null?b=Pu(a):(A=b.cachePool,A!==null?(j=tt._currentValue,A=A.parent!==j?{parent:j,pool:j}:A):A=gm(),b={baseLanes:b.baseLanes|a,cachePool:A}),o.memoizedState=b,o.childLanes=Yu(e,p,a),t.memoizedState=Vu,s):(nr(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 Zu(e,t){return t=Ws({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ws(e,t){return e=Dt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xu(e,t,a){return Aa(t,e.child,null,a),e=Zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dp(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),hu(e.return,t,a)}function Qu(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 Mp(e,t,a){var s=t.pendingProps,o=s.revealOrder,c=s.tail;if(lt(e,t,s.children,a),s=nt.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&&Dp(e,a,t);else if(e.tag===19)Dp(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(nt,s),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Qs(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Qu(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&&Qs(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Qu(t,!0,a,null,c);break;case"together":Qu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Un(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fi(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 Ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Bs(e)))}function yE(e,t,a){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),$n(t,tt,e.memoizedState.cache),ui();break;case 27:case 5:Tr(t);break;case 4:ke(t,t.stateNode.containerInfo);break;case 10:$n(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(nr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Np(e,t,a):(nr(t),e=Un(e,t,a),e!==null?e.sibling:null);nr(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(fi(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return Mp(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(nt,nt.current),s)break;return null;case 22:case 23:return t.lanes=0,Ap(e,t,a);case 24:$n(t,tt,e.memoizedState.cache)}return Un(e,t,a)}function Bp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Ku(e,a)&&(t.flags&128)===0)return at=!1,yE(e,t,a);at=(e.flags&131072)!==0}else at=!1,Ne&&(t.flags&1048576)!==0&&um(t,Ms,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")iu(s)?(e=zr(s,e),t.tag=1,t=Rp(null,t,s,e,a)):(t.tag=0,t=Iu(null,t,s,e,a));else{if(s!=null){if(o=s.$$typeof,o===R){t.tag=11,t=Sp(null,t,s,e,a);break e}else if(o===Y){t.tag=14,t=Tp(null,t,s,e,a);break e}}throw t=Ie(s)||s,Error(l(306,t,""))}}return t;case 0:return Iu(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=zr(s,t.pendingProps),Rp(e,t,s,o,a);case 3:e:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var c=t.memoizedState;o=c.element,bu(e,t),_i(t,s,null,a);var p=t.memoizedState;if(s=p.cache,$n(t,tt,s),s!==c.cache&&du(t,[tt],a,!0),yi(),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=Cp(e,t,s,a);break e}else if(s!==o){o=Vt(Error(l(424)),t),ci(o),t=Cp(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(Ye=an(e.firstChild),_t=t,Ne=!0,Mr=null,dn=!0,a=fp(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ui(),s===o){t=Un(e,t,a);break e}lt(e,t,s,a)}t=t.child}return t;case 26:return Js(e,t),e===null?(a=L0(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,s=dl(ce.current).createElement(a),s[pt]=t,s[Et]=e,ut(s,a,e),rt(s),t.stateNode=s):t.memoizedState=L0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Tr(t),e===null&&Ne&&(s=t.stateNode=j0(t.type,t.pendingProps,ce.current),_t=t,dn=!0,o=Ye,hr(t.type)?(Nc=o,Ye=an(s.firstChild)):Ye=o),lt(e,t,t.pendingProps.children,a),Js(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=s=Ye)&&(s=PE(s,t.type,t.pendingProps,dn),s!==null?(t.stateNode=s,_t=t,Ye=an(s.firstChild),dn=!1,o=!0):o=!1),o||Br(t)),Tr(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,s=c.children,Oc(o,c)?s=null:p!==null&&Oc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Au(e,t,uE,null,null,a),Gi._currentValue=o),Js(e,t),lt(e,t,s,a),t.child;case 6:return e===null&&Ne&&((e=a=Ye)&&(a=YE(a,t.pendingProps,dn),a!==null?(t.stateNode=a,_t=t,Ye=null,e=!0):e=!1),e||Br(t)),null;case 13:return Np(e,t,a);case 4:return ke(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Aa(t,null,s,a):lt(e,t,s,a),t.child;case 11:return Sp(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,$n(t,t.type,s.value),lt(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Ur(t),o=gt(o),s=s(o),t.flags|=1,lt(e,t,s,a),t.child;case 14:return Tp(e,t,t.type,t.pendingProps,a);case 15:return xp(e,t,t.type,t.pendingProps,a);case 19:return Mp(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=Ws(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 Ap(e,t,a);case 24:return Ur(t),s=gt(tt),e===null?(o=gu(),o===null&&(o=Ge,c=mu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:s,cache:o},_u(t),$n(t,tt,o)):((e.lanes&a)!==0&&(bu(e,t),_i(t,null,null,a),yi()),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),$n(t,tt,s)):(s=c.cache,$n(t,tt,s),s!==o.cache&&du(t,[tt],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Hn(e){e.flags|=4}function jp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!F0(t)){if(t=Xt.current,t!==null&&((Oe&4194048)===Oe?mn!==null:(Oe&62914560)!==Oe&&(Oe&536870912)===0||t!==mn))throw pi=yu,ym;e.flags|=8192}}function el(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?hd():536870912,e.lanes|=t,Ca|=t)}function Ai(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 Ve(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 _E(e,t,a){var s=t.pendingProps;switch(uu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Mn(tt),wt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hm())),Ve(t),null;case 26:return a=t.memoizedState,e===null?(Hn(t),a!==null?(Ve(t),jp(t,a)):(Ve(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Hn(t),Ve(t),jp(t,a)):(Ve(t),t.flags&=-16777217):(e.memoizedProps!==s&&Hn(t),Ve(t),t.flags&=-16777217),null;case 27:Za(t),a=ce.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Ve(t),null}e=ae.current,oi(t)?cm(t):(e=j0(o,s,a),t.stateNode=e,Hn(t))}return Ve(t),null;case 5:if(Za(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Ve(t),null}if(e=ae.current,oi(t))cm(t);else{switch(o=dl(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[pt]=t,e[Et]=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(ut(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&&Hn(t)}}return Ve(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=ce.current,oi(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=_t,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[pt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||w0(e.nodeValue,a)),e||Br(t)}else e=dl(e).createTextNode(s),e[pt]=t,t.stateNode=e}return Ve(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=oi(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[pt]=t}else ui(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=hm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(jn(t),t):(jn(t),null)}if(jn(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),el(t,t.updateQueue),Ve(t),null;case 4:return wt(),e===null&&Ec(t.stateNode.containerInfo),Ve(t),null;case 10:return Mn(t.type),Ve(t),null;case 19:if($(nt),o=t.memoizedState,o===null)return Ve(t),null;if(s=(t.flags&128)!==0,c=o.rendering,c===null)if(s)Ai(o,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Qs(e),c!==null){for(t.flags|=128,Ai(o,!1),e=c.updateQueue,t.updateQueue=e,el(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)om(a,e),a=a.sibling;return Q(nt,nt.current&1|2),t.child}e=e.sibling}o.tail!==null&&hn()>rl&&(t.flags|=128,s=!0,Ai(o,!1),t.lanes=4194304)}else{if(!s)if(e=Qs(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,el(t,e),Ai(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!Ne)return Ve(t),null}else 2*hn()-o.renderingStartTime>rl&&a!==536870912&&(t.flags|=128,s=!0,Ai(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=hn(),t.sibling=null,e=nt.current,Q(nt,s?e&1|2:e&1),t):(Ve(t),null);case 22:case 23:return jn(t),Tu(),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&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),a=t.updateQueue,a!==null&&el(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&&$(Hr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Mn(tt),Ve(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function bE(e,t){switch(uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(tt),wt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Za(t),null;case 13:if(jn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(nt),null;case 4:return wt(),null;case 10:return Mn(t.type),null;case 22:case 23:return jn(t),Tu(),e!==null&&$(Hr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mn(tt),null;case 25:return null;default:return null}}function Up(e,t){switch(uu(t),t.tag){case 3:Mn(tt),wt();break;case 26:case 27:case 5:Za(t);break;case 4:wt();break;case 13:jn(t);break;case 19:$(nt);break;case 10:Mn(t.type);break;case 22:case 23:jn(t),Tu(),e!==null&&$(Hr);break;case 24:Mn(tt)}}function Oi(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(b){ze(t,t.return,b)}}function ar(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,b=p.destroy;if(b!==void 0){p.destroy=void 0,o=t;var A=a,j=b;try{j()}catch(q){ze(o,A,q)}}}s=s.next}while(s!==c)}}catch(q){ze(t,t.return,q)}}function Hp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Tm(t,a)}catch(s){ze(e,e.return,s)}}}function Lp(e,t,a){a.props=zr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){ze(e,t,s)}}function wi(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){ze(e,t,o)}}function pn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){ze(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){ze(e,t,o)}else a.current=null}function zp(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){ze(e,e.return,o)}}function $u(e,t,a){try{var s=e.stateNode;GE(s,e.type,a,t),s[Et]=t}catch(o){ze(e,e.return,o)}}function kp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hr(e.type)||e.tag===4}function Ju(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kp(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&&hr(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 Wu(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=hl));else if(s!==4&&(s===27&&hr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wu(e,t,a),e=e.sibling;e!==null;)Wu(e,t,a),e=e.sibling}function tl(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&&hr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tl(e,t,a),e=e.sibling;e!==null;)tl(e,t,a),e=e.sibling}function Gp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ut(t,s,a),t[pt]=e,t[Et]=a}catch(c){ze(e,e.return,c)}}var Ln=!1,Qe=!1,ec=!1,qp=typeof WeakSet=="function"?WeakSet:Set,it=null;function vE(e,t){if(e=e.containerInfo,xc=bl,e=Jd(e),Jo(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,b=-1,A=-1,j=0,q=0,V=e,H=null;t:for(;;){for(var L;V!==a||o!==0&&V.nodeType!==3||(b=p+o),V!==c||s!==0&&V.nodeType!==3||(A=p+s),V.nodeType===3&&(p+=V.nodeValue.length),(L=V.firstChild)!==null;)H=V,V=L;for(;;){if(V===e)break t;if(H===a&&++j===o&&(b=p),H===c&&++q===s&&(A=p),(L=V.nextSibling)!==null)break;V=H,H=V.parentNode}V=L}a=b===-1||A===-1?null:{start:b,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ac={focusedElem:e,selectionRange:a},bl=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,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=zr(a.type,o,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(fe,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(se){ze(a,a.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Rc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rc(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,it=e;break}it=t.return}}function Fp(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ir(e,a),s&4&&Oi(5,a);break;case 1:if(ir(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){ze(a,a.return,p)}else{var o=zr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){ze(a,a.return,p)}}s&64&&Hp(a),s&512&&wi(a,a.return);break;case 3:if(ir(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{Tm(e,t)}catch(p){ze(a,a.return,p)}}break;case 27:t===null&&s&4&&Gp(a);case 26:case 5:ir(e,a),t===null&&s&4&&zp(a),s&512&&wi(a,a.return);break;case 12:ir(e,a);break;case 13:ir(e,a),s&4&&Pp(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=CE.bind(null,a),ZE(e,a))));break;case 22:if(s=a.memoizedState!==null||Ln,!s){t=t!==null&&t.memoizedState!==null||Qe,o=Ln;var c=Qe;Ln=s,(Qe=t)&&!c?sr(e,a,(a.subtreeFlags&8772)!==0):ir(e,a),Ln=o,Qe=c}break;case 30:break;default:ir(e,a)}}function Ip(e){var t=e.alternate;t!==null&&(e.alternate=null,Ip(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Bo(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 Fe=null,xt=!1;function zn(e,t,a){for(a=a.child;a!==null;)Vp(e,t,a),a=a.sibling}function Vp(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Xa,a)}catch{}switch(a.tag){case 26:Qe||pn(a,t),zn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Qe||pn(a,t);var s=Fe,o=xt;hr(a.type)&&(Fe=a.stateNode,xt=!1),zn(e,t,a),Hi(a.stateNode),Fe=s,xt=o;break;case 5:Qe||pn(a,t);case 6:if(s=Fe,o=xt,Fe=null,zn(e,t,a),Fe=s,xt=o,Fe!==null)if(xt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(a.stateNode)}catch(c){ze(a,t,c)}else try{Fe.removeChild(a.stateNode)}catch(c){ze(a,t,c)}break;case 18:Fe!==null&&(xt?(e=Fe,M0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Vi(e)):M0(Fe,a.stateNode));break;case 4:s=Fe,o=xt,Fe=a.stateNode.containerInfo,xt=!0,zn(e,t,a),Fe=s,xt=o;break;case 0:case 11:case 14:case 15:Qe||ar(2,a,t),Qe||ar(4,a,t),zn(e,t,a);break;case 1:Qe||(pn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Lp(a,t,s)),zn(e,t,a);break;case 21:zn(e,t,a);break;case 22:Qe=(s=Qe)||a.memoizedState!==null,zn(e,t,a),Qe=s;break;default:zn(e,t,a)}}function Pp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vi(e)}catch(a){ze(t,t.return,a)}}function EE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qp),t;default:throw Error(l(435,e.tag))}}function tc(e,t){var a=EE(e);t.forEach(function(s){var o=NE.bind(null,e,s);a.has(s)||(a.add(s),s.then(o,o))})}function Mt(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,b=p;e:for(;b!==null;){switch(b.tag){case 27:if(hr(b.type)){Fe=b.stateNode,xt=!1;break e}break;case 5:Fe=b.stateNode,xt=!1;break e;case 3:case 4:Fe=b.stateNode.containerInfo,xt=!0;break e}b=b.return}if(Fe===null)throw Error(l(160));Vp(c,p,o),Fe=null,xt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Yp(t,e),t=t.sibling}var rn=null;function Yp(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),Bt(e),s&4&&(ar(3,e,e.return),Oi(3,e),ar(5,e,e.return));break;case 1:Mt(t,e),Bt(e),s&512&&(Qe||a===null||pn(a,a.return)),s&64&&Ln&&(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=rn;if(Mt(t,e),Bt(e),s&512&&(Qe||a===null||pn(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[$a]||c[pt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(s),o.head.insertBefore(c,o.querySelector("head > title"))),ut(c,s,a),c[pt]=e,rt(c),s=c;break e;case"link":var p=G0("link","href",o).get(s+(a.href||""));if(p){for(var b=0;b<p.length;b++)if(c=p[b],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(b,1);break t}}c=o.createElement(s),ut(c,s,a),o.head.appendChild(c);break;case"meta":if(p=G0("meta","content",o).get(s+(a.content||""))){for(b=0;b<p.length;b++)if(c=p[b],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(b,1);break t}}c=o.createElement(s),ut(c,s,a),o.head.appendChild(c);break;default:throw Error(l(468,s))}c[pt]=e,rt(c),s=c}e.stateNode=s}else q0(o,e.type,e.stateNode);else e.stateNode=k0(o,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?q0(o,e.type,e.stateNode):k0(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&$u(e,e.memoizedProps,a.memoizedProps)}break;case 27:Mt(t,e),Bt(e),s&512&&(Qe||a===null||pn(a,a.return)),a!==null&&s&4&&$u(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Mt(t,e),Bt(e),s&512&&(Qe||a===null||pn(a,a.return)),e.flags&32){o=e.stateNode;try{la(o,"")}catch(L){ze(e,e.return,L)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,$u(e,o,a!==null?a.memoizedProps:o)),s&1024&&(ec=!0);break;case 6:if(Mt(t,e),Bt(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(L){ze(e,e.return,L)}}break;case 3:if(gl=null,o=rn,rn=ml(t.containerInfo),Mt(t,e),rn=o,Bt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Vi(t.containerInfo)}catch(L){ze(e,e.return,L)}ec&&(ec=!1,Zp(e));break;case 4:s=rn,rn=ml(e.stateNode.containerInfo),Mt(t,e),Bt(e),rn=s;break;case 12:Mt(t,e),Bt(e);break;case 13:Mt(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lc=hn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tc(e,s)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,j=Ln,q=Qe;if(Ln=j||o,Qe=q||A,Mt(t,e),Qe=q,Ln=j,Bt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||Ln||Qe||kr(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{b=A.stateNode;var V=A.memoizedProps.style,H=V!=null&&V.hasOwnProperty("display")?V.display:null;b.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(L){ze(A,A.return,L)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(L){ze(A,A.return,L)}}}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,tc(e,a))));break;case 19:Mt(t,e),Bt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tc(e,s)));break;case 30:break;case 21:break;default:Mt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(kp(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var o=a.stateNode,c=Ju(e);tl(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(la(p,""),a.flags&=-33);var b=Ju(e);tl(e,b,p);break;case 3:case 4:var A=a.stateNode.containerInfo,j=Ju(e);Wu(e,j,A);break;default:throw Error(l(161))}}catch(q){ze(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Zp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Zp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ir(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fp(e,t.alternate,t),t=t.sibling}function kr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ar(4,t,t.return),kr(t);break;case 1:pn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Lp(t,t.return,a),kr(t);break;case 27:Hi(t.stateNode);case 26:case 5:pn(t,t.return),kr(t);break;case 22:t.memoizedState===null&&kr(t);break;case 30:kr(t);break;default:kr(t)}e=e.sibling}}function sr(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:sr(o,c,a),Oi(4,c);break;case 1:if(sr(o,c,a),s=c,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(j){ze(s,s.return,j)}if(s=c,o=s.updateQueue,o!==null){var b=s.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)Sm(A[o],b)}catch(j){ze(s,s.return,j)}}a&&p&64&&Hp(c),wi(c,c.return);break;case 27:Gp(c);case 26:case 5:sr(o,c,a),a&&s===null&&p&4&&zp(c),wi(c,c.return);break;case 12:sr(o,c,a);break;case 13:sr(o,c,a),a&&p&4&&Pp(o,c);break;case 22:c.memoizedState===null&&sr(o,c,a),wi(c,c.return);break;case 30:break;default:sr(o,c,a)}t=t.sibling}}function nc(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&&hi(a))}function rc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hi(e))}function gn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xp(e,t,a,s),t=t.sibling}function Xp(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,a,s),o&2048&&Oi(9,t);break;case 1:gn(e,t,a,s);break;case 3:gn(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&&hi(e)));break;case 12:if(o&2048){gn(e,t,a,s),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,b=c.onPostCommit;typeof b=="function"&&b(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){ze(t,t.return,A)}}else gn(e,t,a,s);break;case 13:gn(e,t,a,s);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?gn(e,t,a,s):Ri(e,t):c._visibility&2?gn(e,t,a,s):(c._visibility|=2,Oa(e,t,a,s,(t.subtreeFlags&10256)!==0)),o&2048&&nc(p,t);break;case 24:gn(e,t,a,s),o&2048&&rc(t.alternate,t);break;default:gn(e,t,a,s)}}function Oa(e,t,a,s,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,p=t,b=a,A=s,j=p.flags;switch(p.tag){case 0:case 11:case 15:Oa(c,p,b,A,o),Oi(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?Oa(c,p,b,A,o):Ri(c,p):(q._visibility|=2,Oa(c,p,b,A,o)),o&&j&2048&&nc(p.alternate,p);break;case 24:Oa(c,p,b,A,o),o&&j&2048&&rc(p.alternate,p);break;default:Oa(c,p,b,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&&nc(s.alternate,s);break;case 24:Ri(a,s),o&2048&&rc(s.alternate,s);break;default:Ri(a,s)}t=t.sibling}}var Ci=8192;function wa(e){if(e.subtreeFlags&Ci)for(e=e.child;e!==null;)Qp(e),e=e.sibling}function Qp(e){switch(e.tag){case 26:wa(e),e.flags&Ci&&e.memoizedState!==null&&s2(rn,e.memoizedState,e.memoizedProps);break;case 5:wa(e);break;case 3:case 4:var t=rn;rn=ml(e.stateNode.containerInfo),wa(e),rn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ci,Ci=16777216,wa(e),Ci=t):wa(e));break;default:wa(e)}}function Kp(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 Ni(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];it=s,Jp(s,e)}Kp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$p(e),e=e.sibling}function $p(e){switch(e.tag){case 0:case 11:case 15:Ni(e),e.flags&2048&&ar(9,e,e.return);break;case 3:Ni(e);break;case 12:Ni(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nl(e)):Ni(e);break;default:Ni(e)}}function nl(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];it=s,Jp(s,e)}Kp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ar(8,t,t.return),nl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,nl(t));break;default:nl(t)}e=e.sibling}}function Jp(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:ar(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:hi(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,it=s;else e:for(a=e;it!==null;){s=it;var o=s.sibling,c=s.return;if(Ip(s),s===a){it=null;break e}if(o!==null){o.return=c,it=o;break e}it=c}}}var SE={getCacheForType:function(e){var t=gt(tt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},TE=typeof WeakMap=="function"?WeakMap:Map,Me=0,Ge=null,be=null,Oe=0,Be=0,jt=null,lr=!1,Ra=!1,ac=!1,kn=0,Ze=0,or=0,Gr=0,ic=0,Qt=0,Ca=0,Di=null,At=null,sc=!1,lc=0,rl=1/0,al=null,ur=null,ot=0,cr=null,Na=null,Da=0,oc=0,uc=null,Wp=null,Mi=0,cc=null;function Ut(){if((Me&2)!==0&&Oe!==0)return Oe&-Oe;if(G.T!==null){var e=_a;return e!==0?e:yc()}return pd()}function e0(){Qt===0&&(Qt=(Oe&536870912)===0||Ne?fd():536870912);var e=Xt.current;return e!==null&&(e.flags|=32),Qt}function Ht(e,t,a){(e===Ge&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),fr(e,Oe,Qt,!1)),Ka(e,a),((Me&2)===0||e!==Ge)&&(e===Ge&&((Me&2)===0&&(Gr|=a),Ze===4&&fr(e,Oe,Qt,!1)),yn(e))}function t0(e,t,a){if((Me&6)!==0)throw Error(l(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Qa(e,t),o=s?OE(e,t):dc(e,t,!0),c=s;do{if(o===0){Ra&&!s&&fr(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!xE(a)){o=dc(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 b=e;o=Di;var A=b.current.memoizedState.isDehydrated;if(A&&(Ma(b,p).flags|=256),p=dc(b,p,!1),p!==2){if(ac&&!A){b.errorRecoveryDisabledLanes|=c,Gr|=c,o=4;break e}c=At,At=o,c!==null&&(At===null?At=c:At.push.apply(At,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Ma(e,0),fr(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:fr(s,t,Qt,!lr);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=lc+300-hn(),10<o)){if(fr(s,t,Qt,!lr),ps(s,0,!0)!==0)break e;s.timeoutHandle=N0(n0.bind(null,s,a,At,al,sc,t,Qt,Gr,Ca,lr,c,2,-0,0),o);break e}n0(s,a,At,al,sc,t,Qt,Gr,Ca,lr,c,0,-0,0)}}break}while(!0);yn(e)}function n0(e,t,a,s,o,c,p,b,A,j,q,V,H,L){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(ki={stylesheets:null,count:0,unsuspend:i2},Qp(t),V=l2(),V!==null)){e.cancelPendingCommit=V(u0.bind(null,e,t,c,a,s,o,p,b,A,q,1,H,L)),fr(e,c,p,!j);return}u0(e,t,c,a,s,o,p,b,A)}function xE(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(!Nt(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 fr(e,t,a,s){t&=~ic,t&=~Gr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var c=31-Ct(o),p=1<<c;s[c]=-1,o&=~p}a!==0&&dd(e,a,t)}function il(){return(Me&6)===0?(Bi(0),!1):!0}function fc(){if(be!==null){if(Be===0)var e=be.return;else e=be,Dn=jr=null,Ru(e),xa=null,Ti=0,e=be;for(;e!==null;)Up(e.alternate,e),e=e.return;be=null}}function Ma(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,FE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),fc(),Ge=e,be=a=Rn(e.current,null),Oe=t,Be=0,jt=null,lr=!1,Ra=Qa(e,t),ac=!1,Ca=Qt=ic=Gr=or=Ze=0,At=Di=null,sc=!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-Ct(s),c=1<<o;t|=e[o],s&=~c}return kn=t,ws(),a}function r0(e,t){ge=null,G.H=Ys,t===mi||t===Hs?(t=vm(),Be=3):t===ym?(t=vm(),Be=4):Be=t===Ep?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,be===null&&(Ze=1,$s(e,Vt(t,e.current)))}function a0(){var e=G.H;return G.H=Ys,e===null?Ys:e}function i0(){var e=G.A;return G.A=SE,e}function hc(){Ze=4,lr||(Oe&4194048)!==Oe&&Xt.current!==null||(Ra=!0),(or&134217727)===0&&(Gr&134217727)===0||Ge===null||fr(Ge,Oe,Qt,!1)}function dc(e,t,a){var s=Me;Me|=2;var o=a0(),c=i0();(Ge!==e||Oe!==t)&&(al=null,Ma(e,t)),t=!1;var p=Ze;e:do try{if(Be!==0&&be!==null){var b=be,A=jt;switch(Be){case 8:fc(),p=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var j=Be;if(Be=0,jt=null,Ba(e,b,A,j),a&&Ra){p=0;break e}break;default:j=Be,Be=0,jt=null,Ba(e,b,A,j)}}AE(),p=Ze;break}catch(q){r0(e,q)}while(!0);return t&&e.shellSuspendCounter++,Dn=jr=null,Me=s,G.H=o,G.A=c,be===null&&(Ge=null,Oe=0,ws()),p}function AE(){for(;be!==null;)s0(be)}function OE(e,t){var a=Me;Me|=2;var s=a0(),o=i0();Ge!==e||Oe!==t?(al=null,rl=hn()+500,Ma(e,t)):Ra=Qa(e,t);e:do try{if(Be!==0&&be!==null){t=be;var c=jt;t:switch(Be){case 1:Be=0,jt=null,Ba(e,t,c,1);break;case 2:case 9:if(_m(c)){Be=0,jt=null,l0(t);break}t=function(){Be!==2&&Be!==9||Ge!==e||(Be=7),yn(e)},c.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:_m(c)?(Be=0,jt=null,l0(t)):(Be=0,jt=null,Ba(e,t,c,7));break;case 5:var p=null;switch(be.tag){case 26:p=be.memoizedState;case 5:case 27:var b=be;if(!p||F0(p)){Be=0,jt=null;var A=b.sibling;if(A!==null)be=A;else{var j=b.return;j!==null?(be=j,sl(j)):be=null}break t}}Be=0,jt=null,Ba(e,t,c,5);break;case 6:Be=0,jt=null,Ba(e,t,c,6);break;case 8:fc(),Ze=6;break e;default:throw Error(l(462))}}wE();break}catch(q){r0(e,q)}while(!0);return Dn=jr=null,G.H=s,G.A=o,Me=a,be!==null?0:(Ge=null,Oe=0,ws(),Ze)}function wE(){for(;be!==null&&!Qv();)s0(be)}function s0(e){var t=Bp(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?sl(e):be=t}function l0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=wp(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=wp(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Ru(t);default:Up(a,t),t=be=om(t,kn),t=Bp(a,t,kn)}e.memoizedProps=e.pendingProps,t===null?sl(e):be=t}function Ba(e,t,a,s){Dn=jr=null,Ru(t),xa=null,Ti=0;var o=t.return;try{if(gE(e,o,t,a,Oe)){Ze=1,$s(e,Vt(a,e.current)),be=null;return}}catch(c){if(o!==null)throw be=o,c;Ze=1,$s(e,Vt(a,e.current)),be=null;return}t.flags&32768?(Ne||s===1?e=!0:Ra||(Oe&536870912)!==0?e=!1:(lr=e=!0,(s===2||s===9||s===3||s===6)&&(s=Xt.current,s!==null&&s.tag===13&&(s.flags|=16384))),o0(t,e)):sl(t)}function sl(e){var t=e;do{if((t.flags&32768)!==0){o0(t,lr);return}e=t.return;var a=_E(t.alternate,t,kn);if(a!==null){be=a;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ze===0&&(Ze=5)}function o0(e,t){do{var a=bE(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);Ze=6,be=null}function u0(e,t,a,s,o,c,p,b,A){e.cancelPendingCommit=null;do ll();while(ot!==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|=ru,i1(e,a,c,p,b,A),e===Ge&&(be=Ge=null,Oe=0),Na=t,cr=e,Da=a,oc=c,uc=o,Wp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,DE(hs,function(){return m0(),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{vE(e,t,a)}finally{Me=p,X.p=o,G.T=s}}ot=1,c0(),f0(),h0()}}function c0(){if(ot===1){ot=0;var e=cr,t=Na,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{Yp(t,e);var c=Ac,p=Jd(e.containerInfo),b=c.focusedElem,A=c.selectionRange;if(p!==b&&b&&b.ownerDocument&&$d(b.ownerDocument.documentElement,b)){if(A!==null&&Jo(b)){var j=A.start,q=A.end;if(q===void 0&&(q=j),"selectionStart"in b)b.selectionStart=j,b.selectionEnd=Math.min(q,b.value.length);else{var V=b.ownerDocument||document,H=V&&V.defaultView||window;if(H.getSelection){var L=H.getSelection(),fe=b.textContent.length,se=Math.min(A.start,fe),Le=A.end===void 0?se:Math.min(A.end,fe);!L.extend&&se>Le&&(p=Le,Le=se,se=p);var D=Kd(b,se),C=Kd(b,Le);if(D&&C&&(L.rangeCount!==1||L.anchorNode!==D.node||L.anchorOffset!==D.offset||L.focusNode!==C.node||L.focusOffset!==C.offset)){var B=V.createRange();B.setStart(D.node,D.offset),L.removeAllRanges(),se>Le?(L.addRange(B),L.extend(C.node,C.offset)):(B.setEnd(C.node,C.offset),L.addRange(B))}}}}for(V=[],L=b;L=L.parentNode;)L.nodeType===1&&V.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<V.length;b++){var I=V[b];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}bl=!!xc,Ac=xc=null}finally{Me=o,X.p=s,G.T=a}}e.current=t,ot=2}}function f0(){if(ot===2){ot=0;var e=cr,t=Na,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{Fp(e,t.alternate,t)}finally{Me=o,X.p=s,G.T=a}}ot=3}}function h0(){if(ot===4||ot===3){ot=0,Kv();var e=cr,t=Na,a=Da,s=Wp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Na=cr=null,d0(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ur=null),Do(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Xa,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 b=s[p];c(b.value,{componentStack:b.stack})}}finally{G.T=t,X.p=o}}(Da&3)!==0&&ll(),yn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===cc?Mi++:(Mi=0,cc=e):Mi=0,Bi(0)}}function d0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hi(t)))}function ll(e){return c0(),f0(),h0(),m0()}function m0(){if(ot!==5)return!1;var e=cr,t=oc;oc=0;var a=Do(Da),s=G.T,o=X.p;try{X.p=32>a?32:a,G.T=null,a=uc,uc=null;var c=cr,p=Da;if(ot=0,Na=cr=null,Da=0,(Me&6)!==0)throw Error(l(331));var b=Me;if(Me|=4,$p(c.current),Xp(c,c.current,p,a),Me=b,Bi(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Xa,c)}catch{}return!0}finally{X.p=o,G.T=s,d0(e,t)}}function p0(e,t,a){t=Vt(a,t),t=Fu(e.stateNode,t,2),e=er(e,t,2),e!==null&&(Ka(e,2),yn(e))}function ze(e,t,a){if(e.tag===3)p0(e,e,a);else for(;t!==null;){if(t.tag===3){p0(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ur===null||!ur.has(s))){e=Vt(a,e),a=bp(2),s=er(t,a,2),s!==null&&(vp(a,s,t,e),Ka(s,2),yn(s));break}}t=t.return}}function mc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new TE;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)||(ac=!0,o.add(a),e=RE.bind(null,e,t,a),t.then(e,e))}function RE(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ge===e&&(Oe&a)===a&&(Ze===4||Ze===3&&(Oe&62914560)===Oe&&300>hn()-lc?(Me&2)===0&&Ma(e,0):ic|=a,Ca===Oe&&(Ca=0)),yn(e)}function g0(e,t){t===0&&(t=hd()),e=ma(e,t),e!==null&&(Ka(e,t),yn(e))}function CE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),g0(e,a)}function NE(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),g0(e,a)}function DE(e,t){return An(e,t)}var ol=null,ja=null,pc=!1,ul=!1,gc=!1,qr=0;function yn(e){e!==ja&&e.next===null&&(ja===null?ol=ja=e:ja=ja.next=e),ul=!0,pc||(pc=!0,BE())}function Bi(e,t){if(!gc&&ul){gc=!0;do for(var a=!1,s=ol;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var c=0;else{var p=s.suspendedLanes,b=s.pingedLanes;c=(1<<31-Ct(42|e)+1)-1,c&=o&~(p&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,v0(s,c))}else c=Oe,c=ps(s,s===Ge?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Qa(s,c)||(a=!0,v0(s,c));s=s.next}while(a);gc=!1}}function ME(){y0()}function y0(){ul=pc=!1;var e=0;qr!==0&&(qE()&&(e=qr),qr=0);for(var t=hn(),a=null,s=ol;s!==null;){var o=s.next,c=_0(s,t);c===0?(s.next=null,a===null?ol=o:a.next=o,o===null&&(ja=a)):(a=s,(e!==0||(c&3)!==0)&&(ul=!0)),s=o}Bi(e)}function _0(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-Ct(c),b=1<<p,A=o[p];A===-1?((b&a)===0||(b&s)!==0)&&(o[p]=a1(b,t)):A<=t&&(e.expiredLanes|=b),c&=~b}if(t=Ge,a=Oe,a=ps(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&&Ro(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Qa(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&Ro(s),Do(a)){case 2:case 8:a=ud;break;case 32:a=hs;break;case 268435456:a=cd;break;default:a=hs}return s=b0.bind(null,e),a=An(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&Ro(s),e.callbackPriority=2,e.callbackNode=null,2}function b0(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ll()&&e.callbackNode!==a)return null;var s=Oe;return s=ps(e,e===Ge?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(t0(e,s,t),_0(e,hn()),e.callbackNode!=null&&e.callbackNode===a?b0.bind(null,e):null)}function v0(e,t){if(ll())return null;t0(e,t,!0)}function BE(){IE(function(){(Me&6)!==0?An(od,ME):y0()})}function yc(){return qr===0&&(qr=fd()),qr}function E0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vs(""+e)}function S0(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 jE(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var c=E0((o[Et]||null).action),p=s.submitter;p&&(t=(t=p[Et]||null)?E0(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var b=new xs("action","action",null,s,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(qr!==0){var A=p?S0(o,p):new FormData(o);Lu(a,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(b.preventDefault(),A=p?S0(o,p):new FormData(o),Lu(a,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var _c=0;_c<nu.length;_c++){var bc=nu[_c],UE=bc.toLowerCase(),HE=bc[0].toUpperCase()+bc.slice(1);nn(UE,"on"+HE)}nn(tm,"onAnimationEnd"),nn(nm,"onAnimationIteration"),nn(rm,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(W1,"onTransitionRun"),nn(eE,"onTransitionStart"),nn(tE,"onTransitionCancel"),nn(am,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),LE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ji));function T0(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 b=s[p],A=b.instance,j=b.currentTarget;if(b=b.listener,A!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=j;try{c(o)}catch(q){Ks(q)}o.currentTarget=null,c=A}else for(p=0;p<s.length;p++){if(b=s[p],A=b.instance,j=b.currentTarget,b=b.listener,A!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=j;try{c(o)}catch(q){Ks(q)}o.currentTarget=null,c=A}}}}function ve(e,t){var a=t[Mo];a===void 0&&(a=t[Mo]=new Set);var s=e+"__bubble";a.has(s)||(x0(t,e,2,!1),a.add(s))}function vc(e,t,a){var s=0;t&&(s|=4),x0(a,e,s,t)}var cl="_reactListening"+Math.random().toString(36).slice(2);function Ec(e){if(!e[cl]){e[cl]=!0,yd.forEach(function(a){a!=="selectionchange"&&(LE.has(a)||vc(a,!1,e),vc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cl]||(t[cl]=!0,vc("selectionchange",!1,t))}}function x0(e,t,a,s){switch(X0(t)){case 2:var o=c2;break;case 8:o=f2;break;default:o=Uc}a=o.bind(null,t,a,e),o=void 0,!Io||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 Sc(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 b=s.stateNode.containerInfo;if(b===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(;b!==null;){if(p=ta(b),p===null)return;if(A=p.tag,A===5||A===6||A===26||A===27){s=c=p;continue e}b=b.parentNode}}s=s.return}Dd(function(){var j=c,q=qo(a),V=[];e:{var H=im.get(e);if(H!==void 0){var L=xs,fe=e;switch(e){case"keypress":if(Ss(a)===0)break e;case"keydown":case"keyup":L=D1;break;case"focusin":fe="focus",L=Zo;break;case"focusout":fe="blur",L=Zo;break;case"beforeblur":case"afterblur":L=Zo;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":L=jd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=b1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=j1;break;case tm:case nm:case rm:L=S1;break;case am:L=H1;break;case"scroll":case"scrollend":L=y1;break;case"wheel":L=z1;break;case"copy":case"cut":case"paste":L=x1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Hd;break;case"toggle":case"beforetoggle":L=G1}var se=(t&4)!==0,Le=!se&&(e==="scroll"||e==="scrollend"),D=se?H!==null?H+"Capture":null:H;se=[];for(var C=j,B;C!==null;){var I=C;if(B=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||B===null||D===null||(I=Wa(C,D),I!=null&&se.push(Ui(C,I,B))),Le)break;C=C.return}0<se.length&&(H=new L(H,fe,null,a,q),V.push({event:H,listeners:se}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",H&&a!==Go&&(fe=a.relatedTarget||a.fromElement)&&(ta(fe)||fe[ea]))break e;if((L||H)&&(H=q.window===q?q:(H=q.ownerDocument)?H.defaultView||H.parentWindow:window,L?(fe=a.relatedTarget||a.toElement,L=j,fe=fe?ta(fe):null,fe!==null&&(Le=f(fe),se=fe.tag,fe!==Le||se!==5&&se!==27&&se!==6)&&(fe=null)):(L=null,fe=j),L!==fe)){if(se=jd,I="onMouseLeave",D="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(se=Hd,I="onPointerLeave",D="onPointerEnter",C="pointer"),Le=L==null?H:Ja(L),B=fe==null?H:Ja(fe),H=new se(I,C+"leave",L,a,q),H.target=Le,H.relatedTarget=B,I=null,ta(q)===j&&(se=new se(D,C+"enter",fe,a,q),se.target=B,se.relatedTarget=Le,I=se),Le=I,L&&fe)t:{for(se=L,D=fe,C=0,B=se;B;B=Ua(B))C++;for(B=0,I=D;I;I=Ua(I))B++;for(;0<C-B;)se=Ua(se),C--;for(;0<B-C;)D=Ua(D),B--;for(;C--;){if(se===D||D!==null&&se===D.alternate)break t;se=Ua(se),D=Ua(D)}se=null}else se=null;L!==null&&A0(V,H,L,se,!1),fe!==null&&Le!==null&&A0(V,Le,fe,se,!0)}}e:{if(H=j?Ja(j):window,L=H.nodeName&&H.nodeName.toLowerCase(),L==="select"||L==="input"&&H.type==="file")var W=Vd;else if(Fd(H))if(Pd)W=K1;else{W=X1;var ye=Z1}else L=H.nodeName,!L||L.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?j&&ko(j.elementType)&&(W=Vd):W=Q1;if(W&&(W=W(e,j))){Id(V,W,a,q);break e}ye&&ye(e,H,j),e==="focusout"&&j&&H.type==="number"&&j.memoizedProps.value!=null&&zo(H,"number",H.value)}switch(ye=j?Ja(j):window,e){case"focusin":(Fd(ye)||ye.contentEditable==="true")&&(fa=ye,Wo=j,li=null);break;case"focusout":li=Wo=fa=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,Wd(V,a,q);break;case"selectionchange":if(J1)break;case"keydown":case"keyup":Wd(V,a,q)}var ne;if(Qo)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 ca?Gd(e,a)&&(oe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(oe="onCompositionStart");oe&&(Ld&&a.locale!=="ko"&&(ca||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&ca&&(ne=Md()):(Kn=q,Vo="value"in Kn?Kn.value:Kn.textContent,ca=!0)),ye=fl(j,oe),0<ye.length&&(oe=new Ud(oe,e,null,a,q),V.push({event:oe,listeners:ye}),ne?oe.data=ne:(ne=qd(a),ne!==null&&(oe.data=ne)))),(ne=F1?I1(e,a):V1(e,a))&&(oe=fl(j,"onBeforeInput"),0<oe.length&&(ye=new Ud("onBeforeInput","beforeinput",null,a,q),V.push({event:ye,listeners:oe}),ye.data=ne)),jE(V,e,j,a,q)}T0(V,t)})}function Ui(e,t,a){return{instance:e,listener:t,currentTarget:a}}function fl(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=Wa(e,a),o!=null&&s.unshift(Ui(e,o,c)),o=Wa(e,t),o!=null&&s.push(Ui(e,o,c))),e.tag===3)return s;e=e.return}return[]}function Ua(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function A0(e,t,a,s,o){for(var c=t._reactName,p=[];a!==null&&a!==s;){var b=a,A=b.alternate,j=b.stateNode;if(b=b.tag,A!==null&&A===s)break;b!==5&&b!==26&&b!==27||j===null||(A=j,o?(j=Wa(a,c),j!=null&&p.unshift(Ui(a,j,A))):o||(j=Wa(a,c),j!=null&&p.push(Ui(a,j,A)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var zE=/\r\n?/g,kE=/\u0000|\uFFFD/g;function O0(e){return(typeof e=="string"?e:""+e).replace(zE,`
|
|
49
|
-
`).replace(kE,"")}function w0(e,t){return t=O0(t),O0(e)===t}function hl(){}function He(e,t,a,s,o,c){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||la(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&la(e,""+s);break;case"className":ys(e,"class",s);break;case"tabIndex":ys(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ys(e,a,s);break;case"style":Cd(e,s,c);break;case"data":if(t!=="object"){ys(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=vs(""+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"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=vs(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=hl);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=vs(""+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),gs(e,"popover",s);break;case"xlinkActuate":On(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":On(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":On(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":On(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":On(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":On(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":On(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":On(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":On(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":gs(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=p1.get(a)||a,gs(e,a,s))}}function Tc(e,t,a,s,o,c){switch(a){case"style":Cd(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"?la(e,s):(typeof s=="number"||typeof s=="bigint")&&la(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=hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_d.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[Et]||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,""):gs(e,a,s)}}}function ut(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:He(e,t,c,p,a,null)}}o&&He(e,t,"srcSet",a.srcSet,a,null),s&&He(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var b=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":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,t));break;default:He(e,t,s,q,a,null)}}Ad(e,c,b,A,j,p,o,!1),_s(e);return;case"select":ve("invalid",e),s=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(b=a[o],b!=null))switch(o){case"value":c=b;break;case"defaultValue":p=b;break;case"multiple":s=b;default:He(e,t,o,b,a,null)}t=c,a=p,e.multiple=!!s,t!=null?sa(e,!!s,t,!1):a!=null&&sa(e,!!s,a,!0);return;case"textarea":ve("invalid",e),c=o=s=null;for(p in a)if(a.hasOwnProperty(p)&&(b=a[p],b!=null))switch(p){case"value":s=b;break;case"defaultValue":o=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:He(e,t,p,b,a,null)}wd(e,s,o,c),_s(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:He(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<ji.length;s++)ve(ji[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:He(e,t,j,s,a,null)}return;default:if(ko(t)){for(q in a)a.hasOwnProperty(q)&&(s=a[q],s!==void 0&&Tc(e,t,q,s,a,void 0));return}}for(b in a)a.hasOwnProperty(b)&&(s=a[b],s!=null&&He(e,t,b,s,a,null))}function GE(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,b=null,A=null,j=null,q=null;for(L in a){var V=a[L];if(a.hasOwnProperty(L)&&V!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":A=V;default:s.hasOwnProperty(L)||He(e,t,L,null,s,V)}}for(var H in s){var L=s[H];if(V=a[H],s.hasOwnProperty(H)&&(L!=null||V!=null))switch(H){case"type":c=L;break;case"name":o=L;break;case"checked":j=L;break;case"defaultChecked":q=L;break;case"value":p=L;break;case"defaultValue":b=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,t));break;default:L!==V&&He(e,t,H,L,s,V)}}Lo(e,p,b,A,j,q,c,o);return;case"select":L=p=b=H=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":L=A;default:s.hasOwnProperty(c)||He(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":H=c;break;case"defaultValue":b=c;break;case"multiple":p=c;default:c!==A&&He(e,t,o,c,s,A)}t=b,a=p,s=L,H!=null?sa(e,!!a,H,!1):!!s!=!!a&&(t!=null?sa(e,!!a,t,!0):sa(e,!!a,a?[]:"",!1));return;case"textarea":L=H=null;for(b in a)if(o=a[b],a.hasOwnProperty(b)&&o!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:He(e,t,b,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":H=o;break;case"defaultValue":L=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&He(e,t,p,o,s,c)}Od(e,H,L);return;case"option":for(var fe in a)if(H=a[fe],a.hasOwnProperty(fe)&&H!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:He(e,t,fe,null,s,H)}for(A in s)if(H=s[A],L=a[A],s.hasOwnProperty(A)&&H!==L&&(H!=null||L!=null))switch(A){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:He(e,t,A,H,s,L)}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)H=a[se],a.hasOwnProperty(se)&&H!=null&&!s.hasOwnProperty(se)&&He(e,t,se,null,s,H);for(j in s)if(H=s[j],L=a[j],s.hasOwnProperty(j)&&H!==L&&(H!=null||L!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,t));break;default:He(e,t,j,H,s,L)}return;default:if(ko(t)){for(var Le in a)H=a[Le],a.hasOwnProperty(Le)&&H!==void 0&&!s.hasOwnProperty(Le)&&Tc(e,t,Le,void 0,s,H);for(q in s)H=s[q],L=a[q],!s.hasOwnProperty(q)||H===L||H===void 0&&L===void 0||Tc(e,t,q,H,s,L);return}}for(var D in a)H=a[D],a.hasOwnProperty(D)&&H!=null&&!s.hasOwnProperty(D)&&He(e,t,D,null,s,H);for(V in s)H=s[V],L=a[V],!s.hasOwnProperty(V)||H===L||H==null&&L==null||He(e,t,V,H,s,L)}var xc=null,Ac=null;function dl(e){return e.nodeType===9?e:e.ownerDocument}function R0(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 C0(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 Oc(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 wc=null;function qE(){var e=window.event;return e&&e.type==="popstate"?e===wc?!1:(wc=e,!0):(wc=null,!1)}var N0=typeof setTimeout=="function"?setTimeout:void 0,FE=typeof clearTimeout=="function"?clearTimeout:void 0,D0=typeof Promise=="function"?Promise:void 0,IE=typeof queueMicrotask=="function"?queueMicrotask:typeof D0<"u"?function(e){return D0.resolve(null).then(e).catch(VE)}:N0;function VE(e){setTimeout(function(){throw e})}function hr(e){return e==="head"}function M0(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&&Hi(p.documentElement),a&2&&Hi(p.body),a&4)for(a=p.head,Hi(a),p=a.firstChild;p;){var b=p.nextSibling,A=p.nodeName;p[$a]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=b}}if(o===0){e.removeChild(c),Vi(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:s=a.charCodeAt(0)-48;else s=0;a=c}while(a);Vi(t)}function Rc(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":Rc(a),Bo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function PE(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[$a])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=an(e.nextSibling),e===null)break}return null}function YE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=an(e.nextSibling),e===null))return null;return e}function Cc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function ZE(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 an(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 Nc=null;function B0(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 j0(e,t,a){switch(t=dl(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 Hi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Bo(e)}var Kt=new Map,U0=new Set;function ml(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Gn=X.d;X.d={f:XE,r:QE,D:KE,C:$E,L:JE,m:WE,X:t2,S:e2,M:n2};function XE(){var e=Gn.f(),t=il();return e||t}function QE(e){var t=na(e);t!==null&&t.tag===5&&t.type==="form"?tp(t):Gn.r(e)}var Ha=typeof document>"u"?null:document;function H0(e,t,a){var s=Ha;if(s&&typeof t=="string"&&t){var o=It(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),U0.has(o)||(U0.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),ut(t,"link",e),rt(t),s.head.appendChild(t)))}}function KE(e){Gn.D(e),H0("dns-prefetch",e,null)}function $E(e,t){Gn.C(e,t),H0("preconnect",e,t)}function JE(e,t,a){Gn.L(e,t,a);var s=Ha;if(s&&e&&t){var o='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+It(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+It(a.imageSizes)+'"]')):o+='[href="'+It(e)+'"]';var c=o;switch(t){case"style":c=La(e);break;case"script":c=za(e)}Kt.has(c)||(e=_({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kt.set(c,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(Li(c))||t==="script"&&s.querySelector(zi(c))||(t=s.createElement("link"),ut(t,"link",e),rt(t),s.head.appendChild(t)))}}function WE(e,t){Gn.m(e,t);var a=Ha;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+It(s)+'"][href="'+It(e)+'"]',c=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=za(e)}if(!Kt.has(c)&&(e=_({rel:"modulepreload",href:e},t),Kt.set(c,e),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(zi(c)))return}s=a.createElement("link"),ut(s,"link",e),rt(s),a.head.appendChild(s)}}}function e2(e,t,a){Gn.S(e,t,a);var s=Ha;if(s&&e){var o=ra(s).hoistableStyles,c=La(e);t=t||"default";var p=o.get(c);if(!p){var b={loading:0,preload:null};if(p=s.querySelector(Li(c)))b.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kt.get(c))&&Dc(e,a);var A=p=s.createElement("link");rt(A),ut(A,"link",e),A._p=new Promise(function(j,q){A.onload=j,A.onerror=q}),A.addEventListener("load",function(){b.loading|=1}),A.addEventListener("error",function(){b.loading|=2}),b.loading|=4,pl(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:b},o.set(c,p)}}}function t2(e,t){Gn.X(e,t);var a=Ha;if(a&&e){var s=ra(a).hoistableScripts,o=za(e),c=s.get(o);c||(c=a.querySelector(zi(o)),c||(e=_({src:e,async:!0},t),(t=Kt.get(o))&&Mc(e,t),c=a.createElement("script"),rt(c),ut(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function n2(e,t){Gn.M(e,t);var a=Ha;if(a&&e){var s=ra(a).hoistableScripts,o=za(e),c=s.get(o);c||(c=a.querySelector(zi(o)),c||(e=_({src:e,async:!0,type:"module"},t),(t=Kt.get(o))&&Mc(e,t),c=a.createElement("script"),rt(c),ut(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function L0(e,t,a,s){var o=(o=ce.current)?ml(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=La(a.href),a=ra(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=La(a.href);var c=ra(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(Li(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Kt.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},Kt.set(e,a),c||r2(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=za(a),a=ra(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 La(e){return'href="'+It(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function z0(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function r2(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}),ut(t,"link",a),rt(t),e.head.appendChild(t))}function za(e){return'[src="'+It(e)+'"]'}function zi(e){return"script[async]"+e}function k0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+It(a.href)+'"]');if(s)return t.instance=s,rt(s),s;var o=_({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),rt(s),ut(s,"style",o),pl(s,a.precedence,e),t.instance=s;case"stylesheet":o=La(a.href);var c=e.querySelector(Li(o));if(c)return t.state.loading|=4,t.instance=c,rt(c),c;s=z0(a),(o=Kt.get(o))&&Dc(s,o),c=(e.ownerDocument||e).createElement("link"),rt(c);var p=c;return p._p=new Promise(function(b,A){p.onload=b,p.onerror=A}),ut(c,"link",s),t.state.loading|=4,pl(c,a.precedence,e),t.instance=c;case"script":return c=za(a.src),(o=e.querySelector(zi(c)))?(t.instance=o,rt(o),o):(s=a,(o=Kt.get(c))&&(s=_({},a),Mc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),rt(o),ut(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,pl(s,a.precedence,e));return t.instance}function pl(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 b=s[p];if(b.dataset.precedence===t)c=b;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 Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var gl=null;function G0(e,t,a){if(gl===null){var s=new Map,o=gl=new Map;o.set(a,s)}else o=gl,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[$a]||c[pt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var b=s.get(p);b?b.push(c):s.set(p,[c])}}return s}function q0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function a2(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 F0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var ki=null;function i2(){}function s2(e,t,a){if(ki===null)throw Error(l(475));var s=ki;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=La(a.href),c=e.querySelector(Li(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=yl.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=c,rt(c);return}c=e.ownerDocument||e,a=z0(a),(o=Kt.get(o))&&Dc(a,o),c=c.createElement("link"),rt(c);var p=c;p._p=new Promise(function(b,A){p.onload=b,p.onerror=A}),ut(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=yl.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function l2(){if(ki===null)throw Error(l(475));var e=ki;return e.stylesheets&&e.count===0&&Bc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Bc(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 yl(){if(this.count--,this.count===0){if(this.stylesheets)Bc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _l=null;function Bc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_l=new Map,t.forEach(o2,e),_l=null,yl.call(e))}function o2(e,t){if(!(t.state.loading&4)){var a=_l.get(e);if(a)var s=a.get(null);else{a=new Map,_l.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=yl.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 Gi={$$typeof:O,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function u2(e,t,a,s,o,c,p,b){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=Co(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.hiddenUpdates=Co(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function I0(e,t,a,s,o,c,p,b,A,j,q,V){return e=new u2(e,t,a,p,b,A,j,V),t=1,c===!0&&(t|=24),c=Dt(3,null,null,t),e.current=c,c.stateNode=e,t=mu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:t},_u(c),e}function V0(e){return e?(e=pa,e):pa}function P0(e,t,a,s,o,c){o=V0(o),s.context===null?s.context=o:s.pendingContext=o,s=Wn(t),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=er(e,s,t),a!==null&&(Ht(a,e,t),gi(a,e,t))}function Y0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function jc(e,t){Y0(e,t),(e=e.alternate)&&Y0(e,t)}function Z0(e){if(e.tag===13){var t=ma(e,67108864);t!==null&&Ht(t,e,67108864),jc(e,67108864)}}var bl=!0;function c2(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=2,Uc(e,t,a,s)}finally{X.p=c,G.T=o}}function f2(e,t,a,s){var o=G.T;G.T=null;var c=X.p;try{X.p=8,Uc(e,t,a,s)}finally{X.p=c,G.T=o}}function Uc(e,t,a,s){if(bl){var o=Hc(s);if(o===null)Sc(e,t,s,vl,a),Q0(e,s);else if(d2(o,e,t,a,s))s.stopPropagation();else if(Q0(e,s),t&4&&-1<h2.indexOf(e)){for(;o!==null;){var c=na(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=xr(c.pendingLanes);if(p!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var A=1<<31-Ct(p);b.entanglements[1]|=A,p&=~A}yn(c),(Me&6)===0&&(rl=hn()+500,Bi(0))}}break;case 13:b=ma(c,2),b!==null&&Ht(b,c,2),il(),jc(c,2)}if(c=Hc(s),c===null&&Sc(e,t,s,vl,a),c===o)break;o=c}o!==null&&s.stopPropagation()}else Sc(e,t,s,null,a)}}function Hc(e){return e=qo(e),Lc(e)}var vl=null;function Lc(e){if(vl=null,e=ta(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 vl=e,null}function X0(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($v()){case od:return 2;case ud:return 8;case hs:case Jv:return 32;case cd:return 268435456;default:return 32}default:return 32}}var zc=!1,dr=null,mr=null,pr=null,qi=new Map,Fi=new Map,gr=[],h2="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 Q0(e,t){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fi.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=na(t),t!==null&&Z0(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function d2(e,t,a,s,o){switch(t){case"focusin":return dr=Ii(dr,e,t,a,s,o),!0;case"dragenter":return mr=Ii(mr,e,t,a,s,o),!0;case"mouseover":return pr=Ii(pr,e,t,a,s,o),!0;case"pointerover":var c=o.pointerId;return qi.set(c,Ii(qi.get(c)||null,e,t,a,s,o)),!0;case"gotpointercapture":return c=o.pointerId,Fi.set(c,Ii(Fi.get(c)||null,e,t,a,s,o)),!0}return!1}function K0(e){var t=ta(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,s1(e.priority,function(){if(a.tag===13){var s=Ut();s=No(s);var o=ma(a,s);o!==null&&Ht(o,a,s),jc(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 El(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hc(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);Go=s,a.target.dispatchEvent(s),Go=null}else return t=na(a),t!==null&&Z0(t),e.blockedOn=a,!1;t.shift()}return!0}function $0(e,t,a){El(e)&&a.delete(t)}function m2(){zc=!1,dr!==null&&El(dr)&&(dr=null),mr!==null&&El(mr)&&(mr=null),pr!==null&&El(pr)&&(pr=null),qi.forEach($0),Fi.forEach($0)}function Sl(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,m2)))}var Tl=null;function J0(e){Tl!==e&&(Tl=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Tl===e&&(Tl=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(Lc(s||a)===null)continue;break}var c=na(a);c!==null&&(e.splice(t,3),t-=3,Lu(c,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Vi(e){function t(A){return Sl(A,e)}dr!==null&&Sl(dr,e),mr!==null&&Sl(mr,e),pr!==null&&Sl(pr,e),qi.forEach(t),Fi.forEach(t);for(var a=0;a<gr.length;a++){var s=gr[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<gr.length&&(a=gr[0],a.blockedOn===null);)K0(a),a.blockedOn===null&&gr.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[Et]||null;if(typeof c=="function")p||J0(a);else if(p){var b=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Et]||null)b=p.formAction;else if(Lc(o)!==null)continue}else b=p.action;typeof b=="function"?a[s+1]=b:(a.splice(s,3),s-=3),J0(a)}}}function kc(e){this._internalRoot=e}xl.prototype.render=kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,s=Ut();P0(a,s,e,t,null,null)},xl.prototype.unmount=kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;P0(e.current,2,null,e,null,null),il(),t[ea]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=pd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<gr.length&&t!==0&&t<gr[a].priority;a++);gr.splice(a,0,e),a===0&&K0(e)}};var W0=r.version;if(W0!=="19.1.0")throw Error(l(527,W0,"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 p2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Al.isDisabled&&Al.supportsFiber)try{Xa=Al.inject(p2),Rt=Al}catch{}}return Yi.createRoot=function(e,t){if(!u(e))throw Error(l(299));var a=!1,s="",o=pp,c=gp,p=yp,b=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&&(b=t.unstable_transitionCallbacks)),t=I0(e,1,!1,null,null,a,s,o,c,p,b,null),e[ea]=t.current,Ec(e),new kc(t)},Yi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(l(299));var s=!1,o="",c=pp,p=gp,b=yp,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&&(b=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(A=a.unstable_transitionCallbacks),a.formState!==void 0&&(j=a.formState)),t=I0(e,1,!0,t,a??null,s,o,c,p,b,A,j),t.context=V0(null),a=t.current,s=Ut(),s=No(s),o=Wn(s),o.callback=null,er(a,o,s),a=s,t.current.lanes=a,Ka(t,a),yn(t),e[ea]=t.current,Ec(e),new xl(t)},Yi.version="19.1.0",Yi}var ug;function w2(){if(ug)return qc.exports;ug=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(),qc.exports=O2(),qc.exports}var R2=w2(),F=Ia();const k_=po(F);var Yc={exports:{}},Zc={};/**
|
|
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 cg;function C2(){if(cg)return Zc;cg=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 Zc.useSyncExternalStoreWithSelector=function(m,g,_,E,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(S){if(!U){if(U=!0,M=S,S=E(S),y!==void 0&&T.hasValue){var k=T.value;if(y(k,S))return O=k}return O=S}if(k=O,i(M,S))return k;var Y=E(S);return y!==void 0&&y(k,Y)?(M=S,k):(M=S,O=Y)}var U=!1,M,O,R=_===void 0?null:_;return[function(){return N(g())},R===null?void 0:function(){return N(R())}]},[g,_,E,y]);var z=l(m,x[0],x[1]);return f(function(){T.hasValue=!0,T.value=z},[z]),d(z),z},Zc}var fg;function N2(){return fg||(fg=1,Yc.exports=C2()),Yc.exports}var D2=N2(),M2=F.version.startsWith("19"),B2=Symbol.for(M2?"react.transitional.element":"react.element"),j2=Symbol.for("react.portal"),U2=Symbol.for("react.fragment"),H2=Symbol.for("react.strict_mode"),L2=Symbol.for("react.profiler"),z2=Symbol.for("react.consumer"),k2=Symbol.for("react.context"),G_=Symbol.for("react.forward_ref"),G2=Symbol.for("react.suspense"),q2=Symbol.for("react.suspense_list"),Ah=Symbol.for("react.memo"),F2=Symbol.for("react.lazy"),I2=G_,V2=Ah;function P2(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case B2:switch(n=n.type,n){case U2:case L2:case H2:case G2:case q2:return n;default:switch(n=n&&n.$$typeof,n){case k2:case G_:case F2:case Ah:return n;case z2:return n;default:return r}}case j2:return r}}}function Y2(n){return P2(n)===Ah}function Z2(n,r,i,l,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:h}){let d=!1,m,g,_,E,y;function x(M,O){return m=M,g=O,_=n(m,g),E=r(l,g),y=i(_,E,g),d=!0,y}function T(){return _=n(m,g),r.dependsOnOwnProps&&(E=r(l,g)),y=i(_,E,g),y}function z(){return n.dependsOnOwnProps&&(_=n(m,g)),r.dependsOnOwnProps&&(E=r(l,g)),y=i(_,E,g),y}function N(){const M=n(m,g),O=!h(M,_);return _=M,O&&(y=i(_,E,g)),y}function U(M,O){const R=!f(O,g),S=!u(M,m,O,g);return m=M,g=O,R&&S?T():R?z():S?N():y}return function(O,R){return d?U(O,R):x(O,R)}}function X2(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const f=r(n,u),h=i(n,u),d=l(n,u);return Z2(f,h,d,n,u)}function Q2(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 Kf(n){return function(i){const l=n(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function hg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function q_(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=hg(n);let g=f(d,m);return typeof g=="function"&&(f.mapToProps=g,f.dependsOnOwnProps=hg(g),g=f(d,m)),g},f}}function Oh(n,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function K2(n){return n&&typeof n=="object"?Kf(r=>Q2(n,r)):n?typeof n=="function"?q_(n):Oh(n,"mapDispatchToProps"):Kf(r=>({dispatch:r}))}function $2(n){return n?typeof n=="function"?q_(n):Oh(n,"mapStateToProps"):Kf(()=>({}))}function J2(n,r,i){return{...i,...n,...r}}function W2(n){return function(i,{displayName:l,areMergedPropsEqual:u}){let f=!1,h;return function(m,g,_){const E=n(m,g,_);return f?u(E,h)||(h=E):(f=!0,h=E),h}}}function eS(n){return n?typeof n=="function"?W2(n):Oh(n,"mergeProps"):()=>J2}function tS(n){n()}function nS(){let n=null,r=null;return{clear(){n=null,r=null},notify(){tS(()=>{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 dg={notify(){},get:()=>[]};function F_(n,r){let i,l=dg,u=0,f=!1;function h(z){_();const N=l.subscribe(z);let U=!1;return()=>{U||(U=!0,N(),E())}}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=nS())}function E(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=dg)}function y(){f||(f=!0,_())}function x(){f&&(f=!1,E())}const T={addNestedSub:h,notifyNestedSubs:d,handleChangeWrapper:m,isSubscribed:g,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>l};return T}var rS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aS=rS(),iS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",sS=iS(),lS=()=>aS||sS?F.useLayoutEffect:F.useEffect,so=lS();function mg(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function Xc(n,r){if(mg(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])||!mg(n[i[u]],r[i[u]]))return!1;return!0}var oS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},I_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fS={[I2]:cS,[V2]:I_};function pg(n){return Y2(n)?I_:fS[n.$$typeof]||oS}var hS=Object.defineProperty,dS=Object.getOwnPropertyNames,gg=Object.getOwnPropertySymbols,mS=Object.getOwnPropertyDescriptor,pS=Object.getPrototypeOf,yg=Object.prototype;function $f(n,r){if(typeof r!="string"){if(yg){const f=pS(r);f&&f!==yg&&$f(n,f)}let i=dS(r);gg&&(i=i.concat(gg(r)));const l=pg(n),u=pg(r);for(let f=0;f<i.length;++f){const h=i[f];if(!uS[h]&&!(u&&u[h])&&!(l&&l[h])){const d=mS(r,h);try{hS(n,h,d)}catch{}}}}return n}var Qc=Symbol.for("react-redux-context"),Kc=typeof globalThis<"u"?globalThis:{};function gS(){if(!F.createContext)return{};const n=Kc[Qc]??(Kc[Qc]=new Map);let r=n.get(F.createContext);return r||(r=F.createContext(null),n.set(F.createContext,r)),r}var Yn=gS(),yS=[null,null];function _S(n,r,i){so(()=>n(...r),i)}function bS(n,r,i,l,u,f){n.current=l,i.current=!1,u.current&&(u.current=null,f())}function vS(n,r,i,l,u,f,h,d,m,g,_){if(!n)return()=>{};let E=!1,y=null;const x=()=>{if(E||!d.current)return;const z=r.getState();let N,U;try{N=l(z,u.current)}catch(M){U=M,y=M}U||(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(E=!0,i.tryUnsubscribe(),i.onStateChange=null,y)throw y}}function ES(n,r){return n===r}function SS(n,r,i,{pure:l,areStatesEqual:u=ES,areOwnPropsEqual:f=Xc,areStatePropsEqual:h=Xc,areMergedPropsEqual:d=Xc,forwardRef:m=!1,context:g=Yn}={}){const _=g,E=$2(n),y=K2(r),x=eS(i),T=!!n;return N=>{const U=N.displayName||N.name||"Component",M=`Connect(${U})`,O={shouldHandleStateChanges:T,displayName:M,wrappedComponentName:U,WrappedComponent:N,initMapStateToProps:E,initMapDispatchToProps:y,initMergeProps:x,areStatesEqual:u,areStatePropsEqual:h,areOwnPropsEqual:f,areMergedPropsEqual:d};function R(Y){const[K,re,ee]=F.useMemo(()=>{const{reactReduxForwardedRef:mt,...An}=Y;return[Y.context,mt,An]},[Y]),le=F.useMemo(()=>{let mt=_;return K!=null&&K.Consumer,mt},[K,_]),ie=F.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=F.useMemo(()=>X2(Te.dispatch,O),[Te]),[J,_e]=F.useMemo(()=>{if(!T)return yS;const mt=F_(Te,de?void 0:ie.subscription),An=mt.notifyNestedSubs.bind(mt);return[mt,An]},[Te,de,ie]),w=F.useMemo(()=>de?ie:{...ie,subscription:J},[de,ie,J]),P=F.useRef(void 0),$=F.useRef(ee),Q=F.useRef(void 0),ae=F.useRef(!1),Se=F.useRef(!1),ce=F.useRef(void 0);so(()=>(Se.current=!0,()=>{Se.current=!1}),[]);const dt=F.useMemo(()=>()=>Q.current&&ee===$.current?Q.current:X(Te.getState(),ee),[Te,ee]),ke=F.useMemo(()=>An=>J?vS(T,Te,J,X,$,P,ae,Se,Q,_e,An):()=>{},[J]);_S(bS,[$,P,ae,ee,Q,_e]);let wt;try{wt=F.useSyncExternalStore(ke,dt,G?()=>X(G(),ee):dt)}catch(mt){throw ce.current&&(mt.message+=`
|
|
58
|
-
The error may be correlated with this previous error:
|
|
59
|
-
${ce.current.stack}
|
|
60
|
-
|
|
61
|
-
`),mt}so(()=>{ce.current=void 0,Q.current=void 0,P.current=wt});const Tr=F.useMemo(()=>F.createElement(N,{...wt,ref:re}),[re,N,wt]);return F.useMemo(()=>T?F.createElement(le.Provider,{value:w},Tr):Tr,[le,Tr,w])}const k=F.memo(R);if(k.WrappedComponent=N,k.displayName=R.displayName=M,m){const K=F.forwardRef(function(ee,le){return F.createElement(k,{...ee,reactReduxForwardedRef:le})});return K.displayName=M,K.WrappedComponent=N,$f(K,N)}return $f(k,N)}}var TS=SS;function xS(n){const{children:r,context:i,serverState:l,store:u}=n,f=F.useMemo(()=>{const m=F_(u);return{store:u,subscription:m,getServerState:l?()=>l:void 0}},[u,l]),h=F.useMemo(()=>u.getState(),[u]);so(()=>{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||Yn;return F.createElement(d.Provider,{value:f},r)}var AS=xS;function wh(n=Yn){return function(){return F.useContext(n)}}var V_=wh();function P_(n=Yn){const r=n===Yn?V_:wh(n),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var OS=P_();function wS(n=Yn){const r=n===Yn?OS:P_(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var RS=wS(),CS=(n,r)=>n===r;function NS(n=Yn){const r=n===Yn?V_:wh(n),i=(l,u={})=>{const{equalityFn:f=CS}=typeof u=="function"?{equalityFn:u}:u,h=r(),{store:d,subscription:m,getServerState:g}=h;F.useRef(!0);const _=F.useCallback({[l.name](y){return l(y)}}[l.name],[l]),E=D2.useSyncExternalStoreWithSelector(m.addNestedSub,d.getState,g||d.getState,_,f);return F.useDebugValue(E),E};return Object.assign(i,{withTypes:()=>i}),i}var DS=NS(),$c={exports:{}};/*!
|
|
62
|
-
Copyright (c) 2018 Jed Watson.
|
|
63
|
-
Licensed under the MIT License (MIT), see
|
|
64
|
-
http://jedwatson.github.io/classnames
|
|
65
|
-
*/var _g;function MS(){return _g||(_g=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})()}($c)),$c.exports}var BS=MS();const Z=po(BS);var Jf=function(n,r){return Jf=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])},Jf(n,r)};function en(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Jf(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 go(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 vn(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 _n(n,r){var i=r&&r.cache?r.cache:GS,l=r&&r.serializer?r.serializer:zS,u=r&&r.strategy?r.strategy:HS;return u(n,{cache:i,serializer:l})}function jS(n){return n==null||typeof n=="number"||typeof n=="boolean"}function US(n,r,i,l){var u=jS(l)?l:i(l),f=r.get(u);return typeof f>"u"&&(f=n.call(this,l),r.set(u,f)),f}function Y_(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 Z_(n,r,i,l,u){return i.bind(r,n,l,u)}function HS(n,r){var i=n.length===1?US:Y_;return Z_(n,this,i,r.cache.create(),r.serializer)}function LS(n,r){return Z_(n,this,Y_,r.cache.create(),r.serializer)}var zS=function(){return JSON.stringify(arguments)},kS=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}(),GS={create:function(){return new kS}},bn={variadic:LS},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 qe;(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"})(qe||(qe={}));var Ga;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ga||(Ga={}));function bg(n){return n.type===qe.literal}function qS(n){return n.type===qe.argument}function X_(n){return n.type===qe.number}function Q_(n){return n.type===qe.date}function K_(n){return n.type===qe.time}function $_(n){return n.type===qe.select}function J_(n){return n.type===qe.plural}function FS(n){return n.type===qe.pound}function W_(n){return n.type===qe.tag}function eb(n){return!!(n&&typeof n=="object"&&n.type===Ga.number)}function Wf(n){return!!(n&&typeof n=="object"&&n.type===Ga.dateTime)}var tb=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,IS=/(?:[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 VS(n){var r={};return n.replace(IS,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 PS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function YS(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(PS).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 E=_[g];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function ZS(n){return n.replace(/^(.*?)-/,"")}var vg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,nb=/^(@+)?(\+|#+)?[rs]?$/g,XS=/(\*)(0+)|(#+)(0+)|(0+)/g,rb=/^(0+)$/;function Eg(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(nb,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 ab(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 QS(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)),!rb.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function Sg(n){var r={},i=ab(n);return i||r}function KS(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=ZS(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),Sg(g))},{}));continue;case"engineering":r=te(te(te({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return te(te({},m),Sg(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(XS,function(m,g,_,E,y,x){if(g)r.minimumIntegerDigits=_.length;else{if(E&&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(rb.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(vg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(vg,function(m,g,_,E,y,x){return _==="*"?r.minimumFractionDigits=g.length:E&&E[0]==="#"?r.maximumFractionDigits=E.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),Eg(f)));continue}if(nb.test(u.stem)){r=te(te({},r),Eg(u.stem));continue}var h=ab(u.stem);h&&(r=te(te({},r),h));var d=QS(u.stem);d&&(r=te(te({},r),d))}return r}var wl={"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 $S(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=JS(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 JS(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=wl[l||""]||wl[i||""]||wl["".concat(i,"-001")]||wl["001"];return u[0]}var Jc,WS=new RegExp("^".concat(tb.source,"*")),eT=new RegExp("".concat(tb.source,"*$"));function we(n,r){return{start:n,end:r}}var tT=!!String.prototype.startsWith&&"_a".startsWith("a",1),nT=!!String.fromCodePoint,rT=!!Object.fromEntries,aT=!!String.prototype.codePointAt,iT=!!String.prototype.trimStart,sT=!!String.prototype.trimEnd,lT=!!Number.isSafeInteger,oT=lT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},eh=!0;try{var uT=sb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");eh=((Jc=uT.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{eh=!1}var Tg=tT?function(r,i,l){return r.startsWith(i,l)}:function(r,i,l){return r.slice(l,l+i.length)===i},th=nT?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},xg=rT?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},ib=aT?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}},cT=iT?function(r){return r.trimStart()}:function(r){return r.replace(WS,"")},fT=sT?function(r){return r.trimEnd()}:function(r){return r.replace(eT,"")};function sb(n,r){return new RegExp(n,r)}var nh;if(eh){var Ag=sb("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nh=function(r,i){var l;Ag.lastIndex=i;var u=Ag.exec(r);return(l=u[1])!==null&&l!==void 0?l:""}}else nh=function(r,i){for(var l=[];;){var u=ib(r,i);if(u===void 0||lb(u)||pT(u))break;l.push(u),i+=u>=65536?2:1}return th.apply(void 0,l)};var hT=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:qe.pound,location:we(d,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(xe.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&rh(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:qe.literal,value:"<".concat(u,"/>"),location:we(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()||!rh(this.char()))return this.error(xe.INVALID_TAG,we(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(xe.UNMATCHED_CLOSING_TAG,we(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:qe.tag,value:u,children:h,location:we(l,this.clonePosition())},err:null}:this.error(xe.INVALID_TAG,we(d,this.clonePosition())))}else return this.error(xe.UNCLOSED_TAG,we(l,this.clonePosition()))}else return this.error(xe.INVALID_TAG,we(l,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&mT(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=we(l,this.clonePosition());return{val:{type:qe.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!dT(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 th.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(),th(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,we(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xe.EMPTY_ARGUMENT,we(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(xe.MALFORMED_ARGUMENT,we(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:qe.argument,value:u,location:we(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(l,this.clonePosition())):this.parseArgumentOptions(r,i,u,l);default:return this.error(xe.MALFORMED_ARGUMENT,we(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),l=nh(this.message,i),u=i+l.length;this.bumpTo(u);var f=this.clonePosition(),h=we(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,we(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var _=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var y=fT(E.val);if(y.length===0)return this.error(xe.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var x=we(_,this.clonePosition());g={style:y,styleLocation:x}}var T=this.tryParseArgumentClose(u);if(T.err)return T;var z=we(u,this.clonePosition());if(g&&Tg(g==null?void 0:g.style,"::",0)){var N=cT(g.style.slice(2));if(d==="number"){var E=this.parseNumberSkeletonFromString(N,g.styleLocation);return E.err?E:{val:{type:qe.number,value:l,location:z,style:E.val},err:null}}else{if(N.length===0)return this.error(xe.EXPECT_DATE_TIME_SKELETON,z);var U=N;this.locale&&(U=$S(N,this.locale));var y={type:Ga.dateTime,pattern:U,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?VS(U):{}},M=d==="date"?qe.date:qe.time;return{val:{type:M,value:l,location:z,style:y},err:null}}}return{val:{type:d==="number"?qe.number:d==="date"?qe.date:qe.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,we(O,te({},O)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),S=0;if(d!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),R=this.parseIdentifierIfPossible(),S=E.val}var k=this.tryParsePluralOrSelectOptions(r,d,i,R);if(k.err)return k;var T=this.tryParseArgumentClose(u);if(T.err)return T;var Y=we(u,this.clonePosition());return d==="select"?{val:{type:qe.select,value:l,options:xg(k.val),location:Y},err:null}:{val:{type:qe.plural,value:l,options:xg(k.val),offset:S,pluralType:d==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(xe.INVALID_ARGUMENT_TYPE,we(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(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,we(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=YS(r)}catch{return this.error(xe.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ga.number,tokens:l,location:i,parsedOptions:this.shouldParseSkeletons?KS(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 E=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;_=we(E,this.clonePosition()),g=this.message.slice(E.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,we(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:we(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,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(xe.MISSING_OTHER_CLAUSE,we(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=we(u,this.clonePosition());return f?(h*=l,oT(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=ib(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(Tg(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()&&lb(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 rh(n){return n>=97&&n<=122||n>=65&&n<=90}function dT(n){return rh(n)||n===47}function mT(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 lb(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function pT(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 ah(n){n.forEach(function(r){if(delete r.location,$_(r)||J_(r))for(var i in r.options)delete r.options[i].location,ah(r.options[i].value);else X_(r)&&eb(r.style)||(Q_(r)||K_(r))&&Wf(r.style)?delete r.style.location:W_(r)&&ah(r.children)})}function gT(n,r){r===void 0&&(r={}),r=te({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new hT(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||ah(i.val),i.val}var Tn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Tn||(Tn={}));var Sr=function(n){en(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),Og=function(n){en(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('", "'),'"'),Tn.INVALID_VALUE,f)||this}return r}(Sr),yT=function(n){en(r,n);function r(i,l,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(l),Tn.INVALID_VALUE,u)||this}return r}(Sr),_T=function(n){en(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,'"'),Tn.MISSING_VALUE,l)||this}return r}(Sr),bt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(bt||(bt={}));function bT(n){return n.length<2?n:n.reduce(function(r,i){var l=r[r.length-1];return!l||l.type!==bt.literal||i.type!==bt.literal?r.push(i):l.value+=i.value,r},[])}function ob(n){return typeof n=="function"}function eo(n,r,i,l,u,f,h){if(n.length===1&&bg(n[0]))return[{type:bt.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var _=g[m];if(bg(_)){d.push({type:bt.literal,value:_.value});continue}if(FS(_)){typeof f=="number"&&d.push({type:bt.literal,value:i.getNumberFormat(r).format(f)});continue}var E=_.value;if(!(u&&E in u))throw new _T(E,h);var y=u[E];if(qS(_)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),d.push({type:typeof y=="string"?bt.literal:bt.object,value:y});continue}if(Q_(_)){var x=typeof _.style=="string"?l.date[_.style]:Wf(_.style)?_.style.parsedOptions:void 0;d.push({type:bt.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(K_(_)){var x=typeof _.style=="string"?l.time[_.style]:Wf(_.style)?_.style.parsedOptions:l.time.medium;d.push({type:bt.literal,value:i.getDateTimeFormat(r,x).format(y)});continue}if(X_(_)){var x=typeof _.style=="string"?l.number[_.style]:eb(_.style)?_.style.parsedOptions:void 0;x&&x.scale&&(y=y*(x.scale||1)),d.push({type:bt.literal,value:i.getNumberFormat(r,x).format(y)});continue}if(W_(_)){var T=_.children,z=_.value,N=u[z];if(!ob(N))throw new yT(z,"function",h);var U=eo(T,r,i,l,u,f),M=N(U.map(function(S){return S.value}));Array.isArray(M)||(M=[M]),d.push.apply(d,M.map(function(S){return{type:typeof S=="string"?bt.literal:bt.object,value:S}}))}if($_(_)){var O=_.options[y]||_.options.other;if(!O)throw new Og(_.value,y,Object.keys(_.options),h);d.push.apply(d,eo(O.value,r,i,l,u));continue}if(J_(_)){var O=_.options["=".concat(y)];if(!O){if(!Intl.PluralRules)throw new Sr(`Intl.PluralRules is not available in this environment.
|
|
66
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,Tn.MISSING_INTL_API,h);var R=i.getPluralRules(r,{type:_.pluralType}).select(y-(_.offset||0));O=_.options[R]||_.options.other}if(!O)throw new Og(_.value,y,Object.keys(_.options),h);d.push.apply(d,eo(O.value,r,i,l,u,y-(_.offset||0)));continue}}return bT(d)}function vT(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 ET(n,r){return r?Object.keys(n).reduce(function(i,l){return i[l]=vT(n[l],r[l]),i},te({},n)):n}function Wc(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function ST(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_n(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.NumberFormat).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.number),strategy:bn.variadic}),getDateTimeFormat:_n(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.DateTimeFormat).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.dateTime),strategy:bn.variadic}),getPluralRules:_n(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.PluralRules).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.pluralRules),strategy:bn.variadic})}}var ub=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(E,y){return!E.length||y.type!==bt.literal||typeof E[E.length-1]!="string"?E.push(y.value):E[E.length-1]+=y.value,E},[]);return _.length<=1?_[0]||"":_},this.formatToParts=function(m){return eo(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=go(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=ET(n.formats,l),this.formatters=u&&u.formatters||ST(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=gT,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}(),$r;(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"})($r||($r={}));var us=function(n){en(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),TT=function(n){en(r,n);function r(i,l){return n.call(this,$r.UNSUPPORTED_FORMATTER,i,l)||this}return r}(us),xT=function(n){en(r,n);function r(i,l){return n.call(this,$r.INVALID_CONFIG,i,l)||this}return r}(us),wg=function(n){en(r,n);function r(i,l){return n.call(this,$r.MISSING_DATA,i,l)||this}return r}(us),tn=function(n){en(r,n);function r(i,l,u){var f=n.call(this,$r.FORMAT_ERROR,"".concat(i,`
|
|
71
|
-
Locale: `).concat(l,`
|
|
72
|
-
`),u)||this;return f.locale=l,f}return r}(us),ef=function(n){en(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}(tn),AT=function(n){en(r,n);function r(i,l){var u=n.call(this,$r.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}(us);function OT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Va(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 wT=function(n){},RT=function(n){},cb={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:wT,onWarn:RT};function fb(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Fr(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function CT(n){n===void 0&&(n=fb());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,l=Intl.DisplayNames,u=_n(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.DateTimeFormat).bind.apply(d,vn([void 0],m,!1)))},{cache:Fr(n.dateTime),strategy:bn.variadic}),f=_n(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.NumberFormat).bind.apply(d,vn([void 0],m,!1)))},{cache:Fr(n.number),strategy:bn.variadic}),h=_n(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.PluralRules).bind.apply(d,vn([void 0],m,!1)))},{cache:Fr(n.pluralRules),strategy:bn.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:_n(function(d,m,g,_){return new ub(d,m,g,te({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:h}},_||{}))},{cache:Fr(n.message),strategy:bn.variadic}),getRelativeTimeFormat:_n(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(r.bind.apply(r,vn([void 0],d,!1)))},{cache:Fr(n.relativeTime),strategy:bn.variadic}),getPluralRules:h,getListFormat:_n(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(i.bind.apply(i,vn([void 0],d,!1)))},{cache:Fr(n.list),strategy:bn.variadic}),getDisplayNames:_n(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(l.bind.apply(l,vn([void 0],d,!1)))},{cache:Fr(n.displayNames),strategy:bn.variadic})}}function Rh(n,r,i,l){var u=n&&n[r],f;if(u&&(f=u[i]),f)return f;l(new TT("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 Rg(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 Cg(n,r){if(!r)return n;var i=ub.formats;return te(te(te({},i),n),{date:Rg(Rl(i.date,r),Rl(n.date||{},r)),time:Rg(Rl(i.time,r),Rl(n.time||{},r))})}var ih=function(n,r,i,l,u){var f=n.locale,h=n.formats,d=n.messages,m=n.defaultLocale,g=n.defaultFormats,_=n.fallbackOnEmptyString,E=n.onError,y=n.timeZone,x=n.defaultRichTextElements;i===void 0&&(i={id:""});var T=i.id,z=i.defaultMessage;OT(!!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),U=d&&Object.prototype.hasOwnProperty.call(d,N)&&d[N];if(Array.isArray(U)&&U.length===1&&U[0].type===qe.literal)return U[0].value;if(!l&&U&&typeof U=="string"&&!x)return U.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=te(te({},x),l||{}),h=Cg(h,y),g=Cg(g,y),!U){if(_===!1&&U==="")return U;if((!z||f&&f.toLowerCase()!==m.toLowerCase())&&E(new AT(i,f)),z)try{var M=r.getMessageFormat(z,m,g,u);return M.format(l)}catch(O){return E(new ef('Error formatting default message for: "'.concat(N,'", rendering default message verbatim'),f,i,O)),typeof z=="string"?z:N}return N}try{var M=r.getMessageFormat(U,f,h,te({formatters:r},u||{}));return M.format(l)}catch(O){E(new ef('Error formatting message: "'.concat(N,'", using ').concat(z?"default message":"id"," as fallback."),f,i,O))}if(z)try{var M=r.getMessageFormat(z,m,g,u);return M.format(l)}catch(O){E(new ef('Error formatting the default message for: "'.concat(N,'", rendering message verbatim'),f,i,O))}return typeof U=="string"?U:typeof z=="string"?z:N},NT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function cs(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&&Rh(f,r,m,h)),_=Va(l,NT,g);return r==="time"&&!_.hour&&!_.minute&&!_.second&&!_.timeStyle&&!_.dateStyle&&(_=te(te({},_),{hour:"numeric",minute:"numeric"})),i(u,_)}function DT(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 cs(n,"date",r,h).format(d)}catch(m){n.onError(new tn("Error formatting date.",n.locale,m))}return String(d)}function MT(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 cs(n,"time",r,h).format(d)}catch(m){n.onError(new tn("Error formatting time.",n.locale,m))}return String(d)}function BT(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 cs(n,"dateTimeRange",r,d).formatRange(m,g)}catch(_){n.onError(new tn("Error formatting date time range.",n.locale,_))}return String(m)}function jT(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 cs(n,"date",r,h).formatToParts(d)}catch(m){n.onError(new tn("Error formatting date.",n.locale,m))}return[]}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 cs(n,"time",r,h).formatToParts(d)}catch(m){n.onError(new tn("Error formatting time.",n.locale,m))}return[]}var HT=["style","type","fallback","languageDisplay"];function LT(n,r,i,l){var u=n.locale,f=n.onError,h=Intl.DisplayNames;h||f(new Sr(`Intl.DisplayNames is not available in this environment.
|
|
77
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
-
`,Tn.MISSING_INTL_API));var d=Va(l,HT);try{return r(u,d).of(i)}catch(m){f(new tn("Error formatting display name.",u,m))}}var zT=["type","style"],Ng=Date.now();function kT(n){return"".concat(Ng,"_").concat(n,"_").concat(Ng)}function GT(n,r,i,l){l===void 0&&(l={});var u=hb(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 hb(n,r,i,l){var u=n.locale,f=n.onError;l===void 0&&(l={});var h=Intl.ListFormat;h||f(new Sr(`Intl.ListFormat is not available in this environment.
|
|
79
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,Tn.MISSING_INTL_API));var d=Va(l,zT);try{var m={},g=i.map(function(_,E){if(typeof _=="object"){var y=kT(E);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 tn("Error formatting list.",u,_))}return i}var qT=["type"];function FT(n,r,i,l){var u=n.locale,f=n.onError;l===void 0&&(l={}),Intl.PluralRules||f(new Sr(`Intl.PluralRules is not available in this environment.
|
|
81
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
-
`,Tn.MISSING_INTL_API));var h=Va(l,qT);try{return r(u,h).select(i)}catch(d){f(new tn("Error formatting plural.",u,d))}return"other"}var IT=["numeric","style"];function VT(n,r,i){var l=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,d=!!h&&Rh(u,"relative",h,f)||{},m=Va(i,IT,d);return r(l,m)}function PT(n,r,i,l,u){u===void 0&&(u={}),l||(l="second");var f=Intl.RelativeTimeFormat;f||n.onError(new Sr(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
-
`,Tn.MISSING_INTL_API));try{return VT(n,r,u).format(i,l)}catch(h){n.onError(new tn("Error formatting relative time.",n.locale,h))}return String(i)}var YT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function db(n,r,i){var l=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,d=h&&Rh(u,"number",h,f)||{},m=Va(i,YT,d);return r(l,m)}function ZT(n,r,i,l){l===void 0&&(l={});try{return db(n,r,l).format(i)}catch(u){n.onError(new tn("Error formatting number.",n.locale,u))}return String(i)}function XT(n,r,i,l){l===void 0&&(l={});try{return db(n,r,l).formatToParts(i)}catch(u){n.onError(new tn("Error formatting number.",n.locale,u))}return[]}function QT(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function KT(n){n.onWarn&&n.defaultRichTextElements&&QT(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 $T(n,r){var i=CT(r),l=te(te({},cb),n),u=l.locale,f=l.defaultLocale,h=l.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new wg('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 wg('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 xT('"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"),KT(l),te(te({},l),{formatters:i,formatNumber:ZT.bind(null,l,i.getNumberFormat),formatNumberToParts:XT.bind(null,l,i.getNumberFormat),formatRelativeTime:PT.bind(null,l,i.getRelativeTimeFormat),formatDate:DT.bind(null,l,i.getDateTimeFormat),formatDateToParts:jT.bind(null,l,i.getDateTimeFormat),formatTime:MT.bind(null,l,i.getDateTimeFormat),formatDateTimeRange:BT.bind(null,l,i.getDateTimeFormat),formatTimeToParts:UT.bind(null,l,i.getDateTimeFormat),formatPlural:FT.bind(null,l,i.getPluralRules),formatMessage:ih.bind(null,l,i),$t:ih.bind(null,l,i),formatList:GT.bind(null,l,i.getListFormat),formatListToParts:hb.bind(null,l,i.getListFormat),formatDisplayName:LT.bind(null,l,i.getDisplayNames)})}function JT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function mb(n){JT(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var pb=te(te({},cb),{textComponent:F.Fragment}),WT={key:42},ex=function(n){return F.isValidElement(n)?F.createElement(F.Fragment,WT,n):n},tx=function(n){var r;return(r=F.Children.map(n,ex))!==null&&r!==void 0?r:[]};function nx(n){return function(r){return n(F.Children.toArray(r))}}function rx(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 tf={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 Dg;function ax(){if(Dg)return De;Dg=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,E=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,U=n?Symbol.for("react.responder"):60118,M=n?Symbol.for("react.scope"):60119;function O(S){if(typeof S=="object"&&S!==null){var k=S.$$typeof;switch(k){case r:switch(S=S.type,S){case m:case g:case l:case f:case u:case E:return S;default:switch(S=S&&S.$$typeof,S){case d:case _:case T:case x:case h:return S;default:return k}}case i:return k}}}function R(S){return O(S)===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=E,De.isAsyncMode=function(S){return R(S)||O(S)===m},De.isConcurrentMode=R,De.isContextConsumer=function(S){return O(S)===d},De.isContextProvider=function(S){return O(S)===h},De.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===r},De.isForwardRef=function(S){return O(S)===_},De.isFragment=function(S){return O(S)===l},De.isLazy=function(S){return O(S)===T},De.isMemo=function(S){return O(S)===x},De.isPortal=function(S){return O(S)===i},De.isProfiler=function(S){return O(S)===f},De.isStrictMode=function(S){return O(S)===u},De.isSuspense=function(S){return O(S)===E},De.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===l||S===g||S===f||S===u||S===E||S===y||typeof S=="object"&&S!==null&&(S.$$typeof===T||S.$$typeof===x||S.$$typeof===h||S.$$typeof===d||S.$$typeof===_||S.$$typeof===N||S.$$typeof===U||S.$$typeof===M||S.$$typeof===z)},De.typeOf=O,De}var Mg;function ix(){return Mg||(Mg=1,tf.exports=ax()),tf.exports}var nf,Bg;function sx(){if(Bg)return nf;Bg=1;var n=ix(),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,E=Object.getPrototypeOf,y=Object.prototype;function x(T,z,N){if(typeof z!="string"){if(y){var U=E(z);U&&U!==y&&x(T,U,N)}var M=m(z);g&&(M=M.concat(g(z)));for(var O=h(T),R=h(z),S=0;S<M.length;++S){var k=M[S];if(!i[k]&&!(N&&N[k])&&!(R&&R[k])&&!(O&&O[k])){var Y=_(z,k);try{d(T,k,Y)}catch{}}}}return T}return nf=x,nf}sx();var Ch=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=F.createContext(null)):F.createContext(null);Ch.Consumer;var lx=Ch.Provider,ox=lx,ux=Ch;function yo(){var n=F.useContext(ux);return mb(n),n}var sh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(sh||(sh={}));var lh;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(lh||(lh={}));function gb(n){var r=function(i){var l=yo(),u=i.value,f=i.children,h=go(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=lh[n],r}function fs(n){var r=function(i){var l=yo(),u=i.value,f=i.children,h=go(i,["value","children"]),d=l[n](u,h);if(typeof f=="function")return f(d);var m=l.textComponent||F.Fragment;return F.createElement(m,null,d)};return r.displayName=sh[n],r}function yb(n){return n&&Object.keys(n).reduce(function(r,i){var l=n[i];return r[i]=ob(l)?nx(l):l,r},{})}var jg=function(n,r,i,l){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var h=yb(l),d=ih.apply(void 0,vn([n,r,i,h],u,!1));return Array.isArray(d)?tx(d):d},Ug=function(n,r){var i=n.defaultRichTextElements,l=go(n,["defaultRichTextElements"]),u=yb(i),f=$T(te(te(te({},pb),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:jg.bind(null,h,f.formatters),$t:jg.bind(null,h,f.formatters)})};function rf(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 cx=function(n){en(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=fb(),i.state={cache:i.cache,intl:Ug(rf(i.props),i.cache),prevConfig:rf(i.props)},i}return r.getDerivedStateFromProps=function(i,l){var u=l.prevConfig,f=l.cache,h=rf(i);return rx(u,h)?null:{intl:Ug(h,f),prevConfig:h}},r.prototype.render=function(){return mb(this.state.intl),F.createElement(ox,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=pb,r}(F.PureComponent);fs("formatDate");fs("formatTime");fs("formatNumber");fs("formatList");fs("formatDisplayName");gb("formatDate");gb("formatTime");const fx="_app_1rj0t_1",hx={app:fx},Pa=RS,Jt=DS,_b="%[a-f0-9]{2}",Hg=new RegExp("("+_b+")|([^%]+?)","gi"),Lg=new RegExp("("+_b+")+","gi");function oh(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([],oh(i),oh(l))}function dx(n){try{return decodeURIComponent(n)}catch{let r=n.match(Hg)||[];for(let i=1;i<r.length;i++)n=oh(r,i).join(""),r=n.match(Hg)||[];return n}}function mx(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=Lg.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=dx(i[0]);u!==i[0]&&(r[i[0]]=u)}i=Lg.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 px(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return mx(n)}}function gx(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 bb(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 yx=n=>n==null,_x=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),uh=Symbol("encodeFragmentIdentifier");function bx(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,[We(r,n),"[",u,"]"].join("")]:[...i,[We(r,n),"[",We(u,n),"]=",We(l,n)].join("")]};case"bracket":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[We(r,n),"[]"].join("")]:[...i,[We(r,n),"[]=",We(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,[We(r,n),":list="].join("")]:[...i,[We(r,n),":list=",We(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?[[We(i,n),r,We(u,n)].join("")]:[[l,We(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,We(r,n)]:[...i,[We(r,n),"=",We(l,n)].join("")]}}function vx(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 vb(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function We(n,r){return r.encode?r.strict?_x(n):encodeURIComponent(n):n}function In(n,r){return r.decode?px(n):n}function Eb(n){return Array.isArray(n)?n.sort():typeof n=="object"?Eb(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function Sb(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function Ex(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function zg(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":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 Nh(n){n=Sb(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function Dh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},vb(r.arrayFormatSeparator);const i=vx(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]=bb(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]=zg(d,r,m)}else typeof f=="object"&&f!==null&&r.types[u]==="string"?l[u]=Object.values(f).join(r.arrayFormatSeparator):l[u]=zg(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)?Eb(h):h,u},Object.create(null))}function Tb(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},vb(r.arrayFormatSeparator);const i=h=>r.skipNull&&yx(n[h])||r.skipEmptyString&&n[h]==="",l=bx(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?We(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?We(h,r)+"[]":d.reduce(l(h),[]).join("&"):We(h,r)+"="+We(d,r)}).filter(h=>h.length>0).join("&")}function xb(n,r){var u;r={decode:!0,...r};let[i,l]=bb(n,"#");return i===void 0&&(i=n),{url:((u=i==null?void 0:i.split("?"))==null?void 0:u[0])??"",query:Dh(Nh(n),r),...r&&r.parseFragmentIdentifier&&l?{fragmentIdentifier:In(l,r)}:{}}}function Ab(n,r){r={encode:!0,strict:!0,[uh]:!0,...r};const i=Sb(n.url).split("?")[0]||"",l=Nh(n.url),u={...Dh(l,{sort:!1}),...n.query};let f=Tb(u,r);f&&(f=`?${f}`);let h=Ex(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[uh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${h}`}function Ob(n,r,i){i={parseFragmentIdentifier:!0,[uh]:!1,...i};const{url:l,query:u,fragmentIdentifier:f}=xb(n,i);return Ab({url:l,query:gx(u,r),fragmentIdentifier:f},i)}function Sx(n,r,i){const l=Array.isArray(r)?u=>!r.includes(u):(u,f)=>!r(u,f);return Ob(n,l,i)}const _o=Object.freeze(Object.defineProperty({__proto__:null,exclude:Sx,extract:Nh,parse:Dh,parseUrl:xb,pick:Ob,stringify:Tb,stringifyUrl:Ab},Symbol.toStringTag,{value:"Module"}));var sn={},ln={},je={},Cl={},he={},kg;function qt(){return kg||(kg=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 Gg;function Tx(){if(Gg)return Cl;Gg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=qt(),r=()=>({type:n.DRAWER_CLOSE});return Cl.default=r,Cl}var Nl={},qg;function xx(){if(qg)return Nl;qg=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=qt(),r=(i,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:l}});return Nl.default=r,Nl}var Dl={},Fg;function Ax(){if(Fg)return Dl;Fg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Dl.default=r,Dl}var Ml={},Ig;function Ox(){if(Ig)return Ml;Ig=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Ml.default=r,Ml}var Bl={},Vg;function wx(){if(Vg)return Bl;Vg=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=qt(),r=(i,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:l}});return Bl.default=r,Bl}var jl={},Pg;function Rx(){if(Pg)return jl;Pg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return jl.default=r,jl}var Ul={},Pe={},Yg;function Mh(){if(Yg)return Pe;Yg=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.getStringRepresentationFromMessage=Pe.MessageTypeEnum=Pe.AudioMessage=Pe.FileMessage=Pe.ImageMessage=Pe.VideoMessage=Pe.MarkdownMessage=Pe.DetailMessage=Pe.TextMessage=Pe.Message=void 0;class n{constructor(E,y,x=[],T=[]){Ce(this,"type");Ce(this,"sender");Ce(this,"sources");Ce(this,"quickReplies");this.type=E,this.sender=y,this.sources=x,this.quickReplies=T}addQuickReply(E,y){this.quickReplies.push({label:E,payload:y})}}Pe.Message=n;class r extends n{constructor(y,x,T=[],z=[]){super(m.TEXT,x,T,z);Ce(this,"text");this.text=y}}Pe.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)}}Pe.DetailMessage=i;class l extends n{constructor(y,x,T=[],z=[]){super(m.MARKDOWN,x,T,z);Ce(this,"markdown");this.markdown=y}}Pe.MarkdownMessage=l;class u extends n{constructor(y,x){super(m.VIDEO,x);Ce(this,"url");this.url=y}}Pe.VideoMessage=u;class f extends n{constructor(y,x){super(m.IMAGE,x);Ce(this,"url");this.url=y}}Pe.ImageMessage=f;class h extends n{constructor(y,x){super(m.FILE,x);Ce(this,"url");this.url=y}}Pe.FileMessage=h;class d extends n{constructor(y,x){super(m.AUDIO,x);Ce(this,"url");this.url=y}}Pe.AudioMessage=d;var m;(function(_){_.TEXT="TEXT",_.DETAIL="DETAIL",_.MARKDOWN="MARKDOWN",_.VIDEO="VIDEO",_.IMAGE="IMAGE",_.FILE="FILE",_.AUDIO="AUDIO"})(m||(Pe.MessageTypeEnum=m={}));const g=_=>{switch(_.type){case m.TEXT:return _.text;case m.DETAIL:{const E=_;return`${E.title} // ${E.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 Pe.getStringRepresentationFromMessage=g,Pe}var Lt={},Zg;function Bh(){if(Zg)return Lt;Zg=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 Xg;function Cx(){if(Xg)return Ul;Xg=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=Mh(),r=Bh(),i=qt(),l=u=>{const f=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:f}};return Ul.default=l,Ul}var Hl={},Qg;function Nx(){if(Qg)return Hl;Qg=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=Mh(),r=Bh(),i=qt(),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 Hl.default=l,Hl}var Ll={},Kg;function Dx(){if(Kg)return Ll;Kg=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Ll.default=r,Ll}var zl={},$g;function Mx(){if($g)return zl;$g=1,Object.defineProperty(zl,"__esModule",{value:!0});const n=qt(),r=()=>({type:n.RESTART_CHAT_REQUEST});return zl.default=r,zl}var kl={},Jg;function Bx(){if(Jg)return kl;Jg=1,Object.defineProperty(kl,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return kl.default=r,kl}var Gl={},Wg;function jx(){if(Wg)return Gl;Wg=1,Object.defineProperty(Gl,"__esModule",{value:!0});const n=qt(),r=(i,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:l}});return Gl.default=r,Gl}var ey;function Ux(){if(ey)return je;ey=1;var n=je&&je.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(je,"__esModule",{value:!0}),je.transcriptItemGuestReaction=je.sendMessageToGuest=je.restartChatRequest=je.requestNLUEvent=je.receiveTextMessageWithoutAnalysisFromGuest=je.receiveTextMessageFromGuest=je.openDrawer=je.guestLocaleChanged=je.guestDisconnected=je.guestConnected=je.feedbackFromGuestResponse=je.closeDrawer=void 0;const r=n(Tx());je.closeDrawer=r.default;const i=n(xx());je.feedbackFromGuestResponse=i.default;const l=n(Ax());je.guestConnected=l.default;const u=n(Ox());je.guestDisconnected=u.default;const f=n(wx());je.guestLocaleChanged=f.default;const h=n(Rx());je.openDrawer=h.default;const d=n(Cx());je.receiveTextMessageFromGuest=d.default;const m=n(Nx());je.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(Dx());je.requestNLUEvent=g.default;const _=n(Mx());je.restartChatRequest=_.default;const E=n(Bx());je.sendMessageToGuest=E.default;const y=n(jx());return je.transcriptItemGuestReaction=y.default,je}var af={},ty;function Hx(){return ty||(ty=1,Object.defineProperty(af,"__esModule",{value:!0})),af}var ny;function Lx(){return ny||(ny=1,function(n){var r=ln&&ln.__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=ln&&ln.__setModuleDefault||(Object.create?function(f,h){Object.defineProperty(f,"default",{enumerable:!0,value:h})}:function(f,h){f.default=h}),l=ln&&ln.__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}}(),u=ln&&ln.__exportStar||function(f,h){for(var d in f)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,f,d)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=l(Ux()),n.ActionTypes=l(qt()),u(Hx(),n)}(ln)),ln}var zt={},sf={},ry;function zx(){return ry||(ry=1,Object.defineProperty(sf,"__esModule",{value:!0})),sf}var Zi={},ay;function kx(){if(ay)return Zi;ay=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.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 findKnowledgeBaseEntryByUriAlias(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.")}registerTool(i,l){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Zi.NullableKnowledgeBaseAdapter=n,Zi}var iy;function Gx(){if(iy)return zt;iy=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(zx());const l=kx();return zt.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},zt}var Ir={},lf={},sy;function qx(){return sy||(sy=1,Object.defineProperty(lf,"__esModule",{value:!0})),lf}var of={},ly;function Fx(){return ly||(ly=1,Object.defineProperty(of,"__esModule",{value:!0})),of}var uf={},oy;function Ix(){return oy||(oy=1,Object.defineProperty(uf,"__esModule",{value:!0})),uf}var cf={},uy;function Vx(){return uy||(uy=1,Object.defineProperty(cf,"__esModule",{value:!0})),cf}var Xi={},cy;function Px(){if(cy)return Xi;cy=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.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 Xi.checkMiddlewareCondition=n,Xi}var ff={},fy;function Yx(){return fy||(fy=1,Object.defineProperty(ff,"__esModule",{value:!0})),ff}var hf={},hy;function Zx(){return hy||(hy=1,Object.defineProperty(hf,"__esModule",{value:!0})),hf}var df={},dy;function Xx(){return dy||(dy=1,Object.defineProperty(df,"__esModule",{value:!0})),df}var my;function Qx(){return my||(my=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(qx(),n),i(Fx(),n),i(Ix(),n),i(Vx(),n),i(Px(),n),i(Yx(),n),i(Zx(),n),i(Xx(),n)}(Ir)),Ir}var Vr={},on={},py;function Kx(){if(py)return on;py=1,Object.defineProperty(on,"__esModule",{value:!0}),on.ButtonTypeEnum=on.PostbackButton=on.UrlButton=on.Button=void 0;class n{constructor(f,h){Ce(this,"title");Ce(this,"type");this.title=f,this.type=h}}on.Button=n;class r extends n{constructor(h,d){super(h,l.WEB_URL);Ce(this,"url");this.url=d}}on.UrlButton=r;class i extends n{constructor(h,d){super(h,l.POSTBACK);Ce(this,"payload");this.payload=d}}on.PostbackButton=i;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(on.ButtonTypeEnum=l={})),on}var mf={},gy;function $x(){return gy||(gy=1,Object.defineProperty(mf,"__esModule",{value:!0})),mf}var Qi={},yy;function Jx(){if(yy)return Qi;yy=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Qi.SatisfactionEnum=n={})),Qi}var _y;function by(){return _y||(_y=1,function(n){var r=Vr&&Vr.__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=Vr&&Vr.__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(Kx(),n),i($x(),n),i(Jx(),n),i(Mh(),n),i(Bh(),n)}(Vr)),Vr}var vy;function Wx(){return vy||(vy=1,function(n){var r=sn&&sn.__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=sn&&sn.__setModuleDefault||(Object.create?function(f,h){Object.defineProperty(f,"default",{enumerable:!0,value:h})}:function(f,h){f.default=h}),l=sn&&sn.__exportStar||function(f,h){for(var d in f)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,f,d)},u=sn&&sn.__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=void 0,l(Lx(),n),n.CMS=u(Gx()),l(Qx(),n),l(by(),n),n.Model=u(by())}(sn)),sn}var Ee=Wx();const wb=n=>r=>(n.payload.type!==Ee.ActionTypes.MESSAGE_FROM_GUEST&&r(Ee.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),Rb=n=>(r,i)=>{const{quickReplies:l}=i().chat,u=l.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return r(u?wb({...u,label:n}):Ee.Actions.receiveTextMessageFromGuest(n))},jh="MESSAGE_TO_PARENT_PAGE",Uh="RESTORE_PREVIOUS_CHAT_MESSAGES",Hh="AUDIO_MESSAGE_FROM_USER",eA="EXPORT_TRANSCRIPT",Lh="RECEIVE_SPEECH_TRANSCRIPTION",zh="ENABLE_CONVERSATION_RATING",Cb="LOAD_SOURCE_INFOS_RESPONSE",Nb="LOAD_SOURCE_INFOS_ERROR",kh="LOAD_SOURCE_INFOS_REQUEST",Gh="CLOSE_SOURCE_INFOS",tA="webclient.get.started",Db="webclient.window.expand",Mb="webclient.window.close",Bb="webclient.transcript.pdf.download",nA=[jh,Uh,Hh,eA,Lh,zh,kh,Gh],rA=n=>({type:Hh,buffer:n}),aA=n=>({type:Lh,transcription:n}),iA=n=>({type:Ee.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),sA=n=>({type:Bb,payload:{clientName:n}}),lA=({rating:n})=>({type:zh,payload:{rating:n}}),oA=(n,r)=>({type:Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),jb=n=>Ee.Actions.requestNLUEvent(n),uA=n=>({type:Uh,messages:n}),cA=n=>{switch(n.type){case Ee.ButtonTypeEnum.WEB_URL:return Ub(n.url);case Ee.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},fA=n=>Ub(n),Ub=n=>({type:jh,message:{type:"webclient.change.url",url:n}});function ft(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 hA=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ey=hA,pf=()=>Math.random().toString(36).substring(7).split("").join("."),dA={INIT:`@@redux/INIT${pf()}`,REPLACE:`@@redux/REPLACE${pf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${pf()}`},lo=dA;function qh(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 Hb(n,r,i){if(typeof n!="function")throw new Error(ft(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ft(1));return i(Hb)(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,U)=>{h.set(U,N)}))}function _(){if(m)throw new Error(ft(3));return u}function E(N){if(typeof N!="function")throw new Error(ft(4));if(m)throw new Error(ft(5));let U=!0;g();const M=d++;return h.set(M,N),function(){if(U){if(m)throw new Error(ft(6));U=!1,g(),h.delete(M),f=null}}}function y(N){if(!qh(N))throw new Error(ft(7));if(typeof N.type>"u")throw new Error(ft(8));if(typeof N.type!="string")throw new Error(ft(17));if(m)throw new Error(ft(9));try{m=!0,u=l(u,N)}finally{m=!1}return(f=h).forEach(M=>{M()}),N}function x(N){if(typeof N!="function")throw new Error(ft(10));l=N,y({type:lo.REPLACE})}function T(){const N=E;return{subscribe(U){if(typeof U!="object"||U===null)throw new Error(ft(11));function M(){const R=U;R.next&&R.next(_())}return M(),{unsubscribe:N(M)}},[Ey](){return this}}}return y({type:lo.INIT}),{dispatch:y,subscribe:E,getState:_,replaceReducer:x,[Ey]:T}}function mA(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:lo.INIT})>"u")throw new Error(ft(12));if(typeof i(void 0,{type:lo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function Lb(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{mA(i)}catch(f){u=f}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let _=0;_<l.length;_++){const E=l[_],y=i[E],x=h[E],T=y(x,d);if(typeof T>"u")throw d&&d.type,new Error(ft(14));g[E]=T,m=m||T!==x}return m=m||l.length!==Object.keys(h).length,m?g:h}}function oo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...l)=>r(i(...l)))}function pA(...n){return r=>(i,l)=>{const u=r(i,l);let f=()=>{throw new Error(ft(15))};const h={getState:u.getState,dispatch:(m,...g)=>f(m,...g)},d=n.map(m=>m(h));return f=oo(...d)(u.dispatch),{...u,dispatch:f}}}function gA(n){return qh(n)&&"type"in n&&typeof n.type=="string"}var zb=Symbol.for("immer-nothing"),Sy=Symbol.for("immer-draftable"),kt=Symbol.for("immer-state");function fn(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var qa=Object.getPrototypeOf;function Jr(n){return!!n&&!!n[kt]}function Zn(n){var r;return n?kb(n)||Array.isArray(n)||!!n[Sy]||!!((r=n.constructor)!=null&&r[Sy])||vo(n)||Eo(n):!1}var yA=Object.prototype.constructor.toString();function kb(n){if(!n||typeof n!="object")return!1;const r=qa(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)===yA}function uo(n,r){bo(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,l)=>r(l,i,n))}function bo(n){const r=n[kt];return r?r.type_:Array.isArray(n)?1:vo(n)?2:Eo(n)?3:0}function ch(n,r){return bo(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function Gb(n,r,i){const l=bo(n);l===2?n.set(r,i):l===3?n.add(i):n[r]=i}function _A(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function vo(n){return n instanceof Map}function Eo(n){return n instanceof Set}function Xr(n){return n.copy_||n.base_}function fh(n,r){if(vo(n))return new Map(n);if(Eo(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=kb(n);if(r===!0||r==="class_only"&&!i){const l=Object.getOwnPropertyDescriptors(n);delete l[kt];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(qa(n),l)}else{const l=qa(n);if(l!==null&&i)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function Fh(n,r=!1){return So(n)||Jr(n)||!Zn(n)||(bo(n)>1&&(n.set=n.add=n.clear=n.delete=bA),Object.freeze(n),r&&Object.entries(n).forEach(([i,l])=>Fh(l,!0))),n}function bA(){fn(2)}function So(n){return Object.isFrozen(n)}var vA={};function Wr(n){const r=vA[n];return r||fn(0,n),r}var as;function qb(){return as}function EA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ty(n,r){r&&(Wr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function hh(n){dh(n),n.drafts_.forEach(SA),n.drafts_=null}function dh(n){n===as&&(as=n.parent_)}function xy(n){return as=EA(as,n)}function SA(n){const r=n[kt];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Ay(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[kt].modified_&&(hh(r),fn(4)),Zn(n)&&(n=co(r,n),r.parent_||fo(r,n)),r.patches_&&Wr("Patches").generateReplacementPatches_(i[kt].base_,n,r.patches_,r.inversePatches_)):n=co(r,i,[]),hh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==zb?n:void 0}function co(n,r,i){if(So(r))return r;const l=r[kt];if(!l)return uo(r,(u,f)=>Oy(n,l,r,u,f,i)),r;if(l.scope_!==n)return r;if(!l.modified_)return fo(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),uo(f,(d,m)=>Oy(n,l,u,d,m,i,h)),fo(n,u,!1),i&&n.patches_&&Wr("Patches").generatePatches_(l,i,n.patches_,n.inversePatches_)}return l.copy_}function Oy(n,r,i,l,u,f,h){if(Jr(u)){const d=f&&r&&r.type_!==3&&!ch(r.assigned_,l)?f.concat(l):void 0,m=co(n,u,d);if(Gb(i,l,m),Jr(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Zn(u)&&!So(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;co(n,u),(!r||!r.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,l)&&fo(n,u)}}function fo(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Fh(r,i)}function TA(n,r){const i=Array.isArray(n),l={type_:i?1:0,scope_:r?r.scope_:qb(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,f=Ih;i&&(u=[l],f=is);const{revoke:h,proxy:d}=Proxy.revocable(u,f);return l.draft_=d,l.revoke_=h,d}var Ih={get(n,r){if(r===kt)return n;const i=Xr(n);if(!ch(i,r))return xA(n,i,r);const l=i[r];return n.finalized_||!Zn(l)?l:l===gf(n.base_,r)?(yf(n),n.copy_[r]=ph(l,n)):l},has(n,r){return r in Xr(n)},ownKeys(n){return Reflect.ownKeys(Xr(n))},set(n,r,i){const l=Fb(Xr(n),r);if(l!=null&&l.set)return l.set.call(n.draft_,i),!0;if(!n.modified_){const u=gf(Xr(n),r),f=u==null?void 0:u[kt];if(f&&f.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(_A(i,u)&&(i!==void 0||ch(n.base_,r)))return!0;yf(n),mh(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 gf(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,yf(n),mh(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Xr(n),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){fn(11)},getPrototypeOf(n){return qa(n.base_)},setPrototypeOf(){fn(12)}},is={};uo(Ih,(n,r)=>{is[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});is.deleteProperty=function(n,r){return is.set.call(this,n,r,void 0)};is.set=function(n,r,i){return Ih.set.call(this,n[0],r,i,n[0])};function gf(n,r){const i=n[kt];return(i?Xr(i):n)[r]}function xA(n,r,i){var u;const l=Fb(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function Fb(n,r){if(!(r in n))return;let i=qa(n);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=qa(i)}}function mh(n){n.modified_||(n.modified_=!0,n.parent_&&mh(n.parent_))}function yf(n){n.copy_||(n.copy_=fh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var AA=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"&&fn(6),l!==void 0&&typeof l!="function"&&fn(7);let u;if(Zn(r)){const f=xy(this),h=ph(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?hh(f):dh(f)}return Ty(f,l),Ay(u,f)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===zb&&(u=void 0),this.autoFreeze_&&Fh(u,!0),l){const f=[],h=[];Wr("Patches").generateReplacementPatches_(r,u,f,h),l(f,h)}return u}else fn(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){Zn(n)||fn(8),Jr(n)&&(n=OA(n));const r=xy(this),i=ph(n,void 0);return i[kt].isManual_=!0,dh(r),i}finishDraft(n,r){const i=n&&n[kt];(!i||!i.isManual_)&&fn(9);const{scope_:l}=i;return Ty(l,r),Ay(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=Wr("Patches").applyPatches_;return Jr(n)?l(n,r):this.produce(n,u=>l(u,r))}};function ph(n,r){const i=vo(n)?Wr("MapSet").proxyMap_(n,r):Eo(n)?Wr("MapSet").proxySet_(n,r):TA(n,r);return(r?r.scope_:qb()).drafts_.push(i),i}function OA(n){return Jr(n)||fn(10,n),Ib(n)}function Ib(n){if(!Zn(n)||So(n))return n;const r=n[kt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=fh(n,r.scope_.immer_.useStrictShallowCopy_)}else i=fh(n,!0);return uo(i,(l,u)=>{Gb(i,l,Ib(u))}),r&&(r.finalized_=!1),i}var Gt=new AA,Vb=Gt.produce;Gt.produceWithPatches.bind(Gt);Gt.setAutoFreeze.bind(Gt);Gt.setUseStrictShallowCopy.bind(Gt);Gt.applyPatches.bind(Gt);Gt.createDraft.bind(Gt);Gt.finishDraft.bind(Gt);function Pb(n){return({dispatch:i,getState:l})=>u=>f=>typeof f=="function"?f(i,l,n):u(f)}var wA=Pb(),RA=Pb,CA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oo:oo.apply(null,arguments)};function wy(n,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(Vn(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=>gA(l)&&l.type===n,i}var Yb=class ts extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,ts.prototype)}static get[Symbol.species](){return ts}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new ts(...r[0].concat(this)):new ts(...r.concat(this))}};function Ry(n){return Zn(n)?Vb(n,()=>{}):n}function ql(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function NA(n){return typeof n=="boolean"}var DA=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=r??{};let h=new Yb;return i&&(NA(i)?h.push(wA):h.push(RA(i.extraArgument))),h},MA="RTK_autoBatch",Cy=n=>r=>{setTimeout(r,n)},BA=(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:Cy(10):n.type==="callback"?n.queueNotification:Cy(n.timeout),g=()=>{h=!1,f&&(f=!1,d.forEach(_=>_()))};return Object.assign({},l,{subscribe(_){const E=()=>u&&_(),y=l.subscribe(E);return d.add(_),()=>{y(),d.delete(_)}},dispatch(_){var E;try{return u=!((E=_==null?void 0:_.meta)!=null&&E[MA]),f=!u,f&&(h||(h=!0,m(g))),l.dispatch(_)}finally{u=!0}}})},jA=n=>function(i){const{autoBatch:l=!0}=i??{};let u=new Yb(n);return l&&u.push(BA(typeof l=="object"?l:void 0)),u};function UA(n){const r=DA(),{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(qh(i))d=Lb(i);else throw new Error(Vn(1));let m;typeof l=="function"?m=l(r):m=r();let g=oo;u&&(g=CA({trace:!1,...typeof u=="object"&&u}));const _=pA(...m),E=jA(_);let y=typeof h=="function"?h(E):E();const x=g(...y);return Hb(d,f,x)}function Zb(n){const r={},i=[];let l;const u={addCase(f,h){const d=typeof f=="string"?f:f.type;if(!d)throw new Error(Vn(28));if(d in r)throw new Error(Vn(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 HA(n){return typeof n=="function"}function LA(n,r){let[i,l,u]=Zb(r),f;if(HA(n))f=()=>Ry(n());else{const d=Ry(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((_,E)=>{if(E)if(Jr(_)){const x=E(_,m);return x===void 0?_:x}else{if(Zn(_))return Vb(_,y=>E(y,m));{const y=E(_,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 zA=Symbol.for("rtk-slice-createasyncthunk");function kA(n,r){return`${n}/${r}`}function GA({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[zA];return function(u){const{name:f,reducerPath:h=f}=u;if(!f)throw new Error(Vn(11));const d=(typeof u.reducers=="function"?u.reducers(FA()):u.reducers)||{},m=Object.keys(d),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},_={addCase(R,S){const k=typeof R=="string"?R:R.type;if(!k)throw new Error(Vn(12));if(k in g.sliceCaseReducersByType)throw new Error(Vn(13));return g.sliceCaseReducersByType[k]=S,_},addMatcher(R,S){return g.sliceMatchers.push({matcher:R,reducer:S}),_},exposeAction(R,S){return g.actionCreators[R]=S,_},exposeCaseReducer(R,S){return g.sliceCaseReducersByName[R]=S,_}};m.forEach(R=>{const S=d[R],k={reducerName:R,type:kA(f,R),createNotation:typeof u.reducers=="function"};VA(S)?YA(k,S,_,r):IA(k,S,_)});function E(){const[R={},S=[],k=void 0]=typeof u.extraReducers=="function"?Zb(u.extraReducers):[u.extraReducers],Y={...R,...g.sliceCaseReducersByType};return LA(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 S)K.addMatcher(re.matcher,re.reducer);k&&K.addDefaultCase(k)})}const y=R=>R,x=new Map,T=new WeakMap;let z;function N(R,S){return z||(z=E()),z(R,S)}function U(){return z||(z=E()),z.getInitialState()}function M(R,S=!1){function k(K){let re=K[R];return typeof re>"u"&&S&&(re=ql(T,k,U)),re}function Y(K=y){const re=ql(x,S,()=>new WeakMap);return ql(re,K,()=>{const ee={};for(const[le,ie]of Object.entries(u.selectors??{}))ee[le]=qA(ie,K,()=>ql(T,K,U),S);return ee})}return{reducerPath:R,getSelectors:Y,get selectors(){return Y(k)},selectSlice:k}}const O={name:f,reducer:N,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:U,...M(h),injectInto(R,{reducerPath:S,...k}={}){const Y=S??h;return R.inject({reducerPath:Y,reducer:N},k),{...O,...M(Y,!0)}}};return O}}function qA(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 Vh=GA();function FA(){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 IA({type:n,reducerName:r,createNotation:i},l,u){let f,h;if("reducer"in l){if(i&&!PA(l))throw new Error(Vn(17));f=l.reducer,h=l.prepare}else f=l;u.addCase(n,f).exposeCaseReducer(r,f).exposeAction(r,h?wy(n,h):wy(n))}function VA(n){return n._reducerDefinitionType==="asyncThunk"}function PA(n){return n._reducerDefinitionType==="reducerWithPrepare"}function YA({type:n,reducerName:r},i,l,u){if(!u)throw new Error(Vn(18));const{payloadCreator:f,fulfilled:h,pending:d,rejected:m,settled:g,options:_}=i,E=u(n,f,_);l.exposeAction(r,E),h&&l.addCase(E.fulfilled,h),d&&l.addCase(E.pending,d),m&&l.addCase(E.rejected,m),g&&l.addMatcher(E.settled,g),l.exposeCaseReducer(r,{fulfilled:h||Fl,pending:d||Fl,rejected:m||Fl,settled:g||Fl})}function Fl(){}function Vn(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 ZA={formValues:{}},Xb=Vh({name:"start-screen",initialState:ZA,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:XA,showStartScreen:QA}=Xb.actions,KA=Xb.reducer,Qb="RESET_CHAT_STATE",$A=()=>({type:Mb}),JA=()=>({type:Qb}),Ny=n=>(r,i)=>{const l=i();return r({type:kh,payload:{chunkId:n}}),fetch(`/cms/public/vector-store/chunks/${n}`,{headers:{"Accept-Language":l.intl.locale}}).then(u=>{if(!u.ok)throw r({type:Nb}),new Error(`HTTP error! Status: ${u.status}`);return u.json()}).then(u=>{const f={...u,chunkId:n};r({type:Cb,payload:f})})},WA=()=>({type:Gh}),Ph="CONNECT",Yh="CONNECTING",Zh="CONNECTED",Xh="DISCONNECTED",Qh="RECONNECTED",Kh="START",Kb="CLEAR_SESSION_ID",eO=[Ph,Yh,Zh,Xh,Qh],tO=(n,r)=>({type:Ph,clientName:n,querystrings:r}),nO=()=>({type:Yh}),rO=()=>({type:Zh}),aO=()=>({type:Xh}),iO=()=>({type:Qh}),$b=(n,r)=>async(i,l)=>{const u=l().startScreen.formValues,f=await fetch(`/${n}/me/session`,{method:"GET",credentials:"include"});if(!f.ok)throw new Error(`Failed to start chat session: ${f.status} ${f.statusText}`);const{sessionIdToken:h,userIdToken:d}=await f.json();i({type:Kh,payload:{sessionIdToken:h,userIdToken:d,clientName:n,querystrings:{...r,...u}}})},To=(n,r)=>async(i,l)=>{if(await sO(n),i(JA()),l().settings.enableStartScreen)i(QA());else return i($b(n,r))},sO=async n=>{const r=await fetch(`/${n}/me/session`,{method:"DELETE",credentials:"include"});if(!r.ok)throw new Error(`Failed to terminate session: ${r.status} ${r.statusText}`)},Ke=()=>{const n=yo();return i=>{const l=n.formatMessage({id:i});return l===i?void 0:l}};var Kr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Kr||{}),ho=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(ho||{});const lO="_container_q2uun_1",oO="_chatcontent_q2uun_6",uO="_accessabilityHidden_q2uun_12",_f={container:lO,chatcontent:oO,accessabilityHidden:uO},cO="_messageContainer_1m8fy_1",fO="_messages_1m8fy_13",Dy={messageContainer:cO,messages:fO};function Qr(){return Qr=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},Qr.apply(this,arguments)}const hO=["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 My;(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"})(My||(My={}));const By=["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"}),jy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},dO=["style","script"],mO=["src","href","data","formAction","srcDoc","action"],pO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,gO=/mailto:/i,yO=/\n{2,}$/,Jb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,_O=/^ *> ?/gm,bO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,vO=/^ {2,}\n/,EO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Wb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ev=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,SO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,TO=/^(?:\n *)*\n/,xO=/\r\n?/g,AO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,OO=/^\[\^([^\]]+)]/,wO=/\f/g,RO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,CO=/^\s*?\[(x|\s)\]/,tv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,nv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,rv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,gh=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,NO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,av=/^<!--[\s\S]*?(?:-->)/,DO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,yh=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,MO=/^\{.*\}$/,BO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,jO=/^<([^ >]+@[^ >]+)>/,UO=/^<([^ >]+:\/[^ >]+)>/,HO=/-([a-z])?/gi,iv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,LO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,zO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,kO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,GO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,qO=/\t/g,FO=/(^ *\||\| *$)/g,IO=/^ *:-+: *$/,VO=/^ *:-+ *$/,PO=/^ *-+: *$/,xo="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",YO=new RegExp(`^([*_])\\1${xo}\\1\\1(?!\\1)`),ZO=new RegExp(`^([*_])${xo}\\1(?!\\1)`),XO=new RegExp(`^(==)${xo}\\1`),QO=new RegExp(`^(~~)${xo}\\1`),KO=/^\\([^0-9A-Za-z\s])/,Uy=/\\([^0-9A-Za-z\s])/g,$O=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,JO=/^\n+/,WO=/^([ \t]*)/,ew=/\\([^\\])/g,tw=/(?:^|\n)( *)$/,$h="(?:\\d+\\.)",Jh="(?:[*+-])";function sv(n){return"( *)("+(n===1?$h:Jh)+") +"}const lv=sv(1),ov=sv(2);function uv(n){return new RegExp("^"+(n===1?lv:ov))}const nw=uv(1),rw=uv(2);function cv(n){return new RegExp("^"+(n===1?lv:ov)+"[^\\n]*(?:\\n(?!\\1"+(n===1?$h:Jh)+" )[^\\n]*)*(\\n|$)","gm")}const aw=cv(1),iw=cv(2);function fv(n){const r=n===1?$h:Jh;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const hv=fv(1),dv=fv(2);function Hy(n,r){const i=r===1,l=i?hv:dv,u=i?aw:iw,f=i?nw:rw;return{match:Fa(function(h,d){const m=tw.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(yO,`
|
|
94
|
-
`).match(u);let E=!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,""),U=x===_.length-1,M=N.indexOf(`
|
|
95
|
-
|
|
96
|
-
`)!==-1||U&&E;E=M;const O=m.inline,R=m.list;let S;m.list=!0,M?(m.inline=!1,S=ss(N)+`
|
|
97
|
-
|
|
98
|
-
`):(m.inline=!0,S=ss(N));const k=d(S,m);return m.inline=O,m.list=R,k}),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 sw=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),lw=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,mv=[Jb,Wb,ev,tv,rv,nv,iv,hv,dv],ow=[...mv,/^[^\n]+(?: \n|\n{2,})/,gh,av,yh];function ss(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function Ki(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 uw(n){return PO.test(n)?"right":IO.test(n)?"center":VO.test(n)?"left":null}function Ly(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 cw(n,r,i){i.inline=!0;const l=n[2]?n[2].replace(FO,"").split("|").map(uw):[],u=n[3]?function(h,d,m){return h.trim().split(`
|
|
99
|
-
`).map(function(g){return Ly(g,d,m,!0)})}(n[3],r,i):[],f=Ly(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 zy(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function Fa(n){return n.inline=1,n}function _r(n){return Fa(function(r,i){return i.inline?n.exec(r):null})}function br(n){return Fa(function(r,i){return i.inline||i.simple?n.exec(r):null})}function qn(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function $i(n){return Fa(function(r){return n.exec(r)})}function fw(n,r){if(r.inline||r.simple)return null;let i="";n.split(`
|
|
100
|
-
`).every(u=>(u+=`
|
|
101
|
-
`,!mv.some(f=>f.test(u))&&(i+=u,!!u.trim())));const l=ss(i);return l==""?null:[i,,l]}const hw=/(javascript|vbscript|data(?!:image)):/i;function dw(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(hw.test(r))return null}catch{return null}return n}function ky(n){return n.replace(ew,"$1")}function to(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 mw(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 pw(n,r,i){const l=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=l,u}const bf=(n,r,i)=>({children:to(r,n[2],i)});function vf(){return{}}function Ef(){return null}function gw(...n){return n.filter(Boolean).join(" ")}function Sf(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 yw(n="",r={}){function i(y,x,...T){const z=Sf(r.overrides,`${y}.props`,{});return r.createElement(function(N,U){const M=Sf(U,N);return M?typeof M=="function"||typeof M=="object"&&"render"in M?M:Sf(U,`${N}.component`,N):N}(y,r.overrides),Qr({},x,z,{className:gw(x==null?void 0:x.className,z.className)||void 0}),...T)}function l(y){y=y.replace(RO,"");let x=!1;r.forceInline?x=!0:r.forceBlock||(x=GO.test(y)===!1);const T=g(m(x?y:`${ss(y).replace(JO,"")}
|
|
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(pO);return T?T.reduce(function(z,N){const U=N.indexOf("=");if(U!==-1){const M=function(k){return k.indexOf("-")!==-1&&k.match(DO)===null&&(k=k.replace(HO,function(Y,K){return K.toUpperCase()})),k}(N.slice(0,U)).trim(),O=function(k){const Y=k[0];return(Y==='"'||Y==="'")&&k.length>=2&&k[k.length-1]===Y?k.slice(1,-1):k}(N.slice(U+1).trim()),R=By[M]||M;if(R==="ref")return z;const S=z[R]=function(k,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,k,le),ee},{}):mO.indexOf(Y)!==-1?re(K,k,Y):(K.match(MO)&&(K=K.slice(1,K.length-1)),K==="true"||K!=="false"&&K)}(y,M,O,r.sanitizer);typeof S=="string"&&(gh.test(S)||yh.test(S))&&(z[R]=l(S.trim()))}else N!=="style"&&(z[By[N]||N]=!0);return z},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||dw,r.slugify=r.slugify||Ki,r.namedCodesToUnicode=r.namedCodesToUnicode?Qr({},jy,r.namedCodesToUnicode):jy,r.createElement=r.createElement||F.createElement;const f=[],h={},d={[ue.blockQuote]:{match:qn(Jb),order:1,parse(y,x,T){const[,z,N]=y[0].replace(_O,"").match(bO);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(),Ki),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:$i(vO),order:1,parse:vf,render:(y,x,T)=>i("br",{key:T.key})},[ue.breakThematic]:{match:qn(EO),order:1,parse:vf,render:(y,x,T)=>i("hr",{key:T.key})},[ue.codeBlock]:{match:qn(ev),order:0,parse:y=>({lang:void 0,text:ss(y[0].replace(/^ {4}/gm,"")).replace(Uy,"$1")}),render:(y,x,T)=>i("pre",{key:T.key},i("code",Qr({},y.attrs,{className:y.lang?`lang-${y.lang}`:""}),y.text))},[ue.codeFenced]:{match:qn(Wb),order:0,parse:y=>({attrs:u("code",y[3]||""),lang:y[2]||void 0,text:y[4],type:ue.codeBlock})},[ue.codeInline]:{match:br(SO),order:3,parse:y=>({text:y[2].replace(Uy,"$1")}),render:(y,x,T)=>i("code",{key:T.key},y.text)},[ue.footnote]:{match:qn(AO),order:0,parse:y=>(f.push({footnote:y[2],identifier:y[1]}),{}),render:Ef},[ue.footnoteReference]:{match:_r(OO),order:1,parse:y=>({target:`#${r.slugify(y[1],Ki)}`,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:_r(CO),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:qn(r.enforceAtxHeadings?nv:tv),order:1,parse:(y,x,T)=>({children:to(x,y[2],T),id:r.slugify(y[2],Ki),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:qn(rv),order:0,parse:(y,x,T)=>({children:to(x,y[1],T),level:y[2]==="="?1:2,type:ue.heading})},[ue.htmlBlock]:{match:$i(gh),order:1,parse(y,x,T){const[,z]=y[3].match(WO),N=new RegExp(`^${z}`,"gm"),U=y[3].replace(N,""),M=(O=U,ow.some(K=>K.test(O))?pw:to);var O;const R=y[1].toLowerCase(),S=dO.indexOf(R)!==-1,k=(S?R:y[1]).trim(),Y={attrs:u(k,y[2]),noInnerParse:S,tag:k};return T.inAnchor=T.inAnchor||R==="a",S?Y.text=y[3]:Y.children=M(x,U,T),T.inAnchor=!1,Y},render:(y,x,T)=>i(y.tag,Qr({key:T.key},y.attrs),y.text||(y.children?x(y.children,T):""))},[ue.htmlSelfClosing]:{match:$i(yh),order:1,parse(y){const x=y[1].trim();return{attrs:u(x,y[2]||""),tag:x}},render:(y,x,T)=>i(y.tag,Qr({},y.attrs,{key:T.key}))},[ue.htmlComment]:{match:$i(av),order:1,parse:()=>({}),render:Ef},[ue.image]:{match:br(lw),order:1,parse:y=>({alt:y[1],target:ky(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:_r(sw),order:3,parse:(y,x,T)=>({children:mw(x,y[1],T),target:ky(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:_r(UO),order:0,parse:y=>({children:[{text:y[1],type:ue.text}],target:y[1],type:ue.link})},[ue.linkBareUrlDetector]:{match:Fa((y,x)=>x.inAnchor||r.disableAutoLink?null:_r(BO)(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:_r(jO),order:0,parse(y){let x=y[1],T=y[1];return gO.test(T)||(T="mailto:"+T),{children:[{text:x.replace("mailto:",""),type:ue.text}],target:T,type:ue.link}}},[ue.orderedList]:Hy(i,1),[ue.unorderedList]:Hy(i,2),[ue.newlineCoalescer]:{match:qn(TO),order:3,parse:vf,render:()=>`
|
|
104
|
-
`},[ue.paragraph]:{match:Fa(fw),order:3,parse:bf,render:(y,x,T)=>i("p",{key:T.key},x(y.children,T))},[ue.ref]:{match:_r(LO),order:0,parse:y=>(h[y[1]]={target:y[2],title:y[4]},{}),render:Ef},[ue.refImage]:{match:br(zO),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:_r(kO),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:qn(iv),order:1,parse:cw,render(y,x,T){const z=y;return i("table",{key:T.key},i("thead",null,i("tr",null,z.header.map(function(N,U){return i("th",{key:U,style:zy(z,U)},x(N,T))}))),i("tbody",null,z.cells.map(function(N,U){return i("tr",{key:U},N.map(function(M,O){return i("td",{key:O,style:zy(z,O)},x(M,T))}))})))}},[ue.text]:{match:$i($O),order:4,parse:y=>({text:y[0].replace(NO,(x,T)=>r.namedCodesToUnicode[T]?r.namedCodesToUnicode[T]:x)}),render:y=>y.text},[ue.textBolded]:{match:br(YO),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:br(ZO),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:br(KO),order:1,parse:y=>({text:y[1],type:ue.text})},[ue.textMarked]:{match:br(XO),order:3,parse:bf,render:(y,x,T)=>i("mark",{key:T.key},x(y.children,T))},[ue.textStrikethroughed]:{match:br(QO),order:3,parse:bf,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 U,M,O=[],R="",S="";for(N.prevCapture=N.prevCapture||"";z;){let k=0;for(;k<x.length;){if(R=x[k],U=y[R],N.inline&&!U.match.inline){k++;continue}const Y=U.match(z,N);if(Y){S=Y[0],N.prevCapture+=S,z=z.substring(S.length),M=U.parse(Y,T,N),M.type==null&&(M.type=R),O.push(M);break}k++}}return N.prevCapture="",O}return x.sort(function(z,N){let U=y[z].order,M=y[N].order;return U!==M?U-M:z<N?-1:1}),function(z,N){return T(function(U){return U.replace(xO,`
|
|
105
|
-
`).replace(wO,"").replace(qO," ")}(z),N)}}(d),g=(_=function(y,x){return function(T,z,N){const U=y[T.type].render;return x?x(()=>U(T,z,N),T,z,N):U(T,z,N)}}(d,r.renderRule),function y(x,T={}){if(Array.isArray(x)){const z=T.key,N=[];let U=!1;for(let M=0;M<x.length;M++){T.key=M;const O=y(x[M],T),R=typeof O=="string";R&&U?N[N.length-1]+=O:O!==null&&N.push(O),U=R}return T.key=z,N}return _(x,y,T)});var _;const E=l(n);return f.length?i("div",null,E,i("footer",{key:"footer"},f.map(function(y){return i("div",{id:r.slugify(y.identifier,Ki),key:y.identifier},y.identifier,g(m(y.footnote,{inline:!0})))}))):E}const En=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,hO);return F.cloneElement(yw(r,i),l)},_w="_generalConditionsContainer_55hjg_1",bw="_generalConditions_55hjg_1",vw="_generalConditionsHeader_55hjg_15",Ew="_generalConditionsBody_55hjg_26",Sw="_generalConditionsAccept_55hjg_35",Ji={generalConditionsContainer:_w,generalConditions:bw,generalConditionsHeader:vw,generalConditionsBody:Ew,generalConditionsAccept:Sw},Tw=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})}),xw=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})}),Aw="general-conditions.header",Ow="general-conditions.body",Gy="general-conditions.accept-conditions-note",ww=()=>{const n=Ke(),[r,i]=F.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(Aw),h=n(Gy);return v.jsxs("div",{className:Z(Ji.generalConditionsContainer,"chat__generalConditions"),children:[!!(f!=null&&f.length)&&v.jsxs("div",{className:Ji.generalConditions,children:[v.jsxs("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:Z(Ji.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[v.jsx(En,{children:f}),r?v.jsx(xw,{}):v.jsx(Tw,{})]}),v.jsx("div",{className:Z(Ji.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&v.jsx(En,{children:n(Ow)||""})})]}),!!(h!=null&&h.length)&&v.jsx("div",{className:Z(Ji.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(En,{children:n(Gy)||""})})]})},Rw="_message_6i1zm_1",Cw="_messageBot_6i1zm_9",Nw="_messageBotLast_6i1zm_19",Dw="_avatar_6i1zm_19",Mw="_messageBotFirst_6i1zm_24",Bw="_messageBotAnimated_6i1zm_37",jw="_messageGuest_6i1zm_48",Uw="_messageGuestFirst_6i1zm_54",Hw="_messageGuestLast_6i1zm_60",Lw="_botAvatar_6i1zm_74",zw="_agentAvatar_6i1zm_78",kw="_bubble_6i1zm_82",Gw="_bubbleContent_6i1zm_88",qw="_bubbleLeft_6i1zm_102",Fw="_leftText_6i1zm_113",Iw="_bubbleRight_6i1zm_120",Vw="_rightText_6i1zm_130",Pw="_sourceInfoReference_6i1zm_162",Yw="_sourceInfoReferenceActive_6i1zm_174",me={message:Rw,messageBot:Cw,messageBotLast:Nw,avatar:Dw,messageBotFirst:Mw,messageBotAnimated:Bw,messageGuest:jw,messageGuestFirst:Uw,messageGuestLast:Hw,botAvatar:Lw,agentAvatar:zw,bubble:kw,bubbleContent:Gw,bubbleLeft:qw,leftText:Fw,bubbleRight:Iw,rightText:Vw,sourceInfoReference:Pw,sourceInfoReferenceActive:Yw},Zw="_botMessageActions_1dl7x_1",Xw="_alwaysVisible_1dl7x_22",Qw="_reported_1dl7x_29",Kw="_action_1dl7x_33",vr={botMessageActions:Zw,alwaysVisible:Xw,reported:Qw,action:Kw},$w=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:l,onReaction:u})=>{const f=Ke(),[h,d]=F.useState(!1),m=_=>()=>u(_),g=F.useCallback(async()=>{if(l.current)try{d(!0);const _=l.current.innerHTML,E=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([_],{type:"text/html"}),"text/plain":new Blob([E],{type:"text/plain"})})]),await new Promise(y=>setTimeout(y,1500))}finally{d(!1)}},[l]);return v.jsxs("div",{className:Z(vr.botMessageActions,n&&vr.alwaysVisible,i&&vr.reported),children:[r===ho.BOT&&v.jsx("button",{className:Z(vr.action,i==="GOOD"&&vr.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:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="GOOD"?v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),r===ho.BOT&&v.jsx("button",{className:Z(vr.action,i==="BAD"&&vr.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:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="BAD"?v.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):v.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),v.jsx("button",{className:Z(vr.action,"tooltip--top-right"),tabIndex:0,"aria-label":f("bot-bubble.copy"),"data-title":f("bot-bubble.copy"),onClick:g,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?v.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):v.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]})},pv=F.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,children:f,onReaction:h},d)=>{const m=Ke(),g=F.useRef(null),_=n.sender.type===Ee.UserType.BOT;return v.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:[v.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"}),v.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:v.jsx("div",{className:Z(me.leftText),children:f})}),h&&v.jsx($w,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),Jw="_sourceList_1n31h_1",Ww="_source_1n31h_1",eR="_label_1n31h_37",Tf={sourceList:Jw,source:Ww,label:eR},gv=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),yv=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),_v=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),bv=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),tR=({type:n,...r})=>{switch(n){case"WEBSITE":return v.jsx(bv,{...r});case"PDF":return v.jsx(_v,{...r});case"DOCX":return v.jsx(gv,{...r});default:return v.jsx(yv,{...r})}},Wh=({sources:n,onLinkClick:r})=>{const i=Ke(),l=f=>()=>{r(f.url)},u=f=>h=>{(h.key==="Enter"||h.key===" ")&&r(f.url)};return n.length?v.jsx("ul",{className:Tf.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>v.jsx("li",{className:Tf.source,children:v.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:l(f),onKeyDown:u(f),children:[v.jsx(tR,{type:f.type,"aria-hidden":"true"}),v.jsx("div",{className:Tf.label,children:f.label})]})},f.url))}):null},nR="_button_3ui4g_1",rR="_buttonDefault_3ui4g_13",aR="_buttonPrimary_3ui4g_28",ls={button:nR,buttonDefault:rR,buttonPrimary:aR},Ao=({className:n,children:r,...i})=>v.jsx("button",{className:Z(ls.button,n),type:"button",...i,children:r}),iR="_title_b904h_1",sR="_subtitle_b904h_6",lR="_buttons_b904h_11",oR="_button_b904h_11",uR="_imageContainer_b904h_34",cR="_image_b904h_34",fR="_video_container_b904h_49",hR="_video_b904h_49",dR="_only_b904h_63",Ot={title:iR,subtitle:sR,buttons:lR,button:oR,imageContainer:uR,image:cR,video_container:fR,video:hR,only:dR},mR=({buttons:n,onButtonClick:r})=>v.jsx("div",{className:Z(Ot.buttons,"chat__bubbleButtons"),children:n.map((i,l)=>v.jsx(Ao,{className:Z(Ot.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},l))});var Il={},Vl={},Pl={},qy;function pR(){if(qy)return Pl;qy=1,Object.defineProperty(Pl,"__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 Pl.default=function(l,u,f){return r.createElement("a",{href:l,key:f},u)},Pl}var Yl={},Fy;function gR(){return Fy||(Fy=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=function(n){return n}),Yl}var Zl={},xf,Iy;function yR(){return Iy||(Iy=1,xf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),xf}var Af,Vy;function _R(){return Vy||(Vy=1,Af=/[\0-\x1F\x7F-\x9F]/),Af}var Of,Py;function bR(){return Py||(Py=1,Of=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Of}var wf,Yy;function vR(){return Yy||(Yy=1,wf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),wf}var Rf,Zy;function ER(){return Zy||(Zy=1,Rf=function(n){var r={};r.src_Any=yR().source,r.src_Cc=_R().source,r.src_Z=bR().source,r.src_P=vR().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}),Rf}var Cf,Xy;function SR(){if(Xy)return Cf;Xy=1;function n(O){var R=Array.prototype.slice.call(arguments,1);return R.forEach(function(S){S&&Object.keys(S).forEach(function(k){O[k]=S[k]})}),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,S){return R||d.hasOwnProperty(S)},!1)}var g={"http:":{validate:function(O,R,S){var k=O.slice(R);return S.re.http||(S.re.http=new RegExp("^\\/\\/"+S.re.src_auth+S.re.src_host_port_strict+S.re.src_path,"i")),S.re.http.test(k)?k.match(S.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(O,R,S){var k=O.slice(R);return S.re.no_http||(S.re.no_http=new RegExp("^"+S.re.src_auth+"(?:localhost|(?:(?:"+S.re.src_domain+")\\.)+"+S.re.src_domain_root+")"+S.re.src_port+S.re.src_host_terminator+S.re.src_path,"i")),S.re.no_http.test(k)?R>=3&&O[R-3]===":"||R>=3&&O[R-3]==="/"?0:k.match(S.re.no_http)[0].length:0}},"mailto:":{validate:function(O,R,S){var k=O.slice(R);return S.re.mailto||(S.re.mailto=new RegExp("^"+S.re.src_email_name+"@"+S.re.src_host_strict,"i")),S.re.mailto.test(k)?k.match(S.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]",E="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,S){var k=R.slice(S);return O.test(k)?k.match(O)[0].length:0}}function T(){return function(O,R){R.normalize(O)}}function z(O){var R=O.re=ER()(O.__opts__),S=O.__tlds__.slice();O.onCompile(),O.__tlds_replaced__||S.push(_),S.push(R.src_xn),R.src_tlds=S.join("|");function k(ee){return ee.replace("%TLDS%",R.src_tlds)}R.email_fuzzy=RegExp(k(R.tpl_email_fuzzy),"i"),R.link_fuzzy=RegExp(k(R.tpl_link_fuzzy),"i"),R.link_no_ip_fuzzy=RegExp(k(R.tpl_link_no_ip_fuzzy),"i"),R.host_fuzzy_test=RegExp(k(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 S=O.__index__,k=O.__last_index__,Y=O.__text_cache__.slice(S,k);this.schema=O.__schema__.toLowerCase(),this.index=S+R,this.lastIndex=k+R,this.raw=Y,this.text=Y,this.url=Y}function U(O,R){var S=new N(O,R);return O.__compiled__[S.schema].normalize(S,O),S}function M(O,R){if(!(this instanceof M))return new M(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__=E,this.__tlds_replaced__=!1,this.re={},z(this)}return M.prototype.add=function(R,S){return this.__schemas__[R]=S,z(this),this},M.prototype.set=function(R){return this.__opts__=n(this.__opts__,R),this},M.prototype.test=function(R){if(this.__text_cache__=R,this.__index__=-1,!R.length)return!1;var S,k,Y,K,re,ee,le,ie,de;if(this.re.schema_test.test(R)){for(le=this.re.schema_search,le.lastIndex=0;(S=le.exec(R))!==null;)if(K=this.testSchemaAt(R,S[2],le.lastIndex),K){this.__schema__=S[2],this.__index__=S.index+S[1].length,this.__last_index__=S.index+S[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__)&&(k=R.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(re=k.index+k[1].length,(this.__index__<0||re<this.__index__)&&(this.__schema__="",this.__index__=re,this.__last_index__=k.index+k[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},M.prototype.pretest=function(R){return this.re.pretest.test(R)},M.prototype.testSchemaAt=function(R,S,k){return this.__compiled__[S.toLowerCase()]?this.__compiled__[S.toLowerCase()].validate(R,k,this):0},M.prototype.match=function(R){var S=0,k=[];this.__index__>=0&&this.__text_cache__===R&&(k.push(U(this,S)),S=this.__last_index__);for(var Y=S?R.slice(S):R;this.test(Y);)k.push(U(this,S)),Y=Y.slice(this.__last_index__),S+=this.__last_index__;return k.length?k:null},M.prototype.tlds=function(R,S){return R=Array.isArray(R)?R:[R],S?(this.__tlds__=this.__tlds__.concat(R).sort().filter(function(k,Y,K){return k!==K[Y-1]}).reverse(),z(this),this):(this.__tlds__=R.slice(),this.__tlds_replaced__=!0,z(this),this)},M.prototype.normalize=function(R){R.schema||(R.url="http://"+R.url),R.schema==="mailto:"&&!/^mailto:/i.test(R.url)&&(R.url="mailto:"+R.url)},M.prototype.onCompile=function(){},Cf=M,Cf}const TR=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 Qy;function xR(){if(Qy)return Zl;Qy=1,Object.defineProperty(Zl,"__esModule",{value:!0});var n=SR(),r=u(n),i=TR,l=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var f=new r.default;return f.tlds(l.default),Zl.default=function(h){return f.match(h)},Zl}var Xl={},Ky;function AR(){return Ky||(Ky=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=function(n){return n}),Xl}var $y;function OR(){if($y)return Vl;$y=1,Object.defineProperty(Vl,"__esModule",{value:!0});var n=function(){function U(M,O){for(var R=0;R<O.length;R++){var S=O[R];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(M,S.key,S)}}return function(M,O,R){return O&&U(M.prototype,O),R&&U(M,R),M}}(),r=Ia(),i=y(r),l=pR(),u=E(l),f=gR(),h=E(f),d=xR(),m=E(d),g=AR(),_=E(g);function E(U){return U&&U.__esModule?U:{default:U}}function y(U){if(U&&U.__esModule)return U;var M={};if(U!=null)for(var O in U)Object.prototype.hasOwnProperty.call(U,O)&&(M[O]=U[O]);return M.default=U,M}function x(U,M){if(!(U instanceof M))throw new TypeError("Cannot call a class as a function")}function T(U,M){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:U}function z(U,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);U.prototype=Object.create(M&&M.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(U,M):U.__proto__=M)}var N=function(U){z(M,U);function M(){return x(this,M),T(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return n(M,[{key:"parseString",value:function(R){var S=this;if(R==="")return R;var k=this.props.matchDecorator(R);if(!k)return R;var Y=[],K=0;return k.forEach(function(re,ee){re.index>K&&Y.push(R.substring(K,re.index));var le=S.props.hrefDecorator(re.url),ie=S.props.textDecorator(re.text),de=S.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 S=this,k=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:k},this.parse(R.props.children)):Array.isArray(R)?R.map(function(Y,K){return S.parse(Y,K)}):R}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),M}(i.Component);return N.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:_.default},Vl.default=N,Vl}var Jy;function wR(){if(Jy)return Il;Jy=1,Object.defineProperty(Il,"__esModule",{value:!0});var n=OR(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}return Il.default=r.default,Il}var RR=wR();const CR=po(RR),NR="_text_gp0s0_1",DR="_command_gp0s0_5",Wy={text:NR,command:DR},vv=({text:n,commands:r=[],onLinkClick:i})=>{const l=d=>m=>(m.preventDefault(),d&&i(d),!1),u=(d,m,g)=>v.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 v.jsxs("div",{children:[f&&v.jsxs("code",{className:Wy.command,children:["/",f]}),h.split(`
|
|
106
|
-
`).map((d,m)=>v.jsxs("span",{className:Wy.text,children:[v.jsx(CR,{componentDecorator:u,children:d}),v.jsx("br",{})]},m))]})},MR=({subtitle:n,onLinkClick:r})=>n?v.jsx("div",{className:Ot.subtitle,children:v.jsx(vv,{text:n,onLinkClick:r})}):null,e_="newtab#",Ev=({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(e_)===0?v.jsx("a",{href:h.slice(e_.length),title:f,target:"_blank",rel:"noopener noreferrer",children:d}):v.jsx("a",{onClick:l(h),title:f,href:h,children:d});return v.jsx(En,{options:{...r,overrides:{a:u}},children:n})},BR=({text:n,onLinkClick:r})=>n?v.jsx("div",{children:v.jsx(Ev,{markdown:n,onLinkClick:r})}):null,jR=({title:n})=>n?v.jsx("h1",{className:Ot.title,children:n}):null,UR=({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)?v.jsxs("div",{className:Z(me.bubbleContent),children:[v.jsx(jR,{title:n}),v.jsx(BR,{text:r,onLinkClick:f}),v.jsx(MR,{subtitle:i,onLinkClick:f}),v.jsx(mR,{buttons:l,onButtonClick:u})]}):null,HR=({alt:n,imageUrl:r,itemUrl:i,hasBody:l})=>r?i?i.indexOf("youtube.com")>-1?v.jsx("div",{className:Ot.video_container,children:v.jsx("iframe",{className:Z(Ot.video,{[Ot.only]:!l}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):v.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:v.jsx("div",{className:Ot.imageContainer,children:v.jsx("img",{className:Z(Ot.image,{[Ot.only]:!l}),src:r,alt:n})})}):v.jsx("div",{className:Ot.imageContainer,children:v.jsx("img",{className:Z(Ot.image,{[Ot.only]:!l}),src:r,alt:n})}):null,LR=({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 v.jsxs("div",{className:Z(Ot.detailMessage),children:[v.jsx(HR,{hasBody:g,imageUrl:l,itemUrl:u,alt:n||i}),g&&v.jsx(UR,{title:n,text:r,subtitle:i,buttons:f,onLinkClick:m,onButtonClick:d}),v.jsx(Wh,{sources:h,onLinkClick:m})]})},zR=F.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},l)=>{const u=Ke();return v.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:v.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:v.jsx("div",{className:Z(me.rightText),children:i})})})}),kR="_markdown_nw7vg_1",Sv={markdown:kR},Ql="source-info-reference",GR=({markdown:n,sources:r,onLinkClick:i})=>{const l=Pa(),u=qR(),f=Jt(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(Ny(m)))},d=m=>()=>{l(Ny(m))};return F.useLayoutEffect(()=>{document.querySelectorAll(`.${Ql}`).forEach(m=>{var E,y,x,T;const g=m.previousSibling;g&&g.nodeType===Node.TEXT_NODE&&((E=g.textContent)!=null&&E.endsWith(" "))&&((y=g.textContent)!=null&&y.trim().length)&&m.classList.add(`${Ql}--before-space`);const _=m.nextSibling;_&&_.nodeType===Node.TEXT_NODE&&((x=_.textContent)!=null&&x.startsWith(" "))&&((T=_.textContent)!=null&&T.trim().length)&&m.classList.add(`${Ql}--after-space`)})},[n]),v.jsxs("div",{className:me.bubbleContent,children:[v.jsx("div",{className:Sv.markdown,children:v.jsx(Ev,{markdown:n,onLinkClick:i,markdownOptions:{renderRule(m,g,_,E){if(g.type===ue.footnoteReference){const y=g.text===f;return v.jsx("span",{className:Z(me.sourceInfoReference,y&&me.sourceInfoReferenceActive,Ql),children:v.jsx("a",{type:"button",tabIndex:0,onClick:d(g.text),onKeyDown:h(g.text),children:u(g.text)})},E.key)}return m()}}})}),v.jsx(Wh,{sources:r,onLinkClick:i})]})},qR=()=>{const n=[];return i=>{const l=n.indexOf(i);return l>-1?l+1:(n.push(i),n.length)}},FR=({text:n,commands:r,sources:i,onLinkClick:l})=>v.jsxs("div",{className:me.bubbleContent,children:[v.jsx(vv,{text:n,commands:r,onLinkClick:l}),v.jsx(Wh,{sources:i,onLinkClick:l})]}),IR=F.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:f,onButtonClick:h,onLinkClick:d},m)=>{const g=VR(n,r,h,d);switch(n.sender.type){case Ee.UserType.GUEST:return v.jsx(zR,{ref:m,isFirstMessageBySender:l,isLastMessageBySender:u,children:g});default:{const _=E=>f(n._id,E);return v.jsx(pv,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:_,children:g})}}}),VR=(n,r,i,l)=>{switch(n.type){case Ee.MessageTypeEnum.TEXT:{const u=n;return v.jsx(FR,{text:u.text,commands:r,sources:n.sources||[],onLinkClick:l})}case Ee.MessageTypeEnum.DETAIL:{const u=n;return v.jsx(LR,{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 v.jsx(GR,{markdown:u.markdown,sources:u.sources||[],onLinkClick:l})}}},PR=(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,YR=k_.memo(IR,PR),ZR="_ticontainer_xg0dn_1",XR="_tiblock_xg0dn_5",QR="_tidot_xg0dn_12",Wi={ticontainer:ZR,tiblock:XR,tidot:QR},KR=({isTyping:n=!1})=>v.jsx("div",{className:Wi.ticontainer,children:v.jsx("div",{className:Wi.tiblock,children:n?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")}),v.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")}),v.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")})]}):null})}),$R=Object.assign({_id:"typing-indicator"},new Ee.TextMessage("",new Ee.BotUser)),JR=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const h=F.useRef(0),d=F.useRef(!0),m=F.useRef(null),g=F.useRef(null),_=F.useRef(null),E=Jt(T=>T.settings.enableGeneralConditions);F.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 v.jsxs("div",{ref:m,className:Z(Dy.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&v.jsx(ww,{}),v.jsxs("ul",{className:Dy.messages,children:[n.map((T,z)=>{const N=WR(T,y),U=eC(T,z,n,r);y=T.sender.type;const M=z+1===x;return v.jsx(YR,{ref:M?_:null,message:T,commands:i,isLastMessage:M,isFirstMessageBySender:N,isLastMessageBySender:U,onButtonClick:u,onLinkClick:f,onReaction:l},M&&!r?"last":T._id)}),r&&v.jsx(pv,{ref:g,message:$R,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:y!==Ee.UserType.BOT,isLastMessageBySender:!0,children:v.jsx(KR,{isTyping:!0})},"last")]})]})},WR=(n,r)=>!r||r!==n.sender.type,eC=(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)},Tv=()=>tC(window.location.pathname),tC=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},ed=()=>F.useMemo(()=>Tv(),[]),nC="_bottomSheet_jp8dl_1",rC="_bottomSheetOpen_jp8dl_15",aC="_bottomSheetClose_jp8dl_20",Pn={bottomSheet:nC,bottomSheetOpen:rC,bottomSheetClose:aC},iC="_container_xc2nx_1",t_={container:iC},sC=({contentUrl:n})=>{const r=ed(),[i,l]=F.useState(!1);F.useEffect(()=>{l(f=>f||!!n)},[n]);const u=F.useMemo(()=>{if(n&&n.startsWith("/"))return new URL(`/${r}${n}`,document.baseURI).toString()},[n,r]);return v.jsx("div",{className:Z(t_.container,Pn.bottomSheet,{[Pn.bottomSheetOpen]:!!n,[Pn.bottomSheetClose]:i&&!n}),children:u&&v.jsx("iframe",{title:"Drawer",src:u,className:t_.iframe})})},lC="_container_z787n_1",oC={container:lC},uC=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),cC=()=>{const r=Ke()("powered-by");return r&&r.length?v.jsx("div",{className:Z(oC.container,"chat__poweredBy"),children:v.jsx(En,{options:{overrides:{a:uC}},children:r})}):null},n_=({className:n,children:r,...i})=>v.jsx(Ao,{className:Z(ls.buttonDefault,n),type:"button",...i,children:r}),os=({className:n,children:r,...i})=>v.jsx(Ao,{className:Z(ls.buttonPrimary,n),...i,children:r}),fC="_container_h23mk_1",hC="_formContainer_h23mk_17",dC="_emailInput_h23mk_22",mC="_description_h23mk_52",pC="_actions_h23mk_57",gC="_validationError_h23mk_67",yC="_submitted_h23mk_74",Fn={container:fC,formContainer:hC,emailInput:dC,description:mC,actions:pC,validationError:gC,submitted:yC},_C=({visible:n,enableTranscriptExportPdf:r,enableTranscriptExportEmail:i,onEmailExport:l,onPdfExport:u,onClose:f})=>{const h=Ke(),[d,m]=F.useState(void 0),[g,_]=F.useState(!1),[E,y]=F.useState(!1),[x,T]=F.useState(void 0),z=F.useRef(null);F.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))},U=O=>{const R=O.target.value.trim(),S=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);T(S?R:"")},M=()=>{y(!0),u(),setTimeout(f,3*1e3)};return v.jsxs("div",{className:Z(Fn.container,Pn.bottomSheet,{[Pn.bottomSheetOpen]:d===!0,[Pn.bottomSheetClose]:d===!1}),children:[r&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:h("export-transcript.pdf.title")}),v.jsx(En,{className:Fn.description,children:h("export-transcript.pdf.description")||""}),v.jsxs("div",{className:Fn.actions,children:[v.jsx(n_,{onClick:f,children:h("export-transcript.pdf.cancel")}),v.jsx(os,{onClick:M,disabled:E,children:h("export-transcript.pdf.download")})]})]}),i&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:h("export-transcript.email.title")}),v.jsx(En,{className:Fn.description,children:h("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:N,className:Fn.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:g,ref:z,type:"email",placeholder:h("export-transcript.email.placeholder"),className:Fn.emailInput,onChange:U}),(x==null?void 0:x.length)===0?v.jsx("div",{className:Fn.validationError,children:h("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:Fn.actions,children:[v.jsx(n_,{onClick:f,children:h("export-transcript.email.cancel")}),v.jsx(os,{type:"submit",disabled:g||x===void 0||x.length===0,children:h("export-transcript.email.send")})]})]}),g&&v.jsx("div",{className:Fn.submitted,children:h("export-transcript.email.success")})]})]})},bC="_inputContainer_fi5ao_1",vC={inputContainer:bC},EC="_blockUserInput_pot9c_1",SC={blockUserInput:EC},TC=({visible:n})=>{const r=Ke();return n?v.jsx("div",{className:Z(SC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},xC="_commandsDropdown_5ytuv_1",AC="_commands_5ytuv_1",OC="_command_5ytuv_1",wC="_commandActive_5ytuv_46",RC="_commandsSelections_5ytuv_55",ns={commandsDropdown:xC,commands:AC,command:OC,commandActive:wC,commandsSelections:RC},CC=(n,r)=>{F.useEffect(()=>{const i=l=>{n.current&&!n.current.contains(l.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},NC=(n,r,i,l,u)=>{F.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])},DC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:l})=>{const u=F.useRef(null),f=Ke(),[h,d]=F.useState([]),[m,g]=F.useState(r_(r)),[_,E]=F.useState(0),y=x=>i(`/${x}`);return CC(u,()=>d([])),NC(h,_,y,E,d),F.useEffect(()=>{g(r_(r))},[r]),F.useEffect(()=>{const x=n.length||0;x===0||x>m||!n.startsWith("/")?d([]):d(r.filter(MC(n))),E(0)},[r,n,m]),F.useEffect(()=>{l(!!h.length)},[h,l]),h.length?v.jsx("div",{ref:u,className:ns.commandsDropdown,children:v.jsx("ul",{className:ns.commands,role:"listbox",children:h.map((x,T)=>v.jsxs("li",{className:Z([ns.command,_===T&&ns.commandActive]),role:"option",onClick:()=>y(x),onMouseOver:()=>E(T),children:[v.jsxs("h1",{children:["/",x]}),v.jsx("p",{children:f(`commands.${x}`)})]},x))})}):null},r_=n=>Math.max(...n.map(r=>r.length+1)),MC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},a_=3,BC=({commands:n,onSelectCommand:r})=>{const i=Ke(),[l,u]=F.useState(!1),f=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=l?n:n.slice(0,a_);return v.jsxs("div",{className:ns.commandsSelections,children:[m.map(g=>v.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?v.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>a_?v.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]})},jC="_callToActionContainer_bkfcm_1",UC="_callToActionTitle_bkfcm_23",HC="_rateOverlay_bkfcm_30",LC="_body_bkfcm_52",zC="_footer_bkfcm_60",kC="_actions_bkfcm_73",GC="_bubbles_bkfcm_101",qC="_stars_bkfcm_203",FC="_starsSmall_bkfcm_215",IC="_starsLarge_bkfcm_219",VC="_star_bkfcm_203",PC="_starReadonly_bkfcm_236",YC="_starIcon_bkfcm_246",ZC="_starsDescriptionContainer_bkfcm_264",XC="_starsDescription_bkfcm_264",vt={callToActionContainer:jC,callToActionTitle:UC,rateOverlay:HC,body:LC,footer:zC,actions:kC,bubbles:GC,stars:qC,starsSmall:FC,starsLarge:IC,star:VC,starReadonly:PC,starIcon:YC,starsDescriptionContainer:ZC,starsDescription:XC},QC=({value:n,index:r,count:i,readonly:l,onHover:u,onClick:f})=>{const h=d=>{f&&d.key==="Enter"&&f()};return v.jsx("li",{className:Z(vt.star,{[vt.starReadonly]:l},"chat__conversationRating__star"),children:v.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:v.jsx("span",{role:"img","aria-label":"Star",className:Z(vt.starIcon),children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},i_=5,xv=({value:n,size:r,readonly:i=!1,onChange:l})=>{const[u,f]=F.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 v.jsx("ul",{tabIndex:0,role:"radiogroup",className:Z(vt.stars,{[vt.starsSmall]:r==="small",[vt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(i_).fill(0).map((g,_)=>v.jsx(QC,{value:u===void 0?n:u,index:_,count:i_,readonly:i,onHover:d(_),onClick:m(_)},_))})},KC=({visible:n,onRate:r})=>{const i=Ke();return n?v.jsxs("div",{className:Z(vt.callToActionContainer,"chat__conversationRating__callToAction"),children:[v.jsx("div",{className:Z(vt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),v.jsx(xv,{value:0,size:"small",onChange:r})]}):null},Nf=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>v.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:[v.jsx("img",{className:Z(me.avatar,me.botAvatar),src:"bot.svg",alt:"Bot"}),v.jsx("div",{className:Z(me.bubble,me.bubbleLeft,"chat__bubble","chat__botBubble"),children:v.jsx("div",{className:Z(me.leftText,me.bubbleContent),children:i})})]}),$C=({children:n})=>v.jsx("div",{className:Z(me.message,me.messageGuest,me.messageGuestFirst,me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:v.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),children:v.jsx("div",{className:Z(me.rightText,me.bubbleContent),children:n})})}),JC=({visible:n,rating:r,onRate:i,onClose:l})=>{const u=Ke(),[f,h]=F.useState(r),[d,m]=F.useState(void 0),[g,_]=F.useState(void 0),[E,y]=F.useState({submitted:!1,feedback:""}),[x,T]=F.useState(!1),z=F.useRef(null);F.useEffect(()=>{n?(y({submitted:!1,feedback:""}),_(n)):g===!0&&_(!1)},[n,g]),F.useEffect(()=>{h(r)},[r]),F.useEffect(()=>{const U=u(`conversation-rating.overlay.bot-message.rate-feedback.value-${f}`);m(U!=null&&U.length?U:void 0)},[f,u]),F.useEffect(()=>{E.submitted?setTimeout(()=>T(!0),E.feedback.length?500:0):T(!1)},[E]);const N=U=>{var O,R;U.preventDefault();const M=((R=(O=z.current)==null?void 0:O.value)==null?void 0:R.trim())||"";i(f,M),y({submitted:!0,feedback:M})};return v.jsx("div",{className:Z(vt.rateOverlay,Pn.bottomSheet,"chat__conversationRating__overlay",{[Pn.bottomSheetOpen]:g===!0,[Pn.bottomSheetClose]:g===!1}),children:v.jsxs("form",{onSubmit:N,children:[v.jsxs("div",{className:Z(vt.body,"chat__conversationRating__overlay__body"),children:[v.jsx("div",{}),v.jsx("div",{className:Z(vt.bubbles),children:n&&d&&v.jsxs(v.Fragment,{children:[v.jsxs(Nf,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[v.jsx("h2",{children:u("conversation-rating.overlay.title")}),v.jsxs("div",{className:Z(vt.starsDescriptionContainer),children:[v.jsx(xv,{value:f,size:"large",readonly:E.submitted,onChange:h}),v.jsxs("div",{className:Z(vt.starsDescription),children:[v.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),v.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),v.jsx(Nf,{isFirstMessageBySender:!1,isLastMessageBySender:!x||!!E.feedback.length,children:v.jsx("div",{children:d})}),!!E.feedback.length&&v.jsx($C,{children:E.feedback}),x&&v.jsx(Nf,{isFirstMessageBySender:!!E.feedback.length,isLastMessageBySender:!0,children:v.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),v.jsxs("div",{className:Z(vt.footer,"chat__conversationRating__overlay__footer"),children:[!E.submitted&&v.jsx("input",{ref:z,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),v.jsx("div",{className:Z(vt.actions,"chat__conversationRating__overlay__footer__actions"),children:E.submitted?v.jsx(os,{type:"button",onClick:l,children:u("conversation-rating.overlay.action.close")}):v.jsx(os,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},WC=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:l,setShowRatingOverlay:u,onRate:f})=>{const[h,d]=F.useState(0),m=E=>{d(E),u(!0)},g=()=>u(!1),_=!r&&i>=1;return n?v.jsxs(v.Fragment,{children:[v.jsx(KC,{visible:_,onRate:m}),v.jsx(JC,{visible:l,rating:h,onRate:f,onClose:g})]}):null},e3=F.memo(WC),t3="_inputWrapper_e3h44_1",n3="_withOpenCommands_e3h44_14",r3="_messageInputWrapper_e3h44_20",a3="_messageInput_e3h44_20",i3="_buttons_e3h44_44",s3="_button_e3h44_44",Pr={inputWrapper:t3,withOpenCommands:n3,messageInputWrapper:r3,messageInput:a3,buttons:i3,button:s3},l3="_audioRecorder_g845f_1",o3="_audioButton_g845f_6",u3="_recorderIcon_g845f_37",c3="_spinning_g845f_60",Yr={audioRecorder:l3,audioButton:o3,recorderIcon:u3,spinning:c3},s_=2048,mo=16e3;class f3 extends k_.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(s_,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+=s_}}handleClickSubmitAudio(){const i=d3(this.leftchannel,this.recordingLength),l=m3(i,this.sampleRate||0),u=h3(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 v.jsxs("div",{className:Yr.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:Z(Yr.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:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&v.jsxs("svg",{className:Yr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&v.jsxs("div",{className:Yr.audioRecorder,children:[v.jsx("button",{className:Z(Yr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),v.jsx("div",{className:Yr.recorderIcon}),v.jsx("button",{className:Z(Yr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const h3=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);Kl(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Kl(i,8,"WAVE"),Kl(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,mo,!0),i.setUint32(28,mo*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Kl(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"})},Kl=(n,r,i)=>{for(let l=0;l<i.length;l++)n.setUint8(r+l,i.charCodeAt(l))},d3=(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},m3=(n,r)=>{if(mo===r)return n;const i=r/mo,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},p3=({disabled:n,textInput:r,commandsVisible:i,onTextInput:l,onTextInputSubmit:u,onAudioRecorded:f,onOpenTranscriptExportModal:h})=>{const d=Ke(),m=F.useRef(null),{enableTranscriptExportPdf:g,enableTranscriptExportEmail:_,enableSpeechSupport:E}=Jt(N=>N.settings);F.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 U=N.target.value;l(U),N.target.style.height="";const{scrollHeight:M}=N.target;N.target.style.height=`${M>150?150:M}px`},z=N=>{N.code==="Enter"&&!N.shiftKey?(N.repeat||y(),N.preventDefault()):i&&(N.code==="ArrowUp"||N.code==="ArrowDown")&&N.preventDefault()};return v.jsxs("form",{className:Z(Pr.inputWrapper,i&&Pr.withOpenCommands,"chat__textInput"),onSubmit:x,children:[v.jsx("div",{className:Pr.messageInputWrapper,children:v.jsx("textarea",{id:"user_input",ref:m,className:Pr.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"})}),v.jsxs("div",{className:Z(Pr.buttons,"chat__buttons"),children:[!r.length&&(g||_)&&v.jsx("button",{type:"button",className:Z(Pr.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:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),r.length||!E||navigator.mediaDevices===void 0?v.jsx("button",{className:Z(Pr.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:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):E&&navigator.mediaDevices!==void 0&&v.jsx(f3,{translate:d,onAudioRecorded:f})]})]})},g3="_quickReplies_83npe_1",y3="_quickReply_83npe_9",l_={quickReplies:g3,quickReply:y3},_3=({quickReplies:n,onQuickReplyClick:r})=>n.length?v.jsx("div",{className:Z(l_.quickReplies,"chat__quickReplies"),children:n.map(i=>v.jsx(Ao,{tabIndex:0,className:Z(l_.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,o_=5e3,b3=1e3,v3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:f,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:_,onOpenTranscriptExportModal:E})=>{const[y,x]=F.useState(""),[T,z]=F.useState(!1),[N,U]=F.useState(!1),M=F.useRef(0),O=F.useRef(0);F.useEffect(()=>{if(T&&!n){const k=M.current?Date.now()-M.current:0;k>o_?z(!1):setTimeout(()=>{z(!1)},o_-k)}},[T,n]),F.useEffect(()=>{T&&(M.current=Date.now())},[T]);const R=k=>{const Y=Date.now()-O.current<b3;return N?!1:n||Y?(z(!0),!1):(d(k),x(""),O.current=Date.now(),!0)},S=k=>{x(k+" ")};return v.jsxs("div",{className:Z(vC.inputContainer),children:[v.jsx(_3,{quickReplies:r,onQuickReplyClick:g}),v.jsx(TC,{visible:T}),!T&&v.jsx(e3,{conversationRating:i,numberOfMessagesFromGuest:l,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!(f!=null&&f.length)&&v.jsx(DC,{text:y,commands:f,onSelectCommand:S,onVisibilityChange:U}),v.jsx(p3,{textInput:y,disabled:T,commandsVisible:N,onTextInput:x,onTextInputSubmit:R,onOpenTranscriptExportModal:E,onAudioRecorded:_}),!!(f!=null&&f.length)&&v.jsx(BC,{commands:f,onSelectCommand:x})]})},E3=({clientName:n,messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:f,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:_,onAudioRecorded:E,onTranscriptExport:y,onPdfExport:x,onTranscriptItemReaction:T})=>{const z=Pa(),N=Jt(ee=>ee.connection.connectionState),{enableTranscriptExportPdf:U,enableTranscriptExportEmail:M,commands:O}=Jt(ee=>ee.settings),[R,S]=F.useState(!1),[k,Y]=F.useState(!1),K=U||M,re=r.filter(ee=>ee.sender.type===ho.GUEST).length;return F.useEffect(()=>{if(N===Kr.CONNECTED){const ee=_o.parse(window.location.search);z($b(n,ee))}},[n,N,z]),v.jsxs("div",{className:_f.container,children:[v.jsxs("div",{className:Z([_f.chatcontent,(R||k)&&_f.accessabilityHidden]),children:[v.jsx(JR,{messages:r,isBotTyping:l,commands:O,onButtonClick:g,onLinkClick:_,onTranscriptItemReaction:T}),v.jsx(v3,{isBotTyping:l,quickReplies:l?[]:i,numberOfMessagesFromGuest:re,conversationRating:R?{enabled:!1}:f,showRatingOverlay:k,setShowRatingOverlay:Y,commands:O,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:E,onOpenTranscriptExportModal:()=>S(!R)}),v.jsx(cC,{})]}),K&&v.jsx(_C,{enableTranscriptExportPdf:U,enableTranscriptExportEmail:M,visible:R,onEmailExport:y,onPdfExport:()=>x(n),onClose:()=>S(!1)}),v.jsx(sC,{contentUrl:u})]})},S3=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}},T3=n=>({onRestartChat:(r,i)=>n(To(r,i)),onMessageFromUser:r=>n(Rb(r)),onRate:(r,i)=>n(oA(r,i)),onAudioRecorded:r=>n(rA(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(wb(r)),onNluEvent:r=>n(jb(r)),onButtonClick:r=>n(cA(r)),onLinkClick:r=>n(fA(r)),onTranscriptExport:r=>n(iA(r)),onPdfExport:r=>n(sA(r)),onTranscriptItemReaction:(r,i)=>n(Ee.Actions.transcriptItemGuestReaction(r,i||null))}),x3=TS(S3,T3)(E3),Av=()=>{const[n,r]=F.useState(!1);return F.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},td=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},A3=({onClick:n})=>{const r=Ke();return Av()?v.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:td(n),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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},O3=()=>{const n=Ke(),r=Av(),i=Jt(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return r&&i?v.jsx("button",{className:"tooltip--bottom-left","aria-label":n("header.expand-chat"),"data-title":n("header.expand-chat"),tabIndex:0,onClick:l,onKeyDown:td(l),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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},w3="_header_1hky6_1",R3="_logoContainer_1hky6_13",C3="_logo_1hky6_13",N3="_actions_1hky6_27",$l={header:w3,logoContainer:R3,logo:C3,actions:N3},D3=({onClick:n})=>{const r=Ke();return v.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.restart-chat"),"data-title":r("header.restart-chat"),tabIndex:0,onClick:n,onKeyDown:td(n),children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[v.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"}),v.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"})]})})},u_=({className:n,withActions:r=!0,...i})=>{const l=Pa(),u=ed(),f=()=>{const d=_o.parse(window.location.search);l(To(u,d))},h=()=>{l($A())};return v.jsxs("div",{className:Z([$l.header,n]),...i,children:[v.jsx("div",{className:$l.logoContainer,children:v.jsx("div",{className:$l.logo})}),v.jsxs("div",{className:$l.actions,children:[r&&v.jsx(D3,{onClick:f}),v.jsx(O3,{}),v.jsx(A3,{onClick:h})]})]})},M3="_chatwindow_rkbir_1",B3="_chatwindowWithAside_rkbir_21",c_={chatwindow:M3,chatwindowWithAside:B3},j3="_sourceInfos_eg9te_12",U3="_loadingContent_eg9te_23",H3="_sourceDetails_eg9te_32",L3="_sourceHeader_eg9te_40",z3="_sourceHeaderIcon_eg9te_57",k3="_sourceContent_eg9te_61",G3="_openSourceButton_eg9te_69",q3="_sourceButtonLabel_eg9te_79",F3="_closeSourceInfosButton_eg9te_101",I3="_loadingSourceInfos_eg9te_125",V3="_loading_eg9te_23",P3="_loadingError_eg9te_139",Wt={sourceInfos:j3,loadingContent:U3,sourceDetails:H3,sourceHeader:L3,sourceHeaderIcon:z3,sourceContent:k3,openSourceButton:G3,sourceButtonLabel:q3,closeSourceInfosButton:F3,loadingSourceInfos:I3,loading:V3,loadingError:P3},Y3=({onClick:n})=>{const r=Ke();return v.jsx("button",{className:Z(Wt.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:n,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})})})},Z3=({sourceInfos:n,onClose:r})=>v.jsxs("div",{className:Wt.sourceHeader,children:[v.jsx("div",{children:n?v.jsx("p",{children:n.title}):v.jsx("p",{children:" "})}),v.jsx(Y3,{onClick:r})]}),X3=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),Q3=({className:n,children:r,...i})=>v.jsx("a",{className:Z(ls.button,ls.buttonDefault,n),type:"button",...i,children:r}),K3=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),$3=({type:n,...r})=>{switch(n){case"WEBSITE":return v.jsx(bv,{...r});case"PDF":return v.jsx(_v,{...r});case"DOCX":return v.jsx(gv,{...r});case"TEXT":return v.jsx(K3,{...r});default:return v.jsx(yv,{...r})}},J3=({url:n,knowledgeBaseType:r})=>{const i=Ke();return v.jsx(Q3,{className:Wt.openSourceButton,href:n,target:"_blank",children:v.jsxs("div",{className:Wt.sourceButtonLabel,children:[v.jsx("div",{className:Wt.sourceHeaderIcon,children:v.jsx($3,{type:r})}),v.jsx("p",{children:i("source-infos.open-source")})]})})},W3=({sourceInfos:{content:n,url:r,knowledgeBaseType:i}})=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:Z(Wt.sourceContent,Sv.markdown),children:v.jsx(En,{options:{overrides:{a:X3}},children:n})}),v.jsx(J3,{url:r,knowledgeBaseType:i})]}),e6=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,t6=()=>{const n=Ke();return v.jsxs("div",{className:Wt.loadingError,children:[v.jsx("h1",{children:n("source-infos.error.title")}),v.jsx("img",{src:e6,title:n("source-infos.error.title")}),v.jsx("p",{children:n("source-infos.error.info")})]})},n6=()=>v.jsx("div",{className:Wt.loadingSourceInfos,children:v.jsx("svg",{className:Wt.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})})}),r6=()=>{const n=Pa(),r=Jt(l=>l.chat.sourceInfos),i=()=>{n(WA())};return r?v.jsxs("div",{className:Z(Wt.sourceInfos,r.type==="loading"?Wt.loadingContent:""),children:[v.jsx("div",{className:Wt.sourceDetails,children:v.jsx(Z3,{sourceInfos:r.type==="loaded"?r:void 0,onClose:i})}),r.type==="loading"?v.jsx(n6,{}):r.type==="loading-error"?v.jsx(t6,{}):v.jsx(W3,{sourceInfos:r})]}):null},a6="_container_114wy_1",i6="_body_114wy_7",s6="_intro_114wy_14",l6="_footer_114wy_39",o6="_footnote_114wy_43",u6="_containerWithFootnote_114wy_58",c6="_startChatButton_114wy_73",f6="_formFields_114wy_77",h6="_formField_114wy_77",d6="_radio_114wy_89",m6="_checkbox_114wy_96",p6="_input_114wy_104",g6="_inputLabel_114wy_138",y6="_selectWrapper_114wy_142",_6="_select_114wy_142",b6="_selectLabel_114wy_188",ht={container:a6,body:i6,intro:s6,footer:l6,footnote:o6,containerWithFootnote:u6,startChatButton:c6,formFields:f6,formField:h6,radio:d6,checkbox:m6,input:p6,inputLabel:g6,selectWrapper:y6,select:_6,selectLabel:b6},v6=({name:n,label:r,defaultValue:i,required:l,onChange:u})=>{const f=h=>{u(h.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:Z(ht.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[v.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:l,onChange:f}),v.jsx("div",{children:r})]})},E6=({type:n,name:r,label:i,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:_})=>{const E=y=>{_(y.target.value)};return v.jsxs("label",{className:Z(ht.input,"chat__startScreen__input"),htmlFor:r,children:[v.jsx("div",{className:Z(ht.inputLabel),children:i}),v.jsx("input",{type:n,id:r,name:r,defaultValue:l,placeholder:u,required:f,multiple:h,min:d,max:m,pattern:g,onChange:E})]})},S6=({name:n,value:r,label:i,defaultChecked:l,required:u,onChange:f})=>{const h=`${n}-${r}`,d=m=>{f(m.target.value)};return v.jsxs("label",{className:Z(ht.radio,"chat__startScreen__radio"),htmlFor:h,children:[v.jsx("input",{id:h,type:"radio",name:n,value:r,defaultChecked:l,required:u,onChange:d}),v.jsx("span",{className:Z(ht.label),children:i})]})},T6=({name:n,label:r,defaultValue:i,required:l,multiple:u,options:f,onChange:h})=>{const d=m=>{h(m.target.value)};return v.jsxs("label",{className:Z(ht.select,"chat__startScreen__select"),htmlFor:n,children:[v.jsx("div",{className:Z(ht.selectLabel),children:r}),v.jsx("div",{className:Z(ht.selectWrapper),children:v.jsx("select",{id:n,name:n,defaultValue:i,required:l,multiple:u,onChange:d,children:Object.entries(f||{}).map(([m,g])=>v.jsx("option",{value:m,selected:g===i,children:g}))})})]})},x6="start-screen.intro",A6="start-screen.start-chat",O6="start-screen.footnote",un="start-screen.form",f_=`${un}.fields`,w6=()=>{const n=Ke(),r=Pa(),[i,l]=F.useState({}),u=()=>{const E=Object.entries(i).reduce((y,[x,T])=>({...y,[x]:T.value}),{});r(XA(E))},f=n(x6),h=n(A6),d=n(O6),m=F.useMemo(()=>{var E;return((E=n(f_))==null?void 0:E.split(";").map(y=>y.trim()))??[]},[n(f_)]);F.useEffect(()=>{m.length&&Object.keys(i).length===0&&l(m.reduce((E,y)=>({...E,[y]:R6(y,n)}),{}))},[n,m,i]);const g=E=>{E.preventDefault(),u()},_=E=>y=>{l(x=>({...x,[E]:{...x[E],value:y}}))};return v.jsxs("form",{onSubmit:g,className:Z(ht.container,d&&ht.containerWithFootnote,"chat__startScreen"),children:[v.jsxs("div",{className:Z(ht.body,"chat__startScreen__body"),children:[f&&v.jsx("div",{className:Z(ht.intro,"chat__startScreen__intro"),children:v.jsx(En,{options:{overrides:{a:h_}},children:f})}),v.jsx("div",{className:Z(ht.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:E,name:y,label:x,placeholder:T,defaultValue:z,options:N,required:U,multiple:M,min:O,max:R,pattern:S})=>v.jsx("div",{className:Z(ht.formField,"chat__startScreen__field"),children:(()=>{switch(E){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:x}),Object.entries(N||{}).map(([k,Y])=>v.jsx(S6,{name:y,value:k,label:Y,defaultChecked:k===z,required:U,onChange:_(y)}))]});case"checkbox":return v.jsx(v6,{name:y,label:x,defaultValue:z,required:U,onChange:_(y)});case"select":return v.jsx(T6,{name:y,label:x,defaultValue:z,required:U,multiple:M,options:N,onChange:_(y)});default:return v.jsx(E6,{type:E,name:y,label:x,placeholder:T,defaultValue:z,required:U,multiple:M,min:O,max:R,pattern:S,onChange:_(y)})}})()},y))})]}),v.jsxs("div",{className:Z(ht.footer,"chat__startScreen__footer"),children:[v.jsx(os,{type:"submit",className:ht.startChatButton,children:h}),d&&v.jsx("div",{className:ht.footnote,children:v.jsx(En,{options:{overrides:{a:h_}},children:d})})]})]})},h_=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),R6=(n,r)=>{const i=r(`${un}.${n}.type`)||"text",l=r(`${un}.${n}.required`)==="true",u=r(`${un}.${n}.multiple`)==="true",f=r(`${un}.${n}.placeholder`),h=r(`${un}.${n}.label`)||"",d=r(`${un}.${n}.defaultValue`),m=r(`${un}.${n}.min`),g=r(`${un}.${n}.max`),_=r(`${un}.${n}.pattern`),E=N6(r(`${un}.${n}.options`));return{name:n,label:h,placeholder:f,value:C6(i,d,E)||"",defaultValue:d,options:E,type:i,required:l,multiple:u,min:m,max:g,pattern:_}},C6=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",N6=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[l,u]=i.split(":").map(f=>f.trim());return{...r,[l]:u}},{}),D6=()=>{const n=yo();F.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},ka={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"},M6=({clientName:n})=>{D6();const r=Pa(),i=Jt(_=>_.intl.messages),l=Ke(),u=Jt(_=>_.settings.enableStartScreen),f=Jt(_=>_.startScreen.startScreenStatus),[h,d]=F.useState(void 0);F.useEffect(()=>{const _=_o.parse(window.location.search);_.cssClassName&&d(_.cssClassName);const E=y=>{switch(y.data.type){case ka.TRIGGER_ACTION:r(y.data.action);break;case ka.TRIGGER_STORY:r(jb(y.data.story));break;case ka.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case ka.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case ka.CHAT_MESSAGE_FROM_GUEST:r(Rb(y.data.text));break;case ka.RESTART_CHAT:r(To(n,_));break}};return r(tO(n,_)),window.addEventListener("message",y=>E(y),!1),()=>window.removeEventListener("message",E)},[n,r]),F.useEffect(()=>{const _=l("page.title");_&&document&&(document.title=_)},[i,l]);const m=u===void 0,g=u===!1||f==="HIDDEN";return v.jsx("div",{className:Z(c_.chatwindow,g&&c_.chatwindowWithAside,"chat__chatwindow",h),children:m?null:g?v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(u_,{})}),v.jsx("main",{children:v.jsx(x3,{clientName:n})}),v.jsx("aside",{children:v.jsx(r6,{})})]}):v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(u_,{withActions:!1})}),v.jsx("main",{children:v.jsx(w6,{})})]})})},B6=1024,j6=()=>{const n=ed(),r=Jt(f=>f.intl.locale),i=Jt(f=>f.intl.messages),[l,u]=F.useState(d_());return F.useEffect(()=>{const f=()=>{u(d_())};return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),v.jsx(cx,{locale:r,messages:i,children:v.jsx("div",{className:Z([hx.app,l?"chat__large":"chat__small"]),children:v.jsx(M6,{clientName:n})})})},d_=()=>window.innerWidth>=B6;var Df,m_;function nd(){if(m_)return Df;m_=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Df=n,Df}var Mf,p_;function U6(){if(p_)return Mf;p_=1;var n=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol;return Mf=n,Mf}var Bf,g_;function Ov(){if(g_)return Bf;g_=1;var n=U6(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return Bf=i,Bf}var jf,y_;function H6(){if(y_)return jf;y_=1;var n=Ov(),r=function(){return n.Date.now()};return jf=r,jf}var Uf,__;function L6(){if(__)return Uf;__=1;var n=/\s/;function r(i){for(var l=i.length;l--&&n.test(i.charAt(l)););return l}return Uf=r,Uf}var Hf,b_;function z6(){if(b_)return Hf;b_=1;var n=L6(),r=/^\s+/;function i(l){return l&&l.slice(0,n(l)+1).replace(r,"")}return Hf=i,Hf}var Lf,v_;function wv(){if(v_)return Lf;v_=1;var n=Ov(),r=n.Symbol;return Lf=r,Lf}var zf,E_;function k6(){if(E_)return zf;E_=1;var n=wv(),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 zf=f,zf}var kf,S_;function G6(){if(S_)return kf;S_=1;var n=Object.prototype,r=n.toString;function i(l){return r.call(l)}return kf=i,kf}var Gf,T_;function q6(){if(T_)return Gf;T_=1;var n=wv(),r=k6(),i=G6(),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 Gf=h,Gf}var qf,x_;function F6(){if(x_)return qf;x_=1;function n(r){return r!=null&&typeof r=="object"}return qf=n,qf}var Ff,A_;function I6(){if(A_)return Ff;A_=1;var n=q6(),r=F6(),i="[object Symbol]";function l(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Ff=l,Ff}var If,O_;function V6(){if(O_)return If;O_=1;var n=z6(),r=nd(),i=I6(),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 E=f.test(g);return E||h.test(g)?d(g.slice(2),E?2:8):u.test(g)?l:+g}return If=m,If}var Vf,w_;function P6(){if(w_)return Vf;w_=1;var n=nd(),r=H6(),i=V6(),l="Expected a function",u=Math.max,f=Math.min;function h(d,m,g){var _,E,y,x,T,z,N=0,U=!1,M=!1,O=!0;if(typeof d!="function")throw new TypeError(l);m=i(m)||0,n(g)&&(U=!!g.leading,M="maxWait"in g,y=M?u(i(g.maxWait)||0,m):y,O="trailing"in g?!!g.trailing:O);function R(de){var Ie=_,Te=E;return _=E=void 0,N=de,x=d.apply(Te,Ie),x}function S(de){return N=de,T=setTimeout(K,m),U?R(de):x}function k(de){var Ie=de-z,Te=de-N,G=m-Ie;return M?f(G,y-Te):G}function Y(de){var Ie=de-z,Te=de-N;return z===void 0||Ie>=m||Ie<0||M&&Te>=y}function K(){var de=r();if(Y(de))return re(de);T=setTimeout(K,k(de))}function re(de){return T=void 0,O&&_?R(de):(_=E=void 0,x)}function ee(){T!==void 0&&clearTimeout(T),N=0,_=z=E=T=void 0}function le(){return T===void 0?x:re(r())}function ie(){var de=r(),Ie=Y(de);if(_=arguments,E=this,z=de,Ie){if(T===void 0)return S(z);if(M)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 Vf=h,Vf}var Pf,R_;function Y6(){if(R_)return Pf;R_=1;var n=P6(),r=nd(),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 Pf=l,Pf}var Z6=Y6();const X6=po(Z6);function Q6(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function K6(n){return n}function $6(n,r){r=r||{};const i=r.delimiter||".",l=r.maxDepth,u=r.transformKey||K6,f={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(_){const E=d[_],y=r.safe&&Array.isArray(E),x=Object.prototype.toString.call(E),T=Q6(E),z=x==="[object Object]"||x==="[object Array]",N=m?m+i+u(_):u(_);if(!y&&!T&&z&&Object.keys(E).length&&(!r.maxDepth||g<l))return h(E,N,g+1);f[N]=E})}return h(n),f}const Rv={"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.open-source":"Quelle öffnen","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"},J6={"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.open-source":"Open source","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"},W6={"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.open-source":"Ouvrir source","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"},eN={"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.open-source":"Fonte aperta","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"},tN=["de","en","fr","it"],Cv={locale:"de",messages:Rv},nN=(n,r)=>{if(tN.includes(n)){const i=rN(n),l=$6(r);return{...i,...l}}return r},rN=n=>{switch(n.toString()){case"en":return J6;case"fr":return W6;case"it":return eN;default:return Rv}},aN=(n=iN,r)=>{switch(r.type){case Yh:return Object.assign({},n,{connectionState:Kr.CONNECTING});case Zh:return Object.assign({},n,{connectionState:Kr.CONNECTED});case Xh:return Object.assign({},n,{connectionState:Kr.DISCONNECTED});case Qh:return Object.assign({},n,{connectionState:Kr.RECONNECTED});default:return n}},iN={connectionState:Kr.DISCONNECTED},ct=[];for(let n=0;n<256;++n)ct.push((n+256).toString(16).slice(1));function sN(n,r=0){return(ct[n[r+0]]+ct[n[r+1]]+ct[n[r+2]]+ct[n[r+3]]+"-"+ct[n[r+4]]+ct[n[r+5]]+"-"+ct[n[r+6]]+ct[n[r+7]]+"-"+ct[n[r+8]]+ct[n[r+9]]+"-"+ct[n[r+10]]+ct[n[r+11]]+ct[n[r+12]]+ct[n[r+13]]+ct[n[r+14]]+ct[n[r+15]]).toLowerCase()}let Yf;const lN=new Uint8Array(16);function oN(){if(!Yf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Yf=crypto.getRandomValues.bind(crypto)}return Yf(lN)}const uN=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),C_={randomUUID:uN};function cN(n,r,i){var u;if(C_.randomUUID&&!n)return C_.randomUUID();n=n||{};const l=n.random??((u=n.rng)==null?void 0:u.call(n))??oN();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,sN(l)}const fN=(n=D_,r)=>{var i;switch(r.type){case Qb:return D_;case Kh:return Zr({type:"webclient.chat.started"}),n;case Kb:return Zr({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 N_(n,r.message);case Ee.ActionTypes.MESSAGE_TO_GUEST:{Zr(r);const l=Object.assign({},r.message,{_id:r.meta.actionId}),u=n.messages.filter(f=>f._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:u?n.messages:n.messages.concat([l]),quickReplies:l.quickReplies?l.quickReplies:[]})}case Uh:{const l=r.messages,u=l.length?l[l.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:l,quickReplies:(u==null?void 0:u.quickReplies)||[]})}case jh:return Zr(r.message),n;case Ee.ActionTypes.EVENT_TO_GUEST:return Zr(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 Db:return Zr(r),n;case Mb:return Zr(r),n;case Lh:{const l=new Ee.TextMessage(r.transcription,new Ee.GuestUser),u=Object.assign({},l,{_id:cN()});return N_(n,u)}case Ee.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const l=n.messages.map(u=>u._id===r.payload.actionId?Object.assign({},u,{reaction:r.payload.reaction}):u);return Object.assign({},n,{messages:l})}case zh:{const l={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:l})}case Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const l={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:l})}case kh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Nb:return{...n,sourceInfos:{type:"loading-error"}};case Cb:return((i=n.sourceInfos)==null?void 0:i.type)==="loading"?{...n,sourceInfos:{type:"loaded",chunkId:r.payload.chunkId,knowledgeBaseType:r.payload.knowledgeBaseType,title:r.payload.title,content:r.payload.content,url:r.payload.url}}:n;case Gh:return{...n,sourceInfos:void 0};default:return n}},N_=(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:[]})},Zr=n=>{var r;hN()?(r=window.top)==null||r.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},hN=()=>typeof window<"u"&&window.self!==window.top,D_={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},Nv=Vh({name:"intl",initialState:Cv,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:dN}=Nv.actions,mN=Nv.reducer,pN={enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},Dv=Vh({name:"settings",initialState:pN,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:gN}=Dv.actions,yN=Dv.reducer,_N=Lb({settings:yN,chat:fN,startScreen:KA,connection:aN,intl:mN}),bN="bubble-chat",Mv="state-last-saved-at",Bv="state",vN=n=>{try{if(!TN())return;const r=M_(n,Mv);if(SN(r))return;{const i=M_(n,Bv);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},EN=(n,r)=>{try{const i=JSON.stringify(r);B_(n,Bv,i);const l=new Date().toISOString();B_(n,Mv,l)}catch(i){console.error(i)}},SN=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},TN=()=>typeof localStorage<"u",M_=(n,r)=>{const i=jv(n,r);return localStorage.getItem(i)},B_=(n,r,i)=>{const l=jv(n,r);return localStorage.setItem(l,i)},jv=(n,r)=>`${bN}-${n}-${r}`,xn=Object.create(null);xn.open="0";xn.close="1";xn.ping="2";xn.pong="3";xn.message="4";xn.upgrade="5";xn.noop="6";const no=Object.create(null);Object.keys(xn).forEach(n=>{no[xn[n]]=n});const _h={type:"error",data:"parser error"},Uv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Hv=typeof ArrayBuffer=="function",Lv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,rd=({type:n,data:r},i,l)=>Uv&&r instanceof Blob?i?l(r):j_(r,l):Hv&&(r instanceof ArrayBuffer||Lv(r))?i?l(r):j_(new Blob([r]),l):l(xn[n]+(r||"")),j_=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function U_(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Zf;function xN(n,r){if(Uv&&n.data instanceof Blob)return n.data.arrayBuffer().then(U_).then(r);if(Hv&&(n.data instanceof ArrayBuffer||Lv(n.data)))return r(U_(n.data));rd(n,!1,i=>{Zf||(Zf=new TextEncoder),r(Zf.encode(i))})}const H_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<H_.length;n++)rs[H_.charCodeAt(n)]=n;const AN=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=rs[n.charCodeAt(l)],h=rs[n.charCodeAt(l+1)],d=rs[n.charCodeAt(l+2)],m=rs[n.charCodeAt(l+3)],_[u++]=f<<2|h>>4,_[u++]=(h&15)<<4|d>>2,_[u++]=(d&3)<<6|m&63;return g},ON=typeof ArrayBuffer=="function",ad=(n,r)=>{if(typeof n!="string")return{type:"message",data:zv(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:wN(n.substring(1),r)}:no[i]?n.length>1?{type:no[i],data:n.substring(1)}:{type:no[i]}:_h},wN=(n,r)=>{if(ON){const i=AN(n);return zv(i,r)}else return{base64:!0,data:n}},zv=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},kv="",RN=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((f,h)=>{rd(f,!1,d=>{l[h]=d,++u===i&&r(l.join(kv))})})},CN=(n,r)=>{const i=n.split(kv),l=[];for(let u=0;u<i.length;u++){const f=ad(i[u],r);if(l.push(f),f.type==="error")break}return l};function NN(){return new TransformStream({transform(n,r){xN(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 Xf;function Jl(n){return n.reduce((r,i)=>r+i.length,0)}function Wl(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 DN(n,r){Xf||(Xf=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(Jl(i)<1)break;const m=Wl(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(Jl(i)<2)break;const m=Wl(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),l=3}else if(l===2){if(Jl(i)<8)break;const m=Wl(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),_=g.getUint32(0);if(_>Math.pow(2,21)-1){d.enqueue(_h);break}u=_*Math.pow(2,32)+g.getUint32(4),l=3}else{if(Jl(i)<u)break;const m=Wl(i,u);d.enqueue(ad(f?m:Xf.decode(m),r)),l=0}if(u===0||u>n){d.enqueue(_h);break}}}})}const Gv=4;function et(n){if(n)return MN(n)}function MN(n){for(var r in et.prototype)n[r]=et.prototype[r];return n}et.prototype.on=et.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};et.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};et.prototype.off=et.prototype.removeListener=et.prototype.removeAllListeners=et.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};et.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};et.prototype.emitReserved=et.prototype.emit;et.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};et.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Oo=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),$t=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),BN="arraybuffer";function qv(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const jN=$t.setTimeout,UN=$t.clearTimeout;function wo(n,r){r.useNativeTimers?(n.setTimeoutFn=jN.bind($t),n.clearTimeoutFn=UN.bind($t)):(n.setTimeoutFn=$t.setTimeout.bind($t),n.clearTimeoutFn=$t.clearTimeout.bind($t))}const HN=1.33;function LN(n){return typeof n=="string"?zN(n):Math.ceil((n.byteLength||n.size)*HN)}function zN(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 Fv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function kN(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function GN(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 qN extends Error{constructor(r,i,l){super(r),this.description=i,this.context=l,this.type="TransportError"}}class id extends et{constructor(r){super(),this.writable=!1,wo(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 qN(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=ad(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=kN(r);return i.length?"?"+i:""}}class FN extends id{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)};CN(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,RN(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]=Fv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let Iv=!1;try{Iv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const IN=Iv;function VN(){}class PN extends FN{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 Sn extends et{constructor(r,i,l){super(),this.createRequest=r,wo(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=qv(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=Sn.requestsCount++,Sn.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=VN,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Sn.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()}}Sn.requestsCount=0;Sn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",L_);else if(typeof addEventListener=="function"){const n="onpagehide"in $t?"pagehide":"unload";addEventListener(n,L_,!1)}}function L_(){for(let n in Sn.requests)Sn.requests.hasOwnProperty(n)&&Sn.requests[n].abort()}const YN=function(){const n=Vv({xdomain:!1});return n&&n.responseType!==null}();class ZN extends PN{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=YN&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Sn(Vv,this.uri(),r)}}function Vv(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||IN))return new XMLHttpRequest}catch{}if(!r)try{return new $t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Pv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class XN extends id{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=Pv?{}:qv(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;rd(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}u&&Oo(()=>{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]=Fv()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Qf=$t.WebSocket||$t.MozWebSocket;class QN extends XN{createSocket(r,i,l){return Pv?new Qf(r,i,l):i?new Qf(r,i):new Qf(r)}doWrite(r,i){this.ws.send(i)}}class KN extends id{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=DN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=NN();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&&Oo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const $N={websocket:QN,webtransport:KN,polling:ZN},JN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,WN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function bh(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=JN.exec(n||""),f={},h=14;for(;h--;)f[WN[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=e4(f,f.path),f.queryKey=t4(f,f.query),f}function e4(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 t4(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,f){u&&(i[u]=f)}),i}const vh=typeof addEventListener=="function"&&typeof removeEventListener=="function",ro=[];vh&&addEventListener("offline",()=>{ro.forEach(n=>n())},!1);class Er extends et{constructor(r,i){if(super(),this.binaryType=BN,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=bh(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=bh(i.host).host);wo(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=GN(this.opts.query)),vh&&(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"})},ro.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=Gv,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&&Er.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",Er.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+=LN(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,Oo(()=>{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(Er.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(),vh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=ro.indexOf(this._offlineEventListener);l!==-1&&ro.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}Er.protocol=Gv;class n4 extends Er{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;Er.priorWebsocketSuccess=!1;const u=()=>{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",E=>{if(!l)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Er.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=E=>{const y=new Error("probe error: "+E);y.transport=i.name,f(),this.emitReserved("upgradeError",y)};function d(){h("transport closed")}function m(){h("socket closed")}function g(E){i&&E.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 r4=class extends n4{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=>$N[u]).filter(u=>!!u)),super(r,l)}};function a4(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=bh(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 i4=typeof ArrayBuffer=="function",s4=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Yv=Object.prototype.toString,l4=typeof Blob=="function"||typeof Blob<"u"&&Yv.call(Blob)==="[object BlobConstructor]",o4=typeof File=="function"||typeof File<"u"&&Yv.call(File)==="[object FileConstructor]";function sd(n){return i4&&(n instanceof ArrayBuffer||s4(n))||l4&&n instanceof Blob||o4&&n instanceof File}function ao(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)if(ao(n[i]))return!0;return!1}if(sd(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ao(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&ao(n[i]))return!0;return!1}function u4(n){const r=[],i=n.data,l=n;return l.data=Eh(i,r),l.attachments=r.length,{packet:l,buffers:r}}function Eh(n,r){if(!n)return n;if(sd(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]=Eh(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]=Eh(n[l],r));return i}return n}function c4(n,r){return n.data=Sh(n.data,r),delete n.attachments,n}function Sh(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]=Sh(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Sh(n[i],r));return n}const f4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],h4=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 d4{constructor(r){this.replacer=r}encode(r){return(r.type===Ae.EVENT||r.type===Ae.ACK)&&ao(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=u4(r),l=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(l),u}}function z_(n){return Object.prototype.toString.call(n)==="[object Object]"}class ld extends et{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 m4(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(sd(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(ld.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 z_(i);case Ae.DISCONNECT:return i===void 0;case Ae.CONNECT_ERROR:return typeof i=="string"||z_(i);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&f4.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 m4{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=c4(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const p4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ld,Encoder:d4,get PacketType(){return Ae},protocol:h4},Symbol.toStringTag,{value:"Module"}));function cn(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const g4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Zv extends et{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=[cn(r,"open",this.onopen.bind(this)),cn(r,"packet",this.onpacket.bind(this)),cn(r,"error",this.onerror.bind(this)),cn(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(g4.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++,E=i.pop();this._registerAckCallback(_,E),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 Ya(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}Ya.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};Ya.prototype.reset=function(){this.attempts=0};Ya.prototype.setMin=function(n){this.ms=n};Ya.prototype.setMax=function(n){this.max=n};Ya.prototype.setJitter=function(n){this.jitter=n};class Th extends et{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,wo(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 Ya({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||p4;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 r4(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=cn(i,"open",function(){l.onopen(),r&&r()}),f=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=cn(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(cn(r,"ping",this.onping.bind(this)),cn(r,"data",this.ondata.bind(this)),cn(r,"error",this.onerror.bind(this)),cn(r,"close",this.onclose.bind(this)),cn(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){Oo(()=>{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 Zv(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 es={};function io(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=a4(n,r.path||"/socket.io"),l=i.source,u=i.id,f=i.path,h=es[u]&&f in es[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new Th(l,r):(es[u]||(es[u]=new Th(l,r)),m=es[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(io,{Manager:Th,Socket:Zv,io,connect:io});const y4=[Ee.ActionTypes.MESSAGE_TO_GUEST,Ee.ActionTypes.EVENT_TO_GUEST,Ee.ActionTypes.TYPING_ON,Ee.ActionTypes.TYPING_OFF,Ee.ActionTypes.RESTART_CHAT_REQUEST,...eO,...nA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],_4=({dispatch:n})=>r=>{let i=null;return l=>{const u=r(l);if(l.type===Ph){i!=null&&i.disconnect(),n(nO());const f=`/chat?${_o.stringify(l.querystrings)}`;i=io(`/${l.clientName}${f}`),i.on("action",n),i.on("connect",()=>n(rO())),i.on("disconnect",()=>n(aO())),i.on("reconnect",()=>n(iO())),i.on("set-translations",(h,d)=>{n(dN({language:h,messages:nN(h,d)}))}),i.on("set-settings",h=>{n(gN(h))}),i.on("enable-conversation-rating",h=>n(lA(h))),i.on("speech-transcription",h=>n(aA(h))),i.on("restore-client-state",h=>{n(uA(h.messages))}),i.on("expand-window",({devices:h,initial:d=!1})=>{n({type:Db,devices:h,initial:d})}),i.on("restart-chat",()=>{n(To(l.clientName,l.querystrings))})}else if(l.type===Kh)i==null||i.emit("start-chat",l.payload);else if(l.type===Kb)i==null||i.emit("terminate-session",l.payload);else if(l.type===tA)i==null||i.emit("get-started",JSON.stringify(l));else if(l.type===Hh)i==null||i.emit("audio-message",l.buffer);else if(l.type===Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST)i==null||i.emit("conversation-rating",l.payload);else if(l.type===Bb){const{clientName:f}=l.payload;window.location.href=`/${f}/transcript-pdf`}else y4.indexOf(l.type)===-1&&l.meta===void 0&&i&&i.emit("action",JSON.stringify(l));return u}},Xv=Tv(),b4={...vN(Xv),intl:Cv},xh=UA({middleware:n=>n().concat(_4),reducer:_N,preloadedState:b4});xh.subscribe(X6(()=>{const n=xh.getState();EN(Xv,{connection:n.connection,startScreen:n.startScreen})},1e3));const v4=document.getElementById("root"),E4=R2.createRoot(v4);E4.render(v.jsx(AS,{store:xh,children:v.jsx(j6,{})}));
|
|
119
|
-
//# sourceMappingURL=index-RvyNofo4.js.map
|