@botfabrik/engine-webclient 4.101.3-alpha.7 → 4.102.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-CxdFeuyf.js +131 -0
- package/dist/client/assets/index-CxdFeuyf.js.map +1 -0
- package/dist/client/index.html +1 -1
- package/dist/embed/bundle.js +4 -4
- package/package.json +6 -6
- package/dist/client/assets/index-A-Y4qaOd.js +0 -131
- package/dist/client/assets/index-A-Y4qaOd.js.map +0 -1
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var kf={exports:{}},Bl={};/**
|
|
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 Wg;function lS(){if(Wg)return Bl;Wg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(l,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:n,type:l,key:d,ref:o!==void 0?o:null,props:c}}return Bl.Fragment=a,Bl.jsx=i,Bl.jsxs=i,Bl}var Jg;function sS(){return Jg||(Jg=1,kf.exports=lS()),kf.exports}var y=sS(),qf={exports:{}},Ul={},Ff={exports:{}},Vf={};/**
|
|
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 ey;function oS(){return ey||(ey=1,(function(n){function a(L,W){var oe=L.length;L.push(W);e:for(;0<oe;){var _e=oe-1>>>1,me=L[_e];if(0<o(me,W))L[_e]=W,L[oe]=me,oe=_e;else break e}}function i(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var W=L[0],oe=L.pop();if(oe!==W){L[0]=oe;e:for(var _e=0,me=L.length,O=me>>>1;_e<O;){var F=2*(_e+1)-1,X=L[F],J=F+1,ee=L[J];if(0>o(X,oe))J<me&&0>o(ee,X)?(L[_e]=ee,L[J]=oe,_e=J):(L[_e]=X,L[F]=oe,_e=F);else if(J<me&&0>o(ee,oe))L[_e]=ee,L[J]=oe,_e=J;else break e}}return W}function o(L,W){var oe=L.sortIndex-W.sortIndex;return oe!==0?oe:L.id-W.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=[],v=1,E=null,S=3,w=!1,_=!1,x=!1,T=!1,D=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G(L){for(var W=i(g);W!==null;){if(W.callback===null)l(g);else if(W.startTime<=L)l(g),W.sortIndex=W.expirationTime,a(m,W);else break;W=i(g)}}function M(L){if(x=!1,G(L),!_)if(i(m)!==null)_=!0,P||(P=!0,be());else{var W=i(g);W!==null&&se(M,W.startTime-L)}}var P=!1,Q=-1,ae=5,Be=-1;function He(){return T?!0:!(n.unstable_now()-Be<ae)}function ge(){if(T=!1,P){var L=n.unstable_now();Be=L;var W=!0;try{e:{_=!1,x&&(x=!1,z(Q),Q=-1),w=!0;var oe=S;try{t:{for(G(L),E=i(m);E!==null&&!(E.expirationTime>L&&He());){var _e=E.callback;if(typeof _e=="function"){E.callback=null,S=E.priorityLevel;var me=_e(E.expirationTime<=L);if(L=n.unstable_now(),typeof me=="function"){E.callback=me,G(L),W=!0;break t}E===i(m)&&l(m),G(L)}else l(m);E=i(m)}if(E!==null)W=!0;else{var O=i(g);O!==null&&se(M,O.startTime-L),W=!1}}break e}finally{E=null,S=oe,w=!1}W=void 0}}finally{W?be():P=!1}}}var be;if(typeof U=="function")be=function(){U(ge)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,Se=K.port2;K.port1.onmessage=ge,be=function(){Se.postMessage(null)}}else be=function(){D(ge,0)};function se(L,W){Q=D(function(){L(n.unstable_now())},W)}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(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(L){switch(S){case 1:case 2:case 3:var W=3;break;default:W=S}var oe=S;S=W;try{return L()}finally{S=oe}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(L,W){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var oe=S;S=L;try{return W()}finally{S=oe}},n.unstable_scheduleCallback=function(L,W,oe){var _e=n.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?_e+oe:_e):oe=_e,L){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=oe+me,L={id:v++,callback:W,priorityLevel:L,startTime:oe,expirationTime:me,sortIndex:-1},oe>_e?(L.sortIndex=oe,a(g,L),i(m)===null&&L===i(g)&&(x?(z(Q),Q=-1):x=!0,se(M,oe-_e))):(L.sortIndex=me,a(m,L),_||w||(_=!0,P||(P=!0,be()))),L},n.unstable_shouldYield=He,n.unstable_wrapCallback=function(L){var W=S;return function(){var oe=S;S=W;try{return L.apply(this,arguments)}finally{S=oe}}}})(Vf)),Vf}var ty;function uS(){return ty||(ty=1,Ff.exports=oS()),Ff.exports}var Yf={exports:{}},he={};/**
|
|
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 ny;function cS(){if(ny)return he;ny=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=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"),v=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),S=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=S&&O[S]||O["@@iterator"],typeof O=="function"?O:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function D(O,F,X){this.props=O,this.context=F,this.refs=T,this.updater=X||_}D.prototype.isReactComponent={},D.prototype.setState=function(O,F){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,F,"setState")},D.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function z(){}z.prototype=D.prototype;function U(O,F,X){this.props=O,this.context=F,this.refs=T,this.updater=X||_}var G=U.prototype=new z;G.constructor=U,x(G,D.prototype),G.isPureReactComponent=!0;var M=Array.isArray;function P(){}var Q={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function Be(O,F,X){var J=X.ref;return{$$typeof:n,type:O,key:F,ref:J!==void 0?J:null,props:X}}function He(O,F){return Be(O.type,F,O.props)}function ge(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function be(O){var F={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(X){return F[X]})}var K=/\/+/g;function Se(O,F){return typeof O=="object"&&O!==null&&O.key!=null?be(""+O.key):F.toString(36)}function se(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(P,P):(O.status="pending",O.then(function(F){O.status==="pending"&&(O.status="fulfilled",O.value=F)},function(F){O.status==="pending"&&(O.status="rejected",O.reason=F)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function L(O,F,X,J,ee){var fe=typeof O;(fe==="undefined"||fe==="boolean")&&(O=null);var Ae=!1;if(O===null)Ae=!0;else switch(fe){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(O.$$typeof){case n:case a:Ae=!0;break;case v:return Ae=O._init,L(Ae(O._payload),F,X,J,ee)}}if(Ae)return ee=ee(O),Ae=J===""?"."+Se(O,0):J,M(ee)?(X="",Ae!=null&&(X=Ae.replace(K,"$&/")+"/"),L(ee,F,X,"",function($t){return $t})):ee!=null&&(ge(ee)&&(ee=He(ee,X+(ee.key==null||O&&O.key===ee.key?"":(""+ee.key).replace(K,"$&/")+"/")+Ae)),F.push(ee)),1;Ae=0;var We=J===""?".":J+":";if(M(O))for(var ke=0;ke<O.length;ke++)J=O[ke],fe=We+Se(J,ke),Ae+=L(J,F,X,fe,ee);else if(ke=w(O),typeof ke=="function")for(O=ke.call(O),ke=0;!(J=O.next()).done;)J=J.value,fe=We+Se(J,ke++),Ae+=L(J,F,X,fe,ee);else if(fe==="object"){if(typeof O.then=="function")return L(se(O),F,X,J,ee);throw F=String(O),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function W(O,F,X){if(O==null)return O;var J=[],ee=0;return L(O,J,"","",function(fe){return F.call(X,fe,ee++)}),J}function oe(O){if(O._status===-1){var F=O._result;F=F(),F.then(function(X){(O._status===0||O._status===-1)&&(O._status=1,O._result=X)},function(X){(O._status===0||O._status===-1)&&(O._status=2,O._result=X)}),O._status===-1&&(O._status=0,O._result=F)}if(O._status===1)return O._result.default;throw O._result}var _e=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=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(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},me={map:W,forEach:function(O,F,X){W(O,function(){F.apply(this,arguments)},X)},count:function(O){var F=0;return W(O,function(){F++}),F},toArray:function(O){return W(O,function(F){return F})||[]},only:function(O){if(!ge(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return he.Activity=E,he.Children=me,he.Component=D,he.Fragment=i,he.Profiler=o,he.PureComponent=U,he.StrictMode=l,he.Suspense=m,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,he.__COMPILER_RUNTIME={__proto__:null,c:function(O){return Q.H.useMemoCache(O)}},he.cache=function(O){return function(){return O.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(O,F,X){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var J=x({},O.props),ee=O.key;if(F!=null)for(fe in F.key!==void 0&&(ee=""+F.key),F)!ae.call(F,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&F.ref===void 0||(J[fe]=F[fe]);var fe=arguments.length-2;if(fe===1)J.children=X;else if(1<fe){for(var Ae=Array(fe),We=0;We<fe;We++)Ae[We]=arguments[We+2];J.children=Ae}return Be(O.type,ee,J)},he.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},he.createElement=function(O,F,X){var J,ee={},fe=null;if(F!=null)for(J in F.key!==void 0&&(fe=""+F.key),F)ae.call(F,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ee[J]=F[J]);var Ae=arguments.length-2;if(Ae===1)ee.children=X;else if(1<Ae){for(var We=Array(Ae),ke=0;ke<Ae;ke++)We[ke]=arguments[ke+2];ee.children=We}if(O&&O.defaultProps)for(J in Ae=O.defaultProps,Ae)ee[J]===void 0&&(ee[J]=Ae[J]);return Be(O,fe,ee)},he.createRef=function(){return{current:null}},he.forwardRef=function(O){return{$$typeof:h,render:O}},he.isValidElement=ge,he.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:oe}},he.memo=function(O,F){return{$$typeof:g,type:O,compare:F===void 0?null:F}},he.startTransition=function(O){var F=Q.T,X={};Q.T=X;try{var J=O(),ee=Q.S;ee!==null&&ee(X,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(P,_e)}catch(fe){_e(fe)}finally{F!==null&&X.types!==null&&(F.types=X.types),Q.T=F}},he.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},he.use=function(O){return Q.H.use(O)},he.useActionState=function(O,F,X){return Q.H.useActionState(O,F,X)},he.useCallback=function(O,F){return Q.H.useCallback(O,F)},he.useContext=function(O){return Q.H.useContext(O)},he.useDebugValue=function(){},he.useDeferredValue=function(O,F){return Q.H.useDeferredValue(O,F)},he.useEffect=function(O,F){return Q.H.useEffect(O,F)},he.useEffectEvent=function(O){return Q.H.useEffectEvent(O)},he.useId=function(){return Q.H.useId()},he.useImperativeHandle=function(O,F,X){return Q.H.useImperativeHandle(O,F,X)},he.useInsertionEffect=function(O,F){return Q.H.useInsertionEffect(O,F)},he.useLayoutEffect=function(O,F){return Q.H.useLayoutEffect(O,F)},he.useMemo=function(O,F){return Q.H.useMemo(O,F)},he.useOptimistic=function(O,F){return Q.H.useOptimistic(O,F)},he.useReducer=function(O,F,X){return Q.H.useReducer(O,F,X)},he.useRef=function(O){return Q.H.useRef(O)},he.useState=function(O){return Q.H.useState(O)},he.useSyncExternalStore=function(O,F,X){return Q.H.useSyncExternalStore(O,F,X)},he.useTransition=function(){return Q.H.useTransition()},he.version="19.2.0",he}var ay;function _u(){return ay||(ay=1,Yf.exports=cS()),Yf.exports}var Pf={exports:{}},Ut={};/**
|
|
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 ry;function fS(){if(ry)return Ut;ry=1;var n=_u();function a(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(m,g,v){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:E==null?null:""+E,children:m,containerInfo:g,implementation:v}}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 Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Ut.createPortal=function(m,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(m,g,null,v)},Ut.flushSync=function(m){var g=d.T,v=l.p;try{if(d.T=null,l.p=2,m)return m()}finally{d.T=g,l.p=v,l.d.f()}},Ut.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(m,g))},Ut.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},Ut.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var v=g.as,E=h(v,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,w=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?l.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:S,fetchPriority:w}):v==="script"&&l.d.X(m,{crossOrigin:E,integrity:S,fetchPriority:w,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Ut.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=h(g.as,g.crossOrigin);l.d.M(m,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(m)},Ut.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,E=h(v,g.crossOrigin);l.d.L(m,v,{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})}},Ut.preloadModule=function(m,g){if(typeof m=="string")if(g){var v=h(g.as,g.crossOrigin);l.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(m)},Ut.requestFormReset=function(m){l.d.r(m)},Ut.unstable_batchedUpdates=function(m,g){return m(g)},Ut.useFormState=function(m,g,v){return d.H.useFormState(m,g,v)},Ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ut.version="19.2.0",Ut}var iy;function dS(){if(iy)return Pf.exports;iy=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(a){console.error(a)}}return n(),Pf.exports=fS(),Pf.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 ly;function hS(){if(ly)return Ul;ly=1;var n=uS(),a=_u(),i=dS();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r: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(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(l(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var r=e,s=t;;){var u=r.return;if(u===null)break;var f=u.alternate;if(f===null){if(s=u.return,s!==null){r=s;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===r)return m(u),e;if(f===s)return m(u),t;f=f.sibling}throw Error(l(188))}if(r.return!==s.return)r=u,s=f;else{for(var p=!1,b=u.child;b;){if(b===r){p=!0,r=u,s=f;break}if(b===s){p=!0,s=u,r=f;break}b=b.sibling}if(!p){for(b=f.child;b;){if(b===r){p=!0,r=f,s=u;break}if(b===s){p=!0,s=f,r=u;break}b=b.sibling}if(!p)throw Error(l(189))}}if(r.alternate!==s)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),U=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),He=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function be(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var K=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case D:return"Profiler";case T:return"StrictMode";case M:return"Suspense";case P:return"SuspenseList";case Be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case U:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var se=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},_e=[],me=-1;function O(e){return{current:e}}function F(e){0>me||(e.current=_e[me],_e[me]=null,me--)}function X(e,t){me++,_e[me]=e.current,e.current=t}var J=O(null),ee=O(null),fe=O(null),Ae=O(null);function We(e,t){switch(X(fe,t),X(ee,e),X(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Eg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Eg(t),e=Sg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(J),X(J,e)}function ke(){F(J),F(ee),F(fe)}function $t(e){e.memoizedState!==null&&X(Ae,e);var t=J.current,r=Sg(t,e.type);t!==r&&(X(ee,e),X(J,r))}function Ua(e){ee.current===e&&(F(J),F(ee)),Ae.current===e&&(F(Ae),Nl._currentValue=oe)}var bt,jt;function dn(e){if(bt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);bt=t&&t[1]||"",jt=-1<r.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+bt+e+jt}var wn=!1;function hr(e,t){if(!e||wn)return"";wn=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(k){var I=k}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(k){I=k}e.call(Y.prototype)}}else{try{throw Error()}catch(k){I=k}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(k){if(k&&I&&typeof k.stack=="string")return[k.stack,I.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),p=f[0],b=f[1];if(p&&b){var A=p.split(`
|
|
44
|
-
`),j=b.split(`
|
|
45
|
-
`);for(u=s=0;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;for(;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;if(s===A.length||u===j.length)for(s=A.length-1,u=j.length-1;1<=s&&0<=u&&A[s]!==j[u];)u--;for(;1<=s&&0<=u;s--,u--)if(A[s]!==j[u]){if(s!==1||u!==1)do if(s--,u--,0>u||A[s]!==j[u]){var q=`
|
|
46
|
-
`+A[s].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=s&&0<=u);break}}}finally{wn=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?dn(r):""}function Bi(e,t){switch(e.tag){case 26:case 27:case 5:return dn(e.type);case 16:return dn("Lazy");case 13:return e.child!==t&&t!==null?dn("Suspense Fallback"):dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return hr(e.type,!1);case 11:return hr(e.type.render,!1);case 1:return hr(e.type,!0);case 31:return dn("Activity");default:return""}}function na(e){try{var t="",r=null;do t+=Bi(e,r),r=e,e=e.return;while(e);return t}catch(s){return`
|
|
47
|
-
Error generating stack: `+s.message+`
|
|
48
|
-
`+s.stack}}var ja=Object.prototype.hasOwnProperty,Ha=n.unstable_scheduleCallback,Yr=n.unstable_cancelCallback,ss=n.unstable_shouldYield,Mu=n.unstable_requestPaint,Ct=n.unstable_now,mr=n.unstable_getCurrentPriorityLevel,aa=n.unstable_ImmediatePriority,ra=n.unstable_UserBlockingPriority,pr=n.unstable_NormalPriority,os=n.unstable_LowPriority,Ui=n.unstable_IdlePriority,ji=n.log,us=n.unstable_setDisableYieldValue,kn=null,St=null;function Tt(e){if(typeof ji=="function"&&us(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(kn,e)}catch{}}var ct=Math.clz32?Math.clz32:Du,Hi=Math.log,Ii=Math.LN2;function Du(e){return e>>>=0,e===0?32:31-(Hi(e)/Ii|0)|0}var ia=256,la=262144,Pr=4194304;function Wt(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 Xr(e,t,r){var s=e.pendingLanes;if(s===0)return 0;var u=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var b=s&134217727;return b!==0?(s=b&~f,s!==0?u=Wt(s):(p&=b,p!==0?u=Wt(p):r||(r=b&~e,r!==0&&(u=Wt(r))))):(b=s&~f,b!==0?u=Wt(b):p!==0?u=Wt(p):r||(r=s&~e,r!==0&&(u=Wt(r)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:u}function gr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ft(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 sa(){var e=Pr;return Pr<<=1,(Pr&62914560)===0&&(Pr=4194304),e}function zi(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ia(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gi(e,t,r,s,u,f){var p=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var b=e.entanglements,A=e.expirationTimes,j=e.hiddenUpdates;for(r=p&~r;0<r;){var q=31-ct(r),Y=1<<q;b[q]=0,A[q]=-1;var I=j[q];if(I!==null)for(j[q]=null,q=0;q<I.length;q++){var k=I[q];k!==null&&(k.lane&=-536870913)}r&=~Y}s!==0&&ki(e,s,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(p&~t))}function ki(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-ct(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|r&261930}function qi(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-ct(r),u=1<<s;u&t|e[s]&t&&(e[s]|=t),r&=~u}}function cs(e,t){var r=t&-t;return r=(r&42)!==0?1:Ft(r),(r&(e.suspendedLanes|t))!==0?0:r}function Ft(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 Nn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Fi(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:Yg(e.type))}function Vi(e,t){var r=W.p;try{return W.p=e,t()}finally{W.p=r}}var hn=Math.random().toString(36).slice(2),dt="__reactFiber$"+hn,Je="__reactProps$"+hn,oa="__reactContainer$"+hn,Zr="__reactEvents$"+hn,fs="__reactListeners$"+hn,ds="__reactHandles$"+hn,hs="__reactResources$"+hn,re="__reactMarker$"+hn;function C(e){delete e[dt],delete e[Je],delete e[Zr],delete e[fs],delete e[ds]}function Z(e){var t=e[dt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[oa]||r[dt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=wg(e);e!==null;){if(r=e[dt])return r;e=wg(e)}return t}e=r,r=e.parentNode}return null}function te(e){if(e=e[dt]||e[oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ze(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function nt(e){var t=e[hs];return t||(t=e[hs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ee(e){e[re]=!0}var Rt=new Set,mn={};function Vt(e,t){qn(e,t),qn(e+"Capture",t)}function qn(e,t){for(mn[e]=t,e=0;e<t.length;e++)Rt.add(t[e])}var _t=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]*$"),Yi={},Pi={};function W_(e){return ja.call(Pi,e)?!0:ja.call(Yi,e)?!1:_t.test(e)?Pi[e]=!0:(Yi[e]=!0,!1)}function ms(e,t,r){if(W_(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function ps(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function ua(e,t,r,s){if(s===null)e.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+s)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function J_(e,t,r){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,f=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(p){r=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lu(e){if(!e._valueTracker){var t=hm(e)?"checked":"value";e._valueTracker=J_(e,t,""+e[t])}}function mm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=hm(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function gs(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 eE=/[\n"\\]/g;function gn(e){return e.replace(eE,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Bu(e,t,r,s,u,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=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Uu(e,p,pn(t)):r!=null?Uu(e,p,pn(r)):s!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+pn(b):e.removeAttribute("name")}function pm(e,t,r,s,u,f,p,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||r!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Lu(e);return}r=r!=null?""+pn(r):"",t=t!=null?""+pn(t):r,b||t===e.value||(e.value=t),e.defaultValue=t}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=b?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Lu(e)}function Uu(e,t,r){t==="number"&&gs(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Qr(e,t,r,s){if(e=e.options,t){t={};for(var u=0;u<r.length;u++)t["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=t.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&s&&(e[r].defaultSelected=!0)}else{for(r=""+pn(r),t=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function gm(e,t,r){if(t!=null&&(t=""+pn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+pn(r):""}function ym(e,t,r,s){if(t==null){if(s!=null){if(r!=null)throw Error(l(92));if(se(s)){if(1<s.length)throw Error(l(93));s=s[0]}r=s}r==null&&(r=""),t=r}r=pn(t),e.defaultValue=r,s=e.textContent,s===r&&s!==""&&s!==null&&(e.value=s),Lu(e)}function Kr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var tE=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 vm(e,t,r){var s=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,r):typeof r!="number"||r===0||tE.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function bm(e,t,r){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,r!=null){for(var s in r)!r.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var u in t)s=t[u],t.hasOwnProperty(u)&&r[u]!==s&&vm(e,u,s)}else for(var f in t)t.hasOwnProperty(f)&&vm(e,f,t[f])}function ju(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 nE=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"]]),aE=/^[\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 ys(e){return aE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ca(){}var Hu=null;function Iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $r=null,Wr=null;function _m(e){var t=te(e);if(t&&(e=t.stateNode)){var r=e[Je]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+gn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var u=s[Je]||null;if(!u)throw Error(l(90));Bu(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<r.length;t++)s=r[t],s.form===e.form&&mm(s)}break e;case"textarea":gm(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Qr(e,!!r.multiple,t,!1)}}}var zu=!1;function Em(e,t,r){if(zu)return e(t,r);zu=!0;try{var s=e(t);return s}finally{if(zu=!1,($r!==null||Wr!==null)&&(ro(),$r&&(t=$r,e=Wr,Wr=$r=null,_m(t),e)))for(t=0;t<e.length;t++)_m(e[t])}}function Xi(e,t){var r=e.stateNode;if(r===null)return null;var s=r[Je]||null;if(s===null)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,t,typeof r));return r}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gu=!1;if(fa)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Gu=!1}var za=null,ku=null,vs=null;function Sm(){if(vs)return vs;var e,t=ku,r=t.length,s,u="value"in za?za.value:za.textContent,f=u.length;for(e=0;e<r&&t[e]===u[e];e++);var p=r-e;for(s=1;s<=p&&t[r-s]===u[f-s];s++);return vs=u.slice(e,1<s?1-s:void 0)}function bs(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 _s(){return!0}function Tm(){return!1}function Yt(e){function t(r,s,u,f,p){this._reactName=r,this._targetInst=u,this.type=s,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(r=e[b],this[b]=r?r(f):f[b]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?_s:Tm,this.isPropagationStopped=Tm,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=_s)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=_s)},persist:function(){},isPersistent:_s}),t}var yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=Yt(yr),Qi=E({},yr,{view:0,detail:0}),rE=Yt(Qi),qu,Fu,Ki,Ss=E({},Qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yu,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!==Ki&&(Ki&&e.type==="mousemove"?(qu=e.screenX-Ki.screenX,Fu=e.screenY-Ki.screenY):Fu=qu=0,Ki=e),qu)},movementY:function(e){return"movementY"in e?e.movementY:Fu}}),Am=Yt(Ss),iE=E({},Ss,{dataTransfer:0}),lE=Yt(iE),sE=E({},Qi,{relatedTarget:0}),Vu=Yt(sE),oE=E({},yr,{animationName:0,elapsedTime:0,pseudoElement:0}),uE=Yt(oE),cE=E({},yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fE=Yt(cE),dE=E({},yr,{data:0}),Om=Yt(dE),hE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mE={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"},pE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pE[e])?!!t[e]:!1}function Yu(){return gE}var yE=E({},Qi,{key:function(e){if(e.key){var t=hE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yu,charCode:function(e){return e.type==="keypress"?bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vE=Yt(yE),bE=E({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=Yt(bE),_E=E({},Qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yu}),EE=Yt(_E),SE=E({},yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),TE=Yt(SE),AE=E({},Ss,{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}),OE=Yt(AE),xE=E({},yr,{newState:0,oldState:0}),CE=Yt(xE),RE=[9,13,27,32],Pu=fa&&"CompositionEvent"in window,$i=null;fa&&"documentMode"in document&&($i=document.documentMode);var wE=fa&&"TextEvent"in window&&!$i,Cm=fa&&(!Pu||$i&&8<$i&&11>=$i),Rm=" ",wm=!1;function Nm(e,t){switch(e){case"keyup":return RE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jr=!1;function NE(e,t){switch(e){case"compositionend":return Mm(t);case"keypress":return t.which!==32?null:(wm=!0,Rm);case"textInput":return e=t.data,e===Rm&&wm?null:e;default:return null}}function ME(e,t){if(Jr)return e==="compositionend"||!Pu&&Nm(e,t)?(e=Sm(),vs=ku=za=null,Jr=!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 Cm&&t.locale!=="ko"?null:t.data;default:return null}}var DE={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 Dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!DE[e.type]:t==="textarea"}function Lm(e,t,r,s){$r?Wr?Wr.push(s):Wr=[s]:$r=s,t=fo(t,"onChange"),0<t.length&&(r=new Es("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var Wi=null,Ji=null;function LE(e){pg(e,0)}function Ts(e){var t=ze(e);if(mm(t))return e}function Bm(e,t){if(e==="change")return t}var Um=!1;if(fa){var Xu;if(fa){var Zu="oninput"in document;if(!Zu){var jm=document.createElement("div");jm.setAttribute("oninput","return;"),Zu=typeof jm.oninput=="function"}Xu=Zu}else Xu=!1;Um=Xu&&(!document.documentMode||9<document.documentMode)}function Hm(){Wi&&(Wi.detachEvent("onpropertychange",Im),Ji=Wi=null)}function Im(e){if(e.propertyName==="value"&&Ts(Ji)){var t=[];Lm(t,Ji,e,Iu(e)),Em(LE,t)}}function BE(e,t,r){e==="focusin"?(Hm(),Wi=t,Ji=r,Wi.attachEvent("onpropertychange",Im)):e==="focusout"&&Hm()}function UE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Ji)}function jE(e,t){if(e==="click")return Ts(t)}function HE(e,t){if(e==="input"||e==="change")return Ts(t)}function IE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:IE;function el(e,t){if(Jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var u=r[s];if(!ja.call(t,u)||!Jt(e[u],t[u]))return!1}return!0}function zm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gm(e,t){var r=zm(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=t&&s>=t)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=zm(r)}}function km(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?km(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gs(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gs(e.document)}return t}function Qu(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 zE=fa&&"documentMode"in document&&11>=document.documentMode,ei=null,Ku=null,tl=null,$u=!1;function Fm(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$u||ei==null||ei!==gs(s)||(s=ei,"selectionStart"in s&&Qu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),tl&&el(tl,s)||(tl=s,s=fo(Ku,"onSelect"),0<s.length&&(t=new Es("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=ei)))}function vr(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ti={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionrun:vr("Transition","TransitionRun"),transitionstart:vr("Transition","TransitionStart"),transitioncancel:vr("Transition","TransitionCancel"),transitionend:vr("Transition","TransitionEnd")},Wu={},Vm={};fa&&(Vm=document.createElement("div").style,"AnimationEvent"in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),"TransitionEvent"in window||delete ti.transitionend.transition);function br(e){if(Wu[e])return Wu[e];if(!ti[e])return e;var t=ti[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Vm)return Wu[e]=t[r];return e}var Ym=br("animationend"),Pm=br("animationiteration"),Xm=br("animationstart"),GE=br("transitionrun"),kE=br("transitionstart"),qE=br("transitioncancel"),Zm=br("transitionend"),Qm=new Map,Ju="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(" ");Ju.push("scrollEnd");function Mn(e,t){Qm.set(e,t),Vt(t,[e])}var As=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)},yn=[],ni=0,ec=0;function Os(){for(var e=ni,t=ec=ni=0;t<e;){var r=yn[t];yn[t++]=null;var s=yn[t];yn[t++]=null;var u=yn[t];yn[t++]=null;var f=yn[t];if(yn[t++]=null,s!==null&&u!==null){var p=s.pending;p===null?u.next=u:(u.next=p.next,p.next=u),s.pending=u}f!==0&&Km(r,u,f)}}function xs(e,t,r,s){yn[ni++]=e,yn[ni++]=t,yn[ni++]=r,yn[ni++]=s,ec|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function tc(e,t,r,s){return xs(e,t,r,s),Cs(e)}function _r(e,t){return xs(e,null,null,t),Cs(e)}function Km(e,t,r){e.lanes|=r;var s=e.alternate;s!==null&&(s.lanes|=r);for(var u=!1,f=e.return;f!==null;)f.childLanes|=r,s=f.alternate,s!==null&&(s.childLanes|=r),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&t!==null&&(u=31-ct(r),e=f.hiddenUpdates,s=e[u],s===null?e[u]=[t]:s.push(t),t.lane=r|536870912),f):null}function Cs(e){if(50<Tl)throw Tl=0,ff=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function FE(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,t,r,s){return new FE(e,t,r,s)}function nc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function da(e,t){var r=e.alternate;return r===null?(r=en(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function $m(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Rs(e,t,r,s,u,f){var p=0;if(s=e,typeof e=="function")nc(e)&&(p=1);else if(typeof e=="string")p=Z2(e,r,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Be:return e=en(31,r,t,u),e.elementType=Be,e.lanes=f,e;case x:return Er(r.children,u,f,t);case T:p=8,u|=24;break;case D:return e=en(12,r,t,u|2),e.elementType=D,e.lanes=f,e;case M:return e=en(13,r,t,u),e.elementType=M,e.lanes=f,e;case P:return e=en(19,r,t,u),e.elementType=P,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:p=10;break e;case z:p=9;break e;case G:p=11;break e;case Q:p=14;break e;case ae:p=16,s=null;break e}p=29,r=Error(l(130,e===null?"null":typeof e,"")),s=null}return t=en(p,r,t,u),t.elementType=e,t.type=s,t.lanes=f,t}function Er(e,t,r,s){return e=en(7,e,s,t),e.lanes=r,e}function ac(e,t,r){return e=en(6,e,null,t),e.lanes=r,e}function Wm(e){var t=en(18,null,null,0);return t.stateNode=e,t}function rc(e,t,r){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Jm=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var r=Jm.get(e);return r!==void 0?r:(t={value:e,source:t,stack:na(t)},Jm.set(e,t),t)}return{value:e,source:t,stack:na(t)}}var ri=[],ii=0,ws=null,nl=0,bn=[],_n=0,Ga=null,Fn=1,Vn="";function ha(e,t){ri[ii++]=nl,ri[ii++]=ws,ws=e,nl=t}function e0(e,t,r){bn[_n++]=Fn,bn[_n++]=Vn,bn[_n++]=Ga,Ga=e;var s=Fn;e=Vn;var u=32-ct(s)-1;s&=~(1<<u),r+=1;var f=32-ct(t)+u;if(30<f){var p=u-u%5;f=(s&(1<<p)-1).toString(32),s>>=p,u-=p,Fn=1<<32-ct(t)+u|r<<u|s,Vn=f+e}else Fn=1<<f|r<<u|s,Vn=e}function ic(e){e.return!==null&&(ha(e,1),e0(e,1,0))}function lc(e){for(;e===ws;)ws=ri[--ii],ri[ii]=null,nl=ri[--ii],ri[ii]=null;for(;e===Ga;)Ga=bn[--_n],bn[_n]=null,Vn=bn[--_n],bn[_n]=null,Fn=bn[--_n],bn[_n]=null}function t0(e,t){bn[_n++]=Fn,bn[_n++]=Vn,bn[_n++]=Ga,Fn=t.id,Vn=t.overflow,Ga=e}var wt=null,Qe=null,Ne=!1,ka=null,En=!1,sc=Error(l(519));function qa(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw al(vn(t,e)),sc}function n0(e){var t=e.stateNode,r=e.type,s=e.memoizedProps;switch(t[dt]=e,t[Je]=s,r){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(r=0;r<Ol.length;r++)xe(Ol[r],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),pm(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),ym(t,s.value,s.defaultValue,s.children)}r=s.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||s.suppressHydrationWarning===!0||bg(t.textContent,r)?(s.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),s.onScroll!=null&&xe("scroll",t),s.onScrollEnd!=null&&xe("scrollend",t),s.onClick!=null&&(t.onclick=ca),t=!0):t=!1,t||qa(e,!0)}function a0(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:wt=wt.return}}function li(e){if(e!==wt)return!1;if(!Ne)return a0(e),Ne=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||xf(e.type,e.memoizedProps)),r=!r),r&&Qe&&qa(e),a0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Qe=Rg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Qe=Rg(e)}else t===27?(t=Qe,nr(e.type)?(e=Mf,Mf=null,Qe=e):Qe=t):Qe=wt?Tn(e.stateNode.nextSibling):null;return!0}function Sr(){Qe=wt=null,Ne=!1}function oc(){var e=ka;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),ka=null),e}function al(e){ka===null?ka=[e]:ka.push(e)}var uc=O(null),Tr=null,ma=null;function Fa(e,t,r){X(uc,t._currentValue),t._currentValue=r}function pa(e){e._currentValue=uc.current,F(uc)}function cc(e,t,r){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===r)break;e=e.return}}function fc(e,t,r,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var p=u.child;f=f.firstContext;e:for(;f!==null;){var b=f;f=u;for(var A=0;A<t.length;A++)if(b.context===t[A]){f.lanes|=r,b=f.alternate,b!==null&&(b.lanes|=r),cc(f.return,r,e),s||(p=null);break e}f=b.next}}else if(u.tag===18){if(p=u.return,p===null)throw Error(l(341));p.lanes|=r,f=p.alternate,f!==null&&(f.lanes|=r),cc(p,r,e),p=null}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===e){p=null;break}if(u=p.sibling,u!==null){u.return=p.return,p=u;break}p=p.return}u=p}}function si(e,t,r,s){e=null;for(var u=t,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var p=u.alternate;if(p===null)throw Error(l(387));if(p=p.memoizedProps,p!==null){var b=u.type;Jt(u.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}else if(u===Ae.current){if(p=u.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Nl):e=[Nl])}u=u.return}e!==null&&fc(t,e,r,s),t.flags|=262144}function Ns(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ar(e){Tr=e,ma=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return r0(Tr,e)}function Ms(e,t){return Tr===null&&Ar(e),r0(e,t)}function r0(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},ma===null){if(e===null)throw Error(l(308));ma=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ma=ma.next=t;return r}var VE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},YE=n.unstable_scheduleCallback,PE=n.unstable_NormalPriority,ht={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dc(){return{controller:new VE,data:new Map,refCount:0}}function rl(e){e.refCount--,e.refCount===0&&YE(PE,function(){e.controller.abort()})}var il=null,hc=0,oi=0,ui=null;function XE(e,t){if(il===null){var r=il=[];hc=0,oi=yf(),ui={status:"pending",value:void 0,then:function(s){r.push(s)}}}return hc++,t.then(i0,i0),t}function i0(){if(--hc===0&&il!==null){ui!==null&&(ui.status="fulfilled");var e=il;il=null,oi=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ZE(e,t){var r=[],s={status:"pending",value:null,reason:null,then:function(u){r.push(u)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var u=0;u<r.length;u++)(0,r[u])(t)},function(u){for(s.status="rejected",s.reason=u,u=0;u<r.length;u++)(0,r[u])(void 0)}),s}var l0=L.S;L.S=function(e,t){Fp=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&XE(e,t),l0!==null&&l0(e,t)};var Or=O(null);function mc(){var e=Or.current;return e!==null?e:Ze.pooledCache}function Ds(e,t){t===null?X(Or,Or.current):X(Or,t.pool)}function s0(){var e=mc();return e===null?null:{parent:ht._currentValue,pool:e}}var ci=Error(l(460)),pc=Error(l(474)),Ls=Error(l(542)),Bs={then:function(){}};function o0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function u0(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(ca,ca),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,f0(e),e;default:if(typeof t.status=="string")t.then(ca,ca);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=s}},function(s){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,f0(e),e}throw Cr=t,ci}}function xr(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Cr=r,ci):r}}var Cr=null;function c0(){if(Cr===null)throw Error(l(459));var e=Cr;return Cr=null,e}function f0(e){if(e===ci||e===Ls)throw Error(l(483))}var fi=null,ll=0;function Us(e){var t=ll;return ll+=1,fi===null&&(fi=[]),u0(fi,e,t)}function sl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function js(e,t){throw t.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function d0(e){function t(N,R){if(e){var B=N.deletions;B===null?(N.deletions=[R],N.flags|=16):B.push(R)}}function r(N,R){if(!e)return null;for(;R!==null;)t(N,R),R=R.sibling;return null}function s(N){for(var R=new Map;N!==null;)N.key!==null?R.set(N.key,N):R.set(N.index,N),N=N.sibling;return R}function u(N,R){return N=da(N,R),N.index=0,N.sibling=null,N}function f(N,R,B){return N.index=B,e?(B=N.alternate,B!==null?(B=B.index,B<R?(N.flags|=67108866,R):B):(N.flags|=67108866,R)):(N.flags|=1048576,R)}function p(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function b(N,R,B,V){return R===null||R.tag!==6?(R=ac(B,N.mode,V),R.return=N,R):(R=u(R,B),R.return=N,R)}function A(N,R,B,V){var ue=B.type;return ue===x?q(N,R,B.props.children,V,B.key):R!==null&&(R.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&xr(ue)===R.type)?(R=u(R,B.props),sl(R,B),R.return=N,R):(R=Rs(B.type,B.key,B.props,null,N.mode,V),sl(R,B),R.return=N,R)}function j(N,R,B,V){return R===null||R.tag!==4||R.stateNode.containerInfo!==B.containerInfo||R.stateNode.implementation!==B.implementation?(R=rc(B,N.mode,V),R.return=N,R):(R=u(R,B.children||[]),R.return=N,R)}function q(N,R,B,V,ue){return R===null||R.tag!==7?(R=Er(B,N.mode,V,ue),R.return=N,R):(R=u(R,B),R.return=N,R)}function Y(N,R,B){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=ac(""+R,N.mode,B),R.return=N,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case w:return B=Rs(R.type,R.key,R.props,null,N.mode,B),sl(B,R),B.return=N,B;case _:return R=rc(R,N.mode,B),R.return=N,R;case ae:return R=xr(R),Y(N,R,B)}if(se(R)||be(R))return R=Er(R,N.mode,B,null),R.return=N,R;if(typeof R.then=="function")return Y(N,Us(R),B);if(R.$$typeof===U)return Y(N,Ms(N,R),B);js(N,R)}return null}function I(N,R,B,V){var ue=R!==null?R.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ue!==null?null:b(N,R,""+B,V);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case w:return B.key===ue?A(N,R,B,V):null;case _:return B.key===ue?j(N,R,B,V):null;case ae:return B=xr(B),I(N,R,B,V)}if(se(B)||be(B))return ue!==null?null:q(N,R,B,V,null);if(typeof B.then=="function")return I(N,R,Us(B),V);if(B.$$typeof===U)return I(N,R,Ms(N,B),V);js(N,B)}return null}function k(N,R,B,V,ue){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return N=N.get(B)||null,b(R,N,""+V,ue);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case w:return N=N.get(V.key===null?B:V.key)||null,A(R,N,V,ue);case _:return N=N.get(V.key===null?B:V.key)||null,j(R,N,V,ue);case ae:return V=xr(V),k(N,R,B,V,ue)}if(se(V)||be(V))return N=N.get(B)||null,q(R,N,V,ue,null);if(typeof V.then=="function")return k(N,R,B,Us(V),ue);if(V.$$typeof===U)return k(N,R,B,Ms(R,V),ue);js(R,V)}return null}function ne(N,R,B,V){for(var ue=null,Ue=null,ie=R,ve=R=0,we=null;ie!==null&&ve<B.length;ve++){ie.index>ve?(we=ie,ie=null):we=ie.sibling;var je=I(N,ie,B[ve],V);if(je===null){ie===null&&(ie=we);break}e&&ie&&je.alternate===null&&t(N,ie),R=f(je,R,ve),Ue===null?ue=je:Ue.sibling=je,Ue=je,ie=we}if(ve===B.length)return r(N,ie),Ne&&ha(N,ve),ue;if(ie===null){for(;ve<B.length;ve++)ie=Y(N,B[ve],V),ie!==null&&(R=f(ie,R,ve),Ue===null?ue=ie:Ue.sibling=ie,Ue=ie);return Ne&&ha(N,ve),ue}for(ie=s(ie);ve<B.length;ve++)we=k(ie,N,ve,B[ve],V),we!==null&&(e&&we.alternate!==null&&ie.delete(we.key===null?ve:we.key),R=f(we,R,ve),Ue===null?ue=we:Ue.sibling=we,Ue=we);return e&&ie.forEach(function(sr){return t(N,sr)}),Ne&&ha(N,ve),ue}function ce(N,R,B,V){if(B==null)throw Error(l(151));for(var ue=null,Ue=null,ie=R,ve=R=0,we=null,je=B.next();ie!==null&&!je.done;ve++,je=B.next()){ie.index>ve?(we=ie,ie=null):we=ie.sibling;var sr=I(N,ie,je.value,V);if(sr===null){ie===null&&(ie=we);break}e&&ie&&sr.alternate===null&&t(N,ie),R=f(sr,R,ve),Ue===null?ue=sr:Ue.sibling=sr,Ue=sr,ie=we}if(je.done)return r(N,ie),Ne&&ha(N,ve),ue;if(ie===null){for(;!je.done;ve++,je=B.next())je=Y(N,je.value,V),je!==null&&(R=f(je,R,ve),Ue===null?ue=je:Ue.sibling=je,Ue=je);return Ne&&ha(N,ve),ue}for(ie=s(ie);!je.done;ve++,je=B.next())je=k(ie,N,ve,je.value,V),je!==null&&(e&&je.alternate!==null&&ie.delete(je.key===null?ve:je.key),R=f(je,R,ve),Ue===null?ue=je:Ue.sibling=je,Ue=je);return e&&ie.forEach(function(iS){return t(N,iS)}),Ne&&ha(N,ve),ue}function Xe(N,R,B,V){if(typeof B=="object"&&B!==null&&B.type===x&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case w:e:{for(var ue=B.key;R!==null;){if(R.key===ue){if(ue=B.type,ue===x){if(R.tag===7){r(N,R.sibling),V=u(R,B.props.children),V.return=N,N=V;break e}}else if(R.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&xr(ue)===R.type){r(N,R.sibling),V=u(R,B.props),sl(V,B),V.return=N,N=V;break e}r(N,R);break}else t(N,R);R=R.sibling}B.type===x?(V=Er(B.props.children,N.mode,V,B.key),V.return=N,N=V):(V=Rs(B.type,B.key,B.props,null,N.mode,V),sl(V,B),V.return=N,N=V)}return p(N);case _:e:{for(ue=B.key;R!==null;){if(R.key===ue)if(R.tag===4&&R.stateNode.containerInfo===B.containerInfo&&R.stateNode.implementation===B.implementation){r(N,R.sibling),V=u(R,B.children||[]),V.return=N,N=V;break e}else{r(N,R);break}else t(N,R);R=R.sibling}V=rc(B,N.mode,V),V.return=N,N=V}return p(N);case ae:return B=xr(B),Xe(N,R,B,V)}if(se(B))return ne(N,R,B,V);if(be(B)){if(ue=be(B),typeof ue!="function")throw Error(l(150));return B=ue.call(B),ce(N,R,B,V)}if(typeof B.then=="function")return Xe(N,R,Us(B),V);if(B.$$typeof===U)return Xe(N,R,Ms(N,B),V);js(N,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,R!==null&&R.tag===6?(r(N,R.sibling),V=u(R,B),V.return=N,N=V):(r(N,R),V=ac(B,N.mode,V),V.return=N,N=V),p(N)):r(N,R)}return function(N,R,B,V){try{ll=0;var ue=Xe(N,R,B,V);return fi=null,ue}catch(ie){if(ie===ci||ie===Ls)throw ie;var Ue=en(29,ie,null,N.mode);return Ue.lanes=V,Ue.return=N,Ue}finally{}}}var Rr=d0(!0),h0=d0(!1),Va=!1;function gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yc(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 Ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ie&2)!==0){var u=s.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,t=Cs(e),Km(e,null,r),t}return xs(e,s,t,r),Cs(e)}function ol(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,qi(e,r)}}function vc(e,t){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var u=null,f=null;if(r=r.firstBaseUpdate,r!==null){do{var p={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};f===null?u=f=p:f=f.next=p,r=r.next}while(r!==null);f===null?u=f=t:f=f.next=t}else u=f=t;r={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var bc=!1;function ul(){if(bc){var e=ui;if(e!==null)throw e}}function cl(e,t,r,s){bc=!1;var u=e.updateQueue;Va=!1;var f=u.firstBaseUpdate,p=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var A=b,j=A.next;A.next=null,p===null?f=j:p.next=j,p=A;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==p&&(b===null?q.firstBaseUpdate=j:b.next=j,q.lastBaseUpdate=A))}if(f!==null){var Y=u.baseState;p=0,q=j=A=null,b=f;do{var I=b.lane&-536870913,k=I!==b.lane;if(k?(Re&I)===I:(s&I)===I){I!==0&&I===oi&&(bc=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ne=e,ce=b;I=t;var Xe=r;switch(ce.tag){case 1:if(ne=ce.payload,typeof ne=="function"){Y=ne.call(Xe,Y,I);break e}Y=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ce.payload,I=typeof ne=="function"?ne.call(Xe,Y,I):ne,I==null)break e;Y=E({},Y,I);break e;case 2:Va=!0}}I=b.callback,I!==null&&(e.flags|=64,k&&(e.flags|=8192),k=u.callbacks,k===null?u.callbacks=[I]:k.push(I))}else k={lane:I,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(j=q=k,A=Y):q=q.next=k,p|=I;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;k=b,b=k.next,k.next=null,u.lastBaseUpdate=k,u.shared.pending=null}}while(!0);q===null&&(A=Y),u.baseState=A,u.firstBaseUpdate=j,u.lastBaseUpdate=q,f===null&&(u.shared.lanes=0),$a|=p,e.lanes=p,e.memoizedState=Y}}function m0(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function p0(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)m0(r[e],t)}var di=O(null),Hs=O(0);function g0(e,t){e=Aa,X(Hs,e),X(di,t),Aa=e|t.baseLanes}function _c(){X(Hs,Aa),X(di,di.current)}function Ec(){Aa=Hs.current,F(di),F(Hs)}var tn=O(null),Sn=null;function Xa(e){var t=e.alternate;X(ot,ot.current&1),X(tn,e),Sn===null&&(t===null||di.current!==null||t.memoizedState!==null)&&(Sn=e)}function Sc(e){X(ot,ot.current),X(tn,e),Sn===null&&(Sn=e)}function y0(e){e.tag===22?(X(ot,ot.current),X(tn,e),Sn===null&&(Sn=e)):Za()}function Za(){X(ot,ot.current),X(tn,tn.current)}function nn(e){F(tn),Sn===e&&(Sn=null),F(ot)}var ot=O(0);function Is(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||wf(r)||Nf(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var ga=0,ye=null,Ye=null,mt=null,zs=!1,hi=!1,wr=!1,Gs=0,fl=0,mi=null,QE=0;function rt(){throw Error(l(321))}function Tc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Jt(e[r],t[r]))return!1;return!0}function Ac(e,t,r,s,u,f){return ga=f,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?ep:zc,wr=!1,f=r(s,u),wr=!1,hi&&(f=b0(t,r,s,u)),v0(e),f}function v0(e){L.H=ml;var t=Ye!==null&&Ye.next!==null;if(ga=0,mt=Ye=ye=null,zs=!1,fl=0,mi=null,t)throw Error(l(300));e===null||pt||(e=e.dependencies,e!==null&&Ns(e)&&(pt=!0))}function b0(e,t,r,s){ye=e;var u=0;do{if(hi&&(mi=null),fl=0,hi=!1,25<=u)throw Error(l(301));if(u+=1,mt=Ye=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}L.H=tp,f=t(r,s)}while(hi);return f}function KE(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?dl(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(ye.flags|=1024),t}function Oc(){var e=Gs!==0;return Gs=0,e}function xc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Cc(e){if(zs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zs=!1}ga=0,mt=Ye=ye=null,hi=!1,fl=Gs=0,mi=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?ye.memoizedState=mt=e:mt=mt.next=e,mt}function ut(){if(Ye===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=mt===null?ye.memoizedState:mt.next;if(t!==null)mt=t,Ye=e;else{if(e===null)throw ye.alternate===null?Error(l(467)):Error(l(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},mt===null?ye.memoizedState=mt=e:mt=mt.next=e}return mt}function ks(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dl(e){var t=fl;return fl+=1,mi===null&&(mi=[]),e=u0(mi,e,t),t=ye,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?ep:zc),e}function qs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return dl(e);if(e.$$typeof===U)return Nt(e)}throw Error(l(438,String(e)))}function Rc(e){var t=null,r=ye.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var s=ye.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=ks(),ye.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),s=0;s<e;s++)r[s]=He;return t.index++,r}function ya(e,t){return typeof t=="function"?t(e):t}function Fs(e){var t=ut();return wc(t,Ye,e)}function wc(e,t,r){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=r;var u=e.baseQueue,f=s.pending;if(f!==null){if(u!==null){var p=u.next;u.next=f.next,f.next=p}t.baseQueue=u=f,s.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{t=u.next;var b=p=null,A=null,j=t,q=!1;do{var Y=j.lane&-536870913;if(Y!==j.lane?(Re&Y)===Y:(ga&Y)===Y){var I=j.revertLane;if(I===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),Y===oi&&(q=!0);else if((ga&I)===I){j=j.next,I===oi&&(q=!0);continue}else Y={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(b=A=Y,p=f):A=A.next=Y,ye.lanes|=I,$a|=I;Y=j.action,wr&&r(f,Y),f=j.hasEagerState?j.eagerState:r(f,Y)}else I={lane:Y,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},A===null?(b=A=I,p=f):A=A.next=I,ye.lanes|=Y,$a|=Y;j=j.next}while(j!==null&&j!==t);if(A===null?p=f:A.next=b,!Jt(f,e.memoizedState)&&(pt=!0,q&&(r=ui,r!==null)))throw r;e.memoizedState=f,e.baseState=p,e.baseQueue=A,s.lastRenderedState=f}return u===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Nc(e){var t=ut(),r=t.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var s=r.dispatch,u=r.pending,f=t.memoizedState;if(u!==null){r.pending=null;var p=u=u.next;do f=e(f,p.action),p=p.next;while(p!==u);Jt(f,t.memoizedState)||(pt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),r.lastRenderedState=f}return[f,s]}function _0(e,t,r){var s=ye,u=ut(),f=Ne;if(f){if(r===void 0)throw Error(l(407));r=r()}else r=t();var p=!Jt((Ye||u).memoizedState,r);if(p&&(u.memoizedState=r,pt=!0),u=u.queue,Lc(T0.bind(null,s,u,e),[e]),u.getSnapshot!==t||p||mt!==null&&mt.memoizedState.tag&1){if(s.flags|=2048,pi(9,{destroy:void 0},S0.bind(null,s,u,r,t),null),Ze===null)throw Error(l(349));f||(ga&127)!==0||E0(s,t,r)}return r}function E0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ye.updateQueue,t===null?(t=ks(),ye.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function S0(e,t,r,s){t.value=r,t.getSnapshot=s,A0(t)&&O0(e)}function T0(e,t,r){return r(function(){A0(t)&&O0(e)})}function A0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Jt(e,r)}catch{return!0}}function O0(e){var t=_r(e,2);t!==null&&Kt(t,e,2)}function Mc(e){var t=Ht();if(typeof e=="function"){var r=e;if(e=r(),wr){Tt(!0);try{r()}finally{Tt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t}function x0(e,t,r,s){return e.baseState=r,wc(e,Ye,typeof s=="function"?s:ya)}function $E(e,t,r,s,u){if(Ps(e))throw Error(l(485));if(e=t.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};L.T!==null?r(!0):f.isTransition=!1,s(f),r=t.pending,r===null?(f.next=t.pending=f,C0(t,f)):(f.next=r.next,t.pending=r.next=f)}}function C0(e,t){var r=t.action,s=t.payload,u=e.state;if(t.isTransition){var f=L.T,p={};L.T=p;try{var b=r(u,s),A=L.S;A!==null&&A(p,b),R0(e,t,b)}catch(j){Dc(e,t,j)}finally{f!==null&&p.types!==null&&(f.types=p.types),L.T=f}}else try{f=r(u,s),R0(e,t,f)}catch(j){Dc(e,t,j)}}function R0(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(s){w0(e,t,s)},function(s){return Dc(e,t,s)}):w0(e,t,r)}function w0(e,t,r){t.status="fulfilled",t.value=r,N0(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,C0(e,r)))}function Dc(e,t,r){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=r,N0(t),t=t.next;while(t!==s)}e.action=null}function N0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function M0(e,t){return t}function D0(e,t){if(Ne){var r=Ze.formState;if(r!==null){e:{var s=ye;if(Ne){if(Qe){t:{for(var u=Qe,f=En;u.nodeType!==8;){if(!f){u=null;break t}if(u=Tn(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){Qe=Tn(u.nextSibling),s=u.data==="F!";break e}}qa(s)}s=!1}s&&(t=r[0])}}return r=Ht(),r.memoizedState=r.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:M0,lastRenderedState:t},r.queue=s,r=$0.bind(null,ye,s),s.dispatch=r,s=Mc(!1),f=Ic.bind(null,ye,!1,s.queue),s=Ht(),u={state:t,dispatch:null,action:e,pending:null},s.queue=u,r=$E.bind(null,ye,u,f,r),u.dispatch=r,s.memoizedState=e,[t,r,!1]}function L0(e){var t=ut();return B0(t,Ye,e)}function B0(e,t,r){if(t=wc(e,t,M0)[0],e=Fs(ya)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=dl(t)}catch(p){throw p===ci?Ls:p}else s=t;t=ut();var u=t.queue,f=u.dispatch;return r!==t.memoizedState&&(ye.flags|=2048,pi(9,{destroy:void 0},WE.bind(null,u,r),null)),[s,f,e]}function WE(e,t){e.action=t}function U0(e){var t=ut(),r=Ye;if(r!==null)return B0(t,r,e);ut(),t=t.memoizedState,r=ut();var s=r.queue.dispatch;return r.memoizedState=e,[t,s,!1]}function pi(e,t,r,s){return e={tag:e,create:r,deps:s,inst:t,next:null},t=ye.updateQueue,t===null&&(t=ks(),ye.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e),e}function j0(){return ut().memoizedState}function Vs(e,t,r,s){var u=Ht();ye.flags|=e,u.memoizedState=pi(1|t,{destroy:void 0},r,s===void 0?null:s)}function Ys(e,t,r,s){var u=ut();s=s===void 0?null:s;var f=u.memoizedState.inst;Ye!==null&&s!==null&&Tc(s,Ye.memoizedState.deps)?u.memoizedState=pi(t,f,r,s):(ye.flags|=e,u.memoizedState=pi(1|t,f,r,s))}function H0(e,t){Vs(8390656,8,e,t)}function Lc(e,t){Ys(2048,8,e,t)}function JE(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=ks(),ye.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function I0(e){var t=ut().memoizedState;return JE({ref:t,nextImpl:e}),function(){if((Ie&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function z0(e,t){return Ys(4,2,e,t)}function G0(e,t){return Ys(4,4,e,t)}function k0(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function q0(e,t,r){r=r!=null?r.concat([e]):null,Ys(4,4,k0.bind(null,t,e),r)}function Bc(){}function F0(e,t){var r=ut();t=t===void 0?null:t;var s=r.memoizedState;return t!==null&&Tc(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function V0(e,t){var r=ut();t=t===void 0?null:t;var s=r.memoizedState;if(t!==null&&Tc(t,s[1]))return s[0];if(s=e(),wr){Tt(!0);try{e()}finally{Tt(!1)}}return r.memoizedState=[s,t],s}function Uc(e,t,r){return r===void 0||(ga&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=Yp(),ye.lanes|=e,$a|=e,r)}function Y0(e,t,r,s){return Jt(r,t)?r:di.current!==null?(e=Uc(e,r,s),Jt(e,t)||(pt=!0),e):(ga&42)===0||(ga&1073741824)!==0&&(Re&261930)===0?(pt=!0,e.memoizedState=r):(e=Yp(),ye.lanes|=e,$a|=e,t)}function P0(e,t,r,s,u){var f=W.p;W.p=f!==0&&8>f?f:8;var p=L.T,b={};L.T=b,Ic(e,!1,t,r);try{var A=u(),j=L.S;if(j!==null&&j(b,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=ZE(A,s);hl(e,t,q,ln(e))}else hl(e,t,s,ln(e))}catch(Y){hl(e,t,{then:function(){},status:"rejected",reason:Y},ln())}finally{W.p=f,p!==null&&b.types!==null&&(p.types=b.types),L.T=p}}function e2(){}function jc(e,t,r,s){if(e.tag!==5)throw Error(l(476));var u=X0(e).queue;P0(e,u,t,oe,r===null?e2:function(){return Z0(e),r(s)})}function X0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:oe},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Z0(e){var t=X0(e);t.next===null&&(t=e.alternate.memoizedState),hl(e,t.next.queue,{},ln())}function Hc(){return Nt(Nl)}function Q0(){return ut().memoizedState}function K0(){return ut().memoizedState}function t2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=ln();e=Ya(r);var s=Pa(t,e,r);s!==null&&(Kt(s,t,r),ol(s,t,r)),t={cache:dc()},e.payload=t;return}t=t.return}}function n2(e,t,r){var s=ln();r={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)?W0(t,r):(r=tc(e,t,r,s),r!==null&&(Kt(r,e,s),J0(r,t,s)))}function $0(e,t,r){var s=ln();hl(e,t,r,s)}function hl(e,t,r,s){var u={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))W0(t,u);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,r);if(u.hasEagerState=!0,u.eagerState=b,Jt(b,p))return xs(e,t,u,0),Ze===null&&Os(),!1}catch{}finally{}if(r=tc(e,t,u,s),r!==null)return Kt(r,e,s),J0(r,t,s),!0}return!1}function Ic(e,t,r,s){if(s={lane:2,revertLane:yf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(l(479))}else t=tc(e,r,s,2),t!==null&&Kt(t,e,2)}function Ps(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function W0(e,t){hi=zs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function J0(e,t,r){if((r&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,qi(e,r)}}var ml={readContext:Nt,use:qs,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};ml.useEffectEvent=rt;var ep={readContext:Nt,use:qs,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:H0,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Vs(4194308,4,k0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var r=Ht();t=t===void 0?null:t;var s=e();if(wr){Tt(!0);try{e()}finally{Tt(!1)}}return r.memoizedState=[s,t],s},useReducer:function(e,t,r){var s=Ht();if(r!==void 0){var u=r(t);if(wr){Tt(!0);try{r(t)}finally{Tt(!1)}}}else u=t;return s.memoizedState=s.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},s.queue=e,e=e.dispatch=n2.bind(null,ye,e),[s.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Mc(e);var t=e.queue,r=$0.bind(null,ye,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Bc,useDeferredValue:function(e,t){var r=Ht();return Uc(r,e,t)},useTransition:function(){var e=Mc(!1);return e=P0.bind(null,ye,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var s=ye,u=Ht();if(Ne){if(r===void 0)throw Error(l(407));r=r()}else{if(r=t(),Ze===null)throw Error(l(349));(Re&127)!==0||E0(s,t,r)}u.memoizedState=r;var f={value:r,getSnapshot:t};return u.queue=f,H0(T0.bind(null,s,f,e),[e]),s.flags|=2048,pi(9,{destroy:void 0},S0.bind(null,s,f,r,t),null),r},useId:function(){var e=Ht(),t=Ze.identifierPrefix;if(Ne){var r=Vn,s=Fn;r=(s&~(1<<32-ct(s)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Gs++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=QE++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hc,useFormState:D0,useActionState:D0,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Ic.bind(null,ye,!0,r),r.dispatch=t,[e,t]},useMemoCache:Rc,useCacheRefresh:function(){return Ht().memoizedState=t2.bind(null,ye)},useEffectEvent:function(e){var t=Ht(),r={impl:e};return t.memoizedState=r,function(){if((Ie&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},zc={readContext:Nt,use:qs,useCallback:F0,useContext:Nt,useEffect:Lc,useImperativeHandle:q0,useInsertionEffect:z0,useLayoutEffect:G0,useMemo:V0,useReducer:Fs,useRef:j0,useState:function(){return Fs(ya)},useDebugValue:Bc,useDeferredValue:function(e,t){var r=ut();return Y0(r,Ye.memoizedState,e,t)},useTransition:function(){var e=Fs(ya)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:dl(e),t]},useSyncExternalStore:_0,useId:Q0,useHostTransitionStatus:Hc,useFormState:L0,useActionState:L0,useOptimistic:function(e,t){var r=ut();return x0(r,Ye,e,t)},useMemoCache:Rc,useCacheRefresh:K0};zc.useEffectEvent=I0;var tp={readContext:Nt,use:qs,useCallback:F0,useContext:Nt,useEffect:Lc,useImperativeHandle:q0,useInsertionEffect:z0,useLayoutEffect:G0,useMemo:V0,useReducer:Nc,useRef:j0,useState:function(){return Nc(ya)},useDebugValue:Bc,useDeferredValue:function(e,t){var r=ut();return Ye===null?Uc(r,e,t):Y0(r,Ye.memoizedState,e,t)},useTransition:function(){var e=Nc(ya)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:dl(e),t]},useSyncExternalStore:_0,useId:Q0,useHostTransitionStatus:Hc,useFormState:U0,useActionState:U0,useOptimistic:function(e,t){var r=ut();return Ye!==null?x0(r,Ye,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:K0};tp.useEffectEvent=I0;function Gc(e,t,r,s){t=e.memoizedState,r=r(s,t),r=r==null?t:E({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var kc={enqueueSetState:function(e,t,r){e=e._reactInternals;var s=ln(),u=Ya(s);u.payload=t,r!=null&&(u.callback=r),t=Pa(e,u,s),t!==null&&(Kt(t,e,s),ol(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=ln(),u=Ya(s);u.tag=1,u.payload=t,r!=null&&(u.callback=r),t=Pa(e,u,s),t!==null&&(Kt(t,e,s),ol(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ln(),s=Ya(r);s.tag=2,t!=null&&(s.callback=t),t=Pa(e,s,r),t!==null&&(Kt(t,e,r),ol(t,e,r))}};function np(e,t,r,s,u,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,p):t.prototype&&t.prototype.isPureReactComponent?!el(r,s)||!el(u,f):!0}function ap(e,t,r,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==e&&kc.enqueueReplaceState(t,t.state,null)}function Nr(e,t){var r=t;if("ref"in t){r={};for(var s in t)s!=="ref"&&(r[s]=t[s])}if(e=e.defaultProps){r===t&&(r=E({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}function rp(e){As(e)}function ip(e){console.error(e)}function lp(e){As(e)}function Xs(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function sp(e,t,r){try{var s=e.onCaughtError;s(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function qc(e,t,r){return r=Ya(r),r.tag=3,r.payload={element:null},r.callback=function(){Xs(e,t)},r}function op(e){return e=Ya(e),e.tag=3,e}function up(e,t,r,s){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var f=s.value;e.payload=function(){return u(f)},e.callback=function(){sp(t,r,s)}}var p=r.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){sp(t,r,s),typeof u!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function a2(e,t,r,s,u){if(r.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=r.alternate,t!==null&&si(t,r,u,!0),r=tn.current,r!==null){switch(r.tag){case 31:case 13:return Sn===null?io():r.alternate===null&&it===0&&(it=3),r.flags&=-257,r.flags|=65536,r.lanes=u,s===Bs?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([s]):t.add(s),mf(e,s,u)),!1;case 22:return r.flags|=65536,s===Bs?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([s]):r.add(s)),mf(e,s,u)),!1}throw Error(l(435,r.tag))}return mf(e,s,u),io(),!1}if(Ne)return t=tn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,s!==sc&&(e=Error(l(422),{cause:s}),al(vn(e,r)))):(s!==sc&&(t=Error(l(423),{cause:s}),al(vn(t,r))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,s=vn(s,r),u=qc(e.stateNode,s,u),vc(e,u),it!==4&&(it=2)),!1;var f=Error(l(520),{cause:s});if(f=vn(f,r),Sl===null?Sl=[f]:Sl.push(f),it!==4&&(it=2),t===null)return!0;s=vn(s,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=qc(r.stateNode,s,e),vc(r,e),!1;case 1:if(t=r.type,f=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Wa===null||!Wa.has(f))))return r.flags|=65536,u&=-u,r.lanes|=u,u=op(u),up(u,e,r,s),vc(r,u),!1}r=r.return}while(r!==null);return!1}var Fc=Error(l(461)),pt=!1;function Mt(e,t,r,s){t.child=e===null?h0(t,null,r,s):Rr(t,e.child,r,s)}function cp(e,t,r,s,u){r=r.render;var f=t.ref;if("ref"in s){var p={};for(var b in s)b!=="ref"&&(p[b]=s[b])}else p=s;return Ar(t),s=Ac(e,t,r,p,f,u),b=Oc(),e!==null&&!pt?(xc(e,t,u),va(e,t,u)):(Ne&&b&&ic(t),t.flags|=1,Mt(e,t,s,u),t.child)}function fp(e,t,r,s,u){if(e===null){var f=r.type;return typeof f=="function"&&!nc(f)&&f.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=f,dp(e,t,f,s,u)):(e=Rs(r.type,null,s,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!$c(e,u)){var p=f.memoizedProps;if(r=r.compare,r=r!==null?r:el,r(p,s)&&e.ref===t.ref)return va(e,t,u)}return t.flags|=1,e=da(f,s),e.ref=t.ref,e.return=t,t.child=e}function dp(e,t,r,s,u){if(e!==null){var f=e.memoizedProps;if(el(f,s)&&e.ref===t.ref)if(pt=!1,t.pendingProps=s=f,$c(e,u))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,va(e,t,u)}return Vc(e,t,r,s,u)}function hp(e,t,r,s){var u=s.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|r:r,e!==null){for(s=t.child=e.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~f}else s=0,t.child=null;return mp(e,t,f,r,s)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ds(t,f!==null?f.cachePool:null),f!==null?g0(t,f):_c(),y0(t);else return s=t.lanes=536870912,mp(e,t,f!==null?f.baseLanes|r:r,r,s)}else f!==null?(Ds(t,f.cachePool),g0(t,f),Za(),t.memoizedState=null):(e!==null&&Ds(t,null),_c(),Za());return Mt(e,t,u,r),t.child}function pl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function mp(e,t,r,s,u){var f=mc();return f=f===null?null:{parent:ht._currentValue,pool:f},t.memoizedState={baseLanes:r,cachePool:f},e!==null&&Ds(t,null),_c(),y0(t),e!==null&&si(e,t,s,!0),t.childLanes=u,null}function Zs(e,t){return t=Ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pp(e,t,r){return Rr(t,e.child,null,r),e=Zs(t,t.pendingProps),e.flags|=2,nn(t),t.memoizedState=null,e}function r2(e,t,r){var s=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(s.mode==="hidden")return e=Zs(t,s),t.lanes=536870912,pl(null,e);if(Sc(t),(e=Qe)?(e=Cg(e,En),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ga!==null?{id:Fn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},r=Wm(e),r.return=t,t.child=r,wt=t,Qe=null)):e=null,e===null)throw qa(t);return t.lanes=536870912,null}return Zs(t,s)}var f=e.memoizedState;if(f!==null){var p=f.dehydrated;if(Sc(t),u)if(t.flags&256)t.flags&=-257,t=pp(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(pt||si(e,t,r,!1),u=(r&e.childLanes)!==0,pt||u){if(s=Ze,s!==null&&(p=cs(s,r),p!==0&&p!==f.retryLane))throw f.retryLane=p,_r(e,p),Kt(s,e,p),Fc;io(),t=pp(e,t,r)}else e=f.treeContext,Qe=Tn(p.nextSibling),wt=t,Ne=!0,ka=null,En=!1,e!==null&&t0(t,e),t=Zs(t,s),t.flags|=4096;return t}return e=da(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qs(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Vc(e,t,r,s,u){return Ar(t),r=Ac(e,t,r,s,void 0,u),s=Oc(),e!==null&&!pt?(xc(e,t,u),va(e,t,u)):(Ne&&s&&ic(t),t.flags|=1,Mt(e,t,r,u),t.child)}function gp(e,t,r,s,u,f){return Ar(t),t.updateQueue=null,r=b0(t,s,r,u),v0(e),s=Oc(),e!==null&&!pt?(xc(e,t,f),va(e,t,f)):(Ne&&s&&ic(t),t.flags|=1,Mt(e,t,r,f),t.child)}function yp(e,t,r,s,u){if(Ar(t),t.stateNode===null){var f=ai,p=r.contextType;typeof p=="object"&&p!==null&&(f=Nt(p)),f=new r(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=kc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},gc(t),p=r.contextType,f.context=typeof p=="object"&&p!==null?Nt(p):ai,f.state=t.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(Gc(t,r,p,s),f.state=t.memoizedState),typeof r.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&&kc.enqueueReplaceState(f,f.state,null),cl(t,s,f,u),ul(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var b=t.memoizedProps,A=Nr(r,b);f.props=A;var j=f.context,q=r.contextType;p=ai,typeof q=="object"&&q!==null&&(p=Nt(q));var Y=r.getDerivedStateFromProps;q=typeof Y=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||j!==p)&&ap(t,f,s,p),Va=!1;var I=t.memoizedState;f.state=I,cl(t,s,f,u),ul(),j=t.memoizedState,b||I!==j||Va?(typeof Y=="function"&&(Gc(t,r,Y,s),j=t.memoizedState),(A=Va||np(t,r,A,s,I,j,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=s,t.memoizedState=j),f.props=s,f.state=j,f.context=p,s=A):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,yc(e,t),p=t.memoizedProps,q=Nr(r,p),f.props=q,Y=t.pendingProps,I=f.context,j=r.contextType,A=ai,typeof j=="object"&&j!==null&&(A=Nt(j)),b=r.getDerivedStateFromProps,(j=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==Y||I!==A)&&ap(t,f,s,A),Va=!1,I=t.memoizedState,f.state=I,cl(t,s,f,u),ul();var k=t.memoizedState;p!==Y||I!==k||Va||e!==null&&e.dependencies!==null&&Ns(e.dependencies)?(typeof b=="function"&&(Gc(t,r,b,s),k=t.memoizedState),(q=Va||np(t,r,q,s,I,k,A)||e!==null&&e.dependencies!==null&&Ns(e.dependencies))?(j||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,k,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,k,A)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=k),f.props=s,f.state=k,f.context=A,s=q):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),s=!1)}return f=s,Qs(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,r=s&&typeof r.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=Rr(t,e.child,null,u),t.child=Rr(t,null,r,u)):Mt(e,t,r,u),t.memoizedState=f.state,e=t.child):e=va(e,t,u),e}function vp(e,t,r,s){return Sr(),t.flags|=256,Mt(e,t,r,s),t.child}var Yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pc(e){return{baseLanes:e,cachePool:s0()}}function Xc(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=rn),e}function bp(e,t,r){var s=t.pendingProps,u=!1,f=(t.flags&128)!==0,p;if((p=f)||(p=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),p&&(u=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(u?Xa(t):Za(),(e=Qe)?(e=Cg(e,En),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ga!==null?{id:Fn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},r=Wm(e),r.return=t,t.child=r,wt=t,Qe=null)):e=null,e===null)throw qa(t);return Nf(e)?t.lanes=32:t.lanes=536870912,null}var b=s.children;return s=s.fallback,u?(Za(),u=t.mode,b=Ks({mode:"hidden",children:b},u),s=Er(s,u,r,null),b.return=t,s.return=t,b.sibling=s,t.child=b,s=t.child,s.memoizedState=Pc(r),s.childLanes=Xc(e,p,r),t.memoizedState=Yc,pl(null,s)):(Xa(t),Zc(t,b))}var A=e.memoizedState;if(A!==null&&(b=A.dehydrated,b!==null)){if(f)t.flags&256?(Xa(t),t.flags&=-257,t=Qc(e,t,r)):t.memoizedState!==null?(Za(),t.child=e.child,t.flags|=128,t=null):(Za(),b=s.fallback,u=t.mode,s=Ks({mode:"visible",children:s.children},u),b=Er(b,u,r,null),b.flags|=2,s.return=t,b.return=t,s.sibling=b,t.child=s,Rr(t,e.child,null,r),s=t.child,s.memoizedState=Pc(r),s.childLanes=Xc(e,p,r),t.memoizedState=Yc,t=pl(null,s));else if(Xa(t),Nf(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var j=p.dgst;p=j,s=Error(l(419)),s.stack="",s.digest=p,al({value:s,source:null,stack:null}),t=Qc(e,t,r)}else if(pt||si(e,t,r,!1),p=(r&e.childLanes)!==0,pt||p){if(p=Ze,p!==null&&(s=cs(p,r),s!==0&&s!==A.retryLane))throw A.retryLane=s,_r(e,s),Kt(p,e,s),Fc;wf(b)||io(),t=Qc(e,t,r)}else wf(b)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Qe=Tn(b.nextSibling),wt=t,Ne=!0,ka=null,En=!1,e!==null&&t0(t,e),t=Zc(t,s.children),t.flags|=4096);return t}return u?(Za(),b=s.fallback,u=t.mode,A=e.child,j=A.sibling,s=da(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,j!==null?b=da(j,b):(b=Er(b,u,r,null),b.flags|=2),b.return=t,s.return=t,s.sibling=b,t.child=s,pl(null,s),s=t.child,b=e.child.memoizedState,b===null?b=Pc(r):(u=b.cachePool,u!==null?(A=ht._currentValue,u=u.parent!==A?{parent:A,pool:A}:u):u=s0(),b={baseLanes:b.baseLanes|r,cachePool:u}),s.memoizedState=b,s.childLanes=Xc(e,p,r),t.memoizedState=Yc,pl(e.child,s)):(Xa(t),r=e.child,e=r.sibling,r=da(r,{mode:"visible",children:s.children}),r.return=t,r.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=r,t.memoizedState=null,r)}function Zc(e,t){return t=Ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ks(e,t){return e=en(22,e,null,t),e.lanes=0,e}function Qc(e,t,r){return Rr(t,e.child,null,r),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _p(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),cc(e.return,t,r)}function Kc(e,t,r,s,u,f){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:u,treeForkCount:f}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=s,p.tail=r,p.tailMode=u,p.treeForkCount=f)}function Ep(e,t,r){var s=t.pendingProps,u=s.revealOrder,f=s.tail;s=s.children;var p=ot.current,b=(p&2)!==0;if(b?(p=p&1|2,t.flags|=128):p&=1,X(ot,p),Mt(e,t,s,r),s=Ne?nl:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_p(e,r,t);else if(e.tag===19)_p(e,r,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}switch(u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&Is(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),Kc(t,!1,u,r,f,s);break;case"backwards":case"unstable_legacy-backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Is(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}Kc(t,!0,r,null,f,s);break;case"together":Kc(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function va(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),$a|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(si(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,r=da(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=da(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function $c(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ns(e)))}function i2(e,t,r){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),Fa(t,ht,e.memoizedState.cache),Sr();break;case 27:case 5:$t(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:Fa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Sc(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Xa(t),t.flags|=128,null):(r&t.child.childLanes)!==0?bp(e,t,r):(Xa(t),e=va(e,t,r),e!==null?e.sibling:null);Xa(t);break;case 19:var u=(e.flags&128)!==0;if(s=(r&t.childLanes)!==0,s||(si(e,t,r,!1),s=(r&t.childLanes)!==0),u){if(s)return Ep(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),X(ot,ot.current),s)break;return null;case 22:return t.lanes=0,hp(e,t,r,t.pendingProps);case 24:Fa(t,ht,e.memoizedState.cache)}return va(e,t,r)}function Sp(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!$c(e,r)&&(t.flags&128)===0)return pt=!1,i2(e,t,r);pt=(e.flags&131072)!==0}else pt=!1,Ne&&(t.flags&1048576)!==0&&e0(t,nl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=xr(t.elementType),t.type=e,typeof e=="function")nc(e)?(s=Nr(e,s),t.tag=1,t=yp(null,t,e,s,r)):(t.tag=0,t=Vc(null,t,e,s,r));else{if(e!=null){var u=e.$$typeof;if(u===G){t.tag=11,t=cp(null,t,e,s,r);break e}else if(u===Q){t.tag=14,t=fp(null,t,e,s,r);break e}}throw t=Se(e)||e,Error(l(306,t,""))}}return t;case 0:return Vc(e,t,t.type,t.pendingProps,r);case 1:return s=t.type,u=Nr(s,t.pendingProps),yp(e,t,s,u,r);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var f=t.memoizedState;u=f.element,yc(e,t),cl(t,s,null,r);var p=t.memoizedState;if(s=p.cache,Fa(t,ht,s),s!==f.cache&&fc(t,[ht],r,!0),ul(),s=p.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=vp(e,t,s,r);break e}else if(s!==u){u=vn(Error(l(424)),t),al(u),t=vp(e,t,s,r);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(Qe=Tn(e.firstChild),wt=t,Ne=!0,ka=null,En=!0,r=h0(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Sr(),s===u){t=va(e,t,r);break e}Mt(e,t,s,r)}t=t.child}return t;case 26:return Qs(e,t),e===null?(r=Lg(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ne||(r=t.type,e=t.pendingProps,s=ho(fe.current).createElement(r),s[dt]=t,s[Je]=e,Dt(s,r,e),Ee(s),t.stateNode=s):t.memoizedState=Lg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $t(t),e===null&&Ne&&(s=t.stateNode=Ng(t.type,t.pendingProps,fe.current),wt=t,En=!0,u=Qe,nr(t.type)?(Mf=u,Qe=Tn(s.firstChild)):Qe=u),Mt(e,t,t.pendingProps.children,r),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((u=s=Qe)&&(s=U2(s,t.type,t.pendingProps,En),s!==null?(t.stateNode=s,wt=t,Qe=Tn(s.firstChild),En=!1,u=!0):u=!1),u||qa(t)),$t(t),u=t.type,f=t.pendingProps,p=e!==null?e.memoizedProps:null,s=f.children,xf(u,f)?s=null:p!==null&&xf(u,p)&&(t.flags|=32),t.memoizedState!==null&&(u=Ac(e,t,KE,null,null,r),Nl._currentValue=u),Qs(e,t),Mt(e,t,s,r),t.child;case 6:return e===null&&Ne&&((e=r=Qe)&&(r=j2(r,t.pendingProps,En),r!==null?(t.stateNode=r,wt=t,Qe=null,e=!0):e=!1),e||qa(t)),null;case 13:return bp(e,t,r);case 4:return We(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Rr(t,null,s,r):Mt(e,t,s,r),t.child;case 11:return cp(e,t,t.type,t.pendingProps,r);case 7:return Mt(e,t,t.pendingProps,r),t.child;case 8:return Mt(e,t,t.pendingProps.children,r),t.child;case 12:return Mt(e,t,t.pendingProps.children,r),t.child;case 10:return s=t.pendingProps,Fa(t,t.type,s.value),Mt(e,t,s.children,r),t.child;case 9:return u=t.type._context,s=t.pendingProps.children,Ar(t),u=Nt(u),s=s(u),t.flags|=1,Mt(e,t,s,r),t.child;case 14:return fp(e,t,t.type,t.pendingProps,r);case 15:return dp(e,t,t.type,t.pendingProps,r);case 19:return Ep(e,t,r);case 31:return r2(e,t,r);case 22:return hp(e,t,r,t.pendingProps);case 24:return Ar(t),s=Nt(ht),e===null?(u=mc(),u===null&&(u=Ze,f=dc(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=r),u=f),t.memoizedState={parent:s,cache:u},gc(t),Fa(t,ht,u)):((e.lanes&r)!==0&&(yc(e,t),cl(t,null,null,r),ul()),u=e.memoizedState,f=t.memoizedState,u.parent!==s?(u={parent:s,cache:s},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Fa(t,ht,s)):(s=f.cache,Fa(t,ht,s),s!==u.cache&&fc(t,[ht],r,!0))),Mt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function ba(e){e.flags|=4}function Wc(e,t,r,s,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Qp())e.flags|=8192;else throw Cr=Bs,pc}else e.flags&=-16777217}function Tp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ig(t))if(Qp())e.flags|=8192;else throw Cr=Bs,pc}function $s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sa():536870912,e.lanes|=t,bi|=t)}function gl(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(t)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=r,t}function l2(e,t,r){var s=t.pendingProps;switch(lc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return r=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),pa(ht),ke(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(li(t)?ba(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,oc())),Ke(t),null;case 26:var u=t.type,f=t.memoizedState;return e===null?(ba(t),f!==null?(Ke(t),Tp(t,f)):(Ke(t),Wc(t,u,null,s,r))):f?f!==e.memoizedState?(ba(t),Ke(t),Tp(t,f)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&ba(t),Ke(t),Wc(t,u,e,s,r)),null;case 27:if(Ua(t),r=fe.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ba(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Ke(t),null}e=J.current,li(t)?n0(t):(e=Ng(u,s,r),t.stateNode=e,ba(t))}return Ke(t),null;case 5:if(Ua(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ba(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Ke(t),null}if(f=J.current,li(t))n0(t);else{var p=ho(fe.current);switch(f){case 1:f=p.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:f=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":f=p.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":f=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":f=p.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof s.is=="string"?p.createElement("select",{is:s.is}):p.createElement("select"),s.multiple?f.multiple=!0:s.size&&(f.size=s.size);break;default:f=typeof s.is=="string"?p.createElement(u,{is:s.is}):p.createElement(u)}}f[dt]=t,f[Je]=s;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)f.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=f;e:switch(Dt(f,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ba(t)}}return Ke(t),Wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&ba(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=fe.current,li(t)){if(e=t.stateNode,r=t.memoizedProps,s=null,u=wt,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}e[dt]=t,e=!!(e.nodeValue===r||s!==null&&s.suppressHydrationWarning===!0||bg(e.nodeValue,r)),e||qa(t,!0)}else e=ho(e).createTextNode(s),e[dt]=t,t.stateNode=e}return Ke(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(s=li(t),r!==null){if(e===null){if(!s)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[dt]=t}else Sr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else r=oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(nn(t),t):(nn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Ke(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=li(t),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(l(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(l(317));u[dt]=t}else Sr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),u=!1}else u=oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(nn(t),t):(nn(t),null)}return nn(t),(t.flags&128)!==0?(t.lanes=r,t):(r=s!==null,e=e!==null&&e.memoizedState!==null,r&&(s=t.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),f=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==u&&(s.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),$s(t,t.updateQueue),Ke(t),null);case 4:return ke(),e===null&&Ef(t.stateNode.containerInfo),Ke(t),null;case 10:return pa(t.type),Ke(t),null;case 19:if(F(ot),s=t.memoizedState,s===null)return Ke(t),null;if(u=(t.flags&128)!==0,f=s.rendering,f===null)if(u)gl(s,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Is(e),f!==null){for(t.flags|=128,gl(s,!1),e=f.updateQueue,t.updateQueue=e,$s(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)$m(r,e),r=r.sibling;return X(ot,ot.current&1|2),Ne&&ha(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Ct()>no&&(t.flags|=128,u=!0,gl(s,!1),t.lanes=4194304)}else{if(!u)if(e=Is(f),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,$s(t,e),gl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!f.alternate&&!Ne)return Ke(t),null}else 2*Ct()-s.renderingStartTime>no&&r!==536870912&&(t.flags|=128,u=!0,gl(s,!1),t.lanes=4194304);s.isBackwards?(f.sibling=t.child,t.child=f):(e=s.last,e!==null?e.sibling=f:t.child=f,s.last=f)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Ct(),e.sibling=null,r=ot.current,X(ot,u?r&1|2:r&1),Ne&&ha(t,s.treeForkCount),e):(Ke(t),null);case 22:case 23:return nn(t),Ec(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(r&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),r=t.updateQueue,r!==null&&$s(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==r&&(t.flags|=2048),e!==null&&F(Or),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),pa(ht),Ke(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function s2(e,t){switch(lc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(ht),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ua(t),null;case 31:if(t.memoizedState!==null){if(nn(t),t.alternate===null)throw Error(l(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ot),null;case 4:return ke(),null;case 10:return pa(t.type),null;case 22:case 23:return nn(t),Ec(),e!==null&&F(Or),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(ht),null;case 25:return null;default:return null}}function Ap(e,t){switch(lc(t),t.tag){case 3:pa(ht),ke();break;case 26:case 27:case 5:Ua(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&nn(t);break;case 13:nn(t);break;case 19:F(ot);break;case 10:pa(t.type);break;case 22:case 23:nn(t),Ec(),e!==null&&F(Or);break;case 24:pa(ht)}}function yl(e,t){try{var r=t.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var u=s.next;r=u;do{if((r.tag&e)===e){s=void 0;var f=r.create,p=r.inst;s=f(),p.destroy=s}r=r.next}while(r!==u)}}catch(b){Fe(t,t.return,b)}}function Qa(e,t,r){try{var s=t.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var f=u.next;s=f;do{if((s.tag&e)===e){var p=s.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,u=t;var A=r,j=b;try{j()}catch(q){Fe(u,A,q)}}}s=s.next}while(s!==f)}}catch(q){Fe(t,t.return,q)}}function Op(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{p0(t,r)}catch(s){Fe(e,e.return,s)}}}function xp(e,t,r){r.props=Nr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(s){Fe(e,t,s)}}function vl(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof r=="function"?e.refCleanup=r(s):r.current=s}}catch(u){Fe(e,t,u)}}function Yn(e,t){var r=e.ref,s=e.refCleanup;if(r!==null)if(typeof s=="function")try{s()}catch(u){Fe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(u){Fe(e,t,u)}else r.current=null}function Cp(e){var t=e.type,r=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&s.focus();break e;case"img":r.src?s.src=r.src:r.srcSet&&(s.srcset=r.srcSet)}}catch(u){Fe(e,e.return,u)}}function Jc(e,t,r){try{var s=e.stateNode;w2(s,e.type,r,t),s[Je]=t}catch(u){Fe(e,e.return,u)}}function Rp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nr(e.type)||e.tag===4}function ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rp(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&&nr(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 tf(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ca));else if(s!==4&&(s===27&&nr(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(tf(e,t,r),e=e.sibling;e!==null;)tf(e,t,r),e=e.sibling}function Ws(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(s===27&&nr(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Ws(e,t,r),e=e.sibling;e!==null;)Ws(e,t,r),e=e.sibling}function wp(e){var t=e.stateNode,r=e.memoizedProps;try{for(var s=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Dt(t,s,r),t[dt]=e,t[Je]=r}catch(f){Fe(e,e.return,f)}}var _a=!1,gt=!1,nf=!1,Np=typeof WeakSet=="function"?WeakSet:Set,At=null;function o2(e,t){if(e=e.containerInfo,Af=_o,e=qm(e),Qu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var u=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{r.nodeType,f.nodeType}catch{r=null;break e}var p=0,b=-1,A=-1,j=0,q=0,Y=e,I=null;t:for(;;){for(var k;Y!==r||u!==0&&Y.nodeType!==3||(b=p+u),Y!==f||s!==0&&Y.nodeType!==3||(A=p+s),Y.nodeType===3&&(p+=Y.nodeValue.length),(k=Y.firstChild)!==null;)I=Y,Y=k;for(;;){if(Y===e)break t;if(I===r&&++j===u&&(b=p),I===f&&++q===s&&(A=p),(k=Y.nextSibling)!==null)break;Y=I,I=Y.parentNode}Y=k}r=b===-1||A===-1?null:{start:b,end:A}}else r=null}r=r||{start:0,end:0}}else r=null;for(Of={focusedElem:e,selectionRange:r},_o=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)u=e[r],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,r=t,u=f.memoizedProps,f=f.memoizedState,s=r.stateNode;try{var ne=Nr(r.type,u);e=s.getSnapshotBeforeUpdate(ne,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(ce){Fe(r,r.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Rf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}}function Mp(e,t,r){var s=r.flags;switch(r.tag){case 0:case 11:case 15:Sa(e,r),s&4&&yl(5,r);break;case 1:if(Sa(e,r),s&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(p){Fe(r,r.return,p)}else{var u=Nr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Fe(r,r.return,p)}}s&64&&Op(r),s&512&&vl(r,r.return);break;case 3:if(Sa(e,r),s&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{p0(e,t)}catch(p){Fe(r,r.return,p)}}break;case 27:t===null&&s&4&&wp(r);case 26:case 5:Sa(e,r),t===null&&s&4&&Cp(r),s&512&&vl(r,r.return);break;case 12:Sa(e,r);break;case 31:Sa(e,r),s&4&&Bp(e,r);break;case 13:Sa(e,r),s&4&&Up(e,r),s&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=y2.bind(null,r),H2(e,r))));break;case 22:if(s=r.memoizedState!==null||_a,!s){t=t!==null&&t.memoizedState!==null||gt,u=_a;var f=gt;_a=s,(gt=t)&&!f?Ta(e,r,(r.subtreeFlags&8772)!==0):Sa(e,r),_a=u,gt=f}break;case 30:break;default:Sa(e,r)}}function Dp(e){var t=e.alternate;t!==null&&(e.alternate=null,Dp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&C(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 et=null,Pt=!1;function Ea(e,t,r){for(r=r.child;r!==null;)Lp(e,t,r),r=r.sibling}function Lp(e,t,r){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(kn,r)}catch{}switch(r.tag){case 26:gt||Yn(r,t),Ea(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:gt||Yn(r,t);var s=et,u=Pt;nr(r.type)&&(et=r.stateNode,Pt=!1),Ea(e,t,r),Cl(r.stateNode),et=s,Pt=u;break;case 5:gt||Yn(r,t);case 6:if(s=et,u=Pt,et=null,Ea(e,t,r),et=s,Pt=u,et!==null)if(Pt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(r.stateNode)}catch(f){Fe(r,t,f)}else try{et.removeChild(r.stateNode)}catch(f){Fe(r,t,f)}break;case 18:et!==null&&(Pt?(e=et,Og(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Ci(e)):Og(et,r.stateNode));break;case 4:s=et,u=Pt,et=r.stateNode.containerInfo,Pt=!0,Ea(e,t,r),et=s,Pt=u;break;case 0:case 11:case 14:case 15:Qa(2,r,t),gt||Qa(4,r,t),Ea(e,t,r);break;case 1:gt||(Yn(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"&&xp(r,t,s)),Ea(e,t,r);break;case 21:Ea(e,t,r);break;case 22:gt=(s=gt)||r.memoizedState!==null,Ea(e,t,r),gt=s;break;default:Ea(e,t,r)}}function Bp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ci(e)}catch(r){Fe(t,t.return,r)}}}function Up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ci(e)}catch(r){Fe(t,t.return,r)}}function u2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Np),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Np),t;default:throw Error(l(435,e.tag))}}function Js(e,t){var r=u2(e);t.forEach(function(s){if(!r.has(s)){r.add(s);var u=v2.bind(null,e,s);s.then(u,u)}})}function Xt(e,t){var r=t.deletions;if(r!==null)for(var s=0;s<r.length;s++){var u=r[s],f=e,p=t,b=p;e:for(;b!==null;){switch(b.tag){case 27:if(nr(b.type)){et=b.stateNode,Pt=!1;break e}break;case 5:et=b.stateNode,Pt=!1;break e;case 3:case 4:et=b.stateNode.containerInfo,Pt=!0;break e}b=b.return}if(et===null)throw Error(l(160));Lp(f,p,u),et=null,Pt=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jp(t,e),t=t.sibling}var Dn=null;function jp(e,t){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),Zt(e),s&4&&(Qa(3,e,e.return),yl(3,e),Qa(5,e,e.return));break;case 1:Xt(t,e),Zt(e),s&512&&(gt||r===null||Yn(r,r.return)),s&64&&_a&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?s:r.concat(s))));break;case 26:var u=Dn;if(Xt(t,e),Zt(e),s&512&&(gt||r===null||Yn(r,r.return)),s&4){var f=r!==null?r.memoizedState:null;if(s=e.memoizedState,r===null)if(s===null)if(e.stateNode===null){e:{s=e.type,r=e.memoizedProps,u=u.ownerDocument||u;t:switch(s){case"title":f=u.getElementsByTagName("title")[0],(!f||f[re]||f[dt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(s),u.head.insertBefore(f,u.querySelector("head > title"))),Dt(f,s,r),f[dt]=e,Ee(f),s=f;break e;case"link":var p=jg("link","href",u).get(s+(r.href||""));if(p){for(var b=0;b<p.length;b++)if(f=p[b],f.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&f.getAttribute("rel")===(r.rel==null?null:r.rel)&&f.getAttribute("title")===(r.title==null?null:r.title)&&f.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){p.splice(b,1);break t}}f=u.createElement(s),Dt(f,s,r),u.head.appendChild(f);break;case"meta":if(p=jg("meta","content",u).get(s+(r.content||""))){for(b=0;b<p.length;b++)if(f=p[b],f.getAttribute("content")===(r.content==null?null:""+r.content)&&f.getAttribute("name")===(r.name==null?null:r.name)&&f.getAttribute("property")===(r.property==null?null:r.property)&&f.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&f.getAttribute("charset")===(r.charSet==null?null:r.charSet)){p.splice(b,1);break t}}f=u.createElement(s),Dt(f,s,r),u.head.appendChild(f);break;default:throw Error(l(468,s))}f[dt]=e,Ee(f),s=f}e.stateNode=s}else Hg(u,e.type,e.stateNode);else e.stateNode=Ug(u,s,e.memoizedProps);else f!==s?(f===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):f.count--,s===null?Hg(u,e.type,e.stateNode):Ug(u,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Jc(e,e.memoizedProps,r.memoizedProps)}break;case 27:Xt(t,e),Zt(e),s&512&&(gt||r===null||Yn(r,r.return)),r!==null&&s&4&&Jc(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Xt(t,e),Zt(e),s&512&&(gt||r===null||Yn(r,r.return)),e.flags&32){u=e.stateNode;try{Kr(u,"")}catch(ne){Fe(e,e.return,ne)}}s&4&&e.stateNode!=null&&(u=e.memoizedProps,Jc(e,u,r!==null?r.memoizedProps:u)),s&1024&&(nf=!0);break;case 6:if(Xt(t,e),Zt(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,r=e.stateNode;try{r.nodeValue=s}catch(ne){Fe(e,e.return,ne)}}break;case 3:if(go=null,u=Dn,Dn=mo(t.containerInfo),Xt(t,e),Dn=u,Zt(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{Ci(t.containerInfo)}catch(ne){Fe(e,e.return,ne)}nf&&(nf=!1,Hp(e));break;case 4:s=Dn,Dn=mo(e.stateNode.containerInfo),Xt(t,e),Zt(e),Dn=s;break;case 12:Xt(t,e),Zt(e);break;case 31:Xt(t,e),Zt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Js(e,s)));break;case 13:Xt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(to=Ct()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Js(e,s)));break;case 22:u=e.memoizedState!==null;var A=r!==null&&r.memoizedState!==null,j=_a,q=gt;if(_a=j||u,gt=q||A,Xt(t,e),gt=q,_a=j,Zt(e),s&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(r===null||A||_a||gt||Mr(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){A=r=t;try{if(f=A.stateNode,u)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=A.stateNode;var Y=A.memoizedProps.style,I=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;b.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(ne){Fe(A,A.return,ne)}}}else if(t.tag===6){if(r===null){A=t;try{A.stateNode.nodeValue=u?"":A.memoizedProps}catch(ne){Fe(A,A.return,ne)}}}else if(t.tag===18){if(r===null){A=t;try{var k=A.stateNode;u?xg(k,!0):xg(A.stateNode,!1)}catch(ne){Fe(A,A.return,ne)}}}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;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(r=s.retryQueue,r!==null&&(s.retryQueue=null,Js(e,r))));break;case 19:Xt(t,e),Zt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Js(e,s)));break;case 30:break;case 21:break;default:Xt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var r,s=e.return;s!==null;){if(Rp(s)){r=s;break}s=s.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var u=r.stateNode,f=ef(e);Ws(e,f,u);break;case 5:var p=r.stateNode;r.flags&32&&(Kr(p,""),r.flags&=-33);var b=ef(e);Ws(e,b,p);break;case 3:case 4:var A=r.stateNode.containerInfo,j=ef(e);tf(e,j,A);break;default:throw Error(l(161))}}catch(q){Fe(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Mp(e,t.alternate,t),t=t.sibling}function Mr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qa(4,t,t.return),Mr(t);break;case 1:Yn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&xp(t,t.return,r),Mr(t);break;case 27:Cl(t.stateNode);case 26:case 5:Yn(t,t.return),Mr(t);break;case 22:t.memoizedState===null&&Mr(t);break;case 30:Mr(t);break;default:Mr(t)}e=e.sibling}}function Ta(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,u=e,f=t,p=f.flags;switch(f.tag){case 0:case 11:case 15:Ta(u,f,r),yl(4,f);break;case 1:if(Ta(u,f,r),s=f,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(j){Fe(s,s.return,j)}if(s=f,u=s.updateQueue,u!==null){var b=s.stateNode;try{var A=u.shared.hiddenCallbacks;if(A!==null)for(u.shared.hiddenCallbacks=null,u=0;u<A.length;u++)m0(A[u],b)}catch(j){Fe(s,s.return,j)}}r&&p&64&&Op(f),vl(f,f.return);break;case 27:wp(f);case 26:case 5:Ta(u,f,r),r&&s===null&&p&4&&Cp(f),vl(f,f.return);break;case 12:Ta(u,f,r);break;case 31:Ta(u,f,r),r&&p&4&&Bp(u,f);break;case 13:Ta(u,f,r),r&&p&4&&Up(u,f);break;case 22:f.memoizedState===null&&Ta(u,f,r),vl(f,f.return);break;case 30:break;default:Ta(u,f,r)}t=t.sibling}}function af(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&rl(r))}function rf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rl(e))}function Ln(e,t,r,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ip(e,t,r,s),t=t.sibling}function Ip(e,t,r,s){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Ln(e,t,r,s),u&2048&&yl(9,t);break;case 1:Ln(e,t,r,s);break;case 3:Ln(e,t,r,s),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rl(e)));break;case 12:if(u&2048){Ln(e,t,r,s),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(A){Fe(t,t.return,A)}}else Ln(e,t,r,s);break;case 31:Ln(e,t,r,s);break;case 13:Ln(e,t,r,s);break;case 23:break;case 22:f=t.stateNode,p=t.alternate,t.memoizedState!==null?f._visibility&2?Ln(e,t,r,s):bl(e,t):f._visibility&2?Ln(e,t,r,s):(f._visibility|=2,gi(e,t,r,s,(t.subtreeFlags&10256)!==0||!1)),u&2048&&af(p,t);break;case 24:Ln(e,t,r,s),u&2048&&rf(t.alternate,t);break;default:Ln(e,t,r,s)}}function gi(e,t,r,s,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,p=t,b=r,A=s,j=p.flags;switch(p.tag){case 0:case 11:case 15:gi(f,p,b,A,u),yl(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?gi(f,p,b,A,u):bl(f,p):(q._visibility|=2,gi(f,p,b,A,u)),u&&j&2048&&af(p.alternate,p);break;case 24:gi(f,p,b,A,u),u&&j&2048&&rf(p.alternate,p);break;default:gi(f,p,b,A,u)}t=t.sibling}}function bl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,s=t,u=s.flags;switch(s.tag){case 22:bl(r,s),u&2048&&af(s.alternate,s);break;case 24:bl(r,s),u&2048&&rf(s.alternate,s);break;default:bl(r,s)}t=t.sibling}}var _l=8192;function yi(e,t,r){if(e.subtreeFlags&_l)for(e=e.child;e!==null;)zp(e,t,r),e=e.sibling}function zp(e,t,r){switch(e.tag){case 26:yi(e,t,r),e.flags&_l&&e.memoizedState!==null&&Q2(r,Dn,e.memoizedState,e.memoizedProps);break;case 5:yi(e,t,r);break;case 3:case 4:var s=Dn;Dn=mo(e.stateNode.containerInfo),yi(e,t,r),Dn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=_l,_l=16777216,yi(e,t,r),_l=s):yi(e,t,r));break;default:yi(e,t,r)}}function Gp(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 El(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var s=t[r];At=s,qp(s,e)}Gp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kp(e),e=e.sibling}function kp(e){switch(e.tag){case 0:case 11:case 15:El(e),e.flags&2048&&Qa(9,e,e.return);break;case 3:El(e);break;case 12:El(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,eo(e)):El(e);break;default:El(e)}}function eo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var s=t[r];At=s,qp(s,e)}Gp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qa(8,t,t.return),eo(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,eo(t));break;default:eo(t)}e=e.sibling}}function qp(e,t){for(;At!==null;){var r=At;switch(r.tag){case 0:case 11:case 15:Qa(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var s=r.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:rl(r.memoizedState.cache)}if(s=r.child,s!==null)s.return=r,At=s;else e:for(r=e;At!==null;){s=At;var u=s.sibling,f=s.return;if(Dp(s),s===r){At=null;break e}if(u!==null){u.return=f,At=u;break e}At=f}}}var c2={getCacheForType:function(e){var t=Nt(ht),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Nt(ht).controller.signal}},f2=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Ze=null,Oe=null,Re=0,qe=0,an=null,Ka=!1,vi=!1,lf=!1,Aa=0,it=0,$a=0,Dr=0,sf=0,rn=0,bi=0,Sl=null,Qt=null,of=!1,to=0,Fp=0,no=1/0,ao=null,Wa=null,Et=0,Ja=null,_i=null,Oa=0,uf=0,cf=null,Vp=null,Tl=0,ff=null;function ln(){return(Ie&2)!==0&&Re!==0?Re&-Re:L.T!==null?yf():Fi()}function Yp(){if(rn===0)if((Re&536870912)===0||Ne){var e=la;la<<=1,(la&3932160)===0&&(la=262144),rn=e}else rn=536870912;return e=tn.current,e!==null&&(e.flags|=32),rn}function Kt(e,t,r){(e===Ze&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(Ei(e,0),er(e,Re,rn,!1)),Ia(e,r),((Ie&2)===0||e!==Ze)&&(e===Ze&&((Ie&2)===0&&(Dr|=r),it===4&&er(e,Re,rn,!1)),Pn(e))}function Pp(e,t,r){if((Ie&6)!==0)throw Error(l(327));var s=!r&&(t&127)===0&&(t&e.expiredLanes)===0||gr(e,t),u=s?m2(e,t):hf(e,t,!0),f=s;do{if(u===0){vi&&!s&&er(e,t,0,!1);break}else{if(r=e.current.alternate,f&&!d2(r)){u=hf(e,t,!1),f=!1;continue}if(u===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;u=Sl;var A=b.current.memoizedState.isDehydrated;if(A&&(Ei(b,p).flags|=256),p=hf(b,p,!1),p!==2){if(lf&&!A){b.errorRecoveryDisabledLanes|=f,Dr|=f,u=4;break e}f=Qt,Qt=u,f!==null&&(Qt===null?Qt=f:Qt.push.apply(Qt,f))}u=p}if(f=!1,u!==2)continue}}if(u===1){Ei(e,0),er(e,t,0,!0);break}e:{switch(s=e,f=u,f){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:er(s,t,rn,!Ka);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(u=to+300-Ct(),10<u)){if(er(s,t,rn,!Ka),Xr(s,0,!0)!==0)break e;Oa=t,s.timeoutHandle=Tg(Xp.bind(null,s,r,Qt,ao,of,t,rn,Dr,bi,Ka,f,"Throttled",-0,0),u);break e}Xp(s,r,Qt,ao,of,t,rn,Dr,bi,Ka,f,null,-0,0)}}break}while(!0);Pn(e)}function Xp(e,t,r,s,u,f,p,b,A,j,q,Y,I,k){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ca},zp(t,f,Y);var ne=(f&62914560)===f?to-Ct():(f&4194048)===f?Fp-Ct():0;if(ne=K2(Y,ne),ne!==null){Oa=f,e.cancelPendingCommit=ne(tg.bind(null,e,t,f,r,s,u,p,b,A,q,Y,null,I,k)),er(e,f,p,!j);return}}tg(e,t,f,r,s,u,p,b,A)}function d2(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var s=0;s<r.length;s++){var u=r[s],f=u.getSnapshot;u=u.value;try{if(!Jt(f(),u))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 er(e,t,r,s){t&=~sf,t&=~Dr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var u=t;0<u;){var f=31-ct(u),p=1<<f;s[f]=-1,u&=~p}r!==0&&ki(e,r,t)}function ro(){return(Ie&6)===0?(Al(0),!1):!0}function df(){if(Oe!==null){if(qe===0)var e=Oe.return;else e=Oe,ma=Tr=null,Cc(e),fi=null,ll=0,e=Oe;for(;e!==null;)Ap(e.alternate,e),e=e.return;Oe=null}}function Ei(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,D2(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Oa=0,df(),Ze=e,Oe=r=da(e.current,null),Re=t,qe=0,an=null,Ka=!1,vi=gr(e,t),lf=!1,bi=rn=sf=Dr=$a=it=0,Qt=Sl=null,of=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var u=31-ct(s),f=1<<u;t|=e[u],s&=~f}return Aa=t,Os(),r}function Zp(e,t){ye=null,L.H=ml,t===ci||t===Ls?(t=c0(),qe=3):t===pc?(t=c0(),qe=4):qe=t===Fc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,an=t,Oe===null&&(it=1,Xs(e,vn(t,e.current)))}function Qp(){var e=tn.current;return e===null?!0:(Re&4194048)===Re?Sn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Sn:!1}function Kp(){var e=L.H;return L.H=ml,e===null?ml:e}function $p(){var e=L.A;return L.A=c2,e}function io(){it=4,Ka||(Re&4194048)!==Re&&tn.current!==null||(vi=!0),($a&134217727)===0&&(Dr&134217727)===0||Ze===null||er(Ze,Re,rn,!1)}function hf(e,t,r){var s=Ie;Ie|=2;var u=Kp(),f=$p();(Ze!==e||Re!==t)&&(ao=null,Ei(e,t)),t=!1;var p=it;e:do try{if(qe!==0&&Oe!==null){var b=Oe,A=an;switch(qe){case 8:df(),p=6;break e;case 3:case 2:case 9:case 6:tn.current===null&&(t=!0);var j=qe;if(qe=0,an=null,Si(e,b,A,j),r&&vi){p=0;break e}break;default:j=qe,qe=0,an=null,Si(e,b,A,j)}}h2(),p=it;break}catch(q){Zp(e,q)}while(!0);return t&&e.shellSuspendCounter++,ma=Tr=null,Ie=s,L.H=u,L.A=f,Oe===null&&(Ze=null,Re=0,Os()),p}function h2(){for(;Oe!==null;)Wp(Oe)}function m2(e,t){var r=Ie;Ie|=2;var s=Kp(),u=$p();Ze!==e||Re!==t?(ao=null,no=Ct()+500,Ei(e,t)):vi=gr(e,t);e:do try{if(qe!==0&&Oe!==null){t=Oe;var f=an;t:switch(qe){case 1:qe=0,an=null,Si(e,t,f,1);break;case 2:case 9:if(o0(f)){qe=0,an=null,Jp(t);break}t=function(){qe!==2&&qe!==9||Ze!==e||(qe=7),Pn(e)},f.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:o0(f)?(qe=0,an=null,Jp(t)):(qe=0,an=null,Si(e,t,f,7));break;case 5:var p=null;switch(Oe.tag){case 26:p=Oe.memoizedState;case 5:case 27:var b=Oe;if(p?Ig(p):b.stateNode.complete){qe=0,an=null;var A=b.sibling;if(A!==null)Oe=A;else{var j=b.return;j!==null?(Oe=j,lo(j)):Oe=null}break t}}qe=0,an=null,Si(e,t,f,5);break;case 6:qe=0,an=null,Si(e,t,f,6);break;case 8:df(),it=6;break e;default:throw Error(l(462))}}p2();break}catch(q){Zp(e,q)}while(!0);return ma=Tr=null,L.H=s,L.A=u,Ie=r,Oe!==null?0:(Ze=null,Re=0,Os(),it)}function p2(){for(;Oe!==null&&!ss();)Wp(Oe)}function Wp(e){var t=Sp(e.alternate,e,Aa);e.memoizedProps=e.pendingProps,t===null?lo(e):Oe=t}function Jp(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=gp(r,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=gp(r,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Cc(t);default:Ap(r,t),t=Oe=$m(t,Aa),t=Sp(r,t,Aa)}e.memoizedProps=e.pendingProps,t===null?lo(e):Oe=t}function Si(e,t,r,s){ma=Tr=null,Cc(t),fi=null,ll=0;var u=t.return;try{if(a2(e,u,t,r,Re)){it=1,Xs(e,vn(r,e.current)),Oe=null;return}}catch(f){if(u!==null)throw Oe=u,f;it=1,Xs(e,vn(r,e.current)),Oe=null;return}t.flags&32768?(Ne||s===1?e=!0:vi||(Re&536870912)!==0?e=!1:(Ka=e=!0,(s===2||s===9||s===3||s===6)&&(s=tn.current,s!==null&&s.tag===13&&(s.flags|=16384))),eg(t,e)):lo(t)}function lo(e){var t=e;do{if((t.flags&32768)!==0){eg(t,Ka);return}e=t.return;var r=l2(t.alternate,t,Aa);if(r!==null){Oe=r;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);it===0&&(it=5)}function eg(e,t){do{var r=s2(e.alternate,e);if(r!==null){r.flags&=32767,Oe=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=r}while(e!==null);it=6,Oe=null}function tg(e,t,r,s,u,f,p,b,A){e.cancelPendingCommit=null;do so();while(Et!==0);if((Ie&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(f=t.lanes|t.childLanes,f|=ec,Gi(e,r,f,p,b,A),e===Ze&&(Oe=Ze=null,Re=0),_i=t,Ja=e,Oa=r,uf=f,cf=u,Vp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,b2(pr,function(){return lg(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,u=W.p,W.p=2,p=Ie,Ie|=4;try{o2(e,t,r)}finally{Ie=p,W.p=u,L.T=s}}Et=1,ng(),ag(),rg()}}function ng(){if(Et===1){Et=0;var e=Ja,t=_i,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=L.T,L.T=null;var s=W.p;W.p=2;var u=Ie;Ie|=4;try{jp(t,e);var f=Of,p=qm(e.containerInfo),b=f.focusedElem,A=f.selectionRange;if(p!==b&&b&&b.ownerDocument&&km(b.ownerDocument.documentElement,b)){if(A!==null&&Qu(b)){var j=A.start,q=A.end;if(q===void 0&&(q=j),"selectionStart"in b)b.selectionStart=j,b.selectionEnd=Math.min(q,b.value.length);else{var Y=b.ownerDocument||document,I=Y&&Y.defaultView||window;if(I.getSelection){var k=I.getSelection(),ne=b.textContent.length,ce=Math.min(A.start,ne),Xe=A.end===void 0?ce:Math.min(A.end,ne);!k.extend&&ce>Xe&&(p=Xe,Xe=ce,ce=p);var N=Gm(b,ce),R=Gm(b,Xe);if(N&&R&&(k.rangeCount!==1||k.anchorNode!==N.node||k.anchorOffset!==N.offset||k.focusNode!==R.node||k.focusOffset!==R.offset)){var B=Y.createRange();B.setStart(N.node,N.offset),k.removeAllRanges(),ce>Xe?(k.addRange(B),k.extend(R.node,R.offset)):(B.setEnd(R.node,R.offset),k.addRange(B))}}}}for(Y=[],k=b;k=k.parentNode;)k.nodeType===1&&Y.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Y.length;b++){var V=Y[b];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}_o=!!Af,Of=Af=null}finally{Ie=u,W.p=s,L.T=r}}e.current=t,Et=2}}function ag(){if(Et===2){Et=0;var e=Ja,t=_i,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=L.T,L.T=null;var s=W.p;W.p=2;var u=Ie;Ie|=4;try{Mp(e,t.alternate,t)}finally{Ie=u,W.p=s,L.T=r}}Et=3}}function rg(){if(Et===4||Et===3){Et=0,Mu();var e=Ja,t=_i,r=Oa,s=Vp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Et=5:(Et=0,_i=Ja=null,ig(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Wa=null),Nn(r),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(kn,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=L.T,u=W.p,W.p=2,L.T=null;try{for(var f=e.onRecoverableError,p=0;p<s.length;p++){var b=s[p];f(b.value,{componentStack:b.stack})}}finally{L.T=t,W.p=u}}(Oa&3)!==0&&so(),Pn(e),u=e.pendingLanes,(r&261930)!==0&&(u&42)!==0?e===ff?Tl++:(Tl=0,ff=e):Tl=0,Al(0)}}function ig(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rl(t)))}function so(){return ng(),ag(),rg(),lg()}function lg(){if(Et!==5)return!1;var e=Ja,t=uf;uf=0;var r=Nn(Oa),s=L.T,u=W.p;try{W.p=32>r?32:r,L.T=null,r=cf,cf=null;var f=Ja,p=Oa;if(Et=0,_i=Ja=null,Oa=0,(Ie&6)!==0)throw Error(l(331));var b=Ie;if(Ie|=4,kp(f.current),Ip(f,f.current,p,r),Ie=b,Al(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(kn,f)}catch{}return!0}finally{W.p=u,L.T=s,ig(e,t)}}function sg(e,t,r){t=vn(r,t),t=qc(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(Ia(e,2),Pn(e))}function Fe(e,t,r){if(e.tag===3)sg(e,e,r);else for(;t!==null;){if(t.tag===3){sg(t,e,r);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wa===null||!Wa.has(s))){e=vn(r,e),r=op(2),s=Pa(t,r,2),s!==null&&(up(r,s,t,e),Ia(s,2),Pn(s));break}}t=t.return}}function mf(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new f2;var u=new Set;s.set(t,u)}else u=s.get(t),u===void 0&&(u=new Set,s.set(t,u));u.has(r)||(lf=!0,u.add(r),e=g2.bind(null,e,t,r),t.then(e,e))}function g2(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ze===e&&(Re&r)===r&&(it===4||it===3&&(Re&62914560)===Re&&300>Ct()-to?(Ie&2)===0&&Ei(e,0):sf|=r,bi===Re&&(bi=0)),Pn(e)}function og(e,t){t===0&&(t=sa()),e=_r(e,t),e!==null&&(Ia(e,t),Pn(e))}function y2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),og(e,r)}function v2(e,t){var r=0;switch(e.tag){case 31:case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(t),og(e,r)}function b2(e,t){return Ha(e,t)}var oo=null,Ti=null,pf=!1,uo=!1,gf=!1,tr=0;function Pn(e){e!==Ti&&e.next===null&&(Ti===null?oo=Ti=e:Ti=Ti.next=e),uo=!0,pf||(pf=!0,E2())}function Al(e,t){if(!gf&&uo){gf=!0;do for(var r=!1,s=oo;s!==null;){if(e!==0){var u=s.pendingLanes;if(u===0)var f=0;else{var p=s.suspendedLanes,b=s.pingedLanes;f=(1<<31-ct(42|e)+1)-1,f&=u&~(p&~b),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(r=!0,dg(s,f))}else f=Re,f=Xr(s,s===Ze?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||gr(s,f)||(r=!0,dg(s,f));s=s.next}while(r);gf=!1}}function _2(){ug()}function ug(){uo=pf=!1;var e=0;tr!==0&&M2()&&(e=tr);for(var t=Ct(),r=null,s=oo;s!==null;){var u=s.next,f=cg(s,t);f===0?(s.next=null,r===null?oo=u:r.next=u,u===null&&(Ti=r)):(r=s,(e!==0||(f&3)!==0)&&(uo=!0)),s=u}Et!==0&&Et!==5||Al(e),tr!==0&&(tr=0)}function cg(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var p=31-ct(f),b=1<<p,A=u[p];A===-1?((b&r)===0||(b&s)!==0)&&(u[p]=ft(b,t)):A<=t&&(e.expiredLanes|=b),f&=~b}if(t=Ze,r=Re,r=Xr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,r===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Yr(s),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||gr(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(s!==null&&Yr(s),Nn(r)){case 2:case 8:r=ra;break;case 32:r=pr;break;case 268435456:r=Ui;break;default:r=pr}return s=fg.bind(null,e),r=Ha(r,s),e.callbackPriority=t,e.callbackNode=r,t}return s!==null&&s!==null&&Yr(s),e.callbackPriority=2,e.callbackNode=null,2}function fg(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(so()&&e.callbackNode!==r)return null;var s=Re;return s=Xr(e,e===Ze?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Pp(e,s,t),cg(e,Ct()),e.callbackNode!=null&&e.callbackNode===r?fg.bind(null,e):null)}function dg(e,t){if(so())return null;Pp(e,t,!0)}function E2(){L2(function(){(Ie&6)!==0?Ha(aa,_2):ug()})}function yf(){if(tr===0){var e=oi;e===0&&(e=ia,ia<<=1,(ia&261888)===0&&(ia=256)),tr=e}return tr}function hg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ys(""+e)}function mg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function S2(e,t,r,s,u){if(t==="submit"&&r&&r.stateNode===u){var f=hg((u[Je]||null).action),p=s.submitter;p&&(t=(t=p[Je]||null)?hg(t.formAction):p.getAttribute("formAction"),t!==null&&(f=t,p=null));var b=new Es("action","action",null,s,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(tr!==0){var A=p?mg(u,p):new FormData(u);jc(r,{pending:!0,data:A,method:u.method,action:f},null,A)}}else typeof f=="function"&&(b.preventDefault(),A=p?mg(u,p):new FormData(u),jc(r,{pending:!0,data:A,method:u.method,action:f},f,A))},currentTarget:u}]})}}for(var vf=0;vf<Ju.length;vf++){var bf=Ju[vf],T2=bf.toLowerCase(),A2=bf[0].toUpperCase()+bf.slice(1);Mn(T2,"on"+A2)}Mn(Ym,"onAnimationEnd"),Mn(Pm,"onAnimationIteration"),Mn(Xm,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(GE,"onTransitionRun"),Mn(kE,"onTransitionStart"),Mn(qE,"onTransitionCancel"),Mn(Zm,"onTransitionEnd"),qn("onMouseEnter",["mouseout","mouseover"]),qn("onMouseLeave",["mouseout","mouseover"]),qn("onPointerEnter",["pointerout","pointerover"]),qn("onPointerLeave",["pointerout","pointerover"]),Vt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ol="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(" "),O2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ol));function pg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var s=e[r],u=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var p=s.length-1;0<=p;p--){var b=s[p],A=b.instance,j=b.currentTarget;if(b=b.listener,A!==f&&u.isPropagationStopped())break e;f=b,u.currentTarget=j;try{f(u)}catch(q){As(q)}u.currentTarget=null,f=A}else for(p=0;p<s.length;p++){if(b=s[p],A=b.instance,j=b.currentTarget,b=b.listener,A!==f&&u.isPropagationStopped())break e;f=b,u.currentTarget=j;try{f(u)}catch(q){As(q)}u.currentTarget=null,f=A}}}}function xe(e,t){var r=t[Zr];r===void 0&&(r=t[Zr]=new Set);var s=e+"__bubble";r.has(s)||(gg(t,e,2,!1),r.add(s))}function _f(e,t,r){var s=0;t&&(s|=4),gg(r,e,s,t)}var co="_reactListening"+Math.random().toString(36).slice(2);function Ef(e){if(!e[co]){e[co]=!0,Rt.forEach(function(r){r!=="selectionchange"&&(O2.has(r)||_f(r,!1,e),_f(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[co]||(t[co]=!0,_f("selectionchange",!1,t))}}function gg(e,t,r,s){switch(Yg(t)){case 2:var u=J2;break;case 8:u=eS;break;default:u=jf}r=u.bind(null,t,r,e),u=void 0,!Gu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(t,r,{capture:!0,passive:u}):e.addEventListener(t,r,!0):u!==void 0?e.addEventListener(t,r,{passive:u}):e.addEventListener(t,r,!1)}function Sf(e,t,r,s,u){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var b=s.stateNode.containerInfo;if(b===u)break;if(p===4)for(p=s.return;p!==null;){var A=p.tag;if((A===3||A===4)&&p.stateNode.containerInfo===u)return;p=p.return}for(;b!==null;){if(p=Z(b),p===null)return;if(A=p.tag,A===5||A===6||A===26||A===27){s=f=p;continue e}b=b.parentNode}}s=s.return}Em(function(){var j=f,q=Iu(r),Y=[];e:{var I=Qm.get(e);if(I!==void 0){var k=Es,ne=e;switch(e){case"keypress":if(bs(r)===0)break e;case"keydown":case"keyup":k=vE;break;case"focusin":ne="focus",k=Vu;break;case"focusout":ne="blur",k=Vu;break;case"beforeblur":case"afterblur":k=Vu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=lE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=EE;break;case Ym:case Pm:case Xm:k=uE;break;case Zm:k=TE;break;case"scroll":case"scrollend":k=rE;break;case"wheel":k=OE;break;case"copy":case"cut":case"paste":k=fE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=xm;break;case"toggle":case"beforetoggle":k=CE}var ce=(t&4)!==0,Xe=!ce&&(e==="scroll"||e==="scrollend"),N=ce?I!==null?I+"Capture":null:I;ce=[];for(var R=j,B;R!==null;){var V=R;if(B=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||B===null||N===null||(V=Xi(R,N),V!=null&&ce.push(xl(R,V,B))),Xe)break;R=R.return}0<ce.length&&(I=new k(I,ne,null,r,q),Y.push({event:I,listeners:ce}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",I&&r!==Hu&&(ne=r.relatedTarget||r.fromElement)&&(Z(ne)||ne[oa]))break e;if((k||I)&&(I=q.window===q?q:(I=q.ownerDocument)?I.defaultView||I.parentWindow:window,k?(ne=r.relatedTarget||r.toElement,k=j,ne=ne?Z(ne):null,ne!==null&&(Xe=c(ne),ce=ne.tag,ne!==Xe||ce!==5&&ce!==27&&ce!==6)&&(ne=null)):(k=null,ne=j),k!==ne)){if(ce=Am,V="onMouseLeave",N="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ce=xm,V="onPointerLeave",N="onPointerEnter",R="pointer"),Xe=k==null?I:ze(k),B=ne==null?I:ze(ne),I=new ce(V,R+"leave",k,r,q),I.target=Xe,I.relatedTarget=B,V=null,Z(q)===j&&(ce=new ce(N,R+"enter",ne,r,q),ce.target=B,ce.relatedTarget=Xe,V=ce),Xe=V,k&&ne)t:{for(ce=x2,N=k,R=ne,B=0,V=N;V;V=ce(V))B++;V=0;for(var ue=R;ue;ue=ce(ue))V++;for(;0<B-V;)N=ce(N),B--;for(;0<V-B;)R=ce(R),V--;for(;B--;){if(N===R||R!==null&&N===R.alternate){ce=N;break t}N=ce(N),R=ce(R)}ce=null}else ce=null;k!==null&&yg(Y,I,k,ce,!1),ne!==null&&Xe!==null&&yg(Y,Xe,ne,ce,!0)}}e:{if(I=j?ze(j):window,k=I.nodeName&&I.nodeName.toLowerCase(),k==="select"||k==="input"&&I.type==="file")var Ue=Bm;else if(Dm(I))if(Um)Ue=HE;else{Ue=UE;var ie=BE}else k=I.nodeName,!k||k.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?j&&ju(j.elementType)&&(Ue=Bm):Ue=jE;if(Ue&&(Ue=Ue(e,j))){Lm(Y,Ue,r,q);break e}ie&&ie(e,I,j),e==="focusout"&&j&&I.type==="number"&&j.memoizedProps.value!=null&&Uu(I,"number",I.value)}switch(ie=j?ze(j):window,e){case"focusin":(Dm(ie)||ie.contentEditable==="true")&&(ei=ie,Ku=j,tl=null);break;case"focusout":tl=Ku=ei=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,Fm(Y,r,q);break;case"selectionchange":if(zE)break;case"keydown":case"keyup":Fm(Y,r,q)}var ve;if(Pu)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Jr?Nm(e,r)&&(we="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(we="onCompositionStart");we&&(Cm&&r.locale!=="ko"&&(Jr||we!=="onCompositionStart"?we==="onCompositionEnd"&&Jr&&(ve=Sm()):(za=q,ku="value"in za?za.value:za.textContent,Jr=!0)),ie=fo(j,we),0<ie.length&&(we=new Om(we,e,null,r,q),Y.push({event:we,listeners:ie}),ve?we.data=ve:(ve=Mm(r),ve!==null&&(we.data=ve)))),(ve=wE?NE(e,r):ME(e,r))&&(we=fo(j,"onBeforeInput"),0<we.length&&(ie=new Om("onBeforeInput","beforeinput",null,r,q),Y.push({event:ie,listeners:we}),ie.data=ve)),S2(Y,e,j,r,q)}pg(Y,t)})}function xl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function fo(e,t){for(var r=t+"Capture",s=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=Xi(e,r),u!=null&&s.unshift(xl(e,u,f)),u=Xi(e,t),u!=null&&s.push(xl(e,u,f))),e.tag===3)return s;e=e.return}return[]}function x2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yg(e,t,r,s,u){for(var f=t._reactName,p=[];r!==null&&r!==s;){var b=r,A=b.alternate,j=b.stateNode;if(b=b.tag,A!==null&&A===s)break;b!==5&&b!==26&&b!==27||j===null||(A=j,u?(j=Xi(r,f),j!=null&&p.unshift(xl(r,j,A))):u||(j=Xi(r,f),j!=null&&p.push(xl(r,j,A)))),r=r.return}p.length!==0&&e.push({event:t,listeners:p})}var C2=/\r\n?/g,R2=/\u0000|\uFFFD/g;function vg(e){return(typeof e=="string"?e:""+e).replace(C2,`
|
|
49
|
-
`).replace(R2,"")}function bg(e,t){return t=vg(t),vg(e)===t}function Pe(e,t,r,s,u,f){switch(r){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Kr(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Kr(e,""+s);break;case"className":ps(e,"class",s);break;case"tabIndex":ps(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(e,r,s);break;case"style":bm(e,s,f);break;case"data":if(t!=="object"){ps(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(r);break}s=ys(""+s),e.setAttribute(r,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(r,"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"&&(r==="formAction"?(t!=="input"&&Pe(e,t,"name",u.name,u,null),Pe(e,t,"formEncType",u.formEncType,u,null),Pe(e,t,"formMethod",u.formMethod,u,null),Pe(e,t,"formTarget",u.formTarget,u,null)):(Pe(e,t,"encType",u.encType,u,null),Pe(e,t,"method",u.method,u,null),Pe(e,t,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(r);break}s=ys(""+s),e.setAttribute(r,s);break;case"onClick":s!=null&&(e.onclick=ca);break;case"onScroll":s!=null&&xe("scroll",e);break;case"onScrollEnd":s!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(r=s.__html,r!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}r=ys(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(r,""+s):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":s===!0?e.setAttribute(r,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(r,s):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(r,s):e.removeAttribute(r);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(r):e.setAttribute(r,s);break;case"popover":xe("beforetoggle",e),xe("toggle",e),ms(e,"popover",s);break;case"xlinkActuate":ua(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":ua(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":ua(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":ua(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":ua(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":ua(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":ua(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":ua(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":ua(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ms(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=nE.get(r)||r,ms(e,r,s))}}function Tf(e,t,r,s,u,f){switch(r){case"style":bm(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(r=s.__html,r!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof s=="string"?Kr(e,s):(typeof s=="number"||typeof s=="bigint")&&Kr(e,""+s);break;case"onScroll":s!=null&&xe("scroll",e);break;case"onScrollEnd":s!=null&&xe("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mn.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(u=r.endsWith("Capture"),t=r.slice(2,u?r.length-7:void 0),f=e[Je]||null,f=f!=null?f[r]:null,typeof f=="function"&&e.removeEventListener(t,f,u),typeof s=="function")){typeof f!="function"&&f!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,s,u);break e}r in e?e[r]=s:s===!0?e.setAttribute(r,""):ms(e,r,s)}}}function Dt(e,t,r){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 s=!1,u=!1,f;for(f in r)if(r.hasOwnProperty(f)){var p=r[f];if(p!=null)switch(f){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Pe(e,t,f,p,r,null)}}u&&Pe(e,t,"srcSet",r.srcSet,r,null),s&&Pe(e,t,"src",r.src,r,null);return;case"input":xe("invalid",e);var b=f=p=u=null,A=null,j=null;for(s in r)if(r.hasOwnProperty(s)){var q=r[s];if(q!=null)switch(s){case"name":u=q;break;case"type":p=q;break;case"checked":A=q;break;case"defaultChecked":j=q;break;case"value":f=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,t));break;default:Pe(e,t,s,q,r,null)}}pm(e,f,b,A,j,p,u,!1);return;case"select":xe("invalid",e),s=p=f=null;for(u in r)if(r.hasOwnProperty(u)&&(b=r[u],b!=null))switch(u){case"value":f=b;break;case"defaultValue":p=b;break;case"multiple":s=b;default:Pe(e,t,u,b,r,null)}t=f,r=p,e.multiple=!!s,t!=null?Qr(e,!!s,t,!1):r!=null&&Qr(e,!!s,r,!0);return;case"textarea":xe("invalid",e),f=u=s=null;for(p in r)if(r.hasOwnProperty(p)&&(b=r[p],b!=null))switch(p){case"value":s=b;break;case"defaultValue":u=b;break;case"children":f=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:Pe(e,t,p,b,r,null)}ym(e,s,u,f);return;case"option":for(A in r)if(r.hasOwnProperty(A)&&(s=r[A],s!=null))switch(A){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Pe(e,t,A,s,r,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(s=0;s<Ol.length;s++)xe(Ol[s],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(j in r)if(r.hasOwnProperty(j)&&(s=r[j],s!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Pe(e,t,j,s,r,null)}return;default:if(ju(t)){for(q in r)r.hasOwnProperty(q)&&(s=r[q],s!==void 0&&Tf(e,t,q,s,r,void 0));return}}for(b in r)r.hasOwnProperty(b)&&(s=r[b],s!=null&&Pe(e,t,b,s,r,null))}function w2(e,t,r,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,p=null,b=null,A=null,j=null,q=null;for(k in r){var Y=r[k];if(r.hasOwnProperty(k)&&Y!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":A=Y;default:s.hasOwnProperty(k)||Pe(e,t,k,null,s,Y)}}for(var I in s){var k=s[I];if(Y=r[I],s.hasOwnProperty(I)&&(k!=null||Y!=null))switch(I){case"type":f=k;break;case"name":u=k;break;case"checked":j=k;break;case"defaultChecked":q=k;break;case"value":p=k;break;case"defaultValue":b=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(137,t));break;default:k!==Y&&Pe(e,t,I,k,s,Y)}}Bu(e,p,b,A,j,q,f,u);return;case"select":k=p=b=I=null;for(f in r)if(A=r[f],r.hasOwnProperty(f)&&A!=null)switch(f){case"value":break;case"multiple":k=A;default:s.hasOwnProperty(f)||Pe(e,t,f,null,s,A)}for(u in s)if(f=s[u],A=r[u],s.hasOwnProperty(u)&&(f!=null||A!=null))switch(u){case"value":I=f;break;case"defaultValue":b=f;break;case"multiple":p=f;default:f!==A&&Pe(e,t,u,f,s,A)}t=b,r=p,s=k,I!=null?Qr(e,!!r,I,!1):!!s!=!!r&&(t!=null?Qr(e,!!r,t,!0):Qr(e,!!r,r?[]:"",!1));return;case"textarea":k=I=null;for(b in r)if(u=r[b],r.hasOwnProperty(b)&&u!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Pe(e,t,b,null,s,u)}for(p in s)if(u=s[p],f=r[p],s.hasOwnProperty(p)&&(u!=null||f!=null))switch(p){case"value":I=u;break;case"defaultValue":k=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(l(91));break;default:u!==f&&Pe(e,t,p,u,s,f)}gm(e,I,k);return;case"option":for(var ne in r)if(I=r[ne],r.hasOwnProperty(ne)&&I!=null&&!s.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Pe(e,t,ne,null,s,I)}for(A in s)if(I=s[A],k=r[A],s.hasOwnProperty(A)&&I!==k&&(I!=null||k!=null))switch(A){case"selected":e.selected=I&&typeof I!="function"&&typeof I!="symbol";break;default:Pe(e,t,A,I,s,k)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ce in r)I=r[ce],r.hasOwnProperty(ce)&&I!=null&&!s.hasOwnProperty(ce)&&Pe(e,t,ce,null,s,I);for(j in s)if(I=s[j],k=r[j],s.hasOwnProperty(j)&&I!==k&&(I!=null||k!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(l(137,t));break;default:Pe(e,t,j,I,s,k)}return;default:if(ju(t)){for(var Xe in r)I=r[Xe],r.hasOwnProperty(Xe)&&I!==void 0&&!s.hasOwnProperty(Xe)&&Tf(e,t,Xe,void 0,s,I);for(q in s)I=s[q],k=r[q],!s.hasOwnProperty(q)||I===k||I===void 0&&k===void 0||Tf(e,t,q,I,s,k);return}}for(var N in r)I=r[N],r.hasOwnProperty(N)&&I!=null&&!s.hasOwnProperty(N)&&Pe(e,t,N,null,s,I);for(Y in s)I=s[Y],k=r[Y],!s.hasOwnProperty(Y)||I===k||I==null&&k==null||Pe(e,t,Y,I,s,k)}function _g(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function N2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),s=0;s<r.length;s++){var u=r[s],f=u.transferSize,p=u.initiatorType,b=u.duration;if(f&&b&&_g(p)){for(p=0,b=u.responseEnd,s+=1;s<r.length;s++){var A=r[s],j=A.startTime;if(j>b)break;var q=A.transferSize,Y=A.initiatorType;q&&_g(Y)&&(A=A.responseEnd,p+=q*(A<b?1:(b-j)/(A-j)))}if(--s,t+=8*(f+p)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Af=null,Of=null;function ho(e){return e.nodeType===9?e:e.ownerDocument}function Eg(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 xf(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 Cf=null;function M2(){var e=window.event;return e&&e.type==="popstate"?e===Cf?!1:(Cf=e,!0):(Cf=null,!1)}var Tg=typeof setTimeout=="function"?setTimeout:void 0,D2=typeof clearTimeout=="function"?clearTimeout:void 0,Ag=typeof Promise=="function"?Promise:void 0,L2=typeof queueMicrotask=="function"?queueMicrotask:typeof Ag<"u"?function(e){return Ag.resolve(null).then(e).catch(B2)}:Tg;function B2(e){setTimeout(function(){throw e})}function nr(e){return e==="head"}function Og(e,t){var r=t,s=0;do{var u=r.nextSibling;if(e.removeChild(r),u&&u.nodeType===8)if(r=u.data,r==="/$"||r==="/&"){if(s===0){e.removeChild(u),Ci(t);return}s--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")s++;else if(r==="html")Cl(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Cl(r);for(var f=r.firstChild;f;){var p=f.nextSibling,b=f.nodeName;f[re]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&f.rel.toLowerCase()==="stylesheet"||r.removeChild(f),f=p}}else r==="body"&&Cl(e.ownerDocument.body);r=u}while(r);Ci(t)}function xg(e,t){var r=e;e=0;do{var s=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=s}while(r)}function Rf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Rf(r),C(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function U2(e,t,r,s){for(;e.nodeType===1;){var u=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[re])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!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Tn(e.nextSibling),e===null)break}return null}function j2(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Tn(e.nextSibling),e===null))return null;return e}function Cg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tn(e.nextSibling),e===null))return null;return e}function wf(e){return e.data==="$?"||e.data==="$~"}function Nf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function H2(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var s=function(){t(),r.removeEventListener("DOMContentLoaded",s)};r.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Tn(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==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mf=null;function Rg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Tn(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function wg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Ng(e,t,r){switch(t=ho(r),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Cl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);C(e)}var An=new Map,Mg=new Set;function mo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xa=W.d;W.d={f:I2,r:z2,D:G2,C:k2,L:q2,m:F2,X:Y2,S:V2,M:P2};function I2(){var e=xa.f(),t=ro();return e||t}function z2(e){var t=te(e);t!==null&&t.tag===5&&t.type==="form"?Z0(t):xa.r(e)}var Ai=typeof document>"u"?null:document;function Dg(e,t,r){var s=Ai;if(s&&typeof t=="string"&&t){var u=gn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof r=="string"&&(u+='[crossorigin="'+r+'"]'),Mg.has(u)||(Mg.add(u),e={rel:e,crossOrigin:r,href:t},s.querySelector(u)===null&&(t=s.createElement("link"),Dt(t,"link",e),Ee(t),s.head.appendChild(t)))}}function G2(e){xa.D(e),Dg("dns-prefetch",e,null)}function k2(e,t){xa.C(e,t),Dg("preconnect",e,t)}function q2(e,t,r){xa.L(e,t,r);var s=Ai;if(s&&e&&t){var u='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(u+='[imagesrcset="'+gn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(u+='[imagesizes="'+gn(r.imageSizes)+'"]')):u+='[href="'+gn(e)+'"]';var f=u;switch(t){case"style":f=Oi(e);break;case"script":f=xi(e)}An.has(f)||(e=E({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),An.set(f,e),s.querySelector(u)!==null||t==="style"&&s.querySelector(Rl(f))||t==="script"&&s.querySelector(wl(f))||(t=s.createElement("link"),Dt(t,"link",e),Ee(t),s.head.appendChild(t)))}}function F2(e,t){xa.m(e,t);var r=Ai;if(r&&e){var s=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+gn(s)+'"][href="'+gn(e)+'"]',f=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=xi(e)}if(!An.has(f)&&(e=E({rel:"modulepreload",href:e},t),An.set(f,e),r.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(wl(f)))return}s=r.createElement("link"),Dt(s,"link",e),Ee(s),r.head.appendChild(s)}}}function V2(e,t,r){xa.S(e,t,r);var s=Ai;if(s&&e){var u=nt(s).hoistableStyles,f=Oi(e);t=t||"default";var p=u.get(f);if(!p){var b={loading:0,preload:null};if(p=s.querySelector(Rl(f)))b.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},r),(r=An.get(f))&&Df(e,r);var A=p=s.createElement("link");Ee(A),Dt(A,"link",e),A._p=new Promise(function(j,q){A.onload=j,A.onerror=q}),A.addEventListener("load",function(){b.loading|=1}),A.addEventListener("error",function(){b.loading|=2}),b.loading|=4,po(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:b},u.set(f,p)}}}function Y2(e,t){xa.X(e,t);var r=Ai;if(r&&e){var s=nt(r).hoistableScripts,u=xi(e),f=s.get(u);f||(f=r.querySelector(wl(u)),f||(e=E({src:e,async:!0},t),(t=An.get(u))&&Lf(e,t),f=r.createElement("script"),Ee(f),Dt(f,"link",e),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(u,f))}}function P2(e,t){xa.M(e,t);var r=Ai;if(r&&e){var s=nt(r).hoistableScripts,u=xi(e),f=s.get(u);f||(f=r.querySelector(wl(u)),f||(e=E({src:e,async:!0,type:"module"},t),(t=An.get(u))&&Lf(e,t),f=r.createElement("script"),Ee(f),Dt(f,"link",e),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(u,f))}}function Lg(e,t,r,s){var u=(u=fe.current)?mo(u):null;if(!u)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Oi(r.href),r=nt(u).hoistableStyles,s=r.get(t),s||(s={type:"style",instance:null,count:0,state:null},r.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Oi(r.href);var f=nt(u).hoistableStyles,p=f.get(e);if(p||(u=u.ownerDocument||u,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,p),(f=u.querySelector(Rl(e)))&&!f._p&&(p.instance=f,p.state.loading=5),An.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},An.set(e,r),f||X2(u,e,r,p.state))),t&&s===null)throw Error(l(528,""));return p}if(t&&s!==null)throw Error(l(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xi(r),r=nt(u).hoistableScripts,s=r.get(t),s||(s={type:"script",instance:null,count:0,state:null},r.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Oi(e){return'href="'+gn(e)+'"'}function Rl(e){return'link[rel="stylesheet"]['+e+"]"}function Bg(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function X2(e,t,r,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Dt(t,"link",r),Ee(t),e.head.appendChild(t))}function xi(e){return'[src="'+gn(e)+'"]'}function wl(e){return"script[async]"+e}function Ug(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+gn(r.href)+'"]');if(s)return t.instance=s,Ee(s),s;var u=E({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ee(s),Dt(s,"style",u),po(s,r.precedence,e),t.instance=s;case"stylesheet":u=Oi(r.href);var f=e.querySelector(Rl(u));if(f)return t.state.loading|=4,t.instance=f,Ee(f),f;s=Bg(r),(u=An.get(u))&&Df(s,u),f=(e.ownerDocument||e).createElement("link"),Ee(f);var p=f;return p._p=new Promise(function(b,A){p.onload=b,p.onerror=A}),Dt(f,"link",s),t.state.loading|=4,po(f,r.precedence,e),t.instance=f;case"script":return f=xi(r.src),(u=e.querySelector(wl(f)))?(t.instance=u,Ee(u),u):(s=r,(u=An.get(f))&&(s=E({},r),Lf(s,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ee(u),Dt(u,"link",s),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,po(s,r.precedence,e));return t.instance}function po(e,t,r){for(var s=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,f=u,p=0;p<s.length;p++){var b=s[p];if(b.dataset.precedence===t)f=b;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Df(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Lf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var go=null;function jg(e,t,r){if(go===null){var s=new Map,u=go=new Map;u.set(r,s)}else u=go,s=u.get(r),s||(s=new Map,u.set(r,s));if(s.has(e))return s;for(s.set(e,null),r=r.getElementsByTagName(e),u=0;u<r.length;u++){var f=r[u];if(!(f[re]||f[dt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(t)||"";p=e+p;var b=s.get(p);b?b.push(f):s.set(p,[f])}}return s}function Hg(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function Z2(e,t,r){if(r===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 Ig(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Q2(e,t,r,s){if(r.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var u=Oi(s.href),f=t.querySelector(Rl(u));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yo.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=f,Ee(f);return}f=t.ownerDocument||t,s=Bg(s),(u=An.get(u))&&Df(s,u),f=f.createElement("link"),Ee(f);var p=f;p._p=new Promise(function(b,A){p.onload=b,p.onerror=A}),Dt(f,"link",s),r.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=yo.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Bf=0;function K2(e,t){return e.stylesheets&&e.count===0&&bo(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var s=setTimeout(function(){if(e.stylesheets&&bo(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Bf===0&&(Bf=62500*N2());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bo(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Bf?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vo=null;function bo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vo=new Map,t.forEach($2,e),vo=null,yo.call(e))}function $2(e,t){if(!(t.state.loading&4)){var r=vo.get(e);if(r)var s=r.get(null);else{r=new Map,vo.set(e,r);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var p=u[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(r.set(p.dataset.precedence,p),s=p)}s&&r.set(null,s)}u=t.instance,p=u.getAttribute("data-precedence"),f=r.get(p)||s,f===s&&r.set(null,u),r.set(p,u),this.count++,s=yo.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Nl={$$typeof:U,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function W2(e,t,r,s,u,f,p,b,A){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=zi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zi(0),this.hiddenUpdates=zi(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function zg(e,t,r,s,u,f,p,b,A,j,q,Y){return e=new W2(e,t,r,p,A,j,q,Y,b),t=1,f===!0&&(t|=24),f=en(3,null,null,t),e.current=f,f.stateNode=e,t=dc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:r,cache:t},gc(f),e}function Gg(e){return e?(e=ai,e):ai}function kg(e,t,r,s,u,f){u=Gg(u),s.context===null?s.context=u:s.pendingContext=u,s=Ya(t),s.payload={element:r},f=f===void 0?null:f,f!==null&&(s.callback=f),r=Pa(e,s,t),r!==null&&(Kt(r,e,t),ol(r,e,t))}function qg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Uf(e,t){qg(e,t),(e=e.alternate)&&qg(e,t)}function Fg(e){if(e.tag===13||e.tag===31){var t=_r(e,67108864);t!==null&&Kt(t,e,67108864),Uf(e,67108864)}}function Vg(e){if(e.tag===13||e.tag===31){var t=ln();t=Ft(t);var r=_r(e,t);r!==null&&Kt(r,e,t),Uf(e,t)}}var _o=!0;function J2(e,t,r,s){var u=L.T;L.T=null;var f=W.p;try{W.p=2,jf(e,t,r,s)}finally{W.p=f,L.T=u}}function eS(e,t,r,s){var u=L.T;L.T=null;var f=W.p;try{W.p=8,jf(e,t,r,s)}finally{W.p=f,L.T=u}}function jf(e,t,r,s){if(_o){var u=Hf(s);if(u===null)Sf(e,t,s,Eo,r),Pg(e,s);else if(nS(u,e,t,r,s))s.stopPropagation();else if(Pg(e,s),t&4&&-1<tS.indexOf(e)){for(;u!==null;){var f=te(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=Wt(f.pendingLanes);if(p!==0){var b=f;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var A=1<<31-ct(p);b.entanglements[1]|=A,p&=~A}Pn(f),(Ie&6)===0&&(no=Ct()+500,Al(0))}}break;case 31:case 13:b=_r(f,2),b!==null&&Kt(b,f,2),ro(),Uf(f,2)}if(f=Hf(s),f===null&&Sf(e,t,s,Eo,r),f===u)break;u=f}u!==null&&s.stopPropagation()}else Sf(e,t,s,null,r)}}function Hf(e){return e=Iu(e),If(e)}var Eo=null;function If(e){if(Eo=null,e=Z(e),e!==null){var t=c(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=d(t),e!==null)return e;e=null}else if(r===31){if(e=h(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Eo=e,null}function Yg(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(mr()){case aa:return 2;case ra:return 8;case pr:case os:return 32;case Ui:return 268435456;default:return 32}default:return 32}}var zf=!1,ar=null,rr=null,ir=null,Ml=new Map,Dl=new Map,lr=[],tS="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 Pg(e,t){switch(e){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":rr=null;break;case"mouseover":case"mouseout":ir=null;break;case"pointerover":case"pointerout":Ml.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dl.delete(t.pointerId)}}function Ll(e,t,r,s,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:r,eventSystemFlags:s,nativeEvent:f,targetContainers:[u]},t!==null&&(t=te(t),t!==null&&Fg(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function nS(e,t,r,s,u){switch(t){case"focusin":return ar=Ll(ar,e,t,r,s,u),!0;case"dragenter":return rr=Ll(rr,e,t,r,s,u),!0;case"mouseover":return ir=Ll(ir,e,t,r,s,u),!0;case"pointerover":var f=u.pointerId;return Ml.set(f,Ll(Ml.get(f)||null,e,t,r,s,u)),!0;case"gotpointercapture":return f=u.pointerId,Dl.set(f,Ll(Dl.get(f)||null,e,t,r,s,u)),!0}return!1}function Xg(e){var t=Z(e.target);if(t!==null){var r=c(t);if(r!==null){if(t=r.tag,t===13){if(t=d(r),t!==null){e.blockedOn=t,Vi(e.priority,function(){Vg(r)});return}}else if(t===31){if(t=h(r),t!==null){e.blockedOn=t,Vi(e.priority,function(){Vg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function So(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Hf(e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);Hu=s,r.target.dispatchEvent(s),Hu=null}else return t=te(r),t!==null&&Fg(t),e.blockedOn=r,!1;t.shift()}return!0}function Zg(e,t,r){So(e)&&r.delete(t)}function aS(){zf=!1,ar!==null&&So(ar)&&(ar=null),rr!==null&&So(rr)&&(rr=null),ir!==null&&So(ir)&&(ir=null),Ml.forEach(Zg),Dl.forEach(Zg)}function To(e,t){e.blockedOn===t&&(e.blockedOn=null,zf||(zf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,aS)))}var Ao=null;function Qg(e){Ao!==e&&(Ao=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ao===e&&(Ao=null);for(var t=0;t<e.length;t+=3){var r=e[t],s=e[t+1],u=e[t+2];if(typeof s!="function"){if(If(s||r)===null)continue;break}var f=te(r);f!==null&&(e.splice(t,3),t-=3,jc(f,{pending:!0,data:u,method:r.method,action:s},s,u))}}))}function Ci(e){function t(A){return To(A,e)}ar!==null&&To(ar,e),rr!==null&&To(rr,e),ir!==null&&To(ir,e),Ml.forEach(t),Dl.forEach(t);for(var r=0;r<lr.length;r++){var s=lr[r];s.blockedOn===e&&(s.blockedOn=null)}for(;0<lr.length&&(r=lr[0],r.blockedOn===null);)Xg(r),r.blockedOn===null&&lr.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(s=0;s<r.length;s+=3){var u=r[s],f=r[s+1],p=u[Je]||null;if(typeof f=="function")p||Qg(r);else if(p){var b=null;if(f&&f.hasAttribute("formAction")){if(u=f,p=f[Je]||null)b=p.formAction;else if(If(u)!==null)continue}else b=p.action;typeof b=="function"?r[s+1]=b:(r.splice(s,3),s-=3),Qg(r)}}}function Kg(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(p){return u=p})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),s||setTimeout(r,20)}function r(){if(!s&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Gf(e){this._internalRoot=e}Oo.prototype.render=Gf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var r=t.current,s=ln();kg(r,s,e,t,null,null)},Oo.prototype.unmount=Gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kg(e.current,2,null,e,null,null),ro(),t[oa]=null}};function Oo(e){this._internalRoot=e}Oo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fi();e={blockedOn:null,target:e,priority:t};for(var r=0;r<lr.length&&t!==0&&t<lr[r].priority;r++);lr.splice(r,0,e),r===0&&Xg(e)}};var $g=a.version;if($g!=="19.2.0")throw Error(l(527,$g,"19.2.0"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=g(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var rS={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xo.isDisabled&&xo.supportsFiber)try{kn=xo.inject(rS),St=xo}catch{}}return Ul.createRoot=function(e,t){if(!o(e))throw Error(l(299));var r=!1,s="",u=rp,f=ip,p=lp;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=zg(e,1,!1,null,null,r,s,null,u,f,p,Kg),e[oa]=t.current,Ef(e),new Gf(t)},Ul.hydrateRoot=function(e,t,r){if(!o(e))throw Error(l(299));var s=!1,u="",f=rp,p=ip,b=lp,A=null;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(f=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(b=r.onRecoverableError),r.formState!==void 0&&(A=r.formState)),t=zg(e,1,!0,t,r??null,s,u,A,f,p,b,Kg),t.context=Gg(null),r=t.current,s=ln(),s=Ft(s),u=Ya(s),u.callback=null,Pa(r,u,s),r=s,t.current.lanes=r,Ia(t,r),Pn(t),e[oa]=t.current,Ef(e),new Oo(t)},Ul.version="19.2.0",Ul}var sy;function mS(){if(sy)return qf.exports;sy=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(a){console.error(a)}}return n(),qf.exports=hS(),qf.exports}var pS=mS(),H=_u();const kv=bu(H);var Xf={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 oy;function gS(){if(oy)return Zf;oy=1;var n=_u();function a(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:a,l=n.useSyncExternalStore,o=n.useRef,c=n.useEffect,d=n.useMemo,h=n.useDebugValue;return Zf.useSyncExternalStoreWithSelector=function(m,g,v,E,S){var w=o(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=d(function(){function T(M){if(!D){if(D=!0,z=M,M=E(M),S!==void 0&&_.hasValue){var P=_.value;if(S(P,M))return U=P}return U=M}if(P=U,i(z,M))return P;var Q=E(M);return S!==void 0&&S(P,Q)?(z=M,P):(z=M,U=Q)}var D=!1,z,U,G=v===void 0?null:v;return[function(){return T(g())},G===null?void 0:function(){return T(G())}]},[g,v,E,S]);var x=l(m,w[0],w[1]);return c(function(){_.hasValue=!0,_.value=x},[x]),h(x),x},Zf}var uy;function yS(){return uy||(uy=1,Xf.exports=gS()),Xf.exports}var vS=yS(),bS=H.version.startsWith("19"),_S=Symbol.for(bS?"react.transitional.element":"react.element"),ES=Symbol.for("react.portal"),SS=Symbol.for("react.fragment"),TS=Symbol.for("react.strict_mode"),AS=Symbol.for("react.profiler"),OS=Symbol.for("react.consumer"),xS=Symbol.for("react.context"),qv=Symbol.for("react.forward_ref"),CS=Symbol.for("react.suspense"),RS=Symbol.for("react.suspense_list"),xh=Symbol.for("react.memo"),wS=Symbol.for("react.lazy"),NS=qv,MS=xh;function DS(n){if(typeof n=="object"&&n!==null){const{$$typeof:a}=n;switch(a){case _S:switch(n=n.type,n){case SS:case AS:case TS:case CS:case RS:return n;default:switch(n=n&&n.$$typeof,n){case xS:case qv:case wS:case xh:return n;case OS:return n;default:return a}}case ES:return a}}}function LS(n){return DS(n)===xh}function BS(n,a,i,l,{areStatesEqual:o,areOwnPropsEqual:c,areStatePropsEqual:d}){let h=!1,m,g,v,E,S;function w(z,U){return m=z,g=U,v=n(m,g),E=a(l,g),S=i(v,E,g),h=!0,S}function _(){return v=n(m,g),a.dependsOnOwnProps&&(E=a(l,g)),S=i(v,E,g),S}function x(){return n.dependsOnOwnProps&&(v=n(m,g)),a.dependsOnOwnProps&&(E=a(l,g)),S=i(v,E,g),S}function T(){const z=n(m,g),U=!d(z,v);return v=z,U&&(S=i(v,E,g)),S}function D(z,U){const G=!c(U,g),M=!o(z,m,U,g);return m=z,g=U,G&&M?_():G?x():M?T():S}return function(U,G){return h?D(U,G):w(U,G)}}function US(n,{initMapStateToProps:a,initMapDispatchToProps:i,initMergeProps:l,...o}){const c=a(n,o),d=i(n,o),h=l(n,o);return BS(c,d,h,n,o)}function jS(n,a){const i={};for(const l in n){const o=n[l];typeof o=="function"&&(i[l]=(...c)=>a(o(...c)))}return i}function Xd(n){return function(i){const l=n(i);function o(){return l}return o.dependsOnOwnProps=!1,o}}function cy(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function Fv(n,a){return function(l,{displayName:o}){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=cy(n);let g=c(h,m);return typeof g=="function"&&(c.mapToProps=g,c.dependsOnOwnProps=cy(g),g=c(h,m)),g},c}}function Ch(n,a){return(i,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${a} argument when connecting component ${l.wrappedComponentName}.`)}}function HS(n){return n&&typeof n=="object"?Xd(a=>jS(n,a)):n?typeof n=="function"?Fv(n):Ch(n,"mapDispatchToProps"):Xd(a=>({dispatch:a}))}function IS(n){return n?typeof n=="function"?Fv(n):Ch(n,"mapStateToProps"):Xd(()=>({}))}function zS(n,a,i){return{...i,...n,...a}}function GS(n){return function(i,{displayName:l,areMergedPropsEqual:o}){let c=!1,d;return function(m,g,v){const E=n(m,g,v);return c?o(E,d)||(d=E):(c=!0,d=E),d}}}function kS(n){return n?typeof n=="function"?GS(n):Ch(n,"mergeProps"):()=>zS}function qS(n){n()}function FS(){let n=null,a=null;return{clear(){n=null,a=null},notify(){qS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let l=n;for(;l;)i.push(l),l=l.next;return i},subscribe(i){let l=!0;const o=a={callback:i,next:null,prev:a};return o.prev?o.prev.next=o:n=o,function(){!l||n===null||(l=!1,o.next?o.next.prev=o.prev:a=o.prev,o.prev?o.prev.next=o.next:n=o.next)}}}}var fy={notify(){},get:()=>[]};function Vv(n,a){let i,l=fy,o=0,c=!1;function d(x){v();const T=l.subscribe(x);let D=!1;return()=>{D||(D=!0,T(),E())}}function h(){l.notify()}function m(){_.onStateChange&&_.onStateChange()}function g(){return c}function v(){o++,i||(i=a?a.addNestedSub(m):n.subscribe(m),l=FS())}function E(){o--,i&&o===0&&(i(),i=void 0,l.clear(),l=fy)}function S(){c||(c=!0,v())}function w(){c&&(c=!1,E())}const _={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:g,trySubscribe:S,tryUnsubscribe:w,getListeners:()=>l};return _}var VS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",YS=VS(),PS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",XS=PS(),ZS=()=>YS||XS?H.useLayoutEffect:H.useEffect,ou=ZS();function dy(n,a){return n===a?n!==0||a!==0||1/n===1/a:n!==n&&a!==a}function Qf(n,a){if(dy(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;const i=Object.keys(n),l=Object.keys(a);if(i.length!==l.length)return!1;for(let o=0;o<i.length;o++)if(!Object.prototype.hasOwnProperty.call(a,i[o])||!dy(n[i[o]],a[i[o]]))return!1;return!0}var QS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KS={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},Yv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},WS={[NS]:$S,[MS]:Yv};function hy(n){return LS(n)?Yv:WS[n.$$typeof]||QS}var JS=Object.defineProperty,eT=Object.getOwnPropertyNames,my=Object.getOwnPropertySymbols,tT=Object.getOwnPropertyDescriptor,nT=Object.getPrototypeOf,py=Object.prototype;function Zd(n,a){if(typeof a!="string"){if(py){const c=nT(a);c&&c!==py&&Zd(n,c)}let i=eT(a);my&&(i=i.concat(my(a)));const l=hy(n),o=hy(a);for(let c=0;c<i.length;++c){const d=i[c];if(!KS[d]&&!(o&&o[d])&&!(l&&l[d])){const h=tT(a,d);try{JS(n,d,h)}catch{}}}}return n}var aT=Symbol.for("react-redux-context"),rT=typeof globalThis<"u"?globalThis:{};function iT(){if(!H.createContext)return{};const n=rT[aT]??=new Map;let a=n.get(H.createContext);return a||(a=H.createContext(null),n.set(H.createContext,a)),a}var Da=iT(),lT=[null,null];function sT(n,a,i){ou(()=>n(...a),i)}function oT(n,a,i,l,o,c){n.current=l,i.current=!1,o.current&&(o.current=null,c())}function uT(n,a,i,l,o,c,d,h,m,g,v){if(!n)return()=>{};let E=!1,S=null;const w=()=>{if(E||!h.current)return;const x=a.getState();let T,D;try{T=l(x,o.current)}catch(z){D=z,S=z}D||(S=null),T===c.current?d.current||g():(c.current=T,m.current=T,d.current=!0,v())};return i.onStateChange=w,i.trySubscribe(),w(),()=>{if(E=!0,i.tryUnsubscribe(),i.onStateChange=null,S)throw S}}function cT(n,a){return n===a}function fT(n,a,i,{pure:l,areStatesEqual:o=cT,areOwnPropsEqual:c=Qf,areStatePropsEqual:d=Qf,areMergedPropsEqual:h=Qf,forwardRef:m=!1,context:g=Da}={}){const v=g,E=IS(n),S=HS(a),w=kS(i),_=!!n;return T=>{const D=T.displayName||T.name||"Component",z=`Connect(${D})`,U={shouldHandleStateChanges:_,displayName:z,wrappedComponentName:D,WrappedComponent:T,initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:w,areStatesEqual:o,areStatePropsEqual:d,areOwnPropsEqual:c,areMergedPropsEqual:h};function G(Q){const[ae,Be,He]=H.useMemo(()=>{const{reactReduxForwardedRef:bt,...jt}=Q;return[Q.context,bt,jt]},[Q]),ge=H.useMemo(()=>{let bt=v;return ae?.Consumer,bt},[ae,v]),be=H.useContext(ge),K=!!Q.store&&!!Q.store.getState&&!!Q.store.dispatch,Se=!!be&&!!be.store,se=K?Q.store:be.store,L=Se?be.getServerState:se.getState,W=H.useMemo(()=>US(se.dispatch,U),[se]),[oe,_e]=H.useMemo(()=>{if(!_)return lT;const bt=Vv(se,K?void 0:be.subscription),jt=bt.notifyNestedSubs.bind(bt);return[bt,jt]},[se,K,be]),me=H.useMemo(()=>K?be:{...be,subscription:oe},[K,be,oe]),O=H.useRef(void 0),F=H.useRef(He),X=H.useRef(void 0),J=H.useRef(!1),ee=H.useRef(!1),fe=H.useRef(void 0);ou(()=>(ee.current=!0,()=>{ee.current=!1}),[]);const Ae=H.useMemo(()=>()=>X.current&&He===F.current?X.current:W(se.getState(),He),[se,He]),We=H.useMemo(()=>jt=>oe?uT(_,se,oe,W,F,O,J,ee,X,_e,jt):()=>{},[oe]);sT(oT,[F,O,J,He,X,_e]);let ke;try{ke=H.useSyncExternalStore(We,Ae,L?()=>W(L(),He):Ae)}catch(bt){throw fe.current&&(bt.message+=`
|
|
58
|
-
The error may be correlated with this previous error:
|
|
59
|
-
${fe.current.stack}
|
|
60
|
-
|
|
61
|
-
`),bt}ou(()=>{fe.current=void 0,X.current=void 0,O.current=ke});const $t=H.useMemo(()=>H.createElement(T,{...ke,ref:Be}),[Be,T,ke]);return H.useMemo(()=>_?H.createElement(ge.Provider,{value:me},$t):$t,[ge,$t,me])}const P=H.memo(G);if(P.WrappedComponent=T,P.displayName=G.displayName=z,m){const ae=H.forwardRef(function(He,ge){return H.createElement(P,{...He,reactReduxForwardedRef:ge})});return ae.displayName=z,ae.WrappedComponent=T,Zd(ae,T)}return Zd(P,T)}}var dT=fT;function hT(n){const{children:a,context:i,serverState:l,store:o}=n,c=H.useMemo(()=>{const m=Vv(o);return{store:o,subscription:m,getServerState:l?()=>l:void 0}},[o,l]),d=H.useMemo(()=>o.getState(),[o]);ou(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==o.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,d]);const h=i||Da;return H.createElement(h.Provider,{value:c},a)}var mT=hT;function Rh(n=Da){return function(){return H.useContext(n)}}var Pv=Rh();function Xv(n=Da){const a=n===Da?Pv:Rh(n),i=()=>{const{store:l}=a();return l};return Object.assign(i,{withTypes:()=>i}),i}var pT=Xv();function gT(n=Da){const a=n===Da?pT:Xv(n),i=()=>a().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var yT=gT(),vT=(n,a)=>n===a;function bT(n=Da){const a=n===Da?Pv:Rh(n),i=(l,o={})=>{const{equalityFn:c=vT}=typeof o=="function"?{equalityFn:o}:o,d=a(),{store:h,subscription:m,getServerState:g}=d;H.useRef(!0);const v=H.useCallback({[l.name](S){return l(S)}}[l.name],[l]),E=vS.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,g||h.getState,v,c);return H.useDebugValue(E),E};return Object.assign(i,{withTypes:()=>i}),i}var _T=bT(),Kf={exports:{}};/*!
|
|
62
|
-
Copyright (c) 2018 Jed Watson.
|
|
63
|
-
Licensed under the MIT License (MIT), see
|
|
64
|
-
http://jedwatson.github.io/classnames
|
|
65
|
-
*/var gy;function ET(){return gy||(gy=1,(function(n){(function(){var a={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(c=o(c,l(h)))}return c}function l(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)a.call(c,h)&&c[h]&&(d=o(d,h));return d}function o(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 ST=ET();const $=bu(ST);var Qd=function(n,a){return Qd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(i[o]=l[o])},Qd(n,a)};function Cn(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Qd(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}var le=function(){return le=Object.assign||function(a){for(var i,l=1,o=arguments.length;l<o;l++){i=arguments[l];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[c]=i[c])}return a},le.apply(this,arguments)};function Eu(n,a){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&a.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(n);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(n,l[o])&&(i[l[o]]=n[l[o]]);return i}function $n(n,a,i){if(i||arguments.length===2)for(var l=0,o=a.length,c;l<o;l++)(c||!(l in a))&&(c||(c=Array.prototype.slice.call(a,0,l)),c[l]=a[l]);return n.concat(c||Array.prototype.slice.call(a))}function Qn(n,a){var i=a&&a.cache?a.cache:wT,l=a&&a.serializer?a.serializer:CT,o=a&&a.strategy?a.strategy:OT;return o(n,{cache:i,serializer:l})}function TT(n){return n==null||typeof n=="number"||typeof n=="boolean"}function AT(n,a,i,l){var o=TT(l)?l:i(l),c=a.get(o);return typeof c>"u"&&(c=n.call(this,l),a.set(o,c)),c}function Zv(n,a,i){var l=Array.prototype.slice.call(arguments,3),o=i(l),c=a.get(o);return typeof c>"u"&&(c=n.apply(this,l),a.set(o,c)),c}function Qv(n,a,i,l,o){return i.bind(a,n,l,o)}function OT(n,a){var i=n.length===1?AT:Zv;return Qv(n,this,i,a.cache.create(),a.serializer)}function xT(n,a){return Qv(n,this,Zv,a.cache.create(),a.serializer)}var CT=function(){return JSON.stringify(arguments)},RT=(function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(a){return this.cache[a]},n.prototype.set=function(a,i){this.cache[a]=i},n})(),wT={create:function(){return new RT}},Kn={variadic:xT},Me;(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"})(Me||(Me={}));var $e;(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"})($e||($e={}));var Ni;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ni||(Ni={}));function yy(n){return n.type===$e.literal}function NT(n){return n.type===$e.argument}function Kv(n){return n.type===$e.number}function $v(n){return n.type===$e.date}function Wv(n){return n.type===$e.time}function Jv(n){return n.type===$e.select}function eb(n){return n.type===$e.plural}function MT(n){return n.type===$e.pound}function tb(n){return n.type===$e.tag}function nb(n){return!!(n&&typeof n=="object"&&n.type===Ni.number)}function Kd(n){return!!(n&&typeof n=="object"&&n.type===Ni.dateTime)}var ab=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DT=/(?:[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 LT(n){var a={};return n.replace(DT,function(i){var l=i.length;switch(i[0]){case"G":a.era=l===4?"long":l===5?"narrow":"short";break;case"y":a.year=l===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":a.month=["numeric","2-digit","short","long","narrow"][l-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":a.day=["numeric","2-digit"][l-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":a.weekday=l===4?"long":l===5?"narrow":"short";break;case"e":if(l<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][l-4];break;case"c":if(l<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][l-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][l-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][l-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][l-1];break;case"k":a.hourCycle="h24",a.hour=["numeric","2-digit"][l-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":a.minute=["numeric","2-digit"][l-1];break;case"s":a.second=["numeric","2-digit"][l-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":a.timeZoneName=l<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),a}var BT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function UT(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var a=n.split(BT).filter(function(S){return S.length>0}),i=[],l=0,o=a;l<o.length;l++){var c=o[l],d=c.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),g=0,v=m;g<v.length;g++){var E=v[g];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function jT(n){return n.replace(/^(.*?)-/,"")}var vy=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,rb=/^(@+)?(\+|#+)?[rs]?$/g,HT=/(\*)(0+)|(#+)(0+)|(0+)/g,ib=/^(0+)$/;function by(n){var a={};return n[n.length-1]==="r"?a.roundingPriority="morePrecision":n[n.length-1]==="s"&&(a.roundingPriority="lessPrecision"),n.replace(rb,function(i,l,o){return typeof o!="string"?(a.minimumSignificantDigits=l.length,a.maximumSignificantDigits=l.length):o==="+"?a.minimumSignificantDigits=l.length:l[0]==="#"?a.maximumSignificantDigits=l.length:(a.minimumSignificantDigits=l.length,a.maximumSignificantDigits=l.length+(typeof o=="string"?o.length:0)),""}),a}function lb(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 IT(n){var a;if(n[0]==="E"&&n[1]==="E"?(a={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(a={notation:"scientific"},n=n.slice(1)),a){var i=n.slice(0,2);if(i==="+!"?(a.signDisplay="always",n=n.slice(2)):i==="+?"&&(a.signDisplay="exceptZero",n=n.slice(2)),!ib.test(n))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=n.length}return a}function _y(n){var a={},i=lb(n);return i||a}function zT(n){for(var a={},i=0,l=n;i<l.length;i++){var o=l[i];switch(o.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=o.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=jT(o.options[0]);continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=le(le(le({},a),{notation:"scientific"}),o.options.reduce(function(m,g){return le(le({},m),_y(g))},{}));continue;case"engineering":a=le(le(le({},a),{notation:"engineering"}),o.options.reduce(function(m,g){return le(le({},m),_y(g))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":a.roundingMode="floor";continue;case"rounding-mode-ceiling":a.roundingMode="ceil";continue;case"rounding-mode-down":a.roundingMode="trunc";continue;case"rounding-mode-up":a.roundingMode="expand";continue;case"rounding-mode-half-even":a.roundingMode="halfEven";continue;case"rounding-mode-half-down":a.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":a.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(HT,function(m,g,v,E,S,w){if(g)a.minimumIntegerDigits=v.length;else{if(E&&S)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ib.test(o.stem)){a.minimumIntegerDigits=o.stem.length;continue}if(vy.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(vy,function(m,g,v,E,S,w){return v==="*"?a.minimumFractionDigits=g.length:E&&E[0]==="#"?a.maximumFractionDigits=E.length:S&&w?(a.minimumFractionDigits=S.length,a.maximumFractionDigits=S.length+w.length):(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length),""});var c=o.options[0];c==="w"?a=le(le({},a),{trailingZeroDisplay:"stripIfInteger"}):c&&(a=le(le({},a),by(c)));continue}if(rb.test(o.stem)){a=le(le({},a),by(o.stem));continue}var d=lb(o.stem);d&&(a=le(le({},a),d));var h=IT(o.stem);h&&(a=le(le({},a),h))}return a}var Ro={"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 GT(n,a){for(var i="",l=0;l<n.length;l++){var o=n.charAt(l);if(o==="j"){for(var c=0;l+1<n.length&&n.charAt(l+1)===o;)c++,l++;var d=1+(c&1),h=c<2?1:3+(c>>1),m="a",g=kT(a);for((g=="H"||g=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=g+i}else o==="J"?i+="H":i+=o}return i}function kT(n){var a=n.hourCycle;if(a===void 0&&n.hourCycles&&n.hourCycles.length&&(a=n.hourCycles[0]),a)switch(a){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,l;i!=="root"&&(l=n.maximize().region);var o=Ro[l||""]||Ro[i||""]||Ro["".concat(i,"-001")]||Ro["001"];return o[0]}var $f,qT=new RegExp("^".concat(ab.source,"*")),FT=new RegExp("".concat(ab.source,"*$"));function Le(n,a){return{start:n,end:a}}var VT=!!String.prototype.startsWith&&"_a".startsWith("a",1),YT=!!String.fromCodePoint,PT=!!Object.fromEntries,XT=!!String.prototype.codePointAt,ZT=!!String.prototype.trimStart,QT=!!String.prototype.trimEnd,KT=!!Number.isSafeInteger,$T=KT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},$d=!0;try{var WT=ob("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$d=(($f=WT.exec("a"))===null||$f===void 0?void 0:$f[0])==="a"}catch{$d=!1}var Ey=VT?function(a,i,l){return a.startsWith(i,l)}:function(a,i,l){return a.slice(l,l+i.length)===i},Wd=YT?String.fromCodePoint:function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var l="",o=a.length,c=0,d;o>c;){if(d=a[c++],d>1114111)throw RangeError(d+" is not a valid code point");l+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return l},Sy=PT?Object.fromEntries:function(a){for(var i={},l=0,o=a;l<o.length;l++){var c=o[l],d=c[0],h=c[1];i[d]=h}return i},sb=XT?function(a,i){return a.codePointAt(i)}:function(a,i){var l=a.length;if(!(i<0||i>=l)){var o=a.charCodeAt(i),c;return o<55296||o>56319||i+1===l||(c=a.charCodeAt(i+1))<56320||c>57343?o:(o-55296<<10)+(c-56320)+65536}},JT=ZT?function(a){return a.trimStart()}:function(a){return a.replace(qT,"")},eA=QT?function(a){return a.trimEnd()}:function(a){return a.replace(FT,"")};function ob(n,a){return new RegExp(n,a)}var Jd;if($d){var Ty=ob("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Jd=function(a,i){var l;Ty.lastIndex=i;var o=Ty.exec(a);return(l=o[1])!==null&&l!==void 0?l:""}}else Jd=function(a,i){for(var l=[];;){var o=sb(a,i);if(o===void 0||ub(o)||rA(o))break;l.push(o),i+=o>=65536?2:1}return Wd.apply(void 0,l)};var tA=(function(){function n(a,i){i===void 0&&(i={}),this.message=a,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(a,i,l){for(var o=[];!this.isEOF();){var c=this.char();if(c===123){var d=this.parseArgument(a,l);if(d.err)return d;o.push(d.val)}else{if(c===125&&a>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),o.push({type:$e.pound,location:Le(h,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(Me.UNMATCHED_CLOSING_TAG,Le(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&eh(this.peek()||0)){var d=this.parseTag(a,i);if(d.err)return d;o.push(d.val)}else{var d=this.parseLiteral(a,i);if(d.err)return d;o.push(d.val)}}}return{val:o,err:null}},n.prototype.parseTag=function(a,i){var l=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$e.literal,value:"<".concat(o,"/>"),location:Le(l,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(a+1,i,!0);if(c.err)return c;var d=c.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!eh(this.char()))return this.error(Me.INVALID_TAG,Le(h,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return o!==g?this.error(Me.UNMATCHED_CLOSING_TAG,Le(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$e.tag,value:o,children:d,location:Le(l,this.clonePosition())},err:null}:this.error(Me.INVALID_TAG,Le(h,this.clonePosition())))}else return this.error(Me.UNCLOSED_TAG,Le(l,this.clonePosition()))}else return this.error(Me.INVALID_TAG,Le(l,this.clonePosition()))},n.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&aA(this.char());)this.bump();return this.message.slice(a,this.offset())},n.prototype.parseLiteral=function(a,i){for(var l=this.clonePosition(),o="";;){var c=this.tryParseQuote(i);if(c){o+=c;continue}var d=this.tryParseUnquoted(a,i);if(d){o+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){o+=h;continue}break}var m=Le(l,this.clonePosition());return{val:{type:$e.literal,value:o,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nA(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(a){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(a==="plural"||a==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var l=this.char();if(l===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(l);this.bump()}return Wd.apply(void 0,i)},n.prototype.tryParseUnquoted=function(a,i){if(this.isEOF())return null;var l=this.char();return l===60||l===123||l===35&&(i==="plural"||i==="selectordinal")||l===125&&a>0?null:(this.bump(),Wd(l))},n.prototype.parseArgument=function(a,i){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Me.EXPECT_ARGUMENT_CLOSING_BRACE,Le(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Me.EMPTY_ARGUMENT,Le(l,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Me.MALFORMED_ARGUMENT,Le(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Me.EXPECT_ARGUMENT_CLOSING_BRACE,Le(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$e.argument,value:o,location:Le(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Me.EXPECT_ARGUMENT_CLOSING_BRACE,Le(l,this.clonePosition())):this.parseArgumentOptions(a,i,o,l);default:return this.error(Me.MALFORMED_ARGUMENT,Le(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),i=this.offset(),l=Jd(this.message,i),o=i+l.length;this.bumpTo(o);var c=this.clonePosition(),d=Le(a,c);return{value:l,location:d}},n.prototype.parseArgumentOptions=function(a,i,l,o){var c,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(Me.EXPECT_ARGUMENT_TYPE,Le(d,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var S=eA(E.val);if(S.length===0)return this.error(Me.EXPECT_ARGUMENT_STYLE,Le(this.clonePosition(),this.clonePosition()));var w=Le(v,this.clonePosition());g={style:S,styleLocation:w}}var _=this.tryParseArgumentClose(o);if(_.err)return _;var x=Le(o,this.clonePosition());if(g&&Ey(g?.style,"::",0)){var T=JT(g.style.slice(2));if(h==="number"){var E=this.parseNumberSkeletonFromString(T,g.styleLocation);return E.err?E:{val:{type:$e.number,value:l,location:x,style:E.val},err:null}}else{if(T.length===0)return this.error(Me.EXPECT_DATE_TIME_SKELETON,x);var D=T;this.locale&&(D=GT(T,this.locale));var S={type:Ni.dateTime,pattern:D,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?LT(D):{}},z=h==="date"?$e.date:$e.time;return{val:{type:z,value:l,location:x,style:S},err:null}}}return{val:{type:h==="number"?$e.number:h==="date"?$e.date:$e.time,value:l,location:x,style:(c=g?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var U=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Me.EXPECT_SELECT_ARGUMENT_OPTIONS,Le(U,le({},U)));this.bumpSpace();var G=this.parseIdentifierIfPossible(),M=0;if(h!=="select"&&G.value==="offset"){if(!this.bumpIf(":"))return this.error(Me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Le(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(Me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),G=this.parseIdentifierIfPossible(),M=E.val}var P=this.tryParsePluralOrSelectOptions(a,h,i,G);if(P.err)return P;var _=this.tryParseArgumentClose(o);if(_.err)return _;var Q=Le(o,this.clonePosition());return h==="select"?{val:{type:$e.select,value:l,options:Sy(P.val),location:Q},err:null}:{val:{type:$e.plural,value:l,options:Sy(P.val),offset:M,pluralType:h==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(Me.INVALID_ARGUMENT_TYPE,Le(d,m))}},n.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error(Me.EXPECT_ARGUMENT_CLOSING_BRACE,Le(a,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var a=0,i=this.clonePosition();!this.isEOF();){var l=this.char();switch(l){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Le(o,this.clonePosition()));this.bump();break}case 123:{a+=1,this.bump();break}case 125:{if(a>0)a-=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(a,i){var l=[];try{l=UT(a)}catch{return this.error(Me.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ni.number,tokens:l,location:i,parsedOptions:this.shouldParseSkeletons?zT(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(a,i,l,o){for(var c,d=!1,h=[],m=new Set,g=o.value,v=o.location;;){if(g.length===0){var E=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var S=this.tryParseDecimalInteger(Me.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me.INVALID_PLURAL_ARGUMENT_SELECTOR);if(S.err)return S;v=Le(E,this.clonePosition()),g=this.message.slice(E.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?Me.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);g==="other"&&(d=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?Me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Le(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(a+1,i,l);if(_.err)return _;var x=this.tryParseArgumentClose(w);if(x.err)return x;h.push([g,{value:_.val,location:Le(w,this.clonePosition())}]),m.add(g),this.bumpSpace(),c=this.parseIdentifierIfPossible(),g=c.value,v=c.location}return h.length===0?this.error(i==="select"?Me.EXPECT_SELECT_ARGUMENT_SELECTOR:Me.EXPECT_PLURAL_ARGUMENT_SELECTOR,Le(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(Me.MISSING_OTHER_CLAUSE,Le(this.clonePosition(),this.clonePosition())):{val:h,err:null}},n.prototype.tryParseDecimalInteger=function(a,i){var l=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(l=-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=Le(o,this.clonePosition());return c?(d*=l,$T(d)?{val:d,err:null}:this.error(i,m)):this.error(a,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 a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");var i=sb(this.message,a);if(i===void 0)throw Error("Offset ".concat(a," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(a,i){return{val:null,err:{kind:a,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var a=this.char();a===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}},n.prototype.bumpIf=function(a){if(Ey(this.message,a,this.offset())){for(var i=0;i<a.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(a){var i=this.offset(),l=this.message.indexOf(a,i);return l>=0?(this.bumpTo(l),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(a){if(this.offset()>a)throw Error("targetOffset ".concat(a," must be greater than or equal to the current offset ").concat(this.offset()));for(a=Math.min(a,this.message.length);;){var i=this.offset();if(i===a)break;if(i>a)throw Error("targetOffset ".concat(a," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&ub(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var a=this.char(),i=this.offset(),l=this.message.charCodeAt(i+(a>=65536?2:1));return l??null},n})();function eh(n){return n>=97&&n<=122||n>=65&&n<=90}function nA(n){return eh(n)||n===47}function aA(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 ub(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function rA(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 th(n){n.forEach(function(a){if(delete a.location,Jv(a)||eb(a))for(var i in a.options)delete a.options[i].location,th(a.options[i].value);else Kv(a)&&nb(a.style)||($v(a)||Wv(a))&&Kd(a.style)?delete a.style.location:tb(a)&&th(a.children)})}function iA(n,a){a===void 0&&(a={}),a=le({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var i=new tA(n,a).parse();if(i.err){var l=SyntaxError(Me[i.err.kind]);throw l.location=i.err.location,l.originalMessage=i.err.message,l}return a?.captureLocation||th(i.val),i.val}var ea;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(ea||(ea={}));var dr=(function(n){Cn(a,n);function a(i,l,o){var c=n.call(this,i)||this;return c.code=l,c.originalMessage=o,c}return a.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},a})(Error),Ay=(function(n){Cn(a,n);function a(i,l,o,c){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(l,'". Options are "').concat(Object.keys(o).join('", "'),'"'),ea.INVALID_VALUE,c)||this}return a})(dr),lA=(function(n){Cn(a,n);function a(i,l,o){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(l),ea.INVALID_VALUE,o)||this}return a})(dr),sA=(function(n){Cn(a,n);function a(i,l){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(l,'"'),ea.MISSING_VALUE,l)||this}return a})(dr),zt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(zt||(zt={}));function oA(n){return n.length<2?n:n.reduce(function(a,i){var l=a[a.length-1];return!l||l.type!==zt.literal||i.type!==zt.literal?a.push(i):l.value+=i.value,a},[])}function cb(n){return typeof n=="function"}function tu(n,a,i,l,o,c,d){if(n.length===1&&yy(n[0]))return[{type:zt.literal,value:n[0].value}];for(var h=[],m=0,g=n;m<g.length;m++){var v=g[m];if(yy(v)){h.push({type:zt.literal,value:v.value});continue}if(MT(v)){typeof c=="number"&&h.push({type:zt.literal,value:i.getNumberFormat(a).format(c)});continue}var E=v.value;if(!(o&&E in o))throw new sA(E,d);var S=o[E];if(NT(v)){(!S||typeof S=="string"||typeof S=="number")&&(S=typeof S=="string"||typeof S=="number"?String(S):""),h.push({type:typeof S=="string"?zt.literal:zt.object,value:S});continue}if($v(v)){var w=typeof v.style=="string"?l.date[v.style]:Kd(v.style)?v.style.parsedOptions:void 0;h.push({type:zt.literal,value:i.getDateTimeFormat(a,w).format(S)});continue}if(Wv(v)){var w=typeof v.style=="string"?l.time[v.style]:Kd(v.style)?v.style.parsedOptions:l.time.medium;h.push({type:zt.literal,value:i.getDateTimeFormat(a,w).format(S)});continue}if(Kv(v)){var w=typeof v.style=="string"?l.number[v.style]:nb(v.style)?v.style.parsedOptions:void 0;w&&w.scale&&(S=S*(w.scale||1)),h.push({type:zt.literal,value:i.getNumberFormat(a,w).format(S)});continue}if(tb(v)){var _=v.children,x=v.value,T=o[x];if(!cb(T))throw new lA(x,"function",d);var D=tu(_,a,i,l,o,c),z=T(D.map(function(M){return M.value}));Array.isArray(z)||(z=[z]),h.push.apply(h,z.map(function(M){return{type:typeof M=="string"?zt.literal:zt.object,value:M}}))}if(Jv(v)){var U=v.options[S]||v.options.other;if(!U)throw new Ay(v.value,S,Object.keys(v.options),d);h.push.apply(h,tu(U.value,a,i,l,o));continue}if(eb(v)){var U=v.options["=".concat(S)];if(!U){if(!Intl.PluralRules)throw new dr(`Intl.PluralRules is not available in this environment.
|
|
66
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,ea.MISSING_INTL_API,d);var G=i.getPluralRules(a,{type:v.pluralType}).select(S-(v.offset||0));U=v.options[G]||v.options.other}if(!U)throw new Ay(v.value,S,Object.keys(v.options),d);h.push.apply(h,tu(U.value,a,i,l,o,S-(v.offset||0)));continue}}return oA(h)}function uA(n,a){return a?le(le(le({},n||{}),a||{}),Object.keys(n).reduce(function(i,l){return i[l]=le(le({},n[l]),a[l]||{}),i},{})):n}function cA(n,a){return a?Object.keys(n).reduce(function(i,l){return i[l]=uA(n[l],a[l]),i},le({},n)):n}function Wf(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function fA(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Qn(function(){for(var a,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((a=Intl.NumberFormat).bind.apply(a,$n([void 0],i,!1)))},{cache:Wf(n.number),strategy:Kn.variadic}),getDateTimeFormat:Qn(function(){for(var a,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((a=Intl.DateTimeFormat).bind.apply(a,$n([void 0],i,!1)))},{cache:Wf(n.dateTime),strategy:Kn.variadic}),getPluralRules:Qn(function(){for(var a,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((a=Intl.PluralRules).bind.apply(a,$n([void 0],i,!1)))},{cache:Wf(n.pluralRules),strategy:Kn.variadic})}}var fb=(function(){function n(a,i,l,o){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 v=g.reduce(function(E,S){return!E.length||S.type!==zt.literal||typeof E[E.length-1]!="string"?E.push(S.value):E[E.length-1]+=S.value,E},[]);return v.length<=1?v[0]||"":v},this.formatToParts=function(m){return tu(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 a=="string"){if(this.message=a,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=o||{};d.formatters;var h=Eu(d,["formatters"]);this.ast=n.__parse(a,le(le({},h),{locale:this.resolvedLocale}))}else this.ast=a;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=cA(n.formats,l),this.formatters=o&&o.formatters||fA(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(a){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(a);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof a=="string"?a:a[0])}},n.__parse=iA,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})(),qr;(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"})(qr||(qr={}));var ns=(function(n){Cn(a,n);function a(i,l,o){var c=this,d=o?o instanceof Error?o:new Error(String(o)):void 0;return c=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(l,`
|
|
68
|
-
`).concat(d?`
|
|
69
|
-
`.concat(d.message,`
|
|
70
|
-
`).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,a),c}return a})(Error),dA=(function(n){Cn(a,n);function a(i,l){return n.call(this,qr.UNSUPPORTED_FORMATTER,i,l)||this}return a})(ns),hA=(function(n){Cn(a,n);function a(i,l){return n.call(this,qr.INVALID_CONFIG,i,l)||this}return a})(ns),Oy=(function(n){Cn(a,n);function a(i,l){return n.call(this,qr.MISSING_DATA,i,l)||this}return a})(ns),Rn=(function(n){Cn(a,n);function a(i,l,o){var c=n.call(this,qr.FORMAT_ERROR,"".concat(i,`
|
|
71
|
-
Locale: `).concat(l,`
|
|
72
|
-
`),o)||this;return c.locale=l,c}return a})(ns),Jf=(function(n){Cn(a,n);function a(i,l,o,c){var d=n.call(this,"".concat(i,`
|
|
73
|
-
MessageID: `).concat(o?.id,`
|
|
74
|
-
Default Message: `).concat(o?.defaultMessage,`
|
|
75
|
-
Description: `).concat(o?.description,`
|
|
76
|
-
`),l,c)||this;return d.descriptor=o,d.locale=l,d}return a})(Rn),mA=(function(n){Cn(a,n);function a(i,l){var o=n.call(this,qr.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(l,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var d;return(d=c.value)!==null&&d!==void 0?d:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=i,o}return a})(ns);function pA(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function Di(n,a,i){return i===void 0&&(i={}),a.reduce(function(l,o){return o in n?l[o]=n[o]:o in i&&(l[o]=i[o]),l},{})}var gA=function(n){},yA=function(n){},db={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:gA,onWarn:yA};function hb(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Lr(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function vA(n){n===void 0&&(n=hb());var a=Intl.RelativeTimeFormat,i=Intl.ListFormat,l=Intl.DisplayNames,o=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:Lr(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:Lr(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:Lr(n.pluralRules),strategy:Kn.variadic});return{getDateTimeFormat:o,getNumberFormat:c,getMessageFormat:Qn(function(h,m,g,v){return new fb(h,m,g,le({formatters:{getNumberFormat:c,getDateTimeFormat:o,getPluralRules:d}},v||{}))},{cache:Lr(n.message),strategy:Kn.variadic}),getRelativeTimeFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(a.bind.apply(a,$n([void 0],h,!1)))},{cache:Lr(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:Lr(n.list),strategy:Kn.variadic}),getDisplayNames:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(l.bind.apply(l,$n([void 0],h,!1)))},{cache:Lr(n.displayNames),strategy:Kn.variadic})}}function wh(n,a,i,l){var o=n&&n[a],c;if(o&&(c=o[i]),c)return c;l(new dA("No ".concat(a," format named: ").concat(i)))}function wo(n,a){return Object.keys(n).reduce(function(i,l){return i[l]=le({timeZone:a},n[l]),i},{})}function xy(n,a){var i=Object.keys(le(le({},n),a));return i.reduce(function(l,o){return l[o]=le(le({},n[o]||{}),a[o]||{}),l},{})}function Cy(n,a){if(!a)return n;var i=fb.formats;return le(le(le({},i),n),{date:xy(wo(i.date,a),wo(n.date||{},a)),time:xy(wo(i.time,a),wo(n.time||{},a))})}var nh=function(n,a,i,l,o){var c=n.locale,d=n.formats,h=n.messages,m=n.defaultLocale,g=n.defaultFormats,v=n.fallbackOnEmptyString,E=n.onError,S=n.timeZone,w=n.defaultRichTextElements;i===void 0&&(i={id:""});var _=i.id,x=i.defaultMessage;pA(!!_,"[@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 T=String(_),D=h&&Object.prototype.hasOwnProperty.call(h,T)&&h[T];if(Array.isArray(D)&&D.length===1&&D[0].type===$e.literal)return D[0].value;if(!l&&D&&typeof D=="string"&&!w)return D.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=le(le({},w),l||{}),d=Cy(d,S),g=Cy(g,S),!D){if(v===!1&&D==="")return D;if((!x||c&&c.toLowerCase()!==m.toLowerCase())&&E(new mA(i,c)),x)try{var z=a.getMessageFormat(x,m,g,o);return z.format(l)}catch(U){return E(new Jf('Error formatting default message for: "'.concat(T,'", rendering default message verbatim'),c,i,U)),typeof x=="string"?x:T}return T}try{var z=a.getMessageFormat(D,c,d,le({formatters:a},o||{}));return z.format(l)}catch(U){E(new Jf('Error formatting message: "'.concat(T,'", using ').concat(x?"default message":"id"," as fallback."),c,i,U))}if(x)try{var z=a.getMessageFormat(x,m,g,o);return z.format(l)}catch(U){E(new Jf('Error formatting the default message for: "'.concat(T,'", rendering message verbatim'),c,i,U))}return typeof D=="string"?D:typeof x=="string"?x:T},bA=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function as(n,a,i,l){var o=n.locale,c=n.formats,d=n.onError,h=n.timeZone;l===void 0&&(l={});var m=l.format,g=le(le({},h&&{timeZone:h}),m&&wh(c,a,m,d)),v=Di(l,bA,g);return a==="time"&&!v.hour&&!v.minute&&!v.second&&!v.timeStyle&&!v.dateStyle&&(v=le(le({},v),{hour:"numeric",minute:"numeric"})),i(o,v)}function _A(n,a){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var o=i[0],c=i[1],d=c===void 0?{}:c,h=typeof o=="string"?new Date(o||0):o;try{return as(n,"date",a,d).format(h)}catch(m){n.onError(new Rn("Error formatting date.",n.locale,m))}return String(h)}function EA(n,a){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var o=i[0],c=i[1],d=c===void 0?{}:c,h=typeof o=="string"?new Date(o||0):o;try{return as(n,"time",a,d).format(h)}catch(m){n.onError(new Rn("Error formatting time.",n.locale,m))}return String(h)}function SA(n,a){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var o=i[0],c=i[1],d=i[2],h=d===void 0?{}:d,m=typeof o=="string"?new Date(o||0):o,g=typeof c=="string"?new Date(c||0):c;try{return as(n,"dateTimeRange",a,h).formatRange(m,g)}catch(v){n.onError(new Rn("Error formatting date time range.",n.locale,v))}return String(m)}function TA(n,a){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var o=i[0],c=i[1],d=c===void 0?{}:c,h=typeof o=="string"?new Date(o||0):o;try{return as(n,"date",a,d).formatToParts(h)}catch(m){n.onError(new Rn("Error formatting date.",n.locale,m))}return[]}function AA(n,a){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var o=i[0],c=i[1],d=c===void 0?{}:c,h=typeof o=="string"?new Date(o||0):o;try{return as(n,"time",a,d).formatToParts(h)}catch(m){n.onError(new Rn("Error formatting time.",n.locale,m))}return[]}var OA=["style","type","fallback","languageDisplay"];function xA(n,a,i,l){var o=n.locale,c=n.onError,d=Intl.DisplayNames;d||c(new dr(`Intl.DisplayNames is not available in this environment.
|
|
77
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
-
`,ea.MISSING_INTL_API));var h=Di(l,OA);try{return a(o,h).of(i)}catch(m){c(new Rn("Error formatting display name.",o,m))}}var CA=["type","style"],Ry=Date.now();function RA(n){return"".concat(Ry,"_").concat(n,"_").concat(Ry)}function wA(n,a,i,l){l===void 0&&(l={});var o=mb(n,a,i,l).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 o.length===1?o[0]:o.length===0?"":o}function mb(n,a,i,l){var o=n.locale,c=n.onError;l===void 0&&(l={});var d=Intl.ListFormat;d||c(new dr(`Intl.ListFormat is not available in this environment.
|
|
79
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,ea.MISSING_INTL_API));var h=Di(l,CA);try{var m={},g=Array.from(i).map(function(v,E){if(typeof v=="object"&&v!==null){var S=RA(E);return m[S]=v,S}return String(v)});return a(o,h).formatToParts(g).map(function(v){return v.type==="literal"?v:le(le({},v),{value:m[v.value]||v.value})})}catch(v){c(new Rn("Error formatting list.",o,v))}return i}var NA=["type"];function MA(n,a,i,l){var o=n.locale,c=n.onError;l===void 0&&(l={}),Intl.PluralRules||c(new dr(`Intl.PluralRules is not available in this environment.
|
|
81
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
-
`,ea.MISSING_INTL_API));var d=Di(l,NA);try{return a(o,d).select(i)}catch(h){c(new Rn("Error formatting plural.",o,h))}return"other"}var DA=["numeric","style"];function LA(n,a,i){var l=n.locale,o=n.formats,c=n.onError;i===void 0&&(i={});var d=i.format,h=!!d&&wh(o,"relative",d,c)||{},m=Di(i,DA,h);return a(l,m)}function BA(n,a,i,l,o){o===void 0&&(o={}),l||(l="second");var c=Intl.RelativeTimeFormat;c||n.onError(new dr(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
-
`,ea.MISSING_INTL_API));try{return LA(n,a,o).format(i,l)}catch(d){n.onError(new Rn("Error formatting relative time.",n.locale,d))}return String(i)}var UA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function pb(n,a,i){var l=n.locale,o=n.formats,c=n.onError;i===void 0&&(i={});var d=i.format,h=d&&wh(o,"number",d,c)||{},m=Di(i,UA,h);return a(l,m)}function jA(n,a,i,l){l===void 0&&(l={});try{return pb(n,a,l).format(i)}catch(o){n.onError(new Rn("Error formatting number.",n.locale,o))}return String(i)}function HA(n,a,i,l){l===void 0&&(l={});try{return pb(n,a,l).formatToParts(i)}catch(o){n.onError(new Rn("Error formatting number.",n.locale,o))}return[]}function IA(n){var a=n?n[Object.keys(n)[0]]:void 0;return typeof a=="string"}function zA(n){n.onWarn&&n.defaultRichTextElements&&IA(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 GA(n,a){var i=vA(a),l=le(le({},db),n),o=l.locale,c=l.defaultLocale,d=l.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&d?d(new Oy('Missing locale data for locale: "'.concat(o,'" 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(o).length&&d&&d(new Oy('Missing locale data for locale: "'.concat(o,'" 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 hA('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),l.locale=l.defaultLocale||"en"),zA(l),le(le({},l),{formatters:i,formatNumber:jA.bind(null,l,i.getNumberFormat),formatNumberToParts:HA.bind(null,l,i.getNumberFormat),formatRelativeTime:BA.bind(null,l,i.getRelativeTimeFormat),formatDate:_A.bind(null,l,i.getDateTimeFormat),formatDateToParts:TA.bind(null,l,i.getDateTimeFormat),formatTime:EA.bind(null,l,i.getDateTimeFormat),formatDateTimeRange:SA.bind(null,l,i.getDateTimeFormat),formatTimeToParts:AA.bind(null,l,i.getDateTimeFormat),formatPlural:MA.bind(null,l,i.getPluralRules),formatMessage:nh.bind(null,l,i),$t:nh.bind(null,l,i),formatList:wA.bind(null,l,i.getListFormat),formatListToParts:mb.bind(null,l,i.getListFormat),formatDisplayName:xA.bind(null,l,i.getDisplayNames)})}function kA(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function gb(n){kA(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var yb=le(le({},db),{textComponent:H.Fragment}),qA=function(n,a){return H.isValidElement(n)?H.cloneElement(n,{key:a}):n},vb=function(n){var a;return(a=H.Children.map(n,qA))!==null&&a!==void 0?a:[]};function FA(n){return function(a){return n(vb(a))}}function VA(n,a){if(n===a)return!0;if(!n||!a)return!1;var i=Object.keys(n),l=Object.keys(a),o=i.length;if(l.length!==o)return!1;for(var c=0;c<o;c++){var d=i[c];if(n[d]!==a[d]||!Object.prototype.hasOwnProperty.call(a,d))return!1}return!0}var ed={exports:{}},Ge={};/** @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 wy;function YA(){if(wy)return Ge;wy=1;var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,o=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,v=n?Symbol.for("react.forward_ref"):60112,E=n?Symbol.for("react.suspense"):60113,S=n?Symbol.for("react.suspense_list"):60120,w=n?Symbol.for("react.memo"):60115,_=n?Symbol.for("react.lazy"):60116,x=n?Symbol.for("react.block"):60121,T=n?Symbol.for("react.fundamental"):60117,D=n?Symbol.for("react.responder"):60118,z=n?Symbol.for("react.scope"):60119;function U(M){if(typeof M=="object"&&M!==null){var P=M.$$typeof;switch(P){case a:switch(M=M.type,M){case m:case g:case l:case c:case o:case E:return M;default:switch(M=M&&M.$$typeof,M){case h:case v:case _:case w:case d:return M;default:return P}}case i:return P}}}function G(M){return U(M)===g}return Ge.AsyncMode=m,Ge.ConcurrentMode=g,Ge.ContextConsumer=h,Ge.ContextProvider=d,Ge.Element=a,Ge.ForwardRef=v,Ge.Fragment=l,Ge.Lazy=_,Ge.Memo=w,Ge.Portal=i,Ge.Profiler=c,Ge.StrictMode=o,Ge.Suspense=E,Ge.isAsyncMode=function(M){return G(M)||U(M)===m},Ge.isConcurrentMode=G,Ge.isContextConsumer=function(M){return U(M)===h},Ge.isContextProvider=function(M){return U(M)===d},Ge.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===a},Ge.isForwardRef=function(M){return U(M)===v},Ge.isFragment=function(M){return U(M)===l},Ge.isLazy=function(M){return U(M)===_},Ge.isMemo=function(M){return U(M)===w},Ge.isPortal=function(M){return U(M)===i},Ge.isProfiler=function(M){return U(M)===c},Ge.isStrictMode=function(M){return U(M)===o},Ge.isSuspense=function(M){return U(M)===E},Ge.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===l||M===g||M===c||M===o||M===E||M===S||typeof M=="object"&&M!==null&&(M.$$typeof===_||M.$$typeof===w||M.$$typeof===d||M.$$typeof===h||M.$$typeof===v||M.$$typeof===T||M.$$typeof===D||M.$$typeof===z||M.$$typeof===x)},Ge.typeOf=U,Ge}var Ny;function PA(){return Ny||(Ny=1,ed.exports=YA()),ed.exports}var td,My;function XA(){if(My)return td;My=1;var n=PA(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=l,c[n.Memo]=o;function d(_){return n.isMemo(_)?o:c[_.$$typeof]||a}var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,S=Object.prototype;function w(_,x,T){if(typeof x!="string"){if(S){var D=E(x);D&&D!==S&&w(_,D,T)}var z=m(x);g&&(z=z.concat(g(x)));for(var U=d(_),G=d(x),M=0;M<z.length;++M){var P=z[M];if(!i[P]&&!(T&&T[P])&&!(G&&G[P])&&!(U&&U[P])){var Q=v(x,P);try{h(_,P,Q)}catch{}}}}return _}return td=w,td}XA();var Nh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=H.createContext(null)):H.createContext(null);Nh.Consumer;var ZA=Nh.Provider,QA=ZA,KA=Nh;function Su(){var n=H.useContext(KA);return gb(n),n}var ah;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(ah||(ah={}));var rh;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(rh||(rh={}));function bb(n){var a=function(i){var l=Su(),o=i.value,c=i.children,d=Eu(i,["value","children"]),h=typeof o=="string"?new Date(o||0):o,m=n==="formatDate"?l.formatDateToParts(h,d):l.formatTimeToParts(h,d);return c(m)};return a.displayName=rh[n],a}function rs(n){var a=function(i){var l=Su(),o=i.value,c=i.children,d=Eu(i,["value","children"]),h=l[n](o,d);if(typeof c=="function")return c(h);var m=l.textComponent||H.Fragment;return H.createElement(m,null,h)};return a.displayName=ah[n],a}function _b(n){return n&&Object.keys(n).reduce(function(a,i){var l=n[i];return a[i]=cb(l)?FA(l):l,a},{})}var Dy=function(n,a,i,l){for(var o=[],c=4;c<arguments.length;c++)o[c-4]=arguments[c];var d=_b(l),h=nh.apply(void 0,$n([n,a,i,d],o,!1));return Array.isArray(h)?vb(h):h},Ly=function(n,a){var i=n.defaultRichTextElements,l=Eu(n,["defaultRichTextElements"]),o=_b(i),c=GA(le(le(le({},yb),l),{defaultRichTextElements:o}),a),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:o};return le(le({},c),{formatMessage:Dy.bind(null,d,c.formatters),$t:Dy.bind(null,d,c.formatters)})};function nd(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 $A=(function(n){Cn(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=hb(),i.state={cache:i.cache,intl:Ly(nd(i.props),i.cache),prevConfig:nd(i.props)},i}return a.getDerivedStateFromProps=function(i,l){var o=l.prevConfig,c=l.cache,d=nd(i);return VA(o,d)?null:{intl:Ly(d,c),prevConfig:d}},a.prototype.render=function(){return gb(this.state.intl),H.createElement(QA,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=yb,a})(H.PureComponent);rs("formatDate");rs("formatTime");rs("formatNumber");rs("formatList");rs("formatDisplayName");bb("formatDate");bb("formatTime");const WA="_app_1rj0t_1",JA={app:WA},Ba=yT,st=_T,Eb="%[a-f0-9]{2}",By=new RegExp("("+Eb+")|([^%]+?)","gi"),Uy=new RegExp("("+Eb+")+","gi");function ih(n,a){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;a=a||1;const i=n.slice(0,a),l=n.slice(a);return Array.prototype.concat.call([],ih(i),ih(l))}function eO(n){try{return decodeURIComponent(n)}catch{let a=n.match(By)||[];for(let i=1;i<a.length;i++)n=ih(a,i).join(""),a=n.match(By)||[];return n}}function tO(n){const a={"%FE%FF":"��","%FF%FE":"��"};let i=Uy.exec(n);for(;i;){try{a[i[0]]=decodeURIComponent(i[0])}catch{const o=eO(i[0]);o!==i[0]&&(a[i[0]]=o)}i=Uy.exec(n)}a["%C2"]="�";const l=Object.keys(a);for(const o of l)n=n.replace(new RegExp(o,"g"),a[o]);return n}function nO(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return tO(n)}}function aO(n,a){const i={};if(Array.isArray(a))for(const l of a){const o=Object.getOwnPropertyDescriptor(n,l);o?.enumerable&&Object.defineProperty(i,l,o)}else for(const l of Reflect.ownKeys(n)){const o=Object.getOwnPropertyDescriptor(n,l);if(o.enumerable){const c=n[l];a(l,c,n)&&Object.defineProperty(i,l,o)}}return i}function Sb(n,a){if(!(typeof n=="string"&&typeof a=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||a==="")return[];const i=n.indexOf(a);return i===-1?[]:[n.slice(0,i),n.slice(i+a.length)]}const rO=n=>n==null,iO=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`),lh=Symbol("encodeFragmentIdentifier");function lO(n){switch(n.arrayFormat){case"index":return a=>(i,l)=>{const o=i.length;return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[yt(a,n),"[",o,"]"].join("")]:[...i,[yt(a,n),"[",yt(o,n),"]=",yt(l,n)].join("")]};case"bracket":return a=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[yt(a,n),"[]"].join("")]:[...i,[yt(a,n),"[]=",yt(l,n)].join("")];case"colon-list-separator":return a=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[yt(a,n),":list="].join("")]:[...i,[yt(a,n),":list=",yt(l,n)].join("")];case"comma":case"separator":case"bracket-separator":{const a=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(l,o)=>o===void 0||n.skipNull&&o===null||n.skipEmptyString&&o===""?l:(o=o===null?"":o,l.length===0?[[yt(i,n),a,yt(o,n)].join("")]:[[l,yt(o,n)].join(n.arrayFormatSeparator)])}default:return a=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,yt(a,n)]:[...i,[yt(a,n),"=",yt(l,n)].join("")]}}function sO(n){let a;switch(n.arrayFormat){case"index":return(i,l,o)=>{if(a=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!a){o[i]=l;return}o[i]===void 0&&(o[i]={}),o[i][a[1]]=l};case"bracket":return(i,l,o)=>{if(a=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!a){o[i]=l;return}if(o[i]===void 0){o[i]=[l];return}o[i]=[...o[i],l]};case"colon-list-separator":return(i,l,o)=>{if(a=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!a){o[i]=l;return}if(o[i]===void 0){o[i]=[l];return}o[i]=[...o[i],l]};case"comma":case"separator":return(i,l,o)=>{const d=typeof l=="string"&&l.includes(n.arrayFormatSeparator)?l.split(n.arrayFormatSeparator).map(h=>Gr(h,n)):l===null?l:Gr(l,n);o[i]=d};case"bracket-separator":return(i,l,o)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){o[i]=l&&Gr(l,n);return}const d=l===null?[]:Gr(l,n).split(n.arrayFormatSeparator);if(o[i]===void 0){o[i]=d;return}o[i]=[...o[i],...d]};default:return(i,l,o)=>{if(o[i]===void 0){o[i]=l;return}o[i]=[...[o[i]].flat(),l]}}}function Tb(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function yt(n,a){return a.encode?a.strict?iO(n):encodeURIComponent(n):n}function Gr(n,a){return a.decode?nO(n):n}function Ab(n){return Array.isArray(n)?n.sort():typeof n=="object"?Ab(Object.keys(n)).sort((a,i)=>Number(a)-Number(i)).map(a=>n[a]):n}function Ob(n){const a=n.indexOf("#");return a!==-1&&(n=n.slice(0,a)),n}function oO(n){let a="";const i=n.indexOf("#");return i!==-1&&(a=n.slice(i)),a}function jy(n,a,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[]"&&a.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&a.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):a.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":a.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Mh(n){n=Ob(n);const a=n.indexOf("?");return a===-1?"":n.slice(a+1)}function Dh(n,a){a={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...a},Tb(a.arrayFormatSeparator);const i=sO(a),l=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return l;for(const o of n.split("&")){if(o==="")continue;const c=a.decode?o.replaceAll("+"," "):o;let[d,h]=Sb(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?h:Gr(h,a),i(Gr(d,a),h,l)}for(const[o,c]of Object.entries(l))if(typeof c=="object"&&c!==null&&a.types[o]!=="string")for(const[d,h]of Object.entries(c)){const m=a.types[o],g=typeof m=="function"?m:m?m.replace("[]",""):void 0;c[d]=jy(h,a,g)}else typeof c=="object"&&c!==null&&a.types[o]==="string"?l[o]=Object.values(c).join(a.arrayFormatSeparator):l[o]=jy(c,a,a.types[o]);return a.sort===!1?l:(a.sort===!0?Object.keys(l).sort():Object.keys(l).sort(a.sort)).reduce((o,c)=>{const d=l[c];return o[c]=d&&typeof d=="object"&&!Array.isArray(d)?Ab(d):d,o},Object.create(null))}function xb(n,a){if(!n)return"";a={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...a},Tb(a.arrayFormatSeparator);const i=d=>a.skipNull&&rO(n[d])||a.skipEmptyString&&n[d]==="",l=lO(a),o={};for(const[d,h]of Object.entries(n))i(d)||(o[d]=h);const c=Object.keys(o);return a.sort!==!1&&c.sort(a.sort),c.map(d=>{let h=n[d];if(a.replacer&&(h=a.replacer(d,h),h===void 0)||h===void 0)return"";if(h===null)return yt(d,a);if(Array.isArray(h)){if(h.length===0&&a.arrayFormat==="bracket-separator")return yt(d,a)+"[]";let m=h;return a.replacer&&(m=h.map((g,v)=>a.replacer(`${d}[${v}]`,g)).filter(g=>g!==void 0)),m.reduce(l(d),[]).join("&")}return yt(d,a)+"="+yt(h,a)}).filter(d=>d.length>0).join("&")}function Cb(n,a){a={decode:!0,...a};let[i,l]=Sb(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:Dh(Mh(n),a),...a&&a.parseFragmentIdentifier&&l?{fragmentIdentifier:Gr(l,a)}:{}}}function Rb(n,a){a={encode:!0,strict:!0,[lh]:!0,...a};const i=Ob(n.url).split("?")[0]||"",l=Mh(n.url),o={...Dh(l,{sort:!1,...a}),...n.query};let c=xb(o,a);c&&=`?${c}`;let d=oO(n.url);if(typeof n.fragmentIdentifier=="string"){const h=new URL(i);h.hash=n.fragmentIdentifier,d=a[lh]?h.hash:`#${n.fragmentIdentifier}`}return`${i}${c}${d}`}function wb(n,a,i){i={parseFragmentIdentifier:!0,[lh]:!1,...i};const{url:l,query:o,fragmentIdentifier:c}=Cb(n,i);return Rb({url:l,query:aO(o,a),fragmentIdentifier:c},i)}function uO(n,a,i){const l=Array.isArray(a)?o=>!a.includes(o):(o,c)=>!a(o,c);return wb(n,l,i)}const Lh=Object.freeze(Object.defineProperty({__proto__:null,exclude:uO,extract:Mh,parse:Dh,parseUrl:Cb,pick:wb,stringify:xb,stringifyUrl:Rb},Symbol.toStringTag,{value:"Module"}));var Bn={},Un={},Ve={},No={},de={},Hy;function fn(){return Hy||(Hy=1,Object.defineProperty(de,"__esModule",{value:!0}),de.GUEST_LOCALE_CHANGED=de.DRAWER_CLOSE=de.DRAWER_OPEN=de.CONVERSATION_RATING_FROM_GUEST=de.TRANSCRIPT_ITEM_GUEST_REACTION=de.TRANSCRIPT_MAIL_REQUEST=de.INBOX_CONNECT_REQUEST=de.RESTART_CHAT_REQUEST=de.EVENT_TO_GUEST=de.NLU_REQUEST_EVENT=de.EXPERTS_DISCONNECTED=de.EXPERTS_DISCONNECT_REQUEST=de.EXPERTS_CONNECTED=de.EXPERTS_CONNECT_REQUEST=de.MESSAGE_TO_GUEST=de.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=de.MESSAGE_FROM_GUEST=de.GUEST_FEEDBACK_RESPONSE=de.GUEST_DISCONNECTED=de.GUEST_CONNECTED=de.TYPING_OFF=de.TYPING_ON=void 0,de.TYPING_ON="core.typing.on",de.TYPING_OFF="core.typing.off",de.GUEST_CONNECTED="core.guest.connected",de.GUEST_DISCONNECTED="core.guest.disconnected",de.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",de.MESSAGE_FROM_GUEST="core.message.from.guest",de.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",de.MESSAGE_TO_GUEST="core.message.to.guest",de.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",de.EXPERTS_CONNECTED="core.experts.connected",de.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",de.EXPERTS_DISCONNECTED="core.experts.disconnected",de.NLU_REQUEST_EVENT="core.nlu.request.event",de.EVENT_TO_GUEST="core.event.to.guest",de.RESTART_CHAT_REQUEST="core.chat.restart.request",de.INBOX_CONNECT_REQUEST="core.inbox.connect.request",de.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",de.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",de.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",de.DRAWER_OPEN="core.drawer.open",de.DRAWER_CLOSE="core.drawer.close",de.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),de}var Iy;function cO(){if(Iy)return No;Iy=1,Object.defineProperty(No,"__esModule",{value:!0});const n=fn(),a=()=>({type:n.DRAWER_CLOSE});return No.default=a,No}var Mo={},zy;function fO(){if(zy)return Mo;zy=1,Object.defineProperty(Mo,"__esModule",{value:!0});const n=fn(),a=(i,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:l}});return Mo.default=a,Mo}var Do={},Gy;function dO(){if(Gy)return Do;Gy=1,Object.defineProperty(Do,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Do.default=a,Do}var Lo={},ky;function hO(){if(ky)return Lo;ky=1,Object.defineProperty(Lo,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Lo.default=a,Lo}var Bo={},qy;function mO(){if(qy)return Bo;qy=1,Object.defineProperty(Bo,"__esModule",{value:!0});const n=fn(),a=(i,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:l}});return Bo.default=a,Bo}var Uo={},Fy;function pO(){if(Fy)return Uo;Fy=1,Object.defineProperty(Uo,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Uo.default=a,Uo}var jo={},at={},Vy;function Bh(){if(Vy)return at;Vy=1,Object.defineProperty(at,"__esModule",{value:!0}),at.getStringRepresentationFromMessage=at.MessageTypeEnum=at.AudioMessage=at.FileMessage=at.ImageMessage=at.VideoMessage=at.MarkdownMessage=at.DetailMessage=at.TextMessage=at.Message=void 0;class n{type;sender;sources;quickReplies;constructor(E,S,w=[],_=[]){this.type=E,this.sender=S,this.sources=w,this.quickReplies=_}addQuickReply(E,S){this.quickReplies.push({label:E,payload:S})}}at.Message=n;class a extends n{text;constructor(E,S,w=[],_=[]){super(m.TEXT,S,w,_),this.text=E}}at.TextMessage=a;class i extends n{title;text;imageUrl;itemUrl;buttons;constructor(E,S){super(m.DETAIL,S),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)}}at.DetailMessage=i;class l extends n{markdown;constructor(E,S,w=[],_=[]){super(m.MARKDOWN,S,w,_),this.markdown=E}}at.MarkdownMessage=l;class o extends n{url;constructor(E,S){super(m.VIDEO,S),this.url=E}}at.VideoMessage=o;class c extends n{url;constructor(E,S){super(m.IMAGE,S),this.url=E}}at.ImageMessage=c;class d extends n{url;constructor(E,S){super(m.FILE,S),this.url=E}}at.FileMessage=d;class h extends n{url;constructor(E,S){super(m.AUDIO,S),this.url=E}}at.AudioMessage=h;var m;(function(v){v.TEXT="TEXT",v.DETAIL="DETAIL",v.MARKDOWN="MARKDOWN",v.VIDEO="VIDEO",v.IMAGE="IMAGE",v.FILE="FILE",v.AUDIO="AUDIO"})(m||(at.MessageTypeEnum=m={}));const g=v=>{switch(v.type){case m.TEXT:return v.text;case m.DETAIL:return`${v.title}`;case m.MARKDOWN:return v.markdown;case m.VIDEO:return`Video Url: ${v.url}`;case m.IMAGE:return`Image Url: ${v.url}`;case m.FILE:return`File Url: ${v.url}`;case m.AUDIO:return`Audio Url: ${v.url}`;default:throw new Error("Unknown message type "+v.type)}};return at.getStringRepresentationFromMessage=g,at}var sn={},Yy;function Uh(){if(Yy)return sn;Yy=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.UserType=sn.PersonUser=sn.GuestUser=sn.BotUser=sn.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}}sn.User=n;class a extends n{constructor(){super(o.BOT,null,"Chatbot","bot.svg")}}sn.BotUser=a;class i extends n{constructor(){super(o.GUEST,null,"Guest","visitor.svg")}}sn.GuestUser=i;class l extends n{constructor(d,h,m){super(o.PERSON,d,h,m)}}sn.PersonUser=l;var o;return(function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"})(o||(sn.UserType=o={})),sn}var Py;function gO(){if(Py)return jo;Py=1,Object.defineProperty(jo,"__esModule",{value:!0});const n=Bh(),a=Uh(),i=fn(),l=o=>{const c=new n.TextMessage(o,new a.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return jo.default=l,jo}var Ho={},Xy;function yO(){if(Xy)return Ho;Xy=1,Object.defineProperty(Ho,"__esModule",{value:!0});const n=Bh(),a=Uh(),i=fn(),l=(o,c={})=>{const d=new n.TextMessage(o,new a.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:c}};return Ho.default=l,Ho}var Io={},Zy;function vO(){if(Zy)return Io;Zy=1,Object.defineProperty(Io,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Io.default=a,Io}var zo={},Qy;function bO(){if(Qy)return zo;Qy=1,Object.defineProperty(zo,"__esModule",{value:!0});const n=fn(),a=()=>({type:n.RESTART_CHAT_REQUEST});return zo.default=a,zo}var Go={},Ky;function _O(){if(Ky)return Go;Ky=1,Object.defineProperty(Go,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Go.default=a,Go}var ko={},$y;function EO(){if($y)return ko;$y=1,Object.defineProperty(ko,"__esModule",{value:!0});const n=fn(),a=(i,l,o=null,c=null)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:l,category:o,comment:c}});return ko.default=a,ko}var Wy;function SO(){if(Wy)return Ve;Wy=1;var n=Ve&&Ve.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.transcriptItemGuestReaction=Ve.sendMessageToGuest=Ve.restartChatRequest=Ve.requestNLUEvent=Ve.receiveTextMessageWithoutAnalysisFromGuest=Ve.receiveTextMessageFromGuest=Ve.openDrawer=Ve.guestLocaleChanged=Ve.guestDisconnected=Ve.guestConnected=Ve.feedbackFromGuestResponse=Ve.closeDrawer=void 0;const a=n(cO());Ve.closeDrawer=a.default;const i=n(fO());Ve.feedbackFromGuestResponse=i.default;const l=n(dO());Ve.guestConnected=l.default;const o=n(hO());Ve.guestDisconnected=o.default;const c=n(mO());Ve.guestLocaleChanged=c.default;const d=n(pO());Ve.openDrawer=d.default;const h=n(gO());Ve.receiveTextMessageFromGuest=h.default;const m=n(yO());Ve.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(vO());Ve.requestNLUEvent=g.default;const v=n(bO());Ve.restartChatRequest=v.default;const E=n(_O());Ve.sendMessageToGuest=E.default;const S=n(EO());return Ve.transcriptItemGuestReaction=S.default,Ve}var ad={},Jy;function TO(){return Jy||(Jy=1,Object.defineProperty(ad,"__esModule",{value:!0})),ad}var e1;function AO(){return e1||(e1=1,(function(n){var a=Un&&Un.__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=Un&&Un.__setModuleDefault||(Object.create?(function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}):function(c,d){c.default=d}),l=Un&&Un.__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"&&a(h,d,m[g]);return i(h,d),h}})(),o=Un&&Un.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,c,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=l(SO()),n.ActionTypes=l(fn()),o(TO(),n)})(Un)),Un}var on={},rd={},t1;function OO(){return t1||(t1=1,Object.defineProperty(rd,"__esModule",{value:!0})),rd}var jl={},n1;function xO(){if(n1)return jl;n1=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,l){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,l,o){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async deleteObsoleteKnowledgeBaseEntries(i,l){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,l){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,l,o){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,l,o,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,l,o){throw new Error("Method not implemented.")}async setIndexingStatus(i,l){throw new Error("Method not implemented.")}async subscribeToReindex(i,l){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,l){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}createBrowserInstance(i){throw new Error("Method not implemented.")}}return jl.NullableKnowledgeBaseAdapter=n,jl}var a1;function CO(){if(a1)return on;a1=1;var n=on&&on.__createBinding||(Object.create?(function(o,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(o,h,m)}):(function(o,c,d,h){h===void 0&&(h=d),o[h]=c[d]})),a=on&&on.__setModuleDefault||(Object.create?(function(o,c){Object.defineProperty(o,"default",{enumerable:!0,value:c})}):function(o,c){o.default=c}),i=on&&on.__importStar||(function(){var o=function(c){return o=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},o(c)};return function(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var h=o(c),m=0;m<h.length;m++)h[m]!=="default"&&n(d,c,h[m]);return a(d,c),d}})();Object.defineProperty(on,"__esModule",{value:!0}),on.NullableCmsAdapter=on.KnowledgeBase=void 0,on.KnowledgeBase=i(OO());const l=xO();return on.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},on}var Br={},id={},r1;function RO(){return r1||(r1=1,Object.defineProperty(id,"__esModule",{value:!0})),id}var ld={},i1;function wO(){return i1||(i1=1,Object.defineProperty(ld,"__esModule",{value:!0})),ld}var sd={},l1;function NO(){return l1||(l1=1,Object.defineProperty(sd,"__esModule",{value:!0})),sd}var od={},s1;function MO(){return s1||(s1=1,Object.defineProperty(od,"__esModule",{value:!0})),od}var Hl={},o1;function DO(){if(o1)return Hl;o1=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.checkMiddlewareCondition=void 0;const n=async(a,i,l)=>(Array.isArray(a)?a:[a]).reduce(async(c,d)=>await c?await d(i,l):!1,Promise.resolve(!0));return Hl.checkMiddlewareCondition=n,Hl}var ud={},u1;function LO(){return u1||(u1=1,Object.defineProperty(ud,"__esModule",{value:!0})),ud}var cd={},c1;function BO(){return c1||(c1=1,Object.defineProperty(cd,"__esModule",{value:!0})),cd}var fd={},f1;function UO(){return f1||(f1=1,Object.defineProperty(fd,"__esModule",{value:!0})),fd}var d1;function jO(){return d1||(d1=1,(function(n){var a=Br&&Br.__createBinding||(Object.create?(function(l,o,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(o,c);(!h||("get"in h?!o.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(l,d,h)}):(function(l,o,c,d){d===void 0&&(d=c),l[d]=o[c]})),i=Br&&Br.__exportStar||function(l,o){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&a(o,l,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(RO(),n),i(wO(),n),i(NO(),n),i(MO(),n),i(DO(),n),i(LO(),n),i(BO(),n),i(UO(),n)})(Br)),Br}var Ur={},jn={},h1;function HO(){if(h1)return jn;h1=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.ButtonTypeEnum=jn.PostbackButton=jn.UrlButton=jn.Button=void 0;class n{title;type;constructor(c,d){this.title=c,this.type=d}}jn.Button=n;class a extends n{url;constructor(c,d){super(c,l.WEB_URL),this.url=d}}jn.UrlButton=a;class i extends n{payload;constructor(c,d){super(c,l.POSTBACK),this.payload=d}}jn.PostbackButton=i;var l;return(function(o){o.WEB_URL="web_url",o.POSTBACK="postback"})(l||(jn.ButtonTypeEnum=l={})),jn}var dd={},m1;function IO(){return m1||(m1=1,Object.defineProperty(dd,"__esModule",{value:!0})),dd}var Il={},p1;function zO(){if(p1)return Il;p1=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.SatisfactionEnum=void 0;var n;return(function(a){a.GOOD="GOOD",a.BAD="BAD"})(n||(Il.SatisfactionEnum=n={})),Il}var g1;function y1(){return g1||(g1=1,(function(n){var a=Ur&&Ur.__createBinding||(Object.create?(function(l,o,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(o,c);(!h||("get"in h?!o.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(l,d,h)}):(function(l,o,c,d){d===void 0&&(d=c),l[d]=o[c]})),i=Ur&&Ur.__exportStar||function(l,o){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&a(o,l,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(HO(),n),i(IO(),n),i(zO(),n),i(Bh(),n),i(Uh(),n)})(Ur)),Ur}var v1;function GO(){return v1||(v1=1,(function(n){var a=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}),l=Bn&&Bn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,c,h)},o=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"&&a(h,d,m[g]);return i(h,d),h}})();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,l(AO(),n),n.CMS=o(CO()),l(jO(),n),n.Model=o(y1()),l(y1(),n)})(Bn)),Bn}var Te=GO();const Nb=n=>a=>(n.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&a(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),a(n.payload)),Mb=n=>(a,i)=>{const{quickReplies:l}=i().chat,o=l.find(c=>n.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return a(o?Nb({...o,label:n}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(n))))},jh="MESSAGE_TO_PARENT_PAGE",Hh="RESTORE_PREVIOUS_CHAT_MESSAGES",Ih="AUDIO_MESSAGE_FROM_USER",zh="RECEIVE_SPEECH_TRANSCRIPTION",Gh="ENABLE_CONVERSATION_RATING",Db="LOAD_SOURCE_INFOS_RESPONSE",kh="LOAD_SOURCE_INFOS_ERROR",qh="LOAD_SOURCE_INFOS_REQUEST",Fh="CLOSE_SOURCE_INFOS",kO="webclient.get.started",Lb="webclient.window.expand",Bb="webclient.window.close",Ub="webclient.transcript.pdf.download",qO=[jh,Hh,Ih,zh,Gh,qh,Fh],FO=n=>({type:Ih,buffer:n}),VO=n=>({type:zh,transcription:n}),YO=n=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),PO=()=>({type:Ub}),XO=({rating:n})=>({type:Gh,payload:{rating:n}}),ZO=(n,a)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:a}}),jb=n=>Te.Actions.requestNLUEvent(n),QO=n=>({type:Hh,messages:n}),KO=n=>{switch(n.type){case Te.ButtonTypeEnum.WEB_URL:return Ib(n.url);case Te.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},Hb=n=>Ib(n),Ib=n=>({type:jh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function qo(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)n[l]=i[l]}return n}var $O={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 sh(n,a){function i(o,c,d){if(!(typeof document>"u")){d=qo({},a,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),o=encodeURIComponent(o).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=o+"="+n.write(c,o)+h}}function l(o){if(!(typeof document>"u"||arguments.length&&!o)){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 v=decodeURIComponent(m[0]);if(d[v]=n.read(g,v),o===v)break}catch{}}return o?d[o]:d}}return Object.create({set:i,get:l,remove:function(o,c){i(o,"",qo({},c,{expires:-1}))},withAttributes:function(o){return sh(this.converter,qo({},this.attributes,o))},withConverter:function(o){return sh(qo({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(n)}})}var Fo=sh($O,{path:"/"});const Lt=[];for(let n=0;n<256;++n)Lt.push((n+256).toString(16).slice(1));function WO(n,a=0){return(Lt[n[a+0]]+Lt[n[a+1]]+Lt[n[a+2]]+Lt[n[a+3]]+"-"+Lt[n[a+4]]+Lt[n[a+5]]+"-"+Lt[n[a+6]]+Lt[n[a+7]]+"-"+Lt[n[a+8]]+Lt[n[a+9]]+"-"+Lt[n[a+10]]+Lt[n[a+11]]+Lt[n[a+12]]+Lt[n[a+13]]+Lt[n[a+14]]+Lt[n[a+15]]).toLowerCase()}let hd;const JO=new Uint8Array(16);function ex(){if(!hd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");hd=crypto.getRandomValues.bind(crypto)}return hd(JO)}const tx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),b1={randomUUID:tx};function nx(n,a,i){n=n||{};const l=n.random??n.rng?.()??ex();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,WO(l)}function uu(n,a,i){return b1.randomUUID&&!n?b1.randomUUID():nx(n)}const Vh=()=>ax(window.location.pathname),ax=n=>{const a=n.split("/"),i=n.endsWith("/");return a[a.length-(i?2:1)]};function Bt(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 rx=typeof Symbol=="function"&&Symbol.observable||"@@observable",_1=rx,md=()=>Math.random().toString(36).substring(7).split("").join("."),ix={INIT:`@@redux/INIT${md()}`,REPLACE:`@@redux/REPLACE${md()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${md()}`},cu=ix;function Yh(n){if(typeof n!="object"||n===null)return!1;let a=n;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(n)===a||Object.getPrototypeOf(n)===null}function zb(n,a,i){if(typeof n!="function")throw new Error(Bt(2));if(typeof a=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Bt(0));if(typeof a=="function"&&typeof i>"u"&&(i=a,a=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Bt(1));return i(zb)(n,a)}let l=n,o=a,c=new Map,d=c,h=0,m=!1;function g(){d===c&&(d=new Map,c.forEach((T,D)=>{d.set(D,T)}))}function v(){if(m)throw new Error(Bt(3));return o}function E(T){if(typeof T!="function")throw new Error(Bt(4));if(m)throw new Error(Bt(5));let D=!0;g();const z=h++;return d.set(z,T),function(){if(D){if(m)throw new Error(Bt(6));D=!1,g(),d.delete(z),c=null}}}function S(T){if(!Yh(T))throw new Error(Bt(7));if(typeof T.type>"u")throw new Error(Bt(8));if(typeof T.type!="string")throw new Error(Bt(17));if(m)throw new Error(Bt(9));try{m=!0,o=l(o,T)}finally{m=!1}return(c=d).forEach(z=>{z()}),T}function w(T){if(typeof T!="function")throw new Error(Bt(10));l=T,S({type:cu.REPLACE})}function _(){const T=E;return{subscribe(D){if(typeof D!="object"||D===null)throw new Error(Bt(11));function z(){const G=D;G.next&&G.next(v())}return z(),{unsubscribe:T(z)}},[_1](){return this}}}return S({type:cu.INIT}),{dispatch:S,subscribe:E,getState:v,replaceReducer:w,[_1]:_}}function lx(n){Object.keys(n).forEach(a=>{const i=n[a];if(typeof i(void 0,{type:cu.INIT})>"u")throw new Error(Bt(12));if(typeof i(void 0,{type:cu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Bt(13))})}function Gb(n){const a=Object.keys(n),i={};for(let c=0;c<a.length;c++){const d=a[c];typeof n[d]=="function"&&(i[d]=n[d])}const l=Object.keys(i);let o;try{lx(i)}catch(c){o=c}return function(d={},h){if(o)throw o;let m=!1;const g={};for(let v=0;v<l.length;v++){const E=l[v],S=i[E],w=d[E],_=S(w,h);if(typeof _>"u")throw h&&h.type,new Error(Bt(14));g[E]=_,m=m||_!==w}return m=m||l.length!==Object.keys(d).length,m?g:d}}function fu(...n){return n.length===0?a=>a:n.length===1?n[0]:n.reduce((a,i)=>(...l)=>a(i(...l)))}function sx(...n){return a=>(i,l)=>{const o=a(i,l);let c=()=>{throw new Error(Bt(15))};const d={getState:o.getState,dispatch:(m,...g)=>c(m,...g)},h=n.map(m=>m(d));return c=fu(...h)(o.dispatch),{...o,dispatch:c}}}function ox(n){return Yh(n)&&"type"in n&&typeof n.type=="string"}var kb=Symbol.for("immer-nothing"),E1=Symbol.for("immer-draftable"),cn=Symbol.for("immer-state");function Gn(n,...a){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Mi=Object.getPrototypeOf;function Fr(n){return!!n&&!!n[cn]}function La(n){return n?qb(n)||Array.isArray(n)||!!n[E1]||!!n.constructor?.[E1]||is(n)||Au(n):!1}var ux=Object.prototype.constructor.toString();function qb(n){if(!n||typeof n!="object")return!1;const a=Mi(n);if(a===null)return!0;const i=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===ux}function du(n,a){Tu(n)===0?Reflect.ownKeys(n).forEach(i=>{a(i,n[i],n)}):n.forEach((i,l)=>a(l,i,n))}function Tu(n){const a=n[cn];return a?a.type_:Array.isArray(n)?1:is(n)?2:Au(n)?3:0}function oh(n,a){return Tu(n)===2?n.has(a):Object.prototype.hasOwnProperty.call(n,a)}function Fb(n,a,i){const l=Tu(n);l===2?n.set(a,i):l===3?n.add(i):n[a]=i}function cx(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function is(n){return n instanceof Map}function Au(n){return n instanceof Set}function zr(n){return n.copy_||n.base_}function uh(n,a){if(is(n))return new Map(n);if(Au(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=qb(n);if(a===!0||a==="class_only"&&!i){const l=Object.getOwnPropertyDescriptors(n);delete l[cn];let o=Reflect.ownKeys(l);for(let c=0;c<o.length;c++){const d=o[c],h=l[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(l[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(Mi(n),l)}else{const l=Mi(n);if(l!==null&&i)return{...n};const o=Object.create(l);return Object.assign(o,n)}}function Ph(n,a=!1){return Ou(n)||Fr(n)||!La(n)||(Tu(n)>1&&Object.defineProperties(n,{set:{value:Vo},add:{value:Vo},clear:{value:Vo},delete:{value:Vo}}),Object.freeze(n),a&&Object.values(n).forEach(i=>Ph(i,!0))),n}function Vo(){Gn(2)}function Ou(n){return Object.isFrozen(n)}var fx={};function Vr(n){const a=fx[n];return a||Gn(0,n),a}var Jl;function Vb(){return Jl}function dx(n,a){return{drafts_:[],parent_:n,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function S1(n,a){a&&(Vr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=a)}function ch(n){fh(n),n.drafts_.forEach(hx),n.drafts_=null}function fh(n){n===Jl&&(Jl=n.parent_)}function T1(n){return Jl=dx(Jl,n)}function hx(n){const a=n[cn];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function A1(n,a){a.unfinalizedDrafts_=a.drafts_.length;const i=a.drafts_[0];return n!==void 0&&n!==i?(i[cn].modified_&&(ch(a),Gn(4)),La(n)&&(n=hu(a,n),a.parent_||mu(a,n)),a.patches_&&Vr("Patches").generateReplacementPatches_(i[cn].base_,n,a.patches_,a.inversePatches_)):n=hu(a,i,[]),ch(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),n!==kb?n:void 0}function hu(n,a,i){if(Ou(a))return a;const l=a[cn];if(!l)return du(a,(o,c)=>O1(n,l,a,o,c,i)),a;if(l.scope_!==n)return a;if(!l.modified_)return mu(n,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const o=l.copy_;let c=o,d=!1;l.type_===3&&(c=new Set(o),o.clear(),d=!0),du(c,(h,m)=>O1(n,l,o,h,m,i,d)),mu(n,o,!1),i&&n.patches_&&Vr("Patches").generatePatches_(l,i,n.patches_,n.inversePatches_)}return l.copy_}function O1(n,a,i,l,o,c,d){if(Fr(o)){const h=c&&a&&a.type_!==3&&!oh(a.assigned_,l)?c.concat(l):void 0,m=hu(n,o,h);if(Fb(i,l,m),Fr(m))n.canAutoFreeze_=!1;else return}else d&&i.add(o);if(La(o)&&!Ou(o)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;hu(n,o),(!a||!a.scope_.parent_)&&typeof l!="symbol"&&(is(i)?i.has(l):Object.prototype.propertyIsEnumerable.call(i,l))&&mu(n,o)}}function mu(n,a,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Ph(a,i)}function mx(n,a){const i=Array.isArray(n),l={type_:i?1:0,scope_:a?a.scope_:Vb(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=l,c=Xh;i&&(o=[l],c=es);const{revoke:d,proxy:h}=Proxy.revocable(o,c);return l.draft_=h,l.revoke_=d,h}var Xh={get(n,a){if(a===cn)return n;const i=zr(n);if(!oh(i,a))return px(n,i,a);const l=i[a];return n.finalized_||!La(l)?l:l===pd(n.base_,a)?(gd(n),n.copy_[a]=hh(l,n)):l},has(n,a){return a in zr(n)},ownKeys(n){return Reflect.ownKeys(zr(n))},set(n,a,i){const l=Yb(zr(n),a);if(l?.set)return l.set.call(n.draft_,i),!0;if(!n.modified_){const o=pd(zr(n),a),c=o?.[cn];if(c&&c.base_===i)return n.copy_[a]=i,n.assigned_[a]=!1,!0;if(cx(i,o)&&(i!==void 0||oh(n.base_,a)))return!0;gd(n),dh(n)}return n.copy_[a]===i&&(i!==void 0||a in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[a])||(n.copy_[a]=i,n.assigned_[a]=!0),!0},deleteProperty(n,a){return pd(n.base_,a)!==void 0||a in n.base_?(n.assigned_[a]=!1,gd(n),dh(n)):delete n.assigned_[a],n.copy_&&delete n.copy_[a],!0},getOwnPropertyDescriptor(n,a){const i=zr(n),l=Reflect.getOwnPropertyDescriptor(i,a);return l&&{writable:!0,configurable:n.type_!==1||a!=="length",enumerable:l.enumerable,value:i[a]}},defineProperty(){Gn(11)},getPrototypeOf(n){return Mi(n.base_)},setPrototypeOf(){Gn(12)}},es={};du(Xh,(n,a)=>{es[n]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});es.deleteProperty=function(n,a){return es.set.call(this,n,a,void 0)};es.set=function(n,a,i){return Xh.set.call(this,n[0],a,i,n[0])};function pd(n,a){const i=n[cn];return(i?zr(i):n)[a]}function px(n,a,i){const l=Yb(a,i);return l?"value"in l?l.value:l.get?.call(n.draft_):void 0}function Yb(n,a){if(!(a in n))return;let i=Mi(n);for(;i;){const l=Object.getOwnPropertyDescriptor(i,a);if(l)return l;i=Mi(i)}}function dh(n){n.modified_||(n.modified_=!0,n.parent_&&dh(n.parent_))}function gd(n){n.copy_||(n.copy_=uh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var gx=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,i,l)=>{if(typeof a=="function"&&typeof i!="function"){const c=i;i=a;const d=this;return function(m=c,...g){return d.produce(m,v=>i.call(this,v,...g))}}typeof i!="function"&&Gn(6),l!==void 0&&typeof l!="function"&&Gn(7);let o;if(La(a)){const c=T1(this),d=hh(a,void 0);let h=!0;try{o=i(d),h=!1}finally{h?ch(c):fh(c)}return S1(c,l),A1(o,c)}else if(!a||typeof a!="object"){if(o=i(a),o===void 0&&(o=a),o===kb&&(o=void 0),this.autoFreeze_&&Ph(o,!0),l){const c=[],d=[];Vr("Patches").generateReplacementPatches_(a,o,c,d),l(c,d)}return o}else Gn(1,a)},this.produceWithPatches=(a,i)=>{if(typeof a=="function")return(d,...h)=>this.produceWithPatches(d,m=>a(m,...h));let l,o;return[this.produce(a,i,(d,h)=>{l=d,o=h}),l,o]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){La(n)||Gn(8),Fr(n)&&(n=yx(n));const a=T1(this),i=hh(n,void 0);return i[cn].isManual_=!0,fh(a),i}finishDraft(n,a){const i=n&&n[cn];(!i||!i.isManual_)&&Gn(9);const{scope_:l}=i;return S1(l,a),A1(void 0,l)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,a){let i;for(i=a.length-1;i>=0;i--){const o=a[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(a=a.slice(i+1));const l=Vr("Patches").applyPatches_;return Fr(n)?l(n,a):this.produce(n,o=>l(o,a))}};function hh(n,a){const i=is(n)?Vr("MapSet").proxyMap_(n,a):Au(n)?Vr("MapSet").proxySet_(n,a):mx(n,a);return(a?a.scope_:Vb()).drafts_.push(i),i}function yx(n){return Fr(n)||Gn(10,n),Pb(n)}function Pb(n){if(!La(n)||Ou(n))return n;const a=n[cn];let i;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,i=uh(n,a.scope_.immer_.useStrictShallowCopy_)}else i=uh(n,!0);return du(i,(l,o)=>{Fb(i,l,Pb(o))}),a&&(a.finalized_=!1),i}var vx=new gx,Xb=vx.produce;function Zb(n){return({dispatch:i,getState:l})=>o=>c=>typeof c=="function"?c(i,l,n):o(c)}var bx=Zb(),_x=Zb,Ex=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fu:fu.apply(null,arguments)};function x1(n,a){function i(...l){if(a){let o=a(...l);if(!o)throw new Error(wa(0));return{type:n,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:n,payload:l[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=l=>ox(l)&&l.type===n,i}var Qb=class Ql extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,Ql.prototype)}static get[Symbol.species](){return Ql}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new Ql(...a[0].concat(this)):new Ql(...a.concat(this))}};function C1(n){return La(n)?Xb(n,()=>{}):n}function Yo(n,a,i){return n.has(a)?n.get(a):n.set(a,i(a)).get(a)}function Sx(n){return typeof n=="boolean"}var Tx=()=>function(a){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:o=!0,actionCreatorCheck:c=!0}=a??{};let d=new Qb;return i&&(Sx(i)?d.push(bx):d.push(_x(i.extraArgument))),d},Ax="RTK_autoBatch",R1=n=>a=>{setTimeout(a,n)},Ox=(n={type:"raf"})=>a=>(...i)=>{const l=a(...i);let o=!0,c=!1,d=!1;const h=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:R1(10):n.type==="callback"?n.queueNotification:R1(n.timeout),g=()=>{d=!1,c&&(c=!1,h.forEach(v=>v()))};return Object.assign({},l,{subscribe(v){const E=()=>o&&v(),S=l.subscribe(E);return h.add(v),()=>{S(),h.delete(v)}},dispatch(v){try{return o=!v?.meta?.[Ax],c=!o,c&&(d||(d=!0,m(g))),l.dispatch(v)}finally{o=!0}}})},xx=n=>function(i){const{autoBatch:l=!0}=i??{};let o=new Qb(n);return l&&o.push(Ox(typeof l=="object"?l:void 0)),o};function Cx(n){const a=Tx(),{reducer:i=void 0,middleware:l,devTools:o=!0,preloadedState:c=void 0,enhancers:d=void 0}=n||{};let h;if(typeof i=="function")h=i;else if(Yh(i))h=Gb(i);else throw new Error(wa(1));let m;typeof l=="function"?m=l(a):m=a();let g=fu;o&&(g=Ex({trace:!1,...typeof o=="object"&&o}));const v=sx(...m),E=xx(v);let S=typeof d=="function"?d(E):E();const w=g(...S);return zb(h,c,w)}function Kb(n){const a={},i=[];let l;const o={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(wa(28));if(h in a)throw new Error(wa(29));return a[h]=d,o},addAsyncThunk(c,d){return d.pending&&(a[c.pending.type]=d.pending),d.rejected&&(a[c.rejected.type]=d.rejected),d.fulfilled&&(a[c.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:c.settled,reducer:d.settled}),o},addMatcher(c,d){return i.push({matcher:c,reducer:d}),o},addDefaultCase(c){return l=c,o}};return n(o),[a,i,l]}function Rx(n){return typeof n=="function"}function wx(n,a){let[i,l,o]=Kb(a),c;if(Rx(n))c=()=>C1(n());else{const h=C1(n);c=()=>h}function d(h=c(),m){let g=[i[m.type],...l.filter(({matcher:v})=>v(m)).map(({reducer:v})=>v)];return g.filter(v=>!!v).length===0&&(g=[o]),g.reduce((v,E)=>{if(E)if(Fr(v)){const w=E(v,m);return w===void 0?v:w}else{if(La(v))return Xb(v,S=>E(S,m));{const S=E(v,m);if(S===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}}return v},h)}return d.getInitialState=c,d}var Nx=Symbol.for("rtk-slice-createasyncthunk");function Mx(n,a){return`${n}/${a}`}function Dx({creators:n}={}){const a=n?.asyncThunk?.[Nx];return function(l){const{name:o,reducerPath:c=o}=l;if(!o)throw new Error(wa(11));const d=(typeof l.reducers=="function"?l.reducers(Bx()):l.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(U,G){const M=typeof U=="string"?U:U.type;if(!M)throw new Error(wa(12));if(M in m.sliceCaseReducersByType)throw new Error(wa(13));return m.sliceCaseReducersByType[M]=G,g},addMatcher(U,G){return m.sliceMatchers.push({matcher:U,reducer:G}),g},exposeAction(U,G){return m.actionCreators[U]=G,g},exposeCaseReducer(U,G){return m.sliceCaseReducersByName[U]=G,g}};h.forEach(U=>{const G=d[U],M={reducerName:U,type:Mx(o,U),createNotation:typeof l.reducers=="function"};jx(G)?Ix(M,G,g,a):Ux(M,G,g)});function v(){const[U={},G=[],M=void 0]=typeof l.extraReducers=="function"?Kb(l.extraReducers):[l.extraReducers],P={...U,...m.sliceCaseReducersByType};return wx(l.initialState,Q=>{for(let ae in P)Q.addCase(ae,P[ae]);for(let ae of m.sliceMatchers)Q.addMatcher(ae.matcher,ae.reducer);for(let ae of G)Q.addMatcher(ae.matcher,ae.reducer);M&&Q.addDefaultCase(M)})}const E=U=>U,S=new Map,w=new WeakMap;let _;function x(U,G){return _||(_=v()),_(U,G)}function T(){return _||(_=v()),_.getInitialState()}function D(U,G=!1){function M(Q){let ae=Q[U];return typeof ae>"u"&&G&&(ae=Yo(w,M,T)),ae}function P(Q=E){const ae=Yo(S,G,()=>new WeakMap);return Yo(ae,Q,()=>{const Be={};for(const[He,ge]of Object.entries(l.selectors??{}))Be[He]=Lx(ge,Q,()=>Yo(w,Q,T),G);return Be})}return{reducerPath:U,getSelectors:P,get selectors(){return P(M)},selectSlice:M}}const z={name:o,reducer:x,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:T,...D(c),injectInto(U,{reducerPath:G,...M}={}){const P=G??c;return U.inject({reducerPath:P,reducer:x},M),{...z,...D(P,!0)}}};return z}}function Lx(n,a,i,l){function o(c,...d){let h=a(c);return typeof h>"u"&&l&&(h=i()),n(h,...d)}return o.unwrapped=n,o}var Zh=Dx();function Bx(){function n(a,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:a,...i}}return n.withTypes=()=>n,{reducer(a){return Object.assign({[a.name](...i){return a(...i)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:i}},asyncThunk:n}}function Ux({type:n,reducerName:a,createNotation:i},l,o){let c,d;if("reducer"in l){if(i&&!Hx(l))throw new Error(wa(17));c=l.reducer,d=l.prepare}else c=l;o.addCase(n,c).exposeCaseReducer(a,c).exposeAction(a,d?x1(n,d):x1(n))}function jx(n){return n._reducerDefinitionType==="asyncThunk"}function Hx(n){return n._reducerDefinitionType==="reducerWithPrepare"}function Ix({type:n,reducerName:a},i,l,o){if(!o)throw new Error(wa(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:g,options:v}=i,E=o(n,c,v);l.exposeAction(a,E),d&&l.addCase(E.fulfilled,d),h&&l.addCase(E.pending,h),m&&l.addCase(E.rejected,m),g&&l.addMatcher(E.settled,g),l.exposeCaseReducer(a,{fulfilled:d||Po,pending:h||Po,rejected:m||Po,settled:g||Po})}function Po(){}function wa(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 zx={formValues:{}},$b=Zh({name:"start-screen",initialState:zx,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,a){n.startScreenStatus="HIDDEN",n.formValues=a.payload.formValues},startAuthenticatedChat(n,a){n.startScreenStatus="HIDDEN",n.loginToken=a.payload.loginToken,n.loginRequestToken=void 0},requestLogin(n,a){n.loginRequestToken=a.payload.loginRequestToken,n.formValues=a.payload.formValues},loginWindowClosed(n){n.loginRequestToken=void 0}}}),{startChat:Gx,startAuthenticatedChat:kx,showStartScreen:qx,requestLogin:Fx,loginWindowClosed:Vx}=$b.actions,Yx=$b.reducer,Wb="RESET_CHAT_STATE",Jb="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",e_="SHOW_CONVERSATION_RATING_OVERLAY",t_="HIDE_CONVERSATION_RATING_OVERLAY",n_=()=>({type:Bb}),Px=()=>({type:Wb}),a_=()=>({type:Jb}),pu=(n,a=void 0)=>({type:e_,payload:{opener:n,defaultRating:a}}),Xx=()=>({type:t_}),w1=(n,a,i)=>(l,o)=>{try{const c=o().connection.sessionId;if(!c)throw new Error("Session ID is not available");l({type:qh,payload:{chunkId:i}}),N1(n,c,a,i,!1,l),N1(n,c,a,i,!0,l)}catch(c){console.error("Error loading source infos:",c),l({type:kh})}},N1=(n,a,i,l,o,c)=>{const d=`/${n}/me/chat-widget/transcript/${i}/chunks/${l}?highlight=${o}`;fetch(d,{headers:{"x-bubble-chat-session-id":a}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:l,highlighted:o};c({type:Db,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:kh,payload:{highlighted:o}})})},Zx=()=>({type:Fh}),Qh="CONNECT",Kh="CONNECTING",$h="CONNECTED",Wh="DISCONNECTED",Jh="RECONNECTED",em="RESTORE_SESSION_ID",xu="START",Cu="CLEAR_SESSION_ID",Qx=[Qh,Kh,$h,Wh,Jh,em],Kx=(n,a)=>({type:Qh,clientName:n,querystrings:a}),$x=n=>({type:em,sessionId:n}),Wx=()=>({type:Kh}),Jx=()=>({type:$h}),eC=()=>({type:Wh}),tC=()=>({type:Jh}),r_=n=>(a,i)=>{const l=i().connection,{formValues:o,loginToken:c}=i().startScreen;let d=l.sessionId;d===void 0&&(d=uu());let h=l.userId;if(h===void 0){const g=Fo.get("bubble-chat-user-id")||Fo.get("bubble-chat-userId")||Fo.get("bf-webclient-userId");h=g||uu(),Fo.set("bubble-chat-user-id",h)}const m=Lh.parse(i().connection.queryString||"");a({type:xu,payload:{sessionId:d,userId:h,clientName:n,loginToken:c,querystrings:{...m,...o}}})},ls=()=>(n,a)=>{const i=a().connection.sessionId||"";if(n(nC(i)),n(Px()),a().settings.enableStartScreen)n(qx());else{const l=Vh();return n(r_(l))}},nC=n=>({type:Cu,payload:{sessionId:n}}),tt=()=>{const n=Su();return i=>{const l=n.formatMessage({id:i});return l===i?void 0:l}};var kr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(kr||{}),gu=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(gu||{});const aC="_container_q2uun_1",rC="_chatcontent_q2uun_6",iC="_accessabilityHidden_q2uun_12",yd={container:aC,chatcontent:rC,accessabilityHidden:iC},lC="_messageContainer_ofi0g_1",sC="_messages_ofi0g_12",M1={messageContainer:lC,messages:sC};function Wn(){return Wn=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)({}).hasOwnProperty.call(i,l)&&(n[l]=i[l])}return n},Wn.apply(null,arguments)}const Xo=["strong","em","del","mark"],D1=[["**",Xo[0]],["__",Xo[0]],["~~",Xo[2]],["==",Xo[3]],["*","em"],["_","em"]];function oC(n,a){for(var i=1,l=a+1;l<n.length&&i>0;)n[l]!=="\\"?(n[l]==="["&&i++,n[l]==="]"&&i--,l++):l+=2;if(i===0&&l<n.length&&(n[l]==="("||n[l]==="[")){var o=n[l]==="("?")":"]",c=1;for(l++;l<n.length&&c>0;)n[l]!=="\\"?(n[l]==="("&&o===")"&&c++,n[l]===o&&c--,l++):l+=2;if(c===0)return l}return-1}function uC(n,a){if(!a||!a.inline&&!a.simple)return null;var i=n[0];if(i!=="*"&&i!=="_"&&i!=="~"&&i!=="=")return null;for(var l="",o=0,c="",d=0;d<6;d++){var h=D1[d][0];if(n.startsWith(h)&&n.length>=2*h.length){l=h,o=h.length,c=D1[d][1];break}}if(!l)return null;for(var m=o,g=!1,v=!1,E="",S=0,w="",_=!1,x="";m<n.length;){var T=n[m];if(_)w+=T,_=!1,x=T,m++;else if(T!=="\\")if(T!=="`"||S!==0){if(T==="["&&!g&&S===0){var D=oC(n,m);if(D!==-1){w+=n.slice(m,D),m=D,x=n[D-1];continue}}if(v)w+=T,E?T===E&&(E=""):T==='"'||T==="'"?E=T:T===">"&&(v=!1),x=T,m++;else if(T!=="<"||g){if(T===`
|
|
94
|
-
`&&x===`
|
|
95
|
-
`&&!g&&S===0)return null;if(!g&&S===0){for(var z=0;m+z<n.length&&n[m+z]===l[0];)z++;if(z>=o&&(o!==1||l!=="*"&&l!=="_"||n[m-1]!==l&&n[m+1]!==l)){var U=[n.slice(0,m+z),c,w+n.slice(m+o,m+z)];return U.index=0,U.input=n,U}}w+=T,x=T,m++}else{var G=n[m+1],M=n.indexOf(">",m);if(M!==-1){var P=n.slice(m,M+1).endsWith("/>");G==="/"?S=Math.max(0,S-1):P||S++}v=!0,w+=T,x=T,m++}}else g=!g,w+=T,x=T,m++;else w+=T,_=!0,x=T,m++}return null}const cC=["children","options"],fC={footnoteReference:"7"},L1=["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,a)=>(n[a.toLowerCase()]=a,n),{class:"className",for:"htmlFor"}),B1={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},dC=["style","script","pre"],hC=["src","href","data","formAction","srcDoc","action"],mC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,pC=/\n{2,}$/,U1=/^(\s*>[\s\S]*?)(?=\n\n|$)/,gC=/^ *> ?/gm,yC=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,vC=/^ {2,}\n/,bC=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,j1=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,H1=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,_C=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,EC=/^(?:\n *)*\n/,SC=/\r\n?/g,TC=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,AC=/^\[\^([^\]]+)]/,OC=/\f/g,xC=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,CC=/^\[(x|\s)\]/,I1=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z1=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,G1=/^([^\n]+)\n *(=|-)\2{2,} *\n/,tm=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function RC(n){const a=tm.exec(n);if(!a)return null;const i=a[1],l=i.toLowerCase(),o=l.length+1;let c=a[0].length;n[c]===`
|
|
96
|
-
`&&c++;const d=c;let h=c,m=1;const g=n.length;for(;m>0;){const E=n.indexOf("<",c);if(E===-1)return null;let S=-1,w=-1;if(n[E+1]==="/")w=E;else if(n[E+1]===l[0]||n[E+1]===i[0]){let _=!0;for(let x=0;x<l.length;x++){const T=n[E+1+x];if(T!==l[x]&&T!==i[x]){_=!1;break}}!_||n[E+o]!==" "&&n[E+o]!==">"||(S=E)}if(S!==-1||w!==-1)if(S!==-1&&(w===-1||S<w))c=S+o+1,m++;else{let _=w+2;for(;_<g;){const T=n[_];if(T!==" "&&T!==" "&&T!==`
|
|
97
|
-
`&&T!=="\r")break;_++}if(_+l.length>g)return null;let x=!0;for(let T=0;T<l.length;T++){const D=n[_+T];if(D!==l[T]&&D!==i[T]){x=!1;break}}if(!x){c=_;continue}for(_+=l.length;_<g;){const T=n[_];if(T!==" "&&T!==" "&&T!==`
|
|
98
|
-
`&&T!=="\r")break;_++}if(_>=g||n[_]!==">"){c=_;continue}h=w,c=_+1,m--}else c=E+1}let v=0;for(;c+v<g&&n[c+v]===`
|
|
99
|
-
`;)v++;return[n.slice(0,c+v),i,a[2],n.slice(d,h)]}const wC=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,k1=/^<!--[\s\S]*?(?:-->)/,NC=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,mh=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,MC=/^\{.*\}$/,DC=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,LC=/^<([^ >]+[:@\/][^ >]+)>/,BC=/-([a-z])?/gi,q1=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,UC=/^[^\n]+(?: \n|\n{2,})/,jC=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,HC=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,IC=/^\[([^\]]*)\] ?\[([^\]]*)\]/,zC=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,GC=/\t/g,kC=/(^ *\||\| *$)/g,qC=/^ *:-+: *$/,FC=/^ *:-+ *$/,VC=/^ *-+: *$/,YC=/^(:[a-zA-Z0-9-_]+:)/,PC=/^\\([^0-9A-Za-z\s])/,XC=/\\([^0-9A-Za-z\s])/g,ZC=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,QC=/^\n+/,KC=/^([ \t]*)/,$C=/(?:^|\n)( *)$/,nm="(?:\\d+\\.)",am="(?:[*+-])";function i_(n){return"( *)("+(n===1?nm:am)+") +"}const l_=i_(1),s_=i_(2);function o_(n){return RegExp("^"+(n===1?l_:s_))}const WC=o_(1),JC=o_(2);function u_(n){return RegExp("^"+(n===1?l_:s_)+"[^\\n]*(?:\\n(?!\\1"+(n===1?nm:am)+" )[^\\n]*)*(\\n|$)","gm")}const eR=u_(1),tR=u_(2);function c_(n){const a=n===1?nm:am;return RegExp("^( *)("+a+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+a+" (?!"+a+" ))\\n*|\\s*\\n*$)")}const f_=c_(1),d_=c_(2);function F1(n,a){const i=a===1,l=i?f_:d_,o=i?eR:tR,c=i?WC:JC;return{t:d=>c.test(d),o:ur(function(d,h){const m=$C.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?l.exec(d=m[1]+d):null}),u:1,i(d,h,m){const g=i?+d[2]:void 0,v=d[0].replace(pC,`
|
|
100
|
-
`).match(o),E=c.exec(v[0]),S=RegExp("^ {1,"+(E?E[0].length:0)+"}","gm");let w=!1;return{items:v.map(function(_,x){const T=_.replace(S,"").replace(c,""),D=x===v.length-1,z=Xn(T,`
|
|
101
|
-
|
|
102
|
-
`)||D&&w;w=z;const U=m.inline,G=m.list;let M;m.list=!0,z?(m.inline=!1,M=Wl(T)+`
|
|
103
|
-
|
|
104
|
-
`):(m.inline=!0,M=Wl(T));const P=h(M,m);return m.inline=U,m.list=G,P}),ordered:i,start:g}}}}const nR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),aR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function V1(n){return typeof n=="string"}function Wl(n){let a=n.length;for(;a>0&&n[a-1]<=" ";)a--;return n.slice(0,a)}function ph(n,a){return n.startsWith(a)}function Xn(n,a){return n.indexOf(a)!==-1}function rR(n,a,i){if(Array.isArray(i)){for(let l=0;l<i.length;l++)if(ph(n,i[l]))return!0;return!1}return i(n,a)}function zl(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 iR(n){return VC.test(n)?"right":qC.test(n)?"center":FC.test(n)?"left":null}function Y1(n,a,i,l){const o=i.inTable;i.inTable=!0;let c=[[]],d="";function h(){if(!d)return;const m=c[c.length-1];m.push.apply(m,a(d,i)),d=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,v)=>{m.trim()==="|"&&(h(),l)?g!==0&&g!==v.length-1&&c.push([]):d+=m}),h(),i.inTable=o,c}function lR(n,a,i){i.inline=!0;const l=n[2]?n[2].replace(kC,"").split("|").map(iR):[],o=n[3]?(function(d,h,m){return d.trim().split(`
|
|
105
|
-
`).map(function(g){return Y1(g,h,m,!0)})})(n[3],a,i):[],c=Y1(n[1],a,i,!!o.length);return i.inline=!1,o.length?{align:l,cells:o,header:c,type:"25"}:{children:c,type:"21"}}function P1(n,a){return n.align[a]==null?{}:{textAlign:n.align[a]}}function ur(n){return n.inline=1,n}function or(n){return ur(function(a,i){return i.inline?n.exec(a):null})}function Zo(n){return ur(function(a,i){return i.inline||i.simple?n.exec(a):null})}function Ca(n){return function(a,i){return i.inline||i.simple?null:n.exec(a)}}function X1(n){return ur(function(a){return n.exec(a)})}const sR=/(javascript|vbscript|data(?!:image)):/i;function oR(n){try{const a=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(sR.test(a))return null}catch{return null}return n}function Zn(n){return n&&n.replace(XC,"$1")}function nu(n,a,i){const l=i.inline||!1,o=i.simple||!1;i.inline=!0,i.simple=!0;const c=n(a,i);return i.inline=l,i.simple=o,c}function uR(n,a,i){const l=i.inline||!1,o=i.simple||!1;i.inline=!1,i.simple=!0;const c=n(a,i);return i.inline=l,i.simple=o,c}function cR(n,a,i){const l=i.inline||!1;i.inline=!1;const o=n(a,i);return i.inline=l,o}const fR=(n,a,i)=>({children:nu(a,n[2],i)});function vd(){return{}}function dR(...n){return n.filter(Boolean).join(" ")}function bd(n,a,i){let l=n;const o=a.split(".");for(;o.length&&(l=l[o[0]],l!==void 0);)o.shift();return l||i}function _d(n,a,i,l){if(!a||!a.trim())return null;const o=a.match(mC);return o?o.reduce(function(c,d){const h=d.indexOf("=");if(h!==-1){const m=(function(E){return E.indexOf("-")!==-1&&E.match(NC)===null&&(E=E.replace(BC,function(S,w){return w.toUpperCase()})),E})(d.slice(0,h)).trim(),g=L1[m]||m;if(g==="ref")return c;const v=c[g]=(function(E,S,w,_){return S==="style"?(function(x){const T=[];if(!x)return T;let D="",z=0,U="";for(let M=0;M<x.length;M++){const P=x[M];if(P==='"'||P==="'")U?P===U&&(U="",z--):(U=P,z++);else if(P==="("&&D.endsWith("url"))z++;else if(P===")"&&z>0)z--;else if(P===";"&&z===0){const Q=D.indexOf(":");Q>0&&T.push([D.slice(0,Q).trim(),D.slice(Q+1).trim()]),D="";continue}D+=P}const G=D.indexOf(":");return G>0&&T.push([D.slice(0,G).trim(),D.slice(G+1).trim()]),T})(w).reduce(function(x,[T,D]){return x[T.replace(/(-[a-z])/g,z=>z[1].toUpperCase())]=_(D,E,T),x},{}):hC.indexOf(S)!==-1?_(Zn(w),E,S):(w.match(MC)&&(w=Zn(w.slice(1,w.length-1))),w==="true"||w!=="false"&&w)})(n,m,(function(E){const S=E[0];return(S==='"'||S==="'")&&E.length>=2&&E[E.length-1]===S?E.slice(1,-1):E})(d.slice(h+1).trim()),i);typeof v=="string"&&(tm.test(v)||mh.test(v))&&(c[g]=l(v.trim()))}else d!=="style"&&(c[L1[d]||d]=!0);return c},{}):null}function Z1(n,a){for(let i=0;i<n.length;i++)if(n[i].test(a))return!0;return!1}function hR(n="",a={}){a.overrides=a.overrides||{},a.namedCodesToUnicode=a.namedCodesToUnicode?Wn({},B1,a.namedCodesToUnicode):B1;const i=a.slugify||zl,l=a.sanitizer||oR,o=a.createElement||H.createElement,c=[U1,j1,H1,a.enforceAtxHeadings?z1:I1,G1,q1,f_,d_],d=[...c,UC,tm,k1,mh];function h(_,x,...T){const D=bd(a.overrides,_+".props",{});return o((function(z,U){const G=bd(U,z);return G?typeof G=="function"||typeof G=="object"&&"render"in G?G:bd(U,z+".component",z):z})(_,a.overrides),Wn({},x,D,{className:dR(x?.className,D.className)||void 0}),...T)}function m(_){_=_.replace(xC,"");let x=!1;a.forceInline?x=!0:a.forceBlock||(x=zC.test(_)===!1);const T=S(x?_:Wl(_).replace(QC,"")+`
|
|
106
|
-
|
|
107
|
-
`,{inline:x});if(a.ast)return T;const D=w(T);for(;V1(D[D.length-1])&&!D[D.length-1].trim();)D.pop();if(g.length&&D.push(h("footer",{key:"footer"},g.map(function(G){return h("div",{id:i(G.identifier,zl),key:G.identifier},G.identifier,w(S(G.footnote,{inline:!0})))}))),a.wrapper===null)return D;const z=a.wrapper||(x?"span":"div");let U;if(D.length>1||a.forceWrapper)U=D;else{if(D.length===1)return U=D[0],typeof U=="string"?h("span",{key:"outer"},U):U;U=null}return o(z,Wn({key:"outer"},a.wrapperProps),U)}const g=[],v={},E={0:{t:[">"],o:Ca(U1),u:1,i(_,x,T){const[,D,z]=_[0].replace(gC,"").match(yC);return{alert:D,children:x(z,T)}}},1:{t:[" "],o:or(vC),u:1,i:vd},2:{t:function(_,x){if(x.inline||x.simple)return!1;var T=_[0];return T==="-"||T==="*"||T==="_"},o:Ca(bC),u:1,i:vd},3:{t:[" "],o:Ca(H1),u:0,i:_=>({lang:void 0,text:Zn(Wl(_[0].replace(/^ {4}/gm,"")))})},4:{t:["```","~~~"],o:Ca(j1),u:0,i:_=>({attrs:_d("code",_[3]||"",l,m),lang:_[2]||void 0,text:_[4],type:"3"})},5:{t:["`"],o:Zo(_C),u:3,i:_=>({text:Zn(_[2])})},6:{t:["[^"],o:Ca(TC),u:0,i:_=>(g.push({footnote:_[2],identifier:_[1]}),{})},7:{t:["[^"],o:or(AC),u:1,i:_=>({target:"#"+i(_[1],zl),text:_[1]})},8:{t:["[ ]","[x]"],o:or(CC),u:1,i:_=>({completed:_[1].toLowerCase()==="x"})},9:{t:["#"],o:Ca(a.enforceAtxHeadings?z1:I1),u:1,i:(_,x,T)=>({children:nu(x,_[2],T),id:i(_[2],zl),level:_[1].length})},10:{t:_=>{const x=_.indexOf(`
|
|
108
|
-
`);return x>0&&x<_.length-1&&(_[x+1]==="="||_[x+1]==="-")},o:Ca(G1),u:1,i:(_,x,T)=>({children:nu(x,_[1],T),level:_[2]==="="?1:2,type:"9"})},11:{t:["<"],o:ur(RC),u:1,i(_,x,T){const[,D]=_[3].match(KC),z=RegExp("^"+D,"gm"),U=_[3].replace(z,""),G=Z1(d,U)?cR:nu,M=_[1].toLowerCase(),P=dC.indexOf(M)!==-1,Q=(P?M:_[1]).trim(),ae={attrs:_d(Q,_[2],l,m),noInnerParse:P,tag:Q};if(T.inAnchor=T.inAnchor||M==="a",P)ae.text=_[3];else{const Be=T.inHTML;T.inHTML=!0,ae.children=G(x,U,T),T.inHTML=Be}return T.inAnchor=!1,ae}},13:{t:["<"],o:X1(mh),u:1,i(_){const x=_[1].trim();return{attrs:_d(x,_[2]||"",l,m),tag:x}}},12:{t:["<!--"],o:X1(k1),u:1,i:()=>({})},14:{t:["!["],o:Zo(aR),u:1,i:_=>({alt:Zn(_[1]),target:Zn(_[2]),title:Zn(_[3])})},15:{t:["["],o:or(nR),u:3,i:(_,x,T)=>({children:uR(x,_[1],T),target:Zn(_[2]),title:Zn(_[3])})},16:{t:function(_,x){return!(!x.inline||x.inAnchor)&&_[0]==="<"&&(Xn(_,":")||Xn(_,"@")||Xn(_,"/"))},o:or(LC),u:0,i(_){let x=_[1],T=!1;return Xn(x,"@")&&!Xn(x,"//")&&(T=!0,x=x.replace("mailto:","")),{children:[{text:x,type:"27"}],target:T?"mailto:"+x:x,type:"15"}}},17:{t:(_,x)=>!x.inAnchor&&!a.disableAutoLink&&ph(_,"http"),o:or(DC),u:0,i:_=>({children:[{text:_[1],type:"27"}],target:_[1],title:void 0,type:"15"})},20:F1(0,1),30:F1(0,2),19:{t:[`
|
|
109
|
-
`],o:Ca(EC),u:3,i:vd},21:{t:function(_,x){return!x.inline&&!x.simple},o:ur(function(_,x){if(x.inline||x.simple||x.inHTML&&!Xn(_,`
|
|
110
|
-
|
|
111
|
-
`)&&!Xn(x.prevCapture,`
|
|
112
|
-
|
|
113
|
-
`))return null;let T="",D=0;for(;;){const U=_.indexOf(`
|
|
114
|
-
`,D),G=_.slice(D,U===-1?void 0:U+1),M=_[D];if((M===">"||M==="#"||M==="|"||M==="`"||M==="~"||M==="*"||M==="-"||M==="_"||M===" ")&&Z1(c,G)||(T+=G,U===-1||!G.trim()))break;D=U+1}const z=Wl(T);return z===""?null:[T,,z]}),u:3,i:fR},22:{t:["["],o:or(jC),u:0,i:_=>(v[_[1]]={target:_[2],title:_[4]},{})},23:{t:["!["],o:Zo(HC),u:0,i:_=>({alt:_[1]?Zn(_[1]):void 0,ref:_[2]})},24:{t:_=>_[0]==="["&&!Xn(_,"]("),o:or(IC),u:0,i:(_,x,T)=>({children:x(_[1],T),fallbackChildren:_[0],ref:_[2]})},25:{t:["|"],o:Ca(q1),u:1,i:lR},27:{o:ur(function(_,x){let T;return ph(_,":")&&(T=YC.exec(_)),T||ZC.exec(_)}),u:4,i(_){const x=_[0];return{text:Xn(x,"&")?x.replace(wC,(T,D)=>a.namedCodesToUnicode[D]||T):x}}},34:{t:["*","_","~","="],o:ur(uC),u:2,i:(_,x,T)=>({children:x(_[2],T),tag:_[1]})},28:{t:["\\"],o:Zo(PC),u:1,i:_=>({text:_[1],type:"27"})}};a.disableParsingRawHTML===!0&&(delete E[11],delete E[13]);const S=(function(_){var x=Object.keys(_);function T(D,z){var U=[];if(z.prevCapture=z.prevCapture||"",D.trim())for(;D;)for(var G=0;G<x.length;){var M=x[G],P=_[M];if(!P.t||rR(D,z,P.t)){var Q=P.o(D,z);if(Q&&Q[0]){D=D.substring(Q[0].length);var ae=P.i(Q,T,z);z.prevCapture+=Q[0],ae.type||(ae.type=M),U.push(ae);break}G++}else G++}return z.prevCapture="",U}return x.sort(function(D,z){return _[D].u-_[z].u||(D<z?-1:1)}),function(D,z){return T((function(U){return U.replace(SC,`
|
|
115
|
-
`).replace(OC,"").replace(GC," ")})(D),z)}})(E),w=(function(_,x,T,D,z){function U(G){return Array.isArray(G)?G.map(M=>"text"in M?M.text:""):"text"in G?G.text:""}return function G(M,P={}){const Q=(P.renderDepth||0)+1;if(Q>2500)return U(M);P.renderDepth=Q;try{if(Array.isArray(M)){const Be=P.key,He=[];let ge=!1;for(let be=0;be<M.length;be++){P.key=be;const K=G(M[be],P),Se=V1(K);Se&&ge?He[He.length-1]+=K:K!==null&&He.push(K),ge=Se}return P.key=Be,P.renderDepth=Q-1,He}const ae=(function(Be,He,ge){const be=()=>(function(K,Se,se,L,W,oe,_e){switch(K.type){case"0":{const me={key:se.key};return K.alert&&(me.className="markdown-alert-"+oe(K.alert.toLowerCase(),zl),K.children.unshift({attrs:{},children:[{type:"27",text:K.alert}],noInnerParse:!0,type:"11",tag:"header"})),L("blockquote",me,Se(K.children,se))}case"1":return L("br",{key:se.key});case"2":return L("hr",{key:se.key});case"3":return L("pre",{key:se.key},L("code",Wn({},K.attrs,{className:K.lang?"lang-"+K.lang:""}),K.text));case"5":return L("code",{key:se.key},K.text);case"7":return L("a",{key:se.key,href:W(K.target,"a","href")},L("sup",{key:se.key},K.text));case"8":return L("input",{checked:K.completed,key:se.key,readOnly:!0,type:"checkbox"});case"9":return L("h"+K.level,{id:K.id,key:se.key},Se(K.children,se));case"11":return L(K.tag,Wn({key:se.key},K.attrs),K.text||(K.children?Se(K.children,se):""));case"13":return L(K.tag,Wn({},K.attrs,{key:se.key}));case"14":return L("img",{key:se.key,alt:K.alt||void 0,title:K.title||void 0,src:W(K.target,"img","src")});case"15":return L("a",{key:se.key,href:W(K.target,"a","href"),title:K.title},Se(K.children,se));case"23":return _e[K.ref]?L("img",{key:se.key,alt:K.alt,src:W(_e[K.ref].target,"img","src"),title:_e[K.ref].title}):null;case"24":return _e[K.ref]?L("a",{key:se.key,href:W(_e[K.ref].target,"a","href"),title:_e[K.ref].title},Se(K.children,se)):L("span",{key:se.key},K.fallbackChildren);case"25":{const me=K;return L("table",{key:se.key},L("thead",null,L("tr",null,me.header.map(function(O,F){return L("th",{key:F,style:P1(me,F)},Se(O,se))}))),L("tbody",null,me.cells.map(function(O,F){return L("tr",{key:F},O.map(function(X,J){return L("td",{key:J,style:P1(me,J)},Se(X,se))}))})))}case"27":return K.text;case"34":return L(K.tag,{key:se.key},Se(K.children,se));case"20":case"30":return L(K.ordered?"ol":"ul",{key:se.key,start:K.type==="20"?K.start:void 0},K.items.map(function(me,O){return L("li",{key:O},Se(me,se))}));case"19":return`
|
|
116
|
-
`;case"21":return L("p",{key:se.key},Se(K.children,se));default:return null}})(Be,He,ge,x,T,D,z);return _?_(be,Be,He,ge):be()})(M,G,P);return P.renderDepth=Q-1,ae}catch(ae){if(ae instanceof RangeError&&ae.message.includes("Maximum call stack"))return U(M);throw ae}}})(a.renderRule,h,l,i,v);return m(n)}const Na=n=>{let{children:a,options:i}=n,l=(function(o,c){if(o==null)return{};var d={};for(var h in o)if({}.hasOwnProperty.call(o,h)){if(c.indexOf(h)!==-1)continue;d[h]=o[h]}return d})(n,cC);return hR(a??"",Wn({},i,{wrapperProps:Wn({},i?.wrapperProps,l)}))},mR="_generalConditionsContainer_55hjg_1",pR="_generalConditions_55hjg_1",gR="_generalConditionsHeader_55hjg_15",yR="_generalConditionsBody_55hjg_26",vR="_generalConditionsAccept_55hjg_35",Gl={generalConditionsContainer:mR,generalConditions:pR,generalConditionsHeader:gR,generalConditionsBody:yR,generalConditionsAccept:vR},bR=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})}),_R=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})}),ER="general-conditions.header",SR="general-conditions.body",Q1="general-conditions.accept-conditions-note",TR=()=>{const n=tt(),[a,i]=H.useState(!1),l=()=>i(!a),o=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===" ")&&l()},c=n(ER),d=n(Q1);return y.jsxs("div",{className:$(Gl.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&y.jsxs("div",{className:Gl.generalConditions,children:[y.jsxs("div",{role:"button",onClick:l,onKeyDown:o,tabIndex:0,className:$(Gl.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":a?"true":"false","aria-pressed":a?"true":"false",children:[y.jsx(Na,{children:c}),a?y.jsx(_R,{}):y.jsx(bR,{})]}),y.jsx("div",{className:$(Gl.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:a&&y.jsx(Na,{children:n(SR)||""})})]}),!!d?.length&&y.jsx("div",{className:$(Gl.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(Na,{children:n(Q1)||""})})]})},AR="_messageContainer_1rxi5_1",OR="_message_1rxi5_1",xR="_messageBot_1rxi5_14",CR="_messageBotLast_1rxi5_45",RR="_avatar_1rxi5_45",wR="_messageBotFirst_1rxi5_54",NR="_messageBotAnimated_1rxi5_67",MR="_messageGuest_1rxi5_78",DR="_messageGuestFirst_1rxi5_84",LR="_messageGuestLast_1rxi5_90",BR="_botAvatar_1rxi5_104",UR="_agentAvatar_1rxi5_108",jR="_bubble_1rxi5_112",HR="_bubbleContent_1rxi5_118",IR="_bubbleLeft_1rxi5_132",zR="_leftText_1rxi5_143",GR="_bubbleRight_1rxi5_150",kR="_rightText_1rxi5_160",qR="_sourceInfoReference_1rxi5_192",FR="_sourceInfoReferenceActive_1rxi5_204",pe={messageContainer:AR,message:OR,messageBot:xR,messageBotLast:CR,avatar:RR,messageBotFirst:wR,messageBotAnimated:NR,messageGuest:MR,messageGuestFirst:DR,messageGuestLast:LR,botAvatar:BR,agentAvatar:UR,bubble:jR,bubbleContent:HR,bubbleLeft:IR,leftText:zR,bubbleRight:GR,rightText:kR,sourceInfoReference:qR,sourceInfoReferenceActive:FR},rm=(n,a)=>{H.useEffect(()=>{const i=l=>{n.current&&!n.current.contains(l.target)&&a()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,a])};var Ed,K1;function im(){if(K1)return Ed;K1=1;function n(a){var i=typeof a;return a!=null&&(i=="object"||i=="function")}return Ed=n,Ed}var Sd,$1;function VR(){if($1)return Sd;$1=1;var n=typeof Co=="object"&&Co&&Co.Object===Object&&Co;return Sd=n,Sd}var Td,W1;function h_(){if(W1)return Td;W1=1;var n=VR(),a=typeof self=="object"&&self&&self.Object===Object&&self,i=n||a||Function("return this")();return Td=i,Td}var Ad,J1;function YR(){if(J1)return Ad;J1=1;var n=h_(),a=function(){return n.Date.now()};return Ad=a,Ad}var Od,ev;function PR(){if(ev)return Od;ev=1;var n=/\s/;function a(i){for(var l=i.length;l--&&n.test(i.charAt(l)););return l}return Od=a,Od}var xd,tv;function XR(){if(tv)return xd;tv=1;var n=PR(),a=/^\s+/;function i(l){return l&&l.slice(0,n(l)+1).replace(a,"")}return xd=i,xd}var Cd,nv;function m_(){if(nv)return Cd;nv=1;var n=h_(),a=n.Symbol;return Cd=a,Cd}var Rd,av;function ZR(){if(av)return Rd;av=1;var n=m_(),a=Object.prototype,i=a.hasOwnProperty,l=a.toString,o=n?n.toStringTag:void 0;function c(d){var h=i.call(d,o),m=d[o];try{d[o]=void 0;var g=!0}catch{}var v=l.call(d);return g&&(h?d[o]=m:delete d[o]),v}return Rd=c,Rd}var wd,rv;function QR(){if(rv)return wd;rv=1;var n=Object.prototype,a=n.toString;function i(l){return a.call(l)}return wd=i,wd}var Nd,iv;function KR(){if(iv)return Nd;iv=1;var n=m_(),a=ZR(),i=QR(),l="[object Null]",o="[object Undefined]",c=n?n.toStringTag:void 0;function d(h){return h==null?h===void 0?o:l:c&&c in Object(h)?a(h):i(h)}return Nd=d,Nd}var Md,lv;function $R(){if(lv)return Md;lv=1;function n(a){return a!=null&&typeof a=="object"}return Md=n,Md}var Dd,sv;function WR(){if(sv)return Dd;sv=1;var n=KR(),a=$R(),i="[object Symbol]";function l(o){return typeof o=="symbol"||a(o)&&n(o)==i}return Dd=l,Dd}var Ld,ov;function JR(){if(ov)return Ld;ov=1;var n=XR(),a=im(),i=WR(),l=NaN,o=/^[-+]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 l;if(a(g)){var v=typeof g.valueOf=="function"?g.valueOf():g;g=a(v)?v+"":v}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):o.test(g)?l:+g}return Ld=m,Ld}var Bd,uv;function p_(){if(uv)return Bd;uv=1;var n=im(),a=YR(),i=JR(),l="Expected a function",o=Math.max,c=Math.min;function d(h,m,g){var v,E,S,w,_,x,T=0,D=!1,z=!1,U=!0;if(typeof h!="function")throw new TypeError(l);m=i(m)||0,n(g)&&(D=!!g.leading,z="maxWait"in g,S=z?o(i(g.maxWait)||0,m):S,U="trailing"in g?!!g.trailing:U);function G(K){var Se=v,se=E;return v=E=void 0,T=K,w=h.apply(se,Se),w}function M(K){return T=K,_=setTimeout(ae,m),D?G(K):w}function P(K){var Se=K-x,se=K-T,L=m-Se;return z?c(L,S-se):L}function Q(K){var Se=K-x,se=K-T;return x===void 0||Se>=m||Se<0||z&&se>=S}function ae(){var K=a();if(Q(K))return Be(K);_=setTimeout(ae,P(K))}function Be(K){return _=void 0,U&&v?G(K):(v=E=void 0,w)}function He(){_!==void 0&&clearTimeout(_),T=0,v=x=E=_=void 0}function ge(){return _===void 0?w:Be(a())}function be(){var K=a(),Se=Q(K);if(v=arguments,E=this,x=K,Se){if(_===void 0)return M(x);if(z)return clearTimeout(_),_=setTimeout(ae,m),G(x)}return _===void 0&&(_=setTimeout(ae,m)),w}return be.cancel=He,be.flush=ge,be}return Bd=d,Bd}var e6=p_();const t6=bu(e6),n6="_container_131ib_1",a6="_categoryContainer_131ib_13",r6="_categoryButton_131ib_20",i6="_active_131ib_35",l6="_commentTextarea_131ib_44",kl={container:n6,categoryContainer:a6,categoryButton:r6,active:i6,commentTextarea:l6},s6=(n,a,i)=>{H.useEffect(()=>{if(n){const l=()=>{const c=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=a.current?Array.from(a.current.querySelectorAll(c)):[],h=i.current?Array.from(i.current.querySelectorAll(c)):[];return[...d,...h]},o=c=>{if(c.key==="Tab"){const d=l();if(d.length>0){const h=d[0],m=d[d.length-1],g=document.activeElement;!c.shiftKey&&g===m?(c.preventDefault(),h.focus()):c.shiftKey&&g===h&&(c.preventDefault(),m.focus())}}};return document.addEventListener("keydown",o,!0),()=>{document.removeEventListener("keydown",o,!0)}}},[n,a,i])},o6=({open:n,actionsRef:a,reaction:i,onReaction:l})=>{const o=tt(),c=H.useRef(null),d=t6(g=>{l({...i,comment:g})},300);H.useEffect(()=>()=>d.flush(),[d]),s6(n,a,c);const h=g=>{l({...i,category:i.category===g?void 0:g})},m=g=>d(g.target.value);return n?y.jsxs("div",{ref:c,className:kl.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:o("bot-bubble.reaction.say-more")}),y.jsx("div",{className:kl.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(g=>y.jsx("button",{className:$(kl.categoryButton,i?.category===g&&kl.active),onClick:()=>h(g),"aria-pressed":i?.category===g,"aria-label":o(`bot-bubble.reaction.category.${g}`),tabIndex:0,role:"radio",children:o(`bot-bubble.reaction.category.${g}`)},g))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:o("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:m,className:kl.commentTextarea,rows:3,"aria-label":o("bot-bubble.reaction.comment")})]}):null},u6="_botMessageActionContainer_18fjb_1",c6="_alwaysVisible_18fjb_15",f6="_active_18fjb_19",d6="_botMessageActionInnerContainer_18fjb_27",h6="_header_18fjb_52",m6="_botMessageActions_18fjb_57",p6="_reported_18fjb_68",g6="_action_18fjb_72",y6="_wave_18fjb_86",v6="_anyReport_18fjb_156",b6="_closeButton_18fjb_172",lt={botMessageActionContainer:u6,alwaysVisible:c6,active:f6,botMessageActionInnerContainer:d6,header:h6,botMessageActions:m6,reported:p6,action:g6,wave:y6,anyReport:v6,closeButton:b6},_6=({isSubmitting:n,onClick:a})=>{const i=tt();return y.jsx("button",{className:$(lt.action,lt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:a,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n?y.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"}):y.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"})})})},E6=({alwaysVisible:n,senderType:a,reaction:i,botMessageRef:l,message:o,animated:c,onReaction:d})=>{const h=tt(),[m,g]=H.useState(!1),[v,E]=H.useState(!1),[S,w]=H.useState(!1),_=H.useRef(null),x=H.useRef(null);rm(_,()=>{w(!1)});const T=P=>{P.key==="Escape"&&w(!1)};H.useEffect(()=>(document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}),[]),H.useEffect(()=>{S&&_.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[S]);const D=P=>{x.current&&clearTimeout(x.current),E(!0),d(P),x.current=setTimeout(()=>{E(!1)},1e3)},z=H.useCallback(async()=>{if(l.current)try{g(!0);const P=l.current.innerHTML,Q=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([P],{type:"text/html"}),"text/plain":new Blob([Q],{type:"text/plain"})})]),await new Promise(ae=>setTimeout(ae,1500))}finally{g(!1)}},[l]),U=()=>{w(!1),d(i?.type==="GOOD"?null:{type:"GOOD"})},G=()=>{d({...o.reaction,type:"BAD"}),w(!S)},M=P=>Q=>{(Q.key==="Enter"||Q.key===" ")&&P()};return y.jsx("div",{ref:_,className:$(lt.botMessageActionContainer,n&<.alwaysVisible,S&<.active),children:y.jsxs("div",{className:$(lt.botMessageActionInnerContainer,n&<.alwaysVisible,S&<.active,i&<.reported),role:"group",children:[y.jsxs("div",{className:lt.header,children:[y.jsxs("div",{className:$(lt.botMessageActions,i&<.reported),children:[a===gu.BOT&&y.jsx("button",{className:$(lt.action,c&<.wave,i?.type&<.anyReport,i?.type==="GOOD"&<.reported,"tooltip--top-right"),tabIndex:0,"aria-label":h(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":h(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:U,onKeyDown:M(U),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.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"}):y.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"})})}),a===gu.BOT&&y.jsx("button",{className:$(lt.action,c&<.wave,i?.type&<.anyReport,i?.type==="BAD"&<.reported,"tooltip--top-right"),tabIndex:0,"aria-label":h("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":h("bot-bubble.reaction.bad"),onPointerDown:G,onKeyDown:M(G),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.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"}):y.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"})})}),y.jsx("button",{className:$(lt.action,c&<.wave,"tooltip--top-right"),style:{visibility:S?"hidden":"visible"},tabIndex:0,"aria-label":h("bot-bubble.copy"),"data-title":h("bot-bubble.copy"),onClick:z,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:m?y.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"}):y.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"})})})]}),S&&y.jsx(_6,{isSubmitting:v,onClick:()=>w(!1)})]}),o.reaction&&y.jsx(o6,{open:S,actionsRef:_,reaction:o.reaction,onReaction:D})]})})},g_=H.forwardRef(({message:n,isAnimated:a,isFirstMessage:i,isLastMessage:l,isFirstMessageBySender:o,isLastMessageBySender:c,children:d,onReaction:h},m)=>{const g=tt(),v=H.useRef(null),E=n.sender.type===Te.UserType.BOT;return y.jsxs("li",{ref:m,className:$(pe.message,pe.messageBot,l&&pe.lastMessage,o&&pe.messageBotFirst,c&&pe.messageBotLast,"chat__bubbleContainer",a&&pe.messageBotAnimated,a&&"chat__bubbleContainer--animated",E?"chat__botBubbleContainer":"chat__agentBubbleContainer",o&&"chat__bubbleContainer--first",c&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:$(pe.avatar,E?pe.botAvatar:pe.agentAvatar,"chat__avatar",E?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:E?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:pe.messageContainer,children:[y.jsx("div",{ref:v,className:$(pe.bubble,pe.bubbleLeft,"chat__bubble",E?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":g(E?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:$(pe.leftText),children:d})}),h&&y.jsx(E6,{alwaysVisible:l&&c,senderType:n.sender.type,reaction:n.reaction,message:n,botMessageRef:v,animated:i,onReaction:h})]})]})}),S6="_sourceList_1n31h_1",T6="_source_1n31h_1",A6="_label_1n31h_37",Ud={sourceList:S6,source:T6,label:A6},y_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),v_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),b_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),__=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),O6=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(__,{...a});case"PDF":return y.jsx(b_,{...a});case"DOCX":return y.jsx(y_,{...a});default:return y.jsx(v_,{...a})}},lm=({sources:n,onLinkClick:a})=>{const i=tt(),l=c=>()=>{a(c.url)},o=c=>d=>{(d.key==="Enter"||d.key===" ")&&a(c.url)};return n.length?y.jsx("ul",{className:Ud.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(c=>y.jsx("li",{className:Ud.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:l(c),onKeyDown:o(c),children:[y.jsx(O6,{type:c.type,"aria-hidden":"true"}),y.jsx("div",{className:Ud.label,children:c.label})]})},c.url))}):null},x6="_button_3ui4g_1",C6="_buttonDefault_3ui4g_13",R6="_buttonPrimary_3ui4g_28",ts={button:x6,buttonDefault:C6,buttonPrimary:R6},Ru=({className:n,children:a,...i})=>y.jsx("button",{className:$(ts.button,n),type:"button",role:"button",...i,children:a}),w6="_title_137pi_1",N6="_buttons_137pi_6",M6="_button_137pi_6",D6="_imageContainer_137pi_29",L6="_image_137pi_29",B6="_video_container_137pi_44",U6="_video_137pi_44",j6="_only_137pi_58",un={title:w6,buttons:N6,button:M6,imageContainer:D6,image:L6,video_container:B6,video:U6,only:j6},H6=({buttons:n,onButtonClick:a})=>y.jsx("div",{className:$(un.buttons,"chat__bubbleButtons"),children:n.map((i,l)=>y.jsx(Ru,{className:$(un.button,"chat__bubbleButton"),onClick:()=>a(i),children:i.title},l))}),cv="newtab#",E_=({markdown:n,markdownOptions:a={},onLinkClick:i})=>{const l=c=>d=>(d.preventDefault(),c&&i(c),!1),o=({title:c,href:d,children:h})=>d.indexOf(cv)===0?y.jsx("a",{href:d.slice(cv.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:l(d),title:c,href:d,children:h});return y.jsx(Na,{options:{...a,overrides:{a:o}},children:n})},I6=({text:n,onLinkClick:a})=>n?y.jsx("div",{children:y.jsx(E_,{markdown:n,onLinkClick:a})}):null,z6=({title:n})=>n?y.jsx("h1",{className:un.title,children:n}):null,G6=({title:n,text:a,buttons:i,onButtonClick:l,onLinkClick:o})=>n?.length||a?.length||i?.length?y.jsxs("div",{className:$(pe.bubbleContent),children:[y.jsx(z6,{title:n}),y.jsx(I6,{text:a,onLinkClick:o}),y.jsx(H6,{buttons:i,onButtonClick:l})]}):null,k6=({alt:n,imageUrl:a,itemUrl:i,hasBody:l})=>a?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:un.video_container,children:y.jsx("iframe",{className:$(un.video,{[un.only]:!l}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:un.imageContainer,children:y.jsx("img",{className:$(un.image,{[un.only]:!l}),src:a,alt:n})})}):y.jsx("div",{className:un.imageContainer,children:y.jsx("img",{className:$(un.image,{[un.only]:!l}),src:a,alt:n})}):null,q6=({title:n,text:a,imageUrl:i,itemUrl:l,buttons:o,sources:c,onButtonClick:d,onLinkClick:h})=>{const m=!!n?.length||!!a?.length||!!o?.length;return y.jsxs("div",{className:$(un.detailMessage),children:[y.jsx(k6,{hasBody:m,imageUrl:i,itemUrl:l,alt:n||""}),m&&y.jsx(G6,{title:n,text:a,buttons:o,onLinkClick:h,onButtonClick:d}),y.jsx(lm,{sources:c,onLinkClick:h})]})},F6=H.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:a,children:i},l)=>{const o=tt();return y.jsx("li",{ref:l,className:$(pe.message,pe.messageGuest,n&&pe.messageGuestFirst,a&&pe.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:$(pe.bubble,pe.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":o("guest-bubble.label"),children:y.jsx("div",{className:$(pe.rightText),children:i})})})}),sm=()=>H.useMemo(()=>Vh(),[]),V6="_markdown_nw7vg_1",S_={markdown:V6},Qo="source-info-reference",Y6=({actionId:n,markdown:a,sources:i,onLinkClick:l})=>{const o=sm(),c=Ba(),d=P6(),h=st(v=>{const E=v.chat.sourceInfos;if(E?.type==="loaded"||E?.type==="loading")return E.chunkId}),m=v=>E=>{const S=E.key;(S==="ArrowDown"||S==="ArrowRight"||S==="Enter"||S===" "||S==="Space")&&(E.stopPropagation(),c(w1(o,n,v)))},g=v=>()=>{c(w1(o,n,v))};return H.useLayoutEffect(()=>{document.querySelectorAll(`.${Qo}`).forEach(v=>{const E=v.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&E.textContent?.endsWith(" ")&&E.textContent?.trim().length&&v.classList.add(`${Qo}--before-space`);const S=v.nextSibling;S&&S.nodeType===Node.TEXT_NODE&&S.textContent?.startsWith(" ")&&S.textContent?.trim().length&&v.classList.add(`${Qo}--after-space`)})},[a]),y.jsxs("div",{className:pe.bubbleContent,children:[y.jsx("div",{className:S_.markdown,children:y.jsx(E_,{markdown:a,onLinkClick:l,markdownOptions:{renderRule(v,E,S,w){if(E.type===fC.footnoteReference){const _=E.text===h;return y.jsx("span",{className:$(pe.sourceInfoReference,_&&pe.sourceInfoReferenceActive,Qo),children:y.jsx("a",{type:"button",tabIndex:0,onClick:g(E.text),onKeyDown:m(E.text),children:d(E.text)})},w.key)}return v()}}})}),y.jsx(lm,{sources:i,onLinkClick:l})]})},P6=()=>{const n=[];return i=>{const l=n.indexOf(i);return l>-1?l+1:(n.push(i),n.length)}},X6="_text_gp0s0_1",Z6="_command_gp0s0_5",fv={text:X6,command:Z6},Q6=({text:n,commands:a=[]})=>{const i=a.find(o=>n.startsWith(`/${o}`)),l=i?n.slice(i.length+1):n;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:fv.command,children:["/",i]}),l.split(`
|
|
117
|
-
`).map((o,c)=>y.jsxs("span",{className:fv.text,children:[o,y.jsx("br",{})]},c))]})},K6=({text:n,commands:a,sources:i,onLinkClick:l})=>y.jsxs("div",{className:pe.bubbleContent,children:[y.jsx(Q6,{text:n,commands:a}),y.jsx(lm,{sources:i,onLinkClick:l})]}),$6=H.forwardRef(({message:n,commands:a,isFirstMessage:i,isLastMessage:l,isFirstMessageBySender:o,isLastMessageBySender:c,onReaction:d,onButtonClick:h,onLinkClick:m},g)=>{const v=W6(n._id,n,a,h,m),E=S=>{d(n._id,S)};switch(n.sender.type){case Te.UserType.GUEST:return y.jsx(F6,{ref:g,isFirstMessageBySender:o,isLastMessageBySender:c,children:v});default:return y.jsx(g_,{ref:g,message:n,isAnimated:!1,isFirstMessage:i,isLastMessage:l,isFirstMessageBySender:o,isLastMessageBySender:c,onReaction:E,children:v})}}),W6=(n,a,i,l,o)=>{switch(a.type){case Te.MessageTypeEnum.TEXT:{const c=a;return y.jsx(K6,{text:c.text,commands:i,sources:a.sources||[],onLinkClick:o})}case Te.MessageTypeEnum.DETAIL:{const c=a;return y.jsx(q6,{title:c.title,text:c.text,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:a.sources||[],onButtonClick:l,onLinkClick:o})}case Te.MessageTypeEnum.MARKDOWN:{const c=a;return y.jsx(Y6,{actionId:n,markdown:c.markdown,sources:c.sources||[],onLinkClick:o})}}},J6=(n,a)=>n.message._id===a.message._id&&n.message.reaction===a.message.reaction&&n.isFirstMessage===a.isFirstMessage&&n.isLastMessage===a.isLastMessage&&n.isFirstMessageBySender===a.isFirstMessageBySender&&n.isLastMessageBySender===a.isLastMessageBySender,ew=kv.memo($6,J6),tw="_ticontainer_xg0dn_1",nw="_tiblock_xg0dn_5",aw="_tidot_xg0dn_12",ql={ticontainer:tw,tiblock:nw,tidot:aw},rw=({isTyping:n=!1})=>y.jsx("div",{className:ql.ticontainer,children:y.jsx("div",{className:ql.tiblock,children:n?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:$(ql.tidot,"chat__typingIndicator")}),y.jsx("div",{className:$(ql.tidot,"chat__typingIndicator")}),y.jsx("div",{className:$(ql.tidot,"chat__typingIndicator")})]}):null})}),iw=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),lw=({messages:n,isBotTyping:a,commands:i,onTranscriptItemReaction:l,onButtonClick:o,onLinkClick:c})=>{const d=H.useRef(0),h=H.useRef(!0),m=H.useRef(null),g=H.useRef(null),v=H.useRef(null),E=st(_=>_.settings.enableGeneralConditions);H.useLayoutEffect(()=>{if(n.length&&m.current&&(d.current<n.length||a)){if(g.current){const _=g.current.offsetTop;m.current.scrollTop=_}else if(v.current){const _=v.current.offsetTop;m.current.scrollTop=_}h.current&&(h.current=!1),d.current=n.length}},[n,h,a]);let S;const w=n.length;return y.jsxs("div",{ref:m,className:$(M1.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&y.jsx(TR,{}),y.jsxs("ul",{className:M1.messages,children:[n.map((_,x)=>{const T=sw(_,S),D=ow(_,x,n,a);S=_.sender.type;const z=x+1===w,U=x===0,G=_._id||`added-${x}`;return y.jsx(ew,{ref:z?v:null,message:_,commands:i,isFirstMessage:U,isLastMessage:z,isFirstMessageBySender:T,isLastMessageBySender:D,onButtonClick:o,onLinkClick:c,onReaction:l},z&&!a?"last":G)}),a&&y.jsx(g_,{ref:g,message:iw,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:S!==Te.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(rw,{isTyping:!0})},"last")]})]})},sw=(n,a)=>!a||a!==n.sender.type,ow=(n,a,i,l)=>{const o=n.sender.type,c=i.length;return a+1===c?!(o===Te.UserType.BOT&&l):o!==i.at(a+1)?.sender.type},uw="_bottomSheet_jp8dl_1",cw="_bottomSheetOpen_jp8dl_15",fw="_bottomSheetClose_jp8dl_20",Ma={bottomSheet:uw,bottomSheetOpen:cw,bottomSheetClose:fw},dw="_container_xc2nx_1",dv={container:dw},hw=({contentUrl:n})=>{const a=st(c=>c.connection.sessionId),[i,l]=H.useState(!1);H.useEffect(()=>{l(c=>c||!!n)},[n]);const o=H.useMemo(()=>{if(n&&a){const c=new URL(n,document.baseURI);return c.searchParams.set("sessionId",a),c.toString()}else return},[n,a]);return y.jsx("div",{className:$(dv.container,Ma.bottomSheet,{[Ma.bottomSheetOpen]:!!n,[Ma.bottomSheetClose]:i&&!n}),children:o&&y.jsx("iframe",{title:"Drawer",src:o,className:dv.iframe})})},mw="_container_6tt4m_1",pw={container:mw},gw=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),yw=()=>{const a=tt()("powered-by");return a&&a.length?y.jsx("div",{className:$(pw.container,"chat__poweredBy"),children:y.jsx(Na,{options:{overrides:{a:gw}},children:a})}):null},T_=({className:n,children:a,...i})=>y.jsx(Ru,{className:$(ts.buttonDefault,n),type:"button",...i,children:a}),yu=({className:n,children:a,...i})=>y.jsx(Ru,{className:$(ts.buttonPrimary,n),...i,children:a}),vw="_container_h23mk_1",bw="_formContainer_h23mk_17",_w="_emailInput_h23mk_22",Ew="_description_h23mk_52",Sw="_actions_h23mk_57",Tw="_validationError_h23mk_67",Aw="_submitted_h23mk_74",jr={container:vw,formContainer:bw,emailInput:_w,description:Ew,actions:Sw,validationError:Tw,submitted:Aw},Ow=({visible:n,onEmailExport:a,onClose:i})=>{const l=tt(),[o,c]=H.useState(void 0),[d,h]=H.useState(!1),[m,g]=H.useState(void 0),v=H.useRef(null);H.useEffect(()=>{n?(v.current?.focus(),h(!1),c(n)):o===!0&&c(!1)},[n,o]);const E=w=>{w.preventDefault(),m&&m.length>0&&(a(m),h(!0),setTimeout(i,3*1e3))},S=w=>{const _=w.target.value.trim(),x=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(_);g(x?_:"")};return y.jsxs("div",{className:$(jr.container,Ma.bottomSheet,{[Ma.bottomSheetOpen]:o===!0,[Ma.bottomSheetClose]:o===!1}),children:[y.jsx("h2",{children:l("export-transcript.email.title")}),y.jsx(Na,{className:jr.description,children:l("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:E,className:jr.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:v,type:"email",placeholder:l("export-transcript.email.placeholder"),className:jr.emailInput,onChange:S}),m?.length===0?y.jsx("div",{className:jr.validationError,children:l("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:jr.actions,children:[y.jsx(T_,{onClick:i,children:l("export-transcript.email.cancel")}),y.jsx(yu,{type:"submit",disabled:d||m===void 0||m.length===0,children:l("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:jr.submitted,children:l("export-transcript.email.success")})]})},xw="_inputContainer_fi5ao_1",Cw={inputContainer:xw},Rw="_blockUserInput_pot9c_1",ww={blockUserInput:Rw},Nw=({visible:n})=>{const a=tt();return n?y.jsx("div",{className:$(ww.blockUserInput,"chat__blockUserInput"),children:a("block-user-input.title")}):null},Mw="_commandsDropdown_5ytuv_1",Dw="_commands_5ytuv_1",Lw="_command_5ytuv_1",Bw="_commandActive_5ytuv_46",Uw="_commandsSelections_5ytuv_55",Kl={commandsDropdown:Mw,commands:Dw,command:Lw,commandActive:Bw,commandsSelections:Uw},jw=(n,a,i,l,o)=>{H.useEffect(()=>{const c=d=>{if(n.length)switch(d.key){case"Enter":i(n[a]);break;case"ArrowUp":l(h=>h>0?h-1:n.length-1);break;case"ArrowDown":l(h=>h<n.length-1?h+1:0);break;case"Escape":o([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[n,a,i,l,o])},Hw=({text:n,commands:a,onSelectCommand:i,onVisibilityChange:l})=>{const o=H.useRef(null),c=tt(),[d,h]=H.useState([]),[m,g]=H.useState(hv(a)),[v,E]=H.useState(0),S=w=>i(`/${w}`);return rm(o,()=>h([])),jw(d,v,S,E,h),H.useEffect(()=>{g(hv(a))},[a]),H.useEffect(()=>{const w=n.length||0;w===0||w>m||!n.startsWith("/")?h([]):h(a.filter(Iw(n))),E(0)},[a,n,m]),H.useEffect(()=>{l(!!d.length)},[d,l]),d.length?y.jsx("div",{ref:o,className:Kl.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Kl.commands,role:"listbox",children:d.map((w,_)=>y.jsxs("li",{className:$([Kl.command,v===_&&Kl.commandActive]),role:"option",onClick:()=>S(w),onMouseOver:()=>E(_),children:[y.jsxs("h1",{children:["/",w]}),y.jsx("p",{children:c(`commands.${w}`)})]},w))})}):null},hv=n=>Math.max(...n.map(a=>a.length+1)),Iw=n=>a=>{const i=`/${a}`;return i.startsWith(n)&&i.length>=n.length},mv=3,zw=({commands:n,onSelectCommand:a})=>{const i=tt(),[l,o]=H.useState(!1),c=g=>()=>{a(`/${g}`),o(!1)},d=()=>{o(!0)},h=()=>{o(!1)},m=l?n:n.slice(0,mv);return y.jsxs("div",{className:Kl.commandsSelections,children:[m.map(g=>y.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?y.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>mv?y.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]})},Gw="_callToActionContainer_d8izj_1",kw="_callToActionTitle_d8izj_23",qw="_rateOverlay_d8izj_30",Fw="_body_d8izj_52",Vw="_footer_d8izj_60",Yw="_actions_d8izj_75",Pw="_bubbles_d8izj_89",Xw="_stars_d8izj_191",Zw="_starsSmall_d8izj_205",Qw="_starsLarge_d8izj_211",Kw="_star_d8izj_191",$w="_starReadonly_d8izj_225",Ww="_starIcon_d8izj_235",Jw="_starsDescriptionContainer_d8izj_253",e3="_starsDescription_d8izj_253",Gt={callToActionContainer:Gw,callToActionTitle:kw,rateOverlay:qw,body:Fw,footer:Vw,actions:Yw,bubbles:Pw,stars:Xw,starsSmall:Zw,starsLarge:Qw,star:Kw,starReadonly:$w,starIcon:Ww,starsDescriptionContainer:Jw,starsDescription:e3},t3=({value:n,index:a,count:i,readonly:l,onHover:o,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return y.jsx("li",{className:$(Gt.star,{[Gt.starReadonly]:l},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":n>a?"true":"false","aria-posinset":a+1,"aria-setsize":i,tabIndex:0,onMouseOver:o,onKeyDown:d,onClick:c,children:y.jsx("span",{role:"img","aria-label":"Star",className:$(Gt.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.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"})})})})})},pv=5,A_=({value:n,size:a,readonly:i=!1,onChange:l})=>{const[o,c]=H.useState(void 0),d=()=>{c(void 0)},h=g=>()=>{if(!i){const v=g+1;c(v)}},m=g=>()=>{l&&!i&&(l(g===0&&n===1?0:g+1),c(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:$(Gt.stars,{[Gt.starsSmall]:a==="small",[Gt.starsLarge]:a==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:a==="small",chat__conversationRating__stars__large:a==="large"}),onMouseOut:d,children:Array(pv).fill(0).map((g,v)=>y.jsx(t3,{value:o===void 0?n:o,index:v,count:pv,readonly:i,onHover:h(v),onClick:m(v)},v))})},n3=({visible:n,onRate:a})=>{const i=tt();return n?y.jsxs("div",{className:$(Gt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:$(Gt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(A_,{value:0,size:"small",onChange:a})]}):null},jd=({isFirstMessageBySender:n,isLastMessageBySender:a,children:i})=>y.jsxs("div",{className:$(pe.message,pe.messageBot,n&&pe.messageBotFirst,a&&pe.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:$(pe.avatar,pe.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:$(pe.bubble,pe.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:$(pe.leftText,pe.bubbleContent),children:i})})]}),a3=({children:n})=>y.jsx("div",{className:$(pe.message,pe.messageGuest,pe.messageGuestFirst,pe.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:$(pe.bubble,pe.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:$(pe.rightText,pe.bubbleContent),children:n})})}),r3=()=>{const n=tt(),a=Ba(),i=st(T=>T.chat.conversationRating),[l,o]=H.useState(i.rating?.value||0),[c,d]=H.useState(void 0),[h,m]=H.useState(void 0),[g,v]=H.useState({submitted:!1,feedback:""}),E=H.useRef(null),[S,w]=H.useState(!1);H.useEffect(()=>{i.opener?(v({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),H.useEffect(()=>{o(i.rating?.value||0)},[i.rating?.value,i.opener]),H.useEffect(()=>{E.current&&(E.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),H.useEffect(()=>{const T=l>0?n(`conversation-rating.overlay.bot-message.rate-feedback.value-${l}`):void 0;d(T?.length?T:void 0)},[l,n]),H.useEffect(()=>{g.submitted?setTimeout(()=>w(!0),g.feedback.length?500:0):w(!1)},[g]);const _=T=>{T.preventDefault();const D=E.current?.value?.trim()||"";a(ZO(l,D)),v({submitted:!0,feedback:D})},x=()=>{i.opener==="CLOSE_CHAT"?a(n_()):i.opener==="RESTART_CHAT"?a(ls()):a(Xx())};return y.jsx("div",{className:$(Gt.rateOverlay,Ma.bottomSheet,"chat__conversationRating__overlay",{[Ma.bottomSheetOpen]:h===!0,[Ma.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:_,children:[y.jsxs("div",{className:$(Gt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:$(Gt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(jd,{isFirstMessageBySender:!0,isLastMessageBySender:!c,children:[y.jsx("h2",{children:n("conversation-rating.overlay.title")}),y.jsxs("div",{className:$(Gt.starsDescriptionContainer),children:[y.jsx(A_,{value:l,size:"large",readonly:g.submitted,onChange:o}),y.jsxs("div",{className:$(Gt.starsDescription),children:[y.jsx("div",{children:n("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:n("conversation-rating.overlay.star.very-good")})]})]})]}),c&&y.jsx(jd,{isFirstMessageBySender:!1,isLastMessageBySender:!S||!!g.feedback.length,children:y.jsx("div",{children:c})}),!!g.feedback.length&&y.jsx(a3,{children:g.feedback}),S&&y.jsx(jd,{isFirstMessageBySender:!!g.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:n("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:$(Gt.footer,"chat__conversationRating__overlay__footer"),children:[!g.submitted&&y.jsx("input",{ref:E,defaultValue:i.rating?.feedback||"",placeholder:n("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:$(Gt.actions,"chat__conversationRating__overlay__footer__actions"),children:[g.submitted?y.jsx(yu,{type:"button",disabled:!l,onClick:x,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(yu,{type:"submit",disabled:!l,children:n("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!g.submitted&&y.jsx(T_,{onClick:x,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.cancel")})]})]})]})})},i3=({numberOfMessagesFromGuest:n})=>{const a=Ba(),i=st(c=>c.chat.conversationRating),l=c=>{a(pu("CHAT",c))},o=!i.rating?.value&&n>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(n3,{visible:o,onRate:l}),y.jsx(r3,{})]}):null},l3=H.memo(i3),s3="_inputWrapper_e3h44_1",o3="_withOpenCommands_e3h44_14",u3="_messageInputWrapper_e3h44_20",c3="_messageInput_e3h44_20",f3="_buttons_e3h44_44",d3="_button_e3h44_44",Ri={inputWrapper:s3,withOpenCommands:o3,messageInputWrapper:u3,messageInput:c3,buttons:f3,button:d3},h3="_audioRecorder_g845f_1",m3="_audioButton_g845f_6",p3="_recorderIcon_g845f_37",g3="_spinning_g845f_60",Hr={audioRecorder:h3,audioButton:m3,recorderIcon:p3,spinning:g3},gv=2048,vu=16e3;class y3 extends kv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(a){super(a),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(a){this.mediaStream=a,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(a)}initRecording(a){const i=window.AudioContext||window.webkitAudioContext,l=new i;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(a),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(gv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(a){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=a.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=gv}}handleClickSubmitAudio(){const a=b3(this.leftchannel,this.recordingLength),i=_3(a,this.sampleRate||0),l=v3(i);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(a=>{a.stop()})}render(){return y.jsxs("div",{className:Hr.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:$(Hr.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:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:Hr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:Hr.audioRecorder,children:[y.jsx("button",{className:$(Hr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:Hr.recorderIcon}),y.jsx("button",{className:$(Hr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const v3=n=>{const a=new ArrayBuffer(44+n.length*2),i=new DataView(a);Ko(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Ko(i,8,"WAVE"),Ko(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,vu,!0),i.setUint32(28,vu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Ko(i,36,"data"),i.setUint32(40,n.length*2,!0);const l=n.length;let o=44;const c=1;for(let d=0;d<l;d++)i.setInt16(o,n[d]*(32767*c),!0),o+=2;return new Blob([i],{type:"audio/wav"})},Ko=(n,a,i)=>{for(let l=0;l<i.length;l++)n.setUint8(a+l,i.charCodeAt(l))},b3=(n,a)=>{const i=new Float32Array(a);let l=0;const o=n.length;for(let c=0;c<o;c++){const d=n[c];i.set(d,l),l+=d.length}return i},_3=(n,a)=>{if(vu===a)return n;const i=a/vu,l=Math.round(n.length/i),o=new Float32Array(l);let c=0,d=0;for(;c<o.length;){const h=Math.round((c+1)*i);let m=0,g=0;for(let v=d;v<h&&v<n.length;v++)m+=n[v],g++;o[c]=m/g,c++,d=h}return o},E3=({disabled:n,textInput:a,commandsVisible:i,hasCommands:l,onTextInput:o,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=tt(),m=H.useRef(null),{enableSpeechSupport:g}=st(_=>_.settings);H.useEffect(()=>{m.current?.focus()},[a]);const v=()=>{const _=m.current;_&&a.trim().length>=1&&c(a.trim())&&(_.value="",_.style.height="",_.focus())},E=_=>{_.preventDefault(),v()},S=_=>{const x=_.target.value;o(x),_.target.style.height="";const{scrollHeight:T}=_.target;_.target.style.height=`${T>150?150:T}px`},w=_=>{_.code==="Enter"&&!_.shiftKey?(_.repeat||v(),_.preventDefault()):i&&(_.code==="ArrowUp"||_.code==="ArrowDown")&&_.preventDefault()};return y.jsxs("form",{className:$(Ri.inputWrapper,i&&Ri.withOpenCommands,"chat__textInput"),onSubmit:E,children:[y.jsx("div",{className:Ri.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:Ri.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:a,onChange:S,onKeyDown:w,"aria-label":h("message-input-label"),"aria-controls":l?"command-list":void 0,"aria-haspopup":l?"listbox":void 0})}),y.jsx("div",{className:$(Ri.buttons,"chat__buttons"),children:a.length||!g||navigator.mediaDevices===void 0?y.jsx("button",{className:$(Ri.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:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.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&&y.jsx(y3,{translate:h,onAudioRecorded:d})})]})},S3="_quickReplies_83npe_1",T3="_quickReply_83npe_9",yv={quickReplies:S3,quickReply:T3},A3=({quickReplies:n,onQuickReplyClick:a})=>n.length?y.jsx("div",{className:$(yv.quickReplies,"chat__quickReplies"),children:n.map(i=>y.jsx(Ru,{tabIndex:0,className:$(yv.quickReply,"chat__button","chat__quickReply"),onClick:()=>a(i),children:i.label},i.label))}):null,vv=5e3,O3=1e3,x3=({isBotTyping:n,quickReplies:a,numberOfMessagesFromGuest:i,commands:l,onTextInput:o,onQuickReplyClick:c,onAudioRecorded:d})=>{const[h,m]=H.useState(""),[g,v]=H.useState(!1),[E,S]=H.useState(!1),w=H.useRef(0),_=H.useRef(0);H.useEffect(()=>{if(g&&!n){const D=w.current?Date.now()-w.current:0;D>vv?v(!1):setTimeout(()=>{v(!1)},vv-D)}},[g,n]),H.useEffect(()=>{g&&(w.current=Date.now())},[g]);const x=D=>{const z=Date.now()-_.current<O3;return E?!1:n||z?(v(!0),!1):(o(D),m(""),_.current=Date.now(),!0)},T=D=>{m(D+" ")};return y.jsxs("div",{className:$(Cw.inputContainer),children:[y.jsx(A3,{quickReplies:a,onQuickReplyClick:c}),y.jsx(Nw,{visible:g}),!g&&y.jsx(l3,{numberOfMessagesFromGuest:i}),!!l?.length&&y.jsx(Hw,{text:h,commands:l,onSelectCommand:T,onVisibilityChange:S}),y.jsx(E3,{textInput:h,disabled:g,commandsVisible:E,hasCommands:!!l?.length,onTextInput:m,onTextInputSubmit:x,onAudioRecorded:d}),!!l?.length&&y.jsx(zw,{commands:l,onSelectCommand:m})]})},C3=({clientName:n,messages:a,quickReplies:i,isBotTyping:l,drawerContentUrl:o,onMessageFromUser:c,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:g,onTranscriptExport:v,onTranscriptItemReaction:E})=>{const S=Ba(),w=st(G=>G.connection.connectionState),{enableTranscriptExportEmail:_,commands:x}=st(G=>G.settings),{showTranscriptMailOverlay:T,conversationRating:D}=st(G=>G.chat),z=a.filter(G=>G.sender.type===gu.GUEST).length;H.useEffect(()=>{w===kr.CONNECTED&&S(r_(n))},[n,w,S]);const U=()=>{S(a_())};return y.jsxs("div",{className:yd.container,children:[y.jsxs("div",{className:$([yd.chatcontent,(T||D?.opener)&&yd.accessabilityHidden]),children:[y.jsx(lw,{messages:a,isBotTyping:l,commands:x,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:E}),y.jsx(x3,{isBotTyping:l,quickReplies:l?[]:i,numberOfMessagesFromGuest:z,commands:x,onQuickReplyClick:d,onTextInput:c,onAudioRecorded:g}),y.jsx(yw,{})]}),_&&y.jsx(Ow,{visible:!!T,onEmailExport:v,onClose:U}),y.jsx(hw,{contentUrl:o})]})},R3=n=>{const{messages:a,quickReplies:i,isBotTyping:l,drawerContentUrl:o}=n.chat;return{messages:a,quickReplies:i,isBotTyping:l,drawerContentUrl:o}},w3=n=>({onRestartChat:()=>n(ls()),onMessageFromUser:a=>n(Mb(a)),onAudioRecorded:a=>n(FO(a)),onActionFromUser:a=>n(a),onQuickReplyClick:a=>n(Nb(a)),onNluEvent:a=>n(jb(a)),onButtonClick:a=>n(KO(a)),onLinkClick:a=>n(Hb(a)),onTranscriptExport:a=>n(YO(a)),onTranscriptItemReaction:(a,i)=>{n(Te.Actions.transcriptItemGuestReaction(a,i?.type||null,i?.category,i?.comment))}}),N3=dT(R3,w3)(C3),O_=()=>H.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),M3=n=>a=>{const i=a.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(a.stopPropagation(),n())},D3=({onClick:n})=>{const a=tt();return O_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":a("header.close-chat"),"data-title":a("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:M3(n),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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},L3="_header_3gvbz_1",B3="_logoContainer_3gvbz_14",U3="_logo_3gvbz_14",j3="_actions_3gvbz_28",H3="_active_3gvbz_43",I3="_menuContainer_3gvbz_56",z3="_menu_3gvbz_56",G3="_divider_3gvbz_86",cr={header:L3,logoContainer:B3,logo:U3,actions:j3,active:H3,menuContainer:I3,menu:z3,divider:G3},k3=({icon:n})=>{switch(n){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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"star":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("div",{})}},q3=H.forwardRef(({selected:n,item:a,onClick:i},l)=>{const o=tt(),c=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":n,role:"option",className:a.withDivider?cr.divider:void 0,children:y.jsxs("a",{ref:l,type:"button",role:"button",tabIndex:-1,onClick:c,children:[y.jsx(k3,{icon:a.icon}),y.jsx("span",{children:o(`header.menu.${a.id}`)})]})})}),F3=(n,a)=>{const i=O_(),{menuItems:l,enableStandaloneView:o,enableTranscriptExportPdf:c,enableTranscriptExportEmail:d}=st(g=>g.settings),h=st(g=>g.chat.conversationRating.enabled);return H.useMemo(()=>{const g=[],v=l.filter(({visibility:E})=>n?E==="always"||E==="chat-only":E==="always"||E==="start-screen-only");if(n&&(g.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&o&&g.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),a&&c&&g.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),a&&d&&g.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),a&&h&&g.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),g.length>0&&v.length)){const E=g.pop();E&&l.length&&g.push({...E,withDivider:!0})}return g.push(...v),g},[n,a,c,d,o,h,i,l])},V3=({chatStarted:n,hasGuestMessages:a})=>{const i=Ba(),l=tt(),[o,c]=H.useState(!1),[d,h]=H.useState(-1),m=H.useRef(null),g=H.useRef(null),v=H.useRef([]),E=F3(n,a);H.useEffect(()=>{v.current[d]?.focus()},[d]);const S=H.useCallback(()=>{i(a?pu("RESTART_CHAT"):ls()),c(!1),h(0)},[a,i]),w=H.useCallback(T=>{switch(T.type){case"restart-chat":S();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(PO());break;case"send-transcript":i(a_());break;case"rate-conversation":i(pu("MENU"));break;case"link":i(Hb(T.url));break;case"action":i(JSON.parse(JSON.stringify(T.action)));break}c(!1)},[i,S,c]);H.useEffect(()=>{const T=D=>{if(o)switch(D.key){case"Enter":D.preventDefault(),w(E[d]);break;case"ArrowUp":h(z=>z>0?z-1:E.length-1);break;case"ArrowDown":h(z=>z<E.length-1?z+1:0);break;case"Escape":c(!1);break;case"Tab":d>-1&&c(!1);break}};return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[o,d,E,h,c,w]),H.useEffect(()=>{o||h(-1)},[o,d]),rm(g,()=>c(!1));const _=()=>{c(T=>!T)},x=()=>{setTimeout(()=>{const T=document.activeElement;g.current&&!g.current.contains(T)&&c(!1)},0)};return E.length?y.jsxs("div",{className:$(cr.menuContainer),ref:g,children:[y.jsx("button",{ref:m,className:$(o&&cr.active,o?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":l("header.menu.title"),"data-title":l("header.menu.title"),onClick:_,onBlur:x,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})}),o&&y.jsx("nav",{className:cr.menu,"aria-label":l("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:E.map((T,D)=>y.jsx(q3,{ref:z=>{v.current[D]=z},selected:d===D,item:T,onClick:()=>w(T)},T.id))})})]}):null},bv=({className:n,chatStarted:a,...i})=>{const l=Ba(),o=st(h=>h.chat.conversationRating),c=st(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{o.enabled&&!o.opener&&c?l(pu("CLOSE_CHAT")):l(n_())};return y.jsxs("div",{className:$([cr.header,n]),...i,children:[y.jsx("div",{className:cr.logoContainer,children:y.jsx("div",{className:cr.logo})}),y.jsxs("div",{className:cr.actions,children:[y.jsx(V3,{chatStarted:a,hasGuestMessages:c}),y.jsx(D3,{onClick:d})]})]})},Y3="_chatwindow_rkbir_1",P3="_chatwindowWithAside_rkbir_21",_v={chatwindow:Y3,chatwindowWithAside:P3},x_=()=>{const[n,a]=H.useState(!1);return H.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),l=()=>a(i.matches);return l(),i.addEventListener("change",l),()=>i.removeEventListener("change",l)},[]),n},X3="_sourceInfos_vei0l_1",Z3="_waitForLoading_vei0l_24",Q3="_loadingContent_vei0l_28",K3="_sourceHeader_vei0l_37",$3="_sourceHeaderIcon_vei0l_57",W3="_sourceContent_vei0l_61",J3="_openSourceButton_vei0l_69",eN="_sourceButtonLabel_vei0l_79",tN="_closeSourceInfosButton_vei0l_101",nN="_loadingSourceInfos_vei0l_125",aN="_loading_vei0l_28",rN="_loadingError_vei0l_139",iN="_highlightLoadingInfo_vei0l_155",lN="_highlightLoadingInfoInnerContainer_vei0l_169",sN="_highlightLoadingInfoContent_vei0l_178",oN="_highlightLoadingInfoCloseIcon_vei0l_198",uN="_highlightLoader_vei0l_203",cN="_highlightLoaderLoading_vei0l_210",xt={sourceInfos:X3,waitForLoading:Z3,loadingContent:Q3,sourceHeader:K3,sourceHeaderIcon:$3,sourceContent:W3,openSourceButton:J3,sourceButtonLabel:eN,closeSourceInfosButton:tN,loadingSourceInfos:nN,loading:aN,loadingError:rN,highlightLoadingInfo:iN,highlightLoadingInfoInnerContainer:lN,highlightLoadingInfoContent:sN,highlightLoadingInfoCloseIcon:oN,highlightLoader:uN,highlightLoaderLoading:cN},fN=({onClick:n})=>{const a=tt();return y.jsx("button",{className:$(xt.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":a("source-infos.close"),"data-title":a("source-infos.close"),tabIndex:0,onClick:n,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})})},dN=H.forwardRef(({sourceInfos:n,onClose:a,...i},l)=>y.jsxs("div",{className:xt.sourceHeader,...i,ref:l,children:[y.jsx("div",{children:n?y.jsx("p",{id:"source-info-title",children:n.title}):y.jsx("p",{children:" "})}),y.jsx(fN,{onClick:a})]})),hN=({loading:n})=>y.jsx("div",{className:xt.highlightLoader,children:n&&y.jsx("div",{className:xt.highlightLoaderLoading})});/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:C_,setPrototypeOf:Ev,isFrozen:mN,getPrototypeOf:pN,getOwnPropertyDescriptor:gN}=Object;let{freeze:kt,seal:xn,create:gh}=Object,{apply:yh,construct:vh}=typeof Reflect<"u"&&Reflect;kt||(kt=function(a){return a});xn||(xn=function(a){return a});yh||(yh=function(a,i){for(var l=arguments.length,o=new Array(l>2?l-2:0),c=2;c<l;c++)o[c-2]=arguments[c];return a.apply(i,o)});vh||(vh=function(a){for(var i=arguments.length,l=new Array(i>1?i-1:0),o=1;o<i;o++)l[o-1]=arguments[o];return new a(...l)});const $o=qt(Array.prototype.forEach),yN=qt(Array.prototype.lastIndexOf),Sv=qt(Array.prototype.pop),Fl=qt(Array.prototype.push),vN=qt(Array.prototype.splice),au=qt(String.prototype.toLowerCase),Hd=qt(String.prototype.toString),Id=qt(String.prototype.match),Vl=qt(String.prototype.replace),bN=qt(String.prototype.indexOf),_N=qt(String.prototype.trim),In=qt(Object.prototype.hasOwnProperty),It=qt(RegExp.prototype.test),Yl=EN(TypeError);function qt(n){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,l=new Array(i>1?i-1:0),o=1;o<i;o++)l[o-1]=arguments[o];return yh(n,a,l)}}function EN(n){return function(){for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return vh(n,i)}}function Ce(n,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:au;Ev&&Ev(n,null);let l=a.length;for(;l--;){let o=a[l];if(typeof o=="string"){const c=i(o);c!==o&&(mN(a)||(a[l]=c),o=c)}n[o]=!0}return n}function SN(n){for(let a=0;a<n.length;a++)In(n,a)||(n[a]=null);return n}function Ra(n){const a=gh(null);for(const[i,l]of C_(n))In(n,i)&&(Array.isArray(l)?a[i]=SN(l):l&&typeof l=="object"&&l.constructor===Object?a[i]=Ra(l):a[i]=l);return a}function Pl(n,a){for(;n!==null;){const l=gN(n,a);if(l){if(l.get)return qt(l.get);if(typeof l.value=="function")return qt(l.value)}n=pN(n)}function i(){return null}return i}const Tv=kt(["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","search","section","select","shadow","slot","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"]),zd=kt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Gd=kt(["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"]),TN=kt(["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"]),kd=kt(["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"]),AN=kt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Av=kt(["#text"]),Ov=kt(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),qd=kt(["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","mask-type","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"]),xv=kt(["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"]),Wo=kt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ON=xn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xN=xn(/<%[\w\W]*|[\w\W]*%>/gm),CN=xn(/\$\{[\w\W]*/gm),RN=xn(/^data-[\-\w.\u00B7-\uFFFF]+$/),wN=xn(/^aria-[\-\w]+$/),R_=xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),NN=xn(/^(?:\w+script|data):/i),MN=xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),w_=xn(/^html$/i),DN=xn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Cv=Object.freeze({__proto__:null,ARIA_ATTR:wN,ATTR_WHITESPACE:MN,CUSTOM_ELEMENT:DN,DATA_ATTR:RN,DOCTYPE_NAME:w_,ERB_EXPR:xN,IS_ALLOWED_URI:R_,IS_SCRIPT_OR_DATA:NN,MUSTACHE_EXPR:ON,TMPLIT_EXPR:CN});const Xl={element:1,text:3,progressingInstruction:7,comment:8,document:9},LN=function(){return typeof window>"u"?null:window},BN=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let l=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(l=i.getAttribute(o));const c="dompurify"+(l?"#"+l:"");try{return a.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Rv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function N_(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LN();const a=re=>N_(re);if(a.version="3.3.0",a.removed=[],!n||!n.document||n.document.nodeType!==Xl.document||!n.Element)return a.isSupported=!1,a;let{document:i}=n;const l=i,o=l.currentScript,{DocumentFragment:c,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:g,NamedNodeMap:v=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:E,DOMParser:S,trustedTypes:w}=n,_=m.prototype,x=Pl(_,"cloneNode"),T=Pl(_,"remove"),D=Pl(_,"nextSibling"),z=Pl(_,"childNodes"),U=Pl(_,"parentNode");if(typeof d=="function"){const re=i.createElement("template");re.content&&re.content.ownerDocument&&(i=re.content.ownerDocument)}let G,M="";const{implementation:P,createNodeIterator:Q,createDocumentFragment:ae,getElementsByTagName:Be}=i,{importNode:He}=l;let ge=Rv();a.isSupported=typeof C_=="function"&&typeof U=="function"&&P&&P.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:K,TMPLIT_EXPR:Se,DATA_ATTR:se,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:oe,CUSTOM_ELEMENT:_e}=Cv;let{IS_ALLOWED_URI:me}=Cv,O=null;const F=Ce({},[...Tv,...zd,...Gd,...kd,...Av]);let X=null;const J=Ce({},[...Ov,...qd,...xv,...Wo]);let ee=Object.seal(gh(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}})),fe=null,Ae=null;const We=Object.seal(gh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ke=!0,$t=!0,Ua=!1,bt=!0,jt=!1,dn=!0,wn=!1,hr=!1,Bi=!1,na=!1,ja=!1,Ha=!1,Yr=!0,ss=!1;const Mu="user-content-";let Ct=!0,mr=!1,aa={},ra=null;const pr=Ce({},["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 os=null;const Ui=Ce({},["audio","video","img","source","image","track"]);let ji=null;const us=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kn="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let ct=Tt,Hi=!1,Ii=null;const Du=Ce({},[kn,St,Tt],Hd);let ia=Ce({},["mi","mo","mn","ms","mtext"]),la=Ce({},["annotation-xml"]);const Pr=Ce({},["title","style","font","a","script"]);let Wt=null;const Xr=["application/xhtml+xml","text/html"],gr="text/html";let ft=null,sa=null;const zi=i.createElement("form"),Ia=function(C){return C instanceof RegExp||C instanceof Function},Gi=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(sa&&sa===C)){if((!C||typeof C!="object")&&(C={}),C=Ra(C),Wt=Xr.indexOf(C.PARSER_MEDIA_TYPE)===-1?gr:C.PARSER_MEDIA_TYPE,ft=Wt==="application/xhtml+xml"?Hd:au,O=In(C,"ALLOWED_TAGS")?Ce({},C.ALLOWED_TAGS,ft):F,X=In(C,"ALLOWED_ATTR")?Ce({},C.ALLOWED_ATTR,ft):J,Ii=In(C,"ALLOWED_NAMESPACES")?Ce({},C.ALLOWED_NAMESPACES,Hd):Du,ji=In(C,"ADD_URI_SAFE_ATTR")?Ce(Ra(us),C.ADD_URI_SAFE_ATTR,ft):us,os=In(C,"ADD_DATA_URI_TAGS")?Ce(Ra(Ui),C.ADD_DATA_URI_TAGS,ft):Ui,ra=In(C,"FORBID_CONTENTS")?Ce({},C.FORBID_CONTENTS,ft):pr,fe=In(C,"FORBID_TAGS")?Ce({},C.FORBID_TAGS,ft):Ra({}),Ae=In(C,"FORBID_ATTR")?Ce({},C.FORBID_ATTR,ft):Ra({}),aa=In(C,"USE_PROFILES")?C.USE_PROFILES:!1,ke=C.ALLOW_ARIA_ATTR!==!1,$t=C.ALLOW_DATA_ATTR!==!1,Ua=C.ALLOW_UNKNOWN_PROTOCOLS||!1,bt=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,jt=C.SAFE_FOR_TEMPLATES||!1,dn=C.SAFE_FOR_XML!==!1,wn=C.WHOLE_DOCUMENT||!1,na=C.RETURN_DOM||!1,ja=C.RETURN_DOM_FRAGMENT||!1,Ha=C.RETURN_TRUSTED_TYPE||!1,Bi=C.FORCE_BODY||!1,Yr=C.SANITIZE_DOM!==!1,ss=C.SANITIZE_NAMED_PROPS||!1,Ct=C.KEEP_CONTENT!==!1,mr=C.IN_PLACE||!1,me=C.ALLOWED_URI_REGEXP||R_,ct=C.NAMESPACE||Tt,ia=C.MATHML_TEXT_INTEGRATION_POINTS||ia,la=C.HTML_INTEGRATION_POINTS||la,ee=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Ia(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Ia(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),jt&&($t=!1),ja&&(na=!0),aa&&(O=Ce({},Av),X=[],aa.html===!0&&(Ce(O,Tv),Ce(X,Ov)),aa.svg===!0&&(Ce(O,zd),Ce(X,qd),Ce(X,Wo)),aa.svgFilters===!0&&(Ce(O,Gd),Ce(X,qd),Ce(X,Wo)),aa.mathMl===!0&&(Ce(O,kd),Ce(X,xv),Ce(X,Wo))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?We.tagCheck=C.ADD_TAGS:(O===F&&(O=Ra(O)),Ce(O,C.ADD_TAGS,ft))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?We.attributeCheck=C.ADD_ATTR:(X===J&&(X=Ra(X)),Ce(X,C.ADD_ATTR,ft))),C.ADD_URI_SAFE_ATTR&&Ce(ji,C.ADD_URI_SAFE_ATTR,ft),C.FORBID_CONTENTS&&(ra===pr&&(ra=Ra(ra)),Ce(ra,C.FORBID_CONTENTS,ft)),Ct&&(O["#text"]=!0),wn&&Ce(O,["html","head","body"]),O.table&&(Ce(O,["tbody"]),delete fe.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw Yl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Yl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=C.TRUSTED_TYPES_POLICY,M=G.createHTML("")}else G===void 0&&(G=BN(w,o)),G!==null&&typeof M=="string"&&(M=G.createHTML(""));kt&&kt(C),sa=C}},ki=Ce({},[...zd,...Gd,...TN]),qi=Ce({},[...kd,...AN]),cs=function(C){let Z=U(C);(!Z||!Z.tagName)&&(Z={namespaceURI:ct,tagName:"template"});const te=au(C.tagName),ze=au(Z.tagName);return Ii[C.namespaceURI]?C.namespaceURI===St?Z.namespaceURI===Tt?te==="svg":Z.namespaceURI===kn?te==="svg"&&(ze==="annotation-xml"||ia[ze]):!!ki[te]:C.namespaceURI===kn?Z.namespaceURI===Tt?te==="math":Z.namespaceURI===St?te==="math"&&la[ze]:!!qi[te]:C.namespaceURI===Tt?Z.namespaceURI===St&&!la[ze]||Z.namespaceURI===kn&&!ia[ze]?!1:!qi[te]&&(Pr[te]||!ki[te]):!!(Wt==="application/xhtml+xml"&&Ii[C.namespaceURI]):!1},Ft=function(C){Fl(a.removed,{element:C});try{U(C).removeChild(C)}catch{T(C)}},Nn=function(C,Z){try{Fl(a.removed,{attribute:Z.getAttributeNode(C),from:Z})}catch{Fl(a.removed,{attribute:null,from:Z})}if(Z.removeAttribute(C),C==="is")if(na||ja)try{Ft(Z)}catch{}else try{Z.setAttribute(C,"")}catch{}},Fi=function(C){let Z=null,te=null;if(Bi)C="<remove></remove>"+C;else{const Ee=Id(C,/^[\r\n\t ]+/);te=Ee&&Ee[0]}Wt==="application/xhtml+xml"&&ct===Tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const ze=G?G.createHTML(C):C;if(ct===Tt)try{Z=new S().parseFromString(ze,Wt)}catch{}if(!Z||!Z.documentElement){Z=P.createDocument(ct,"template",null);try{Z.documentElement.innerHTML=Hi?M:ze}catch{}}const nt=Z.body||Z.documentElement;return C&&te&&nt.insertBefore(i.createTextNode(te),nt.childNodes[0]||null),ct===Tt?Be.call(Z,wn?"html":"body")[0]:wn?Z.documentElement:nt},Vi=function(C){return Q.call(C.ownerDocument||C,C,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},hn=function(C){return C instanceof E&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof v)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},dt=function(C){return typeof h=="function"&&C instanceof h};function Je(re,C,Z){$o(re,te=>{te.call(a,C,Z,sa)})}const oa=function(C){let Z=null;if(Je(ge.beforeSanitizeElements,C,null),hn(C))return Ft(C),!0;const te=ft(C.nodeName);if(Je(ge.uponSanitizeElement,C,{tagName:te,allowedTags:O}),dn&&C.hasChildNodes()&&!dt(C.firstElementChild)&&It(/<[/\w!]/g,C.innerHTML)&&It(/<[/\w!]/g,C.textContent)||C.nodeType===Xl.progressingInstruction||dn&&C.nodeType===Xl.comment&&It(/<[/\w]/g,C.data))return Ft(C),!0;if(!(We.tagCheck instanceof Function&&We.tagCheck(te))&&(!O[te]||fe[te])){if(!fe[te]&&fs(te)&&(ee.tagNameCheck instanceof RegExp&&It(ee.tagNameCheck,te)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(te)))return!1;if(Ct&&!ra[te]){const ze=U(C)||C.parentNode,nt=z(C)||C.childNodes;if(nt&&ze){const Ee=nt.length;for(let Rt=Ee-1;Rt>=0;--Rt){const mn=x(nt[Rt],!0);mn.__removalCount=(C.__removalCount||0)+1,ze.insertBefore(mn,D(C))}}}return Ft(C),!0}return C instanceof m&&!cs(C)||(te==="noscript"||te==="noembed"||te==="noframes")&&It(/<\/no(script|embed|frames)/i,C.innerHTML)?(Ft(C),!0):(jt&&C.nodeType===Xl.text&&(Z=C.textContent,$o([be,K,Se],ze=>{Z=Vl(Z,ze," ")}),C.textContent!==Z&&(Fl(a.removed,{element:C.cloneNode()}),C.textContent=Z)),Je(ge.afterSanitizeElements,C,null),!1)},Zr=function(C,Z,te){if(Yr&&(Z==="id"||Z==="name")&&(te in i||te in zi))return!1;if(!($t&&!Ae[Z]&&It(se,Z))){if(!(ke&&It(L,Z))){if(!(We.attributeCheck instanceof Function&&We.attributeCheck(Z,C))){if(!X[Z]||Ae[Z]){if(!(fs(C)&&(ee.tagNameCheck instanceof RegExp&&It(ee.tagNameCheck,C)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(C))&&(ee.attributeNameCheck instanceof RegExp&&It(ee.attributeNameCheck,Z)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Z,C))||Z==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&It(ee.tagNameCheck,te)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(te))))return!1}else if(!ji[Z]){if(!It(me,Vl(te,oe,""))){if(!((Z==="src"||Z==="xlink:href"||Z==="href")&&C!=="script"&&bN(te,"data:")===0&&os[C])){if(!(Ua&&!It(W,Vl(te,oe,"")))){if(te)return!1}}}}}}}return!0},fs=function(C){return C!=="annotation-xml"&&Id(C,_e)},ds=function(C){Je(ge.beforeSanitizeAttributes,C,null);const{attributes:Z}=C;if(!Z||hn(C))return;const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let ze=Z.length;for(;ze--;){const nt=Z[ze],{name:Ee,namespaceURI:Rt,value:mn}=nt,Vt=ft(Ee),qn=mn;let _t=Ee==="value"?qn:_N(qn);if(te.attrName=Vt,te.attrValue=_t,te.keepAttr=!0,te.forceKeepAttr=void 0,Je(ge.uponSanitizeAttribute,C,te),_t=te.attrValue,ss&&(Vt==="id"||Vt==="name")&&(Nn(Ee,C),_t=Mu+_t),dn&&It(/((--!?|])>)|<\/(style|title|textarea)/i,_t)){Nn(Ee,C);continue}if(Vt==="attributename"&&Id(_t,"href")){Nn(Ee,C);continue}if(te.forceKeepAttr)continue;if(!te.keepAttr){Nn(Ee,C);continue}if(!bt&&It(/\/>/i,_t)){Nn(Ee,C);continue}jt&&$o([be,K,Se],Pi=>{_t=Vl(_t,Pi," ")});const Yi=ft(C.nodeName);if(!Zr(Yi,Vt,_t)){Nn(Ee,C);continue}if(G&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Rt)switch(w.getAttributeType(Yi,Vt)){case"TrustedHTML":{_t=G.createHTML(_t);break}case"TrustedScriptURL":{_t=G.createScriptURL(_t);break}}if(_t!==qn)try{Rt?C.setAttributeNS(Rt,Ee,_t):C.setAttribute(Ee,_t),hn(C)?Ft(C):Sv(a.removed)}catch{Nn(Ee,C)}}Je(ge.afterSanitizeAttributes,C,null)},hs=function re(C){let Z=null;const te=Vi(C);for(Je(ge.beforeSanitizeShadowDOM,C,null);Z=te.nextNode();)Je(ge.uponSanitizeShadowNode,Z,null),oa(Z),ds(Z),Z.content instanceof c&&re(Z.content);Je(ge.afterSanitizeShadowDOM,C,null)};return a.sanitize=function(re){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,te=null,ze=null,nt=null;if(Hi=!re,Hi&&(re="<!-->"),typeof re!="string"&&!dt(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw Yl("dirty is not a string, aborting")}else throw Yl("toString is not a function");if(!a.isSupported)return re;if(hr||Gi(C),a.removed=[],typeof re=="string"&&(mr=!1),mr){if(re.nodeName){const mn=ft(re.nodeName);if(!O[mn]||fe[mn])throw Yl("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof h)Z=Fi("<!---->"),te=Z.ownerDocument.importNode(re,!0),te.nodeType===Xl.element&&te.nodeName==="BODY"||te.nodeName==="HTML"?Z=te:Z.appendChild(te);else{if(!na&&!jt&&!wn&&re.indexOf("<")===-1)return G&&Ha?G.createHTML(re):re;if(Z=Fi(re),!Z)return na?null:Ha?M:""}Z&&Bi&&Ft(Z.firstChild);const Ee=Vi(mr?re:Z);for(;ze=Ee.nextNode();)oa(ze),ds(ze),ze.content instanceof c&&hs(ze.content);if(mr)return re;if(na){if(ja)for(nt=ae.call(Z.ownerDocument);Z.firstChild;)nt.appendChild(Z.firstChild);else nt=Z;return(X.shadowroot||X.shadowrootmode)&&(nt=He.call(l,nt,!0)),nt}let Rt=wn?Z.outerHTML:Z.innerHTML;return wn&&O["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&It(w_,Z.ownerDocument.doctype.name)&&(Rt="<!DOCTYPE "+Z.ownerDocument.doctype.name+`>
|
|
118
|
-
`+Rt),jt&&$o([be,K,Se],mn=>{Rt=Vl(Rt,mn," ")}),G&&Ha?G.createHTML(Rt):Rt},a.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gi(re),hr=!0},a.clearConfig=function(){sa=null,hr=!1},a.isValidAttribute=function(re,C,Z){sa||Gi({});const te=ft(re),ze=ft(C);return Zr(te,ze,Z)},a.addHook=function(re,C){typeof C=="function"&&Fl(ge[re],C)},a.removeHook=function(re,C){if(C!==void 0){const Z=yN(ge[re],C);return Z===-1?void 0:vN(ge[re],Z,1)[0]}return Sv(ge[re])},a.removeHooks=function(re){ge[re]=[]},a.removeAllHooks=function(){ge=Rv()},a}var UN=N_();const jN=({onClose:n})=>{const a=tt();return y.jsxs("div",{className:xt.highlightLoadingInfo,onClick:n,children:[y.jsx("div",{className:xt.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})}),y.jsxs("div",{className:xt.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:xt.highlightLoadingInfoContent,children:[y.jsx("h3",{children:a("source-infos.highlight-loading.title")}),y.jsx("p",{children:a("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.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"})})]})]})},HN=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),IN=({className:n,children:a,...i})=>y.jsx("a",{className:$(ts.button,ts.buttonDefault,n),type:"button",role:"button",...i,children:a}),zN=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:y.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"})}),GN=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(__,{...a});case"PDF":return y.jsx(b_,{...a});case"DOCX":return y.jsx(y_,{...a});case"TEXT":return y.jsx(zN,{...a});default:return y.jsx(v_,{...a})}},kN=({url:n,knowledgeBaseType:a})=>{const i=tt();return y.jsx(IN,{className:xt.openSourceButton,href:n,target:"_blank",children:y.jsxs("div",{className:xt.sourceButtonLabel,children:[y.jsx("div",{className:xt.sourceHeaderIcon,children:y.jsx(GN,{type:a})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},qN=({sourceInfos:{content:n,url:a,knowledgeBaseType:i,highlighted:l}})=>{const[o,c]=H.useState(!l);H.useEffect(()=>{l&&c(!1)},[l]);const d=UN.sanitize(n,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:$(xt.sourceContent,S_.markdown),children:[y.jsx(Na,{options:{overrides:{a:HN}},children:d}),o&&y.jsx(jN,{onClose:()=>c(!1)})]}),y.jsx(kN,{url:a,knowledgeBaseType:i})]})},FN=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,VN=()=>{const n=tt();return y.jsxs("div",{className:xt.loadingError,children:[y.jsx("h1",{children:n("source-infos.error.title")}),y.jsx("img",{src:FN,title:n("source-infos.error.title")}),y.jsx("p",{children:n("source-infos.error.info")})]})},YN=()=>y.jsx("div",{className:xt.loadingSourceInfos,children:y.jsx("svg",{className:xt.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})}),PN=n=>{const[a,i]=H.useState(!0);return H.useEffect(()=>{let l=null;return n?.type==="loading"?(i(!0),l=setTimeout(()=>{i(!1)},300)):i(!n),()=>{l&&clearTimeout(l)}},[n]),a};function XN({sourceInfos:n,onClose:a,threshold:i=100}){const l=H.useRef(null),[o,c]=H.useState(0),[d,h]=H.useState(!1),m=H.useRef(null),g=H.useRef(null),v=H.useCallback(_=>{m.current=_,h(!0)},[]),E=H.useCallback(_=>{if(m.current!==null&&d){const x=_-m.current;x>0&&c(x)}},[d]),S=H.useCallback(()=>{h(!1),o>i&&a(),c(0),m.current=null},[o,i,a]),w=H.useCallback(_=>{const x=M=>v(M.touches[0].clientY),T=M=>E(M.touches[0].clientY),D=()=>S(),z=M=>{M.preventDefault(),v(M.clientY),window.addEventListener("mousemove",U),window.addEventListener("mouseup",G)},U=M=>E(M.clientY),G=()=>{S(),window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",G)};_.addEventListener("touchstart",x),_.addEventListener("touchmove",T),_.addEventListener("touchend",D),_.addEventListener("mousedown",z),g.current=()=>{_.removeEventListener("touchstart",x),_.removeEventListener("touchmove",T),_.removeEventListener("touchend",D),_.removeEventListener("mousedown",z),window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",G)}},[v,E,S]);return H.useEffect(()=>{let _;return(()=>{l.current?(g.current?.(),w(l.current)):(_=new MutationObserver(()=>{l.current&&(g.current?.(),w(l.current),_?.disconnect())}),_.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{_?.disconnect(),g.current?.()}},[w,n]),{ref:l,dragOffsetY:o,isDragging:d}}const ZN=()=>{const n=Ba(),a=st(m=>m.chat.sourceInfos),i=x_(),l=H.useRef(null),o=PN(a);H.useEffect(()=>{l.current&&a?.type==="loading"&&(i?l.current.showModal():(l.current.setAttribute("open","true"),l.current?.focus()))},[a,i]);const c=H.useCallback(()=>{l.current&&(i?l.current.close():l.current.removeAttribute("open"),n(Zx()))},[n,i]),{ref:d,dragOffsetY:h}=XN({onClose:c,sourceInfos:a});return a?y.jsx("dialog",{ref:l,className:$(xt.sourceInfos,o?xt.waitForLoading:a.type==="loading"?xt.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:o?null:y.jsxs(y.Fragment,{children:[y.jsx(dN,{ref:d,tabIndex:-1,sourceInfos:a.type==="loaded"?a:void 0,onClose:c}),a.type==="loading"?y.jsx(YN,{}):a.type==="loading-error"?y.jsx(VN,{}):y.jsxs(y.Fragment,{children:[y.jsx(hN,{loading:!a.highlighted}),y.jsx(qN,{sourceInfos:a})]})]})}):null},QN="_container_1aof3_1",KN="_body_1aof3_7",$N="_intro_1aof3_14",WN="_footer_1aof3_39",JN="_footnote_1aof3_43",e8="_containerWithFootnote_1aof3_58",t8="_startChatButton_1aof3_73",n8="_spinner_1aof3_88",a8="_formFields_1aof3_92",r8="_formField_1aof3_92",i8="_radio_1aof3_104",l8="_checkbox_1aof3_111",s8="_input_1aof3_119",o8="_inputLabel_1aof3_153",u8="_selectWrapper_1aof3_157",c8="_select_1aof3_157",f8="_selectLabel_1aof3_203",Ot={container:QN,body:KN,intro:$N,footer:WN,footnote:JN,containerWithFootnote:e8,startChatButton:t8,spinner:n8,formFields:a8,formField:r8,radio:i8,checkbox:l8,input:s8,inputLabel:o8,selectWrapper:u8,select:c8,selectLabel:f8},d8=({name:n,label:a,defaultValue:i,required:l,onChange:o})=>{const c=d=>{o(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:$(Ot.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[y.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:l,onChange:c}),y.jsx("div",{children:a})]})},h8=({type:n,name:a,label:i,defaultValue:l,placeholder:o,required:c,multiple:d,min:h,max:m,pattern:g,onChange:v})=>{const E=S=>{v(S.target.value)};return y.jsxs("label",{className:$(Ot.input,"chat__startScreen__input"),htmlFor:a,children:[y.jsx("div",{className:$(Ot.inputLabel),children:i}),y.jsx("input",{type:n,id:a,name:a,defaultValue:l,placeholder:o,required:c,multiple:d,min:h,max:m,pattern:g,onChange:E})]})},m8=({name:n,value:a,label:i,defaultChecked:l,required:o,onChange:c})=>{const d=`${n}-${a}`,h=m=>{c(m.target.value)};return y.jsxs("label",{className:$(Ot.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:n,value:a,defaultChecked:l,required:o,onChange:h}),y.jsx("span",{className:$(Ot.label),children:i})]})},p8=({name:n,label:a,defaultValue:i,required:l,multiple:o,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:$(Ot.select,"chat__startScreen__select"),htmlFor:n,children:[y.jsx("div",{className:$(Ot.selectLabel),children:a}),y.jsx("div",{className:$(Ot.selectWrapper),children:y.jsx("select",{id:n,name:n,defaultValue:i,required:l,multiple:o,onChange:h,children:Object.entries(c||{}).map(([m,g])=>y.jsx("option",{value:m,selected:g===i,children:g}))})})]})},g8="start-screen.intro",y8="start-screen.start-chat",v8="start-screen.waiting-for-login",b8="start-screen.footnote",Hn="start-screen.form",wv=`${Hn}.fields`,_8=()=>{const n=tt(),a=Ba(),i=sm(),l=st(_=>_.startScreen.loginRequestToken),o=st(_=>_.settings.requiresUserAuthentication);H.useEffect(()=>{let _;if(l){const D=window.screenX+(window.outerWidth-600)/2,z=window.screenY+(window.outerHeight-700)/2,U=window.open(`/${i}/auth/login?loginRequestToken=${l}`,"Login",`width=600,height=700,left=${D},top=${z},resizable=yes,scrollbars=yes`);_=setInterval(()=>{U?.closed&&(a(Vx()),clearInterval(_))},500)}return()=>{_&&clearInterval(_)}},[i,l,a]);const[c,d]=H.useState({}),h=()=>{const _=Object.entries(c).reduce((x,[T,D])=>({...x,[T]:D.value}),{});a(o?Fx({loginRequestToken:uu(),formValues:_}):Gx({formValues:_}))},m=n(g8),g=n(l?v8:y8),v=n(b8),E=H.useMemo(()=>n(wv)?.split(";").map(_=>_.trim())??[],[n(wv)]);H.useEffect(()=>{E.length&&Object.keys(c).length===0&&d(E.reduce((_,x)=>({..._,[x]:E8(x,n)}),{}))},[n,E,c]);const S=_=>{_.preventDefault(),h()},w=_=>x=>{d(T=>({...T,[_]:{...T[_],value:x}}))};return y.jsxs("form",{onSubmit:S,className:$(Ot.container,v&&Ot.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:$(Ot.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:$(Ot.intro,"chat__startScreen__intro"),children:y.jsx(Na,{options:{overrides:{a:Nv}},children:m})}),y.jsx("div",{className:$(Ot.formFields,"chat__startScreen__fields"),children:Object.values(c).map(({type:_,name:x,label:T,placeholder:D,defaultValue:z,options:U,required:G,multiple:M,min:P,max:Q,pattern:ae})=>y.jsx("div",{className:$(Ot.formField,"chat__startScreen__field"),children:(()=>{switch(_){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:T}),Object.entries(U||{}).map(([Be,He])=>y.jsx(m8,{name:x,value:Be,label:He,defaultChecked:Be===z,required:G,onChange:w(x)},Be))]});case"checkbox":return y.jsx(d8,{name:x,label:T,defaultValue:z,required:G,onChange:w(x)});case"select":return y.jsx(p8,{name:x,label:T,defaultValue:z,required:G,multiple:M,options:U,onChange:w(x)});default:return y.jsx(h8,{type:_,name:x,label:T,placeholder:D,defaultValue:z,required:G,multiple:M,min:P,max:Q,pattern:ae,onChange:w(x)})}})()},x))})]}),y.jsxs("div",{className:$(Ot.footer,"chat__startScreen__footer"),children:[y.jsxs(yu,{type:"submit",className:Ot.startChatButton,disabled:!!l,children:[!!l&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:Ot.spinner,children:y.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"})}),y.jsx("div",{children:g})]}),v&&y.jsx("div",{className:Ot.footnote,children:y.jsx(Na,{options:{overrides:{a:Nv}},children:v})})]})]})},Nv=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),E8=(n,a)=>{const i=a(`${Hn}.${n}.type`)||"text",l=a(`${Hn}.${n}.required`)==="true",o=a(`${Hn}.${n}.multiple`)==="true",c=a(`${Hn}.${n}.placeholder`),d=a(`${Hn}.${n}.label`)||"",h=a(`${Hn}.${n}.defaultValue`),m=a(`${Hn}.${n}.min`),g=a(`${Hn}.${n}.max`),v=a(`${Hn}.${n}.pattern`),E=T8(a(`${Hn}.${n}.options`));return{name:n,label:d,placeholder:c,value:S8(i,h,E)||"",defaultValue:h,options:E,type:i,required:l,multiple:o,min:m,max:g,pattern:v}},S8=(n,a,i)=>a||n==="select"&&Object.keys(i)[0]||"",T8=(n="")=>n.split(";").map(a=>a.trim()).reduce((a,i)=>{const[l,o]=i.split(":").map(c=>c.trim());return{...a,[l]:o}},{}),A8=()=>{const n=Su();H.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},wi={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"},O8=({clientName:n})=>{A8();const a=Ba(),i=st(v=>v.intl.messages),l=tt(),o=st(v=>v.settings.enableStartScreen),c=st(v=>v.startScreen.startScreenStatus),d=st(v=>v.connection.queryString),h=H.useMemo(()=>new URLSearchParams(d||"?").get("cssClassName"),[d]);H.useEffect(()=>{const v=Lh.parse(d||""),E=S=>{switch(S.data.type){case wi.TRIGGER_ACTION:a(S.data.action);break;case wi.TRIGGER_STORY:a(jb(S.data.story));break;case wi.ON_CHAT_WINDOW_OPEN:a({type:"webclient.chatwindow.opened"});break;case wi.ON_CHAT_WINDOW_CLOSE:a({type:"webclient.chatwindow.closed"});break;case wi.CHAT_MESSAGE_FROM_GUEST:a(Mb(S.data.text));break;case wi.RESTART_CHAT:a(ls());break}};return a(Kx(n,v)),window.addEventListener("message",S=>E(S),!1),()=>window.removeEventListener("message",E)},[n,d,a]),H.useEffect(()=>{const v=l("page.title");v&&document&&(document.title=v)},[i,l]);const m=o===void 0,g=o===!1||c==="HIDDEN";return y.jsx("div",{className:$(_v.chatwindow,g&&_v.chatwindowWithAside,"chat__chatwindow",h),children:m?null:g?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(bv,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(N3,{clientName:n})}),y.jsx("aside",{children:y.jsx(ZN,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(bv,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(_8,{})})]})})},x8=()=>{const n=sm(),a=x_(),i=st(o=>o.intl.locale),l=st(o=>o.intl.messages);return y.jsx($A,{locale:i,messages:l,onError:()=>{},children:y.jsx("div",{className:$([JA.app,a?"chat__small":"chat__large"]),children:y.jsx(O8,{clientName:n})})})};var Fd,Mv;function C8(){if(Mv)return Fd;Mv=1;var n=p_(),a=im(),i="Expected a function";function l(o,c,d){var h=!0,m=!0;if(typeof o!="function")throw new TypeError(i);return a(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),n(o,c,{leading:h,maxWait:c,trailing:m})}return Fd=l,Fd}var R8=C8();const w8=bu(R8);function N8(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function M8(n){return n}function D8(n,a){a=a||{};const i=a.delimiter||".",l=a.maxDepth,o=a.transformKey||M8,c={};function d(h,m,g){g=g||1,Object.keys(h).forEach(function(v){const E=h[v],S=a.safe&&Array.isArray(E),w=Object.prototype.toString.call(E),_=N8(E),x=w==="[object Object]"||w==="[object Array]",T=m?m+i+o(v):o(v);if(!S&&!_&&x&&Object.keys(E).length&&(!a.maxDepth||g<l))return d(E,T,g+1);c[T]=E})}return d(n),c}const M_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","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.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","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:
|
|
119
|
-
|
|
120
|
-
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
121
|
-
- 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.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","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","header.menu.rate-conversation":"Chat bewerten","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"},L8={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a 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.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","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:
|
|
122
|
-
|
|
123
|
-
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
124
|
-
- 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.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","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","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","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"},B8={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","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.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","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:
|
|
125
|
-
|
|
126
|
-
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
127
|
-
- 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.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","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","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","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"},U8={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un 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.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","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:
|
|
128
|
-
|
|
129
|
-
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
130
|
-
- 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.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","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","header.menu.rate-conversation":"Valutare la conversazione","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"},j8=["de","en","fr","it"],D_={locale:"de",messages:M_},H8=(n,a)=>{if(j8.includes(n)){const i=I8(n),l=D8(a);return{...i,...l}}return a},I8=n=>{switch(n.toString()){case"en":return L8;case"fr":return B8;case"it":return U8;default:return M_}},z8=(n=G8,a)=>{switch(a.type){case Kh:return Object.assign({},n,{connectionState:kr.CONNECTING});case $h:return Object.assign({},n,{connectionState:kr.CONNECTED});case Wh:return Object.assign({},n,{connectionState:kr.DISCONNECTED});case Jh:return Object.assign({},n,{connectionState:kr.RECONNECTED});case em:return Object.assign({},n,{sessionId:a.sessionId});case xu:return Object.assign({},n,{sessionId:a.payload.sessionId,userId:a.payload.userId});case Cu:return Object.assign({},n,{sessionId:void 0});default:return n}},G8={connectionState:kr.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},k8=(n=Lv,a)=>{switch(a.type){case Wb:return Lv;case xu:return Ir({type:"webclient.chat.started"}),n;case Cu:return Ir({type:"webclient.chat.ended"}),n;case Te.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Te.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Te.ActionTypes.MESSAGE_FROM_GUEST:case Te.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Dv(n,a.message);case Te.ActionTypes.MESSAGE_TO_GUEST:{Ir(a);const i=Object.assign({},a.message,{_id:a.meta.actionId}),l=n.messages.filter(o=>o._id===a.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:l?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Hh:{const i=a.messages,l=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:l?.quickReplies||[]})}case jh:return Ir(a.message),n;case Te.ActionTypes.EVENT_TO_GUEST:return Ir(a.event),n;case Te.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:a.payload.parameters.contentUrl});case Te.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Te.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:a.payload.locale});case Lb:return Ir(a),n;case Bb:return Ir(a),{...n,conversationRating:{...n.conversationRating,opener:void 0}};case zh:{const i=new Te.TextMessage(a.transcription,new Te.GuestUser),l=Object.assign({},i,{_id:uu()});return Dv(n,l)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(l=>l._id===a.payload.actionId?Object.assign({},l,a.payload.reaction?{reaction:{type:a.payload.reaction,category:a.payload.category,comment:a.payload.comment}}:{reaction:void 0}):l);return Object.assign({},n,{messages:i})}case Gh:{const i={enabled:!0,rating:a.payload.rating};return Object.assign({},n,{conversationRating:i})}case Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:a.payload};return Object.assign({},n,{conversationRating:i})}case e_:{const i={...n.conversationRating,opener:a.payload.opener,...a.payload.defaultRating?{rating:{value:a.payload.defaultRating,feedback:n.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},n,{conversationRating:i})}case t_:{const i={...n.conversationRating,opener:void 0};return Object.assign({},n,{conversationRating:i})}case qh:return{...n,sourceInfos:{type:"loading",chunkId:a.payload.chunkId}};case kh:{const{highlighted:i}=a.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case Db:{const i=n.sourceInfos?.type,{chunkId:l,knowledgeBaseType:o,title:c,content:d,highlighted:h,url:m}=a.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==l?n:i==="loading"||i==="loaded"&&h?{...n,sourceInfos:{type:"loaded",chunkId:l,knowledgeBaseType:o,title:c,content:d,highlighted:h,url:m}}:n}case Fh:return{...n,sourceInfos:void 0};case Jb:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay,conversationRating:{...n.conversationRating,opener:void 0}};default:return n}},Dv=(n,a)=>{const i=n.messages[n.messages.length-1],l=i?.text===a.text;return i&&i.sender.type===a.sender.type&&l?n:Object.assign({},n,{messages:n.messages.concat([a]),quickReplies:[]})},Ir=n=>{q8()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},q8=()=>typeof window<"u"&&window.self!==window.top,Lv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},L_=Zh({name:"intl",initialState:D_,reducers:{updateIntl:(n,a)=>{n.locale=a.payload.language,n.messages=a.payload.messages}}}),{updateIntl:F8}=L_.actions,V8=L_.reducer,Y8={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},B_=Zh({name:"settings",initialState:Y8,reducers:{setSettings(n,a){n.version&&n.version!==a.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(n.version=a.payload.version,n.requiresUserAuthentication=a.payload.requiresUserAuthentication,n.enableStartScreen=a.payload.enableStartScreen,n.enableStandaloneView=a.payload.enableStandaloneView,n.enableTranscriptExportEmail=a.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=a.payload.enableTranscriptExportPdf,n.enableGeneralConditions=a.payload.enableGeneralConditions,n.enableSpeechSupport=a.payload.enableSpeechSupport,n.commands=a.payload.commands,n.menuItems=a.payload.menuItems||[])}}}),{setSettings:P8}=B_.actions,X8=B_.reducer,Z8=Gb({settings:X8,chat:k8,startScreen:Yx,connection:z8,intl:V8}),Q8="bubble-chat",U_="state-last-saved-at",j_="state",K8=n=>{try{if(!J8())return;const a=Bv(n,U_);if(W8(a))return;{const i=Bv(n,j_);if(i===null)return;const l=JSON.parse(i),o=l.connection?.queryString;if(o!==void 0&&o!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return l}}catch(a){console.error(a);return}},$8=(n,a)=>{try{const i=JSON.stringify(a);Uv(n,j_,i);const l=new Date().toISOString();Uv(n,U_,l)}catch(i){console.error(i)}},W8=n=>{if(n===null)return!1;const a=new Date(n);return a.setHours(a.getHours()+12),new Date>a},J8=()=>typeof localStorage<"u",Bv=(n,a)=>{const i=H_(n,a);return localStorage.getItem(i)},Uv=(n,a,i)=>{const l=H_(n,a);return localStorage.setItem(l,i)},H_=(n,a)=>`${Q8}-${n}-${a}`,ta=Object.create(null);ta.open="0";ta.close="1";ta.ping="2";ta.pong="3";ta.message="4";ta.upgrade="5";ta.noop="6";const ru=Object.create(null);Object.keys(ta).forEach(n=>{ru[ta[n]]=n});const bh={type:"error",data:"parser error"},I_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",z_=typeof ArrayBuffer=="function",G_=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,om=({type:n,data:a},i,l)=>I_&&a instanceof Blob?i?l(a):jv(a,l):z_&&(a instanceof ArrayBuffer||G_(a))?i?l(a):jv(new Blob([a]),l):l(ta[n]+(a||"")),jv=(n,a)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];a("b"+(l||""))},i.readAsDataURL(n)};function Hv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Vd;function eM(n,a){if(I_&&n.data instanceof Blob)return n.data.arrayBuffer().then(Hv).then(a);if(z_&&(n.data instanceof ArrayBuffer||G_(n.data)))return a(Hv(n.data));om(n,!1,i=>{Vd||(Vd=new TextEncoder),a(Vd.encode(i))})}const Iv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$l=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Iv.length;n++)$l[Iv.charCodeAt(n)]=n;const tM=n=>{let a=n.length*.75,i=n.length,l,o=0,c,d,h,m;n[n.length-1]==="="&&(a--,n[n.length-2]==="="&&a--);const g=new ArrayBuffer(a),v=new Uint8Array(g);for(l=0;l<i;l+=4)c=$l[n.charCodeAt(l)],d=$l[n.charCodeAt(l+1)],h=$l[n.charCodeAt(l+2)],m=$l[n.charCodeAt(l+3)],v[o++]=c<<2|d>>4,v[o++]=(d&15)<<4|h>>2,v[o++]=(h&3)<<6|m&63;return g},nM=typeof ArrayBuffer=="function",um=(n,a)=>{if(typeof n!="string")return{type:"message",data:k_(n,a)};const i=n.charAt(0);return i==="b"?{type:"message",data:aM(n.substring(1),a)}:ru[i]?n.length>1?{type:ru[i],data:n.substring(1)}:{type:ru[i]}:bh},aM=(n,a)=>{if(nM){const i=tM(n);return k_(i,a)}else return{base64:!0,data:n}},k_=(n,a)=>{switch(a){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},q_="",rM=(n,a)=>{const i=n.length,l=new Array(i);let o=0;n.forEach((c,d)=>{om(c,!1,h=>{l[d]=h,++o===i&&a(l.join(q_))})})},iM=(n,a)=>{const i=n.split(q_),l=[];for(let o=0;o<i.length;o++){const c=um(i[o],a);if(l.push(c),c.type==="error")break}return l};function lM(){return new TransformStream({transform(n,a){eM(n,i=>{const l=i.length;let o;if(l<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,l);else if(l<65536){o=new Uint8Array(3);const c=new DataView(o.buffer);c.setUint8(0,126),c.setUint16(1,l)}else{o=new Uint8Array(9);const c=new DataView(o.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(o[0]|=128),a.enqueue(o),a.enqueue(i)})}})}let Yd;function Jo(n){return n.reduce((a,i)=>a+i.length,0)}function eu(n,a){if(n[0].length===a)return n.shift();const i=new Uint8Array(a);let l=0;for(let o=0;o<a;o++)i[o]=n[0][l++],l===n[0].length&&(n.shift(),l=0);return n.length&&l<n[0].length&&(n[0]=n[0].slice(l)),i}function sM(n,a){Yd||(Yd=new TextDecoder);const i=[];let l=0,o=-1,c=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(l===0){if(Jo(i)<1)break;const m=eu(i,1);c=(m[0]&128)===128,o=m[0]&127,o<126?l=3:o===126?l=1:l=2}else if(l===1){if(Jo(i)<2)break;const m=eu(i,2);o=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),l=3}else if(l===2){if(Jo(i)<8)break;const m=eu(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),v=g.getUint32(0);if(v>Math.pow(2,21)-1){h.enqueue(bh);break}o=v*Math.pow(2,32)+g.getUint32(4),l=3}else{if(Jo(i)<o)break;const m=eu(i,o);h.enqueue(um(c?m:Yd.decode(m),a)),l=0}if(o===0||o>n){h.enqueue(bh);break}}}})}const F_=4;function vt(n){if(n)return oM(n)}function oM(n){for(var a in vt.prototype)n[a]=vt.prototype[a];return n}vt.prototype.on=vt.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this};vt.prototype.once=function(n,a){function i(){this.off(n,i),a.apply(this,arguments)}return i.fn=a,this.on(n,i),this};vt.prototype.off=vt.prototype.removeListener=vt.prototype.removeAllListeners=vt.prototype.removeEventListener=function(n,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,o=0;o<i.length;o++)if(l=i[o],l===a||l.fn===a){i.splice(o,1);break}return i.length===0&&delete this._callbacks["$"+n],this};vt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var a=new Array(arguments.length-1),i=this._callbacks["$"+n],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(i){i=i.slice(0);for(var l=0,o=i.length;l<o;++l)i[l].apply(this,a)}return this};vt.prototype.emitReserved=vt.prototype.emit;vt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};vt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const wu=typeof Promise=="function"&&typeof Promise.resolve=="function"?a=>Promise.resolve().then(a):(a,i)=>i(a,0),On=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),uM="arraybuffer";function V_(n,...a){return a.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const cM=On.setTimeout,fM=On.clearTimeout;function Nu(n,a){a.useNativeTimers?(n.setTimeoutFn=cM.bind(On),n.clearTimeoutFn=fM.bind(On)):(n.setTimeoutFn=On.setTimeout.bind(On),n.clearTimeoutFn=On.clearTimeout.bind(On))}const dM=1.33;function hM(n){return typeof n=="string"?mM(n):Math.ceil((n.byteLength||n.size)*dM)}function mM(n){let a=0,i=0;for(let l=0,o=n.length;l<o;l++)a=n.charCodeAt(l),a<128?i+=1:a<2048?i+=2:a<55296||a>=57344?i+=3:(l++,i+=4);return i}function Y_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function pM(n){let a="";for(let i in n)n.hasOwnProperty(i)&&(a.length&&(a+="&"),a+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return a}function gM(n){let a={},i=n.split("&");for(let l=0,o=i.length;l<o;l++){let c=i[l].split("=");a[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return a}class yM extends Error{constructor(a,i,l){super(a),this.description=i,this.context=l,this.type="TransportError"}}class cm extends vt{constructor(a){super(),this.writable=!1,Nu(this,a),this.opts=a,this.query=a.query,this.socket=a.socket,this.supportsBinary=!a.forceBase64}onError(a,i,l){return super.emitReserved("error",new yM(a,i,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(a){this.readyState==="open"&&this.write(a)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(a){const i=um(a,this.socket.binaryType);this.onPacket(i)}onPacket(a){super.emitReserved("packet",a)}onClose(a){this.readyState="closed",super.emitReserved("close",a)}pause(a){}createUri(a,i={}){return a+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const a=this.opts.hostname;return a.indexOf(":")===-1?a:"["+a+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(a){const i=pM(a);return i.length?"?"+i:""}}class vM extends cm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(a){this.readyState="pausing";const i=()=>{this.readyState="paused",a()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||i()})),this.writable||(l++,this.once("drain",function(){--l||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(a){const i=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};iM(a,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const a=()=>{this.write([{type:"close"}])};this.readyState==="open"?a():this.once("open",a)}write(a){this.writable=!1,rM(a,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const a=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=Y_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(a,i)}}let P_=!1;try{P_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const bM=P_;function _M(){}class EM extends vM{constructor(a){if(super(a),typeof location<"u"){const i=location.protocol==="https:";let l=location.port;l||(l=i?"443":"80"),this.xd=typeof location<"u"&&a.hostname!==location.hostname||l!==a.port}}doWrite(a,i){const l=this.request({method:"POST",data:a});l.on("success",i),l.on("error",(o,c)=>{this.onError("xhr post error",o,c)})}doPoll(){const a=this.request();a.on("data",this.onData.bind(this)),a.on("error",(i,l)=>{this.onError("xhr poll error",i,l)}),this.pollXhr=a}}class Jn extends vt{constructor(a,i,l){super(),this.createRequest=a,Nu(this,l),this._opts=l,this._method=l.method||"GET",this._uri=i,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var a;const i=V_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(i);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&l.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(a=this._opts.cookieJar)===null||a===void 0||a.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var o;l.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Jn.requestsCount++,Jn.requests[this._index]=this)}_onError(a){this.emitReserved("error",a,this._xhr),this._cleanup(!0)}_cleanup(a){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=_M,a)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Jn.requests[this._index],this._xhr=null}}_onLoad(){const a=this._xhr.responseText;a!==null&&(this.emitReserved("data",a),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Jn.requestsCount=0;Jn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",zv);else if(typeof addEventListener=="function"){const n="onpagehide"in On?"pagehide":"unload";addEventListener(n,zv,!1)}}function zv(){for(let n in Jn.requests)Jn.requests.hasOwnProperty(n)&&Jn.requests[n].abort()}const SM=(function(){const n=X_({xdomain:!1});return n&&n.responseType!==null})();class TM extends EM{constructor(a){super(a);const i=a&&a.forceBase64;this.supportsBinary=SM&&!i}request(a={}){return Object.assign(a,{xd:this.xd},this.opts),new Jn(X_,this.uri(),a)}}function X_(n){const a=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!a||bM))return new XMLHttpRequest}catch{}if(!a)try{return new On[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Z_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class AM extends cm{get name(){return"websocket"}doOpen(){const a=this.uri(),i=this.opts.protocols,l=Z_?{}:V_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(a,i,l)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=a=>this.onClose({description:"websocket connection closed",context:a}),this.ws.onmessage=a=>this.onData(a.data),this.ws.onerror=a=>this.onError("websocket error",a)}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const l=a[i],o=i===a.length-1;om(l,this.supportsBinary,c=>{try{this.doWrite(l,c)}catch{}o&&wu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const a=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=Y_()),this.supportsBinary||(i.b64=1),this.createUri(a,i)}}const Pd=On.WebSocket||On.MozWebSocket;class OM extends AM{createSocket(a,i,l){return Z_?new Pd(a,i,l):i?new Pd(a,i):new Pd(a)}doWrite(a,i){this.ws.send(i)}}class xM extends cm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(a){return this.emitReserved("error",a)}this._transport.closed.then(()=>{this.onClose()}).catch(a=>{this.onError("webtransport error",a)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(a=>{const i=sM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=a.readable.pipeThrough(i).getReader(),o=lM();o.readable.pipeTo(a.writable),this._writer=o.writable.getWriter();const c=()=>{l.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(a){this.writable=!1;for(let i=0;i<a.length;i++){const l=a[i],o=i===a.length-1;this._writer.write(l).then(()=>{o&&wu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var a;(a=this._transport)===null||a===void 0||a.close()}}const CM={websocket:OM,webtransport:xM,polling:TM},RM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function _h(n){if(n.length>8e3)throw"URI too long";const a=n,i=n.indexOf("["),l=n.indexOf("]");i!=-1&&l!=-1&&(n=n.substring(0,i)+n.substring(i,l).replace(/:/g,";")+n.substring(l,n.length));let o=RM.exec(n||""),c={},d=14;for(;d--;)c[wM[d]]=o[d]||"";return i!=-1&&l!=-1&&(c.source=a,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=NM(c,c.path),c.queryKey=MM(c,c.query),c}function NM(n,a){const i=/\/{2,9}/g,l=a.replace(i,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&l.splice(0,1),a.slice(-1)=="/"&&l.splice(l.length-1,1),l}function MM(n,a){const i={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,o,c){o&&(i[o]=c)}),i}const Eh=typeof addEventListener=="function"&&typeof removeEventListener=="function",iu=[];Eh&&addEventListener("offline",()=>{iu.forEach(n=>n())},!1);class fr extends vt{constructor(a,i){if(super(),this.binaryType=uM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,a&&typeof a=="object"&&(i=a,a=null),a){const l=_h(a);i.hostname=l.host,i.secure=l.protocol==="https"||l.protocol==="wss",i.port=l.port,l.query&&(i.query=l.query)}else i.host&&(i.hostname=_h(i.host).host);Nu(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(l=>{const o=l.prototype.name;this.transports.push(o),this._transportsByName[o]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=gM(this.opts.query)),Eh&&(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"})},iu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(a){const i=Object.assign({},this.opts.query);i.EIO=F_,i.transport=a,this.id&&(i.sid=this.id);const l=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[a]);return new this._transportsByName[a](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const a=this.opts.rememberUpgrade&&fr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(a);i.open(),this.setTransport(i)}setTransport(a){this.transport&&this.transport.removeAllListeners(),this.transport=a,a.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",fr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",a),this.emitReserved("heartbeat"),a.type){case"open":this.onHandshake(JSON.parse(a.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=a.data,this._onError(i);break;case"message":this.emitReserved("data",a.data),this.emitReserved("message",a.data);break}}onHandshake(a){this.emitReserved("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this._pingInterval=a.pingInterval,this._pingTimeout=a.pingTimeout,this._maxPayload=a.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const a=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+a,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},a),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 a=this._getWritablePackets();this.transport.send(a),this._prevBufferLen=a.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let l=0;l<this.writeBuffer.length;l++){const o=this.writeBuffer[l].data;if(o&&(i+=hM(o)),l>0&&i>this._maxPayload)return this.writeBuffer.slice(0,l);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const a=Date.now()>this._pingTimeoutTime;return a&&(this._pingTimeoutTime=0,wu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),a}write(a,i,l){return this._sendPacket("message",a,i,l),this}send(a,i,l){return this._sendPacket("message",a,i,l),this}_sendPacket(a,i,l,o){if(typeof i=="function"&&(o=i,i=void 0),typeof l=="function"&&(o=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const c={type:a,data:i,options:l};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),o&&this.once("flush",o),this.flush()}close(){const a=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),a()},l=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():a()}):this.upgrading?l():a()),this}_onError(a){if(fr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",a),this._onClose("transport error",a)}_onClose(a,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(),Eh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=iu.indexOf(this._offlineEventListener);l!==-1&&iu.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",a,i),this.writeBuffer=[],this._prevBufferLen=0}}}fr.protocol=F_;class DM extends fr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let a=0;a<this._upgrades.length;a++)this._probe(this._upgrades[a])}_probe(a){let i=this.createTransport(a),l=!1;fr.priorWebsocketSuccess=!1;const o=()=>{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",E=>{if(!l)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;fr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(v(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const S=new Error("probe error");S.transport=i.name,this.emitReserved("upgradeError",S)}}))};function c(){l||(l=!0,v(),i.close(),i=null)}const d=E=>{const S=new Error("probe error: "+E);S.transport=i.name,c(),this.emitReserved("upgradeError",S)};function h(){d("transport closed")}function m(){d("socket closed")}function g(E){i&&E.name!==i.name&&c()}const v=()=>{i.removeListener("open",o),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",g)};i.once("open",o),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&a!=="webtransport"?this.setTimeoutFn(()=>{l||i.open()},200):i.open()}onHandshake(a){this._upgrades=this._filterUpgrades(a.upgrades),super.onHandshake(a)}_filterUpgrades(a){const i=[];for(let l=0;l<a.length;l++)~this.transports.indexOf(a[l])&&i.push(a[l]);return i}}let LM=class extends DM{constructor(a,i={}){const l=typeof a=="object"?a:i;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(o=>CM[o]).filter(o=>!!o)),super(a,l)}};function BM(n,a="",i){let l=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),l=_h(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const c=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+c+":"+l.port+a,l.href=l.protocol+"://"+c+(i&&i.port===l.port?"":":"+l.port),l}const UM=typeof ArrayBuffer=="function",jM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Q_=Object.prototype.toString,HM=typeof Blob=="function"||typeof Blob<"u"&&Q_.call(Blob)==="[object BlobConstructor]",IM=typeof File=="function"||typeof File<"u"&&Q_.call(File)==="[object FileConstructor]";function fm(n){return UM&&(n instanceof ArrayBuffer||jM(n))||HM&&n instanceof Blob||IM&&n instanceof File}function lu(n,a){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)if(lu(n[i]))return!0;return!1}if(fm(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return lu(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&lu(n[i]))return!0;return!1}function zM(n){const a=[],i=n.data,l=n;return l.data=Sh(i,a),l.attachments=a.length,{packet:l,buffers:a}}function Sh(n,a){if(!n)return n;if(fm(n)){const i={_placeholder:!0,num:a.length};return a.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let l=0;l<n.length;l++)i[l]=Sh(n[l],a);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=Sh(n[l],a));return i}return n}function GM(n,a){return n.data=Th(n.data,a),delete n.attachments,n}function Th(n,a){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<a.length)return a[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Th(n[i],a);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Th(n[i],a));return n}const kM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qM=5;var De;(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"})(De||(De={}));class FM{constructor(a){this.replacer=a}encode(a){return(a.type===De.EVENT||a.type===De.ACK)&&lu(a)?this.encodeAsBinary({type:a.type===De.EVENT?De.BINARY_EVENT:De.BINARY_ACK,nsp:a.nsp,data:a.data,id:a.id}):[this.encodeAsString(a)]}encodeAsString(a){let i=""+a.type;return(a.type===De.BINARY_EVENT||a.type===De.BINARY_ACK)&&(i+=a.attachments+"-"),a.nsp&&a.nsp!=="/"&&(i+=a.nsp+","),a.id!=null&&(i+=a.id),a.data!=null&&(i+=JSON.stringify(a.data,this.replacer)),i}encodeAsBinary(a){const i=zM(a),l=this.encodeAsString(i.packet),o=i.buffers;return o.unshift(l),o}}function Gv(n){return Object.prototype.toString.call(n)==="[object Object]"}class dm extends vt{constructor(a){super(),this.reviver=a}add(a){let i;if(typeof a=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(a);const l=i.type===De.BINARY_EVENT;l||i.type===De.BINARY_ACK?(i.type=l?De.EVENT:De.ACK,this.reconstructor=new VM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(fm(a)||a.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(a),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: "+a)}decodeString(a){let i=0;const l={type:Number(a.charAt(0))};if(De[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===De.BINARY_EVENT||l.type===De.BINARY_ACK){const c=i+1;for(;a.charAt(++i)!=="-"&&i!=a.length;);const d=a.substring(c,i);if(d!=Number(d)||a.charAt(i)!=="-")throw new Error("Illegal attachments");l.attachments=Number(d)}if(a.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(a.charAt(i)===","||i===a.length););l.nsp=a.substring(c,i)}else l.nsp="/";const o=a.charAt(i+1);if(o!==""&&Number(o)==o){const c=i+1;for(;++i;){const d=a.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===a.length)break}l.id=Number(a.substring(c,i+1))}if(a.charAt(++i)){const c=this.tryParse(a.substr(i));if(dm.isPayloadValid(l.type,c))l.data=c;else throw new Error("invalid payload")}return l}tryParse(a){try{return JSON.parse(a,this.reviver)}catch{return!1}}static isPayloadValid(a,i){switch(a){case De.CONNECT:return Gv(i);case De.DISCONNECT:return i===void 0;case De.CONNECT_ERROR:return typeof i=="string"||Gv(i);case De.EVENT:case De.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&kM.indexOf(i[0])===-1);case De.ACK:case De.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class VM{constructor(a){this.packet=a,this.buffers=[],this.reconPack=a}takeBinaryData(a){if(this.buffers.push(a),this.buffers.length===this.reconPack.attachments){const i=GM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const YM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:dm,Encoder:FM,get PacketType(){return De},protocol:qM},Symbol.toStringTag,{value:"Module"}));function zn(n,a,i){return n.on(a,i),function(){n.off(a,i)}}const PM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class K_ extends vt{constructor(a,i,l){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=a,this.nsp=i,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const a=this.io;this.subs=[zn(a,"open",this.onopen.bind(this)),zn(a,"packet",this.onpacket.bind(this)),zn(a,"error",this.onerror.bind(this)),zn(a,"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(...a){return a.unshift("message"),this.emit.apply(this,a),this}emit(a,...i){var l,o,c;if(PM.hasOwnProperty(a))throw new Error('"'+a.toString()+'" is a reserved event name');if(i.unshift(a),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:De.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const v=this.ids++,E=i.pop();this._registerAckCallback(v,E),d.id=v}const h=(o=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||o===void 0?void 0:o.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(a,i){var l;const o=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(o===void 0){this.acks[a]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[a];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===a&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},o),d=(...h)=>{this.io.clearTimeoutFn(c),i.apply(this,h)};d.withError=!0,this.acks[a]=d}emitWithAck(a,...i){return new Promise((l,o)=>{const c=(d,h)=>d?o(d):l(h);c.withError=!0,i.push(c),this.emit(a,...i)})}_addToQueue(a){let i;typeof a[a.length-1]=="function"&&(i=a.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:a,flags:Object.assign({fromQueue:!0},this.flags)};a.push((o,...c)=>l!==this._queue[0]?void 0:(o!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(o)):(this._queue.shift(),i&&i(null,...c)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(a=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!a||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(a){a.nsp=this.nsp,this.io._packet(a)}onopen(){typeof this.auth=="function"?this.auth(a=>{this._sendConnectPacket(a)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(a){this.packet({type:De.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},a):a})}onerror(a){this.connected||this.emitReserved("connect_error",a)}onclose(a,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",a,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(a=>{if(!this.sendBuffer.some(l=>String(l.id)===a)){const l=this.acks[a];delete this.acks[a],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(a){if(a.nsp===this.nsp)switch(a.type){case De.CONNECT:a.data&&a.data.sid?this.onconnect(a.data.sid,a.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 De.EVENT:case De.BINARY_EVENT:this.onevent(a);break;case De.ACK:case De.BINARY_ACK:this.onack(a);break;case De.DISCONNECT:this.ondisconnect();break;case De.CONNECT_ERROR:this.destroy();const l=new Error(a.data.message);l.data=a.data.data,this.emitReserved("connect_error",l);break}}onevent(a){const i=a.data||[];a.id!=null&&i.push(this.ack(a.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(a){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const l of i)l.apply(this,a)}super.emit.apply(this,a),this._pid&&a.length&&typeof a[a.length-1]=="string"&&(this._lastOffset=a[a.length-1])}ack(a){const i=this;let l=!1;return function(...o){l||(l=!0,i.packet({type:De.ACK,id:a,data:o}))}}onack(a){const i=this.acks[a.id];typeof i=="function"&&(delete this.acks[a.id],i.withError&&a.data.unshift(null),i.apply(this,a.data))}onconnect(a,i){this.id=a,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(a=>this.emitEvent(a)),this.receiveBuffer=[],this.sendBuffer.forEach(a=>{this.notifyOutgoingListeners(a),this.packet(a)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(a=>a()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:De.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(a){return this.flags.compress=a,this}get volatile(){return this.flags.volatile=!0,this}timeout(a){return this.flags.timeout=a,this}onAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(a),this}prependAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(a),this}offAny(a){if(!this._anyListeners)return this;if(a){const i=this._anyListeners;for(let l=0;l<i.length;l++)if(a===i[l])return i.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(a),this}prependAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(a),this}offAnyOutgoing(a){if(!this._anyOutgoingListeners)return this;if(a){const i=this._anyOutgoingListeners;for(let l=0;l<i.length;l++)if(a===i[l])return i.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(a){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const l of i)l.apply(this,a.data)}}}function Li(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}Li.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),i=Math.floor(a*this.jitter*n);n=(Math.floor(a*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Li.prototype.reset=function(){this.attempts=0};Li.prototype.setMin=function(n){this.ms=n};Li.prototype.setMax=function(n){this.max=n};Li.prototype.setJitter=function(n){this.jitter=n};class Ah extends vt{constructor(a,i){var l;super(),this.nsps={},this.subs=[],a&&typeof a=="object"&&(i=a,a=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Nu(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((l=i.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new Li({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=a;const o=i.parser||YM;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(a){return arguments.length?(this._reconnection=!!a,a||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(a){return a===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=a,this)}reconnectionDelay(a){var i;return a===void 0?this._reconnectionDelay:(this._reconnectionDelay=a,(i=this.backoff)===null||i===void 0||i.setMin(a),this)}randomizationFactor(a){var i;return a===void 0?this._randomizationFactor:(this._randomizationFactor=a,(i=this.backoff)===null||i===void 0||i.setJitter(a),this)}reconnectionDelayMax(a){var i;return a===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=a,(i=this.backoff)===null||i===void 0||i.setMax(a),this)}timeout(a){return arguments.length?(this._timeout=a,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(a){if(~this._readyState.indexOf("open"))return this;this.engine=new LM(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const o=zn(i,"open",function(){l.onopen(),a&&a()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),a?a(h):this.maybeReconnectOnOpen()},d=zn(i,"error",c);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{o(),c(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(o),this.subs.push(d),this}connect(a){return this.open(a)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const a=this.engine;this.subs.push(zn(a,"ping",this.onping.bind(this)),zn(a,"data",this.ondata.bind(this)),zn(a,"error",this.onerror.bind(this)),zn(a,"close",this.onclose.bind(this)),zn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(a){try{this.decoder.add(a)}catch(i){this.onclose("parse error",i)}}ondecoded(a){wu(()=>{this.emitReserved("packet",a)},this.setTimeoutFn)}onerror(a){this.emitReserved("error",a)}socket(a,i){let l=this.nsps[a];return l?this._autoConnect&&!l.active&&l.connect():(l=new K_(this,a,i),this.nsps[a]=l),l}_destroy(a){const i=Object.keys(this.nsps);for(const l of i)if(this.nsps[l].active)return;this._close()}_packet(a){const i=this.encoder.encode(a);for(let l=0;l<i.length;l++)this.engine.write(i[l],a.options)}cleanup(){this.subs.forEach(a=>a()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(a,i){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",a,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const a=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{a.skipReconnect||(this.emitReserved("reconnect_attempt",a.backoff.attempts),!a.skipReconnect&&a.open(o=>{o?(a._reconnecting=!1,a.reconnect(),this.emitReserved("reconnect_error",o)):a.onreconnect()}))},i);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const a=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",a)}}const Zl={};function su(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};const i=BM(n,a.path||"/socket.io"),l=i.source,o=i.id,c=i.path,d=Zl[o]&&c in Zl[o].nsps,h=a.forceNew||a["force new connection"]||a.multiplex===!1||d;let m;return h?m=new Ah(l,a):(Zl[o]||(Zl[o]=new Ah(l,a)),m=Zl[o]),i.query&&!a.query&&(a.query=i.queryKey),m.socket(i.path,a)}Object.assign(su,{Manager:Ah,Socket:K_,io:su,connect:su});const XM=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...Qx,...qO,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],ZM=({dispatch:n,getState:a})=>i=>{let l=null;return o=>{const c=i(o);if(o.type===Qh){l?.disconnect(),n(Wx());const d=`/chat?${Lh.stringify(o.querystrings)}`;l=su(`/${o.clientName}${d}`),l.on("action",n),l.on("connect",()=>n(Jx())),l.on("disconnect",()=>n(eC())),l.on("reconnect",()=>n(tC())),l.on("set-translations",(h,m)=>{n(F8({language:h,messages:H8(h,m)}))}),l.on("set-settings",h=>{n(P8(h))}),l.on("enable-conversation-rating",h=>n(XO(h))),l.on("speech-transcription",h=>n(VO(h))),l.on("restore-client-state",h=>{n($x(h.sessionId)),n(QO(h.messages))}),l.on("expand-window",({devices:h,initial:m=!1})=>{n({type:Lb,devices:h,initial:m})}),l.on("restart-chat",()=>{n(ls())}),l.on("login-success",h=>{n(kx({loginToken:h.loginToken}))})}else if(o.type==="start-screen/requestLogin")l?.emit("login-requested",o.payload);else if(o.type===xu)l?.emit("start-chat",o.payload);else if(o.type===Cu)l?.emit("terminate-session",o.payload);else if(o.type===kO)l?.emit("get-started",JSON.stringify(o));else if(o.type===Ih)l?.emit("audio-message",o.buffer);else if(o.type===Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST)l?.emit("conversation-rating",o.payload);else if(o.type===Ub){const{connection:{sessionId:d}}=a();window.location.href=`/transcript-pdf/${d}`}else XM.indexOf(o.type)===-1&&o.meta===void 0&&l&&l.emit("action",JSON.stringify(o));return c}},$_=Vh(),QM={...K8($_),intl:D_},Oh=Cx({middleware:n=>n().concat(ZM),reducer:Z8,preloadedState:QM});Oh.subscribe(w8(()=>{const n=Oh.getState();$8($_,{connection:n.connection,startScreen:n.startScreen})},1e3));const KM=document.getElementById("root"),$M=pS.createRoot(KM);$M.render(y.jsx(mT,{store:Oh,children:y.jsx(x8,{})}));
|
|
131
|
-
//# sourceMappingURL=index-A-Y4qaOd.js.map
|