@botfabrik/engine-webclient 4.93.7-alpha.0 → 4.93.7-alpha.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.
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ig;function bE(){return ig||(ig=1,function(n){function r(I,Q){var ee=I.length;I.push(Q);e:for(;0<ee;){var Se=ee-1>>>1,R=I[Se];if(0<u(R,Q))I[Se]=Q,I[ee]=R,ee=Se;else break e}}function i(I){return I.length===0?null:I[0]}function s(I){if(I.length===0)return null;var Q=I[0],ee=I.pop();if(ee!==Q){I[0]=ee;e:for(var Se=0,R=I.length,P=R>>>1;Se<P;){var K=2*(Se+1)-1,Y=I[K],te=K+1,pe=I[te];if(0>u(Y,ee))te<R&&0>u(pe,Y)?(I[Se]=pe,I[te]=ee,Se=te):(I[Se]=Y,I[K]=ee,Se=K);else if(te<R&&0>u(pe,ee))I[Se]=pe,I[te]=ee,Se=te;else break e}}return Q}function u(I,Q){var ee=I.sortIndex-Q.sortIndex;return ee!==0?ee:I.id-Q.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 h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var m=[],g=[],v=1,
|
|
17
|
+
*/var ig;function bE(){return ig||(ig=1,function(n){function r(I,Q){var ee=I.length;I.push(Q);e:for(;0<ee;){var Se=ee-1>>>1,R=I[Se];if(0<u(R,Q))I[Se]=Q,I[ee]=R,ee=Se;else break e}}function i(I){return I.length===0?null:I[0]}function s(I){if(I.length===0)return null;var Q=I[0],ee=I.pop();if(ee!==Q){I[0]=ee;e:for(var Se=0,R=I.length,P=R>>>1;Se<P;){var K=2*(Se+1)-1,Y=I[K],te=K+1,pe=I[te];if(0>u(Y,ee))te<R&&0>u(pe,Y)?(I[Se]=pe,I[te]=ee,Se=te):(I[Se]=Y,I[K]=ee,Se=K);else if(te<R&&0>u(pe,ee))I[Se]=pe,I[te]=ee,Se=te;else break e}}return Q}function u(I,Q){var ee=I.sortIndex-Q.sortIndex;return ee!==0?ee:I.id-Q.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 h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var m=[],g=[],v=1,S=null,A=3,U=!1,M=!1,F=!1,j=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function O(I){for(var Q=i(g);Q!==null;){if(Q.callback===null)s(g);else if(Q.startTime<=I)s(g),Q.sortIndex=Q.expirationTime,r(m,Q);else break;Q=i(g)}}function T(I){if(F=!1,O(I),!M)if(i(m)!==null)M=!0,k||(k=!0,ie());else{var Q=i(g);Q!==null&&ye(T,Q.startTime-I)}}var k=!1,Z=-1,$=5,se=-1;function re(){return j?!0:!(n.unstable_now()-se<$)}function J(){if(j=!1,k){var I=n.unstable_now();se=I;var Q=!0;try{e:{M=!1,F&&(F=!1,x(Z),Z=-1),U=!0;var ee=A;try{t:{for(O(I),S=i(m);S!==null&&!(S.expirationTime>I&&re());){var Se=S.callback;if(typeof Se=="function"){S.callback=null,A=S.priorityLevel;var R=Se(S.expirationTime<=I);if(I=n.unstable_now(),typeof R=="function"){S.callback=R,O(I),Q=!0;break t}S===i(m)&&s(m),O(I)}else s(m);S=i(m)}if(S!==null)Q=!0;else{var P=i(g);P!==null&&ye(T,P.startTime-I),Q=!1}}break e}finally{S=null,A=ee,U=!1}Q=void 0}}finally{Q?ie():k=!1}}}var ie;if(typeof b=="function")ie=function(){b(J)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Ze=le.port2;le.port1.onmessage=J,ie=function(){Ze.postMessage(null)}}else ie=function(){E(J,0)};function ye(I,Q){Z=E(function(){I(n.unstable_now())},Q)}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(I){I.callback=null},n.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<I?Math.floor(1e3/I):5},n.unstable_getCurrentPriorityLevel=function(){return A},n.unstable_next=function(I){switch(A){case 1:case 2:case 3:var Q=3;break;default:Q=A}var ee=A;A=Q;try{return I()}finally{A=ee}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(I,Q){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var ee=A;A=I;try{return Q()}finally{A=ee}},n.unstable_scheduleCallback=function(I,Q,ee){var Se=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Se+ee:Se):ee=Se,I){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ee+R,I={id:v++,callback:Q,priorityLevel:I,startTime:ee,expirationTime:R,sortIndex:-1},ee>Se?(I.sortIndex=ee,r(g,I),i(m)===null&&I===i(g)&&(F?(x(Z),Z=-1):F=!0,ye(T,ee-Se))):(I.sortIndex=R,r(m,I),M||U||(M=!0,k||(k=!0,ie()))),I},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(I){var Q=A;return function(){var ee=A;A=Q;try{return I.apply(this,arguments)}finally{A=ee}}}}(Pc)),Pc}var sg;function EE(){return sg||(sg=1,Vc.exports=bE()),Vc.exports}var Zc={exports:{}},me={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var lg;function SE(){if(lg)return me;lg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),
|
|
25
|
+
*/var lg;function SE(){if(lg)return me;lg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.iterator;function A(R){return R===null||typeof R!="object"?null:(R=S&&R[S]||R["@@iterator"],typeof R=="function"?R:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,F={};function j(R,P,K){this.props=R,this.context=P,this.refs=F,this.updater=K||U}j.prototype.isReactComponent={},j.prototype.setState=function(R,P){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,P,"setState")},j.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function E(){}E.prototype=j.prototype;function x(R,P,K){this.props=R,this.context=P,this.refs=F,this.updater=K||U}var b=x.prototype=new E;b.constructor=x,M(b,j.prototype),b.isPureReactComponent=!0;var O=Array.isArray,T={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function Z(R,P,K,Y,te,pe){return K=pe.ref,{$$typeof:n,type:R,key:P,ref:K!==void 0?K:null,props:pe}}function $(R,P){return Z(R.type,P,void 0,void 0,void 0,R.props)}function se(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function re(R){var P={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(K){return P[K]})}var J=/\/+/g;function ie(R,P){return typeof R=="object"&&R!==null&&R.key!=null?re(""+R.key):P.toString(36)}function le(){}function Ze(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(le,le):(R.status="pending",R.then(function(P){R.status==="pending"&&(R.status="fulfilled",R.value=P)},function(P){R.status==="pending"&&(R.status="rejected",R.reason=P)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function ye(R,P,K,Y,te){var pe=typeof R;(pe==="undefined"||pe==="boolean")&&(R=null);var ue=!1;if(R===null)ue=!0;else switch(pe){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(R.$$typeof){case n:case r:ue=!0;break;case v:return ue=R._init,ye(ue(R._payload),P,K,Y,te)}}if(ue)return te=te(R),ue=Y===""?"."+ie(R,0):Y,O(te)?(K="",ue!=null&&(K=ue.replace(J,"$&/")+"/"),ye(te,P,K,"",function(wt){return wt})):te!=null&&(se(te)&&(te=$(te,K+(te.key==null||R&&R.key===te.key?"":(""+te.key).replace(J,"$&/")+"/")+ue)),P.push(te)),1;ue=0;var tt=Y===""?".":Y+":";if(O(R))for(var He=0;He<R.length;He++)Y=R[He],pe=tt+ie(Y,He),ue+=ye(Y,P,K,pe,te);else if(He=A(R),typeof He=="function")for(R=He.call(R),He=0;!(Y=R.next()).done;)Y=Y.value,pe=tt+ie(Y,He++),ue+=ye(Y,P,K,pe,te);else if(pe==="object"){if(typeof R.then=="function")return ye(Ze(R),P,K,Y,te);throw P=String(R),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ue}function I(R,P,K){if(R==null)return R;var Y=[],te=0;return ye(R,Y,"","",function(pe){return P.call(K,pe,te++)}),Y}function Q(R){if(R._status===-1){var P=R._result;P=P(),P.then(function(K){(R._status===0||R._status===-1)&&(R._status=1,R._result=K)},function(K){(R._status===0||R._status===-1)&&(R._status=2,R._result=K)}),R._status===-1&&(R._status=0,R._result=P)}if(R._status===1)return R._result.default;throw R._result}var ee=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function Se(){}return me.Children={map:I,forEach:function(R,P,K){I(R,function(){P.apply(this,arguments)},K)},count:function(R){var P=0;return I(R,function(){P++}),P},toArray:function(R){return I(R,function(P){return P})||[]},only:function(R){if(!se(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},me.Component=j,me.Fragment=i,me.Profiler=u,me.PureComponent=x,me.StrictMode=s,me.Suspense=m,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,me.__COMPILER_RUNTIME={__proto__:null,c:function(R){return T.H.useMemoCache(R)}},me.cache=function(R){return function(){return R.apply(null,arguments)}},me.cloneElement=function(R,P,K){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Y=M({},R.props),te=R.key,pe=void 0;if(P!=null)for(ue in P.ref!==void 0&&(pe=void 0),P.key!==void 0&&(te=""+P.key),P)!k.call(P,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&P.ref===void 0||(Y[ue]=P[ue]);var ue=arguments.length-2;if(ue===1)Y.children=K;else if(1<ue){for(var tt=Array(ue),He=0;He<ue;He++)tt[He]=arguments[He+2];Y.children=tt}return Z(R.type,te,void 0,void 0,pe,Y)},me.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},me.createElement=function(R,P,K){var Y,te={},pe=null;if(P!=null)for(Y in P.key!==void 0&&(pe=""+P.key),P)k.call(P,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=P[Y]);var ue=arguments.length-2;if(ue===1)te.children=K;else if(1<ue){for(var tt=Array(ue),He=0;He<ue;He++)tt[He]=arguments[He+2];te.children=tt}if(R&&R.defaultProps)for(Y in ue=R.defaultProps,ue)te[Y]===void 0&&(te[Y]=ue[Y]);return Z(R,pe,void 0,void 0,null,te)},me.createRef=function(){return{current:null}},me.forwardRef=function(R){return{$$typeof:d,render:R}},me.isValidElement=se,me.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:Q}},me.memo=function(R,P){return{$$typeof:g,type:R,compare:P===void 0?null:P}},me.startTransition=function(R){var P=T.T,K={};T.T=K;try{var Y=R(),te=T.S;te!==null&&te(K,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Se,ee)}catch(pe){ee(pe)}finally{T.T=P}},me.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},me.use=function(R){return T.H.use(R)},me.useActionState=function(R,P,K){return T.H.useActionState(R,P,K)},me.useCallback=function(R,P){return T.H.useCallback(R,P)},me.useContext=function(R){return T.H.useContext(R)},me.useDebugValue=function(){},me.useDeferredValue=function(R,P){return T.H.useDeferredValue(R,P)},me.useEffect=function(R,P,K){var Y=T.H;if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(R,P)},me.useId=function(){return T.H.useId()},me.useImperativeHandle=function(R,P,K){return T.H.useImperativeHandle(R,P,K)},me.useInsertionEffect=function(R,P){return T.H.useInsertionEffect(R,P)},me.useLayoutEffect=function(R,P){return T.H.useLayoutEffect(R,P)},me.useMemo=function(R,P){return T.H.useMemo(R,P)},me.useOptimistic=function(R,P){return T.H.useOptimistic(R,P)},me.useReducer=function(R,P,K){return T.H.useReducer(R,P,K)},me.useRef=function(R){return T.H.useRef(R)},me.useState=function(R){return T.H.useState(R)},me.useSyncExternalStore=function(R,P,K){return T.H.useSyncExternalStore(R,P,K)},me.useTransition=function(){return T.H.useTransition()},me.version="19.1.0",me}var og;function qa(){return og||(og=1,Zc.exports=SE()),Zc.exports}var Yc={exports:{}},gt={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var ug;function TE(){if(ug)return gt;ug=1;var n=qa();function r(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 s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,g,v){var
|
|
33
|
+
*/var ug;function TE(){if(ug)return gt;ug=1;var n=qa();function r(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 s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,g,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:m,containerInfo:g,implementation:v}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,gt.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(r(299));return c(m,g,null,v)},gt.flushSync=function(m){var g=h.T,v=s.p;try{if(h.T=null,s.p=2,m)return m()}finally{h.T=g,s.p=v,s.d.f()}},gt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},gt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},gt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var v=g.as,S=d(v,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,U=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:A,fetchPriority:U}):v==="script"&&s.d.X(m,{crossOrigin:S,integrity:A,fetchPriority:U,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=d(g.as,g.crossOrigin);s.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&&s.d.M(m)},gt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,S=d(v,g.crossOrigin);s.d.L(m,v,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},gt.preloadModule=function(m,g){if(typeof m=="string")if(g){var v=d(g.as,g.crossOrigin);s.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 s.d.m(m)},gt.requestFormReset=function(m){s.d.r(m)},gt.unstable_batchedUpdates=function(m,g){return m(g)},gt.useFormState=function(m,g,v){return h.H.useFormState(m,g,v)},gt.useFormStatus=function(){return h.H.useHostTransitionStatus()},gt.version="19.1.0",gt}var cg;function xE(){if(cg)return Yc.exports;cg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Yc.exports=TE(),Yc.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var fg;function AE(){if(fg)return Vi;fg=1;var n=EE(),r=qa(),i=xE();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return d(o),e;if(f===l)return d(o),t;f=f.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=f;else{for(var p=!1,_=o.child;_;){if(_===a){p=!0,a=o,l=f;break}if(_===l){p=!0,l=o,a=f;break}_=_.sibling}if(!p){for(_=f.child;_;){if(_===a){p=!0,a=f,l=o;break}if(_===l){p=!0,l=f,a=o;break}_=_.sibling}if(!p)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,T=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),b=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function Ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case k:return"Profiler";case F:return"StrictMode";case S:return"Suspense";case z:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case b:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:Ze(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return Ze(e(t))}catch{}}return null}var ye=Array.isArray,I=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Se=[],R=-1;function P(e){return{current:e}}function K(e){0>R||(e.current=Se[R],Se[R]=null,R--)}function Y(e,t){R++,Se[R]=e.current,e.current=t}var te=P(null),pe=P(null),ue=P(null),tt=P(null);function He(e,t){switch(Y(ue,t),Y(pe,e),Y(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mp(t),e=Dp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(te),Y(te,e)}function wt(){K(te),K(pe),K(ue)}function Er(e){e.memoizedState!==null&&Y(tt,e);var t=te.current,a=Dp(t,e.type);t!==a&&(Y(pe,e),Y(te,a))}function Pa(e){pe.current===e&&(K(te),K(pe)),tt.current===e&&(K(tt),zi._currentValue=ee)}var dt=Object.prototype.hasOwnProperty,Sn=n.unstable_scheduleCallback,No=n.unstable_cancelCallback,K1=n.unstable_shouldYield,$1=n.unstable_requestPaint,cn=n.unstable_now,J1=n.unstable_getCurrentPriorityLevel,fd=n.unstable_ImmediatePriority,hd=n.unstable_UserBlockingPriority,cs=n.unstable_NormalPriority,W1=n.unstable_LowPriority,dd=n.unstable_IdlePriority,eb=n.log,tb=n.unstable_setDisableYieldValue,Za=null,Ot=null;function Pn(e){if(typeof eb=="function"&&tb(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Za,e)}catch{}}var Rt=Math.clz32?Math.clz32:ab,nb=Math.log,rb=Math.LN2;function ab(e){return e>>>=0,e===0?32:31-(nb(e)/rb|0)|0}var fs=256,hs=4194304;function Sr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ds(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var _=l&134217727;return _!==0?(l=_&~f,l!==0?o=Sr(l):(p&=_,p!==0?o=Sr(p):a||(a=_&~e,a!==0&&(o=Sr(a))))):(_=l&~f,_!==0?o=Sr(_):p!==0?o=Sr(p):a||(a=l&~e,a!==0&&(o=Sr(a)))),o===0?0:t!==0&&t!==o&&(t&f)===0&&(f=o&-o,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:o}function Ya(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ib(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 md(){var e=fs;return fs<<=1,(fs&4194048)===0&&(fs=256),e}function pd(){var e=hs;return hs<<=1,(hs&62914560)===0&&(hs=4194304),e}function Mo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Xa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sb(e,t,a,l,o,f){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var _=e.entanglements,w=e.expirationTimes,B=e.hiddenUpdates;for(a=p&~a;0<a;){var G=31-Rt(a),V=1<<G;_[G]=0,w[G]=-1;var L=B[G];if(L!==null)for(B[G]=null,G=0;G<L.length;G++){var H=L[G];H!==null&&(H.lane&=-536870913)}a&=~V}l!==0&&gd(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(p&~t))}function gd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Rt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function yd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Rt(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function Do(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 Bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vd(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:$p(e.type))}function lb(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Zn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Zn,bt="__reactProps$"+Zn,ea="__reactContainer$"+Zn,jo="__reactEvents$"+Zn,ob="__reactListeners$"+Zn,ub="__reactHandles$"+Zn,_d="__reactResources$"+Zn,Qa="__reactMarker$"+Zn;function Lo(e){delete e[mt],delete e[bt],delete e[jo],delete e[ob],delete e[ub]}function ta(e){var t=e[mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ea]||a[mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Up(e);e!==null;){if(a=e[mt])return a;e=Up(e)}return t}e=a,a=e.parentNode}return null}function na(e){if(e=e[mt]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ra(e){var t=e[_d];return t||(t=e[_d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Qa]=!0}var bd=new Set,Ed={};function Tr(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(Ed[e]=t,e=0;e<t.length;e++)bd.add(t[e])}var cb=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]*$"),Sd={},Td={};function fb(e){return dt.call(Td,e)?!0:dt.call(Sd,e)?!1:cb.test(e)?Td[e]=!0:(Sd[e]=!0,!1)}function ms(e,t,a){if(fb(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ps(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Tn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var Uo,xd;function ia(e){if(Uo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Uo=t&&t[1]||"",xd=-1<a.stack.indexOf(`
|
|
41
|
+
*/var fg;function AE(){if(fg)return Vi;fg=1;var n=EE(),r=qa(),i=xE();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return d(o),e;if(f===l)return d(o),t;f=f.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=f;else{for(var p=!1,_=o.child;_;){if(_===a){p=!0,a=o,l=f;break}if(_===l){p=!0,l=o,a=f;break}_=_.sibling}if(!p){for(_=f.child;_;){if(_===a){p=!0,a=f,l=o;break}if(_===l){p=!0,l=f,a=o;break}_=_.sibling}if(!p)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),b=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function Ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case j:return"Profiler";case F:return"StrictMode";case T:return"Suspense";case k:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case b:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:Ze(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return Ze(e(t))}catch{}}return null}var ye=Array.isArray,I=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Se=[],R=-1;function P(e){return{current:e}}function K(e){0>R||(e.current=Se[R],Se[R]=null,R--)}function Y(e,t){R++,Se[R]=e.current,e.current=t}var te=P(null),pe=P(null),ue=P(null),tt=P(null);function He(e,t){switch(Y(ue,t),Y(pe,e),Y(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mp(t),e=Dp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(te),Y(te,e)}function wt(){K(te),K(pe),K(ue)}function Er(e){e.memoizedState!==null&&Y(tt,e);var t=te.current,a=Dp(t,e.type);t!==a&&(Y(pe,e),Y(te,a))}function Pa(e){pe.current===e&&(K(te),K(pe)),tt.current===e&&(K(tt),zi._currentValue=ee)}var dt=Object.prototype.hasOwnProperty,Sn=n.unstable_scheduleCallback,No=n.unstable_cancelCallback,K1=n.unstable_shouldYield,$1=n.unstable_requestPaint,cn=n.unstable_now,J1=n.unstable_getCurrentPriorityLevel,fd=n.unstable_ImmediatePriority,hd=n.unstable_UserBlockingPriority,cs=n.unstable_NormalPriority,W1=n.unstable_LowPriority,dd=n.unstable_IdlePriority,eb=n.log,tb=n.unstable_setDisableYieldValue,Za=null,Ot=null;function Pn(e){if(typeof eb=="function"&&tb(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Za,e)}catch{}}var Rt=Math.clz32?Math.clz32:ab,nb=Math.log,rb=Math.LN2;function ab(e){return e>>>=0,e===0?32:31-(nb(e)/rb|0)|0}var fs=256,hs=4194304;function Sr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ds(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var _=l&134217727;return _!==0?(l=_&~f,l!==0?o=Sr(l):(p&=_,p!==0?o=Sr(p):a||(a=_&~e,a!==0&&(o=Sr(a))))):(_=l&~f,_!==0?o=Sr(_):p!==0?o=Sr(p):a||(a=l&~e,a!==0&&(o=Sr(a)))),o===0?0:t!==0&&t!==o&&(t&f)===0&&(f=o&-o,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:o}function Ya(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ib(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 md(){var e=fs;return fs<<=1,(fs&4194048)===0&&(fs=256),e}function pd(){var e=hs;return hs<<=1,(hs&62914560)===0&&(hs=4194304),e}function Mo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Xa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sb(e,t,a,l,o,f){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var _=e.entanglements,w=e.expirationTimes,B=e.hiddenUpdates;for(a=p&~a;0<a;){var G=31-Rt(a),V=1<<G;_[G]=0,w[G]=-1;var L=B[G];if(L!==null)for(B[G]=null,G=0;G<L.length;G++){var z=L[G];z!==null&&(z.lane&=-536870913)}a&=~V}l!==0&&gd(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(p&~t))}function gd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Rt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function yd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Rt(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function Do(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 Bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vd(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:$p(e.type))}function lb(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Zn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Zn,bt="__reactProps$"+Zn,ea="__reactContainer$"+Zn,jo="__reactEvents$"+Zn,ob="__reactListeners$"+Zn,ub="__reactHandles$"+Zn,_d="__reactResources$"+Zn,Qa="__reactMarker$"+Zn;function Lo(e){delete e[mt],delete e[bt],delete e[jo],delete e[ob],delete e[ub]}function ta(e){var t=e[mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ea]||a[mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Up(e);e!==null;){if(a=e[mt])return a;e=Up(e)}return t}e=a,a=e.parentNode}return null}function na(e){if(e=e[mt]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ra(e){var t=e[_d];return t||(t=e[_d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Qa]=!0}var bd=new Set,Ed={};function Tr(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(Ed[e]=t,e=0;e<t.length;e++)bd.add(t[e])}var cb=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]*$"),Sd={},Td={};function fb(e){return dt.call(Td,e)?!0:dt.call(Sd,e)?!1:cb.test(e)?Td[e]=!0:(Sd[e]=!0,!1)}function ms(e,t,a){if(fb(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ps(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Tn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var Uo,xd;function ia(e){if(Uo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Uo=t&&t[1]||"",xd=-1<a.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Uo+e+xd}var Ho=!1;function zo(e,t){if(!e||Ho)return"";Ho=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(
|
|
43
|
+
`+Uo+e+xd}var Ho=!1;function zo(e,t){if(!e||Ho)return"";Ho=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(z){var L=z}Reflect.construct(e,[],V)}else{try{V.call()}catch(z){L=z}e.call(V.prototype)}}else{try{throw Error()}catch(z){L=z}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(z){if(z&&L&&typeof z.stack=="string")return[z.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),p=f[0],_=f[1];if(p&&_){var w=p.split(`
|
|
44
44
|
`),B=_.split(`
|
|
45
45
|
`);for(o=l=0;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(l===w.length||o===B.length)for(l=w.length-1,o=B.length-1;1<=l&&0<=o&&w[l]!==B[o];)o--;for(;1<=l&&0<=o;l--,o--)if(w[l]!==B[o]){if(l!==1||o!==1)do if(l--,o--,0>o||w[l]!==B[o]){var G=`
|
|
46
46
|
`+w[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=o);break}}}finally{Ho=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ia(a):""}function hb(e){switch(e.tag){case 26:case 27:case 5:return ia(e.type);case 16:return ia("Lazy");case 13:return ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return zo(e.type,!1);case 11:return zo(e.type.render,!1);case 1:return zo(e.type,!0);case 31:return ia("Activity");default:return""}}function Ad(e){try{var t="";do t+=hb(e),e=e.return;while(e);return t}catch(a){return`
|
|
47
47
|
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}function qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function db(e){var t=wd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){l=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(p){l=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gs(e){e._valueTracker||(e._valueTracker=db(e))}function Od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=wd(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ys(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 mb=/[\n"\\]/g;function Ft(e){return e.replace(mb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ko(e,t,a,l,o,f,p,_){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=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Io(e,p,qt(t)):a!=null?Io(e,p,qt(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+qt(_):e.removeAttribute("name")}function Rd(e,t,a,l,o,f,p,_){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+qt(a):"",t=t!=null?""+qt(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=_?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function Io(e,t,a){t==="number"&&ys(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function sa(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+qt(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Cd(e,t,a){if(t!=null&&(t=""+qt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+qt(a):""}function Nd(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(ye(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=qt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function la(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var pb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Md(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||pb.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Dd(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&Md(e,o,l)}else for(var f in t)t.hasOwnProperty(f)&&Md(e,f,t[f])}function Go(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 gb=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"]]),yb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vs(e){return yb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var qo=null;function Fo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,ua=null;function Bd(e){var t=na(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ko(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ft(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[bt]||null;if(!o)throw Error(s(90));ko(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Od(l)}break e;case"textarea":Cd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&sa(e,!!a.multiple,t,!1)}}}var Vo=!1;function jd(e,t,a){if(Vo)return e(t,a);Vo=!0;try{var l=e(t);return l}finally{if(Vo=!1,(oa!==null||ua!==null)&&(rl(),oa&&(t=oa,e=ua,ua=oa=null,Bd(t),e)))for(t=0;t<e.length;t++)Bd(e[t])}}function $a(e,t){var a=e.stateNode;if(a===null)return null;var l=a[bt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Po=!1;if(xn)try{var Ja={};Object.defineProperty(Ja,"passive",{get:function(){Po=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Po=!1}var Yn=null,Zo=null,_s=null;function Ld(){if(_s)return _s;var e,t=Zo,a=t.length,l,o="value"in Yn?Yn.value:Yn.textContent,f=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(l=1;l<=p&&t[a-l]===o[f-l];l++);return _s=o.slice(e,1<l?1-l: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 Es(){return!0}function Ud(){return!1}function Et(e){function t(a,l,o,f,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(f):f[_]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Es:Ud,this.isPropagationStopped=Ud,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Es)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Es)},persist:function(){},isPersistent:Es}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ss=Et(xr),Wa=v({},xr,{view:0,detail:0}),vb=Et(Wa),Yo,Xo,ei,Ts=v({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ko,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!==ei&&(ei&&e.type==="mousemove"?(Yo=e.screenX-ei.screenX,Xo=e.screenY-ei.screenY):Xo=Yo=0,ei=e),Yo)},movementY:function(e){return"movementY"in e?e.movementY:Xo}}),Hd=Et(Ts),_b=v({},Ts,{dataTransfer:0}),bb=Et(_b),Eb=v({},Wa,{relatedTarget:0}),Qo=Et(Eb),Sb=v({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Tb=Et(Sb),xb=v({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ab=Et(xb),wb=v({},xr,{data:0}),zd=Et(wb),Ob={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rb={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"},Cb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cb[e])?!!t[e]:!1}function Ko(){return Nb}var Mb=v({},Wa,{key:function(e){if(e.key){var t=Ob[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"?Rb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ko,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}}),Db=Et(Mb),Bb=v({},Ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kd=Et(Bb),jb=v({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ko}),Lb=Et(jb),Ub=v({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hb=Et(Ub),zb=v({},Ts,{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}),kb=Et(zb),Ib=v({},xr,{newState:0,oldState:0}),Gb=Et(Ib),qb=[9,13,27,32],$o=xn&&"CompositionEvent"in window,ti=null;xn&&"documentMode"in document&&(ti=document.documentMode);var Fb=xn&&"TextEvent"in window&&!ti,Id=xn&&(!$o||ti&&8<ti&&11>=ti),Gd=" ",qd=!1;function Fd(e,t){switch(e){case"keyup":return qb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ca=!1;function Vb(e,t){switch(e){case"compositionend":return Vd(t);case"keypress":return t.which!==32?null:(qd=!0,Gd);case"textInput":return e=t.data,e===Gd&&qd?null:e;default:return null}}function Pb(e,t){if(ca)return e==="compositionend"||!$o&&Fd(e,t)?(e=Ld(),_s=Zo=Yn=null,ca=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Id&&t.locale!=="ko"?null:t.data;default:return null}}var Zb={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 Pd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zb[e.type]:t==="textarea"}function Zd(e,t,a,l){oa?ua?ua.push(l):ua=[l]:oa=l,t=ul(t,"onChange"),0<t.length&&(a=new Ss("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var ni=null,ri=null;function Yb(e){wp(e,0)}function xs(e){var t=Ka(e);if(Od(t))return e}function Yd(e,t){if(e==="change")return t}var Xd=!1;if(xn){var Jo;if(xn){var Wo="oninput"in document;if(!Wo){var Qd=document.createElement("div");Qd.setAttribute("oninput","return;"),Wo=typeof Qd.oninput=="function"}Jo=Wo}else Jo=!1;Xd=Jo&&(!document.documentMode||9<document.documentMode)}function Kd(){ni&&(ni.detachEvent("onpropertychange",$d),ri=ni=null)}function $d(e){if(e.propertyName==="value"&&xs(ri)){var t=[];Zd(t,ri,e,Fo(e)),jd(Yb,t)}}function Xb(e,t,a){e==="focusin"?(Kd(),ni=t,ri=a,ni.attachEvent("onpropertychange",$d)):e==="focusout"&&Kd()}function Qb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xs(ri)}function Kb(e,t){if(e==="click")return xs(t)}function $b(e,t){if(e==="input"||e==="change")return xs(t)}function Jb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Jb;function ai(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!dt.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function Jd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wd(e,t){var a=Jd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Jd(a)}}function em(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?em(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ys(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ys(e.document)}return t}function eu(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 Wb=xn&&"documentMode"in document&&11>=document.documentMode,fa=null,tu=null,ii=null,nu=!1;function nm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nu||fa==null||fa!==ys(l)||(l=fa,"selectionStart"in l&&eu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ii&&ai(ii,l)||(ii=l,l=ul(tu,"onSelect"),0<l.length&&(t=new Ss("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=fa)))}function Ar(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ha={animationend:Ar("Animation","AnimationEnd"),animationiteration:Ar("Animation","AnimationIteration"),animationstart:Ar("Animation","AnimationStart"),transitionrun:Ar("Transition","TransitionRun"),transitionstart:Ar("Transition","TransitionStart"),transitioncancel:Ar("Transition","TransitionCancel"),transitionend:Ar("Transition","TransitionEnd")},ru={},rm={};xn&&(rm=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function wr(e){if(ru[e])return ru[e];if(!ha[e])return e;var t=ha[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in rm)return ru[e]=t[a];return e}var am=wr("animationend"),im=wr("animationiteration"),sm=wr("animationstart"),e2=wr("transitionrun"),t2=wr("transitionstart"),n2=wr("transitioncancel"),lm=wr("transitionend"),om=new Map,au="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(" ");au.push("scrollEnd");function en(e,t){om.set(e,t),Tr(t,[e])}var um=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var a=um.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ad(t)},um.set(e,t),t)}return{value:e,source:t,stack:Ad(t)}}var Pt=[],da=0,iu=0;function As(){for(var e=da,t=iu=da=0;t<e;){var a=Pt[t];Pt[t++]=null;var l=Pt[t];Pt[t++]=null;var o=Pt[t];Pt[t++]=null;var f=Pt[t];if(Pt[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}f!==0&&cm(a,o,f)}}function ws(e,t,a,l){Pt[da++]=e,Pt[da++]=t,Pt[da++]=a,Pt[da++]=l,iu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function su(e,t,a,l){return ws(e,t,a,l),Os(e)}function ma(e,t){return ws(e,null,null,t),Os(e)}function cm(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&t!==null&&(o=31-Rt(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),f):null}function Os(e){if(50<Ni)throw Ni=0,hc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};function r2(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,a,l){return new r2(e,t,a,l)}function lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function An(e,t){var a=e.alternate;return a===null?(a=Nt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function fm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Rs(e,t,a,l,o,f){var p=0;if(l=e,typeof e=="function")lu(e)&&(p=1);else if(typeof e=="string")p=iE(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=Nt(31,a,t,o),e.elementType=se,e.lanes=f,e;case M:return Or(a.children,o,f,t);case F:p=8,o|=24;break;case k:return e=Nt(12,a,t,o|2),e.elementType=k,e.lanes=f,e;case S:return e=Nt(13,a,t,o),e.elementType=S,e.lanes=f,e;case z:return e=Nt(19,a,t,o),e.elementType=z,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case b:p=10;break e;case x:p=9;break e;case O:p=11;break e;case Z:p=14;break e;case $:p=16,l=null;break e}p=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Nt(p,a,t,o),t.elementType=e,t.type=l,t.lanes=f,t}function Or(e,t,a,l){return e=Nt(7,e,l,t),e.lanes=a,e}function ou(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function uu(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ga=[],ya=0,Cs=null,Ns=0,Zt=[],Yt=0,Rr=null,wn=1,On="";function Cr(e,t){ga[ya++]=Ns,ga[ya++]=Cs,Cs=e,Ns=t}function hm(e,t,a){Zt[Yt++]=wn,Zt[Yt++]=On,Zt[Yt++]=Rr,Rr=e;var l=wn;e=On;var o=32-Rt(l)-1;l&=~(1<<o),a+=1;var f=32-Rt(t)+o;if(30<f){var p=o-o%5;f=(l&(1<<p)-1).toString(32),l>>=p,o-=p,wn=1<<32-Rt(t)+o|a<<o|l,On=f+e}else wn=1<<f|a<<o|l,On=e}function cu(e){e.return!==null&&(Cr(e,1),hm(e,1,0))}function fu(e){for(;e===Cs;)Cs=ga[--ya],ga[ya]=null,Ns=ga[--ya],ga[ya]=null;for(;e===Rr;)Rr=Zt[--Yt],Zt[Yt]=null,On=Zt[--Yt],Zt[Yt]=null,wn=Zt[--Yt],Zt[Yt]=null}var yt=null,Fe=null,Re=!1,Nr=null,fn=!1,hu=Error(s(519));function Mr(e){var t=Error(s(418,""));throw oi(Vt(t,e)),hu}function dm(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[mt]=e,t[bt]=l,a){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(a=0;a<Di.length;a++)be(Di[a],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Rd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),gs(t);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Nd(t,l.value,l.defaultValue,l.children),gs(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Np(t.textContent,a)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=cl),t=!0):t=!1,t||Mr(e)}function mm(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:yt=yt.return}}function si(e){if(e!==yt)return!1;if(!Re)return mm(e),Re=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Rc(e.type,e.memoizedProps)),a=!a),a&&Fe&&Mr(e),mm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Fe=nn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Fe=null}}else t===27?(t=Fe,ur(e.type)?(e=Dc,Dc=null,Fe=e):Fe=t):Fe=yt?nn(e.stateNode.nextSibling):null;return!0}function li(){Fe=yt=null,Re=!1}function pm(){var e=Nr;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Nr=null),e}function oi(e){Nr===null?Nr=[e]:Nr.push(e)}var du=P(null),Dr=null,Rn=null;function Xn(e,t,a){Y(du,t._currentValue),t._currentValue=a}function Cn(e){e._currentValue=du.current,K(du)}function mu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function pu(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var p=o.child;f=f.firstContext;e:for(;f!==null;){var _=f;f=o;for(var w=0;w<t.length;w++)if(_.context===t[w]){f.lanes|=a,_=f.alternate,_!==null&&(_.lanes|=a),mu(f.return,a,e),l||(p=null);break e}f=_.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=a,f=p.alternate,f!==null&&(f.lanes|=a),mu(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function ui(e,t,a,l){e=null;for(var o=t,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var _=o.type;Ct(o.pendingProps.value,p.value)||(e!==null?e.push(_):e=[_])}}else if(o===tt.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(zi):e=[zi])}o=o.return}e!==null&&pu(t,e,a,l),t.flags|=262144}function Ms(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Br(e){Dr=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return gm(Dr,e)}function Ds(e,t){return Dr===null&&Br(e),gm(e,t)}function gm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Rn===null){if(e===null)throw Error(s(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return a}var a2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},i2=n.unstable_scheduleCallback,s2=n.unstable_NormalPriority,We={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gu(){return{controller:new a2,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&i2(s2,function(){e.controller.abort()})}var fi=null,yu=0,va=0,_a=null;function l2(e,t){if(fi===null){var a=fi=[];yu=0,va=_c(),_a={status:"pending",value:void 0,then:function(l){a.push(l)}}}return yu++,t.then(ym,ym),t}function ym(){if(--yu===0&&fi!==null){_a!==null&&(_a.status="fulfilled");var e=fi;fi=null,va=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function o2(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var vm=I.S;I.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&l2(e,t),vm!==null&&vm(e,t)};var jr=P(null);function vu(){var e=jr.current;return e!==null?e:ze.pooledCache}function Bs(e,t){t===null?Y(jr,jr.current):Y(jr,t.pool)}function _m(){var e=vu();return e===null?null:{parent:We._currentValue,pool:e}}var hi=Error(s(460)),bm=Error(s(474)),js=Error(s(542)),_u={then:function(){}};function Em(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ls(){}function Sm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ls,Ls),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e;default:if(typeof t.status=="string")t.then(Ls,Ls);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e}throw di=t,hi}}var di=null;function Tm(){if(di===null)throw Error(s(459));var e=di;return di=null,e}function xm(e){if(e===hi||e===js)throw Error(s(483))}var Qn=!1;function bu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eu(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 Kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $n(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Os(e),cm(e,null,a),t}return ws(e,l,t,a),Os(e)}function mi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,yd(e,a)}}function Su(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=p:f=f.next=p,a=a.next}while(a!==null);f===null?o=f=t:f=f.next=t}else o=f=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Tu=!1;function pi(){if(Tu){var e=_a;if(e!==null)throw e}}function gi(e,t,a,l){Tu=!1;var o=e.updateQueue;Qn=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var w=_,B=w.next;w.next=null,p===null?f=B:p.next=B,p=w;var G=e.alternate;G!==null&&(G=G.updateQueue,_=G.lastBaseUpdate,_!==p&&(_===null?G.firstBaseUpdate=B:_.next=B,G.lastBaseUpdate=w))}if(f!==null){var V=o.baseState;p=0,G=B=w=null,_=f;do{var L=_.lane&-536870913,H=L!==_.lane;if(H?(Ae&L)===L:(l&L)===L){L!==0&&L===va&&(Tu=!0),G!==null&&(G=G.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var fe=e,oe=_;L=t;var Le=a;switch(oe.tag){case 1:if(fe=oe.payload,typeof fe=="function"){V=fe.call(Le,V,L);break e}V=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=oe.payload,L=typeof fe=="function"?fe.call(Le,V,L):fe,L==null)break e;V=v({},V,L);break e;case 2:Qn=!0}}L=_.callback,L!==null&&(e.flags|=64,H&&(e.flags|=8192),H=o.callbacks,H===null?o.callbacks=[L]:H.push(L))}else H={lane:L,tag:_.tag,payload:_.payload,callback:_.callback,next:null},G===null?(B=G=H,w=V):G=G.next=H,p|=L;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;H=_,_=H.next,H.next=null,o.lastBaseUpdate=H,o.shared.pending=null}}while(!0);G===null&&(w=V),o.baseState=w,o.firstBaseUpdate=B,o.lastBaseUpdate=G,f===null&&(o.shared.lanes=0),ir|=p,e.lanes=p,e.memoizedState=V}}function Am(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function wm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Am(a[e],t)}var ba=P(null),Us=P(0);function Om(e,t){e=Un,Y(Us,e),Y(ba,t),Un=e|t.baseLanes}function xu(){Y(Us,Un),Y(ba,ba.current)}function Au(){Un=Us.current,K(ba),K(Us)}var Jn=0,ge=null,Be=null,Qe=null,Hs=!1,Ea=!1,Lr=!1,zs=0,yi=0,Sa=null,u2=0;function Ye(){throw Error(s(321))}function wu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function Ou(e,t,a,l,o,f){return Jn=f,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?c0:f0,Lr=!1,f=a(l,o),Lr=!1,Ea&&(f=Cm(t,a,l,o)),Rm(e),f}function Rm(e){I.H=Vs;var t=Be!==null&&Be.next!==null;if(Jn=0,Qe=Be=ge=null,Hs=!1,yi=0,Sa=null,t)throw Error(s(300));e===null||rt||(e=e.dependencies,e!==null&&Ms(e)&&(rt=!0))}function Cm(e,t,a,l){ge=e;var o=0;do{if(Ea&&(Sa=null),yi=0,Ea=!1,25<=o)throw Error(s(301));if(o+=1,Qe=Be=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}I.H=g2,f=t(a,l)}while(Ea);return f}function c2(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ru(){var e=zs!==0;return zs=0,e}function Cu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Nu(e){if(Hs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hs=!1}Jn=0,Qe=Be=ge=null,Ea=!1,yi=zs=0,Sa=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ke(){if(Be===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=Qe===null?ge.memoizedState:Qe.next;if(t!==null)Qe=t,Be=e;else{if(e===null)throw ge.alternate===null?Error(s(467)):Error(s(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=yi;return yi+=1,Sa===null&&(Sa=[]),e=Sm(Sa,e,t),t=ge,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?c0:f0),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===b)return pt(e)}throw Error(s(438,String(e)))}function Du(e){var t=null,a=ge.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Mu(),ge.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=re;return t.index++,a}function Nn(e,t){return typeof t=="function"?t(e):t}function Is(e){var t=Ke();return Bu(t,Be,e)}function Bu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}t.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{t=o.next;var _=p=null,w=null,B=t,G=!1;do{var V=B.lane&-536870913;if(V!==B.lane?(Ae&V)===V:(Jn&V)===V){var L=B.revertLane;if(L===0)w!==null&&(w=w.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),V===va&&(G=!0);else if((Jn&L)===L){B=B.next,L===va&&(G=!0);continue}else V={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},w===null?(_=w=V,p=f):w=w.next=V,ge.lanes|=L,ir|=L;V=B.action,Lr&&a(f,V),f=B.hasEagerState?B.eagerState:a(f,V)}else L={lane:V,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},w===null?(_=w=L,p=f):w=w.next=L,ge.lanes|=V,ir|=V;B=B.next}while(B!==null&&B!==t);if(w===null?p=f:w.next=_,!Ct(f,e.memoizedState)&&(rt=!0,G&&(a=_a,a!==null)))throw a;e.memoizedState=f,e.baseState=p,e.baseQueue=w,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ju(e){var t=Ke(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,f=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do f=e(f,p.action),p=p.next;while(p!==o);Ct(f,t.memoizedState)||(rt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,l]}function Nm(e,t,a){var l=ge,o=Ke(),f=Re;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=t();var p=!Ct((Be||o).memoizedState,a);p&&(o.memoizedState=a,rt=!0),o=o.queue;var _=Bm.bind(null,l,o,e);if(_i(2048,8,_,[e]),o.getSnapshot!==t||p||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,Ta(9,Gs(),Dm.bind(null,l,o,a,t),null),ze===null)throw Error(s(349));f||(Jn&124)!==0||Mm(l,t,a)}return a}function Mm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Mu(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Dm(e,t,a,l){t.value=a,t.getSnapshot=l,jm(t)&&Lm(e)}function Bm(e,t,a){return a(function(){jm(t)&&Lm(e)})}function jm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Lm(e){var t=ma(e,2);t!==null&&Lt(t,e,2)}function Lu(e){var t=St();if(typeof e=="function"){var a=e;if(e=a(),Lr){Pn(!0);try{a()}finally{Pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:e},t}function Um(e,t,a,l){return e.baseState=a,Bu(e,Be,typeof l=="function"?l:Nn)}function f2(e,t,a,l,o){if(Fs(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};I.T!==null?a(!0):f.isTransition=!1,l(f),a=t.pending,a===null?(f.next=t.pending=f,Hm(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Hm(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var f=I.T,p={};I.T=p;try{var _=a(o,l),w=I.S;w!==null&&w(p,_),zm(e,t,_)}catch(B){Uu(e,t,B)}finally{I.T=f}}else try{f=a(o,l),zm(e,t,f)}catch(B){Uu(e,t,B)}}function zm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){km(e,t,l)},function(l){return Uu(e,t,l)}):km(e,t,a)}function km(e,t,a){t.status="fulfilled",t.value=a,Im(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Hm(e,a)))}function Uu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Im(t),t=t.next;while(t!==l)}e.action=null}function Im(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gm(e,t){return t}function qm(e,t){if(Re){var a=ze.formState;if(a!==null){e:{var l=ge;if(Re){if(Fe){t:{for(var o=Fe,f=fn;o.nodeType!==8;){if(!f){o=null;break t}if(o=nn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Fe=nn(o.nextSibling),l=o.data==="F!";break e}}Mr(l)}l=!1}l&&(t=a[0])}}return a=St(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gm,lastRenderedState:t},a.queue=l,a=l0.bind(null,ge,l),l.dispatch=a,l=Lu(!1),f=Gu.bind(null,ge,!1,l.queue),l=St(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=f2.bind(null,ge,o,f,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function Fm(e){var t=Ke();return Vm(t,Be,e)}function Vm(e,t,a){if(t=Bu(e,t,Gm)[0],e=Is(Nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=vi(t)}catch(p){throw p===hi?js:p}else l=t;t=Ke();var o=t.queue,f=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Ta(9,Gs(),h2.bind(null,o,a),null)),[l,f,e]}function h2(e,t){e.action=t}function Pm(e){var t=Ke(),a=Be;if(a!==null)return Vm(t,a,e);Ke(),t=t.memoizedState,a=Ke();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ta(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Mu(),ge.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Gs(){return{destroy:void 0,resource:void 0}}function Zm(){return Ke().memoizedState}function qs(e,t,a,l){var o=St();l=l===void 0?null:l,ge.flags|=e,o.memoizedState=Ta(1|t,Gs(),a,l)}function _i(e,t,a,l){var o=Ke();l=l===void 0?null:l;var f=o.memoizedState.inst;Be!==null&&l!==null&&wu(l,Be.memoizedState.deps)?o.memoizedState=Ta(t,f,a,l):(ge.flags|=e,o.memoizedState=Ta(1|t,f,a,l))}function Ym(e,t){qs(8390656,8,e,t)}function Xm(e,t){_i(2048,8,e,t)}function Qm(e,t){return _i(4,2,e,t)}function Km(e,t){return _i(4,4,e,t)}function $m(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jm(e,t,a){a=a!=null?a.concat([e]):null,_i(4,4,$m.bind(null,t,e),a)}function Hu(){}function Wm(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&wu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function e0(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&wu(t,l[1]))return l[0];if(l=e(),Lr){Pn(!0);try{e()}finally{Pn(!1)}}return a.memoizedState=[l,t],l}function zu(e,t,a){return a===void 0||(Jn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=rp(),ge.lanes|=e,ir|=e,a)}function t0(e,t,a,l){return Ct(a,t)?a:ba.current!==null?(e=zu(e,a,l),Ct(e,t)||(rt=!0),e):(Jn&42)===0?(rt=!0,e.memoizedState=a):(e=rp(),ge.lanes|=e,ir|=e,t)}function n0(e,t,a,l,o){var f=Q.p;Q.p=f!==0&&8>f?f:8;var p=I.T,_={};I.T=_,Gu(e,!1,t,a);try{var w=o(),B=I.S;if(B!==null&&B(_,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var G=o2(w,l);bi(e,t,G,jt(e))}else bi(e,t,l,jt(e))}catch(V){bi(e,t,{then:function(){},status:"rejected",reason:V},jt())}finally{Q.p=f,I.T=p}}function d2(){}function ku(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=r0(e).queue;n0(e,o,t,ee,a===null?d2:function(){return a0(e),a(l)})}function r0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function a0(e){var t=r0(e).next.queue;bi(e,t,{},jt())}function Iu(){return pt(zi)}function i0(){return Ke().memoizedState}function s0(){return Ke().memoizedState}function m2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=Kn(a);var l=$n(t,e,a);l!==null&&(Lt(l,t,a),mi(l,t,a)),t={cache:gu()},e.payload=t;return}t=t.return}}function p2(e,t,a){var l=jt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Fs(e)?o0(t,a):(a=su(e,t,a,l),a!==null&&(Lt(a,e,l),u0(a,t,l)))}function l0(e,t,a){var l=jt();bi(e,t,a,l)}function bi(e,t,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))o0(t,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var p=t.lastRenderedState,_=f(p,a);if(o.hasEagerState=!0,o.eagerState=_,Ct(_,p))return ws(e,t,o,0),ze===null&&As(),!1}catch{}finally{}if(a=su(e,t,o,l),a!==null)return Lt(a,e,l),u0(a,t,l),!0}return!1}function Gu(e,t,a,l){if(l={lane:2,revertLane:_c(),action:l,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(s(479))}else t=su(e,a,l,2),t!==null&&Lt(t,e,2)}function Fs(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function o0(e,t){Ea=Hs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function u0(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,yd(e,a)}}var Vs={readContext:pt,use:ks,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye},c0={readContext:pt,use:ks,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Ym,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,qs(4194308,4,$m.bind(null,t,e),a)},useLayoutEffect:function(e,t){return qs(4194308,4,e,t)},useInsertionEffect:function(e,t){qs(4,2,e,t)},useMemo:function(e,t){var a=St();t=t===void 0?null:t;var l=e();if(Lr){Pn(!0);try{e()}finally{Pn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=St();if(a!==void 0){var o=a(t);if(Lr){Pn(!0);try{a(t)}finally{Pn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=p2.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=Lu(e);var t=e.queue,a=l0.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Hu,useDeferredValue:function(e,t){var a=St();return zu(a,e,t)},useTransition:function(){var e=Lu(!1);return e=n0.bind(null,ge,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ge,o=St();if(Re){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),ze===null)throw Error(s(349));(Ae&124)!==0||Mm(l,t,a)}o.memoizedState=a;var f={value:a,getSnapshot:t};return o.queue=f,Ym(Bm.bind(null,l,f,e),[e]),l.flags|=2048,Ta(9,Gs(),Dm.bind(null,l,f,a,t),null),a},useId:function(){var e=St(),t=ze.identifierPrefix;if(Re){var a=On,l=wn;a=(l&~(1<<32-Rt(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=zs++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=u2++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Iu,useFormState:qm,useActionState:qm,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Gu.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Du,useCacheRefresh:function(){return St().memoizedState=m2.bind(null,ge)}},f0={readContext:pt,use:ks,useCallback:Wm,useContext:pt,useEffect:Xm,useImperativeHandle:Jm,useInsertionEffect:Qm,useLayoutEffect:Km,useMemo:e0,useReducer:Is,useRef:Zm,useState:function(){return Is(Nn)},useDebugValue:Hu,useDeferredValue:function(e,t){var a=Ke();return t0(a,Be.memoizedState,e,t)},useTransition:function(){var e=Is(Nn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:Nm,useId:i0,useHostTransitionStatus:Iu,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,t){var a=Ke();return Um(a,Be,e,t)},useMemoCache:Du,useCacheRefresh:s0},g2={readContext:pt,use:ks,useCallback:Wm,useContext:pt,useEffect:Xm,useImperativeHandle:Jm,useInsertionEffect:Qm,useLayoutEffect:Km,useMemo:e0,useReducer:ju,useRef:Zm,useState:function(){return ju(Nn)},useDebugValue:Hu,useDeferredValue:function(e,t){var a=Ke();return Be===null?zu(a,e,t):t0(a,Be.memoizedState,e,t)},useTransition:function(){var e=ju(Nn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:Nm,useId:i0,useHostTransitionStatus:Iu,useFormState:Pm,useActionState:Pm,useOptimistic:function(e,t){var a=Ke();return Be!==null?Um(a,Be,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Du,useCacheRefresh:s0},xa=null,Ei=0;function Ps(e){var t=Ei;return Ei+=1,xa===null&&(xa=[]),Sm(xa,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zs(e,t){throw t.$$typeof===T?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function h0(e){var t=e._init;return t(e._payload)}function d0(e){function t(N,C){if(e){var D=N.deletions;D===null?(N.deletions=[C],N.flags|=16):D.push(C)}}function a(N,C){if(!e)return null;for(;C!==null;)t(N,C),C=C.sibling;return null}function l(N){for(var C=new Map;N!==null;)N.key!==null?C.set(N.key,N):C.set(N.index,N),N=N.sibling;return C}function o(N,C){return N=An(N,C),N.index=0,N.sibling=null,N}function f(N,C,D){return N.index=D,e?(D=N.alternate,D!==null?(D=D.index,D<C?(N.flags|=67108866,C):D):(N.flags|=67108866,C)):(N.flags|=1048576,C)}function p(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function _(N,C,D,q){return C===null||C.tag!==6?(C=ou(D,N.mode,q),C.return=N,C):(C=o(C,D),C.return=N,C)}function w(N,C,D,q){var W=D.type;return W===M?G(N,C,D.props.children,q,D.key):C!==null&&(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===$&&h0(W)===C.type)?(C=o(C,D.props),Si(C,D),C.return=N,C):(C=Rs(D.type,D.key,D.props,null,N.mode,q),Si(C,D),C.return=N,C)}function B(N,C,D,q){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=uu(D,N.mode,q),C.return=N,C):(C=o(C,D.children||[]),C.return=N,C)}function G(N,C,D,q,W){return C===null||C.tag!==7?(C=Or(D,N.mode,q,W),C.return=N,C):(C=o(C,D),C.return=N,C)}function V(N,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ou(""+C,N.mode,D),C.return=N,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case A:return D=Rs(C.type,C.key,C.props,null,N.mode,D),Si(D,C),D.return=N,D;case j:return C=uu(C,N.mode,D),C.return=N,C;case $:var q=C._init;return C=q(C._payload),V(N,C,D)}if(ye(C)||ie(C))return C=Or(C,N.mode,D,null),C.return=N,C;if(typeof C.then=="function")return V(N,Ps(C),D);if(C.$$typeof===b)return V(N,Ds(N,C),D);Zs(N,C)}return null}function L(N,C,D,q){var W=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return W!==null?null:_(N,C,""+D,q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case A:return D.key===W?w(N,C,D,q):null;case j:return D.key===W?B(N,C,D,q):null;case $:return W=D._init,D=W(D._payload),L(N,C,D,q)}if(ye(D)||ie(D))return W!==null?null:G(N,C,D,q,null);if(typeof D.then=="function")return L(N,C,Ps(D),q);if(D.$$typeof===b)return L(N,C,Ds(N,D),q);Zs(N,D)}return null}function H(N,C,D,q,W){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return N=N.get(D)||null,_(C,N,""+q,W);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case A:return N=N.get(q.key===null?D:q.key)||null,w(C,N,q,W);case j:return N=N.get(q.key===null?D:q.key)||null,B(C,N,q,W);case $:var ve=q._init;return q=ve(q._payload),H(N,C,D,q,W)}if(ye(q)||ie(q))return N=N.get(D)||null,G(C,N,q,W,null);if(typeof q.then=="function")return H(N,C,D,Ps(q),W);if(q.$$typeof===b)return H(N,C,D,Ds(C,q),W);Zs(C,q)}return null}function fe(N,C,D,q){for(var W=null,ve=null,ae=C,ce=C=0,it=null;ae!==null&&ce<D.length;ce++){ae.index>ce?(it=ae,ae=null):it=ae.sibling;var Oe=L(N,ae,D[ce],q);if(Oe===null){ae===null&&(ae=it);break}e&&ae&&Oe.alternate===null&&t(N,ae),C=f(Oe,C,ce),ve===null?W=Oe:ve.sibling=Oe,ve=Oe,ae=it}if(ce===D.length)return a(N,ae),Re&&Cr(N,ce),W;if(ae===null){for(;ce<D.length;ce++)ae=V(N,D[ce],q),ae!==null&&(C=f(ae,C,ce),ve===null?W=ae:ve.sibling=ae,ve=ae);return Re&&Cr(N,ce),W}for(ae=l(ae);ce<D.length;ce++)it=H(ae,N,ce,D[ce],q),it!==null&&(e&&it.alternate!==null&&ae.delete(it.key===null?ce:it.key),C=f(it,C,ce),ve===null?W=it:ve.sibling=it,ve=it);return e&&ae.forEach(function(mr){return t(N,mr)}),Re&&Cr(N,ce),W}function oe(N,C,D,q){if(D==null)throw Error(s(151));for(var W=null,ve=null,ae=C,ce=C=0,it=null,Oe=D.next();ae!==null&&!Oe.done;ce++,Oe=D.next()){ae.index>ce?(it=ae,ae=null):it=ae.sibling;var mr=L(N,ae,Oe.value,q);if(mr===null){ae===null&&(ae=it);break}e&&ae&&mr.alternate===null&&t(N,ae),C=f(mr,C,ce),ve===null?W=mr:ve.sibling=mr,ve=mr,ae=it}if(Oe.done)return a(N,ae),Re&&Cr(N,ce),W;if(ae===null){for(;!Oe.done;ce++,Oe=D.next())Oe=V(N,Oe.value,q),Oe!==null&&(C=f(Oe,C,ce),ve===null?W=Oe:ve.sibling=Oe,ve=Oe);return Re&&Cr(N,ce),W}for(ae=l(ae);!Oe.done;ce++,Oe=D.next())Oe=H(ae,N,ce,Oe.value,q),Oe!==null&&(e&&Oe.alternate!==null&&ae.delete(Oe.key===null?ce:Oe.key),C=f(Oe,C,ce),ve===null?W=Oe:ve.sibling=Oe,ve=Oe);return e&&ae.forEach(function(yE){return t(N,yE)}),Re&&Cr(N,ce),W}function Le(N,C,D,q){if(typeof D=="object"&&D!==null&&D.type===M&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case A:e:{for(var W=D.key;C!==null;){if(C.key===W){if(W=D.type,W===M){if(C.tag===7){a(N,C.sibling),q=o(C,D.props.children),q.return=N,N=q;break e}}else if(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===$&&h0(W)===C.type){a(N,C.sibling),q=o(C,D.props),Si(q,D),q.return=N,N=q;break e}a(N,C);break}else t(N,C);C=C.sibling}D.type===M?(q=Or(D.props.children,N.mode,q,D.key),q.return=N,N=q):(q=Rs(D.type,D.key,D.props,null,N.mode,q),Si(q,D),q.return=N,N=q)}return p(N);case j:e:{for(W=D.key;C!==null;){if(C.key===W)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(N,C.sibling),q=o(C,D.children||[]),q.return=N,N=q;break e}else{a(N,C);break}else t(N,C);C=C.sibling}q=uu(D,N.mode,q),q.return=N,N=q}return p(N);case $:return W=D._init,D=W(D._payload),Le(N,C,D,q)}if(ye(D))return fe(N,C,D,q);if(ie(D)){if(W=ie(D),typeof W!="function")throw Error(s(150));return D=W.call(D),oe(N,C,D,q)}if(typeof D.then=="function")return Le(N,C,Ps(D),q);if(D.$$typeof===b)return Le(N,C,Ds(N,D),q);Zs(N,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(N,C.sibling),q=o(C,D),q.return=N,N=q):(a(N,C),q=ou(D,N.mode,q),q.return=N,N=q),p(N)):a(N,C)}return function(N,C,D,q){try{Ei=0;var W=Le(N,C,D,q);return xa=null,W}catch(ae){if(ae===hi||ae===js)throw ae;var ve=Nt(29,ae,null,N.mode);return ve.lanes=q,ve.return=N,ve}finally{}}}var Aa=d0(!0),m0=d0(!1),Xt=P(null),hn=null;function Wn(e){var t=e.alternate;Y(et,et.current&1),Y(Xt,e),hn===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(hn=e)}function p0(e){if(e.tag===22){if(Y(et,et.current),Y(Xt,e),hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(hn=e)}}else er()}function er(){Y(et,et.current),Y(Xt,Xt.current)}function Mn(e){K(Xt),hn===e&&(hn=null),K(et)}var et=P(0);function Ys(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Mc(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Fu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=jt(),o=Kn(l);o.payload=t,a!=null&&(o.callback=a),t=$n(e,o,l),t!==null&&(Lt(t,e,l),mi(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=jt(),o=Kn(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=$n(e,o,l),t!==null&&(Lt(t,e,l),mi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),l=Kn(a);l.tag=2,t!=null&&(l.callback=t),t=$n(e,l,a),t!==null&&(Lt(t,e,a),mi(t,e,a))}};function g0(e,t,a,l,o,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,p):t.prototype&&t.prototype.isPureReactComponent?!ai(a,l)||!ai(o,f):!0}function y0(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Fu.enqueueReplaceState(t,t.state,null)}function Ur(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Xs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function v0(e){Xs(e)}function _0(e){console.error(e)}function b0(e){Xs(e)}function Qs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function E0(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Vu(e,t,a){return a=Kn(a),a.tag=3,a.payload={element:null},a.callback=function(){Qs(e,t)},a}function S0(e){return e=Kn(e),e.tag=3,e}function T0(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){E0(t,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){E0(t,a,l),typeof o!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var _=l.stack;this.componentDidCatch(l.value,{componentStack:_!==null?_:""})})}function y2(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&ui(t,a,o,!0),a=Xt.current,a!==null){switch(a.tag){case 13:return hn===null?mc():a.alternate===null&&Ve===0&&(Ve=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===_u?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),gc(e,l,o)),!1;case 22:return a.flags|=65536,l===_u?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),gc(e,l,o)),!1}throw Error(s(435,a.tag))}return gc(e,l,o),mc(),!1}if(Re)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==hu&&(e=Error(s(422),{cause:l}),oi(Vt(e,a)))):(l!==hu&&(t=Error(s(423),{cause:l}),oi(Vt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Vt(l,a),o=Vu(e.stateNode,l,o),Su(e,o),Ve!==4&&(Ve=2)),!1;var f=Error(s(520),{cause:l});if(f=Vt(f,a),Ci===null?Ci=[f]:Ci.push(f),Ve!==4&&(Ve=2),t===null)return!0;l=Vt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Vu(a.stateNode,l,e),Su(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(sr===null||!sr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=S0(o),T0(o,e,a,l),Su(a,o),!1}a=a.return}while(a!==null);return!1}var x0=Error(s(461)),rt=!1;function lt(e,t,a,l){t.child=e===null?m0(t,null,a,l):Aa(t,e.child,a,l)}function A0(e,t,a,l,o){a=a.render;var f=t.ref;if("ref"in l){var p={};for(var _ in l)_!=="ref"&&(p[_]=l[_])}else p=l;return Br(t),l=Ou(e,t,a,p,f,o),_=Ru(),e!==null&&!rt?(Cu(e,t,o),Dn(e,t,o)):(Re&&_&&cu(t),t.flags|=1,lt(e,t,l,o),t.child)}function w0(e,t,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!lu(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,O0(e,t,f,l,o)):(e=Rs(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ju(e,o)){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:ai,a(p,l)&&e.ref===t.ref)return Dn(e,t,o)}return t.flags|=1,e=An(f,l),e.ref=t.ref,e.return=t,t.child=e}function O0(e,t,a,l,o){if(e!==null){var f=e.memoizedProps;if(ai(f,l)&&e.ref===t.ref)if(rt=!1,t.pendingProps=l=f,Ju(e,o))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Dn(e,t,o)}return Pu(e,t,a,l,o)}function R0(e,t,a){var l=t.pendingProps,o=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(o=t.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return C0(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bs(t,f!==null?f.cachePool:null),f!==null?Om(t,f):xu(),p0(t);else return t.lanes=t.childLanes=536870912,C0(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(Bs(t,f.cachePool),Om(t,f),er(),t.memoizedState=null):(e!==null&&Bs(t,null),xu(),er());return lt(e,t,o,a),t.child}function C0(e,t,a,l){var o=vu();return o=o===null?null:{parent:We._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Bs(t,null),xu(),p0(t),e!==null&&ui(e,t,l,!0),null}function Ks(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Pu(e,t,a,l,o){return Br(t),a=Ou(e,t,a,l,void 0,o),l=Ru(),e!==null&&!rt?(Cu(e,t,o),Dn(e,t,o)):(Re&&l&&cu(t),t.flags|=1,lt(e,t,a,o),t.child)}function N0(e,t,a,l,o,f){return Br(t),t.updateQueue=null,a=Cm(t,l,a,o),Rm(e),l=Ru(),e!==null&&!rt?(Cu(e,t,f),Dn(e,t,f)):(Re&&l&&cu(t),t.flags|=1,lt(e,t,a,f),t.child)}function M0(e,t,a,l,o){if(Br(t),t.stateNode===null){var f=pa,p=a.contextType;typeof p=="object"&&p!==null&&(f=pt(p)),f=new a(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Fu,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},bu(t),p=a.contextType,f.context=typeof p=="object"&&p!==null?pt(p):pa,f.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(qu(t,a,p,l),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(p=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),p!==f.state&&Fu.enqueueReplaceState(f,f.state,null),gi(t,l,f,o),pi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var _=t.memoizedProps,w=Ur(a,_);f.props=w;var B=f.context,G=a.contextType;p=pa,typeof G=="object"&&G!==null&&(p=pt(G));var V=a.getDerivedStateFromProps;G=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,G||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(_||B!==p)&&y0(t,f,l,p),Qn=!1;var L=t.memoizedState;f.state=L,gi(t,l,f,o),pi(),B=t.memoizedState,_||L!==B||Qn?(typeof V=="function"&&(qu(t,a,V,l),B=t.memoizedState),(w=Qn||g0(t,a,w,l,L,B,p))?(G||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),f.props=l,f.state=B,f.context=p,l=w):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,Eu(e,t),p=t.memoizedProps,G=Ur(a,p),f.props=G,V=t.pendingProps,L=f.context,B=a.contextType,w=pa,typeof B=="object"&&B!==null&&(w=pt(B)),_=a.getDerivedStateFromProps,(B=typeof _=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==V||L!==w)&&y0(t,f,l,w),Qn=!1,L=t.memoizedState,f.state=L,gi(t,l,f,o),pi();var H=t.memoizedState;p!==V||L!==H||Qn||e!==null&&e.dependencies!==null&&Ms(e.dependencies)?(typeof _=="function"&&(qu(t,a,_,l),H=t.memoizedState),(G=Qn||g0(t,a,G,l,L,H,w)||e!==null&&e.dependencies!==null&&Ms(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,H,w),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,H,w)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=H),f.props=l,f.state=H,f.context=w,l=G):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,Ks(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=Aa(t,e.child,null,o),t.child=Aa(t,null,a,o)):lt(e,t,a,o),t.memoizedState=f.state,e=t.child):e=Dn(e,t,o),e}function D0(e,t,a,l){return li(),t.flags|=256,lt(e,t,a,l),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yu(e){return{baseLanes:e,cachePool:_m()}}function Xu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Qt),e}function B0(e,t,a){var l=t.pendingProps,o=!1,f=(t.flags&128)!==0,p;if((p=f)||(p=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(o?Wn(t):er(),Re){var _=Fe,w;if(w=_){e:{for(w=_,_=fn;w.nodeType!==8;){if(!_){_=null;break e}if(w=nn(w.nextSibling),w===null){_=null;break e}}_=w}_!==null?(t.memoizedState={dehydrated:_,treeContext:Rr!==null?{id:wn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},w=Nt(18,null,null,0),w.stateNode=_,w.return=t,t.child=w,yt=t,Fe=null,w=!0):w=!1}w||Mr(t)}if(_=t.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return Mc(_)?t.lanes=32:t.lanes=536870912,null;Mn(t)}return _=l.children,l=l.fallback,o?(er(),o=t.mode,_=$s({mode:"hidden",children:_},o),l=Or(l,o,a,null),_.return=t,l.return=t,_.sibling=l,t.child=_,o=t.child,o.memoizedState=Yu(a),o.childLanes=Xu(e,p,a),t.memoizedState=Zu,l):(Wn(t),Qu(t,_))}if(w=e.memoizedState,w!==null&&(_=w.dehydrated,_!==null)){if(f)t.flags&256?(Wn(t),t.flags&=-257,t=Ku(e,t,a)):t.memoizedState!==null?(er(),t.child=e.child,t.flags|=128,t=null):(er(),o=l.fallback,_=t.mode,l=$s({mode:"visible",children:l.children},_),o=Or(o,_,a,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,Aa(t,e.child,null,a),l=t.child,l.memoizedState=Yu(a),l.childLanes=Xu(e,p,a),t.memoizedState=Zu,t=o);else if(Wn(t),Mc(_)){if(p=_.nextSibling&&_.nextSibling.dataset,p)var B=p.dgst;p=B,l=Error(s(419)),l.stack="",l.digest=p,oi({value:l,source:null,stack:null}),t=Ku(e,t,a)}else if(rt||ui(e,t,a,!1),p=(a&e.childLanes)!==0,rt||p){if(p=ze,p!==null&&(l=a&-a,l=(l&42)!==0?1:Do(l),l=(l&(p.suspendedLanes|a))!==0?0:l,l!==0&&l!==w.retryLane))throw w.retryLane=l,ma(e,l),Lt(p,e,l),x0;_.data==="$?"||mc(),t=Ku(e,t,a)}else _.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Fe=nn(_.nextSibling),yt=t,Re=!0,Nr=null,fn=!1,e!==null&&(Zt[Yt++]=wn,Zt[Yt++]=On,Zt[Yt++]=Rr,wn=e.id,On=e.overflow,Rr=t),t=Qu(t,l.children),t.flags|=4096);return t}return o?(er(),o=l.fallback,_=t.mode,w=e.child,B=w.sibling,l=An(w,{mode:"hidden",children:l.children}),l.subtreeFlags=w.subtreeFlags&65011712,B!==null?o=An(B,o):(o=Or(o,_,a,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,l=o,o=t.child,_=e.child.memoizedState,_===null?_=Yu(a):(w=_.cachePool,w!==null?(B=We._currentValue,w=w.parent!==B?{parent:B,pool:B}:w):w=_m(),_={baseLanes:_.baseLanes|a,cachePool:w}),o.memoizedState=_,o.childLanes=Xu(e,p,a),t.memoizedState=Zu,l):(Wn(t),a=e.child,e=a.sibling,a=An(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Qu(e,t){return t=$s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $s(e,t){return e=Nt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ku(e,t,a){return Aa(t,e.child,null,a),e=Qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function j0(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),mu(e.return,t,a)}function $u(e,t,a,l,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=o)}function L0(e,t,a){var l=t.pendingProps,o=l.revealOrder,f=l.tail;if(lt(e,t,l.children,a),l=et.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&j0(e,a,t);else if(e.tag===19)j0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Y(et,l),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ys(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),$u(t,!1,o,a,f);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ys(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}$u(t,!0,a,null,f);break;case"together":$u(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Dn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ir|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ui(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=An(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=An(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ju(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ms(e)))}function v2(e,t,a){switch(t.tag){case 3:He(t,t.stateNode.containerInfo),Xn(t,We,e.memoizedState.cache),li();break;case 27:case 5:Er(t);break;case 4:He(t,t.stateNode.containerInfo);break;case 10:Xn(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Wn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?B0(e,t,a):(Wn(t),e=Dn(e,t,a),e!==null?e.sibling:null);Wn(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(ui(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return L0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(et,et.current),l)break;return null;case 22:case 23:return t.lanes=0,R0(e,t,a);case 24:Xn(t,We,e.memoizedState.cache)}return Dn(e,t,a)}function U0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Ju(e,a)&&(t.flags&128)===0)return rt=!1,v2(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Re&&(t.flags&1048576)!==0&&hm(t,Ns,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,o=l._init;if(l=o(l._payload),t.type=l,typeof l=="function")lu(l)?(e=Ur(l,e),t.tag=1,t=M0(null,t,l,e,a)):(t.tag=0,t=Pu(null,t,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===O){t.tag=11,t=A0(null,t,l,e,a);break e}else if(o===Z){t.tag=14,t=w0(null,t,l,e,a);break e}}throw t=Ze(l)||l,Error(s(306,t,""))}}return t;case 0:return Pu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=Ur(l,t.pendingProps),M0(e,t,l,o,a);case 3:e:{if(He(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var f=t.memoizedState;o=f.element,Eu(e,t),gi(t,l,null,a);var p=t.memoizedState;if(l=p.cache,Xn(t,We,l),l!==f.cache&&pu(t,[We],a,!0),pi(),l=p.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=D0(e,t,l,a);break e}else if(l!==o){o=Vt(Error(s(424)),t),oi(o),t=D0(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=nn(e.firstChild),yt=t,Re=!0,Nr=null,fn=!0,a=m0(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(li(),l===o){t=Dn(e,t,a);break e}lt(e,t,l,a)}t=t.child}return t;case 26:return Ks(e,t),e===null?(a=Ip(t.type,null,t.pendingProps,null))?t.memoizedState=a:Re||(a=t.type,e=t.pendingProps,l=fl(ue.current).createElement(a),l[mt]=t,l[bt]=e,ut(l,a,e),nt(l),t.stateNode=l):t.memoizedState=Ip(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Er(t),e===null&&Re&&(l=t.stateNode=Hp(t.type,t.pendingProps,ue.current),yt=t,fn=!0,o=Fe,ur(t.type)?(Dc=o,Fe=nn(l.firstChild)):Fe=o),lt(e,t,t.pendingProps.children,a),Ks(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((o=l=Fe)&&(l=Z2(l,t.type,t.pendingProps,fn),l!==null?(t.stateNode=l,yt=t,Fe=nn(l.firstChild),fn=!1,o=!0):o=!1),o||Mr(t)),Er(t),o=t.type,f=t.pendingProps,p=e!==null?e.memoizedProps:null,l=f.children,Rc(o,f)?l=null:p!==null&&Rc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Ou(e,t,c2,null,null,a),zi._currentValue=o),Ks(e,t),lt(e,t,l,a),t.child;case 6:return e===null&&Re&&((e=a=Fe)&&(a=Y2(a,t.pendingProps,fn),a!==null?(t.stateNode=a,yt=t,Fe=null,e=!0):e=!1),e||Mr(t)),null;case 13:return B0(e,t,a);case 4:return He(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Aa(t,null,l,a):lt(e,t,l,a),t.child;case 11:return A0(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Xn(t,t.type,l.value),lt(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Br(t),o=pt(o),l=l(o),t.flags|=1,lt(e,t,l,a),t.child;case 14:return w0(e,t,t.type,t.pendingProps,a);case 15:return O0(e,t,t.type,t.pendingProps,a);case 19:return L0(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=$s(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=An(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return R0(e,t,a);case 24:return Br(t),l=pt(We),e===null?(o=vu(),o===null&&(o=ze,f=gu(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),t.memoizedState={parent:l,cache:o},bu(t),Xn(t,We,o)):((e.lanes&a)!==0&&(Eu(e,t),gi(t,null,null,a),pi()),o=e.memoizedState,f=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Xn(t,We,l)):(l=f.cache,Xn(t,We,l),l!==o.cache&&pu(t,[We],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Bn(e){e.flags|=4}function H0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pp(t)){if(t=Xt.current,t!==null&&((Ae&4194048)===Ae?hn!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==hn))throw di=_u,bm;e.flags|=8192}}function Js(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?pd():536870912,e.lanes|=t,Ca|=t)}function Ti(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function _2(e,t,a){var l=t.pendingProps;switch(fu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Cn(We),wt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(si(t)?Bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pm())),Ge(t),null;case 26:return a=t.memoizedState,e===null?(Bn(t),a!==null?(Ge(t),H0(t,a)):(Ge(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Bn(t),Ge(t),H0(t,a)):(Ge(t),t.flags&=-16777217):(e.memoizedProps!==l&&Bn(t),Ge(t),t.flags&=-16777217),null;case 27:Pa(t),a=ue.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ge(t),null}e=te.current,si(t)?dm(t):(e=Hp(o,l,a),t.stateNode=e,Bn(t))}return Ge(t),null;case 5:if(Pa(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ge(t),null}if(e=te.current,si(t))dm(t);else{switch(o=fl(ue.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[mt]=t,e[bt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(ut(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Bn(t)}}return Ge(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,si(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=yt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Np(e.nodeValue,a)),e||Mr(t)}else e=fl(e).createTextNode(l),e[mt]=t,t.stateNode=e}return Ge(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=si(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[mt]=t}else li(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),o=!1}else o=pm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Mn(t),t):(Mn(t),null)}if(Mn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Js(t,t.updateQueue),Ge(t),null;case 4:return wt(),e===null&&Tc(t.stateNode.containerInfo),Ge(t),null;case 10:return Cn(t.type),Ge(t),null;case 19:if(K(et),o=t.memoizedState,o===null)return Ge(t),null;if(l=(t.flags&128)!==0,f=o.rendering,f===null)if(l)Ti(o,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ys(e),f!==null){for(t.flags|=128,Ti(o,!1),e=f.updateQueue,t.updateQueue=e,Js(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)fm(a,e),a=a.sibling;return Y(et,et.current&1|2),t.child}e=e.sibling}o.tail!==null&&cn()>tl&&(t.flags|=128,l=!0,Ti(o,!1),t.lanes=4194304)}else{if(!l)if(e=Ys(f),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Js(t,e),Ti(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Re)return Ge(t),null}else 2*cn()-o.renderingStartTime>tl&&a!==536870912&&(t.flags|=128,l=!0,Ti(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=cn(),t.sibling=null,e=et.current,Y(et,l?e&1|2:e&1),t):(Ge(t),null);case 22:case 23:return Mn(t),Au(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&Js(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&K(jr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Cn(We),Ge(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function b2(e,t){switch(fu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(We),wt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pa(t),null;case 13:if(Mn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(et),null;case 4:return wt(),null;case 10:return Cn(t.type),null;case 22:case 23:return Mn(t),Au(),e!==null&&K(jr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cn(We),null;case 25:return null;default:return null}}function z0(e,t){switch(fu(t),t.tag){case 3:Cn(We),wt();break;case 26:case 27:case 5:Pa(t);break;case 4:wt();break;case 13:Mn(t);break;case 19:K(et);break;case 10:Cn(t.type);break;case 22:case 23:Mn(t),Au(),e!==null&&K(jr);break;case 24:Cn(We)}}function xi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var f=a.create,p=a.inst;l=f(),p.destroy=l}a=a.next}while(a!==o)}}catch(_){Ue(t,t.return,_)}}function tr(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var p=l.inst,_=p.destroy;if(_!==void 0){p.destroy=void 0,o=t;var w=a,B=_;try{B()}catch(G){Ue(o,w,G)}}}l=l.next}while(l!==f)}}catch(G){Ue(t,t.return,G)}}function k0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{wm(t,a)}catch(l){Ue(e,e.return,l)}}}function I0(e,t,a){a.props=Ur(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ue(e,t,l)}}function Ai(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){Ue(e,t,o)}}function dn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Ue(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ue(e,t,o)}else a.current=null}function G0(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Ue(e,e.return,o)}}function Wu(e,t,a){try{var l=e.stateNode;G2(l,e.type,a,t),l[bt]=t}catch(o){Ue(e,e.return,o)}}function q0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ur(e.type)||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||q0(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&&ur(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 tc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=cl));else if(l!==4&&(l===27&&ur(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(tc(e,t,a),e=e.sibling;e!==null;)tc(e,t,a),e=e.sibling}function Ws(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&ur(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ws(e,t,a),e=e.sibling;e!==null;)Ws(e,t,a),e=e.sibling}function F0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ut(t,l,a),t[mt]=e,t[bt]=a}catch(f){Ue(e,e.return,f)}}var jn=!1,Xe=!1,nc=!1,V0=typeof WeakSet=="function"?WeakSet:Set,at=null;function E2(e,t){if(e=e.containerInfo,wc=yl,e=tm(e),eu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var p=0,_=-1,w=-1,B=0,G=0,V=e,L=null;t:for(;;){for(var H;V!==a||o!==0&&V.nodeType!==3||(_=p+o),V!==f||l!==0&&V.nodeType!==3||(w=p+l),V.nodeType===3&&(p+=V.nodeValue.length),(H=V.firstChild)!==null;)L=V,V=H;for(;;){if(V===e)break t;if(L===a&&++B===o&&(_=p),L===f&&++G===l&&(w=p),(H=V.nextSibling)!==null)break;V=L,L=V.parentNode}V=H}a=_===-1||w===-1?null:{start:_,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Oc={focusedElem:e,selectionRange:a},yl=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var fe=Ur(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(fe,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(oe){Ue(a,a.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Nc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function P0(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:nr(e,a),l&4&&xi(5,a);break;case 1:if(nr(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Ue(a,a.return,p)}else{var o=Ur(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Ue(a,a.return,p)}}l&64&&k0(a),l&512&&Ai(a,a.return);break;case 3:if(nr(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{wm(e,t)}catch(p){Ue(a,a.return,p)}}break;case 27:t===null&&l&4&&F0(a);case 26:case 5:nr(e,a),t===null&&l&4&&G0(a),l&512&&Ai(a,a.return);break;case 12:nr(e,a);break;case 13:nr(e,a),l&4&&X0(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=N2.bind(null,a),X2(e,a))));break;case 22:if(l=a.memoizedState!==null||jn,!l){t=t!==null&&t.memoizedState!==null||Xe,o=jn;var f=Xe;jn=l,(Xe=t)&&!f?rr(e,a,(a.subtreeFlags&8772)!==0):nr(e,a),jn=o,Xe=f}break;case 30:break;default:nr(e,a)}}function Z0(e){var t=e.alternate;t!==null&&(e.alternate=null,Z0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Lo(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 Ie=null,Tt=!1;function Ln(e,t,a){for(a=a.child;a!==null;)Y0(e,t,a),a=a.sibling}function Y0(e,t,a){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Za,a)}catch{}switch(a.tag){case 26:Xe||dn(a,t),Ln(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||dn(a,t);var l=Ie,o=Tt;ur(a.type)&&(Ie=a.stateNode,Tt=!1),Ln(e,t,a),ji(a.stateNode),Ie=l,Tt=o;break;case 5:Xe||dn(a,t);case 6:if(l=Ie,o=Tt,Ie=null,Ln(e,t,a),Ie=l,Tt=o,Ie!==null)if(Tt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(a.stateNode)}catch(f){Ue(a,t,f)}else try{Ie.removeChild(a.stateNode)}catch(f){Ue(a,t,f)}break;case 18:Ie!==null&&(Tt?(e=Ie,Lp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),qi(e)):Lp(Ie,a.stateNode));break;case 4:l=Ie,o=Tt,Ie=a.stateNode.containerInfo,Tt=!0,Ln(e,t,a),Ie=l,Tt=o;break;case 0:case 11:case 14:case 15:Xe||tr(2,a,t),Xe||tr(4,a,t),Ln(e,t,a);break;case 1:Xe||(dn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&I0(a,t,l)),Ln(e,t,a);break;case 21:Ln(e,t,a);break;case 22:Xe=(l=Xe)||a.memoizedState!==null,Ln(e,t,a),Xe=l;break;default:Ln(e,t,a)}}function X0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qi(e)}catch(a){Ue(t,t.return,a)}}function S2(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new V0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new V0),t;default:throw Error(s(435,e.tag))}}function rc(e,t){var a=S2(e);t.forEach(function(l){var o=M2.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function Mt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=e,p=t,_=p;e:for(;_!==null;){switch(_.tag){case 27:if(ur(_.type)){Ie=_.stateNode,Tt=!1;break e}break;case 5:Ie=_.stateNode,Tt=!1;break e;case 3:case 4:Ie=_.stateNode.containerInfo,Tt=!0;break e}_=_.return}if(Ie===null)throw Error(s(160));Y0(f,p,o),Ie=null,Tt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Q0(t,e),t=t.sibling}var tn=null;function Q0(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),Dt(e),l&4&&(tr(3,e,e.return),xi(3,e),tr(5,e,e.return));break;case 1:Mt(t,e),Dt(e),l&512&&(Xe||a===null||dn(a,a.return)),l&64&&jn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=tn;if(Mt(t,e),Dt(e),l&512&&(Xe||a===null||dn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Qa]||f[mt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),ut(f,l,a),f[mt]=e,nt(f),l=f;break e;case"link":var p=Fp("link","href",o).get(l+(a.href||""));if(p){for(var _=0;_<p.length;_++)if(f=p[_],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(_,1);break t}}f=o.createElement(l),ut(f,l,a),o.head.appendChild(f);break;case"meta":if(p=Fp("meta","content",o).get(l+(a.content||""))){for(_=0;_<p.length;_++)if(f=p[_],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(_,1);break t}}f=o.createElement(l),ut(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[mt]=e,nt(f),l=f}e.stateNode=l}else Vp(o,e.type,e.stateNode);else e.stateNode=qp(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Vp(o,e.type,e.stateNode):qp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Wu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Mt(t,e),Dt(e),l&512&&(Xe||a===null||dn(a,a.return)),a!==null&&l&4&&Wu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Mt(t,e),Dt(e),l&512&&(Xe||a===null||dn(a,a.return)),e.flags&32){o=e.stateNode;try{la(o,"")}catch(H){Ue(e,e.return,H)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Wu(e,o,a!==null?a.memoizedProps:o)),l&1024&&(nc=!0);break;case 6:if(Mt(t,e),Dt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(H){Ue(e,e.return,H)}}break;case 3:if(ml=null,o=tn,tn=hl(t.containerInfo),Mt(t,e),tn=o,Dt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(H){Ue(e,e.return,H)}nc&&(nc=!1,K0(e));break;case 4:l=tn,tn=hl(e.stateNode.containerInfo),Mt(t,e),Dt(e),tn=l;break;case 12:Mt(t,e),Dt(e);break;case 13:Mt(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(uc=cn()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rc(e,l)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,B=jn,G=Xe;if(jn=B||o,Xe=G||w,Mt(t,e),Xe=G,jn=B,Dt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||jn||Xe||Hr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(f=w.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{_=w.stateNode;var V=w.memoizedProps.style,L=V!=null&&V.hasOwnProperty("display")?V.display:null;_.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(H){Ue(w,w.return,H)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(H){Ue(w,w.return,H)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,rc(e,a))));break;case 19:Mt(t,e),Dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rc(e,l)));break;case 30:break;case 21:break;default:Mt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(q0(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=ec(e);Ws(e,f,o);break;case 5:var p=a.stateNode;a.flags&32&&(la(p,""),a.flags&=-33);var _=ec(e);Ws(e,_,p);break;case 3:case 4:var w=a.stateNode.containerInfo,B=ec(e);tc(e,B,w);break;default:throw Error(s(161))}}catch(G){Ue(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function K0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;K0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function nr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)P0(e,t.alternate,t),t=t.sibling}function Hr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:tr(4,t,t.return),Hr(t);break;case 1:dn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&I0(t,t.return,a),Hr(t);break;case 27:ji(t.stateNode);case 26:case 5:dn(t,t.return),Hr(t);break;case 22:t.memoizedState===null&&Hr(t);break;case 30:Hr(t);break;default:Hr(t)}e=e.sibling}}function rr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,f=t,p=f.flags;switch(f.tag){case 0:case 11:case 15:rr(o,f,a),xi(4,f);break;case 1:if(rr(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){Ue(l,l.return,B)}if(l=f,o=l.updateQueue,o!==null){var _=l.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Am(w[o],_)}catch(B){Ue(l,l.return,B)}}a&&p&64&&k0(f),Ai(f,f.return);break;case 27:F0(f);case 26:case 5:rr(o,f,a),a&&l===null&&p&4&&G0(f),Ai(f,f.return);break;case 12:rr(o,f,a);break;case 13:rr(o,f,a),a&&p&4&&X0(o,f);break;case 22:f.memoizedState===null&&rr(o,f,a),Ai(f,f.return);break;case 30:break;default:rr(o,f,a)}t=t.sibling}}function ac(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ci(a))}function ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function mn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$0(e,t,a,l),t=t.sibling}function $0(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,a,l),o&2048&&xi(9,t);break;case 1:mn(e,t,a,l);break;case 3:mn(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(o&2048){mn(e,t,a,l),e=t.stateNode;try{var f=t.memoizedProps,p=f.id,_=f.onPostCommit;typeof _=="function"&&_(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Ue(t,t.return,w)}}else mn(e,t,a,l);break;case 13:mn(e,t,a,l);break;case 23:break;case 22:f=t.stateNode,p=t.alternate,t.memoizedState!==null?f._visibility&2?mn(e,t,a,l):wi(e,t):f._visibility&2?mn(e,t,a,l):(f._visibility|=2,wa(e,t,a,l,(t.subtreeFlags&10256)!==0)),o&2048&&ac(p,t);break;case 24:mn(e,t,a,l),o&2048&&ic(t.alternate,t);break;default:mn(e,t,a,l)}}function wa(e,t,a,l,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,p=t,_=a,w=l,B=p.flags;switch(p.tag){case 0:case 11:case 15:wa(f,p,_,w,o),xi(8,p);break;case 23:break;case 22:var G=p.stateNode;p.memoizedState!==null?G._visibility&2?wa(f,p,_,w,o):wi(f,p):(G._visibility|=2,wa(f,p,_,w,o)),o&&B&2048&&ac(p.alternate,p);break;case 24:wa(f,p,_,w,o),o&&B&2048&&ic(p.alternate,p);break;default:wa(f,p,_,w,o)}t=t.sibling}}function wi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:wi(a,l),o&2048&&ac(l.alternate,l);break;case 24:wi(a,l),o&2048&&ic(l.alternate,l);break;default:wi(a,l)}t=t.sibling}}var Oi=8192;function Oa(e){if(e.subtreeFlags&Oi)for(e=e.child;e!==null;)J0(e),e=e.sibling}function J0(e){switch(e.tag){case 26:Oa(e),e.flags&Oi&&e.memoizedState!==null&&lE(tn,e.memoizedState,e.memoizedProps);break;case 5:Oa(e);break;case 3:case 4:var t=tn;tn=hl(e.stateNode.containerInfo),Oa(e),tn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Oi,Oi=16777216,Oa(e),Oi=t):Oa(e));break;default:Oa(e)}}function W0(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 Ri(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];at=l,tp(l,e)}W0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ep(e),e=e.sibling}function ep(e){switch(e.tag){case 0:case 11:case 15:Ri(e),e.flags&2048&&tr(9,e,e.return);break;case 3:Ri(e);break;case 12:Ri(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,el(e)):Ri(e);break;default:Ri(e)}}function el(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];at=l,tp(l,e)}W0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:tr(8,t,t.return),el(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,el(t));break;default:el(t)}e=e.sibling}}function tp(e,t){for(;at!==null;){var a=at;switch(a.tag){case 0:case 11:case 15:tr(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ci(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,at=l;else e:for(a=e;at!==null;){l=at;var o=l.sibling,f=l.return;if(Z0(l),l===a){at=null;break e}if(o!==null){o.return=f,at=o;break e}at=f}}}var T2={getCacheForType:function(e){var t=pt(We),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},x2=typeof WeakMap=="function"?WeakMap:Map,Ne=0,ze=null,_e=null,Ae=0,Me=0,Bt=null,ar=!1,Ra=!1,sc=!1,Un=0,Ve=0,ir=0,zr=0,lc=0,Qt=0,Ca=0,Ci=null,xt=null,oc=!1,uc=0,tl=1/0,nl=null,sr=null,ot=0,lr=null,Na=null,Ma=0,cc=0,fc=null,np=null,Ni=0,hc=null;function jt(){if((Ne&2)!==0&&Ae!==0)return Ae&-Ae;if(I.T!==null){var e=va;return e!==0?e:_c()}return vd()}function rp(){Qt===0&&(Qt=(Ae&536870912)===0||Re?md():536870912);var e=Xt.current;return e!==null&&(e.flags|=32),Qt}function Lt(e,t,a){(e===ze&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Da(e,0),or(e,Ae,Qt,!1)),Xa(e,a),((Ne&2)===0||e!==ze)&&(e===ze&&((Ne&2)===0&&(zr|=a),Ve===4&&or(e,Ae,Qt,!1)),pn(e))}function ap(e,t,a){if((Ne&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Ya(e,t),o=l?O2(e,t):pc(e,t,!0),f=l;do{if(o===0){Ra&&!l&&or(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!A2(a)){o=pc(e,t,!1),f=!1;continue}if(o===2){if(f=t,e.errorRecoveryDisabledLanes&f)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var _=e;o=Ci;var w=_.current.memoizedState.isDehydrated;if(w&&(Da(_,p).flags|=256),p=pc(_,p,!1),p!==2){if(sc&&!w){_.errorRecoveryDisabledLanes|=f,zr|=f,o=4;break e}f=xt,xt=o,f!==null&&(xt===null?xt=f:xt.push.apply(xt,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){Da(e,0),or(e,t,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:or(l,t,Qt,!ar);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=uc+300-cn(),10<o)){if(or(l,t,Qt,!ar),ds(l,0,!0)!==0)break e;l.timeoutHandle=Bp(ip.bind(null,l,a,xt,nl,oc,t,Qt,zr,Ca,ar,f,2,-0,0),o);break e}ip(l,a,xt,nl,oc,t,Qt,zr,Ca,ar,f,0,-0,0)}}break}while(!0);pn(e)}function ip(e,t,a,l,o,f,p,_,w,B,G,V,L,H){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(Hi={stylesheets:null,count:0,unsuspend:sE},J0(t),V=oE(),V!==null)){e.cancelPendingCommit=V(hp.bind(null,e,t,f,a,l,o,p,_,w,G,1,L,H)),or(e,f,p,!B);return}hp(e,t,f,a,l,o,p,_,w)}function A2(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Ct(f(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function or(e,t,a,l){t&=~lc,t&=~zr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var f=31-Rt(o),p=1<<f;l[f]=-1,o&=~p}a!==0&&gd(e,a,t)}function rl(){return(Ne&6)===0?(Mi(0),!1):!0}function dc(){if(_e!==null){if(Me===0)var e=_e.return;else e=_e,Rn=Dr=null,Nu(e),xa=null,Ei=0,e=_e;for(;e!==null;)z0(e.alternate,e),e=e.return;_e=null}}function Da(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,F2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dc(),ze=e,_e=a=An(e.current,null),Ae=t,Me=0,Bt=null,ar=!1,Ra=Ya(e,t),sc=!1,Ca=Qt=lc=zr=ir=Ve=0,xt=Ci=null,oc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Rt(l),f=1<<o;t|=e[o],l&=~f}return Un=t,As(),a}function sp(e,t){ge=null,I.H=Vs,t===hi||t===js?(t=Tm(),Me=3):t===bm?(t=Tm(),Me=4):Me=t===x0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,_e===null&&(Ve=1,Qs(e,Vt(t,e.current)))}function lp(){var e=I.H;return I.H=Vs,e===null?Vs:e}function op(){var e=I.A;return I.A=T2,e}function mc(){Ve=4,ar||(Ae&4194048)!==Ae&&Xt.current!==null||(Ra=!0),(ir&134217727)===0&&(zr&134217727)===0||ze===null||or(ze,Ae,Qt,!1)}function pc(e,t,a){var l=Ne;Ne|=2;var o=lp(),f=op();(ze!==e||Ae!==t)&&(nl=null,Da(e,t)),t=!1;var p=Ve;e:do try{if(Me!==0&&_e!==null){var _=_e,w=Bt;switch(Me){case 8:dc(),p=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var B=Me;if(Me=0,Bt=null,Ba(e,_,w,B),a&&Ra){p=0;break e}break;default:B=Me,Me=0,Bt=null,Ba(e,_,w,B)}}w2(),p=Ve;break}catch(G){sp(e,G)}while(!0);return t&&e.shellSuspendCounter++,Rn=Dr=null,Ne=l,I.H=o,I.A=f,_e===null&&(ze=null,Ae=0,As()),p}function w2(){for(;_e!==null;)up(_e)}function O2(e,t){var a=Ne;Ne|=2;var l=lp(),o=op();ze!==e||Ae!==t?(nl=null,tl=cn()+500,Da(e,t)):Ra=Ya(e,t);e:do try{if(Me!==0&&_e!==null){t=_e;var f=Bt;t:switch(Me){case 1:Me=0,Bt=null,Ba(e,t,f,1);break;case 2:case 9:if(Em(f)){Me=0,Bt=null,cp(t);break}t=function(){Me!==2&&Me!==9||ze!==e||(Me=7),pn(e)},f.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Em(f)?(Me=0,Bt=null,cp(t)):(Me=0,Bt=null,Ba(e,t,f,7));break;case 5:var p=null;switch(_e.tag){case 26:p=_e.memoizedState;case 5:case 27:var _=_e;if(!p||Pp(p)){Me=0,Bt=null;var w=_.sibling;if(w!==null)_e=w;else{var B=_.return;B!==null?(_e=B,al(B)):_e=null}break t}}Me=0,Bt=null,Ba(e,t,f,5);break;case 6:Me=0,Bt=null,Ba(e,t,f,6);break;case 8:dc(),Ve=6;break e;default:throw Error(s(462))}}R2();break}catch(G){sp(e,G)}while(!0);return Rn=Dr=null,I.H=l,I.A=o,Ne=a,_e!==null?0:(ze=null,Ae=0,As(),Ve)}function R2(){for(;_e!==null&&!K1();)up(_e)}function up(e){var t=U0(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?al(e):_e=t}function cp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=N0(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=N0(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Nu(t);default:z0(a,t),t=_e=fm(t,Un),t=U0(a,t,Un)}e.memoizedProps=e.pendingProps,t===null?al(e):_e=t}function Ba(e,t,a,l){Rn=Dr=null,Nu(t),xa=null,Ei=0;var o=t.return;try{if(y2(e,o,t,a,Ae)){Ve=1,Qs(e,Vt(a,e.current)),_e=null;return}}catch(f){if(o!==null)throw _e=o,f;Ve=1,Qs(e,Vt(a,e.current)),_e=null;return}t.flags&32768?(Re||l===1?e=!0:Ra||(Ae&536870912)!==0?e=!1:(ar=e=!0,(l===2||l===9||l===3||l===6)&&(l=Xt.current,l!==null&&l.tag===13&&(l.flags|=16384))),fp(t,e)):al(t)}function al(e){var t=e;do{if((t.flags&32768)!==0){fp(t,ar);return}e=t.return;var a=_2(t.alternate,t,Un);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Ve===0&&(Ve=5)}function fp(e,t){do{var a=b2(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);Ve=6,_e=null}function hp(e,t,a,l,o,f,p,_,w){e.cancelPendingCommit=null;do il();while(ot!==0);if((Ne&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=iu,sb(e,a,f,p,_,w),e===ze&&(_e=ze=null,Ae=0),Na=t,lr=e,Ma=a,cc=f,fc=o,np=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,D2(cs,function(){return yp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=I.T,I.T=null,o=Q.p,Q.p=2,p=Ne,Ne|=4;try{E2(e,t,a)}finally{Ne=p,Q.p=o,I.T=l}}ot=1,dp(),mp(),pp()}}function dp(){if(ot===1){ot=0;var e=lr,t=Na,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null;var l=Q.p;Q.p=2;var o=Ne;Ne|=4;try{Q0(t,e);var f=Oc,p=tm(e.containerInfo),_=f.focusedElem,w=f.selectionRange;if(p!==_&&_&&_.ownerDocument&&em(_.ownerDocument.documentElement,_)){if(w!==null&&eu(_)){var B=w.start,G=w.end;if(G===void 0&&(G=B),"selectionStart"in _)_.selectionStart=B,_.selectionEnd=Math.min(G,_.value.length);else{var V=_.ownerDocument||document,L=V&&V.defaultView||window;if(L.getSelection){var H=L.getSelection(),fe=_.textContent.length,oe=Math.min(w.start,fe),Le=w.end===void 0?oe:Math.min(w.end,fe);!H.extend&&oe>Le&&(p=Le,Le=oe,oe=p);var N=Wd(_,oe),C=Wd(_,Le);if(N&&C&&(H.rangeCount!==1||H.anchorNode!==N.node||H.anchorOffset!==N.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var D=V.createRange();D.setStart(N.node,N.offset),H.removeAllRanges(),oe>Le?(H.addRange(D),H.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),H.addRange(D))}}}}for(V=[],H=_;H=H.parentNode;)H.nodeType===1&&V.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<V.length;_++){var q=V[_];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}yl=!!wc,Oc=wc=null}finally{Ne=o,Q.p=l,I.T=a}}e.current=t,ot=2}}function mp(){if(ot===2){ot=0;var e=lr,t=Na,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=I.T,I.T=null;var l=Q.p;Q.p=2;var o=Ne;Ne|=4;try{P0(e,t.alternate,t)}finally{Ne=o,Q.p=l,I.T=a}}ot=3}}function pp(){if(ot===4||ot===3){ot=0,$1();var e=lr,t=Na,a=Ma,l=np;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Na=lr=null,gp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(sr=null),Bo(a),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Za,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=I.T,o=Q.p,Q.p=2,I.T=null;try{for(var f=e.onRecoverableError,p=0;p<l.length;p++){var _=l[p];f(_.value,{componentStack:_.stack})}}finally{I.T=t,Q.p=o}}(Ma&3)!==0&&il(),pn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===hc?Ni++:(Ni=0,hc=e):Ni=0,Mi(0)}}function gp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function il(e){return dp(),mp(),pp(),yp()}function yp(){if(ot!==5)return!1;var e=lr,t=cc;cc=0;var a=Bo(Ma),l=I.T,o=Q.p;try{Q.p=32>a?32:a,I.T=null,a=fc,fc=null;var f=lr,p=Ma;if(ot=0,Na=lr=null,Ma=0,(Ne&6)!==0)throw Error(s(331));var _=Ne;if(Ne|=4,ep(f.current),$0(f,f.current,p,a),Ne=_,Mi(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Za,f)}catch{}return!0}finally{Q.p=o,I.T=l,gp(e,t)}}function vp(e,t,a){t=Vt(a,t),t=Vu(e.stateNode,t,2),e=$n(e,t,2),e!==null&&(Xa(e,2),pn(e))}function Ue(e,t,a){if(e.tag===3)vp(e,e,a);else for(;t!==null;){if(t.tag===3){vp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(sr===null||!sr.has(l))){e=Vt(a,e),a=S0(2),l=$n(t,a,2),l!==null&&(T0(a,l,t,e),Xa(l,2),pn(l));break}}t=t.return}}function gc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new x2;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(sc=!0,o.add(a),e=C2.bind(null,e,t,a),t.then(e,e))}function C2(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ze===e&&(Ae&a)===a&&(Ve===4||Ve===3&&(Ae&62914560)===Ae&&300>cn()-uc?(Ne&2)===0&&Da(e,0):lc|=a,Ca===Ae&&(Ca=0)),pn(e)}function _p(e,t){t===0&&(t=pd()),e=ma(e,t),e!==null&&(Xa(e,t),pn(e))}function N2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_p(e,a)}function M2(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),_p(e,a)}function D2(e,t){return Sn(e,t)}var sl=null,ja=null,yc=!1,ll=!1,vc=!1,kr=0;function pn(e){e!==ja&&e.next===null&&(ja===null?sl=ja=e:ja=ja.next=e),ll=!0,yc||(yc=!0,j2())}function Mi(e,t){if(!vc&&ll){vc=!0;do for(var a=!1,l=sl;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var p=l.suspendedLanes,_=l.pingedLanes;f=(1<<31-Rt(42|e)+1)-1,f&=o&~(p&~_),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Tp(l,f))}else f=Ae,f=ds(l,l===ze?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||Ya(l,f)||(a=!0,Tp(l,f));l=l.next}while(a);vc=!1}}function B2(){bp()}function bp(){ll=yc=!1;var e=0;kr!==0&&(q2()&&(e=kr),kr=0);for(var t=cn(),a=null,l=sl;l!==null;){var o=l.next,f=Ep(l,t);f===0?(l.next=null,a===null?sl=o:a.next=o,o===null&&(ja=a)):(a=l,(e!==0||(f&3)!==0)&&(ll=!0)),l=o}Mi(e)}function Ep(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var p=31-Rt(f),_=1<<p,w=o[p];w===-1?((_&a)===0||(_&l)!==0)&&(o[p]=ib(_,t)):w<=t&&(e.expiredLanes|=_),f&=~_}if(t=ze,a=Ae,a=ds(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&No(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ya(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&No(l),Bo(a)){case 2:case 8:a=hd;break;case 32:a=cs;break;case 268435456:a=dd;break;default:a=cs}return l=Sp.bind(null,e),a=Sn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&No(l),e.callbackPriority=2,e.callbackNode=null,2}function Sp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(il()&&e.callbackNode!==a)return null;var l=Ae;return l=ds(e,e===ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(ap(e,l,t),Ep(e,cn()),e.callbackNode!=null&&e.callbackNode===a?Sp.bind(null,e):null)}function Tp(e,t){if(il())return null;ap(e,t,!0)}function j2(){V2(function(){(Ne&6)!==0?Sn(fd,B2):bp()})}function _c(){return kr===0&&(kr=md()),kr}function xp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vs(""+e)}function Ap(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function L2(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var f=xp((o[bt]||null).action),p=l.submitter;p&&(t=(t=p[bt]||null)?xp(t.formAction):p.getAttribute("formAction"),t!==null&&(f=t,p=null));var _=new Ss("action","action",null,l,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(kr!==0){var w=p?Ap(o,p):new FormData(o);ku(a,{pending:!0,data:w,method:o.method,action:f},null,w)}}else typeof f=="function"&&(_.preventDefault(),w=p?Ap(o,p):new FormData(o),ku(a,{pending:!0,data:w,method:o.method,action:f},f,w))},currentTarget:o}]})}}for(var bc=0;bc<au.length;bc++){var Ec=au[bc],U2=Ec.toLowerCase(),H2=Ec[0].toUpperCase()+Ec.slice(1);en(U2,"on"+H2)}en(am,"onAnimationEnd"),en(im,"onAnimationIteration"),en(sm,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(e2,"onTransitionRun"),en(t2,"onTransitionStart"),en(n2,"onTransitionCancel"),en(lm,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(" "),z2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Di));function wp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var p=l.length-1;0<=p;p--){var _=l[p],w=_.instance,B=_.currentTarget;if(_=_.listener,w!==f&&o.isPropagationStopped())break e;f=_,o.currentTarget=B;try{f(o)}catch(G){Xs(G)}o.currentTarget=null,f=w}else for(p=0;p<l.length;p++){if(_=l[p],w=_.instance,B=_.currentTarget,_=_.listener,w!==f&&o.isPropagationStopped())break e;f=_,o.currentTarget=B;try{f(o)}catch(G){Xs(G)}o.currentTarget=null,f=w}}}}function be(e,t){var a=t[jo];a===void 0&&(a=t[jo]=new Set);var l=e+"__bubble";a.has(l)||(Op(t,e,2,!1),a.add(l))}function Sc(e,t,a){var l=0;t&&(l|=4),Op(a,e,l,t)}var ol="_reactListening"+Math.random().toString(36).slice(2);function Tc(e){if(!e[ol]){e[ol]=!0,bd.forEach(function(a){a!=="selectionchange"&&(z2.has(a)||Sc(a,!1,e),Sc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ol]||(t[ol]=!0,Sc("selectionchange",!1,t))}}function Op(e,t,a,l){switch($p(t)){case 2:var o=fE;break;case 8:o=hE;break;default:o=Hc}a=o.bind(null,t,a,e),o=void 0,!Po||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function xc(e,t,a,l,o){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var _=l.stateNode.containerInfo;if(_===o)break;if(p===4)for(p=l.return;p!==null;){var w=p.tag;if((w===3||w===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;_!==null;){if(p=ta(_),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){l=f=p;continue e}_=_.parentNode}}l=l.return}jd(function(){var B=f,G=Fo(a),V=[];e:{var L=om.get(e);if(L!==void 0){var H=Ss,fe=e;switch(e){case"keypress":if(bs(a)===0)break e;case"keydown":case"keyup":H=Db;break;case"focusin":fe="focus",H=Qo;break;case"focusout":fe="blur",H=Qo;break;case"beforeblur":case"afterblur":H=Qo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=bb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Lb;break;case am:case im:case sm:H=Tb;break;case lm:H=Hb;break;case"scroll":case"scrollend":H=vb;break;case"wheel":H=kb;break;case"copy":case"cut":case"paste":H=Ab;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=kd;break;case"toggle":case"beforetoggle":H=Gb}var oe=(t&4)!==0,Le=!oe&&(e==="scroll"||e==="scrollend"),N=oe?L!==null?L+"Capture":null:L;oe=[];for(var C=B,D;C!==null;){var q=C;if(D=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||D===null||N===null||(q=$a(C,N),q!=null&&oe.push(Bi(C,q,D))),Le)break;C=C.return}0<oe.length&&(L=new H(L,fe,null,a,G),V.push({event:L,listeners:oe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",L&&a!==qo&&(fe=a.relatedTarget||a.fromElement)&&(ta(fe)||fe[ea]))break e;if((H||L)&&(L=G.window===G?G:(L=G.ownerDocument)?L.defaultView||L.parentWindow:window,H?(fe=a.relatedTarget||a.toElement,H=B,fe=fe?ta(fe):null,fe!==null&&(Le=c(fe),oe=fe.tag,fe!==Le||oe!==5&&oe!==27&&oe!==6)&&(fe=null)):(H=null,fe=B),H!==fe)){if(oe=Hd,q="onMouseLeave",N="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(oe=kd,q="onPointerLeave",N="onPointerEnter",C="pointer"),Le=H==null?L:Ka(H),D=fe==null?L:Ka(fe),L=new oe(q,C+"leave",H,a,G),L.target=Le,L.relatedTarget=D,q=null,ta(G)===B&&(oe=new oe(N,C+"enter",fe,a,G),oe.target=D,oe.relatedTarget=Le,q=oe),Le=q,H&&fe)t:{for(oe=H,N=fe,C=0,D=oe;D;D=La(D))C++;for(D=0,q=N;q;q=La(q))D++;for(;0<C-D;)oe=La(oe),C--;for(;0<D-C;)N=La(N),D--;for(;C--;){if(oe===N||N!==null&&oe===N.alternate)break t;oe=La(oe),N=La(N)}oe=null}else oe=null;H!==null&&Rp(V,L,H,oe,!1),fe!==null&&Le!==null&&Rp(V,Le,fe,oe,!0)}}e:{if(L=B?Ka(B):window,H=L.nodeName&&L.nodeName.toLowerCase(),H==="select"||H==="input"&&L.type==="file")var W=Yd;else if(Pd(L))if(Xd)W=$b;else{W=Qb;var ve=Xb}else H=L.nodeName,!H||H.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?B&&Go(B.elementType)&&(W=Yd):W=Kb;if(W&&(W=W(e,B))){Zd(V,W,a,G);break e}ve&&ve(e,L,B),e==="focusout"&&B&&L.type==="number"&&B.memoizedProps.value!=null&&Io(L,"number",L.value)}switch(ve=B?Ka(B):window,e){case"focusin":(Pd(ve)||ve.contentEditable==="true")&&(fa=ve,tu=B,ii=null);break;case"focusout":ii=tu=fa=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,nm(V,a,G);break;case"selectionchange":if(Wb)break;case"keydown":case"keyup":nm(V,a,G)}var ae;if($o)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else ca?Fd(e,a)&&(ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ce="onCompositionStart");ce&&(Id&&a.locale!=="ko"&&(ca||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&ca&&(ae=Ld()):(Yn=G,Zo="value"in Yn?Yn.value:Yn.textContent,ca=!0)),ve=ul(B,ce),0<ve.length&&(ce=new zd(ce,e,null,a,G),V.push({event:ce,listeners:ve}),ae?ce.data=ae:(ae=Vd(a),ae!==null&&(ce.data=ae)))),(ae=Fb?Vb(e,a):Pb(e,a))&&(ce=ul(B,"onBeforeInput"),0<ce.length&&(ve=new zd("onBeforeInput","beforeinput",null,a,G),V.push({event:ve,listeners:ce}),ve.data=ae)),L2(V,e,B,a,G)}wp(V,t)})}function Bi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ul(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=$a(e,a),o!=null&&l.unshift(Bi(e,o,f)),o=$a(e,t),o!=null&&l.push(Bi(e,o,f))),e.tag===3)return l;e=e.return}return[]}function La(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rp(e,t,a,l,o){for(var f=t._reactName,p=[];a!==null&&a!==l;){var _=a,w=_.alternate,B=_.stateNode;if(_=_.tag,w!==null&&w===l)break;_!==5&&_!==26&&_!==27||B===null||(w=B,o?(B=$a(a,f),B!=null&&p.unshift(Bi(a,B,w))):o||(B=$a(a,f),B!=null&&p.push(Bi(a,B,w)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var k2=/\r\n?/g,I2=/\u0000|\uFFFD/g;function Cp(e){return(typeof e=="string"?e:""+e).replace(k2,`
|
|
49
|
-
`).replace(I2,"")}function Np(e,t){return t=Cp(t),Cp(e)===t}function cl(){}function je(e,t,a,l,o,f){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||la(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&la(e,""+l);break;case"className":ps(e,"class",l);break;case"tabIndex":ps(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(e,a,l);break;case"style":Dd(e,l,f);break;case"data":if(t!=="object"){ps(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vs(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&je(e,t,"name",o.name,o,null),je(e,t,"formEncType",o.formEncType,o,null),je(e,t,"formMethod",o.formMethod,o,null),je(e,t,"formTarget",o.formTarget,o,null)):(je(e,t,"encType",o.encType,o,null),je(e,t,"method",o.method,o,null),je(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vs(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=cl);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=vs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":be("beforetoggle",e),be("toggle",e),ms(e,"popover",l);break;case"xlinkActuate":Tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Tn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Tn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Tn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Tn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ms(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=gb.get(a)||a,ms(e,a,l))}}function Ac(e,t,a,l,o,f){switch(a){case"style":Dd(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?la(e,l):(typeof l=="number"||typeof l=="bigint")&&la(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=cl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ed.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),f=e[bt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):ms(e,a,l)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:je(e,t,f,p,a,null)}}o&&je(e,t,"srcSet",a.srcSet,a,null),l&&je(e,t,"src",a.src,a,null);return;case"input":be("invalid",e);var _=f=p=o=null,w=null,B=null;for(l in a)if(a.hasOwnProperty(l)){var G=a[l];if(G!=null)switch(l){case"name":o=G;break;case"type":p=G;break;case"checked":w=G;break;case"defaultChecked":B=G;break;case"value":f=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:je(e,t,l,G,a,null)}}Rd(e,f,_,w,B,p,o,!1),gs(e);return;case"select":be("invalid",e),l=p=f=null;for(o in a)if(a.hasOwnProperty(o)&&(_=a[o],_!=null))switch(o){case"value":f=_;break;case"defaultValue":p=_;break;case"multiple":l=_;default:je(e,t,o,_,a,null)}t=f,a=p,e.multiple=!!l,t!=null?sa(e,!!l,t,!1):a!=null&&sa(e,!!l,a,!0);return;case"textarea":be("invalid",e),f=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(_=a[p],_!=null))switch(p){case"value":l=_;break;case"defaultValue":o=_;break;case"children":f=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:je(e,t,p,_,a,null)}Nd(e,l,o,f),gs(e);return;case"option":for(w in a)if(a.hasOwnProperty(w)&&(l=a[w],l!=null))switch(w){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:je(e,t,w,l,a,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<Di.length;l++)be(Di[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(l=a[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:je(e,t,B,l,a,null)}return;default:if(Go(t)){for(G in a)a.hasOwnProperty(G)&&(l=a[G],l!==void 0&&Ac(e,t,G,l,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!=null&&je(e,t,_,l,a,null))}function G2(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,p=null,_=null,w=null,B=null,G=null;for(H in a){var V=a[H];if(a.hasOwnProperty(H)&&V!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":w=V;default:l.hasOwnProperty(H)||je(e,t,H,null,l,V)}}for(var L in l){var H=l[L];if(V=a[L],l.hasOwnProperty(L)&&(H!=null||V!=null))switch(L){case"type":f=H;break;case"name":o=H;break;case"checked":B=H;break;case"defaultChecked":G=H;break;case"value":p=H;break;case"defaultValue":_=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:H!==V&&je(e,t,L,H,l,V)}}ko(e,p,_,w,B,G,f,o);return;case"select":H=p=_=L=null;for(f in a)if(w=a[f],a.hasOwnProperty(f)&&w!=null)switch(f){case"value":break;case"multiple":H=w;default:l.hasOwnProperty(f)||je(e,t,f,null,l,w)}for(o in l)if(f=l[o],w=a[o],l.hasOwnProperty(o)&&(f!=null||w!=null))switch(o){case"value":L=f;break;case"defaultValue":_=f;break;case"multiple":p=f;default:f!==w&&je(e,t,o,f,l,w)}t=_,a=p,l=H,L!=null?sa(e,!!a,L,!1):!!l!=!!a&&(t!=null?sa(e,!!a,t,!0):sa(e,!!a,a?[]:"",!1));return;case"textarea":H=L=null;for(_ in a)if(o=a[_],a.hasOwnProperty(_)&&o!=null&&!l.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:je(e,t,_,null,l,o)}for(p in l)if(o=l[p],f=a[p],l.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":L=o;break;case"defaultValue":H=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==f&&je(e,t,p,o,l,f)}Cd(e,L,H);return;case"option":for(var fe in a)if(L=a[fe],a.hasOwnProperty(fe)&&L!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:je(e,t,fe,null,l,L)}for(w in l)if(L=l[w],H=a[w],l.hasOwnProperty(w)&&L!==H&&(L!=null||H!=null))switch(w){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:je(e,t,w,L,l,H)}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 oe in a)L=a[oe],a.hasOwnProperty(oe)&&L!=null&&!l.hasOwnProperty(oe)&&je(e,t,oe,null,l,L);for(B in l)if(L=l[B],H=a[B],l.hasOwnProperty(B)&&L!==H&&(L!=null||H!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:je(e,t,B,L,l,H)}return;default:if(Go(t)){for(var Le in a)L=a[Le],a.hasOwnProperty(Le)&&L!==void 0&&!l.hasOwnProperty(Le)&&Ac(e,t,Le,void 0,l,L);for(G in l)L=l[G],H=a[G],!l.hasOwnProperty(G)||L===H||L===void 0&&H===void 0||Ac(e,t,G,L,l,H);return}}for(var N in a)L=a[N],a.hasOwnProperty(N)&&L!=null&&!l.hasOwnProperty(N)&&je(e,t,N,null,l,L);for(V in l)L=l[V],H=a[V],!l.hasOwnProperty(V)||L===H||L==null&&H==null||je(e,t,V,L,l,H)}var wc=null,Oc=null;function fl(e){return e.nodeType===9?e:e.ownerDocument}function Mp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Dp(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 Rc(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 Cc=null;function q2(){var e=window.event;return e&&e.type==="popstate"?e===Cc?!1:(Cc=e,!0):(Cc=null,!1)}var Bp=typeof setTimeout=="function"?setTimeout:void 0,F2=typeof clearTimeout=="function"?clearTimeout:void 0,jp=typeof Promise=="function"?Promise:void 0,V2=typeof queueMicrotask=="function"?queueMicrotask:typeof jp<"u"?function(e){return jp.resolve(null).then(e).catch(P2)}:Bp;function P2(e){setTimeout(function(){throw e})}function ur(e){return e==="head"}function Lp(e,t){var a=t,l=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var p=e.ownerDocument;if(a&1&&ji(p.documentElement),a&2&&ji(p.body),a&4)for(a=p.head,ji(a),p=a.firstChild;p;){var _=p.nextSibling,w=p.nodeName;p[Qa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=_}}if(o===0){e.removeChild(f),qi(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);qi(t)}function Nc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Nc(a),Lo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Z2(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function Y2(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=nn(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function X2(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Dc=null;function Up(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Hp(e,t,a){switch(t=fl(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Lo(e)}var Kt=new Map,zp=new Set;function hl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=Q.d;Q.d={f:Q2,r:K2,D:$2,C:J2,L:W2,m:eE,X:nE,S:tE,M:rE};function Q2(){var e=Hn.f(),t=rl();return e||t}function K2(e){var t=na(e);t!==null&&t.tag===5&&t.type==="form"?a0(t):Hn.r(e)}var Ua=typeof document>"u"?null:document;function kp(e,t,a){var l=Ua;if(l&&typeof t=="string"&&t){var o=Ft(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),zp.has(o)||(zp.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),ut(t,"link",e),nt(t),l.head.appendChild(t)))}}function $2(e){Hn.D(e),kp("dns-prefetch",e,null)}function J2(e,t){Hn.C(e,t),kp("preconnect",e,t)}function W2(e,t,a){Hn.L(e,t,a);var l=Ua;if(l&&e&&t){var o='link[rel="preload"][as="'+Ft(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Ft(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Ft(a.imageSizes)+'"]')):o+='[href="'+Ft(e)+'"]';var f=o;switch(t){case"style":f=Ha(e);break;case"script":f=za(e)}Kt.has(f)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kt.set(f,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Li(f))||t==="script"&&l.querySelector(Ui(f))||(t=l.createElement("link"),ut(t,"link",e),nt(t),l.head.appendChild(t)))}}function eE(e,t){Hn.m(e,t);var a=Ua;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Ft(l)+'"][href="'+Ft(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=za(e)}if(!Kt.has(f)&&(e=v({rel:"modulepreload",href:e},t),Kt.set(f,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ui(f)))return}l=a.createElement("link"),ut(l,"link",e),nt(l),a.head.appendChild(l)}}}function tE(e,t,a){Hn.S(e,t,a);var l=Ua;if(l&&e){var o=ra(l).hoistableStyles,f=Ha(e);t=t||"default";var p=o.get(f);if(!p){var _={loading:0,preload:null};if(p=l.querySelector(Li(f)))_.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kt.get(f))&&Bc(e,a);var w=p=l.createElement("link");nt(w),ut(w,"link",e),w._p=new Promise(function(B,G){w.onload=B,w.onerror=G}),w.addEventListener("load",function(){_.loading|=1}),w.addEventListener("error",function(){_.loading|=2}),_.loading|=4,dl(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:_},o.set(f,p)}}}function nE(e,t){Hn.X(e,t);var a=Ua;if(a&&e){var l=ra(a).hoistableScripts,o=za(e),f=l.get(o);f||(f=a.querySelector(Ui(o)),f||(e=v({src:e,async:!0},t),(t=Kt.get(o))&&jc(e,t),f=a.createElement("script"),nt(f),ut(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function rE(e,t){Hn.M(e,t);var a=Ua;if(a&&e){var l=ra(a).hoistableScripts,o=za(e),f=l.get(o);f||(f=a.querySelector(Ui(o)),f||(e=v({src:e,async:!0,type:"module"},t),(t=Kt.get(o))&&jc(e,t),f=a.createElement("script"),nt(f),ut(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function Ip(e,t,a,l){var o=(o=ue.current)?hl(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ha(a.href),a=ra(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ha(a.href);var f=ra(o).hoistableStyles,p=f.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,p),(f=o.querySelector(Li(e)))&&!f._p&&(p.instance=f,p.state.loading=5),Kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kt.set(e,a),f||aE(o,e,a,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=za(a),a=ra(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ha(e){return'href="'+Ft(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function Gp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function aE(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",a),nt(t),e.head.appendChild(t))}function za(e){return'[src="'+Ft(e)+'"]'}function Ui(e){return"script[async]"+e}function qp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ft(a.href)+'"]');if(l)return t.instance=l,nt(l),l;var o=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),nt(l),ut(l,"style",o),dl(l,a.precedence,e),t.instance=l;case"stylesheet":o=Ha(a.href);var f=e.querySelector(Li(o));if(f)return t.state.loading|=4,t.instance=f,nt(f),f;l=Gp(a),(o=Kt.get(o))&&Bc(l,o),f=(e.ownerDocument||e).createElement("link"),nt(f);var p=f;return p._p=new Promise(function(_,w){p.onload=_,p.onerror=w}),ut(f,"link",l),t.state.loading|=4,dl(f,a.precedence,e),t.instance=f;case"script":return f=za(a.src),(o=e.querySelector(Ui(f)))?(t.instance=o,nt(o),o):(l=a,(o=Kt.get(f))&&(l=v({},a),jc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),nt(o),ut(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,dl(l,a.precedence,e));return t.instance}function dl(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,p=0;p<l.length;p++){var _=l[p];if(_.dataset.precedence===t)f=_;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ml=null;function Fp(e,t,a){if(ml===null){var l=new Map,o=ml=new Map;o.set(a,l)}else o=ml,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Qa]||f[mt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(t)||"";p=e+p;var _=l.get(p);_?_.push(f):l.set(p,[f])}}return l}function Vp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function iE(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Pp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Hi=null;function sE(){}function lE(e,t,a){if(Hi===null)throw Error(s(475));var l=Hi;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ha(a.href),f=e.querySelector(Li(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=pl.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=f,nt(f);return}f=e.ownerDocument||e,a=Gp(a),(o=Kt.get(o))&&Bc(a,o),f=f.createElement("link"),nt(f);var p=f;p._p=new Promise(function(_,w){p.onload=_,p.onerror=w}),ut(f,"link",a),t.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=pl.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function oE(){if(Hi===null)throw Error(s(475));var e=Hi;return e.stylesheets&&e.count===0&&Lc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Lc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function pl(){if(this.count--,this.count===0){if(this.stylesheets)Lc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gl=null;function Lc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gl=new Map,t.forEach(uE,e),gl=null,pl.call(e))}function uE(e,t){if(!(t.state.loading&4)){var a=gl.get(e);if(a)var l=a.get(null);else{a=new Map,gl.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var p=o[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),f=a.get(p)||l,f===l&&a.set(null,o),a.set(p,o),this.count++,l=pl.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var zi={$$typeof:b,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function cE(e,t,a,l,o,f,p,_){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.hiddenUpdates=Mo(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Zp(e,t,a,l,o,f,p,_,w,B,G,V){return e=new cE(e,t,a,p,_,w,B,V),t=1,f===!0&&(t|=24),f=Nt(3,null,null,t),e.current=f,f.stateNode=e,t=gu(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:t},bu(f),e}function Yp(e){return e?(e=pa,e):pa}function Xp(e,t,a,l,o,f){o=Yp(o),l.context===null?l.context=o:l.pendingContext=o,l=Kn(t),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=$n(e,l,t),a!==null&&(Lt(a,e,t),mi(a,e,t))}function Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Uc(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function Kp(e){if(e.tag===13){var t=ma(e,67108864);t!==null&&Lt(t,e,67108864),Uc(e,67108864)}}var yl=!0;function fE(e,t,a,l){var o=I.T;I.T=null;var f=Q.p;try{Q.p=2,Hc(e,t,a,l)}finally{Q.p=f,I.T=o}}function hE(e,t,a,l){var o=I.T;I.T=null;var f=Q.p;try{Q.p=8,Hc(e,t,a,l)}finally{Q.p=f,I.T=o}}function Hc(e,t,a,l){if(yl){var o=zc(l);if(o===null)xc(e,t,l,vl,a),Jp(e,l);else if(mE(o,e,t,a,l))l.stopPropagation();else if(Jp(e,l),t&4&&-1<dE.indexOf(e)){for(;o!==null;){var f=na(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=Sr(f.pendingLanes);if(p!==0){var _=f;for(_.pendingLanes|=2,_.entangledLanes|=2;p;){var w=1<<31-Rt(p);_.entanglements[1]|=w,p&=~w}pn(f),(Ne&6)===0&&(tl=cn()+500,Mi(0))}}break;case 13:_=ma(f,2),_!==null&&Lt(_,f,2),rl(),Uc(f,2)}if(f=zc(l),f===null&&xc(e,t,l,vl,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else xc(e,t,l,null,a)}}function zc(e){return e=Fo(e),kc(e)}var vl=null;function kc(e){if(vl=null,e=ta(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vl=e,null}function $p(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(J1()){case fd:return 2;case hd:return 8;case cs:case W1:return 32;case dd:return 268435456;default:return 32}default:return 32}}var Ic=!1,cr=null,fr=null,hr=null,ki=new Map,Ii=new Map,dr=[],dE="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 Jp(e,t){switch(e){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":hr=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(t.pointerId)}}function Gi(e,t,a,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},t!==null&&(t=na(t),t!==null&&Kp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function mE(e,t,a,l,o){switch(t){case"focusin":return cr=Gi(cr,e,t,a,l,o),!0;case"dragenter":return fr=Gi(fr,e,t,a,l,o),!0;case"mouseover":return hr=Gi(hr,e,t,a,l,o),!0;case"pointerover":var f=o.pointerId;return ki.set(f,Gi(ki.get(f)||null,e,t,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Ii.set(f,Gi(Ii.get(f)||null,e,t,a,l,o)),!0}return!1}function Wp(e){var t=ta(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,lb(e.priority,function(){if(a.tag===13){var l=jt();l=Do(l);var o=ma(a,l);o!==null&&Lt(o,a,l),Uc(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);qo=l,a.target.dispatchEvent(l),qo=null}else return t=na(a),t!==null&&Kp(t),e.blockedOn=a,!1;t.shift()}return!0}function eg(e,t,a){_l(e)&&a.delete(t)}function pE(){Ic=!1,cr!==null&&_l(cr)&&(cr=null),fr!==null&&_l(fr)&&(fr=null),hr!==null&&_l(hr)&&(hr=null),ki.forEach(eg),Ii.forEach(eg)}function bl(e,t){e.blockedOn===t&&(e.blockedOn=null,Ic||(Ic=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,pE)))}var El=null;function tg(e){El!==e&&(El=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){El===e&&(El=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(kc(l||a)===null)continue;break}var f=na(a);f!==null&&(e.splice(t,3),t-=3,ku(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function qi(e){function t(w){return bl(w,e)}cr!==null&&bl(cr,e),fr!==null&&bl(fr,e),hr!==null&&bl(hr,e),ki.forEach(t),Ii.forEach(t);for(var a=0;a<dr.length;a++){var l=dr[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<dr.length&&(a=dr[0],a.blockedOn===null);)Wp(a),a.blockedOn===null&&dr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],p=o[bt]||null;if(typeof f=="function")p||tg(a);else if(p){var _=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[bt]||null)_=p.formAction;else if(kc(o)!==null)continue}else _=p.action;typeof _=="function"?a[l+1]=_:(a.splice(l,3),l-=3),tg(a)}}}function Gc(e){this._internalRoot=e}Sl.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=jt();Xp(a,l,e,t,null,null)},Sl.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xp(e.current,2,null,e,null,null),rl(),t[ea]=null}};function Sl(e){this._internalRoot=e}Sl.prototype.unstable_scheduleHydration=function(e){if(e){var t=vd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<dr.length&&t!==0&&t<dr[a].priority;a++);dr.splice(a,0,e),a===0&&Wp(e)}};var ng=r.version;if(ng!=="19.1.0")throw Error(s(527,ng,"19.1.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var gE={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tl.isDisabled&&Tl.supportsFiber)try{Za=Tl.inject(gE),Ot=Tl}catch{}}return Vi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,l="",o=v0,f=_0,p=b0,_=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(_=t.unstable_transitionCallbacks)),t=Zp(e,1,!1,null,null,a,l,o,f,p,_,null),e[ea]=t.current,Tc(e),new Gc(t)},Vi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=v0,p=_0,_=b0,w=null,B=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(w=a.unstable_transitionCallbacks),a.formState!==void 0&&(B=a.formState)),t=Zp(e,1,!0,t,a??null,l,o,f,p,_,w,B),t.context=Yp(null),a=t.current,l=jt(),l=Do(l),o=Kn(l),o.callback=null,$n(a,o,l),a=l,t.current.lanes=a,Xa(t,a),pn(t),e[ea]=t.current,Tc(e),new Sl(t)},Vi.version="19.1.0",Vi}var hg;function wE(){if(hg)return Fc.exports;hg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Fc.exports=AE(),Fc.exports}var OE=wE(),U=qa();const Xv=po(U);var Xc={exports:{}},Qc={};/**
|
|
48
|
+
`+a.stack}}function qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function db(e){var t=wd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){l=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(p){l=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gs(e){e._valueTracker||(e._valueTracker=db(e))}function Od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=wd(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ys(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 mb=/[\n"\\]/g;function Ft(e){return e.replace(mb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ko(e,t,a,l,o,f,p,_){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=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Io(e,p,qt(t)):a!=null?Io(e,p,qt(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+qt(_):e.removeAttribute("name")}function Rd(e,t,a,l,o,f,p,_){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+qt(a):"",t=t!=null?""+qt(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=_?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function Io(e,t,a){t==="number"&&ys(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function sa(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+qt(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Cd(e,t,a){if(t!=null&&(t=""+qt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+qt(a):""}function Nd(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(ye(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=qt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function la(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var pb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Md(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||pb.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Dd(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&Md(e,o,l)}else for(var f in t)t.hasOwnProperty(f)&&Md(e,f,t[f])}function Go(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 gb=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"]]),yb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vs(e){return yb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var qo=null;function Fo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,ua=null;function Bd(e){var t=na(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ko(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ft(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[bt]||null;if(!o)throw Error(s(90));ko(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Od(l)}break e;case"textarea":Cd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&sa(e,!!a.multiple,t,!1)}}}var Vo=!1;function jd(e,t,a){if(Vo)return e(t,a);Vo=!0;try{var l=e(t);return l}finally{if(Vo=!1,(oa!==null||ua!==null)&&(rl(),oa&&(t=oa,e=ua,ua=oa=null,Bd(t),e)))for(t=0;t<e.length;t++)Bd(e[t])}}function $a(e,t){var a=e.stateNode;if(a===null)return null;var l=a[bt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Po=!1;if(xn)try{var Ja={};Object.defineProperty(Ja,"passive",{get:function(){Po=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Po=!1}var Yn=null,Zo=null,_s=null;function Ld(){if(_s)return _s;var e,t=Zo,a=t.length,l,o="value"in Yn?Yn.value:Yn.textContent,f=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(l=1;l<=p&&t[a-l]===o[f-l];l++);return _s=o.slice(e,1<l?1-l: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 Es(){return!0}function Ud(){return!1}function Et(e){function t(a,l,o,f,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(f):f[_]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Es:Ud,this.isPropagationStopped=Ud,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Es)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Es)},persist:function(){},isPersistent:Es}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ss=Et(xr),Wa=v({},xr,{view:0,detail:0}),vb=Et(Wa),Yo,Xo,ei,Ts=v({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ko,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!==ei&&(ei&&e.type==="mousemove"?(Yo=e.screenX-ei.screenX,Xo=e.screenY-ei.screenY):Xo=Yo=0,ei=e),Yo)},movementY:function(e){return"movementY"in e?e.movementY:Xo}}),Hd=Et(Ts),_b=v({},Ts,{dataTransfer:0}),bb=Et(_b),Eb=v({},Wa,{relatedTarget:0}),Qo=Et(Eb),Sb=v({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Tb=Et(Sb),xb=v({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ab=Et(xb),wb=v({},xr,{data:0}),zd=Et(wb),Ob={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rb={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"},Cb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cb[e])?!!t[e]:!1}function Ko(){return Nb}var Mb=v({},Wa,{key:function(e){if(e.key){var t=Ob[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"?Rb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ko,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}}),Db=Et(Mb),Bb=v({},Ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kd=Et(Bb),jb=v({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ko}),Lb=Et(jb),Ub=v({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hb=Et(Ub),zb=v({},Ts,{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}),kb=Et(zb),Ib=v({},xr,{newState:0,oldState:0}),Gb=Et(Ib),qb=[9,13,27,32],$o=xn&&"CompositionEvent"in window,ti=null;xn&&"documentMode"in document&&(ti=document.documentMode);var Fb=xn&&"TextEvent"in window&&!ti,Id=xn&&(!$o||ti&&8<ti&&11>=ti),Gd=" ",qd=!1;function Fd(e,t){switch(e){case"keyup":return qb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ca=!1;function Vb(e,t){switch(e){case"compositionend":return Vd(t);case"keypress":return t.which!==32?null:(qd=!0,Gd);case"textInput":return e=t.data,e===Gd&&qd?null:e;default:return null}}function Pb(e,t){if(ca)return e==="compositionend"||!$o&&Fd(e,t)?(e=Ld(),_s=Zo=Yn=null,ca=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Id&&t.locale!=="ko"?null:t.data;default:return null}}var Zb={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 Pd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zb[e.type]:t==="textarea"}function Zd(e,t,a,l){oa?ua?ua.push(l):ua=[l]:oa=l,t=ul(t,"onChange"),0<t.length&&(a=new Ss("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var ni=null,ri=null;function Yb(e){wp(e,0)}function xs(e){var t=Ka(e);if(Od(t))return e}function Yd(e,t){if(e==="change")return t}var Xd=!1;if(xn){var Jo;if(xn){var Wo="oninput"in document;if(!Wo){var Qd=document.createElement("div");Qd.setAttribute("oninput","return;"),Wo=typeof Qd.oninput=="function"}Jo=Wo}else Jo=!1;Xd=Jo&&(!document.documentMode||9<document.documentMode)}function Kd(){ni&&(ni.detachEvent("onpropertychange",$d),ri=ni=null)}function $d(e){if(e.propertyName==="value"&&xs(ri)){var t=[];Zd(t,ri,e,Fo(e)),jd(Yb,t)}}function Xb(e,t,a){e==="focusin"?(Kd(),ni=t,ri=a,ni.attachEvent("onpropertychange",$d)):e==="focusout"&&Kd()}function Qb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xs(ri)}function Kb(e,t){if(e==="click")return xs(t)}function $b(e,t){if(e==="input"||e==="change")return xs(t)}function Jb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Jb;function ai(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!dt.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function Jd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wd(e,t){var a=Jd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Jd(a)}}function em(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?em(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ys(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ys(e.document)}return t}function eu(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 Wb=xn&&"documentMode"in document&&11>=document.documentMode,fa=null,tu=null,ii=null,nu=!1;function nm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nu||fa==null||fa!==ys(l)||(l=fa,"selectionStart"in l&&eu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ii&&ai(ii,l)||(ii=l,l=ul(tu,"onSelect"),0<l.length&&(t=new Ss("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=fa)))}function Ar(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ha={animationend:Ar("Animation","AnimationEnd"),animationiteration:Ar("Animation","AnimationIteration"),animationstart:Ar("Animation","AnimationStart"),transitionrun:Ar("Transition","TransitionRun"),transitionstart:Ar("Transition","TransitionStart"),transitioncancel:Ar("Transition","TransitionCancel"),transitionend:Ar("Transition","TransitionEnd")},ru={},rm={};xn&&(rm=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function wr(e){if(ru[e])return ru[e];if(!ha[e])return e;var t=ha[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in rm)return ru[e]=t[a];return e}var am=wr("animationend"),im=wr("animationiteration"),sm=wr("animationstart"),e2=wr("transitionrun"),t2=wr("transitionstart"),n2=wr("transitioncancel"),lm=wr("transitionend"),om=new Map,au="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(" ");au.push("scrollEnd");function en(e,t){om.set(e,t),Tr(t,[e])}var um=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var a=um.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ad(t)},um.set(e,t),t)}return{value:e,source:t,stack:Ad(t)}}var Pt=[],da=0,iu=0;function As(){for(var e=da,t=iu=da=0;t<e;){var a=Pt[t];Pt[t++]=null;var l=Pt[t];Pt[t++]=null;var o=Pt[t];Pt[t++]=null;var f=Pt[t];if(Pt[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}f!==0&&cm(a,o,f)}}function ws(e,t,a,l){Pt[da++]=e,Pt[da++]=t,Pt[da++]=a,Pt[da++]=l,iu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function su(e,t,a,l){return ws(e,t,a,l),Os(e)}function ma(e,t){return ws(e,null,null,t),Os(e)}function cm(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&t!==null&&(o=31-Rt(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),f):null}function Os(e){if(50<Ni)throw Ni=0,hc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};function r2(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,a,l){return new r2(e,t,a,l)}function lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function An(e,t){var a=e.alternate;return a===null?(a=Nt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function fm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Rs(e,t,a,l,o,f){var p=0;if(l=e,typeof e=="function")lu(e)&&(p=1);else if(typeof e=="string")p=iE(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=Nt(31,a,t,o),e.elementType=se,e.lanes=f,e;case M:return Or(a.children,o,f,t);case F:p=8,o|=24;break;case j:return e=Nt(12,a,t,o|2),e.elementType=j,e.lanes=f,e;case T:return e=Nt(13,a,t,o),e.elementType=T,e.lanes=f,e;case k:return e=Nt(19,a,t,o),e.elementType=k,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case b:p=10;break e;case x:p=9;break e;case O:p=11;break e;case Z:p=14;break e;case $:p=16,l=null;break e}p=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Nt(p,a,t,o),t.elementType=e,t.type=l,t.lanes=f,t}function Or(e,t,a,l){return e=Nt(7,e,l,t),e.lanes=a,e}function ou(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function uu(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ga=[],ya=0,Cs=null,Ns=0,Zt=[],Yt=0,Rr=null,wn=1,On="";function Cr(e,t){ga[ya++]=Ns,ga[ya++]=Cs,Cs=e,Ns=t}function hm(e,t,a){Zt[Yt++]=wn,Zt[Yt++]=On,Zt[Yt++]=Rr,Rr=e;var l=wn;e=On;var o=32-Rt(l)-1;l&=~(1<<o),a+=1;var f=32-Rt(t)+o;if(30<f){var p=o-o%5;f=(l&(1<<p)-1).toString(32),l>>=p,o-=p,wn=1<<32-Rt(t)+o|a<<o|l,On=f+e}else wn=1<<f|a<<o|l,On=e}function cu(e){e.return!==null&&(Cr(e,1),hm(e,1,0))}function fu(e){for(;e===Cs;)Cs=ga[--ya],ga[ya]=null,Ns=ga[--ya],ga[ya]=null;for(;e===Rr;)Rr=Zt[--Yt],Zt[Yt]=null,On=Zt[--Yt],Zt[Yt]=null,wn=Zt[--Yt],Zt[Yt]=null}var yt=null,Fe=null,Re=!1,Nr=null,fn=!1,hu=Error(s(519));function Mr(e){var t=Error(s(418,""));throw oi(Vt(t,e)),hu}function dm(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[mt]=e,t[bt]=l,a){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(a=0;a<Di.length;a++)be(Di[a],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Rd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),gs(t);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Nd(t,l.value,l.defaultValue,l.children),gs(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Np(t.textContent,a)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=cl),t=!0):t=!1,t||Mr(e)}function mm(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:yt=yt.return}}function si(e){if(e!==yt)return!1;if(!Re)return mm(e),Re=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Rc(e.type,e.memoizedProps)),a=!a),a&&Fe&&Mr(e),mm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Fe=nn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Fe=null}}else t===27?(t=Fe,ur(e.type)?(e=Dc,Dc=null,Fe=e):Fe=t):Fe=yt?nn(e.stateNode.nextSibling):null;return!0}function li(){Fe=yt=null,Re=!1}function pm(){var e=Nr;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Nr=null),e}function oi(e){Nr===null?Nr=[e]:Nr.push(e)}var du=P(null),Dr=null,Rn=null;function Xn(e,t,a){Y(du,t._currentValue),t._currentValue=a}function Cn(e){e._currentValue=du.current,K(du)}function mu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function pu(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var p=o.child;f=f.firstContext;e:for(;f!==null;){var _=f;f=o;for(var w=0;w<t.length;w++)if(_.context===t[w]){f.lanes|=a,_=f.alternate,_!==null&&(_.lanes|=a),mu(f.return,a,e),l||(p=null);break e}f=_.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=a,f=p.alternate,f!==null&&(f.lanes|=a),mu(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function ui(e,t,a,l){e=null;for(var o=t,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var _=o.type;Ct(o.pendingProps.value,p.value)||(e!==null?e.push(_):e=[_])}}else if(o===tt.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(zi):e=[zi])}o=o.return}e!==null&&pu(t,e,a,l),t.flags|=262144}function Ms(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Br(e){Dr=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return gm(Dr,e)}function Ds(e,t){return Dr===null&&Br(e),gm(e,t)}function gm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Rn===null){if(e===null)throw Error(s(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return a}var a2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},i2=n.unstable_scheduleCallback,s2=n.unstable_NormalPriority,We={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gu(){return{controller:new a2,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&i2(s2,function(){e.controller.abort()})}var fi=null,yu=0,va=0,_a=null;function l2(e,t){if(fi===null){var a=fi=[];yu=0,va=_c(),_a={status:"pending",value:void 0,then:function(l){a.push(l)}}}return yu++,t.then(ym,ym),t}function ym(){if(--yu===0&&fi!==null){_a!==null&&(_a.status="fulfilled");var e=fi;fi=null,va=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function o2(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var vm=I.S;I.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&l2(e,t),vm!==null&&vm(e,t)};var jr=P(null);function vu(){var e=jr.current;return e!==null?e:ze.pooledCache}function Bs(e,t){t===null?Y(jr,jr.current):Y(jr,t.pool)}function _m(){var e=vu();return e===null?null:{parent:We._currentValue,pool:e}}var hi=Error(s(460)),bm=Error(s(474)),js=Error(s(542)),_u={then:function(){}};function Em(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ls(){}function Sm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ls,Ls),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e;default:if(typeof t.status=="string")t.then(Ls,Ls);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e}throw di=t,hi}}var di=null;function Tm(){if(di===null)throw Error(s(459));var e=di;return di=null,e}function xm(e){if(e===hi||e===js)throw Error(s(483))}var Qn=!1;function bu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eu(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 Kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $n(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Os(e),cm(e,null,a),t}return ws(e,l,t,a),Os(e)}function mi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,yd(e,a)}}function Su(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=p:f=f.next=p,a=a.next}while(a!==null);f===null?o=f=t:f=f.next=t}else o=f=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Tu=!1;function pi(){if(Tu){var e=_a;if(e!==null)throw e}}function gi(e,t,a,l){Tu=!1;var o=e.updateQueue;Qn=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var w=_,B=w.next;w.next=null,p===null?f=B:p.next=B,p=w;var G=e.alternate;G!==null&&(G=G.updateQueue,_=G.lastBaseUpdate,_!==p&&(_===null?G.firstBaseUpdate=B:_.next=B,G.lastBaseUpdate=w))}if(f!==null){var V=o.baseState;p=0,G=B=w=null,_=f;do{var L=_.lane&-536870913,z=L!==_.lane;if(z?(Ae&L)===L:(l&L)===L){L!==0&&L===va&&(Tu=!0),G!==null&&(G=G.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var fe=e,oe=_;L=t;var Le=a;switch(oe.tag){case 1:if(fe=oe.payload,typeof fe=="function"){V=fe.call(Le,V,L);break e}V=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=oe.payload,L=typeof fe=="function"?fe.call(Le,V,L):fe,L==null)break e;V=v({},V,L);break e;case 2:Qn=!0}}L=_.callback,L!==null&&(e.flags|=64,z&&(e.flags|=8192),z=o.callbacks,z===null?o.callbacks=[L]:z.push(L))}else z={lane:L,tag:_.tag,payload:_.payload,callback:_.callback,next:null},G===null?(B=G=z,w=V):G=G.next=z,p|=L;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;z=_,_=z.next,z.next=null,o.lastBaseUpdate=z,o.shared.pending=null}}while(!0);G===null&&(w=V),o.baseState=w,o.firstBaseUpdate=B,o.lastBaseUpdate=G,f===null&&(o.shared.lanes=0),ir|=p,e.lanes=p,e.memoizedState=V}}function Am(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function wm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Am(a[e],t)}var ba=P(null),Us=P(0);function Om(e,t){e=Un,Y(Us,e),Y(ba,t),Un=e|t.baseLanes}function xu(){Y(Us,Un),Y(ba,ba.current)}function Au(){Un=Us.current,K(ba),K(Us)}var Jn=0,ge=null,Be=null,Qe=null,Hs=!1,Ea=!1,Lr=!1,zs=0,yi=0,Sa=null,u2=0;function Ye(){throw Error(s(321))}function wu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function Ou(e,t,a,l,o,f){return Jn=f,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?c0:f0,Lr=!1,f=a(l,o),Lr=!1,Ea&&(f=Cm(t,a,l,o)),Rm(e),f}function Rm(e){I.H=Vs;var t=Be!==null&&Be.next!==null;if(Jn=0,Qe=Be=ge=null,Hs=!1,yi=0,Sa=null,t)throw Error(s(300));e===null||rt||(e=e.dependencies,e!==null&&Ms(e)&&(rt=!0))}function Cm(e,t,a,l){ge=e;var o=0;do{if(Ea&&(Sa=null),yi=0,Ea=!1,25<=o)throw Error(s(301));if(o+=1,Qe=Be=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}I.H=g2,f=t(a,l)}while(Ea);return f}function c2(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ru(){var e=zs!==0;return zs=0,e}function Cu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Nu(e){if(Hs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hs=!1}Jn=0,Qe=Be=ge=null,Ea=!1,yi=zs=0,Sa=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ke(){if(Be===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=Qe===null?ge.memoizedState:Qe.next;if(t!==null)Qe=t,Be=e;else{if(e===null)throw ge.alternate===null?Error(s(467)):Error(s(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=yi;return yi+=1,Sa===null&&(Sa=[]),e=Sm(Sa,e,t),t=ge,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?c0:f0),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===b)return pt(e)}throw Error(s(438,String(e)))}function Du(e){var t=null,a=ge.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Mu(),ge.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=re;return t.index++,a}function Nn(e,t){return typeof t=="function"?t(e):t}function Is(e){var t=Ke();return Bu(t,Be,e)}function Bu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}t.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{t=o.next;var _=p=null,w=null,B=t,G=!1;do{var V=B.lane&-536870913;if(V!==B.lane?(Ae&V)===V:(Jn&V)===V){var L=B.revertLane;if(L===0)w!==null&&(w=w.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),V===va&&(G=!0);else if((Jn&L)===L){B=B.next,L===va&&(G=!0);continue}else V={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},w===null?(_=w=V,p=f):w=w.next=V,ge.lanes|=L,ir|=L;V=B.action,Lr&&a(f,V),f=B.hasEagerState?B.eagerState:a(f,V)}else L={lane:V,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},w===null?(_=w=L,p=f):w=w.next=L,ge.lanes|=V,ir|=V;B=B.next}while(B!==null&&B!==t);if(w===null?p=f:w.next=_,!Ct(f,e.memoizedState)&&(rt=!0,G&&(a=_a,a!==null)))throw a;e.memoizedState=f,e.baseState=p,e.baseQueue=w,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ju(e){var t=Ke(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,f=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do f=e(f,p.action),p=p.next;while(p!==o);Ct(f,t.memoizedState)||(rt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,l]}function Nm(e,t,a){var l=ge,o=Ke(),f=Re;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=t();var p=!Ct((Be||o).memoizedState,a);p&&(o.memoizedState=a,rt=!0),o=o.queue;var _=Bm.bind(null,l,o,e);if(_i(2048,8,_,[e]),o.getSnapshot!==t||p||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,Ta(9,Gs(),Dm.bind(null,l,o,a,t),null),ze===null)throw Error(s(349));f||(Jn&124)!==0||Mm(l,t,a)}return a}function Mm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Mu(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Dm(e,t,a,l){t.value=a,t.getSnapshot=l,jm(t)&&Lm(e)}function Bm(e,t,a){return a(function(){jm(t)&&Lm(e)})}function jm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Lm(e){var t=ma(e,2);t!==null&&Lt(t,e,2)}function Lu(e){var t=St();if(typeof e=="function"){var a=e;if(e=a(),Lr){Pn(!0);try{a()}finally{Pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:e},t}function Um(e,t,a,l){return e.baseState=a,Bu(e,Be,typeof l=="function"?l:Nn)}function f2(e,t,a,l,o){if(Fs(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};I.T!==null?a(!0):f.isTransition=!1,l(f),a=t.pending,a===null?(f.next=t.pending=f,Hm(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Hm(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var f=I.T,p={};I.T=p;try{var _=a(o,l),w=I.S;w!==null&&w(p,_),zm(e,t,_)}catch(B){Uu(e,t,B)}finally{I.T=f}}else try{f=a(o,l),zm(e,t,f)}catch(B){Uu(e,t,B)}}function zm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){km(e,t,l)},function(l){return Uu(e,t,l)}):km(e,t,a)}function km(e,t,a){t.status="fulfilled",t.value=a,Im(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Hm(e,a)))}function Uu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Im(t),t=t.next;while(t!==l)}e.action=null}function Im(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gm(e,t){return t}function qm(e,t){if(Re){var a=ze.formState;if(a!==null){e:{var l=ge;if(Re){if(Fe){t:{for(var o=Fe,f=fn;o.nodeType!==8;){if(!f){o=null;break t}if(o=nn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Fe=nn(o.nextSibling),l=o.data==="F!";break e}}Mr(l)}l=!1}l&&(t=a[0])}}return a=St(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gm,lastRenderedState:t},a.queue=l,a=l0.bind(null,ge,l),l.dispatch=a,l=Lu(!1),f=Gu.bind(null,ge,!1,l.queue),l=St(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=f2.bind(null,ge,o,f,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function Fm(e){var t=Ke();return Vm(t,Be,e)}function Vm(e,t,a){if(t=Bu(e,t,Gm)[0],e=Is(Nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=vi(t)}catch(p){throw p===hi?js:p}else l=t;t=Ke();var o=t.queue,f=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Ta(9,Gs(),h2.bind(null,o,a),null)),[l,f,e]}function h2(e,t){e.action=t}function Pm(e){var t=Ke(),a=Be;if(a!==null)return Vm(t,a,e);Ke(),t=t.memoizedState,a=Ke();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ta(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Mu(),ge.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Gs(){return{destroy:void 0,resource:void 0}}function Zm(){return Ke().memoizedState}function qs(e,t,a,l){var o=St();l=l===void 0?null:l,ge.flags|=e,o.memoizedState=Ta(1|t,Gs(),a,l)}function _i(e,t,a,l){var o=Ke();l=l===void 0?null:l;var f=o.memoizedState.inst;Be!==null&&l!==null&&wu(l,Be.memoizedState.deps)?o.memoizedState=Ta(t,f,a,l):(ge.flags|=e,o.memoizedState=Ta(1|t,f,a,l))}function Ym(e,t){qs(8390656,8,e,t)}function Xm(e,t){_i(2048,8,e,t)}function Qm(e,t){return _i(4,2,e,t)}function Km(e,t){return _i(4,4,e,t)}function $m(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jm(e,t,a){a=a!=null?a.concat([e]):null,_i(4,4,$m.bind(null,t,e),a)}function Hu(){}function Wm(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&wu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function e0(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&wu(t,l[1]))return l[0];if(l=e(),Lr){Pn(!0);try{e()}finally{Pn(!1)}}return a.memoizedState=[l,t],l}function zu(e,t,a){return a===void 0||(Jn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=rp(),ge.lanes|=e,ir|=e,a)}function t0(e,t,a,l){return Ct(a,t)?a:ba.current!==null?(e=zu(e,a,l),Ct(e,t)||(rt=!0),e):(Jn&42)===0?(rt=!0,e.memoizedState=a):(e=rp(),ge.lanes|=e,ir|=e,t)}function n0(e,t,a,l,o){var f=Q.p;Q.p=f!==0&&8>f?f:8;var p=I.T,_={};I.T=_,Gu(e,!1,t,a);try{var w=o(),B=I.S;if(B!==null&&B(_,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var G=o2(w,l);bi(e,t,G,jt(e))}else bi(e,t,l,jt(e))}catch(V){bi(e,t,{then:function(){},status:"rejected",reason:V},jt())}finally{Q.p=f,I.T=p}}function d2(){}function ku(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=r0(e).queue;n0(e,o,t,ee,a===null?d2:function(){return a0(e),a(l)})}function r0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function a0(e){var t=r0(e).next.queue;bi(e,t,{},jt())}function Iu(){return pt(zi)}function i0(){return Ke().memoizedState}function s0(){return Ke().memoizedState}function m2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=Kn(a);var l=$n(t,e,a);l!==null&&(Lt(l,t,a),mi(l,t,a)),t={cache:gu()},e.payload=t;return}t=t.return}}function p2(e,t,a){var l=jt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Fs(e)?o0(t,a):(a=su(e,t,a,l),a!==null&&(Lt(a,e,l),u0(a,t,l)))}function l0(e,t,a){var l=jt();bi(e,t,a,l)}function bi(e,t,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))o0(t,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var p=t.lastRenderedState,_=f(p,a);if(o.hasEagerState=!0,o.eagerState=_,Ct(_,p))return ws(e,t,o,0),ze===null&&As(),!1}catch{}finally{}if(a=su(e,t,o,l),a!==null)return Lt(a,e,l),u0(a,t,l),!0}return!1}function Gu(e,t,a,l){if(l={lane:2,revertLane:_c(),action:l,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(s(479))}else t=su(e,a,l,2),t!==null&&Lt(t,e,2)}function Fs(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function o0(e,t){Ea=Hs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function u0(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,yd(e,a)}}var Vs={readContext:pt,use:ks,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye},c0={readContext:pt,use:ks,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Ym,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,qs(4194308,4,$m.bind(null,t,e),a)},useLayoutEffect:function(e,t){return qs(4194308,4,e,t)},useInsertionEffect:function(e,t){qs(4,2,e,t)},useMemo:function(e,t){var a=St();t=t===void 0?null:t;var l=e();if(Lr){Pn(!0);try{e()}finally{Pn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=St();if(a!==void 0){var o=a(t);if(Lr){Pn(!0);try{a(t)}finally{Pn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=p2.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=Lu(e);var t=e.queue,a=l0.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Hu,useDeferredValue:function(e,t){var a=St();return zu(a,e,t)},useTransition:function(){var e=Lu(!1);return e=n0.bind(null,ge,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ge,o=St();if(Re){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),ze===null)throw Error(s(349));(Ae&124)!==0||Mm(l,t,a)}o.memoizedState=a;var f={value:a,getSnapshot:t};return o.queue=f,Ym(Bm.bind(null,l,f,e),[e]),l.flags|=2048,Ta(9,Gs(),Dm.bind(null,l,f,a,t),null),a},useId:function(){var e=St(),t=ze.identifierPrefix;if(Re){var a=On,l=wn;a=(l&~(1<<32-Rt(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=zs++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=u2++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Iu,useFormState:qm,useActionState:qm,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Gu.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Du,useCacheRefresh:function(){return St().memoizedState=m2.bind(null,ge)}},f0={readContext:pt,use:ks,useCallback:Wm,useContext:pt,useEffect:Xm,useImperativeHandle:Jm,useInsertionEffect:Qm,useLayoutEffect:Km,useMemo:e0,useReducer:Is,useRef:Zm,useState:function(){return Is(Nn)},useDebugValue:Hu,useDeferredValue:function(e,t){var a=Ke();return t0(a,Be.memoizedState,e,t)},useTransition:function(){var e=Is(Nn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:Nm,useId:i0,useHostTransitionStatus:Iu,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,t){var a=Ke();return Um(a,Be,e,t)},useMemoCache:Du,useCacheRefresh:s0},g2={readContext:pt,use:ks,useCallback:Wm,useContext:pt,useEffect:Xm,useImperativeHandle:Jm,useInsertionEffect:Qm,useLayoutEffect:Km,useMemo:e0,useReducer:ju,useRef:Zm,useState:function(){return ju(Nn)},useDebugValue:Hu,useDeferredValue:function(e,t){var a=Ke();return Be===null?zu(a,e,t):t0(a,Be.memoizedState,e,t)},useTransition:function(){var e=ju(Nn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:Nm,useId:i0,useHostTransitionStatus:Iu,useFormState:Pm,useActionState:Pm,useOptimistic:function(e,t){var a=Ke();return Be!==null?Um(a,Be,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Du,useCacheRefresh:s0},xa=null,Ei=0;function Ps(e){var t=Ei;return Ei+=1,xa===null&&(xa=[]),Sm(xa,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zs(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function h0(e){var t=e._init;return t(e._payload)}function d0(e){function t(N,C){if(e){var D=N.deletions;D===null?(N.deletions=[C],N.flags|=16):D.push(C)}}function a(N,C){if(!e)return null;for(;C!==null;)t(N,C),C=C.sibling;return null}function l(N){for(var C=new Map;N!==null;)N.key!==null?C.set(N.key,N):C.set(N.index,N),N=N.sibling;return C}function o(N,C){return N=An(N,C),N.index=0,N.sibling=null,N}function f(N,C,D){return N.index=D,e?(D=N.alternate,D!==null?(D=D.index,D<C?(N.flags|=67108866,C):D):(N.flags|=67108866,C)):(N.flags|=1048576,C)}function p(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function _(N,C,D,q){return C===null||C.tag!==6?(C=ou(D,N.mode,q),C.return=N,C):(C=o(C,D),C.return=N,C)}function w(N,C,D,q){var W=D.type;return W===M?G(N,C,D.props.children,q,D.key):C!==null&&(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===$&&h0(W)===C.type)?(C=o(C,D.props),Si(C,D),C.return=N,C):(C=Rs(D.type,D.key,D.props,null,N.mode,q),Si(C,D),C.return=N,C)}function B(N,C,D,q){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=uu(D,N.mode,q),C.return=N,C):(C=o(C,D.children||[]),C.return=N,C)}function G(N,C,D,q,W){return C===null||C.tag!==7?(C=Or(D,N.mode,q,W),C.return=N,C):(C=o(C,D),C.return=N,C)}function V(N,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ou(""+C,N.mode,D),C.return=N,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case A:return D=Rs(C.type,C.key,C.props,null,N.mode,D),Si(D,C),D.return=N,D;case U:return C=uu(C,N.mode,D),C.return=N,C;case $:var q=C._init;return C=q(C._payload),V(N,C,D)}if(ye(C)||ie(C))return C=Or(C,N.mode,D,null),C.return=N,C;if(typeof C.then=="function")return V(N,Ps(C),D);if(C.$$typeof===b)return V(N,Ds(N,C),D);Zs(N,C)}return null}function L(N,C,D,q){var W=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return W!==null?null:_(N,C,""+D,q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case A:return D.key===W?w(N,C,D,q):null;case U:return D.key===W?B(N,C,D,q):null;case $:return W=D._init,D=W(D._payload),L(N,C,D,q)}if(ye(D)||ie(D))return W!==null?null:G(N,C,D,q,null);if(typeof D.then=="function")return L(N,C,Ps(D),q);if(D.$$typeof===b)return L(N,C,Ds(N,D),q);Zs(N,D)}return null}function z(N,C,D,q,W){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return N=N.get(D)||null,_(C,N,""+q,W);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case A:return N=N.get(q.key===null?D:q.key)||null,w(C,N,q,W);case U:return N=N.get(q.key===null?D:q.key)||null,B(C,N,q,W);case $:var ve=q._init;return q=ve(q._payload),z(N,C,D,q,W)}if(ye(q)||ie(q))return N=N.get(D)||null,G(C,N,q,W,null);if(typeof q.then=="function")return z(N,C,D,Ps(q),W);if(q.$$typeof===b)return z(N,C,D,Ds(C,q),W);Zs(C,q)}return null}function fe(N,C,D,q){for(var W=null,ve=null,ae=C,ce=C=0,it=null;ae!==null&&ce<D.length;ce++){ae.index>ce?(it=ae,ae=null):it=ae.sibling;var Oe=L(N,ae,D[ce],q);if(Oe===null){ae===null&&(ae=it);break}e&&ae&&Oe.alternate===null&&t(N,ae),C=f(Oe,C,ce),ve===null?W=Oe:ve.sibling=Oe,ve=Oe,ae=it}if(ce===D.length)return a(N,ae),Re&&Cr(N,ce),W;if(ae===null){for(;ce<D.length;ce++)ae=V(N,D[ce],q),ae!==null&&(C=f(ae,C,ce),ve===null?W=ae:ve.sibling=ae,ve=ae);return Re&&Cr(N,ce),W}for(ae=l(ae);ce<D.length;ce++)it=z(ae,N,ce,D[ce],q),it!==null&&(e&&it.alternate!==null&&ae.delete(it.key===null?ce:it.key),C=f(it,C,ce),ve===null?W=it:ve.sibling=it,ve=it);return e&&ae.forEach(function(mr){return t(N,mr)}),Re&&Cr(N,ce),W}function oe(N,C,D,q){if(D==null)throw Error(s(151));for(var W=null,ve=null,ae=C,ce=C=0,it=null,Oe=D.next();ae!==null&&!Oe.done;ce++,Oe=D.next()){ae.index>ce?(it=ae,ae=null):it=ae.sibling;var mr=L(N,ae,Oe.value,q);if(mr===null){ae===null&&(ae=it);break}e&&ae&&mr.alternate===null&&t(N,ae),C=f(mr,C,ce),ve===null?W=mr:ve.sibling=mr,ve=mr,ae=it}if(Oe.done)return a(N,ae),Re&&Cr(N,ce),W;if(ae===null){for(;!Oe.done;ce++,Oe=D.next())Oe=V(N,Oe.value,q),Oe!==null&&(C=f(Oe,C,ce),ve===null?W=Oe:ve.sibling=Oe,ve=Oe);return Re&&Cr(N,ce),W}for(ae=l(ae);!Oe.done;ce++,Oe=D.next())Oe=z(ae,N,ce,Oe.value,q),Oe!==null&&(e&&Oe.alternate!==null&&ae.delete(Oe.key===null?ce:Oe.key),C=f(Oe,C,ce),ve===null?W=Oe:ve.sibling=Oe,ve=Oe);return e&&ae.forEach(function(yE){return t(N,yE)}),Re&&Cr(N,ce),W}function Le(N,C,D,q){if(typeof D=="object"&&D!==null&&D.type===M&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case A:e:{for(var W=D.key;C!==null;){if(C.key===W){if(W=D.type,W===M){if(C.tag===7){a(N,C.sibling),q=o(C,D.props.children),q.return=N,N=q;break e}}else if(C.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===$&&h0(W)===C.type){a(N,C.sibling),q=o(C,D.props),Si(q,D),q.return=N,N=q;break e}a(N,C);break}else t(N,C);C=C.sibling}D.type===M?(q=Or(D.props.children,N.mode,q,D.key),q.return=N,N=q):(q=Rs(D.type,D.key,D.props,null,N.mode,q),Si(q,D),q.return=N,N=q)}return p(N);case U:e:{for(W=D.key;C!==null;){if(C.key===W)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(N,C.sibling),q=o(C,D.children||[]),q.return=N,N=q;break e}else{a(N,C);break}else t(N,C);C=C.sibling}q=uu(D,N.mode,q),q.return=N,N=q}return p(N);case $:return W=D._init,D=W(D._payload),Le(N,C,D,q)}if(ye(D))return fe(N,C,D,q);if(ie(D)){if(W=ie(D),typeof W!="function")throw Error(s(150));return D=W.call(D),oe(N,C,D,q)}if(typeof D.then=="function")return Le(N,C,Ps(D),q);if(D.$$typeof===b)return Le(N,C,Ds(N,D),q);Zs(N,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(N,C.sibling),q=o(C,D),q.return=N,N=q):(a(N,C),q=ou(D,N.mode,q),q.return=N,N=q),p(N)):a(N,C)}return function(N,C,D,q){try{Ei=0;var W=Le(N,C,D,q);return xa=null,W}catch(ae){if(ae===hi||ae===js)throw ae;var ve=Nt(29,ae,null,N.mode);return ve.lanes=q,ve.return=N,ve}finally{}}}var Aa=d0(!0),m0=d0(!1),Xt=P(null),hn=null;function Wn(e){var t=e.alternate;Y(et,et.current&1),Y(Xt,e),hn===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(hn=e)}function p0(e){if(e.tag===22){if(Y(et,et.current),Y(Xt,e),hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(hn=e)}}else er()}function er(){Y(et,et.current),Y(Xt,Xt.current)}function Mn(e){K(Xt),hn===e&&(hn=null),K(et)}var et=P(0);function Ys(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Mc(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Fu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=jt(),o=Kn(l);o.payload=t,a!=null&&(o.callback=a),t=$n(e,o,l),t!==null&&(Lt(t,e,l),mi(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=jt(),o=Kn(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=$n(e,o,l),t!==null&&(Lt(t,e,l),mi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),l=Kn(a);l.tag=2,t!=null&&(l.callback=t),t=$n(e,l,a),t!==null&&(Lt(t,e,a),mi(t,e,a))}};function g0(e,t,a,l,o,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,p):t.prototype&&t.prototype.isPureReactComponent?!ai(a,l)||!ai(o,f):!0}function y0(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Fu.enqueueReplaceState(t,t.state,null)}function Ur(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Xs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function v0(e){Xs(e)}function _0(e){console.error(e)}function b0(e){Xs(e)}function Qs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function E0(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Vu(e,t,a){return a=Kn(a),a.tag=3,a.payload={element:null},a.callback=function(){Qs(e,t)},a}function S0(e){return e=Kn(e),e.tag=3,e}function T0(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){E0(t,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){E0(t,a,l),typeof o!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var _=l.stack;this.componentDidCatch(l.value,{componentStack:_!==null?_:""})})}function y2(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&ui(t,a,o,!0),a=Xt.current,a!==null){switch(a.tag){case 13:return hn===null?mc():a.alternate===null&&Ve===0&&(Ve=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===_u?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),gc(e,l,o)),!1;case 22:return a.flags|=65536,l===_u?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),gc(e,l,o)),!1}throw Error(s(435,a.tag))}return gc(e,l,o),mc(),!1}if(Re)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==hu&&(e=Error(s(422),{cause:l}),oi(Vt(e,a)))):(l!==hu&&(t=Error(s(423),{cause:l}),oi(Vt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Vt(l,a),o=Vu(e.stateNode,l,o),Su(e,o),Ve!==4&&(Ve=2)),!1;var f=Error(s(520),{cause:l});if(f=Vt(f,a),Ci===null?Ci=[f]:Ci.push(f),Ve!==4&&(Ve=2),t===null)return!0;l=Vt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Vu(a.stateNode,l,e),Su(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(sr===null||!sr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=S0(o),T0(o,e,a,l),Su(a,o),!1}a=a.return}while(a!==null);return!1}var x0=Error(s(461)),rt=!1;function lt(e,t,a,l){t.child=e===null?m0(t,null,a,l):Aa(t,e.child,a,l)}function A0(e,t,a,l,o){a=a.render;var f=t.ref;if("ref"in l){var p={};for(var _ in l)_!=="ref"&&(p[_]=l[_])}else p=l;return Br(t),l=Ou(e,t,a,p,f,o),_=Ru(),e!==null&&!rt?(Cu(e,t,o),Dn(e,t,o)):(Re&&_&&cu(t),t.flags|=1,lt(e,t,l,o),t.child)}function w0(e,t,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!lu(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,O0(e,t,f,l,o)):(e=Rs(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ju(e,o)){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:ai,a(p,l)&&e.ref===t.ref)return Dn(e,t,o)}return t.flags|=1,e=An(f,l),e.ref=t.ref,e.return=t,t.child=e}function O0(e,t,a,l,o){if(e!==null){var f=e.memoizedProps;if(ai(f,l)&&e.ref===t.ref)if(rt=!1,t.pendingProps=l=f,Ju(e,o))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Dn(e,t,o)}return Pu(e,t,a,l,o)}function R0(e,t,a){var l=t.pendingProps,o=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(o=t.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return C0(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bs(t,f!==null?f.cachePool:null),f!==null?Om(t,f):xu(),p0(t);else return t.lanes=t.childLanes=536870912,C0(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(Bs(t,f.cachePool),Om(t,f),er(),t.memoizedState=null):(e!==null&&Bs(t,null),xu(),er());return lt(e,t,o,a),t.child}function C0(e,t,a,l){var o=vu();return o=o===null?null:{parent:We._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Bs(t,null),xu(),p0(t),e!==null&&ui(e,t,l,!0),null}function Ks(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Pu(e,t,a,l,o){return Br(t),a=Ou(e,t,a,l,void 0,o),l=Ru(),e!==null&&!rt?(Cu(e,t,o),Dn(e,t,o)):(Re&&l&&cu(t),t.flags|=1,lt(e,t,a,o),t.child)}function N0(e,t,a,l,o,f){return Br(t),t.updateQueue=null,a=Cm(t,l,a,o),Rm(e),l=Ru(),e!==null&&!rt?(Cu(e,t,f),Dn(e,t,f)):(Re&&l&&cu(t),t.flags|=1,lt(e,t,a,f),t.child)}function M0(e,t,a,l,o){if(Br(t),t.stateNode===null){var f=pa,p=a.contextType;typeof p=="object"&&p!==null&&(f=pt(p)),f=new a(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Fu,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},bu(t),p=a.contextType,f.context=typeof p=="object"&&p!==null?pt(p):pa,f.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(qu(t,a,p,l),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(p=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),p!==f.state&&Fu.enqueueReplaceState(f,f.state,null),gi(t,l,f,o),pi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var _=t.memoizedProps,w=Ur(a,_);f.props=w;var B=f.context,G=a.contextType;p=pa,typeof G=="object"&&G!==null&&(p=pt(G));var V=a.getDerivedStateFromProps;G=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,G||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(_||B!==p)&&y0(t,f,l,p),Qn=!1;var L=t.memoizedState;f.state=L,gi(t,l,f,o),pi(),B=t.memoizedState,_||L!==B||Qn?(typeof V=="function"&&(qu(t,a,V,l),B=t.memoizedState),(w=Qn||g0(t,a,w,l,L,B,p))?(G||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),f.props=l,f.state=B,f.context=p,l=w):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,Eu(e,t),p=t.memoizedProps,G=Ur(a,p),f.props=G,V=t.pendingProps,L=f.context,B=a.contextType,w=pa,typeof B=="object"&&B!==null&&(w=pt(B)),_=a.getDerivedStateFromProps,(B=typeof _=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==V||L!==w)&&y0(t,f,l,w),Qn=!1,L=t.memoizedState,f.state=L,gi(t,l,f,o),pi();var z=t.memoizedState;p!==V||L!==z||Qn||e!==null&&e.dependencies!==null&&Ms(e.dependencies)?(typeof _=="function"&&(qu(t,a,_,l),z=t.memoizedState),(G=Qn||g0(t,a,G,l,L,z,w)||e!==null&&e.dependencies!==null&&Ms(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,z,w),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,z,w)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),f.props=l,f.state=z,f.context=w,l=G):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,Ks(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=Aa(t,e.child,null,o),t.child=Aa(t,null,a,o)):lt(e,t,a,o),t.memoizedState=f.state,e=t.child):e=Dn(e,t,o),e}function D0(e,t,a,l){return li(),t.flags|=256,lt(e,t,a,l),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yu(e){return{baseLanes:e,cachePool:_m()}}function Xu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Qt),e}function B0(e,t,a){var l=t.pendingProps,o=!1,f=(t.flags&128)!==0,p;if((p=f)||(p=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(o?Wn(t):er(),Re){var _=Fe,w;if(w=_){e:{for(w=_,_=fn;w.nodeType!==8;){if(!_){_=null;break e}if(w=nn(w.nextSibling),w===null){_=null;break e}}_=w}_!==null?(t.memoizedState={dehydrated:_,treeContext:Rr!==null?{id:wn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},w=Nt(18,null,null,0),w.stateNode=_,w.return=t,t.child=w,yt=t,Fe=null,w=!0):w=!1}w||Mr(t)}if(_=t.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return Mc(_)?t.lanes=32:t.lanes=536870912,null;Mn(t)}return _=l.children,l=l.fallback,o?(er(),o=t.mode,_=$s({mode:"hidden",children:_},o),l=Or(l,o,a,null),_.return=t,l.return=t,_.sibling=l,t.child=_,o=t.child,o.memoizedState=Yu(a),o.childLanes=Xu(e,p,a),t.memoizedState=Zu,l):(Wn(t),Qu(t,_))}if(w=e.memoizedState,w!==null&&(_=w.dehydrated,_!==null)){if(f)t.flags&256?(Wn(t),t.flags&=-257,t=Ku(e,t,a)):t.memoizedState!==null?(er(),t.child=e.child,t.flags|=128,t=null):(er(),o=l.fallback,_=t.mode,l=$s({mode:"visible",children:l.children},_),o=Or(o,_,a,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,Aa(t,e.child,null,a),l=t.child,l.memoizedState=Yu(a),l.childLanes=Xu(e,p,a),t.memoizedState=Zu,t=o);else if(Wn(t),Mc(_)){if(p=_.nextSibling&&_.nextSibling.dataset,p)var B=p.dgst;p=B,l=Error(s(419)),l.stack="",l.digest=p,oi({value:l,source:null,stack:null}),t=Ku(e,t,a)}else if(rt||ui(e,t,a,!1),p=(a&e.childLanes)!==0,rt||p){if(p=ze,p!==null&&(l=a&-a,l=(l&42)!==0?1:Do(l),l=(l&(p.suspendedLanes|a))!==0?0:l,l!==0&&l!==w.retryLane))throw w.retryLane=l,ma(e,l),Lt(p,e,l),x0;_.data==="$?"||mc(),t=Ku(e,t,a)}else _.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Fe=nn(_.nextSibling),yt=t,Re=!0,Nr=null,fn=!1,e!==null&&(Zt[Yt++]=wn,Zt[Yt++]=On,Zt[Yt++]=Rr,wn=e.id,On=e.overflow,Rr=t),t=Qu(t,l.children),t.flags|=4096);return t}return o?(er(),o=l.fallback,_=t.mode,w=e.child,B=w.sibling,l=An(w,{mode:"hidden",children:l.children}),l.subtreeFlags=w.subtreeFlags&65011712,B!==null?o=An(B,o):(o=Or(o,_,a,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,l=o,o=t.child,_=e.child.memoizedState,_===null?_=Yu(a):(w=_.cachePool,w!==null?(B=We._currentValue,w=w.parent!==B?{parent:B,pool:B}:w):w=_m(),_={baseLanes:_.baseLanes|a,cachePool:w}),o.memoizedState=_,o.childLanes=Xu(e,p,a),t.memoizedState=Zu,l):(Wn(t),a=e.child,e=a.sibling,a=An(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Qu(e,t){return t=$s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $s(e,t){return e=Nt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ku(e,t,a){return Aa(t,e.child,null,a),e=Qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function j0(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),mu(e.return,t,a)}function $u(e,t,a,l,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=o)}function L0(e,t,a){var l=t.pendingProps,o=l.revealOrder,f=l.tail;if(lt(e,t,l.children,a),l=et.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&j0(e,a,t);else if(e.tag===19)j0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Y(et,l),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ys(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),$u(t,!1,o,a,f);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ys(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}$u(t,!0,a,null,f);break;case"together":$u(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Dn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ir|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ui(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=An(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=An(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ju(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ms(e)))}function v2(e,t,a){switch(t.tag){case 3:He(t,t.stateNode.containerInfo),Xn(t,We,e.memoizedState.cache),li();break;case 27:case 5:Er(t);break;case 4:He(t,t.stateNode.containerInfo);break;case 10:Xn(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Wn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?B0(e,t,a):(Wn(t),e=Dn(e,t,a),e!==null?e.sibling:null);Wn(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(ui(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return L0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(et,et.current),l)break;return null;case 22:case 23:return t.lanes=0,R0(e,t,a);case 24:Xn(t,We,e.memoizedState.cache)}return Dn(e,t,a)}function U0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Ju(e,a)&&(t.flags&128)===0)return rt=!1,v2(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Re&&(t.flags&1048576)!==0&&hm(t,Ns,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,o=l._init;if(l=o(l._payload),t.type=l,typeof l=="function")lu(l)?(e=Ur(l,e),t.tag=1,t=M0(null,t,l,e,a)):(t.tag=0,t=Pu(null,t,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===O){t.tag=11,t=A0(null,t,l,e,a);break e}else if(o===Z){t.tag=14,t=w0(null,t,l,e,a);break e}}throw t=Ze(l)||l,Error(s(306,t,""))}}return t;case 0:return Pu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=Ur(l,t.pendingProps),M0(e,t,l,o,a);case 3:e:{if(He(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var f=t.memoizedState;o=f.element,Eu(e,t),gi(t,l,null,a);var p=t.memoizedState;if(l=p.cache,Xn(t,We,l),l!==f.cache&&pu(t,[We],a,!0),pi(),l=p.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=D0(e,t,l,a);break e}else if(l!==o){o=Vt(Error(s(424)),t),oi(o),t=D0(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=nn(e.firstChild),yt=t,Re=!0,Nr=null,fn=!0,a=m0(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(li(),l===o){t=Dn(e,t,a);break e}lt(e,t,l,a)}t=t.child}return t;case 26:return Ks(e,t),e===null?(a=Ip(t.type,null,t.pendingProps,null))?t.memoizedState=a:Re||(a=t.type,e=t.pendingProps,l=fl(ue.current).createElement(a),l[mt]=t,l[bt]=e,ut(l,a,e),nt(l),t.stateNode=l):t.memoizedState=Ip(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Er(t),e===null&&Re&&(l=t.stateNode=Hp(t.type,t.pendingProps,ue.current),yt=t,fn=!0,o=Fe,ur(t.type)?(Dc=o,Fe=nn(l.firstChild)):Fe=o),lt(e,t,t.pendingProps.children,a),Ks(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((o=l=Fe)&&(l=Z2(l,t.type,t.pendingProps,fn),l!==null?(t.stateNode=l,yt=t,Fe=nn(l.firstChild),fn=!1,o=!0):o=!1),o||Mr(t)),Er(t),o=t.type,f=t.pendingProps,p=e!==null?e.memoizedProps:null,l=f.children,Rc(o,f)?l=null:p!==null&&Rc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Ou(e,t,c2,null,null,a),zi._currentValue=o),Ks(e,t),lt(e,t,l,a),t.child;case 6:return e===null&&Re&&((e=a=Fe)&&(a=Y2(a,t.pendingProps,fn),a!==null?(t.stateNode=a,yt=t,Fe=null,e=!0):e=!1),e||Mr(t)),null;case 13:return B0(e,t,a);case 4:return He(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Aa(t,null,l,a):lt(e,t,l,a),t.child;case 11:return A0(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Xn(t,t.type,l.value),lt(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Br(t),o=pt(o),l=l(o),t.flags|=1,lt(e,t,l,a),t.child;case 14:return w0(e,t,t.type,t.pendingProps,a);case 15:return O0(e,t,t.type,t.pendingProps,a);case 19:return L0(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=$s(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=An(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return R0(e,t,a);case 24:return Br(t),l=pt(We),e===null?(o=vu(),o===null&&(o=ze,f=gu(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),t.memoizedState={parent:l,cache:o},bu(t),Xn(t,We,o)):((e.lanes&a)!==0&&(Eu(e,t),gi(t,null,null,a),pi()),o=e.memoizedState,f=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Xn(t,We,l)):(l=f.cache,Xn(t,We,l),l!==o.cache&&pu(t,[We],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Bn(e){e.flags|=4}function H0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pp(t)){if(t=Xt.current,t!==null&&((Ae&4194048)===Ae?hn!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==hn))throw di=_u,bm;e.flags|=8192}}function Js(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?pd():536870912,e.lanes|=t,Ca|=t)}function Ti(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function _2(e,t,a){var l=t.pendingProps;switch(fu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Cn(We),wt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(si(t)?Bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pm())),Ge(t),null;case 26:return a=t.memoizedState,e===null?(Bn(t),a!==null?(Ge(t),H0(t,a)):(Ge(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Bn(t),Ge(t),H0(t,a)):(Ge(t),t.flags&=-16777217):(e.memoizedProps!==l&&Bn(t),Ge(t),t.flags&=-16777217),null;case 27:Pa(t),a=ue.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ge(t),null}e=te.current,si(t)?dm(t):(e=Hp(o,l,a),t.stateNode=e,Bn(t))}return Ge(t),null;case 5:if(Pa(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ge(t),null}if(e=te.current,si(t))dm(t);else{switch(o=fl(ue.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[mt]=t,e[bt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(ut(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Bn(t)}}return Ge(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,si(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=yt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Np(e.nodeValue,a)),e||Mr(t)}else e=fl(e).createTextNode(l),e[mt]=t,t.stateNode=e}return Ge(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=si(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[mt]=t}else li(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),o=!1}else o=pm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Mn(t),t):(Mn(t),null)}if(Mn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Js(t,t.updateQueue),Ge(t),null;case 4:return wt(),e===null&&Tc(t.stateNode.containerInfo),Ge(t),null;case 10:return Cn(t.type),Ge(t),null;case 19:if(K(et),o=t.memoizedState,o===null)return Ge(t),null;if(l=(t.flags&128)!==0,f=o.rendering,f===null)if(l)Ti(o,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ys(e),f!==null){for(t.flags|=128,Ti(o,!1),e=f.updateQueue,t.updateQueue=e,Js(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)fm(a,e),a=a.sibling;return Y(et,et.current&1|2),t.child}e=e.sibling}o.tail!==null&&cn()>tl&&(t.flags|=128,l=!0,Ti(o,!1),t.lanes=4194304)}else{if(!l)if(e=Ys(f),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Js(t,e),Ti(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Re)return Ge(t),null}else 2*cn()-o.renderingStartTime>tl&&a!==536870912&&(t.flags|=128,l=!0,Ti(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=cn(),t.sibling=null,e=et.current,Y(et,l?e&1|2:e&1),t):(Ge(t),null);case 22:case 23:return Mn(t),Au(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&Js(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&K(jr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Cn(We),Ge(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function b2(e,t){switch(fu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(We),wt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pa(t),null;case 13:if(Mn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(et),null;case 4:return wt(),null;case 10:return Cn(t.type),null;case 22:case 23:return Mn(t),Au(),e!==null&&K(jr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cn(We),null;case 25:return null;default:return null}}function z0(e,t){switch(fu(t),t.tag){case 3:Cn(We),wt();break;case 26:case 27:case 5:Pa(t);break;case 4:wt();break;case 13:Mn(t);break;case 19:K(et);break;case 10:Cn(t.type);break;case 22:case 23:Mn(t),Au(),e!==null&&K(jr);break;case 24:Cn(We)}}function xi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var f=a.create,p=a.inst;l=f(),p.destroy=l}a=a.next}while(a!==o)}}catch(_){Ue(t,t.return,_)}}function tr(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var p=l.inst,_=p.destroy;if(_!==void 0){p.destroy=void 0,o=t;var w=a,B=_;try{B()}catch(G){Ue(o,w,G)}}}l=l.next}while(l!==f)}}catch(G){Ue(t,t.return,G)}}function k0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{wm(t,a)}catch(l){Ue(e,e.return,l)}}}function I0(e,t,a){a.props=Ur(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ue(e,t,l)}}function Ai(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){Ue(e,t,o)}}function dn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Ue(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ue(e,t,o)}else a.current=null}function G0(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Ue(e,e.return,o)}}function Wu(e,t,a){try{var l=e.stateNode;G2(l,e.type,a,t),l[bt]=t}catch(o){Ue(e,e.return,o)}}function q0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ur(e.type)||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||q0(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&&ur(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 tc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=cl));else if(l!==4&&(l===27&&ur(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(tc(e,t,a),e=e.sibling;e!==null;)tc(e,t,a),e=e.sibling}function Ws(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&ur(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ws(e,t,a),e=e.sibling;e!==null;)Ws(e,t,a),e=e.sibling}function F0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ut(t,l,a),t[mt]=e,t[bt]=a}catch(f){Ue(e,e.return,f)}}var jn=!1,Xe=!1,nc=!1,V0=typeof WeakSet=="function"?WeakSet:Set,at=null;function E2(e,t){if(e=e.containerInfo,wc=yl,e=tm(e),eu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var p=0,_=-1,w=-1,B=0,G=0,V=e,L=null;t:for(;;){for(var z;V!==a||o!==0&&V.nodeType!==3||(_=p+o),V!==f||l!==0&&V.nodeType!==3||(w=p+l),V.nodeType===3&&(p+=V.nodeValue.length),(z=V.firstChild)!==null;)L=V,V=z;for(;;){if(V===e)break t;if(L===a&&++B===o&&(_=p),L===f&&++G===l&&(w=p),(z=V.nextSibling)!==null)break;V=L,L=V.parentNode}V=z}a=_===-1||w===-1?null:{start:_,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Oc={focusedElem:e,selectionRange:a},yl=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var fe=Ur(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(fe,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(oe){Ue(a,a.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Nc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function P0(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:nr(e,a),l&4&&xi(5,a);break;case 1:if(nr(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Ue(a,a.return,p)}else{var o=Ur(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Ue(a,a.return,p)}}l&64&&k0(a),l&512&&Ai(a,a.return);break;case 3:if(nr(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{wm(e,t)}catch(p){Ue(a,a.return,p)}}break;case 27:t===null&&l&4&&F0(a);case 26:case 5:nr(e,a),t===null&&l&4&&G0(a),l&512&&Ai(a,a.return);break;case 12:nr(e,a);break;case 13:nr(e,a),l&4&&X0(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=N2.bind(null,a),X2(e,a))));break;case 22:if(l=a.memoizedState!==null||jn,!l){t=t!==null&&t.memoizedState!==null||Xe,o=jn;var f=Xe;jn=l,(Xe=t)&&!f?rr(e,a,(a.subtreeFlags&8772)!==0):nr(e,a),jn=o,Xe=f}break;case 30:break;default:nr(e,a)}}function Z0(e){var t=e.alternate;t!==null&&(e.alternate=null,Z0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Lo(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 Ie=null,Tt=!1;function Ln(e,t,a){for(a=a.child;a!==null;)Y0(e,t,a),a=a.sibling}function Y0(e,t,a){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Za,a)}catch{}switch(a.tag){case 26:Xe||dn(a,t),Ln(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||dn(a,t);var l=Ie,o=Tt;ur(a.type)&&(Ie=a.stateNode,Tt=!1),Ln(e,t,a),ji(a.stateNode),Ie=l,Tt=o;break;case 5:Xe||dn(a,t);case 6:if(l=Ie,o=Tt,Ie=null,Ln(e,t,a),Ie=l,Tt=o,Ie!==null)if(Tt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(a.stateNode)}catch(f){Ue(a,t,f)}else try{Ie.removeChild(a.stateNode)}catch(f){Ue(a,t,f)}break;case 18:Ie!==null&&(Tt?(e=Ie,Lp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),qi(e)):Lp(Ie,a.stateNode));break;case 4:l=Ie,o=Tt,Ie=a.stateNode.containerInfo,Tt=!0,Ln(e,t,a),Ie=l,Tt=o;break;case 0:case 11:case 14:case 15:Xe||tr(2,a,t),Xe||tr(4,a,t),Ln(e,t,a);break;case 1:Xe||(dn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&I0(a,t,l)),Ln(e,t,a);break;case 21:Ln(e,t,a);break;case 22:Xe=(l=Xe)||a.memoizedState!==null,Ln(e,t,a),Xe=l;break;default:Ln(e,t,a)}}function X0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qi(e)}catch(a){Ue(t,t.return,a)}}function S2(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new V0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new V0),t;default:throw Error(s(435,e.tag))}}function rc(e,t){var a=S2(e);t.forEach(function(l){var o=M2.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function Mt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=e,p=t,_=p;e:for(;_!==null;){switch(_.tag){case 27:if(ur(_.type)){Ie=_.stateNode,Tt=!1;break e}break;case 5:Ie=_.stateNode,Tt=!1;break e;case 3:case 4:Ie=_.stateNode.containerInfo,Tt=!0;break e}_=_.return}if(Ie===null)throw Error(s(160));Y0(f,p,o),Ie=null,Tt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Q0(t,e),t=t.sibling}var tn=null;function Q0(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),Dt(e),l&4&&(tr(3,e,e.return),xi(3,e),tr(5,e,e.return));break;case 1:Mt(t,e),Dt(e),l&512&&(Xe||a===null||dn(a,a.return)),l&64&&jn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=tn;if(Mt(t,e),Dt(e),l&512&&(Xe||a===null||dn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Qa]||f[mt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),ut(f,l,a),f[mt]=e,nt(f),l=f;break e;case"link":var p=Fp("link","href",o).get(l+(a.href||""));if(p){for(var _=0;_<p.length;_++)if(f=p[_],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(_,1);break t}}f=o.createElement(l),ut(f,l,a),o.head.appendChild(f);break;case"meta":if(p=Fp("meta","content",o).get(l+(a.content||""))){for(_=0;_<p.length;_++)if(f=p[_],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(_,1);break t}}f=o.createElement(l),ut(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[mt]=e,nt(f),l=f}e.stateNode=l}else Vp(o,e.type,e.stateNode);else e.stateNode=qp(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Vp(o,e.type,e.stateNode):qp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Wu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Mt(t,e),Dt(e),l&512&&(Xe||a===null||dn(a,a.return)),a!==null&&l&4&&Wu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Mt(t,e),Dt(e),l&512&&(Xe||a===null||dn(a,a.return)),e.flags&32){o=e.stateNode;try{la(o,"")}catch(z){Ue(e,e.return,z)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Wu(e,o,a!==null?a.memoizedProps:o)),l&1024&&(nc=!0);break;case 6:if(Mt(t,e),Dt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(z){Ue(e,e.return,z)}}break;case 3:if(ml=null,o=tn,tn=hl(t.containerInfo),Mt(t,e),tn=o,Dt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(z){Ue(e,e.return,z)}nc&&(nc=!1,K0(e));break;case 4:l=tn,tn=hl(e.stateNode.containerInfo),Mt(t,e),Dt(e),tn=l;break;case 12:Mt(t,e),Dt(e);break;case 13:Mt(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(uc=cn()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rc(e,l)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,B=jn,G=Xe;if(jn=B||o,Xe=G||w,Mt(t,e),Xe=G,jn=B,Dt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||jn||Xe||Hr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(f=w.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{_=w.stateNode;var V=w.memoizedProps.style,L=V!=null&&V.hasOwnProperty("display")?V.display:null;_.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(z){Ue(w,w.return,z)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(z){Ue(w,w.return,z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,rc(e,a))));break;case 19:Mt(t,e),Dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rc(e,l)));break;case 30:break;case 21:break;default:Mt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(q0(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=ec(e);Ws(e,f,o);break;case 5:var p=a.stateNode;a.flags&32&&(la(p,""),a.flags&=-33);var _=ec(e);Ws(e,_,p);break;case 3:case 4:var w=a.stateNode.containerInfo,B=ec(e);tc(e,B,w);break;default:throw Error(s(161))}}catch(G){Ue(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function K0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;K0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function nr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)P0(e,t.alternate,t),t=t.sibling}function Hr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:tr(4,t,t.return),Hr(t);break;case 1:dn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&I0(t,t.return,a),Hr(t);break;case 27:ji(t.stateNode);case 26:case 5:dn(t,t.return),Hr(t);break;case 22:t.memoizedState===null&&Hr(t);break;case 30:Hr(t);break;default:Hr(t)}e=e.sibling}}function rr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,f=t,p=f.flags;switch(f.tag){case 0:case 11:case 15:rr(o,f,a),xi(4,f);break;case 1:if(rr(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){Ue(l,l.return,B)}if(l=f,o=l.updateQueue,o!==null){var _=l.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Am(w[o],_)}catch(B){Ue(l,l.return,B)}}a&&p&64&&k0(f),Ai(f,f.return);break;case 27:F0(f);case 26:case 5:rr(o,f,a),a&&l===null&&p&4&&G0(f),Ai(f,f.return);break;case 12:rr(o,f,a);break;case 13:rr(o,f,a),a&&p&4&&X0(o,f);break;case 22:f.memoizedState===null&&rr(o,f,a),Ai(f,f.return);break;case 30:break;default:rr(o,f,a)}t=t.sibling}}function ac(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ci(a))}function ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function mn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$0(e,t,a,l),t=t.sibling}function $0(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,a,l),o&2048&&xi(9,t);break;case 1:mn(e,t,a,l);break;case 3:mn(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(o&2048){mn(e,t,a,l),e=t.stateNode;try{var f=t.memoizedProps,p=f.id,_=f.onPostCommit;typeof _=="function"&&_(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Ue(t,t.return,w)}}else mn(e,t,a,l);break;case 13:mn(e,t,a,l);break;case 23:break;case 22:f=t.stateNode,p=t.alternate,t.memoizedState!==null?f._visibility&2?mn(e,t,a,l):wi(e,t):f._visibility&2?mn(e,t,a,l):(f._visibility|=2,wa(e,t,a,l,(t.subtreeFlags&10256)!==0)),o&2048&&ac(p,t);break;case 24:mn(e,t,a,l),o&2048&&ic(t.alternate,t);break;default:mn(e,t,a,l)}}function wa(e,t,a,l,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,p=t,_=a,w=l,B=p.flags;switch(p.tag){case 0:case 11:case 15:wa(f,p,_,w,o),xi(8,p);break;case 23:break;case 22:var G=p.stateNode;p.memoizedState!==null?G._visibility&2?wa(f,p,_,w,o):wi(f,p):(G._visibility|=2,wa(f,p,_,w,o)),o&&B&2048&&ac(p.alternate,p);break;case 24:wa(f,p,_,w,o),o&&B&2048&&ic(p.alternate,p);break;default:wa(f,p,_,w,o)}t=t.sibling}}function wi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:wi(a,l),o&2048&&ac(l.alternate,l);break;case 24:wi(a,l),o&2048&&ic(l.alternate,l);break;default:wi(a,l)}t=t.sibling}}var Oi=8192;function Oa(e){if(e.subtreeFlags&Oi)for(e=e.child;e!==null;)J0(e),e=e.sibling}function J0(e){switch(e.tag){case 26:Oa(e),e.flags&Oi&&e.memoizedState!==null&&lE(tn,e.memoizedState,e.memoizedProps);break;case 5:Oa(e);break;case 3:case 4:var t=tn;tn=hl(e.stateNode.containerInfo),Oa(e),tn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Oi,Oi=16777216,Oa(e),Oi=t):Oa(e));break;default:Oa(e)}}function W0(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 Ri(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];at=l,tp(l,e)}W0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ep(e),e=e.sibling}function ep(e){switch(e.tag){case 0:case 11:case 15:Ri(e),e.flags&2048&&tr(9,e,e.return);break;case 3:Ri(e);break;case 12:Ri(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,el(e)):Ri(e);break;default:Ri(e)}}function el(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];at=l,tp(l,e)}W0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:tr(8,t,t.return),el(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,el(t));break;default:el(t)}e=e.sibling}}function tp(e,t){for(;at!==null;){var a=at;switch(a.tag){case 0:case 11:case 15:tr(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ci(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,at=l;else e:for(a=e;at!==null;){l=at;var o=l.sibling,f=l.return;if(Z0(l),l===a){at=null;break e}if(o!==null){o.return=f,at=o;break e}at=f}}}var T2={getCacheForType:function(e){var t=pt(We),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},x2=typeof WeakMap=="function"?WeakMap:Map,Ne=0,ze=null,_e=null,Ae=0,Me=0,Bt=null,ar=!1,Ra=!1,sc=!1,Un=0,Ve=0,ir=0,zr=0,lc=0,Qt=0,Ca=0,Ci=null,xt=null,oc=!1,uc=0,tl=1/0,nl=null,sr=null,ot=0,lr=null,Na=null,Ma=0,cc=0,fc=null,np=null,Ni=0,hc=null;function jt(){if((Ne&2)!==0&&Ae!==0)return Ae&-Ae;if(I.T!==null){var e=va;return e!==0?e:_c()}return vd()}function rp(){Qt===0&&(Qt=(Ae&536870912)===0||Re?md():536870912);var e=Xt.current;return e!==null&&(e.flags|=32),Qt}function Lt(e,t,a){(e===ze&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Da(e,0),or(e,Ae,Qt,!1)),Xa(e,a),((Ne&2)===0||e!==ze)&&(e===ze&&((Ne&2)===0&&(zr|=a),Ve===4&&or(e,Ae,Qt,!1)),pn(e))}function ap(e,t,a){if((Ne&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Ya(e,t),o=l?O2(e,t):pc(e,t,!0),f=l;do{if(o===0){Ra&&!l&&or(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!A2(a)){o=pc(e,t,!1),f=!1;continue}if(o===2){if(f=t,e.errorRecoveryDisabledLanes&f)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var _=e;o=Ci;var w=_.current.memoizedState.isDehydrated;if(w&&(Da(_,p).flags|=256),p=pc(_,p,!1),p!==2){if(sc&&!w){_.errorRecoveryDisabledLanes|=f,zr|=f,o=4;break e}f=xt,xt=o,f!==null&&(xt===null?xt=f:xt.push.apply(xt,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){Da(e,0),or(e,t,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:or(l,t,Qt,!ar);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=uc+300-cn(),10<o)){if(or(l,t,Qt,!ar),ds(l,0,!0)!==0)break e;l.timeoutHandle=Bp(ip.bind(null,l,a,xt,nl,oc,t,Qt,zr,Ca,ar,f,2,-0,0),o);break e}ip(l,a,xt,nl,oc,t,Qt,zr,Ca,ar,f,0,-0,0)}}break}while(!0);pn(e)}function ip(e,t,a,l,o,f,p,_,w,B,G,V,L,z){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(Hi={stylesheets:null,count:0,unsuspend:sE},J0(t),V=oE(),V!==null)){e.cancelPendingCommit=V(hp.bind(null,e,t,f,a,l,o,p,_,w,G,1,L,z)),or(e,f,p,!B);return}hp(e,t,f,a,l,o,p,_,w)}function A2(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Ct(f(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function or(e,t,a,l){t&=~lc,t&=~zr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var f=31-Rt(o),p=1<<f;l[f]=-1,o&=~p}a!==0&&gd(e,a,t)}function rl(){return(Ne&6)===0?(Mi(0),!1):!0}function dc(){if(_e!==null){if(Me===0)var e=_e.return;else e=_e,Rn=Dr=null,Nu(e),xa=null,Ei=0,e=_e;for(;e!==null;)z0(e.alternate,e),e=e.return;_e=null}}function Da(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,F2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dc(),ze=e,_e=a=An(e.current,null),Ae=t,Me=0,Bt=null,ar=!1,Ra=Ya(e,t),sc=!1,Ca=Qt=lc=zr=ir=Ve=0,xt=Ci=null,oc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Rt(l),f=1<<o;t|=e[o],l&=~f}return Un=t,As(),a}function sp(e,t){ge=null,I.H=Vs,t===hi||t===js?(t=Tm(),Me=3):t===bm?(t=Tm(),Me=4):Me=t===x0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,_e===null&&(Ve=1,Qs(e,Vt(t,e.current)))}function lp(){var e=I.H;return I.H=Vs,e===null?Vs:e}function op(){var e=I.A;return I.A=T2,e}function mc(){Ve=4,ar||(Ae&4194048)!==Ae&&Xt.current!==null||(Ra=!0),(ir&134217727)===0&&(zr&134217727)===0||ze===null||or(ze,Ae,Qt,!1)}function pc(e,t,a){var l=Ne;Ne|=2;var o=lp(),f=op();(ze!==e||Ae!==t)&&(nl=null,Da(e,t)),t=!1;var p=Ve;e:do try{if(Me!==0&&_e!==null){var _=_e,w=Bt;switch(Me){case 8:dc(),p=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var B=Me;if(Me=0,Bt=null,Ba(e,_,w,B),a&&Ra){p=0;break e}break;default:B=Me,Me=0,Bt=null,Ba(e,_,w,B)}}w2(),p=Ve;break}catch(G){sp(e,G)}while(!0);return t&&e.shellSuspendCounter++,Rn=Dr=null,Ne=l,I.H=o,I.A=f,_e===null&&(ze=null,Ae=0,As()),p}function w2(){for(;_e!==null;)up(_e)}function O2(e,t){var a=Ne;Ne|=2;var l=lp(),o=op();ze!==e||Ae!==t?(nl=null,tl=cn()+500,Da(e,t)):Ra=Ya(e,t);e:do try{if(Me!==0&&_e!==null){t=_e;var f=Bt;t:switch(Me){case 1:Me=0,Bt=null,Ba(e,t,f,1);break;case 2:case 9:if(Em(f)){Me=0,Bt=null,cp(t);break}t=function(){Me!==2&&Me!==9||ze!==e||(Me=7),pn(e)},f.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Em(f)?(Me=0,Bt=null,cp(t)):(Me=0,Bt=null,Ba(e,t,f,7));break;case 5:var p=null;switch(_e.tag){case 26:p=_e.memoizedState;case 5:case 27:var _=_e;if(!p||Pp(p)){Me=0,Bt=null;var w=_.sibling;if(w!==null)_e=w;else{var B=_.return;B!==null?(_e=B,al(B)):_e=null}break t}}Me=0,Bt=null,Ba(e,t,f,5);break;case 6:Me=0,Bt=null,Ba(e,t,f,6);break;case 8:dc(),Ve=6;break e;default:throw Error(s(462))}}R2();break}catch(G){sp(e,G)}while(!0);return Rn=Dr=null,I.H=l,I.A=o,Ne=a,_e!==null?0:(ze=null,Ae=0,As(),Ve)}function R2(){for(;_e!==null&&!K1();)up(_e)}function up(e){var t=U0(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?al(e):_e=t}function cp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=N0(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=N0(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Nu(t);default:z0(a,t),t=_e=fm(t,Un),t=U0(a,t,Un)}e.memoizedProps=e.pendingProps,t===null?al(e):_e=t}function Ba(e,t,a,l){Rn=Dr=null,Nu(t),xa=null,Ei=0;var o=t.return;try{if(y2(e,o,t,a,Ae)){Ve=1,Qs(e,Vt(a,e.current)),_e=null;return}}catch(f){if(o!==null)throw _e=o,f;Ve=1,Qs(e,Vt(a,e.current)),_e=null;return}t.flags&32768?(Re||l===1?e=!0:Ra||(Ae&536870912)!==0?e=!1:(ar=e=!0,(l===2||l===9||l===3||l===6)&&(l=Xt.current,l!==null&&l.tag===13&&(l.flags|=16384))),fp(t,e)):al(t)}function al(e){var t=e;do{if((t.flags&32768)!==0){fp(t,ar);return}e=t.return;var a=_2(t.alternate,t,Un);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Ve===0&&(Ve=5)}function fp(e,t){do{var a=b2(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);Ve=6,_e=null}function hp(e,t,a,l,o,f,p,_,w){e.cancelPendingCommit=null;do il();while(ot!==0);if((Ne&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=iu,sb(e,a,f,p,_,w),e===ze&&(_e=ze=null,Ae=0),Na=t,lr=e,Ma=a,cc=f,fc=o,np=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,D2(cs,function(){return yp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=I.T,I.T=null,o=Q.p,Q.p=2,p=Ne,Ne|=4;try{E2(e,t,a)}finally{Ne=p,Q.p=o,I.T=l}}ot=1,dp(),mp(),pp()}}function dp(){if(ot===1){ot=0;var e=lr,t=Na,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null;var l=Q.p;Q.p=2;var o=Ne;Ne|=4;try{Q0(t,e);var f=Oc,p=tm(e.containerInfo),_=f.focusedElem,w=f.selectionRange;if(p!==_&&_&&_.ownerDocument&&em(_.ownerDocument.documentElement,_)){if(w!==null&&eu(_)){var B=w.start,G=w.end;if(G===void 0&&(G=B),"selectionStart"in _)_.selectionStart=B,_.selectionEnd=Math.min(G,_.value.length);else{var V=_.ownerDocument||document,L=V&&V.defaultView||window;if(L.getSelection){var z=L.getSelection(),fe=_.textContent.length,oe=Math.min(w.start,fe),Le=w.end===void 0?oe:Math.min(w.end,fe);!z.extend&&oe>Le&&(p=Le,Le=oe,oe=p);var N=Wd(_,oe),C=Wd(_,Le);if(N&&C&&(z.rangeCount!==1||z.anchorNode!==N.node||z.anchorOffset!==N.offset||z.focusNode!==C.node||z.focusOffset!==C.offset)){var D=V.createRange();D.setStart(N.node,N.offset),z.removeAllRanges(),oe>Le?(z.addRange(D),z.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),z.addRange(D))}}}}for(V=[],z=_;z=z.parentNode;)z.nodeType===1&&V.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<V.length;_++){var q=V[_];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}yl=!!wc,Oc=wc=null}finally{Ne=o,Q.p=l,I.T=a}}e.current=t,ot=2}}function mp(){if(ot===2){ot=0;var e=lr,t=Na,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=I.T,I.T=null;var l=Q.p;Q.p=2;var o=Ne;Ne|=4;try{P0(e,t.alternate,t)}finally{Ne=o,Q.p=l,I.T=a}}ot=3}}function pp(){if(ot===4||ot===3){ot=0,$1();var e=lr,t=Na,a=Ma,l=np;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Na=lr=null,gp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(sr=null),Bo(a),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Za,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=I.T,o=Q.p,Q.p=2,I.T=null;try{for(var f=e.onRecoverableError,p=0;p<l.length;p++){var _=l[p];f(_.value,{componentStack:_.stack})}}finally{I.T=t,Q.p=o}}(Ma&3)!==0&&il(),pn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===hc?Ni++:(Ni=0,hc=e):Ni=0,Mi(0)}}function gp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function il(e){return dp(),mp(),pp(),yp()}function yp(){if(ot!==5)return!1;var e=lr,t=cc;cc=0;var a=Bo(Ma),l=I.T,o=Q.p;try{Q.p=32>a?32:a,I.T=null,a=fc,fc=null;var f=lr,p=Ma;if(ot=0,Na=lr=null,Ma=0,(Ne&6)!==0)throw Error(s(331));var _=Ne;if(Ne|=4,ep(f.current),$0(f,f.current,p,a),Ne=_,Mi(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Za,f)}catch{}return!0}finally{Q.p=o,I.T=l,gp(e,t)}}function vp(e,t,a){t=Vt(a,t),t=Vu(e.stateNode,t,2),e=$n(e,t,2),e!==null&&(Xa(e,2),pn(e))}function Ue(e,t,a){if(e.tag===3)vp(e,e,a);else for(;t!==null;){if(t.tag===3){vp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(sr===null||!sr.has(l))){e=Vt(a,e),a=S0(2),l=$n(t,a,2),l!==null&&(T0(a,l,t,e),Xa(l,2),pn(l));break}}t=t.return}}function gc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new x2;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(sc=!0,o.add(a),e=C2.bind(null,e,t,a),t.then(e,e))}function C2(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ze===e&&(Ae&a)===a&&(Ve===4||Ve===3&&(Ae&62914560)===Ae&&300>cn()-uc?(Ne&2)===0&&Da(e,0):lc|=a,Ca===Ae&&(Ca=0)),pn(e)}function _p(e,t){t===0&&(t=pd()),e=ma(e,t),e!==null&&(Xa(e,t),pn(e))}function N2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_p(e,a)}function M2(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),_p(e,a)}function D2(e,t){return Sn(e,t)}var sl=null,ja=null,yc=!1,ll=!1,vc=!1,kr=0;function pn(e){e!==ja&&e.next===null&&(ja===null?sl=ja=e:ja=ja.next=e),ll=!0,yc||(yc=!0,j2())}function Mi(e,t){if(!vc&&ll){vc=!0;do for(var a=!1,l=sl;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var p=l.suspendedLanes,_=l.pingedLanes;f=(1<<31-Rt(42|e)+1)-1,f&=o&~(p&~_),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Tp(l,f))}else f=Ae,f=ds(l,l===ze?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||Ya(l,f)||(a=!0,Tp(l,f));l=l.next}while(a);vc=!1}}function B2(){bp()}function bp(){ll=yc=!1;var e=0;kr!==0&&(q2()&&(e=kr),kr=0);for(var t=cn(),a=null,l=sl;l!==null;){var o=l.next,f=Ep(l,t);f===0?(l.next=null,a===null?sl=o:a.next=o,o===null&&(ja=a)):(a=l,(e!==0||(f&3)!==0)&&(ll=!0)),l=o}Mi(e)}function Ep(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var p=31-Rt(f),_=1<<p,w=o[p];w===-1?((_&a)===0||(_&l)!==0)&&(o[p]=ib(_,t)):w<=t&&(e.expiredLanes|=_),f&=~_}if(t=ze,a=Ae,a=ds(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&No(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ya(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&No(l),Bo(a)){case 2:case 8:a=hd;break;case 32:a=cs;break;case 268435456:a=dd;break;default:a=cs}return l=Sp.bind(null,e),a=Sn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&No(l),e.callbackPriority=2,e.callbackNode=null,2}function Sp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(il()&&e.callbackNode!==a)return null;var l=Ae;return l=ds(e,e===ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(ap(e,l,t),Ep(e,cn()),e.callbackNode!=null&&e.callbackNode===a?Sp.bind(null,e):null)}function Tp(e,t){if(il())return null;ap(e,t,!0)}function j2(){V2(function(){(Ne&6)!==0?Sn(fd,B2):bp()})}function _c(){return kr===0&&(kr=md()),kr}function xp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vs(""+e)}function Ap(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function L2(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var f=xp((o[bt]||null).action),p=l.submitter;p&&(t=(t=p[bt]||null)?xp(t.formAction):p.getAttribute("formAction"),t!==null&&(f=t,p=null));var _=new Ss("action","action",null,l,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(kr!==0){var w=p?Ap(o,p):new FormData(o);ku(a,{pending:!0,data:w,method:o.method,action:f},null,w)}}else typeof f=="function"&&(_.preventDefault(),w=p?Ap(o,p):new FormData(o),ku(a,{pending:!0,data:w,method:o.method,action:f},f,w))},currentTarget:o}]})}}for(var bc=0;bc<au.length;bc++){var Ec=au[bc],U2=Ec.toLowerCase(),H2=Ec[0].toUpperCase()+Ec.slice(1);en(U2,"on"+H2)}en(am,"onAnimationEnd"),en(im,"onAnimationIteration"),en(sm,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(e2,"onTransitionRun"),en(t2,"onTransitionStart"),en(n2,"onTransitionCancel"),en(lm,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(" "),z2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Di));function wp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var p=l.length-1;0<=p;p--){var _=l[p],w=_.instance,B=_.currentTarget;if(_=_.listener,w!==f&&o.isPropagationStopped())break e;f=_,o.currentTarget=B;try{f(o)}catch(G){Xs(G)}o.currentTarget=null,f=w}else for(p=0;p<l.length;p++){if(_=l[p],w=_.instance,B=_.currentTarget,_=_.listener,w!==f&&o.isPropagationStopped())break e;f=_,o.currentTarget=B;try{f(o)}catch(G){Xs(G)}o.currentTarget=null,f=w}}}}function be(e,t){var a=t[jo];a===void 0&&(a=t[jo]=new Set);var l=e+"__bubble";a.has(l)||(Op(t,e,2,!1),a.add(l))}function Sc(e,t,a){var l=0;t&&(l|=4),Op(a,e,l,t)}var ol="_reactListening"+Math.random().toString(36).slice(2);function Tc(e){if(!e[ol]){e[ol]=!0,bd.forEach(function(a){a!=="selectionchange"&&(z2.has(a)||Sc(a,!1,e),Sc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ol]||(t[ol]=!0,Sc("selectionchange",!1,t))}}function Op(e,t,a,l){switch($p(t)){case 2:var o=fE;break;case 8:o=hE;break;default:o=Hc}a=o.bind(null,t,a,e),o=void 0,!Po||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function xc(e,t,a,l,o){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var _=l.stateNode.containerInfo;if(_===o)break;if(p===4)for(p=l.return;p!==null;){var w=p.tag;if((w===3||w===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;_!==null;){if(p=ta(_),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){l=f=p;continue e}_=_.parentNode}}l=l.return}jd(function(){var B=f,G=Fo(a),V=[];e:{var L=om.get(e);if(L!==void 0){var z=Ss,fe=e;switch(e){case"keypress":if(bs(a)===0)break e;case"keydown":case"keyup":z=Db;break;case"focusin":fe="focus",z=Qo;break;case"focusout":fe="blur",z=Qo;break;case"beforeblur":case"afterblur":z=Qo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=bb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Lb;break;case am:case im:case sm:z=Tb;break;case lm:z=Hb;break;case"scroll":case"scrollend":z=vb;break;case"wheel":z=kb;break;case"copy":case"cut":case"paste":z=Ab;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=kd;break;case"toggle":case"beforetoggle":z=Gb}var oe=(t&4)!==0,Le=!oe&&(e==="scroll"||e==="scrollend"),N=oe?L!==null?L+"Capture":null:L;oe=[];for(var C=B,D;C!==null;){var q=C;if(D=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||D===null||N===null||(q=$a(C,N),q!=null&&oe.push(Bi(C,q,D))),Le)break;C=C.return}0<oe.length&&(L=new z(L,fe,null,a,G),V.push({event:L,listeners:oe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",L&&a!==qo&&(fe=a.relatedTarget||a.fromElement)&&(ta(fe)||fe[ea]))break e;if((z||L)&&(L=G.window===G?G:(L=G.ownerDocument)?L.defaultView||L.parentWindow:window,z?(fe=a.relatedTarget||a.toElement,z=B,fe=fe?ta(fe):null,fe!==null&&(Le=c(fe),oe=fe.tag,fe!==Le||oe!==5&&oe!==27&&oe!==6)&&(fe=null)):(z=null,fe=B),z!==fe)){if(oe=Hd,q="onMouseLeave",N="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(oe=kd,q="onPointerLeave",N="onPointerEnter",C="pointer"),Le=z==null?L:Ka(z),D=fe==null?L:Ka(fe),L=new oe(q,C+"leave",z,a,G),L.target=Le,L.relatedTarget=D,q=null,ta(G)===B&&(oe=new oe(N,C+"enter",fe,a,G),oe.target=D,oe.relatedTarget=Le,q=oe),Le=q,z&&fe)t:{for(oe=z,N=fe,C=0,D=oe;D;D=La(D))C++;for(D=0,q=N;q;q=La(q))D++;for(;0<C-D;)oe=La(oe),C--;for(;0<D-C;)N=La(N),D--;for(;C--;){if(oe===N||N!==null&&oe===N.alternate)break t;oe=La(oe),N=La(N)}oe=null}else oe=null;z!==null&&Rp(V,L,z,oe,!1),fe!==null&&Le!==null&&Rp(V,Le,fe,oe,!0)}}e:{if(L=B?Ka(B):window,z=L.nodeName&&L.nodeName.toLowerCase(),z==="select"||z==="input"&&L.type==="file")var W=Yd;else if(Pd(L))if(Xd)W=$b;else{W=Qb;var ve=Xb}else z=L.nodeName,!z||z.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?B&&Go(B.elementType)&&(W=Yd):W=Kb;if(W&&(W=W(e,B))){Zd(V,W,a,G);break e}ve&&ve(e,L,B),e==="focusout"&&B&&L.type==="number"&&B.memoizedProps.value!=null&&Io(L,"number",L.value)}switch(ve=B?Ka(B):window,e){case"focusin":(Pd(ve)||ve.contentEditable==="true")&&(fa=ve,tu=B,ii=null);break;case"focusout":ii=tu=fa=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,nm(V,a,G);break;case"selectionchange":if(Wb)break;case"keydown":case"keyup":nm(V,a,G)}var ae;if($o)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else ca?Fd(e,a)&&(ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ce="onCompositionStart");ce&&(Id&&a.locale!=="ko"&&(ca||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&ca&&(ae=Ld()):(Yn=G,Zo="value"in Yn?Yn.value:Yn.textContent,ca=!0)),ve=ul(B,ce),0<ve.length&&(ce=new zd(ce,e,null,a,G),V.push({event:ce,listeners:ve}),ae?ce.data=ae:(ae=Vd(a),ae!==null&&(ce.data=ae)))),(ae=Fb?Vb(e,a):Pb(e,a))&&(ce=ul(B,"onBeforeInput"),0<ce.length&&(ve=new zd("onBeforeInput","beforeinput",null,a,G),V.push({event:ve,listeners:ce}),ve.data=ae)),L2(V,e,B,a,G)}wp(V,t)})}function Bi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ul(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=$a(e,a),o!=null&&l.unshift(Bi(e,o,f)),o=$a(e,t),o!=null&&l.push(Bi(e,o,f))),e.tag===3)return l;e=e.return}return[]}function La(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rp(e,t,a,l,o){for(var f=t._reactName,p=[];a!==null&&a!==l;){var _=a,w=_.alternate,B=_.stateNode;if(_=_.tag,w!==null&&w===l)break;_!==5&&_!==26&&_!==27||B===null||(w=B,o?(B=$a(a,f),B!=null&&p.unshift(Bi(a,B,w))):o||(B=$a(a,f),B!=null&&p.push(Bi(a,B,w)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var k2=/\r\n?/g,I2=/\u0000|\uFFFD/g;function Cp(e){return(typeof e=="string"?e:""+e).replace(k2,`
|
|
49
|
+
`).replace(I2,"")}function Np(e,t){return t=Cp(t),Cp(e)===t}function cl(){}function je(e,t,a,l,o,f){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||la(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&la(e,""+l);break;case"className":ps(e,"class",l);break;case"tabIndex":ps(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(e,a,l);break;case"style":Dd(e,l,f);break;case"data":if(t!=="object"){ps(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vs(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&je(e,t,"name",o.name,o,null),je(e,t,"formEncType",o.formEncType,o,null),je(e,t,"formMethod",o.formMethod,o,null),je(e,t,"formTarget",o.formTarget,o,null)):(je(e,t,"encType",o.encType,o,null),je(e,t,"method",o.method,o,null),je(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vs(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=cl);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=vs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":be("beforetoggle",e),be("toggle",e),ms(e,"popover",l);break;case"xlinkActuate":Tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Tn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Tn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Tn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Tn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ms(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=gb.get(a)||a,ms(e,a,l))}}function Ac(e,t,a,l,o,f){switch(a){case"style":Dd(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?la(e,l):(typeof l=="number"||typeof l=="bigint")&&la(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=cl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ed.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),f=e[bt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):ms(e,a,l)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:je(e,t,f,p,a,null)}}o&&je(e,t,"srcSet",a.srcSet,a,null),l&&je(e,t,"src",a.src,a,null);return;case"input":be("invalid",e);var _=f=p=o=null,w=null,B=null;for(l in a)if(a.hasOwnProperty(l)){var G=a[l];if(G!=null)switch(l){case"name":o=G;break;case"type":p=G;break;case"checked":w=G;break;case"defaultChecked":B=G;break;case"value":f=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:je(e,t,l,G,a,null)}}Rd(e,f,_,w,B,p,o,!1),gs(e);return;case"select":be("invalid",e),l=p=f=null;for(o in a)if(a.hasOwnProperty(o)&&(_=a[o],_!=null))switch(o){case"value":f=_;break;case"defaultValue":p=_;break;case"multiple":l=_;default:je(e,t,o,_,a,null)}t=f,a=p,e.multiple=!!l,t!=null?sa(e,!!l,t,!1):a!=null&&sa(e,!!l,a,!0);return;case"textarea":be("invalid",e),f=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(_=a[p],_!=null))switch(p){case"value":l=_;break;case"defaultValue":o=_;break;case"children":f=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:je(e,t,p,_,a,null)}Nd(e,l,o,f),gs(e);return;case"option":for(w in a)if(a.hasOwnProperty(w)&&(l=a[w],l!=null))switch(w){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:je(e,t,w,l,a,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<Di.length;l++)be(Di[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(l=a[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:je(e,t,B,l,a,null)}return;default:if(Go(t)){for(G in a)a.hasOwnProperty(G)&&(l=a[G],l!==void 0&&Ac(e,t,G,l,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!=null&&je(e,t,_,l,a,null))}function G2(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,p=null,_=null,w=null,B=null,G=null;for(z in a){var V=a[z];if(a.hasOwnProperty(z)&&V!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":w=V;default:l.hasOwnProperty(z)||je(e,t,z,null,l,V)}}for(var L in l){var z=l[L];if(V=a[L],l.hasOwnProperty(L)&&(z!=null||V!=null))switch(L){case"type":f=z;break;case"name":o=z;break;case"checked":B=z;break;case"defaultChecked":G=z;break;case"value":p=z;break;case"defaultValue":_=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:z!==V&&je(e,t,L,z,l,V)}}ko(e,p,_,w,B,G,f,o);return;case"select":z=p=_=L=null;for(f in a)if(w=a[f],a.hasOwnProperty(f)&&w!=null)switch(f){case"value":break;case"multiple":z=w;default:l.hasOwnProperty(f)||je(e,t,f,null,l,w)}for(o in l)if(f=l[o],w=a[o],l.hasOwnProperty(o)&&(f!=null||w!=null))switch(o){case"value":L=f;break;case"defaultValue":_=f;break;case"multiple":p=f;default:f!==w&&je(e,t,o,f,l,w)}t=_,a=p,l=z,L!=null?sa(e,!!a,L,!1):!!l!=!!a&&(t!=null?sa(e,!!a,t,!0):sa(e,!!a,a?[]:"",!1));return;case"textarea":z=L=null;for(_ in a)if(o=a[_],a.hasOwnProperty(_)&&o!=null&&!l.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:je(e,t,_,null,l,o)}for(p in l)if(o=l[p],f=a[p],l.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":L=o;break;case"defaultValue":z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==f&&je(e,t,p,o,l,f)}Cd(e,L,z);return;case"option":for(var fe in a)if(L=a[fe],a.hasOwnProperty(fe)&&L!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:je(e,t,fe,null,l,L)}for(w in l)if(L=l[w],z=a[w],l.hasOwnProperty(w)&&L!==z&&(L!=null||z!=null))switch(w){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:je(e,t,w,L,l,z)}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 oe in a)L=a[oe],a.hasOwnProperty(oe)&&L!=null&&!l.hasOwnProperty(oe)&&je(e,t,oe,null,l,L);for(B in l)if(L=l[B],z=a[B],l.hasOwnProperty(B)&&L!==z&&(L!=null||z!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:je(e,t,B,L,l,z)}return;default:if(Go(t)){for(var Le in a)L=a[Le],a.hasOwnProperty(Le)&&L!==void 0&&!l.hasOwnProperty(Le)&&Ac(e,t,Le,void 0,l,L);for(G in l)L=l[G],z=a[G],!l.hasOwnProperty(G)||L===z||L===void 0&&z===void 0||Ac(e,t,G,L,l,z);return}}for(var N in a)L=a[N],a.hasOwnProperty(N)&&L!=null&&!l.hasOwnProperty(N)&&je(e,t,N,null,l,L);for(V in l)L=l[V],z=a[V],!l.hasOwnProperty(V)||L===z||L==null&&z==null||je(e,t,V,L,l,z)}var wc=null,Oc=null;function fl(e){return e.nodeType===9?e:e.ownerDocument}function Mp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Dp(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 Rc(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 Cc=null;function q2(){var e=window.event;return e&&e.type==="popstate"?e===Cc?!1:(Cc=e,!0):(Cc=null,!1)}var Bp=typeof setTimeout=="function"?setTimeout:void 0,F2=typeof clearTimeout=="function"?clearTimeout:void 0,jp=typeof Promise=="function"?Promise:void 0,V2=typeof queueMicrotask=="function"?queueMicrotask:typeof jp<"u"?function(e){return jp.resolve(null).then(e).catch(P2)}:Bp;function P2(e){setTimeout(function(){throw e})}function ur(e){return e==="head"}function Lp(e,t){var a=t,l=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var p=e.ownerDocument;if(a&1&&ji(p.documentElement),a&2&&ji(p.body),a&4)for(a=p.head,ji(a),p=a.firstChild;p;){var _=p.nextSibling,w=p.nodeName;p[Qa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=_}}if(o===0){e.removeChild(f),qi(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);qi(t)}function Nc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Nc(a),Lo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Z2(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function Y2(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=nn(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function X2(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Dc=null;function Up(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Hp(e,t,a){switch(t=fl(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Lo(e)}var Kt=new Map,zp=new Set;function hl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=Q.d;Q.d={f:Q2,r:K2,D:$2,C:J2,L:W2,m:eE,X:nE,S:tE,M:rE};function Q2(){var e=Hn.f(),t=rl();return e||t}function K2(e){var t=na(e);t!==null&&t.tag===5&&t.type==="form"?a0(t):Hn.r(e)}var Ua=typeof document>"u"?null:document;function kp(e,t,a){var l=Ua;if(l&&typeof t=="string"&&t){var o=Ft(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),zp.has(o)||(zp.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),ut(t,"link",e),nt(t),l.head.appendChild(t)))}}function $2(e){Hn.D(e),kp("dns-prefetch",e,null)}function J2(e,t){Hn.C(e,t),kp("preconnect",e,t)}function W2(e,t,a){Hn.L(e,t,a);var l=Ua;if(l&&e&&t){var o='link[rel="preload"][as="'+Ft(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Ft(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Ft(a.imageSizes)+'"]')):o+='[href="'+Ft(e)+'"]';var f=o;switch(t){case"style":f=Ha(e);break;case"script":f=za(e)}Kt.has(f)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kt.set(f,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Li(f))||t==="script"&&l.querySelector(Ui(f))||(t=l.createElement("link"),ut(t,"link",e),nt(t),l.head.appendChild(t)))}}function eE(e,t){Hn.m(e,t);var a=Ua;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Ft(l)+'"][href="'+Ft(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=za(e)}if(!Kt.has(f)&&(e=v({rel:"modulepreload",href:e},t),Kt.set(f,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ui(f)))return}l=a.createElement("link"),ut(l,"link",e),nt(l),a.head.appendChild(l)}}}function tE(e,t,a){Hn.S(e,t,a);var l=Ua;if(l&&e){var o=ra(l).hoistableStyles,f=Ha(e);t=t||"default";var p=o.get(f);if(!p){var _={loading:0,preload:null};if(p=l.querySelector(Li(f)))_.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kt.get(f))&&Bc(e,a);var w=p=l.createElement("link");nt(w),ut(w,"link",e),w._p=new Promise(function(B,G){w.onload=B,w.onerror=G}),w.addEventListener("load",function(){_.loading|=1}),w.addEventListener("error",function(){_.loading|=2}),_.loading|=4,dl(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:_},o.set(f,p)}}}function nE(e,t){Hn.X(e,t);var a=Ua;if(a&&e){var l=ra(a).hoistableScripts,o=za(e),f=l.get(o);f||(f=a.querySelector(Ui(o)),f||(e=v({src:e,async:!0},t),(t=Kt.get(o))&&jc(e,t),f=a.createElement("script"),nt(f),ut(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function rE(e,t){Hn.M(e,t);var a=Ua;if(a&&e){var l=ra(a).hoistableScripts,o=za(e),f=l.get(o);f||(f=a.querySelector(Ui(o)),f||(e=v({src:e,async:!0,type:"module"},t),(t=Kt.get(o))&&jc(e,t),f=a.createElement("script"),nt(f),ut(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function Ip(e,t,a,l){var o=(o=ue.current)?hl(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ha(a.href),a=ra(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ha(a.href);var f=ra(o).hoistableStyles,p=f.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,p),(f=o.querySelector(Li(e)))&&!f._p&&(p.instance=f,p.state.loading=5),Kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kt.set(e,a),f||aE(o,e,a,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=za(a),a=ra(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ha(e){return'href="'+Ft(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function Gp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function aE(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",a),nt(t),e.head.appendChild(t))}function za(e){return'[src="'+Ft(e)+'"]'}function Ui(e){return"script[async]"+e}function qp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ft(a.href)+'"]');if(l)return t.instance=l,nt(l),l;var o=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),nt(l),ut(l,"style",o),dl(l,a.precedence,e),t.instance=l;case"stylesheet":o=Ha(a.href);var f=e.querySelector(Li(o));if(f)return t.state.loading|=4,t.instance=f,nt(f),f;l=Gp(a),(o=Kt.get(o))&&Bc(l,o),f=(e.ownerDocument||e).createElement("link"),nt(f);var p=f;return p._p=new Promise(function(_,w){p.onload=_,p.onerror=w}),ut(f,"link",l),t.state.loading|=4,dl(f,a.precedence,e),t.instance=f;case"script":return f=za(a.src),(o=e.querySelector(Ui(f)))?(t.instance=o,nt(o),o):(l=a,(o=Kt.get(f))&&(l=v({},a),jc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),nt(o),ut(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,dl(l,a.precedence,e));return t.instance}function dl(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,p=0;p<l.length;p++){var _=l[p];if(_.dataset.precedence===t)f=_;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ml=null;function Fp(e,t,a){if(ml===null){var l=new Map,o=ml=new Map;o.set(a,l)}else o=ml,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Qa]||f[mt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(t)||"";p=e+p;var _=l.get(p);_?_.push(f):l.set(p,[f])}}return l}function Vp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function iE(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Pp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Hi=null;function sE(){}function lE(e,t,a){if(Hi===null)throw Error(s(475));var l=Hi;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ha(a.href),f=e.querySelector(Li(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=pl.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=f,nt(f);return}f=e.ownerDocument||e,a=Gp(a),(o=Kt.get(o))&&Bc(a,o),f=f.createElement("link"),nt(f);var p=f;p._p=new Promise(function(_,w){p.onload=_,p.onerror=w}),ut(f,"link",a),t.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=pl.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function oE(){if(Hi===null)throw Error(s(475));var e=Hi;return e.stylesheets&&e.count===0&&Lc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Lc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function pl(){if(this.count--,this.count===0){if(this.stylesheets)Lc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gl=null;function Lc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gl=new Map,t.forEach(uE,e),gl=null,pl.call(e))}function uE(e,t){if(!(t.state.loading&4)){var a=gl.get(e);if(a)var l=a.get(null);else{a=new Map,gl.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var p=o[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),f=a.get(p)||l,f===l&&a.set(null,o),a.set(p,o),this.count++,l=pl.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var zi={$$typeof:b,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function cE(e,t,a,l,o,f,p,_){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.hiddenUpdates=Mo(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Zp(e,t,a,l,o,f,p,_,w,B,G,V){return e=new cE(e,t,a,p,_,w,B,V),t=1,f===!0&&(t|=24),f=Nt(3,null,null,t),e.current=f,f.stateNode=e,t=gu(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:t},bu(f),e}function Yp(e){return e?(e=pa,e):pa}function Xp(e,t,a,l,o,f){o=Yp(o),l.context===null?l.context=o:l.pendingContext=o,l=Kn(t),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=$n(e,l,t),a!==null&&(Lt(a,e,t),mi(a,e,t))}function Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Uc(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function Kp(e){if(e.tag===13){var t=ma(e,67108864);t!==null&&Lt(t,e,67108864),Uc(e,67108864)}}var yl=!0;function fE(e,t,a,l){var o=I.T;I.T=null;var f=Q.p;try{Q.p=2,Hc(e,t,a,l)}finally{Q.p=f,I.T=o}}function hE(e,t,a,l){var o=I.T;I.T=null;var f=Q.p;try{Q.p=8,Hc(e,t,a,l)}finally{Q.p=f,I.T=o}}function Hc(e,t,a,l){if(yl){var o=zc(l);if(o===null)xc(e,t,l,vl,a),Jp(e,l);else if(mE(o,e,t,a,l))l.stopPropagation();else if(Jp(e,l),t&4&&-1<dE.indexOf(e)){for(;o!==null;){var f=na(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=Sr(f.pendingLanes);if(p!==0){var _=f;for(_.pendingLanes|=2,_.entangledLanes|=2;p;){var w=1<<31-Rt(p);_.entanglements[1]|=w,p&=~w}pn(f),(Ne&6)===0&&(tl=cn()+500,Mi(0))}}break;case 13:_=ma(f,2),_!==null&&Lt(_,f,2),rl(),Uc(f,2)}if(f=zc(l),f===null&&xc(e,t,l,vl,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else xc(e,t,l,null,a)}}function zc(e){return e=Fo(e),kc(e)}var vl=null;function kc(e){if(vl=null,e=ta(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vl=e,null}function $p(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(J1()){case fd:return 2;case hd:return 8;case cs:case W1:return 32;case dd:return 268435456;default:return 32}default:return 32}}var Ic=!1,cr=null,fr=null,hr=null,ki=new Map,Ii=new Map,dr=[],dE="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 Jp(e,t){switch(e){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":hr=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(t.pointerId)}}function Gi(e,t,a,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},t!==null&&(t=na(t),t!==null&&Kp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function mE(e,t,a,l,o){switch(t){case"focusin":return cr=Gi(cr,e,t,a,l,o),!0;case"dragenter":return fr=Gi(fr,e,t,a,l,o),!0;case"mouseover":return hr=Gi(hr,e,t,a,l,o),!0;case"pointerover":var f=o.pointerId;return ki.set(f,Gi(ki.get(f)||null,e,t,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Ii.set(f,Gi(Ii.get(f)||null,e,t,a,l,o)),!0}return!1}function Wp(e){var t=ta(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,lb(e.priority,function(){if(a.tag===13){var l=jt();l=Do(l);var o=ma(a,l);o!==null&&Lt(o,a,l),Uc(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);qo=l,a.target.dispatchEvent(l),qo=null}else return t=na(a),t!==null&&Kp(t),e.blockedOn=a,!1;t.shift()}return!0}function eg(e,t,a){_l(e)&&a.delete(t)}function pE(){Ic=!1,cr!==null&&_l(cr)&&(cr=null),fr!==null&&_l(fr)&&(fr=null),hr!==null&&_l(hr)&&(hr=null),ki.forEach(eg),Ii.forEach(eg)}function bl(e,t){e.blockedOn===t&&(e.blockedOn=null,Ic||(Ic=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,pE)))}var El=null;function tg(e){El!==e&&(El=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){El===e&&(El=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(kc(l||a)===null)continue;break}var f=na(a);f!==null&&(e.splice(t,3),t-=3,ku(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function qi(e){function t(w){return bl(w,e)}cr!==null&&bl(cr,e),fr!==null&&bl(fr,e),hr!==null&&bl(hr,e),ki.forEach(t),Ii.forEach(t);for(var a=0;a<dr.length;a++){var l=dr[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<dr.length&&(a=dr[0],a.blockedOn===null);)Wp(a),a.blockedOn===null&&dr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],p=o[bt]||null;if(typeof f=="function")p||tg(a);else if(p){var _=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[bt]||null)_=p.formAction;else if(kc(o)!==null)continue}else _=p.action;typeof _=="function"?a[l+1]=_:(a.splice(l,3),l-=3),tg(a)}}}function Gc(e){this._internalRoot=e}Sl.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=jt();Xp(a,l,e,t,null,null)},Sl.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xp(e.current,2,null,e,null,null),rl(),t[ea]=null}};function Sl(e){this._internalRoot=e}Sl.prototype.unstable_scheduleHydration=function(e){if(e){var t=vd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<dr.length&&t!==0&&t<dr[a].priority;a++);dr.splice(a,0,e),a===0&&Wp(e)}};var ng=r.version;if(ng!=="19.1.0")throw Error(s(527,ng,"19.1.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var gE={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tl.isDisabled&&Tl.supportsFiber)try{Za=Tl.inject(gE),Ot=Tl}catch{}}return Vi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,l="",o=v0,f=_0,p=b0,_=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(_=t.unstable_transitionCallbacks)),t=Zp(e,1,!1,null,null,a,l,o,f,p,_,null),e[ea]=t.current,Tc(e),new Gc(t)},Vi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=v0,p=_0,_=b0,w=null,B=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(w=a.unstable_transitionCallbacks),a.formState!==void 0&&(B=a.formState)),t=Zp(e,1,!0,t,a??null,l,o,f,p,_,w,B),t.context=Yp(null),a=t.current,l=jt(),l=Do(l),o=Kn(l),o.callback=null,$n(a,o,l),a=l,t.current.lanes=a,Xa(t,a),pn(t),e[ea]=t.current,Tc(e),new Sl(t)},Vi.version="19.1.0",Vi}var hg;function wE(){if(hg)return Fc.exports;hg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Fc.exports=AE(),Fc.exports}var OE=wE(),H=qa();const Xv=po(H);var Xc={exports:{}},Qc={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* use-sync-external-store-with-selector.production.js
|
|
52
52
|
*
|
|
@@ -54,17 +54,17 @@ Error generating stack: `+a.message+`
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var dg;function RE(){if(dg)return Qc;dg=1;var n=qa();function r(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,u=n.useRef,c=n.useEffect,h=n.useMemo,d=n.useDebugValue;return Qc.useSyncExternalStoreWithSelector=function(m,g,v,
|
|
57
|
+
*/var dg;function RE(){if(dg)return Qc;dg=1;var n=qa();function r(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,u=n.useRef,c=n.useEffect,h=n.useMemo,d=n.useDebugValue;return Qc.useSyncExternalStoreWithSelector=function(m,g,v,S,A){var U=u(null);if(U.current===null){var M={hasValue:!1,value:null};U.current=M}else M=U.current;U=h(function(){function j(T){if(!E){if(E=!0,x=T,T=S(T),A!==void 0&&M.hasValue){var k=M.value;if(A(k,T))return b=k}return b=T}if(k=b,i(x,T))return k;var Z=S(T);return A!==void 0&&A(k,Z)?(x=T,k):(x=T,b=Z)}var E=!1,x,b,O=v===void 0?null:v;return[function(){return j(g())},O===null?void 0:function(){return j(O())}]},[g,v,S,A]);var F=s(m,U[0],U[1]);return c(function(){M.hasValue=!0,M.value=F},[F]),d(F),F},Qc}var mg;function CE(){return mg||(mg=1,Xc.exports=RE()),Xc.exports}var NE=CE(),ME=H.version.startsWith("19"),DE=Symbol.for(ME?"react.transitional.element":"react.element"),BE=Symbol.for("react.portal"),jE=Symbol.for("react.fragment"),LE=Symbol.for("react.strict_mode"),UE=Symbol.for("react.profiler"),HE=Symbol.for("react.consumer"),zE=Symbol.for("react.context"),Qv=Symbol.for("react.forward_ref"),kE=Symbol.for("react.suspense"),IE=Symbol.for("react.suspense_list"),Rh=Symbol.for("react.memo"),GE=Symbol.for("react.lazy"),qE=Qv,FE=Rh;function VE(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case DE:switch(n=n.type,n){case jE:case UE:case LE:case kE:case IE:return n;default:switch(n=n&&n.$$typeof,n){case zE:case Qv:case GE:case Rh:return n;case HE:return n;default:return r}}case BE:return r}}}function PE(n){return VE(n)===Rh}function ZE(n,r,i,s,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:h}){let d=!1,m,g,v,S,A;function U(x,b){return m=x,g=b,v=n(m,g),S=r(s,g),A=i(v,S,g),d=!0,A}function M(){return v=n(m,g),r.dependsOnOwnProps&&(S=r(s,g)),A=i(v,S,g),A}function F(){return n.dependsOnOwnProps&&(v=n(m,g)),r.dependsOnOwnProps&&(S=r(s,g)),A=i(v,S,g),A}function j(){const x=n(m,g),b=!h(x,v);return v=x,b&&(A=i(v,S,g)),A}function E(x,b){const O=!c(b,g),T=!u(x,m,b,g);return m=x,g=b,O&&T?M():O?F():T?j():A}return function(b,O){return d?E(b,O):U(b,O)}}function YE(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...u}){const c=r(n,u),h=i(n,u),d=s(n,u);return ZE(c,h,d,n,u)}function XE(n,r){const i={};for(const s in n){const u=n[s];typeof u=="function"&&(i[s]=(...c)=>r(u(...c)))}return i}function Jf(n){return function(i){const s=n(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function pg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function Kv(n,r){return function(s,{displayName:u}){const c=function(d,m){return c.dependsOnOwnProps?c.mapToProps(d,m):c.mapToProps(d,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(d,m){c.mapToProps=n,c.dependsOnOwnProps=pg(n);let g=c(d,m);return typeof g=="function"&&(c.mapToProps=g,c.dependsOnOwnProps=pg(g),g=c(d,m)),g},c}}function Ch(n,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function QE(n){return n&&typeof n=="object"?Jf(r=>XE(n,r)):n?typeof n=="function"?Kv(n):Ch(n,"mapDispatchToProps"):Jf(r=>({dispatch:r}))}function KE(n){return n?typeof n=="function"?Kv(n):Ch(n,"mapStateToProps"):Jf(()=>({}))}function $E(n,r,i){return{...i,...n,...r}}function JE(n){return function(i,{displayName:s,areMergedPropsEqual:u}){let c=!1,h;return function(m,g,v){const S=n(m,g,v);return c?u(S,h)||(h=S):(c=!0,h=S),h}}}function WE(n){return n?typeof n=="function"?JE(n):Ch(n,"mergeProps"):()=>$E}function eS(n){n()}function tS(){let n=null,r=null;return{clear(){n=null,r=null},notify(){eS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=n;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:n=u,function(){!s||n===null||(s=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var gg={notify(){},get:()=>[]};function $v(n,r){let i,s=gg,u=0,c=!1;function h(F){v();const j=s.subscribe(F);let E=!1;return()=>{E||(E=!0,j(),S())}}function d(){s.notify()}function m(){M.onStateChange&&M.onStateChange()}function g(){return c}function v(){u++,i||(i=r?r.addNestedSub(m):n.subscribe(m),s=tS())}function S(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=gg)}function A(){c||(c=!0,v())}function U(){c&&(c=!1,S())}const M={addNestedSub:h,notifyNestedSubs:d,handleChangeWrapper:m,isSubscribed:g,trySubscribe:A,tryUnsubscribe:U,getListeners:()=>s};return M}var nS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rS=nS(),aS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",iS=aS(),sS=()=>rS||iS?H.useLayoutEffect:H.useEffect,io=sS();function yg(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function Kc(n,r){if(yg(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;const i=Object.keys(n),s=Object.keys(r);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!yg(n[i[u]],r[i[u]]))return!1;return!0}var lS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},uS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cS={[qE]:uS,[FE]:Jv};function vg(n){return PE(n)?Jv:cS[n.$$typeof]||lS}var fS=Object.defineProperty,hS=Object.getOwnPropertyNames,_g=Object.getOwnPropertySymbols,dS=Object.getOwnPropertyDescriptor,mS=Object.getPrototypeOf,bg=Object.prototype;function Wf(n,r){if(typeof r!="string"){if(bg){const c=mS(r);c&&c!==bg&&Wf(n,c)}let i=hS(r);_g&&(i=i.concat(_g(r)));const s=vg(n),u=vg(r);for(let c=0;c<i.length;++c){const h=i[c];if(!oS[h]&&!(u&&u[h])&&!(s&&s[h])){const d=dS(r,h);try{fS(n,h,d)}catch{}}}}return n}var pS=Symbol.for("react-redux-context"),gS=typeof globalThis<"u"?globalThis:{};function yS(){if(!H.createContext)return{};const n=gS[pS]??=new Map;let r=n.get(H.createContext);return r||(r=H.createContext(null),n.set(H.createContext,r)),r}var Fn=yS(),vS=[null,null];function _S(n,r,i){io(()=>n(...r),i)}function bS(n,r,i,s,u,c){n.current=s,i.current=!1,u.current&&(u.current=null,c())}function ES(n,r,i,s,u,c,h,d,m,g,v){if(!n)return()=>{};let S=!1,A=null;const U=()=>{if(S||!d.current)return;const F=r.getState();let j,E;try{j=s(F,u.current)}catch(x){E=x,A=x}E||(A=null),j===c.current?h.current||g():(c.current=j,m.current=j,h.current=!0,v())};return i.onStateChange=U,i.trySubscribe(),U(),()=>{if(S=!0,i.tryUnsubscribe(),i.onStateChange=null,A)throw A}}function SS(n,r){return n===r}function TS(n,r,i,{pure:s,areStatesEqual:u=SS,areOwnPropsEqual:c=Kc,areStatePropsEqual:h=Kc,areMergedPropsEqual:d=Kc,forwardRef:m=!1,context:g=Fn}={}){const v=g,S=KE(n),A=QE(r),U=WE(i),M=!!n;return j=>{const E=j.displayName||j.name||"Component",x=`Connect(${E})`,b={shouldHandleStateChanges:M,displayName:x,wrappedComponentName:E,WrappedComponent:j,initMapStateToProps:S,initMapDispatchToProps:A,initMergeProps:U,areStatesEqual:u,areStatePropsEqual:h,areOwnPropsEqual:c,areMergedPropsEqual:d};function O(Z){const[$,se,re]=H.useMemo(()=>{const{reactReduxForwardedRef:dt,...Sn}=Z;return[Z.context,dt,Sn]},[Z]),J=H.useMemo(()=>{let dt=v;return $?.Consumer,dt},[$,v]),ie=H.useContext(J),le=!!Z.store&&!!Z.store.getState&&!!Z.store.dispatch,Ze=!!ie&&!!ie.store,ye=le?Z.store:ie.store,I=Ze?ie.getServerState:ye.getState,Q=H.useMemo(()=>YE(ye.dispatch,b),[ye]),[ee,Se]=H.useMemo(()=>{if(!M)return vS;const dt=$v(ye,le?void 0:ie.subscription),Sn=dt.notifyNestedSubs.bind(dt);return[dt,Sn]},[ye,le,ie]),R=H.useMemo(()=>le?ie:{...ie,subscription:ee},[le,ie,ee]),P=H.useRef(void 0),K=H.useRef(re),Y=H.useRef(void 0),te=H.useRef(!1),pe=H.useRef(!1),ue=H.useRef(void 0);io(()=>(pe.current=!0,()=>{pe.current=!1}),[]);const tt=H.useMemo(()=>()=>Y.current&&re===K.current?Y.current:Q(ye.getState(),re),[ye,re]),He=H.useMemo(()=>Sn=>ee?ES(M,ye,ee,Q,K,P,te,pe,Y,Se,Sn):()=>{},[ee]);_S(bS,[K,P,te,re,Y,Se]);let wt;try{wt=H.useSyncExternalStore(He,tt,I?()=>Q(I(),re):tt)}catch(dt){throw ue.current&&(dt.message+=`
|
|
58
58
|
The error may be correlated with this previous error:
|
|
59
59
|
${ue.current.stack}
|
|
60
60
|
|
|
61
|
-
`),dt}io(()=>{ue.current=void 0,Y.current=void 0,P.current=wt});const Er=
|
|
61
|
+
`),dt}io(()=>{ue.current=void 0,Y.current=void 0,P.current=wt});const Er=H.useMemo(()=>H.createElement(j,{...wt,ref:se}),[se,j,wt]);return H.useMemo(()=>M?H.createElement(J.Provider,{value:R},Er):Er,[J,Er,R])}const k=H.memo(O);if(k.WrappedComponent=j,k.displayName=O.displayName=x,m){const $=H.forwardRef(function(re,J){return H.createElement(k,{...re,reactReduxForwardedRef:J})});return $.displayName=x,$.WrappedComponent=j,Wf($,j)}return Wf(k,j)}}var xS=TS;function AS(n){const{children:r,context:i,serverState:s,store:u}=n,c=H.useMemo(()=>{const m=$v(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),h=H.useMemo(()=>u.getState(),[u]);io(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),h!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,h]);const d=i||Fn;return H.createElement(d.Provider,{value:c},r)}var wS=AS;function Nh(n=Fn){return function(){return H.useContext(n)}}var Wv=Nh();function e_(n=Fn){const r=n===Fn?Wv:Nh(n),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var OS=e_();function RS(n=Fn){const r=n===Fn?OS:e_(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var CS=RS(),NS=(n,r)=>n===r;function MS(n=Fn){const r=n===Fn?Wv:Nh(n),i=(s,u={})=>{const{equalityFn:c=NS}=typeof u=="function"?{equalityFn:u}:u,h=r(),{store:d,subscription:m,getServerState:g}=h;H.useRef(!0);const v=H.useCallback({[s.name](A){return s(A)}}[s.name],[s]),S=NE.useSyncExternalStoreWithSelector(m.addNestedSub,d.getState,g||d.getState,v,c);return H.useDebugValue(S),S};return Object.assign(i,{withTypes:()=>i}),i}var DS=MS(),$c={exports:{}};/*!
|
|
62
62
|
Copyright (c) 2018 Jed Watson.
|
|
63
63
|
Licensed under the MIT License (MIT), see
|
|
64
64
|
http://jedwatson.github.io/classnames
|
|
65
|
-
*/var Eg;function BS(){return Eg||(Eg=1,function(n){(function(){var r={}.hasOwnProperty;function i(){for(var c="",h=0;h<arguments.length;h++){var d=arguments[h];d&&(c=u(c,s(d)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var h="";for(var d in c)r.call(c,d)&&c[d]&&(h=u(h,d));return h}function u(c,h){return h?c?c+" "+h:c+h:c}n.exports?(i.default=i,n.exports=i):window.classNames=i})()}($c)),$c.exports}var jS=BS();const X=po(jS);var eh=function(n,r){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},eh(n,r)};function Jt(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");eh(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var ne=function(){return ne=Object.assign||function(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},ne.apply(this,arguments)};function go(n,r){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(i[s[u]]=n[s[u]]);return i}function vn(n,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return n.concat(c||Array.prototype.slice.call(r))}function gn(n,r){var i=r&&r.cache?r.cache:GS,s=r&&r.serializer?r.serializer:kS,u=r&&r.strategy?r.strategy:HS;return u(n,{cache:i,serializer:s})}function LS(n){return n==null||typeof n=="number"||typeof n=="boolean"}function US(n,r,i,s){var u=LS(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=n.call(this,s),r.set(u,c)),c}function t_(n,r,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),c=r.get(u);return typeof c>"u"&&(c=n.apply(this,s),r.set(u,c)),c}function n_(n,r,i,s,u){return i.bind(r,n,s,u)}function HS(n,r){var i=n.length===1?US:t_;return n_(n,this,i,r.cache.create(),r.serializer)}function zS(n,r){return n_(n,this,t_,r.cache.create(),r.serializer)}var kS=function(){return JSON.stringify(arguments)},IS=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(r){return this.cache[r]},n.prototype.set=function(r,i){this.cache[r]=i},n}(),GS={create:function(){return new IS}},yn={variadic:zS},Te;(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"})(Te||(Te={}));var ke;(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"})(ke||(ke={}));var Ia;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ia||(Ia={}));function Sg(n){return n.type===ke.literal}function qS(n){return n.type===ke.argument}function r_(n){return n.type===ke.number}function a_(n){return n.type===ke.date}function i_(n){return n.type===ke.time}function s_(n){return n.type===ke.select}function l_(n){return n.type===ke.plural}function FS(n){return n.type===ke.pound}function o_(n){return n.type===ke.tag}function u_(n){return!!(n&&typeof n=="object"&&n.type===Ia.number)}function th(n){return!!(n&&typeof n=="object"&&n.type===Ia.dateTime)}var c_=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,VS=/(?:[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 PS(n){var r={};return n.replace(VS,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var ZS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function YS(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(ZS).filter(function(A){return A.length>0}),i=[],s=0,u=r;s<u.length;s++){var c=u[s],h=c.split("/");if(h.length===0)throw new Error("Invalid number skeleton");for(var d=h[0],m=h.slice(1),g=0,v=m;g<v.length;g++){var T=v[g];if(T.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function XS(n){return n.replace(/^(.*?)-/,"")}var Tg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,f_=/^(@+)?(\+|#+)?[rs]?$/g,QS=/(\*)(0+)|(#+)(0+)|(0+)/g,h_=/^(0+)$/;function xg(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(f_,function(i,s,u){return typeof u!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):u==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),r}function d_(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 KS(n){var r;if(n[0]==="E"&&n[1]==="E"?(r={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(r={notation:"scientific"},n=n.slice(1)),r){var i=n.slice(0,2);if(i==="+!"?(r.signDisplay="always",n=n.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",n=n.slice(2)),!h_.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function Ag(n){var r={},i=d_(n);return i||r}function $S(n){for(var r={},i=0,s=n;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=XS(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ne(ne(ne({},r),{notation:"scientific"}),u.options.reduce(function(m,g){return ne(ne({},m),Ag(g))},{}));continue;case"engineering":r=ne(ne(ne({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return ne(ne({},m),Ag(g))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(QS,function(m,g,v,T,A,j){if(g)r.minimumIntegerDigits=v.length;else{if(T&&A)throw new Error("We currently do not support maximum integer digits");if(j)throw new Error("We currently do not support exact integer digits")}return""});continue}if(h_.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(Tg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(Tg,function(m,g,v,T,A,j){return v==="*"?r.minimumFractionDigits=g.length:T&&T[0]==="#"?r.maximumFractionDigits=T.length:A&&j?(r.minimumFractionDigits=A.length,r.maximumFractionDigits=A.length+j.length):(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length),""});var c=u.options[0];c==="w"?r=ne(ne({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=ne(ne({},r),xg(c)));continue}if(f_.test(u.stem)){r=ne(ne({},r),xg(u.stem));continue}var h=d_(u.stem);h&&(r=ne(ne({},r),h));var d=KS(u.stem);d&&(r=ne(ne({},r),d))}return r}var Al={"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 JS(n,r){for(var i="",s=0;s<n.length;s++){var u=n.charAt(s);if(u==="j"){for(var c=0;s+1<n.length&&n.charAt(s+1)===u;)c++,s++;var h=1+(c&1),d=c<2?1:3+(c>>1),m="a",g=WS(r);for((g=="H"||g=="k")&&(d=0);d-- >0;)i+=m;for(;h-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function WS(n){var r=n.hourCycle;if(r===void 0&&n.hourCycles&&n.hourCycles.length&&(r=n.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,s;i!=="root"&&(s=n.maximize().region);var u=Al[s||""]||Al[i||""]||Al["".concat(i,"-001")]||Al["001"];return u[0]}var Jc,eT=new RegExp("^".concat(c_.source,"*")),tT=new RegExp("".concat(c_.source,"*$"));function we(n,r){return{start:n,end:r}}var nT=!!String.prototype.startsWith&&"_a".startsWith("a",1),rT=!!String.fromCodePoint,aT=!!Object.fromEntries,iT=!!String.prototype.codePointAt,sT=!!String.prototype.trimStart,lT=!!String.prototype.trimEnd,oT=!!Number.isSafeInteger,uT=oT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},nh=!0;try{var cT=p_("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nh=((Jc=cT.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{nh=!1}var wg=nT?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},rh=rT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",u=r.length,c=0,h;u>c;){if(h=r[c++],h>1114111)throw RangeError(h+" is not a valid code point");s+=h<65536?String.fromCharCode(h):String.fromCharCode(((h-=65536)>>10)+55296,h%1024+56320)}return s},Og=aT?Object.fromEntries:function(r){for(var i={},s=0,u=r;s<u.length;s++){var c=u[s],h=c[0],d=c[1];i[h]=d}return i},m_=iT?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===s||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},fT=sT?function(r){return r.trimStart()}:function(r){return r.replace(eT,"")},hT=lT?function(r){return r.trimEnd()}:function(r){return r.replace(tT,"")};function p_(n,r){return new RegExp(n,r)}var ah;if(nh){var Rg=p_("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ah=function(r,i){var s;Rg.lastIndex=i;var u=Rg.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else ah=function(r,i){for(var s=[];;){var u=m_(r,i);if(u===void 0||g_(u)||gT(u))break;s.push(u),i+=u>=65536?2:1}return rh.apply(void 0,s)};var dT=function(){function n(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(r,i,s){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var h=this.parseArgument(r,s);if(h.err)return h;u.push(h.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),u.push({type:ke.pound,location:we(d,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(Te.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&ih(this.peek()||0)){var h=this.parseTag(r,i);if(h.err)return h;u.push(h.val)}else{var h=this.parseLiteral(r,i);if(h.err)return h;u.push(h.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ke.literal,value:"<".concat(u,"/>"),location:we(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var h=c.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ih(this.char()))return this.error(Te.INVALID_TAG,we(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(Te.UNMATCHED_CLOSING_TAG,we(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ke.tag,value:u,children:h,location:we(s,this.clonePosition())},err:null}:this.error(Te.INVALID_TAG,we(d,this.clonePosition())))}else return this.error(Te.UNCLOSED_TAG,we(s,this.clonePosition()))}else return this.error(Te.INVALID_TAG,we(s,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&pT(this.char());)this.bump();return this.message.slice(r,this.offset())},n.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var h=this.tryParseUnquoted(r,i);if(h){u+=h;continue}var d=this.tryParseLeftAngleBracket();if(d){u+=d;continue}break}var m=we(s,this.clonePosition());return{val:{type:ke.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!mT(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return rh.apply(void 0,i)},n.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),rh(s))},n.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Te.EMPTY_ARGUMENT,we(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(Te.MALFORMED_ARGUMENT,we(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ke.argument,value:u,location:we(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition())):this.parseArgumentOptions(r,i,u,s);default:return this.error(Te.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=ah(this.message,i),u=i+s.length;this.bumpTo(u);var c=this.clonePosition(),h=we(r,c);return{value:s,location:h}},n.prototype.parseArgumentOptions=function(r,i,s,u){var c,h=this.clonePosition(),d=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(d){case"":return this.error(Te.EXPECT_ARGUMENT_TYPE,we(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),T=this.parseSimpleArgStyleIfPossible();if(T.err)return T;var A=hT(T.val);if(A.length===0)return this.error(Te.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var j=we(v,this.clonePosition());g={style:A,styleLocation:j}}var M=this.tryParseArgumentClose(u);if(M.err)return M;var F=we(u,this.clonePosition());if(g&&wg(g?.style,"::",0)){var k=fT(g.style.slice(2));if(d==="number"){var T=this.parseNumberSkeletonFromString(k,g.styleLocation);return T.err?T:{val:{type:ke.number,value:s,location:F,style:T.val},err:null}}else{if(k.length===0)return this.error(Te.EXPECT_DATE_TIME_SKELETON,F);var E=k;this.locale&&(E=JS(k,this.locale));var A={type:Ia.dateTime,pattern:E,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?PS(E):{}},x=d==="date"?ke.date:ke.time;return{val:{type:x,value:s,location:F,style:A},err:null}}}return{val:{type:d==="number"?ke.number:d==="date"?ke.date:ke.time,value:s,location:F,style:(c=g?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Te.EXPECT_SELECT_ARGUMENT_OPTIONS,we(b,ne({},b)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),S=0;if(d!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(Te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var T=this.tryParseDecimalInteger(Te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Te.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(T.err)return T;this.bumpSpace(),O=this.parseIdentifierIfPossible(),S=T.val}var z=this.tryParsePluralOrSelectOptions(r,d,i,O);if(z.err)return z;var M=this.tryParseArgumentClose(u);if(M.err)return M;var Z=we(u,this.clonePosition());return d==="select"?{val:{type:ke.select,value:s,options:Og(z.val),location:Z},err:null}:{val:{type:ke.plural,value:s,options:Og(z.val),offset:S,pluralType:d==="plural"?"cardinal":"ordinal",location:Z},err:null}}default:return this.error(Te.INVALID_ARGUMENT_TYPE,we(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,we(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Te.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(r,i){var s=[];try{s=YS(r)}catch{return this.error(Te.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ia.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?$S(s):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,h=!1,d=[],m=new Set,g=u.value,v=u.location;;){if(g.length===0){var T=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(Te.EXPECT_PLURAL_ARGUMENT_SELECTOR,Te.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;v=we(T,this.clonePosition()),g=this.message.slice(T.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?Te.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Te.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);g==="other"&&(h=!0),this.bumpSpace();var j=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?Te.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Te.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var M=this.parseMessage(r+1,i,s);if(M.err)return M;var F=this.tryParseArgumentClose(j);if(F.err)return F;d.push([g,{value:M.val,location:we(j,this.clonePosition())}]),m.add(g),this.bumpSpace(),c=this.parseIdentifierIfPossible(),g=c.value,v=c.location}return d.length===0?this.error(i==="select"?Te.EXPECT_SELECT_ARGUMENT_SELECTOR:Te.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(Te.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:d,err:null}},n.prototype.tryParseDecimalInteger=function(r,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var c=!1,h=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)c=!0,h=h*10+(d-48),this.bump();else break}var m=we(u,this.clonePosition());return c?(h*=s,uT(h)?{val:h,err:null}:this.error(i,m)):this.error(r,m)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=m_(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},n.prototype.bumpIf=function(r){if(wg(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(r){var i=this.offset(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&g_(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},n}();function ih(n){return n>=97&&n<=122||n>=65&&n<=90}function mT(n){return ih(n)||n===47}function pT(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 g_(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function gT(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 sh(n){n.forEach(function(r){if(delete r.location,s_(r)||l_(r))for(var i in r.options)delete r.options[i].location,sh(r.options[i].value);else r_(r)&&u_(r.style)||(a_(r)||i_(r))&&th(r.style)?delete r.style.location:o_(r)&&sh(r.children)})}function yT(n,r){r===void 0&&(r={}),r=ne({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new dT(n,r).parse();if(i.err){var s=SyntaxError(Te[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r?.captureLocation||sh(i.val),i.val}var bn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(bn||(bn={}));var br=function(n){Jt(r,n);function r(i,s,u){var c=n.call(this,i)||this;return c.code=s,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Cg=function(n){Jt(r,n);function r(i,s,u,c){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),bn.INVALID_VALUE,c)||this}return r}(br),vT=function(n){Jt(r,n);function r(i,s,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),bn.INVALID_VALUE,u)||this}return r}(br),_T=function(n){Jt(r,n);function r(i,s){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),bn.MISSING_VALUE,s)||this}return r}(br),vt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(vt||(vt={}));function bT(n){return n.length<2?n:n.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==vt.literal||i.type!==vt.literal?r.push(i):s.value+=i.value,r},[])}function y_(n){return typeof n=="function"}function Wl(n,r,i,s,u,c,h){if(n.length===1&&Sg(n[0]))return[{type:vt.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var v=g[m];if(Sg(v)){d.push({type:vt.literal,value:v.value});continue}if(FS(v)){typeof c=="number"&&d.push({type:vt.literal,value:i.getNumberFormat(r).format(c)});continue}var T=v.value;if(!(u&&T in u))throw new _T(T,h);var A=u[T];if(qS(v)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),d.push({type:typeof A=="string"?vt.literal:vt.object,value:A});continue}if(a_(v)){var j=typeof v.style=="string"?s.date[v.style]:th(v.style)?v.style.parsedOptions:void 0;d.push({type:vt.literal,value:i.getDateTimeFormat(r,j).format(A)});continue}if(i_(v)){var j=typeof v.style=="string"?s.time[v.style]:th(v.style)?v.style.parsedOptions:s.time.medium;d.push({type:vt.literal,value:i.getDateTimeFormat(r,j).format(A)});continue}if(r_(v)){var j=typeof v.style=="string"?s.number[v.style]:u_(v.style)?v.style.parsedOptions:void 0;j&&j.scale&&(A=A*(j.scale||1)),d.push({type:vt.literal,value:i.getNumberFormat(r,j).format(A)});continue}if(o_(v)){var M=v.children,F=v.value,k=u[F];if(!y_(k))throw new vT(F,"function",h);var E=Wl(M,r,i,s,u,c),x=k(E.map(function(S){return S.value}));Array.isArray(x)||(x=[x]),d.push.apply(d,x.map(function(S){return{type:typeof S=="string"?vt.literal:vt.object,value:S}}))}if(s_(v)){var b=v.options[A]||v.options.other;if(!b)throw new Cg(v.value,A,Object.keys(v.options),h);d.push.apply(d,Wl(b.value,r,i,s,u));continue}if(l_(v)){var b=v.options["=".concat(A)];if(!b){if(!Intl.PluralRules)throw new br(`Intl.PluralRules is not available in this environment.
|
|
65
|
+
*/var Eg;function BS(){return Eg||(Eg=1,function(n){(function(){var r={}.hasOwnProperty;function i(){for(var c="",h=0;h<arguments.length;h++){var d=arguments[h];d&&(c=u(c,s(d)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var h="";for(var d in c)r.call(c,d)&&c[d]&&(h=u(h,d));return h}function u(c,h){return h?c?c+" "+h:c+h:c}n.exports?(i.default=i,n.exports=i):window.classNames=i})()}($c)),$c.exports}var jS=BS();const X=po(jS);var eh=function(n,r){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},eh(n,r)};function Jt(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");eh(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var ne=function(){return ne=Object.assign||function(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},ne.apply(this,arguments)};function go(n,r){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(i[s[u]]=n[s[u]]);return i}function vn(n,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return n.concat(c||Array.prototype.slice.call(r))}function gn(n,r){var i=r&&r.cache?r.cache:GS,s=r&&r.serializer?r.serializer:kS,u=r&&r.strategy?r.strategy:HS;return u(n,{cache:i,serializer:s})}function LS(n){return n==null||typeof n=="number"||typeof n=="boolean"}function US(n,r,i,s){var u=LS(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=n.call(this,s),r.set(u,c)),c}function t_(n,r,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),c=r.get(u);return typeof c>"u"&&(c=n.apply(this,s),r.set(u,c)),c}function n_(n,r,i,s,u){return i.bind(r,n,s,u)}function HS(n,r){var i=n.length===1?US:t_;return n_(n,this,i,r.cache.create(),r.serializer)}function zS(n,r){return n_(n,this,t_,r.cache.create(),r.serializer)}var kS=function(){return JSON.stringify(arguments)},IS=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(r){return this.cache[r]},n.prototype.set=function(r,i){this.cache[r]=i},n}(),GS={create:function(){return new IS}},yn={variadic:zS},Te;(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"})(Te||(Te={}));var ke;(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"})(ke||(ke={}));var Ia;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ia||(Ia={}));function Sg(n){return n.type===ke.literal}function qS(n){return n.type===ke.argument}function r_(n){return n.type===ke.number}function a_(n){return n.type===ke.date}function i_(n){return n.type===ke.time}function s_(n){return n.type===ke.select}function l_(n){return n.type===ke.plural}function FS(n){return n.type===ke.pound}function o_(n){return n.type===ke.tag}function u_(n){return!!(n&&typeof n=="object"&&n.type===Ia.number)}function th(n){return!!(n&&typeof n=="object"&&n.type===Ia.dateTime)}var c_=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,VS=/(?:[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 PS(n){var r={};return n.replace(VS,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var ZS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function YS(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(ZS).filter(function(A){return A.length>0}),i=[],s=0,u=r;s<u.length;s++){var c=u[s],h=c.split("/");if(h.length===0)throw new Error("Invalid number skeleton");for(var d=h[0],m=h.slice(1),g=0,v=m;g<v.length;g++){var S=v[g];if(S.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function XS(n){return n.replace(/^(.*?)-/,"")}var Tg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,f_=/^(@+)?(\+|#+)?[rs]?$/g,QS=/(\*)(0+)|(#+)(0+)|(0+)/g,h_=/^(0+)$/;function xg(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(f_,function(i,s,u){return typeof u!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):u==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),r}function d_(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 KS(n){var r;if(n[0]==="E"&&n[1]==="E"?(r={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(r={notation:"scientific"},n=n.slice(1)),r){var i=n.slice(0,2);if(i==="+!"?(r.signDisplay="always",n=n.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",n=n.slice(2)),!h_.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function Ag(n){var r={},i=d_(n);return i||r}function $S(n){for(var r={},i=0,s=n;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=XS(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ne(ne(ne({},r),{notation:"scientific"}),u.options.reduce(function(m,g){return ne(ne({},m),Ag(g))},{}));continue;case"engineering":r=ne(ne(ne({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return ne(ne({},m),Ag(g))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(QS,function(m,g,v,S,A,U){if(g)r.minimumIntegerDigits=v.length;else{if(S&&A)throw new Error("We currently do not support maximum integer digits");if(U)throw new Error("We currently do not support exact integer digits")}return""});continue}if(h_.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(Tg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(Tg,function(m,g,v,S,A,U){return v==="*"?r.minimumFractionDigits=g.length:S&&S[0]==="#"?r.maximumFractionDigits=S.length:A&&U?(r.minimumFractionDigits=A.length,r.maximumFractionDigits=A.length+U.length):(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length),""});var c=u.options[0];c==="w"?r=ne(ne({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=ne(ne({},r),xg(c)));continue}if(f_.test(u.stem)){r=ne(ne({},r),xg(u.stem));continue}var h=d_(u.stem);h&&(r=ne(ne({},r),h));var d=KS(u.stem);d&&(r=ne(ne({},r),d))}return r}var Al={"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 JS(n,r){for(var i="",s=0;s<n.length;s++){var u=n.charAt(s);if(u==="j"){for(var c=0;s+1<n.length&&n.charAt(s+1)===u;)c++,s++;var h=1+(c&1),d=c<2?1:3+(c>>1),m="a",g=WS(r);for((g=="H"||g=="k")&&(d=0);d-- >0;)i+=m;for(;h-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function WS(n){var r=n.hourCycle;if(r===void 0&&n.hourCycles&&n.hourCycles.length&&(r=n.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,s;i!=="root"&&(s=n.maximize().region);var u=Al[s||""]||Al[i||""]||Al["".concat(i,"-001")]||Al["001"];return u[0]}var Jc,eT=new RegExp("^".concat(c_.source,"*")),tT=new RegExp("".concat(c_.source,"*$"));function we(n,r){return{start:n,end:r}}var nT=!!String.prototype.startsWith&&"_a".startsWith("a",1),rT=!!String.fromCodePoint,aT=!!Object.fromEntries,iT=!!String.prototype.codePointAt,sT=!!String.prototype.trimStart,lT=!!String.prototype.trimEnd,oT=!!Number.isSafeInteger,uT=oT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},nh=!0;try{var cT=p_("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nh=((Jc=cT.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{nh=!1}var wg=nT?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},rh=rT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",u=r.length,c=0,h;u>c;){if(h=r[c++],h>1114111)throw RangeError(h+" is not a valid code point");s+=h<65536?String.fromCharCode(h):String.fromCharCode(((h-=65536)>>10)+55296,h%1024+56320)}return s},Og=aT?Object.fromEntries:function(r){for(var i={},s=0,u=r;s<u.length;s++){var c=u[s],h=c[0],d=c[1];i[h]=d}return i},m_=iT?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===s||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},fT=sT?function(r){return r.trimStart()}:function(r){return r.replace(eT,"")},hT=lT?function(r){return r.trimEnd()}:function(r){return r.replace(tT,"")};function p_(n,r){return new RegExp(n,r)}var ah;if(nh){var Rg=p_("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ah=function(r,i){var s;Rg.lastIndex=i;var u=Rg.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else ah=function(r,i){for(var s=[];;){var u=m_(r,i);if(u===void 0||g_(u)||gT(u))break;s.push(u),i+=u>=65536?2:1}return rh.apply(void 0,s)};var dT=function(){function n(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(r,i,s){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var h=this.parseArgument(r,s);if(h.err)return h;u.push(h.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),u.push({type:ke.pound,location:we(d,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(Te.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&ih(this.peek()||0)){var h=this.parseTag(r,i);if(h.err)return h;u.push(h.val)}else{var h=this.parseLiteral(r,i);if(h.err)return h;u.push(h.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ke.literal,value:"<".concat(u,"/>"),location:we(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var h=c.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ih(this.char()))return this.error(Te.INVALID_TAG,we(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(Te.UNMATCHED_CLOSING_TAG,we(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ke.tag,value:u,children:h,location:we(s,this.clonePosition())},err:null}:this.error(Te.INVALID_TAG,we(d,this.clonePosition())))}else return this.error(Te.UNCLOSED_TAG,we(s,this.clonePosition()))}else return this.error(Te.INVALID_TAG,we(s,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&pT(this.char());)this.bump();return this.message.slice(r,this.offset())},n.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var h=this.tryParseUnquoted(r,i);if(h){u+=h;continue}var d=this.tryParseLeftAngleBracket();if(d){u+=d;continue}break}var m=we(s,this.clonePosition());return{val:{type:ke.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!mT(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return rh.apply(void 0,i)},n.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),rh(s))},n.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Te.EMPTY_ARGUMENT,we(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(Te.MALFORMED_ARGUMENT,we(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ke.argument,value:u,location:we(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition())):this.parseArgumentOptions(r,i,u,s);default:return this.error(Te.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=ah(this.message,i),u=i+s.length;this.bumpTo(u);var c=this.clonePosition(),h=we(r,c);return{value:s,location:h}},n.prototype.parseArgumentOptions=function(r,i,s,u){var c,h=this.clonePosition(),d=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(d){case"":return this.error(Te.EXPECT_ARGUMENT_TYPE,we(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),S=this.parseSimpleArgStyleIfPossible();if(S.err)return S;var A=hT(S.val);if(A.length===0)return this.error(Te.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var U=we(v,this.clonePosition());g={style:A,styleLocation:U}}var M=this.tryParseArgumentClose(u);if(M.err)return M;var F=we(u,this.clonePosition());if(g&&wg(g?.style,"::",0)){var j=fT(g.style.slice(2));if(d==="number"){var S=this.parseNumberSkeletonFromString(j,g.styleLocation);return S.err?S:{val:{type:ke.number,value:s,location:F,style:S.val},err:null}}else{if(j.length===0)return this.error(Te.EXPECT_DATE_TIME_SKELETON,F);var E=j;this.locale&&(E=JS(j,this.locale));var A={type:Ia.dateTime,pattern:E,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?PS(E):{}},x=d==="date"?ke.date:ke.time;return{val:{type:x,value:s,location:F,style:A},err:null}}}return{val:{type:d==="number"?ke.number:d==="date"?ke.date:ke.time,value:s,location:F,style:(c=g?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Te.EXPECT_SELECT_ARGUMENT_OPTIONS,we(b,ne({},b)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),T=0;if(d!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(Te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var S=this.tryParseDecimalInteger(Te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Te.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(S.err)return S;this.bumpSpace(),O=this.parseIdentifierIfPossible(),T=S.val}var k=this.tryParsePluralOrSelectOptions(r,d,i,O);if(k.err)return k;var M=this.tryParseArgumentClose(u);if(M.err)return M;var Z=we(u,this.clonePosition());return d==="select"?{val:{type:ke.select,value:s,options:Og(k.val),location:Z},err:null}:{val:{type:ke.plural,value:s,options:Og(k.val),offset:T,pluralType:d==="plural"?"cardinal":"ordinal",location:Z},err:null}}default:return this.error(Te.INVALID_ARGUMENT_TYPE,we(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,we(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Te.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(r,i){var s=[];try{s=YS(r)}catch{return this.error(Te.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ia.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?$S(s):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,h=!1,d=[],m=new Set,g=u.value,v=u.location;;){if(g.length===0){var S=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(Te.EXPECT_PLURAL_ARGUMENT_SELECTOR,Te.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;v=we(S,this.clonePosition()),g=this.message.slice(S.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?Te.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Te.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);g==="other"&&(h=!0),this.bumpSpace();var U=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?Te.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Te.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var M=this.parseMessage(r+1,i,s);if(M.err)return M;var F=this.tryParseArgumentClose(U);if(F.err)return F;d.push([g,{value:M.val,location:we(U,this.clonePosition())}]),m.add(g),this.bumpSpace(),c=this.parseIdentifierIfPossible(),g=c.value,v=c.location}return d.length===0?this.error(i==="select"?Te.EXPECT_SELECT_ARGUMENT_SELECTOR:Te.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(Te.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:d,err:null}},n.prototype.tryParseDecimalInteger=function(r,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var c=!1,h=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)c=!0,h=h*10+(d-48),this.bump();else break}var m=we(u,this.clonePosition());return c?(h*=s,uT(h)?{val:h,err:null}:this.error(i,m)):this.error(r,m)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=m_(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},n.prototype.bumpIf=function(r){if(wg(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(r){var i=this.offset(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&g_(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},n}();function ih(n){return n>=97&&n<=122||n>=65&&n<=90}function mT(n){return ih(n)||n===47}function pT(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 g_(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function gT(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 sh(n){n.forEach(function(r){if(delete r.location,s_(r)||l_(r))for(var i in r.options)delete r.options[i].location,sh(r.options[i].value);else r_(r)&&u_(r.style)||(a_(r)||i_(r))&&th(r.style)?delete r.style.location:o_(r)&&sh(r.children)})}function yT(n,r){r===void 0&&(r={}),r=ne({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new dT(n,r).parse();if(i.err){var s=SyntaxError(Te[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r?.captureLocation||sh(i.val),i.val}var bn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(bn||(bn={}));var br=function(n){Jt(r,n);function r(i,s,u){var c=n.call(this,i)||this;return c.code=s,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Cg=function(n){Jt(r,n);function r(i,s,u,c){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),bn.INVALID_VALUE,c)||this}return r}(br),vT=function(n){Jt(r,n);function r(i,s,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),bn.INVALID_VALUE,u)||this}return r}(br),_T=function(n){Jt(r,n);function r(i,s){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),bn.MISSING_VALUE,s)||this}return r}(br),vt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(vt||(vt={}));function bT(n){return n.length<2?n:n.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==vt.literal||i.type!==vt.literal?r.push(i):s.value+=i.value,r},[])}function y_(n){return typeof n=="function"}function Wl(n,r,i,s,u,c,h){if(n.length===1&&Sg(n[0]))return[{type:vt.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var v=g[m];if(Sg(v)){d.push({type:vt.literal,value:v.value});continue}if(FS(v)){typeof c=="number"&&d.push({type:vt.literal,value:i.getNumberFormat(r).format(c)});continue}var S=v.value;if(!(u&&S in u))throw new _T(S,h);var A=u[S];if(qS(v)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),d.push({type:typeof A=="string"?vt.literal:vt.object,value:A});continue}if(a_(v)){var U=typeof v.style=="string"?s.date[v.style]:th(v.style)?v.style.parsedOptions:void 0;d.push({type:vt.literal,value:i.getDateTimeFormat(r,U).format(A)});continue}if(i_(v)){var U=typeof v.style=="string"?s.time[v.style]:th(v.style)?v.style.parsedOptions:s.time.medium;d.push({type:vt.literal,value:i.getDateTimeFormat(r,U).format(A)});continue}if(r_(v)){var U=typeof v.style=="string"?s.number[v.style]:u_(v.style)?v.style.parsedOptions:void 0;U&&U.scale&&(A=A*(U.scale||1)),d.push({type:vt.literal,value:i.getNumberFormat(r,U).format(A)});continue}if(o_(v)){var M=v.children,F=v.value,j=u[F];if(!y_(j))throw new vT(F,"function",h);var E=Wl(M,r,i,s,u,c),x=j(E.map(function(T){return T.value}));Array.isArray(x)||(x=[x]),d.push.apply(d,x.map(function(T){return{type:typeof T=="string"?vt.literal:vt.object,value:T}}))}if(s_(v)){var b=v.options[A]||v.options.other;if(!b)throw new Cg(v.value,A,Object.keys(v.options),h);d.push.apply(d,Wl(b.value,r,i,s,u));continue}if(l_(v)){var b=v.options["=".concat(A)];if(!b){if(!Intl.PluralRules)throw new br(`Intl.PluralRules is not available in this environment.
|
|
66
66
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,bn.MISSING_INTL_API,h);var O=i.getPluralRules(r,{type:v.pluralType}).select(A-(v.offset||0));b=v.options[O]||v.options.other}if(!b)throw new Cg(v.value,A,Object.keys(v.options),h);d.push.apply(d,Wl(b.value,r,i,s,u,A-(v.offset||0)));continue}}return bT(d)}function ET(n,r){return r?ne(ne(ne({},n||{}),r||{}),Object.keys(n).reduce(function(i,s){return i[s]=ne(ne({},n[s]),r[s]||{}),i},{})):n}function ST(n,r){return r?Object.keys(n).reduce(function(i,s){return i[s]=ET(n[s],r[s]),i},ne({},n)):n}function Wc(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function TT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.number),strategy:yn.variadic}),getDateTimeFormat:gn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.dateTime),strategy:yn.variadic}),getPluralRules:gn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.pluralRules),strategy:yn.variadic})}}var v_=function(){function n(r,i,s,u){i===void 0&&(i=n.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=c.formatToParts(m);if(g.length===1)return g[0].value;var v=g.reduce(function(
|
|
67
|
+
`,bn.MISSING_INTL_API,h);var O=i.getPluralRules(r,{type:v.pluralType}).select(A-(v.offset||0));b=v.options[O]||v.options.other}if(!b)throw new Cg(v.value,A,Object.keys(v.options),h);d.push.apply(d,Wl(b.value,r,i,s,u,A-(v.offset||0)));continue}}return bT(d)}function ET(n,r){return r?ne(ne(ne({},n||{}),r||{}),Object.keys(n).reduce(function(i,s){return i[s]=ne(ne({},n[s]),r[s]||{}),i},{})):n}function ST(n,r){return r?Object.keys(n).reduce(function(i,s){return i[s]=ET(n[s],r[s]),i},ne({},n)):n}function Wc(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function TT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.number),strategy:yn.variadic}),getDateTimeFormat:gn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.dateTime),strategy:yn.variadic}),getPluralRules:gn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.pluralRules),strategy:yn.variadic})}}var v_=function(){function n(r,i,s,u){i===void 0&&(i=n.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=c.formatToParts(m);if(g.length===1)return g[0].value;var v=g.reduce(function(S,A){return!S.length||A.type!==vt.literal||typeof S[S.length-1]!="string"?S.push(A.value):S[S.length-1]+=A.value,S},[]);return v.length<=1?v[0]||"":v},this.formatToParts=function(m){return Wl(c.ast,c.locales,c.formatters,c.formats,m,void 0,c.message)},this.resolvedOptions=function(){var m;return{locale:((m=c.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=i,this.resolvedLocale=n.resolveLocale(i),typeof r=="string"){if(this.message=r,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=u||{};h.formatters;var d=go(h,["formatters"]);this.ast=n.__parse(r,ne(ne({},d),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ST(n.formats,s),this.formatters=u&&u.formatters||TT(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},n.__parse=yT,n.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},n}(),Kr;(function(n){n.FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Kr||(Kr={}));var ss=function(n){Jt(r,n);function r(i,s,u){var c=this,h=u?u instanceof Error?u:new Error(String(u)):void 0;return c=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
|
|
68
68
|
`).concat(h?`
|
|
69
69
|
`.concat(h.message,`
|
|
70
70
|
`).concat(h.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r}(Error),xT=function(n){Jt(r,n);function r(i,s){return n.call(this,Kr.UNSUPPORTED_FORMATTER,i,s)||this}return r}(ss),AT=function(n){Jt(r,n);function r(i,s){return n.call(this,Kr.INVALID_CONFIG,i,s)||this}return r}(ss),Ng=function(n){Jt(r,n);function r(i,s){return n.call(this,Kr.MISSING_DATA,i,s)||this}return r}(ss),Wt=function(n){Jt(r,n);function r(i,s,u){var c=n.call(this,Kr.FORMAT_ERROR,"".concat(i,`
|
|
@@ -73,37 +73,37 @@ Locale: `).concat(s,`
|
|
|
73
73
|
MessageID: `).concat(u?.id,`
|
|
74
74
|
Default Message: `).concat(u?.defaultMessage,`
|
|
75
75
|
Description: `).concat(u?.description,`
|
|
76
|
-
`),s,c)||this;return h.descriptor=u,h.locale=s,h}return r}(Wt),wT=function(n){Jt(r,n);function r(i,s){var u=n.call(this,Kr.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var h;return(h=c.value)!==null&&h!==void 0?h:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(ss);function OT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Fa(n,r,i){return i===void 0&&(i={}),r.reduce(function(s,u){return u in n?s[u]=n[u]:u in i&&(s[u]=i[u]),s},{})}var RT=function(n){},CT=function(n){},__={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:RT,onWarn:CT};function b_(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ir(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function NT(n){n===void 0&&(n=b_());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.DateTimeFormat).bind.apply(d,vn([void 0],m,!1)))},{cache:Ir(n.dateTime),strategy:yn.variadic}),c=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.NumberFormat).bind.apply(d,vn([void 0],m,!1)))},{cache:Ir(n.number),strategy:yn.variadic}),h=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.PluralRules).bind.apply(d,vn([void 0],m,!1)))},{cache:Ir(n.pluralRules),strategy:yn.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:gn(function(d,m,g,v){return new v_(d,m,g,ne({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:h}},v||{}))},{cache:Ir(n.message),strategy:yn.variadic}),getRelativeTimeFormat:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(r.bind.apply(r,vn([void 0],d,!1)))},{cache:Ir(n.relativeTime),strategy:yn.variadic}),getPluralRules:h,getListFormat:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(i.bind.apply(i,vn([void 0],d,!1)))},{cache:Ir(n.list),strategy:yn.variadic}),getDisplayNames:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(s.bind.apply(s,vn([void 0],d,!1)))},{cache:Ir(n.displayNames),strategy:yn.variadic})}}function Mh(n,r,i,s){var u=n&&n[r],c;if(u&&(c=u[i]),c)return c;s(new xT("No ".concat(r," format named: ").concat(i)))}function wl(n,r){return Object.keys(n).reduce(function(i,s){return i[s]=ne({timeZone:r},n[s]),i},{})}function Mg(n,r){var i=Object.keys(ne(ne({},n),r));return i.reduce(function(s,u){return s[u]=ne(ne({},n[u]||{}),r[u]||{}),s},{})}function Dg(n,r){if(!r)return n;var i=v_.formats;return ne(ne(ne({},i),n),{date:Mg(wl(i.date,r),wl(n.date||{},r)),time:Mg(wl(i.time,r),wl(n.time||{},r))})}var lh=function(n,r,i,s,u){var c=n.locale,h=n.formats,d=n.messages,m=n.defaultLocale,g=n.defaultFormats,v=n.fallbackOnEmptyString,
|
|
76
|
+
`),s,c)||this;return h.descriptor=u,h.locale=s,h}return r}(Wt),wT=function(n){Jt(r,n);function r(i,s){var u=n.call(this,Kr.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var h;return(h=c.value)!==null&&h!==void 0?h:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(ss);function OT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Fa(n,r,i){return i===void 0&&(i={}),r.reduce(function(s,u){return u in n?s[u]=n[u]:u in i&&(s[u]=i[u]),s},{})}var RT=function(n){},CT=function(n){},__={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:RT,onWarn:CT};function b_(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ir(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function NT(n){n===void 0&&(n=b_());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.DateTimeFormat).bind.apply(d,vn([void 0],m,!1)))},{cache:Ir(n.dateTime),strategy:yn.variadic}),c=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.NumberFormat).bind.apply(d,vn([void 0],m,!1)))},{cache:Ir(n.number),strategy:yn.variadic}),h=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.PluralRules).bind.apply(d,vn([void 0],m,!1)))},{cache:Ir(n.pluralRules),strategy:yn.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:gn(function(d,m,g,v){return new v_(d,m,g,ne({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:h}},v||{}))},{cache:Ir(n.message),strategy:yn.variadic}),getRelativeTimeFormat:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(r.bind.apply(r,vn([void 0],d,!1)))},{cache:Ir(n.relativeTime),strategy:yn.variadic}),getPluralRules:h,getListFormat:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(i.bind.apply(i,vn([void 0],d,!1)))},{cache:Ir(n.list),strategy:yn.variadic}),getDisplayNames:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(s.bind.apply(s,vn([void 0],d,!1)))},{cache:Ir(n.displayNames),strategy:yn.variadic})}}function Mh(n,r,i,s){var u=n&&n[r],c;if(u&&(c=u[i]),c)return c;s(new xT("No ".concat(r," format named: ").concat(i)))}function wl(n,r){return Object.keys(n).reduce(function(i,s){return i[s]=ne({timeZone:r},n[s]),i},{})}function Mg(n,r){var i=Object.keys(ne(ne({},n),r));return i.reduce(function(s,u){return s[u]=ne(ne({},n[u]||{}),r[u]||{}),s},{})}function Dg(n,r){if(!r)return n;var i=v_.formats;return ne(ne(ne({},i),n),{date:Mg(wl(i.date,r),wl(n.date||{},r)),time:Mg(wl(i.time,r),wl(n.time||{},r))})}var lh=function(n,r,i,s,u){var c=n.locale,h=n.formats,d=n.messages,m=n.defaultLocale,g=n.defaultFormats,v=n.fallbackOnEmptyString,S=n.onError,A=n.timeZone,U=n.defaultRichTextElements;i===void 0&&(i={id:""});var M=i.id,F=i.defaultMessage;OT(!!M,"[@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 j=String(M),E=d&&Object.prototype.hasOwnProperty.call(d,j)&&d[j];if(Array.isArray(E)&&E.length===1&&E[0].type===ke.literal)return E[0].value;if(!s&&E&&typeof E=="string"&&!U)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=ne(ne({},U),s||{}),h=Dg(h,A),g=Dg(g,A),!E){if(v===!1&&E==="")return E;if((!F||c&&c.toLowerCase()!==m.toLowerCase())&&S(new wT(i,c)),F)try{var x=r.getMessageFormat(F,m,g,u);return x.format(s)}catch(b){return S(new ef('Error formatting default message for: "'.concat(j,'", rendering default message verbatim'),c,i,b)),typeof F=="string"?F:j}return j}try{var x=r.getMessageFormat(E,c,h,ne({formatters:r},u||{}));return x.format(s)}catch(b){S(new ef('Error formatting message: "'.concat(j,'", using ').concat(F?"default message":"id"," as fallback."),c,i,b))}if(F)try{var x=r.getMessageFormat(F,m,g,u);return x.format(s)}catch(b){S(new ef('Error formatting the default message for: "'.concat(j,'", rendering message verbatim'),c,i,b))}return typeof E=="string"?E:typeof F=="string"?F:j},MT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ls(n,r,i,s){var u=n.locale,c=n.formats,h=n.onError,d=n.timeZone;s===void 0&&(s={});var m=s.format,g=ne(ne({},d&&{timeZone:d}),m&&Mh(c,r,m,h)),v=Fa(s,MT,g);return r==="time"&&!v.hour&&!v.minute&&!v.second&&!v.timeStyle&&!v.dateStyle&&(v=ne(ne({},v),{hour:"numeric",minute:"numeric"})),i(u,v)}function DT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return ls(n,"date",r,h).format(d)}catch(m){n.onError(new Wt("Error formatting date.",n.locale,m))}return String(d)}function BT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return ls(n,"time",r,h).format(d)}catch(m){n.onError(new Wt("Error formatting time.",n.locale,m))}return String(d)}function jT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],h=i[2],d=h===void 0?{}:h,m=typeof u=="string"?new Date(u||0):u,g=typeof c=="string"?new Date(c||0):c;try{return ls(n,"dateTimeRange",r,d).formatRange(m,g)}catch(v){n.onError(new Wt("Error formatting date time range.",n.locale,v))}return String(m)}function LT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return ls(n,"date",r,h).formatToParts(d)}catch(m){n.onError(new Wt("Error formatting date.",n.locale,m))}return[]}function UT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return ls(n,"time",r,h).formatToParts(d)}catch(m){n.onError(new Wt("Error formatting time.",n.locale,m))}return[]}var HT=["style","type","fallback","languageDisplay"];function zT(n,r,i,s){var u=n.locale,c=n.onError,h=Intl.DisplayNames;h||c(new br(`Intl.DisplayNames is not available in this environment.
|
|
77
77
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
78
|
`,bn.MISSING_INTL_API));var d=Fa(s,HT);try{return r(u,d).of(i)}catch(m){c(new Wt("Error formatting display name.",u,m))}}var kT=["type","style"],Bg=Date.now();function IT(n){return"".concat(Bg,"_").concat(n,"_").concat(Bg)}function GT(n,r,i,s){s===void 0&&(s={});var u=E_(n,r,i,s).reduce(function(c,h){var d=h.value;return typeof d!="string"?c.push(d):typeof c[c.length-1]=="string"?c[c.length-1]+=d:c.push(d),c},[]);return u.length===1?u[0]:u.length===0?"":u}function E_(n,r,i,s){var u=n.locale,c=n.onError;s===void 0&&(s={});var h=Intl.ListFormat;h||c(new br(`Intl.ListFormat is not available in this environment.
|
|
79
79
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,bn.MISSING_INTL_API));var d=Fa(s,kT);try{var m={},g=i.map(function(v,
|
|
80
|
+
`,bn.MISSING_INTL_API));var d=Fa(s,kT);try{var m={},g=i.map(function(v,S){if(typeof v=="object"){var A=IT(S);return m[A]=v,A}return String(v)});return r(u,d).formatToParts(g).map(function(v){return v.type==="literal"?v:ne(ne({},v),{value:m[v.value]||v.value})})}catch(v){c(new Wt("Error formatting list.",u,v))}return i}var qT=["type"];function FT(n,r,i,s){var u=n.locale,c=n.onError;s===void 0&&(s={}),Intl.PluralRules||c(new br(`Intl.PluralRules is not available in this environment.
|
|
81
81
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
82
|
`,bn.MISSING_INTL_API));var h=Fa(s,qT);try{return r(u,h).select(i)}catch(d){c(new Wt("Error formatting plural.",u,d))}return"other"}var VT=["numeric","style"];function PT(n,r,i){var s=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var h=i.format,d=!!h&&Mh(u,"relative",h,c)||{},m=Fa(i,VT,d);return r(s,m)}function ZT(n,r,i,s,u){u===void 0&&(u={}),s||(s="second");var c=Intl.RelativeTimeFormat;c||n.onError(new br(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
83
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
84
|
`,bn.MISSING_INTL_API));try{return PT(n,r,u).format(i,s)}catch(h){n.onError(new Wt("Error formatting relative time.",n.locale,h))}return String(i)}var YT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function S_(n,r,i){var s=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var h=i.format,d=h&&Mh(u,"number",h,c)||{},m=Fa(i,YT,d);return r(s,m)}function XT(n,r,i,s){s===void 0&&(s={});try{return S_(n,r,s).format(i)}catch(u){n.onError(new Wt("Error formatting number.",n.locale,u))}return String(i)}function QT(n,r,i,s){s===void 0&&(s={});try{return S_(n,r,s).formatToParts(i)}catch(u){n.onError(new Wt("Error formatting number.",n.locale,u))}return[]}function KT(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function $T(n){n.onWarn&&n.defaultRichTextElements&&KT(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
85
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 JT(n,r){var i=NT(r),s=ne(ne({},__),n),u=s.locale,c=s.defaultLocale,h=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new Ng('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&h&&h(new Ng('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(h&&h(new AT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),$T(s),ne(ne({},s),{formatters:i,formatNumber:XT.bind(null,s,i.getNumberFormat),formatNumberToParts:QT.bind(null,s,i.getNumberFormat),formatRelativeTime:ZT.bind(null,s,i.getRelativeTimeFormat),formatDate:DT.bind(null,s,i.getDateTimeFormat),formatDateToParts:LT.bind(null,s,i.getDateTimeFormat),formatTime:BT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:jT.bind(null,s,i.getDateTimeFormat),formatTimeToParts:UT.bind(null,s,i.getDateTimeFormat),formatPlural:FT.bind(null,s,i.getPluralRules),formatMessage:lh.bind(null,s,i),$t:lh.bind(null,s,i),formatList:GT.bind(null,s,i.getListFormat),formatListToParts:E_.bind(null,s,i.getListFormat),formatDisplayName:zT.bind(null,s,i.getDisplayNames)})}function WT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function T_(n){WT(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var x_=ne(ne({},__),{textComponent:
|
|
86
|
+
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function JT(n,r){var i=NT(r),s=ne(ne({},__),n),u=s.locale,c=s.defaultLocale,h=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new Ng('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&h&&h(new Ng('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(h&&h(new AT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),$T(s),ne(ne({},s),{formatters:i,formatNumber:XT.bind(null,s,i.getNumberFormat),formatNumberToParts:QT.bind(null,s,i.getNumberFormat),formatRelativeTime:ZT.bind(null,s,i.getRelativeTimeFormat),formatDate:DT.bind(null,s,i.getDateTimeFormat),formatDateToParts:LT.bind(null,s,i.getDateTimeFormat),formatTime:BT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:jT.bind(null,s,i.getDateTimeFormat),formatTimeToParts:UT.bind(null,s,i.getDateTimeFormat),formatPlural:FT.bind(null,s,i.getPluralRules),formatMessage:lh.bind(null,s,i),$t:lh.bind(null,s,i),formatList:GT.bind(null,s,i.getListFormat),formatListToParts:E_.bind(null,s,i.getListFormat),formatDisplayName:zT.bind(null,s,i.getDisplayNames)})}function WT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function T_(n){WT(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var x_=ne(ne({},__),{textComponent:H.Fragment}),ex={key:42},tx=function(n){return H.isValidElement(n)?H.createElement(H.Fragment,ex,n):n},nx=function(n){var r;return(r=H.Children.map(n,tx))!==null&&r!==void 0?r:[]};function rx(n){return function(r){return n(H.Children.toArray(r))}}function ax(n,r){if(n===r)return!0;if(!n||!r)return!1;var i=Object.keys(n),s=Object.keys(r),u=i.length;if(s.length!==u)return!1;for(var c=0;c<u;c++){var h=i[c];if(n[h]!==r[h]||!Object.prototype.hasOwnProperty.call(r,h))return!1}return!0}var tf={exports:{}},Ce={};/** @license React v16.13.1
|
|
87
87
|
* react-is.production.min.js
|
|
88
88
|
*
|
|
89
89
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the MIT license found in the
|
|
92
92
|
* LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/var jg;function ix(){if(jg)return Ce;jg=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,v=n?Symbol.for("react.forward_ref"):60112,T=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.suspense_list"):60120,j=n?Symbol.for("react.memo"):60115,M=n?Symbol.for("react.lazy"):60116,F=n?Symbol.for("react.block"):60121,k=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function b(S){if(typeof S=="object"&&S!==null){var z=S.$$typeof;switch(z){case r:switch(S=S.type,S){case m:case g:case s:case c:case u:case T:return S;default:switch(S=S&&S.$$typeof,S){case d:case v:case M:case j:case h:return S;default:return z}}case i:return z}}}function O(S){return b(S)===g}return Ce.AsyncMode=m,Ce.ConcurrentMode=g,Ce.ContextConsumer=d,Ce.ContextProvider=h,Ce.Element=r,Ce.ForwardRef=v,Ce.Fragment=s,Ce.Lazy=M,Ce.Memo=j,Ce.Portal=i,Ce.Profiler=c,Ce.StrictMode=u,Ce.Suspense=T,Ce.isAsyncMode=function(S){return O(S)||b(S)===m},Ce.isConcurrentMode=O,Ce.isContextConsumer=function(S){return b(S)===d},Ce.isContextProvider=function(S){return b(S)===h},Ce.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===r},Ce.isForwardRef=function(S){return b(S)===v},Ce.isFragment=function(S){return b(S)===s},Ce.isLazy=function(S){return b(S)===M},Ce.isMemo=function(S){return b(S)===j},Ce.isPortal=function(S){return b(S)===i},Ce.isProfiler=function(S){return b(S)===c},Ce.isStrictMode=function(S){return b(S)===u},Ce.isSuspense=function(S){return b(S)===T},Ce.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===s||S===g||S===c||S===u||S===T||S===A||typeof S=="object"&&S!==null&&(S.$$typeof===M||S.$$typeof===j||S.$$typeof===h||S.$$typeof===d||S.$$typeof===v||S.$$typeof===k||S.$$typeof===E||S.$$typeof===x||S.$$typeof===F)},Ce.typeOf=b,Ce}var Lg;function sx(){return Lg||(Lg=1,tf.exports=ix()),tf.exports}var nf,Ug;function lx(){if(Ug)return nf;Ug=1;var n=sx(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=s,c[n.Memo]=u;function h(M){return n.isMemo(M)?u:c[M.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,T=Object.getPrototypeOf,A=Object.prototype;function j(M,F,k){if(typeof F!="string"){if(A){var E=T(F);E&&E!==A&&j(M,E,k)}var x=m(F);g&&(x=x.concat(g(F)));for(var b=h(M),O=h(F),S=0;S<x.length;++S){var z=x[S];if(!i[z]&&!(k&&k[z])&&!(O&&O[z])&&!(b&&b[z])){var Z=v(F,z);try{d(M,z,Z)}catch{}}}}return M}return nf=j,nf}lx();var Dh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=U.createContext(null)):U.createContext(null);Dh.Consumer;var ox=Dh.Provider,ux=ox,cx=Dh;function yo(){var n=U.useContext(cx);return T_(n),n}var oh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(oh||(oh={}));var uh;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(uh||(uh={}));function A_(n){var r=function(i){var s=yo(),u=i.value,c=i.children,h=go(i,["value","children"]),d=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?s.formatDateToParts(d,h):s.formatTimeToParts(d,h);return c(m)};return r.displayName=uh[n],r}function os(n){var r=function(i){var s=yo(),u=i.value,c=i.children,h=go(i,["value","children"]),d=s[n](u,h);if(typeof c=="function")return c(d);var m=s.textComponent||U.Fragment;return U.createElement(m,null,d)};return r.displayName=oh[n],r}function w_(n){return n&&Object.keys(n).reduce(function(r,i){var s=n[i];return r[i]=y_(s)?rx(s):s,r},{})}var Hg=function(n,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var h=w_(s),d=lh.apply(void 0,vn([n,r,i,h],u,!1));return Array.isArray(d)?nx(d):d},zg=function(n,r){var i=n.defaultRichTextElements,s=go(n,["defaultRichTextElements"]),u=w_(i),c=JT(ne(ne(ne({},x_),s),{defaultRichTextElements:u}),r),h={locale:c.locale,timeZone:c.timeZone,fallbackOnEmptyString:c.fallbackOnEmptyString,formats:c.formats,defaultLocale:c.defaultLocale,defaultFormats:c.defaultFormats,messages:c.messages,onError:c.onError,defaultRichTextElements:u};return ne(ne({},c),{formatMessage:Hg.bind(null,h,c.formatters),$t:Hg.bind(null,h,c.formatters)})};function rf(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}var fx=function(n){Jt(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=b_(),i.state={cache:i.cache,intl:zg(rf(i.props),i.cache),prevConfig:rf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,h=rf(i);return ax(u,h)?null:{intl:zg(h,c),prevConfig:h}},r.prototype.render=function(){return T_(this.state.intl),U.createElement(ux,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=x_,r}(U.PureComponent);os("formatDate");os("formatTime");os("formatNumber");os("formatList");os("formatDisplayName");A_("formatDate");A_("formatTime");const hx="_app_1rj0t_1",dx={app:hx},Wr=CS,zt=DS,O_="%[a-f0-9]{2}",kg=new RegExp("("+O_+")|([^%]+?)","gi"),Ig=new RegExp("("+O_+")+","gi");function ch(n,r){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;r=r||1;const i=n.slice(0,r),s=n.slice(r);return Array.prototype.concat.call([],ch(i),ch(s))}function mx(n){try{return decodeURIComponent(n)}catch{let r=n.match(kg)||[];for(let i=1;i<r.length;i++)n=ch(r,i).join(""),r=n.match(kg)||[];return n}}function px(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=Ig.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=mx(i[0]);u!==i[0]&&(r[i[0]]=u)}i=Ig.exec(n)}r["%C2"]="�";const s=Object.keys(r);for(const u of s)n=n.replace(new RegExp(u,"g"),r[u]);return n}function gx(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return px(n)}}function yx(n,r){const i={};if(Array.isArray(r))for(const s of r){const u=Object.getOwnPropertyDescriptor(n,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,s);if(u.enumerable){const c=n[s];r(s,c,n)&&Object.defineProperty(i,s,u)}}return i}function R_(n,r){if(!(typeof n=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||r==="")return[];const i=n.indexOf(r);return i===-1?[]:[n.slice(0,i),n.slice(i+r.length)]}const vx=n=>n==null,_x=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),fh=Symbol("encodeFragmentIdentifier");function bx(n){switch(n.arrayFormat){case"index":return r=>(i,s)=>{const u=i.length;return s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[$e(r,n),"[",u,"]"].join("")]:[...i,[$e(r,n),"[",$e(u,n),"]=",$e(s,n)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[$e(r,n),"[]"].join("")]:[...i,[$e(r,n),"[]=",$e(s,n)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[$e(r,n),":list="].join("")]:[...i,[$e(r,n),":list=",$e(s,n)].join("")];case"comma":case"separator":case"bracket-separator":{const r=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[$e(i,n),r,$e(u,n)].join("")]:[[s,$e(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,$e(r,n)]:[...i,[$e(r,n),"=",$e(s,n)].join("")]}}function Ex(n){let r;switch(n.arrayFormat){case"index":return(i,s,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=s};case"bracket":return(i,s,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const c=typeof s=="string"&&s.includes(n.arrayFormatSeparator),h=typeof s=="string"&&!c&&kn(s,n).includes(n.arrayFormatSeparator);s=h?kn(s,n):s;const d=c||h?s.split(n.arrayFormatSeparator).map(m=>kn(m,n)):s===null?s:kn(s,n);u[i]=d};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&kn(s,n);return}const h=s===null?[]:kn(s,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=h;return}u[i]=[...u[i],...h]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function C_(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $e(n,r){return r.encode?r.strict?_x(n):encodeURIComponent(n):n}function kn(n,r){return r.decode?gx(n):n}function N_(n){return Array.isArray(n)?n.sort():typeof n=="object"?N_(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function M_(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function Sx(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function Gg(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":i==="string[]"&&r.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):r.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Bh(n){n=M_(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function jh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},C_(r.arrayFormatSeparator);const i=Ex(r),s=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return s;for(const u of n.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[h,d]=R_(c,"=");h===void 0&&(h=c),d=d===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?d:kn(d,r),i(kn(h,r),d,s)}for(const[u,c]of Object.entries(s))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[h,d]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[h]=Gg(d,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=Gg(c,r,r.types[u]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((u,c)=>{const h=s[c];return u[c]=h&&typeof h=="object"&&!Array.isArray(h)?N_(h):h,u},Object.create(null))}function D_(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},C_(r.arrayFormatSeparator);const i=h=>r.skipNull&&vx(n[h])||r.skipEmptyString&&n[h]==="",s=bx(r),u={};for(const[h,d]of Object.entries(n))i(h)||(u[h]=d);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(h=>{const d=n[h];return d===void 0?"":d===null?$e(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?$e(h,r)+"[]":d.reduce(s(h),[]).join("&"):$e(h,r)+"="+$e(d,r)}).filter(h=>h.length>0).join("&")}function B_(n,r){r={decode:!0,...r};let[i,s]=R_(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:jh(Bh(n),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:kn(s,r)}:{}}}function j_(n,r){r={encode:!0,strict:!0,[fh]:!0,...r};const i=M_(n.url).split("?")[0]||"",s=Bh(n.url),u={...jh(s,{sort:!1,...r}),...n.query};let c=D_(u,r);c&&=`?${c}`;let h=Sx(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[fh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${c}${h}`}function L_(n,r,i){i={parseFragmentIdentifier:!0,[fh]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=B_(n,i);return j_({url:s,query:yx(u,r),fragmentIdentifier:c},i)}function Tx(n,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return L_(n,s,i)}const vo=Object.freeze(Object.defineProperty({__proto__:null,exclude:Tx,extract:Bh,parse:jh,parseUrl:B_,pick:L_,stringify:D_,stringifyUrl:j_},Symbol.toStringTag,{value:"Module"}));var rn={},an={},De={},Ol={},he={},qg;function Gt(){return qg||(qg=1,Object.defineProperty(he,"__esModule",{value:!0}),he.GUEST_LOCALE_CHANGED=he.DRAWER_CLOSE=he.DRAWER_OPEN=he.CONVERSATION_RATING_FROM_GUEST=he.TRANSCRIPT_ITEM_GUEST_REACTION=he.TRANSCRIPT_MAIL_REQUEST=he.INBOX_CONNECT_REQUEST=he.RESTART_CHAT_REQUEST=he.EVENT_TO_GUEST=he.NLU_REQUEST_EVENT=he.EXPERTS_DISCONNECTED=he.EXPERTS_DISCONNECT_REQUEST=he.EXPERTS_CONNECTED=he.EXPERTS_CONNECT_REQUEST=he.MESSAGE_TO_GUEST=he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=he.MESSAGE_FROM_GUEST=he.GUEST_FEEDBACK_RESPONSE=he.GUEST_DISCONNECTED=he.GUEST_CONNECTED=he.TYPING_OFF=he.TYPING_ON=void 0,he.TYPING_ON="core.typing.on",he.TYPING_OFF="core.typing.off",he.GUEST_CONNECTED="core.guest.connected",he.GUEST_DISCONNECTED="core.guest.disconnected",he.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",he.MESSAGE_FROM_GUEST="core.message.from.guest",he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",he.MESSAGE_TO_GUEST="core.message.to.guest",he.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",he.EXPERTS_CONNECTED="core.experts.connected",he.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",he.EXPERTS_DISCONNECTED="core.experts.disconnected",he.NLU_REQUEST_EVENT="core.nlu.request.event",he.EVENT_TO_GUEST="core.event.to.guest",he.RESTART_CHAT_REQUEST="core.chat.restart.request",he.INBOX_CONNECT_REQUEST="core.inbox.connect.request",he.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",he.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",he.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",he.DRAWER_OPEN="core.drawer.open",he.DRAWER_CLOSE="core.drawer.close",he.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),he}var Fg;function xx(){if(Fg)return Ol;Fg=1,Object.defineProperty(Ol,"__esModule",{value:!0});const n=Gt(),r=()=>({type:n.DRAWER_CLOSE});return Ol.default=r,Ol}var Rl={},Vg;function Ax(){if(Vg)return Rl;Vg=1,Object.defineProperty(Rl,"__esModule",{value:!0});const n=Gt(),r=(i,s)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Rl.default=r,Rl}var Cl={},Pg;function wx(){if(Pg)return Cl;Pg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Cl.default=r,Cl}var Nl={},Zg;function Ox(){if(Zg)return Nl;Zg=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Nl.default=r,Nl}var Ml={},Yg;function Rx(){if(Yg)return Ml;Yg=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=Gt(),r=(i,s)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Ml.default=r,Ml}var Dl={},Xg;function Cx(){if(Xg)return Dl;Xg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Dl.default=r,Dl}var Bl={},qe={},Qg;function Lh(){if(Qg)return qe;Qg=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.getStringRepresentationFromMessage=qe.MessageTypeEnum=qe.AudioMessage=qe.FileMessage=qe.ImageMessage=qe.VideoMessage=qe.MarkdownMessage=qe.DetailMessage=qe.TextMessage=qe.Message=void 0;class n{type;sender;sources;quickReplies;constructor(T,A,j=[],M=[]){this.type=T,this.sender=A,this.sources=j,this.quickReplies=M}addQuickReply(T,A){this.quickReplies.push({label:T,payload:A})}}qe.Message=n;class r extends n{text;constructor(T,A,j=[],M=[]){super(m.TEXT,A,j,M),this.text=T}}qe.TextMessage=r;class i extends n{title;subtitle;text;imageUrl;itemUrl;buttons;constructor(T,A){super(m.DETAIL,A),this.title=T,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(T){this.imageUrl=T}setItemUrl(T){this.itemUrl=T}setSubtitle(T){this.subtitle=T}setText(T){this.text=T}addButton(T){this.buttons.push(T)}}qe.DetailMessage=i;class s extends n{markdown;constructor(T,A,j=[],M=[]){super(m.MARKDOWN,A,j,M),this.markdown=T}}qe.MarkdownMessage=s;class u extends n{url;constructor(T,A){super(m.VIDEO,A),this.url=T}}qe.VideoMessage=u;class c extends n{url;constructor(T,A){super(m.IMAGE,A),this.url=T}}qe.ImageMessage=c;class h extends n{url;constructor(T,A){super(m.FILE,A),this.url=T}}qe.FileMessage=h;class d extends n{url;constructor(T,A){super(m.AUDIO,A),this.url=T}}qe.AudioMessage=d;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||(qe.MessageTypeEnum=m={}));const g=v=>{switch(v.type){case m.TEXT:return v.text;case m.DETAIL:{const T=v;return`${T.title} // ${T.subtitle}`}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 qe.getStringRepresentationFromMessage=g,qe}var Ut={},Kg;function Uh(){if(Kg)return Ut;Kg=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.UserType=Ut.PersonUser=Ut.GuestUser=Ut.BotUser=Ut.User=void 0;class n{type;id;name;avatar;constructor(h,d,m,g){this.type=h,this.id=d,this.name=m,this.avatar=g}}Ut.User=n;class r extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}Ut.BotUser=r;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}Ut.GuestUser=i;class s extends n{constructor(h,d,m){super(u.PERSON,h,d,m)}}Ut.PersonUser=s;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(Ut.UserType=u={})),Ut}var $g;function Nx(){if($g)return Bl;$g=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=Lh(),r=Uh(),i=Gt(),s=u=>{const c=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Bl.default=s,Bl}var jl={},Jg;function Mx(){if(Jg)return jl;Jg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=Lh(),r=Uh(),i=Gt(),s=(u,c={})=>{const h=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:h,payload:c}};return jl.default=s,jl}var Ll={},Wg;function Dx(){if(Wg)return Ll;Wg=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Ll.default=r,Ll}var Ul={},ey;function Bx(){if(ey)return Ul;ey=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=Gt(),r=()=>({type:n.RESTART_CHAT_REQUEST});return Ul.default=r,Ul}var Hl={},ty;function jx(){if(ty)return Hl;ty=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Hl.default=r,Hl}var zl={},ny;function Lx(){if(ny)return zl;ny=1,Object.defineProperty(zl,"__esModule",{value:!0});const n=Gt(),r=(i,s)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return zl.default=r,zl}var ry;function Ux(){if(ry)return De;ry=1;var n=De&&De.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(De,"__esModule",{value:!0}),De.transcriptItemGuestReaction=De.sendMessageToGuest=De.restartChatRequest=De.requestNLUEvent=De.receiveTextMessageWithoutAnalysisFromGuest=De.receiveTextMessageFromGuest=De.openDrawer=De.guestLocaleChanged=De.guestDisconnected=De.guestConnected=De.feedbackFromGuestResponse=De.closeDrawer=void 0;const r=n(xx());De.closeDrawer=r.default;const i=n(Ax());De.feedbackFromGuestResponse=i.default;const s=n(wx());De.guestConnected=s.default;const u=n(Ox());De.guestDisconnected=u.default;const c=n(Rx());De.guestLocaleChanged=c.default;const h=n(Cx());De.openDrawer=h.default;const d=n(Nx());De.receiveTextMessageFromGuest=d.default;const m=n(Mx());De.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(Dx());De.requestNLUEvent=g.default;const v=n(Bx());De.restartChatRequest=v.default;const T=n(jx());De.sendMessageToGuest=T.default;const A=n(Lx());return De.transcriptItemGuestReaction=A.default,De}var af={},ay;function Hx(){return ay||(ay=1,Object.defineProperty(af,"__esModule",{value:!0})),af}var iy;function zx(){return iy||(iy=1,function(n){var r=an&&an.__createBinding||(Object.create?function(c,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(c,m,g)}:function(c,h,d,m){m===void 0&&(m=d),c[m]=h[d]}),i=an&&an.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),s=an&&an.__importStar||function(){var c=function(h){return c=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},c(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=c(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}(),u=an&&an.__exportStar||function(c,h){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,c,d)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=s(Ux()),n.ActionTypes=s(Gt()),u(Hx(),n)}(an)),an}var Ht={},sf={},sy;function kx(){return sy||(sy=1,Object.defineProperty(sf,"__esModule",{value:!0})),sf}var Pi={},ly;function Ix(){if(ly)return Pi;ly=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Pi.NullableKnowledgeBaseAdapter=n,Pi}var oy;function Gx(){if(oy)return Ht;oy=1;var n=Ht&&Ht.__createBinding||(Object.create?function(u,c,h,d){d===void 0&&(d=h);var m=Object.getOwnPropertyDescriptor(c,h);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[h]}}),Object.defineProperty(u,d,m)}:function(u,c,h,d){d===void 0&&(d=h),u[d]=c[h]}),r=Ht&&Ht.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=Ht&&Ht.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(h){var d=[];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(d[d.length]=m);return d},u(c)};return function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var d=u(c),m=0;m<d.length;m++)d[m]!=="default"&&n(h,c,d[m]);return r(h,c),h}}();Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.NullableCmsAdapter=Ht.KnowledgeBase=void 0,Ht.KnowledgeBase=i(kx());const s=Ix();return Ht.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Ht}var Gr={},lf={},uy;function qx(){return uy||(uy=1,Object.defineProperty(lf,"__esModule",{value:!0})),lf}var of={},cy;function Fx(){return cy||(cy=1,Object.defineProperty(of,"__esModule",{value:!0})),of}var uf={},fy;function Vx(){return fy||(fy=1,Object.defineProperty(uf,"__esModule",{value:!0})),uf}var cf={},hy;function Px(){return hy||(hy=1,Object.defineProperty(cf,"__esModule",{value:!0})),cf}var Zi={},dy;function Zx(){if(dy)return Zi;dy=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.checkMiddlewareCondition=void 0;const n=async(r,i,s)=>(Array.isArray(r)?r:[r]).reduce(async(c,h)=>await c?await h(i,s):!1,Promise.resolve(!0));return Zi.checkMiddlewareCondition=n,Zi}var ff={},my;function Yx(){return my||(my=1,Object.defineProperty(ff,"__esModule",{value:!0})),ff}var hf={},py;function Xx(){return py||(py=1,Object.defineProperty(hf,"__esModule",{value:!0})),hf}var df={},gy;function Qx(){return gy||(gy=1,Object.defineProperty(df,"__esModule",{value:!0})),df}var yy;function Kx(){return yy||(yy=1,function(n){var r=Gr&&Gr.__createBinding||(Object.create?function(s,u,c,h){h===void 0&&(h=c);var d=Object.getOwnPropertyDescriptor(u,c);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,h,d)}:function(s,u,c,h){h===void 0&&(h=c),s[h]=u[c]}),i=Gr&&Gr.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(qx(),n),i(Fx(),n),i(Vx(),n),i(Px(),n),i(Zx(),n),i(Yx(),n),i(Xx(),n),i(Qx(),n)}(Gr)),Gr}var qr={},sn={},vy;function $x(){if(vy)return sn;vy=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.ButtonTypeEnum=sn.PostbackButton=sn.UrlButton=sn.Button=void 0;class n{title;type;constructor(c,h){this.title=c,this.type=h}}sn.Button=n;class r extends n{url;constructor(c,h){super(c,s.WEB_URL),this.url=h}}sn.UrlButton=r;class i extends n{payload;constructor(c,h){super(c,s.POSTBACK),this.payload=h}}sn.PostbackButton=i;var s;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(s||(sn.ButtonTypeEnum=s={})),sn}var mf={},_y;function Jx(){return _y||(_y=1,Object.defineProperty(mf,"__esModule",{value:!0})),mf}var Yi={},by;function Wx(){if(by)return Yi;by=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Yi.SatisfactionEnum=n={})),Yi}var Ey;function Sy(){return Ey||(Ey=1,function(n){var r=qr&&qr.__createBinding||(Object.create?function(s,u,c,h){h===void 0&&(h=c);var d=Object.getOwnPropertyDescriptor(u,c);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,h,d)}:function(s,u,c,h){h===void 0&&(h=c),s[h]=u[c]}),i=qr&&qr.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(n,"__esModule",{value:!0}),i($x(),n),i(Jx(),n),i(Wx(),n),i(Lh(),n),i(Uh(),n)}(qr)),qr}var Ty;function eA(){return Ty||(Ty=1,function(n){var r=rn&&rn.__createBinding||(Object.create?function(c,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(c,m,g)}:function(c,h,d,m){m===void 0&&(m=d),c[m]=h[d]}),i=rn&&rn.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),s=rn&&rn.__exportStar||function(c,h){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,c,d)},u=rn&&rn.__importStar||function(){var c=function(h){return c=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},c(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=c(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,s(zx(),n),n.CMS=u(Gx()),s(Kx(),n),s(Sy(),n),n.Model=u(Sy())}(rn)),rn}var Ee=eA();const U_=n=>r=>(n.payload.type!==Ee.ActionTypes.MESSAGE_FROM_GUEST&&r(Ee.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),H_=n=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>n.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?U_({...u,label:n}):JSON.parse(JSON.stringify(Ee.Actions.receiveTextMessageFromGuest(n))))},Hh="MESSAGE_TO_PARENT_PAGE",zh="RESTORE_PREVIOUS_CHAT_MESSAGES",kh="AUDIO_MESSAGE_FROM_USER",tA="EXPORT_TRANSCRIPT",Ih="RECEIVE_SPEECH_TRANSCRIPTION",Gh="ENABLE_CONVERSATION_RATING",z_="LOAD_SOURCE_INFOS_RESPONSE",qh="LOAD_SOURCE_INFOS_ERROR",Fh="LOAD_SOURCE_INFOS_REQUEST",Vh="CLOSE_SOURCE_INFOS",nA="webclient.get.started",k_="webclient.window.expand",I_="webclient.window.close",G_="webclient.transcript.pdf.download",rA=[Hh,zh,kh,tA,Ih,Gh,Fh,Vh],aA=n=>({type:kh,buffer:n}),iA=n=>({type:Ih,transcription:n}),sA=n=>({type:Ee.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),lA=()=>({type:G_}),oA=({rating:n})=>({type:Gh,payload:{rating:n}}),uA=(n,r)=>({type:Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),q_=n=>Ee.Actions.requestNLUEvent(n),cA=n=>({type:zh,messages:n}),fA=n=>{switch(n.type){case Ee.ButtonTypeEnum.WEB_URL:return V_(n.url);case Ee.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},F_=n=>V_(n),V_=n=>({type:Hh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function kl(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)n[s]=i[s]}return n}var hA={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 hh(n,r){function i(u,c,h){if(!(typeof document>"u")){h=kl({},r,h),typeof h.expires=="number"&&(h.expires=new Date(Date.now()+h.expires*864e5)),h.expires&&(h.expires=h.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var m in h)h[m]&&(d+="; "+m,h[m]!==!0&&(d+="="+h[m].split(";")[0]));return document.cookie=u+"="+n.write(c,u)+d}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],h={},d=0;d<c.length;d++){var m=c[d].split("="),g=m.slice(1).join("=");try{var v=decodeURIComponent(m[0]);if(h[v]=n.read(g,v),u===v)break}catch{}}return u?h[u]:h}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",kl({},c,{expires:-1}))},withAttributes:function(u){return hh(this.converter,kl({},this.attributes,u))},withConverter:function(u){return hh(kl({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var Il=hh(hA,{path:"/"});const ct=[];for(let n=0;n<256;++n)ct.push((n+256).toString(16).slice(1));function dA(n,r=0){return(ct[n[r+0]]+ct[n[r+1]]+ct[n[r+2]]+ct[n[r+3]]+"-"+ct[n[r+4]]+ct[n[r+5]]+"-"+ct[n[r+6]]+ct[n[r+7]]+"-"+ct[n[r+8]]+ct[n[r+9]]+"-"+ct[n[r+10]]+ct[n[r+11]]+ct[n[r+12]]+ct[n[r+13]]+ct[n[r+14]]+ct[n[r+15]]).toLowerCase()}let pf;const mA=new Uint8Array(16);function pA(){if(!pf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pf=crypto.getRandomValues.bind(crypto)}return pf(mA)}const gA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),xy={randomUUID:gA};function dh(n,r,i){if(xy.randomUUID&&!n)return xy.randomUUID();n=n||{};const s=n.random??n.rng?.()??pA();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,dA(s)}function ft(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var yA=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ay=yA,gf=()=>Math.random().toString(36).substring(7).split("").join("."),vA={INIT:`@@redux/INIT${gf()}`,REPLACE:`@@redux/REPLACE${gf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gf()}`},so=vA;function Ph(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function P_(n,r,i){if(typeof n!="function")throw new Error(ft(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ft(1));return i(P_)(n,r)}let s=n,u=r,c=new Map,h=c,d=0,m=!1;function g(){h===c&&(h=new Map,c.forEach((k,E)=>{h.set(E,k)}))}function v(){if(m)throw new Error(ft(3));return u}function T(k){if(typeof k!="function")throw new Error(ft(4));if(m)throw new Error(ft(5));let E=!0;g();const x=d++;return h.set(x,k),function(){if(E){if(m)throw new Error(ft(6));E=!1,g(),h.delete(x),c=null}}}function A(k){if(!Ph(k))throw new Error(ft(7));if(typeof k.type>"u")throw new Error(ft(8));if(typeof k.type!="string")throw new Error(ft(17));if(m)throw new Error(ft(9));try{m=!0,u=s(u,k)}finally{m=!1}return(c=h).forEach(x=>{x()}),k}function j(k){if(typeof k!="function")throw new Error(ft(10));s=k,A({type:so.REPLACE})}function M(){const k=T;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(ft(11));function x(){const O=E;O.next&&O.next(v())}return x(),{unsubscribe:k(x)}},[Ay](){return this}}}return A({type:so.INIT}),{dispatch:A,subscribe:T,getState:v,replaceReducer:j,[Ay]:M}}function _A(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:so.INIT})>"u")throw new Error(ft(12));if(typeof i(void 0,{type:so.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function Z_(n){const r=Object.keys(n),i={};for(let c=0;c<r.length;c++){const h=r[c];typeof n[h]=="function"&&(i[h]=n[h])}const s=Object.keys(i);let u;try{_A(i)}catch(c){u=c}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let v=0;v<s.length;v++){const T=s[v],A=i[T],j=h[T],M=A(j,d);if(typeof M>"u")throw d&&d.type,new Error(ft(14));g[T]=M,m=m||M!==j}return m=m||s.length!==Object.keys(h).length,m?g:h}}function lo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...s)=>r(i(...s)))}function bA(...n){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(ft(15))};const h={getState:u.getState,dispatch:(m,...g)=>c(m,...g)},d=n.map(m=>m(h));return c=lo(...d)(u.dispatch),{...u,dispatch:c}}}function EA(n){return Ph(n)&&"type"in n&&typeof n.type=="string"}var Y_=Symbol.for("immer-nothing"),wy=Symbol.for("immer-draftable"),kt=Symbol.for("immer-state");function un(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Ga=Object.getPrototypeOf;function $r(n){return!!n&&!!n[kt]}function Vn(n){return n?X_(n)||Array.isArray(n)||!!n[wy]||!!n.constructor?.[wy]||bo(n)||Eo(n):!1}var SA=Object.prototype.constructor.toString();function X_(n){if(!n||typeof n!="object")return!1;const r=Ga(n);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===SA}function oo(n,r){_o(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,s)=>r(s,i,n))}function _o(n){const r=n[kt];return r?r.type_:Array.isArray(n)?1:bo(n)?2:Eo(n)?3:0}function mh(n,r){return _o(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function Q_(n,r,i){const s=_o(n);s===2?n.set(r,i):s===3?n.add(i):n[r]=i}function TA(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function bo(n){return n instanceof Map}function Eo(n){return n instanceof Set}function Yr(n){return n.copy_||n.base_}function ph(n,r){if(bo(n))return new Map(n);if(Eo(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=X_(n);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(n);delete s[kt];let u=Reflect.ownKeys(s);for(let c=0;c<u.length;c++){const h=u[c],d=s[h];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(s[h]={configurable:!0,writable:!0,enumerable:d.enumerable,value:n[h]})}return Object.create(Ga(n),s)}else{const s=Ga(n);if(s!==null&&i)return{...n};const u=Object.create(s);return Object.assign(u,n)}}function Zh(n,r=!1){return So(n)||$r(n)||!Vn(n)||(_o(n)>1&&(n.set=n.add=n.clear=n.delete=xA),Object.freeze(n),r&&Object.entries(n).forEach(([i,s])=>Zh(s,!0))),n}function xA(){un(2)}function So(n){return Object.isFrozen(n)}var AA={};function Jr(n){const r=AA[n];return r||un(0,n),r}var rs;function K_(){return rs}function wA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Oy(n,r){r&&(Jr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function gh(n){yh(n),n.drafts_.forEach(OA),n.drafts_=null}function yh(n){n===rs&&(rs=n.parent_)}function Ry(n){return rs=wA(rs,n)}function OA(n){const r=n[kt];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Cy(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[kt].modified_&&(gh(r),un(4)),Vn(n)&&(n=uo(r,n),r.parent_||co(r,n)),r.patches_&&Jr("Patches").generateReplacementPatches_(i[kt].base_,n,r.patches_,r.inversePatches_)):n=uo(r,i,[]),gh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==Y_?n:void 0}function uo(n,r,i){if(So(r))return r;const s=r[kt];if(!s)return oo(r,(u,c)=>Ny(n,s,r,u,c,i)),r;if(s.scope_!==n)return r;if(!s.modified_)return co(n,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let c=u,h=!1;s.type_===3&&(c=new Set(u),u.clear(),h=!0),oo(c,(d,m)=>Ny(n,s,u,d,m,i,h)),co(n,u,!1),i&&n.patches_&&Jr("Patches").generatePatches_(s,i,n.patches_,n.inversePatches_)}return s.copy_}function Ny(n,r,i,s,u,c,h){if($r(u)){const d=c&&r&&r.type_!==3&&!mh(r.assigned_,s)?c.concat(s):void 0,m=uo(n,u,d);if(Q_(i,s,m),$r(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Vn(u)&&!So(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;uo(n,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&co(n,u)}}function co(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Zh(r,i)}function RA(n,r){const i=Array.isArray(n),s={type_:i?1:0,scope_:r?r.scope_:K_(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=Yh;i&&(u=[s],c=as);const{revoke:h,proxy:d}=Proxy.revocable(u,c);return s.draft_=d,s.revoke_=h,d}var Yh={get(n,r){if(r===kt)return n;const i=Yr(n);if(!mh(i,r))return CA(n,i,r);const s=i[r];return n.finalized_||!Vn(s)?s:s===yf(n.base_,r)?(vf(n),n.copy_[r]=_h(s,n)):s},has(n,r){return r in Yr(n)},ownKeys(n){return Reflect.ownKeys(Yr(n))},set(n,r,i){const s=$_(Yr(n),r);if(s?.set)return s.set.call(n.draft_,i),!0;if(!n.modified_){const u=yf(Yr(n),r),c=u?.[kt];if(c&&c.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(TA(i,u)&&(i!==void 0||mh(n.base_,r)))return!0;vf(n),vh(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return yf(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,vf(n),vh(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Yr(n),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){un(11)},getPrototypeOf(n){return Ga(n.base_)},setPrototypeOf(){un(12)}},as={};oo(Yh,(n,r)=>{as[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});as.deleteProperty=function(n,r){return as.set.call(this,n,r,void 0)};as.set=function(n,r,i){return Yh.set.call(this,n[0],r,i,n[0])};function yf(n,r){const i=n[kt];return(i?Yr(i):n)[r]}function CA(n,r,i){const s=$_(r,i);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}function $_(n,r){if(!(r in n))return;let i=Ga(n);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=Ga(i)}}function vh(n){n.modified_||(n.modified_=!0,n.parent_&&vh(n.parent_))}function vf(n){n.copy_||(n.copy_=ph(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var NA=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const h=this;return function(m=c,...g){return h.produce(m,v=>i.call(this,v,...g))}}typeof i!="function"&&un(6),s!==void 0&&typeof s!="function"&&un(7);let u;if(Vn(r)){const c=Ry(this),h=_h(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?gh(c):yh(c)}return Oy(c,s),Cy(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Y_&&(u=void 0),this.autoFreeze_&&Zh(u,!0),s){const c=[],h=[];Jr("Patches").generateReplacementPatches_(r,u,c,h),s(c,h)}return u}else un(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...d)=>this.produceWithPatches(h,m=>r(m,...d));let s,u;return[this.produce(r,i,(h,d)=>{s=h,u=d}),s,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){Vn(n)||un(8),$r(n)&&(n=MA(n));const r=Ry(this),i=_h(n,void 0);return i[kt].isManual_=!0,yh(r),i}finishDraft(n,r){const i=n&&n[kt];(!i||!i.isManual_)&&un(9);const{scope_:s}=i;return Oy(s,r),Cy(void 0,s)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(r=r.slice(i+1));const s=Jr("Patches").applyPatches_;return $r(n)?s(n,r):this.produce(n,u=>s(u,r))}};function _h(n,r){const i=bo(n)?Jr("MapSet").proxyMap_(n,r):Eo(n)?Jr("MapSet").proxySet_(n,r):RA(n,r);return(r?r.scope_:K_()).drafts_.push(i),i}function MA(n){return $r(n)||un(10,n),J_(n)}function J_(n){if(!Vn(n)||So(n))return n;const r=n[kt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=ph(n,r.scope_.immer_.useStrictShallowCopy_)}else i=ph(n,!0);return oo(i,(s,u)=>{Q_(i,s,J_(u))}),r&&(r.finalized_=!1),i}var It=new NA,W_=It.produce;It.produceWithPatches.bind(It);It.setAutoFreeze.bind(It);It.setUseStrictShallowCopy.bind(It);It.applyPatches.bind(It);It.createDraft.bind(It);It.finishDraft.bind(It);function e1(n){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,n):u(c)}var DA=e1(),BA=e1,jA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?lo:lo.apply(null,arguments)};function My(n,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(In(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:s[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=s=>EA(s)&&s.type===n,i}var t1=class Wi extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Wi.prototype)}static get[Symbol.species](){return Wi}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Wi(...r[0].concat(this)):new Wi(...r.concat(this))}};function Dy(n){return Vn(n)?W_(n,()=>{}):n}function Gl(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function LA(n){return typeof n=="boolean"}var UA=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let h=new t1;return i&&(LA(i)?h.push(DA):h.push(BA(i.extraArgument))),h},HA="RTK_autoBatch",By=n=>r=>{setTimeout(r,n)},zA=(n={type:"raf"})=>r=>(...i)=>{const s=r(...i);let u=!0,c=!1,h=!1;const d=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:By(10):n.type==="callback"?n.queueNotification:By(n.timeout),g=()=>{h=!1,c&&(c=!1,d.forEach(v=>v()))};return Object.assign({},s,{subscribe(v){const T=()=>u&&v(),A=s.subscribe(T);return d.add(v),()=>{A(),d.delete(v)}},dispatch(v){try{return u=!v?.meta?.[HA],c=!u,c&&(h||(h=!0,m(g))),s.dispatch(v)}finally{u=!0}}})},kA=n=>function(i){const{autoBatch:s=!0}=i??{};let u=new t1(n);return s&&u.push(zA(typeof s=="object"?s:void 0)),u};function IA(n){const r=UA(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:c=void 0,enhancers:h=void 0}=n||{};let d;if(typeof i=="function")d=i;else if(Ph(i))d=Z_(i);else throw new Error(In(1));let m;typeof s=="function"?m=s(r):m=r();let g=lo;u&&(g=jA({trace:!1,...typeof u=="object"&&u}));const v=bA(...m),T=kA(v);let A=typeof h=="function"?h(T):T();const j=g(...A);return P_(d,c,j)}function n1(n){const r={},i=[];let s;const u={addCase(c,h){const d=typeof c=="string"?c:c.type;if(!d)throw new Error(In(28));if(d in r)throw new Error(In(29));return r[d]=h,u},addMatcher(c,h){return i.push({matcher:c,reducer:h}),u},addDefaultCase(c){return s=c,u}};return n(u),[r,i,s]}function GA(n){return typeof n=="function"}function qA(n,r){let[i,s,u]=n1(r),c;if(GA(n))c=()=>Dy(n());else{const d=Dy(n);c=()=>d}function h(d=c(),m){let g=[i[m.type],...s.filter(({matcher:v})=>v(m)).map(({reducer:v})=>v)];return g.filter(v=>!!v).length===0&&(g=[u]),g.reduce((v,T)=>{if(T)if($r(v)){const j=T(v,m);return j===void 0?v:j}else{if(Vn(v))return W_(v,A=>T(A,m));{const A=T(v,m);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return v},d)}return h.getInitialState=c,h}var FA=Symbol.for("rtk-slice-createasyncthunk");function VA(n,r){return`${n}/${r}`}function PA({creators:n}={}){const r=n?.asyncThunk?.[FA];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(In(11));const h=(typeof s.reducers=="function"?s.reducers(YA()):s.reducers)||{},d=Object.keys(h),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(b,O){const S=typeof b=="string"?b:b.type;if(!S)throw new Error(In(12));if(S in m.sliceCaseReducersByType)throw new Error(In(13));return m.sliceCaseReducersByType[S]=O,g},addMatcher(b,O){return m.sliceMatchers.push({matcher:b,reducer:O}),g},exposeAction(b,O){return m.actionCreators[b]=O,g},exposeCaseReducer(b,O){return m.sliceCaseReducersByName[b]=O,g}};d.forEach(b=>{const O=h[b],S={reducerName:b,type:VA(u,b),createNotation:typeof s.reducers=="function"};QA(O)?$A(S,O,g,r):XA(S,O,g)});function v(){const[b={},O=[],S=void 0]=typeof s.extraReducers=="function"?n1(s.extraReducers):[s.extraReducers],z={...b,...m.sliceCaseReducersByType};return qA(s.initialState,Z=>{for(let $ in z)Z.addCase($,z[$]);for(let $ of m.sliceMatchers)Z.addMatcher($.matcher,$.reducer);for(let $ of O)Z.addMatcher($.matcher,$.reducer);S&&Z.addDefaultCase(S)})}const T=b=>b,A=new Map,j=new WeakMap;let M;function F(b,O){return M||(M=v()),M(b,O)}function k(){return M||(M=v()),M.getInitialState()}function E(b,O=!1){function S(Z){let $=Z[b];return typeof $>"u"&&O&&($=Gl(j,S,k)),$}function z(Z=T){const $=Gl(A,O,()=>new WeakMap);return Gl($,Z,()=>{const se={};for(const[re,J]of Object.entries(s.selectors??{}))se[re]=ZA(J,Z,()=>Gl(j,Z,k),O);return se})}return{reducerPath:b,getSelectors:z,get selectors(){return z(S)},selectSlice:S}}const x={name:u,reducer:F,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:k,...E(c),injectInto(b,{reducerPath:O,...S}={}){const z=O??c;return b.inject({reducerPath:z,reducer:F},S),{...x,...E(z,!0)}}};return x}}function ZA(n,r,i,s){function u(c,...h){let d=r(c);return typeof d>"u"&&s&&(d=i()),n(d,...h)}return u.unwrapped=n,u}var Xh=PA();function YA(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:n}}function XA({type:n,reducerName:r,createNotation:i},s,u){let c,h;if("reducer"in s){if(i&&!KA(s))throw new Error(In(17));c=s.reducer,h=s.prepare}else c=s;u.addCase(n,c).exposeCaseReducer(r,c).exposeAction(r,h?My(n,h):My(n))}function QA(n){return n._reducerDefinitionType==="asyncThunk"}function KA(n){return n._reducerDefinitionType==="reducerWithPrepare"}function $A({type:n,reducerName:r},i,s,u){if(!u)throw new Error(In(18));const{payloadCreator:c,fulfilled:h,pending:d,rejected:m,settled:g,options:v}=i,T=u(n,c,v);s.exposeAction(r,T),h&&s.addCase(T.fulfilled,h),d&&s.addCase(T.pending,d),m&&s.addCase(T.rejected,m),g&&s.addMatcher(T.settled,g),s.exposeCaseReducer(r,{fulfilled:h||ql,pending:d||ql,rejected:m||ql,settled:g||ql})}function ql(){}function In(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 JA={formValues:{}},r1=Xh({name:"start-screen",initialState:JA,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:WA,showStartScreen:ew}=r1.actions,tw=r1.reducer,a1="RESET_CHAT_STATE",nw=()=>({type:I_}),rw=()=>({type:a1}),jy=(n,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Fh,payload:{chunkId:i}}),Ly(n,c,r,i,!1,s),Ly(n,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:qh})}},Ly=(n,r,i,s,u,c)=>{const h=`/${n}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(h,{headers:{"x-bubble-chat-session-id":r}}).then(d=>{if(!d.ok)throw new Error(`HTTP error! Status: ${d.status}`);return d.json()}).then(d=>{const m={...d,chunkId:s,highlighted:u};c({type:z_,payload:m})}).catch(d=>{console.error("Error fetching source infos:",d),c({type:qh,payload:{highlighted:u}})})},aw=()=>({type:Vh}),Qh="CONNECT",Kh="CONNECTING",$h="CONNECTED",Jh="DISCONNECTED",Wh="RECONNECTED",ed="RESTORE_SESSION_ID",To="START",xo="CLEAR_SESSION_ID",iw=[Qh,Kh,$h,Jh,Wh,ed],sw=(n,r)=>({type:Qh,clientName:n,querystrings:r}),lw=n=>({type:ed,sessionId:n}),ow=()=>({type:Kh}),uw=()=>({type:$h}),cw=()=>({type:Jh}),fw=()=>({type:Wh}),i1=(n,r)=>(i,s)=>{const u=s().connection,c=s().startScreen.formValues;let h=u.sessionId;h===void 0&&(h=dh());let d=u.userId;if(d===void 0){const m=Il.get("bubble-chat-user-id")||Il.get("bubble-chat-userId")||Il.get("bf-webclient-userId");d=m||dh(),Il.set("bubble-chat-user-id",d)}i({type:To,payload:{sessionId:h,userId:d,clientName:n,querystrings:{...r,...c}}})},Ao=(n,r)=>(i,s)=>{const u=s().connection.sessionId||"";if(i(hw(u)),i(rw()),s().settings.enableStartScreen)i(ew());else return i(i1(n,r))},hw=n=>({type:xo,payload:{sessionId:n}}),Pe=()=>{const n=yo();return i=>{const s=n.formatMessage({id:i});return s===i?void 0:s}};var Qr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Qr||{}),fo=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(fo||{});const dw="_container_q2uun_1",mw="_chatcontent_q2uun_6",pw="_accessabilityHidden_q2uun_12",_f={container:dw,chatcontent:mw,accessabilityHidden:pw},gw="_messageContainer_ofi0g_1",yw="_messages_ofi0g_12",Uy={messageContainer:gw,messages:yw};function Xr(){return Xr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Xr.apply(this,arguments)}const vw=["children","options"],_w={footnoteReference:"7"},Hy=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((n,r)=>(n[r.toLowerCase()]=r,n),{class:"className",for:"htmlFor"}),zy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},bw=["style","script"],Ew=["src","href","data","formAction","srcDoc","action"],Sw=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Tw=/mailto:/i,xw=/\n{2,}$/,ky=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Aw=/^ *> ?/gm,ww=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Ow=/^ {2,}\n/,Rw=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Iy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Gy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Cw=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Nw=/^(?:\n *)*\n/,Mw=/\r\n?/g,Dw=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Bw=/^\[\^([^\]]+)]/,jw=/\f/g,Lw=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Uw=/^\s*?\[(x|\s)\]/,qy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Fy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Vy=/^([^\n]+)\n *(=|-){3,} *\n/,bf=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Hw=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Py=/^<!--[\s\S]*?(?:-->)/,zw=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ef=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,kw=/^\{.*\}$/,Iw=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Gw=/^<([^ >]+@[^ >]+)>/,qw=/^<([^ >]+:\/[^ >]+)>/,Fw=/-([a-z])?/gi,Zy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Vw=/^[^\n]+(?: \n|\n{2,})/,Pw=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Zw=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Yw=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Xw=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Qw=/\t/g,Kw=/(^ *\||\| *$)/g,$w=/^ *:-+: *$/,Jw=/^ *:-+ *$/,Ww=/^ *-+: *$/,wo="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",e6=RegExp(`^([*_])\\1${wo}\\1\\1(?!\\1)`),t6=RegExp(`^([*_])${wo}\\1(?!\\1)`),n6=RegExp(`^(==)${wo}\\1`),r6=RegExp(`^(~~)${wo}\\1`),a6=/^\\([^0-9A-Za-z\s])/,Yy=/\\([^0-9A-Za-z\s])/g,i6=/^[\s\S](?:(?! |[0-9]\.|http)[^=*_~\-\n<`\\\[!])*/,s6=/^\n+/,l6=/^([ \t]*)/,o6=/\\([^\\])/g,u6=/(?:^|\n)( *)$/,td="(?:\\d+\\.)",nd="(?:[*+-])";function s1(n){return"( *)("+(n===1?td:nd)+") +"}const l1=s1(1),o1=s1(2);function u1(n){return RegExp("^"+(n===1?l1:o1))}const c6=u1(1),f6=u1(2);function c1(n){return RegExp("^"+(n===1?l1:o1)+"[^\\n]*(?:\\n(?!\\1"+(n===1?td:nd)+" )[^\\n]*)*(\\n|$)","gm")}const h6=c1(1),d6=c1(2);function f1(n){const r=n===1?td:nd;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const h1=f1(1),d1=f1(2);function Xy(n,r){const i=r===1,s=i?h1:d1,u=i?h6:d6,c=i?c6:f6;return{t:h=>c.test(h),o:us(function(h,d){const m=u6.exec(d.prevCapture);return m&&(d.list||!d.inline&&!d.simple)?s.exec(h=m[1]+h):null}),i:1,u(h,d,m){const g=i?+h[2]:void 0,v=h[0].replace(xw,`
|
|
94
|
-
`).match(u);let
|
|
93
|
+
*/var jg;function ix(){if(jg)return Ce;jg=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,v=n?Symbol.for("react.forward_ref"):60112,S=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.suspense_list"):60120,U=n?Symbol.for("react.memo"):60115,M=n?Symbol.for("react.lazy"):60116,F=n?Symbol.for("react.block"):60121,j=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function b(T){if(typeof T=="object"&&T!==null){var k=T.$$typeof;switch(k){case r:switch(T=T.type,T){case m:case g:case s:case c:case u:case S:return T;default:switch(T=T&&T.$$typeof,T){case d:case v:case M:case U:case h:return T;default:return k}}case i:return k}}}function O(T){return b(T)===g}return Ce.AsyncMode=m,Ce.ConcurrentMode=g,Ce.ContextConsumer=d,Ce.ContextProvider=h,Ce.Element=r,Ce.ForwardRef=v,Ce.Fragment=s,Ce.Lazy=M,Ce.Memo=U,Ce.Portal=i,Ce.Profiler=c,Ce.StrictMode=u,Ce.Suspense=S,Ce.isAsyncMode=function(T){return O(T)||b(T)===m},Ce.isConcurrentMode=O,Ce.isContextConsumer=function(T){return b(T)===d},Ce.isContextProvider=function(T){return b(T)===h},Ce.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Ce.isForwardRef=function(T){return b(T)===v},Ce.isFragment=function(T){return b(T)===s},Ce.isLazy=function(T){return b(T)===M},Ce.isMemo=function(T){return b(T)===U},Ce.isPortal=function(T){return b(T)===i},Ce.isProfiler=function(T){return b(T)===c},Ce.isStrictMode=function(T){return b(T)===u},Ce.isSuspense=function(T){return b(T)===S},Ce.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===s||T===g||T===c||T===u||T===S||T===A||typeof T=="object"&&T!==null&&(T.$$typeof===M||T.$$typeof===U||T.$$typeof===h||T.$$typeof===d||T.$$typeof===v||T.$$typeof===j||T.$$typeof===E||T.$$typeof===x||T.$$typeof===F)},Ce.typeOf=b,Ce}var Lg;function sx(){return Lg||(Lg=1,tf.exports=ix()),tf.exports}var nf,Ug;function lx(){if(Ug)return nf;Ug=1;var n=sx(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=s,c[n.Memo]=u;function h(M){return n.isMemo(M)?u:c[M.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,A=Object.prototype;function U(M,F,j){if(typeof F!="string"){if(A){var E=S(F);E&&E!==A&&U(M,E,j)}var x=m(F);g&&(x=x.concat(g(F)));for(var b=h(M),O=h(F),T=0;T<x.length;++T){var k=x[T];if(!i[k]&&!(j&&j[k])&&!(O&&O[k])&&!(b&&b[k])){var Z=v(F,k);try{d(M,k,Z)}catch{}}}}return M}return nf=U,nf}lx();var Dh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=H.createContext(null)):H.createContext(null);Dh.Consumer;var ox=Dh.Provider,ux=ox,cx=Dh;function yo(){var n=H.useContext(cx);return T_(n),n}var oh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(oh||(oh={}));var uh;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(uh||(uh={}));function A_(n){var r=function(i){var s=yo(),u=i.value,c=i.children,h=go(i,["value","children"]),d=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?s.formatDateToParts(d,h):s.formatTimeToParts(d,h);return c(m)};return r.displayName=uh[n],r}function os(n){var r=function(i){var s=yo(),u=i.value,c=i.children,h=go(i,["value","children"]),d=s[n](u,h);if(typeof c=="function")return c(d);var m=s.textComponent||H.Fragment;return H.createElement(m,null,d)};return r.displayName=oh[n],r}function w_(n){return n&&Object.keys(n).reduce(function(r,i){var s=n[i];return r[i]=y_(s)?rx(s):s,r},{})}var Hg=function(n,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var h=w_(s),d=lh.apply(void 0,vn([n,r,i,h],u,!1));return Array.isArray(d)?nx(d):d},zg=function(n,r){var i=n.defaultRichTextElements,s=go(n,["defaultRichTextElements"]),u=w_(i),c=JT(ne(ne(ne({},x_),s),{defaultRichTextElements:u}),r),h={locale:c.locale,timeZone:c.timeZone,fallbackOnEmptyString:c.fallbackOnEmptyString,formats:c.formats,defaultLocale:c.defaultLocale,defaultFormats:c.defaultFormats,messages:c.messages,onError:c.onError,defaultRichTextElements:u};return ne(ne({},c),{formatMessage:Hg.bind(null,h,c.formatters),$t:Hg.bind(null,h,c.formatters)})};function rf(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}var fx=function(n){Jt(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=b_(),i.state={cache:i.cache,intl:zg(rf(i.props),i.cache),prevConfig:rf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,h=rf(i);return ax(u,h)?null:{intl:zg(h,c),prevConfig:h}},r.prototype.render=function(){return T_(this.state.intl),H.createElement(ux,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=x_,r}(H.PureComponent);os("formatDate");os("formatTime");os("formatNumber");os("formatList");os("formatDisplayName");A_("formatDate");A_("formatTime");const hx="_app_1rj0t_1",dx={app:hx},Wr=CS,zt=DS,O_="%[a-f0-9]{2}",kg=new RegExp("("+O_+")|([^%]+?)","gi"),Ig=new RegExp("("+O_+")+","gi");function ch(n,r){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;r=r||1;const i=n.slice(0,r),s=n.slice(r);return Array.prototype.concat.call([],ch(i),ch(s))}function mx(n){try{return decodeURIComponent(n)}catch{let r=n.match(kg)||[];for(let i=1;i<r.length;i++)n=ch(r,i).join(""),r=n.match(kg)||[];return n}}function px(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=Ig.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=mx(i[0]);u!==i[0]&&(r[i[0]]=u)}i=Ig.exec(n)}r["%C2"]="�";const s=Object.keys(r);for(const u of s)n=n.replace(new RegExp(u,"g"),r[u]);return n}function gx(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return px(n)}}function yx(n,r){const i={};if(Array.isArray(r))for(const s of r){const u=Object.getOwnPropertyDescriptor(n,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,s);if(u.enumerable){const c=n[s];r(s,c,n)&&Object.defineProperty(i,s,u)}}return i}function R_(n,r){if(!(typeof n=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||r==="")return[];const i=n.indexOf(r);return i===-1?[]:[n.slice(0,i),n.slice(i+r.length)]}const vx=n=>n==null,_x=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),fh=Symbol("encodeFragmentIdentifier");function bx(n){switch(n.arrayFormat){case"index":return r=>(i,s)=>{const u=i.length;return s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[$e(r,n),"[",u,"]"].join("")]:[...i,[$e(r,n),"[",$e(u,n),"]=",$e(s,n)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[$e(r,n),"[]"].join("")]:[...i,[$e(r,n),"[]=",$e(s,n)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[$e(r,n),":list="].join("")]:[...i,[$e(r,n),":list=",$e(s,n)].join("")];case"comma":case"separator":case"bracket-separator":{const r=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[$e(i,n),r,$e(u,n)].join("")]:[[s,$e(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,$e(r,n)]:[...i,[$e(r,n),"=",$e(s,n)].join("")]}}function Ex(n){let r;switch(n.arrayFormat){case"index":return(i,s,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=s};case"bracket":return(i,s,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const c=typeof s=="string"&&s.includes(n.arrayFormatSeparator),h=typeof s=="string"&&!c&&kn(s,n).includes(n.arrayFormatSeparator);s=h?kn(s,n):s;const d=c||h?s.split(n.arrayFormatSeparator).map(m=>kn(m,n)):s===null?s:kn(s,n);u[i]=d};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&kn(s,n);return}const h=s===null?[]:kn(s,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=h;return}u[i]=[...u[i],...h]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function C_(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $e(n,r){return r.encode?r.strict?_x(n):encodeURIComponent(n):n}function kn(n,r){return r.decode?gx(n):n}function N_(n){return Array.isArray(n)?n.sort():typeof n=="object"?N_(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function M_(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function Sx(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function Gg(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":i==="string[]"&&r.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):r.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Bh(n){n=M_(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function jh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},C_(r.arrayFormatSeparator);const i=Ex(r),s=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return s;for(const u of n.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[h,d]=R_(c,"=");h===void 0&&(h=c),d=d===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?d:kn(d,r),i(kn(h,r),d,s)}for(const[u,c]of Object.entries(s))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[h,d]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[h]=Gg(d,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=Gg(c,r,r.types[u]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((u,c)=>{const h=s[c];return u[c]=h&&typeof h=="object"&&!Array.isArray(h)?N_(h):h,u},Object.create(null))}function D_(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},C_(r.arrayFormatSeparator);const i=h=>r.skipNull&&vx(n[h])||r.skipEmptyString&&n[h]==="",s=bx(r),u={};for(const[h,d]of Object.entries(n))i(h)||(u[h]=d);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(h=>{const d=n[h];return d===void 0?"":d===null?$e(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?$e(h,r)+"[]":d.reduce(s(h),[]).join("&"):$e(h,r)+"="+$e(d,r)}).filter(h=>h.length>0).join("&")}function B_(n,r){r={decode:!0,...r};let[i,s]=R_(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:jh(Bh(n),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:kn(s,r)}:{}}}function j_(n,r){r={encode:!0,strict:!0,[fh]:!0,...r};const i=M_(n.url).split("?")[0]||"",s=Bh(n.url),u={...jh(s,{sort:!1,...r}),...n.query};let c=D_(u,r);c&&=`?${c}`;let h=Sx(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[fh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${c}${h}`}function L_(n,r,i){i={parseFragmentIdentifier:!0,[fh]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=B_(n,i);return j_({url:s,query:yx(u,r),fragmentIdentifier:c},i)}function Tx(n,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return L_(n,s,i)}const vo=Object.freeze(Object.defineProperty({__proto__:null,exclude:Tx,extract:Bh,parse:jh,parseUrl:B_,pick:L_,stringify:D_,stringifyUrl:j_},Symbol.toStringTag,{value:"Module"}));var rn={},an={},De={},Ol={},he={},qg;function Gt(){return qg||(qg=1,Object.defineProperty(he,"__esModule",{value:!0}),he.GUEST_LOCALE_CHANGED=he.DRAWER_CLOSE=he.DRAWER_OPEN=he.CONVERSATION_RATING_FROM_GUEST=he.TRANSCRIPT_ITEM_GUEST_REACTION=he.TRANSCRIPT_MAIL_REQUEST=he.INBOX_CONNECT_REQUEST=he.RESTART_CHAT_REQUEST=he.EVENT_TO_GUEST=he.NLU_REQUEST_EVENT=he.EXPERTS_DISCONNECTED=he.EXPERTS_DISCONNECT_REQUEST=he.EXPERTS_CONNECTED=he.EXPERTS_CONNECT_REQUEST=he.MESSAGE_TO_GUEST=he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=he.MESSAGE_FROM_GUEST=he.GUEST_FEEDBACK_RESPONSE=he.GUEST_DISCONNECTED=he.GUEST_CONNECTED=he.TYPING_OFF=he.TYPING_ON=void 0,he.TYPING_ON="core.typing.on",he.TYPING_OFF="core.typing.off",he.GUEST_CONNECTED="core.guest.connected",he.GUEST_DISCONNECTED="core.guest.disconnected",he.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",he.MESSAGE_FROM_GUEST="core.message.from.guest",he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",he.MESSAGE_TO_GUEST="core.message.to.guest",he.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",he.EXPERTS_CONNECTED="core.experts.connected",he.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",he.EXPERTS_DISCONNECTED="core.experts.disconnected",he.NLU_REQUEST_EVENT="core.nlu.request.event",he.EVENT_TO_GUEST="core.event.to.guest",he.RESTART_CHAT_REQUEST="core.chat.restart.request",he.INBOX_CONNECT_REQUEST="core.inbox.connect.request",he.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",he.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",he.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",he.DRAWER_OPEN="core.drawer.open",he.DRAWER_CLOSE="core.drawer.close",he.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),he}var Fg;function xx(){if(Fg)return Ol;Fg=1,Object.defineProperty(Ol,"__esModule",{value:!0});const n=Gt(),r=()=>({type:n.DRAWER_CLOSE});return Ol.default=r,Ol}var Rl={},Vg;function Ax(){if(Vg)return Rl;Vg=1,Object.defineProperty(Rl,"__esModule",{value:!0});const n=Gt(),r=(i,s)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Rl.default=r,Rl}var Cl={},Pg;function wx(){if(Pg)return Cl;Pg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Cl.default=r,Cl}var Nl={},Zg;function Ox(){if(Zg)return Nl;Zg=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Nl.default=r,Nl}var Ml={},Yg;function Rx(){if(Yg)return Ml;Yg=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=Gt(),r=(i,s)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Ml.default=r,Ml}var Dl={},Xg;function Cx(){if(Xg)return Dl;Xg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Dl.default=r,Dl}var Bl={},qe={},Qg;function Lh(){if(Qg)return qe;Qg=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.getStringRepresentationFromMessage=qe.MessageTypeEnum=qe.AudioMessage=qe.FileMessage=qe.ImageMessage=qe.VideoMessage=qe.MarkdownMessage=qe.DetailMessage=qe.TextMessage=qe.Message=void 0;class n{type;sender;sources;quickReplies;constructor(S,A,U=[],M=[]){this.type=S,this.sender=A,this.sources=U,this.quickReplies=M}addQuickReply(S,A){this.quickReplies.push({label:S,payload:A})}}qe.Message=n;class r extends n{text;constructor(S,A,U=[],M=[]){super(m.TEXT,A,U,M),this.text=S}}qe.TextMessage=r;class i extends n{title;subtitle;text;imageUrl;itemUrl;buttons;constructor(S,A){super(m.DETAIL,A),this.title=S,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(S){this.imageUrl=S}setItemUrl(S){this.itemUrl=S}setSubtitle(S){this.subtitle=S}setText(S){this.text=S}addButton(S){this.buttons.push(S)}}qe.DetailMessage=i;class s extends n{markdown;constructor(S,A,U=[],M=[]){super(m.MARKDOWN,A,U,M),this.markdown=S}}qe.MarkdownMessage=s;class u extends n{url;constructor(S,A){super(m.VIDEO,A),this.url=S}}qe.VideoMessage=u;class c extends n{url;constructor(S,A){super(m.IMAGE,A),this.url=S}}qe.ImageMessage=c;class h extends n{url;constructor(S,A){super(m.FILE,A),this.url=S}}qe.FileMessage=h;class d extends n{url;constructor(S,A){super(m.AUDIO,A),this.url=S}}qe.AudioMessage=d;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||(qe.MessageTypeEnum=m={}));const g=v=>{switch(v.type){case m.TEXT:return v.text;case m.DETAIL:{const S=v;return`${S.title} // ${S.subtitle}`}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 qe.getStringRepresentationFromMessage=g,qe}var Ut={},Kg;function Uh(){if(Kg)return Ut;Kg=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.UserType=Ut.PersonUser=Ut.GuestUser=Ut.BotUser=Ut.User=void 0;class n{type;id;name;avatar;constructor(h,d,m,g){this.type=h,this.id=d,this.name=m,this.avatar=g}}Ut.User=n;class r extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}Ut.BotUser=r;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}Ut.GuestUser=i;class s extends n{constructor(h,d,m){super(u.PERSON,h,d,m)}}Ut.PersonUser=s;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(Ut.UserType=u={})),Ut}var $g;function Nx(){if($g)return Bl;$g=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=Lh(),r=Uh(),i=Gt(),s=u=>{const c=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Bl.default=s,Bl}var jl={},Jg;function Mx(){if(Jg)return jl;Jg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=Lh(),r=Uh(),i=Gt(),s=(u,c={})=>{const h=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:h,payload:c}};return jl.default=s,jl}var Ll={},Wg;function Dx(){if(Wg)return Ll;Wg=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Ll.default=r,Ll}var Ul={},ey;function Bx(){if(ey)return Ul;ey=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=Gt(),r=()=>({type:n.RESTART_CHAT_REQUEST});return Ul.default=r,Ul}var Hl={},ty;function jx(){if(ty)return Hl;ty=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=Gt(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Hl.default=r,Hl}var zl={},ny;function Lx(){if(ny)return zl;ny=1,Object.defineProperty(zl,"__esModule",{value:!0});const n=Gt(),r=(i,s)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return zl.default=r,zl}var ry;function Ux(){if(ry)return De;ry=1;var n=De&&De.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(De,"__esModule",{value:!0}),De.transcriptItemGuestReaction=De.sendMessageToGuest=De.restartChatRequest=De.requestNLUEvent=De.receiveTextMessageWithoutAnalysisFromGuest=De.receiveTextMessageFromGuest=De.openDrawer=De.guestLocaleChanged=De.guestDisconnected=De.guestConnected=De.feedbackFromGuestResponse=De.closeDrawer=void 0;const r=n(xx());De.closeDrawer=r.default;const i=n(Ax());De.feedbackFromGuestResponse=i.default;const s=n(wx());De.guestConnected=s.default;const u=n(Ox());De.guestDisconnected=u.default;const c=n(Rx());De.guestLocaleChanged=c.default;const h=n(Cx());De.openDrawer=h.default;const d=n(Nx());De.receiveTextMessageFromGuest=d.default;const m=n(Mx());De.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(Dx());De.requestNLUEvent=g.default;const v=n(Bx());De.restartChatRequest=v.default;const S=n(jx());De.sendMessageToGuest=S.default;const A=n(Lx());return De.transcriptItemGuestReaction=A.default,De}var af={},ay;function Hx(){return ay||(ay=1,Object.defineProperty(af,"__esModule",{value:!0})),af}var iy;function zx(){return iy||(iy=1,function(n){var r=an&&an.__createBinding||(Object.create?function(c,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(c,m,g)}:function(c,h,d,m){m===void 0&&(m=d),c[m]=h[d]}),i=an&&an.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),s=an&&an.__importStar||function(){var c=function(h){return c=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},c(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=c(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}(),u=an&&an.__exportStar||function(c,h){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,c,d)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=s(Ux()),n.ActionTypes=s(Gt()),u(Hx(),n)}(an)),an}var Ht={},sf={},sy;function kx(){return sy||(sy=1,Object.defineProperty(sf,"__esModule",{value:!0})),sf}var Pi={},ly;function Ix(){if(ly)return Pi;ly=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Pi.NullableKnowledgeBaseAdapter=n,Pi}var oy;function Gx(){if(oy)return Ht;oy=1;var n=Ht&&Ht.__createBinding||(Object.create?function(u,c,h,d){d===void 0&&(d=h);var m=Object.getOwnPropertyDescriptor(c,h);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[h]}}),Object.defineProperty(u,d,m)}:function(u,c,h,d){d===void 0&&(d=h),u[d]=c[h]}),r=Ht&&Ht.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=Ht&&Ht.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(h){var d=[];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(d[d.length]=m);return d},u(c)};return function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var d=u(c),m=0;m<d.length;m++)d[m]!=="default"&&n(h,c,d[m]);return r(h,c),h}}();Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.NullableCmsAdapter=Ht.KnowledgeBase=void 0,Ht.KnowledgeBase=i(kx());const s=Ix();return Ht.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Ht}var Gr={},lf={},uy;function qx(){return uy||(uy=1,Object.defineProperty(lf,"__esModule",{value:!0})),lf}var of={},cy;function Fx(){return cy||(cy=1,Object.defineProperty(of,"__esModule",{value:!0})),of}var uf={},fy;function Vx(){return fy||(fy=1,Object.defineProperty(uf,"__esModule",{value:!0})),uf}var cf={},hy;function Px(){return hy||(hy=1,Object.defineProperty(cf,"__esModule",{value:!0})),cf}var Zi={},dy;function Zx(){if(dy)return Zi;dy=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.checkMiddlewareCondition=void 0;const n=async(r,i,s)=>(Array.isArray(r)?r:[r]).reduce(async(c,h)=>await c?await h(i,s):!1,Promise.resolve(!0));return Zi.checkMiddlewareCondition=n,Zi}var ff={},my;function Yx(){return my||(my=1,Object.defineProperty(ff,"__esModule",{value:!0})),ff}var hf={},py;function Xx(){return py||(py=1,Object.defineProperty(hf,"__esModule",{value:!0})),hf}var df={},gy;function Qx(){return gy||(gy=1,Object.defineProperty(df,"__esModule",{value:!0})),df}var yy;function Kx(){return yy||(yy=1,function(n){var r=Gr&&Gr.__createBinding||(Object.create?function(s,u,c,h){h===void 0&&(h=c);var d=Object.getOwnPropertyDescriptor(u,c);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,h,d)}:function(s,u,c,h){h===void 0&&(h=c),s[h]=u[c]}),i=Gr&&Gr.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(qx(),n),i(Fx(),n),i(Vx(),n),i(Px(),n),i(Zx(),n),i(Yx(),n),i(Xx(),n),i(Qx(),n)}(Gr)),Gr}var qr={},sn={},vy;function $x(){if(vy)return sn;vy=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.ButtonTypeEnum=sn.PostbackButton=sn.UrlButton=sn.Button=void 0;class n{title;type;constructor(c,h){this.title=c,this.type=h}}sn.Button=n;class r extends n{url;constructor(c,h){super(c,s.WEB_URL),this.url=h}}sn.UrlButton=r;class i extends n{payload;constructor(c,h){super(c,s.POSTBACK),this.payload=h}}sn.PostbackButton=i;var s;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(s||(sn.ButtonTypeEnum=s={})),sn}var mf={},_y;function Jx(){return _y||(_y=1,Object.defineProperty(mf,"__esModule",{value:!0})),mf}var Yi={},by;function Wx(){if(by)return Yi;by=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Yi.SatisfactionEnum=n={})),Yi}var Ey;function Sy(){return Ey||(Ey=1,function(n){var r=qr&&qr.__createBinding||(Object.create?function(s,u,c,h){h===void 0&&(h=c);var d=Object.getOwnPropertyDescriptor(u,c);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,h,d)}:function(s,u,c,h){h===void 0&&(h=c),s[h]=u[c]}),i=qr&&qr.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(n,"__esModule",{value:!0}),i($x(),n),i(Jx(),n),i(Wx(),n),i(Lh(),n),i(Uh(),n)}(qr)),qr}var Ty;function eA(){return Ty||(Ty=1,function(n){var r=rn&&rn.__createBinding||(Object.create?function(c,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(c,m,g)}:function(c,h,d,m){m===void 0&&(m=d),c[m]=h[d]}),i=rn&&rn.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),s=rn&&rn.__exportStar||function(c,h){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,c,d)},u=rn&&rn.__importStar||function(){var c=function(h){return c=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},c(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=c(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,s(zx(),n),n.CMS=u(Gx()),s(Kx(),n),s(Sy(),n),n.Model=u(Sy())}(rn)),rn}var Ee=eA();const U_=n=>r=>(n.payload.type!==Ee.ActionTypes.MESSAGE_FROM_GUEST&&r(Ee.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),H_=n=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>n.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?U_({...u,label:n}):JSON.parse(JSON.stringify(Ee.Actions.receiveTextMessageFromGuest(n))))},Hh="MESSAGE_TO_PARENT_PAGE",zh="RESTORE_PREVIOUS_CHAT_MESSAGES",kh="AUDIO_MESSAGE_FROM_USER",tA="EXPORT_TRANSCRIPT",Ih="RECEIVE_SPEECH_TRANSCRIPTION",Gh="ENABLE_CONVERSATION_RATING",z_="LOAD_SOURCE_INFOS_RESPONSE",qh="LOAD_SOURCE_INFOS_ERROR",Fh="LOAD_SOURCE_INFOS_REQUEST",Vh="CLOSE_SOURCE_INFOS",nA="webclient.get.started",k_="webclient.window.expand",I_="webclient.window.close",G_="webclient.transcript.pdf.download",rA=[Hh,zh,kh,tA,Ih,Gh,Fh,Vh],aA=n=>({type:kh,buffer:n}),iA=n=>({type:Ih,transcription:n}),sA=n=>({type:Ee.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),lA=()=>({type:G_}),oA=({rating:n})=>({type:Gh,payload:{rating:n}}),uA=(n,r)=>({type:Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),q_=n=>Ee.Actions.requestNLUEvent(n),cA=n=>({type:zh,messages:n}),fA=n=>{switch(n.type){case Ee.ButtonTypeEnum.WEB_URL:return V_(n.url);case Ee.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},F_=n=>V_(n),V_=n=>({type:Hh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function kl(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)n[s]=i[s]}return n}var hA={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 hh(n,r){function i(u,c,h){if(!(typeof document>"u")){h=kl({},r,h),typeof h.expires=="number"&&(h.expires=new Date(Date.now()+h.expires*864e5)),h.expires&&(h.expires=h.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var m in h)h[m]&&(d+="; "+m,h[m]!==!0&&(d+="="+h[m].split(";")[0]));return document.cookie=u+"="+n.write(c,u)+d}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],h={},d=0;d<c.length;d++){var m=c[d].split("="),g=m.slice(1).join("=");try{var v=decodeURIComponent(m[0]);if(h[v]=n.read(g,v),u===v)break}catch{}}return u?h[u]:h}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",kl({},c,{expires:-1}))},withAttributes:function(u){return hh(this.converter,kl({},this.attributes,u))},withConverter:function(u){return hh(kl({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var Il=hh(hA,{path:"/"});const ct=[];for(let n=0;n<256;++n)ct.push((n+256).toString(16).slice(1));function dA(n,r=0){return(ct[n[r+0]]+ct[n[r+1]]+ct[n[r+2]]+ct[n[r+3]]+"-"+ct[n[r+4]]+ct[n[r+5]]+"-"+ct[n[r+6]]+ct[n[r+7]]+"-"+ct[n[r+8]]+ct[n[r+9]]+"-"+ct[n[r+10]]+ct[n[r+11]]+ct[n[r+12]]+ct[n[r+13]]+ct[n[r+14]]+ct[n[r+15]]).toLowerCase()}let pf;const mA=new Uint8Array(16);function pA(){if(!pf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pf=crypto.getRandomValues.bind(crypto)}return pf(mA)}const gA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),xy={randomUUID:gA};function dh(n,r,i){if(xy.randomUUID&&!n)return xy.randomUUID();n=n||{};const s=n.random??n.rng?.()??pA();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,dA(s)}function ft(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var yA=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ay=yA,gf=()=>Math.random().toString(36).substring(7).split("").join("."),vA={INIT:`@@redux/INIT${gf()}`,REPLACE:`@@redux/REPLACE${gf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gf()}`},so=vA;function Ph(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function P_(n,r,i){if(typeof n!="function")throw new Error(ft(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ft(1));return i(P_)(n,r)}let s=n,u=r,c=new Map,h=c,d=0,m=!1;function g(){h===c&&(h=new Map,c.forEach((j,E)=>{h.set(E,j)}))}function v(){if(m)throw new Error(ft(3));return u}function S(j){if(typeof j!="function")throw new Error(ft(4));if(m)throw new Error(ft(5));let E=!0;g();const x=d++;return h.set(x,j),function(){if(E){if(m)throw new Error(ft(6));E=!1,g(),h.delete(x),c=null}}}function A(j){if(!Ph(j))throw new Error(ft(7));if(typeof j.type>"u")throw new Error(ft(8));if(typeof j.type!="string")throw new Error(ft(17));if(m)throw new Error(ft(9));try{m=!0,u=s(u,j)}finally{m=!1}return(c=h).forEach(x=>{x()}),j}function U(j){if(typeof j!="function")throw new Error(ft(10));s=j,A({type:so.REPLACE})}function M(){const j=S;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(ft(11));function x(){const O=E;O.next&&O.next(v())}return x(),{unsubscribe:j(x)}},[Ay](){return this}}}return A({type:so.INIT}),{dispatch:A,subscribe:S,getState:v,replaceReducer:U,[Ay]:M}}function _A(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:so.INIT})>"u")throw new Error(ft(12));if(typeof i(void 0,{type:so.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function Z_(n){const r=Object.keys(n),i={};for(let c=0;c<r.length;c++){const h=r[c];typeof n[h]=="function"&&(i[h]=n[h])}const s=Object.keys(i);let u;try{_A(i)}catch(c){u=c}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let v=0;v<s.length;v++){const S=s[v],A=i[S],U=h[S],M=A(U,d);if(typeof M>"u")throw d&&d.type,new Error(ft(14));g[S]=M,m=m||M!==U}return m=m||s.length!==Object.keys(h).length,m?g:h}}function lo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...s)=>r(i(...s)))}function bA(...n){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(ft(15))};const h={getState:u.getState,dispatch:(m,...g)=>c(m,...g)},d=n.map(m=>m(h));return c=lo(...d)(u.dispatch),{...u,dispatch:c}}}function EA(n){return Ph(n)&&"type"in n&&typeof n.type=="string"}var Y_=Symbol.for("immer-nothing"),wy=Symbol.for("immer-draftable"),kt=Symbol.for("immer-state");function un(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Ga=Object.getPrototypeOf;function $r(n){return!!n&&!!n[kt]}function Vn(n){return n?X_(n)||Array.isArray(n)||!!n[wy]||!!n.constructor?.[wy]||bo(n)||Eo(n):!1}var SA=Object.prototype.constructor.toString();function X_(n){if(!n||typeof n!="object")return!1;const r=Ga(n);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===SA}function oo(n,r){_o(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,s)=>r(s,i,n))}function _o(n){const r=n[kt];return r?r.type_:Array.isArray(n)?1:bo(n)?2:Eo(n)?3:0}function mh(n,r){return _o(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function Q_(n,r,i){const s=_o(n);s===2?n.set(r,i):s===3?n.add(i):n[r]=i}function TA(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function bo(n){return n instanceof Map}function Eo(n){return n instanceof Set}function Yr(n){return n.copy_||n.base_}function ph(n,r){if(bo(n))return new Map(n);if(Eo(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=X_(n);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(n);delete s[kt];let u=Reflect.ownKeys(s);for(let c=0;c<u.length;c++){const h=u[c],d=s[h];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(s[h]={configurable:!0,writable:!0,enumerable:d.enumerable,value:n[h]})}return Object.create(Ga(n),s)}else{const s=Ga(n);if(s!==null&&i)return{...n};const u=Object.create(s);return Object.assign(u,n)}}function Zh(n,r=!1){return So(n)||$r(n)||!Vn(n)||(_o(n)>1&&(n.set=n.add=n.clear=n.delete=xA),Object.freeze(n),r&&Object.entries(n).forEach(([i,s])=>Zh(s,!0))),n}function xA(){un(2)}function So(n){return Object.isFrozen(n)}var AA={};function Jr(n){const r=AA[n];return r||un(0,n),r}var rs;function K_(){return rs}function wA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Oy(n,r){r&&(Jr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function gh(n){yh(n),n.drafts_.forEach(OA),n.drafts_=null}function yh(n){n===rs&&(rs=n.parent_)}function Ry(n){return rs=wA(rs,n)}function OA(n){const r=n[kt];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Cy(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[kt].modified_&&(gh(r),un(4)),Vn(n)&&(n=uo(r,n),r.parent_||co(r,n)),r.patches_&&Jr("Patches").generateReplacementPatches_(i[kt].base_,n,r.patches_,r.inversePatches_)):n=uo(r,i,[]),gh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==Y_?n:void 0}function uo(n,r,i){if(So(r))return r;const s=r[kt];if(!s)return oo(r,(u,c)=>Ny(n,s,r,u,c,i)),r;if(s.scope_!==n)return r;if(!s.modified_)return co(n,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let c=u,h=!1;s.type_===3&&(c=new Set(u),u.clear(),h=!0),oo(c,(d,m)=>Ny(n,s,u,d,m,i,h)),co(n,u,!1),i&&n.patches_&&Jr("Patches").generatePatches_(s,i,n.patches_,n.inversePatches_)}return s.copy_}function Ny(n,r,i,s,u,c,h){if($r(u)){const d=c&&r&&r.type_!==3&&!mh(r.assigned_,s)?c.concat(s):void 0,m=uo(n,u,d);if(Q_(i,s,m),$r(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Vn(u)&&!So(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;uo(n,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&co(n,u)}}function co(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Zh(r,i)}function RA(n,r){const i=Array.isArray(n),s={type_:i?1:0,scope_:r?r.scope_:K_(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=Yh;i&&(u=[s],c=as);const{revoke:h,proxy:d}=Proxy.revocable(u,c);return s.draft_=d,s.revoke_=h,d}var Yh={get(n,r){if(r===kt)return n;const i=Yr(n);if(!mh(i,r))return CA(n,i,r);const s=i[r];return n.finalized_||!Vn(s)?s:s===yf(n.base_,r)?(vf(n),n.copy_[r]=_h(s,n)):s},has(n,r){return r in Yr(n)},ownKeys(n){return Reflect.ownKeys(Yr(n))},set(n,r,i){const s=$_(Yr(n),r);if(s?.set)return s.set.call(n.draft_,i),!0;if(!n.modified_){const u=yf(Yr(n),r),c=u?.[kt];if(c&&c.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(TA(i,u)&&(i!==void 0||mh(n.base_,r)))return!0;vf(n),vh(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return yf(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,vf(n),vh(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Yr(n),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){un(11)},getPrototypeOf(n){return Ga(n.base_)},setPrototypeOf(){un(12)}},as={};oo(Yh,(n,r)=>{as[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});as.deleteProperty=function(n,r){return as.set.call(this,n,r,void 0)};as.set=function(n,r,i){return Yh.set.call(this,n[0],r,i,n[0])};function yf(n,r){const i=n[kt];return(i?Yr(i):n)[r]}function CA(n,r,i){const s=$_(r,i);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}function $_(n,r){if(!(r in n))return;let i=Ga(n);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=Ga(i)}}function vh(n){n.modified_||(n.modified_=!0,n.parent_&&vh(n.parent_))}function vf(n){n.copy_||(n.copy_=ph(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var NA=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const h=this;return function(m=c,...g){return h.produce(m,v=>i.call(this,v,...g))}}typeof i!="function"&&un(6),s!==void 0&&typeof s!="function"&&un(7);let u;if(Vn(r)){const c=Ry(this),h=_h(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?gh(c):yh(c)}return Oy(c,s),Cy(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Y_&&(u=void 0),this.autoFreeze_&&Zh(u,!0),s){const c=[],h=[];Jr("Patches").generateReplacementPatches_(r,u,c,h),s(c,h)}return u}else un(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...d)=>this.produceWithPatches(h,m=>r(m,...d));let s,u;return[this.produce(r,i,(h,d)=>{s=h,u=d}),s,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){Vn(n)||un(8),$r(n)&&(n=MA(n));const r=Ry(this),i=_h(n,void 0);return i[kt].isManual_=!0,yh(r),i}finishDraft(n,r){const i=n&&n[kt];(!i||!i.isManual_)&&un(9);const{scope_:s}=i;return Oy(s,r),Cy(void 0,s)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(r=r.slice(i+1));const s=Jr("Patches").applyPatches_;return $r(n)?s(n,r):this.produce(n,u=>s(u,r))}};function _h(n,r){const i=bo(n)?Jr("MapSet").proxyMap_(n,r):Eo(n)?Jr("MapSet").proxySet_(n,r):RA(n,r);return(r?r.scope_:K_()).drafts_.push(i),i}function MA(n){return $r(n)||un(10,n),J_(n)}function J_(n){if(!Vn(n)||So(n))return n;const r=n[kt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=ph(n,r.scope_.immer_.useStrictShallowCopy_)}else i=ph(n,!0);return oo(i,(s,u)=>{Q_(i,s,J_(u))}),r&&(r.finalized_=!1),i}var It=new NA,W_=It.produce;It.produceWithPatches.bind(It);It.setAutoFreeze.bind(It);It.setUseStrictShallowCopy.bind(It);It.applyPatches.bind(It);It.createDraft.bind(It);It.finishDraft.bind(It);function e1(n){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,n):u(c)}var DA=e1(),BA=e1,jA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?lo:lo.apply(null,arguments)};function My(n,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(In(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:s[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=s=>EA(s)&&s.type===n,i}var t1=class Wi extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Wi.prototype)}static get[Symbol.species](){return Wi}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Wi(...r[0].concat(this)):new Wi(...r.concat(this))}};function Dy(n){return Vn(n)?W_(n,()=>{}):n}function Gl(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function LA(n){return typeof n=="boolean"}var UA=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let h=new t1;return i&&(LA(i)?h.push(DA):h.push(BA(i.extraArgument))),h},HA="RTK_autoBatch",By=n=>r=>{setTimeout(r,n)},zA=(n={type:"raf"})=>r=>(...i)=>{const s=r(...i);let u=!0,c=!1,h=!1;const d=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:By(10):n.type==="callback"?n.queueNotification:By(n.timeout),g=()=>{h=!1,c&&(c=!1,d.forEach(v=>v()))};return Object.assign({},s,{subscribe(v){const S=()=>u&&v(),A=s.subscribe(S);return d.add(v),()=>{A(),d.delete(v)}},dispatch(v){try{return u=!v?.meta?.[HA],c=!u,c&&(h||(h=!0,m(g))),s.dispatch(v)}finally{u=!0}}})},kA=n=>function(i){const{autoBatch:s=!0}=i??{};let u=new t1(n);return s&&u.push(zA(typeof s=="object"?s:void 0)),u};function IA(n){const r=UA(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:c=void 0,enhancers:h=void 0}=n||{};let d;if(typeof i=="function")d=i;else if(Ph(i))d=Z_(i);else throw new Error(In(1));let m;typeof s=="function"?m=s(r):m=r();let g=lo;u&&(g=jA({trace:!1,...typeof u=="object"&&u}));const v=bA(...m),S=kA(v);let A=typeof h=="function"?h(S):S();const U=g(...A);return P_(d,c,U)}function n1(n){const r={},i=[];let s;const u={addCase(c,h){const d=typeof c=="string"?c:c.type;if(!d)throw new Error(In(28));if(d in r)throw new Error(In(29));return r[d]=h,u},addMatcher(c,h){return i.push({matcher:c,reducer:h}),u},addDefaultCase(c){return s=c,u}};return n(u),[r,i,s]}function GA(n){return typeof n=="function"}function qA(n,r){let[i,s,u]=n1(r),c;if(GA(n))c=()=>Dy(n());else{const d=Dy(n);c=()=>d}function h(d=c(),m){let g=[i[m.type],...s.filter(({matcher:v})=>v(m)).map(({reducer:v})=>v)];return g.filter(v=>!!v).length===0&&(g=[u]),g.reduce((v,S)=>{if(S)if($r(v)){const U=S(v,m);return U===void 0?v:U}else{if(Vn(v))return W_(v,A=>S(A,m));{const A=S(v,m);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return v},d)}return h.getInitialState=c,h}var FA=Symbol.for("rtk-slice-createasyncthunk");function VA(n,r){return`${n}/${r}`}function PA({creators:n}={}){const r=n?.asyncThunk?.[FA];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(In(11));const h=(typeof s.reducers=="function"?s.reducers(YA()):s.reducers)||{},d=Object.keys(h),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(b,O){const T=typeof b=="string"?b:b.type;if(!T)throw new Error(In(12));if(T in m.sliceCaseReducersByType)throw new Error(In(13));return m.sliceCaseReducersByType[T]=O,g},addMatcher(b,O){return m.sliceMatchers.push({matcher:b,reducer:O}),g},exposeAction(b,O){return m.actionCreators[b]=O,g},exposeCaseReducer(b,O){return m.sliceCaseReducersByName[b]=O,g}};d.forEach(b=>{const O=h[b],T={reducerName:b,type:VA(u,b),createNotation:typeof s.reducers=="function"};QA(O)?$A(T,O,g,r):XA(T,O,g)});function v(){const[b={},O=[],T=void 0]=typeof s.extraReducers=="function"?n1(s.extraReducers):[s.extraReducers],k={...b,...m.sliceCaseReducersByType};return qA(s.initialState,Z=>{for(let $ in k)Z.addCase($,k[$]);for(let $ of m.sliceMatchers)Z.addMatcher($.matcher,$.reducer);for(let $ of O)Z.addMatcher($.matcher,$.reducer);T&&Z.addDefaultCase(T)})}const S=b=>b,A=new Map,U=new WeakMap;let M;function F(b,O){return M||(M=v()),M(b,O)}function j(){return M||(M=v()),M.getInitialState()}function E(b,O=!1){function T(Z){let $=Z[b];return typeof $>"u"&&O&&($=Gl(U,T,j)),$}function k(Z=S){const $=Gl(A,O,()=>new WeakMap);return Gl($,Z,()=>{const se={};for(const[re,J]of Object.entries(s.selectors??{}))se[re]=ZA(J,Z,()=>Gl(U,Z,j),O);return se})}return{reducerPath:b,getSelectors:k,get selectors(){return k(T)},selectSlice:T}}const x={name:u,reducer:F,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:j,...E(c),injectInto(b,{reducerPath:O,...T}={}){const k=O??c;return b.inject({reducerPath:k,reducer:F},T),{...x,...E(k,!0)}}};return x}}function ZA(n,r,i,s){function u(c,...h){let d=r(c);return typeof d>"u"&&s&&(d=i()),n(d,...h)}return u.unwrapped=n,u}var Xh=PA();function YA(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:n}}function XA({type:n,reducerName:r,createNotation:i},s,u){let c,h;if("reducer"in s){if(i&&!KA(s))throw new Error(In(17));c=s.reducer,h=s.prepare}else c=s;u.addCase(n,c).exposeCaseReducer(r,c).exposeAction(r,h?My(n,h):My(n))}function QA(n){return n._reducerDefinitionType==="asyncThunk"}function KA(n){return n._reducerDefinitionType==="reducerWithPrepare"}function $A({type:n,reducerName:r},i,s,u){if(!u)throw new Error(In(18));const{payloadCreator:c,fulfilled:h,pending:d,rejected:m,settled:g,options:v}=i,S=u(n,c,v);s.exposeAction(r,S),h&&s.addCase(S.fulfilled,h),d&&s.addCase(S.pending,d),m&&s.addCase(S.rejected,m),g&&s.addMatcher(S.settled,g),s.exposeCaseReducer(r,{fulfilled:h||ql,pending:d||ql,rejected:m||ql,settled:g||ql})}function ql(){}function In(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 JA={formValues:{}},r1=Xh({name:"start-screen",initialState:JA,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:WA,showStartScreen:ew}=r1.actions,tw=r1.reducer,a1="RESET_CHAT_STATE",nw=()=>({type:I_}),rw=()=>({type:a1}),jy=(n,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Fh,payload:{chunkId:i}}),Ly(n,c,r,i,!1,s),Ly(n,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:qh})}},Ly=(n,r,i,s,u,c)=>{const h=`/${n}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(h,{headers:{"x-bubble-chat-session-id":r}}).then(d=>{if(!d.ok)throw new Error(`HTTP error! Status: ${d.status}`);return d.json()}).then(d=>{const m={...d,chunkId:s,highlighted:u};c({type:z_,payload:m})}).catch(d=>{console.error("Error fetching source infos:",d),c({type:qh,payload:{highlighted:u}})})},aw=()=>({type:Vh}),Qh="CONNECT",Kh="CONNECTING",$h="CONNECTED",Jh="DISCONNECTED",Wh="RECONNECTED",ed="RESTORE_SESSION_ID",To="START",xo="CLEAR_SESSION_ID",iw=[Qh,Kh,$h,Jh,Wh,ed],sw=(n,r)=>({type:Qh,clientName:n,querystrings:r}),lw=n=>({type:ed,sessionId:n}),ow=()=>({type:Kh}),uw=()=>({type:$h}),cw=()=>({type:Jh}),fw=()=>({type:Wh}),i1=(n,r)=>(i,s)=>{const u=s().connection,c=s().startScreen.formValues;let h=u.sessionId;h===void 0&&(h=dh());let d=u.userId;if(d===void 0){const m=Il.get("bubble-chat-user-id")||Il.get("bubble-chat-userId")||Il.get("bf-webclient-userId");d=m||dh(),Il.set("bubble-chat-user-id",d)}i({type:To,payload:{sessionId:h,userId:d,clientName:n,querystrings:{...r,...c}}})},Ao=(n,r)=>(i,s)=>{const u=s().connection.sessionId||"";if(i(hw(u)),i(rw()),s().settings.enableStartScreen)i(ew());else return i(i1(n,r))},hw=n=>({type:xo,payload:{sessionId:n}}),Pe=()=>{const n=yo();return i=>{const s=n.formatMessage({id:i});return s===i?void 0:s}};var Qr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Qr||{}),fo=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(fo||{});const dw="_container_q2uun_1",mw="_chatcontent_q2uun_6",pw="_accessabilityHidden_q2uun_12",_f={container:dw,chatcontent:mw,accessabilityHidden:pw},gw="_messageContainer_ofi0g_1",yw="_messages_ofi0g_12",Uy={messageContainer:gw,messages:yw};function Xr(){return Xr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Xr.apply(this,arguments)}const vw=["children","options"],_w={footnoteReference:"7"},Hy=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((n,r)=>(n[r.toLowerCase()]=r,n),{class:"className",for:"htmlFor"}),zy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},bw=["style","script"],Ew=["src","href","data","formAction","srcDoc","action"],Sw=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Tw=/mailto:/i,xw=/\n{2,}$/,ky=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Aw=/^ *> ?/gm,ww=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Ow=/^ {2,}\n/,Rw=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Iy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Gy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Cw=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Nw=/^(?:\n *)*\n/,Mw=/\r\n?/g,Dw=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Bw=/^\[\^([^\]]+)]/,jw=/\f/g,Lw=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Uw=/^\s*?\[(x|\s)\]/,qy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Fy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Vy=/^([^\n]+)\n *(=|-){3,} *\n/,bf=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Hw=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Py=/^<!--[\s\S]*?(?:-->)/,zw=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ef=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,kw=/^\{.*\}$/,Iw=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Gw=/^<([^ >]+@[^ >]+)>/,qw=/^<([^ >]+:\/[^ >]+)>/,Fw=/-([a-z])?/gi,Zy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Vw=/^[^\n]+(?: \n|\n{2,})/,Pw=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Zw=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Yw=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Xw=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Qw=/\t/g,Kw=/(^ *\||\| *$)/g,$w=/^ *:-+: *$/,Jw=/^ *:-+ *$/,Ww=/^ *-+: *$/,wo="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",e6=RegExp(`^([*_])\\1${wo}\\1\\1(?!\\1)`),t6=RegExp(`^([*_])${wo}\\1(?!\\1)`),n6=RegExp(`^(==)${wo}\\1`),r6=RegExp(`^(~~)${wo}\\1`),a6=/^\\([^0-9A-Za-z\s])/,Yy=/\\([^0-9A-Za-z\s])/g,i6=/^[\s\S](?:(?! |[0-9]\.|http)[^=*_~\-\n<`\\\[!])*/,s6=/^\n+/,l6=/^([ \t]*)/,o6=/\\([^\\])/g,u6=/(?:^|\n)( *)$/,td="(?:\\d+\\.)",nd="(?:[*+-])";function s1(n){return"( *)("+(n===1?td:nd)+") +"}const l1=s1(1),o1=s1(2);function u1(n){return RegExp("^"+(n===1?l1:o1))}const c6=u1(1),f6=u1(2);function c1(n){return RegExp("^"+(n===1?l1:o1)+"[^\\n]*(?:\\n(?!\\1"+(n===1?td:nd)+" )[^\\n]*)*(\\n|$)","gm")}const h6=c1(1),d6=c1(2);function f1(n){const r=n===1?td:nd;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const h1=f1(1),d1=f1(2);function Xy(n,r){const i=r===1,s=i?h1:d1,u=i?h6:d6,c=i?c6:f6;return{t:h=>c.test(h),o:us(function(h,d){const m=u6.exec(d.prevCapture);return m&&(d.list||!d.inline&&!d.simple)?s.exec(h=m[1]+h):null}),i:1,u(h,d,m){const g=i?+h[2]:void 0,v=h[0].replace(xw,`
|
|
94
|
+
`).match(u);let S=!1;return{items:v.map(function(A,U){const M=c.exec(A)[0].length,F=RegExp("^ {1,"+M+"}","gm"),j=A.replace(F,"").replace(c,""),E=U===v.length-1,x=j.indexOf(`
|
|
95
95
|
|
|
96
|
-
`)!==-1||E&&
|
|
96
|
+
`)!==-1||E&&S;S=x;const b=m.inline,O=m.list;let T;m.list=!0,x?(m.inline=!1,T=ns(j)+`
|
|
97
97
|
|
|
98
|
-
`):(m.inline=!0,
|
|
99
|
-
`).map(function(g){return Qy(g,d,m,!0)})}(n[3],r,i):[],c=Qy(n[1],r,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function Ky(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function us(n){return n.inline=1,n}function pr(n){return us(function(r,i){return i.inline?n.exec(r):null})}function gr(n){return us(function(r,i){return i.inline||i.simple?n.exec(r):null})}function zn(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function Qi(n){return us(function(r){return n.exec(r)})}const _6=/(javascript|vbscript|data(?!:image)):/i;function b6(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(_6.test(r))return null}catch{return null}return n}function $y(n){return n.replace(o6,"$1")}function eo(n,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=n(r,i);return i.inline=s,i.simple=u,c}function E6(n,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=n(r,i);return i.inline=s,i.simple=u,c}function S6(n,r,i){const s=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=s,u}const Sf=(n,r,i)=>({children:eo(r,n[2],i)});function Tf(){return{}}function xf(){return null}function T6(...n){return n.filter(Boolean).join(" ")}function Af(n,r,i){let s=n;const u=r.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function x6(n="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?Xr({},zy,r.namedCodesToUnicode):zy;const i=r.slugify||Xi,s=r.sanitizer||b6,u=r.createElement||
|
|
98
|
+
`):(m.inline=!0,T=ns(j));const k=d(T,m);return m.inline=b,m.list=O,k}),ordered:i,start:g}},l:(h,d,m)=>n(h.ordered?"ol":"ul",{key:m.key,start:h.type==="20"?h.start:void 0},h.items.map(function(g,v){return n("li",{key:v},d(g,m))}))}}const m6=RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),p6=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function ns(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function bh(n,r){return n.startsWith(r)}function g6(n,r,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(bh(n,i[s]))return!0;return!1}return i(n,r)}function Xi(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 y6(n){return Ww.test(n)?"right":$w.test(n)?"center":Jw.test(n)?"left":null}function Qy(n,r,i,s){const u=i.inTable;i.inTable=!0;let c=[[]],h="";function d(){if(!h)return;const m=c[c.length-1];m.push.apply(m,r(h,i)),h=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,v)=>{m.trim()==="|"&&(d(),s)?g!==0&&g!==v.length-1&&c.push([]):h+=m}),d(),i.inTable=u,c}function v6(n,r,i){i.inline=!0;const s=n[2]?n[2].replace(Kw,"").split("|").map(y6):[],u=n[3]?function(h,d,m){return h.trim().split(`
|
|
99
|
+
`).map(function(g){return Qy(g,d,m,!0)})}(n[3],r,i):[],c=Qy(n[1],r,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function Ky(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function us(n){return n.inline=1,n}function pr(n){return us(function(r,i){return i.inline?n.exec(r):null})}function gr(n){return us(function(r,i){return i.inline||i.simple?n.exec(r):null})}function zn(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function Qi(n){return us(function(r){return n.exec(r)})}const _6=/(javascript|vbscript|data(?!:image)):/i;function b6(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(_6.test(r))return null}catch{return null}return n}function $y(n){return n.replace(o6,"$1")}function eo(n,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=n(r,i);return i.inline=s,i.simple=u,c}function E6(n,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=n(r,i);return i.inline=s,i.simple=u,c}function S6(n,r,i){const s=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=s,u}const Sf=(n,r,i)=>({children:eo(r,n[2],i)});function Tf(){return{}}function xf(){return null}function T6(...n){return n.filter(Boolean).join(" ")}function Af(n,r,i){let s=n;const u=r.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function x6(n="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?Xr({},zy,r.namedCodesToUnicode):zy;const i=r.slugify||Xi,s=r.sanitizer||b6,u=r.createElement||H.createElement,c=[ky,Iy,Gy,r.enforceAtxHeadings?Fy:qy,Vy,Zy,h1,d1],h=[...c,Vw,bf,Py,Ef];function d(E,x,...b){const O=Af(r.overrides,E+".props",{});return u(function(T,k){const Z=Af(k,T);return Z?typeof Z=="function"||typeof Z=="object"&&"render"in Z?Z:Af(k,T+".component",T):T}(E,r.overrides),Xr({},x,O,{className:T6(x?.className,O.className)||void 0}),...b)}function m(E){E=E.replace(Lw,"");let x=!1;r.forceInline?x=!0:r.forceBlock||(x=Xw.test(E)===!1);const b=M(U(x?E:ns(E).replace(s6,"")+`
|
|
100
100
|
|
|
101
|
-
`,{inline:x}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(r.wrapper===null)return b;const O=r.wrapper||(x?"span":"div");let
|
|
101
|
+
`,{inline:x}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(r.wrapper===null)return b;const O=r.wrapper||(x?"span":"div");let T;if(b.length>1||r.forceWrapper)T=b;else{if(b.length===1)return T=b[0],typeof T=="string"?d("span",{key:"outer"},T):T;T=null}return u(O,{key:"outer"},T)}function g(E,x){if(!x||!x.trim())return null;const b=x.match(Sw);return b?b.reduce(function(O,T){const k=T.indexOf("=");if(k!==-1){const Z=function(J){return J.indexOf("-")!==-1&&J.match(zw)===null&&(J=J.replace(Fw,function(ie,le){return le.toUpperCase()})),J}(T.slice(0,k)).trim(),$=function(J){const ie=J[0];return(ie==='"'||ie==="'")&&J.length>=2&&J[J.length-1]===ie?J.slice(1,-1):J}(T.slice(k+1).trim()),se=Hy[Z]||Z;if(se==="ref")return O;const re=O[se]=function(J,ie,le,Ze){return ie==="style"?function(ye){const I=[];let Q="",ee=!1,Se=!1,R="";if(!ye)return I;for(let K=0;K<ye.length;K++){const Y=ye[K];if(Y!=='"'&&Y!=="'"||ee||(Se?Y===R&&(Se=!1,R=""):(Se=!0,R=Y)),Y==="("&&Q.endsWith("url")?ee=!0:Y===")"&&ee&&(ee=!1),Y!==";"||Se||ee)Q+=Y;else{const te=Q.trim();if(te){const pe=te.indexOf(":");if(pe>0){const ue=te.slice(0,pe).trim(),tt=te.slice(pe+1).trim();I.push([ue,tt])}}Q=""}}const P=Q.trim();if(P){const K=P.indexOf(":");if(K>0){const Y=P.slice(0,K).trim(),te=P.slice(K+1).trim();I.push([Y,te])}}return I}(le).reduce(function(ye,[I,Q]){return ye[I.replace(/(-[a-z])/g,ee=>ee[1].toUpperCase())]=Ze(Q,J,I),ye},{}):Ew.indexOf(ie)!==-1?Ze(le,J,ie):(le.match(kw)&&(le=le.slice(1,le.length-1)),le==="true"||le!=="false"&&le)}(E,Z,$,s);typeof re=="string"&&(bf.test(re)||Ef.test(re))&&(O[se]=m(re.trim()))}else T!=="style"&&(O[Hy[T]||T]=!0);return O},{}):null}const v=[],S={},A={0:{t:[">"],o:zn(ky),i:1,u(E,x,b){const[,O,T]=E[0].replace(Aw,"").match(ww);return{alert:O,children:x(T,b)}},l(E,x,b){const O={key:b.key};return E.alert&&(O.className="markdown-alert-"+i(E.alert.toLowerCase(),Xi),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),d("blockquote",O,x(E.children,b))}},1:{o:Qi(Ow),i:1,u:Tf,l:(E,x,b)=>d("br",{key:b.key})},2:{t:E=>{const x=E[0];return x==="-"||x==="*"||x==="_"},o:zn(Rw),i:1,u:Tf,l:(E,x,b)=>d("hr",{key:b.key})},3:{t:[" "],o:zn(Gy),i:0,u:E=>({lang:void 0,text:ns(E[0].replace(/^ {4}/gm,"")).replace(Yy,"$1")}),l:(E,x,b)=>d("pre",{key:b.key},d("code",Xr({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:zn(Iy),i:0,u:E=>({attrs:g("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:gr(Cw),i:3,u:E=>({text:E[2].replace(Yy,"$1")}),l:(E,x,b)=>d("code",{key:b.key},E.text)},6:{t:["[^"],o:zn(Dw),i:0,u:E=>(v.push({footnote:E[2],identifier:E[1]}),{}),l:xf},7:{t:["[^"],o:pr(Bw),i:1,u:E=>({target:"#"+i(E[1],Xi),text:E[1]}),l:(E,x,b)=>d("a",{key:b.key,href:s(E.target,"a","href")},d("sup",{key:b.key},E.text))},8:{t:["[ ]","[x]"],o:pr(Uw),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,x,b)=>d("input",{checked:E.completed,key:b.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:zn(r.enforceAtxHeadings?Fy:qy),i:1,u:(E,x,b)=>({children:eo(x,E[2],b),id:i(E[2],Xi),level:E[1].length}),l:(E,x,b)=>d("h"+E.level,{id:E.id,key:b.key},x(E.children,b))},10:{o:zn(Vy),i:0,u:(E,x,b)=>({children:eo(x,E[1],b),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Qi(bf),i:1,u(E,x,b){const[,O]=E[3].match(l6),T=RegExp("^"+O,"gm"),k=E[3].replace(T,""),Z=($=k,h.some(le=>le.test($))?S6:eo);var $;const se=E[1].toLowerCase(),re=bw.indexOf(se)!==-1,J=(re?se:E[1]).trim(),ie={attrs:g(J,E[2]),noInnerParse:re,tag:J};return b.inAnchor=b.inAnchor||se==="a",re?ie.text=E[3]:ie.children=Z(x,k,b),b.inAnchor=!1,ie},l:(E,x,b)=>d(E.tag,Xr({key:b.key},E.attrs),E.text||(E.children?x(E.children,b):""))},13:{t:["<"],o:Qi(Ef),i:1,u(E){const x=E[1].trim();return{attrs:g(x,E[2]||""),tag:x}},l:(E,x,b)=>d(E.tag,Xr({},E.attrs,{key:b.key}))},12:{t:["<!--"],o:Qi(Py),i:1,u:()=>({}),l:xf},14:{t:["!["],o:gr(p6),i:1,u:E=>({alt:E[1],target:$y(E[2]),title:E[3]}),l:(E,x,b)=>d("img",{key:b.key,alt:E.alt||void 0,title:E.title||void 0,src:s(E.target,"img","src")})},15:{t:["["],o:pr(m6),i:3,u:(E,x,b)=>({children:E6(x,E[1],b),target:$y(E[2]),title:E[3]}),l:(E,x,b)=>d("a",{key:b.key,href:s(E.target,"a","href"),title:E.title},x(E.children,b))},16:{t:["<"],o:pr(qw),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],type:"15"})},17:{t:(E,x)=>!x.inAnchor&&!r.disableAutoLink&&(bh(E,"http://")||bh(E,"https://")),o:pr(Iw),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},18:{t:["<"],o:pr(Gw),i:0,u(E){let x=E[1],b=E[1];return Tw.test(b)||(b="mailto:"+b),{children:[{text:x.replace("mailto:",""),type:"27"}],target:b,type:"15"}}},20:Xy(d,1),33:Xy(d,2),19:{o:zn(Nw),i:3,u:Tf,l:()=>`
|
|
102
102
|
`},21:{o:us(function(E,x){if(x.inline||x.simple)return null;let b="";E.split(`
|
|
103
|
-
`).every(
|
|
104
|
-
`,!c.some(
|
|
105
|
-
`).replace(jw,"").replace(Qw," ")}(O),S)}}(A),M=(F=function(E,x){return function(b,O,S){const z=E[b.type].l;return x?x(()=>z(b,O,S),b,O,S):z(b,O,S)}}(A,r.renderRule),function E(x,b={}){if(Array.isArray(x)){const O=b.key,S=[];let z=!1;for(let Z=0;Z<x.length;Z++){b.key=Z;const $=E(x[Z],b),se=typeof $=="string";se&&z?S[S.length-1]+=$:$!==null&&S.push($),z=se}return b.key=O,S}return F(x,E,b)});var F;const k=m(n);return v.length?d("div",null,k,d("footer",{key:"footer"},v.map(function(E){return d("div",{id:i(E.identifier,Xi),key:E.identifier},E.identifier,M(j(E.footnote,{inline:!0})))}))):k}const Gn=n=>{let{children:r="",options:i}=n,s=function(u,c){if(u==null)return{};var h,d,m={},g=Object.keys(u);for(d=0;d<g.length;d++)c.indexOf(h=g[d])>=0||(m[h]=u[h]);return m}(n,vw);return U.cloneElement(x6(r,i),s)},A6="_generalConditionsContainer_55hjg_1",w6="_generalConditions_55hjg_1",O6="_generalConditionsHeader_55hjg_15",R6="_generalConditionsBody_55hjg_26",C6="_generalConditionsAccept_55hjg_35",Ki={generalConditionsContainer:A6,generalConditions:w6,generalConditionsHeader:O6,generalConditionsBody:R6,generalConditionsAccept:C6},N6=()=>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"})}),M6=()=>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"})}),D6="general-conditions.header",B6="general-conditions.body",Jy="general-conditions.accept-conditions-note",j6=()=>{const n=Pe(),[r,i]=U.useState(!1),s=()=>i(!r),u=d=>{d.key==="ArrowDown"||d.key==="ArrowRight"?i(!0):d.key==="ArrowUp"||d.key==="ArrowLeft"||d.key==="Escape"?i(!1):(d.key==="Enter"||d.key==="Space"||d.key===" ")&&s()},c=n(D6),h=n(Jy);return y.jsxs("div",{className:X(Ki.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&y.jsxs("div",{className:Ki.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:X(Ki.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[y.jsx(Gn,{children:c}),r?y.jsx(M6,{}):y.jsx(N6,{})]}),y.jsx("div",{className:X(Ki.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&y.jsx(Gn,{children:n(B6)||""})})]}),!!h?.length&&y.jsx("div",{className:X(Ki.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(Gn,{children:n(Jy)||""})})]})},L6="_message_6i1zm_1",U6="_messageBot_6i1zm_9",H6="_messageBotLast_6i1zm_19",z6="_avatar_6i1zm_19",k6="_messageBotFirst_6i1zm_24",I6="_messageBotAnimated_6i1zm_37",G6="_messageGuest_6i1zm_48",q6="_messageGuestFirst_6i1zm_54",F6="_messageGuestLast_6i1zm_60",V6="_botAvatar_6i1zm_74",P6="_agentAvatar_6i1zm_78",Z6="_bubble_6i1zm_82",Y6="_bubbleContent_6i1zm_88",X6="_bubbleLeft_6i1zm_102",Q6="_leftText_6i1zm_113",K6="_bubbleRight_6i1zm_120",$6="_rightText_6i1zm_130",J6="_sourceInfoReference_6i1zm_162",W6="_sourceInfoReferenceActive_6i1zm_174",de={message:L6,messageBot:U6,messageBotLast:H6,avatar:z6,messageBotFirst:k6,messageBotAnimated:I6,messageGuest:G6,messageGuestFirst:q6,messageGuestLast:F6,botAvatar:V6,agentAvatar:P6,bubble:Z6,bubbleContent:Y6,bubbleLeft:X6,leftText:Q6,bubbleRight:K6,rightText:$6,sourceInfoReference:J6,sourceInfoReferenceActive:W6},eO="_botMessageActions_1dl7x_1",tO="_alwaysVisible_1dl7x_22",nO="_reported_1dl7x_29",rO="_action_1dl7x_33",yr={botMessageActions:eO,alwaysVisible:tO,reported:nO,action:rO},aO=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:s,onReaction:u})=>{const c=Pe(),[h,d]=U.useState(!1),m=v=>()=>u(v),g=U.useCallback(async()=>{if(s.current)try{d(!0);const v=s.current.innerHTML,T=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([T],{type:"text/plain"})})]),await new Promise(A=>setTimeout(A,1500))}finally{d(!1)}},[s]);return y.jsxs("div",{className:X(yr.botMessageActions,n&&yr.alwaysVisible,i&&yr.reported),children:[r===fo.BOT&&y.jsx("button",{className:X(yr.action,i==="GOOD"&&yr.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:m(i==="GOOD"?null:"GOOD"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="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"})})}),r===fo.BOT&&y.jsx("button",{className:X(yr.action,i==="BAD"&&yr.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:m(i==="BAD"?null:"BAD"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="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:X(yr.action,"tooltip--top-right"),tabIndex:0,"aria-label":c("bot-bubble.copy"),"data-title":c("bot-bubble.copy"),onClick:g,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?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"})})})]})},m1=U.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:h},d)=>{const m=Pe(),g=U.useRef(null),v=n.sender.type===Ee.UserType.BOT;return y.jsxs("li",{ref:d,className:X(de.message,de.messageBot,i&&de.lastMessage,s&&de.messageBotFirst,u&&de.messageBotLast,"chat__bubbleContainer",r&&de.messageBotAnimated,r&&"chat__bubbleContainer--animated",v?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:X(de.avatar,v?de.botAvatar:de.agentAvatar,"chat__avatar",v?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:v?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsx("div",{ref:g,className:X(de.bubble,de.bubbleLeft,"chat__bubble",v?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(v?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:X(de.leftText),children:c})}),h&&y.jsx(aO,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),iO="_sourceList_1n31h_1",sO="_source_1n31h_1",lO="_label_1n31h_37",wf={sourceList:iO,source:sO,label:lO},p1=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"})}),g1=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"})}),y1=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"})}),v1=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"})}),oO=({type:n,...r})=>{switch(n){case"WEBSITE":return y.jsx(v1,{...r});case"PDF":return y.jsx(y1,{...r});case"DOCX":return y.jsx(p1,{...r});default:return y.jsx(g1,{...r})}},rd=({sources:n,onLinkClick:r})=>{const i=Pe(),s=c=>()=>{r(c.url)},u=c=>h=>{(h.key==="Enter"||h.key===" ")&&r(c.url)};return n.length?y.jsx("ul",{className:wf.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(c=>y.jsx("li",{className:wf.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[y.jsx(oO,{type:c.type,"aria-hidden":"true"}),y.jsx("div",{className:wf.label,children:c.label})]})},c.url))}):null},uO="_button_3ui4g_1",cO="_buttonDefault_3ui4g_13",fO="_buttonPrimary_3ui4g_28",is={button:uO,buttonDefault:cO,buttonPrimary:fO},Oo=({className:n,children:r,...i})=>y.jsx("button",{className:X(is.button,n),type:"button",role:"button",...i,children:r}),hO="_title_b904h_1",dO="_subtitle_b904h_6",mO="_buttons_b904h_11",pO="_button_b904h_11",gO="_imageContainer_b904h_34",yO="_image_b904h_34",vO="_video_container_b904h_49",_O="_video_b904h_49",bO="_only_b904h_63",At={title:hO,subtitle:dO,buttons:mO,button:pO,imageContainer:gO,image:yO,video_container:vO,video:_O,only:bO},EO=({buttons:n,onButtonClick:r})=>y.jsx("div",{className:X(At.buttons,"chat__bubbleButtons"),children:n.map((i,s)=>y.jsx(Oo,{className:X(At.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))});var Fl={},Vl={},Pl={},Wy;function SO(){if(Wy)return Pl;Wy=1,Object.defineProperty(Pl,"__esModule",{value:!0});var n=qa(),r=i(n);function i(s){if(s&&s.__esModule)return s;var u={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(u[c]=s[c]);return u.default=s,u}return Pl.default=function(s,u,c){return r.createElement("a",{href:s,key:c},u)},Pl}var Zl={},ev;function TO(){return ev||(ev=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=function(n){return n}),Zl}var Yl={},Of,tv;function xO(){return tv||(tv=1,Of=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Of}var Rf,nv;function AO(){return nv||(nv=1,Rf=/[\0-\x1F\x7F-\x9F]/),Rf}var Cf,rv;function wO(){return rv||(rv=1,Cf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Cf}var Nf,av;function OO(){return av||(av=1,Nf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Nf}var Mf,iv;function RO(){return iv||(iv=1,Mf=function(n){var r={};r.src_Any=xO().source,r.src_Cc=AO().source,r.src_Z=wO().source,r.src_P=OO().source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var i="[><|]";return r.src_pseudo_letter="(?:(?!"+i+"|"+r.src_ZPCc+")"+r.src_Any+")",r.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+i+"|"+r.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+r.src_ZCc+"|[.]).|"+(n&&n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+r.src_ZCc+").|\\!(?!"+r.src_ZCc+"|[!]).|\\?(?!"+r.src_ZCc+"|[?]).)+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),Mf}var Df,sv;function CO(){if(sv)return Df;sv=1;function n(b){var O=Array.prototype.slice.call(arguments,1);return O.forEach(function(S){S&&Object.keys(S).forEach(function(z){b[z]=S[z]})}),b}function r(b){return Object.prototype.toString.call(b)}function i(b){return r(b)==="[object String]"}function s(b){return r(b)==="[object Object]"}function u(b){return r(b)==="[object RegExp]"}function c(b){return r(b)==="[object Function]"}function h(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function m(b){return Object.keys(b||{}).reduce(function(O,S){return O||d.hasOwnProperty(S)},!1)}var g={"http:":{validate:function(b,O,S){var z=b.slice(O);return S.re.http||(S.re.http=new RegExp("^\\/\\/"+S.re.src_auth+S.re.src_host_port_strict+S.re.src_path,"i")),S.re.http.test(z)?z.match(S.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,O,S){var z=b.slice(O);return S.re.no_http||(S.re.no_http=new RegExp("^"+S.re.src_auth+"(?:localhost|(?:(?:"+S.re.src_domain+")\\.)+"+S.re.src_domain_root+")"+S.re.src_port+S.re.src_host_terminator+S.re.src_path,"i")),S.re.no_http.test(z)?O>=3&&b[O-3]===":"||O>=3&&b[O-3]==="/"?0:z.match(S.re.no_http)[0].length:0}},"mailto:":{validate:function(b,O,S){var z=b.slice(O);return S.re.mailto||(S.re.mailto=new RegExp("^"+S.re.src_email_name+"@"+S.re.src_host_strict,"i")),S.re.mailto.test(z)?z.match(S.re.mailto)[0].length:0}}},v="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",T="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function A(b){b.__index__=-1,b.__text_cache__=""}function j(b){return function(O,S){var z=O.slice(S);return b.test(z)?z.match(b)[0].length:0}}function M(){return function(b,O){O.normalize(b)}}function F(b){var O=b.re=RO()(b.__opts__),S=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||S.push(v),S.push(O.src_xn),O.src_tlds=S.join("|");function z(re){return re.replace("%TLDS%",O.src_tlds)}O.email_fuzzy=RegExp(z(O.tpl_email_fuzzy),"i"),O.link_fuzzy=RegExp(z(O.tpl_link_fuzzy),"i"),O.link_no_ip_fuzzy=RegExp(z(O.tpl_link_no_ip_fuzzy),"i"),O.host_fuzzy_test=RegExp(z(O.tpl_host_fuzzy_test),"i");var Z=[];b.__compiled__={};function $(re,J){throw new Error('(LinkifyIt) Invalid schema "'+re+'": '+J)}Object.keys(b.__schemas__).forEach(function(re){var J=b.__schemas__[re];if(J!==null){var ie={validate:null,link:null};if(b.__compiled__[re]=ie,s(J)){u(J.validate)?ie.validate=j(J.validate):c(J.validate)?ie.validate=J.validate:$(re,J),c(J.normalize)?ie.normalize=J.normalize:J.normalize?$(re,J):ie.normalize=M();return}if(i(J)){Z.push(re);return}$(re,J)}}),Z.forEach(function(re){b.__compiled__[b.__schemas__[re]]&&(b.__compiled__[re].validate=b.__compiled__[b.__schemas__[re]].validate,b.__compiled__[re].normalize=b.__compiled__[b.__schemas__[re]].normalize)}),b.__compiled__[""]={validate:null,normalize:M()};var se=Object.keys(b.__compiled__).filter(function(re){return re.length>0&&b.__compiled__[re]}).map(h).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+O.src_ZPCc+"))("+se+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+O.src_ZPCc+"))("+se+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),A(b)}function k(b,O){var S=b.__index__,z=b.__last_index__,Z=b.__text_cache__.slice(S,z);this.schema=b.__schema__.toLowerCase(),this.index=S+O,this.lastIndex=z+O,this.raw=Z,this.text=Z,this.url=Z}function E(b,O){var S=new k(b,O);return b.__compiled__[S.schema].normalize(S,b),S}function x(b,O){if(!(this instanceof x))return new x(b,O);O||m(b)&&(O=b,b={}),this.__opts__=n({},d,O),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},g,b),this.__compiled__={},this.__tlds__=T,this.__tlds_replaced__=!1,this.re={},F(this)}return x.prototype.add=function(O,S){return this.__schemas__[O]=S,F(this),this},x.prototype.set=function(O){return this.__opts__=n(this.__opts__,O),this},x.prototype.test=function(O){if(this.__text_cache__=O,this.__index__=-1,!O.length)return!1;var S,z,Z,$,se,re,J,ie,le;if(this.re.schema_test.test(O)){for(J=this.re.schema_search,J.lastIndex=0;(S=J.exec(O))!==null;)if($=this.testSchemaAt(O,S[2],J.lastIndex),$){this.__schema__=S[2],this.__index__=S.index+S[1].length,this.__last_index__=S.index+S[0].length+$;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(ie=O.search(this.re.host_fuzzy_test),ie>=0&&(this.__index__<0||ie<this.__index__)&&(z=O.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(se=z.index+z[1].length,(this.__index__<0||se<this.__index__)&&(this.__schema__="",this.__index__=se,this.__last_index__=z.index+z[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(le=O.indexOf("@"),le>=0&&(Z=O.match(this.re.email_fuzzy))!==null&&(se=Z.index+Z[1].length,re=Z.index+Z[0].length,(this.__index__<0||se<this.__index__||se===this.__index__&&re>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=se,this.__last_index__=re))),this.__index__>=0},x.prototype.pretest=function(O){return this.re.pretest.test(O)},x.prototype.testSchemaAt=function(O,S,z){return this.__compiled__[S.toLowerCase()]?this.__compiled__[S.toLowerCase()].validate(O,z,this):0},x.prototype.match=function(O){var S=0,z=[];this.__index__>=0&&this.__text_cache__===O&&(z.push(E(this,S)),S=this.__last_index__);for(var Z=S?O.slice(S):O;this.test(Z);)z.push(E(this,S)),Z=Z.slice(this.__last_index__),S+=this.__last_index__;return z.length?z:null},x.prototype.tlds=function(O,S){return O=Array.isArray(O)?O:[O],S?(this.__tlds__=this.__tlds__.concat(O).sort().filter(function(z,Z,$){return z!==$[Z-1]}).reverse(),F(this),this):(this.__tlds__=O.slice(),this.__tlds_replaced__=!0,F(this),this)},x.prototype.normalize=function(O){O.schema||(O.url="http://"+O.url),O.schema==="mailto:"&&!/^mailto:/i.test(O.url)&&(O.url="mailto:"+O.url)},x.prototype.onCompile=function(){},Df=x,Df}const NO=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var lv;function MO(){if(lv)return Yl;lv=1,Object.defineProperty(Yl,"__esModule",{value:!0});var n=CO(),r=u(n),i=NO,s=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var c=new r.default;return c.tlds(s.default),Yl.default=function(h){return c.match(h)},Yl}var Xl={},ov;function DO(){return ov||(ov=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=function(n){return n}),Xl}var uv;function BO(){if(uv)return Vl;uv=1,Object.defineProperty(Vl,"__esModule",{value:!0});var n=function(){function E(x,b){for(var O=0;O<b.length;O++){var S=b[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,b,O){return b&&E(x.prototype,b),O&&E(x,O),x}}(),r=qa(),i=A(r),s=SO(),u=T(s),c=TO(),h=T(c),d=MO(),m=T(d),g=DO(),v=T(g);function T(E){return E&&E.__esModule?E:{default:E}}function A(E){if(E&&E.__esModule)return E;var x={};if(E!=null)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(x[b]=E[b]);return x.default=E,x}function j(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function M(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function F(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var k=function(E){F(x,E);function x(){return j(this,x),M(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return n(x,[{key:"parseString",value:function(O){var S=this;if(O==="")return O;var z=this.props.matchDecorator(O);if(!z)return O;var Z=[],$=0;return z.forEach(function(se,re){se.index>$&&Z.push(O.substring($,se.index));var J=S.props.hrefDecorator(se.url),ie=S.props.textDecorator(se.text),le=S.props.componentDecorator(J,ie,re);Z.push(le),$=se.lastIndex}),O.length>$&&Z.push(O.substring($)),Z.length===1?Z[0]:Z}},{key:"parse",value:function(O){var S=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof O=="string"?this.parseString(O):i.isValidElement(O)&&O.type!=="a"&&O.type!=="button"?i.cloneElement(O,{key:z},this.parse(O.props.children)):Array.isArray(O)?O.map(function(Z,$){return S.parse(Z,$)}):O}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),x}(i.Component);return k.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:v.default},Vl.default=k,Vl}var cv;function jO(){if(cv)return Fl;cv=1,Object.defineProperty(Fl,"__esModule",{value:!0});var n=BO(),r=i(n);function i(s){return s&&s.__esModule?s:{default:s}}return Fl.default=r.default,Fl}var LO=jO();const UO=po(LO),HO="_text_gp0s0_1",zO="_command_gp0s0_5",fv={text:HO,command:zO},_1=({text:n,commands:r=[],onLinkClick:i})=>{const s=d=>m=>(m.preventDefault(),d&&i(d),!1),u=(d,m,g)=>y.jsx("a",{onClick:s(d),role:"button",children:m},g),c=r.find(d=>n.startsWith(`/${d}`)),h=c?n.slice(c.length+1):n;return y.jsxs("div",{children:[c&&y.jsxs("code",{className:fv.command,children:["/",c]}),h.split(`
|
|
106
|
-
`).map((d,m)=>y.jsxs("span",{className:fv.text,children:[y.jsx(UO,{componentDecorator:u,children:d}),y.jsx("br",{})]},m))]})},kO=({subtitle:n,onLinkClick:r})=>n?y.jsx("div",{className:At.subtitle,children:y.jsx(_1,{text:n,onLinkClick:r})}):null,hv="newtab#",b1=({markdown:n,markdownOptions:r={},onLinkClick:i})=>{const s=c=>h=>(h.preventDefault(),c&&i(c),!1),u=({title:c,href:h,children:d})=>h.indexOf(hv)===0?y.jsx("a",{href:h.slice(hv.length),title:c,target:"_blank",rel:"noopener noreferrer",children:d}):y.jsx("a",{onClick:s(h),title:c,href:h,children:d});return y.jsx(Gn,{options:{...r,overrides:{a:u}},children:n})},IO=({text:n,onLinkClick:r})=>n?y.jsx("div",{children:y.jsx(b1,{markdown:n,onLinkClick:r})}):null,GO=({title:n})=>n?y.jsx("h1",{className:At.title,children:n}):null,qO=({title:n,text:r,subtitle:i,buttons:s,onButtonClick:u,onLinkClick:c})=>n?.length||r?.length||i?.length||s?.length?y.jsxs("div",{className:X(de.bubbleContent),children:[y.jsx(GO,{title:n}),y.jsx(IO,{text:r,onLinkClick:c}),y.jsx(kO,{subtitle:i,onLinkClick:c}),y.jsx(EO,{buttons:s,onButtonClick:u})]}):null,FO=({alt:n,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:At.video_container,children:y.jsx("iframe",{className:X(At.video,{[At.only]:!s}),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:At.imageContainer,children:y.jsx("img",{className:X(At.image,{[At.only]:!s}),src:r,alt:n})})}):y.jsx("div",{className:At.imageContainer,children:y.jsx("img",{className:X(At.image,{[At.only]:!s}),src:r,alt:n})}):null,VO=({title:n,text:r,subtitle:i,imageUrl:s,itemUrl:u,buttons:c,sources:h,onButtonClick:d,onLinkClick:m})=>{const g=!!n?.length||!!r?.length||!!i?.length||!!c?.length;return y.jsxs("div",{className:X(At.detailMessage),children:[y.jsx(FO,{hasBody:g,imageUrl:s,itemUrl:u,alt:n||i}),g&&y.jsx(qO,{title:n,text:r,subtitle:i,buttons:c,onLinkClick:m,onButtonClick:d}),y.jsx(rd,{sources:h,onLinkClick:m})]})},PO=U.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},s)=>{const u=Pe();return y.jsx("li",{ref:s,className:X(de.message,de.messageGuest,n&&de.messageGuestFirst,r&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:X(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:X(de.rightText),children:i})})})}),ZO="_markdown_nw7vg_1",E1={markdown:ZO},S1=()=>YO(window.location.pathname),YO=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},ad=()=>U.useMemo(()=>S1(),[]),Ql="source-info-reference",XO=({actionId:n,markdown:r,sources:i,onLinkClick:s})=>{const u=ad(),c=Wr(),h=QO(),d=zt(v=>{const T=v.chat.sourceInfos;if(T?.type==="loaded"||T?.type==="loading")return T.chunkId}),m=v=>T=>{const A=T.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(T.stopPropagation(),c(jy(u,n,v)))},g=v=>()=>{c(jy(u,n,v))};return U.useLayoutEffect(()=>{document.querySelectorAll(`.${Ql}`).forEach(v=>{const T=v.previousSibling;T&&T.nodeType===Node.TEXT_NODE&&T.textContent?.endsWith(" ")&&T.textContent?.trim().length&&v.classList.add(`${Ql}--before-space`);const A=v.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&v.classList.add(`${Ql}--after-space`)})},[r]),y.jsxs("div",{className:de.bubbleContent,children:[y.jsx("div",{className:E1.markdown,children:y.jsx(b1,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(v,T,A,j){if(T.type===_w.footnoteReference){const M=T.text===d;return y.jsx("span",{className:X(de.sourceInfoReference,M&&de.sourceInfoReferenceActive,Ql),children:y.jsx("a",{type:"button",tabIndex:0,onClick:g(T.text),onKeyDown:m(T.text),children:h(T.text)})},j.key)}return v()}}})}),y.jsx(rd,{sources:i,onLinkClick:s})]})},QO=()=>{const n=[];return i=>{const s=n.indexOf(i);return s>-1?s+1:(n.push(i),n.length)}},KO=({text:n,commands:r,sources:i,onLinkClick:s})=>y.jsxs("div",{className:de.bubbleContent,children:[y.jsx(_1,{text:n,commands:r,onLinkClick:s}),y.jsx(rd,{sources:i,onLinkClick:s})]}),$O=U.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:h,onLinkClick:d},m)=>{const g=JO(n._id,n,r,h,d);switch(n.sender.type){case Ee.UserType.GUEST:return y.jsx(PO,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:g});default:{const v=T=>c(n._id,T);return y.jsx(m1,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:v,children:g})}}}),JO=(n,r,i,s,u)=>{switch(r.type){case Ee.MessageTypeEnum.TEXT:{const c=r;return y.jsx(KO,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Ee.MessageTypeEnum.DETAIL:{const c=r;return y.jsx(VO,{title:c.title,text:c.text,subtitle:c.subtitle,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:s,onLinkClick:u})}case Ee.MessageTypeEnum.MARKDOWN:{const c=r;return y.jsx(XO,{actionId:n,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},WO=(n,r)=>n.message._id===r.message._id&&n.message.reaction===r.message.reaction&&n.isLastMessage===r.isLastMessage&&n.isFirstMessageBySender===r.isFirstMessageBySender&&n.isLastMessageBySender===r.isLastMessageBySender,eR=Xv.memo($O,WO),tR="_ticontainer_xg0dn_1",nR="_tiblock_xg0dn_5",rR="_tidot_xg0dn_12",$i={ticontainer:tR,tiblock:nR,tidot:rR},aR=({isTyping:n=!1})=>y.jsx("div",{className:$i.ticontainer,children:y.jsx("div",{className:$i.tiblock,children:n?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:X($i.tidot,"chat__typingIndicator")}),y.jsx("div",{className:X($i.tidot,"chat__typingIndicator")}),y.jsx("div",{className:X($i.tidot,"chat__typingIndicator")})]}):null})}),iR=Object.assign({_id:"typing-indicator"},new Ee.TextMessage("",new Ee.BotUser)),sR=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const h=U.useRef(0),d=U.useRef(!0),m=U.useRef(null),g=U.useRef(null),v=U.useRef(null),T=zt(M=>M.settings.enableGeneralConditions);U.useLayoutEffect(()=>{if(n.length&&m.current&&(h.current<n.length||r)){if(g.current){const M=g.current.offsetTop;m.current.scrollTop=M}else if(v.current){const M=v.current.offsetTop;m.current.scrollTop=M}d.current&&(d.current=!1),h.current=n.length}},[n,d,r]);let A;const j=n.length;return y.jsxs("div",{ref:m,className:X(Uy.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[T&&y.jsx(j6,{}),y.jsxs("ul",{className:Uy.messages,children:[n.map((M,F)=>{const k=lR(M,A),E=oR(M,F,n,r);A=M.sender.type;const x=F+1===j,b=M._id||`added-${F}`;return y.jsx(eR,{ref:x?v:null,message:M,commands:i,isLastMessage:x,isFirstMessageBySender:k,isLastMessageBySender:E,onButtonClick:u,onLinkClick:c,onReaction:s},x&&!r?"last":b)}),r&&y.jsx(m1,{ref:g,message:iR,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Ee.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(aR,{isTyping:!0})},"last")]})]})},lR=(n,r)=>!r||r!==n.sender.type,oR=(n,r,i,s)=>{const u=n.sender.type,c=i.length;return r+1===c?!(u===Ee.UserType.BOT&&s):u!==i.at(r+1)?.sender.type},uR="_bottomSheet_jp8dl_1",cR="_bottomSheetOpen_jp8dl_15",fR="_bottomSheetClose_jp8dl_20",qn={bottomSheet:uR,bottomSheetOpen:cR,bottomSheetClose:fR},hR="_container_xc2nx_1",dv={container:hR},dR=({contentUrl:n})=>{const r=zt(c=>c.connection.sessionId),[i,s]=U.useState(!1);U.useEffect(()=>{s(c=>c||!!n)},[n]);const u=U.useMemo(()=>{if(n&&r){const c=new URL(n,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[n,r]);return y.jsx("div",{className:X(dv.container,qn.bottomSheet,{[qn.bottomSheetOpen]:!!n,[qn.bottomSheetClose]:i&&!n}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:dv.iframe})})},mR="_container_z787n_1",pR={container:mR},gR=({title:n,href:r,children:i})=>y.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),yR=()=>{const r=Pe()("powered-by");return r&&r.length?y.jsx("div",{className:X(pR.container,"chat__poweredBy"),children:y.jsx(Gn,{options:{overrides:{a:gR}},children:r})}):null},vR=({className:n,children:r,...i})=>y.jsx(Oo,{className:X(is.buttonDefault,n),type:"button",...i,children:r}),ho=({className:n,children:r,...i})=>y.jsx(Oo,{className:X(is.buttonPrimary,n),...i,children:r}),_R="_container_h23mk_1",bR="_formContainer_h23mk_17",ER="_emailInput_h23mk_22",SR="_description_h23mk_52",TR="_actions_h23mk_57",xR="_validationError_h23mk_67",AR="_submitted_h23mk_74",Fr={container:_R,formContainer:bR,emailInput:ER,description:SR,actions:TR,validationError:xR,submitted:AR},wR=({visible:n,enableTranscriptExportEmail:r,onEmailExport:i,onClose:s})=>{const u=Pe(),[c,h]=U.useState(void 0),[d,m]=U.useState(!1),[g,v]=U.useState(void 0),T=U.useRef(null);U.useEffect(()=>{n?(T.current?.focus(),m(!1),h(n)):c===!0&&h(!1)},[n,c]);const A=M=>{M.preventDefault(),g&&g.length>0&&(i(g),m(!0),setTimeout(s,3*1e3))},j=M=>{const F=M.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(F);v(k?F:"")};return y.jsx("div",{className:X(Fr.container,qn.bottomSheet,{[qn.bottomSheetOpen]:c===!0,[qn.bottomSheetClose]:c===!1}),children:r&&y.jsxs(y.Fragment,{children:[y.jsx("h2",{children:u("export-transcript.email.title")}),y.jsx(Gn,{className:Fr.description,children:u("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:A,className:Fr.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:T,type:"email",placeholder:u("export-transcript.email.placeholder"),className:Fr.emailInput,onChange:j}),g?.length===0?y.jsx("div",{className:Fr.validationError,children:u("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:Fr.actions,children:[y.jsx(vR,{onClick:s,children:u("export-transcript.email.cancel")}),y.jsx(ho,{type:"submit",disabled:d||g===void 0||g.length===0,children:u("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:Fr.submitted,children:u("export-transcript.email.success")})]})})},OR="_inputContainer_fi5ao_1",RR={inputContainer:OR},CR="_blockUserInput_pot9c_1",NR={blockUserInput:CR},MR=({visible:n})=>{const r=Pe();return n?y.jsx("div",{className:X(NR.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},DR="_commandsDropdown_5ytuv_1",BR="_commands_5ytuv_1",jR="_command_5ytuv_1",LR="_commandActive_5ytuv_46",UR="_commandsSelections_5ytuv_55",es={commandsDropdown:DR,commands:BR,command:jR,commandActive:LR,commandsSelections:UR},T1=(n,r)=>{U.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},HR=(n,r,i,s,u)=>{U.useEffect(()=>{const c=h=>{if(n.length)switch(h.key){case"Enter":i(n[r]);break;case"ArrowUp":s(d=>d>0?d-1:n.length-1);break;case"ArrowDown":s(d=>d<n.length-1?d+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[n,r,i,s,u])},zR=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=U.useRef(null),c=Pe(),[h,d]=U.useState([]),[m,g]=U.useState(mv(r)),[v,T]=U.useState(0),A=j=>i(`/${j}`);return T1(u,()=>d([])),HR(h,v,A,T,d),U.useEffect(()=>{g(mv(r))},[r]),U.useEffect(()=>{const j=n.length||0;j===0||j>m||!n.startsWith("/")?d([]):d(r.filter(kR(n))),T(0)},[r,n,m]),U.useEffect(()=>{s(!!h.length)},[h,s]),h.length?y.jsx("div",{ref:u,className:es.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:es.commands,role:"listbox",children:h.map((j,M)=>y.jsxs("li",{className:X([es.command,v===M&&es.commandActive]),role:"option",onClick:()=>A(j),onMouseOver:()=>T(M),children:[y.jsxs("h1",{children:["/",j]}),y.jsx("p",{children:c(`commands.${j}`)})]},j))})}):null},mv=n=>Math.max(...n.map(r=>r.length+1)),kR=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},pv=3,IR=({commands:n,onSelectCommand:r})=>{const i=Pe(),[s,u]=U.useState(!1),c=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=s?n:n.slice(0,pv);return y.jsxs("div",{className:es.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:h,children:i("commands.show-more.action")},"show-more"):m.length>pv?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-less.action")},"show-less"):null]})},GR="_callToActionContainer_1pojq_1",qR="_callToActionTitle_1pojq_23",FR="_rateOverlay_1pojq_30",VR="_body_1pojq_52",PR="_footer_1pojq_60",ZR="_actions_1pojq_73",YR="_bubbles_1pojq_101",XR="_stars_1pojq_203",QR="_starsSmall_1pojq_217",KR="_starsLarge_1pojq_223",$R="_star_1pojq_203",JR="_starReadonly_1pojq_237",WR="_starIcon_1pojq_247",e3="_starsDescriptionContainer_1pojq_265",t3="_starsDescription_1pojq_265",_t={callToActionContainer:GR,callToActionTitle:qR,rateOverlay:FR,body:VR,footer:PR,actions:ZR,bubbles:YR,stars:XR,starsSmall:QR,starsLarge:KR,star:$R,starReadonly:JR,starIcon:WR,starsDescriptionContainer:e3,starsDescription:t3},n3=({value:n,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const h=d=>{c&&d.key==="Enter"&&c()};return y.jsx("li",{className:X(_t.star,{[_t.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":n>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:h,onClick:c,children:y.jsx("span",{role:"img","aria-label":"Star",className:X(_t.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"})})})})})},gv=5,x1=({value:n,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=U.useState(void 0),h=()=>{c(void 0)},d=g=>()=>{if(!i){const v=g+1;c(v)}},m=g=>()=>{s&&!i&&(s(g===0&&n===1?0:g+1),c(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:X(_t.stars,{[_t.starsSmall]:r==="small",[_t.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(gv).fill(0).map((g,v)=>y.jsx(n3,{value:u===void 0?n:u,index:v,count:gv,readonly:i,onHover:d(v),onClick:m(v)},v))})},r3=({visible:n,onRate:r})=>{const i=Pe();return n?y.jsxs("div",{className:X(_t.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:X(_t.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(x1,{value:0,size:"small",onChange:r})]}):null},Bf=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>y.jsxs("div",{className:X(de.message,de.messageBot,n&&de.messageBotFirst,r&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:X(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:X(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:X(de.leftText,de.bubbleContent),children:i})})]}),a3=({children:n})=>y.jsx("div",{className:X(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:X(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:X(de.rightText,de.bubbleContent),children:n})})}),i3=({visible:n,rating:r,onRate:i,onClose:s})=>{const u=Pe(),[c,h]=U.useState(r),[d,m]=U.useState(void 0),[g,v]=U.useState(void 0),[T,A]=U.useState({submitted:!1,feedback:""}),[j,M]=U.useState(!1),F=U.useRef(null);U.useEffect(()=>{n?(A({submitted:!1,feedback:""}),v(n)):g===!0&&v(!1)},[n,g]),U.useEffect(()=>{h(r)},[r]),U.useEffect(()=>{const E=c>0?u(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`):void 0;m(E?.length?E:void 0)},[c,u]),U.useEffect(()=>{T.submitted?setTimeout(()=>M(!0),T.feedback.length?500:0):M(!1)},[T]);const k=E=>{E.preventDefault();const x=F.current?.value?.trim()||"";i(c,x),A({submitted:!0,feedback:x})};return y.jsx("div",{className:X(_t.rateOverlay,qn.bottomSheet,"chat__conversationRating__overlay",{[qn.bottomSheetOpen]:g===!0,[qn.bottomSheetClose]:g===!1}),children:y.jsxs("form",{onSubmit:k,children:[y.jsxs("div",{className:X(_t.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:X(_t.bubbles),children:n&&d&&y.jsxs(y.Fragment,{children:[y.jsxs(Bf,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[y.jsx("h2",{children:u("conversation-rating.overlay.title")}),y.jsxs("div",{className:X(_t.starsDescriptionContainer),children:[y.jsx(x1,{value:c,size:"large",readonly:T.submitted,onChange:h}),y.jsxs("div",{className:X(_t.starsDescription),children:[y.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),y.jsx(Bf,{isFirstMessageBySender:!1,isLastMessageBySender:!j||!!T.feedback.length,children:y.jsx("div",{children:d})}),!!T.feedback.length&&y.jsx(a3,{children:T.feedback}),j&&y.jsx(Bf,{isFirstMessageBySender:!!T.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:X(_t.footer,"chat__conversationRating__overlay__footer"),children:[!T.submitted&&y.jsx("input",{ref:F,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsx("div",{className:X(_t.actions,"chat__conversationRating__overlay__footer__actions"),children:T.submitted?y.jsx(ho,{type:"button",onClick:s,children:u("conversation-rating.overlay.action.close")}):y.jsx(ho,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},s3=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:u,onRate:c})=>{const[h,d]=U.useState(0),m=T=>{d(T),u(!0)},g=()=>u(!1),v=!r&&i>=1;return n?y.jsxs(y.Fragment,{children:[y.jsx(r3,{visible:v,onRate:m}),y.jsx(i3,{visible:s,rating:h,onRate:c,onClose:g})]}):null},l3=U.memo(s3),o3="_inputWrapper_e3h44_1",u3="_withOpenCommands_e3h44_14",c3="_messageInputWrapper_e3h44_20",f3="_messageInput_e3h44_20",h3="_buttons_e3h44_44",d3="_button_e3h44_44",Vr={inputWrapper:o3,withOpenCommands:u3,messageInputWrapper:c3,messageInput:f3,buttons:h3,button:d3},m3="_audioRecorder_g845f_1",p3="_audioButton_g845f_6",g3="_recorderIcon_g845f_37",y3="_spinning_g845f_60",Pr={audioRecorder:m3,audioButton:p3,recorderIcon:g3,spinning:y3},yv=2048,mo=16e3;class v3 extends Xv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(yv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=yv}}handleClickSubmitAudio(){const r=b3(this.leftchannel,this.recordingLength),i=E3(r,this.sampleRate||0),s=_3(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return y.jsxs("div",{className:Pr.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:X(Pr.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children: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:Pr.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:Pr.audioRecorder,children:[y.jsx("button",{className:X(Pr.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:Pr.recorderIcon}),y.jsx("button",{className:X(Pr.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 _3=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);Kl(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Kl(i,8,"WAVE"),Kl(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,mo,!0),i.setUint32(28,mo*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Kl(i,36,"data"),i.setUint32(40,n.length*2,!0);const s=n.length;let u=44;const c=1;for(let h=0;h<s;h++)i.setInt16(u,n[h]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Kl=(n,r,i)=>{for(let s=0;s<i.length;s++)n.setUint8(r+s,i.charCodeAt(s))},b3=(n,r)=>{const i=new Float32Array(r);let s=0;const u=n.length;for(let c=0;c<u;c++){const h=n[c];i.set(h,s),s+=h.length}return i},E3=(n,r)=>{if(mo===r)return n;const i=r/mo,s=Math.round(n.length/i),u=new Float32Array(s);let c=0,h=0;for(;c<u.length;){const d=Math.round((c+1)*i);let m=0,g=0;for(let v=h;v<d&&v<n.length;v++)m+=n[v],g++;u[c]=m/g,c++,h=d}return u},S3=({disabled:n,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:h,onOpenTranscriptExportModal:d})=>{const m=Pe(),g=U.useRef(null),{enableTranscriptExportPdf:v,enableTranscriptExportEmail:T,enableSpeechSupport:A}=zt(E=>E.settings);U.useEffect(()=>{g.current?.focus()},[r]);const j=()=>{const E=g.current;E&&r.trim().length>=1&&c(r.trim())&&(E.value="",E.style.height="",E.focus())},M=E=>{E.preventDefault(),j()},F=E=>{const x=E.target.value;u(x),E.target.style.height="";const{scrollHeight:b}=E.target;E.target.style.height=`${b>150?150:b}px`},k=E=>{E.code==="Enter"&&!E.shiftKey?(E.repeat||j(),E.preventDefault()):i&&(E.code==="ArrowUp"||E.code==="ArrowDown")&&E.preventDefault()};return y.jsxs("form",{className:X(Vr.inputWrapper,i&&Vr.withOpenCommands,"chat__textInput"),onSubmit:M,children:[y.jsx("div",{className:Vr.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:g,className:Vr.messageInput,tabIndex:0,placeholder:m("message-input-placeholder"),value:r,onChange:F,onKeyDown:k,"aria-label":m("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsxs("div",{className:X(Vr.buttons,"chat__buttons"),children:[!r.length&&(v||T)&&y.jsx("button",{type:"button",className:X(Vr.button,"chat__button"),"aria-label":m("message-input.actions.export-transcript.label"),"data-title":m("message-input.actions.export-transcript.label"),tabIndex:0,onClick:d,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:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),r.length||!A||navigator.mediaDevices===void 0?y.jsx("button",{className:X(Vr.button,"chat__button"),type:"submit","aria-label":m("message-input.actions.submit.label"),"data-title":m("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"})})}):A&&navigator.mediaDevices!==void 0&&y.jsx(v3,{translate:m,onAudioRecorded:h})]})]})},T3="_quickReplies_83npe_1",x3="_quickReply_83npe_9",vv={quickReplies:T3,quickReply:x3},A3=({quickReplies:n,onQuickReplyClick:r})=>n.length?y.jsx("div",{className:X(vv.quickReplies,"chat__quickReplies"),children:n.map(i=>y.jsx(Oo,{tabIndex:0,className:X(vv.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,_v=5e3,w3=1e3,O3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:s,showRatingOverlay:u,commands:c,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:v,onOpenTranscriptExportModal:T})=>{const[A,j]=U.useState(""),[M,F]=U.useState(!1),[k,E]=U.useState(!1),x=U.useRef(0),b=U.useRef(0);U.useEffect(()=>{if(M&&!n){const z=x.current?Date.now()-x.current:0;z>_v?F(!1):setTimeout(()=>{F(!1)},_v-z)}},[M,n]),U.useEffect(()=>{M&&(x.current=Date.now())},[M]);const O=z=>{const Z=Date.now()-b.current<w3;return k?!1:n||Z?(F(!0),!1):(d(z),j(""),b.current=Date.now(),!0)},S=z=>{j(z+" ")};return y.jsxs("div",{className:X(RR.inputContainer),children:[y.jsx(A3,{quickReplies:r,onQuickReplyClick:g}),y.jsx(MR,{visible:M}),!M&&y.jsx(l3,{conversationRating:i,numberOfMessagesFromGuest:s,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!c?.length&&y.jsx(zR,{text:A,commands:c,onSelectCommand:S,onVisibilityChange:E}),y.jsx(S3,{textInput:A,disabled:M,commandsVisible:k,hasCommands:!!c?.length,onTextInput:j,onTextInputSubmit:O,onOpenTranscriptExportModal:T,onAudioRecorded:v}),!!c?.length&&y.jsx(IR,{commands:c,onSelectCommand:j})]})},R3=({clientName:n,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:v,onAudioRecorded:T,onTranscriptExport:A,onTranscriptItemReaction:j})=>{const M=Wr(),F=zt(Z=>Z.connection.connectionState),{enableTranscriptExportEmail:k,commands:E}=zt(Z=>Z.settings),[x,b]=U.useState(!1),[O,S]=U.useState(!1),z=r.filter(Z=>Z.sender.type===fo.GUEST).length;return U.useEffect(()=>{if(F===Qr.CONNECTED){const Z=vo.parse(window.location.search);M(i1(n,Z))}},[n,F,M]),y.jsxs("div",{className:_f.container,children:[y.jsxs("div",{className:X([_f.chatcontent,(x||O)&&_f.accessabilityHidden]),children:[y.jsx(sR,{messages:r,isBotTyping:s,commands:E,onButtonClick:g,onLinkClick:v,onTranscriptItemReaction:j}),y.jsx(O3,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:z,conversationRating:x?{enabled:!1}:c,showRatingOverlay:O,setShowRatingOverlay:S,commands:E,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:T,onOpenTranscriptExportModal:()=>b(!x)}),y.jsx(yR,{})]}),k&&y.jsx(wR,{enableTranscriptExportEmail:k,visible:x,onEmailExport:A,onClose:()=>b(!1)}),y.jsx(dR,{contentUrl:u})]})},C3=n=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c}=n.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c}},N3=n=>({onRestartChat:(r,i)=>n(Ao(r,i)),onMessageFromUser:r=>n(H_(r)),onRate:(r,i)=>n(uA(r,i)),onAudioRecorded:r=>n(aA(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(U_(r)),onNluEvent:r=>n(q_(r)),onButtonClick:r=>n(fA(r)),onLinkClick:r=>n(F_(r)),onTranscriptExport:r=>n(sA(r)),onTranscriptItemReaction:(r,i)=>n(Ee.Actions.transcriptItemGuestReaction(r,i||null))}),M3=xS(C3,N3)(R3),A1=()=>{const[n,r]=U.useState(!1);return U.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},D3=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},B3=({onClick:n})=>{const r=Pe();return A1()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:D3(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},j3="_header_scxhm_1",L3="_logoContainer_scxhm_14",U3="_logo_scxhm_14",H3="_actions_scxhm_28",z3="_active_scxhm_43",k3="_menuContainer_scxhm_56",I3="_menu_scxhm_56",G3="_divider_scxhm_86",vr={header:j3,logoContainer:L3,logo:U3,actions:H3,active:z3,menuContainer:k3,menu:I3,divider:G3},q3=({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"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",{})}},F3=U.forwardRef(({selected:n,item:r,onClick:i},s)=>{const u=Pe(),c=h=>{h.preventDefault(),i()};return y.jsx("li",{"aria-selected":n,role:"option",className:r.withDivider?vr.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[y.jsx(q3,{icon:r.icon}),y.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),V3=n=>{const r=A1(),{menuItems:i,enableStandaloneView:s,enableTranscriptExportPdf:u}=zt(h=>h.settings);return U.useMemo(()=>{const h=[];if(n){h.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),r&&s&&h.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),u&&h.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"});const d=h.pop();d&&i.length&&h.push({...d,withDivider:!0})}return h.push(...i),h.filter(({visibility:d})=>n?d==="always"||d==="chat-only":d==="always"||d==="start-screen-only")},[n,u,s,r,i])},P3=({chatStarted:n})=>{const r=Wr(),i=ad(),s=Pe(),[u,c]=U.useState(!1),[h,d]=U.useState(-1),m=U.useRef(null),g=U.useRef(null),v=U.useRef([]),T=V3(n);U.useEffect(()=>{v.current[h]?.focus()},[h]);const A=U.useCallback(()=>{const k=vo.parse(window.location.search);r(Ao(i,k)),c(!1),d(0)},[r,i]),j=U.useCallback(k=>{switch(k.type){case"restart-chat":A();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":r(lA());break;case"send-transcript":break;case"link":r(F_(k.url));break;case"action":r(JSON.parse(JSON.stringify(k.action)));break}c(!1)},[r,A,c]);U.useEffect(()=>{const k=E=>{if(u)switch(E.key){case"Enter":E.preventDefault(),j(T[h]);break;case"ArrowUp":d(x=>x>0?x-1:T.length-1);break;case"ArrowDown":d(x=>x<T.length-1?x+1:0);break;case"Escape":c(!1);break;case"Tab":h>-1&&c(!1);break}};return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[u,h,T,d,c,j]),U.useEffect(()=>{u||d(-1)},[u,h]),T1(g,()=>c(!1));const M=()=>{c(k=>!k)},F=()=>{setTimeout(()=>{const k=document.activeElement;g.current&&!g.current.contains(k)&&c(!1)},0)};return y.jsxs("div",{className:X(vr.menuContainer),ref:g,children:[y.jsx("button",{ref:m,className:X(u&&vr.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:M,onBlur:F,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"})})}),u&&y.jsx("nav",{className:vr.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:T.map((k,E)=>y.jsx(F3,{ref:x=>{v.current[E]=x},selected:h===E,item:k,onClick:()=>j(k)},k.id))})})]})},bv=({className:n,chatStarted:r,...i})=>{const s=Wr(),u=()=>{s(nw())};return y.jsxs("div",{className:X([vr.header,n]),...i,children:[y.jsx("div",{className:vr.logoContainer,children:y.jsx("div",{className:vr.logo})}),y.jsxs("div",{className:vr.actions,children:[y.jsx(P3,{chatStarted:r}),y.jsx(B3,{onClick:u})]})]})},Z3="_chatwindow_rkbir_1",Y3="_chatwindowWithAside_rkbir_21",Ev={chatwindow:Z3,chatwindowWithAside:Y3},w1=()=>{const[n,r]=U.useState(!1);return U.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),n},X3="_sourceInfos_vei0l_1",Q3="_waitForLoading_vei0l_24",K3="_loadingContent_vei0l_28",$3="_sourceHeader_vei0l_37",J3="_sourceHeaderIcon_vei0l_57",W3="_sourceContent_vei0l_61",eC="_openSourceButton_vei0l_69",tC="_sourceButtonLabel_vei0l_79",nC="_closeSourceInfosButton_vei0l_101",rC="_loadingSourceInfos_vei0l_125",aC="_loading_vei0l_28",iC="_loadingError_vei0l_139",sC="_highlightLoadingInfo_vei0l_155",lC="_highlightLoadingInfoInnerContainer_vei0l_169",oC="_highlightLoadingInfoContent_vei0l_178",uC="_highlightLoadingInfoCloseIcon_vei0l_198",cC="_highlightLoader_vei0l_203",fC="_highlightLoaderLoading_vei0l_210",st={sourceInfos:X3,waitForLoading:Q3,loadingContent:K3,sourceHeader:$3,sourceHeaderIcon:J3,sourceContent:W3,openSourceButton:eC,sourceButtonLabel:tC,closeSourceInfosButton:nC,loadingSourceInfos:rC,loading:aC,loadingError:iC,highlightLoadingInfo:sC,highlightLoadingInfoInnerContainer:lC,highlightLoadingInfoContent:oC,highlightLoadingInfoCloseIcon:uC,highlightLoader:cC,highlightLoaderLoading:fC},hC=({onClick:n})=>{const r=Pe();return y.jsx("button",{className:X(st.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("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"})})})},dC=U.forwardRef(({sourceInfos:n,onClose:r,...i},s)=>y.jsxs("div",{className:st.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:n?y.jsx("p",{id:"source-info-title",children:n.title}):y.jsx("p",{children:" "})}),y.jsx(hC,{onClick:r})]})),mC=({loading:n})=>y.jsx("div",{className:st.highlightLoader,children:n&&y.jsx("div",{className:st.highlightLoaderLoading})}),pC=({onClose:n})=>{const r=Pe();return y.jsxs("div",{className:st.highlightLoadingInfo,onClick:n,children:[y.jsx("div",{className:st.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:st.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:st.highlightLoadingInfoContent,children:[y.jsx("h3",{children:r("source-infos.highlight-loading.title")}),y.jsx("p",{children:r("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"})})]})]})},gC=({title:n,href:r,children:i})=>y.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),yC=({className:n,children:r,...i})=>y.jsx("a",{className:X(is.button,is.buttonDefault,n),type:"button",role:"button",...i,children:r}),vC=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"})}),_C=({type:n,...r})=>{switch(n){case"WEBSITE":return y.jsx(v1,{...r});case"PDF":return y.jsx(y1,{...r});case"DOCX":return y.jsx(p1,{...r});case"TEXT":return y.jsx(vC,{...r});default:return y.jsx(g1,{...r})}},bC=({url:n,knowledgeBaseType:r})=>{const i=Pe();return y.jsx(yC,{className:st.openSourceButton,href:n,target:"_blank",children:y.jsxs("div",{className:st.sourceButtonLabel,children:[y.jsx("div",{className:st.sourceHeaderIcon,children:y.jsx(_C,{type:r})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},EC=({sourceInfos:{content:n,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=U.useState(!s);return U.useEffect(()=>{s&&c(!1)},[s]),y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:X(st.sourceContent,E1.markdown),children:[y.jsx(Gn,{options:{overrides:{a:gC}},children:n}),u&&y.jsx(pC,{onClose:()=>c(!1)})]}),y.jsx(bC,{url:r,knowledgeBaseType:i})]})},SC=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,TC=()=>{const n=Pe();return y.jsxs("div",{className:st.loadingError,children:[y.jsx("h1",{children:n("source-infos.error.title")}),y.jsx("img",{src:SC,title:n("source-infos.error.title")}),y.jsx("p",{children:n("source-infos.error.info")})]})},xC=()=>y.jsx("div",{className:st.loadingSourceInfos,children:y.jsx("svg",{className:st.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"})})});function AC({sourceInfos:n,onClose:r,threshold:i=100}){const s=U.useRef(null),[u,c]=U.useState(0),[h,d]=U.useState(!1),m=U.useRef(null),g=U.useRef(null),v=U.useCallback(M=>{m.current=M,d(!0)},[]),T=U.useCallback(M=>{if(m.current!==null&&h){const F=M-m.current;F>0&&c(F)}},[h]),A=U.useCallback(()=>{d(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),j=U.useCallback(M=>{const F=S=>v(S.touches[0].clientY),k=S=>T(S.touches[0].clientY),E=()=>A(),x=S=>{S.preventDefault(),v(S.clientY),window.addEventListener("mousemove",b),window.addEventListener("mouseup",O)},b=S=>T(S.clientY),O=()=>{A(),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",O)};M.addEventListener("touchstart",F),M.addEventListener("touchmove",k),M.addEventListener("touchend",E),M.addEventListener("mousedown",x),g.current=()=>{M.removeEventListener("touchstart",F),M.removeEventListener("touchmove",k),M.removeEventListener("touchend",E),M.removeEventListener("mousedown",x),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",O)}},[v,T,A]);return U.useEffect(()=>{let M;return(()=>{s.current?(g.current?.(),j(s.current)):(M=new MutationObserver(()=>{s.current&&(g.current?.(),j(s.current),M?.disconnect())}),M.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{M?.disconnect(),g.current?.()}},[j,n]),{ref:s,dragOffsetY:u,isDragging:h}}const wC=n=>{const[r,i]=U.useState(!0);return U.useEffect(()=>{let s=null;return n?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!n),()=>{s&&clearTimeout(s)}},[n]),r},OC=()=>{const n=Wr(),r=zt(m=>m.chat.sourceInfos),i=w1(),s=U.useRef(null),u=wC(r);U.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=U.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),n(aw()))},[n,i]),{ref:h,dragOffsetY:d}=AC({onClose:c,sourceInfos:r});return r?y.jsx("dialog",{ref:s,className:X(st.sourceInfos,u?st.waitForLoading:r.type==="loading"?st.loadingContent:""),style:i&&d?{transform:`translateY(${d}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(dC,{ref:h,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?y.jsx(xC,{}):r.type==="loading-error"?y.jsx(TC,{}):y.jsxs(y.Fragment,{children:[y.jsx(mC,{loading:!r.highlighted}),y.jsx(EC,{sourceInfos:r})]})]})}):null},RC="_container_114wy_1",CC="_body_114wy_7",NC="_intro_114wy_14",MC="_footer_114wy_39",DC="_footnote_114wy_43",BC="_containerWithFootnote_114wy_58",jC="_startChatButton_114wy_73",LC="_formFields_114wy_77",UC="_formField_114wy_77",HC="_radio_114wy_89",zC="_checkbox_114wy_96",kC="_input_114wy_104",IC="_inputLabel_114wy_138",GC="_selectWrapper_114wy_142",qC="_select_114wy_142",FC="_selectLabel_114wy_188",ht={container:RC,body:CC,intro:NC,footer:MC,footnote:DC,containerWithFootnote:BC,startChatButton:jC,formFields:LC,formField:UC,radio:HC,checkbox:zC,input:kC,inputLabel:IC,selectWrapper:GC,select:qC,selectLabel:FC},VC=({name:n,label:r,defaultValue:i,required:s,onChange:u})=>{const c=h=>{u(h.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:X(ht.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[y.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:s,onChange:c}),y.jsx("div",{children:r})]})},PC=({type:n,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:h,min:d,max:m,pattern:g,onChange:v})=>{const T=A=>{v(A.target.value)};return y.jsxs("label",{className:X(ht.input,"chat__startScreen__input"),htmlFor:r,children:[y.jsx("div",{className:X(ht.inputLabel),children:i}),y.jsx("input",{type:n,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:h,min:d,max:m,pattern:g,onChange:T})]})},ZC=({name:n,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const h=`${n}-${r}`,d=m=>{c(m.target.value)};return y.jsxs("label",{className:X(ht.radio,"chat__startScreen__radio"),htmlFor:h,children:[y.jsx("input",{id:h,type:"radio",name:n,value:r,defaultChecked:s,required:u,onChange:d}),y.jsx("span",{className:X(ht.label),children:i})]})},YC=({name:n,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:h})=>{const d=m=>{h(m.target.value)};return y.jsxs("label",{className:X(ht.select,"chat__startScreen__select"),htmlFor:n,children:[y.jsx("div",{className:X(ht.selectLabel),children:r}),y.jsx("div",{className:X(ht.selectWrapper),children:y.jsx("select",{id:n,name:n,defaultValue:i,required:s,multiple:u,onChange:d,children:Object.entries(c||{}).map(([m,g])=>y.jsx("option",{value:m,selected:g===i,children:g}))})})]})},XC="start-screen.intro",QC="start-screen.start-chat",KC="start-screen.footnote",ln="start-screen.form",Sv=`${ln}.fields`,$C=()=>{const n=Pe(),r=Wr(),[i,s]=U.useState({}),u=()=>{const T=Object.entries(i).reduce((A,[j,M])=>({...A,[j]:M.value}),{});r(WA(T))},c=n(XC),h=n(QC),d=n(KC),m=U.useMemo(()=>n(Sv)?.split(";").map(T=>T.trim())??[],[n(Sv)]);U.useEffect(()=>{m.length&&Object.keys(i).length===0&&s(m.reduce((T,A)=>({...T,[A]:JC(A,n)}),{}))},[n,m,i]);const g=T=>{T.preventDefault(),u()},v=T=>A=>{s(j=>({...j,[T]:{...j[T],value:A}}))};return y.jsxs("form",{onSubmit:g,className:X(ht.container,d&&ht.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:X(ht.body,"chat__startScreen__body"),children:[c&&y.jsx("div",{className:X(ht.intro,"chat__startScreen__intro"),children:y.jsx(Gn,{options:{overrides:{a:Tv}},children:c})}),y.jsx("div",{className:X(ht.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:T,name:A,label:j,placeholder:M,defaultValue:F,options:k,required:E,multiple:x,min:b,max:O,pattern:S})=>y.jsx("div",{className:X(ht.formField,"chat__startScreen__field"),children:(()=>{switch(T){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:j}),Object.entries(k||{}).map(([z,Z])=>y.jsx(ZC,{name:A,value:z,label:Z,defaultChecked:z===F,required:E,onChange:v(A)},z))]});case"checkbox":return y.jsx(VC,{name:A,label:j,defaultValue:F,required:E,onChange:v(A)});case"select":return y.jsx(YC,{name:A,label:j,defaultValue:F,required:E,multiple:x,options:k,onChange:v(A)});default:return y.jsx(PC,{type:T,name:A,label:j,placeholder:M,defaultValue:F,required:E,multiple:x,min:b,max:O,pattern:S,onChange:v(A)})}})()},A))})]}),y.jsxs("div",{className:X(ht.footer,"chat__startScreen__footer"),children:[y.jsx(ho,{type:"submit",className:ht.startChatButton,children:h}),d&&y.jsx("div",{className:ht.footnote,children:y.jsx(Gn,{options:{overrides:{a:Tv}},children:d})})]})]})},Tv=({title:n,href:r,children:i})=>y.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),JC=(n,r)=>{const i=r(`${ln}.${n}.type`)||"text",s=r(`${ln}.${n}.required`)==="true",u=r(`${ln}.${n}.multiple`)==="true",c=r(`${ln}.${n}.placeholder`),h=r(`${ln}.${n}.label`)||"",d=r(`${ln}.${n}.defaultValue`),m=r(`${ln}.${n}.min`),g=r(`${ln}.${n}.max`),v=r(`${ln}.${n}.pattern`),T=e4(r(`${ln}.${n}.options`));return{name:n,label:h,placeholder:c,value:WC(i,d,T)||"",defaultValue:d,options:T,type:i,required:s,multiple:u,min:m,max:g,pattern:v}},WC=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",e4=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),t4=()=>{const n=yo();U.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},ka={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},n4=({clientName:n})=>{t4();const r=Wr(),i=zt(v=>v.intl.messages),s=Pe(),u=zt(v=>v.settings.enableStartScreen),c=zt(v=>v.startScreen.startScreenStatus),[h,d]=U.useState(void 0);U.useEffect(()=>{const v=vo.parse(window.location.search);v.cssClassName&&d(v.cssClassName);const T=A=>{switch(A.data.type){case ka.TRIGGER_ACTION:r(A.data.action);break;case ka.TRIGGER_STORY:r(q_(A.data.story));break;case ka.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case ka.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case ka.CHAT_MESSAGE_FROM_GUEST:r(H_(A.data.text));break;case ka.RESTART_CHAT:r(Ao(n,v));break}};return r(sw(n,v)),window.addEventListener("message",A=>T(A),!1),()=>window.removeEventListener("message",T)},[n,r]),U.useEffect(()=>{const v=s("page.title");v&&document&&(document.title=v)},[i,s]);const m=u===void 0,g=u===!1||c==="HIDDEN";return y.jsx("div",{className:X(Ev.chatwindow,g&&Ev.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(M3,{clientName:n})}),y.jsx("aside",{children:y.jsx(OC,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(bv,{chatStarted:!1})}),y.jsx("main",{children:y.jsx($C,{})})]})})},r4=()=>{const n=ad(),r=w1(),i=zt(u=>u.intl.locale),s=zt(u=>u.intl.messages);return y.jsx(fx,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:X([dx.app,r?"chat__small":"chat__large"]),children:y.jsx(n4,{clientName:n})})})};var jf,xv;function id(){if(xv)return jf;xv=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return jf=n,jf}var Lf,Av;function a4(){if(Av)return Lf;Av=1;var n=typeof xl=="object"&&xl&&xl.Object===Object&&xl;return Lf=n,Lf}var Uf,wv;function O1(){if(wv)return Uf;wv=1;var n=a4(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return Uf=i,Uf}var Hf,Ov;function i4(){if(Ov)return Hf;Ov=1;var n=O1(),r=function(){return n.Date.now()};return Hf=r,Hf}var zf,Rv;function s4(){if(Rv)return zf;Rv=1;var n=/\s/;function r(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return zf=r,zf}var kf,Cv;function l4(){if(Cv)return kf;Cv=1;var n=s4(),r=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(r,"")}return kf=i,kf}var If,Nv;function R1(){if(Nv)return If;Nv=1;var n=O1(),r=n.Symbol;return If=r,If}var Gf,Mv;function o4(){if(Mv)return Gf;Mv=1;var n=R1(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,u=n?n.toStringTag:void 0;function c(h){var d=i.call(h,u),m=h[u];try{h[u]=void 0;var g=!0}catch{}var v=s.call(h);return g&&(d?h[u]=m:delete h[u]),v}return Gf=c,Gf}var qf,Dv;function u4(){if(Dv)return qf;Dv=1;var n=Object.prototype,r=n.toString;function i(s){return r.call(s)}return qf=i,qf}var Ff,Bv;function c4(){if(Bv)return Ff;Bv=1;var n=R1(),r=o4(),i=u4(),s="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;function h(d){return d==null?d===void 0?u:s:c&&c in Object(d)?r(d):i(d)}return Ff=h,Ff}var Vf,jv;function f4(){if(jv)return Vf;jv=1;function n(r){return r!=null&&typeof r=="object"}return Vf=n,Vf}var Pf,Lv;function h4(){if(Lv)return Pf;Lv=1;var n=c4(),r=f4(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Pf=s,Pf}var Zf,Uv;function d4(){if(Uv)return Zf;Uv=1;var n=l4(),r=id(),i=h4(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return s;if(r(g)){var v=typeof g.valueOf=="function"?g.valueOf():g;g=r(v)?v+"":v}if(typeof g!="string")return g===0?g:+g;g=n(g);var T=c.test(g);return T||h.test(g)?d(g.slice(2),T?2:8):u.test(g)?s:+g}return Zf=m,Zf}var Yf,Hv;function m4(){if(Hv)return Yf;Hv=1;var n=id(),r=i4(),i=d4(),s="Expected a function",u=Math.max,c=Math.min;function h(d,m,g){var v,T,A,j,M,F,k=0,E=!1,x=!1,b=!0;if(typeof d!="function")throw new TypeError(s);m=i(m)||0,n(g)&&(E=!!g.leading,x="maxWait"in g,A=x?u(i(g.maxWait)||0,m):A,b="trailing"in g?!!g.trailing:b);function O(le){var Ze=v,ye=T;return v=T=void 0,k=le,j=d.apply(ye,Ze),j}function S(le){return k=le,M=setTimeout($,m),E?O(le):j}function z(le){var Ze=le-F,ye=le-k,I=m-Ze;return x?c(I,A-ye):I}function Z(le){var Ze=le-F,ye=le-k;return F===void 0||Ze>=m||Ze<0||x&&ye>=A}function $(){var le=r();if(Z(le))return se(le);M=setTimeout($,z(le))}function se(le){return M=void 0,b&&v?O(le):(v=T=void 0,j)}function re(){M!==void 0&&clearTimeout(M),k=0,v=F=T=M=void 0}function J(){return M===void 0?j:se(r())}function ie(){var le=r(),Ze=Z(le);if(v=arguments,T=this,F=le,Ze){if(M===void 0)return S(F);if(x)return clearTimeout(M),M=setTimeout($,m),O(F)}return M===void 0&&(M=setTimeout($,m)),j}return ie.cancel=re,ie.flush=J,ie}return Yf=h,Yf}var Xf,zv;function p4(){if(zv)return Xf;zv=1;var n=m4(),r=id(),i="Expected a function";function s(u,c,h){var d=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(h)&&(d="leading"in h?!!h.leading:d,m="trailing"in h?!!h.trailing:m),n(u,c,{leading:d,maxWait:c,trailing:m})}return Xf=s,Xf}var g4=p4();const y4=po(g4);function v4(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function _4(n){return n}function b4(n,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||_4,c={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(v){const T=d[v],A=r.safe&&Array.isArray(T),j=Object.prototype.toString.call(T),M=v4(T),F=j==="[object Object]"||j==="[object Array]",k=m?m+i+u(v):u(v);if(!A&&!M&&F&&Object.keys(T).length&&(!r.maxDepth||g<s))return h(T,k,g+1);c[k]=T})}return h(n),c}const C1={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
103
|
+
`).every(T=>(T+=`
|
|
104
|
+
`,!c.some(k=>k.test(T))&&(b+=T,!!T.trim())));const O=ns(b);return O===""?null:[b,,O]}),i:3,u:Sf,l:(E,x,b)=>d("p",{key:b.key},x(E.children,b))},22:{t:["["],o:pr(Pw),i:0,u:E=>(S[E[1]]={target:E[2],title:E[4]},{}),l:xf},23:{t:["!["],o:gr(Zw),i:0,u:E=>({alt:E[1]||void 0,ref:E[2]}),l:(E,x,b)=>S[E.ref]?d("img",{key:b.key,alt:E.alt,src:s(S[E.ref].target,"img","src"),title:S[E.ref].title}):null},24:{t:["["],o:pr(Yw),i:0,u:(E,x,b)=>({children:x(E[1],b),fallbackChildren:E[0],ref:E[2]}),l:(E,x,b)=>S[E.ref]?d("a",{key:b.key,href:s(S[E.ref].target,"a","href"),title:S[E.ref].title},x(E.children,b)):d("span",{key:b.key},E.fallbackChildren)},25:{t:["|"],o:zn(Zy),i:1,u:v6,l(E,x,b){const O=E;return d("table",{key:b.key},d("thead",null,d("tr",null,O.header.map(function(T,k){return d("th",{key:k,style:Ky(O,k)},x(T,b))}))),d("tbody",null,O.cells.map(function(T,k){return d("tr",{key:k},T.map(function(Z,$){return d("td",{key:$,style:Ky(O,$)},x(Z,b))}))})))}},27:{o:Qi(i6),i:4,u(E){const x=E[0];return{text:x.indexOf("&")===-1?x:x.replace(Hw,(b,O)=>r.namedCodesToUnicode[O]||b)}},l:E=>E.text},28:{t:["**","__"],o:gr(e6),i:2,u:(E,x,b)=>({children:x(E[2],b)}),l:(E,x,b)=>d("strong",{key:b.key},x(E.children,b))},29:{t:E=>{const x=E[0];return(x==="*"||x==="_")&&E[1]!==x},o:gr(t6),i:3,u:(E,x,b)=>({children:x(E[2],b)}),l:(E,x,b)=>d("em",{key:b.key},x(E.children,b))},30:{t:["\\"],o:gr(a6),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:gr(n6),i:3,u:Sf,l:(E,x,b)=>d("mark",{key:b.key},x(E.children,b))},32:{t:["~~"],o:gr(r6),i:3,u:Sf,l:(E,x,b)=>d("del",{key:b.key},x(E.children,b))}};r.disableParsingRawHTML===!0&&(delete A[11],delete A[13]);const U=function(E){var x=Object.keys(E);function b(O,T){var k=[];if(T.prevCapture=T.prevCapture||"",O.trim())for(;O;)for(var Z=0;Z<x.length;){var $=x[Z],se=E[$];if(!se.t||g6(O,T,se.t)){var re=se.o(O,T);if(re&&re[0]){T.prevCapture+=re[0],O=O.substring(re[0].length);var J=se.u(re,b,T);J.type||(J.type=$),k.push(J);break}Z++}else Z++}return T.prevCapture="",k}return x.sort(function(O,T){return E[O].i-E[T].i||(O<T?-1:1)}),function(O,T){return b(function(k){return k.replace(Mw,`
|
|
105
|
+
`).replace(jw,"").replace(Qw," ")}(O),T)}}(A),M=(F=function(E,x){return function(b,O,T){const k=E[b.type].l;return x?x(()=>k(b,O,T),b,O,T):k(b,O,T)}}(A,r.renderRule),function E(x,b={}){if(Array.isArray(x)){const O=b.key,T=[];let k=!1;for(let Z=0;Z<x.length;Z++){b.key=Z;const $=E(x[Z],b),se=typeof $=="string";se&&k?T[T.length-1]+=$:$!==null&&T.push($),k=se}return b.key=O,T}return F(x,E,b)});var F;const j=m(n);return v.length?d("div",null,j,d("footer",{key:"footer"},v.map(function(E){return d("div",{id:i(E.identifier,Xi),key:E.identifier},E.identifier,M(U(E.footnote,{inline:!0})))}))):j}const Gn=n=>{let{children:r="",options:i}=n,s=function(u,c){if(u==null)return{};var h,d,m={},g=Object.keys(u);for(d=0;d<g.length;d++)c.indexOf(h=g[d])>=0||(m[h]=u[h]);return m}(n,vw);return H.cloneElement(x6(r,i),s)},A6="_generalConditionsContainer_55hjg_1",w6="_generalConditions_55hjg_1",O6="_generalConditionsHeader_55hjg_15",R6="_generalConditionsBody_55hjg_26",C6="_generalConditionsAccept_55hjg_35",Ki={generalConditionsContainer:A6,generalConditions:w6,generalConditionsHeader:O6,generalConditionsBody:R6,generalConditionsAccept:C6},N6=()=>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"})}),M6=()=>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"})}),D6="general-conditions.header",B6="general-conditions.body",Jy="general-conditions.accept-conditions-note",j6=()=>{const n=Pe(),[r,i]=H.useState(!1),s=()=>i(!r),u=d=>{d.key==="ArrowDown"||d.key==="ArrowRight"?i(!0):d.key==="ArrowUp"||d.key==="ArrowLeft"||d.key==="Escape"?i(!1):(d.key==="Enter"||d.key==="Space"||d.key===" ")&&s()},c=n(D6),h=n(Jy);return y.jsxs("div",{className:X(Ki.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&y.jsxs("div",{className:Ki.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:X(Ki.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[y.jsx(Gn,{children:c}),r?y.jsx(M6,{}):y.jsx(N6,{})]}),y.jsx("div",{className:X(Ki.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&y.jsx(Gn,{children:n(B6)||""})})]}),!!h?.length&&y.jsx("div",{className:X(Ki.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(Gn,{children:n(Jy)||""})})]})},L6="_message_6i1zm_1",U6="_messageBot_6i1zm_9",H6="_messageBotLast_6i1zm_19",z6="_avatar_6i1zm_19",k6="_messageBotFirst_6i1zm_24",I6="_messageBotAnimated_6i1zm_37",G6="_messageGuest_6i1zm_48",q6="_messageGuestFirst_6i1zm_54",F6="_messageGuestLast_6i1zm_60",V6="_botAvatar_6i1zm_74",P6="_agentAvatar_6i1zm_78",Z6="_bubble_6i1zm_82",Y6="_bubbleContent_6i1zm_88",X6="_bubbleLeft_6i1zm_102",Q6="_leftText_6i1zm_113",K6="_bubbleRight_6i1zm_120",$6="_rightText_6i1zm_130",J6="_sourceInfoReference_6i1zm_162",W6="_sourceInfoReferenceActive_6i1zm_174",de={message:L6,messageBot:U6,messageBotLast:H6,avatar:z6,messageBotFirst:k6,messageBotAnimated:I6,messageGuest:G6,messageGuestFirst:q6,messageGuestLast:F6,botAvatar:V6,agentAvatar:P6,bubble:Z6,bubbleContent:Y6,bubbleLeft:X6,leftText:Q6,bubbleRight:K6,rightText:$6,sourceInfoReference:J6,sourceInfoReferenceActive:W6},eO="_botMessageActions_1dl7x_1",tO="_alwaysVisible_1dl7x_22",nO="_reported_1dl7x_29",rO="_action_1dl7x_33",yr={botMessageActions:eO,alwaysVisible:tO,reported:nO,action:rO},aO=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:s,onReaction:u})=>{const c=Pe(),[h,d]=H.useState(!1),m=v=>()=>u(v),g=H.useCallback(async()=>{if(s.current)try{d(!0);const v=s.current.innerHTML,S=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([S],{type:"text/plain"})})]),await new Promise(A=>setTimeout(A,1500))}finally{d(!1)}},[s]);return y.jsxs("div",{className:X(yr.botMessageActions,n&&yr.alwaysVisible,i&&yr.reported),children:[r===fo.BOT&&y.jsx("button",{className:X(yr.action,i==="GOOD"&&yr.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:m(i==="GOOD"?null:"GOOD"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="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"})})}),r===fo.BOT&&y.jsx("button",{className:X(yr.action,i==="BAD"&&yr.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:m(i==="BAD"?null:"BAD"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="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:X(yr.action,"tooltip--top-right"),tabIndex:0,"aria-label":c("bot-bubble.copy"),"data-title":c("bot-bubble.copy"),onClick:g,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?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"})})})]})},m1=H.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:h},d)=>{const m=Pe(),g=H.useRef(null),v=n.sender.type===Ee.UserType.BOT;return y.jsxs("li",{ref:d,className:X(de.message,de.messageBot,i&&de.lastMessage,s&&de.messageBotFirst,u&&de.messageBotLast,"chat__bubbleContainer",r&&de.messageBotAnimated,r&&"chat__bubbleContainer--animated",v?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:X(de.avatar,v?de.botAvatar:de.agentAvatar,"chat__avatar",v?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:v?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsx("div",{ref:g,className:X(de.bubble,de.bubbleLeft,"chat__bubble",v?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(v?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:X(de.leftText),children:c})}),h&&y.jsx(aO,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),iO="_sourceList_1n31h_1",sO="_source_1n31h_1",lO="_label_1n31h_37",wf={sourceList:iO,source:sO,label:lO},p1=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"})}),g1=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"})}),y1=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"})}),v1=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"})}),oO=({type:n,...r})=>{switch(n){case"WEBSITE":return y.jsx(v1,{...r});case"PDF":return y.jsx(y1,{...r});case"DOCX":return y.jsx(p1,{...r});default:return y.jsx(g1,{...r})}},rd=({sources:n,onLinkClick:r})=>{const i=Pe(),s=c=>()=>{r(c.url)},u=c=>h=>{(h.key==="Enter"||h.key===" ")&&r(c.url)};return n.length?y.jsx("ul",{className:wf.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(c=>y.jsx("li",{className:wf.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[y.jsx(oO,{type:c.type,"aria-hidden":"true"}),y.jsx("div",{className:wf.label,children:c.label})]})},c.url))}):null},uO="_button_3ui4g_1",cO="_buttonDefault_3ui4g_13",fO="_buttonPrimary_3ui4g_28",is={button:uO,buttonDefault:cO,buttonPrimary:fO},Oo=({className:n,children:r,...i})=>y.jsx("button",{className:X(is.button,n),type:"button",role:"button",...i,children:r}),hO="_title_b904h_1",dO="_subtitle_b904h_6",mO="_buttons_b904h_11",pO="_button_b904h_11",gO="_imageContainer_b904h_34",yO="_image_b904h_34",vO="_video_container_b904h_49",_O="_video_b904h_49",bO="_only_b904h_63",At={title:hO,subtitle:dO,buttons:mO,button:pO,imageContainer:gO,image:yO,video_container:vO,video:_O,only:bO},EO=({buttons:n,onButtonClick:r})=>y.jsx("div",{className:X(At.buttons,"chat__bubbleButtons"),children:n.map((i,s)=>y.jsx(Oo,{className:X(At.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))});var Fl={},Vl={},Pl={},Wy;function SO(){if(Wy)return Pl;Wy=1,Object.defineProperty(Pl,"__esModule",{value:!0});var n=qa(),r=i(n);function i(s){if(s&&s.__esModule)return s;var u={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(u[c]=s[c]);return u.default=s,u}return Pl.default=function(s,u,c){return r.createElement("a",{href:s,key:c},u)},Pl}var Zl={},ev;function TO(){return ev||(ev=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=function(n){return n}),Zl}var Yl={},Of,tv;function xO(){return tv||(tv=1,Of=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Of}var Rf,nv;function AO(){return nv||(nv=1,Rf=/[\0-\x1F\x7F-\x9F]/),Rf}var Cf,rv;function wO(){return rv||(rv=1,Cf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Cf}var Nf,av;function OO(){return av||(av=1,Nf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Nf}var Mf,iv;function RO(){return iv||(iv=1,Mf=function(n){var r={};r.src_Any=xO().source,r.src_Cc=AO().source,r.src_Z=wO().source,r.src_P=OO().source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var i="[><|]";return r.src_pseudo_letter="(?:(?!"+i+"|"+r.src_ZPCc+")"+r.src_Any+")",r.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+i+"|"+r.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+r.src_ZCc+"|[.]).|"+(n&&n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+r.src_ZCc+").|\\!(?!"+r.src_ZCc+"|[!]).|\\?(?!"+r.src_ZCc+"|[?]).)+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),Mf}var Df,sv;function CO(){if(sv)return Df;sv=1;function n(b){var O=Array.prototype.slice.call(arguments,1);return O.forEach(function(T){T&&Object.keys(T).forEach(function(k){b[k]=T[k]})}),b}function r(b){return Object.prototype.toString.call(b)}function i(b){return r(b)==="[object String]"}function s(b){return r(b)==="[object Object]"}function u(b){return r(b)==="[object RegExp]"}function c(b){return r(b)==="[object Function]"}function h(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function m(b){return Object.keys(b||{}).reduce(function(O,T){return O||d.hasOwnProperty(T)},!1)}var g={"http:":{validate:function(b,O,T){var k=b.slice(O);return T.re.http||(T.re.http=new RegExp("^\\/\\/"+T.re.src_auth+T.re.src_host_port_strict+T.re.src_path,"i")),T.re.http.test(k)?k.match(T.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,O,T){var k=b.slice(O);return T.re.no_http||(T.re.no_http=new RegExp("^"+T.re.src_auth+"(?:localhost|(?:(?:"+T.re.src_domain+")\\.)+"+T.re.src_domain_root+")"+T.re.src_port+T.re.src_host_terminator+T.re.src_path,"i")),T.re.no_http.test(k)?O>=3&&b[O-3]===":"||O>=3&&b[O-3]==="/"?0:k.match(T.re.no_http)[0].length:0}},"mailto:":{validate:function(b,O,T){var k=b.slice(O);return T.re.mailto||(T.re.mailto=new RegExp("^"+T.re.src_email_name+"@"+T.re.src_host_strict,"i")),T.re.mailto.test(k)?k.match(T.re.mailto)[0].length:0}}},v="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",S="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function A(b){b.__index__=-1,b.__text_cache__=""}function U(b){return function(O,T){var k=O.slice(T);return b.test(k)?k.match(b)[0].length:0}}function M(){return function(b,O){O.normalize(b)}}function F(b){var O=b.re=RO()(b.__opts__),T=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||T.push(v),T.push(O.src_xn),O.src_tlds=T.join("|");function k(re){return re.replace("%TLDS%",O.src_tlds)}O.email_fuzzy=RegExp(k(O.tpl_email_fuzzy),"i"),O.link_fuzzy=RegExp(k(O.tpl_link_fuzzy),"i"),O.link_no_ip_fuzzy=RegExp(k(O.tpl_link_no_ip_fuzzy),"i"),O.host_fuzzy_test=RegExp(k(O.tpl_host_fuzzy_test),"i");var Z=[];b.__compiled__={};function $(re,J){throw new Error('(LinkifyIt) Invalid schema "'+re+'": '+J)}Object.keys(b.__schemas__).forEach(function(re){var J=b.__schemas__[re];if(J!==null){var ie={validate:null,link:null};if(b.__compiled__[re]=ie,s(J)){u(J.validate)?ie.validate=U(J.validate):c(J.validate)?ie.validate=J.validate:$(re,J),c(J.normalize)?ie.normalize=J.normalize:J.normalize?$(re,J):ie.normalize=M();return}if(i(J)){Z.push(re);return}$(re,J)}}),Z.forEach(function(re){b.__compiled__[b.__schemas__[re]]&&(b.__compiled__[re].validate=b.__compiled__[b.__schemas__[re]].validate,b.__compiled__[re].normalize=b.__compiled__[b.__schemas__[re]].normalize)}),b.__compiled__[""]={validate:null,normalize:M()};var se=Object.keys(b.__compiled__).filter(function(re){return re.length>0&&b.__compiled__[re]}).map(h).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+O.src_ZPCc+"))("+se+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+O.src_ZPCc+"))("+se+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),A(b)}function j(b,O){var T=b.__index__,k=b.__last_index__,Z=b.__text_cache__.slice(T,k);this.schema=b.__schema__.toLowerCase(),this.index=T+O,this.lastIndex=k+O,this.raw=Z,this.text=Z,this.url=Z}function E(b,O){var T=new j(b,O);return b.__compiled__[T.schema].normalize(T,b),T}function x(b,O){if(!(this instanceof x))return new x(b,O);O||m(b)&&(O=b,b={}),this.__opts__=n({},d,O),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},g,b),this.__compiled__={},this.__tlds__=S,this.__tlds_replaced__=!1,this.re={},F(this)}return x.prototype.add=function(O,T){return this.__schemas__[O]=T,F(this),this},x.prototype.set=function(O){return this.__opts__=n(this.__opts__,O),this},x.prototype.test=function(O){if(this.__text_cache__=O,this.__index__=-1,!O.length)return!1;var T,k,Z,$,se,re,J,ie,le;if(this.re.schema_test.test(O)){for(J=this.re.schema_search,J.lastIndex=0;(T=J.exec(O))!==null;)if($=this.testSchemaAt(O,T[2],J.lastIndex),$){this.__schema__=T[2],this.__index__=T.index+T[1].length,this.__last_index__=T.index+T[0].length+$;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(ie=O.search(this.re.host_fuzzy_test),ie>=0&&(this.__index__<0||ie<this.__index__)&&(k=O.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(se=k.index+k[1].length,(this.__index__<0||se<this.__index__)&&(this.__schema__="",this.__index__=se,this.__last_index__=k.index+k[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(le=O.indexOf("@"),le>=0&&(Z=O.match(this.re.email_fuzzy))!==null&&(se=Z.index+Z[1].length,re=Z.index+Z[0].length,(this.__index__<0||se<this.__index__||se===this.__index__&&re>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=se,this.__last_index__=re))),this.__index__>=0},x.prototype.pretest=function(O){return this.re.pretest.test(O)},x.prototype.testSchemaAt=function(O,T,k){return this.__compiled__[T.toLowerCase()]?this.__compiled__[T.toLowerCase()].validate(O,k,this):0},x.prototype.match=function(O){var T=0,k=[];this.__index__>=0&&this.__text_cache__===O&&(k.push(E(this,T)),T=this.__last_index__);for(var Z=T?O.slice(T):O;this.test(Z);)k.push(E(this,T)),Z=Z.slice(this.__last_index__),T+=this.__last_index__;return k.length?k:null},x.prototype.tlds=function(O,T){return O=Array.isArray(O)?O:[O],T?(this.__tlds__=this.__tlds__.concat(O).sort().filter(function(k,Z,$){return k!==$[Z-1]}).reverse(),F(this),this):(this.__tlds__=O.slice(),this.__tlds_replaced__=!0,F(this),this)},x.prototype.normalize=function(O){O.schema||(O.url="http://"+O.url),O.schema==="mailto:"&&!/^mailto:/i.test(O.url)&&(O.url="mailto:"+O.url)},x.prototype.onCompile=function(){},Df=x,Df}const NO=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var lv;function MO(){if(lv)return Yl;lv=1,Object.defineProperty(Yl,"__esModule",{value:!0});var n=CO(),r=u(n),i=NO,s=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var c=new r.default;return c.tlds(s.default),Yl.default=function(h){return c.match(h)},Yl}var Xl={},ov;function DO(){return ov||(ov=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=function(n){return n}),Xl}var uv;function BO(){if(uv)return Vl;uv=1,Object.defineProperty(Vl,"__esModule",{value:!0});var n=function(){function E(x,b){for(var O=0;O<b.length;O++){var T=b[O];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,b,O){return b&&E(x.prototype,b),O&&E(x,O),x}}(),r=qa(),i=A(r),s=SO(),u=S(s),c=TO(),h=S(c),d=MO(),m=S(d),g=DO(),v=S(g);function S(E){return E&&E.__esModule?E:{default:E}}function A(E){if(E&&E.__esModule)return E;var x={};if(E!=null)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(x[b]=E[b]);return x.default=E,x}function U(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function M(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function F(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var j=function(E){F(x,E);function x(){return U(this,x),M(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return n(x,[{key:"parseString",value:function(O){var T=this;if(O==="")return O;var k=this.props.matchDecorator(O);if(!k)return O;var Z=[],$=0;return k.forEach(function(se,re){se.index>$&&Z.push(O.substring($,se.index));var J=T.props.hrefDecorator(se.url),ie=T.props.textDecorator(se.text),le=T.props.componentDecorator(J,ie,re);Z.push(le),$=se.lastIndex}),O.length>$&&Z.push(O.substring($)),Z.length===1?Z[0]:Z}},{key:"parse",value:function(O){var T=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof O=="string"?this.parseString(O):i.isValidElement(O)&&O.type!=="a"&&O.type!=="button"?i.cloneElement(O,{key:k},this.parse(O.props.children)):Array.isArray(O)?O.map(function(Z,$){return T.parse(Z,$)}):O}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),x}(i.Component);return j.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:v.default},Vl.default=j,Vl}var cv;function jO(){if(cv)return Fl;cv=1,Object.defineProperty(Fl,"__esModule",{value:!0});var n=BO(),r=i(n);function i(s){return s&&s.__esModule?s:{default:s}}return Fl.default=r.default,Fl}var LO=jO();const UO=po(LO),HO="_text_gp0s0_1",zO="_command_gp0s0_5",fv={text:HO,command:zO},_1=({text:n,commands:r=[],onLinkClick:i})=>{const s=d=>m=>(m.preventDefault(),d&&i(d),!1),u=(d,m,g)=>y.jsx("a",{onClick:s(d),role:"button",children:m},g),c=r.find(d=>n.startsWith(`/${d}`)),h=c?n.slice(c.length+1):n;return y.jsxs("div",{children:[c&&y.jsxs("code",{className:fv.command,children:["/",c]}),h.split(`
|
|
106
|
+
`).map((d,m)=>y.jsxs("span",{className:fv.text,children:[y.jsx(UO,{componentDecorator:u,children:d}),y.jsx("br",{})]},m))]})},kO=({subtitle:n,onLinkClick:r})=>n?y.jsx("div",{className:At.subtitle,children:y.jsx(_1,{text:n,onLinkClick:r})}):null,hv="newtab#",b1=({markdown:n,markdownOptions:r={},onLinkClick:i})=>{const s=c=>h=>(h.preventDefault(),c&&i(c),!1),u=({title:c,href:h,children:d})=>h.indexOf(hv)===0?y.jsx("a",{href:h.slice(hv.length),title:c,target:"_blank",rel:"noopener noreferrer",children:d}):y.jsx("a",{onClick:s(h),title:c,href:h,children:d});return y.jsx(Gn,{options:{...r,overrides:{a:u}},children:n})},IO=({text:n,onLinkClick:r})=>n?y.jsx("div",{children:y.jsx(b1,{markdown:n,onLinkClick:r})}):null,GO=({title:n})=>n?y.jsx("h1",{className:At.title,children:n}):null,qO=({title:n,text:r,subtitle:i,buttons:s,onButtonClick:u,onLinkClick:c})=>n?.length||r?.length||i?.length||s?.length?y.jsxs("div",{className:X(de.bubbleContent),children:[y.jsx(GO,{title:n}),y.jsx(IO,{text:r,onLinkClick:c}),y.jsx(kO,{subtitle:i,onLinkClick:c}),y.jsx(EO,{buttons:s,onButtonClick:u})]}):null,FO=({alt:n,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:At.video_container,children:y.jsx("iframe",{className:X(At.video,{[At.only]:!s}),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:At.imageContainer,children:y.jsx("img",{className:X(At.image,{[At.only]:!s}),src:r,alt:n})})}):y.jsx("div",{className:At.imageContainer,children:y.jsx("img",{className:X(At.image,{[At.only]:!s}),src:r,alt:n})}):null,VO=({title:n,text:r,subtitle:i,imageUrl:s,itemUrl:u,buttons:c,sources:h,onButtonClick:d,onLinkClick:m})=>{const g=!!n?.length||!!r?.length||!!i?.length||!!c?.length;return y.jsxs("div",{className:X(At.detailMessage),children:[y.jsx(FO,{hasBody:g,imageUrl:s,itemUrl:u,alt:n||i}),g&&y.jsx(qO,{title:n,text:r,subtitle:i,buttons:c,onLinkClick:m,onButtonClick:d}),y.jsx(rd,{sources:h,onLinkClick:m})]})},PO=H.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},s)=>{const u=Pe();return y.jsx("li",{ref:s,className:X(de.message,de.messageGuest,n&&de.messageGuestFirst,r&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:X(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:X(de.rightText),children:i})})})}),ZO="_markdown_nw7vg_1",E1={markdown:ZO},S1=()=>YO(window.location.pathname),YO=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},ad=()=>H.useMemo(()=>S1(),[]),Ql="source-info-reference",XO=({actionId:n,markdown:r,sources:i,onLinkClick:s})=>{const u=ad(),c=Wr(),h=QO(),d=zt(v=>{const S=v.chat.sourceInfos;if(S?.type==="loaded"||S?.type==="loading")return S.chunkId}),m=v=>S=>{const A=S.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(S.stopPropagation(),c(jy(u,n,v)))},g=v=>()=>{c(jy(u,n,v))};return H.useLayoutEffect(()=>{document.querySelectorAll(`.${Ql}`).forEach(v=>{const S=v.previousSibling;S&&S.nodeType===Node.TEXT_NODE&&S.textContent?.endsWith(" ")&&S.textContent?.trim().length&&v.classList.add(`${Ql}--before-space`);const A=v.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&v.classList.add(`${Ql}--after-space`)})},[r]),y.jsxs("div",{className:de.bubbleContent,children:[y.jsx("div",{className:E1.markdown,children:y.jsx(b1,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(v,S,A,U){if(S.type===_w.footnoteReference){const M=S.text===d;return y.jsx("span",{className:X(de.sourceInfoReference,M&&de.sourceInfoReferenceActive,Ql),children:y.jsx("a",{type:"button",tabIndex:0,onClick:g(S.text),onKeyDown:m(S.text),children:h(S.text)})},U.key)}return v()}}})}),y.jsx(rd,{sources:i,onLinkClick:s})]})},QO=()=>{const n=[];return i=>{const s=n.indexOf(i);return s>-1?s+1:(n.push(i),n.length)}},KO=({text:n,commands:r,sources:i,onLinkClick:s})=>y.jsxs("div",{className:de.bubbleContent,children:[y.jsx(_1,{text:n,commands:r,onLinkClick:s}),y.jsx(rd,{sources:i,onLinkClick:s})]}),$O=H.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:h,onLinkClick:d},m)=>{const g=JO(n._id,n,r,h,d);switch(n.sender.type){case Ee.UserType.GUEST:return y.jsx(PO,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:g});default:{const v=S=>c(n._id,S);return y.jsx(m1,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:v,children:g})}}}),JO=(n,r,i,s,u)=>{switch(r.type){case Ee.MessageTypeEnum.TEXT:{const c=r;return y.jsx(KO,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Ee.MessageTypeEnum.DETAIL:{const c=r;return y.jsx(VO,{title:c.title,text:c.text,subtitle:c.subtitle,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:s,onLinkClick:u})}case Ee.MessageTypeEnum.MARKDOWN:{const c=r;return y.jsx(XO,{actionId:n,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},WO=(n,r)=>n.message._id===r.message._id&&n.message.reaction===r.message.reaction&&n.isLastMessage===r.isLastMessage&&n.isFirstMessageBySender===r.isFirstMessageBySender&&n.isLastMessageBySender===r.isLastMessageBySender,eR=Xv.memo($O,WO),tR="_ticontainer_xg0dn_1",nR="_tiblock_xg0dn_5",rR="_tidot_xg0dn_12",$i={ticontainer:tR,tiblock:nR,tidot:rR},aR=({isTyping:n=!1})=>y.jsx("div",{className:$i.ticontainer,children:y.jsx("div",{className:$i.tiblock,children:n?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:X($i.tidot,"chat__typingIndicator")}),y.jsx("div",{className:X($i.tidot,"chat__typingIndicator")}),y.jsx("div",{className:X($i.tidot,"chat__typingIndicator")})]}):null})}),iR=Object.assign({_id:"typing-indicator"},new Ee.TextMessage("",new Ee.BotUser)),sR=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const h=H.useRef(0),d=H.useRef(!0),m=H.useRef(null),g=H.useRef(null),v=H.useRef(null),S=zt(M=>M.settings.enableGeneralConditions);H.useLayoutEffect(()=>{if(n.length&&m.current&&(h.current<n.length||r)){if(g.current){const M=g.current.offsetTop;m.current.scrollTop=M}else if(v.current){const M=v.current.offsetTop;m.current.scrollTop=M}d.current&&(d.current=!1),h.current=n.length}},[n,d,r]);let A;const U=n.length;return y.jsxs("div",{ref:m,className:X(Uy.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&y.jsx(j6,{}),y.jsxs("ul",{className:Uy.messages,children:[n.map((M,F)=>{const j=lR(M,A),E=oR(M,F,n,r);A=M.sender.type;const x=F+1===U,b=M._id||`added-${F}`;return y.jsx(eR,{ref:x?v:null,message:M,commands:i,isLastMessage:x,isFirstMessageBySender:j,isLastMessageBySender:E,onButtonClick:u,onLinkClick:c,onReaction:s},x&&!r?"last":b)}),r&&y.jsx(m1,{ref:g,message:iR,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Ee.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(aR,{isTyping:!0})},"last")]})]})},lR=(n,r)=>!r||r!==n.sender.type,oR=(n,r,i,s)=>{const u=n.sender.type,c=i.length;return r+1===c?!(u===Ee.UserType.BOT&&s):u!==i.at(r+1)?.sender.type},uR="_bottomSheet_jp8dl_1",cR="_bottomSheetOpen_jp8dl_15",fR="_bottomSheetClose_jp8dl_20",qn={bottomSheet:uR,bottomSheetOpen:cR,bottomSheetClose:fR},hR="_container_xc2nx_1",dv={container:hR},dR=({contentUrl:n})=>{const r=zt(c=>c.connection.sessionId),[i,s]=H.useState(!1);H.useEffect(()=>{s(c=>c||!!n)},[n]);const u=H.useMemo(()=>{if(n&&r){const c=new URL(n,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[n,r]);return y.jsx("div",{className:X(dv.container,qn.bottomSheet,{[qn.bottomSheetOpen]:!!n,[qn.bottomSheetClose]:i&&!n}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:dv.iframe})})},mR="_container_z787n_1",pR={container:mR},gR=({title:n,href:r,children:i})=>y.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),yR=()=>{const r=Pe()("powered-by");return r&&r.length?y.jsx("div",{className:X(pR.container,"chat__poweredBy"),children:y.jsx(Gn,{options:{overrides:{a:gR}},children:r})}):null},vR=({className:n,children:r,...i})=>y.jsx(Oo,{className:X(is.buttonDefault,n),type:"button",...i,children:r}),ho=({className:n,children:r,...i})=>y.jsx(Oo,{className:X(is.buttonPrimary,n),...i,children:r}),_R="_container_h23mk_1",bR="_formContainer_h23mk_17",ER="_emailInput_h23mk_22",SR="_description_h23mk_52",TR="_actions_h23mk_57",xR="_validationError_h23mk_67",AR="_submitted_h23mk_74",Fr={container:_R,formContainer:bR,emailInput:ER,description:SR,actions:TR,validationError:xR,submitted:AR},wR=({visible:n,enableTranscriptExportEmail:r,onEmailExport:i,onClose:s})=>{const u=Pe(),[c,h]=H.useState(void 0),[d,m]=H.useState(!1),[g,v]=H.useState(void 0),S=H.useRef(null);H.useEffect(()=>{n?(S.current?.focus(),m(!1),h(n)):c===!0&&h(!1)},[n,c]);const A=M=>{M.preventDefault(),g&&g.length>0&&(i(g),m(!0),setTimeout(s,3*1e3))},U=M=>{const F=M.target.value.trim(),j=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(F);v(j?F:"")};return y.jsx("div",{className:X(Fr.container,qn.bottomSheet,{[qn.bottomSheetOpen]:c===!0,[qn.bottomSheetClose]:c===!1}),children:r&&y.jsxs(y.Fragment,{children:[y.jsx("h2",{children:u("export-transcript.email.title")}),y.jsx(Gn,{className:Fr.description,children:u("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:A,className:Fr.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:S,type:"email",placeholder:u("export-transcript.email.placeholder"),className:Fr.emailInput,onChange:U}),g?.length===0?y.jsx("div",{className:Fr.validationError,children:u("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:Fr.actions,children:[y.jsx(vR,{onClick:s,children:u("export-transcript.email.cancel")}),y.jsx(ho,{type:"submit",disabled:d||g===void 0||g.length===0,children:u("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:Fr.submitted,children:u("export-transcript.email.success")})]})})},OR="_inputContainer_fi5ao_1",RR={inputContainer:OR},CR="_blockUserInput_pot9c_1",NR={blockUserInput:CR},MR=({visible:n})=>{const r=Pe();return n?y.jsx("div",{className:X(NR.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},DR="_commandsDropdown_5ytuv_1",BR="_commands_5ytuv_1",jR="_command_5ytuv_1",LR="_commandActive_5ytuv_46",UR="_commandsSelections_5ytuv_55",es={commandsDropdown:DR,commands:BR,command:jR,commandActive:LR,commandsSelections:UR},T1=(n,r)=>{H.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},HR=(n,r,i,s,u)=>{H.useEffect(()=>{const c=h=>{if(n.length)switch(h.key){case"Enter":i(n[r]);break;case"ArrowUp":s(d=>d>0?d-1:n.length-1);break;case"ArrowDown":s(d=>d<n.length-1?d+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[n,r,i,s,u])},zR=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=H.useRef(null),c=Pe(),[h,d]=H.useState([]),[m,g]=H.useState(mv(r)),[v,S]=H.useState(0),A=U=>i(`/${U}`);return T1(u,()=>d([])),HR(h,v,A,S,d),H.useEffect(()=>{g(mv(r))},[r]),H.useEffect(()=>{const U=n.length||0;U===0||U>m||!n.startsWith("/")?d([]):d(r.filter(kR(n))),S(0)},[r,n,m]),H.useEffect(()=>{s(!!h.length)},[h,s]),h.length?y.jsx("div",{ref:u,className:es.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:es.commands,role:"listbox",children:h.map((U,M)=>y.jsxs("li",{className:X([es.command,v===M&&es.commandActive]),role:"option",onClick:()=>A(U),onMouseOver:()=>S(M),children:[y.jsxs("h1",{children:["/",U]}),y.jsx("p",{children:c(`commands.${U}`)})]},U))})}):null},mv=n=>Math.max(...n.map(r=>r.length+1)),kR=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},pv=3,IR=({commands:n,onSelectCommand:r})=>{const i=Pe(),[s,u]=H.useState(!1),c=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=s?n:n.slice(0,pv);return y.jsxs("div",{className:es.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:h,children:i("commands.show-more.action")},"show-more"):m.length>pv?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-less.action")},"show-less"):null]})},GR="_callToActionContainer_1pojq_1",qR="_callToActionTitle_1pojq_23",FR="_rateOverlay_1pojq_30",VR="_body_1pojq_52",PR="_footer_1pojq_60",ZR="_actions_1pojq_73",YR="_bubbles_1pojq_101",XR="_stars_1pojq_203",QR="_starsSmall_1pojq_217",KR="_starsLarge_1pojq_223",$R="_star_1pojq_203",JR="_starReadonly_1pojq_237",WR="_starIcon_1pojq_247",e3="_starsDescriptionContainer_1pojq_265",t3="_starsDescription_1pojq_265",_t={callToActionContainer:GR,callToActionTitle:qR,rateOverlay:FR,body:VR,footer:PR,actions:ZR,bubbles:YR,stars:XR,starsSmall:QR,starsLarge:KR,star:$R,starReadonly:JR,starIcon:WR,starsDescriptionContainer:e3,starsDescription:t3},n3=({value:n,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const h=d=>{c&&d.key==="Enter"&&c()};return y.jsx("li",{className:X(_t.star,{[_t.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":n>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:h,onClick:c,children:y.jsx("span",{role:"img","aria-label":"Star",className:X(_t.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"})})})})})},gv=5,x1=({value:n,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=H.useState(void 0),h=()=>{c(void 0)},d=g=>()=>{if(!i){const v=g+1;c(v)}},m=g=>()=>{s&&!i&&(s(g===0&&n===1?0:g+1),c(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:X(_t.stars,{[_t.starsSmall]:r==="small",[_t.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(gv).fill(0).map((g,v)=>y.jsx(n3,{value:u===void 0?n:u,index:v,count:gv,readonly:i,onHover:d(v),onClick:m(v)},v))})},r3=({visible:n,onRate:r})=>{const i=Pe();return n?y.jsxs("div",{className:X(_t.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:X(_t.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(x1,{value:0,size:"small",onChange:r})]}):null},Bf=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>y.jsxs("div",{className:X(de.message,de.messageBot,n&&de.messageBotFirst,r&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:X(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:X(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:X(de.leftText,de.bubbleContent),children:i})})]}),a3=({children:n})=>y.jsx("div",{className:X(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:X(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:X(de.rightText,de.bubbleContent),children:n})})}),i3=({visible:n,rating:r,onRate:i,onClose:s})=>{const u=Pe(),[c,h]=H.useState(r),[d,m]=H.useState(void 0),[g,v]=H.useState(void 0),[S,A]=H.useState({submitted:!1,feedback:""}),[U,M]=H.useState(!1),F=H.useRef(null);H.useEffect(()=>{n?(A({submitted:!1,feedback:""}),v(n)):g===!0&&v(!1)},[n,g]),H.useEffect(()=>{h(r)},[r]),H.useEffect(()=>{const E=c>0?u(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`):void 0;m(E?.length?E:void 0)},[c,u]),H.useEffect(()=>{S.submitted?setTimeout(()=>M(!0),S.feedback.length?500:0):M(!1)},[S]);const j=E=>{E.preventDefault();const x=F.current?.value?.trim()||"";i(c,x),A({submitted:!0,feedback:x})};return y.jsx("div",{className:X(_t.rateOverlay,qn.bottomSheet,"chat__conversationRating__overlay",{[qn.bottomSheetOpen]:g===!0,[qn.bottomSheetClose]:g===!1}),children:y.jsxs("form",{onSubmit:j,children:[y.jsxs("div",{className:X(_t.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:X(_t.bubbles),children:n&&d&&y.jsxs(y.Fragment,{children:[y.jsxs(Bf,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[y.jsx("h2",{children:u("conversation-rating.overlay.title")}),y.jsxs("div",{className:X(_t.starsDescriptionContainer),children:[y.jsx(x1,{value:c,size:"large",readonly:S.submitted,onChange:h}),y.jsxs("div",{className:X(_t.starsDescription),children:[y.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),y.jsx(Bf,{isFirstMessageBySender:!1,isLastMessageBySender:!U||!!S.feedback.length,children:y.jsx("div",{children:d})}),!!S.feedback.length&&y.jsx(a3,{children:S.feedback}),U&&y.jsx(Bf,{isFirstMessageBySender:!!S.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:X(_t.footer,"chat__conversationRating__overlay__footer"),children:[!S.submitted&&y.jsx("input",{ref:F,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsx("div",{className:X(_t.actions,"chat__conversationRating__overlay__footer__actions"),children:S.submitted?y.jsx(ho,{type:"button",onClick:s,children:u("conversation-rating.overlay.action.close")}):y.jsx(ho,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},s3=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:u,onRate:c})=>{const[h,d]=H.useState(0),m=S=>{d(S),u(!0)},g=()=>u(!1),v=!r&&i>=1;return n?y.jsxs(y.Fragment,{children:[y.jsx(r3,{visible:v,onRate:m}),y.jsx(i3,{visible:s,rating:h,onRate:c,onClose:g})]}):null},l3=H.memo(s3),o3="_inputWrapper_e3h44_1",u3="_withOpenCommands_e3h44_14",c3="_messageInputWrapper_e3h44_20",f3="_messageInput_e3h44_20",h3="_buttons_e3h44_44",d3="_button_e3h44_44",Vr={inputWrapper:o3,withOpenCommands:u3,messageInputWrapper:c3,messageInput:f3,buttons:h3,button:d3},m3="_audioRecorder_g845f_1",p3="_audioButton_g845f_6",g3="_recorderIcon_g845f_37",y3="_spinning_g845f_60",Pr={audioRecorder:m3,audioButton:p3,recorderIcon:g3,spinning:y3},yv=2048,mo=16e3;class v3 extends Xv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(yv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=yv}}handleClickSubmitAudio(){const r=b3(this.leftchannel,this.recordingLength),i=E3(r,this.sampleRate||0),s=_3(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return y.jsxs("div",{className:Pr.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:X(Pr.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children: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:Pr.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:Pr.audioRecorder,children:[y.jsx("button",{className:X(Pr.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:Pr.recorderIcon}),y.jsx("button",{className:X(Pr.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 _3=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);Kl(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Kl(i,8,"WAVE"),Kl(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,mo,!0),i.setUint32(28,mo*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Kl(i,36,"data"),i.setUint32(40,n.length*2,!0);const s=n.length;let u=44;const c=1;for(let h=0;h<s;h++)i.setInt16(u,n[h]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Kl=(n,r,i)=>{for(let s=0;s<i.length;s++)n.setUint8(r+s,i.charCodeAt(s))},b3=(n,r)=>{const i=new Float32Array(r);let s=0;const u=n.length;for(let c=0;c<u;c++){const h=n[c];i.set(h,s),s+=h.length}return i},E3=(n,r)=>{if(mo===r)return n;const i=r/mo,s=Math.round(n.length/i),u=new Float32Array(s);let c=0,h=0;for(;c<u.length;){const d=Math.round((c+1)*i);let m=0,g=0;for(let v=h;v<d&&v<n.length;v++)m+=n[v],g++;u[c]=m/g,c++,h=d}return u},S3=({disabled:n,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:h,onOpenTranscriptExportModal:d})=>{const m=Pe(),g=H.useRef(null),{enableTranscriptExportEmail:v,enableSpeechSupport:S}=zt(j=>j.settings);H.useEffect(()=>{g.current?.focus()},[r]);const A=()=>{const j=g.current;j&&r.trim().length>=1&&c(r.trim())&&(j.value="",j.style.height="",j.focus())},U=j=>{j.preventDefault(),A()},M=j=>{const E=j.target.value;u(E),j.target.style.height="";const{scrollHeight:x}=j.target;j.target.style.height=`${x>150?150:x}px`},F=j=>{j.code==="Enter"&&!j.shiftKey?(j.repeat||A(),j.preventDefault()):i&&(j.code==="ArrowUp"||j.code==="ArrowDown")&&j.preventDefault()};return y.jsxs("form",{className:X(Vr.inputWrapper,i&&Vr.withOpenCommands,"chat__textInput"),onSubmit:U,children:[y.jsx("div",{className:Vr.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:g,className:Vr.messageInput,tabIndex:0,placeholder:m("message-input-placeholder"),value:r,onChange:M,onKeyDown:F,"aria-label":m("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsxs("div",{className:X(Vr.buttons,"chat__buttons"),children:[!r.length&&v&&y.jsx("button",{type:"button",className:X(Vr.button,"chat__button"),"aria-label":m("message-input.actions.export-transcript.label"),"data-title":m("message-input.actions.export-transcript.label"),tabIndex:0,onClick:d,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:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),r.length||!S||navigator.mediaDevices===void 0?y.jsx("button",{className:X(Vr.button,"chat__button"),type:"submit","aria-label":m("message-input.actions.submit.label"),"data-title":m("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"})})}):S&&navigator.mediaDevices!==void 0&&y.jsx(v3,{translate:m,onAudioRecorded:h})]})]})},T3="_quickReplies_83npe_1",x3="_quickReply_83npe_9",vv={quickReplies:T3,quickReply:x3},A3=({quickReplies:n,onQuickReplyClick:r})=>n.length?y.jsx("div",{className:X(vv.quickReplies,"chat__quickReplies"),children:n.map(i=>y.jsx(Oo,{tabIndex:0,className:X(vv.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,_v=5e3,w3=1e3,O3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:s,showRatingOverlay:u,commands:c,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:v,onOpenTranscriptExportModal:S})=>{const[A,U]=H.useState(""),[M,F]=H.useState(!1),[j,E]=H.useState(!1),x=H.useRef(0),b=H.useRef(0);H.useEffect(()=>{if(M&&!n){const k=x.current?Date.now()-x.current:0;k>_v?F(!1):setTimeout(()=>{F(!1)},_v-k)}},[M,n]),H.useEffect(()=>{M&&(x.current=Date.now())},[M]);const O=k=>{const Z=Date.now()-b.current<w3;return j?!1:n||Z?(F(!0),!1):(d(k),U(""),b.current=Date.now(),!0)},T=k=>{U(k+" ")};return y.jsxs("div",{className:X(RR.inputContainer),children:[y.jsx(A3,{quickReplies:r,onQuickReplyClick:g}),y.jsx(MR,{visible:M}),!M&&y.jsx(l3,{conversationRating:i,numberOfMessagesFromGuest:s,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!c?.length&&y.jsx(zR,{text:A,commands:c,onSelectCommand:T,onVisibilityChange:E}),y.jsx(S3,{textInput:A,disabled:M,commandsVisible:j,hasCommands:!!c?.length,onTextInput:U,onTextInputSubmit:O,onOpenTranscriptExportModal:S,onAudioRecorded:v}),!!c?.length&&y.jsx(IR,{commands:c,onSelectCommand:U})]})},R3=({clientName:n,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:v,onAudioRecorded:S,onTranscriptExport:A,onTranscriptItemReaction:U})=>{const M=Wr(),F=zt(Z=>Z.connection.connectionState),{enableTranscriptExportEmail:j,commands:E}=zt(Z=>Z.settings),[x,b]=H.useState(!1),[O,T]=H.useState(!1),k=r.filter(Z=>Z.sender.type===fo.GUEST).length;return H.useEffect(()=>{if(F===Qr.CONNECTED){const Z=vo.parse(window.location.search);M(i1(n,Z))}},[n,F,M]),y.jsxs("div",{className:_f.container,children:[y.jsxs("div",{className:X([_f.chatcontent,(x||O)&&_f.accessabilityHidden]),children:[y.jsx(sR,{messages:r,isBotTyping:s,commands:E,onButtonClick:g,onLinkClick:v,onTranscriptItemReaction:U}),y.jsx(O3,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:k,conversationRating:x?{enabled:!1}:c,showRatingOverlay:O,setShowRatingOverlay:T,commands:E,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:S,onOpenTranscriptExportModal:()=>b(!x)}),y.jsx(yR,{})]}),j&&y.jsx(wR,{enableTranscriptExportEmail:j,visible:x,onEmailExport:A,onClose:()=>b(!1)}),y.jsx(dR,{contentUrl:u})]})},C3=n=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c}=n.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c}},N3=n=>({onRestartChat:(r,i)=>n(Ao(r,i)),onMessageFromUser:r=>n(H_(r)),onRate:(r,i)=>n(uA(r,i)),onAudioRecorded:r=>n(aA(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(U_(r)),onNluEvent:r=>n(q_(r)),onButtonClick:r=>n(fA(r)),onLinkClick:r=>n(F_(r)),onTranscriptExport:r=>n(sA(r)),onTranscriptItemReaction:(r,i)=>n(Ee.Actions.transcriptItemGuestReaction(r,i||null))}),M3=xS(C3,N3)(R3),A1=()=>{const[n,r]=H.useState(!1);return H.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},D3=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},B3=({onClick:n})=>{const r=Pe();return A1()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:D3(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},j3="_header_scxhm_1",L3="_logoContainer_scxhm_14",U3="_logo_scxhm_14",H3="_actions_scxhm_28",z3="_active_scxhm_43",k3="_menuContainer_scxhm_56",I3="_menu_scxhm_56",G3="_divider_scxhm_86",vr={header:j3,logoContainer:L3,logo:U3,actions:H3,active:z3,menuContainer:k3,menu:I3,divider:G3},q3=({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"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",{})}},F3=H.forwardRef(({selected:n,item:r,onClick:i},s)=>{const u=Pe(),c=h=>{h.preventDefault(),i()};return y.jsx("li",{"aria-selected":n,role:"option",className:r.withDivider?vr.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[y.jsx(q3,{icon:r.icon}),y.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),V3=n=>{const r=A1(),{menuItems:i,enableStandaloneView:s,enableTranscriptExportPdf:u}=zt(h=>h.settings);return H.useMemo(()=>{const h=[];if(n){h.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),r&&s&&h.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),u&&h.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"});const d=h.pop();d&&i.length&&h.push({...d,withDivider:!0})}return h.push(...i),h.filter(({visibility:d})=>n?d==="always"||d==="chat-only":d==="always"||d==="start-screen-only")},[n,u,s,r,i])},P3=({chatStarted:n})=>{const r=Wr(),i=ad(),s=Pe(),[u,c]=H.useState(!1),[h,d]=H.useState(-1),m=H.useRef(null),g=H.useRef(null),v=H.useRef([]),S=V3(n);H.useEffect(()=>{v.current[h]?.focus()},[h]);const A=H.useCallback(()=>{const j=vo.parse(window.location.search);r(Ao(i,j)),c(!1),d(0)},[r,i]),U=H.useCallback(j=>{switch(j.type){case"restart-chat":A();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":r(lA());break;case"send-transcript":break;case"link":r(F_(j.url));break;case"action":r(JSON.parse(JSON.stringify(j.action)));break}c(!1)},[r,A,c]);H.useEffect(()=>{const j=E=>{if(u)switch(E.key){case"Enter":E.preventDefault(),U(S[h]);break;case"ArrowUp":d(x=>x>0?x-1:S.length-1);break;case"ArrowDown":d(x=>x<S.length-1?x+1:0);break;case"Escape":c(!1);break;case"Tab":h>-1&&c(!1);break}};return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[u,h,S,d,c,U]),H.useEffect(()=>{u||d(-1)},[u,h]),T1(g,()=>c(!1));const M=()=>{c(j=>!j)},F=()=>{setTimeout(()=>{const j=document.activeElement;g.current&&!g.current.contains(j)&&c(!1)},0)};return y.jsxs("div",{className:X(vr.menuContainer),ref:g,children:[y.jsx("button",{ref:m,className:X(u&&vr.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:M,onBlur:F,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"})})}),u&&y.jsx("nav",{className:vr.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:S.map((j,E)=>y.jsx(F3,{ref:x=>{v.current[E]=x},selected:h===E,item:j,onClick:()=>U(j)},j.id))})})]})},bv=({className:n,chatStarted:r,...i})=>{const s=Wr(),u=()=>{s(nw())};return y.jsxs("div",{className:X([vr.header,n]),...i,children:[y.jsx("div",{className:vr.logoContainer,children:y.jsx("div",{className:vr.logo})}),y.jsxs("div",{className:vr.actions,children:[y.jsx(P3,{chatStarted:r}),y.jsx(B3,{onClick:u})]})]})},Z3="_chatwindow_rkbir_1",Y3="_chatwindowWithAside_rkbir_21",Ev={chatwindow:Z3,chatwindowWithAside:Y3},w1=()=>{const[n,r]=H.useState(!1);return H.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),n},X3="_sourceInfos_vei0l_1",Q3="_waitForLoading_vei0l_24",K3="_loadingContent_vei0l_28",$3="_sourceHeader_vei0l_37",J3="_sourceHeaderIcon_vei0l_57",W3="_sourceContent_vei0l_61",eC="_openSourceButton_vei0l_69",tC="_sourceButtonLabel_vei0l_79",nC="_closeSourceInfosButton_vei0l_101",rC="_loadingSourceInfos_vei0l_125",aC="_loading_vei0l_28",iC="_loadingError_vei0l_139",sC="_highlightLoadingInfo_vei0l_155",lC="_highlightLoadingInfoInnerContainer_vei0l_169",oC="_highlightLoadingInfoContent_vei0l_178",uC="_highlightLoadingInfoCloseIcon_vei0l_198",cC="_highlightLoader_vei0l_203",fC="_highlightLoaderLoading_vei0l_210",st={sourceInfos:X3,waitForLoading:Q3,loadingContent:K3,sourceHeader:$3,sourceHeaderIcon:J3,sourceContent:W3,openSourceButton:eC,sourceButtonLabel:tC,closeSourceInfosButton:nC,loadingSourceInfos:rC,loading:aC,loadingError:iC,highlightLoadingInfo:sC,highlightLoadingInfoInnerContainer:lC,highlightLoadingInfoContent:oC,highlightLoadingInfoCloseIcon:uC,highlightLoader:cC,highlightLoaderLoading:fC},hC=({onClick:n})=>{const r=Pe();return y.jsx("button",{className:X(st.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("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"})})})},dC=H.forwardRef(({sourceInfos:n,onClose:r,...i},s)=>y.jsxs("div",{className:st.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:n?y.jsx("p",{id:"source-info-title",children:n.title}):y.jsx("p",{children:" "})}),y.jsx(hC,{onClick:r})]})),mC=({loading:n})=>y.jsx("div",{className:st.highlightLoader,children:n&&y.jsx("div",{className:st.highlightLoaderLoading})}),pC=({onClose:n})=>{const r=Pe();return y.jsxs("div",{className:st.highlightLoadingInfo,onClick:n,children:[y.jsx("div",{className:st.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:st.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:st.highlightLoadingInfoContent,children:[y.jsx("h3",{children:r("source-infos.highlight-loading.title")}),y.jsx("p",{children:r("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"})})]})]})},gC=({title:n,href:r,children:i})=>y.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),yC=({className:n,children:r,...i})=>y.jsx("a",{className:X(is.button,is.buttonDefault,n),type:"button",role:"button",...i,children:r}),vC=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"})}),_C=({type:n,...r})=>{switch(n){case"WEBSITE":return y.jsx(v1,{...r});case"PDF":return y.jsx(y1,{...r});case"DOCX":return y.jsx(p1,{...r});case"TEXT":return y.jsx(vC,{...r});default:return y.jsx(g1,{...r})}},bC=({url:n,knowledgeBaseType:r})=>{const i=Pe();return y.jsx(yC,{className:st.openSourceButton,href:n,target:"_blank",children:y.jsxs("div",{className:st.sourceButtonLabel,children:[y.jsx("div",{className:st.sourceHeaderIcon,children:y.jsx(_C,{type:r})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},EC=({sourceInfos:{content:n,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=H.useState(!s);return H.useEffect(()=>{s&&c(!1)},[s]),y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:X(st.sourceContent,E1.markdown),children:[y.jsx(Gn,{options:{overrides:{a:gC}},children:n}),u&&y.jsx(pC,{onClose:()=>c(!1)})]}),y.jsx(bC,{url:r,knowledgeBaseType:i})]})},SC=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,TC=()=>{const n=Pe();return y.jsxs("div",{className:st.loadingError,children:[y.jsx("h1",{children:n("source-infos.error.title")}),y.jsx("img",{src:SC,title:n("source-infos.error.title")}),y.jsx("p",{children:n("source-infos.error.info")})]})},xC=()=>y.jsx("div",{className:st.loadingSourceInfos,children:y.jsx("svg",{className:st.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"})})});function AC({sourceInfos:n,onClose:r,threshold:i=100}){const s=H.useRef(null),[u,c]=H.useState(0),[h,d]=H.useState(!1),m=H.useRef(null),g=H.useRef(null),v=H.useCallback(M=>{m.current=M,d(!0)},[]),S=H.useCallback(M=>{if(m.current!==null&&h){const F=M-m.current;F>0&&c(F)}},[h]),A=H.useCallback(()=>{d(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),U=H.useCallback(M=>{const F=T=>v(T.touches[0].clientY),j=T=>S(T.touches[0].clientY),E=()=>A(),x=T=>{T.preventDefault(),v(T.clientY),window.addEventListener("mousemove",b),window.addEventListener("mouseup",O)},b=T=>S(T.clientY),O=()=>{A(),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",O)};M.addEventListener("touchstart",F),M.addEventListener("touchmove",j),M.addEventListener("touchend",E),M.addEventListener("mousedown",x),g.current=()=>{M.removeEventListener("touchstart",F),M.removeEventListener("touchmove",j),M.removeEventListener("touchend",E),M.removeEventListener("mousedown",x),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",O)}},[v,S,A]);return H.useEffect(()=>{let M;return(()=>{s.current?(g.current?.(),U(s.current)):(M=new MutationObserver(()=>{s.current&&(g.current?.(),U(s.current),M?.disconnect())}),M.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{M?.disconnect(),g.current?.()}},[U,n]),{ref:s,dragOffsetY:u,isDragging:h}}const wC=n=>{const[r,i]=H.useState(!0);return H.useEffect(()=>{let s=null;return n?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!n),()=>{s&&clearTimeout(s)}},[n]),r},OC=()=>{const n=Wr(),r=zt(m=>m.chat.sourceInfos),i=w1(),s=H.useRef(null),u=wC(r);H.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=H.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),n(aw()))},[n,i]),{ref:h,dragOffsetY:d}=AC({onClose:c,sourceInfos:r});return r?y.jsx("dialog",{ref:s,className:X(st.sourceInfos,u?st.waitForLoading:r.type==="loading"?st.loadingContent:""),style:i&&d?{transform:`translateY(${d}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(dC,{ref:h,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?y.jsx(xC,{}):r.type==="loading-error"?y.jsx(TC,{}):y.jsxs(y.Fragment,{children:[y.jsx(mC,{loading:!r.highlighted}),y.jsx(EC,{sourceInfos:r})]})]})}):null},RC="_container_114wy_1",CC="_body_114wy_7",NC="_intro_114wy_14",MC="_footer_114wy_39",DC="_footnote_114wy_43",BC="_containerWithFootnote_114wy_58",jC="_startChatButton_114wy_73",LC="_formFields_114wy_77",UC="_formField_114wy_77",HC="_radio_114wy_89",zC="_checkbox_114wy_96",kC="_input_114wy_104",IC="_inputLabel_114wy_138",GC="_selectWrapper_114wy_142",qC="_select_114wy_142",FC="_selectLabel_114wy_188",ht={container:RC,body:CC,intro:NC,footer:MC,footnote:DC,containerWithFootnote:BC,startChatButton:jC,formFields:LC,formField:UC,radio:HC,checkbox:zC,input:kC,inputLabel:IC,selectWrapper:GC,select:qC,selectLabel:FC},VC=({name:n,label:r,defaultValue:i,required:s,onChange:u})=>{const c=h=>{u(h.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:X(ht.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[y.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:s,onChange:c}),y.jsx("div",{children:r})]})},PC=({type:n,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:h,min:d,max:m,pattern:g,onChange:v})=>{const S=A=>{v(A.target.value)};return y.jsxs("label",{className:X(ht.input,"chat__startScreen__input"),htmlFor:r,children:[y.jsx("div",{className:X(ht.inputLabel),children:i}),y.jsx("input",{type:n,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:h,min:d,max:m,pattern:g,onChange:S})]})},ZC=({name:n,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const h=`${n}-${r}`,d=m=>{c(m.target.value)};return y.jsxs("label",{className:X(ht.radio,"chat__startScreen__radio"),htmlFor:h,children:[y.jsx("input",{id:h,type:"radio",name:n,value:r,defaultChecked:s,required:u,onChange:d}),y.jsx("span",{className:X(ht.label),children:i})]})},YC=({name:n,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:h})=>{const d=m=>{h(m.target.value)};return y.jsxs("label",{className:X(ht.select,"chat__startScreen__select"),htmlFor:n,children:[y.jsx("div",{className:X(ht.selectLabel),children:r}),y.jsx("div",{className:X(ht.selectWrapper),children:y.jsx("select",{id:n,name:n,defaultValue:i,required:s,multiple:u,onChange:d,children:Object.entries(c||{}).map(([m,g])=>y.jsx("option",{value:m,selected:g===i,children:g}))})})]})},XC="start-screen.intro",QC="start-screen.start-chat",KC="start-screen.footnote",ln="start-screen.form",Sv=`${ln}.fields`,$C=()=>{const n=Pe(),r=Wr(),[i,s]=H.useState({}),u=()=>{const S=Object.entries(i).reduce((A,[U,M])=>({...A,[U]:M.value}),{});r(WA(S))},c=n(XC),h=n(QC),d=n(KC),m=H.useMemo(()=>n(Sv)?.split(";").map(S=>S.trim())??[],[n(Sv)]);H.useEffect(()=>{m.length&&Object.keys(i).length===0&&s(m.reduce((S,A)=>({...S,[A]:JC(A,n)}),{}))},[n,m,i]);const g=S=>{S.preventDefault(),u()},v=S=>A=>{s(U=>({...U,[S]:{...U[S],value:A}}))};return y.jsxs("form",{onSubmit:g,className:X(ht.container,d&&ht.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:X(ht.body,"chat__startScreen__body"),children:[c&&y.jsx("div",{className:X(ht.intro,"chat__startScreen__intro"),children:y.jsx(Gn,{options:{overrides:{a:Tv}},children:c})}),y.jsx("div",{className:X(ht.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:S,name:A,label:U,placeholder:M,defaultValue:F,options:j,required:E,multiple:x,min:b,max:O,pattern:T})=>y.jsx("div",{className:X(ht.formField,"chat__startScreen__field"),children:(()=>{switch(S){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:U}),Object.entries(j||{}).map(([k,Z])=>y.jsx(ZC,{name:A,value:k,label:Z,defaultChecked:k===F,required:E,onChange:v(A)},k))]});case"checkbox":return y.jsx(VC,{name:A,label:U,defaultValue:F,required:E,onChange:v(A)});case"select":return y.jsx(YC,{name:A,label:U,defaultValue:F,required:E,multiple:x,options:j,onChange:v(A)});default:return y.jsx(PC,{type:S,name:A,label:U,placeholder:M,defaultValue:F,required:E,multiple:x,min:b,max:O,pattern:T,onChange:v(A)})}})()},A))})]}),y.jsxs("div",{className:X(ht.footer,"chat__startScreen__footer"),children:[y.jsx(ho,{type:"submit",className:ht.startChatButton,children:h}),d&&y.jsx("div",{className:ht.footnote,children:y.jsx(Gn,{options:{overrides:{a:Tv}},children:d})})]})]})},Tv=({title:n,href:r,children:i})=>y.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),JC=(n,r)=>{const i=r(`${ln}.${n}.type`)||"text",s=r(`${ln}.${n}.required`)==="true",u=r(`${ln}.${n}.multiple`)==="true",c=r(`${ln}.${n}.placeholder`),h=r(`${ln}.${n}.label`)||"",d=r(`${ln}.${n}.defaultValue`),m=r(`${ln}.${n}.min`),g=r(`${ln}.${n}.max`),v=r(`${ln}.${n}.pattern`),S=e4(r(`${ln}.${n}.options`));return{name:n,label:h,placeholder:c,value:WC(i,d,S)||"",defaultValue:d,options:S,type:i,required:s,multiple:u,min:m,max:g,pattern:v}},WC=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",e4=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),t4=()=>{const n=yo();H.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},ka={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},n4=({clientName:n})=>{t4();const r=Wr(),i=zt(v=>v.intl.messages),s=Pe(),u=zt(v=>v.settings.enableStartScreen),c=zt(v=>v.startScreen.startScreenStatus),[h,d]=H.useState(void 0);H.useEffect(()=>{const v=vo.parse(window.location.search);v.cssClassName&&d(v.cssClassName);const S=A=>{switch(A.data.type){case ka.TRIGGER_ACTION:r(A.data.action);break;case ka.TRIGGER_STORY:r(q_(A.data.story));break;case ka.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case ka.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case ka.CHAT_MESSAGE_FROM_GUEST:r(H_(A.data.text));break;case ka.RESTART_CHAT:r(Ao(n,v));break}};return r(sw(n,v)),window.addEventListener("message",A=>S(A),!1),()=>window.removeEventListener("message",S)},[n,r]),H.useEffect(()=>{const v=s("page.title");v&&document&&(document.title=v)},[i,s]);const m=u===void 0,g=u===!1||c==="HIDDEN";return y.jsx("div",{className:X(Ev.chatwindow,g&&Ev.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(M3,{clientName:n})}),y.jsx("aside",{children:y.jsx(OC,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(bv,{chatStarted:!1})}),y.jsx("main",{children:y.jsx($C,{})})]})})},r4=()=>{const n=ad(),r=w1(),i=zt(u=>u.intl.locale),s=zt(u=>u.intl.messages);return y.jsx(fx,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:X([dx.app,r?"chat__small":"chat__large"]),children:y.jsx(n4,{clientName:n})})})};var jf,xv;function id(){if(xv)return jf;xv=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return jf=n,jf}var Lf,Av;function a4(){if(Av)return Lf;Av=1;var n=typeof xl=="object"&&xl&&xl.Object===Object&&xl;return Lf=n,Lf}var Uf,wv;function O1(){if(wv)return Uf;wv=1;var n=a4(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return Uf=i,Uf}var Hf,Ov;function i4(){if(Ov)return Hf;Ov=1;var n=O1(),r=function(){return n.Date.now()};return Hf=r,Hf}var zf,Rv;function s4(){if(Rv)return zf;Rv=1;var n=/\s/;function r(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return zf=r,zf}var kf,Cv;function l4(){if(Cv)return kf;Cv=1;var n=s4(),r=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(r,"")}return kf=i,kf}var If,Nv;function R1(){if(Nv)return If;Nv=1;var n=O1(),r=n.Symbol;return If=r,If}var Gf,Mv;function o4(){if(Mv)return Gf;Mv=1;var n=R1(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,u=n?n.toStringTag:void 0;function c(h){var d=i.call(h,u),m=h[u];try{h[u]=void 0;var g=!0}catch{}var v=s.call(h);return g&&(d?h[u]=m:delete h[u]),v}return Gf=c,Gf}var qf,Dv;function u4(){if(Dv)return qf;Dv=1;var n=Object.prototype,r=n.toString;function i(s){return r.call(s)}return qf=i,qf}var Ff,Bv;function c4(){if(Bv)return Ff;Bv=1;var n=R1(),r=o4(),i=u4(),s="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;function h(d){return d==null?d===void 0?u:s:c&&c in Object(d)?r(d):i(d)}return Ff=h,Ff}var Vf,jv;function f4(){if(jv)return Vf;jv=1;function n(r){return r!=null&&typeof r=="object"}return Vf=n,Vf}var Pf,Lv;function h4(){if(Lv)return Pf;Lv=1;var n=c4(),r=f4(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Pf=s,Pf}var Zf,Uv;function d4(){if(Uv)return Zf;Uv=1;var n=l4(),r=id(),i=h4(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return s;if(r(g)){var v=typeof g.valueOf=="function"?g.valueOf():g;g=r(v)?v+"":v}if(typeof g!="string")return g===0?g:+g;g=n(g);var S=c.test(g);return S||h.test(g)?d(g.slice(2),S?2:8):u.test(g)?s:+g}return Zf=m,Zf}var Yf,Hv;function m4(){if(Hv)return Yf;Hv=1;var n=id(),r=i4(),i=d4(),s="Expected a function",u=Math.max,c=Math.min;function h(d,m,g){var v,S,A,U,M,F,j=0,E=!1,x=!1,b=!0;if(typeof d!="function")throw new TypeError(s);m=i(m)||0,n(g)&&(E=!!g.leading,x="maxWait"in g,A=x?u(i(g.maxWait)||0,m):A,b="trailing"in g?!!g.trailing:b);function O(le){var Ze=v,ye=S;return v=S=void 0,j=le,U=d.apply(ye,Ze),U}function T(le){return j=le,M=setTimeout($,m),E?O(le):U}function k(le){var Ze=le-F,ye=le-j,I=m-Ze;return x?c(I,A-ye):I}function Z(le){var Ze=le-F,ye=le-j;return F===void 0||Ze>=m||Ze<0||x&&ye>=A}function $(){var le=r();if(Z(le))return se(le);M=setTimeout($,k(le))}function se(le){return M=void 0,b&&v?O(le):(v=S=void 0,U)}function re(){M!==void 0&&clearTimeout(M),j=0,v=F=S=M=void 0}function J(){return M===void 0?U:se(r())}function ie(){var le=r(),Ze=Z(le);if(v=arguments,S=this,F=le,Ze){if(M===void 0)return T(F);if(x)return clearTimeout(M),M=setTimeout($,m),O(F)}return M===void 0&&(M=setTimeout($,m)),U}return ie.cancel=re,ie.flush=J,ie}return Yf=h,Yf}var Xf,zv;function p4(){if(zv)return Xf;zv=1;var n=m4(),r=id(),i="Expected a function";function s(u,c,h){var d=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(h)&&(d="leading"in h?!!h.leading:d,m="trailing"in h?!!h.trailing:m),n(u,c,{leading:d,maxWait:c,trailing:m})}return Xf=s,Xf}var g4=p4();const y4=po(g4);function v4(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function _4(n){return n}function b4(n,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||_4,c={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(v){const S=d[v],A=r.safe&&Array.isArray(S),U=Object.prototype.toString.call(S),M=v4(S),F=U==="[object Object]"||U==="[object Array]",j=m?m+i+u(v):u(v);if(!A&&!M&&F&&Object.keys(S).length&&(!r.maxDepth||g<s))return h(S,j,g+1);c[j]=S})}return h(n),c}const C1={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
107
107
|
|
|
108
108
|
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
109
109
|
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.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","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"},E4={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
@@ -115,5 +115,5 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
115
115
|
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.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","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"},T4={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
116
116
|
|
|
117
117
|
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
118
|
-
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.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","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"},x4=["de","en","fr","it"],N1={locale:"de",messages:C1},A4=(n,r)=>{if(x4.includes(n)){const i=w4(n),s=b4(r);return{...i,...s}}return r},w4=n=>{switch(n.toString()){case"en":return E4;case"fr":return S4;case"it":return T4;default:return C1}},O4=(n=R4,r)=>{switch(r.type){case Kh:return Object.assign({},n,{connectionState:Qr.CONNECTING});case $h:return Object.assign({},n,{connectionState:Qr.CONNECTED});case Jh:return Object.assign({},n,{connectionState:Qr.DISCONNECTED});case Wh:return Object.assign({},n,{connectionState:Qr.RECONNECTED});case ed:return Object.assign({},n,{sessionId:r.sessionId});case To:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case xo:return Object.assign({},n,{sessionId:void 0});default:return n}},R4={connectionState:Qr.DISCONNECTED,sessionId:void 0,userId:void 0},C4=(n=Iv,r)=>{switch(r.type){case a1:return Iv;case To:return Zr({type:"webclient.chat.started"}),n;case xo:return Zr({type:"webclient.chat.ended"}),n;case Ee.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Ee.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Ee.ActionTypes.MESSAGE_FROM_GUEST:case Ee.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return kv(n,r.message);case Ee.ActionTypes.MESSAGE_TO_GUEST:{Zr(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=n.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case zh:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case Hh:return Zr(r.message),n;case Ee.ActionTypes.EVENT_TO_GUEST:return Zr(r.event),n;case Ee.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:r.payload.parameters.contentUrl});case Ee.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Ee.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:r.payload.locale});case k_:return Zr(r),n;case I_:return Zr(r),n;case Ih:{const i=new Ee.TextMessage(r.transcription,new Ee.GuestUser),s=Object.assign({},i,{_id:dh()});return kv(n,s)}case Ee.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,{reaction:r.payload.reaction}):s);return Object.assign({},n,{messages:i})}case Gh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:i})}case Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:i})}case Fh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case qh:{const{highlighted:i}=r.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case z_:{const i=n.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:c,content:h,highlighted:d,url:m}=r.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==s?n:i==="loading"||i==="loaded"&&d?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:c,content:h,highlighted:d,url:m}}:n}case Vh:return{...n,sourceInfos:void 0};default:return n}},kv=(n,r)=>{const i=n.messages[n.messages.length-1],s=i?.text===r.text;return i&&i.sender.type===r.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([r]),quickReplies:[]})},Zr=n=>{N4()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},N4=()=>typeof window<"u"&&window.self!==window.top,Iv={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},M1=Xh({name:"intl",initialState:N1,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:M4}=M1.actions,D4=M1.reducer,B4={enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},D1=Xh({name:"settings",initialState:B4,reducers:{setSettings(n,r){n.enableStartScreen=r.payload.enableStartScreen,n.enableStandaloneView=r.payload.enableStandaloneView,n.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,n.enableGeneralConditions=r.payload.enableGeneralConditions,n.enableSpeechSupport=r.payload.enableSpeechSupport,n.commands=r.payload.commands,n.menuItems=r.payload.menuItems||[]}}}),{setSettings:j4}=D1.actions,L4=D1.reducer,U4=Z_({settings:L4,chat:C4,startScreen:tw,connection:O4,intl:D4}),H4="bubble-chat",B1="state-last-saved-at",j1="state",z4=n=>{try{if(!G4())return;const r=Gv(n,B1);if(I4(r))return;{const i=Gv(n,j1);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},k4=(n,r)=>{try{const i=JSON.stringify(r);qv(n,j1,i);const s=new Date().toISOString();qv(n,B1,s)}catch(i){console.error(i)}},I4=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},G4=()=>typeof localStorage<"u",Gv=(n,r)=>{const i=L1(n,r);return localStorage.getItem(i)},qv=(n,r,i)=>{const s=L1(n,r);return localStorage.setItem(s,i)},L1=(n,r)=>`${H4}-${n}-${r}`,En=Object.create(null);En.open="0";En.close="1";En.ping="2";En.pong="3";En.message="4";En.upgrade="5";En.noop="6";const to=Object.create(null);Object.keys(En).forEach(n=>{to[En[n]]=n});const Eh={type:"error",data:"parser error"},U1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",H1=typeof ArrayBuffer=="function",z1=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,sd=({type:n,data:r},i,s)=>U1&&r instanceof Blob?i?s(r):Fv(r,s):H1&&(r instanceof ArrayBuffer||z1(r))?i?s(r):Fv(new Blob([r]),s):s(En[n]+(r||"")),Fv=(n,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(n)};function Vv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Qf;function q4(n,r){if(U1&&n.data instanceof Blob)return n.data.arrayBuffer().then(Vv).then(r);if(H1&&(n.data instanceof ArrayBuffer||z1(n.data)))return r(Vv(n.data));sd(n,!1,i=>{Qf||(Qf=new TextEncoder),r(Qf.encode(i))})}const Pv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ts=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Pv.length;n++)ts[Pv.charCodeAt(n)]=n;const F4=n=>{let r=n.length*.75,i=n.length,s,u=0,c,h,d,m;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const g=new ArrayBuffer(r),v=new Uint8Array(g);for(s=0;s<i;s+=4)c=ts[n.charCodeAt(s)],h=ts[n.charCodeAt(s+1)],d=ts[n.charCodeAt(s+2)],m=ts[n.charCodeAt(s+3)],v[u++]=c<<2|h>>4,v[u++]=(h&15)<<4|d>>2,v[u++]=(d&3)<<6|m&63;return g},V4=typeof ArrayBuffer=="function",ld=(n,r)=>{if(typeof n!="string")return{type:"message",data:k1(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:P4(n.substring(1),r)}:to[i]?n.length>1?{type:to[i],data:n.substring(1)}:{type:to[i]}:Eh},P4=(n,r)=>{if(V4){const i=F4(n);return k1(i,r)}else return{base64:!0,data:n}},k1=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},I1="",Z4=(n,r)=>{const i=n.length,s=new Array(i);let u=0;n.forEach((c,h)=>{sd(c,!1,d=>{s[h]=d,++u===i&&r(s.join(I1))})})},Y4=(n,r)=>{const i=n.split(I1),s=[];for(let u=0;u<i.length;u++){const c=ld(i[u],r);if(s.push(c),c.type==="error")break}return s};function X4(){return new TransformStream({transform(n,r){q4(n,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Kf;function $l(n){return n.reduce((r,i)=>r+i.length,0)}function Jl(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let s=0;for(let u=0;u<r;u++)i[u]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),i}function Q4(n,r){Kf||(Kf=new TextDecoder);const i=[];let s=0,u=-1,c=!1;return new TransformStream({transform(h,d){for(i.push(h);;){if(s===0){if($l(i)<1)break;const m=Jl(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if($l(i)<2)break;const m=Jl(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if($l(i)<8)break;const m=Jl(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),v=g.getUint32(0);if(v>Math.pow(2,21)-1){d.enqueue(Eh);break}u=v*Math.pow(2,32)+g.getUint32(4),s=3}else{if($l(i)<u)break;const m=Jl(i,u);d.enqueue(ld(c?m:Kf.decode(m),r)),s=0}if(u===0||u>n){d.enqueue(Eh);break}}}})}const G1=4;function Je(n){if(n)return K4(n)}function K4(n){for(var r in Je.prototype)n[r]=Je.prototype[r];return n}Je.prototype.on=Je.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};Je.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};Je.prototype.off=Je.prototype.removeListener=Je.prototype.removeAllListeners=Je.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===r||s.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};Je.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+n],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,r)}return this};Je.prototype.emitReserved=Je.prototype.emit;Je.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Je.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Ro=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),$t=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),$4="arraybuffer";function q1(n,...r){return r.reduce((i,s)=>(n.hasOwnProperty(s)&&(i[s]=n[s]),i),{})}const J4=$t.setTimeout,W4=$t.clearTimeout;function Co(n,r){r.useNativeTimers?(n.setTimeoutFn=J4.bind($t),n.clearTimeoutFn=W4.bind($t)):(n.setTimeoutFn=$t.setTimeout.bind($t),n.clearTimeoutFn=$t.clearTimeout.bind($t))}const e8=1.33;function t8(n){return typeof n=="string"?n8(n):Math.ceil((n.byteLength||n.size)*e8)}function n8(n){let r=0,i=0;for(let s=0,u=n.length;s<u;s++)r=n.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function F1(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function r8(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function a8(n){let r={},i=n.split("&");for(let s=0,u=i.length;s<u;s++){let c=i[s].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class i8 extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class od extends Je{constructor(r){super(),this.writable=!1,Co(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new i8(r,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=ld(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=r8(r);return i.length?"?"+i:""}}class s8 extends od{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Y4(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,Z4(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=F1()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let V1=!1;try{V1=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const l8=V1;function o8(){}class u8 extends s8{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class _n extends Je{constructor(r,i,s){super(),this.createRequest=r,Co(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=q1(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=_n.requestsCount++,_n.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=o8,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete _n.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}_n.requestsCount=0;_n.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Zv);else if(typeof addEventListener=="function"){const n="onpagehide"in $t?"pagehide":"unload";addEventListener(n,Zv,!1)}}function Zv(){for(let n in _n.requests)_n.requests.hasOwnProperty(n)&&_n.requests[n].abort()}const c8=function(){const n=P1({xdomain:!1});return n&&n.responseType!==null}();class f8 extends u8{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=c8&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new _n(P1,this.uri(),r)}}function P1(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||l8))return new XMLHttpRequest}catch{}if(!r)try{return new $t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Z1=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class h8 extends od{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=Z1?{}:q1(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;sd(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Ro(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=F1()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const $f=$t.WebSocket||$t.MozWebSocket;class d8 extends h8{createSocket(r,i,s){return Z1?new $f(r,i,s):i?new $f(r,i):new $f(r)}doWrite(r,i){this.ws.send(i)}}class m8 extends od{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=Q4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=X4();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{s.read().then(({done:d,value:m})=>{d||(this.onPacket(m),c())}).catch(d=>{})};c();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;this._writer.write(s).then(()=>{u&&Ro(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const p8={websocket:d8,webtransport:m8,polling:f8},g8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,y8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sh(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),s=n.indexOf("]");i!=-1&&s!=-1&&(n=n.substring(0,i)+n.substring(i,s).replace(/:/g,";")+n.substring(s,n.length));let u=g8.exec(n||""),c={},h=14;for(;h--;)c[y8[h]]=u[h]||"";return i!=-1&&s!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=v8(c,c.path),c.queryKey=_8(c,c.query),c}function v8(n,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function _8(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const Th=typeof addEventListener=="function"&&typeof removeEventListener=="function",no=[];Th&&addEventListener("offline",()=>{no.forEach(n=>n())},!1);class _r extends Je{constructor(r,i){if(super(),this.binaryType=$4,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const s=Sh(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=Sh(i.host).host);Co(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=a8(this.opts.query)),Th&&(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"})},no.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=G1,i.transport=r,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&_r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",_r.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=t8(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Ro(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:r,data:i,options:s};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(_r.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Th&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=no.indexOf(this._offlineEventListener);s!==-1&&no.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}_r.protocol=G1;class b8 extends _r{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),s=!1;_r.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",T=>{if(!s)if(T.type==="pong"&&T.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;_r.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(v(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function c(){s||(s=!0,v(),i.close(),i=null)}const h=T=>{const A=new Error("probe error: "+T);A.transport=i.name,c(),this.emitReserved("upgradeError",A)};function d(){h("transport closed")}function m(){h("socket closed")}function g(T){i&&T.name!==i.name&&c()}const v=()=>{i.removeListener("open",u),i.removeListener("error",h),i.removeListener("close",d),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",h),i.once("close",d),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let E8=class extends b8{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>p8[u]).filter(u=>!!u)),super(r,s)}};function S8(n,r="",i){let s=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),s=Sh(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+r,s.href=s.protocol+"://"+c+(i&&i.port===s.port?"":":"+s.port),s}const T8=typeof ArrayBuffer=="function",x8=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Y1=Object.prototype.toString,A8=typeof Blob=="function"||typeof Blob<"u"&&Y1.call(Blob)==="[object BlobConstructor]",w8=typeof File=="function"||typeof File<"u"&&Y1.call(File)==="[object FileConstructor]";function ud(n){return T8&&(n instanceof ArrayBuffer||x8(n))||A8&&n instanceof Blob||w8&&n instanceof File}function ro(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)if(ro(n[i]))return!0;return!1}if(ud(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ro(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&ro(n[i]))return!0;return!1}function O8(n){const r=[],i=n.data,s=n;return s.data=xh(i,r),s.attachments=r.length,{packet:s,buffers:r}}function xh(n,r){if(!n)return n;if(ud(n)){const i={_placeholder:!0,num:r.length};return r.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let s=0;s<n.length;s++)i[s]=xh(n[s],r);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=xh(n[s],r));return i}return n}function R8(n,r){return n.data=Ah(n.data,r),delete n.attachments,n}function Ah(n,r){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<r.length)return r[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Ah(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Ah(n[i],r));return n}const C8=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],N8=5;var xe;(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"})(xe||(xe={}));class M8{constructor(r){this.replacer=r}encode(r){return(r.type===xe.EVENT||r.type===xe.ACK)&&ro(r)?this.encodeAsBinary({type:r.type===xe.EVENT?xe.BINARY_EVENT:xe.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===xe.BINARY_EVENT||r.type===xe.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=O8(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function Yv(n){return Object.prototype.toString.call(n)==="[object Object]"}class cd extends Je{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const s=i.type===xe.BINARY_EVENT;s||i.type===xe.BINARY_ACK?(i.type=s?xe.EVENT:xe.ACK,this.reconstructor=new D8(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(ud(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const s={type:Number(r.charAt(0))};if(xe[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===xe.BINARY_EVENT||s.type===xe.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const h=r.substring(c,i);if(h!=Number(h)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(h)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(c,i)}else s.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const h=r.charAt(i);if(h==null||Number(h)!=h){--i;break}if(i===r.length)break}s.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(cd.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case xe.CONNECT:return Yv(i);case xe.DISCONNECT:return i===void 0;case xe.CONNECT_ERROR:return typeof i=="string"||Yv(i);case xe.EVENT:case xe.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&C8.indexOf(i[0])===-1);case xe.ACK:case xe.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class D8{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=R8(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const B8=Object.freeze(Object.defineProperty({__proto__:null,Decoder:cd,Encoder:M8,get PacketType(){return xe},protocol:N8},Symbol.toStringTag,{value:"Module"}));function on(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const j8=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class X1 extends Je{constructor(r,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[on(r,"open",this.onopen.bind(this)),on(r,"packet",this.onpacket.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var s,u,c;if(j8.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const h={type:xe.EVENT,data:i};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const v=this.ids++,T=i.pop();this._registerAckCallback(v,T),h.id=v}const d=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!d||(m?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(r,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===r&&this.sendBuffer.splice(d,1);i.call(this,new Error("operation has timed out"))},u),h=(...d)=>{this.io.clearTimeoutFn(c),i.apply(this,d)};h.withError=!0,this.acks[r]=h}emitWithAck(r,...i){return new Promise((s,u)=>{const c=(h,d)=>h?u(h):s(d);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:xe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case xe.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case xe.EVENT:case xe.BINARY_EVENT:this.onevent(r);break;case xe.ACK:case xe.BINARY_ACK:this.onack(r);break;case xe.DISCONNECT:this.ondisconnect();break;case xe.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:xe.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:xe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,r.data)}}}function Va(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}Va.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*n);n=(Math.floor(r*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Va.prototype.reset=function(){this.attempts=0};Va.prototype.setMin=function(n){this.ms=n};Va.prototype.setMax=function(n){this.max=n};Va.prototype.setJitter=function(n){this.jitter=n};class wh extends Je{constructor(r,i){var s;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Co(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Va({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||B8;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new E8(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=on(i,"open",function(){s.onopen(),r&&r()}),c=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=on(i,"error",c);if(this._timeout!==!1){const d=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},d);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(h),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(on(r,"ping",this.onping.bind(this)),on(r,"data",this.ondata.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){Ro(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new X1(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Ji={};function ao(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=S8(n,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,h=Ji[u]&&c in Ji[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new wh(s,r):(Ji[u]||(Ji[u]=new wh(s,r)),m=Ji[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(ao,{Manager:wh,Socket:X1,io:ao,connect:ao});const L8=[Ee.ActionTypes.MESSAGE_TO_GUEST,Ee.ActionTypes.EVENT_TO_GUEST,Ee.ActionTypes.TYPING_ON,Ee.ActionTypes.TYPING_OFF,Ee.ActionTypes.RESTART_CHAT_REQUEST,...iw,...rA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],U8=({dispatch:n,getState:r})=>i=>{let s=null;return u=>{const c=i(u);if(u.type===Qh){s?.disconnect(),n(ow());const h=`/chat?${vo.stringify(u.querystrings)}`;s=ao(`/${u.clientName}${h}`),s.on("action",n),s.on("connect",()=>n(uw())),s.on("disconnect",()=>n(cw())),s.on("reconnect",()=>n(fw())),s.on("set-translations",(d,m)=>{n(M4({language:d,messages:A4(d,m)}))}),s.on("set-settings",d=>{n(j4(d))}),s.on("enable-conversation-rating",d=>n(oA(d))),s.on("speech-transcription",d=>n(iA(d))),s.on("restore-client-state",d=>{n(lw(d.sessionId)),n(cA(d.messages))}),s.on("expand-window",({devices:d,initial:m=!1})=>{n({type:k_,devices:d,initial:m})}),s.on("restart-chat",()=>{n(Ao(u.clientName,u.querystrings))})}else if(u.type===To)s?.emit("start-chat",u.payload);else if(u.type===xo)s?.emit("terminate-session",u.payload);else if(u.type===nA)s?.emit("get-started",JSON.stringify(u));else if(u.type===kh)s?.emit("audio-message",u.buffer);else if(u.type===Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===G_){const{connection:{sessionId:h}}=r();window.location.href=`/transcript-pdf/${h}`}else L8.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},Q1=S1(),H8={...z4(Q1),intl:N1},Oh=IA({middleware:n=>n().concat(U8),reducer:U4,preloadedState:H8});Oh.subscribe(y4(()=>{const n=Oh.getState();k4(Q1,{connection:n.connection,startScreen:n.startScreen})},1e3));const z8=document.getElementById("root"),k8=OE.createRoot(z8);k8.render(y.jsx(wS,{store:Oh,children:y.jsx(r4,{})}));
|
|
119
|
-
//# sourceMappingURL=index-
|
|
118
|
+
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.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","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"},x4=["de","en","fr","it"],N1={locale:"de",messages:C1},A4=(n,r)=>{if(x4.includes(n)){const i=w4(n),s=b4(r);return{...i,...s}}return r},w4=n=>{switch(n.toString()){case"en":return E4;case"fr":return S4;case"it":return T4;default:return C1}},O4=(n=R4,r)=>{switch(r.type){case Kh:return Object.assign({},n,{connectionState:Qr.CONNECTING});case $h:return Object.assign({},n,{connectionState:Qr.CONNECTED});case Jh:return Object.assign({},n,{connectionState:Qr.DISCONNECTED});case Wh:return Object.assign({},n,{connectionState:Qr.RECONNECTED});case ed:return Object.assign({},n,{sessionId:r.sessionId});case To:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case xo:return Object.assign({},n,{sessionId:void 0});default:return n}},R4={connectionState:Qr.DISCONNECTED,sessionId:void 0,userId:void 0},C4=(n=Iv,r)=>{switch(r.type){case a1:return Iv;case To:return Zr({type:"webclient.chat.started"}),n;case xo:return Zr({type:"webclient.chat.ended"}),n;case Ee.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Ee.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Ee.ActionTypes.MESSAGE_FROM_GUEST:case Ee.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return kv(n,r.message);case Ee.ActionTypes.MESSAGE_TO_GUEST:{Zr(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=n.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case zh:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case Hh:return Zr(r.message),n;case Ee.ActionTypes.EVENT_TO_GUEST:return Zr(r.event),n;case Ee.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:r.payload.parameters.contentUrl});case Ee.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Ee.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:r.payload.locale});case k_:return Zr(r),n;case I_:return Zr(r),n;case Ih:{const i=new Ee.TextMessage(r.transcription,new Ee.GuestUser),s=Object.assign({},i,{_id:dh()});return kv(n,s)}case Ee.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,{reaction:r.payload.reaction}):s);return Object.assign({},n,{messages:i})}case Gh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:i})}case Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:i})}case Fh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case qh:{const{highlighted:i}=r.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case z_:{const i=n.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:c,content:h,highlighted:d,url:m}=r.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==s?n:i==="loading"||i==="loaded"&&d?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:c,content:h,highlighted:d,url:m}}:n}case Vh:return{...n,sourceInfos:void 0};default:return n}},kv=(n,r)=>{const i=n.messages[n.messages.length-1],s=i?.text===r.text;return i&&i.sender.type===r.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([r]),quickReplies:[]})},Zr=n=>{N4()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},N4=()=>typeof window<"u"&&window.self!==window.top,Iv={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},M1=Xh({name:"intl",initialState:N1,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:M4}=M1.actions,D4=M1.reducer,B4={enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},D1=Xh({name:"settings",initialState:B4,reducers:{setSettings(n,r){n.enableStartScreen=r.payload.enableStartScreen,n.enableStandaloneView=r.payload.enableStandaloneView,n.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,n.enableGeneralConditions=r.payload.enableGeneralConditions,n.enableSpeechSupport=r.payload.enableSpeechSupport,n.commands=r.payload.commands,n.menuItems=r.payload.menuItems||[]}}}),{setSettings:j4}=D1.actions,L4=D1.reducer,U4=Z_({settings:L4,chat:C4,startScreen:tw,connection:O4,intl:D4}),H4="bubble-chat",B1="state-last-saved-at",j1="state",z4=n=>{try{if(!G4())return;const r=Gv(n,B1);if(I4(r))return;{const i=Gv(n,j1);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},k4=(n,r)=>{try{const i=JSON.stringify(r);qv(n,j1,i);const s=new Date().toISOString();qv(n,B1,s)}catch(i){console.error(i)}},I4=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},G4=()=>typeof localStorage<"u",Gv=(n,r)=>{const i=L1(n,r);return localStorage.getItem(i)},qv=(n,r,i)=>{const s=L1(n,r);return localStorage.setItem(s,i)},L1=(n,r)=>`${H4}-${n}-${r}`,En=Object.create(null);En.open="0";En.close="1";En.ping="2";En.pong="3";En.message="4";En.upgrade="5";En.noop="6";const to=Object.create(null);Object.keys(En).forEach(n=>{to[En[n]]=n});const Eh={type:"error",data:"parser error"},U1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",H1=typeof ArrayBuffer=="function",z1=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,sd=({type:n,data:r},i,s)=>U1&&r instanceof Blob?i?s(r):Fv(r,s):H1&&(r instanceof ArrayBuffer||z1(r))?i?s(r):Fv(new Blob([r]),s):s(En[n]+(r||"")),Fv=(n,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(n)};function Vv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Qf;function q4(n,r){if(U1&&n.data instanceof Blob)return n.data.arrayBuffer().then(Vv).then(r);if(H1&&(n.data instanceof ArrayBuffer||z1(n.data)))return r(Vv(n.data));sd(n,!1,i=>{Qf||(Qf=new TextEncoder),r(Qf.encode(i))})}const Pv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ts=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Pv.length;n++)ts[Pv.charCodeAt(n)]=n;const F4=n=>{let r=n.length*.75,i=n.length,s,u=0,c,h,d,m;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const g=new ArrayBuffer(r),v=new Uint8Array(g);for(s=0;s<i;s+=4)c=ts[n.charCodeAt(s)],h=ts[n.charCodeAt(s+1)],d=ts[n.charCodeAt(s+2)],m=ts[n.charCodeAt(s+3)],v[u++]=c<<2|h>>4,v[u++]=(h&15)<<4|d>>2,v[u++]=(d&3)<<6|m&63;return g},V4=typeof ArrayBuffer=="function",ld=(n,r)=>{if(typeof n!="string")return{type:"message",data:k1(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:P4(n.substring(1),r)}:to[i]?n.length>1?{type:to[i],data:n.substring(1)}:{type:to[i]}:Eh},P4=(n,r)=>{if(V4){const i=F4(n);return k1(i,r)}else return{base64:!0,data:n}},k1=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},I1="",Z4=(n,r)=>{const i=n.length,s=new Array(i);let u=0;n.forEach((c,h)=>{sd(c,!1,d=>{s[h]=d,++u===i&&r(s.join(I1))})})},Y4=(n,r)=>{const i=n.split(I1),s=[];for(let u=0;u<i.length;u++){const c=ld(i[u],r);if(s.push(c),c.type==="error")break}return s};function X4(){return new TransformStream({transform(n,r){q4(n,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Kf;function $l(n){return n.reduce((r,i)=>r+i.length,0)}function Jl(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let s=0;for(let u=0;u<r;u++)i[u]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),i}function Q4(n,r){Kf||(Kf=new TextDecoder);const i=[];let s=0,u=-1,c=!1;return new TransformStream({transform(h,d){for(i.push(h);;){if(s===0){if($l(i)<1)break;const m=Jl(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if($l(i)<2)break;const m=Jl(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if($l(i)<8)break;const m=Jl(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),v=g.getUint32(0);if(v>Math.pow(2,21)-1){d.enqueue(Eh);break}u=v*Math.pow(2,32)+g.getUint32(4),s=3}else{if($l(i)<u)break;const m=Jl(i,u);d.enqueue(ld(c?m:Kf.decode(m),r)),s=0}if(u===0||u>n){d.enqueue(Eh);break}}}})}const G1=4;function Je(n){if(n)return K4(n)}function K4(n){for(var r in Je.prototype)n[r]=Je.prototype[r];return n}Je.prototype.on=Je.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};Je.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};Je.prototype.off=Je.prototype.removeListener=Je.prototype.removeAllListeners=Je.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===r||s.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};Je.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+n],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,r)}return this};Je.prototype.emitReserved=Je.prototype.emit;Je.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Je.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Ro=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),$t=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),$4="arraybuffer";function q1(n,...r){return r.reduce((i,s)=>(n.hasOwnProperty(s)&&(i[s]=n[s]),i),{})}const J4=$t.setTimeout,W4=$t.clearTimeout;function Co(n,r){r.useNativeTimers?(n.setTimeoutFn=J4.bind($t),n.clearTimeoutFn=W4.bind($t)):(n.setTimeoutFn=$t.setTimeout.bind($t),n.clearTimeoutFn=$t.clearTimeout.bind($t))}const e8=1.33;function t8(n){return typeof n=="string"?n8(n):Math.ceil((n.byteLength||n.size)*e8)}function n8(n){let r=0,i=0;for(let s=0,u=n.length;s<u;s++)r=n.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function F1(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function r8(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function a8(n){let r={},i=n.split("&");for(let s=0,u=i.length;s<u;s++){let c=i[s].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class i8 extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class od extends Je{constructor(r){super(),this.writable=!1,Co(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new i8(r,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=ld(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=r8(r);return i.length?"?"+i:""}}class s8 extends od{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Y4(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,Z4(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=F1()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let V1=!1;try{V1=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const l8=V1;function o8(){}class u8 extends s8{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class _n extends Je{constructor(r,i,s){super(),this.createRequest=r,Co(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=q1(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=_n.requestsCount++,_n.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=o8,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete _n.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}_n.requestsCount=0;_n.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Zv);else if(typeof addEventListener=="function"){const n="onpagehide"in $t?"pagehide":"unload";addEventListener(n,Zv,!1)}}function Zv(){for(let n in _n.requests)_n.requests.hasOwnProperty(n)&&_n.requests[n].abort()}const c8=function(){const n=P1({xdomain:!1});return n&&n.responseType!==null}();class f8 extends u8{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=c8&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new _n(P1,this.uri(),r)}}function P1(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||l8))return new XMLHttpRequest}catch{}if(!r)try{return new $t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Z1=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class h8 extends od{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=Z1?{}:q1(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;sd(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Ro(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=F1()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const $f=$t.WebSocket||$t.MozWebSocket;class d8 extends h8{createSocket(r,i,s){return Z1?new $f(r,i,s):i?new $f(r,i):new $f(r)}doWrite(r,i){this.ws.send(i)}}class m8 extends od{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=Q4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=X4();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{s.read().then(({done:d,value:m})=>{d||(this.onPacket(m),c())}).catch(d=>{})};c();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;this._writer.write(s).then(()=>{u&&Ro(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const p8={websocket:d8,webtransport:m8,polling:f8},g8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,y8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sh(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),s=n.indexOf("]");i!=-1&&s!=-1&&(n=n.substring(0,i)+n.substring(i,s).replace(/:/g,";")+n.substring(s,n.length));let u=g8.exec(n||""),c={},h=14;for(;h--;)c[y8[h]]=u[h]||"";return i!=-1&&s!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=v8(c,c.path),c.queryKey=_8(c,c.query),c}function v8(n,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function _8(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const Th=typeof addEventListener=="function"&&typeof removeEventListener=="function",no=[];Th&&addEventListener("offline",()=>{no.forEach(n=>n())},!1);class _r extends Je{constructor(r,i){if(super(),this.binaryType=$4,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const s=Sh(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=Sh(i.host).host);Co(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=a8(this.opts.query)),Th&&(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"})},no.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=G1,i.transport=r,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&_r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",_r.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=t8(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Ro(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:r,data:i,options:s};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(_r.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Th&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=no.indexOf(this._offlineEventListener);s!==-1&&no.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}_r.protocol=G1;class b8 extends _r{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),s=!1;_r.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!s)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;_r.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(v(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function c(){s||(s=!0,v(),i.close(),i=null)}const h=S=>{const A=new Error("probe error: "+S);A.transport=i.name,c(),this.emitReserved("upgradeError",A)};function d(){h("transport closed")}function m(){h("socket closed")}function g(S){i&&S.name!==i.name&&c()}const v=()=>{i.removeListener("open",u),i.removeListener("error",h),i.removeListener("close",d),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",h),i.once("close",d),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let E8=class extends b8{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>p8[u]).filter(u=>!!u)),super(r,s)}};function S8(n,r="",i){let s=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),s=Sh(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+r,s.href=s.protocol+"://"+c+(i&&i.port===s.port?"":":"+s.port),s}const T8=typeof ArrayBuffer=="function",x8=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Y1=Object.prototype.toString,A8=typeof Blob=="function"||typeof Blob<"u"&&Y1.call(Blob)==="[object BlobConstructor]",w8=typeof File=="function"||typeof File<"u"&&Y1.call(File)==="[object FileConstructor]";function ud(n){return T8&&(n instanceof ArrayBuffer||x8(n))||A8&&n instanceof Blob||w8&&n instanceof File}function ro(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)if(ro(n[i]))return!0;return!1}if(ud(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ro(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&ro(n[i]))return!0;return!1}function O8(n){const r=[],i=n.data,s=n;return s.data=xh(i,r),s.attachments=r.length,{packet:s,buffers:r}}function xh(n,r){if(!n)return n;if(ud(n)){const i={_placeholder:!0,num:r.length};return r.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let s=0;s<n.length;s++)i[s]=xh(n[s],r);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=xh(n[s],r));return i}return n}function R8(n,r){return n.data=Ah(n.data,r),delete n.attachments,n}function Ah(n,r){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<r.length)return r[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Ah(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Ah(n[i],r));return n}const C8=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],N8=5;var xe;(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"})(xe||(xe={}));class M8{constructor(r){this.replacer=r}encode(r){return(r.type===xe.EVENT||r.type===xe.ACK)&&ro(r)?this.encodeAsBinary({type:r.type===xe.EVENT?xe.BINARY_EVENT:xe.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===xe.BINARY_EVENT||r.type===xe.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=O8(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function Yv(n){return Object.prototype.toString.call(n)==="[object Object]"}class cd extends Je{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const s=i.type===xe.BINARY_EVENT;s||i.type===xe.BINARY_ACK?(i.type=s?xe.EVENT:xe.ACK,this.reconstructor=new D8(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(ud(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const s={type:Number(r.charAt(0))};if(xe[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===xe.BINARY_EVENT||s.type===xe.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const h=r.substring(c,i);if(h!=Number(h)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(h)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(c,i)}else s.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const h=r.charAt(i);if(h==null||Number(h)!=h){--i;break}if(i===r.length)break}s.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(cd.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case xe.CONNECT:return Yv(i);case xe.DISCONNECT:return i===void 0;case xe.CONNECT_ERROR:return typeof i=="string"||Yv(i);case xe.EVENT:case xe.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&C8.indexOf(i[0])===-1);case xe.ACK:case xe.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class D8{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=R8(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const B8=Object.freeze(Object.defineProperty({__proto__:null,Decoder:cd,Encoder:M8,get PacketType(){return xe},protocol:N8},Symbol.toStringTag,{value:"Module"}));function on(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const j8=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class X1 extends Je{constructor(r,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[on(r,"open",this.onopen.bind(this)),on(r,"packet",this.onpacket.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var s,u,c;if(j8.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const h={type:xe.EVENT,data:i};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const v=this.ids++,S=i.pop();this._registerAckCallback(v,S),h.id=v}const d=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!d||(m?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(r,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===r&&this.sendBuffer.splice(d,1);i.call(this,new Error("operation has timed out"))},u),h=(...d)=>{this.io.clearTimeoutFn(c),i.apply(this,d)};h.withError=!0,this.acks[r]=h}emitWithAck(r,...i){return new Promise((s,u)=>{const c=(h,d)=>h?u(h):s(d);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:xe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case xe.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case xe.EVENT:case xe.BINARY_EVENT:this.onevent(r);break;case xe.ACK:case xe.BINARY_ACK:this.onack(r);break;case xe.DISCONNECT:this.ondisconnect();break;case xe.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:xe.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:xe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,r.data)}}}function Va(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}Va.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*n);n=(Math.floor(r*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Va.prototype.reset=function(){this.attempts=0};Va.prototype.setMin=function(n){this.ms=n};Va.prototype.setMax=function(n){this.max=n};Va.prototype.setJitter=function(n){this.jitter=n};class wh extends Je{constructor(r,i){var s;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Co(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Va({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||B8;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new E8(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=on(i,"open",function(){s.onopen(),r&&r()}),c=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=on(i,"error",c);if(this._timeout!==!1){const d=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},d);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(h),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(on(r,"ping",this.onping.bind(this)),on(r,"data",this.ondata.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){Ro(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new X1(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Ji={};function ao(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=S8(n,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,h=Ji[u]&&c in Ji[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new wh(s,r):(Ji[u]||(Ji[u]=new wh(s,r)),m=Ji[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(ao,{Manager:wh,Socket:X1,io:ao,connect:ao});const L8=[Ee.ActionTypes.MESSAGE_TO_GUEST,Ee.ActionTypes.EVENT_TO_GUEST,Ee.ActionTypes.TYPING_ON,Ee.ActionTypes.TYPING_OFF,Ee.ActionTypes.RESTART_CHAT_REQUEST,...iw,...rA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],U8=({dispatch:n,getState:r})=>i=>{let s=null;return u=>{const c=i(u);if(u.type===Qh){s?.disconnect(),n(ow());const h=`/chat?${vo.stringify(u.querystrings)}`;s=ao(`/${u.clientName}${h}`),s.on("action",n),s.on("connect",()=>n(uw())),s.on("disconnect",()=>n(cw())),s.on("reconnect",()=>n(fw())),s.on("set-translations",(d,m)=>{n(M4({language:d,messages:A4(d,m)}))}),s.on("set-settings",d=>{n(j4(d))}),s.on("enable-conversation-rating",d=>n(oA(d))),s.on("speech-transcription",d=>n(iA(d))),s.on("restore-client-state",d=>{n(lw(d.sessionId)),n(cA(d.messages))}),s.on("expand-window",({devices:d,initial:m=!1})=>{n({type:k_,devices:d,initial:m})}),s.on("restart-chat",()=>{n(Ao(u.clientName,u.querystrings))})}else if(u.type===To)s?.emit("start-chat",u.payload);else if(u.type===xo)s?.emit("terminate-session",u.payload);else if(u.type===nA)s?.emit("get-started",JSON.stringify(u));else if(u.type===kh)s?.emit("audio-message",u.buffer);else if(u.type===Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===G_){const{connection:{sessionId:h}}=r();window.location.href=`/transcript-pdf/${h}`}else L8.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},Q1=S1(),H8={...z4(Q1),intl:N1},Oh=IA({middleware:n=>n().concat(U8),reducer:U4,preloadedState:H8});Oh.subscribe(y4(()=>{const n=Oh.getState();k4(Q1,{connection:n.connection,startScreen:n.startScreen})},1e3));const z8=document.getElementById("root"),k8=OE.createRoot(z8);k8.render(y.jsx(wS,{store:Oh,children:y.jsx(r4,{})}));
|
|
119
|
+
//# sourceMappingURL=index-Bqevq7Rf.js.map
|