@botfabrik/engine-webclient 4.96.21 → 4.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,124 +0,0 @@
1
- (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Df={exports:{}},Bs={};/**
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 Mg;function MS(){if(Mg)return Bs;Mg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,u,c){var d=null;if(c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),"key"in u){c={};for(var h in u)h!=="key"&&(c[h]=u[h])}else c=u;return u=c.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:c}}return Bs.Fragment=r,Bs.jsx=i,Bs.jsxs=i,Bs}var Dg;function DS(){return Dg||(Dg=1,Df.exports=MS()),Df.exports}var v=DS(),Bf={exports:{}},Ls={},Lf={exports:{}},Uf={};/**
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 Bg;function BS(){return Bg||(Bg=1,function(n){function r(G,K){var ee=G.length;G.push(K);e:for(;0<ee;){var Te=ee-1>>>1,O=G[Te];if(0<u(O,K))G[Te]=K,G[ee]=O,ee=Te;else break e}}function i(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var K=G[0],ee=G.pop();if(ee!==K){G[0]=ee;e:for(var Te=0,O=G.length,k=O>>>1;Te<k;){var W=2*(Te+1)-1,Y=G[W],te=W+1,re=G[te];if(0>u(Y,ee))te<O&&0>u(re,Y)?(G[Te]=re,G[te]=ee,Te=te):(G[Te]=Y,G[W]=ee,Te=W);else if(te<O&&0>u(re,ee))G[Te]=re,G[te]=ee,Te=te;else break e}}return K}function u(G,K){var ee=G.sortIndex-K.sortIndex;return ee!==0?ee:G.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],g=[],y=1,E=null,x=3,L=!1,R=!1,F=!1,z=!1,_=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function I(G){for(var K=i(g);K!==null;){if(K.callback===null)s(g);else if(K.startTime<=G)s(g),K.sortIndex=K.expirationTime,r(m,K);else break;K=i(g)}}function A(G){if(F=!1,I(G),!R)if(i(m)!==null)R=!0,Z||(Z=!0,me());else{var K=i(g);K!==null&&be(A,K.startTime-G)}}var Z=!1,$=-1,ae=5,ge=-1;function Ee(){return z?!0:!(n.unstable_now()-ge<ae)}function se(){if(z=!1,Z){var G=n.unstable_now();ge=G;var K=!0;try{e:{R=!1,F&&(F=!1,w($),$=-1),L=!0;var ee=x;try{t:{for(I(G),E=i(m);E!==null&&!(E.expirationTime>G&&Ee());){var Te=E.callback;if(typeof Te=="function"){E.callback=null,x=E.priorityLevel;var O=Te(E.expirationTime<=G);if(G=n.unstable_now(),typeof O=="function"){E.callback=O,I(G),K=!0;break t}E===i(m)&&s(m),I(G)}else s(m);E=i(m)}if(E!==null)K=!0;else{var k=i(g);k!==null&&be(A,k.startTime-G),K=!1}}break e}finally{E=null,x=ee,L=!1}K=void 0}}finally{K?me():Z=!1}}}var me;if(typeof S=="function")me=function(){S(se)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Pe=ce.port2;ce.port1.onmessage=se,me=function(){Pe.postMessage(null)}}else me=function(){_(se,0)};function be(G,K){$=_(function(){G(n.unstable_now())},K)}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"):ae=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(G){switch(x){case 1:case 2:case 3:var K=3;break;default:K=x}var ee=x;x=K;try{return G()}finally{x=ee}},n.unstable_requestPaint=function(){z=!0},n.unstable_runWithPriority=function(G,K){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ee=x;x=G;try{return K()}finally{x=ee}},n.unstable_scheduleCallback=function(G,K,ee){var Te=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Te+ee:Te):ee=Te,G){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=ee+O,G={id:y++,callback:K,priorityLevel:G,startTime:ee,expirationTime:O,sortIndex:-1},ee>Te?(G.sortIndex=ee,r(g,G),i(m)===null&&G===i(g)&&(F?(w($),$=-1):F=!0,be(A,ee-Te))):(G.sortIndex=O,r(m,G),R||L||(R=!0,Z||(Z=!0,me()))),G},n.unstable_shouldYield=Ee,n.unstable_wrapCallback=function(G){var K=x;return function(){var ee=x;x=K;try{return G.apply(this,arguments)}finally{x=ee}}}}(Uf)),Uf}var Lg;function LS(){return Lg||(Lg=1,Lf.exports=BS()),Lf.exports}var Hf={exports:{}},ve={};/**
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 Ug;function US(){if(Ug)return ve;Ug=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,F={};function z(O,k,W){this.props=O,this.context=k,this.refs=F,this.updater=W||L}z.prototype.isReactComponent={},z.prototype.setState=function(O,k){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,k,"setState")},z.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=z.prototype;function w(O,k,W){this.props=O,this.context=k,this.refs=F,this.updater=W||L}var S=w.prototype=new _;S.constructor=w,R(S,z.prototype),S.isPureReactComponent=!0;var I=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function $(O,k,W,Y,te,re){return W=re.ref,{$$typeof:n,type:O,key:k,ref:W!==void 0?W:null,props:re}}function ae(O,k){return $(O.type,k,void 0,void 0,void 0,O.props)}function ge(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function Ee(O){var k={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(W){return k[W]})}var se=/\/+/g;function me(O,k){return typeof O=="object"&&O!==null&&O.key!=null?Ee(""+O.key):k.toString(36)}function ce(){}function Pe(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ce,ce):(O.status="pending",O.then(function(k){O.status==="pending"&&(O.status="fulfilled",O.value=k)},function(k){O.status==="pending"&&(O.status="rejected",O.reason=k)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function be(O,k,W,Y,te){var re=typeof O;(re==="undefined"||re==="boolean")&&(O=null);var ue=!1;if(O===null)ue=!0;else switch(re){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(O.$$typeof){case n:case r:ue=!0;break;case y:return ue=O._init,be(ue(O._payload),k,W,Y,te)}}if(ue)return te=te(O),ue=Y===""?"."+me(O,0):Y,I(te)?(W="",ue!=null&&(W=ue.replace(se,"$&/")+"/"),be(te,k,W,"",function(_t){return _t})):te!=null&&(ge(te)&&(te=ae(te,W+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(se,"$&/")+"/")+ue)),k.push(te)),1;ue=0;var $e=Y===""?".":Y+":";if(I(O))for(var Ue=0;Ue<O.length;Ue++)Y=O[Ue],re=$e+me(Y,Ue),ue+=be(Y,k,W,re,te);else if(Ue=x(O),typeof Ue=="function")for(O=Ue.call(O),Ue=0;!(Y=O.next()).done;)Y=Y.value,re=$e+me(Y,Ue++),ue+=be(Y,k,W,re,te);else if(re==="object"){if(typeof O.then=="function")return be(Pe(O),k,W,Y,te);throw k=String(O),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ue}function G(O,k,W){if(O==null)return O;var Y=[],te=0;return be(O,Y,"","",function(re){return k.call(W,re,te++)}),Y}function K(O){if(O._status===-1){var k=O._result;k=k(),k.then(function(W){(O._status===0||O._status===-1)&&(O._status=1,O._result=W)},function(W){(O._status===0||O._status===-1)&&(O._status=2,O._result=W)}),O._status===-1&&(O._status=0,O._result=k)}if(O._status===1)return O._result.default;throw O._result}var ee=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function Te(){}return ve.Children={map:G,forEach:function(O,k,W){G(O,function(){k.apply(this,arguments)},W)},count:function(O){var k=0;return G(O,function(){k++}),k},toArray:function(O){return G(O,function(k){return k})||[]},only:function(O){if(!ge(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},ve.Component=z,ve.Fragment=i,ve.Profiler=u,ve.PureComponent=w,ve.StrictMode=s,ve.Suspense=m,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,ve.__COMPILER_RUNTIME={__proto__:null,c:function(O){return A.H.useMemoCache(O)}},ve.cache=function(O){return function(){return O.apply(null,arguments)}},ve.cloneElement=function(O,k,W){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var Y=R({},O.props),te=O.key,re=void 0;if(k!=null)for(ue in k.ref!==void 0&&(re=void 0),k.key!==void 0&&(te=""+k.key),k)!Z.call(k,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&k.ref===void 0||(Y[ue]=k[ue]);var ue=arguments.length-2;if(ue===1)Y.children=W;else if(1<ue){for(var $e=Array(ue),Ue=0;Ue<ue;Ue++)$e[Ue]=arguments[Ue+2];Y.children=$e}return $(O.type,te,void 0,void 0,re,Y)},ve.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},ve.createElement=function(O,k,W){var Y,te={},re=null;if(k!=null)for(Y in k.key!==void 0&&(re=""+k.key),k)Z.call(k,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=k[Y]);var ue=arguments.length-2;if(ue===1)te.children=W;else if(1<ue){for(var $e=Array(ue),Ue=0;Ue<ue;Ue++)$e[Ue]=arguments[Ue+2];te.children=$e}if(O&&O.defaultProps)for(Y in ue=O.defaultProps,ue)te[Y]===void 0&&(te[Y]=ue[Y]);return $(O,re,void 0,void 0,null,te)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(O){return{$$typeof:h,render:O}},ve.isValidElement=ge,ve.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:K}},ve.memo=function(O,k){return{$$typeof:g,type:O,compare:k===void 0?null:k}},ve.startTransition=function(O){var k=A.T,W={};A.T=W;try{var Y=O(),te=A.S;te!==null&&te(W,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Te,ee)}catch(re){ee(re)}finally{A.T=k}},ve.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},ve.use=function(O){return A.H.use(O)},ve.useActionState=function(O,k,W){return A.H.useActionState(O,k,W)},ve.useCallback=function(O,k){return A.H.useCallback(O,k)},ve.useContext=function(O){return A.H.useContext(O)},ve.useDebugValue=function(){},ve.useDeferredValue=function(O,k){return A.H.useDeferredValue(O,k)},ve.useEffect=function(O,k,W){var Y=A.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(O,k)},ve.useId=function(){return A.H.useId()},ve.useImperativeHandle=function(O,k,W){return A.H.useImperativeHandle(O,k,W)},ve.useInsertionEffect=function(O,k){return A.H.useInsertionEffect(O,k)},ve.useLayoutEffect=function(O,k){return A.H.useLayoutEffect(O,k)},ve.useMemo=function(O,k){return A.H.useMemo(O,k)},ve.useOptimistic=function(O,k){return A.H.useOptimistic(O,k)},ve.useReducer=function(O,k,W){return A.H.useReducer(O,k,W)},ve.useRef=function(O){return A.H.useRef(O)},ve.useState=function(O){return A.H.useState(O)},ve.useSyncExternalStore=function(O,k,W){return A.H.useSyncExternalStore(O,k,W)},ve.useTransition=function(){return A.H.useTransition()},ve.version="19.1.1",ve}var Hg;function su(){return Hg||(Hg=1,Hf.exports=US()),Hf.exports}var jf={exports:{}},Bt={};/**
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 jg;function HS(){if(jg)return Bt;jg=1;var n=su();function r(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}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 s={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 c(m,g,y){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:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Bt.createPortal=function(m,g){var y=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 c(m,g,null,y)},Bt.flushSync=function(m){var g=d.T,y=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=g,s.p=y,s.d.f()}},Bt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},Bt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Bt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,E=h(y,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,L=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:x,fetchPriority:L}):y==="script"&&s.d.X(m,{crossOrigin:E,integrity:x,fetchPriority:L,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Bt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},Bt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,E=h(y,g.crossOrigin);s.d.L(m,y,{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})}},Bt.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},Bt.requestFormReset=function(m){s.d.r(m)},Bt.unstable_batchedUpdates=function(m,g){return m(g)},Bt.useFormState=function(m,g,y){return d.H.useFormState(m,g,y)},Bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Bt.version="19.1.1",Bt}var Ig;function jS(){if(Ig)return jf.exports;Ig=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(),jf.exports=HS(),jf.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 zg;function IS(){if(zg)return Ls;zg=1;var n=LS(),r=su(),i=jS();function s(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 c(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 d(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 h(e){if(c(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return h(o),e;if(f===l)return h(o),t;f=f.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=f;else{for(var p=!1,b=o.child;b;){if(b===a){p=!0,a=o,l=f;break}if(b===l){p=!0,l=o,a=f;break}b=b.sibling}if(!p){for(b=f.child;b;){if(b===a){p=!0,a=f,l=o;break}if(b===l){p=!0,l=f,a=o;break}b=b.sibling}if(!p)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(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 y=Object.assign,E=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),S=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),Ee=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case z:return"Profiler";case F:return"StrictMode";case A:return"Suspense";case Z:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case S:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:Pe(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return Pe(e(t))}catch{}}return null}var be=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Te=[],O=-1;function k(e){return{current:e}}function W(e){0>O||(e.current=Te[O],Te[O]=null,O--)}function Y(e,t){O++,Te[O]=e.current,e.current=t}var te=k(null),re=k(null),ue=k(null),$e=k(null);function Ue(e,t){switch(Y(ue,t),Y(re,e),Y(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ig(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ig(t),e=sg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(te),Y(te,e)}function _t(){W(te),W(re),W(ue)}function zn(e){e.memoizedState!==null&&Y($e,e);var t=te.current,a=sg(t,e.type);t!==a&&(Y(re,e),Y(te,a))}function Cr(e){re.current===e&&(W(te),W(re)),$e.current===e&&(W($e),ws._currentValue=ee)}var Ze=Object.prototype.hasOwnProperty,kt=n.unstable_scheduleCallback,xn=n.unstable_cancelCallback,Di=n.unstable_shouldYield,Bi=n.unstable_requestPaint,Et=n.unstable_now,qa=n.unstable_getCurrentPriorityLevel,oa=n.unstable_ImmediatePriority,Li=n.unstable_UserBlockingPriority,ua=n.unstable_NormalPriority,Tu=n.unstable_LowPriority,Fa=n.unstable_IdlePriority,ca=n.log,Nr=n.unstable_setDisableYieldValue,fn=null,wt=null;function On(e){if(typeof ca=="function"&&Nr(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(fn,e)}catch{}}var Ct=Math.clz32?Math.clz32:Va,Ui=Math.log,rl=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(Ui(e)/rl|0)|0}var tr=256,qt=4194304;function Ft(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 Mr(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~f,l!==0?o=Ft(l):(p&=b,p!==0?o=Ft(p):a||(a=b&~e,a!==0&&(o=Ft(a))))):(b=l&~f,b!==0?o=Ft(b):p!==0?o=Ft(p):a||(a=l&~e,a!==0&&(o=Ft(a)))),o===0?0:t!==0&&t!==o&&(t&f)===0&&(f=o&-o,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:o}function nr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Au(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 fa(){var e=tr;return tr<<=1,(tr&4194048)===0&&(tr=256),e}function da(){var e=qt;return qt<<=1,(qt&62914560)===0&&(qt=4194304),e}function Hi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xu(e,t,a,l,o,f){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,T=e.expirationTimes,B=e.hiddenUpdates;for(a=p&~a;0<a;){var q=31-Ct(a),P=1<<q;b[q]=0,T[q]=-1;var U=B[q];if(U!==null)for(B[q]=null,q=0;q<U.length;q++){var j=U[q];j!==null&&(j.lane&=-536870913)}a&=~P}l!==0&&al(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(p&~t))}function al(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function nt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Ct(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function Gn(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 ji(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ii(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:xg(e.type))}function zi(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var wn=Math.random().toString(36).slice(2),ft="__reactFiber$"+wn,Nt="__reactProps$"+wn,St="__reactContainer$"+wn,kn="__reactEvents$"+wn,il="__reactListeners$"+wn,sl="__reactHandles$"+wn,Pa="__reactResources$"+wn,Dr="__reactMarker$"+wn;function Qt(e){delete e[ft],delete e[Nt],delete e[kn],delete e[il],delete e[sl]}function rr(e){var t=e[ft];if(t)return t;for(var a=e.parentNode;a;){if(t=a[St]||a[ft]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=cg(e);e!==null;){if(a=e[ft])return a;e=cg(e)}return t}e=a,a=e.parentNode}return null}function ar(e){if(e=e[ft]||e[St]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Br(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ir(e){var t=e[Pa];return t||(t=e[Pa]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[Dr]=!0}var le=new Set,N={};function X(e,t){J(e,t),J(e+"Capture",t)}function J(e,t){for(N[e]=t,e=0;e<t.length;e++)le.add(t[e])}var Fe=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]*$"),dt={},We={};function Mt(e){return Ze.call(We,e)?!0:Ze.call(dt,e)?!1:Fe.test(e)?We[e]=!0:(dt[e]=!0,!1)}function Vt(e,t,a){if(Mt(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function qn(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 Kt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var st,Gi;function sr(e){if(st===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);st=t&&t[1]||"",Gi=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+st+e+Gi}var Ou=!1;function Ru(e,t){if(!e||Ou)return"";Ou=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(j){var U=j}Reflect.construct(e,[],P)}else{try{P.call()}catch(j){U=j}e.call(P.prototype)}}else{try{throw Error()}catch(j){U=j}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(j){if(j&&U&&typeof j.stack=="string")return[j.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),p=f[0],b=f[1];if(p&&b){var T=p.split(`
44
- `),B=b.split(`
45
- `);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===B.length)for(l=T.length-1,o=B.length-1;1<=l&&0<=o&&T[l]!==B[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==B[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==B[o]){var q=`
46
- `+T[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=o);break}}}finally{Ou=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?sr(a):""}function x_(e){switch(e.tag){case 26:case 27:case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 15:return Ru(e.type,!1);case 11:return Ru(e.type.render,!1);case 1:return Ru(e.type,!0);case 31:return sr("Activity");default:return""}}function Jh(e){try{var t="";do t+=x_(e),e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}function dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function em(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function O_(e){var t=em(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){l=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(p){l=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ll(e){e._valueTracker||(e._valueTracker=O_(e))}function tm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=em(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ol(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 R_=/[\n"\\]/g;function hn(e){return e.replace(R_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wu(e,t,a,l,o,f,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=""+dn(t)):e.value!==""+dn(t)&&(e.value=""+dn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Cu(e,p,dn(t)):a!=null?Cu(e,p,dn(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+dn(b):e.removeAttribute("name")}function nm(e,t,a,l,o,f,p,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+dn(a):"",t=t!=null?""+dn(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function Cu(e,t,a){t==="number"&&ol(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ya(e,t,a,l){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&&l&&(e[a].defaultSelected=!0)}else{for(a=""+dn(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function rm(e,t,a){if(t!=null&&(t=""+dn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+dn(a):""}function am(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(be(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=dn(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Xa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var w_=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 im(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||w_.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function sm(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&im(e,o,l)}else for(var f in t)t.hasOwnProperty(f)&&im(e,f,t[f])}function Nu(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 C_=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"]]),N_=/^[\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 ul(e){return N_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Mu=null;function Du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,Qa=null;function lm(e){var t=ar(e);if(t&&(e=t.stateNode)){var a=e[Nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(wu(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="'+hn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[Nt]||null;if(!o)throw Error(s(90));wu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&tm(l)}break e;case"textarea":rm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ya(e,!!a.multiple,t,!1)}}}var Bu=!1;function om(e,t,a){if(Bu)return e(t,a);Bu=!0;try{var l=e(t);return l}finally{if(Bu=!1,(Za!==null||Qa!==null)&&(Zl(),Za&&(t=Za,e=Qa,Qa=Za=null,lm(t),e)))for(t=0;t<e.length;t++)lm(e[t])}}function ki(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Nt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lu=!1;if(lr)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Lu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Lu=!1}var Lr=null,Uu=null,cl=null;function um(){if(cl)return cl;var e,t=Uu,a=t.length,l,o="value"in Lr?Lr.value:Lr.textContent,f=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(l=1;l<=p&&t[a-l]===o[f-l];l++);return cl=o.slice(e,1<l?1-l:void 0)}function fl(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 dl(){return!0}function cm(){return!1}function Pt(e){function t(a,l,o,f,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(a=e[b],this[b]=a?a(f):f[b]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?dl:cm,this.isPropagationStopped=cm,this}return y(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=dl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),t}var ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hl=Pt(ha),Fi=y({},ha,{view:0,detail:0}),M_=Pt(Fi),Hu,ju,Vi,ml=y({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,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!==Vi&&(Vi&&e.type==="mousemove"?(Hu=e.screenX-Vi.screenX,ju=e.screenY-Vi.screenY):ju=Hu=0,Vi=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:ju}}),fm=Pt(ml),D_=y({},ml,{dataTransfer:0}),B_=Pt(D_),L_=y({},Fi,{relatedTarget:0}),Iu=Pt(L_),U_=y({},ha,{animationName:0,elapsedTime:0,pseudoElement:0}),H_=Pt(U_),j_=y({},ha,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I_=Pt(j_),z_=y({},ha,{data:0}),dm=Pt(z_),G_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k_={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"},q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=q_[e])?!!t[e]:!1}function zu(){return F_}var V_=y({},Fi,{key:function(e){if(e.key){var t=G_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?k_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,charCode:function(e){return e.type==="keypress"?fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),P_=Pt(V_),Y_=y({},ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hm=Pt(Y_),X_=y({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),Z_=Pt(X_),Q_=y({},ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),K_=Pt(Q_),$_=y({},ml,{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}),W_=Pt($_),J_=y({},ha,{newState:0,oldState:0}),eE=Pt(J_),tE=[9,13,27,32],Gu=lr&&"CompositionEvent"in window,Pi=null;lr&&"documentMode"in document&&(Pi=document.documentMode);var nE=lr&&"TextEvent"in window&&!Pi,mm=lr&&(!Gu||Pi&&8<Pi&&11>=Pi),pm=" ",gm=!1;function ym(e,t){switch(e){case"keyup":return tE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function rE(e,t){switch(e){case"compositionend":return vm(t);case"keypress":return t.which!==32?null:(gm=!0,pm);case"textInput":return e=t.data,e===pm&&gm?null:e;default:return null}}function aE(e,t){if(Ka)return e==="compositionend"||!Gu&&ym(e,t)?(e=um(),cl=Uu=Lr=null,Ka=!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 mm&&t.locale!=="ko"?null:t.data;default:return null}}var iE={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 bm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iE[e.type]:t==="textarea"}function _m(e,t,a,l){Za?Qa?Qa.push(l):Qa=[l]:Za=l,t=eo(t,"onChange"),0<t.length&&(a=new hl("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Yi=null,Xi=null;function sE(e){eg(e,0)}function pl(e){var t=Br(e);if(tm(t))return e}function Em(e,t){if(e==="change")return t}var Sm=!1;if(lr){var ku;if(lr){var qu="oninput"in document;if(!qu){var Tm=document.createElement("div");Tm.setAttribute("oninput","return;"),qu=typeof Tm.oninput=="function"}ku=qu}else ku=!1;Sm=ku&&(!document.documentMode||9<document.documentMode)}function Am(){Yi&&(Yi.detachEvent("onpropertychange",xm),Xi=Yi=null)}function xm(e){if(e.propertyName==="value"&&pl(Xi)){var t=[];_m(t,Xi,e,Du(e)),om(sE,t)}}function lE(e,t,a){e==="focusin"?(Am(),Yi=t,Xi=a,Yi.attachEvent("onpropertychange",xm)):e==="focusout"&&Am()}function oE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pl(Xi)}function uE(e,t){if(e==="click")return pl(t)}function cE(e,t){if(e==="input"||e==="change")return pl(t)}function fE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:fE;function Zi(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Ze.call(t,o)||!$t(e[o],t[o]))return!1}return!0}function Om(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rm(e,t){var a=Om(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Om(a)}}function wm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ol(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=ol(e.document)}return t}function Fu(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 dE=lr&&"documentMode"in document&&11>=document.documentMode,$a=null,Vu=null,Qi=null,Pu=!1;function Nm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Pu||$a==null||$a!==ol(l)||(l=$a,"selectionStart"in l&&Fu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qi&&Zi(Qi,l)||(Qi=l,l=eo(Vu,"onSelect"),0<l.length&&(t=new hl("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=$a)))}function ma(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Wa={animationend:ma("Animation","AnimationEnd"),animationiteration:ma("Animation","AnimationIteration"),animationstart:ma("Animation","AnimationStart"),transitionrun:ma("Transition","TransitionRun"),transitionstart:ma("Transition","TransitionStart"),transitioncancel:ma("Transition","TransitionCancel"),transitionend:ma("Transition","TransitionEnd")},Yu={},Mm={};lr&&(Mm=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function pa(e){if(Yu[e])return Yu[e];if(!Wa[e])return e;var t=Wa[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Mm)return Yu[e]=t[a];return e}var Dm=pa("animationend"),Bm=pa("animationiteration"),Lm=pa("animationstart"),hE=pa("transitionrun"),mE=pa("transitionstart"),pE=pa("transitioncancel"),Um=pa("transitionend"),Hm=new Map,Xu="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(" ");Xu.push("scrollEnd");function Cn(e,t){Hm.set(e,t),X(t,[e])}var jm=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var a=jm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Jh(t)},jm.set(e,t),t)}return{value:e,source:t,stack:Jh(t)}}var pn=[],Ja=0,Zu=0;function gl(){for(var e=Ja,t=Zu=Ja=0;t<e;){var a=pn[t];pn[t++]=null;var l=pn[t];pn[t++]=null;var o=pn[t];pn[t++]=null;var f=pn[t];if(pn[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}f!==0&&Im(a,o,f)}}function yl(e,t,a,l){pn[Ja++]=e,pn[Ja++]=t,pn[Ja++]=a,pn[Ja++]=l,Zu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Qu(e,t,a,l){return yl(e,t,a,l),vl(e)}function ei(e,t){return yl(e,null,null,t),vl(e)}function Im(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&t!==null&&(o=31-Ct(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),f):null}function vl(e){if(50<_s)throw _s=0,tf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ti={};function gE(e,t,a,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,a,l){return new gE(e,t,a,l)}function Ku(e){return e=e.prototype,!(!e||!e.isReactComponent)}function or(e,t){var a=e.alternate;return a===null?(a=Wt(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 zm(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 bl(e,t,a,l,o,f){var p=0;if(l=e,typeof e=="function")Ku(e)&&(p=1);else if(typeof e=="string")p=vS(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=Wt(31,a,t,o),e.elementType=ge,e.lanes=f,e;case R:return ga(a.children,o,f,t);case F:p=8,o|=24;break;case z:return e=Wt(12,a,t,o|2),e.elementType=z,e.lanes=f,e;case A:return e=Wt(13,a,t,o),e.elementType=A,e.lanes=f,e;case Z:return e=Wt(19,a,t,o),e.elementType=Z,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:case S:p=10;break e;case w:p=9;break e;case I:p=11;break e;case $:p=14;break e;case ae:p=16,l=null;break e}p=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Wt(p,a,t,o),t.elementType=e,t.type=l,t.lanes=f,t}function ga(e,t,a,l){return e=Wt(7,e,l,t),e.lanes=a,e}function $u(e,t,a){return e=Wt(6,e,null,t),e.lanes=a,e}function Wu(e,t,a){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ni=[],ri=0,_l=null,El=0,gn=[],yn=0,ya=null,ur=1,cr="";function va(e,t){ni[ri++]=El,ni[ri++]=_l,_l=e,El=t}function Gm(e,t,a){gn[yn++]=ur,gn[yn++]=cr,gn[yn++]=ya,ya=e;var l=ur;e=cr;var o=32-Ct(l)-1;l&=~(1<<o),a+=1;var f=32-Ct(t)+o;if(30<f){var p=o-o%5;f=(l&(1<<p)-1).toString(32),l>>=p,o-=p,ur=1<<32-Ct(t)+o|a<<o|l,cr=f+e}else ur=1<<f|a<<o|l,cr=e}function Ju(e){e.return!==null&&(va(e,1),Gm(e,1,0))}function ec(e){for(;e===_l;)_l=ni[--ri],ni[ri]=null,El=ni[--ri],ni[ri]=null;for(;e===ya;)ya=gn[--yn],gn[yn]=null,cr=gn[--yn],gn[yn]=null,ur=gn[--yn],gn[yn]=null}var Ut=null,Je=null,Be=!1,ba=null,Fn=!1,tc=Error(s(519));function _a(e){var t=Error(s(418,""));throw Wi(mn(t,e)),tc}function km(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ft]=e,t[Nt]=l,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<Ss.length;a++)xe(Ss[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),nm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ll(t);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),am(t,l.value,l.defaultValue,l.children),ll(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||ag(t.textContent,a)?(l.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),l.onScroll!=null&&xe("scroll",t),l.onScrollEnd!=null&&xe("scrollend",t),l.onClick!=null&&(t.onclick=to),t=!0):t=!1,t||_a(e)}function qm(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:Ut=Ut.return}}function Ki(e){if(e!==Ut)return!1;if(!Be)return qm(e),Be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||vf(e.type,e.memoizedProps)),a=!a),a&&Je&&_a(e),qm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Je=Mn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Je=null}}else t===27?(t=Je,Kr(e.type)?(e=Sf,Sf=null,Je=e):Je=t):Je=Ut?Mn(e.stateNode.nextSibling):null;return!0}function $i(){Je=Ut=null,Be=!1}function Fm(){var e=ba;return e!==null&&(Zt===null?Zt=e:Zt.push.apply(Zt,e),ba=null),e}function Wi(e){ba===null?ba=[e]:ba.push(e)}var nc=k(null),Ea=null,fr=null;function Ur(e,t,a){Y(nc,t._currentValue),t._currentValue=a}function dr(e){e._currentValue=nc.current,W(nc)}function rc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function ac(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var p=o.child;f=f.firstContext;e:for(;f!==null;){var b=f;f=o;for(var T=0;T<t.length;T++)if(b.context===t[T]){f.lanes|=a,b=f.alternate,b!==null&&(b.lanes|=a),rc(f.return,a,e),l||(p=null);break e}f=b.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=a,f=p.alternate,f!==null&&(f.lanes|=a),rc(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 Ji(e,t,a,l){e=null;for(var o=t,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var b=o.type;$t(o.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}else if(o===$e.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&ac(t,e,a,l),t.flags|=262144}function Sl(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){Ea=e,fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return Vm(Ea,e)}function Tl(e,t){return Ea===null&&Sa(e),Vm(e,t)}function Vm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fr===null){if(e===null)throw Error(s(308));fr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fr=fr.next=t;return a}var yE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},vE=n.unstable_scheduleCallback,bE=n.unstable_NormalPriority,ht={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new yE,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&vE(bE,function(){e.controller.abort()})}var ts=null,sc=0,ai=0,ii=null;function _E(e,t){if(ts===null){var a=ts=[];sc=0,ai=uf(),ii={status:"pending",value:void 0,then:function(l){a.push(l)}}}return sc++,t.then(Pm,Pm),t}function Pm(){if(--sc===0&&ts!==null){ii!==null&&(ii.status="fulfilled");var e=ts;ts=null,ai=0,ii=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function EE(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var Ym=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&_E(e,t),Ym!==null&&Ym(e,t)};var Ta=k(null);function lc(){var e=Ta.current;return e!==null?e:Ve.pooledCache}function Al(e,t){t===null?Y(Ta,Ta.current):Y(Ta,t.pool)}function Xm(){var e=lc();return e===null?null:{parent:ht._currentValue,pool:e}}var ns=Error(s(460)),Zm=Error(s(474)),xl=Error(s(542)),oc={then:function(){}};function Qm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ol(){}function Km(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ol,Ol),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wm(e),e;default:if(typeof t.status=="string")t.then(Ol,Ol);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wm(e),e}throw rs=t,ns}}var rs=null;function $m(){if(rs===null)throw Error(s(459));var e=rs;return rs=null,e}function Wm(e){if(e===ns||e===xl)throw Error(s(483))}var Hr=!1;function uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cc(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 jr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ir(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=vl(e),Im(e,null,a),t}return yl(e,l,t,a),vl(e)}function as(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,nt(e,a)}}function fc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=p:f=f.next=p,a=a.next}while(a!==null);f===null?o=f=t:f=f.next=t}else o=f=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var dc=!1;function is(){if(dc){var e=ii;if(e!==null)throw e}}function ss(e,t,a,l){dc=!1;var o=e.updateQueue;Hr=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var T=b,B=T.next;T.next=null,p===null?f=B:p.next=B,p=T;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==p&&(b===null?q.firstBaseUpdate=B:b.next=B,q.lastBaseUpdate=T))}if(f!==null){var P=o.baseState;p=0,q=B=T=null,b=f;do{var U=b.lane&-536870913,j=U!==b.lane;if(j?(Ne&U)===U:(l&U)===U){U!==0&&U===ai&&(dc=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var he=e,fe=b;U=t;var ke=a;switch(fe.tag){case 1:if(he=fe.payload,typeof he=="function"){P=he.call(ke,P,U);break e}P=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,U=typeof he=="function"?he.call(ke,P,U):he,U==null)break e;P=y({},P,U);break e;case 2:Hr=!0}}U=b.callback,U!==null&&(e.flags|=64,j&&(e.flags|=8192),j=o.callbacks,j===null?o.callbacks=[U]:j.push(U))}else j={lane:U,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(B=q=j,T=P):q=q.next=j,p|=U;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;j=b,b=j.next,j.next=null,o.lastBaseUpdate=j,o.shared.pending=null}}while(!0);q===null&&(T=P),o.baseState=T,o.firstBaseUpdate=B,o.lastBaseUpdate=q,f===null&&(o.shared.lanes=0),Yr|=p,e.lanes=p,e.memoizedState=P}}function Jm(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function e0(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Jm(a[e],t)}var si=k(null),Rl=k(0);function t0(e,t){e=br,Y(Rl,e),Y(si,t),br=e|t.baseLanes}function hc(){Y(Rl,br),Y(si,si.current)}function mc(){br=Rl.current,W(si),W(Rl)}var zr=0,_e=null,ze=null,lt=null,wl=!1,li=!1,Aa=!1,Cl=0,ls=0,oi=null,SE=0;function rt(){throw Error(s(321))}function pc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!$t(e[a],t[a]))return!1;return!0}function gc(e,t,a,l,o,f){return zr=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?I0:z0,Aa=!1,f=a(l,o),Aa=!1,li&&(f=r0(t,a,l,o)),n0(e),f}function n0(e){G.H=Ul;var t=ze!==null&&ze.next!==null;if(zr=0,lt=ze=_e=null,wl=!1,ls=0,oi=null,t)throw Error(s(300));e===null||pt||(e=e.dependencies,e!==null&&Sl(e)&&(pt=!0))}function r0(e,t,a,l){_e=e;var o=0;do{if(li&&(oi=null),ls=0,li=!1,25<=o)throw Error(s(301));if(o+=1,lt=ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}G.H=CE,f=t(a,l)}while(li);return f}function TE(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(_e.flags|=1024),t}function yc(){var e=Cl!==0;return Cl=0,e}function vc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function bc(e){if(wl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wl=!1}zr=0,lt=ze=_e=null,li=!1,ls=Cl=0,oi=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?_e.memoizedState=lt=e:lt=lt.next=e,lt}function ot(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=lt===null?_e.memoizedState:lt.next;if(t!==null)lt=t,ze=e;else{if(e===null)throw _e.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},lt===null?_e.memoizedState=lt=e:lt=lt.next=e}return lt}function _c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=ls;return ls+=1,oi===null&&(oi=[]),e=Km(oi,e,t),t=_e,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?I0:z0),e}function Nl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===S)return Dt(e)}throw Error(s(438,String(e)))}function Ec(e){var t=null,a=_e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=_e.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=_c(),_e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Ee;return t.index++,a}function hr(e,t){return typeof t=="function"?t(e):t}function Ml(e){var t=ot();return Sc(t,ze,e)}function Sc(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}t.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{t=o.next;var b=p=null,T=null,B=t,q=!1;do{var P=B.lane&-536870913;if(P!==B.lane?(Ne&P)===P:(zr&P)===P){var U=B.revertLane;if(U===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),P===ai&&(q=!0);else if((zr&U)===U){B=B.next,U===ai&&(q=!0);continue}else P={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(b=T=P,p=f):T=T.next=P,_e.lanes|=U,Yr|=U;P=B.action,Aa&&a(f,P),f=B.hasEagerState?B.eagerState:a(f,P)}else U={lane:P,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(b=T=U,p=f):T=T.next=U,_e.lanes|=P,Yr|=P;B=B.next}while(B!==null&&B!==t);if(T===null?p=f:T.next=b,!$t(f,e.memoizedState)&&(pt=!0,q&&(a=ii,a!==null)))throw a;e.memoizedState=f,e.baseState=p,e.baseQueue=T,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Tc(e){var t=ot(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,f=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do f=e(f,p.action),p=p.next;while(p!==o);$t(f,t.memoizedState)||(pt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,l]}function a0(e,t,a){var l=_e,o=ot(),f=Be;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=t();var p=!$t((ze||o).memoizedState,a);p&&(o.memoizedState=a,pt=!0),o=o.queue;var b=l0.bind(null,l,o,e);if(us(2048,8,b,[e]),o.getSnapshot!==t||p||lt!==null&&lt.memoizedState.tag&1){if(l.flags|=2048,ui(9,Dl(),s0.bind(null,l,o,a,t),null),Ve===null)throw Error(s(349));f||(zr&124)!==0||i0(l,t,a)}return a}function i0(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=_e.updateQueue,t===null?(t=_c(),_e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function s0(e,t,a,l){t.value=a,t.getSnapshot=l,o0(t)&&u0(e)}function l0(e,t,a){return a(function(){o0(t)&&u0(e)})}function o0(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!$t(e,a)}catch{return!0}}function u0(e){var t=ei(e,2);t!==null&&rn(t,e,2)}function Ac(e){var t=Yt();if(typeof e=="function"){var a=e;if(e=a(),Aa){On(!0);try{a()}finally{On(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},t}function c0(e,t,a,l){return e.baseState=a,Sc(e,ze,typeof l=="function"?l:hr)}function AE(e,t,a,l,o){if(Ll(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};G.T!==null?a(!0):f.isTransition=!1,l(f),a=t.pending,a===null?(f.next=t.pending=f,f0(t,f)):(f.next=a.next,t.pending=a.next=f)}}function f0(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var f=G.T,p={};G.T=p;try{var b=a(o,l),T=G.S;T!==null&&T(p,b),d0(e,t,b)}catch(B){xc(e,t,B)}finally{G.T=f}}else try{f=a(o,l),d0(e,t,f)}catch(B){xc(e,t,B)}}function d0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){h0(e,t,l)},function(l){return xc(e,t,l)}):h0(e,t,a)}function h0(e,t,a){t.status="fulfilled",t.value=a,m0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,f0(e,a)))}function xc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,m0(t),t=t.next;while(t!==l)}e.action=null}function m0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function p0(e,t){return t}function g0(e,t){if(Be){var a=Ve.formState;if(a!==null){e:{var l=_e;if(Be){if(Je){t:{for(var o=Je,f=Fn;o.nodeType!==8;){if(!f){o=null;break t}if(o=Mn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Je=Mn(o.nextSibling),l=o.data==="F!";break e}}_a(l)}l=!1}l&&(t=a[0])}}return a=Yt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:p0,lastRenderedState:t},a.queue=l,a=U0.bind(null,_e,l),l.dispatch=a,l=Ac(!1),f=Nc.bind(null,_e,!1,l.queue),l=Yt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=AE.bind(null,_e,o,f,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function y0(e){var t=ot();return v0(t,ze,e)}function v0(e,t,a){if(t=Sc(e,t,p0)[0],e=Ml(hr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=os(t)}catch(p){throw p===ns?xl:p}else l=t;t=ot();var o=t.queue,f=o.dispatch;return a!==t.memoizedState&&(_e.flags|=2048,ui(9,Dl(),xE.bind(null,o,a),null)),[l,f,e]}function xE(e,t){e.action=t}function b0(e){var t=ot(),a=ze;if(a!==null)return v0(t,a,e);ot(),t=t.memoizedState,a=ot();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ui(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=_e.updateQueue,t===null&&(t=_c(),_e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Dl(){return{destroy:void 0,resource:void 0}}function _0(){return ot().memoizedState}function Bl(e,t,a,l){var o=Yt();l=l===void 0?null:l,_e.flags|=e,o.memoizedState=ui(1|t,Dl(),a,l)}function us(e,t,a,l){var o=ot();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&pc(l,ze.memoizedState.deps)?o.memoizedState=ui(t,f,a,l):(_e.flags|=e,o.memoizedState=ui(1|t,f,a,l))}function E0(e,t){Bl(8390656,8,e,t)}function S0(e,t){us(2048,8,e,t)}function T0(e,t){return us(4,2,e,t)}function A0(e,t){return us(4,4,e,t)}function x0(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 O0(e,t,a){a=a!=null?a.concat([e]):null,us(4,4,x0.bind(null,t,e),a)}function Oc(){}function R0(e,t){var a=ot();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&pc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function w0(e,t){var a=ot();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&pc(t,l[1]))return l[0];if(l=e(),Aa){On(!0);try{e()}finally{On(!1)}}return a.memoizedState=[l,t],l}function Rc(e,t,a){return a===void 0||(zr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Mp(),_e.lanes|=e,Yr|=e,a)}function C0(e,t,a,l){return $t(a,t)?a:si.current!==null?(e=Rc(e,a,l),$t(e,t)||(pt=!0),e):(zr&42)===0?(pt=!0,e.memoizedState=a):(e=Mp(),_e.lanes|=e,Yr|=e,t)}function N0(e,t,a,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var p=G.T,b={};G.T=b,Nc(e,!1,t,a);try{var T=o(),B=G.S;if(B!==null&&B(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=EE(T,l);cs(e,t,q,nn(e))}else cs(e,t,l,nn(e))}catch(P){cs(e,t,{then:function(){},status:"rejected",reason:P},nn())}finally{K.p=f,G.T=p}}function OE(){}function wc(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=M0(e).queue;N0(e,o,t,ee,a===null?OE:function(){return D0(e),a(l)})}function M0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function D0(e){var t=M0(e).next.queue;cs(e,t,{},nn())}function Cc(){return Dt(ws)}function B0(){return ot().memoizedState}function L0(){return ot().memoizedState}function RE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=nn();e=jr(a);var l=Ir(t,e,a);l!==null&&(rn(l,t,a),as(l,t,a)),t={cache:ic()},e.payload=t;return}t=t.return}}function wE(e,t,a){var l=nn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ll(e)?H0(t,a):(a=Qu(e,t,a,l),a!==null&&(rn(a,e,l),j0(a,t,l)))}function U0(e,t,a){var l=nn();cs(e,t,a,l)}function cs(e,t,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ll(e))H0(t,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var p=t.lastRenderedState,b=f(p,a);if(o.hasEagerState=!0,o.eagerState=b,$t(b,p))return yl(e,t,o,0),Ve===null&&gl(),!1}catch{}finally{}if(a=Qu(e,t,o,l),a!==null)return rn(a,e,l),j0(a,t,l),!0}return!1}function Nc(e,t,a,l){if(l={lane:2,revertLane:uf(),action:l,hasEagerState:!1,eagerState:null,next:null},Ll(e)){if(t)throw Error(s(479))}else t=Qu(e,a,l,2),t!==null&&rn(t,e,2)}function Ll(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function H0(e,t){li=wl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function j0(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,nt(e,a)}}var Ul={readContext:Dt,use:Nl,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt},I0={readContext:Dt,use:Nl,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:E0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Bl(4194308,4,x0.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Bl(4194308,4,e,t)},useInsertionEffect:function(e,t){Bl(4,2,e,t)},useMemo:function(e,t){var a=Yt();t=t===void 0?null:t;var l=e();if(Aa){On(!0);try{e()}finally{On(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Yt();if(a!==void 0){var o=a(t);if(Aa){On(!0);try{a(t)}finally{On(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=wE.bind(null,_e,e),[l.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,a=U0.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Yt();return Rc(a,e,t)},useTransition:function(){var e=Ac(!1);return e=N0.bind(null,_e,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=_e,o=Yt();if(Be){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ve===null)throw Error(s(349));(Ne&124)!==0||i0(l,t,a)}o.memoizedState=a;var f={value:a,getSnapshot:t};return o.queue=f,E0(l0.bind(null,l,f,e),[e]),l.flags|=2048,ui(9,Dl(),s0.bind(null,l,f,a,t),null),a},useId:function(){var e=Yt(),t=Ve.identifierPrefix;if(Be){var a=cr,l=ur;a=(l&~(1<<32-Ct(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=Cl++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=SE++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Cc,useFormState:g0,useActionState:g0,useOptimistic:function(e){var t=Yt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Nc.bind(null,_e,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ec,useCacheRefresh:function(){return Yt().memoizedState=RE.bind(null,_e)}},z0={readContext:Dt,use:Nl,useCallback:R0,useContext:Dt,useEffect:S0,useImperativeHandle:O0,useInsertionEffect:T0,useLayoutEffect:A0,useMemo:w0,useReducer:Ml,useRef:_0,useState:function(){return Ml(hr)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=ot();return C0(a,ze.memoizedState,e,t)},useTransition:function(){var e=Ml(hr)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:a0,useId:B0,useHostTransitionStatus:Cc,useFormState:y0,useActionState:y0,useOptimistic:function(e,t){var a=ot();return c0(a,ze,e,t)},useMemoCache:Ec,useCacheRefresh:L0},CE={readContext:Dt,use:Nl,useCallback:R0,useContext:Dt,useEffect:S0,useImperativeHandle:O0,useInsertionEffect:T0,useLayoutEffect:A0,useMemo:w0,useReducer:Tc,useRef:_0,useState:function(){return Tc(hr)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=ot();return ze===null?Rc(a,e,t):C0(a,ze.memoizedState,e,t)},useTransition:function(){var e=Tc(hr)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:a0,useId:B0,useHostTransitionStatus:Cc,useFormState:b0,useActionState:b0,useOptimistic:function(e,t){var a=ot();return ze!==null?c0(a,ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:L0},ci=null,fs=0;function Hl(e){var t=fs;return fs+=1,ci===null&&(ci=[]),Km(ci,e,t)}function ds(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function jl(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function G0(e){var t=e._init;return t(e._payload)}function k0(e){function t(M,C){if(e){var D=M.deletions;D===null?(M.deletions=[C],M.flags|=16):D.push(C)}}function a(M,C){if(!e)return null;for(;C!==null;)t(M,C),C=C.sibling;return null}function l(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function o(M,C){return M=or(M,C),M.index=0,M.sibling=null,M}function f(M,C,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<C?(M.flags|=67108866,C):D):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,C,D,V){return C===null||C.tag!==6?(C=$u(D,M.mode,V),C.return=M,C):(C=o(C,D),C.return=M,C)}function T(M,C,D,V){var ne=D.type;return ne===R?q(M,C,D.props.children,V,D.key):C!==null&&(C.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&G0(ne)===C.type)?(C=o(C,D.props),ds(C,D),C.return=M,C):(C=bl(D.type,D.key,D.props,null,M.mode,V),ds(C,D),C.return=M,C)}function B(M,C,D,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=Wu(D,M.mode,V),C.return=M,C):(C=o(C,D.children||[]),C.return=M,C)}function q(M,C,D,V,ne){return C===null||C.tag!==7?(C=ga(D,M.mode,V,ne),C.return=M,C):(C=o(C,D),C.return=M,C)}function P(M,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=$u(""+C,M.mode,D),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case x:return D=bl(C.type,C.key,C.props,null,M.mode,D),ds(D,C),D.return=M,D;case L:return C=Wu(C,M.mode,D),C.return=M,C;case ae:var V=C._init;return C=V(C._payload),P(M,C,D)}if(be(C)||me(C))return C=ga(C,M.mode,D,null),C.return=M,C;if(typeof C.then=="function")return P(M,Hl(C),D);if(C.$$typeof===S)return P(M,Tl(M,C),D);jl(M,C)}return null}function U(M,C,D,V){var ne=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:b(M,C,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===ne?T(M,C,D,V):null;case L:return D.key===ne?B(M,C,D,V):null;case ae:return ne=D._init,D=ne(D._payload),U(M,C,D,V)}if(be(D)||me(D))return ne!==null?null:q(M,C,D,V,null);if(typeof D.then=="function")return U(M,C,Hl(D),V);if(D.$$typeof===S)return U(M,C,Tl(M,D),V);jl(M,D)}return null}function j(M,C,D,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,b(C,M,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return M=M.get(V.key===null?D:V.key)||null,T(C,M,V,ne);case L:return M=M.get(V.key===null?D:V.key)||null,B(C,M,V,ne);case ae:var Se=V._init;return V=Se(V._payload),j(M,C,D,V,ne)}if(be(V)||me(V))return M=M.get(D)||null,q(C,M,V,ne,null);if(typeof V.then=="function")return j(M,C,D,Hl(V),ne);if(V.$$typeof===S)return j(M,C,D,Tl(C,V),ne);jl(C,V)}return null}function he(M,C,D,V){for(var ne=null,Se=null,oe=C,de=C=0,yt=null;oe!==null&&de<D.length;de++){oe.index>de?(yt=oe,oe=null):yt=oe.sibling;var De=U(M,oe,D[de],V);if(De===null){oe===null&&(oe=yt);break}e&&oe&&De.alternate===null&&t(M,oe),C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De,oe=yt}if(de===D.length)return a(M,oe),Be&&va(M,de),ne;if(oe===null){for(;de<D.length;de++)oe=P(M,D[de],V),oe!==null&&(C=f(oe,C,de),Se===null?ne=oe:Se.sibling=oe,Se=oe);return Be&&va(M,de),ne}for(oe=l(oe);de<D.length;de++)yt=j(oe,M,de,D[de],V),yt!==null&&(e&&yt.alternate!==null&&oe.delete(yt.key===null?de:yt.key),C=f(yt,C,de),Se===null?ne=yt:Se.sibling=yt,Se=yt);return e&&oe.forEach(function(ta){return t(M,ta)}),Be&&va(M,de),ne}function fe(M,C,D,V){if(D==null)throw Error(s(151));for(var ne=null,Se=null,oe=C,de=C=0,yt=null,De=D.next();oe!==null&&!De.done;de++,De=D.next()){oe.index>de?(yt=oe,oe=null):yt=oe.sibling;var ta=U(M,oe,De.value,V);if(ta===null){oe===null&&(oe=yt);break}e&&oe&&ta.alternate===null&&t(M,oe),C=f(ta,C,de),Se===null?ne=ta:Se.sibling=ta,Se=ta,oe=yt}if(De.done)return a(M,oe),Be&&va(M,de),ne;if(oe===null){for(;!De.done;de++,De=D.next())De=P(M,De.value,V),De!==null&&(C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De);return Be&&va(M,de),ne}for(oe=l(oe);!De.done;de++,De=D.next())De=j(oe,M,de,De.value,V),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?de:De.key),C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De);return e&&oe.forEach(function(NS){return t(M,NS)}),Be&&va(M,de),ne}function ke(M,C,D,V){if(typeof D=="object"&&D!==null&&D.type===R&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case x:e:{for(var ne=D.key;C!==null;){if(C.key===ne){if(ne=D.type,ne===R){if(C.tag===7){a(M,C.sibling),V=o(C,D.props.children),V.return=M,M=V;break e}}else if(C.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&G0(ne)===C.type){a(M,C.sibling),V=o(C,D.props),ds(V,D),V.return=M,M=V;break e}a(M,C);break}else t(M,C);C=C.sibling}D.type===R?(V=ga(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=bl(D.type,D.key,D.props,null,M.mode,V),ds(V,D),V.return=M,M=V)}return p(M);case L:e:{for(ne=D.key;C!==null;){if(C.key===ne)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(M,C.sibling),V=o(C,D.children||[]),V.return=M,M=V;break e}else{a(M,C);break}else t(M,C);C=C.sibling}V=Wu(D,M.mode,V),V.return=M,M=V}return p(M);case ae:return ne=D._init,D=ne(D._payload),ke(M,C,D,V)}if(be(D))return he(M,C,D,V);if(me(D)){if(ne=me(D),typeof ne!="function")throw Error(s(150));return D=ne.call(D),fe(M,C,D,V)}if(typeof D.then=="function")return ke(M,C,Hl(D),V);if(D.$$typeof===S)return ke(M,C,Tl(M,D),V);jl(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(M,C.sibling),V=o(C,D),V.return=M,M=V):(a(M,C),V=$u(D,M.mode,V),V.return=M,M=V),p(M)):a(M,C)}return function(M,C,D,V){try{fs=0;var ne=ke(M,C,D,V);return ci=null,ne}catch(oe){if(oe===ns||oe===xl)throw oe;var Se=Wt(29,oe,null,M.mode);return Se.lanes=V,Se.return=M,Se}finally{}}}var fi=k0(!0),q0=k0(!1),vn=k(null),Vn=null;function Gr(e){var t=e.alternate;Y(mt,mt.current&1),Y(vn,e),Vn===null&&(t===null||si.current!==null||t.memoizedState!==null)&&(Vn=e)}function F0(e){if(e.tag===22){if(Y(mt,mt.current),Y(vn,e),Vn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Vn=e)}}else kr()}function kr(){Y(mt,mt.current),Y(vn,vn.current)}function mr(e){W(vn),Vn===e&&(Vn=null),W(mt)}var mt=k(0);function Il(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==="$?"||Ef(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 Mc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Dc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=nn(),o=jr(l);o.payload=t,a!=null&&(o.callback=a),t=Ir(e,o,l),t!==null&&(rn(t,e,l),as(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=nn(),o=jr(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Ir(e,o,l),t!==null&&(rn(t,e,l),as(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(),l=jr(a);l.tag=2,t!=null&&(l.callback=t),t=Ir(e,l,a),t!==null&&(rn(t,e,a),as(t,e,a))}};function V0(e,t,a,l,o,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,p):t.prototype&&t.prototype.isPureReactComponent?!Zi(a,l)||!Zi(o,f):!0}function P0(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Dc.enqueueReplaceState(t,t.state,null)}function xa(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var zl=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 Y0(e){zl(e)}function X0(e){console.error(e)}function Z0(e){zl(e)}function Gl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Q0(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Bc(e,t,a){return a=jr(a),a.tag=3,a.payload={element:null},a.callback=function(){Gl(e,t)},a}function K0(e){return e=jr(e),e.tag=3,e}function $0(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){Q0(t,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Q0(t,a,l),typeof o!="function"&&(Xr===null?Xr=new Set([this]):Xr.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function NE(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ji(t,a,o,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Vn===null?rf():a.alternate===null&&et===0&&(et=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===oc?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),sf(e,l,o)),!1;case 22:return a.flags|=65536,l===oc?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),sf(e,l,o)),!1}throw Error(s(435,a.tag))}return sf(e,l,o),rf(),!1}if(Be)return t=vn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==tc&&(e=Error(s(422),{cause:l}),Wi(mn(e,a)))):(l!==tc&&(t=Error(s(423),{cause:l}),Wi(mn(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=mn(l,a),o=Bc(e.stateNode,l,o),fc(e,o),et!==4&&(et=2)),!1;var f=Error(s(520),{cause:l});if(f=mn(f,a),bs===null?bs=[f]:bs.push(f),et!==4&&(et=2),t===null)return!0;l=mn(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Bc(a.stateNode,l,e),fc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Xr===null||!Xr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=K0(o),$0(o,e,a,l),fc(a,o),!1}a=a.return}while(a!==null);return!1}var W0=Error(s(461)),pt=!1;function Tt(e,t,a,l){t.child=e===null?q0(t,null,a,l):fi(t,e.child,a,l)}function J0(e,t,a,l,o){a=a.render;var f=t.ref;if("ref"in l){var p={};for(var b in l)b!=="ref"&&(p[b]=l[b])}else p=l;return Sa(t),l=gc(e,t,a,p,f,o),b=yc(),e!==null&&!pt?(vc(e,t,o),pr(e,t,o)):(Be&&b&&Ju(t),t.flags|=1,Tt(e,t,l,o),t.child)}function ep(e,t,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!Ku(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,tp(e,t,f,l,o)):(e=bl(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!kc(e,o)){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:Zi,a(p,l)&&e.ref===t.ref)return pr(e,t,o)}return t.flags|=1,e=or(f,l),e.ref=t.ref,e.return=t,t.child=e}function tp(e,t,a,l,o){if(e!==null){var f=e.memoizedProps;if(Zi(f,l)&&e.ref===t.ref)if(pt=!1,t.pendingProps=l=f,kc(e,o))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,pr(e,t,o)}return Lc(e,t,a,l,o)}function np(e,t,a){var l=t.pendingProps,o=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(o=t.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return rp(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Al(t,f!==null?f.cachePool:null),f!==null?t0(t,f):hc(),F0(t);else return t.lanes=t.childLanes=536870912,rp(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(Al(t,f.cachePool),t0(t,f),kr(),t.memoizedState=null):(e!==null&&Al(t,null),hc(),kr());return Tt(e,t,o,a),t.child}function rp(e,t,a,l){var o=lc();return o=o===null?null:{parent:ht._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Al(t,null),hc(),F0(t),e!==null&&Ji(e,t,l,!0),null}function kl(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Lc(e,t,a,l,o){return Sa(t),a=gc(e,t,a,l,void 0,o),l=yc(),e!==null&&!pt?(vc(e,t,o),pr(e,t,o)):(Be&&l&&Ju(t),t.flags|=1,Tt(e,t,a,o),t.child)}function ap(e,t,a,l,o,f){return Sa(t),t.updateQueue=null,a=r0(t,l,a,o),n0(e),l=yc(),e!==null&&!pt?(vc(e,t,f),pr(e,t,f)):(Be&&l&&Ju(t),t.flags|=1,Tt(e,t,a,f),t.child)}function ip(e,t,a,l,o){if(Sa(t),t.stateNode===null){var f=ti,p=a.contextType;typeof p=="object"&&p!==null&&(f=Dt(p)),f=new a(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Dc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},uc(t),p=a.contextType,f.context=typeof p=="object"&&p!==null?Dt(p):ti,f.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Mc(t,a,p,l),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(p=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),p!==f.state&&Dc.enqueueReplaceState(f,f.state,null),ss(t,l,f,o),is(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var b=t.memoizedProps,T=xa(a,b);f.props=T;var B=f.context,q=a.contextType;p=ti,typeof q=="object"&&q!==null&&(p=Dt(q));var P=a.getDerivedStateFromProps;q=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||B!==p)&&P0(t,f,l,p),Hr=!1;var U=t.memoizedState;f.state=U,ss(t,l,f,o),is(),B=t.memoizedState,b||U!==B||Hr?(typeof P=="function"&&(Mc(t,a,P,l),B=t.memoizedState),(T=Hr||V0(t,a,T,l,U,B,p))?(q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),f.props=l,f.state=B,f.context=p,l=T):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,cc(e,t),p=t.memoizedProps,q=xa(a,p),f.props=q,P=t.pendingProps,U=f.context,B=a.contextType,T=ti,typeof B=="object"&&B!==null&&(T=Dt(B)),b=a.getDerivedStateFromProps,(B=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==P||U!==T)&&P0(t,f,l,T),Hr=!1,U=t.memoizedState,f.state=U,ss(t,l,f,o),is();var j=t.memoizedState;p!==P||U!==j||Hr||e!==null&&e.dependencies!==null&&Sl(e.dependencies)?(typeof b=="function"&&(Mc(t,a,b,l),j=t.memoizedState),(q=Hr||V0(t,a,q,l,U,j,T)||e!==null&&e.dependencies!==null&&Sl(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,j,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,j,T)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=j),f.props=l,f.state=j,f.context=T,l=q):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,kl(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=fi(t,e.child,null,o),t.child=fi(t,null,a,o)):Tt(e,t,a,o),t.memoizedState=f.state,e=t.child):e=pr(e,t,o),e}function sp(e,t,a,l){return $i(),t.flags|=256,Tt(e,t,a,l),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(e){return{baseLanes:e,cachePool:Xm()}}function jc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=bn),e}function lp(e,t,a){var l=t.pendingProps,o=!1,f=(t.flags&128)!==0,p;if((p=f)||(p=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Be){if(o?Gr(t):kr(),Be){var b=Je,T;if(T=b){e:{for(T=b,b=Fn;T.nodeType!==8;){if(!b){b=null;break e}if(T=Mn(T.nextSibling),T===null){b=null;break e}}b=T}b!==null?(t.memoizedState={dehydrated:b,treeContext:ya!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},T=Wt(18,null,null,0),T.stateNode=b,T.return=t,t.child=T,Ut=t,Je=null,T=!0):T=!1}T||_a(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Ef(b)?t.lanes=32:t.lanes=536870912,null;mr(t)}return b=l.children,l=l.fallback,o?(kr(),o=t.mode,b=ql({mode:"hidden",children:b},o),l=ga(l,o,a,null),b.return=t,l.return=t,b.sibling=l,t.child=b,o=t.child,o.memoizedState=Hc(a),o.childLanes=jc(e,p,a),t.memoizedState=Uc,l):(Gr(t),Ic(t,b))}if(T=e.memoizedState,T!==null&&(b=T.dehydrated,b!==null)){if(f)t.flags&256?(Gr(t),t.flags&=-257,t=zc(e,t,a)):t.memoizedState!==null?(kr(),t.child=e.child,t.flags|=128,t=null):(kr(),o=l.fallback,b=t.mode,l=ql({mode:"visible",children:l.children},b),o=ga(o,b,a,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,fi(t,e.child,null,a),l=t.child,l.memoizedState=Hc(a),l.childLanes=jc(e,p,a),t.memoizedState=Uc,t=o);else if(Gr(t),Ef(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var B=p.dgst;p=B,l=Error(s(419)),l.stack="",l.digest=p,Wi({value:l,source:null,stack:null}),t=zc(e,t,a)}else if(pt||Ji(e,t,a,!1),p=(a&e.childLanes)!==0,pt||p){if(p=Ve,p!==null&&(l=a&-a,l=(l&42)!==0?1:Gn(l),l=(l&(p.suspendedLanes|a))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,ei(e,l),rn(p,e,l),W0;b.data==="$?"||rf(),t=zc(e,t,a)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Je=Mn(b.nextSibling),Ut=t,Be=!0,ba=null,Fn=!1,e!==null&&(gn[yn++]=ur,gn[yn++]=cr,gn[yn++]=ya,ur=e.id,cr=e.overflow,ya=t),t=Ic(t,l.children),t.flags|=4096);return t}return o?(kr(),o=l.fallback,b=t.mode,T=e.child,B=T.sibling,l=or(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,B!==null?o=or(B,o):(o=ga(o,b,a,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,l=o,o=t.child,b=e.child.memoizedState,b===null?b=Hc(a):(T=b.cachePool,T!==null?(B=ht._currentValue,T=T.parent!==B?{parent:B,pool:B}:T):T=Xm(),b={baseLanes:b.baseLanes|a,cachePool:T}),o.memoizedState=b,o.childLanes=jc(e,p,a),t.memoizedState=Uc,l):(Gr(t),a=e.child,e=a.sibling,a=or(a,{mode:"visible",children:l.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 Ic(e,t){return t=ql({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ql(e,t){return e=Wt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function zc(e,t,a){return fi(t,e.child,null,a),e=Ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function op(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),rc(e.return,t,a)}function Gc(e,t,a,l,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=o)}function up(e,t,a){var l=t.pendingProps,o=l.revealOrder,f=l.tail;if(Tt(e,t,l.children,a),l=mt.current,(l&2)!==0)l=l&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&&op(e,a,t);else if(e.tag===19)op(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}l&=1}switch(Y(mt,l),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Il(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Gc(t,!1,o,a,f);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Il(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Gc(t,!0,a,null,f);break;case"together":Gc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Yr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ji(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=or(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=or(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Sl(e)))}function ME(e,t,a){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Ur(t,ht,e.memoizedState.cache),$i();break;case 27:case 5:zn(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Ur(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Gr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?lp(e,t,a):(Gr(t),e=pr(e,t,a),e!==null?e.sibling:null);Gr(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ji(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return up(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(mt,mt.current),l)break;return null;case 22:case 23:return t.lanes=0,np(e,t,a);case 24:Ur(t,ht,e.memoizedState.cache)}return pr(e,t,a)}function cp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!kc(e,a)&&(t.flags&128)===0)return pt=!1,ME(e,t,a);pt=(e.flags&131072)!==0}else pt=!1,Be&&(t.flags&1048576)!==0&&Gm(t,El,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,o=l._init;if(l=o(l._payload),t.type=l,typeof l=="function")Ku(l)?(e=xa(l,e),t.tag=1,t=ip(null,t,l,e,a)):(t.tag=0,t=Lc(null,t,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===I){t.tag=11,t=J0(null,t,l,e,a);break e}else if(o===$){t.tag=14,t=ep(null,t,l,e,a);break e}}throw t=Pe(l)||l,Error(s(306,t,""))}}return t;case 0:return Lc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=xa(l,t.pendingProps),ip(e,t,l,o,a);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var f=t.memoizedState;o=f.element,cc(e,t),ss(t,l,null,a);var p=t.memoizedState;if(l=p.cache,Ur(t,ht,l),l!==f.cache&&ac(t,[ht],a,!0),is(),l=p.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=sp(e,t,l,a);break e}else if(l!==o){o=mn(Error(s(424)),t),Wi(o),t=sp(e,t,l,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(Je=Mn(e.firstChild),Ut=t,Be=!0,ba=null,Fn=!0,a=q0(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),l===o){t=pr(e,t,a);break e}Tt(e,t,l,a)}t=t.child}return t;case 26:return kl(e,t),e===null?(a=mg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Be||(a=t.type,e=t.pendingProps,l=no(ue.current).createElement(a),l[ft]=t,l[Nt]=e,xt(l,a,e),it(l),t.stateNode=l):t.memoizedState=mg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zn(t),e===null&&Be&&(l=t.stateNode=fg(t.type,t.pendingProps,ue.current),Ut=t,Fn=!0,o=Je,Kr(t.type)?(Sf=o,Je=Mn(l.firstChild)):Je=o),Tt(e,t,t.pendingProps.children,a),kl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Be&&((o=l=Je)&&(l=iS(l,t.type,t.pendingProps,Fn),l!==null?(t.stateNode=l,Ut=t,Je=Mn(l.firstChild),Fn=!1,o=!0):o=!1),o||_a(t)),zn(t),o=t.type,f=t.pendingProps,p=e!==null?e.memoizedProps:null,l=f.children,vf(o,f)?l=null:p!==null&&vf(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=gc(e,t,TE,null,null,a),ws._currentValue=o),kl(e,t),Tt(e,t,l,a),t.child;case 6:return e===null&&Be&&((e=a=Je)&&(a=sS(a,t.pendingProps,Fn),a!==null?(t.stateNode=a,Ut=t,Je=null,e=!0):e=!1),e||_a(t)),null;case 13:return lp(e,t,a);case 4:return Ue(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=fi(t,null,l,a):Tt(e,t,l,a),t.child;case 11:return J0(e,t,t.type,t.pendingProps,a);case 7:return Tt(e,t,t.pendingProps,a),t.child;case 8:return Tt(e,t,t.pendingProps.children,a),t.child;case 12:return Tt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ur(t,t.type,l.value),Tt(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Sa(t),o=Dt(o),l=l(o),t.flags|=1,Tt(e,t,l,a),t.child;case 14:return ep(e,t,t.type,t.pendingProps,a);case 15:return tp(e,t,t.type,t.pendingProps,a);case 19:return up(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=ql(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=or(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return np(e,t,a);case 24:return Sa(t),l=Dt(ht),e===null?(o=lc(),o===null&&(o=Ve,f=ic(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),t.memoizedState={parent:l,cache:o},uc(t),Ur(t,ht,o)):((e.lanes&a)!==0&&(cc(e,t),ss(t,null,null,a),is()),o=e.memoizedState,f=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ur(t,ht,l)):(l=f.cache,Ur(t,ht,l),l!==o.cache&&ac(t,[ht],a,!0))),Tt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function gr(e){e.flags|=4}function fp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bg(t)){if(t=vn.current,t!==null&&((Ne&4194048)===Ne?Vn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||t!==Vn))throw rs=oc,Zm;e.flags|=8192}}function Fl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?da():536870912,e.lanes|=t,pi|=t)}function hs(e,t){if(!Be)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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function DE(e,t,a){var l=t.pendingProps;switch(ec(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),dr(ht),_t(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ki(t)?gr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fm())),Qe(t),null;case 26:return a=t.memoizedState,e===null?(gr(t),a!==null?(Qe(t),fp(t,a)):(Qe(t),t.flags&=-16777217)):a?a!==e.memoizedState?(gr(t),Qe(t),fp(t,a)):(Qe(t),t.flags&=-16777217):(e.memoizedProps!==l&&gr(t),Qe(t),t.flags&=-16777217),null;case 27:Cr(t),a=ue.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&gr(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}e=te.current,Ki(t)?km(t):(e=fg(o,l,a),t.stateNode=e,gr(t))}return Qe(t),null;case 5:if(Cr(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&gr(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}if(e=te.current,Ki(t))km(t);else{switch(o=no(ue.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 l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[ft]=t,e[Nt]=l;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(xt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&gr(t)}}return Qe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&gr(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Ki(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=Ut,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ft]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||ag(e.nodeValue,a)),e||_a(t)}else e=no(e).createTextNode(l),e[ft]=t,t.stateNode=e}return Qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ki(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ft]=t}else $i(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),o=!1}else o=Fm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(mr(t),t):(mr(t),null)}if(mr(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Fl(t,t.updateQueue),Qe(t),null;case 4:return _t(),e===null&&hf(t.stateNode.containerInfo),Qe(t),null;case 10:return dr(t.type),Qe(t),null;case 19:if(W(mt),o=t.memoizedState,o===null)return Qe(t),null;if(l=(t.flags&128)!==0,f=o.rendering,f===null)if(l)hs(o,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Il(e),f!==null){for(t.flags|=128,hs(o,!1),e=f.updateQueue,t.updateQueue=e,Fl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)zm(a,e),a=a.sibling;return Y(mt,mt.current&1|2),t.child}e=e.sibling}o.tail!==null&&Et()>Yl&&(t.flags|=128,l=!0,hs(o,!1),t.lanes=4194304)}else{if(!l)if(e=Il(f),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Fl(t,e),hs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Be)return Qe(t),null}else 2*Et()-o.renderingStartTime>Yl&&a!==536870912&&(t.flags|=128,l=!0,hs(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Et(),t.sibling=null,e=mt.current,Y(mt,l?e&1|2:e&1),t):(Qe(t),null);case 22:case 23:return mr(t),mc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),a=t.updateQueue,a!==null&&Fl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&W(Ta),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),dr(ht),Qe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function BE(e,t){switch(ec(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(ht),_t(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Cr(t),null;case 13:if(mr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(mt),null;case 4:return _t(),null;case 10:return dr(t.type),null;case 22:case 23:return mr(t),mc(),e!==null&&W(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dr(ht),null;case 25:return null;default:return null}}function dp(e,t){switch(ec(t),t.tag){case 3:dr(ht),_t();break;case 26:case 27:case 5:Cr(t);break;case 4:_t();break;case 13:mr(t);break;case 19:W(mt);break;case 10:dr(t.type);break;case 22:case 23:mr(t),mc(),e!==null&&W(Ta);break;case 24:dr(ht)}}function ms(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var f=a.create,p=a.inst;l=f(),p.destroy=l}a=a.next}while(a!==o)}}catch(b){qe(t,t.return,b)}}function qr(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var p=l.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,o=t;var T=a,B=b;try{B()}catch(q){qe(o,T,q)}}}l=l.next}while(l!==f)}}catch(q){qe(t,t.return,q)}}function hp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{e0(t,a)}catch(l){qe(e,e.return,l)}}}function mp(e,t,a){a.props=xa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){qe(e,t,l)}}function ps(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){qe(e,t,o)}}function Pn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){qe(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){qe(e,t,o)}else a.current=null}function pp(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){qe(e,e.return,o)}}function qc(e,t,a){try{var l=e.stateNode;eS(l,e.type,a,t),l[Nt]=t}catch(o){qe(e,e.return,o)}}function gp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kr(e.type)||e.tag===4}function Fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gp(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&&Kr(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 Vc(e,t,a){var l=e.tag;if(l===5||l===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=to));else if(l!==4&&(l===27&&Kr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Vc(e,t,a),e=e.sibling;e!==null;)Vc(e,t,a),e=e.sibling}function Vl(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Kr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vl(e,t,a),e=e.sibling;e!==null;)Vl(e,t,a),e=e.sibling}function yp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);xt(t,l,a),t[ft]=e,t[Nt]=a}catch(f){qe(e,e.return,f)}}var yr=!1,at=!1,Pc=!1,vp=typeof WeakSet=="function"?WeakSet:Set,gt=null;function LE(e,t){if(e=e.containerInfo,gf=oo,e=Cm(e),Fu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var p=0,b=-1,T=-1,B=0,q=0,P=e,U=null;t:for(;;){for(var j;P!==a||o!==0&&P.nodeType!==3||(b=p+o),P!==f||l!==0&&P.nodeType!==3||(T=p+l),P.nodeType===3&&(p+=P.nodeValue.length),(j=P.firstChild)!==null;)U=P,P=j;for(;;){if(P===e)break t;if(U===a&&++B===o&&(b=p),U===f&&++q===l&&(T=p),(j=P.nextSibling)!==null)break;P=U,U=P.parentNode}P=j}a=b===-1||T===-1?null:{start:b,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(yf={focusedElem:e,selectionRange:a},oo=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var he=xa(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(he,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){qe(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)_f(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_f(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function bp(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Fr(e,a),l&4&&ms(5,a);break;case 1:if(Fr(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){qe(a,a.return,p)}else{var o=xa(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){qe(a,a.return,p)}}l&64&&hp(a),l&512&&ps(a,a.return);break;case 3:if(Fr(e,a),l&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{e0(e,t)}catch(p){qe(a,a.return,p)}}break;case 27:t===null&&l&4&&yp(a);case 26:case 5:Fr(e,a),t===null&&l&4&&pp(a),l&512&&ps(a,a.return);break;case 12:Fr(e,a);break;case 13:Fr(e,a),l&4&&Sp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=FE.bind(null,a),lS(e,a))));break;case 22:if(l=a.memoizedState!==null||yr,!l){t=t!==null&&t.memoizedState!==null||at,o=yr;var f=at;yr=l,(at=t)&&!f?Vr(e,a,(a.subtreeFlags&8772)!==0):Fr(e,a),yr=o,at=f}break;case 30:break;default:Fr(e,a)}}function _p(e){var t=e.alternate;t!==null&&(e.alternate=null,_p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qt(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 Xe=null,Xt=!1;function vr(e,t,a){for(a=a.child;a!==null;)Ep(e,t,a),a=a.sibling}function Ep(e,t,a){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(fn,a)}catch{}switch(a.tag){case 26:at||Pn(a,t),vr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:at||Pn(a,t);var l=Xe,o=Xt;Kr(a.type)&&(Xe=a.stateNode,Xt=!1),vr(e,t,a),As(a.stateNode),Xe=l,Xt=o;break;case 5:at||Pn(a,t);case 6:if(l=Xe,o=Xt,Xe=null,vr(e,t,a),Xe=l,Xt=o,Xe!==null)if(Xt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(f){qe(a,t,f)}else try{Xe.removeChild(a.stateNode)}catch(f){qe(a,t,f)}break;case 18:Xe!==null&&(Xt?(e=Xe,ug(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):ug(Xe,a.stateNode));break;case 4:l=Xe,o=Xt,Xe=a.stateNode.containerInfo,Xt=!0,vr(e,t,a),Xe=l,Xt=o;break;case 0:case 11:case 14:case 15:at||qr(2,a,t),at||qr(4,a,t),vr(e,t,a);break;case 1:at||(Pn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&mp(a,t,l)),vr(e,t,a);break;case 21:vr(e,t,a);break;case 22:at=(l=at)||a.memoizedState!==null,vr(e,t,a),at=l;break;default:vr(e,t,a)}}function Sp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ds(e)}catch(a){qe(t,t.return,a)}}function UE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vp),t;default:throw Error(s(435,e.tag))}}function Yc(e,t){var a=UE(e);t.forEach(function(l){var o=VE.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function Jt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=e,p=t,b=p;e:for(;b!==null;){switch(b.tag){case 27:if(Kr(b.type)){Xe=b.stateNode,Xt=!1;break e}break;case 5:Xe=b.stateNode,Xt=!1;break e;case 3:case 4:Xe=b.stateNode.containerInfo,Xt=!0;break e}b=b.return}if(Xe===null)throw Error(s(160));Ep(f,p,o),Xe=null,Xt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Tp(t,e),t=t.sibling}var Nn=null;function Tp(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jt(t,e),en(e),l&4&&(qr(3,e,e.return),ms(3,e),qr(5,e,e.return));break;case 1:Jt(t,e),en(e),l&512&&(at||a===null||Pn(a,a.return)),l&64&&yr&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Nn;if(Jt(t,e),en(e),l&512&&(at||a===null||Pn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Dr]||f[ft]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),xt(f,l,a),f[ft]=e,it(f),l=f;break e;case"link":var p=yg("link","href",o).get(l+(a.href||""));if(p){for(var b=0;b<p.length;b++)if(f=p[b],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(b,1);break t}}f=o.createElement(l),xt(f,l,a),o.head.appendChild(f);break;case"meta":if(p=yg("meta","content",o).get(l+(a.content||""))){for(b=0;b<p.length;b++)if(f=p[b],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(b,1);break t}}f=o.createElement(l),xt(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[ft]=e,it(f),l=f}e.stateNode=l}else vg(o,e.type,e.stateNode);else e.stateNode=gg(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?vg(o,e.type,e.stateNode):gg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&qc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Jt(t,e),en(e),l&512&&(at||a===null||Pn(a,a.return)),a!==null&&l&4&&qc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Jt(t,e),en(e),l&512&&(at||a===null||Pn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(j){qe(e,e.return,j)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,qc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Pc=!0);break;case 6:if(Jt(t,e),en(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(j){qe(e,e.return,j)}}break;case 3:if(io=null,o=Nn,Nn=ro(t.containerInfo),Jt(t,e),Nn=o,en(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ds(t.containerInfo)}catch(j){qe(e,e.return,j)}Pc&&(Pc=!1,Ap(e));break;case 4:l=Nn,Nn=ro(e.stateNode.containerInfo),Jt(t,e),en(e),Nn=l;break;case 12:Jt(t,e),en(e);break;case 13:Jt(t,e),en(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Wc=Et()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 22:o=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,B=yr,q=at;if(yr=B||o,at=q||T,Jt(t,e),at=q,yr=B,en(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||T||yr||at||Oa(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){T=a=t;try{if(f=T.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=T.stateNode;var P=T.memoizedProps.style,U=P!=null&&P.hasOwnProperty("display")?P.display:null;b.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(j){qe(T,T.return,j)}}}else if(t.tag===6){if(a===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(j){qe(T,T.return,j)}}}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}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Yc(e,a))));break;case 19:Jt(t,e),en(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 30:break;case 21:break;default:Jt(t,e),en(e)}}function en(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(gp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=Fc(e);Vl(e,f,o);break;case 5:var p=a.stateNode;a.flags&32&&(Xa(p,""),a.flags&=-33);var b=Fc(e);Vl(e,b,p);break;case 3:case 4:var T=a.stateNode.containerInfo,B=Fc(e);Vc(e,B,T);break;default:throw Error(s(161))}}catch(q){qe(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ap(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ap(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Fr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bp(e,t.alternate,t),t=t.sibling}function Oa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qr(4,t,t.return),Oa(t);break;case 1:Pn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&mp(t,t.return,a),Oa(t);break;case 27:As(t.stateNode);case 26:case 5:Pn(t,t.return),Oa(t);break;case 22:t.memoizedState===null&&Oa(t);break;case 30:Oa(t);break;default:Oa(t)}e=e.sibling}}function Vr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,f=t,p=f.flags;switch(f.tag){case 0:case 11:case 15:Vr(o,f,a),ms(4,f);break;case 1:if(Vr(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){qe(l,l.return,B)}if(l=f,o=l.updateQueue,o!==null){var b=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Jm(T[o],b)}catch(B){qe(l,l.return,B)}}a&&p&64&&hp(f),ps(f,f.return);break;case 27:yp(f);case 26:case 5:Vr(o,f,a),a&&l===null&&p&4&&pp(f),ps(f,f.return);break;case 12:Vr(o,f,a);break;case 13:Vr(o,f,a),a&&p&4&&Sp(o,f);break;case 22:f.memoizedState===null&&Vr(o,f,a),ps(f,f.return);break;case 30:break;default:Vr(o,f,a)}t=t.sibling}}function Xc(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&&es(a))}function Zc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function Yn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xp(e,t,a,l),t=t.sibling}function xp(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Yn(e,t,a,l),o&2048&&ms(9,t);break;case 1:Yn(e,t,a,l);break;case 3:Yn(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){Yn(e,t,a,l),e=t.stateNode;try{var f=t.memoizedProps,p=f.id,b=f.onPostCommit;typeof b=="function"&&b(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(t,t.return,T)}}else Yn(e,t,a,l);break;case 13:Yn(e,t,a,l);break;case 23:break;case 22:f=t.stateNode,p=t.alternate,t.memoizedState!==null?f._visibility&2?Yn(e,t,a,l):gs(e,t):f._visibility&2?Yn(e,t,a,l):(f._visibility|=2,di(e,t,a,l,(t.subtreeFlags&10256)!==0)),o&2048&&Xc(p,t);break;case 24:Yn(e,t,a,l),o&2048&&Zc(t.alternate,t);break;default:Yn(e,t,a,l)}}function di(e,t,a,l,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,p=t,b=a,T=l,B=p.flags;switch(p.tag){case 0:case 11:case 15:di(f,p,b,T,o),ms(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?di(f,p,b,T,o):gs(f,p):(q._visibility|=2,di(f,p,b,T,o)),o&&B&2048&&Xc(p.alternate,p);break;case 24:di(f,p,b,T,o),o&&B&2048&&Zc(p.alternate,p);break;default:di(f,p,b,T,o)}t=t.sibling}}function gs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:gs(a,l),o&2048&&Xc(l.alternate,l);break;case 24:gs(a,l),o&2048&&Zc(l.alternate,l);break;default:gs(a,l)}t=t.sibling}}var ys=8192;function hi(e){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Op(e),e=e.sibling}function Op(e){switch(e.tag){case 26:hi(e),e.flags&ys&&e.memoizedState!==null&&_S(Nn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var t=Nn;Nn=ro(e.stateNode.containerInfo),hi(e),Nn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=ys,ys=16777216,hi(e),ys=t):hi(e));break;default:hi(e)}}function Rp(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 vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];gt=l,Cp(l,e)}Rp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wp(e),e=e.sibling}function wp(e){switch(e.tag){case 0:case 11:case 15:vs(e),e.flags&2048&&qr(9,e,e.return);break;case 3:vs(e);break;case 12:vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pl(e)):vs(e);break;default:vs(e)}}function Pl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];gt=l,Cp(l,e)}Rp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qr(8,t,t.return),Pl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Pl(t));break;default:Pl(t)}e=e.sibling}}function Cp(e,t){for(;gt!==null;){var a=gt;switch(a.tag){case 0:case 11:case 15:qr(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:es(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,gt=l;else e:for(a=e;gt!==null;){l=gt;var o=l.sibling,f=l.return;if(_p(l),l===a){gt=null;break e}if(o!==null){o.return=f,gt=o;break e}gt=f}}}var HE={getCacheForType:function(e){var t=Dt(ht),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},jE=typeof WeakMap=="function"?WeakMap:Map,He=0,Ve=null,Ae=null,Ne=0,je=0,tn=null,Pr=!1,mi=!1,Qc=!1,br=0,et=0,Yr=0,Ra=0,Kc=0,bn=0,pi=0,bs=null,Zt=null,$c=!1,Wc=0,Yl=1/0,Xl=null,Xr=null,At=0,Zr=null,gi=null,yi=0,Jc=0,ef=null,Np=null,_s=0,tf=null;function nn(){if((He&2)!==0&&Ne!==0)return Ne&-Ne;if(G.T!==null){var e=ai;return e!==0?e:uf()}return Ii()}function Mp(){bn===0&&(bn=(Ne&536870912)===0||Be?fa():536870912);var e=vn.current;return e!==null&&(e.flags|=32),bn}function rn(e,t,a){(e===Ve&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(vi(e,0),Qr(e,Ne,bn,!1)),Rn(e,a),((He&2)===0||e!==Ve)&&(e===Ve&&((He&2)===0&&(Ra|=a),et===4&&Qr(e,Ne,bn,!1)),Xn(e))}function Dp(e,t,a){if((He&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||nr(e,t),o=l?GE(e,t):af(e,t,!0),f=l;do{if(o===0){mi&&!l&&Qr(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!IE(a)){o=af(e,t,!1),f=!1;continue}if(o===2){if(f=t,e.errorRecoveryDisabledLanes&f)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=bs;var T=b.current.memoizedState.isDehydrated;if(T&&(vi(b,p).flags|=256),p=af(b,p,!1),p!==2){if(Qc&&!T){b.errorRecoveryDisabledLanes|=f,Ra|=f,o=4;break e}f=Zt,Zt=o,f!==null&&(Zt===null?Zt=f:Zt.push.apply(Zt,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){vi(e,0),Qr(e,t,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Qr(l,t,bn,!Pr);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Wc+300-Et(),10<o)){if(Qr(l,t,bn,!Pr),Mr(l,0,!0)!==0)break e;l.timeoutHandle=lg(Bp.bind(null,l,a,Zt,Xl,$c,t,bn,Ra,pi,Pr,f,2,-0,0),o);break e}Bp(l,a,Zt,Xl,$c,t,bn,Ra,pi,Pr,f,0,-0,0)}}break}while(!0);Xn(e)}function Bp(e,t,a,l,o,f,p,b,T,B,q,P,U,j){if(e.timeoutHandle=-1,P=t.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Rs={stylesheets:null,count:0,unsuspend:bS},Op(t),P=ES(),P!==null)){e.cancelPendingCommit=P(Gp.bind(null,e,t,f,a,l,o,p,b,T,q,1,U,j)),Qr(e,f,p,!B);return}Gp(e,t,f,a,l,o,p,b,T)}function IE(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 l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!$t(f(),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 Qr(e,t,a,l){t&=~Kc,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var f=31-Ct(o),p=1<<f;l[f]=-1,o&=~p}a!==0&&al(e,a,t)}function Zl(){return(He&6)===0?(Es(0),!1):!0}function nf(){if(Ae!==null){if(je===0)var e=Ae.return;else e=Ae,fr=Ea=null,bc(e),ci=null,fs=0,e=Ae;for(;e!==null;)dp(e.alternate,e),e=e.return;Ae=null}}function vi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,nS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),nf(),Ve=e,Ae=a=or(e.current,null),Ne=t,je=0,tn=null,Pr=!1,mi=nr(e,t),Qc=!1,pi=bn=Kc=Ra=Yr=et=0,Zt=bs=null,$c=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Ct(l),f=1<<o;t|=e[o],l&=~f}return br=t,gl(),a}function Lp(e,t){_e=null,G.H=Ul,t===ns||t===xl?(t=$m(),je=3):t===Zm?(t=$m(),je=4):je=t===W0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Ae===null&&(et=1,Gl(e,mn(t,e.current)))}function Up(){var e=G.H;return G.H=Ul,e===null?Ul:e}function Hp(){var e=G.A;return G.A=HE,e}function rf(){et=4,Pr||(Ne&4194048)!==Ne&&vn.current!==null||(mi=!0),(Yr&134217727)===0&&(Ra&134217727)===0||Ve===null||Qr(Ve,Ne,bn,!1)}function af(e,t,a){var l=He;He|=2;var o=Up(),f=Hp();(Ve!==e||Ne!==t)&&(Xl=null,vi(e,t)),t=!1;var p=et;e:do try{if(je!==0&&Ae!==null){var b=Ae,T=tn;switch(je){case 8:nf(),p=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(t=!0);var B=je;if(je=0,tn=null,bi(e,b,T,B),a&&mi){p=0;break e}break;default:B=je,je=0,tn=null,bi(e,b,T,B)}}zE(),p=et;break}catch(q){Lp(e,q)}while(!0);return t&&e.shellSuspendCounter++,fr=Ea=null,He=l,G.H=o,G.A=f,Ae===null&&(Ve=null,Ne=0,gl()),p}function zE(){for(;Ae!==null;)jp(Ae)}function GE(e,t){var a=He;He|=2;var l=Up(),o=Hp();Ve!==e||Ne!==t?(Xl=null,Yl=Et()+500,vi(e,t)):mi=nr(e,t);e:do try{if(je!==0&&Ae!==null){t=Ae;var f=tn;t:switch(je){case 1:je=0,tn=null,bi(e,t,f,1);break;case 2:case 9:if(Qm(f)){je=0,tn=null,Ip(t);break}t=function(){je!==2&&je!==9||Ve!==e||(je=7),Xn(e)},f.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Qm(f)?(je=0,tn=null,Ip(t)):(je=0,tn=null,bi(e,t,f,7));break;case 5:var p=null;switch(Ae.tag){case 26:p=Ae.memoizedState;case 5:case 27:var b=Ae;if(!p||bg(p)){je=0,tn=null;var T=b.sibling;if(T!==null)Ae=T;else{var B=b.return;B!==null?(Ae=B,Ql(B)):Ae=null}break t}}je=0,tn=null,bi(e,t,f,5);break;case 6:je=0,tn=null,bi(e,t,f,6);break;case 8:nf(),et=6;break e;default:throw Error(s(462))}}kE();break}catch(q){Lp(e,q)}while(!0);return fr=Ea=null,G.H=l,G.A=o,He=a,Ae!==null?0:(Ve=null,Ne=0,gl(),et)}function kE(){for(;Ae!==null&&!Di();)jp(Ae)}function jp(e){var t=cp(e.alternate,e,br);e.memoizedProps=e.pendingProps,t===null?Ql(e):Ae=t}function Ip(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ap(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=ap(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:bc(t);default:dp(a,t),t=Ae=zm(t,br),t=cp(a,t,br)}e.memoizedProps=e.pendingProps,t===null?Ql(e):Ae=t}function bi(e,t,a,l){fr=Ea=null,bc(t),ci=null,fs=0;var o=t.return;try{if(NE(e,o,t,a,Ne)){et=1,Gl(e,mn(a,e.current)),Ae=null;return}}catch(f){if(o!==null)throw Ae=o,f;et=1,Gl(e,mn(a,e.current)),Ae=null;return}t.flags&32768?(Be||l===1?e=!0:mi||(Ne&536870912)!==0?e=!1:(Pr=e=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),zp(t,e)):Ql(t)}function Ql(e){var t=e;do{if((t.flags&32768)!==0){zp(t,Pr);return}e=t.return;var a=DE(t.alternate,t,br);if(a!==null){Ae=a;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);et===0&&(et=5)}function zp(e,t){do{var a=BE(e.alternate,e);if(a!==null){a.flags&=32767,Ae=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=a}while(e!==null);et=6,Ae=null}function Gp(e,t,a,l,o,f,p,b,T){e.cancelPendingCommit=null;do Kl();while(At!==0);if((He&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=Zu,xu(e,a,f,p,b,T),e===Ve&&(Ae=Ve=null,Ne=0),gi=t,Zr=e,yi=a,Jc=f,ef=o,Np=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,PE(ua,function(){return Pp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,o=K.p,K.p=2,p=He,He|=4;try{LE(e,t,a)}finally{He=p,K.p=o,G.T=l}}At=1,kp(),qp(),Fp()}}function kp(){if(At===1){At=0;var e=Zr,t=gi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=G.T,G.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{Tp(t,e);var f=yf,p=Cm(e.containerInfo),b=f.focusedElem,T=f.selectionRange;if(p!==b&&b&&b.ownerDocument&&wm(b.ownerDocument.documentElement,b)){if(T!==null&&Fu(b)){var B=T.start,q=T.end;if(q===void 0&&(q=B),"selectionStart"in b)b.selectionStart=B,b.selectionEnd=Math.min(q,b.value.length);else{var P=b.ownerDocument||document,U=P&&P.defaultView||window;if(U.getSelection){var j=U.getSelection(),he=b.textContent.length,fe=Math.min(T.start,he),ke=T.end===void 0?fe:Math.min(T.end,he);!j.extend&&fe>ke&&(p=ke,ke=fe,fe=p);var M=Rm(b,fe),C=Rm(b,ke);if(M&&C&&(j.rangeCount!==1||j.anchorNode!==M.node||j.anchorOffset!==M.offset||j.focusNode!==C.node||j.focusOffset!==C.offset)){var D=P.createRange();D.setStart(M.node,M.offset),j.removeAllRanges(),fe>ke?(j.addRange(D),j.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),j.addRange(D))}}}}for(P=[],j=b;j=j.parentNode;)j.nodeType===1&&P.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<P.length;b++){var V=P[b];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}oo=!!gf,yf=gf=null}finally{He=o,K.p=l,G.T=a}}e.current=t,At=2}}function qp(){if(At===2){At=0;var e=Zr,t=gi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=G.T,G.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{bp(e,t.alternate,t)}finally{He=o,K.p=l,G.T=a}}At=3}}function Fp(){if(At===4||At===3){At=0,Bi();var e=Zr,t=gi,a=yi,l=Np;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?At=5:(At=0,gi=Zr=null,Vp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Xr=null),ji(a),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(fn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,o=K.p,K.p=2,G.T=null;try{for(var f=e.onRecoverableError,p=0;p<l.length;p++){var b=l[p];f(b.value,{componentStack:b.stack})}}finally{G.T=t,K.p=o}}(yi&3)!==0&&Kl(),Xn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===tf?_s++:(_s=0,tf=e):_s=0,Es(0)}}function Vp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function Kl(e){return kp(),qp(),Fp(),Pp()}function Pp(){if(At!==5)return!1;var e=Zr,t=Jc;Jc=0;var a=ji(yi),l=G.T,o=K.p;try{K.p=32>a?32:a,G.T=null,a=ef,ef=null;var f=Zr,p=yi;if(At=0,gi=Zr=null,yi=0,(He&6)!==0)throw Error(s(331));var b=He;if(He|=4,wp(f.current),xp(f,f.current,p,a),He=b,Es(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(fn,f)}catch{}return!0}finally{K.p=o,G.T=l,Vp(e,t)}}function Yp(e,t,a){t=mn(a,t),t=Bc(e.stateNode,t,2),e=Ir(e,t,2),e!==null&&(Rn(e,2),Xn(e))}function qe(e,t,a){if(e.tag===3)Yp(e,e,a);else for(;t!==null;){if(t.tag===3){Yp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Xr===null||!Xr.has(l))){e=mn(a,e),a=K0(2),l=Ir(t,a,2),l!==null&&($0(a,l,t,e),Rn(l,2),Xn(l));break}}t=t.return}}function sf(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new jE;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(Qc=!0,o.add(a),e=qE.bind(null,e,t,a),t.then(e,e))}function qE(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ve===e&&(Ne&a)===a&&(et===4||et===3&&(Ne&62914560)===Ne&&300>Et()-Wc?(He&2)===0&&vi(e,0):Kc|=a,pi===Ne&&(pi=0)),Xn(e)}function Xp(e,t){t===0&&(t=da()),e=ei(e,t),e!==null&&(Rn(e,t),Xn(e))}function FE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Xp(e,a)}function VE(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Xp(e,a)}function PE(e,t){return kt(e,t)}var $l=null,_i=null,lf=!1,Wl=!1,of=!1,wa=0;function Xn(e){e!==_i&&e.next===null&&(_i===null?$l=_i=e:_i=_i.next=e),Wl=!0,lf||(lf=!0,XE())}function Es(e,t){if(!of&&Wl){of=!0;do for(var a=!1,l=$l;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var p=l.suspendedLanes,b=l.pingedLanes;f=(1<<31-Ct(42|e)+1)-1,f&=o&~(p&~b),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,$p(l,f))}else f=Ne,f=Mr(l,l===Ve?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||nr(l,f)||(a=!0,$p(l,f));l=l.next}while(a);of=!1}}function YE(){Zp()}function Zp(){Wl=lf=!1;var e=0;wa!==0&&(tS()&&(e=wa),wa=0);for(var t=Et(),a=null,l=$l;l!==null;){var o=l.next,f=Qp(l,t);f===0?(l.next=null,a===null?$l=o:a.next=o,o===null&&(_i=a)):(a=l,(e!==0||(f&3)!==0)&&(Wl=!0)),l=o}Es(e)}function Qp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var p=31-Ct(f),b=1<<p,T=o[p];T===-1?((b&a)===0||(b&l)!==0)&&(o[p]=Au(b,t)):T<=t&&(e.expiredLanes|=b),f&=~b}if(t=Ve,a=Ne,a=Mr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&xn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&xn(l),ji(a)){case 2:case 8:a=Li;break;case 32:a=ua;break;case 268435456:a=Fa;break;default:a=ua}return l=Kp.bind(null,e),a=kt(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&xn(l),e.callbackPriority=2,e.callbackNode=null,2}function Kp(e,t){if(At!==0&&At!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Kl()&&e.callbackNode!==a)return null;var l=Ne;return l=Mr(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Dp(e,l,t),Qp(e,Et()),e.callbackNode!=null&&e.callbackNode===a?Kp.bind(null,e):null)}function $p(e,t){if(Kl())return null;Dp(e,t,!0)}function XE(){rS(function(){(He&6)!==0?kt(oa,YE):Zp()})}function uf(){return wa===0&&(wa=fa()),wa}function Wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ul(""+e)}function Jp(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function ZE(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var f=Wp((o[Nt]||null).action),p=l.submitter;p&&(t=(t=p[Nt]||null)?Wp(t.formAction):p.getAttribute("formAction"),t!==null&&(f=t,p=null));var b=new hl("action","action",null,l,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(wa!==0){var T=p?Jp(o,p):new FormData(o);wc(a,{pending:!0,data:T,method:o.method,action:f},null,T)}}else typeof f=="function"&&(b.preventDefault(),T=p?Jp(o,p):new FormData(o),wc(a,{pending:!0,data:T,method:o.method,action:f},f,T))},currentTarget:o}]})}}for(var cf=0;cf<Xu.length;cf++){var ff=Xu[cf],QE=ff.toLowerCase(),KE=ff[0].toUpperCase()+ff.slice(1);Cn(QE,"on"+KE)}Cn(Dm,"onAnimationEnd"),Cn(Bm,"onAnimationIteration"),Cn(Lm,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(hE,"onTransitionRun"),Cn(mE,"onTransitionStart"),Cn(pE,"onTransitionCancel"),Cn(Um,"onTransitionEnd"),J("onMouseEnter",["mouseout","mouseover"]),J("onMouseLeave",["mouseout","mouseover"]),J("onPointerEnter",["pointerout","pointerover"]),J("onPointerLeave",["pointerout","pointerover"]),X("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),X("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),X("onBeforeInput",["compositionend","keypress","textInput","paste"]),X("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="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(" "),$E=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function eg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var p=l.length-1;0<=p;p--){var b=l[p],T=b.instance,B=b.currentTarget;if(b=b.listener,T!==f&&o.isPropagationStopped())break e;f=b,o.currentTarget=B;try{f(o)}catch(q){zl(q)}o.currentTarget=null,f=T}else for(p=0;p<l.length;p++){if(b=l[p],T=b.instance,B=b.currentTarget,b=b.listener,T!==f&&o.isPropagationStopped())break e;f=b,o.currentTarget=B;try{f(o)}catch(q){zl(q)}o.currentTarget=null,f=T}}}}function xe(e,t){var a=t[kn];a===void 0&&(a=t[kn]=new Set);var l=e+"__bubble";a.has(l)||(tg(t,e,2,!1),a.add(l))}function df(e,t,a){var l=0;t&&(l|=4),tg(a,e,l,t)}var Jl="_reactListening"+Math.random().toString(36).slice(2);function hf(e){if(!e[Jl]){e[Jl]=!0,le.forEach(function(a){a!=="selectionchange"&&($E.has(a)||df(a,!1,e),df(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jl]||(t[Jl]=!0,df("selectionchange",!1,t))}}function tg(e,t,a,l){switch(xg(t)){case 2:var o=AS;break;case 8:o=xS;break;default:o=Rf}a=o.bind(null,t,a,e),o=void 0,!Lu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?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 mf(e,t,a,l,o){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var b=l.stateNode.containerInfo;if(b===o)break;if(p===4)for(p=l.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;b!==null;){if(p=rr(b),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){l=f=p;continue e}b=b.parentNode}}l=l.return}om(function(){var B=f,q=Du(a),P=[];e:{var U=Hm.get(e);if(U!==void 0){var j=hl,he=e;switch(e){case"keypress":if(fl(a)===0)break e;case"keydown":case"keyup":j=P_;break;case"focusin":he="focus",j=Iu;break;case"focusout":he="blur",j=Iu;break;case"beforeblur":case"afterblur":j=Iu;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":j=fm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=B_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Z_;break;case Dm:case Bm:case Lm:j=H_;break;case Um:j=K_;break;case"scroll":case"scrollend":j=M_;break;case"wheel":j=W_;break;case"copy":case"cut":case"paste":j=I_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=hm;break;case"toggle":case"beforetoggle":j=eE}var fe=(t&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?U!==null?U+"Capture":null:U;fe=[];for(var C=B,D;C!==null;){var V=C;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=ki(C,M),V!=null&&fe.push(Ts(C,V,D))),ke)break;C=C.return}0<fe.length&&(U=new j(U,he,null,a,q),P.push({event:U,listeners:fe}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",U&&a!==Mu&&(he=a.relatedTarget||a.fromElement)&&(rr(he)||he[St]))break e;if((j||U)&&(U=q.window===q?q:(U=q.ownerDocument)?U.defaultView||U.parentWindow:window,j?(he=a.relatedTarget||a.toElement,j=B,he=he?rr(he):null,he!==null&&(ke=c(he),fe=he.tag,he!==ke||fe!==5&&fe!==27&&fe!==6)&&(he=null)):(j=null,he=B),j!==he)){if(fe=fm,V="onMouseLeave",M="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(fe=hm,V="onPointerLeave",M="onPointerEnter",C="pointer"),ke=j==null?U:Br(j),D=he==null?U:Br(he),U=new fe(V,C+"leave",j,a,q),U.target=ke,U.relatedTarget=D,V=null,rr(q)===B&&(fe=new fe(M,C+"enter",he,a,q),fe.target=D,fe.relatedTarget=ke,V=fe),ke=V,j&&he)t:{for(fe=j,M=he,C=0,D=fe;D;D=Ei(D))C++;for(D=0,V=M;V;V=Ei(V))D++;for(;0<C-D;)fe=Ei(fe),C--;for(;0<D-C;)M=Ei(M),D--;for(;C--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Ei(fe),M=Ei(M)}fe=null}else fe=null;j!==null&&ng(P,U,j,fe,!1),he!==null&&ke!==null&&ng(P,ke,he,fe,!0)}}e:{if(U=B?Br(B):window,j=U.nodeName&&U.nodeName.toLowerCase(),j==="select"||j==="input"&&U.type==="file")var ne=Em;else if(bm(U))if(Sm)ne=cE;else{ne=oE;var Se=lE}else j=U.nodeName,!j||j.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&Nu(B.elementType)&&(ne=Em):ne=uE;if(ne&&(ne=ne(e,B))){_m(P,ne,a,q);break e}Se&&Se(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&Cu(U,"number",U.value)}switch(Se=B?Br(B):window,e){case"focusin":(bm(Se)||Se.contentEditable==="true")&&($a=Se,Vu=B,Qi=null);break;case"focusout":Qi=Vu=$a=null;break;case"mousedown":Pu=!0;break;case"contextmenu":case"mouseup":case"dragend":Pu=!1,Nm(P,a,q);break;case"selectionchange":if(dE)break;case"keydown":case"keyup":Nm(P,a,q)}var oe;if(Gu)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Ka?ym(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(mm&&a.locale!=="ko"&&(Ka||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ka&&(oe=um()):(Lr=q,Uu="value"in Lr?Lr.value:Lr.textContent,Ka=!0)),Se=eo(B,de),0<Se.length&&(de=new dm(de,e,null,a,q),P.push({event:de,listeners:Se}),oe?de.data=oe:(oe=vm(a),oe!==null&&(de.data=oe)))),(oe=nE?rE(e,a):aE(e,a))&&(de=eo(B,"onBeforeInput"),0<de.length&&(Se=new dm("onBeforeInput","beforeinput",null,a,q),P.push({event:Se,listeners:de}),Se.data=oe)),ZE(P,e,B,a,q)}eg(P,t)})}function Ts(e,t,a){return{instance:e,listener:t,currentTarget:a}}function eo(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=ki(e,a),o!=null&&l.unshift(Ts(e,o,f)),o=ki(e,t),o!=null&&l.push(Ts(e,o,f))),e.tag===3)return l;e=e.return}return[]}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ng(e,t,a,l,o){for(var f=t._reactName,p=[];a!==null&&a!==l;){var b=a,T=b.alternate,B=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||B===null||(T=B,o?(B=ki(a,f),B!=null&&p.unshift(Ts(a,B,T))):o||(B=ki(a,f),B!=null&&p.push(Ts(a,B,T)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var WE=/\r\n?/g,JE=/\u0000|\uFFFD/g;function rg(e){return(typeof e=="string"?e:""+e).replace(WE,`
49
- `).replace(JE,"")}function ag(e,t){return t=rg(t),rg(e)===t}function to(){}function Ge(e,t,a,l,o,f){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xa(e,""+l);break;case"className":qn(e,"class",l);break;case"tabIndex":qn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qn(e,a,l);break;case"style":sm(e,l,f);break;case"data":if(t!=="object"){qn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ul(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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 f=="function"&&(a==="formAction"?(t!=="input"&&Ge(e,t,"name",o.name,o,null),Ge(e,t,"formEncType",o.formEncType,o,null),Ge(e,t,"formMethod",o.formMethod,o,null),Ge(e,t,"formTarget",o.formTarget,o,null)):(Ge(e,t,"encType",o.encType,o,null),Ge(e,t,"method",o.method,o,null),Ge(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ul(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=to);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ul(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Vt(e,"popover",l);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=C_.get(a)||a,Vt(e,a,l))}}function pf(e,t,a,l,o,f){switch(a){case"style":sm(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&Xa(e,""+l);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=to);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!N.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),f=e[Nt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Vt(e,a,l)}}}function xt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ge(e,t,f,p,a,null)}}o&&Ge(e,t,"srcSet",a.srcSet,a,null),l&&Ge(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var b=f=p=o=null,T=null,B=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":o=q;break;case"type":p=q;break;case"checked":T=q;break;case"defaultChecked":B=q;break;case"value":f=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:Ge(e,t,l,q,a,null)}}nm(e,f,b,T,B,p,o,!1),ll(e);return;case"select":xe("invalid",e),l=p=f=null;for(o in a)if(a.hasOwnProperty(o)&&(b=a[o],b!=null))switch(o){case"value":f=b;break;case"defaultValue":p=b;break;case"multiple":l=b;default:Ge(e,t,o,b,a,null)}t=f,a=p,e.multiple=!!l,t!=null?Ya(e,!!l,t,!1):a!=null&&Ya(e,!!l,a,!0);return;case"textarea":xe("invalid",e),f=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(b=a[p],b!=null))switch(p){case"value":l=b;break;case"defaultValue":o=b;break;case"children":f=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:Ge(e,t,p,b,a,null)}am(e,l,o,f),ll(e);return;case"option":for(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,t,T,l,a,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(l=0;l<Ss.length;l++)xe(Ss[l],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(B in a)if(a.hasOwnProperty(B)&&(l=a[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ge(e,t,B,l,a,null)}return;default:if(Nu(t)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&pf(e,t,q,l,a,void 0));return}}for(b in a)a.hasOwnProperty(b)&&(l=a[b],l!=null&&Ge(e,t,b,l,a,null))}function eS(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,p=null,b=null,T=null,B=null,q=null;for(j in a){var P=a[j];if(a.hasOwnProperty(j)&&P!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(j)||Ge(e,t,j,null,l,P)}}for(var U in l){var j=l[U];if(P=a[U],l.hasOwnProperty(U)&&(j!=null||P!=null))switch(U){case"type":f=j;break;case"name":o=j;break;case"checked":B=j;break;case"defaultChecked":q=j;break;case"value":p=j;break;case"defaultValue":b=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==P&&Ge(e,t,U,j,l,P)}}wu(e,p,b,T,B,q,f,o);return;case"select":j=p=b=U=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":j=T;default:l.hasOwnProperty(f)||Ge(e,t,f,null,l,T)}for(o in l)if(f=l[o],T=a[o],l.hasOwnProperty(o)&&(f!=null||T!=null))switch(o){case"value":U=f;break;case"defaultValue":b=f;break;case"multiple":p=f;default:f!==T&&Ge(e,t,o,f,l,T)}t=b,a=p,l=j,U!=null?Ya(e,!!a,U,!1):!!l!=!!a&&(t!=null?Ya(e,!!a,t,!0):Ya(e,!!a,a?[]:"",!1));return;case"textarea":j=U=null;for(b in a)if(o=a[b],a.hasOwnProperty(b)&&o!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ge(e,t,b,null,l,o)}for(p in l)if(o=l[p],f=a[p],l.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":U=o;break;case"defaultValue":j=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==f&&Ge(e,t,p,o,l,f)}rm(e,U,j);return;case"option":for(var he in a)if(U=a[he],a.hasOwnProperty(he)&&U!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ge(e,t,he,null,l,U)}for(T in l)if(U=l[T],j=a[T],l.hasOwnProperty(T)&&U!==j&&(U!=null||j!=null))switch(T){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ge(e,t,T,U,l,j)}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 fe in a)U=a[fe],a.hasOwnProperty(fe)&&U!=null&&!l.hasOwnProperty(fe)&&Ge(e,t,fe,null,l,U);for(B in l)if(U=l[B],j=a[B],l.hasOwnProperty(B)&&U!==j&&(U!=null||j!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:Ge(e,t,B,U,l,j)}return;default:if(Nu(t)){for(var ke in a)U=a[ke],a.hasOwnProperty(ke)&&U!==void 0&&!l.hasOwnProperty(ke)&&pf(e,t,ke,void 0,l,U);for(q in l)U=l[q],j=a[q],!l.hasOwnProperty(q)||U===j||U===void 0&&j===void 0||pf(e,t,q,U,l,j);return}}for(var M in a)U=a[M],a.hasOwnProperty(M)&&U!=null&&!l.hasOwnProperty(M)&&Ge(e,t,M,null,l,U);for(P in l)U=l[P],j=a[P],!l.hasOwnProperty(P)||U===j||U==null&&j==null||Ge(e,t,P,U,l,j)}var gf=null,yf=null;function no(e){return e.nodeType===9?e:e.ownerDocument}function ig(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 sg(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 vf(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 bf=null;function tS(){var e=window.event;return e&&e.type==="popstate"?e===bf?!1:(bf=e,!0):(bf=null,!1)}var lg=typeof setTimeout=="function"?setTimeout:void 0,nS=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,rS=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(e){return og.resolve(null).then(e).catch(aS)}:lg;function aS(e){setTimeout(function(){throw e})}function Kr(e){return e==="head"}function ug(e,t){var a=t,l=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var p=e.ownerDocument;if(a&1&&As(p.documentElement),a&2&&As(p.body),a&4)for(a=p.head,As(a),p=a.firstChild;p;){var b=p.nextSibling,T=p.nodeName;p[Dr]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=b}}if(o===0){e.removeChild(f),Ds(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);Ds(t)}function _f(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":_f(a),Qt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function iS(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Dr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==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(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Mn(e.nextSibling),e===null)break}return null}function sS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Mn(e.nextSibling),e===null))return null;return e}function Ef(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function lS(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Mn(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 Sf=null;function cg(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 fg(e,t,a){switch(t=no(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function As(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qt(e)}var _n=new Map,dg=new Set;function ro(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _r=K.d;K.d={f:oS,r:uS,D:cS,C:fS,L:dS,m:hS,X:pS,S:mS,M:gS};function oS(){var e=_r.f(),t=Zl();return e||t}function uS(e){var t=ar(e);t!==null&&t.tag===5&&t.type==="form"?D0(t):_r.r(e)}var Si=typeof document>"u"?null:document;function hg(e,t,a){var l=Si;if(l&&typeof t=="string"&&t){var o=hn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),dg.has(o)||(dg.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),xt(t,"link",e),it(t),l.head.appendChild(t)))}}function cS(e){_r.D(e),hg("dns-prefetch",e,null)}function fS(e,t){_r.C(e,t),hg("preconnect",e,t)}function dS(e,t,a){_r.L(e,t,a);var l=Si;if(l&&e&&t){var o='link[rel="preload"][as="'+hn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+hn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+hn(a.imageSizes)+'"]')):o+='[href="'+hn(e)+'"]';var f=o;switch(t){case"style":f=Ti(e);break;case"script":f=Ai(e)}_n.has(f)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),_n.set(f,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(xs(f))||t==="script"&&l.querySelector(Os(f))||(t=l.createElement("link"),xt(t,"link",e),it(t),l.head.appendChild(t)))}}function hS(e,t){_r.m(e,t);var a=Si;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+hn(l)+'"][href="'+hn(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ai(e)}if(!_n.has(f)&&(e=y({rel:"modulepreload",href:e},t),_n.set(f,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Os(f)))return}l=a.createElement("link"),xt(l,"link",e),it(l),a.head.appendChild(l)}}}function mS(e,t,a){_r.S(e,t,a);var l=Si;if(l&&e){var o=ir(l).hoistableStyles,f=Ti(e);t=t||"default";var p=o.get(f);if(!p){var b={loading:0,preload:null};if(p=l.querySelector(xs(f)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=_n.get(f))&&Tf(e,a);var T=p=l.createElement("link");it(T),xt(T,"link",e),T._p=new Promise(function(B,q){T.onload=B,T.onerror=q}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,ao(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:b},o.set(f,p)}}}function pS(e,t){_r.X(e,t);var a=Si;if(a&&e){var l=ir(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=y({src:e,async:!0},t),(t=_n.get(o))&&Af(e,t),f=a.createElement("script"),it(f),xt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function gS(e,t){_r.M(e,t);var a=Si;if(a&&e){var l=ir(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=y({src:e,async:!0,type:"module"},t),(t=_n.get(o))&&Af(e,t),f=a.createElement("script"),it(f),xt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function mg(e,t,a,l){var o=(o=ue.current)?ro(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ti(a.href),a=ir(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ti(a.href);var f=ir(o).hoistableStyles,p=f.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,p),(f=o.querySelector(xs(e)))&&!f._p&&(p.instance=f,p.state.loading=5),_n.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},_n.set(e,a),f||yS(o,e,a,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ai(a),a=ir(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ti(e){return'href="'+hn(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function pg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function yS(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),xt(t,"link",a),it(t),e.head.appendChild(t))}function Ai(e){return'[src="'+hn(e)+'"]'}function Os(e){return"script[async]"+e}function gg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+hn(a.href)+'"]');if(l)return t.instance=l,it(l),l;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),it(l),xt(l,"style",o),ao(l,a.precedence,e),t.instance=l;case"stylesheet":o=Ti(a.href);var f=e.querySelector(xs(o));if(f)return t.state.loading|=4,t.instance=f,it(f),f;l=pg(a),(o=_n.get(o))&&Tf(l,o),f=(e.ownerDocument||e).createElement("link"),it(f);var p=f;return p._p=new Promise(function(b,T){p.onload=b,p.onerror=T}),xt(f,"link",l),t.state.loading|=4,ao(f,a.precedence,e),t.instance=f;case"script":return f=Ai(a.src),(o=e.querySelector(Os(f)))?(t.instance=o,it(o),o):(l=a,(o=_n.get(f))&&(l=y({},a),Af(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),it(o),xt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ao(l,a.precedence,e));return t.instance}function ao(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,p=0;p<l.length;p++){var b=l[p];if(b.dataset.precedence===t)f=b;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Tf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Af(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var io=null;function yg(e,t,a){if(io===null){var l=new Map,o=io=new Map;o.set(a,l)}else o=io,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Dr]||f[ft]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(t)||"";p=e+p;var b=l.get(p);b?b.push(f):l.set(p,[f])}}return l}function vg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function vS(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 bg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Rs=null;function bS(){}function _S(e,t,a){if(Rs===null)throw Error(s(475));var l=Rs;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ti(a.href),f=e.querySelector(xs(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=so.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=f,it(f);return}f=e.ownerDocument||e,a=pg(a),(o=_n.get(o))&&Tf(a,o),f=f.createElement("link"),it(f);var p=f;p._p=new Promise(function(b,T){p.onload=b,p.onerror=T}),xt(f,"link",a),t.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=so.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function ES(){if(Rs===null)throw Error(s(475));var e=Rs;return e.stylesheets&&e.count===0&&xf(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&xf(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function so(){if(this.count--,this.count===0){if(this.stylesheets)xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lo=null;function xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lo=new Map,t.forEach(SS,e),lo=null,so.call(e))}function SS(e,t){if(!(t.state.loading&4)){var a=lo.get(e);if(a)var l=a.get(null);else{a=new Map,lo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var p=o[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),f=a.get(p)||l,f===l&&a.set(null,o),a.set(p,o),this.count++,l=so.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ws={$$typeof:S,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function TS(e,t,a,l,o,f,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=Hi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hi(0),this.hiddenUpdates=Hi(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function _g(e,t,a,l,o,f,p,b,T,B,q,P){return e=new TS(e,t,a,p,b,T,B,P),t=1,f===!0&&(t|=24),f=Wt(3,null,null,t),e.current=f,f.stateNode=e,t=ic(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:t},uc(f),e}function Eg(e){return e?(e=ti,e):ti}function Sg(e,t,a,l,o,f){o=Eg(o),l.context===null?l.context=o:l.pendingContext=o,l=jr(t),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Ir(e,l,t),a!==null&&(rn(a,e,t),as(a,e,t))}function Tg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Of(e,t){Tg(e,t),(e=e.alternate)&&Tg(e,t)}function Ag(e){if(e.tag===13){var t=ei(e,67108864);t!==null&&rn(t,e,67108864),Of(e,67108864)}}var oo=!0;function AS(e,t,a,l){var o=G.T;G.T=null;var f=K.p;try{K.p=2,Rf(e,t,a,l)}finally{K.p=f,G.T=o}}function xS(e,t,a,l){var o=G.T;G.T=null;var f=K.p;try{K.p=8,Rf(e,t,a,l)}finally{K.p=f,G.T=o}}function Rf(e,t,a,l){if(oo){var o=wf(l);if(o===null)mf(e,t,l,uo,a),Og(e,l);else if(RS(o,e,t,a,l))l.stopPropagation();else if(Og(e,l),t&4&&-1<OS.indexOf(e)){for(;o!==null;){var f=ar(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=Ft(f.pendingLanes);if(p!==0){var b=f;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var T=1<<31-Ct(p);b.entanglements[1]|=T,p&=~T}Xn(f),(He&6)===0&&(Yl=Et()+500,Es(0))}}break;case 13:b=ei(f,2),b!==null&&rn(b,f,2),Zl(),Of(f,2)}if(f=wf(l),f===null&&mf(e,t,l,uo,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else mf(e,t,l,null,a)}}function wf(e){return e=Du(e),Cf(e)}var uo=null;function Cf(e){if(uo=null,e=rr(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(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 uo=e,null}function xg(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(qa()){case oa:return 2;case Li:return 8;case ua:case Tu:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Nf=!1,$r=null,Wr=null,Jr=null,Cs=new Map,Ns=new Map,ea=[],OS="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 Og(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":Jr=null;break;case"pointerover":case"pointerout":Cs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(t.pointerId)}}function Ms(e,t,a,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},t!==null&&(t=ar(t),t!==null&&Ag(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function RS(e,t,a,l,o){switch(t){case"focusin":return $r=Ms($r,e,t,a,l,o),!0;case"dragenter":return Wr=Ms(Wr,e,t,a,l,o),!0;case"mouseover":return Jr=Ms(Jr,e,t,a,l,o),!0;case"pointerover":var f=o.pointerId;return Cs.set(f,Ms(Cs.get(f)||null,e,t,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Ns.set(f,Ms(Ns.get(f)||null,e,t,a,l,o)),!0}return!1}function Rg(e){var t=rr(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,zi(e.priority,function(){if(a.tag===13){var l=nn();l=Gn(l);var o=ei(a,l);o!==null&&rn(o,a,l),Of(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=wf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Mu=l,a.target.dispatchEvent(l),Mu=null}else return t=ar(a),t!==null&&Ag(t),e.blockedOn=a,!1;t.shift()}return!0}function wg(e,t,a){co(e)&&a.delete(t)}function wS(){Nf=!1,$r!==null&&co($r)&&($r=null),Wr!==null&&co(Wr)&&(Wr=null),Jr!==null&&co(Jr)&&(Jr=null),Cs.forEach(wg),Ns.forEach(wg)}function fo(e,t){e.blockedOn===t&&(e.blockedOn=null,Nf||(Nf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,wS)))}var ho=null;function Cg(e){ho!==e&&(ho=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ho===e&&(ho=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Cf(l||a)===null)continue;break}var f=ar(a);f!==null&&(e.splice(t,3),t-=3,wc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ds(e){function t(T){return fo(T,e)}$r!==null&&fo($r,e),Wr!==null&&fo(Wr,e),Jr!==null&&fo(Jr,e),Cs.forEach(t),Ns.forEach(t);for(var a=0;a<ea.length;a++){var l=ea[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ea.length&&(a=ea[0],a.blockedOn===null);)Rg(a),a.blockedOn===null&&ea.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],p=o[Nt]||null;if(typeof f=="function")p||Cg(a);else if(p){var b=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[Nt]||null)b=p.formAction;else if(Cf(o)!==null)continue}else b=p.action;typeof b=="function"?a[l+1]=b:(a.splice(l,3),l-=3),Cg(a)}}}function Mf(e){this._internalRoot=e}mo.prototype.render=Mf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=nn();Sg(a,l,e,t,null,null)},mo.prototype.unmount=Mf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sg(e.current,2,null,e,null,null),Zl(),t[St]=null}};function mo(e){this._internalRoot=e}mo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ii();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ea.length&&t!==0&&t<ea[a].priority;a++);ea.splice(a,0,e),a===0&&Rg(e)}};var Ng=r.version;if(Ng!=="19.1.1")throw Error(s(527,Ng,"19.1.1"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var CS={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var po=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!po.isDisabled&&po.supportsFiber)try{fn=po.inject(CS),wt=po}catch{}}return Ls.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,l="",o=Y0,f=X0,p=Z0,b=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=_g(e,1,!1,null,null,a,l,o,f,p,b,null),e[St]=t.current,hf(e),new Mf(t)},Ls.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=Y0,p=X0,b=Z0,T=null,B=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks),a.formState!==void 0&&(B=a.formState)),t=_g(e,1,!0,t,a??null,l,o,f,p,b,T,B),t.context=Eg(null),a=t.current,l=nn(),l=Gn(l),o=jr(l),o.callback=null,Ir(a,o,l),a=l,t.current.lanes=a,Rn(t,a),Xn(t),e[St]=t.current,hf(e),new mo(t)},Ls.version="19.1.1",Ls}var Gg;function zS(){if(Gg)return Bf.exports;Gg=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(),Bf.exports=IS(),Bf.exports}var GS=zS(),H=su();const y1=gh(H);var If={exports:{}},zf={};/**
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 kg;function kS(){if(kg)return zf;kg=1;var n=su();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,s=n.useSyncExternalStore,u=n.useRef,c=n.useEffect,d=n.useMemo,h=n.useDebugValue;return zf.useSyncExternalStoreWithSelector=function(m,g,y,E,x){var L=u(null);if(L.current===null){var R={hasValue:!1,value:null};L.current=R}else R=L.current;L=d(function(){function z(A){if(!_){if(_=!0,w=A,A=E(A),x!==void 0&&R.hasValue){var Z=R.value;if(x(Z,A))return S=Z}return S=A}if(Z=S,i(w,A))return Z;var $=E(A);return x!==void 0&&x(Z,$)?(w=A,Z):(w=A,S=$)}var _=!1,w,S,I=y===void 0?null:y;return[function(){return z(g())},I===null?void 0:function(){return z(I())}]},[g,y,E,x]);var F=s(m,L[0],L[1]);return c(function(){R.hasValue=!0,R.value=F},[F]),h(F),F},zf}var qg;function qS(){return qg||(qg=1,If.exports=kS()),If.exports}var FS=qS(),VS=H.version.startsWith("19"),PS=Symbol.for(VS?"react.transitional.element":"react.element"),YS=Symbol.for("react.portal"),XS=Symbol.for("react.fragment"),ZS=Symbol.for("react.strict_mode"),QS=Symbol.for("react.profiler"),KS=Symbol.for("react.consumer"),$S=Symbol.for("react.context"),v1=Symbol.for("react.forward_ref"),WS=Symbol.for("react.suspense"),JS=Symbol.for("react.suspense_list"),yh=Symbol.for("react.memo"),e2=Symbol.for("react.lazy"),t2=v1,n2=yh;function r2(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case PS:switch(n=n.type,n){case XS:case QS:case ZS:case WS:case JS:return n;default:switch(n=n&&n.$$typeof,n){case $S:case v1:case e2:case yh:return n;case KS:return n;default:return r}}case YS:return r}}}function a2(n){return r2(n)===yh}function i2(n,r,i,s,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:d}){let h=!1,m,g,y,E,x;function L(w,S){return m=w,g=S,y=n(m,g),E=r(s,g),x=i(y,E,g),h=!0,x}function R(){return y=n(m,g),r.dependsOnOwnProps&&(E=r(s,g)),x=i(y,E,g),x}function F(){return n.dependsOnOwnProps&&(y=n(m,g)),r.dependsOnOwnProps&&(E=r(s,g)),x=i(y,E,g),x}function z(){const w=n(m,g),S=!d(w,y);return y=w,S&&(x=i(y,E,g)),x}function _(w,S){const I=!c(S,g),A=!u(w,m,S,g);return m=w,g=S,I&&A?R():I?F():A?z():x}return function(S,I){return h?_(S,I):L(S,I)}}function s2(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...u}){const c=r(n,u),d=i(n,u),h=s(n,u);return i2(c,d,h,n,u)}function l2(n,r){const i={};for(const s in n){const u=n[s];typeof u=="function"&&(i[s]=(...c)=>r(u(...c)))}return i}function Gd(n){return function(i){const s=n(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function Fg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function b1(n,r){return function(s,{displayName:u}){const c=function(h,m){return c.dependsOnOwnProps?c.mapToProps(h,m):c.mapToProps(h,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(h,m){c.mapToProps=n,c.dependsOnOwnProps=Fg(n);let g=c(h,m);return typeof g=="function"&&(c.mapToProps=g,c.dependsOnOwnProps=Fg(g),g=c(h,m)),g},c}}function vh(n,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function o2(n){return n&&typeof n=="object"?Gd(r=>l2(n,r)):n?typeof n=="function"?b1(n):vh(n,"mapDispatchToProps"):Gd(r=>({dispatch:r}))}function u2(n){return n?typeof n=="function"?b1(n):vh(n,"mapStateToProps"):Gd(()=>({}))}function c2(n,r,i){return{...i,...n,...r}}function f2(n){return function(i,{displayName:s,areMergedPropsEqual:u}){let c=!1,d;return function(m,g,y){const E=n(m,g,y);return c?u(E,d)||(d=E):(c=!0,d=E),d}}}function d2(n){return n?typeof n=="function"?f2(n):vh(n,"mergeProps"):()=>c2}function h2(n){n()}function m2(){let n=null,r=null;return{clear(){n=null,r=null},notify(){h2(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=n;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:n=u,function(){!s||n===null||(s=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var Vg={notify(){},get:()=>[]};function _1(n,r){let i,s=Vg,u=0,c=!1;function d(F){y();const z=s.subscribe(F);let _=!1;return()=>{_||(_=!0,z(),E())}}function h(){s.notify()}function m(){R.onStateChange&&R.onStateChange()}function g(){return c}function y(){u++,i||(i=r?r.addNestedSub(m):n.subscribe(m),s=m2())}function E(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=Vg)}function x(){c||(c=!0,y())}function L(){c&&(c=!1,E())}const R={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:g,trySubscribe:x,tryUnsubscribe:L,getListeners:()=>s};return R}var p2=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",g2=p2(),y2=()=>typeof navigator<"u"&&navigator.product==="ReactNative",v2=y2(),b2=()=>g2||v2?H.useLayoutEffect:H.useEffect,Ko=b2();function Pg(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function Gf(n,r){if(Pg(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;const i=Object.keys(n),s=Object.keys(r);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!Pg(n[i[u]],r[i[u]]))return!1;return!0}var _2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},E2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},S2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},T2={[t2]:S2,[n2]:E1};function Yg(n){return a2(n)?E1:T2[n.$$typeof]||_2}var A2=Object.defineProperty,x2=Object.getOwnPropertyNames,Xg=Object.getOwnPropertySymbols,O2=Object.getOwnPropertyDescriptor,R2=Object.getPrototypeOf,Zg=Object.prototype;function kd(n,r){if(typeof r!="string"){if(Zg){const c=R2(r);c&&c!==Zg&&kd(n,c)}let i=x2(r);Xg&&(i=i.concat(Xg(r)));const s=Yg(n),u=Yg(r);for(let c=0;c<i.length;++c){const d=i[c];if(!E2[d]&&!(u&&u[d])&&!(s&&s[d])){const h=O2(r,d);try{A2(n,d,h)}catch{}}}}return n}var w2=Symbol.for("react-redux-context"),C2=typeof globalThis<"u"?globalThis:{};function N2(){if(!H.createContext)return{};const n=C2[w2]??=new Map;let r=n.get(H.createContext);return r||(r=H.createContext(null),n.set(H.createContext,r)),r}var Rr=N2(),M2=[null,null];function D2(n,r,i){Ko(()=>n(...r),i)}function B2(n,r,i,s,u,c){n.current=s,i.current=!1,u.current&&(u.current=null,c())}function L2(n,r,i,s,u,c,d,h,m,g,y){if(!n)return()=>{};let E=!1,x=null;const L=()=>{if(E||!h.current)return;const F=r.getState();let z,_;try{z=s(F,u.current)}catch(w){_=w,x=w}_||(x=null),z===c.current?d.current||g():(c.current=z,m.current=z,d.current=!0,y())};return i.onStateChange=L,i.trySubscribe(),L(),()=>{if(E=!0,i.tryUnsubscribe(),i.onStateChange=null,x)throw x}}function U2(n,r){return n===r}function H2(n,r,i,{pure:s,areStatesEqual:u=U2,areOwnPropsEqual:c=Gf,areStatePropsEqual:d=Gf,areMergedPropsEqual:h=Gf,forwardRef:m=!1,context:g=Rr}={}){const y=g,E=u2(n),x=o2(r),L=d2(i),R=!!n;return z=>{const _=z.displayName||z.name||"Component",w=`Connect(${_})`,S={shouldHandleStateChanges:R,displayName:w,wrappedComponentName:_,WrappedComponent:z,initMapStateToProps:E,initMapDispatchToProps:x,initMergeProps:L,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:c,areMergedPropsEqual:h};function I($){const[ae,ge,Ee]=H.useMemo(()=>{const{reactReduxForwardedRef:Ze,...kt}=$;return[$.context,Ze,kt]},[$]),se=H.useMemo(()=>{let Ze=y;return ae?.Consumer,Ze},[ae,y]),me=H.useContext(se),ce=!!$.store&&!!$.store.getState&&!!$.store.dispatch,Pe=!!me&&!!me.store,be=ce?$.store:me.store,G=Pe?me.getServerState:be.getState,K=H.useMemo(()=>s2(be.dispatch,S),[be]),[ee,Te]=H.useMemo(()=>{if(!R)return M2;const Ze=_1(be,ce?void 0:me.subscription),kt=Ze.notifyNestedSubs.bind(Ze);return[Ze,kt]},[be,ce,me]),O=H.useMemo(()=>ce?me:{...me,subscription:ee},[ce,me,ee]),k=H.useRef(void 0),W=H.useRef(Ee),Y=H.useRef(void 0),te=H.useRef(!1),re=H.useRef(!1),ue=H.useRef(void 0);Ko(()=>(re.current=!0,()=>{re.current=!1}),[]);const $e=H.useMemo(()=>()=>Y.current&&Ee===W.current?Y.current:K(be.getState(),Ee),[be,Ee]),Ue=H.useMemo(()=>kt=>ee?L2(R,be,ee,K,W,k,te,re,Y,Te,kt):()=>{},[ee]);D2(B2,[W,k,te,Ee,Y,Te]);let _t;try{_t=H.useSyncExternalStore(Ue,$e,G?()=>K(G(),Ee):$e)}catch(Ze){throw ue.current&&(Ze.message+=`
58
- The error may be correlated with this previous error:
59
- ${ue.current.stack}
60
-
61
- `),Ze}Ko(()=>{ue.current=void 0,Y.current=void 0,k.current=_t});const zn=H.useMemo(()=>H.createElement(z,{..._t,ref:ge}),[ge,z,_t]);return H.useMemo(()=>R?H.createElement(se.Provider,{value:O},zn):zn,[se,zn,O])}const Z=H.memo(I);if(Z.WrappedComponent=z,Z.displayName=I.displayName=w,m){const ae=H.forwardRef(function(Ee,se){return H.createElement(Z,{...Ee,reactReduxForwardedRef:se})});return ae.displayName=w,ae.WrappedComponent=z,kd(ae,z)}return kd(Z,z)}}var j2=H2;function I2(n){const{children:r,context:i,serverState:s,store:u}=n,c=H.useMemo(()=>{const m=_1(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=H.useMemo(()=>u.getState(),[u]);Ko(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,d]);const h=i||Rr;return H.createElement(h.Provider,{value:c},r)}var z2=I2;function bh(n=Rr){return function(){return H.useContext(n)}}var S1=bh();function T1(n=Rr){const r=n===Rr?S1:bh(n),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var G2=T1();function k2(n=Rr){const r=n===Rr?G2:T1(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var q2=k2(),F2=(n,r)=>n===r;function V2(n=Rr){const r=n===Rr?S1:bh(n),i=(s,u={})=>{const{equalityFn:c=F2}=typeof u=="function"?{equalityFn:u}:u,d=r(),{store:h,subscription:m,getServerState:g}=d;H.useRef(!0);const y=H.useCallback({[s.name](x){return s(x)}}[s.name],[s]),E=FS.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,g||h.getState,y,c);return H.useDebugValue(E),E};return Object.assign(i,{withTypes:()=>i}),i}var P2=V2(),kf={exports:{}};/*!
62
- Copyright (c) 2018 Jed Watson.
63
- Licensed under the MIT License (MIT), see
64
- http://jedwatson.github.io/classnames
65
- */var Qg;function Y2(){return Qg||(Qg=1,function(n){(function(){var r={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(c=u(c,s(h)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var h in c)r.call(c,h)&&c[h]&&(d=u(d,h));return d}function u(c,d){return d?c?c+" "+d:c+d:c}n.exports?(i.default=i,n.exports=i):window.classNames=i})()}(kf)),kf.exports}var X2=Y2();const Q=gh(X2);var qd=function(n,r){return qd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},qd(n,r)};function Tn(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");qd(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var ie=function(){return ie=Object.assign||function(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},ie.apply(this,arguments)};function lu(n,r){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(i[s[u]]=n[s[u]]);return i}function $n(n,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return n.concat(c||Array.prototype.slice.call(r))}function Qn(n,r){var i=r&&r.cache?r.cache:eT,s=r&&r.serializer?r.serializer:W2,u=r&&r.strategy?r.strategy:K2;return u(n,{cache:i,serializer:s})}function Z2(n){return n==null||typeof n=="number"||typeof n=="boolean"}function Q2(n,r,i,s){var u=Z2(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=n.call(this,s),r.set(u,c)),c}function A1(n,r,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),c=r.get(u);return typeof c>"u"&&(c=n.apply(this,s),r.set(u,c)),c}function x1(n,r,i,s,u){return i.bind(r,n,s,u)}function K2(n,r){var i=n.length===1?Q2:A1;return x1(n,this,i,r.cache.create(),r.serializer)}function $2(n,r){return x1(n,this,A1,r.cache.create(),r.serializer)}var W2=function(){return JSON.stringify(arguments)},J2=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}(),eT={create:function(){return new J2}},Kn={variadic:$2},we;(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"})(we||(we={}));var Ye;(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"})(Ye||(Ye={}));var Ri;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ri||(Ri={}));function Kg(n){return n.type===Ye.literal}function tT(n){return n.type===Ye.argument}function O1(n){return n.type===Ye.number}function R1(n){return n.type===Ye.date}function w1(n){return n.type===Ye.time}function C1(n){return n.type===Ye.select}function N1(n){return n.type===Ye.plural}function nT(n){return n.type===Ye.pound}function M1(n){return n.type===Ye.tag}function D1(n){return!!(n&&typeof n=="object"&&n.type===Ri.number)}function Fd(n){return!!(n&&typeof n=="object"&&n.type===Ri.dateTime)}var B1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,rT=/(?:[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 aT(n){var r={};return n.replace(rT,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-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"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var iT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function sT(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(iT).filter(function(x){return x.length>0}),i=[],s=0,u=r;s<u.length;s++){var c=u[s],d=c.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),g=0,y=m;g<y.length;g++){var E=y[g];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function lT(n){return n.replace(/^(.*?)-/,"")}var $g=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,L1=/^(@+)?(\+|#+)?[rs]?$/g,oT=/(\*)(0+)|(#+)(0+)|(0+)/g,U1=/^(0+)$/;function Wg(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(L1,function(i,s,u){return typeof u!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):u==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),r}function H1(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 uT(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)),!U1.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function Jg(n){var r={},i=H1(n);return i||r}function cT(n){for(var r={},i=0,s=n;i<s.length;i++){var u=s[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=lT(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=ie(ie(ie({},r),{notation:"scientific"}),u.options.reduce(function(m,g){return ie(ie({},m),Jg(g))},{}));continue;case"engineering":r=ie(ie(ie({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return ie(ie({},m),Jg(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(oT,function(m,g,y,E,x,L){if(g)r.minimumIntegerDigits=y.length;else{if(E&&x)throw new Error("We currently do not support maximum integer digits");if(L)throw new Error("We currently do not support exact integer digits")}return""});continue}if(U1.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if($g.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace($g,function(m,g,y,E,x,L){return y==="*"?r.minimumFractionDigits=g.length:E&&E[0]==="#"?r.maximumFractionDigits=E.length:x&&L?(r.minimumFractionDigits=x.length,r.maximumFractionDigits=x.length+L.length):(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length),""});var c=u.options[0];c==="w"?r=ie(ie({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=ie(ie({},r),Wg(c)));continue}if(L1.test(u.stem)){r=ie(ie({},r),Wg(u.stem));continue}var d=H1(u.stem);d&&(r=ie(ie({},r),d));var h=uT(u.stem);h&&(r=ie(ie({},r),h))}return r}var yo={"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 fT(n,r){for(var i="",s=0;s<n.length;s++){var u=n.charAt(s);if(u==="j"){for(var c=0;s+1<n.length&&n.charAt(s+1)===u;)c++,s++;var d=1+(c&1),h=c<2?1:3+(c>>1),m="a",g=dT(r);for((g=="H"||g=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function dT(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,s;i!=="root"&&(s=n.maximize().region);var u=yo[s||""]||yo[i||""]||yo["".concat(i,"-001")]||yo["001"];return u[0]}var qf,hT=new RegExp("^".concat(B1.source,"*")),mT=new RegExp("".concat(B1.source,"*$"));function Me(n,r){return{start:n,end:r}}var pT=!!String.prototype.startsWith&&"_a".startsWith("a",1),gT=!!String.fromCodePoint,yT=!!Object.fromEntries,vT=!!String.prototype.codePointAt,bT=!!String.prototype.trimStart,_T=!!String.prototype.trimEnd,ET=!!Number.isSafeInteger,ST=ET?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Vd=!0;try{var TT=I1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Vd=((qf=TT.exec("a"))===null||qf===void 0?void 0:qf[0])==="a"}catch{Vd=!1}var ey=pT?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},Pd=gT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",u=r.length,c=0,d;u>c;){if(d=r[c++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},ty=yT?Object.fromEntries:function(r){for(var i={},s=0,u=r;s<u.length;s++){var c=u[s],d=c[0],h=c[1];i[d]=h}return i},j1=vT?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===s||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},AT=bT?function(r){return r.trimStart()}:function(r){return r.replace(hT,"")},xT=_T?function(r){return r.trimEnd()}:function(r){return r.replace(mT,"")};function I1(n,r){return new RegExp(n,r)}var Yd;if(Vd){var ny=I1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yd=function(r,i){var s;ny.lastIndex=i;var u=ny.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else Yd=function(r,i){for(var s=[];;){var u=j1(r,i);if(u===void 0||z1(u)||CT(u))break;s.push(u),i+=u>=65536?2:1}return Pd.apply(void 0,s)};var OT=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,s){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var d=this.parseArgument(r,s);if(d.err)return d;u.push(d.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:Ye.pound,location:Me(h,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(we.UNMATCHED_CLOSING_TAG,Me(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&Xd(this.peek()||0)){var d=this.parseTag(r,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(r,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ye.literal,value:"<".concat(u,"/>"),location:Me(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var d=c.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Xd(this.char()))return this.error(we.INVALID_TAG,Me(h,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(we.UNMATCHED_CLOSING_TAG,Me(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ye.tag,value:u,children:d,location:Me(s,this.clonePosition())},err:null}:this.error(we.INVALID_TAG,Me(h,this.clonePosition())))}else return this.error(we.UNCLOSED_TAG,Me(s,this.clonePosition()))}else return this.error(we.INVALID_TAG,Me(s,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&wT(this.char());)this.bump();return this.message.slice(r,this.offset())},n.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var d=this.tryParseUnquoted(r,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Me(s,this.clonePosition());return{val:{type:Ye.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!RT(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 s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return Pd.apply(void 0,i)},n.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),Pd(s))},n.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(we.EMPTY_ARGUMENT,Me(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ye.argument,value:u,location:Me(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition())):this.parseArgumentOptions(r,i,u,s);default:return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=Yd(this.message,i),u=i+s.length;this.bumpTo(u);var c=this.clonePosition(),d=Me(r,c);return{value:s,location:d}},n.prototype.parseArgumentOptions=function(r,i,s,u){var c,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(we.EXPECT_ARGUMENT_TYPE,Me(d,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var x=xT(E.val);if(x.length===0)return this.error(we.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var L=Me(y,this.clonePosition());g={style:x,styleLocation:L}}var R=this.tryParseArgumentClose(u);if(R.err)return R;var F=Me(u,this.clonePosition());if(g&&ey(g?.style,"::",0)){var z=AT(g.style.slice(2));if(h==="number"){var E=this.parseNumberSkeletonFromString(z,g.styleLocation);return E.err?E:{val:{type:Ye.number,value:s,location:F,style:E.val},err:null}}else{if(z.length===0)return this.error(we.EXPECT_DATE_TIME_SKELETON,F);var _=z;this.locale&&(_=fT(z,this.locale));var x={type:Ri.dateTime,pattern:_,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?aT(_):{}},w=h==="date"?Ye.date:Ye.time;return{val:{type:w,value:s,location:F,style:x},err:null}}}return{val:{type:h==="number"?Ye.number:h==="date"?Ye.date:Ye.time,value:s,location:F,style:(c=g?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(we.EXPECT_SELECT_ARGUMENT_OPTIONS,Me(S,ie({},S)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),A=0;if(h!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),I=this.parseIdentifierIfPossible(),A=E.val}var Z=this.tryParsePluralOrSelectOptions(r,h,i,I);if(Z.err)return Z;var R=this.tryParseArgumentClose(u);if(R.err)return R;var $=Me(u,this.clonePosition());return h==="select"?{val:{type:Ye.select,value:s,options:ty(Z.val),location:$},err:null}:{val:{type:Ye.plural,value:s,options:ty(Z.val),offset:A,pluralType:h==="plural"?"cardinal":"ordinal",location:$},err:null}}default:return this.error(we.INVALID_ARGUMENT_TYPE,Me(d,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(we.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Me(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 s=[];try{s=sT(r)}catch{return this.error(we.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ri.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?cT(s):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,d=!1,h=[],m=new Set,g=u.value,y=u.location;;){if(g.length===0){var E=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_SELECTOR,we.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;y=Me(E,this.clonePosition()),g=this.message.slice(E.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?we.DUPLICATE_SELECT_ARGUMENT_SELECTOR:we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);g==="other"&&(d=!0),this.bumpSpace();var L=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:we.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Me(this.clonePosition(),this.clonePosition()));var R=this.parseMessage(r+1,i,s);if(R.err)return R;var F=this.tryParseArgumentClose(L);if(F.err)return F;h.push([g,{value:R.val,location:Me(L,this.clonePosition())}]),m.add(g),this.bumpSpace(),c=this.parseIdentifierIfPossible(),g=c.value,y=c.location}return h.length===0?this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR:we.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(we.MISSING_OTHER_CLAUSE,Me(this.clonePosition(),this.clonePosition())):{val:h,err:null}},n.prototype.tryParseDecimalInteger=function(r,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var c=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)c=!0,d=d*10+(h-48),this.bump();else break}var m=Me(u,this.clonePosition());return c?(d*=s,ST(d)?{val:d,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=j1(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(ey(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(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!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()&&z1(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},n}();function Xd(n){return n>=97&&n<=122||n>=65&&n<=90}function RT(n){return Xd(n)||n===47}function wT(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 z1(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function CT(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 Zd(n){n.forEach(function(r){if(delete r.location,C1(r)||N1(r))for(var i in r.options)delete r.options[i].location,Zd(r.options[i].value);else O1(r)&&D1(r.style)||(R1(r)||w1(r))&&Fd(r.style)?delete r.style.location:M1(r)&&Zd(r.children)})}function NT(n,r){r===void 0&&(r={}),r=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new OT(n,r).parse();if(i.err){var s=SyntaxError(we[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r?.captureLocation||Zd(i.val),i.val}var Jn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Jn||(Jn={}));var la=function(n){Tn(r,n);function r(i,s,u){var c=n.call(this,i)||this;return c.code=s,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),ry=function(n){Tn(r,n);function r(i,s,u,c){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Jn.INVALID_VALUE,c)||this}return r}(la),MT=function(n){Tn(r,n);function r(i,s,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),Jn.INVALID_VALUE,u)||this}return r}(la),DT=function(n){Tn(r,n);function r(i,s){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),Jn.MISSING_VALUE,s)||this}return r}(la),jt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(jt||(jt={}));function BT(n){return n.length<2?n:n.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==jt.literal||i.type!==jt.literal?r.push(i):s.value+=i.value,r},[])}function G1(n){return typeof n=="function"}function qo(n,r,i,s,u,c,d){if(n.length===1&&Kg(n[0]))return[{type:jt.literal,value:n[0].value}];for(var h=[],m=0,g=n;m<g.length;m++){var y=g[m];if(Kg(y)){h.push({type:jt.literal,value:y.value});continue}if(nT(y)){typeof c=="number"&&h.push({type:jt.literal,value:i.getNumberFormat(r).format(c)});continue}var E=y.value;if(!(u&&E in u))throw new DT(E,d);var x=u[E];if(tT(y)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),h.push({type:typeof x=="string"?jt.literal:jt.object,value:x});continue}if(R1(y)){var L=typeof y.style=="string"?s.date[y.style]:Fd(y.style)?y.style.parsedOptions:void 0;h.push({type:jt.literal,value:i.getDateTimeFormat(r,L).format(x)});continue}if(w1(y)){var L=typeof y.style=="string"?s.time[y.style]:Fd(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:jt.literal,value:i.getDateTimeFormat(r,L).format(x)});continue}if(O1(y)){var L=typeof y.style=="string"?s.number[y.style]:D1(y.style)?y.style.parsedOptions:void 0;L&&L.scale&&(x=x*(L.scale||1)),h.push({type:jt.literal,value:i.getNumberFormat(r,L).format(x)});continue}if(M1(y)){var R=y.children,F=y.value,z=u[F];if(!G1(z))throw new MT(F,"function",d);var _=qo(R,r,i,s,u,c),w=z(_.map(function(A){return A.value}));Array.isArray(w)||(w=[w]),h.push.apply(h,w.map(function(A){return{type:typeof A=="string"?jt.literal:jt.object,value:A}}))}if(C1(y)){var S=y.options[x]||y.options.other;if(!S)throw new ry(y.value,x,Object.keys(y.options),d);h.push.apply(h,qo(S.value,r,i,s,u));continue}if(N1(y)){var S=y.options["=".concat(x)];if(!S){if(!Intl.PluralRules)throw new la(`Intl.PluralRules is not available in this environment.
66
- Try polyfilling it using "@formatjs/intl-pluralrules"
67
- `,Jn.MISSING_INTL_API,d);var I=i.getPluralRules(r,{type:y.pluralType}).select(x-(y.offset||0));S=y.options[I]||y.options.other}if(!S)throw new ry(y.value,x,Object.keys(y.options),d);h.push.apply(h,qo(S.value,r,i,s,u,x-(y.offset||0)));continue}}return BT(h)}function LT(n,r){return r?ie(ie(ie({},n||{}),r||{}),Object.keys(n).reduce(function(i,s){return i[s]=ie(ie({},n[s]),r[s]||{}),i},{})):n}function UT(n,r){return r?Object.keys(n).reduce(function(i,s){return i[s]=LT(n[s],r[s]),i},ie({},n)):n}function Ff(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function HT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,$n([void 0],i,!1)))},{cache:Ff(n.number),strategy:Kn.variadic}),getDateTimeFormat:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,$n([void 0],i,!1)))},{cache:Ff(n.dateTime),strategy:Kn.variadic}),getPluralRules:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,$n([void 0],i,!1)))},{cache:Ff(n.pluralRules),strategy:Kn.variadic})}}var k1=function(){function n(r,i,s,u){i===void 0&&(i=n.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=c.formatToParts(m);if(g.length===1)return g[0].value;var y=g.reduce(function(E,x){return!E.length||x.type!==jt.literal||typeof E[E.length-1]!="string"?E.push(x.value):E[E.length-1]+=x.value,E},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(m){return qo(c.ast,c.locales,c.formatters,c.formats,m,void 0,c.message)},this.resolvedOptions=function(){var m;return{locale:((m=c.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.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 d=u||{};d.formatters;var h=lu(d,["formatters"]);this.ast=n.__parse(r,ie(ie({},h),{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=UT(n.formats,s),this.formatters=u&&u.formatters||HT(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=NT,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}(),Ia;(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"})(Ia||(Ia={}));var el=function(n){Tn(r,n);function r(i,s,u){var c=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return c=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
68
- `).concat(d?`
69
- `.concat(d.message,`
70
- `).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r}(Error),jT=function(n){Tn(r,n);function r(i,s){return n.call(this,Ia.UNSUPPORTED_FORMATTER,i,s)||this}return r}(el),IT=function(n){Tn(r,n);function r(i,s){return n.call(this,Ia.INVALID_CONFIG,i,s)||this}return r}(el),ay=function(n){Tn(r,n);function r(i,s){return n.call(this,Ia.MISSING_DATA,i,s)||this}return r}(el),An=function(n){Tn(r,n);function r(i,s,u){var c=n.call(this,Ia.FORMAT_ERROR,"".concat(i,`
71
- Locale: `).concat(s,`
72
- `),u)||this;return c.locale=s,c}return r}(el),Vf=function(n){Tn(r,n);function r(i,s,u,c){var d=n.call(this,"".concat(i,`
73
- MessageID: `).concat(u?.id,`
74
- Default Message: `).concat(u?.defaultMessage,`
75
- Description: `).concat(u?.description,`
76
- `),s,c)||this;return d.descriptor=u,d.locale=s,d}return r}(An),zT=function(n){Tn(r,n);function r(i,s){var u=n.call(this,Ia.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var d;return(d=c.value)!==null&&d!==void 0?d:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(el);function GT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Ni(n,r,i){return i===void 0&&(i={}),r.reduce(function(s,u){return u in n?s[u]=n[u]:u in i&&(s[u]=i[u]),s},{})}var kT=function(n){},qT=function(n){},q1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:kT,onWarn:qT};function F1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ca(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function FT(n){n===void 0&&(n=F1());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.DateTimeFormat).bind.apply(h,$n([void 0],m,!1)))},{cache:Ca(n.dateTime),strategy:Kn.variadic}),c=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.NumberFormat).bind.apply(h,$n([void 0],m,!1)))},{cache:Ca(n.number),strategy:Kn.variadic}),d=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.PluralRules).bind.apply(h,$n([void 0],m,!1)))},{cache:Ca(n.pluralRules),strategy:Kn.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:Qn(function(h,m,g,y){return new k1(h,m,g,ie({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:d}},y||{}))},{cache:Ca(n.message),strategy:Kn.variadic}),getRelativeTimeFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(r.bind.apply(r,$n([void 0],h,!1)))},{cache:Ca(n.relativeTime),strategy:Kn.variadic}),getPluralRules:d,getListFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,$n([void 0],h,!1)))},{cache:Ca(n.list),strategy:Kn.variadic}),getDisplayNames:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,$n([void 0],h,!1)))},{cache:Ca(n.displayNames),strategy:Kn.variadic})}}function _h(n,r,i,s){var u=n&&n[r],c;if(u&&(c=u[i]),c)return c;s(new jT("No ".concat(r," format named: ").concat(i)))}function vo(n,r){return Object.keys(n).reduce(function(i,s){return i[s]=ie({timeZone:r},n[s]),i},{})}function iy(n,r){var i=Object.keys(ie(ie({},n),r));return i.reduce(function(s,u){return s[u]=ie(ie({},n[u]||{}),r[u]||{}),s},{})}function sy(n,r){if(!r)return n;var i=k1.formats;return ie(ie(ie({},i),n),{date:iy(vo(i.date,r),vo(n.date||{},r)),time:iy(vo(i.time,r),vo(n.time||{},r))})}var Qd=function(n,r,i,s,u){var c=n.locale,d=n.formats,h=n.messages,m=n.defaultLocale,g=n.defaultFormats,y=n.fallbackOnEmptyString,E=n.onError,x=n.timeZone,L=n.defaultRichTextElements;i===void 0&&(i={id:""});var R=i.id,F=i.defaultMessage;GT(!!R,"[@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 z=String(R),_=h&&Object.prototype.hasOwnProperty.call(h,z)&&h[z];if(Array.isArray(_)&&_.length===1&&_[0].type===Ye.literal)return _[0].value;if(!s&&_&&typeof _=="string"&&!L)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=ie(ie({},L),s||{}),d=sy(d,x),g=sy(g,x),!_){if(y===!1&&_==="")return _;if((!F||c&&c.toLowerCase()!==m.toLowerCase())&&E(new zT(i,c)),F)try{var w=r.getMessageFormat(F,m,g,u);return w.format(s)}catch(S){return E(new Vf('Error formatting default message for: "'.concat(z,'", rendering default message verbatim'),c,i,S)),typeof F=="string"?F:z}return z}try{var w=r.getMessageFormat(_,c,d,ie({formatters:r},u||{}));return w.format(s)}catch(S){E(new Vf('Error formatting message: "'.concat(z,'", using ').concat(F?"default message":"id"," as fallback."),c,i,S))}if(F)try{var w=r.getMessageFormat(F,m,g,u);return w.format(s)}catch(S){E(new Vf('Error formatting the default message for: "'.concat(z,'", rendering message verbatim'),c,i,S))}return typeof _=="string"?_:typeof F=="string"?F:z},VT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function tl(n,r,i,s){var u=n.locale,c=n.formats,d=n.onError,h=n.timeZone;s===void 0&&(s={});var m=s.format,g=ie(ie({},h&&{timeZone:h}),m&&_h(c,r,m,d)),y=Ni(s,VT,g);return r==="time"&&!y.hour&&!y.minute&&!y.second&&!y.timeStyle&&!y.dateStyle&&(y=ie(ie({},y),{hour:"numeric",minute:"numeric"})),i(u,y)}function PT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(n,"date",r,d).format(h)}catch(m){n.onError(new An("Error formatting date.",n.locale,m))}return String(h)}function YT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(n,"time",r,d).format(h)}catch(m){n.onError(new An("Error formatting time.",n.locale,m))}return String(h)}function XT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,g=typeof c=="string"?new Date(c||0):c;try{return tl(n,"dateTimeRange",r,h).formatRange(m,g)}catch(y){n.onError(new An("Error formatting date time range.",n.locale,y))}return String(m)}function ZT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(n,"date",r,d).formatToParts(h)}catch(m){n.onError(new An("Error formatting date.",n.locale,m))}return[]}function QT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(n,"time",r,d).formatToParts(h)}catch(m){n.onError(new An("Error formatting time.",n.locale,m))}return[]}var KT=["style","type","fallback","languageDisplay"];function $T(n,r,i,s){var u=n.locale,c=n.onError,d=Intl.DisplayNames;d||c(new la(`Intl.DisplayNames is not available in this environment.
77
- Try polyfilling it using "@formatjs/intl-displaynames"
78
- `,Jn.MISSING_INTL_API));var h=Ni(s,KT);try{return r(u,h).of(i)}catch(m){c(new An("Error formatting display name.",u,m))}}var WT=["type","style"],ly=Date.now();function JT(n){return"".concat(ly,"_").concat(n,"_").concat(ly)}function eA(n,r,i,s){s===void 0&&(s={});var u=V1(n,r,i,s).reduce(function(c,d){var h=d.value;return typeof h!="string"?c.push(h):typeof c[c.length-1]=="string"?c[c.length-1]+=h:c.push(h),c},[]);return u.length===1?u[0]:u.length===0?"":u}function V1(n,r,i,s){var u=n.locale,c=n.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||c(new la(`Intl.ListFormat is not available in this environment.
79
- Try polyfilling it using "@formatjs/intl-listformat"
80
- `,Jn.MISSING_INTL_API));var h=Ni(s,WT);try{var m={},g=i.map(function(y,E){if(typeof y=="object"){var x=JT(E);return m[x]=y,x}return String(y)});return r(u,h).formatToParts(g).map(function(y){return y.type==="literal"?y:ie(ie({},y),{value:m[y.value]||y.value})})}catch(y){c(new An("Error formatting list.",u,y))}return i}var tA=["type"];function nA(n,r,i,s){var u=n.locale,c=n.onError;s===void 0&&(s={}),Intl.PluralRules||c(new la(`Intl.PluralRules is not available in this environment.
81
- Try polyfilling it using "@formatjs/intl-pluralrules"
82
- `,Jn.MISSING_INTL_API));var d=Ni(s,tA);try{return r(u,d).select(i)}catch(h){c(new An("Error formatting plural.",u,h))}return"other"}var rA=["numeric","style"];function aA(n,r,i){var s=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var d=i.format,h=!!d&&_h(u,"relative",d,c)||{},m=Ni(i,rA,h);return r(s,m)}function iA(n,r,i,s,u){u===void 0&&(u={}),s||(s="second");var c=Intl.RelativeTimeFormat;c||n.onError(new la(`Intl.RelativeTimeFormat is not available in this environment.
83
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
- `,Jn.MISSING_INTL_API));try{return aA(n,r,u).format(i,s)}catch(d){n.onError(new An("Error formatting relative time.",n.locale,d))}return String(i)}var sA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function P1(n,r,i){var s=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var d=i.format,h=d&&_h(u,"number",d,c)||{},m=Ni(i,sA,h);return r(s,m)}function lA(n,r,i,s){s===void 0&&(s={});try{return P1(n,r,s).format(i)}catch(u){n.onError(new An("Error formatting number.",n.locale,u))}return String(i)}function oA(n,r,i,s){s===void 0&&(s={});try{return P1(n,r,s).formatToParts(i)}catch(u){n.onError(new An("Error formatting number.",n.locale,u))}return[]}function uA(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function cA(n){n.onWarn&&n.defaultRichTextElements&&uA(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 fA(n,r){var i=FT(r),s=ie(ie({},q1),n),u=s.locale,c=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new ay('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&d&&d(new ay('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new IT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),cA(s),ie(ie({},s),{formatters:i,formatNumber:lA.bind(null,s,i.getNumberFormat),formatNumberToParts:oA.bind(null,s,i.getNumberFormat),formatRelativeTime:iA.bind(null,s,i.getRelativeTimeFormat),formatDate:PT.bind(null,s,i.getDateTimeFormat),formatDateToParts:ZT.bind(null,s,i.getDateTimeFormat),formatTime:YT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:XT.bind(null,s,i.getDateTimeFormat),formatTimeToParts:QT.bind(null,s,i.getDateTimeFormat),formatPlural:nA.bind(null,s,i.getPluralRules),formatMessage:Qd.bind(null,s,i),$t:Qd.bind(null,s,i),formatList:eA.bind(null,s,i.getListFormat),formatListToParts:V1.bind(null,s,i.getListFormat),formatDisplayName:$T.bind(null,s,i.getDisplayNames)})}function dA(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Y1(n){dA(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var X1=ie(ie({},q1),{textComponent:H.Fragment}),hA={key:42},mA=function(n){return H.isValidElement(n)?H.createElement(H.Fragment,hA,n):n},pA=function(n){var r;return(r=H.Children.map(n,mA))!==null&&r!==void 0?r:[]};function gA(n){return function(r){return n(H.Children.toArray(r))}}function yA(n,r){if(n===r)return!0;if(!n||!r)return!1;var i=Object.keys(n),s=Object.keys(r),u=i.length;if(s.length!==u)return!1;for(var c=0;c<u;c++){var d=i[c];if(n[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var Pf={exports:{}},Le={};/** @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 oy;function vA(){if(oy)return Le;oy=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,y=n?Symbol.for("react.forward_ref"):60112,E=n?Symbol.for("react.suspense"):60113,x=n?Symbol.for("react.suspense_list"):60120,L=n?Symbol.for("react.memo"):60115,R=n?Symbol.for("react.lazy"):60116,F=n?Symbol.for("react.block"):60121,z=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(A){if(typeof A=="object"&&A!==null){var Z=A.$$typeof;switch(Z){case r:switch(A=A.type,A){case m:case g:case s:case c:case u:case E:return A;default:switch(A=A&&A.$$typeof,A){case h:case y:case R:case L:case d:return A;default:return Z}}case i:return Z}}}function I(A){return S(A)===g}return Le.AsyncMode=m,Le.ConcurrentMode=g,Le.ContextConsumer=h,Le.ContextProvider=d,Le.Element=r,Le.ForwardRef=y,Le.Fragment=s,Le.Lazy=R,Le.Memo=L,Le.Portal=i,Le.Profiler=c,Le.StrictMode=u,Le.Suspense=E,Le.isAsyncMode=function(A){return I(A)||S(A)===m},Le.isConcurrentMode=I,Le.isContextConsumer=function(A){return S(A)===h},Le.isContextProvider=function(A){return S(A)===d},Le.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===r},Le.isForwardRef=function(A){return S(A)===y},Le.isFragment=function(A){return S(A)===s},Le.isLazy=function(A){return S(A)===R},Le.isMemo=function(A){return S(A)===L},Le.isPortal=function(A){return S(A)===i},Le.isProfiler=function(A){return S(A)===c},Le.isStrictMode=function(A){return S(A)===u},Le.isSuspense=function(A){return S(A)===E},Le.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===s||A===g||A===c||A===u||A===E||A===x||typeof A=="object"&&A!==null&&(A.$$typeof===R||A.$$typeof===L||A.$$typeof===d||A.$$typeof===h||A.$$typeof===y||A.$$typeof===z||A.$$typeof===_||A.$$typeof===w||A.$$typeof===F)},Le.typeOf=S,Le}var uy;function bA(){return uy||(uy=1,Pf.exports=vA()),Pf.exports}var Yf,cy;function _A(){if(cy)return Yf;cy=1;var n=bA(),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},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=s,c[n.Memo]=u;function d(R){return n.isMemo(R)?u:c[R.$$typeof]||r}var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,x=Object.prototype;function L(R,F,z){if(typeof F!="string"){if(x){var _=E(F);_&&_!==x&&L(R,_,z)}var w=m(F);g&&(w=w.concat(g(F)));for(var S=d(R),I=d(F),A=0;A<w.length;++A){var Z=w[A];if(!i[Z]&&!(z&&z[Z])&&!(I&&I[Z])&&!(S&&S[Z])){var $=y(F,Z);try{h(R,Z,$)}catch{}}}}return R}return Yf=L,Yf}_A();var Eh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=H.createContext(null)):H.createContext(null);Eh.Consumer;var EA=Eh.Provider,SA=EA,TA=Eh;function ou(){var n=H.useContext(TA);return Y1(n),n}var Kd;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(Kd||(Kd={}));var $d;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})($d||($d={}));function Z1(n){var r=function(i){var s=ou(),u=i.value,c=i.children,d=lu(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return c(m)};return r.displayName=$d[n],r}function nl(n){var r=function(i){var s=ou(),u=i.value,c=i.children,d=lu(i,["value","children"]),h=s[n](u,d);if(typeof c=="function")return c(h);var m=s.textComponent||H.Fragment;return H.createElement(m,null,h)};return r.displayName=Kd[n],r}function Q1(n){return n&&Object.keys(n).reduce(function(r,i){var s=n[i];return r[i]=G1(s)?gA(s):s,r},{})}var fy=function(n,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var d=Q1(s),h=Qd.apply(void 0,$n([n,r,i,d],u,!1));return Array.isArray(h)?pA(h):h},dy=function(n,r){var i=n.defaultRichTextElements,s=lu(n,["defaultRichTextElements"]),u=Q1(i),c=fA(ie(ie(ie({},X1),s),{defaultRichTextElements:u}),r),d={locale:c.locale,timeZone:c.timeZone,fallbackOnEmptyString:c.fallbackOnEmptyString,formats:c.formats,defaultLocale:c.defaultLocale,defaultFormats:c.defaultFormats,messages:c.messages,onError:c.onError,defaultRichTextElements:u};return ie(ie({},c),{formatMessage:fy.bind(null,d,c.formatters),$t:fy.bind(null,d,c.formatters)})};function Xf(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 AA=function(n){Tn(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=F1(),i.state={cache:i.cache,intl:dy(Xf(i.props),i.cache),prevConfig:Xf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,d=Xf(i);return yA(u,d)?null:{intl:dy(d,c),prevConfig:d}},r.prototype.render=function(){return Y1(this.state.intl),H.createElement(SA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=X1,r}(H.PureComponent);nl("formatDate");nl("formatTime");nl("formatNumber");nl("formatList");nl("formatDisplayName");Z1("formatDate");Z1("formatTime");const xA="_app_1rj0t_1",OA={app:xA},ka=q2,Lt=P2,K1="%[a-f0-9]{2}",hy=new RegExp("("+K1+")|([^%]+?)","gi"),my=new RegExp("("+K1+")+","gi");function Wd(n,r){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;r=r||1;const i=n.slice(0,r),s=n.slice(r);return Array.prototype.concat.call([],Wd(i),Wd(s))}function RA(n){try{return decodeURIComponent(n)}catch{let r=n.match(hy)||[];for(let i=1;i<r.length;i++)n=Wd(r,i).join(""),r=n.match(hy)||[];return n}}function wA(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=my.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=RA(i[0]);u!==i[0]&&(r[i[0]]=u)}i=my.exec(n)}r["%C2"]="�";const s=Object.keys(r);for(const u of s)n=n.replace(new RegExp(u,"g"),r[u]);return n}function CA(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return wA(n)}}function NA(n,r){const i={};if(Array.isArray(r))for(const s of r){const u=Object.getOwnPropertyDescriptor(n,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,s);if(u.enumerable){const c=n[s];r(s,c,n)&&Object.defineProperty(i,s,u)}}return i}function $1(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 MA=n=>n==null,DA=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Jd=Symbol("encodeFragmentIdentifier");function BA(n){switch(n.arrayFormat){case"index":return r=>(i,s)=>{const u=i.length;return s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[ut(r,n),"[",u,"]"].join("")]:[...i,[ut(r,n),"[",ut(u,n),"]=",ut(s,n)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[ut(r,n),"[]"].join("")]:[...i,[ut(r,n),"[]=",ut(s,n)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[ut(r,n),":list="].join("")]:[...i,[ut(r,n),":list=",ut(s,n)].join("")];case"comma":case"separator":case"bracket-separator":{const r=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[ut(i,n),r,ut(u,n)].join("")]:[[s,ut(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,ut(r,n)]:[...i,[ut(r,n),"=",ut(s,n)].join("")]}}function LA(n){let r;switch(n.arrayFormat){case"index":return(i,s,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=s};case"bracket":return(i,s,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const c=typeof s=="string"&&s.includes(n.arrayFormatSeparator),d=typeof s=="string"&&!c&&Tr(s,n).includes(n.arrayFormatSeparator);s=d?Tr(s,n):s;const h=c||d?s.split(n.arrayFormatSeparator).map(m=>Tr(m,n)):s===null?s:Tr(s,n);u[i]=h};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&Tr(s,n);return}const d=s===null?[]:Tr(s,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function W1(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ut(n,r){return r.encode?r.strict?DA(n):encodeURIComponent(n):n}function Tr(n,r){return r.decode?CA(n):n}function J1(n){return Array.isArray(n)?n.sort():typeof n=="object"?J1(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function eb(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function UA(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function py(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n===null?!0: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 Sh(n){n=eb(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function Th(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},W1(r.arrayFormatSeparator);const i=LA(r),s=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return s;for(const u of n.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[d,h]=$1(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Tr(h,r),i(Tr(d,r),h,s)}for(const[u,c]of Object.entries(s))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[d,h]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[d]=py(h,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=py(c,r,r.types[u]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((u,c)=>{const d=s[c];return u[c]=d&&typeof d=="object"&&!Array.isArray(d)?J1(d):d,u},Object.create(null))}function tb(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},W1(r.arrayFormatSeparator);const i=d=>r.skipNull&&MA(n[d])||r.skipEmptyString&&n[d]==="",s=BA(r),u={};for(const[d,h]of Object.entries(n))i(d)||(u[d]=h);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(d=>{const h=n[d];return h===void 0?"":h===null?ut(d,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?ut(d,r)+"[]":h.reduce(s(d),[]).join("&"):ut(d,r)+"="+ut(h,r)}).filter(d=>d.length>0).join("&")}function nb(n,r){r={decode:!0,...r};let[i,s]=$1(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:Th(Sh(n),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Tr(s,r)}:{}}}function rb(n,r){r={encode:!0,strict:!0,[Jd]:!0,...r};const i=eb(n.url).split("?")[0]||"",s=Sh(n.url),u={...Th(s,{sort:!1,...r}),...n.query};let c=tb(u,r);c&&=`?${c}`;let d=UA(n.url);if(typeof n.fragmentIdentifier=="string"){const h=new URL(i);h.hash=n.fragmentIdentifier,d=r[Jd]?h.hash:`#${n.fragmentIdentifier}`}return`${i}${c}${d}`}function ab(n,r,i){i={parseFragmentIdentifier:!0,[Jd]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=nb(n,i);return rb({url:s,query:NA(u,r),fragmentIdentifier:c},i)}function HA(n,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return ab(n,s,i)}const uu=Object.freeze(Object.defineProperty({__proto__:null,exclude:HA,extract:Sh,parse:Th,parseUrl:nb,pick:ab,stringify:tb,stringifyUrl:rb},Symbol.toStringTag,{value:"Module"}));var Dn={},Bn={},Ie={},bo={},pe={},gy;function cn(){return gy||(gy=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.GUEST_LOCALE_CHANGED=pe.DRAWER_CLOSE=pe.DRAWER_OPEN=pe.CONVERSATION_RATING_FROM_GUEST=pe.TRANSCRIPT_ITEM_GUEST_REACTION=pe.TRANSCRIPT_MAIL_REQUEST=pe.INBOX_CONNECT_REQUEST=pe.RESTART_CHAT_REQUEST=pe.EVENT_TO_GUEST=pe.NLU_REQUEST_EVENT=pe.EXPERTS_DISCONNECTED=pe.EXPERTS_DISCONNECT_REQUEST=pe.EXPERTS_CONNECTED=pe.EXPERTS_CONNECT_REQUEST=pe.MESSAGE_TO_GUEST=pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=pe.MESSAGE_FROM_GUEST=pe.GUEST_FEEDBACK_RESPONSE=pe.GUEST_DISCONNECTED=pe.GUEST_CONNECTED=pe.TYPING_OFF=pe.TYPING_ON=void 0,pe.TYPING_ON="core.typing.on",pe.TYPING_OFF="core.typing.off",pe.GUEST_CONNECTED="core.guest.connected",pe.GUEST_DISCONNECTED="core.guest.disconnected",pe.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",pe.MESSAGE_FROM_GUEST="core.message.from.guest",pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",pe.MESSAGE_TO_GUEST="core.message.to.guest",pe.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",pe.EXPERTS_CONNECTED="core.experts.connected",pe.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",pe.EXPERTS_DISCONNECTED="core.experts.disconnected",pe.NLU_REQUEST_EVENT="core.nlu.request.event",pe.EVENT_TO_GUEST="core.event.to.guest",pe.RESTART_CHAT_REQUEST="core.chat.restart.request",pe.INBOX_CONNECT_REQUEST="core.inbox.connect.request",pe.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",pe.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",pe.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",pe.DRAWER_OPEN="core.drawer.open",pe.DRAWER_CLOSE="core.drawer.close",pe.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),pe}var yy;function jA(){if(yy)return bo;yy=1,Object.defineProperty(bo,"__esModule",{value:!0});const n=cn(),r=()=>({type:n.DRAWER_CLOSE});return bo.default=r,bo}var _o={},vy;function IA(){if(vy)return _o;vy=1,Object.defineProperty(_o,"__esModule",{value:!0});const n=cn(),r=(i,s)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return _o.default=r,_o}var Eo={},by;function zA(){if(by)return Eo;by=1,Object.defineProperty(Eo,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Eo.default=r,Eo}var So={},_y;function GA(){if(_y)return So;_y=1,Object.defineProperty(So,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return So.default=r,So}var To={},Ey;function kA(){if(Ey)return To;Ey=1,Object.defineProperty(To,"__esModule",{value:!0});const n=cn(),r=(i,s)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return To.default=r,To}var Ao={},Sy;function qA(){if(Sy)return Ao;Sy=1,Object.defineProperty(Ao,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Ao.default=r,Ao}var xo={},Ke={},Ty;function Ah(){if(Ty)return Ke;Ty=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.getStringRepresentationFromMessage=Ke.MessageTypeEnum=Ke.AudioMessage=Ke.FileMessage=Ke.ImageMessage=Ke.VideoMessage=Ke.MarkdownMessage=Ke.DetailMessage=Ke.TextMessage=Ke.Message=void 0;class n{type;sender;sources;quickReplies;constructor(E,x,L=[],R=[]){this.type=E,this.sender=x,this.sources=L,this.quickReplies=R}addQuickReply(E,x){this.quickReplies.push({label:E,payload:x})}}Ke.Message=n;class r extends n{text;constructor(E,x,L=[],R=[]){super(m.TEXT,x,L,R),this.text=E}}Ke.TextMessage=r;class i extends n{title;text;imageUrl;itemUrl;buttons;constructor(E,x){super(m.DETAIL,x),this.title=E,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(E){this.imageUrl=E}setItemUrl(E){this.itemUrl=E}setText(E){this.text=E}addButton(E){this.buttons.push(E)}}Ke.DetailMessage=i;class s extends n{markdown;constructor(E,x,L=[],R=[]){super(m.MARKDOWN,x,L,R),this.markdown=E}}Ke.MarkdownMessage=s;class u extends n{url;constructor(E,x){super(m.VIDEO,x),this.url=E}}Ke.VideoMessage=u;class c extends n{url;constructor(E,x){super(m.IMAGE,x),this.url=E}}Ke.ImageMessage=c;class d extends n{url;constructor(E,x){super(m.FILE,x),this.url=E}}Ke.FileMessage=d;class h extends n{url;constructor(E,x){super(m.AUDIO,x),this.url=E}}Ke.AudioMessage=h;var m;(function(y){y.TEXT="TEXT",y.DETAIL="DETAIL",y.MARKDOWN="MARKDOWN",y.VIDEO="VIDEO",y.IMAGE="IMAGE",y.FILE="FILE",y.AUDIO="AUDIO"})(m||(Ke.MessageTypeEnum=m={}));const g=y=>{switch(y.type){case m.TEXT:return y.text;case m.DETAIL:return`${y.title}`;case m.MARKDOWN:return y.markdown;case m.VIDEO:return`Video Url: ${y.url}`;case m.IMAGE:return`Image Url: ${y.url}`;case m.FILE:return`File Url: ${y.url}`;case m.AUDIO:return`Audio Url: ${y.url}`;default:throw new Error("Unknown message type "+y.type)}};return Ke.getStringRepresentationFromMessage=g,Ke}var an={},Ay;function xh(){if(Ay)return an;Ay=1,Object.defineProperty(an,"__esModule",{value:!0}),an.UserType=an.PersonUser=an.GuestUser=an.BotUser=an.User=void 0;class n{type;id;name;avatar;constructor(d,h,m,g){this.type=d,this.id=h,this.name=m,this.avatar=g}}an.User=n;class r extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}an.BotUser=r;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}an.GuestUser=i;class s extends n{constructor(d,h,m){super(u.PERSON,d,h,m)}}an.PersonUser=s;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(an.UserType=u={})),an}var xy;function FA(){if(xy)return xo;xy=1,Object.defineProperty(xo,"__esModule",{value:!0});const n=Ah(),r=xh(),i=cn(),s=u=>{const c=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return xo.default=s,xo}var Oo={},Oy;function VA(){if(Oy)return Oo;Oy=1,Object.defineProperty(Oo,"__esModule",{value:!0});const n=Ah(),r=xh(),i=cn(),s=(u,c={})=>{const d=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:c}};return Oo.default=s,Oo}var Ro={},Ry;function PA(){if(Ry)return Ro;Ry=1,Object.defineProperty(Ro,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Ro.default=r,Ro}var wo={},wy;function YA(){if(wy)return wo;wy=1,Object.defineProperty(wo,"__esModule",{value:!0});const n=cn(),r=()=>({type:n.RESTART_CHAT_REQUEST});return wo.default=r,wo}var Co={},Cy;function XA(){if(Cy)return Co;Cy=1,Object.defineProperty(Co,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Co.default=r,Co}var No={},Ny;function ZA(){if(Ny)return No;Ny=1,Object.defineProperty(No,"__esModule",{value:!0});const n=cn(),r=(i,s)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return No.default=r,No}var My;function QA(){if(My)return Ie;My=1;var n=Ie&&Ie.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.transcriptItemGuestReaction=Ie.sendMessageToGuest=Ie.restartChatRequest=Ie.requestNLUEvent=Ie.receiveTextMessageWithoutAnalysisFromGuest=Ie.receiveTextMessageFromGuest=Ie.openDrawer=Ie.guestLocaleChanged=Ie.guestDisconnected=Ie.guestConnected=Ie.feedbackFromGuestResponse=Ie.closeDrawer=void 0;const r=n(jA());Ie.closeDrawer=r.default;const i=n(IA());Ie.feedbackFromGuestResponse=i.default;const s=n(zA());Ie.guestConnected=s.default;const u=n(GA());Ie.guestDisconnected=u.default;const c=n(kA());Ie.guestLocaleChanged=c.default;const d=n(qA());Ie.openDrawer=d.default;const h=n(FA());Ie.receiveTextMessageFromGuest=h.default;const m=n(VA());Ie.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(PA());Ie.requestNLUEvent=g.default;const y=n(YA());Ie.restartChatRequest=y.default;const E=n(XA());Ie.sendMessageToGuest=E.default;const x=n(ZA());return Ie.transcriptItemGuestReaction=x.default,Ie}var Zf={},Dy;function KA(){return Dy||(Dy=1,Object.defineProperty(Zf,"__esModule",{value:!0})),Zf}var By;function $A(){return By||(By=1,function(n){var r=Bn&&Bn.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,g)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Bn&&Bn.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Bn&&Bn.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),g=0;g<m.length;g++)m[g]!=="default"&&r(h,d,m[g]);return i(h,d),h}}(),u=Bn&&Bn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=s(QA()),n.ActionTypes=s(cn()),u(KA(),n)}(Bn)),Bn}var sn={},Qf={},Ly;function WA(){return Ly||(Ly=1,Object.defineProperty(Qf,"__esModule",{value:!0})),Qf}var Us={},Uy;function JA(){if(Uy)return Us;Uy=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Us.NullableKnowledgeBaseAdapter=n,Us}var Hy;function ex(){if(Hy)return sn;Hy=1;var n=sn&&sn.__createBinding||(Object.create?function(u,c,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(c,d);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(u,h,m)}:function(u,c,d,h){h===void 0&&(h=d),u[h]=c[d]}),r=sn&&sn.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=sn&&sn.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(c)};return function(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var h=u(c),m=0;m<h.length;m++)h[m]!=="default"&&n(d,c,h[m]);return r(d,c),d}}();Object.defineProperty(sn,"__esModule",{value:!0}),sn.NullableCmsAdapter=sn.KnowledgeBase=void 0,sn.KnowledgeBase=i(WA());const s=JA();return sn.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},sn}var Na={},Kf={},jy;function tx(){return jy||(jy=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var $f={},Iy;function nx(){return Iy||(Iy=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var Wf={},zy;function rx(){return zy||(zy=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Jf={},Gy;function ax(){return Gy||(Gy=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var Hs={},ky;function ix(){if(ky)return Hs;ky=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.checkMiddlewareCondition=void 0;const n=async(r,i,s)=>(Array.isArray(r)?r:[r]).reduce(async(c,d)=>await c?await d(i,s):!1,Promise.resolve(!0));return Hs.checkMiddlewareCondition=n,Hs}var ed={},qy;function sx(){return qy||(qy=1,Object.defineProperty(ed,"__esModule",{value:!0})),ed}var td={},Fy;function lx(){return Fy||(Fy=1,Object.defineProperty(td,"__esModule",{value:!0})),td}var nd={},Vy;function ox(){return Vy||(Vy=1,Object.defineProperty(nd,"__esModule",{value:!0})),nd}var Py;function ux(){return Py||(Py=1,function(n){var r=Na&&Na.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Na&&Na.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(tx(),n),i(nx(),n),i(rx(),n),i(ax(),n),i(ix(),n),i(sx(),n),i(lx(),n),i(ox(),n)}(Na)),Na}var Ma={},Ln={},Yy;function cx(){if(Yy)return Ln;Yy=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.ButtonTypeEnum=Ln.PostbackButton=Ln.UrlButton=Ln.Button=void 0;class n{title;type;constructor(c,d){this.title=c,this.type=d}}Ln.Button=n;class r extends n{url;constructor(c,d){super(c,s.WEB_URL),this.url=d}}Ln.UrlButton=r;class i extends n{payload;constructor(c,d){super(c,s.POSTBACK),this.payload=d}}Ln.PostbackButton=i;var s;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(s||(Ln.ButtonTypeEnum=s={})),Ln}var rd={},Xy;function fx(){return Xy||(Xy=1,Object.defineProperty(rd,"__esModule",{value:!0})),rd}var js={},Zy;function dx(){if(Zy)return js;Zy=1,Object.defineProperty(js,"__esModule",{value:!0}),js.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(js.SatisfactionEnum=n={})),js}var Qy;function Ky(){return Qy||(Qy=1,function(n){var r=Ma&&Ma.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Ma&&Ma.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(cx(),n),i(fx(),n),i(dx(),n),i(Ah(),n),i(xh(),n)}(Ma)),Ma}var $y;function hx(){return $y||($y=1,function(n){var r=Dn&&Dn.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,g)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Dn&&Dn.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Dn&&Dn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)},u=Dn&&Dn.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),g=0;g<m.length;g++)m[g]!=="default"&&r(h,d,m[g]);return i(h,d),h}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,s($A(),n),n.CMS=u(ex()),s(ux(),n),n.Model=u(Ky()),s(Ky(),n)}(Dn)),Dn}var Re=hx();const ib=n=>r=>(n.payload.type!==Re.ActionTypes.MESSAGE_FROM_GUEST&&r(Re.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),sb=n=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>n.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?ib({...u,label:n}):JSON.parse(JSON.stringify(Re.Actions.receiveTextMessageFromGuest(n))))},Oh="MESSAGE_TO_PARENT_PAGE",Rh="RESTORE_PREVIOUS_CHAT_MESSAGES",wh="AUDIO_MESSAGE_FROM_USER",Ch="RECEIVE_SPEECH_TRANSCRIPTION",Nh="ENABLE_CONVERSATION_RATING",lb="LOAD_SOURCE_INFOS_RESPONSE",Mh="LOAD_SOURCE_INFOS_ERROR",Dh="LOAD_SOURCE_INFOS_REQUEST",Bh="CLOSE_SOURCE_INFOS",mx="webclient.get.started",ob="webclient.window.expand",ub="webclient.window.close",cb="webclient.transcript.pdf.download",px=[Oh,Rh,wh,Ch,Nh,Dh,Bh],gx=n=>({type:wh,buffer:n}),yx=n=>({type:Ch,transcription:n}),vx=n=>({type:Re.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),bx=()=>({type:cb}),_x=({rating:n})=>({type:Nh,payload:{rating:n}}),Ex=(n,r)=>({type:Re.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),fb=n=>Re.Actions.requestNLUEvent(n),Sx=n=>({type:Rh,messages:n}),Tx=n=>{switch(n.type){case Re.ButtonTypeEnum.WEB_URL:return hb(n.url);case Re.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},db=n=>hb(n),hb=n=>({type:Oh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function Mo(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)n[s]=i[s]}return n}var Ax={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function eh(n,r){function i(u,c,d){if(!(typeof document>"u")){d=Mo({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+n.write(c,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],d={},h=0;h<c.length;h++){var m=c[h].split("="),g=m.slice(1).join("=");try{var y=decodeURIComponent(m[0]);if(d[y]=n.read(g,y),u===y)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",Mo({},c,{expires:-1}))},withAttributes:function(u){return eh(this.converter,Mo({},this.attributes,u))},withConverter:function(u){return eh(Mo({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var Do=eh(Ax,{path:"/"});const Ot=[];for(let n=0;n<256;++n)Ot.push((n+256).toString(16).slice(1));function xx(n,r=0){return(Ot[n[r+0]]+Ot[n[r+1]]+Ot[n[r+2]]+Ot[n[r+3]]+"-"+Ot[n[r+4]]+Ot[n[r+5]]+"-"+Ot[n[r+6]]+Ot[n[r+7]]+"-"+Ot[n[r+8]]+Ot[n[r+9]]+"-"+Ot[n[r+10]]+Ot[n[r+11]]+Ot[n[r+12]]+Ot[n[r+13]]+Ot[n[r+14]]+Ot[n[r+15]]).toLowerCase()}let ad;const Ox=new Uint8Array(16);function Rx(){if(!ad){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ad=crypto.getRandomValues.bind(crypto)}return ad(Ox)}const wx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Wy={randomUUID:wx};function $o(n,r,i){if(Wy.randomUUID&&!n)return Wy.randomUUID();n=n||{};const s=n.random??n.rng?.()??Rx();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,xx(s)}function Rt(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 Cx=typeof Symbol=="function"&&Symbol.observable||"@@observable",Jy=Cx,id=()=>Math.random().toString(36).substring(7).split("").join("."),Nx={INIT:`@@redux/INIT${id()}`,REPLACE:`@@redux/REPLACE${id()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${id()}`},Wo=Nx;function Lh(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 mb(n,r,i){if(typeof n!="function")throw new Error(Rt(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Rt(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Rt(1));return i(mb)(n,r)}let s=n,u=r,c=new Map,d=c,h=0,m=!1;function g(){d===c&&(d=new Map,c.forEach((z,_)=>{d.set(_,z)}))}function y(){if(m)throw new Error(Rt(3));return u}function E(z){if(typeof z!="function")throw new Error(Rt(4));if(m)throw new Error(Rt(5));let _=!0;g();const w=h++;return d.set(w,z),function(){if(_){if(m)throw new Error(Rt(6));_=!1,g(),d.delete(w),c=null}}}function x(z){if(!Lh(z))throw new Error(Rt(7));if(typeof z.type>"u")throw new Error(Rt(8));if(typeof z.type!="string")throw new Error(Rt(17));if(m)throw new Error(Rt(9));try{m=!0,u=s(u,z)}finally{m=!1}return(c=d).forEach(w=>{w()}),z}function L(z){if(typeof z!="function")throw new Error(Rt(10));s=z,x({type:Wo.REPLACE})}function R(){const z=E;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Rt(11));function w(){const I=_;I.next&&I.next(y())}return w(),{unsubscribe:z(w)}},[Jy](){return this}}}return x({type:Wo.INIT}),{dispatch:x,subscribe:E,getState:y,replaceReducer:L,[Jy]:R}}function Mx(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:Wo.INIT})>"u")throw new Error(Rt(12));if(typeof i(void 0,{type:Wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rt(13))})}function pb(n){const r=Object.keys(n),i={};for(let c=0;c<r.length;c++){const d=r[c];typeof n[d]=="function"&&(i[d]=n[d])}const s=Object.keys(i);let u;try{Mx(i)}catch(c){u=c}return function(d={},h){if(u)throw u;let m=!1;const g={};for(let y=0;y<s.length;y++){const E=s[y],x=i[E],L=d[E],R=x(L,h);if(typeof R>"u")throw h&&h.type,new Error(Rt(14));g[E]=R,m=m||R!==L}return m=m||s.length!==Object.keys(d).length,m?g:d}}function Jo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...s)=>r(i(...s)))}function Dx(...n){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(Rt(15))};const d={getState:u.getState,dispatch:(m,...g)=>c(m,...g)},h=n.map(m=>m(d));return c=Jo(...h)(u.dispatch),{...u,dispatch:c}}}function Bx(n){return Lh(n)&&"type"in n&&typeof n.type=="string"}var gb=Symbol.for("immer-nothing"),ev=Symbol.for("immer-draftable"),on=Symbol.for("immer-state");function In(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var wi=Object.getPrototypeOf;function za(n){return!!n&&!!n[on]}function wr(n){return n?yb(n)||Array.isArray(n)||!!n[ev]||!!n.constructor?.[ev]||fu(n)||du(n):!1}var Lx=Object.prototype.constructor.toString();function yb(n){if(!n||typeof n!="object")return!1;const r=wi(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)===Lx}function eu(n,r){cu(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,s)=>r(s,i,n))}function cu(n){const r=n[on];return r?r.type_:Array.isArray(n)?1:fu(n)?2:du(n)?3:0}function th(n,r){return cu(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function vb(n,r,i){const s=cu(n);s===2?n.set(r,i):s===3?n.add(i):n[r]=i}function Ux(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function fu(n){return n instanceof Map}function du(n){return n instanceof Set}function Ua(n){return n.copy_||n.base_}function nh(n,r){if(fu(n))return new Map(n);if(du(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=yb(n);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(n);delete s[on];let u=Reflect.ownKeys(s);for(let c=0;c<u.length;c++){const d=u[c],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(wi(n),s)}else{const s=wi(n);if(s!==null&&i)return{...n};const u=Object.create(s);return Object.assign(u,n)}}function Uh(n,r=!1){return hu(n)||za(n)||!wr(n)||(cu(n)>1&&(n.set=n.add=n.clear=n.delete=Hx),Object.freeze(n),r&&Object.entries(n).forEach(([i,s])=>Uh(s,!0))),n}function Hx(){In(2)}function hu(n){return Object.isFrozen(n)}var jx={};function Ga(n){const r=jx[n];return r||In(0,n),r}var $s;function bb(){return $s}function Ix(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function tv(n,r){r&&(Ga("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function rh(n){ah(n),n.drafts_.forEach(zx),n.drafts_=null}function ah(n){n===$s&&($s=n.parent_)}function nv(n){return $s=Ix($s,n)}function zx(n){const r=n[on];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function rv(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[on].modified_&&(rh(r),In(4)),wr(n)&&(n=tu(r,n),r.parent_||nu(r,n)),r.patches_&&Ga("Patches").generateReplacementPatches_(i[on].base_,n,r.patches_,r.inversePatches_)):n=tu(r,i,[]),rh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==gb?n:void 0}function tu(n,r,i){if(hu(r))return r;const s=r[on];if(!s)return eu(r,(u,c)=>av(n,s,r,u,c,i)),r;if(s.scope_!==n)return r;if(!s.modified_)return nu(n,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let c=u,d=!1;s.type_===3&&(c=new Set(u),u.clear(),d=!0),eu(c,(h,m)=>av(n,s,u,h,m,i,d)),nu(n,u,!1),i&&n.patches_&&Ga("Patches").generatePatches_(s,i,n.patches_,n.inversePatches_)}return s.copy_}function av(n,r,i,s,u,c,d){if(za(u)){const h=c&&r&&r.type_!==3&&!th(r.assigned_,s)?c.concat(s):void 0,m=tu(n,u,h);if(vb(i,s,m),za(m))n.canAutoFreeze_=!1;else return}else d&&i.add(u);if(wr(u)&&!hu(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;tu(n,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&nu(n,u)}}function nu(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Uh(r,i)}function Gx(n,r){const i=Array.isArray(n),s={type_:i?1:0,scope_:r?r.scope_:bb(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=Hh;i&&(u=[s],c=Ws);const{revoke:d,proxy:h}=Proxy.revocable(u,c);return s.draft_=h,s.revoke_=d,h}var Hh={get(n,r){if(r===on)return n;const i=Ua(n);if(!th(i,r))return kx(n,i,r);const s=i[r];return n.finalized_||!wr(s)?s:s===sd(n.base_,r)?(ld(n),n.copy_[r]=sh(s,n)):s},has(n,r){return r in Ua(n)},ownKeys(n){return Reflect.ownKeys(Ua(n))},set(n,r,i){const s=_b(Ua(n),r);if(s?.set)return s.set.call(n.draft_,i),!0;if(!n.modified_){const u=sd(Ua(n),r),c=u?.[on];if(c&&c.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(Ux(i,u)&&(i!==void 0||th(n.base_,r)))return!0;ld(n),ih(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 sd(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,ld(n),ih(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Ua(n),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){In(11)},getPrototypeOf(n){return wi(n.base_)},setPrototypeOf(){In(12)}},Ws={};eu(Hh,(n,r)=>{Ws[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Ws.deleteProperty=function(n,r){return Ws.set.call(this,n,r,void 0)};Ws.set=function(n,r,i){return Hh.set.call(this,n[0],r,i,n[0])};function sd(n,r){const i=n[on];return(i?Ua(i):n)[r]}function kx(n,r,i){const s=_b(r,i);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}function _b(n,r){if(!(r in n))return;let i=wi(n);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=wi(i)}}function ih(n){n.modified_||(n.modified_=!0,n.parent_&&ih(n.parent_))}function ld(n){n.copy_||(n.copy_=nh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var qx=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const d=this;return function(m=c,...g){return d.produce(m,y=>i.call(this,y,...g))}}typeof i!="function"&&In(6),s!==void 0&&typeof s!="function"&&In(7);let u;if(wr(r)){const c=nv(this),d=sh(r,void 0);let h=!0;try{u=i(d),h=!1}finally{h?rh(c):ah(c)}return tv(c,s),rv(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===gb&&(u=void 0),this.autoFreeze_&&Uh(u,!0),s){const c=[],d=[];Ga("Patches").generateReplacementPatches_(r,u,c,d),s(c,d)}return u}else In(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(d,...h)=>this.produceWithPatches(d,m=>r(m,...h));let s,u;return[this.produce(r,i,(d,h)=>{s=d,u=h}),s,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){wr(n)||In(8),za(n)&&(n=Fx(n));const r=nv(this),i=sh(n,void 0);return i[on].isManual_=!0,ah(r),i}finishDraft(n,r){const i=n&&n[on];(!i||!i.isManual_)&&In(9);const{scope_:s}=i;return tv(s,r),rv(void 0,s)}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 s=Ga("Patches").applyPatches_;return za(n)?s(n,r):this.produce(n,u=>s(u,r))}};function sh(n,r){const i=fu(n)?Ga("MapSet").proxyMap_(n,r):du(n)?Ga("MapSet").proxySet_(n,r):Gx(n,r);return(r?r.scope_:bb()).drafts_.push(i),i}function Fx(n){return za(n)||In(10,n),Eb(n)}function Eb(n){if(!wr(n)||hu(n))return n;const r=n[on];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=nh(n,r.scope_.immer_.useStrictShallowCopy_)}else i=nh(n,!0);return eu(i,(s,u)=>{vb(i,s,Eb(u))}),r&&(r.finalized_=!1),i}var un=new qx,Sb=un.produce;un.produceWithPatches.bind(un);un.setAutoFreeze.bind(un);un.setUseStrictShallowCopy.bind(un);un.applyPatches.bind(un);un.createDraft.bind(un);un.finishDraft.bind(un);function Tb(n){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,n):u(c)}var Vx=Tb(),Px=Tb,Yx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jo:Jo.apply(null,arguments)};function iv(n,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(Ar(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:s[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=s=>Bx(s)&&s.type===n,i}var Ab=class Xs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Xs.prototype)}static get[Symbol.species](){return Xs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Xs(...r[0].concat(this)):new Xs(...r.concat(this))}};function sv(n){return wr(n)?Sb(n,()=>{}):n}function Bo(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function Xx(n){return typeof n=="boolean"}var Zx=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let d=new Ab;return i&&(Xx(i)?d.push(Vx):d.push(Px(i.extraArgument))),d},Qx="RTK_autoBatch",lv=n=>r=>{setTimeout(r,n)},Kx=(n={type:"raf"})=>r=>(...i)=>{const s=r(...i);let u=!0,c=!1,d=!1;const h=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:lv(10):n.type==="callback"?n.queueNotification:lv(n.timeout),g=()=>{d=!1,c&&(c=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const E=()=>u&&y(),x=s.subscribe(E);return h.add(y),()=>{x(),h.delete(y)}},dispatch(y){try{return u=!y?.meta?.[Qx],c=!u,c&&(d||(d=!0,m(g))),s.dispatch(y)}finally{u=!0}}})},$x=n=>function(i){const{autoBatch:s=!0}=i??{};let u=new Ab(n);return s&&u.push(Kx(typeof s=="object"?s:void 0)),u};function Wx(n){const r=Zx(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:c=void 0,enhancers:d=void 0}=n||{};let h;if(typeof i=="function")h=i;else if(Lh(i))h=pb(i);else throw new Error(Ar(1));let m;typeof s=="function"?m=s(r):m=r();let g=Jo;u&&(g=Yx({trace:!1,...typeof u=="object"&&u}));const y=Dx(...m),E=$x(y);let x=typeof d=="function"?d(E):E();const L=g(...x);return mb(h,c,L)}function xb(n){const r={},i=[];let s;const u={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(Ar(28));if(h in r)throw new Error(Ar(29));return r[h]=d,u},addMatcher(c,d){return i.push({matcher:c,reducer:d}),u},addDefaultCase(c){return s=c,u}};return n(u),[r,i,s]}function Jx(n){return typeof n=="function"}function eO(n,r){let[i,s,u]=xb(r),c;if(Jx(n))c=()=>sv(n());else{const h=sv(n);c=()=>h}function d(h=c(),m){let g=[i[m.type],...s.filter(({matcher:y})=>y(m)).map(({reducer:y})=>y)];return g.filter(y=>!!y).length===0&&(g=[u]),g.reduce((y,E)=>{if(E)if(za(y)){const L=E(y,m);return L===void 0?y:L}else{if(wr(y))return Sb(y,x=>E(x,m));{const x=E(y,m);if(x===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return y},h)}return d.getInitialState=c,d}var tO=Symbol.for("rtk-slice-createasyncthunk");function nO(n,r){return`${n}/${r}`}function rO({creators:n}={}){const r=n?.asyncThunk?.[tO];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(Ar(11));const d=(typeof s.reducers=="function"?s.reducers(iO()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(S,I){const A=typeof S=="string"?S:S.type;if(!A)throw new Error(Ar(12));if(A in m.sliceCaseReducersByType)throw new Error(Ar(13));return m.sliceCaseReducersByType[A]=I,g},addMatcher(S,I){return m.sliceMatchers.push({matcher:S,reducer:I}),g},exposeAction(S,I){return m.actionCreators[S]=I,g},exposeCaseReducer(S,I){return m.sliceCaseReducersByName[S]=I,g}};h.forEach(S=>{const I=d[S],A={reducerName:S,type:nO(u,S),createNotation:typeof s.reducers=="function"};lO(I)?uO(A,I,g,r):sO(A,I,g)});function y(){const[S={},I=[],A=void 0]=typeof s.extraReducers=="function"?xb(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return eO(s.initialState,$=>{for(let ae in Z)$.addCase(ae,Z[ae]);for(let ae of m.sliceMatchers)$.addMatcher(ae.matcher,ae.reducer);for(let ae of I)$.addMatcher(ae.matcher,ae.reducer);A&&$.addDefaultCase(A)})}const E=S=>S,x=new Map,L=new WeakMap;let R;function F(S,I){return R||(R=y()),R(S,I)}function z(){return R||(R=y()),R.getInitialState()}function _(S,I=!1){function A($){let ae=$[S];return typeof ae>"u"&&I&&(ae=Bo(L,A,z)),ae}function Z($=E){const ae=Bo(x,I,()=>new WeakMap);return Bo(ae,$,()=>{const ge={};for(const[Ee,se]of Object.entries(s.selectors??{}))ge[Ee]=aO(se,$,()=>Bo(L,$,z),I);return ge})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(A)},selectSlice:A}}const w={name:u,reducer:F,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:z,..._(c),injectInto(S,{reducerPath:I,...A}={}){const Z=I??c;return S.inject({reducerPath:Z,reducer:F},A),{...w,..._(Z,!0)}}};return w}}function aO(n,r,i,s){function u(c,...d){let h=r(c);return typeof h>"u"&&s&&(h=i()),n(h,...d)}return u.unwrapped=n,u}var jh=rO();function iO(){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 sO({type:n,reducerName:r,createNotation:i},s,u){let c,d;if("reducer"in s){if(i&&!oO(s))throw new Error(Ar(17));c=s.reducer,d=s.prepare}else c=s;u.addCase(n,c).exposeCaseReducer(r,c).exposeAction(r,d?iv(n,d):iv(n))}function lO(n){return n._reducerDefinitionType==="asyncThunk"}function oO(n){return n._reducerDefinitionType==="reducerWithPrepare"}function uO({type:n,reducerName:r},i,s,u){if(!u)throw new Error(Ar(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:g,options:y}=i,E=u(n,c,y);s.exposeAction(r,E),d&&s.addCase(E.fulfilled,d),h&&s.addCase(E.pending,h),m&&s.addCase(E.rejected,m),g&&s.addMatcher(E.settled,g),s.exposeCaseReducer(r,{fulfilled:d||Lo,pending:h||Lo,rejected:m||Lo,settled:g||Lo})}function Lo(){}function Ar(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 cO={formValues:{}},Ob=jh({name:"start-screen",initialState:cO,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload.formValues},startAuthenticatedChat(n,r){n.startScreenStatus="HIDDEN",n.loginToken=r.payload.loginToken,n.loginRequestToken=void 0},requestLogin(n,r){n.loginRequestToken=r.payload.loginRequestToken,n.formValues=r.payload.formValues},loginWindowClosed(n){n.loginRequestToken=void 0}}}),{startChat:fO,startAuthenticatedChat:dO,showStartScreen:hO,requestLogin:mO,loginWindowClosed:pO}=Ob.actions,gO=Ob.reducer,Rb="RESET_CHAT_STATE",wb="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",yO=()=>({type:ub}),vO=()=>({type:Rb}),Cb=()=>({type:wb}),ov=(n,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Dh,payload:{chunkId:i}}),uv(n,c,r,i,!1,s),uv(n,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:Mh})}},uv=(n,r,i,s,u,c)=>{const d=`/${n}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":r}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};c({type:lb,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:Mh,payload:{highlighted:u}})})},bO=()=>({type:Bh}),Ih="CONNECT",zh="CONNECTING",Gh="CONNECTED",kh="DISCONNECTED",qh="RECONNECTED",Fh="RESTORE_SESSION_ID",mu="START",pu="CLEAR_SESSION_ID",_O=[Ih,zh,Gh,kh,qh,Fh],EO=(n,r)=>({type:Ih,clientName:n,querystrings:r}),SO=n=>({type:Fh,sessionId:n}),TO=()=>({type:zh}),AO=()=>({type:Gh}),xO=()=>({type:kh}),OO=()=>({type:qh}),Nb=(n,r)=>(i,s)=>{const u=s().connection,{formValues:c,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=$o());let m=u.userId;if(m===void 0){const g=Do.get("bubble-chat-user-id")||Do.get("bubble-chat-userId")||Do.get("bf-webclient-userId");m=g||$o(),Do.set("bubble-chat-user-id",m)}i({type:mu,payload:{sessionId:h,userId:m,clientName:n,loginToken:d,querystrings:{...r,...c}}})},gu=(n,r)=>(i,s)=>{const u=s().connection.sessionId||"";if(i(RO(u)),i(vO()),s().settings.enableStartScreen)i(hO());else return i(Nb(n,r))},RO=n=>({type:pu,payload:{sessionId:n}}),tt=()=>{const n=ou();return i=>{const s=n.formatMessage({id:i});return s===i?void 0:s}};var ja=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(ja||{}),ru=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(ru||{});const wO="_container_q2uun_1",CO="_chatcontent_q2uun_6",NO="_accessabilityHidden_q2uun_12",od={container:wO,chatcontent:CO,accessabilityHidden:NO},MO="_messageContainer_ofi0g_1",DO="_messages_ofi0g_12",cv={messageContainer:MO,messages:DO};function Ha(){return Ha=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Ha.apply(this,arguments)}const BO=["children","options"],LO={footnoteReference:"7"},fv=["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"}),dv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},UO=["style","script","pre"],HO=["src","href","data","formAction","srcDoc","action"],jO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,IO=/mailto:/i,zO=/\n{2,}$/,hv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GO=/^ *> ?/gm,kO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,qO=/^ {2,}\n/,FO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,mv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,pv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,VO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,PO=/^(?:\n *)*\n/,YO=/\r\n?/g,XO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,ZO=/^\[\^([^\]]+)]/,QO=/\f/g,KO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,$O=/^\s*?\[(x|\s)\]/,gv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,vv=/^([^\n]+)\n *(=|-){3,} *\n/,ud=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,WO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,bv=/^<!--[\s\S]*?(?:-->)/,JO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,cd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,eR=/^\{.*\}$/,tR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,nR=/^<([^ >]+@[^ >]+)>/,rR=/^<([^ >]+:\/[^ >]+)>/,aR=/-([a-z])?/gi,_v=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,iR=/^[^\n]+(?: \n|\n{2,})/,sR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,lR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,oR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,uR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,cR=/\t/g,fR=/(^ *\||\| *$)/g,dR=/^ *:-+: *$/,hR=/^ *:-+ *$/,mR=/^ *-+: *$/,yu=n=>`(?=[\\s\\S]+?\\1${n?"\\1":""})`,vu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",pR=RegExp(`^([*_])\\1${yu(1)}${vu}\\1\\1(?!\\1)`),gR=RegExp(`^([*_])${yu(0)}${vu}\\1(?!\\1)`),yR=RegExp(`^(==)${yu(0)}${vu}\\1`),vR=RegExp(`^(~~)${yu(0)}${vu}\\1`),bR=/^(:[a-zA-Z0-9-_]+:)/,_R=/^\\([^0-9A-Za-z\s])/,ER=/\\([^0-9A-Za-z\s])/g,SR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,TR=/^\n+/,AR=/^([ \t]*)/,xR=/(?:^|\n)( *)$/,Vh="(?:\\d+\\.)",Ph="(?:[*+-])";function Mb(n){return"( *)("+(n===1?Vh:Ph)+") +"}const Db=Mb(1),Bb=Mb(2);function Lb(n){return RegExp("^"+(n===1?Db:Bb))}const OR=Lb(1),RR=Lb(2);function Ub(n){return RegExp("^"+(n===1?Db:Bb)+"[^\\n]*(?:\\n(?!\\1"+(n===1?Vh:Ph)+" )[^\\n]*)*(\\n|$)","gm")}const wR=Ub(1),CR=Ub(2);function Hb(n){const r=n===1?Vh:Ph;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const jb=Hb(1),Ib=Hb(2);function Ev(n,r){const i=r===1,s=i?jb:Ib,u=i?wR:CR,c=i?OR:RR;return{t:d=>c.test(d),o:Ci(function(d,h){const m=xR.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const g=i?+d[2]:void 0,y=d[0].replace(zO,`
94
- `).match(u);let E=!1;return{items:y.map(function(x,L){const R=c.exec(x)[0].length,F=RegExp("^ {1,"+R+"}","gm"),z=x.replace(F,"").replace(c,""),_=L===y.length-1,w=z.indexOf(`
95
-
96
- `)!==-1||_&&E;E=w;const S=m.inline,I=m.list;let A;m.list=!0,w?(m.inline=!1,A=Ks(z)+`
97
-
98
- `):(m.inline=!0,A=Ks(z));const Z=h(A,m);return m.inline=S,m.list=I,Z}),ordered:i,start:g}},l:(d,h,m)=>n(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(g,y){return n("li",{key:y},h(g,m))}))}}const NR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),MR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ks(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function Fo(n,r){return n.startsWith(r)}function DR(n,r,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(Fo(n,i[s]))return!0;return!1}return i(n,r)}function Is(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 BR(n){return mR.test(n)?"right":dR.test(n)?"center":hR.test(n)?"left":null}function Sv(n,r,i,s){const u=i.inTable;i.inTable=!0;let c=[[]],d="";function h(){if(!d)return;const m=c[c.length-1];m.push.apply(m,r(d,i)),d=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,y)=>{m.trim()==="|"&&(h(),s)?g!==0&&g!==y.length-1&&c.push([]):d+=m}),h(),i.inTable=u,c}function LR(n,r,i){i.inline=!0;const s=n[2]?n[2].replace(fR,"").split("|").map(BR):[],u=n[3]?function(d,h,m){return d.trim().split(`
99
- `).map(function(g){return Sv(g,h,m,!0)})}(n[3],r,i):[],c=Sv(n[1],r,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function Tv(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function Ci(n){return n.inline=1,n}function na(n){return Ci(function(r,i){return i.inline?n.exec(r):null})}function ra(n){return Ci(function(r,i){return i.inline||i.simple?n.exec(r):null})}function Er(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function Uo(n){return Ci(function(r){return n.exec(r)})}const UR=/(javascript|vbscript|data(?!:image)):/i;function HR(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(UR.test(r))return null}catch{return null}return n}function Zn(n){return n&&n.replace(ER,"$1")}function Vo(n,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=n(r,i);return i.inline=s,i.simple=u,c}function jR(n,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=n(r,i);return i.inline=s,i.simple=u,c}function IR(n,r,i){const s=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=s,u}const fd=(n,r,i)=>({children:Vo(r,n[2],i)});function dd(){return{}}function hd(){return null}function zR(...n){return n.filter(Boolean).join(" ")}function md(n,r,i){let s=n;const u=r.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function GR(n="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?Ha({},dv,r.namedCodesToUnicode):dv;const i=r.slugify||Is,s=r.sanitizer||HR,u=r.createElement||H.createElement,c=[hv,mv,pv,r.enforceAtxHeadings?yv:gv,vv,_v,jb,Ib],d=[...c,iR,ud,bv,cd];function h(_,w,...S){const I=md(r.overrides,_+".props",{});return u(function(A,Z){const $=md(Z,A);return $?typeof $=="function"||typeof $=="object"&&"render"in $?$:md(Z,A+".component",A):A}(_,r.overrides),Ha({},w,I,{className:zR(w?.className,I.className)||void 0}),...S)}function m(_){_=_.replace(KO,"");let w=!1;r.forceInline?w=!0:r.forceBlock||(w=uR.test(_)===!1);const S=R(L(w?_:Ks(_).replace(TR,"")+`
100
-
101
- `,{inline:w}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(r.wrapper===null)return S;const I=r.wrapper||(w?"span":"div");let A;if(S.length>1||r.forceWrapper)A=S;else{if(S.length===1)return A=S[0],typeof A=="string"?h("span",{key:"outer"},A):A;A=null}return u(I,{key:"outer"},A)}function g(_,w){if(!w||!w.trim())return null;const S=w.match(jO);return S?S.reduce(function(I,A){const Z=A.indexOf("=");if(Z!==-1){const $=function(se){return se.indexOf("-")!==-1&&se.match(JO)===null&&(se=se.replace(aR,function(me,ce){return ce.toUpperCase()})),se}(A.slice(0,Z)).trim(),ae=function(se){const me=se[0];return(me==='"'||me==="'")&&se.length>=2&&se[se.length-1]===me?se.slice(1,-1):se}(A.slice(Z+1).trim()),ge=fv[$]||$;if(ge==="ref")return I;const Ee=I[ge]=function(se,me,ce,Pe){return me==="style"?function(be){const G=[];let K="",ee=!1,Te=!1,O="";if(!be)return G;for(let W=0;W<be.length;W++){const Y=be[W];if(Y!=='"'&&Y!=="'"||ee||(Te?Y===O&&(Te=!1,O=""):(Te=!0,O=Y)),Y==="("&&K.endsWith("url")?ee=!0:Y===")"&&ee&&(ee=!1),Y!==";"||Te||ee)K+=Y;else{const te=K.trim();if(te){const re=te.indexOf(":");if(re>0){const ue=te.slice(0,re).trim(),$e=te.slice(re+1).trim();G.push([ue,$e])}}K=""}}const k=K.trim();if(k){const W=k.indexOf(":");if(W>0){const Y=k.slice(0,W).trim(),te=k.slice(W+1).trim();G.push([Y,te])}}return G}(ce).reduce(function(be,[G,K]){return be[G.replace(/(-[a-z])/g,ee=>ee[1].toUpperCase())]=Pe(K,se,G),be},{}):HO.indexOf(me)!==-1?Pe(Zn(ce),se,me):(ce.match(eR)&&(ce=Zn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)}(_,$,ae,s);typeof Ee=="string"&&(ud.test(Ee)||cd.test(Ee))&&(I[ge]=m(Ee.trim()))}else A!=="style"&&(I[fv[A]||A]=!0);return I},{}):null}const y=[],E={},x={0:{t:[">"],o:Er(hv),i:1,u(_,w,S){const[,I,A]=_[0].replace(GO,"").match(kO);return{alert:I,children:w(A,S)}},l(_,w,S){const I={key:S.key};return _.alert&&(I.className="markdown-alert-"+i(_.alert.toLowerCase(),Is),_.children.unshift({attrs:{},children:[{type:"27",text:_.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",I,w(_.children,S))}},1:{o:Uo(qO),i:1,u:dd,l:(_,w,S)=>h("br",{key:S.key})},2:{t:_=>{const w=_[0];return w==="-"||w==="*"||w==="_"},o:Er(FO),i:1,u:dd,l:(_,w,S)=>h("hr",{key:S.key})},3:{t:[" "],o:Er(pv),i:0,u:_=>({lang:void 0,text:Zn(Ks(_[0].replace(/^ {4}/gm,"")))}),l:(_,w,S)=>h("pre",{key:S.key},h("code",Ha({},_.attrs,{className:_.lang?"lang-"+_.lang:""}),_.text))},4:{t:["```","~~~"],o:Er(mv),i:0,u:_=>({attrs:g("code",_[3]||""),lang:_[2]||void 0,text:_[4],type:"3"})},5:{t:["`"],o:ra(VO),i:3,u:_=>({text:Zn(_[2])}),l:(_,w,S)=>h("code",{key:S.key},_.text)},6:{t:["[^"],o:Er(XO),i:0,u:_=>(y.push({footnote:_[2],identifier:_[1]}),{}),l:hd},7:{t:["[^"],o:na(ZO),i:1,u:_=>({target:"#"+i(_[1],Is),text:_[1]}),l:(_,w,S)=>h("a",{key:S.key,href:s(_.target,"a","href")},h("sup",{key:S.key},_.text))},8:{t:["[ ]","[x]"],o:na($O),i:1,u:_=>({completed:_[1].toLowerCase()==="x"}),l:(_,w,S)=>h("input",{checked:_.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Er(r.enforceAtxHeadings?yv:gv),i:1,u:(_,w,S)=>({children:Vo(w,_[2],S),id:i(_[2],Is),level:_[1].length}),l:(_,w,S)=>h("h"+_.level,{id:_.id,key:S.key},w(_.children,S))},10:{o:Er(vv),i:0,u:(_,w,S)=>({children:Vo(w,_[1],S),level:_[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Uo(ud),i:1,u(_,w,S){const[,I]=_[3].match(AR),A=RegExp("^"+I,"gm"),Z=_[3].replace(A,""),$=(ae=Z,d.some(ce=>ce.test(ae))?IR:Vo);var ae;const ge=_[1].toLowerCase(),Ee=UO.indexOf(ge)!==-1,se=(Ee?ge:_[1]).trim(),me={attrs:g(se,_[2]),noInnerParse:Ee,tag:se};if(S.inAnchor=S.inAnchor||ge==="a",Ee)me.text=_[3];else{const ce=S.inHTML;S.inHTML=!0,me.children=$(w,Z,S),S.inHTML=ce}return S.inAnchor=!1,me},l:(_,w,S)=>h(_.tag,Ha({key:S.key},_.attrs),_.text||(_.children?w(_.children,S):""))},13:{t:["<"],o:Uo(cd),i:1,u(_){const w=_[1].trim();return{attrs:g(w,_[2]||""),tag:w}},l:(_,w,S)=>h(_.tag,Ha({},_.attrs,{key:S.key}))},12:{t:["<!--"],o:Uo(bv),i:1,u:()=>({}),l:hd},14:{t:["!["],o:ra(MR),i:1,u:_=>({alt:Zn(_[1]),target:Zn(_[2]),title:Zn(_[3])}),l:(_,w,S)=>h("img",{key:S.key,alt:_.alt||void 0,title:_.title||void 0,src:s(_.target,"img","src")})},15:{t:["["],o:na(NR),i:3,u:(_,w,S)=>({children:jR(w,_[1],S),target:Zn(_[2]),title:Zn(_[3])}),l:(_,w,S)=>h("a",{key:S.key,href:s(_.target,"a","href"),title:_.title},w(_.children,S))},16:{t:["<"],o:na(rR),i:0,u:_=>({children:[{text:_[1],type:"27"}],target:_[1],type:"15"})},17:{t:(_,w)=>!w.inAnchor&&!r.disableAutoLink&&(Fo(_,"http://")||Fo(_,"https://")),o:na(tR),i:0,u:_=>({children:[{text:_[1],type:"27"}],target:_[1],title:void 0,type:"15"})},18:{t:["<"],o:na(nR),i:0,u(_){let w=_[1],S=_[1];return IO.test(S)||(S="mailto:"+S),{children:[{text:w.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:Ev(h,1),33:Ev(h,2),19:{o:Er(PO),i:3,u:dd,l:()=>`
102
- `},21:{o:Ci(function(_,w){if(w.inline||w.simple||w.inHTML&&_.indexOf(`
103
-
104
- `)===-1&&w.prevCapture.indexOf(`
105
-
106
- `)===-1)return null;let S="";_.split(`
107
- `).every(A=>(A+=`
108
- `,!c.some(Z=>Z.test(A))&&(S+=A,!!A.trim())));const I=Ks(S);return I===""?null:[S,,I]}),i:3,u:fd,l:(_,w,S)=>h("p",{key:S.key},w(_.children,S))},22:{t:["["],o:na(sR),i:0,u:_=>(E[_[1]]={target:_[2],title:_[4]},{}),l:hd},23:{t:["!["],o:ra(lR),i:0,u:_=>({alt:_[1]?Zn(_[1]):void 0,ref:_[2]}),l:(_,w,S)=>E[_.ref]?h("img",{key:S.key,alt:_.alt,src:s(E[_.ref].target,"img","src"),title:E[_.ref].title}):null},24:{t:_=>_[0]==="["&&_.indexOf("](")===-1,o:na(oR),i:0,u:(_,w,S)=>({children:w(_[1],S),fallbackChildren:_[0],ref:_[2]}),l:(_,w,S)=>E[_.ref]?h("a",{key:S.key,href:s(E[_.ref].target,"a","href"),title:E[_.ref].title},w(_.children,S)):h("span",{key:S.key},_.fallbackChildren)},25:{t:["|"],o:Er(_v),i:1,u:LR,l(_,w,S){const I=_;return h("table",{key:S.key},h("thead",null,h("tr",null,I.header.map(function(A,Z){return h("th",{key:Z,style:Tv(I,Z)},w(A,S))}))),h("tbody",null,I.cells.map(function(A,Z){return h("tr",{key:Z},A.map(function($,ae){return h("td",{key:ae,style:Tv(I,ae)},w($,S))}))})))}},27:{o:Ci(function(_,w){let S;return Fo(_,":")&&(S=bR.exec(_)),S||SR.exec(_)}),i:4,u(_){const w=_[0];return{text:w.indexOf("&")===-1?w:w.replace(WO,(S,I)=>r.namedCodesToUnicode[I]||S)}},l:_=>_.text},28:{t:["**","__"],o:ra(pR),i:2,u:(_,w,S)=>({children:w(_[2],S)}),l:(_,w,S)=>h("strong",{key:S.key},w(_.children,S))},29:{t:_=>{const w=_[0];return(w==="*"||w==="_")&&_[1]!==w},o:ra(gR),i:3,u:(_,w,S)=>({children:w(_[2],S)}),l:(_,w,S)=>h("em",{key:S.key},w(_.children,S))},30:{t:["\\"],o:ra(_R),i:1,u:_=>({text:_[1],type:"27"})},31:{t:["=="],o:ra(yR),i:3,u:fd,l:(_,w,S)=>h("mark",{key:S.key},w(_.children,S))},32:{t:["~~"],o:ra(vR),i:3,u:fd,l:(_,w,S)=>h("del",{key:S.key},w(_.children,S))}};r.disableParsingRawHTML===!0&&(delete x[11],delete x[13]);const L=function(_){var w=Object.keys(_);function S(I,A){var Z=[];if(A.prevCapture=A.prevCapture||"",I.trim())for(;I;)for(var $=0;$<w.length;){var ae=w[$],ge=_[ae];if(!ge.t||DR(I,A,ge.t)){var Ee=ge.o(I,A);if(Ee&&Ee[0]){I=I.substring(Ee[0].length);var se=ge.u(Ee,S,A);A.prevCapture+=Ee[0],se.type||(se.type=ae),Z.push(se);break}$++}else $++}return A.prevCapture="",Z}return w.sort(function(I,A){return _[I].i-_[A].i||(I<A?-1:1)}),function(I,A){return S(function(Z){return Z.replace(YO,`
109
- `).replace(QO,"").replace(cR," ")}(I),A)}}(x),R=(F=function(_,w){return function(S,I,A){const Z=_[S.type].l;return w?w(()=>Z(S,I,A),S,I,A):Z(S,I,A)}}(x,r.renderRule),function _(w,S={}){if(Array.isArray(w)){const I=S.key,A=[];let Z=!1;for(let $=0;$<w.length;$++){S.key=$;const ae=_(w[$],S),ge=typeof ae=="string";ge&&Z?A[A.length-1]+=ae:ae!==null&&A.push(ae),Z=ge}return S.key=I,A}return F(w,_,S)});var F;const z=m(n);return y.length?h("div",null,z,h("footer",{key:"footer"},y.map(function(_){return h("div",{id:i(_.identifier,Is),key:_.identifier},_.identifier,R(L(_.footnote,{inline:!0})))}))):z}const xr=n=>{let{children:r="",options:i}=n,s=function(u,c){if(u==null)return{};var d,h,m={},g=Object.keys(u);for(h=0;h<g.length;h++)c.indexOf(d=g[h])>=0||(m[d]=u[d]);return m}(n,BO);return H.cloneElement(GR(r,i),s)},kR="_generalConditionsContainer_55hjg_1",qR="_generalConditions_55hjg_1",FR="_generalConditionsHeader_55hjg_15",VR="_generalConditionsBody_55hjg_26",PR="_generalConditionsAccept_55hjg_35",zs={generalConditionsContainer:kR,generalConditions:qR,generalConditionsHeader:FR,generalConditionsBody:VR,generalConditionsAccept:PR},YR=()=>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"})}),XR=()=>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"})}),ZR="general-conditions.header",QR="general-conditions.body",Av="general-conditions.accept-conditions-note",KR=()=>{const n=tt(),[r,i]=H.useState(!1),s=()=>i(!r),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},c=n(ZR),d=n(Av);return v.jsxs("div",{className:Q(zs.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&v.jsxs("div",{className:zs.generalConditions,children:[v.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:Q(zs.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[v.jsx(xr,{children:c}),r?v.jsx(XR,{}):v.jsx(YR,{})]}),v.jsx("div",{className:Q(zs.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&v.jsx(xr,{children:n(QR)||""})})]}),!!d?.length&&v.jsx("div",{className:Q(zs.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(xr,{children:n(Av)||""})})]})},$R="_message_1sw52_1",WR="_messageBot_1sw52_9",JR="_messageBotLast_1sw52_19",ew="_avatar_1sw52_19",tw="_messageBotFirst_1sw52_28",nw="_messageBotAnimated_1sw52_41",rw="_messageGuest_1sw52_52",aw="_messageGuestFirst_1sw52_58",iw="_messageGuestLast_1sw52_64",sw="_botAvatar_1sw52_78",lw="_agentAvatar_1sw52_82",ow="_bubble_1sw52_86",uw="_bubbleContent_1sw52_92",cw="_bubbleLeft_1sw52_106",fw="_leftText_1sw52_117",dw="_bubbleRight_1sw52_124",hw="_rightText_1sw52_134",mw="_sourceInfoReference_1sw52_166",pw="_sourceInfoReferenceActive_1sw52_178",ye={message:$R,messageBot:WR,messageBotLast:JR,avatar:ew,messageBotFirst:tw,messageBotAnimated:nw,messageGuest:rw,messageGuestFirst:aw,messageGuestLast:iw,botAvatar:sw,agentAvatar:lw,bubble:ow,bubbleContent:uw,bubbleLeft:cw,leftText:fw,bubbleRight:dw,rightText:hw,sourceInfoReference:mw,sourceInfoReferenceActive:pw},gw="_botMessageActions_m0f8n_1",yw="_alwaysVisible_m0f8n_27",vw="_reported_m0f8n_34",bw="_action_m0f8n_38",aa={botMessageActions:gw,alwaysVisible:yw,reported:vw,action:bw},_w=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:s,onReaction:u})=>{const c=tt(),[d,h]=H.useState(!1),m=y=>()=>u(y),g=H.useCallback(async()=>{if(s.current)try{h(!0);const y=s.current.innerHTML,E=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([y],{type:"text/html"}),"text/plain":new Blob([E],{type:"text/plain"})})]),await new Promise(x=>setTimeout(x,1500))}finally{h(!1)}},[s]);return v.jsxs("div",{className:Q(aa.botMessageActions,n&&aa.alwaysVisible,i&&aa.reported),children:[r===ru.BOT&&v.jsx("button",{className:Q(aa.action,i==="GOOD"&&aa.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":c(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===ru.BOT&&v.jsx("button",{className:Q(aa.action,i==="BAD"&&aa.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":c(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:Q(aa.action,"tooltip--top-right"),tabIndex:0,"aria-label":c("bot-bubble.copy"),"data-title":c("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:d?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"})})})]})},zb=H.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:d},h)=>{const m=tt(),g=H.useRef(null),y=n.sender.type===Re.UserType.BOT;return v.jsxs("li",{ref:h,className:Q(ye.message,ye.messageBot,i&&ye.lastMessage,s&&ye.messageBotFirst,u&&ye.messageBotLast,"chat__bubbleContainer",r&&ye.messageBotAnimated,r&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:Q(ye.avatar,y?ye.botAvatar:ye.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),v.jsxs("div",{ref:g,className:Q(ye.bubble,ye.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(y?"bot-bubble.label":"agent-bubble.label"),children:[v.jsx("div",{className:Q(ye.leftText),children:c}),d&&v.jsx(_w,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:d})]})]})}),Ew="_sourceList_1n31h_1",Sw="_source_1n31h_1",Tw="_label_1n31h_37",pd={sourceList:Ew,source:Sw,label:Tw},Gb=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"})}),kb=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"})}),qb=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"})}),Fb=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"})}),Aw=({type:n,...r})=>{switch(n){case"WEBSITE":return v.jsx(Fb,{...r});case"PDF":return v.jsx(qb,{...r});case"DOCX":return v.jsx(Gb,{...r});default:return v.jsx(kb,{...r})}},Yh=({sources:n,onLinkClick:r})=>{const i=tt(),s=c=>()=>{r(c.url)},u=c=>d=>{(d.key==="Enter"||d.key===" ")&&r(c.url)};return n.length?v.jsx("ul",{className:pd.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(c=>v.jsx("li",{className:pd.source,children:v.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[v.jsx(Aw,{type:c.type,"aria-hidden":"true"}),v.jsx("div",{className:pd.label,children:c.label})]})},c.url))}):null},xw="_button_3ui4g_1",Ow="_buttonDefault_3ui4g_13",Rw="_buttonPrimary_3ui4g_28",Js={button:xw,buttonDefault:Ow,buttonPrimary:Rw},bu=({className:n,children:r,...i})=>v.jsx("button",{className:Q(Js.button,n),type:"button",role:"button",...i,children:r}),ww="_title_137pi_1",Cw="_buttons_137pi_6",Nw="_button_137pi_6",Mw="_imageContainer_137pi_29",Dw="_image_137pi_29",Bw="_video_container_137pi_44",Lw="_video_137pi_44",Uw="_only_137pi_58",ln={title:ww,buttons:Cw,button:Nw,imageContainer:Mw,image:Dw,video_container:Bw,video:Lw,only:Uw},Hw=({buttons:n,onButtonClick:r})=>v.jsx("div",{className:Q(ln.buttons,"chat__bubbleButtons"),children:n.map((i,s)=>v.jsx(bu,{className:Q(ln.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))}),xv="newtab#",Vb=({markdown:n,markdownOptions:r={},onLinkClick:i})=>{const s=c=>d=>(d.preventDefault(),c&&i(c),!1),u=({title:c,href:d,children:h})=>d.indexOf(xv)===0?v.jsx("a",{href:d.slice(xv.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):v.jsx("a",{onClick:s(d),title:c,href:d,children:h});return v.jsx(xr,{options:{...r,overrides:{a:u}},children:n})},jw=({text:n,onLinkClick:r})=>n?v.jsx("div",{children:v.jsx(Vb,{markdown:n,onLinkClick:r})}):null,Iw=({title:n})=>n?v.jsx("h1",{className:ln.title,children:n}):null,zw=({title:n,text:r,buttons:i,onButtonClick:s,onLinkClick:u})=>n?.length||r?.length||i?.length?v.jsxs("div",{className:Q(ye.bubbleContent),children:[v.jsx(Iw,{title:n}),v.jsx(jw,{text:r,onLinkClick:u}),v.jsx(Hw,{buttons:i,onButtonClick:s})]}):null,Gw=({alt:n,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?v.jsx("div",{className:ln.video_container,children:v.jsx("iframe",{className:Q(ln.video,{[ln.only]:!s}),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:ln.imageContainer,children:v.jsx("img",{className:Q(ln.image,{[ln.only]:!s}),src:r,alt:n})})}):v.jsx("div",{className:ln.imageContainer,children:v.jsx("img",{className:Q(ln.image,{[ln.only]:!s}),src:r,alt:n})}):null,kw=({title:n,text:r,imageUrl:i,itemUrl:s,buttons:u,sources:c,onButtonClick:d,onLinkClick:h})=>{const m=!!n?.length||!!r?.length||!!u?.length;return v.jsxs("div",{className:Q(ln.detailMessage),children:[v.jsx(Gw,{hasBody:m,imageUrl:i,itemUrl:s,alt:n||""}),m&&v.jsx(zw,{title:n,text:r,buttons:u,onLinkClick:h,onButtonClick:d}),v.jsx(Yh,{sources:c,onLinkClick:h})]})},qw=H.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},s)=>{const u=tt();return v.jsx("li",{ref:s,className:Q(ye.message,ye.messageGuest,n&&ye.messageGuestFirst,r&&ye.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:v.jsx("div",{className:Q(ye.bubble,ye.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:v.jsx("div",{className:Q(ye.rightText),children:i})})})}),Fw="_markdown_nw7vg_1",Pb={markdown:Fw},Yb=()=>Vw(window.location.pathname),Vw=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},_u=()=>H.useMemo(()=>Yb(),[]),Ho="source-info-reference",Pw=({actionId:n,markdown:r,sources:i,onLinkClick:s})=>{const u=_u(),c=ka(),d=Yw(),h=Lt(y=>{const E=y.chat.sourceInfos;if(E?.type==="loaded"||E?.type==="loading")return E.chunkId}),m=y=>E=>{const x=E.key;(x==="ArrowDown"||x==="ArrowRight"||x==="Enter"||x===" "||x==="Space")&&(E.stopPropagation(),c(ov(u,n,y)))},g=y=>()=>{c(ov(u,n,y))};return H.useLayoutEffect(()=>{document.querySelectorAll(`.${Ho}`).forEach(y=>{const E=y.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&E.textContent?.endsWith(" ")&&E.textContent?.trim().length&&y.classList.add(`${Ho}--before-space`);const x=y.nextSibling;x&&x.nodeType===Node.TEXT_NODE&&x.textContent?.startsWith(" ")&&x.textContent?.trim().length&&y.classList.add(`${Ho}--after-space`)})},[r]),v.jsxs("div",{className:ye.bubbleContent,children:[v.jsx("div",{className:Pb.markdown,children:v.jsx(Vb,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(y,E,x,L){if(E.type===LO.footnoteReference){const R=E.text===h;return v.jsx("span",{className:Q(ye.sourceInfoReference,R&&ye.sourceInfoReferenceActive,Ho),children:v.jsx("a",{type:"button",tabIndex:0,onClick:g(E.text),onKeyDown:m(E.text),children:d(E.text)})},L.key)}return y()}}})}),v.jsx(Yh,{sources:i,onLinkClick:s})]})},Yw=()=>{const n=[];return i=>{const s=n.indexOf(i);return s>-1?s+1:(n.push(i),n.length)}},Xw="_text_gp0s0_1",Zw="_command_gp0s0_5",Ov={text:Xw,command:Zw},Qw=({text:n,commands:r=[]})=>{const i=r.find(u=>n.startsWith(`/${u}`)),s=i?n.slice(i.length+1):n;return v.jsxs("div",{children:[i&&v.jsxs("code",{className:Ov.command,children:["/",i]}),s.split(`
110
- `).map((u,c)=>v.jsxs("span",{className:Ov.text,children:[u,v.jsx("br",{})]},c))]})},Kw=({text:n,commands:r,sources:i,onLinkClick:s})=>v.jsxs("div",{className:ye.bubbleContent,children:[v.jsx(Qw,{text:n,commands:r}),v.jsx(Yh,{sources:i,onLinkClick:s})]}),$w=H.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:d,onLinkClick:h},m)=>{const g=Ww(n._id,n,r,d,h);switch(n.sender.type){case Re.UserType.GUEST:return v.jsx(qw,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:g});default:{const y=E=>c(n._id,E);return v.jsx(zb,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:y,children:g})}}}),Ww=(n,r,i,s,u)=>{switch(r.type){case Re.MessageTypeEnum.TEXT:{const c=r;return v.jsx(Kw,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Re.MessageTypeEnum.DETAIL:{const c=r;return v.jsx(kw,{title:c.title,text:c.text,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:s,onLinkClick:u})}case Re.MessageTypeEnum.MARKDOWN:{const c=r;return v.jsx(Pw,{actionId:n,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},Jw=(n,r)=>n.message._id===r.message._id&&n.message.reaction===r.message.reaction&&n.isLastMessage===r.isLastMessage&&n.isFirstMessageBySender===r.isFirstMessageBySender&&n.isLastMessageBySender===r.isLastMessageBySender,eC=y1.memo($w,Jw),tC="_ticontainer_xg0dn_1",nC="_tiblock_xg0dn_5",rC="_tidot_xg0dn_12",Gs={ticontainer:tC,tiblock:nC,tidot:rC},aC=({isTyping:n=!1})=>v.jsx("div",{className:Gs.ticontainer,children:v.jsx("div",{className:Gs.tiblock,children:n?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")}),v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")}),v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")})]}):null})}),iC=Object.assign({_id:"typing-indicator"},new Re.TextMessage("",new Re.BotUser)),sC=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const d=H.useRef(0),h=H.useRef(!0),m=H.useRef(null),g=H.useRef(null),y=H.useRef(null),E=Lt(R=>R.settings.enableGeneralConditions);H.useLayoutEffect(()=>{if(n.length&&m.current&&(d.current<n.length||r)){if(g.current){const R=g.current.offsetTop;m.current.scrollTop=R}else if(y.current){const R=y.current.offsetTop;m.current.scrollTop=R}h.current&&(h.current=!1),d.current=n.length}},[n,h,r]);let x;const L=n.length;return v.jsxs("div",{ref:m,className:Q(cv.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&v.jsx(KR,{}),v.jsxs("ul",{className:cv.messages,children:[n.map((R,F)=>{const z=lC(R,x),_=oC(R,F,n,r);x=R.sender.type;const w=F+1===L,S=R._id||`added-${F}`;return v.jsx(eC,{ref:w?y:null,message:R,commands:i,isLastMessage:w,isFirstMessageBySender:z,isLastMessageBySender:_,onButtonClick:u,onLinkClick:c,onReaction:s},w&&!r?"last":S)}),r&&v.jsx(zb,{ref:g,message:iC,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:x!==Re.UserType.BOT,isLastMessageBySender:!0,children:v.jsx(aC,{isTyping:!0})},"last")]})]})},lC=(n,r)=>!r||r!==n.sender.type,oC=(n,r,i,s)=>{const u=n.sender.type,c=i.length;return r+1===c?!(u===Re.UserType.BOT&&s):u!==i.at(r+1)?.sender.type},uC="_bottomSheet_jp8dl_1",cC="_bottomSheetOpen_jp8dl_15",fC="_bottomSheetClose_jp8dl_20",Or={bottomSheet:uC,bottomSheetOpen:cC,bottomSheetClose:fC},dC="_container_xc2nx_1",Rv={container:dC},hC=({contentUrl:n})=>{const r=Lt(c=>c.connection.sessionId),[i,s]=H.useState(!1);H.useEffect(()=>{s(c=>c||!!n)},[n]);const u=H.useMemo(()=>{if(n&&r){const c=new URL(n,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[n,r]);return v.jsx("div",{className:Q(Rv.container,Or.bottomSheet,{[Or.bottomSheetOpen]:!!n,[Or.bottomSheetClose]:i&&!n}),children:u&&v.jsx("iframe",{title:"Drawer",src:u,className:Rv.iframe})})},mC="_container_z787n_1",pC={container:mC},gC=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),yC=()=>{const r=tt()("powered-by");return r&&r.length?v.jsx("div",{className:Q(pC.container,"chat__poweredBy"),children:v.jsx(xr,{options:{overrides:{a:gC}},children:r})}):null},vC=({className:n,children:r,...i})=>v.jsx(bu,{className:Q(Js.buttonDefault,n),type:"button",...i,children:r}),au=({className:n,children:r,...i})=>v.jsx(bu,{className:Q(Js.buttonPrimary,n),...i,children:r}),bC="_container_h23mk_1",_C="_formContainer_h23mk_17",EC="_emailInput_h23mk_22",SC="_description_h23mk_52",TC="_actions_h23mk_57",AC="_validationError_h23mk_67",xC="_submitted_h23mk_74",Da={container:bC,formContainer:_C,emailInput:EC,description:SC,actions:TC,validationError:AC,submitted:xC},OC=({visible:n,onEmailExport:r,onClose:i})=>{const s=tt(),[u,c]=H.useState(void 0),[d,h]=H.useState(!1),[m,g]=H.useState(void 0),y=H.useRef(null);H.useEffect(()=>{n?(y.current?.focus(),h(!1),c(n)):u===!0&&c(!1)},[n,u]);const E=L=>{L.preventDefault(),m&&m.length>0&&(r(m),h(!0),setTimeout(i,3*1e3))},x=L=>{const R=L.target.value.trim(),F=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);g(F?R:"")};return v.jsxs("div",{className:Q(Da.container,Or.bottomSheet,{[Or.bottomSheetOpen]:u===!0,[Or.bottomSheetClose]:u===!1}),children:[v.jsx("h2",{children:s("export-transcript.email.title")}),v.jsx(xr,{className:Da.description,children:s("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:E,className:Da.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:d,ref:y,type:"email",placeholder:s("export-transcript.email.placeholder"),className:Da.emailInput,onChange:x}),m?.length===0?v.jsx("div",{className:Da.validationError,children:s("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:Da.actions,children:[v.jsx(vC,{onClick:i,children:s("export-transcript.email.cancel")}),v.jsx(au,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&v.jsx("div",{className:Da.submitted,children:s("export-transcript.email.success")})]})},RC="_inputContainer_fi5ao_1",wC={inputContainer:RC},CC="_blockUserInput_pot9c_1",NC={blockUserInput:CC},MC=({visible:n})=>{const r=tt();return n?v.jsx("div",{className:Q(NC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},DC="_commandsDropdown_5ytuv_1",BC="_commands_5ytuv_1",LC="_command_5ytuv_1",UC="_commandActive_5ytuv_46",HC="_commandsSelections_5ytuv_55",Zs={commandsDropdown:DC,commands:BC,command:LC,commandActive:UC,commandsSelections:HC},Xb=(n,r)=>{H.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},jC=(n,r,i,s,u)=>{H.useEffect(()=>{const c=d=>{if(n.length)switch(d.key){case"Enter":i(n[r]);break;case"ArrowUp":s(h=>h>0?h-1:n.length-1);break;case"ArrowDown":s(h=>h<n.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[n,r,i,s,u])},IC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=H.useRef(null),c=tt(),[d,h]=H.useState([]),[m,g]=H.useState(wv(r)),[y,E]=H.useState(0),x=L=>i(`/${L}`);return Xb(u,()=>h([])),jC(d,y,x,E,h),H.useEffect(()=>{g(wv(r))},[r]),H.useEffect(()=>{const L=n.length||0;L===0||L>m||!n.startsWith("/")?h([]):h(r.filter(zC(n))),E(0)},[r,n,m]),H.useEffect(()=>{s(!!d.length)},[d,s]),d.length?v.jsx("div",{ref:u,className:Zs.commandsDropdown,children:v.jsx("ul",{id:"command-list",className:Zs.commands,role:"listbox",children:d.map((L,R)=>v.jsxs("li",{className:Q([Zs.command,y===R&&Zs.commandActive]),role:"option",onClick:()=>x(L),onMouseOver:()=>E(R),children:[v.jsxs("h1",{children:["/",L]}),v.jsx("p",{children:c(`commands.${L}`)})]},L))})}):null},wv=n=>Math.max(...n.map(r=>r.length+1)),zC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},Cv=3,GC=({commands:n,onSelectCommand:r})=>{const i=tt(),[s,u]=H.useState(!1),c=g=>()=>{r(`/${g}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?n:n.slice(0,Cv);return v.jsxs("div",{className:Zs.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:c(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:d,children:i("commands.show-more.action")},"show-more"):m.length>Cv?v.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},kC="_callToActionContainer_1pojq_1",qC="_callToActionTitle_1pojq_23",FC="_rateOverlay_1pojq_30",VC="_body_1pojq_52",PC="_footer_1pojq_60",YC="_actions_1pojq_73",XC="_bubbles_1pojq_101",ZC="_stars_1pojq_203",QC="_starsSmall_1pojq_217",KC="_starsLarge_1pojq_223",$C="_star_1pojq_203",WC="_starReadonly_1pojq_237",JC="_starIcon_1pojq_247",e6="_starsDescriptionContainer_1pojq_265",t6="_starsDescription_1pojq_265",It={callToActionContainer:kC,callToActionTitle:qC,rateOverlay:FC,body:VC,footer:PC,actions:YC,bubbles:XC,stars:ZC,starsSmall:QC,starsLarge:KC,star:$C,starReadonly:WC,starIcon:JC,starsDescriptionContainer:e6,starsDescription:t6},n6=({value:n,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return v.jsx("li",{className:Q(It.star,{[It.starReadonly]:s},"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:d,onClick:c,children:v.jsx("span",{role:"img","aria-label":"Star",className:Q(It.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"})})})})})},Nv=5,Zb=({value:n,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=H.useState(void 0),d=()=>{c(void 0)},h=g=>()=>{if(!i){const y=g+1;c(y)}},m=g=>()=>{s&&!i&&(s(g===0&&n===1?0:g+1),c(void 0))};return v.jsx("ul",{tabIndex:0,role:"radiogroup",className:Q(It.stars,{[It.starsSmall]:r==="small",[It.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(Nv).fill(0).map((g,y)=>v.jsx(n6,{value:u===void 0?n:u,index:y,count:Nv,readonly:i,onHover:h(y),onClick:m(y)},y))})},r6=({visible:n,onRate:r})=>{const i=tt();return n?v.jsxs("div",{className:Q(It.callToActionContainer,"chat__conversationRating__callToAction"),children:[v.jsx("div",{className:Q(It.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),v.jsx(Zb,{value:0,size:"small",onChange:r})]}):null},gd=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>v.jsxs("div",{className:Q(ye.message,ye.messageBot,n&&ye.messageBotFirst,r&&ye.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:Q(ye.avatar,ye.botAvatar),src:"bot.svg",alt:"Bot"}),v.jsx("div",{className:Q(ye.bubble,ye.bubbleLeft,"chat__bubble","chat__botBubble"),children:v.jsx("div",{className:Q(ye.leftText,ye.bubbleContent),children:i})})]}),a6=({children:n})=>v.jsx("div",{className:Q(ye.message,ye.messageGuest,ye.messageGuestFirst,ye.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:v.jsx("div",{className:Q(ye.bubble,ye.bubbleRight,"chat__bubble","chat__guestBubble"),children:v.jsx("div",{className:Q(ye.rightText,ye.bubbleContent),children:n})})}),i6=({visible:n,rating:r,onRate:i,onClose:s})=>{const u=tt(),[c,d]=H.useState(r),[h,m]=H.useState(void 0),[g,y]=H.useState(void 0),[E,x]=H.useState({submitted:!1,feedback:""}),[L,R]=H.useState(!1),F=H.useRef(null);H.useEffect(()=>{n?(x({submitted:!1,feedback:""}),y(n)):g===!0&&y(!1)},[n,g]),H.useEffect(()=>{d(r)},[r]),H.useEffect(()=>{const _=c>0?u(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`):void 0;m(_?.length?_:void 0)},[c,u]),H.useEffect(()=>{E.submitted?setTimeout(()=>R(!0),E.feedback.length?500:0):R(!1)},[E]);const z=_=>{_.preventDefault();const w=F.current?.value?.trim()||"";i(c,w),x({submitted:!0,feedback:w})};return v.jsx("div",{className:Q(It.rateOverlay,Or.bottomSheet,"chat__conversationRating__overlay",{[Or.bottomSheetOpen]:g===!0,[Or.bottomSheetClose]:g===!1}),children:v.jsxs("form",{onSubmit:z,children:[v.jsxs("div",{className:Q(It.body,"chat__conversationRating__overlay__body"),children:[v.jsx("div",{}),v.jsx("div",{className:Q(It.bubbles),children:n&&h&&v.jsxs(v.Fragment,{children:[v.jsxs(gd,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[v.jsx("h2",{children:u("conversation-rating.overlay.title")}),v.jsxs("div",{className:Q(It.starsDescriptionContainer),children:[v.jsx(Zb,{value:c,size:"large",readonly:E.submitted,onChange:d}),v.jsxs("div",{className:Q(It.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(gd,{isFirstMessageBySender:!1,isLastMessageBySender:!L||!!E.feedback.length,children:v.jsx("div",{children:h})}),!!E.feedback.length&&v.jsx(a6,{children:E.feedback}),L&&v.jsx(gd,{isFirstMessageBySender:!!E.feedback.length,isLastMessageBySender:!0,children:v.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),v.jsxs("div",{className:Q(It.footer,"chat__conversationRating__overlay__footer"),children:[!E.submitted&&v.jsx("input",{ref:F,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),v.jsx("div",{className:Q(It.actions,"chat__conversationRating__overlay__footer__actions"),children:E.submitted?v.jsx(au,{type:"button",onClick:s,children:u("conversation-rating.overlay.action.close")}):v.jsx(au,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},s6=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:u,onRate:c})=>{const[d,h]=H.useState(0),m=E=>{h(E),u(!0)},g=()=>u(!1),y=!r&&i>=1;return n?v.jsxs(v.Fragment,{children:[v.jsx(r6,{visible:y,onRate:m}),v.jsx(i6,{visible:s,rating:d,onRate:c,onClose:g})]}):null},l6=H.memo(s6),o6="_inputWrapper_e3h44_1",u6="_withOpenCommands_e3h44_14",c6="_messageInputWrapper_e3h44_20",f6="_messageInput_e3h44_20",d6="_buttons_e3h44_44",h6="_button_e3h44_44",xi={inputWrapper:o6,withOpenCommands:u6,messageInputWrapper:c6,messageInput:f6,buttons:d6,button:h6},m6="_audioRecorder_g845f_1",p6="_audioButton_g845f_6",g6="_recorderIcon_g845f_37",y6="_spinning_g845f_60",Ba={audioRecorder:m6,audioButton:p6,recorderIcon:g6,spinning:y6},Mv=2048,iu=16e3;class v6 extends y1.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),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(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(Mv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=Mv}}handleClickSubmitAudio(){const r=_6(this.leftchannel,this.recordingLength),i=E6(r,this.sampleRate||0),s=b6(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return v.jsxs("div",{className:Ba.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:Q(Ba.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:Ba.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:Ba.audioRecorder,children:[v.jsx("button",{className:Q(Ba.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:Ba.recorderIcon}),v.jsx("button",{className:Q(Ba.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 b6=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);jo(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),jo(i,8,"WAVE"),jo(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,iu,!0),i.setUint32(28,iu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),jo(i,36,"data"),i.setUint32(40,n.length*2,!0);const s=n.length;let u=44;const c=1;for(let d=0;d<s;d++)i.setInt16(u,n[d]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},jo=(n,r,i)=>{for(let s=0;s<i.length;s++)n.setUint8(r+s,i.charCodeAt(s))},_6=(n,r)=>{const i=new Float32Array(r);let s=0;const u=n.length;for(let c=0;c<u;c++){const d=n[c];i.set(d,s),s+=d.length}return i},E6=(n,r)=>{if(iu===r)return n;const i=r/iu,s=Math.round(n.length/i),u=new Float32Array(s);let c=0,d=0;for(;c<u.length;){const h=Math.round((c+1)*i);let m=0,g=0;for(let y=d;y<h&&y<n.length;y++)m+=n[y],g++;u[c]=m/g,c++,d=h}return u},S6=({disabled:n,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=tt(),m=H.useRef(null),{enableSpeechSupport:g}=Lt(R=>R.settings);H.useEffect(()=>{m.current?.focus()},[r]);const y=()=>{const R=m.current;R&&r.trim().length>=1&&c(r.trim())&&(R.value="",R.style.height="",R.focus())},E=R=>{R.preventDefault(),y()},x=R=>{const F=R.target.value;u(F),R.target.style.height="";const{scrollHeight:z}=R.target;R.target.style.height=`${z>150?150:z}px`},L=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||y(),R.preventDefault()):i&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()};return v.jsxs("form",{className:Q(xi.inputWrapper,i&&xi.withOpenCommands,"chat__textInput"),onSubmit:E,children:[v.jsx("div",{className:xi.messageInputWrapper,children:v.jsx("textarea",{id:"user_input",ref:m,className:xi.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:x,onKeyDown:L,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),v.jsx("div",{className:Q(xi.buttons,"chat__buttons"),children:r.length||!g||navigator.mediaDevices===void 0?v.jsx("button",{className:Q(xi.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("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"})})}):g&&navigator.mediaDevices!==void 0&&v.jsx(v6,{translate:h,onAudioRecorded:d})})]})},T6="_quickReplies_83npe_1",A6="_quickReply_83npe_9",Dv={quickReplies:T6,quickReply:A6},x6=({quickReplies:n,onQuickReplyClick:r})=>n.length?v.jsx("div",{className:Q(Dv.quickReplies,"chat__quickReplies"),children:n.map(i=>v.jsx(bu,{tabIndex:0,className:Q(Dv.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Bv=5e3,O6=1e3,R6=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:s,showRatingOverlay:u,commands:c,setShowRatingOverlay:d,onTextInput:h,onRate:m,onQuickReplyClick:g,onAudioRecorded:y})=>{const[E,x]=H.useState(""),[L,R]=H.useState(!1),[F,z]=H.useState(!1),_=H.useRef(0),w=H.useRef(0);H.useEffect(()=>{if(L&&!n){const A=_.current?Date.now()-_.current:0;A>Bv?R(!1):setTimeout(()=>{R(!1)},Bv-A)}},[L,n]),H.useEffect(()=>{L&&(_.current=Date.now())},[L]);const S=A=>{const Z=Date.now()-w.current<O6;return F?!1:n||Z?(R(!0),!1):(h(A),x(""),w.current=Date.now(),!0)},I=A=>{x(A+" ")};return v.jsxs("div",{className:Q(wC.inputContainer),children:[v.jsx(x6,{quickReplies:r,onQuickReplyClick:g}),v.jsx(MC,{visible:L}),!L&&v.jsx(l6,{conversationRating:i,numberOfMessagesFromGuest:s,onRate:m,showRatingOverlay:u,setShowRatingOverlay:d}),!!c?.length&&v.jsx(IC,{text:E,commands:c,onSelectCommand:I,onVisibilityChange:z}),v.jsx(S6,{textInput:E,disabled:L,commandsVisible:F,hasCommands:!!c?.length,onTextInput:x,onTextInputSubmit:S,onAudioRecorded:y}),!!c?.length&&v.jsx(GC,{commands:c,onSelectCommand:x})]})},w6=({clientName:n,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c,onMessageFromUser:d,onRate:h,onQuickReplyClick:m,onButtonClick:g,onLinkClick:y,onAudioRecorded:E,onTranscriptExport:x,onTranscriptItemReaction:L})=>{const R=ka(),F=Lt($=>$.connection.connectionState),{enableTranscriptExportEmail:z,commands:_}=Lt($=>$.settings),{showTranscriptMailOverlay:w}=Lt($=>$.chat),[S,I]=H.useState(!1),A=r.filter($=>$.sender.type===ru.GUEST).length;H.useEffect(()=>{if(F===ja.CONNECTED){const $=uu.parse(window.location.search);R(Nb(n,$))}},[n,F,R]);const Z=()=>{R(Cb())};return v.jsxs("div",{className:od.container,children:[v.jsxs("div",{className:Q([od.chatcontent,(w||S)&&od.accessabilityHidden]),children:[v.jsx(sC,{messages:r,isBotTyping:s,commands:_,onButtonClick:g,onLinkClick:y,onTranscriptItemReaction:L}),v.jsx(R6,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:A,conversationRating:c,showRatingOverlay:S,setShowRatingOverlay:I,commands:_,onRate:h,onQuickReplyClick:m,onTextInput:d,onAudioRecorded:E}),v.jsx(yC,{})]}),z&&v.jsx(OC,{visible:!!w,onEmailExport:x,onClose:Z}),v.jsx(hC,{contentUrl:u})]})},C6=n=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c}=n.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c}},N6=n=>({onRestartChat:(r,i)=>n(gu(r,i)),onMessageFromUser:r=>n(sb(r)),onRate:(r,i)=>n(Ex(r,i)),onAudioRecorded:r=>n(gx(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(ib(r)),onNluEvent:r=>n(fb(r)),onButtonClick:r=>n(Tx(r)),onLinkClick:r=>n(db(r)),onTranscriptExport:r=>n(vx(r)),onTranscriptItemReaction:(r,i)=>n(Re.Actions.transcriptItemGuestReaction(r,i||null))}),M6=j2(C6,N6)(w6),Qb=()=>{const[n,r]=H.useState(!1);return H.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},D6=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},B6=({onClick:n})=>{const r=tt();return Qb()?v.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:D6(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},L6="_header_3gvbz_1",U6="_logoContainer_3gvbz_14",H6="_logo_3gvbz_14",j6="_actions_3gvbz_28",I6="_active_3gvbz_43",z6="_menuContainer_3gvbz_56",G6="_menu_3gvbz_56",k6="_divider_3gvbz_86",ia={header:L6,logoContainer:U6,logo:H6,actions:j6,active:I6,menuContainer:z6,menu:G6,divider:k6},q6=({icon:n})=>{switch(n){case"arrow-counter-clockwise":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",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"})});case"mail":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"link":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return v.jsx("div",{})}},F6=H.forwardRef(({selected:n,item:r,onClick:i},s)=>{const u=tt(),c=d=>{d.preventDefault(),i()};return v.jsx("li",{"aria-selected":n,role:"option",className:r.withDivider?ia.divider:void 0,children:v.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[v.jsx(q6,{icon:r.icon}),v.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),V6=n=>{const r=Qb(),{menuItems:i,enableStandaloneView:s,enableTranscriptExportPdf:u,enableTranscriptExportEmail:c}=Lt(h=>h.settings);return H.useMemo(()=>{const h=[];if(n&&(h.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),r&&s&&h.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),u&&h.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),c&&h.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),h.length>1)){const m=h.pop();m&&i.length&&h.push({...m,withDivider:!0})}return h.push(...i),h.filter(({visibility:m})=>n?m==="always"||m==="chat-only":m==="always"||m==="start-screen-only")},[n,u,c,s,r,i])},P6=({chatStarted:n})=>{const r=ka(),i=_u(),s=tt(),[u,c]=H.useState(!1),[d,h]=H.useState(-1),m=H.useRef(null),g=H.useRef(null),y=H.useRef([]),E=V6(n);H.useEffect(()=>{y.current[d]?.focus()},[d]);const x=H.useCallback(()=>{const z=uu.parse(window.location.search);r(gu(i,z)),c(!1),h(0)},[r,i]),L=H.useCallback(z=>{switch(z.type){case"restart-chat":x();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":r(bx());break;case"send-transcript":r(Cb());break;case"link":r(db(z.url));break;case"action":r(JSON.parse(JSON.stringify(z.action)));break}c(!1)},[r,x,c]);H.useEffect(()=>{const z=_=>{if(u)switch(_.key){case"Enter":_.preventDefault(),L(E[d]);break;case"ArrowUp":h(w=>w>0?w-1:E.length-1);break;case"ArrowDown":h(w=>w<E.length-1?w+1:0);break;case"Escape":c(!1);break;case"Tab":d>-1&&c(!1);break}};return document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}},[u,d,E,h,c,L]),H.useEffect(()=>{u||h(-1)},[u,d]),Xb(g,()=>c(!1));const R=()=>{c(z=>!z)},F=()=>{setTimeout(()=>{const z=document.activeElement;g.current&&!g.current.contains(z)&&c(!1)},0)};return E.length?v.jsxs("div",{className:Q(ia.menuContainer),ref:g,children:[v.jsx("button",{ref:m,className:Q(u&&ia.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:R,onBlur:F,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:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),u&&v.jsx("nav",{className:ia.menu,"aria-label":s("header.menu.title"),children:v.jsx("ul",{tabIndex:0,children:E.map((z,_)=>v.jsx(F6,{ref:w=>{y.current[_]=w},selected:d===_,item:z,onClick:()=>L(z)},z.id))})})]}):null},Lv=({className:n,chatStarted:r,...i})=>{const s=ka(),u=()=>{s(yO())};return v.jsxs("div",{className:Q([ia.header,n]),...i,children:[v.jsx("div",{className:ia.logoContainer,children:v.jsx("div",{className:ia.logo})}),v.jsxs("div",{className:ia.actions,children:[v.jsx(P6,{chatStarted:r}),v.jsx(B6,{onClick:u})]})]})},Y6="_chatwindow_rkbir_1",X6="_chatwindowWithAside_rkbir_21",Uv={chatwindow:Y6,chatwindowWithAside:X6},Kb=()=>{const[n,r]=H.useState(!1);return H.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),n},Z6="_sourceInfos_vei0l_1",Q6="_waitForLoading_vei0l_24",K6="_loadingContent_vei0l_28",$6="_sourceHeader_vei0l_37",W6="_sourceHeaderIcon_vei0l_57",J6="_sourceContent_vei0l_61",eN="_openSourceButton_vei0l_69",tN="_sourceButtonLabel_vei0l_79",nN="_closeSourceInfosButton_vei0l_101",rN="_loadingSourceInfos_vei0l_125",aN="_loading_vei0l_28",iN="_loadingError_vei0l_139",sN="_highlightLoadingInfo_vei0l_155",lN="_highlightLoadingInfoInnerContainer_vei0l_169",oN="_highlightLoadingInfoContent_vei0l_178",uN="_highlightLoadingInfoCloseIcon_vei0l_198",cN="_highlightLoader_vei0l_203",fN="_highlightLoaderLoading_vei0l_210",bt={sourceInfos:Z6,waitForLoading:Q6,loadingContent:K6,sourceHeader:$6,sourceHeaderIcon:W6,sourceContent:J6,openSourceButton:eN,sourceButtonLabel:tN,closeSourceInfosButton:nN,loadingSourceInfos:rN,loading:aN,loadingError:iN,highlightLoadingInfo:sN,highlightLoadingInfoInnerContainer:lN,highlightLoadingInfoContent:oN,highlightLoadingInfoCloseIcon:uN,highlightLoader:cN,highlightLoaderLoading:fN},dN=({onClick:n})=>{const r=tt();return v.jsx("button",{className:Q(bt.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"})})})},hN=H.forwardRef(({sourceInfos:n,onClose:r,...i},s)=>v.jsxs("div",{className:bt.sourceHeader,...i,ref:s,children:[v.jsx("div",{children:n?v.jsx("p",{id:"source-info-title",children:n.title}):v.jsx("p",{children:" "})}),v.jsx(dN,{onClick:r})]})),mN=({loading:n})=>v.jsx("div",{className:bt.highlightLoader,children:n&&v.jsx("div",{className:bt.highlightLoaderLoading})});/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:$b,setPrototypeOf:Hv,isFrozen:pN,getPrototypeOf:gN,getOwnPropertyDescriptor:yN}=Object;let{freeze:zt,seal:Sn,create:Wb}=Object,{apply:lh,construct:oh}=typeof Reflect<"u"&&Reflect;zt||(zt=function(r){return r});Sn||(Sn=function(r){return r});lh||(lh=function(r,i,s){return r.apply(i,s)});oh||(oh=function(r,i){return new r(...i)});const Io=Gt(Array.prototype.forEach),vN=Gt(Array.prototype.lastIndexOf),jv=Gt(Array.prototype.pop),ks=Gt(Array.prototype.push),bN=Gt(Array.prototype.splice),Po=Gt(String.prototype.toLowerCase),yd=Gt(String.prototype.toString),Iv=Gt(String.prototype.match),qs=Gt(String.prototype.replace),_N=Gt(String.prototype.indexOf),EN=Gt(String.prototype.trim),Hn=Gt(Object.prototype.hasOwnProperty),Ht=Gt(RegExp.prototype.test),Fs=SN(TypeError);function Gt(n){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return lh(n,r,s)}}function SN(n){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return oh(n,i)}}function Oe(n,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Po;Hv&&Hv(n,null);let s=r.length;for(;s--;){let u=r[s];if(typeof u=="string"){const c=i(u);c!==u&&(pN(r)||(r[s]=c),u=c)}n[u]=!0}return n}function TN(n){for(let r=0;r<n.length;r++)Hn(n,r)||(n[r]=null);return n}function Sr(n){const r=Wb(null);for(const[i,s]of $b(n))Hn(n,i)&&(Array.isArray(s)?r[i]=TN(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=Sr(s):r[i]=s);return r}function Vs(n,r){for(;n!==null;){const s=yN(n,r);if(s){if(s.get)return Gt(s.get);if(typeof s.value=="function")return Gt(s.value)}n=gN(n)}function i(){return null}return i}const zv=zt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vd=zt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),bd=zt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),AN=zt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_d=zt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xN=zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gv=zt(["#text"]),kv=zt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ed=zt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),qv=zt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zo=zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ON=Sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),RN=Sn(/<%[\w\W]*|[\w\W]*%>/gm),wN=Sn(/\$\{[\w\W]*/gm),CN=Sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),NN=Sn(/^aria-[\-\w]+$/),Jb=Sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),MN=Sn(/^(?:\w+script|data):/i),DN=Sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),e_=Sn(/^html$/i),BN=Sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Fv=Object.freeze({__proto__:null,ARIA_ATTR:NN,ATTR_WHITESPACE:DN,CUSTOM_ELEMENT:BN,DATA_ATTR:CN,DOCTYPE_NAME:e_,ERB_EXPR:RN,IS_ALLOWED_URI:Jb,IS_SCRIPT_OR_DATA:MN,MUSTACHE_EXPR:ON,TMPLIT_EXPR:wN});const Ps={element:1,text:3,progressingInstruction:7,comment:8,document:9},LN=function(){return typeof window>"u"?null:window},UN=function(r,i){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const c="dompurify"+(s?"#"+s:"");try{return r.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Vv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function t_(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LN();const r=le=>t_(le);if(r.version="3.2.6",r.removed=[],!n||!n.document||n.document.nodeType!==Ps.document||!n.Element)return r.isSupported=!1,r;let{document:i}=n;const s=i,u=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:g,NamedNodeMap:y=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:E,DOMParser:x,trustedTypes:L}=n,R=m.prototype,F=Vs(R,"cloneNode"),z=Vs(R,"remove"),_=Vs(R,"nextSibling"),w=Vs(R,"childNodes"),S=Vs(R,"parentNode");if(typeof d=="function"){const le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}let I,A="";const{implementation:Z,createNodeIterator:$,createDocumentFragment:ae,getElementsByTagName:ge}=i,{importNode:Ee}=s;let se=Vv();r.isSupported=typeof $b=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:ce,TMPLIT_EXPR:Pe,DATA_ATTR:be,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Te}=Fv;let{IS_ALLOWED_URI:O}=Fv,k=null;const W=Oe({},[...zv,...vd,...bd,..._d,...Gv]);let Y=null;const te=Oe({},[...kv,...Ed,...qv,...zo]);let re=Object.seal(Wb(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,$e=null,Ue=!0,_t=!0,zn=!1,Cr=!0,Ze=!1,kt=!0,xn=!1,Di=!1,Bi=!1,Et=!1,qa=!1,oa=!1,Li=!0,ua=!1;const Tu="user-content-";let Fa=!0,ca=!1,Nr={},fn=null;const wt=Oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let On=null;const Ct=Oe({},["audio","video","img","source","image","track"]);let Ui=null;const rl=Oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Va="http://www.w3.org/1998/Math/MathML",tr="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml";let Ft=qt,Mr=!1,nr=null;const Au=Oe({},[Va,tr,qt],yd);let fa=Oe({},["mi","mo","mn","ms","mtext"]),da=Oe({},["annotation-xml"]);const Hi=Oe({},["title","style","font","a","script"]);let Rn=null;const xu=["application/xhtml+xml","text/html"],al="text/html";let nt=null,Gn=null;const ji=i.createElement("form"),Ii=function(N){return N instanceof RegExp||N instanceof Function},zi=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Gn&&Gn===N)){if((!N||typeof N!="object")&&(N={}),N=Sr(N),Rn=xu.indexOf(N.PARSER_MEDIA_TYPE)===-1?al:N.PARSER_MEDIA_TYPE,nt=Rn==="application/xhtml+xml"?yd:Po,k=Hn(N,"ALLOWED_TAGS")?Oe({},N.ALLOWED_TAGS,nt):W,Y=Hn(N,"ALLOWED_ATTR")?Oe({},N.ALLOWED_ATTR,nt):te,nr=Hn(N,"ALLOWED_NAMESPACES")?Oe({},N.ALLOWED_NAMESPACES,yd):Au,Ui=Hn(N,"ADD_URI_SAFE_ATTR")?Oe(Sr(rl),N.ADD_URI_SAFE_ATTR,nt):rl,On=Hn(N,"ADD_DATA_URI_TAGS")?Oe(Sr(Ct),N.ADD_DATA_URI_TAGS,nt):Ct,fn=Hn(N,"FORBID_CONTENTS")?Oe({},N.FORBID_CONTENTS,nt):wt,ue=Hn(N,"FORBID_TAGS")?Oe({},N.FORBID_TAGS,nt):Sr({}),$e=Hn(N,"FORBID_ATTR")?Oe({},N.FORBID_ATTR,nt):Sr({}),Nr=Hn(N,"USE_PROFILES")?N.USE_PROFILES:!1,Ue=N.ALLOW_ARIA_ATTR!==!1,_t=N.ALLOW_DATA_ATTR!==!1,zn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Cr=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=N.SAFE_FOR_TEMPLATES||!1,kt=N.SAFE_FOR_XML!==!1,xn=N.WHOLE_DOCUMENT||!1,Et=N.RETURN_DOM||!1,qa=N.RETURN_DOM_FRAGMENT||!1,oa=N.RETURN_TRUSTED_TYPE||!1,Bi=N.FORCE_BODY||!1,Li=N.SANITIZE_DOM!==!1,ua=N.SANITIZE_NAMED_PROPS||!1,Fa=N.KEEP_CONTENT!==!1,ca=N.IN_PLACE||!1,O=N.ALLOWED_URI_REGEXP||Jb,Ft=N.NAMESPACE||qt,fa=N.MATHML_TEXT_INTEGRATION_POINTS||fa,da=N.HTML_INTEGRATION_POINTS||da,re=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(_t=!1),qa&&(Et=!0),Nr&&(k=Oe({},Gv),Y=[],Nr.html===!0&&(Oe(k,zv),Oe(Y,kv)),Nr.svg===!0&&(Oe(k,vd),Oe(Y,Ed),Oe(Y,zo)),Nr.svgFilters===!0&&(Oe(k,bd),Oe(Y,Ed),Oe(Y,zo)),Nr.mathMl===!0&&(Oe(k,_d),Oe(Y,qv),Oe(Y,zo))),N.ADD_TAGS&&(k===W&&(k=Sr(k)),Oe(k,N.ADD_TAGS,nt)),N.ADD_ATTR&&(Y===te&&(Y=Sr(Y)),Oe(Y,N.ADD_ATTR,nt)),N.ADD_URI_SAFE_ATTR&&Oe(Ui,N.ADD_URI_SAFE_ATTR,nt),N.FORBID_CONTENTS&&(fn===wt&&(fn=Sr(fn)),Oe(fn,N.FORBID_CONTENTS,nt)),Fa&&(k["#text"]=!0),xn&&Oe(k,["html","head","body"]),k.table&&(Oe(k,["tbody"]),delete ue.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Fs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Fs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=N.TRUSTED_TYPES_POLICY,A=I.createHTML("")}else I===void 0&&(I=UN(L,u)),I!==null&&typeof A=="string"&&(A=I.createHTML(""));zt&&zt(N),Gn=N}},wn=Oe({},[...vd,...bd,...AN]),ft=Oe({},[..._d,...xN]),Nt=function(N){let X=S(N);(!X||!X.tagName)&&(X={namespaceURI:Ft,tagName:"template"});const J=Po(N.tagName),Fe=Po(X.tagName);return nr[N.namespaceURI]?N.namespaceURI===tr?X.namespaceURI===qt?J==="svg":X.namespaceURI===Va?J==="svg"&&(Fe==="annotation-xml"||fa[Fe]):!!wn[J]:N.namespaceURI===Va?X.namespaceURI===qt?J==="math":X.namespaceURI===tr?J==="math"&&da[Fe]:!!ft[J]:N.namespaceURI===qt?X.namespaceURI===tr&&!da[Fe]||X.namespaceURI===Va&&!fa[Fe]?!1:!ft[J]&&(Hi[J]||!wn[J]):!!(Rn==="application/xhtml+xml"&&nr[N.namespaceURI]):!1},St=function(N){ks(r.removed,{element:N});try{S(N).removeChild(N)}catch{z(N)}},kn=function(N,X){try{ks(r.removed,{attribute:X.getAttributeNode(N),from:X})}catch{ks(r.removed,{attribute:null,from:X})}if(X.removeAttribute(N),N==="is")if(Et||qa)try{St(X)}catch{}else try{X.setAttribute(N,"")}catch{}},il=function(N){let X=null,J=null;if(Bi)N="<remove></remove>"+N;else{const We=Iv(N,/^[\r\n\t ]+/);J=We&&We[0]}Rn==="application/xhtml+xml"&&Ft===qt&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Fe=I?I.createHTML(N):N;if(Ft===qt)try{X=new x().parseFromString(Fe,Rn)}catch{}if(!X||!X.documentElement){X=Z.createDocument(Ft,"template",null);try{X.documentElement.innerHTML=Mr?A:Fe}catch{}}const dt=X.body||X.documentElement;return N&&J&&dt.insertBefore(i.createTextNode(J),dt.childNodes[0]||null),Ft===qt?ge.call(X,xn?"html":"body")[0]:xn?X.documentElement:dt},sl=function(N){return $.call(N.ownerDocument||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Pa=function(N){return N instanceof E&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof y)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Dr=function(N){return typeof h=="function"&&N instanceof h};function Qt(le,N,X){Io(le,J=>{J.call(r,N,X,Gn)})}const rr=function(N){let X=null;if(Qt(se.beforeSanitizeElements,N,null),Pa(N))return St(N),!0;const J=nt(N.nodeName);if(Qt(se.uponSanitizeElement,N,{tagName:J,allowedTags:k}),kt&&N.hasChildNodes()&&!Dr(N.firstElementChild)&&Ht(/<[/\w!]/g,N.innerHTML)&&Ht(/<[/\w!]/g,N.textContent)||N.nodeType===Ps.progressingInstruction||kt&&N.nodeType===Ps.comment&&Ht(/<[/\w]/g,N.data))return St(N),!0;if(!k[J]||ue[J]){if(!ue[J]&&Br(J)&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J)))return!1;if(Fa&&!fn[J]){const Fe=S(N)||N.parentNode,dt=w(N)||N.childNodes;if(dt&&Fe){const We=dt.length;for(let Mt=We-1;Mt>=0;--Mt){const Vt=F(dt[Mt],!0);Vt.__removalCount=(N.__removalCount||0)+1,Fe.insertBefore(Vt,_(N))}}}return St(N),!0}return N instanceof m&&!Nt(N)||(J==="noscript"||J==="noembed"||J==="noframes")&&Ht(/<\/no(script|embed|frames)/i,N.innerHTML)?(St(N),!0):(Ze&&N.nodeType===Ps.text&&(X=N.textContent,Io([me,ce,Pe],Fe=>{X=qs(X,Fe," ")}),N.textContent!==X&&(ks(r.removed,{element:N.cloneNode()}),N.textContent=X)),Qt(se.afterSanitizeElements,N,null),!1)},ar=function(N,X,J){if(Li&&(X==="id"||X==="name")&&(J in i||J in ji))return!1;if(!(_t&&!$e[X]&&Ht(be,X))){if(!(Ue&&Ht(G,X))){if(!Y[X]||$e[X]){if(!(Br(N)&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,N)||re.tagNameCheck instanceof Function&&re.tagNameCheck(N))&&(re.attributeNameCheck instanceof RegExp&&Ht(re.attributeNameCheck,X)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(X))||X==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J))))return!1}else if(!Ui[X]){if(!Ht(O,qs(J,ee,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&N!=="script"&&_N(J,"data:")===0&&On[N])){if(!(zn&&!Ht(K,qs(J,ee,"")))){if(J)return!1}}}}}}return!0},Br=function(N){return N!=="annotation-xml"&&Iv(N,Te)},ir=function(N){Qt(se.beforeSanitizeAttributes,N,null);const{attributes:X}=N;if(!X||Pa(N))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Fe=X.length;for(;Fe--;){const dt=X[Fe],{name:We,namespaceURI:Mt,value:Vt}=dt,qn=nt(We),Kt=Vt;let st=We==="value"?Kt:EN(Kt);if(J.attrName=qn,J.attrValue=st,J.keepAttr=!0,J.forceKeepAttr=void 0,Qt(se.uponSanitizeAttribute,N,J),st=J.attrValue,ua&&(qn==="id"||qn==="name")&&(kn(We,N),st=Tu+st),kt&&Ht(/((--!?|])>)|<\/(style|title)/i,st)){kn(We,N);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){kn(We,N);continue}if(!Cr&&Ht(/\/>/i,st)){kn(We,N);continue}Ze&&Io([me,ce,Pe],sr=>{st=qs(st,sr," ")});const Gi=nt(N.nodeName);if(!ar(Gi,qn,st)){kn(We,N);continue}if(I&&typeof L=="object"&&typeof L.getAttributeType=="function"&&!Mt)switch(L.getAttributeType(Gi,qn)){case"TrustedHTML":{st=I.createHTML(st);break}case"TrustedScriptURL":{st=I.createScriptURL(st);break}}if(st!==Kt)try{Mt?N.setAttributeNS(Mt,We,st):N.setAttribute(We,st),Pa(N)?St(N):jv(r.removed)}catch{kn(We,N)}}Qt(se.afterSanitizeAttributes,N,null)},it=function le(N){let X=null;const J=sl(N);for(Qt(se.beforeSanitizeShadowDOM,N,null);X=J.nextNode();)Qt(se.uponSanitizeShadowNode,X,null),rr(X),ir(X),X.content instanceof c&&le(X.content);Qt(se.afterSanitizeShadowDOM,N,null)};return r.sanitize=function(le){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,J=null,Fe=null,dt=null;if(Mr=!le,Mr&&(le="<!-->"),typeof le!="string"&&!Dr(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Fs("dirty is not a string, aborting")}else throw Fs("toString is not a function");if(!r.isSupported)return le;if(Di||zi(N),r.removed=[],typeof le=="string"&&(ca=!1),ca){if(le.nodeName){const Vt=nt(le.nodeName);if(!k[Vt]||ue[Vt])throw Fs("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof h)X=il("<!---->"),J=X.ownerDocument.importNode(le,!0),J.nodeType===Ps.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?X=J:X.appendChild(J);else{if(!Et&&!Ze&&!xn&&le.indexOf("<")===-1)return I&&oa?I.createHTML(le):le;if(X=il(le),!X)return Et?null:oa?A:""}X&&Bi&&St(X.firstChild);const We=sl(ca?le:X);for(;Fe=We.nextNode();)rr(Fe),ir(Fe),Fe.content instanceof c&&it(Fe.content);if(ca)return le;if(Et){if(qa)for(dt=ae.call(X.ownerDocument);X.firstChild;)dt.appendChild(X.firstChild);else dt=X;return(Y.shadowroot||Y.shadowrootmode)&&(dt=Ee.call(s,dt,!0)),dt}let Mt=xn?X.outerHTML:X.innerHTML;return xn&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ht(e_,X.ownerDocument.doctype.name)&&(Mt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
111
- `+Mt),Ze&&Io([me,ce,Pe],Vt=>{Mt=qs(Mt,Vt," ")}),I&&oa?I.createHTML(Mt):Mt},r.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zi(le),Di=!0},r.clearConfig=function(){Gn=null,Di=!1},r.isValidAttribute=function(le,N,X){Gn||zi({});const J=nt(le),Fe=nt(N);return ar(J,Fe,X)},r.addHook=function(le,N){typeof N=="function"&&ks(se[le],N)},r.removeHook=function(le,N){if(N!==void 0){const X=vN(se[le],N);return X===-1?void 0:bN(se[le],X,1)[0]}return jv(se[le])},r.removeHooks=function(le){se[le]=[]},r.removeAllHooks=function(){se=Vv()},r}var HN=t_();const jN=({onClose:n})=>{const r=tt();return v.jsxs("div",{className:bt.highlightLoadingInfo,onClick:n,children:[v.jsx("div",{className:bt.highlightLoadingInfoCloseIcon,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"})})}),v.jsxs("div",{className:bt.highlightLoadingInfoInnerContainer,children:[v.jsxs("div",{className:bt.highlightLoadingInfoContent,children:[v.jsx("h3",{children:r("source-infos.highlight-loading.title")}),v.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},IN=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),zN=({className:n,children:r,...i})=>v.jsx("a",{className:Q(Js.button,Js.buttonDefault,n),type:"button",role:"button",...i,children:r}),GN=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"})}),kN=({type:n,...r})=>{switch(n){case"WEBSITE":return v.jsx(Fb,{...r});case"PDF":return v.jsx(qb,{...r});case"DOCX":return v.jsx(Gb,{...r});case"TEXT":return v.jsx(GN,{...r});default:return v.jsx(kb,{...r})}},qN=({url:n,knowledgeBaseType:r})=>{const i=tt();return v.jsx(zN,{className:bt.openSourceButton,href:n,target:"_blank",children:v.jsxs("div",{className:bt.sourceButtonLabel,children:[v.jsx("div",{className:bt.sourceHeaderIcon,children:v.jsx(kN,{type:r})}),v.jsx("p",{children:i("source-infos.open-source")})]})})},FN=({sourceInfos:{content:n,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=H.useState(!s);H.useEffect(()=>{s&&c(!1)},[s]);const d=HN.sanitize(n,{USE_PROFILES:{html:!0}});return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Q(bt.sourceContent,Pb.markdown),children:[v.jsx(xr,{options:{overrides:{a:IN}},children:d}),u&&v.jsx(jN,{onClose:()=>c(!1)})]}),v.jsx(qN,{url:r,knowledgeBaseType:i})]})},VN=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,PN=()=>{const n=tt();return v.jsxs("div",{className:bt.loadingError,children:[v.jsx("h1",{children:n("source-infos.error.title")}),v.jsx("img",{src:VN,title:n("source-infos.error.title")}),v.jsx("p",{children:n("source-infos.error.info")})]})},YN=()=>v.jsx("div",{className:bt.loadingSourceInfos,children:v.jsx("svg",{className:bt.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"})})});function XN({sourceInfos:n,onClose:r,threshold:i=100}){const s=H.useRef(null),[u,c]=H.useState(0),[d,h]=H.useState(!1),m=H.useRef(null),g=H.useRef(null),y=H.useCallback(R=>{m.current=R,h(!0)},[]),E=H.useCallback(R=>{if(m.current!==null&&d){const F=R-m.current;F>0&&c(F)}},[d]),x=H.useCallback(()=>{h(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),L=H.useCallback(R=>{const F=A=>y(A.touches[0].clientY),z=A=>E(A.touches[0].clientY),_=()=>x(),w=A=>{A.preventDefault(),y(A.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",I)},S=A=>E(A.clientY),I=()=>{x(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)};R.addEventListener("touchstart",F),R.addEventListener("touchmove",z),R.addEventListener("touchend",_),R.addEventListener("mousedown",w),g.current=()=>{R.removeEventListener("touchstart",F),R.removeEventListener("touchmove",z),R.removeEventListener("touchend",_),R.removeEventListener("mousedown",w),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)}},[y,E,x]);return H.useEffect(()=>{let R;return(()=>{s.current?(g.current?.(),L(s.current)):(R=new MutationObserver(()=>{s.current&&(g.current?.(),L(s.current),R?.disconnect())}),R.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{R?.disconnect(),g.current?.()}},[L,n]),{ref:s,dragOffsetY:u,isDragging:d}}const ZN=n=>{const[r,i]=H.useState(!0);return H.useEffect(()=>{let s=null;return n?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!n),()=>{s&&clearTimeout(s)}},[n]),r},QN=()=>{const n=ka(),r=Lt(m=>m.chat.sourceInfos),i=Kb(),s=H.useRef(null),u=ZN(r);H.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=H.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),n(bO()))},[n,i]),{ref:d,dragOffsetY:h}=XN({onClose:c,sourceInfos:r});return r?v.jsx("dialog",{ref:s,className:Q(bt.sourceInfos,u?bt.waitForLoading:r.type==="loading"?bt.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:v.jsxs(v.Fragment,{children:[v.jsx(hN,{ref:d,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?v.jsx(YN,{}):r.type==="loading-error"?v.jsx(PN,{}):v.jsxs(v.Fragment,{children:[v.jsx(mN,{loading:!r.highlighted}),v.jsx(FN,{sourceInfos:r})]})]})}):null},KN="_container_1aof3_1",$N="_body_1aof3_7",WN="_intro_1aof3_14",JN="_footer_1aof3_39",e3="_footnote_1aof3_43",t3="_containerWithFootnote_1aof3_58",n3="_startChatButton_1aof3_73",r3="_spinner_1aof3_88",a3="_formFields_1aof3_92",i3="_formField_1aof3_92",s3="_radio_1aof3_104",l3="_checkbox_1aof3_111",o3="_input_1aof3_119",u3="_inputLabel_1aof3_153",c3="_selectWrapper_1aof3_157",f3="_select_1aof3_157",d3="_selectLabel_1aof3_203",vt={container:KN,body:$N,intro:WN,footer:JN,footnote:e3,containerWithFootnote:t3,startChatButton:n3,spinner:r3,formFields:a3,formField:i3,radio:s3,checkbox:l3,input:o3,inputLabel:u3,selectWrapper:c3,select:f3,selectLabel:d3},h3=({name:n,label:r,defaultValue:i,required:s,onChange:u})=>{const c=d=>{u(d.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:Q(vt.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[v.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:s,onChange:c}),v.jsx("div",{children:r})]})},m3=({type:n,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:g,onChange:y})=>{const E=x=>{y(x.target.value)};return v.jsxs("label",{className:Q(vt.input,"chat__startScreen__input"),htmlFor:r,children:[v.jsx("div",{className:Q(vt.inputLabel),children:i}),v.jsx("input",{type:n,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:g,onChange:E})]})},p3=({name:n,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const d=`${n}-${r}`,h=m=>{c(m.target.value)};return v.jsxs("label",{className:Q(vt.radio,"chat__startScreen__radio"),htmlFor:d,children:[v.jsx("input",{id:d,type:"radio",name:n,value:r,defaultChecked:s,required:u,onChange:h}),v.jsx("span",{className:Q(vt.label),children:i})]})},g3=({name:n,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return v.jsxs("label",{className:Q(vt.select,"chat__startScreen__select"),htmlFor:n,children:[v.jsx("div",{className:Q(vt.selectLabel),children:r}),v.jsx("div",{className:Q(vt.selectWrapper),children:v.jsx("select",{id:n,name:n,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(c||{}).map(([m,g])=>v.jsx("option",{value:m,selected:g===i,children:g}))})})]})},y3="start-screen.intro",v3="start-screen.start-chat",b3="start-screen.waiting-for-login",_3="start-screen.footnote",Un="start-screen.form",Pv=`${Un}.fields`,E3=()=>{const n=tt(),r=ka(),i=_u(),s=Lt(R=>R.startScreen.loginRequestToken),u=Lt(R=>R.settings.requiresUserAuthentication);H.useEffect(()=>{let R;if(s){const _=window.screenX+(window.outerWidth-600)/2,w=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${_},top=${w},resizable=yes,scrollbars=yes`);R=setInterval(()=>{S?.closed&&(r(pO()),clearInterval(R))},500)}return()=>{R&&clearInterval(R)}},[i,s,r]);const[c,d]=H.useState({}),h=()=>{const R=Object.entries(c).reduce((F,[z,_])=>({...F,[z]:_.value}),{});r(u?mO({loginRequestToken:$o(),formValues:R}):fO({formValues:R}))},m=n(y3),g=n(s?b3:v3),y=n(_3),E=H.useMemo(()=>n(Pv)?.split(";").map(R=>R.trim())??[],[n(Pv)]);H.useEffect(()=>{E.length&&Object.keys(c).length===0&&d(E.reduce((R,F)=>({...R,[F]:S3(F,n)}),{}))},[n,E,c]);const x=R=>{R.preventDefault(),h()},L=R=>F=>{d(z=>({...z,[R]:{...z[R],value:F}}))};return v.jsxs("form",{onSubmit:x,className:Q(vt.container,y&&vt.containerWithFootnote,"chat__startScreen"),children:[v.jsxs("div",{className:Q(vt.body,"chat__startScreen__body"),children:[m&&v.jsx("div",{className:Q(vt.intro,"chat__startScreen__intro"),children:v.jsx(xr,{options:{overrides:{a:Yv}},children:m})}),v.jsx("div",{className:Q(vt.formFields,"chat__startScreen__fields"),children:Object.values(c).map(({type:R,name:F,label:z,placeholder:_,defaultValue:w,options:S,required:I,multiple:A,min:Z,max:$,pattern:ae})=>v.jsx("div",{className:Q(vt.formField,"chat__startScreen__field"),children:(()=>{switch(R){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:z}),Object.entries(S||{}).map(([ge,Ee])=>v.jsx(p3,{name:F,value:ge,label:Ee,defaultChecked:ge===w,required:I,onChange:L(F)},ge))]});case"checkbox":return v.jsx(h3,{name:F,label:z,defaultValue:w,required:I,onChange:L(F)});case"select":return v.jsx(g3,{name:F,label:z,defaultValue:w,required:I,multiple:A,options:S,onChange:L(F)});default:return v.jsx(m3,{type:R,name:F,label:z,placeholder:_,defaultValue:w,required:I,multiple:A,min:Z,max:$,pattern:ae,onChange:L(F)})}})()},F))})]}),v.jsxs("div",{className:Q(vt.footer,"chat__startScreen__footer"),children:[v.jsxs(au,{type:"submit",className:vt.startChatButton,disabled:!!s,children:[!!s&&v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:vt.spinner,children:v.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),v.jsx("div",{children:g})]}),y&&v.jsx("div",{className:vt.footnote,children:v.jsx(xr,{options:{overrides:{a:Yv}},children:y})})]})]})},Yv=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),S3=(n,r)=>{const i=r(`${Un}.${n}.type`)||"text",s=r(`${Un}.${n}.required`)==="true",u=r(`${Un}.${n}.multiple`)==="true",c=r(`${Un}.${n}.placeholder`),d=r(`${Un}.${n}.label`)||"",h=r(`${Un}.${n}.defaultValue`),m=r(`${Un}.${n}.min`),g=r(`${Un}.${n}.max`),y=r(`${Un}.${n}.pattern`),E=A3(r(`${Un}.${n}.options`));return{name:n,label:d,placeholder:c,value:T3(i,h,E)||"",defaultValue:h,options:E,type:i,required:s,multiple:u,min:m,max:g,pattern:y}},T3=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",A3=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),x3=()=>{const n=ou();H.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},Oi={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"},O3=({clientName:n})=>{x3();const r=ka(),i=Lt(y=>y.intl.messages),s=tt(),u=Lt(y=>y.settings.enableStartScreen),c=Lt(y=>y.startScreen.startScreenStatus),[d,h]=H.useState(void 0);H.useEffect(()=>{const y=uu.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const E=x=>{switch(x.data.type){case Oi.TRIGGER_ACTION:r(x.data.action);break;case Oi.TRIGGER_STORY:r(fb(x.data.story));break;case Oi.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Oi.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Oi.CHAT_MESSAGE_FROM_GUEST:r(sb(x.data.text));break;case Oi.RESTART_CHAT:r(gu(n,y));break}};return r(EO(n,y)),window.addEventListener("message",x=>E(x),!1),()=>window.removeEventListener("message",E)},[n,r]),H.useEffect(()=>{const y=s("page.title");y&&document&&(document.title=y)},[i,s]);const m=u===void 0,g=u===!1||c==="HIDDEN";return v.jsx("div",{className:Q(Uv.chatwindow,g&&Uv.chatwindowWithAside,"chat__chatwindow",d),children:m?null:g?v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(Lv,{chatStarted:!0})}),v.jsx("main",{children:v.jsx(M6,{clientName:n})}),v.jsx("aside",{children:v.jsx(QN,{})})]}):v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(Lv,{chatStarted:!1})}),v.jsx("main",{children:v.jsx(E3,{})})]})})},R3=()=>{const n=_u(),r=Kb(),i=Lt(u=>u.intl.locale),s=Lt(u=>u.intl.messages);return v.jsx(AA,{locale:i,messages:s,onError:()=>{},children:v.jsx("div",{className:Q([OA.app,r?"chat__small":"chat__large"]),children:v.jsx(O3,{clientName:n})})})};var Sd,Xv;function Xh(){if(Xv)return Sd;Xv=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Sd=n,Sd}var Td,Zv;function w3(){if(Zv)return Td;Zv=1;var n=typeof go=="object"&&go&&go.Object===Object&&go;return Td=n,Td}var Ad,Qv;function n_(){if(Qv)return Ad;Qv=1;var n=w3(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return Ad=i,Ad}var xd,Kv;function C3(){if(Kv)return xd;Kv=1;var n=n_(),r=function(){return n.Date.now()};return xd=r,xd}var Od,$v;function N3(){if($v)return Od;$v=1;var n=/\s/;function r(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return Od=r,Od}var Rd,Wv;function M3(){if(Wv)return Rd;Wv=1;var n=N3(),r=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(r,"")}return Rd=i,Rd}var wd,Jv;function r_(){if(Jv)return wd;Jv=1;var n=n_(),r=n.Symbol;return wd=r,wd}var Cd,e1;function D3(){if(e1)return Cd;e1=1;var n=r_(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,u=n?n.toStringTag:void 0;function c(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var g=!0}catch{}var y=s.call(d);return g&&(h?d[u]=m:delete d[u]),y}return Cd=c,Cd}var Nd,t1;function B3(){if(t1)return Nd;t1=1;var n=Object.prototype,r=n.toString;function i(s){return r.call(s)}return Nd=i,Nd}var Md,n1;function L3(){if(n1)return Md;n1=1;var n=r_(),r=D3(),i=B3(),s="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:c&&c in Object(h)?r(h):i(h)}return Md=d,Md}var Dd,r1;function U3(){if(r1)return Dd;r1=1;function n(r){return r!=null&&typeof r=="object"}return Dd=n,Dd}var Bd,a1;function H3(){if(a1)return Bd;a1=1;var n=L3(),r=U3(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Bd=s,Bd}var Ld,i1;function j3(){if(i1)return Ld;i1=1;var n=M3(),r=Xh(),i=H3(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return s;if(r(g)){var y=typeof g.valueOf=="function"?g.valueOf():g;g=r(y)?y+"":y}if(typeof g!="string")return g===0?g:+g;g=n(g);var E=c.test(g);return E||d.test(g)?h(g.slice(2),E?2:8):u.test(g)?s:+g}return Ld=m,Ld}var Ud,s1;function I3(){if(s1)return Ud;s1=1;var n=Xh(),r=C3(),i=j3(),s="Expected a function",u=Math.max,c=Math.min;function d(h,m,g){var y,E,x,L,R,F,z=0,_=!1,w=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,n(g)&&(_=!!g.leading,w="maxWait"in g,x=w?u(i(g.maxWait)||0,m):x,S="trailing"in g?!!g.trailing:S);function I(ce){var Pe=y,be=E;return y=E=void 0,z=ce,L=h.apply(be,Pe),L}function A(ce){return z=ce,R=setTimeout(ae,m),_?I(ce):L}function Z(ce){var Pe=ce-F,be=ce-z,G=m-Pe;return w?c(G,x-be):G}function $(ce){var Pe=ce-F,be=ce-z;return F===void 0||Pe>=m||Pe<0||w&&be>=x}function ae(){var ce=r();if($(ce))return ge(ce);R=setTimeout(ae,Z(ce))}function ge(ce){return R=void 0,S&&y?I(ce):(y=E=void 0,L)}function Ee(){R!==void 0&&clearTimeout(R),z=0,y=F=E=R=void 0}function se(){return R===void 0?L:ge(r())}function me(){var ce=r(),Pe=$(ce);if(y=arguments,E=this,F=ce,Pe){if(R===void 0)return A(F);if(w)return clearTimeout(R),R=setTimeout(ae,m),I(F)}return R===void 0&&(R=setTimeout(ae,m)),L}return me.cancel=Ee,me.flush=se,me}return Ud=d,Ud}var Hd,l1;function z3(){if(l1)return Hd;l1=1;var n=I3(),r=Xh(),i="Expected a function";function s(u,c,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),n(u,c,{leading:h,maxWait:c,trailing:m})}return Hd=s,Hd}var G3=z3();const k3=gh(G3);function q3(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function F3(n){return n}function V3(n,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||F3,c={};function d(h,m,g){g=g||1,Object.keys(h).forEach(function(y){const E=h[y],x=r.safe&&Array.isArray(E),L=Object.prototype.toString.call(E),R=q3(E),F=L==="[object Object]"||L==="[object Array]",z=m?m+i+u(y):u(y);if(!x&&!R&&F&&Object.keys(E).length&&(!r.maxDepth||g<s))return d(E,z,g+1);c[z]=E})}return d(n),c}const a_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","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":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
112
-
113
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
114
- - 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","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","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.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},P3={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","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 chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
115
-
116
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
117
- - 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","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","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.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},Y3={"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.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 l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
118
-
119
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
120
- - 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","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du 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.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","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"},X3={"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.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 cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
121
-
122
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
123
- - 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","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","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.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","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"},Z3=["de","en","fr","it"],i_={locale:"de",messages:a_},Q3=(n,r)=>{if(Z3.includes(n)){const i=K3(n),s=V3(r);return{...i,...s}}return r},K3=n=>{switch(n.toString()){case"en":return P3;case"fr":return Y3;case"it":return X3;default:return a_}},$3=(n=W3,r)=>{switch(r.type){case zh:return Object.assign({},n,{connectionState:ja.CONNECTING});case Gh:return Object.assign({},n,{connectionState:ja.CONNECTED});case kh:return Object.assign({},n,{connectionState:ja.DISCONNECTED});case qh:return Object.assign({},n,{connectionState:ja.RECONNECTED});case Fh:return Object.assign({},n,{sessionId:r.sessionId});case mu:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case pu:return Object.assign({},n,{sessionId:void 0});default:return n}},W3={connectionState:ja.DISCONNECTED,sessionId:void 0,userId:void 0},J3=(n=u1,r)=>{switch(r.type){case Rb:return u1;case mu:return La({type:"webclient.chat.started"}),n;case pu:return La({type:"webclient.chat.ended"}),n;case Re.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Re.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Re.ActionTypes.MESSAGE_FROM_GUEST:case Re.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return o1(n,r.message);case Re.ActionTypes.MESSAGE_TO_GUEST:{La(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=n.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Rh:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case Oh:return La(r.message),n;case Re.ActionTypes.EVENT_TO_GUEST:return La(r.event),n;case Re.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:r.payload.parameters.contentUrl});case Re.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Re.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:r.payload.locale});case ob:return La(r),n;case ub:return La(r),n;case Ch:{const i=new Re.TextMessage(r.transcription,new Re.GuestUser),s=Object.assign({},i,{_id:$o()});return o1(n,s)}case Re.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,{reaction:r.payload.reaction}):s);return Object.assign({},n,{messages:i})}case Nh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:i})}case Re.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:i})}case Dh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Mh:{const{highlighted:i}=r.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case lb:{const i=n.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}=r.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==s?n:i==="loading"||i==="loaded"&&h?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}}:n}case Bh:return{...n,sourceInfos:void 0};case wb:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay};default:return n}},o1=(n,r)=>{const i=n.messages[n.messages.length-1],s=i?.text===r.text;return i&&i.sender.type===r.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([r]),quickReplies:[]})},La=n=>{eM()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},eM=()=>typeof window<"u"&&window.self!==window.top,u1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},s_=jh({name:"intl",initialState:i_,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:tM}=s_.actions,nM=s_.reducer,rM={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},l_=jh({name:"settings",initialState:rM,reducers:{setSettings(n,r){n.version&&n.version!==r.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(n.version=r.payload.version,n.requiresUserAuthentication=r.payload.requiresUserAuthentication,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,n.menuItems=r.payload.menuItems||[])}}}),{setSettings:aM}=l_.actions,iM=l_.reducer,sM=pb({settings:iM,chat:J3,startScreen:gO,connection:$3,intl:nM}),lM="bubble-chat",o_="state-last-saved-at",u_="state",oM=n=>{try{if(!fM())return;const r=c1(n,o_);if(cM(r))return;{const i=c1(n,u_);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},uM=(n,r)=>{try{const i=JSON.stringify(r);f1(n,u_,i);const s=new Date().toISOString();f1(n,o_,s)}catch(i){console.error(i)}},cM=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},fM=()=>typeof localStorage<"u",c1=(n,r)=>{const i=c_(n,r);return localStorage.getItem(i)},f1=(n,r,i)=>{const s=c_(n,r);return localStorage.setItem(s,i)},c_=(n,r)=>`${lM}-${n}-${r}`,er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";const Yo=Object.create(null);Object.keys(er).forEach(n=>{Yo[er[n]]=n});const uh={type:"error",data:"parser error"},f_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",d_=typeof ArrayBuffer=="function",h_=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Zh=({type:n,data:r},i,s)=>f_&&r instanceof Blob?i?s(r):d1(r,s):d_&&(r instanceof ArrayBuffer||h_(r))?i?s(r):d1(new Blob([r]),s):s(er[n]+(r||"")),d1=(n,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(n)};function h1(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let jd;function dM(n,r){if(f_&&n.data instanceof Blob)return n.data.arrayBuffer().then(h1).then(r);if(d_&&(n.data instanceof ArrayBuffer||h_(n.data)))return r(h1(n.data));Zh(n,!1,i=>{jd||(jd=new TextEncoder),r(jd.encode(i))})}const m1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<m1.length;n++)Qs[m1.charCodeAt(n)]=n;const hM=n=>{let r=n.length*.75,i=n.length,s,u=0,c,d,h,m;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const g=new ArrayBuffer(r),y=new Uint8Array(g);for(s=0;s<i;s+=4)c=Qs[n.charCodeAt(s)],d=Qs[n.charCodeAt(s+1)],h=Qs[n.charCodeAt(s+2)],m=Qs[n.charCodeAt(s+3)],y[u++]=c<<2|d>>4,y[u++]=(d&15)<<4|h>>2,y[u++]=(h&3)<<6|m&63;return g},mM=typeof ArrayBuffer=="function",Qh=(n,r)=>{if(typeof n!="string")return{type:"message",data:m_(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:pM(n.substring(1),r)}:Yo[i]?n.length>1?{type:Yo[i],data:n.substring(1)}:{type:Yo[i]}:uh},pM=(n,r)=>{if(mM){const i=hM(n);return m_(i,r)}else return{base64:!0,data:n}},m_=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},p_="",gM=(n,r)=>{const i=n.length,s=new Array(i);let u=0;n.forEach((c,d)=>{Zh(c,!1,h=>{s[d]=h,++u===i&&r(s.join(p_))})})},yM=(n,r)=>{const i=n.split(p_),s=[];for(let u=0;u<i.length;u++){const c=Qh(i[u],r);if(s.push(c),c.type==="error")break}return s};function vM(){return new TransformStream({transform(n,r){dM(n,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Id;function Go(n){return n.reduce((r,i)=>r+i.length,0)}function ko(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let s=0;for(let u=0;u<r;u++)i[u]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),i}function bM(n,r){Id||(Id=new TextDecoder);const i=[];let s=0,u=-1,c=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(Go(i)<1)break;const m=ko(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(Go(i)<2)break;const m=ko(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(Go(i)<8)break;const m=ko(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),y=g.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(uh);break}u=y*Math.pow(2,32)+g.getUint32(4),s=3}else{if(Go(i)<u)break;const m=ko(i,u);h.enqueue(Qh(c?m:Id.decode(m),r)),s=0}if(u===0||u>n){h.enqueue(uh);break}}}})}const g_=4;function ct(n){if(n)return _M(n)}function _M(n){for(var r in ct.prototype)n[r]=ct.prototype[r];return n}ct.prototype.on=ct.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};ct.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};ct.prototype.off=ct.prototype.removeListener=ct.prototype.removeAllListeners=ct.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 s,u=0;u<i.length;u++)if(s=i[u],s===r||s.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};ct.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+n],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,r)}return this};ct.prototype.emitReserved=ct.prototype.emit;ct.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};ct.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Eu=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),En=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),EM="arraybuffer";function y_(n,...r){return r.reduce((i,s)=>(n.hasOwnProperty(s)&&(i[s]=n[s]),i),{})}const SM=En.setTimeout,TM=En.clearTimeout;function Su(n,r){r.useNativeTimers?(n.setTimeoutFn=SM.bind(En),n.clearTimeoutFn=TM.bind(En)):(n.setTimeoutFn=En.setTimeout.bind(En),n.clearTimeoutFn=En.clearTimeout.bind(En))}const AM=1.33;function xM(n){return typeof n=="string"?OM(n):Math.ceil((n.byteLength||n.size)*AM)}function OM(n){let r=0,i=0;for(let s=0,u=n.length;s<u;s++)r=n.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function v_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function RM(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function wM(n){let r={},i=n.split("&");for(let s=0,u=i.length;s<u;s++){let c=i[s].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class CM extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class Kh extends ct{constructor(r){super(),this.writable=!1,Su(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new CM(r,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=Qh(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=RM(r);return i.length?"?"+i:""}}class NM extends Kh{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 s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};yM(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,gM(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]=v_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let b_=!1;try{b_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const MM=b_;function DM(){}class BM extends NM{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class Wn extends ct{constructor(r,i,s){super(),this.createRequest=r,Su(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=y_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Wn.requestsCount++,Wn.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=DM,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Wn.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()}}Wn.requestsCount=0;Wn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p1);else if(typeof addEventListener=="function"){const n="onpagehide"in En?"pagehide":"unload";addEventListener(n,p1,!1)}}function p1(){for(let n in Wn.requests)Wn.requests.hasOwnProperty(n)&&Wn.requests[n].abort()}const LM=function(){const n=__({xdomain:!1});return n&&n.responseType!==null}();class UM extends BM{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=LM&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Wn(__,this.uri(),r)}}function __(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||MM))return new XMLHttpRequest}catch{}if(!r)try{return new En[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const E_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class HM extends Kh{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=E_?{}:y_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}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 s=r[i],u=i===r.length-1;Zh(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Eu(()=>{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]=v_()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const zd=En.WebSocket||En.MozWebSocket;class jM extends HM{createSocket(r,i,s){return E_?new zd(r,i,s):i?new zd(r,i):new zd(r)}doWrite(r,i){this.ws.send(i)}}class IM extends Kh{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=bM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=vM();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),c())}).catch(h=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;this._writer.write(s).then(()=>{u&&Eu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const zM={websocket:jM,webtransport:IM,polling:UM},GM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ch(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),s=n.indexOf("]");i!=-1&&s!=-1&&(n=n.substring(0,i)+n.substring(i,s).replace(/:/g,";")+n.substring(s,n.length));let u=GM.exec(n||""),c={},d=14;for(;d--;)c[kM[d]]=u[d]||"";return i!=-1&&s!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=qM(c,c.path),c.queryKey=FM(c,c.query),c}function qM(n,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function FM(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const fh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xo=[];fh&&addEventListener("offline",()=>{Xo.forEach(n=>n())},!1);class sa extends ct{constructor(r,i){if(super(),this.binaryType=EM,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 s=ch(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=ch(i.host).host);Su(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=wM(this.opts.query)),fh&&(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"})},Xo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=g_,i.transport=r,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&sa.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",sa.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 s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=xM(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Eu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:r,data:i,options:s};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),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()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(sa.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(),fh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Xo.indexOf(this._offlineEventListener);s!==-1&&Xo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}sa.protocol=g_;class VM extends sa{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),s=!1;sa.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",E=>{if(!s)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;sa.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=i.name,this.emitReserved("upgradeError",x)}}))};function c(){s||(s=!0,y(),i.close(),i=null)}const d=E=>{const x=new Error("probe error: "+E);x.transport=i.name,c(),this.emitReserved("upgradeError",x)};function h(){d("transport closed")}function m(){d("socket closed")}function g(E){i&&E.name!==i.name&&c()}const y=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let PM=class extends VM{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>zM[u]).filter(u=>!!u)),super(r,s)}};function YM(n,r="",i){let s=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),s=ch(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+r,s.href=s.protocol+"://"+c+(i&&i.port===s.port?"":":"+s.port),s}const XM=typeof ArrayBuffer=="function",ZM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,S_=Object.prototype.toString,QM=typeof Blob=="function"||typeof Blob<"u"&&S_.call(Blob)==="[object BlobConstructor]",KM=typeof File=="function"||typeof File<"u"&&S_.call(File)==="[object FileConstructor]";function $h(n){return XM&&(n instanceof ArrayBuffer||ZM(n))||QM&&n instanceof Blob||KM&&n instanceof File}function Zo(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)if(Zo(n[i]))return!0;return!1}if($h(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Zo(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&Zo(n[i]))return!0;return!1}function $M(n){const r=[],i=n.data,s=n;return s.data=dh(i,r),s.attachments=r.length,{packet:s,buffers:r}}function dh(n,r){if(!n)return n;if($h(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 s=0;s<n.length;s++)i[s]=dh(n[s],r);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=dh(n[s],r));return i}return n}function WM(n,r){return n.data=hh(n.data,r),delete n.attachments,n}function hh(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]=hh(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=hh(n[i],r));return n}const JM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],e8=5;var Ce;(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"})(Ce||(Ce={}));class t8{constructor(r){this.replacer=r}encode(r){return(r.type===Ce.EVENT||r.type===Ce.ACK)&&Zo(r)?this.encodeAsBinary({type:r.type===Ce.EVENT?Ce.BINARY_EVENT:Ce.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ce.BINARY_EVENT||r.type===Ce.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=$M(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function g1(n){return Object.prototype.toString.call(n)==="[object Object]"}class Wh extends ct{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 s=i.type===Ce.BINARY_EVENT;s||i.type===Ce.BINARY_ACK?(i.type=s?Ce.EVENT:Ce.ACK,this.reconstructor=new n8(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if($h(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 s={type:Number(r.charAt(0))};if(Ce[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ce.BINARY_EVENT||s.type===Ce.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const d=r.substring(c,i);if(d!=Number(d)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(c,i)}else s.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const d=r.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===r.length)break}s.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(Wh.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ce.CONNECT:return g1(i);case Ce.DISCONNECT:return i===void 0;case Ce.CONNECT_ERROR:return typeof i=="string"||g1(i);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&JM.indexOf(i[0])===-1);case Ce.ACK:case Ce.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class n8{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=WM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const r8=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Wh,Encoder:t8,get PacketType(){return Ce},protocol:e8},Symbol.toStringTag,{value:"Module"}));function jn(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const a8=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class T_ extends ct{constructor(r,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[jn(r,"open",this.onopen.bind(this)),jn(r,"packet",this.onpacket.bind(this)),jn(r,"error",this.onerror.bind(this)),jn(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 s,u,c;if(a8.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 d={type:Ce.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,E=i.pop();this._registerAckCallback(y,E),d.id=y}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(r,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(c),i.apply(this,h)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((s,u)=>{const c=(d,h)=>d?u(d):s(h);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),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:Ce.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(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ce.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 Ce.EVENT:case Ce.BINARY_EVENT:this.onevent(r);break;case Ce.ACK:case Ce.BINARY_ACK:this.onack(r);break;case Ce.DISCONNECT:this.ondisconnect();break;case Ce.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);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 s of i)s.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 s=!1;return function(...u){s||(s=!0,i.packet({type:Ce.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:Ce.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 s=0;s<i.length;s++)if(r===i[s])return i.splice(s,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 s=0;s<i.length;s++)if(r===i[s])return i.splice(s,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 s of i)s.apply(this,r.data)}}}function Mi(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}Mi.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};Mi.prototype.reset=function(){this.attempts=0};Mi.prototype.setMin=function(n){this.ms=n};Mi.prototype.setMax=function(n){this.max=n};Mi.prototype.setJitter=function(n){this.jitter=n};class mh extends ct{constructor(r,i){var s;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,Su(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Mi({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||r8;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 PM(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=jn(i,"open",function(){s.onopen(),r&&r()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=jn(i,"error",c);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(jn(r,"ping",this.onping.bind(this)),jn(r,"data",this.ondata.bind(this)),jn(r,"error",this.onerror.bind(this)),jn(r,"close",this.onclose.bind(this)),jn(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){Eu(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new T_(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],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 s;this.cleanup(),(s=this.engine)===null||s===void 0||s.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 s=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&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Ys={};function Qo(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=YM(n,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,d=Ys[u]&&c in Ys[u].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let m;return h?m=new mh(s,r):(Ys[u]||(Ys[u]=new mh(s,r)),m=Ys[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(Qo,{Manager:mh,Socket:T_,io:Qo,connect:Qo});const i8=[Re.ActionTypes.MESSAGE_TO_GUEST,Re.ActionTypes.EVENT_TO_GUEST,Re.ActionTypes.TYPING_ON,Re.ActionTypes.TYPING_OFF,Re.ActionTypes.RESTART_CHAT_REQUEST,..._O,...px,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],s8=({dispatch:n,getState:r})=>i=>{let s=null;return u=>{const c=i(u);if(u.type===Ih){s?.disconnect(),n(TO());const d=`/chat?${uu.stringify(u.querystrings)}`;s=Qo(`/${u.clientName}${d}`),s.on("action",n),s.on("connect",()=>n(AO())),s.on("disconnect",()=>n(xO())),s.on("reconnect",()=>n(OO())),s.on("set-translations",(h,m)=>{n(tM({language:h,messages:Q3(h,m)}))}),s.on("set-settings",h=>{n(aM(h))}),s.on("enable-conversation-rating",h=>n(_x(h))),s.on("speech-transcription",h=>n(yx(h))),s.on("restore-client-state",h=>{n(SO(h.sessionId)),n(Sx(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{n({type:ob,devices:h,initial:m})}),s.on("restart-chat",()=>{n(gu(u.clientName,u.querystrings))}),s.on("login-success",h=>{n(dO({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===mu)s?.emit("start-chat",u.payload);else if(u.type===pu)s?.emit("terminate-session",u.payload);else if(u.type===mx)s?.emit("get-started",JSON.stringify(u));else if(u.type===wh)s?.emit("audio-message",u.buffer);else if(u.type===Re.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===cb){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else i8.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},A_=Yb(),l8={...oM(A_),intl:i_},ph=Wx({middleware:n=>n().concat(s8),reducer:sM,preloadedState:l8});ph.subscribe(k3(()=>{const n=ph.getState();uM(A_,{connection:n.connection,startScreen:n.startScreen})},1e3));const o8=document.getElementById("root"),u8=GS.createRoot(o8);u8.render(v.jsx(z2,{store:ph,children:v.jsx(R3,{})}));
124
- //# sourceMappingURL=index-t__CTdhX.js.map