@botfabrik/engine-webclient 4.111.1 → 4.113.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +0,0 @@
1
- (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function T2(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Nd={exports:{}},wo={};var P0;function x2(){if(P0)return wo;P0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:n,type:o,key:d,ref:c!==void 0?c:null,props:f}}return wo.Fragment=l,wo.jsx=r,wo.jsxs=r,wo}var Q0;function O2(){return Q0||(Q0=1,Nd.exports=x2()),Nd.exports}var v=O2(),Md={exports:{}},Ro={},Dd={exports:{}},Ld={};var $0;function w2(){return $0||($0=1,(function(n){function l(R,W){var le=R.length;R.push(W);e:for(;0<le;){var ae=le-1>>>1,_e=R[ae];if(0<c(_e,W))R[ae]=W,R[le]=_e,le=ae;else break e}}function r(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var W=R[0],le=R.pop();if(le!==W){R[0]=le;e:for(var ae=0,_e=R.length,T=_e>>>1;ae<T;){var V=2*(ae+1)-1,Y=R[V],oe=V+1,K=R[oe];if(0>c(Y,le))oe<_e&&0>c(K,Y)?(R[ae]=K,R[oe]=le,ae=oe):(R[ae]=Y,R[V]=le,ae=V);else if(oe<_e&&0>c(K,le))R[ae]=K,R[oe]=le,ae=oe;else break e}}return W}function c(R,W){var le=R.sortIndex-W.sortIndex;return le!==0?le:R.id-W.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var h=[],p=[],y=1,b=null,A=3,S=!1,O=!1,C=!1,E=!1,x=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function z(R){for(var W=r(p);W!==null;){if(W.callback===null)o(p);else if(W.startTime<=R)o(p),W.sortIndex=W.expirationTime,l(h,W);else break;W=r(p)}}function H(R){if(C=!1,z(R),!O)if(r(h)!==null)O=!0,B||(B=!0,ie());else{var W=r(p);W!==null&&ce(H,W.startTime-R)}}var B=!1,X=-1,Z=5,re=-1;function $(){return E?!0:!(n.unstable_now()-re<Z)}function ne(){if(E=!1,B){var R=n.unstable_now();re=R;var W=!0;try{e:{O=!1,C&&(C=!1,M(X),X=-1),S=!0;var le=A;try{t:{for(z(R),b=r(h);b!==null&&!(b.expirationTime>R&&$());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,A=b.priorityLevel;var _e=ae(b.expirationTime<=R);if(R=n.unstable_now(),typeof _e=="function"){b.callback=_e,z(R),W=!0;break t}b===r(h)&&o(h),z(R)}else o(h);b=r(h)}if(b!==null)W=!0;else{var T=r(p);T!==null&&ce(H,T.startTime-R),W=!1}}break e}finally{b=null,A=le,S=!1}W=void 0}}finally{W?ie():B=!1}}}var ie;if(typeof L=="function")ie=function(){L(ne)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,pe=he.port2;he.port1.onmessage=ne,ie=function(){pe.postMessage(null)}}else ie=function(){x(ne,0)};function ce(R,W){X=x(function(){R(n.unstable_now())},W)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return A},n.unstable_next=function(R){switch(A){case 1:case 2:case 3:var W=3;break;default:W=A}var le=A;A=W;try{return R()}finally{A=le}},n.unstable_requestPaint=function(){E=!0},n.unstable_runWithPriority=function(R,W){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var le=A;A=R;try{return W()}finally{A=le}},n.unstable_scheduleCallback=function(R,W,le){var ae=n.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?ae+le:ae):le=ae,R){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=le+_e,R={id:y++,callback:W,priorityLevel:R,startTime:le,expirationTime:_e,sortIndex:-1},le>ae?(R.sortIndex=le,l(p,R),r(h)===null&&R===r(p)&&(C?(M(X),X=-1):C=!0,ce(H,le-ae))):(R.sortIndex=_e,l(h,R),O||S||(O=!0,B||(B=!0,ie()))),R},n.unstable_shouldYield=$,n.unstable_wrapCallback=function(R){var W=A;return function(){var le=A;A=W;try{return R.apply(this,arguments)}finally{A=le}}}})(Ld)),Ld}var e1;function R2(){return e1||(e1=1,Dd.exports=w2()),Dd.exports}var zd={exports:{}},Re={};var t1;function N2(){if(t1)return Re;t1=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),A=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=A&&T[A]||T["@@iterator"],typeof T=="function"?T:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function x(T,V,Y){this.props=T,this.context=V,this.refs=E,this.updater=Y||O}x.prototype.isReactComponent={},x.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,V,"setState")},x.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=x.prototype;function L(T,V,Y){this.props=T,this.context=V,this.refs=E,this.updater=Y||O}var z=L.prototype=new M;z.constructor=L,C(z,x.prototype),z.isPureReactComponent=!0;var H=Array.isArray;function B(){}var X={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function re(T,V,Y){var oe=Y.ref;return{$$typeof:n,type:T,key:V,ref:oe!==void 0?oe:null,props:Y}}function $(T,V){return re(T.type,V,T.props)}function ne(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function ie(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Y){return V[Y]})}var he=/\/+/g;function pe(T,V){return typeof T=="object"&&T!==null&&T.key!=null?ie(""+T.key):V.toString(36)}function ce(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(B,B):(T.status="pending",T.then(function(V){T.status==="pending"&&(T.status="fulfilled",T.value=V)},function(V){T.status==="pending"&&(T.status="rejected",T.reason=V)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function R(T,V,Y,oe,K){var fe=typeof T;(fe==="undefined"||fe==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(fe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case n:case l:Se=!0;break;case y:return Se=T._init,R(Se(T._payload),V,Y,oe,K)}}if(Se)return K=K(T),Se=oe===""?"."+pe(T,0):oe,H(K)?(Y="",Se!=null&&(Y=Se.replace(he,"$&/")+"/"),R(K,V,Y,"",function(Be){return Be})):K!=null&&(ne(K)&&(K=$(K,Y+(K.key==null||T&&T.key===K.key?"":(""+K.key).replace(he,"$&/")+"/")+Se)),V.push(K)),1;Se=0;var Ee=oe===""?".":oe+":";if(H(T))for(var De=0;De<T.length;De++)oe=T[De],fe=Ee+pe(oe,De),Se+=R(oe,V,Y,fe,K);else if(De=S(T),typeof De=="function")for(T=De.call(T),De=0;!(oe=T.next()).done;)oe=oe.value,fe=Ee+pe(oe,De++),Se+=R(oe,V,Y,fe,K);else if(fe==="object"){if(typeof T.then=="function")return R(ce(T),V,Y,oe,K);throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Se}function W(T,V,Y){if(T==null)return T;var oe=[],K=0;return R(T,oe,"","",function(fe){return V.call(Y,fe,K++)}),oe}function le(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(Y){(T._status===0||T._status===-1)&&(T._status=1,T._result=Y)},function(Y){(T._status===0||T._status===-1)&&(T._status=2,T._result=Y)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var ae=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},_e={map:W,forEach:function(T,V,Y){W(T,function(){V.apply(this,arguments)},Y)},count:function(T){var V=0;return W(T,function(){V++}),V},toArray:function(T){return W(T,function(V){return V})||[]},only:function(T){if(!ne(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Re.Activity=b,Re.Children=_e,Re.Component=x,Re.Fragment=r,Re.Profiler=c,Re.PureComponent=L,Re.StrictMode=o,Re.Suspense=h,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,Re.__COMPILER_RUNTIME={__proto__:null,c:function(T){return X.H.useMemoCache(T)}},Re.cache=function(T){return function(){return T.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(T,V,Y){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var oe=C({},T.props),K=T.key;if(V!=null)for(fe in V.key!==void 0&&(K=""+V.key),V)!Z.call(V,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&V.ref===void 0||(oe[fe]=V[fe]);var fe=arguments.length-2;if(fe===1)oe.children=Y;else if(1<fe){for(var Se=Array(fe),Ee=0;Ee<fe;Ee++)Se[Ee]=arguments[Ee+2];oe.children=Se}return re(T.type,K,oe)},Re.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},Re.createElement=function(T,V,Y){var oe,K={},fe=null;if(V!=null)for(oe in V.key!==void 0&&(fe=""+V.key),V)Z.call(V,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(K[oe]=V[oe]);var Se=arguments.length-2;if(Se===1)K.children=Y;else if(1<Se){for(var Ee=Array(Se),De=0;De<Se;De++)Ee[De]=arguments[De+2];K.children=Ee}if(T&&T.defaultProps)for(oe in Se=T.defaultProps,Se)K[oe]===void 0&&(K[oe]=Se[oe]);return re(T,fe,K)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(T){return{$$typeof:m,render:T}},Re.isValidElement=ne,Re.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:le}},Re.memo=function(T,V){return{$$typeof:p,type:T,compare:V===void 0?null:V}},Re.startTransition=function(T){var V=X.T,Y={};X.T=Y;try{var oe=T(),K=X.S;K!==null&&K(Y,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(B,ae)}catch(fe){ae(fe)}finally{V!==null&&Y.types!==null&&(V.types=Y.types),X.T=V}},Re.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},Re.use=function(T){return X.H.use(T)},Re.useActionState=function(T,V,Y){return X.H.useActionState(T,V,Y)},Re.useCallback=function(T,V){return X.H.useCallback(T,V)},Re.useContext=function(T){return X.H.useContext(T)},Re.useDebugValue=function(){},Re.useDeferredValue=function(T,V){return X.H.useDeferredValue(T,V)},Re.useEffect=function(T,V){return X.H.useEffect(T,V)},Re.useEffectEvent=function(T){return X.H.useEffectEvent(T)},Re.useId=function(){return X.H.useId()},Re.useImperativeHandle=function(T,V,Y){return X.H.useImperativeHandle(T,V,Y)},Re.useInsertionEffect=function(T,V){return X.H.useInsertionEffect(T,V)},Re.useLayoutEffect=function(T,V){return X.H.useLayoutEffect(T,V)},Re.useMemo=function(T,V){return X.H.useMemo(T,V)},Re.useOptimistic=function(T,V){return X.H.useOptimistic(T,V)},Re.useReducer=function(T,V,Y){return X.H.useReducer(T,V,Y)},Re.useRef=function(T){return X.H.useRef(T)},Re.useState=function(T){return X.H.useState(T)},Re.useSyncExternalStore=function(T,V,Y){return X.H.useSyncExternalStore(T,V,Y)},Re.useTransition=function(){return X.H.useTransition()},Re.version="19.2.4",Re}var n1;function tu(){return n1||(n1=1,zd.exports=N2()),zd.exports}var kd={exports:{}},wn={};var a1;function M2(){if(a1)return wn;a1=1;var n=tu();function l(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(h,p,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:h,containerInfo:p,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return wn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,wn.createPortal=function(h,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(h,p,null,y)},wn.flushSync=function(h){var p=d.T,y=o.p;try{if(d.T=null,o.p=2,h)return h()}finally{d.T=p,o.p=y,o.d.f()}},wn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(h,p))},wn.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},wn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var y=p.as,b=m(y,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:A,fetchPriority:S}):y==="script"&&o.d.X(h,{crossOrigin:b,integrity:A,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},wn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=m(p.as,p.crossOrigin);o.d.M(h,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(h)},wn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,b=m(y,p.crossOrigin);o.d.L(h,y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},wn.preloadModule=function(h,p){if(typeof h=="string")if(p){var y=m(p.as,p.crossOrigin);o.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(h)},wn.requestFormReset=function(h){o.d.r(h)},wn.unstable_batchedUpdates=function(h,p){return h(p)},wn.useFormState=function(h,p,y){return d.H.useFormState(h,p,y)},wn.useFormStatus=function(){return d.H.useHostTransitionStatus()},wn.version="19.2.4",wn}var l1;function D2(){if(l1)return kd.exports;l1=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(l){console.error(l)}}return n(),kd.exports=M2(),kd.exports}var r1;function L2(){if(r1)return Ro;r1=1;var n=R2(),l=tu(),r=D2();function o(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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var u=s.alternate;if(u===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===a)return h(s),e;if(u===i)return h(s),t;u=u.sibling}throw Error(o(188))}if(a.return!==i.return)a=s,i=u;else{for(var g=!1,_=s.child;_;){if(_===a){g=!0,a=s,i=u;break}if(_===i){g=!0,i=s,a=u;break}_=_.sibling}if(!g){for(_=u.child;_;){if(_===a){g=!0,a=u,i=s;break}if(_===i){g=!0,i=u,a=s;break}_=_.sibling}if(!g)throw Error(o(189))}}if(a.alternate!==i)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,A=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case x:return"Profiler";case E:return"StrictMode";case H:return"Suspense";case B:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case L:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var ce=Array.isArray,R=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ae=[],_e=-1;function T(e){return{current:e}}function V(e){0>_e||(e.current=ae[_e],ae[_e]=null,_e--)}function Y(e,t){_e++,ae[_e]=e.current,e.current=t}var oe=T(null),K=T(null),fe=T(null),Se=T(null);function Ee(e,t){switch(Y(fe,t),Y(K,e),Y(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_0(t),e=A0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(oe),Y(oe,e)}function De(){V(oe),V(K),V(fe)}function Be(e){e.memoizedState!==null&&Y(Se,e);var t=oe.current,a=A0(t,e.type);t!==a&&(Y(K,e),Y(oe,a))}function ut(e){K.current===e&&(V(oe),V(K)),Se.current===e&&(V(Se),Eo._currentValue=le)}var de,ee;function ve(e){if(de===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||"",ee=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+de+e+ee}var Ye=!1;function Tt(e,t){if(!e||Ye)return"";Ye=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(G){var I=G}Reflect.construct(e,[],P)}else{try{P.call()}catch(G){I=G}e.call(P.prototype)}}else{try{throw Error()}catch(G){I=G}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(G){if(G&&I&&typeof G.stack=="string")return[G.stack,I.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),g=u[0],_=u[1];if(g&&_){var w=g.split(`
4
- `),U=_.split(`
5
- `);for(s=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(i===w.length||s===U.length)for(i=w.length-1,s=U.length-1;1<=i&&0<=s&&w[i]!==U[s];)s--;for(;1<=i&&0<=s;i--,s--)if(w[i]!==U[s]){if(i!==1||s!==1)do if(i--,s--,0>s||w[i]!==U[s]){var F=`
6
- `+w[i].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=i&&0<=s);break}}}finally{Ye=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ve(a):""}function ht(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve("Lazy");case 13:return e.child!==t&&t!==null?ve("Suspense Fallback"):ve("Suspense");case 19:return ve("SuspenseList");case 0:case 15:return Tt(e.type,!1);case 11:return Tt(e.type.render,!1);case 1:return Tt(e.type,!0);case 31:return ve("Activity");default:return""}}function qe(e){try{var t="",a=null;do t+=ht(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
7
- Error generating stack: `+i.message+`
8
- `+i.stack}}var _t=Object.prototype.hasOwnProperty,At=n.unstable_scheduleCallback,Oe=n.unstable_cancelCallback,je=n.unstable_shouldYield,zt=n.unstable_requestPaint,Ct=n.unstable_now,hn=n.unstable_getCurrentPriorityLevel,Nn=n.unstable_ImmediatePriority,xt=n.unstable_UserBlockingPriority,Kt=n.unstable_NormalPriority,ta=n.unstable_LowPriority,xn=n.unstable_IdlePriority,mn=n.log,Mn=n.unstable_setDisableYieldValue,on=null,mt=null;function Xe(e){if(typeof mn=="function"&&Mn(e),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(on,e)}catch{}}var Ot=Math.clz32?Math.clz32:Vn,na=Math.log,wt=Math.LN2;function Vn(e){return e>>>=0,e===0?32:31-(na(e)/wt|0)|0}var sn=256,Dn=262144,Yn=4194304;function pn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function va(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var s=0,u=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var _=i&134217727;return _!==0?(i=_&~u,i!==0?s=pn(i):(g&=_,g!==0?s=pn(g):a||(a=_&~e,a!==0&&(s=pn(a))))):(_=i&~u,_!==0?s=pn(_):g!==0?s=pn(g):a||(a=i&~e,a!==0&&(s=pn(a)))),s===0?0:t!==0&&t!==s&&(t&u)===0&&(u=s&-s,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:s}function tl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function jt(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 ya(){var e=Yn;return Yn<<=1,(Yn&62914560)===0&&(Yn=4194304),e}function gr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function za(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nl(e,t,a,i,s,u){var g=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,U=e.hiddenUpdates;for(a=g&~a;0<a;){var F=31-Ot(a),P=1<<F;_[F]=0,w[F]=-1;var I=U[F];if(I!==null)for(U[F]=null,F=0;F<I.length;F++){var G=I[F];G!==null&&(G.lane&=-536870913)}a&=~P}i!==0&&vr(e,i,0),u!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=u&~(g&~t))}function vr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Ot(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function yr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Ot(a),s=1<<i;s&t|e[i]&t&&(e[i]|=t),a&=~s}}function Jr(e,t){var a=t&-t;return a=(a&42)!==0?1:pt(a),(a&(e.suspendedLanes|t))!==0?0:a}function pt(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 Xn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xa(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:Y0(e.type))}function al(e,t){var a=W.p;try{return W.p=e,t()}finally{W.p=a}}var bn=Math.random().toString(36).slice(2),Gt="__reactFiber$"+bn,St="__reactProps$"+bn,aa="__reactContainer$"+bn,ll="__reactEvents$"+bn,Vt="__reactListeners$"+bn,la="__reactHandles$"+bn,Ll="__reactResources$"+bn,be="__reactMarker$"+bn;function N(e){delete e[Gt],delete e[St],delete e[ll],delete e[Vt],delete e[la]}function te(e){var t=e[Gt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[aa]||a[Gt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=w0(e);e!==null;){if(a=e[Gt])return a;e=w0(e)}return t}e=a,a=e.parentNode}return null}function ge(e){if(e=e[Gt]||e[aa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function lt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function gt(e){var t=e[Ll];return t||(t=e[Ll]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function we(e){e[be]=!0}var cn=new Set,Fn={};function On(e,t){ba(e,t),ba(e+"Capture",t)}function ba(e,t){for(Fn[e]=t,e=0;e<t.length;e++)cn.add(t[e])}var Jt=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]*$"),br={},_r={};function Au(e){return _t.call(_r,e)?!0:_t.call(br,e)?!1:Jt.test(e)?_r[e]=!0:(br[e]=!0,!1)}function zl(e,t,a){if(Au(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ar(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 ka(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function es(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ui(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){a=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){if(!e._valueTracker){var t=es(e)?"checked":"value";e._valueTracker=Ui(e,t,""+e[t])}}function ts(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=es(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Zr(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 Cu=/[\n"\\]/g;function _a(e){return e.replace(Cu,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Su(e,t,a,i,s,u,g,_){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+un(t)):e.value!==""+un(t)&&(e.value=""+un(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Eu(e,g,un(t)):a!=null?Eu(e,g,un(a)):i!=null&&e.removeAttribute("value"),s==null&&u!=null&&(e.defaultChecked=!!u),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+un(_):e.removeAttribute("name")}function mm(e,t,a,i,s,u,g,_){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Hi(e);return}a=a!=null?""+un(a):"",t=t!=null?""+un(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=_?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Hi(e)}function Eu(e,t,a){t==="number"&&Zr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Wr(e,t,a,i){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&i&&(e[a].defaultSelected=!0)}else{for(a=""+un(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function pm(e,t,a){if(t!=null&&(t=""+un(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+un(a):""}function gm(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(o(92));if(ce(i)){if(1<i.length)throw Error(o(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=un(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),Hi(e)}function Pr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var _b=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vm(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||_b.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ym(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&a[s]!==i&&vm(e,s,i)}else for(var u in t)t.hasOwnProperty(u)&&vm(e,u,t[u])}function Tu(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 Ab=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"]]),Cb=/^[\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 ns(e){return Cb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function rl(){}var xu=null;function Ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qr=null,$r=null;function bm(e){var t=ge(e);if(t&&(e=t.stateNode)){var a=e[St]||null;e:switch(e=t.stateNode,t.type){case"input":if(Su(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="'+_a(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var s=i[St]||null;if(!s)throw Error(o(90));Su(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&ts(i)}break e;case"textarea":pm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Wr(e,!!a.multiple,t,!1)}}}var wu=!1;function _m(e,t,a){if(wu)return e(t,a);wu=!0;try{var i=e(t);return i}finally{if(wu=!1,(Qr!==null||$r!==null)&&(Vs(),Qr&&(t=Qr,e=$r,$r=Qr=null,bm(t),e)))for(t=0;t<e.length;t++)bm(e[t])}}function qi(e,t){var a=e.stateNode;if(a===null)return null;var i=a[St]||null;if(i===null)return null;a=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var il=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ru=!1;if(il)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{Ru=!1}var kl=null,Nu=null,as=null;function Am(){if(as)return as;var e,t=Nu,a=t.length,i,s="value"in kl?kl.value:kl.textContent,u=s.length;for(e=0;e<a&&t[e]===s[e];e++);var g=a-e;for(i=1;i<=g&&t[a-i]===s[u-i];i++);return as=s.slice(e,1<i?1-i:void 0)}function ls(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 rs(){return!0}function Cm(){return!1}function Kn(e){function t(a,i,s,u,g){this._reactName=a,this._targetInst=s,this.type=i,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(u):u[_]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?rs:Cm,this.isPropagationStopped=Cm,this}return b(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=rs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=rs)},persist:function(){},isPersistent:rs}),t}var Cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},is=Kn(Cr),Gi=b({},Cr,{view:0,detail:0}),Sb=Kn(Gi),Mu,Du,Vi,os=b({},Gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Vi&&(Vi&&e.type==="mousemove"?(Mu=e.screenX-Vi.screenX,Du=e.screenY-Vi.screenY):Du=Mu=0,Vi=e),Mu)},movementY:function(e){return"movementY"in e?e.movementY:Du}}),Sm=Kn(os),Eb=b({},os,{dataTransfer:0}),Tb=Kn(Eb),xb=b({},Gi,{relatedTarget:0}),Lu=Kn(xb),Ob=b({},Cr,{animationName:0,elapsedTime:0,pseudoElement:0}),wb=Kn(Ob),Rb=b({},Cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Nb=Kn(Rb),Mb=b({},Cr,{data:0}),Em=Kn(Mb),Db={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lb={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"},zb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zb[e])?!!t[e]:!1}function zu(){return kb}var Bb=b({},Gi,{key:function(e){if(e.key){var t=Db[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,charCode:function(e){return e.type==="keypress"?ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jb=Kn(Bb),Ub=b({},os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tm=Kn(Ub),Hb=b({},Gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),qb=Kn(Hb),Ib=b({},Cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gb=Kn(Ib),Vb=b({},os,{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}),Yb=Kn(Vb),Xb=b({},Cr,{newState:0,oldState:0}),Fb=Kn(Xb),Kb=[9,13,27,32],ku=il&&"CompositionEvent"in window,Yi=null;il&&"documentMode"in document&&(Yi=document.documentMode);var Jb=il&&"TextEvent"in window&&!Yi,xm=il&&(!ku||Yi&&8<Yi&&11>=Yi),Om=" ",wm=!1;function Rm(e,t){switch(e){case"keyup":return Kb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ei=!1;function Zb(e,t){switch(e){case"compositionend":return Nm(t);case"keypress":return t.which!==32?null:(wm=!0,Om);case"textInput":return e=t.data,e===Om&&wm?null:e;default:return null}}function Wb(e,t){if(ei)return e==="compositionend"||!ku&&Rm(e,t)?(e=Am(),as=Nu=kl=null,ei=!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 xm&&t.locale!=="ko"?null:t.data;default:return null}}var Pb={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 Mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pb[e.type]:t==="textarea"}function Dm(e,t,a,i){Qr?$r?$r.push(i):$r=[i]:Qr=i,t=Ws(t,"onChange"),0<t.length&&(a=new is("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Xi=null,Fi=null;function Qb(e){m0(e,0)}function ss(e){var t=lt(e);if(ts(t))return e}function Lm(e,t){if(e==="change")return t}var zm=!1;if(il){var Bu;if(il){var ju="oninput"in document;if(!ju){var km=document.createElement("div");km.setAttribute("oninput","return;"),ju=typeof km.oninput=="function"}Bu=ju}else Bu=!1;zm=Bu&&(!document.documentMode||9<document.documentMode)}function Bm(){Xi&&(Xi.detachEvent("onpropertychange",jm),Fi=Xi=null)}function jm(e){if(e.propertyName==="value"&&ss(Fi)){var t=[];Dm(t,Fi,e,Ou(e)),_m(Qb,t)}}function $b(e,t,a){e==="focusin"?(Bm(),Xi=t,Fi=a,Xi.attachEvent("onpropertychange",jm)):e==="focusout"&&Bm()}function e_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ss(Fi)}function t_(e,t){if(e==="click")return ss(t)}function n_(e,t){if(e==="input"||e==="change")return ss(t)}function a_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ra=typeof Object.is=="function"?Object.is:a_;function Ki(e,t){if(ra(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var s=a[i];if(!_t.call(t,s)||!ra(e[s],t[s]))return!1}return!0}function Um(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hm(e,t){var a=Um(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Um(a)}}function qm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Im(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zr(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=Zr(e.document)}return t}function Uu(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 l_=il&&"documentMode"in document&&11>=document.documentMode,ti=null,Hu=null,Ji=null,qu=!1;function Gm(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;qu||ti==null||ti!==Zr(i)||(i=ti,"selectionStart"in i&&Uu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ji&&Ki(Ji,i)||(Ji=i,i=Ws(Hu,"onSelect"),0<i.length&&(t=new is("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ti)))}function Sr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ni={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionrun:Sr("Transition","TransitionRun"),transitionstart:Sr("Transition","TransitionStart"),transitioncancel:Sr("Transition","TransitionCancel"),transitionend:Sr("Transition","TransitionEnd")},Iu={},Vm={};il&&(Vm=document.createElement("div").style,"AnimationEvent"in window||(delete ni.animationend.animation,delete ni.animationiteration.animation,delete ni.animationstart.animation),"TransitionEvent"in window||delete ni.transitionend.transition);function Er(e){if(Iu[e])return Iu[e];if(!ni[e])return e;var t=ni[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Vm)return Iu[e]=t[a];return e}var Ym=Er("animationend"),Xm=Er("animationiteration"),Fm=Er("animationstart"),r_=Er("transitionrun"),i_=Er("transitionstart"),o_=Er("transitioncancel"),Km=Er("transitionend"),Jm=new Map,Gu="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(" ");Gu.push("scrollEnd");function Ba(e,t){Jm.set(e,t),On(t,[e])}var cs=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)},Aa=[],ai=0,Vu=0;function us(){for(var e=ai,t=Vu=ai=0;t<e;){var a=Aa[t];Aa[t++]=null;var i=Aa[t];Aa[t++]=null;var s=Aa[t];Aa[t++]=null;var u=Aa[t];if(Aa[t++]=null,i!==null&&s!==null){var g=i.pending;g===null?s.next=s:(s.next=g.next,g.next=s),i.pending=s}u!==0&&Zm(a,s,u)}}function fs(e,t,a,i){Aa[ai++]=e,Aa[ai++]=t,Aa[ai++]=a,Aa[ai++]=i,Vu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Yu(e,t,a,i){return fs(e,t,a,i),ds(e)}function Tr(e,t){return fs(e,null,null,t),ds(e)}function Zm(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var s=!1,u=e.return;u!==null;)u.childLanes|=a,i=u.alternate,i!==null&&(i.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(s=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,s&&t!==null&&(s=31-Ot(a),e=u.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=a|536870912),u):null}function ds(e){if(50<vo)throw vo=0,ed=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function s_(e,t,a,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ia(e,t,a,i){return new s_(e,t,a,i)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ol(e,t){var a=e.alternate;return a===null?(a=ia(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 Wm(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 hs(e,t,a,i,s,u){var g=0;if(i=e,typeof e=="function")Xu(e)&&(g=1);else if(typeof e=="string")g=h2(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=ia(31,a,t,s),e.elementType=re,e.lanes=u,e;case C:return xr(a.children,s,u,t);case E:g=8,s|=24;break;case x:return e=ia(12,a,t,s|2),e.elementType=x,e.lanes=u,e;case H:return e=ia(13,a,t,s),e.elementType=H,e.lanes=u,e;case B:return e=ia(19,a,t,s),e.elementType=B,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:g=10;break e;case M:g=9;break e;case z:g=11;break e;case X:g=14;break e;case Z:g=16,i=null;break e}g=29,a=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=ia(g,a,t,s),t.elementType=e,t.type=i,t.lanes=u,t}function xr(e,t,a,i){return e=ia(7,e,i,t),e.lanes=a,e}function Fu(e,t,a){return e=ia(6,e,null,t),e.lanes=a,e}function Pm(e){var t=ia(18,null,null,0);return t.stateNode=e,t}function Ku(e,t,a){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qm=new WeakMap;function Ca(e,t){if(typeof e=="object"&&e!==null){var a=Qm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:qe(t)},Qm.set(e,t),t)}return{value:e,source:t,stack:qe(t)}}var ri=[],ii=0,ms=null,Zi=0,Sa=[],Ea=0,Bl=null,Fa=1,Ka="";function sl(e,t){ri[ii++]=Zi,ri[ii++]=ms,ms=e,Zi=t}function $m(e,t,a){Sa[Ea++]=Fa,Sa[Ea++]=Ka,Sa[Ea++]=Bl,Bl=e;var i=Fa;e=Ka;var s=32-Ot(i)-1;i&=~(1<<s),a+=1;var u=32-Ot(t)+s;if(30<u){var g=s-s%5;u=(i&(1<<g)-1).toString(32),i>>=g,s-=g,Fa=1<<32-Ot(t)+s|a<<s|i,Ka=u+e}else Fa=1<<u|a<<s|i,Ka=e}function Ju(e){e.return!==null&&(sl(e,1),$m(e,1,0))}function Zu(e){for(;e===ms;)ms=ri[--ii],ri[ii]=null,Zi=ri[--ii],ri[ii]=null;for(;e===Bl;)Bl=Sa[--Ea],Sa[Ea]=null,Ka=Sa[--Ea],Sa[Ea]=null,Fa=Sa[--Ea],Sa[Ea]=null}function ep(e,t){Sa[Ea++]=Fa,Sa[Ea++]=Ka,Sa[Ea++]=Bl,Fa=t.id,Ka=t.overflow,Bl=e}var _n=null,Nt=null,Ze=!1,jl=null,Ta=!1,Wu=Error(o(519));function Ul(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wi(Ca(t,e)),Wu}function tp(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Gt]=e,t[St]=i,a){case"dialog":Ve("cancel",t),Ve("close",t);break;case"iframe":case"object":case"embed":Ve("load",t);break;case"video":case"audio":for(a=0;a<bo.length;a++)Ve(bo[a],t);break;case"source":Ve("error",t);break;case"img":case"image":case"link":Ve("error",t),Ve("load",t);break;case"details":Ve("toggle",t);break;case"input":Ve("invalid",t),mm(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ve("invalid",t);break;case"textarea":Ve("invalid",t),gm(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||y0(t.textContent,a)?(i.popover!=null&&(Ve("beforetoggle",t),Ve("toggle",t)),i.onScroll!=null&&Ve("scroll",t),i.onScrollEnd!=null&&Ve("scrollend",t),i.onClick!=null&&(t.onclick=rl),t=!0):t=!1,t||Ul(e,!0)}function np(e){for(_n=e.return;_n;)switch(_n.tag){case 5:case 31:case 13:Ta=!1;return;case 27:case 3:Ta=!0;return;default:_n=_n.return}}function oi(e){if(e!==_n)return!1;if(!Ze)return np(e),Ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||pd(e.type,e.memoizedProps)),a=!a),a&&Nt&&Ul(e),np(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Nt=O0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Nt=O0(e)}else t===27?(t=Nt,Ql(e.type)?(e=_d,_d=null,Nt=e):Nt=t):Nt=_n?Oa(e.stateNode.nextSibling):null;return!0}function Or(){Nt=_n=null,Ze=!1}function Pu(){var e=jl;return e!==null&&(Pn===null?Pn=e:Pn.push.apply(Pn,e),jl=null),e}function Wi(e){jl===null?jl=[e]:jl.push(e)}var Qu=T(null),wr=null,cl=null;function Hl(e,t,a){Y(Qu,t._currentValue),t._currentValue=a}function ul(e){e._currentValue=Qu.current,V(Qu)}function $u(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function ef(e,t,a,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var u=s.dependencies;if(u!==null){var g=s.child;u=u.firstContext;e:for(;u!==null;){var _=u;u=s;for(var w=0;w<t.length;w++)if(_.context===t[w]){u.lanes|=a,_=u.alternate,_!==null&&(_.lanes|=a),$u(u.return,a,e),i||(g=null);break e}u=_.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(o(341));g.lanes|=a,u=g.alternate,u!==null&&(u.lanes|=a),$u(g,a,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function si(e,t,a,i){e=null;for(var s=t,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var _=s.type;ra(s.pendingProps.value,g.value)||(e!==null?e.push(_):e=[_])}}else if(s===Se.current){if(g=s.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Eo):e=[Eo])}s=s.return}e!==null&&ef(t,e,a,i),t.flags|=262144}function ps(e){for(e=e.firstContext;e!==null;){if(!ra(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Rr(e){wr=e,cl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function An(e){return ap(wr,e)}function gs(e,t){return wr===null&&Rr(e),ap(e,t)}function ap(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},cl===null){if(e===null)throw Error(o(308));cl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else cl=cl.next=t;return a}var c_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},u_=n.unstable_scheduleCallback,f_=n.unstable_NormalPriority,Qt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tf(){return{controller:new c_,data:new Map,refCount:0}}function Pi(e){e.refCount--,e.refCount===0&&u_(f_,function(){e.controller.abort()})}var Qi=null,nf=0,ci=0,ui=null;function d_(e,t){if(Qi===null){var a=Qi=[];nf=0,ci=id(),ui={status:"pending",value:void 0,then:function(i){a.push(i)}}}return nf++,t.then(lp,lp),t}function lp(){if(--nf===0&&Qi!==null){ui!==null&&(ui.status="fulfilled");var e=Qi;Qi=null,ci=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function h_(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),i}var rp=R.S;R.S=function(e,t){Gg=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&d_(e,t),rp!==null&&rp(e,t)};var Nr=T(null);function af(){var e=Nr.current;return e!==null?e:Et.pooledCache}function vs(e,t){t===null?Y(Nr,Nr.current):Y(Nr,t.pool)}function ip(){var e=af();return e===null?null:{parent:Qt._currentValue,pool:e}}var fi=Error(o(460)),lf=Error(o(474)),ys=Error(o(542)),bs={then:function(){}};function op(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sp(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(rl,rl),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,up(e),e;default:if(typeof t.status=="string")t.then(rl,rl);else{if(e=Et,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,up(e),e}throw Dr=t,fi}}function Mr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Dr=a,fi):a}}var Dr=null;function cp(){if(Dr===null)throw Error(o(459));var e=Dr;return Dr=null,e}function up(e){if(e===fi||e===ys)throw Error(o(483))}var di=null,$i=0;function _s(e){var t=$i;return $i+=1,di===null&&(di=[]),sp(di,e,t)}function eo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function As(e,t){throw t.$$typeof===A?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fp(e){function t(k,D){if(e){var j=k.deletions;j===null?(k.deletions=[D],k.flags|=16):j.push(D)}}function a(k,D){if(!e)return null;for(;D!==null;)t(k,D),D=D.sibling;return null}function i(k){for(var D=new Map;k!==null;)k.key!==null?D.set(k.key,k):D.set(k.index,k),k=k.sibling;return D}function s(k,D){return k=ol(k,D),k.index=0,k.sibling=null,k}function u(k,D,j){return k.index=j,e?(j=k.alternate,j!==null?(j=j.index,j<D?(k.flags|=67108866,D):j):(k.flags|=67108866,D)):(k.flags|=1048576,D)}function g(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function _(k,D,j,J){return D===null||D.tag!==6?(D=Fu(j,k.mode,J),D.return=k,D):(D=s(D,j),D.return=k,D)}function w(k,D,j,J){var Te=j.type;return Te===C?F(k,D,j.props.children,J,j.key):D!==null&&(D.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===Z&&Mr(Te)===D.type)?(D=s(D,j.props),eo(D,j),D.return=k,D):(D=hs(j.type,j.key,j.props,null,k.mode,J),eo(D,j),D.return=k,D)}function U(k,D,j,J){return D===null||D.tag!==4||D.stateNode.containerInfo!==j.containerInfo||D.stateNode.implementation!==j.implementation?(D=Ku(j,k.mode,J),D.return=k,D):(D=s(D,j.children||[]),D.return=k,D)}function F(k,D,j,J,Te){return D===null||D.tag!==7?(D=xr(j,k.mode,J,Te),D.return=k,D):(D=s(D,j),D.return=k,D)}function P(k,D,j){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Fu(""+D,k.mode,j),D.return=k,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return j=hs(D.type,D.key,D.props,null,k.mode,j),eo(j,D),j.return=k,j;case O:return D=Ku(D,k.mode,j),D.return=k,D;case Z:return D=Mr(D),P(k,D,j)}if(ce(D)||ie(D))return D=xr(D,k.mode,j,null),D.return=k,D;if(typeof D.then=="function")return P(k,_s(D),j);if(D.$$typeof===L)return P(k,gs(k,D),j);As(k,D)}return null}function I(k,D,j,J){var Te=D!==null?D.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return Te!==null?null:_(k,D,""+j,J);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return j.key===Te?w(k,D,j,J):null;case O:return j.key===Te?U(k,D,j,J):null;case Z:return j=Mr(j),I(k,D,j,J)}if(ce(j)||ie(j))return Te!==null?null:F(k,D,j,J,null);if(typeof j.then=="function")return I(k,D,_s(j),J);if(j.$$typeof===L)return I(k,D,gs(k,j),J);As(k,j)}return null}function G(k,D,j,J,Te){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return k=k.get(j)||null,_(D,k,""+J,Te);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case S:return k=k.get(J.key===null?j:J.key)||null,w(D,k,J,Te);case O:return k=k.get(J.key===null?j:J.key)||null,U(D,k,J,Te);case Z:return J=Mr(J),G(k,D,j,J,Te)}if(ce(J)||ie(J))return k=k.get(j)||null,F(D,k,J,Te,null);if(typeof J.then=="function")return G(k,D,j,_s(J),Te);if(J.$$typeof===L)return G(k,D,j,gs(D,J),Te);As(D,J)}return null}function ye(k,D,j,J){for(var Te=null,rt=null,Ae=D,Le=D=0,Ke=null;Ae!==null&&Le<j.length;Le++){Ae.index>Le?(Ke=Ae,Ae=null):Ke=Ae.sibling;var it=I(k,Ae,j[Le],J);if(it===null){Ae===null&&(Ae=Ke);break}e&&Ae&&it.alternate===null&&t(k,Ae),D=u(it,D,Le),rt===null?Te=it:rt.sibling=it,rt=it,Ae=Ke}if(Le===j.length)return a(k,Ae),Ze&&sl(k,Le),Te;if(Ae===null){for(;Le<j.length;Le++)Ae=P(k,j[Le],J),Ae!==null&&(D=u(Ae,D,Le),rt===null?Te=Ae:rt.sibling=Ae,rt=Ae);return Ze&&sl(k,Le),Te}for(Ae=i(Ae);Le<j.length;Le++)Ke=G(Ae,k,Le,j[Le],J),Ke!==null&&(e&&Ke.alternate!==null&&Ae.delete(Ke.key===null?Le:Ke.key),D=u(Ke,D,Le),rt===null?Te=Ke:rt.sibling=Ke,rt=Ke);return e&&Ae.forEach(function(ar){return t(k,ar)}),Ze&&sl(k,Le),Te}function xe(k,D,j,J){if(j==null)throw Error(o(151));for(var Te=null,rt=null,Ae=D,Le=D=0,Ke=null,it=j.next();Ae!==null&&!it.done;Le++,it=j.next()){Ae.index>Le?(Ke=Ae,Ae=null):Ke=Ae.sibling;var ar=I(k,Ae,it.value,J);if(ar===null){Ae===null&&(Ae=Ke);break}e&&Ae&&ar.alternate===null&&t(k,Ae),D=u(ar,D,Le),rt===null?Te=ar:rt.sibling=ar,rt=ar,Ae=Ke}if(it.done)return a(k,Ae),Ze&&sl(k,Le),Te;if(Ae===null){for(;!it.done;Le++,it=j.next())it=P(k,it.value,J),it!==null&&(D=u(it,D,Le),rt===null?Te=it:rt.sibling=it,rt=it);return Ze&&sl(k,Le),Te}for(Ae=i(Ae);!it.done;Le++,it=j.next())it=G(Ae,k,Le,it.value,J),it!==null&&(e&&it.alternate!==null&&Ae.delete(it.key===null?Le:it.key),D=u(it,D,Le),rt===null?Te=it:rt.sibling=it,rt=it);return e&&Ae.forEach(function(E2){return t(k,E2)}),Ze&&sl(k,Le),Te}function bt(k,D,j,J){if(typeof j=="object"&&j!==null&&j.type===C&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case S:e:{for(var Te=j.key;D!==null;){if(D.key===Te){if(Te=j.type,Te===C){if(D.tag===7){a(k,D.sibling),J=s(D,j.props.children),J.return=k,k=J;break e}}else if(D.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===Z&&Mr(Te)===D.type){a(k,D.sibling),J=s(D,j.props),eo(J,j),J.return=k,k=J;break e}a(k,D);break}else t(k,D);D=D.sibling}j.type===C?(J=xr(j.props.children,k.mode,J,j.key),J.return=k,k=J):(J=hs(j.type,j.key,j.props,null,k.mode,J),eo(J,j),J.return=k,k=J)}return g(k);case O:e:{for(Te=j.key;D!==null;){if(D.key===Te)if(D.tag===4&&D.stateNode.containerInfo===j.containerInfo&&D.stateNode.implementation===j.implementation){a(k,D.sibling),J=s(D,j.children||[]),J.return=k,k=J;break e}else{a(k,D);break}else t(k,D);D=D.sibling}J=Ku(j,k.mode,J),J.return=k,k=J}return g(k);case Z:return j=Mr(j),bt(k,D,j,J)}if(ce(j))return ye(k,D,j,J);if(ie(j)){if(Te=ie(j),typeof Te!="function")throw Error(o(150));return j=Te.call(j),xe(k,D,j,J)}if(typeof j.then=="function")return bt(k,D,_s(j),J);if(j.$$typeof===L)return bt(k,D,gs(k,j),J);As(k,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,D!==null&&D.tag===6?(a(k,D.sibling),J=s(D,j),J.return=k,k=J):(a(k,D),J=Fu(j,k.mode,J),J.return=k,k=J),g(k)):a(k,D)}return function(k,D,j,J){try{$i=0;var Te=bt(k,D,j,J);return di=null,Te}catch(Ae){if(Ae===fi||Ae===ys)throw Ae;var rt=ia(29,Ae,null,k.mode);return rt.lanes=J,rt.return=k,rt}}}var Lr=fp(!0),dp=fp(!1),ql=!1;function rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function of(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 Il(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Gl(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(st&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=ds(e),Zm(e,null,a),t}return fs(e,i,t,a),ds(e)}function to(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,yr(e,a)}}function sf(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var s=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?s=u=g:u=u.next=g,a=a.next}while(a!==null);u===null?s=u=t:u=u.next=t}else s=u=t;a={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var cf=!1;function no(){if(cf){var e=ui;if(e!==null)throw e}}function ao(e,t,a,i){cf=!1;var s=e.updateQueue;ql=!1;var u=s.firstBaseUpdate,g=s.lastBaseUpdate,_=s.shared.pending;if(_!==null){s.shared.pending=null;var w=_,U=w.next;w.next=null,g===null?u=U:g.next=U,g=w;var F=e.alternate;F!==null&&(F=F.updateQueue,_=F.lastBaseUpdate,_!==g&&(_===null?F.firstBaseUpdate=U:_.next=U,F.lastBaseUpdate=w))}if(u!==null){var P=s.baseState;g=0,F=U=w=null,_=u;do{var I=_.lane&-536870913,G=I!==_.lane;if(G?(Fe&I)===I:(i&I)===I){I!==0&&I===ci&&(cf=!0),F!==null&&(F=F.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var ye=e,xe=_;I=t;var bt=a;switch(xe.tag){case 1:if(ye=xe.payload,typeof ye=="function"){P=ye.call(bt,P,I);break e}P=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=xe.payload,I=typeof ye=="function"?ye.call(bt,P,I):ye,I==null)break e;P=b({},P,I);break e;case 2:ql=!0}}I=_.callback,I!==null&&(e.flags|=64,G&&(e.flags|=8192),G=s.callbacks,G===null?s.callbacks=[I]:G.push(I))}else G={lane:I,tag:_.tag,payload:_.payload,callback:_.callback,next:null},F===null?(U=F=G,w=P):F=F.next=G,g|=I;if(_=_.next,_===null){if(_=s.shared.pending,_===null)break;G=_,_=G.next,G.next=null,s.lastBaseUpdate=G,s.shared.pending=null}}while(!0);F===null&&(w=P),s.baseState=w,s.firstBaseUpdate=U,s.lastBaseUpdate=F,u===null&&(s.shared.lanes=0),Kl|=g,e.lanes=g,e.memoizedState=P}}function hp(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function mp(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)hp(a[e],t)}var hi=T(null),Cs=T(0);function pp(e,t){e=bl,Y(Cs,e),Y(hi,t),bl=e|t.baseLanes}function uf(){Y(Cs,bl),Y(hi,hi.current)}function ff(){bl=Cs.current,V(hi),V(Cs)}var oa=T(null),xa=null;function Vl(e){var t=e.alternate;Y(Zt,Zt.current&1),Y(oa,e),xa===null&&(t===null||hi.current!==null||t.memoizedState!==null)&&(xa=e)}function df(e){Y(Zt,Zt.current),Y(oa,e),xa===null&&(xa=e)}function gp(e){e.tag===22?(Y(Zt,Zt.current),Y(oa,e),xa===null&&(xa=e)):Yl()}function Yl(){Y(Zt,Zt.current),Y(oa,oa.current)}function sa(e){V(oa),xa===e&&(xa=null),V(Zt)}var Zt=T(0);function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||yd(a)||bd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fl=0,Me=null,vt=null,$t=null,Es=!1,mi=!1,zr=!1,Ts=0,lo=0,pi=null,m_=0;function Yt(){throw Error(o(321))}function hf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ra(e[a],t[a]))return!1;return!0}function mf(e,t,a,i,s,u){return fl=u,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?$p:Rf,zr=!1,u=a(i,s),zr=!1,mi&&(u=yp(t,a,i,s)),vp(e),u}function vp(e){R.H=oo;var t=vt!==null&&vt.next!==null;if(fl=0,$t=vt=Me=null,Es=!1,lo=0,pi=null,t)throw Error(o(300));e===null||en||(e=e.dependencies,e!==null&&ps(e)&&(en=!0))}function yp(e,t,a,i){Me=e;var s=0;do{if(mi&&(pi=null),lo=0,mi=!1,25<=s)throw Error(o(301));if(s+=1,$t=vt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=eg,u=t(a,i)}while(mi);return u}function p_(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?ro(t):t,e=e.useState()[0],(vt!==null?vt.memoizedState:null)!==e&&(Me.flags|=1024),t}function pf(){var e=Ts!==0;return Ts=0,e}function gf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function vf(e){if(Es){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Es=!1}fl=0,$t=vt=Me=null,mi=!1,lo=Ts=0,pi=null}function Ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?Me.memoizedState=$t=e:$t=$t.next=e,$t}function Wt(){if(vt===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=vt.next;var t=$t===null?Me.memoizedState:$t.next;if(t!==null)$t=t,vt=e;else{if(e===null)throw Me.alternate===null?Error(o(467)):Error(o(310));vt=e,e={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},$t===null?Me.memoizedState=$t=e:$t=$t.next=e}return $t}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ro(e){var t=lo;return lo+=1,pi===null&&(pi=[]),e=sp(pi,e,t),t=Me,($t===null?t.memoizedState:$t.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?$p:Rf),e}function Os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ro(e);if(e.$$typeof===L)return An(e)}throw Error(o(438,String(e)))}function yf(e){var t=null,a=Me.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Me.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=xs(),Me.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=$;return t.index++,a}function dl(e,t){return typeof t=="function"?t(e):t}function ws(e){var t=Wt();return bf(t,vt,e)}function bf(e,t,a){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=a;var s=e.baseQueue,u=i.pending;if(u!==null){if(s!==null){var g=s.next;s.next=u.next,u.next=g}t.baseQueue=s=u,i.pending=null}if(u=e.baseState,s===null)e.memoizedState=u;else{t=s.next;var _=g=null,w=null,U=t,F=!1;do{var P=U.lane&-536870913;if(P!==U.lane?(Fe&P)===P:(fl&P)===P){var I=U.revertLane;if(I===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),P===ci&&(F=!0);else if((fl&I)===I){U=U.next,I===ci&&(F=!0);continue}else P={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},w===null?(_=w=P,g=u):w=w.next=P,Me.lanes|=I,Kl|=I;P=U.action,zr&&a(u,P),u=U.hasEagerState?U.eagerState:a(u,P)}else I={lane:P,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},w===null?(_=w=I,g=u):w=w.next=I,Me.lanes|=P,Kl|=P;U=U.next}while(U!==null&&U!==t);if(w===null?g=u:w.next=_,!ra(u,e.memoizedState)&&(en=!0,F&&(a=ui,a!==null)))throw a;e.memoizedState=u,e.baseState=g,e.baseQueue=w,i.lastRenderedState=u}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function _f(e){var t=Wt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=a.dispatch,s=a.pending,u=t.memoizedState;if(s!==null){a.pending=null;var g=s=s.next;do u=e(u,g.action),g=g.next;while(g!==s);ra(u,t.memoizedState)||(en=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,i]}function bp(e,t,a){var i=Me,s=Wt(),u=Ze;if(u){if(a===void 0)throw Error(o(407));a=a()}else a=t();var g=!ra((vt||s).memoizedState,a);if(g&&(s.memoizedState=a,en=!0),s=s.queue,Sf(Cp.bind(null,i,s,e),[e]),s.getSnapshot!==t||g||$t!==null&&$t.memoizedState.tag&1){if(i.flags|=2048,gi(9,{destroy:void 0},Ap.bind(null,i,s,a,t),null),Et===null)throw Error(o(349));u||(fl&127)!==0||_p(i,t,a)}return a}function _p(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Me.updateQueue,t===null?(t=xs(),Me.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ap(e,t,a,i){t.value=a,t.getSnapshot=i,Sp(t)&&Ep(e)}function Cp(e,t,a){return a(function(){Sp(t)&&Ep(e)})}function Sp(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ra(e,a)}catch{return!0}}function Ep(e){var t=Tr(e,2);t!==null&&Qn(t,e,2)}function Af(e){var t=Ln();if(typeof e=="function"){var a=e;if(e=a(),zr){Xe(!0);try{a()}finally{Xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dl,lastRenderedState:e},t}function Tp(e,t,a,i){return e.baseState=a,bf(e,vt,typeof i=="function"?i:dl)}function g_(e,t,a,i,s){if(Ms(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};R.T!==null?a(!0):u.isTransition=!1,i(u),a=t.pending,a===null?(u.next=t.pending=u,xp(t,u)):(u.next=a.next,t.pending=a.next=u)}}function xp(e,t){var a=t.action,i=t.payload,s=e.state;if(t.isTransition){var u=R.T,g={};R.T=g;try{var _=a(s,i),w=R.S;w!==null&&w(g,_),Op(e,t,_)}catch(U){Cf(e,t,U)}finally{u!==null&&g.types!==null&&(u.types=g.types),R.T=u}}else try{u=a(s,i),Op(e,t,u)}catch(U){Cf(e,t,U)}}function Op(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){wp(e,t,i)},function(i){return Cf(e,t,i)}):wp(e,t,a)}function wp(e,t,a){t.status="fulfilled",t.value=a,Rp(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,xp(e,a)))}function Cf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Rp(t),t=t.next;while(t!==i)}e.action=null}function Rp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Np(e,t){return t}function Mp(e,t){if(Ze){var a=Et.formState;if(a!==null){e:{var i=Me;if(Ze){if(Nt){t:{for(var s=Nt,u=Ta;s.nodeType!==8;){if(!u){s=null;break t}if(s=Oa(s.nextSibling),s===null){s=null;break t}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){Nt=Oa(s.nextSibling),i=s.data==="F!";break e}}Ul(i)}i=!1}i&&(t=a[0])}}return a=Ln(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Np,lastRenderedState:t},a.queue=i,a=Wp.bind(null,Me,i),i.dispatch=a,i=Af(!1),u=wf.bind(null,Me,!1,i.queue),i=Ln(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,a=g_.bind(null,Me,s,u,a),s.dispatch=a,i.memoizedState=e,[t,a,!1]}function Dp(e){var t=Wt();return Lp(t,vt,e)}function Lp(e,t,a){if(t=bf(e,t,Np)[0],e=ws(dl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ro(t)}catch(g){throw g===fi?ys:g}else i=t;t=Wt();var s=t.queue,u=s.dispatch;return a!==t.memoizedState&&(Me.flags|=2048,gi(9,{destroy:void 0},v_.bind(null,s,a),null)),[i,u,e]}function v_(e,t){e.action=t}function zp(e){var t=Wt(),a=vt;if(a!==null)return Lp(t,a,e);Wt(),t=t.memoizedState,a=Wt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function gi(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Me.updateQueue,t===null&&(t=xs(),Me.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function kp(){return Wt().memoizedState}function Rs(e,t,a,i){var s=Ln();Me.flags|=e,s.memoizedState=gi(1|t,{destroy:void 0},a,i===void 0?null:i)}function Ns(e,t,a,i){var s=Wt();i=i===void 0?null:i;var u=s.memoizedState.inst;vt!==null&&i!==null&&hf(i,vt.memoizedState.deps)?s.memoizedState=gi(t,u,a,i):(Me.flags|=e,s.memoizedState=gi(1|t,u,a,i))}function Bp(e,t){Rs(8390656,8,e,t)}function Sf(e,t){Ns(2048,8,e,t)}function y_(e){Me.flags|=4;var t=Me.updateQueue;if(t===null)t=xs(),Me.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function jp(e){var t=Wt().memoizedState;return y_({ref:t,nextImpl:e}),function(){if((st&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Up(e,t){return Ns(4,2,e,t)}function Hp(e,t){return Ns(4,4,e,t)}function qp(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 Ip(e,t,a){a=a!=null?a.concat([e]):null,Ns(4,4,qp.bind(null,t,e),a)}function Ef(){}function Gp(e,t){var a=Wt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&hf(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Vp(e,t){var a=Wt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&hf(t,i[1]))return i[0];if(i=e(),zr){Xe(!0);try{e()}finally{Xe(!1)}}return a.memoizedState=[i,t],i}function Tf(e,t,a){return a===void 0||(fl&1073741824)!==0&&(Fe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Yg(),Me.lanes|=e,Kl|=e,a)}function Yp(e,t,a,i){return ra(a,t)?a:hi.current!==null?(e=Tf(e,a,i),ra(e,t)||(en=!0),e):(fl&42)===0||(fl&1073741824)!==0&&(Fe&261930)===0?(en=!0,e.memoizedState=a):(e=Yg(),Me.lanes|=e,Kl|=e,t)}function Xp(e,t,a,i,s){var u=W.p;W.p=u!==0&&8>u?u:8;var g=R.T,_={};R.T=_,wf(e,!1,t,a);try{var w=s(),U=R.S;if(U!==null&&U(_,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var F=h_(w,i);io(e,t,F,fa(e))}else io(e,t,i,fa(e))}catch(P){io(e,t,{then:function(){},status:"rejected",reason:P},fa())}finally{W.p=u,g!==null&&_.types!==null&&(g.types=_.types),R.T=g}}function b_(){}function xf(e,t,a,i){if(e.tag!==5)throw Error(o(476));var s=Fp(e).queue;Xp(e,s,t,le,a===null?b_:function(){return Kp(e),a(i)})}function Fp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dl,lastRenderedState:le},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dl,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kp(e){var t=Fp(e);t.next===null&&(t=e.alternate.memoizedState),io(e,t.next.queue,{},fa())}function Of(){return An(Eo)}function Jp(){return Wt().memoizedState}function Zp(){return Wt().memoizedState}function __(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=fa();e=Il(a);var i=Gl(t,e,a);i!==null&&(Qn(i,t,a),to(i,t,a)),t={cache:tf()},e.payload=t;return}t=t.return}}function A_(e,t,a){var i=fa();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ms(e)?Pp(t,a):(a=Yu(e,t,a,i),a!==null&&(Qn(a,e,i),Qp(a,t,i)))}function Wp(e,t,a){var i=fa();io(e,t,a,i)}function io(e,t,a,i){var s={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Pp(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,_=u(g,a);if(s.hasEagerState=!0,s.eagerState=_,ra(_,g))return fs(e,t,s,0),Et===null&&us(),!1}catch{}if(a=Yu(e,t,s,i),a!==null)return Qn(a,e,i),Qp(a,t,i),!0}return!1}function wf(e,t,a,i){if(i={lane:2,revertLane:id(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(o(479))}else t=Yu(e,a,i,2),t!==null&&Qn(t,e,2)}function Ms(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function Pp(e,t){mi=Es=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Qp(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,yr(e,a)}}var oo={readContext:An,use:Os,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};oo.useEffectEvent=Yt;var $p={readContext:An,use:Os,useCallback:function(e,t){return Ln().memoizedState=[e,t===void 0?null:t],e},useContext:An,useEffect:Bp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Rs(4194308,4,qp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){Rs(4,2,e,t)},useMemo:function(e,t){var a=Ln();t=t===void 0?null:t;var i=e();if(zr){Xe(!0);try{e()}finally{Xe(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Ln();if(a!==void 0){var s=a(t);if(zr){Xe(!0);try{a(t)}finally{Xe(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=A_.bind(null,Me,e),[i.memoizedState,e]},useRef:function(e){var t=Ln();return e={current:e},t.memoizedState=e},useState:function(e){e=Af(e);var t=e.queue,a=Wp.bind(null,Me,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ef,useDeferredValue:function(e,t){var a=Ln();return Tf(a,e,t)},useTransition:function(){var e=Af(!1);return e=Xp.bind(null,Me,e.queue,!0,!1),Ln().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Me,s=Ln();if(Ze){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Et===null)throw Error(o(349));(Fe&127)!==0||_p(i,t,a)}s.memoizedState=a;var u={value:a,getSnapshot:t};return s.queue=u,Bp(Cp.bind(null,i,u,e),[e]),i.flags|=2048,gi(9,{destroy:void 0},Ap.bind(null,i,u,a,t),null),a},useId:function(){var e=Ln(),t=Et.identifierPrefix;if(Ze){var a=Ka,i=Fa;a=(i&~(1<<32-Ot(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ts++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=m_++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Of,useFormState:Mp,useActionState:Mp,useOptimistic:function(e){var t=Ln();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=wf.bind(null,Me,!0,a),a.dispatch=t,[e,t]},useMemoCache:yf,useCacheRefresh:function(){return Ln().memoizedState=__.bind(null,Me)},useEffectEvent:function(e){var t=Ln(),a={impl:e};return t.memoizedState=a,function(){if((st&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Rf={readContext:An,use:Os,useCallback:Gp,useContext:An,useEffect:Sf,useImperativeHandle:Ip,useInsertionEffect:Up,useLayoutEffect:Hp,useMemo:Vp,useReducer:ws,useRef:kp,useState:function(){return ws(dl)},useDebugValue:Ef,useDeferredValue:function(e,t){var a=Wt();return Yp(a,vt.memoizedState,e,t)},useTransition:function(){var e=ws(dl)[0],t=Wt().memoizedState;return[typeof e=="boolean"?e:ro(e),t]},useSyncExternalStore:bp,useId:Jp,useHostTransitionStatus:Of,useFormState:Dp,useActionState:Dp,useOptimistic:function(e,t){var a=Wt();return Tp(a,vt,e,t)},useMemoCache:yf,useCacheRefresh:Zp};Rf.useEffectEvent=jp;var eg={readContext:An,use:Os,useCallback:Gp,useContext:An,useEffect:Sf,useImperativeHandle:Ip,useInsertionEffect:Up,useLayoutEffect:Hp,useMemo:Vp,useReducer:_f,useRef:kp,useState:function(){return _f(dl)},useDebugValue:Ef,useDeferredValue:function(e,t){var a=Wt();return vt===null?Tf(a,e,t):Yp(a,vt.memoizedState,e,t)},useTransition:function(){var e=_f(dl)[0],t=Wt().memoizedState;return[typeof e=="boolean"?e:ro(e),t]},useSyncExternalStore:bp,useId:Jp,useHostTransitionStatus:Of,useFormState:zp,useActionState:zp,useOptimistic:function(e,t){var a=Wt();return vt!==null?Tp(a,vt,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:yf,useCacheRefresh:Zp};eg.useEffectEvent=jp;function Nf(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Mf={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=fa(),s=Il(i);s.payload=t,a!=null&&(s.callback=a),t=Gl(e,s,i),t!==null&&(Qn(t,e,i),to(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=fa(),s=Il(i);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Gl(e,s,i),t!==null&&(Qn(t,e,i),to(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=fa(),i=Il(a);i.tag=2,t!=null&&(i.callback=t),t=Gl(e,i,a),t!==null&&(Qn(t,e,a),to(t,e,a))}};function tg(e,t,a,i,s,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,g):t.prototype&&t.prototype.isPureReactComponent?!Ki(a,i)||!Ki(s,u):!0}function ng(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Mf.enqueueReplaceState(t,t.state,null)}function kr(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function ag(e){cs(e)}function lg(e){console.error(e)}function rg(e){cs(e)}function Ds(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function ig(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Df(e,t,a){return a=Il(a),a.tag=3,a.payload={element:null},a.callback=function(){Ds(e,t)},a}function og(e){return e=Il(e),e.tag=3,e}function sg(e,t,a,i){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var u=i.value;e.payload=function(){return s(u)},e.callback=function(){ig(t,a,i)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){ig(t,a,i),typeof s!="function"&&(Jl===null?Jl=new Set([this]):Jl.add(this));var _=i.stack;this.componentDidCatch(i.value,{componentStack:_!==null?_:""})})}function C_(e,t,a,i,s){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&si(t,a,s,!0),a=oa.current,a!==null){switch(a.tag){case 31:case 13:return xa===null?Ys():a.alternate===null&&Xt===0&&(Xt=3),a.flags&=-257,a.flags|=65536,a.lanes=s,i===bs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),ad(e,i,s)),!1;case 22:return a.flags|=65536,i===bs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),ad(e,i,s)),!1}throw Error(o(435,a.tag))}return ad(e,i,s),Ys(),!1}if(Ze)return t=oa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Wu&&(e=Error(o(422),{cause:i}),Wi(Ca(e,a)))):(i!==Wu&&(t=Error(o(423),{cause:i}),Wi(Ca(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=Ca(i,a),s=Df(e.stateNode,i,s),sf(e,s),Xt!==4&&(Xt=2)),!1;var u=Error(o(520),{cause:i});if(u=Ca(u,a),go===null?go=[u]:go.push(u),Xt!==4&&(Xt=2),t===null)return!0;i=Ca(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Df(a.stateNode,i,e),sf(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Jl===null||!Jl.has(u))))return a.flags|=65536,s&=-s,a.lanes|=s,s=og(s),sg(s,e,a,i),sf(a,s),!1}a=a.return}while(a!==null);return!1}var Lf=Error(o(461)),en=!1;function Cn(e,t,a,i){t.child=e===null?dp(t,null,a,i):Lr(t,e.child,a,i)}function cg(e,t,a,i,s){a=a.render;var u=t.ref;if("ref"in i){var g={};for(var _ in i)_!=="ref"&&(g[_]=i[_])}else g=i;return Rr(t),i=mf(e,t,a,g,u,s),_=pf(),e!==null&&!en?(gf(e,t,s),hl(e,t,s)):(Ze&&_&&Ju(t),t.flags|=1,Cn(e,t,i,s),t.child)}function ug(e,t,a,i,s){if(e===null){var u=a.type;return typeof u=="function"&&!Xu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,fg(e,t,u,i,s)):(e=hs(a.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!If(e,s)){var g=u.memoizedProps;if(a=a.compare,a=a!==null?a:Ki,a(g,i)&&e.ref===t.ref)return hl(e,t,s)}return t.flags|=1,e=ol(u,i),e.ref=t.ref,e.return=t,t.child=e}function fg(e,t,a,i,s){if(e!==null){var u=e.memoizedProps;if(Ki(u,i)&&e.ref===t.ref)if(en=!1,t.pendingProps=i=u,If(e,s))(e.flags&131072)!==0&&(en=!0);else return t.lanes=e.lanes,hl(e,t,s)}return zf(e,t,a,i,s)}function dg(e,t,a,i){var s=i.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~u}else i=0,t.child=null;return hg(e,t,u,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vs(t,u!==null?u.cachePool:null),u!==null?pp(t,u):uf(),gp(t);else return i=t.lanes=536870912,hg(e,t,u!==null?u.baseLanes|a:a,a,i)}else u!==null?(vs(t,u.cachePool),pp(t,u),Yl(),t.memoizedState=null):(e!==null&&vs(t,null),uf(),Yl());return Cn(e,t,s,a),t.child}function so(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hg(e,t,a,i,s){var u=af();return u=u===null?null:{parent:Qt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&vs(t,null),uf(),gp(t),e!==null&&si(e,t,i,!0),t.childLanes=s,null}function Ls(e,t){return t=ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mg(e,t,a){return Lr(t,e.child,null,a),e=Ls(t,t.pendingProps),e.flags|=2,sa(t),t.memoizedState=null,e}function S_(e,t,a){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ze){if(i.mode==="hidden")return e=Ls(t,i),t.lanes=536870912,so(null,e);if(df(t),(e=Nt)?(e=x0(e,Ta),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bl!==null?{id:Fa,overflow:Ka}:null,retryLane:536870912,hydrationErrors:null},a=Pm(e),a.return=t,t.child=a,_n=t,Nt=null)):e=null,e===null)throw Ul(t);return t.lanes=536870912,null}return Ls(t,i)}var u=e.memoizedState;if(u!==null){var g=u.dehydrated;if(df(t),s)if(t.flags&256)t.flags&=-257,t=mg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(en||si(e,t,a,!1),s=(a&e.childLanes)!==0,en||s){if(i=Et,i!==null&&(g=Jr(i,a),g!==0&&g!==u.retryLane))throw u.retryLane=g,Tr(e,g),Qn(i,e,g),Lf;Ys(),t=mg(e,t,a)}else e=u.treeContext,Nt=Oa(g.nextSibling),_n=t,Ze=!0,jl=null,Ta=!1,e!==null&&ep(t,e),t=Ls(t,i),t.flags|=4096;return t}return e=ol(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zs(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(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function zf(e,t,a,i,s){return Rr(t),a=mf(e,t,a,i,void 0,s),i=pf(),e!==null&&!en?(gf(e,t,s),hl(e,t,s)):(Ze&&i&&Ju(t),t.flags|=1,Cn(e,t,a,s),t.child)}function pg(e,t,a,i,s,u){return Rr(t),t.updateQueue=null,a=yp(t,i,a,s),vp(e),i=pf(),e!==null&&!en?(gf(e,t,u),hl(e,t,u)):(Ze&&i&&Ju(t),t.flags|=1,Cn(e,t,a,u),t.child)}function gg(e,t,a,i,s){if(Rr(t),t.stateNode===null){var u=li,g=a.contextType;typeof g=="object"&&g!==null&&(u=An(g)),u=new a(i,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Mf,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=i,u.state=t.memoizedState,u.refs={},rf(t),g=a.contextType,u.context=typeof g=="object"&&g!==null?An(g):li,u.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Nf(t,a,g,i),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&Mf.enqueueReplaceState(u,u.state,null),ao(t,i,u,s),no(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){u=t.stateNode;var _=t.memoizedProps,w=kr(a,_);u.props=w;var U=u.context,F=a.contextType;g=li,typeof F=="object"&&F!==null&&(g=An(F));var P=a.getDerivedStateFromProps;F=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,F||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(_||U!==g)&&ng(t,u,i,g),ql=!1;var I=t.memoizedState;u.state=I,ao(t,i,u,s),no(),U=t.memoizedState,_||I!==U||ql?(typeof P=="function"&&(Nf(t,a,P,i),U=t.memoizedState),(w=ql||tg(t,a,w,i,I,U,g))?(F||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=U),u.props=i,u.state=U,u.context=g,i=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{u=t.stateNode,of(e,t),g=t.memoizedProps,F=kr(a,g),u.props=F,P=t.pendingProps,I=u.context,U=a.contextType,w=li,typeof U=="object"&&U!==null&&(w=An(U)),_=a.getDerivedStateFromProps,(U=typeof _=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==P||I!==w)&&ng(t,u,i,w),ql=!1,I=t.memoizedState,u.state=I,ao(t,i,u,s),no();var G=t.memoizedState;g!==P||I!==G||ql||e!==null&&e.dependencies!==null&&ps(e.dependencies)?(typeof _=="function"&&(Nf(t,a,_,i),G=t.memoizedState),(F=ql||tg(t,a,F,i,I,G,w)||e!==null&&e.dependencies!==null&&ps(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,G,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,G,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=G),u.props=i,u.state=G,u.context=w,i=F):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),i=!1)}return u=i,zs(e,t),i=(t.flags&128)!==0,u||i?(u=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&i?(t.child=Lr(t,e.child,null,s),t.child=Lr(t,null,a,s)):Cn(e,t,a,s),t.memoizedState=u.state,e=t.child):e=hl(e,t,s),e}function vg(e,t,a,i){return Or(),t.flags|=256,Cn(e,t,a,i),t.child}var kf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bf(e){return{baseLanes:e,cachePool:ip()}}function jf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ua),e}function yg(e,t,a){var i=t.pendingProps,s=!1,u=(t.flags&128)!==0,g;if((g=u)||(g=e!==null&&e.memoizedState===null?!1:(Zt.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ze){if(s?Vl(t):Yl(),(e=Nt)?(e=x0(e,Ta),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bl!==null?{id:Fa,overflow:Ka}:null,retryLane:536870912,hydrationErrors:null},a=Pm(e),a.return=t,t.child=a,_n=t,Nt=null)):e=null,e===null)throw Ul(t);return bd(e)?t.lanes=32:t.lanes=536870912,null}var _=i.children;return i=i.fallback,s?(Yl(),s=t.mode,_=ks({mode:"hidden",children:_},s),i=xr(i,s,a,null),_.return=t,i.return=t,_.sibling=i,t.child=_,i=t.child,i.memoizedState=Bf(a),i.childLanes=jf(e,g,a),t.memoizedState=kf,so(null,i)):(Vl(t),Uf(t,_))}var w=e.memoizedState;if(w!==null&&(_=w.dehydrated,_!==null)){if(u)t.flags&256?(Vl(t),t.flags&=-257,t=Hf(e,t,a)):t.memoizedState!==null?(Yl(),t.child=e.child,t.flags|=128,t=null):(Yl(),_=i.fallback,s=t.mode,i=ks({mode:"visible",children:i.children},s),_=xr(_,s,a,null),_.flags|=2,i.return=t,_.return=t,i.sibling=_,t.child=i,Lr(t,e.child,null,a),i=t.child,i.memoizedState=Bf(a),i.childLanes=jf(e,g,a),t.memoizedState=kf,t=so(null,i));else if(Vl(t),bd(_)){if(g=_.nextSibling&&_.nextSibling.dataset,g)var U=g.dgst;g=U,i=Error(o(419)),i.stack="",i.digest=g,Wi({value:i,source:null,stack:null}),t=Hf(e,t,a)}else if(en||si(e,t,a,!1),g=(a&e.childLanes)!==0,en||g){if(g=Et,g!==null&&(i=Jr(g,a),i!==0&&i!==w.retryLane))throw w.retryLane=i,Tr(e,i),Qn(g,e,i),Lf;yd(_)||Ys(),t=Hf(e,t,a)}else yd(_)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Nt=Oa(_.nextSibling),_n=t,Ze=!0,jl=null,Ta=!1,e!==null&&ep(t,e),t=Uf(t,i.children),t.flags|=4096);return t}return s?(Yl(),_=i.fallback,s=t.mode,w=e.child,U=w.sibling,i=ol(w,{mode:"hidden",children:i.children}),i.subtreeFlags=w.subtreeFlags&65011712,U!==null?_=ol(U,_):(_=xr(_,s,a,null),_.flags|=2),_.return=t,i.return=t,i.sibling=_,t.child=i,so(null,i),i=t.child,_=e.child.memoizedState,_===null?_=Bf(a):(s=_.cachePool,s!==null?(w=Qt._currentValue,s=s.parent!==w?{parent:w,pool:w}:s):s=ip(),_={baseLanes:_.baseLanes|a,cachePool:s}),i.memoizedState=_,i.childLanes=jf(e,g,a),t.memoizedState=kf,so(e.child,i)):(Vl(t),a=e.child,e=a.sibling,a=ol(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function Uf(e,t){return t=ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ks(e,t){return e=ia(22,e,null,t),e.lanes=0,e}function Hf(e,t,a){return Lr(t,e.child,null,a),e=Uf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bg(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),$u(e.return,t,a)}function qf(e,t,a,i,s,u){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:s,treeForkCount:u}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=a,g.tailMode=s,g.treeForkCount=u)}function _g(e,t,a){var i=t.pendingProps,s=i.revealOrder,u=i.tail;i=i.children;var g=Zt.current,_=(g&2)!==0;if(_?(g=g&1|2,t.flags|=128):g&=1,Y(Zt,g),Cn(e,t,i,a),i=Ze?Zi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bg(e,a,t);else if(e.tag===19)bg(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}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&Ss(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),qf(t,!1,s,a,u,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ss(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}qf(t,!0,a,null,u,i);break;case"together":qf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function hl(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(si(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ol(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ol(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function If(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ps(e)))}function E_(e,t,a){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Hl(t,Qt,e.memoizedState.cache),Or();break;case 27:case 5:Be(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Hl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,df(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Vl(t),t.flags|=128,null):(a&t.child.childLanes)!==0?yg(e,t,a):(Vl(t),e=hl(e,t,a),e!==null?e.sibling:null);Vl(t);break;case 19:var s=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(si(e,t,a,!1),i=(a&t.childLanes)!==0),s){if(i)return _g(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Y(Zt,Zt.current),i)break;return null;case 22:return t.lanes=0,dg(e,t,a,t.pendingProps);case 24:Hl(t,Qt,e.memoizedState.cache)}return hl(e,t,a)}function Ag(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)en=!0;else{if(!If(e,a)&&(t.flags&128)===0)return en=!1,E_(e,t,a);en=(e.flags&131072)!==0}else en=!1,Ze&&(t.flags&1048576)!==0&&$m(t,Zi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Mr(t.elementType),t.type=e,typeof e=="function")Xu(e)?(i=kr(e,i),t.tag=1,t=gg(null,t,e,i,a)):(t.tag=0,t=zf(null,t,e,i,a));else{if(e!=null){var s=e.$$typeof;if(s===z){t.tag=11,t=cg(null,t,e,i,a);break e}else if(s===X){t.tag=14,t=ug(null,t,e,i,a);break e}}throw t=pe(e)||e,Error(o(306,t,""))}}return t;case 0:return zf(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,s=kr(i,t.pendingProps),gg(e,t,i,s,a);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var u=t.memoizedState;s=u.element,of(e,t),ao(t,i,null,a);var g=t.memoizedState;if(i=g.cache,Hl(t,Qt,i),i!==u.cache&&ef(t,[Qt],a,!0),no(),i=g.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=vg(e,t,i,a);break e}else if(i!==s){s=Ca(Error(o(424)),t),Wi(s),t=vg(e,t,i,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Nt=Oa(e.firstChild),_n=t,Ze=!0,jl=null,Ta=!0,a=dp(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Or(),i===s){t=hl(e,t,a);break e}Cn(e,t,i,a)}t=t.child}return t;case 26:return zs(e,t),e===null?(a=D0(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ze||(a=t.type,e=t.pendingProps,i=Ps(fe.current).createElement(a),i[Gt]=t,i[St]=e,Sn(i,a,e),we(i),t.stateNode=i):t.memoizedState=D0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Be(t),e===null&&Ze&&(i=t.stateNode=R0(t.type,t.pendingProps,fe.current),_n=t,Ta=!0,s=Nt,Ql(t.type)?(_d=s,Nt=Oa(i.firstChild)):Nt=s),Cn(e,t,t.pendingProps.children,a),zs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ze&&((s=i=Nt)&&(i=e2(i,t.type,t.pendingProps,Ta),i!==null?(t.stateNode=i,_n=t,Nt=Oa(i.firstChild),Ta=!1,s=!0):s=!1),s||Ul(t)),Be(t),s=t.type,u=t.pendingProps,g=e!==null?e.memoizedProps:null,i=u.children,pd(s,u)?i=null:g!==null&&pd(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=mf(e,t,p_,null,null,a),Eo._currentValue=s),zs(e,t),Cn(e,t,i,a),t.child;case 6:return e===null&&Ze&&((e=a=Nt)&&(a=t2(a,t.pendingProps,Ta),a!==null?(t.stateNode=a,_n=t,Nt=null,e=!0):e=!1),e||Ul(t)),null;case 13:return yg(e,t,a);case 4:return Ee(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Lr(t,null,i,a):Cn(e,t,i,a),t.child;case 11:return cg(e,t,t.type,t.pendingProps,a);case 7:return Cn(e,t,t.pendingProps,a),t.child;case 8:return Cn(e,t,t.pendingProps.children,a),t.child;case 12:return Cn(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Hl(t,t.type,i.value),Cn(e,t,i.children,a),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,Rr(t),s=An(s),i=i(s),t.flags|=1,Cn(e,t,i,a),t.child;case 14:return ug(e,t,t.type,t.pendingProps,a);case 15:return fg(e,t,t.type,t.pendingProps,a);case 19:return _g(e,t,a);case 31:return S_(e,t,a);case 22:return dg(e,t,a,t.pendingProps);case 24:return Rr(t),i=An(Qt),e===null?(s=af(),s===null&&(s=Et,u=tf(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=a),s=u),t.memoizedState={parent:i,cache:s},rf(t),Hl(t,Qt,s)):((e.lanes&a)!==0&&(of(e,t),ao(t,null,null,a),no()),s=e.memoizedState,u=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Hl(t,Qt,i)):(i=u.cache,Hl(t,Qt,i),i!==s.cache&&ef(t,[Qt],a,!0))),Cn(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ml(e){e.flags|=4}function Gf(e,t,a,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Jg())e.flags|=8192;else throw Dr=bs,lf}else e.flags&=-16777217}function Cg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!j0(t))if(Jg())e.flags|=8192;else throw Dr=bs,lf}function Bs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ya():536870912,e.lanes|=t,_i|=t)}function co(e,t){if(!Ze)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 i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function T_(e,t,a){var i=t.pendingProps;switch(Zu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(t),null;case 1:return Mt(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ul(Qt),De(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?ml(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pu())),Mt(t),null;case 26:var s=t.type,u=t.memoizedState;return e===null?(ml(t),u!==null?(Mt(t),Cg(t,u)):(Mt(t),Gf(t,s,null,i,a))):u?u!==e.memoizedState?(ml(t),Mt(t),Cg(t,u)):(Mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ml(t),Mt(t),Gf(t,s,e,i,a)),null;case 27:if(ut(t),a=fe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ml(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Mt(t),null}e=oe.current,oi(t)?tp(t):(e=R0(s,i,a),t.stateNode=e,ml(t))}return Mt(t),null;case 5:if(ut(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ml(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Mt(t),null}if(u=oe.current,oi(t))tp(t);else{var g=Ps(fe.current);switch(u){case 1:u=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=g.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?g.createElement(s,{is:i.is}):g.createElement(s)}}u[Gt]=t,u[St]=i;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)u.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=u;e:switch(Sn(u,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ml(t)}}return Mt(t),Gf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ml(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=fe.current,oi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,s=_n,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[Gt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||y0(e.nodeValue,a)),e||Ul(t,!0)}else e=Ps(e).createTextNode(i),e[Gt]=t,t.stateNode=e}return Mt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=oi(t),a!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Gt]=t}else Or(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),e=!1}else a=Pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(sa(t),t):(sa(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Mt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=oi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(o(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[Gt]=t}else Or(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),s=!1}else s=Pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(sa(t),t):(sa(t),null)}return sa(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==s&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Bs(t,t.updateQueue),Mt(t),null);case 4:return De(),e===null&&ud(t.stateNode.containerInfo),Mt(t),null;case 10:return ul(t.type),Mt(t),null;case 19:if(V(Zt),i=t.memoizedState,i===null)return Mt(t),null;if(s=(t.flags&128)!==0,u=i.rendering,u===null)if(s)co(i,!1);else{if(Xt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ss(e),u!==null){for(t.flags|=128,co(i,!1),e=u.updateQueue,t.updateQueue=e,Bs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Wm(a,e),a=a.sibling;return Y(Zt,Zt.current&1|2),Ze&&sl(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ct()>Is&&(t.flags|=128,s=!0,co(i,!1),t.lanes=4194304)}else{if(!s)if(e=Ss(u),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Bs(t,e),co(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ze)return Mt(t),null}else 2*Ct()-i.renderingStartTime>Is&&a!==536870912&&(t.flags|=128,s=!0,co(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ct(),e.sibling=null,a=Zt.current,Y(Zt,s?a&1|2:a&1),Ze&&sl(t,i.treeForkCount),e):(Mt(t),null);case 22:case 23:return sa(t),ff(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),a=t.updateQueue,a!==null&&Bs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&V(Nr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ul(Qt),Mt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function x_(e,t){switch(Zu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ul(Qt),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ut(t),null;case 31:if(t.memoizedState!==null){if(sa(t),t.alternate===null)throw Error(o(340));Or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(sa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Zt),null;case 4:return De(),null;case 10:return ul(t.type),null;case 22:case 23:return sa(t),ff(),e!==null&&V(Nr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ul(Qt),null;case 25:return null;default:return null}}function Sg(e,t){switch(Zu(t),t.tag){case 3:ul(Qt),De();break;case 26:case 27:case 5:ut(t);break;case 4:De();break;case 31:t.memoizedState!==null&&sa(t);break;case 13:sa(t);break;case 19:V(Zt);break;case 10:ul(t.type);break;case 22:case 23:sa(t),ff(),e!==null&&V(Nr);break;case 24:ul(Qt)}}function uo(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){i=void 0;var u=a.create,g=a.inst;i=u(),g.destroy=i}a=a.next}while(a!==s)}}catch(_){dt(t,t.return,_)}}function Xl(e,t,a){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var u=s.next;i=u;do{if((i.tag&e)===e){var g=i.inst,_=g.destroy;if(_!==void 0){g.destroy=void 0,s=t;var w=a,U=_;try{U()}catch(F){dt(s,w,F)}}}i=i.next}while(i!==u)}}catch(F){dt(t,t.return,F)}}function Eg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{mp(t,a)}catch(i){dt(e,e.return,i)}}}function Tg(e,t,a){a.props=kr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){dt(e,t,i)}}function fo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(s){dt(e,t,s)}}function Ja(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(s){dt(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){dt(e,t,s)}else a.current=null}function xg(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(s){dt(e,e.return,s)}}function Vf(e,t,a){try{var i=e.stateNode;J_(i,e.type,a,t),i[St]=t}catch(s){dt(e,e.return,s)}}function Og(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ql(e.type)||e.tag===4}function Yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Og(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&&Ql(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 Xf(e,t,a){var i=e.tag;if(i===5||i===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=rl));else if(i!==4&&(i===27&&Ql(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Xf(e,t,a),e=e.sibling;e!==null;)Xf(e,t,a),e=e.sibling}function js(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Ql(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(js(e,t,a),e=e.sibling;e!==null;)js(e,t,a),e=e.sibling}function wg(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Sn(t,i,a),t[Gt]=e,t[St]=a}catch(u){dt(e,e.return,u)}}var pl=!1,tn=!1,Ff=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,gn=null;function O_(e,t){if(e=e.containerInfo,hd=lc,e=Im(e),Uu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var s=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var g=0,_=-1,w=-1,U=0,F=0,P=e,I=null;t:for(;;){for(var G;P!==a||s!==0&&P.nodeType!==3||(_=g+s),P!==u||i!==0&&P.nodeType!==3||(w=g+i),P.nodeType===3&&(g+=P.nodeValue.length),(G=P.firstChild)!==null;)I=P,P=G;for(;;){if(P===e)break t;if(I===a&&++U===s&&(_=g),I===u&&++F===i&&(w=g),(G=P.nextSibling)!==null)break;P=I,I=P.parentNode}P=G}a=_===-1||w===-1?null:{start:_,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(md={focusedElem:e,selectionRange:a},lc=!1,gn=t;gn!==null;)if(t=gn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gn=e;else for(;gn!==null;){switch(t=gn,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,s=u.memoizedProps,u=u.memoizedState,i=a.stateNode;try{var ye=kr(a.type,s);e=i.getSnapshotBeforeUpdate(ye,u),i.__reactInternalSnapshotBeforeUpdate=e}catch(xe){dt(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)vd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vd(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,gn=e;break}gn=t.return}}function Ng(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:vl(e,a),i&4&&uo(5,a);break;case 1:if(vl(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){dt(a,a.return,g)}else{var s=kr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){dt(a,a.return,g)}}i&64&&Eg(a),i&512&&fo(a,a.return);break;case 3:if(vl(e,a),i&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{mp(e,t)}catch(g){dt(a,a.return,g)}}break;case 27:t===null&&i&4&&wg(a);case 26:case 5:vl(e,a),t===null&&i&4&&xg(a),i&512&&fo(a,a.return);break;case 12:vl(e,a);break;case 31:vl(e,a),i&4&&Lg(e,a);break;case 13:vl(e,a),i&4&&zg(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=B_.bind(null,a),n2(e,a))));break;case 22:if(i=a.memoizedState!==null||pl,!i){t=t!==null&&t.memoizedState!==null||tn,s=pl;var u=tn;pl=i,(tn=t)&&!u?yl(e,a,(a.subtreeFlags&8772)!==0):vl(e,a),pl=s,tn=u}break;case 30:break;default:vl(e,a)}}function Mg(e){var t=e.alternate;t!==null&&(e.alternate=null,Mg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&N(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 kt=null,Jn=!1;function gl(e,t,a){for(a=a.child;a!==null;)Dg(e,t,a),a=a.sibling}function Dg(e,t,a){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(on,a)}catch{}switch(a.tag){case 26:tn||Ja(a,t),gl(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:tn||Ja(a,t);var i=kt,s=Jn;Ql(a.type)&&(kt=a.stateNode,Jn=!1),gl(e,t,a),Ao(a.stateNode),kt=i,Jn=s;break;case 5:tn||Ja(a,t);case 6:if(i=kt,s=Jn,kt=null,gl(e,t,a),kt=i,Jn=s,kt!==null)if(Jn)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(a.stateNode)}catch(u){dt(a,t,u)}else try{kt.removeChild(a.stateNode)}catch(u){dt(a,t,u)}break;case 18:kt!==null&&(Jn?(e=kt,E0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),wi(e)):E0(kt,a.stateNode));break;case 4:i=kt,s=Jn,kt=a.stateNode.containerInfo,Jn=!0,gl(e,t,a),kt=i,Jn=s;break;case 0:case 11:case 14:case 15:Xl(2,a,t),tn||Xl(4,a,t),gl(e,t,a);break;case 1:tn||(Ja(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Tg(a,t,i)),gl(e,t,a);break;case 21:gl(e,t,a);break;case 22:tn=(i=tn)||a.memoizedState!==null,gl(e,t,a),tn=i;break;default:gl(e,t,a)}}function Lg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wi(e)}catch(a){dt(t,t.return,a)}}}function zg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wi(e)}catch(a){dt(t,t.return,a)}}function w_(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rg),t;default:throw Error(o(435,e.tag))}}function Us(e,t){var a=w_(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var s=j_.bind(null,e,i);i.then(s,s)}})}function Zn(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var s=a[i],u=e,g=t,_=g;e:for(;_!==null;){switch(_.tag){case 27:if(Ql(_.type)){kt=_.stateNode,Jn=!1;break e}break;case 5:kt=_.stateNode,Jn=!1;break e;case 3:case 4:kt=_.stateNode.containerInfo,Jn=!0;break e}_=_.return}if(kt===null)throw Error(o(160));Dg(u,g,s),kt=null,Jn=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kg(t,e),t=t.sibling}var ja=null;function kg(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zn(t,e),Wn(e),i&4&&(Xl(3,e,e.return),uo(3,e),Xl(5,e,e.return));break;case 1:Zn(t,e),Wn(e),i&512&&(tn||a===null||Ja(a,a.return)),i&64&&pl&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var s=ja;if(Zn(t,e),Wn(e),i&512&&(tn||a===null||Ja(a,a.return)),i&4){var u=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":u=s.getElementsByTagName("title")[0],(!u||u[be]||u[Gt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(i),s.head.insertBefore(u,s.querySelector("head > title"))),Sn(u,i,a),u[Gt]=e,we(u),i=u;break e;case"link":var g=k0("link","href",s).get(i+(a.href||""));if(g){for(var _=0;_<g.length;_++)if(u=g[_],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(_,1);break t}}u=s.createElement(i),Sn(u,i,a),s.head.appendChild(u);break;case"meta":if(g=k0("meta","content",s).get(i+(a.content||""))){for(_=0;_<g.length;_++)if(u=g[_],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(_,1);break t}}u=s.createElement(i),Sn(u,i,a),s.head.appendChild(u);break;default:throw Error(o(468,i))}u[Gt]=e,we(u),i=u}e.stateNode=i}else B0(s,e.type,e.stateNode);else e.stateNode=z0(s,i,e.memoizedProps);else u!==i?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,i===null?B0(s,e.type,e.stateNode):z0(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Vf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Zn(t,e),Wn(e),i&512&&(tn||a===null||Ja(a,a.return)),a!==null&&i&4&&Vf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Zn(t,e),Wn(e),i&512&&(tn||a===null||Ja(a,a.return)),e.flags&32){s=e.stateNode;try{Pr(s,"")}catch(ye){dt(e,e.return,ye)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,Vf(e,s,a!==null?a.memoizedProps:s)),i&1024&&(Ff=!0);break;case 6:if(Zn(t,e),Wn(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ye){dt(e,e.return,ye)}}break;case 3:if(ec=null,s=ja,ja=Qs(t.containerInfo),Zn(t,e),ja=s,Wn(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{wi(t.containerInfo)}catch(ye){dt(e,e.return,ye)}Ff&&(Ff=!1,Bg(e));break;case 4:i=ja,ja=Qs(e.stateNode.containerInfo),Zn(t,e),Wn(e),ja=i;break;case 12:Zn(t,e),Wn(e);break;case 31:Zn(t,e),Wn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Us(e,i)));break;case 13:Zn(t,e),Wn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(qs=Ct()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Us(e,i)));break;case 22:s=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,U=pl,F=tn;if(pl=U||s,tn=F||w,Zn(t,e),tn=F,pl=U,Wn(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||w||pl||tn||Br(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(u=w.stateNode,s)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{_=w.stateNode;var P=w.memoizedProps.style,I=P!=null&&P.hasOwnProperty("display")?P.display:null;_.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(ye){dt(w,w.return,ye)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=s?"":w.memoizedProps}catch(ye){dt(w,w.return,ye)}}}else if(t.tag===18){if(a===null){w=t;try{var G=w.stateNode;s?T0(G,!0):T0(w.stateNode,!1)}catch(ye){dt(w,w.return,ye)}}}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}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Us(e,a))));break;case 19:Zn(t,e),Wn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Us(e,i)));break;case 30:break;case 21:break;default:Zn(t,e),Wn(e)}}function Wn(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Og(i)){a=i;break}i=i.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var s=a.stateNode,u=Yf(e);js(e,u,s);break;case 5:var g=a.stateNode;a.flags&32&&(Pr(g,""),a.flags&=-33);var _=Yf(e);js(e,_,g);break;case 3:case 4:var w=a.stateNode.containerInfo,U=Yf(e);Xf(e,U,w);break;default:throw Error(o(161))}}catch(F){dt(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ng(e,t.alternate,t),t=t.sibling}function Br(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xl(4,t,t.return),Br(t);break;case 1:Ja(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Tg(t,t.return,a),Br(t);break;case 27:Ao(t.stateNode);case 26:case 5:Ja(t,t.return),Br(t);break;case 22:t.memoizedState===null&&Br(t);break;case 30:Br(t);break;default:Br(t)}e=e.sibling}}function yl(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,u=t,g=u.flags;switch(u.tag){case 0:case 11:case 15:yl(s,u,a),uo(4,u);break;case 1:if(yl(s,u,a),i=u,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){dt(i,i.return,U)}if(i=u,s=i.updateQueue,s!==null){var _=i.stateNode;try{var w=s.shared.hiddenCallbacks;if(w!==null)for(s.shared.hiddenCallbacks=null,s=0;s<w.length;s++)hp(w[s],_)}catch(U){dt(i,i.return,U)}}a&&g&64&&Eg(u),fo(u,u.return);break;case 27:wg(u);case 26:case 5:yl(s,u,a),a&&i===null&&g&4&&xg(u),fo(u,u.return);break;case 12:yl(s,u,a);break;case 31:yl(s,u,a),a&&g&4&&Lg(s,u);break;case 13:yl(s,u,a),a&&g&4&&zg(s,u);break;case 22:u.memoizedState===null&&yl(s,u,a),fo(u,u.return);break;case 30:break;default:yl(s,u,a)}t=t.sibling}}function Kf(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&&Pi(a))}function Jf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pi(e))}function Ua(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jg(e,t,a,i),t=t.sibling}function jg(e,t,a,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Ua(e,t,a,i),s&2048&&uo(9,t);break;case 1:Ua(e,t,a,i);break;case 3:Ua(e,t,a,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pi(e)));break;case 12:if(s&2048){Ua(e,t,a,i),e=t.stateNode;try{var u=t.memoizedProps,g=u.id,_=u.onPostCommit;typeof _=="function"&&_(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){dt(t,t.return,w)}}else Ua(e,t,a,i);break;case 31:Ua(e,t,a,i);break;case 13:Ua(e,t,a,i);break;case 23:break;case 22:u=t.stateNode,g=t.alternate,t.memoizedState!==null?u._visibility&2?Ua(e,t,a,i):ho(e,t):u._visibility&2?Ua(e,t,a,i):(u._visibility|=2,vi(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Kf(g,t);break;case 24:Ua(e,t,a,i),s&2048&&Jf(t.alternate,t);break;default:Ua(e,t,a,i)}}function vi(e,t,a,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,g=t,_=a,w=i,U=g.flags;switch(g.tag){case 0:case 11:case 15:vi(u,g,_,w,s),uo(8,g);break;case 23:break;case 22:var F=g.stateNode;g.memoizedState!==null?F._visibility&2?vi(u,g,_,w,s):ho(u,g):(F._visibility|=2,vi(u,g,_,w,s)),s&&U&2048&&Kf(g.alternate,g);break;case 24:vi(u,g,_,w,s),s&&U&2048&&Jf(g.alternate,g);break;default:vi(u,g,_,w,s)}t=t.sibling}}function ho(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,s=i.flags;switch(i.tag){case 22:ho(a,i),s&2048&&Kf(i.alternate,i);break;case 24:ho(a,i),s&2048&&Jf(i.alternate,i);break;default:ho(a,i)}t=t.sibling}}var mo=8192;function yi(e,t,a){if(e.subtreeFlags&mo)for(e=e.child;e!==null;)Ug(e,t,a),e=e.sibling}function Ug(e,t,a){switch(e.tag){case 26:yi(e,t,a),e.flags&mo&&e.memoizedState!==null&&m2(a,ja,e.memoizedState,e.memoizedProps);break;case 5:yi(e,t,a);break;case 3:case 4:var i=ja;ja=Qs(e.stateNode.containerInfo),yi(e,t,a),ja=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=mo,mo=16777216,yi(e,t,a),mo=i):yi(e,t,a));break;default:yi(e,t,a)}}function Hg(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 po(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];gn=i,Ig(i,e)}Hg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qg(e),e=e.sibling}function qg(e){switch(e.tag){case 0:case 11:case 15:po(e),e.flags&2048&&Xl(9,e,e.return);break;case 3:po(e);break;case 12:po(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hs(e)):po(e);break;default:po(e)}}function Hs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];gn=i,Ig(i,e)}Hg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xl(8,t,t.return),Hs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Hs(t));break;default:Hs(t)}e=e.sibling}}function Ig(e,t){for(;gn!==null;){var a=gn;switch(a.tag){case 0:case 11:case 15:Xl(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Pi(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,gn=i;else e:for(a=e;gn!==null;){i=gn;var s=i.sibling,u=i.return;if(Mg(i),i===a){gn=null;break e}if(s!==null){s.return=u,gn=s;break e}gn=u}}}var R_={getCacheForType:function(e){var t=An(Qt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return An(Qt).controller.signal}},N_=typeof WeakMap=="function"?WeakMap:Map,st=0,Et=null,Ge=null,Fe=0,ft=0,ca=null,Fl=!1,bi=!1,Zf=!1,bl=0,Xt=0,Kl=0,jr=0,Wf=0,ua=0,_i=0,go=null,Pn=null,Pf=!1,qs=0,Gg=0,Is=1/0,Gs=null,Jl=null,fn=0,Zl=null,Ai=null,_l=0,Qf=0,$f=null,Vg=null,vo=0,ed=null;function fa(){return(st&2)!==0&&Fe!==0?Fe&-Fe:R.T!==null?id():Xa()}function Yg(){if(ua===0)if((Fe&536870912)===0||Ze){var e=Dn;Dn<<=1,(Dn&3932160)===0&&(Dn=262144),ua=e}else ua=536870912;return e=oa.current,e!==null&&(e.flags|=32),ua}function Qn(e,t,a){(e===Et&&(ft===2||ft===9)||e.cancelPendingCommit!==null)&&(Ci(e,0),Wl(e,Fe,ua,!1)),za(e,a),((st&2)===0||e!==Et)&&(e===Et&&((st&2)===0&&(jr|=a),Xt===4&&Wl(e,Fe,ua,!1)),Za(e))}function Xg(e,t,a){if((st&6)!==0)throw Error(o(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||tl(e,t),s=i?L_(e,t):nd(e,t,!0),u=i;do{if(s===0){bi&&!i&&Wl(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!M_(a)){s=nd(e,t,!1),u=!1;continue}if(s===2){if(u=t,e.errorRecoveryDisabledLanes&u)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var _=e;s=go;var w=_.current.memoizedState.isDehydrated;if(w&&(Ci(_,g).flags|=256),g=nd(_,g,!1),g!==2){if(Zf&&!w){_.errorRecoveryDisabledLanes|=u,jr|=u,s=4;break e}u=Pn,Pn=s,u!==null&&(Pn===null?Pn=u:Pn.push.apply(Pn,u))}s=g}if(u=!1,s!==2)continue}}if(s===1){Ci(e,0),Wl(e,t,0,!0);break}e:{switch(i=e,u=s,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Wl(i,t,ua,!Fl);break e;case 2:Pn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(s=qs+300-Ct(),10<s)){if(Wl(i,t,ua,!Fl),va(i,0,!0)!==0)break e;_l=t,i.timeoutHandle=C0(Fg.bind(null,i,a,Pn,Gs,Pf,t,ua,jr,_i,Fl,u,"Throttled",-0,0),s);break e}Fg(i,a,Pn,Gs,Pf,t,ua,jr,_i,Fl,u,null,-0,0)}}break}while(!0);Za(e)}function Fg(e,t,a,i,s,u,g,_,w,U,F,P,I,G){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rl},Ug(t,u,P);var ye=(u&62914560)===u?qs-Ct():(u&4194048)===u?Gg-Ct():0;if(ye=p2(P,ye),ye!==null){_l=u,e.cancelPendingCommit=ye(e0.bind(null,e,t,u,a,i,s,g,_,w,F,P,null,I,G)),Wl(e,u,g,!U);return}}e0(e,t,u,a,i,s,g,_,w)}function M_(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 i=0;i<a.length;i++){var s=a[i],u=s.getSnapshot;s=s.value;try{if(!ra(u(),s))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 Wl(e,t,a,i){t&=~Wf,t&=~jr,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var u=31-Ot(s),g=1<<u;i[u]=-1,s&=~g}a!==0&&vr(e,a,t)}function Vs(){return(st&6)===0?(yo(0),!1):!0}function td(){if(Ge!==null){if(ft===0)var e=Ge.return;else e=Ge,cl=wr=null,vf(e),di=null,$i=0,e=Ge;for(;e!==null;)Sg(e.alternate,e),e=e.return;Ge=null}}function Ci(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,P_(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),_l=0,td(),Et=e,Ge=a=ol(e.current,null),Fe=t,ft=0,ca=null,Fl=!1,bi=tl(e,t),Zf=!1,_i=ua=Wf=jr=Kl=Xt=0,Pn=go=null,Pf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-Ot(i),u=1<<s;t|=e[s],i&=~u}return bl=t,us(),a}function Kg(e,t){Me=null,R.H=oo,t===fi||t===ys?(t=cp(),ft=3):t===lf?(t=cp(),ft=4):ft=t===Lf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ca=t,Ge===null&&(Xt=1,Ds(e,Ca(t,e.current)))}function Jg(){var e=oa.current;return e===null?!0:(Fe&4194048)===Fe?xa===null:(Fe&62914560)===Fe||(Fe&536870912)!==0?e===xa:!1}function Zg(){var e=R.H;return R.H=oo,e===null?oo:e}function Wg(){var e=R.A;return R.A=R_,e}function Ys(){Xt=4,Fl||(Fe&4194048)!==Fe&&oa.current!==null||(bi=!0),(Kl&134217727)===0&&(jr&134217727)===0||Et===null||Wl(Et,Fe,ua,!1)}function nd(e,t,a){var i=st;st|=2;var s=Zg(),u=Wg();(Et!==e||Fe!==t)&&(Gs=null,Ci(e,t)),t=!1;var g=Xt;e:do try{if(ft!==0&&Ge!==null){var _=Ge,w=ca;switch(ft){case 8:td(),g=6;break e;case 3:case 2:case 9:case 6:oa.current===null&&(t=!0);var U=ft;if(ft=0,ca=null,Si(e,_,w,U),a&&bi){g=0;break e}break;default:U=ft,ft=0,ca=null,Si(e,_,w,U)}}D_(),g=Xt;break}catch(F){Kg(e,F)}while(!0);return t&&e.shellSuspendCounter++,cl=wr=null,st=i,R.H=s,R.A=u,Ge===null&&(Et=null,Fe=0,us()),g}function D_(){for(;Ge!==null;)Pg(Ge)}function L_(e,t){var a=st;st|=2;var i=Zg(),s=Wg();Et!==e||Fe!==t?(Gs=null,Is=Ct()+500,Ci(e,t)):bi=tl(e,t);e:do try{if(ft!==0&&Ge!==null){t=Ge;var u=ca;t:switch(ft){case 1:ft=0,ca=null,Si(e,t,u,1);break;case 2:case 9:if(op(u)){ft=0,ca=null,Qg(t);break}t=function(){ft!==2&&ft!==9||Et!==e||(ft=7),Za(e)},u.then(t,t);break e;case 3:ft=7;break e;case 4:ft=5;break e;case 7:op(u)?(ft=0,ca=null,Qg(t)):(ft=0,ca=null,Si(e,t,u,7));break;case 5:var g=null;switch(Ge.tag){case 26:g=Ge.memoizedState;case 5:case 27:var _=Ge;if(g?j0(g):_.stateNode.complete){ft=0,ca=null;var w=_.sibling;if(w!==null)Ge=w;else{var U=_.return;U!==null?(Ge=U,Xs(U)):Ge=null}break t}}ft=0,ca=null,Si(e,t,u,5);break;case 6:ft=0,ca=null,Si(e,t,u,6);break;case 8:td(),Xt=6;break e;default:throw Error(o(462))}}z_();break}catch(F){Kg(e,F)}while(!0);return cl=wr=null,R.H=i,R.A=s,st=a,Ge!==null?0:(Et=null,Fe=0,us(),Xt)}function z_(){for(;Ge!==null&&!je();)Pg(Ge)}function Pg(e){var t=Ag(e.alternate,e,bl);e.memoizedProps=e.pendingProps,t===null?Xs(e):Ge=t}function Qg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=pg(a,t,t.pendingProps,t.type,void 0,Fe);break;case 11:t=pg(a,t,t.pendingProps,t.type.render,t.ref,Fe);break;case 5:vf(t);default:Sg(a,t),t=Ge=Wm(t,bl),t=Ag(a,t,bl)}e.memoizedProps=e.pendingProps,t===null?Xs(e):Ge=t}function Si(e,t,a,i){cl=wr=null,vf(t),di=null,$i=0;var s=t.return;try{if(C_(e,s,t,a,Fe)){Xt=1,Ds(e,Ca(a,e.current)),Ge=null;return}}catch(u){if(s!==null)throw Ge=s,u;Xt=1,Ds(e,Ca(a,e.current)),Ge=null;return}t.flags&32768?(Ze||i===1?e=!0:bi||(Fe&536870912)!==0?e=!1:(Fl=e=!0,(i===2||i===9||i===3||i===6)&&(i=oa.current,i!==null&&i.tag===13&&(i.flags|=16384))),$g(t,e)):Xs(t)}function Xs(e){var t=e;do{if((t.flags&32768)!==0){$g(t,Fl);return}e=t.return;var a=T_(t.alternate,t,bl);if(a!==null){Ge=a;return}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Xt===0&&(Xt=5)}function $g(e,t){do{var a=x_(e.alternate,e);if(a!==null){a.flags&=32767,Ge=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ge=e;return}Ge=e=a}while(e!==null);Xt=6,Ge=null}function e0(e,t,a,i,s,u,g,_,w){e.cancelPendingCommit=null;do Fs();while(fn!==0);if((st&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Vu,nl(e,a,u,g,_,w),e===Et&&(Ge=Et=null,Fe=0),Ai=t,Zl=e,_l=a,Qf=u,$f=s,Vg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,U_(Kt,function(){return r0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=R.T,R.T=null,s=W.p,W.p=2,g=st,st|=4;try{O_(e,t,a)}finally{st=g,W.p=s,R.T=i}}fn=1,t0(),n0(),a0()}}function t0(){if(fn===1){fn=0;var e=Zl,t=Ai,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var i=W.p;W.p=2;var s=st;st|=4;try{kg(t,e);var u=md,g=Im(e.containerInfo),_=u.focusedElem,w=u.selectionRange;if(g!==_&&_&&_.ownerDocument&&qm(_.ownerDocument.documentElement,_)){if(w!==null&&Uu(_)){var U=w.start,F=w.end;if(F===void 0&&(F=U),"selectionStart"in _)_.selectionStart=U,_.selectionEnd=Math.min(F,_.value.length);else{var P=_.ownerDocument||document,I=P&&P.defaultView||window;if(I.getSelection){var G=I.getSelection(),ye=_.textContent.length,xe=Math.min(w.start,ye),bt=w.end===void 0?xe:Math.min(w.end,ye);!G.extend&&xe>bt&&(g=bt,bt=xe,xe=g);var k=Hm(_,xe),D=Hm(_,bt);if(k&&D&&(G.rangeCount!==1||G.anchorNode!==k.node||G.anchorOffset!==k.offset||G.focusNode!==D.node||G.focusOffset!==D.offset)){var j=P.createRange();j.setStart(k.node,k.offset),G.removeAllRanges(),xe>bt?(G.addRange(j),G.extend(D.node,D.offset)):(j.setEnd(D.node,D.offset),G.addRange(j))}}}}for(P=[],G=_;G=G.parentNode;)G.nodeType===1&&P.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<P.length;_++){var J=P[_];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}lc=!!hd,md=hd=null}finally{st=s,W.p=i,R.T=a}}e.current=t,fn=2}}function n0(){if(fn===2){fn=0;var e=Zl,t=Ai,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var i=W.p;W.p=2;var s=st;st|=4;try{Ng(e,t.alternate,t)}finally{st=s,W.p=i,R.T=a}}fn=3}}function a0(){if(fn===4||fn===3){fn=0,zt();var e=Zl,t=Ai,a=_l,i=Vg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?fn=5:(fn=0,Ai=Zl=null,l0(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Jl=null),Xn(a),t=t.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=R.T,s=W.p,W.p=2,R.T=null;try{for(var u=e.onRecoverableError,g=0;g<i.length;g++){var _=i[g];u(_.value,{componentStack:_.stack})}}finally{R.T=t,W.p=s}}(_l&3)!==0&&Fs(),Za(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===ed?vo++:(vo=0,ed=e):vo=0,yo(0)}}function l0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pi(t)))}function Fs(){return t0(),n0(),a0(),r0()}function r0(){if(fn!==5)return!1;var e=Zl,t=Qf;Qf=0;var a=Xn(_l),i=R.T,s=W.p;try{W.p=32>a?32:a,R.T=null,a=$f,$f=null;var u=Zl,g=_l;if(fn=0,Ai=Zl=null,_l=0,(st&6)!==0)throw Error(o(331));var _=st;if(st|=4,qg(u.current),jg(u,u.current,g,a),st=_,yo(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(on,u)}catch{}return!0}finally{W.p=s,R.T=i,l0(e,t)}}function i0(e,t,a){t=Ca(a,t),t=Df(e.stateNode,t,2),e=Gl(e,t,2),e!==null&&(za(e,2),Za(e))}function dt(e,t,a){if(e.tag===3)i0(e,e,a);else for(;t!==null;){if(t.tag===3){i0(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Jl===null||!Jl.has(i))){e=Ca(a,e),a=og(2),i=Gl(t,a,2),i!==null&&(sg(a,i,t,e),za(i,2),Za(i));break}}t=t.return}}function ad(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new N_;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(a)||(Zf=!0,s.add(a),e=k_.bind(null,e,t,a),t.then(e,e))}function k_(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Et===e&&(Fe&a)===a&&(Xt===4||Xt===3&&(Fe&62914560)===Fe&&300>Ct()-qs?(st&2)===0&&Ci(e,0):Wf|=a,_i===Fe&&(_i=0)),Za(e)}function o0(e,t){t===0&&(t=ya()),e=Tr(e,t),e!==null&&(za(e,t),Za(e))}function B_(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),o0(e,a)}function j_(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),o0(e,a)}function U_(e,t){return At(e,t)}var Ks=null,Ei=null,ld=!1,Js=!1,rd=!1,Pl=0;function Za(e){e!==Ei&&e.next===null&&(Ei===null?Ks=Ei=e:Ei=Ei.next=e),Js=!0,ld||(ld=!0,q_())}function yo(e,t){if(!rd&&Js){rd=!0;do for(var a=!1,i=Ks;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var u=0;else{var g=i.suspendedLanes,_=i.pingedLanes;u=(1<<31-Ot(42|e)+1)-1,u&=s&~(g&~_),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,f0(i,u))}else u=Fe,u=va(i,i===Et?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||tl(i,u)||(a=!0,f0(i,u));i=i.next}while(a);rd=!1}}function H_(){s0()}function s0(){Js=ld=!1;var e=0;Pl!==0&&W_()&&(e=Pl);for(var t=Ct(),a=null,i=Ks;i!==null;){var s=i.next,u=c0(i,t);u===0?(i.next=null,a===null?Ks=s:a.next=s,s===null&&(Ei=a)):(a=i,(e!==0||(u&3)!==0)&&(Js=!0)),i=s}fn!==0&&fn!==5||yo(e),Pl!==0&&(Pl=0)}function c0(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var g=31-Ot(u),_=1<<g,w=s[g];w===-1?((_&a)===0||(_&i)!==0)&&(s[g]=jt(_,t)):w<=t&&(e.expiredLanes|=_),u&=~_}if(t=Et,a=Fe,a=va(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(ft===2||ft===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Oe(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||tl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&Oe(i),Xn(a)){case 2:case 8:a=xt;break;case 32:a=Kt;break;case 268435456:a=xn;break;default:a=Kt}return i=u0.bind(null,e),a=At(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&Oe(i),e.callbackPriority=2,e.callbackNode=null,2}function u0(e,t){if(fn!==0&&fn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Fs()&&e.callbackNode!==a)return null;var i=Fe;return i=va(e,e===Et?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Xg(e,i,t),c0(e,Ct()),e.callbackNode!=null&&e.callbackNode===a?u0.bind(null,e):null)}function f0(e,t){if(Fs())return null;Xg(e,t,!0)}function q_(){Q_(function(){(st&6)!==0?At(Nn,H_):s0()})}function id(){if(Pl===0){var e=ci;e===0&&(e=sn,sn<<=1,(sn&261888)===0&&(sn=256)),Pl=e}return Pl}function d0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ns(""+e)}function h0(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 I_(e,t,a,i,s){if(t==="submit"&&a&&a.stateNode===s){var u=d0((s[St]||null).action),g=i.submitter;g&&(t=(t=g[St]||null)?d0(t.formAction):g.getAttribute("formAction"),t!==null&&(u=t,g=null));var _=new is("action","action",null,i,s);e.push({event:_,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Pl!==0){var w=g?h0(s,g):new FormData(s);xf(a,{pending:!0,data:w,method:s.method,action:u},null,w)}}else typeof u=="function"&&(_.preventDefault(),w=g?h0(s,g):new FormData(s),xf(a,{pending:!0,data:w,method:s.method,action:u},u,w))},currentTarget:s}]})}}for(var od=0;od<Gu.length;od++){var sd=Gu[od],G_=sd.toLowerCase(),V_=sd[0].toUpperCase()+sd.slice(1);Ba(G_,"on"+V_)}Ba(Ym,"onAnimationEnd"),Ba(Xm,"onAnimationIteration"),Ba(Fm,"onAnimationStart"),Ba("dblclick","onDoubleClick"),Ba("focusin","onFocus"),Ba("focusout","onBlur"),Ba(r_,"onTransitionRun"),Ba(i_,"onTransitionStart"),Ba(o_,"onTransitionCancel"),Ba(Km,"onTransitionEnd"),ba("onMouseEnter",["mouseout","mouseover"]),ba("onMouseLeave",["mouseout","mouseover"]),ba("onPointerEnter",["pointerout","pointerover"]),ba("onPointerLeave",["pointerout","pointerover"]),On("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),On("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),On("onBeforeInput",["compositionend","keypress","textInput","paste"]),On("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),On("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),On("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bo="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(" "),Y_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bo));function m0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],s=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var g=i.length-1;0<=g;g--){var _=i[g],w=_.instance,U=_.currentTarget;if(_=_.listener,w!==u&&s.isPropagationStopped())break e;u=_,s.currentTarget=U;try{u(s)}catch(F){cs(F)}s.currentTarget=null,u=w}else for(g=0;g<i.length;g++){if(_=i[g],w=_.instance,U=_.currentTarget,_=_.listener,w!==u&&s.isPropagationStopped())break e;u=_,s.currentTarget=U;try{u(s)}catch(F){cs(F)}s.currentTarget=null,u=w}}}}function Ve(e,t){var a=t[ll];a===void 0&&(a=t[ll]=new Set);var i=e+"__bubble";a.has(i)||(p0(t,e,2,!1),a.add(i))}function cd(e,t,a){var i=0;t&&(i|=4),p0(a,e,i,t)}var Zs="_reactListening"+Math.random().toString(36).slice(2);function ud(e){if(!e[Zs]){e[Zs]=!0,cn.forEach(function(a){a!=="selectionchange"&&(Y_.has(a)||cd(a,!1,e),cd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zs]||(t[Zs]=!0,cd("selectionchange",!1,t))}}function p0(e,t,a,i){switch(Y0(t)){case 2:var s=y2;break;case 8:s=b2;break;default:s=Td}a=s.bind(null,t,a,e),s=void 0,!Ru||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function fd(e,t,a,i,s){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var _=i.stateNode.containerInfo;if(_===s)break;if(g===4)for(g=i.return;g!==null;){var w=g.tag;if((w===3||w===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;_!==null;){if(g=te(_),g===null)return;if(w=g.tag,w===5||w===6||w===26||w===27){i=u=g;continue e}_=_.parentNode}}i=i.return}_m(function(){var U=u,F=Ou(a),P=[];e:{var I=Jm.get(e);if(I!==void 0){var G=is,ye=e;switch(e){case"keypress":if(ls(a)===0)break e;case"keydown":case"keyup":G=jb;break;case"focusin":ye="focus",G=Lu;break;case"focusout":ye="blur",G=Lu;break;case"beforeblur":case"afterblur":G=Lu;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":G=Sm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Tb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=qb;break;case Ym:case Xm:case Fm:G=wb;break;case Km:G=Gb;break;case"scroll":case"scrollend":G=Sb;break;case"wheel":G=Yb;break;case"copy":case"cut":case"paste":G=Nb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Tm;break;case"toggle":case"beforetoggle":G=Fb}var xe=(t&4)!==0,bt=!xe&&(e==="scroll"||e==="scrollend"),k=xe?I!==null?I+"Capture":null:I;xe=[];for(var D=U,j;D!==null;){var J=D;if(j=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||j===null||k===null||(J=qi(D,k),J!=null&&xe.push(_o(D,J,j))),bt)break;D=D.return}0<xe.length&&(I=new G(I,ye,null,a,F),P.push({event:I,listeners:xe}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",I&&a!==xu&&(ye=a.relatedTarget||a.fromElement)&&(te(ye)||ye[aa]))break e;if((G||I)&&(I=F.window===F?F:(I=F.ownerDocument)?I.defaultView||I.parentWindow:window,G?(ye=a.relatedTarget||a.toElement,G=U,ye=ye?te(ye):null,ye!==null&&(bt=f(ye),xe=ye.tag,ye!==bt||xe!==5&&xe!==27&&xe!==6)&&(ye=null)):(G=null,ye=U),G!==ye)){if(xe=Sm,J="onMouseLeave",k="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Tm,J="onPointerLeave",k="onPointerEnter",D="pointer"),bt=G==null?I:lt(G),j=ye==null?I:lt(ye),I=new xe(J,D+"leave",G,a,F),I.target=bt,I.relatedTarget=j,J=null,te(F)===U&&(xe=new xe(k,D+"enter",ye,a,F),xe.target=j,xe.relatedTarget=bt,J=xe),bt=J,G&&ye)t:{for(xe=X_,k=G,D=ye,j=0,J=k;J;J=xe(J))j++;J=0;for(var Te=D;Te;Te=xe(Te))J++;for(;0<j-J;)k=xe(k),j--;for(;0<J-j;)D=xe(D),J--;for(;j--;){if(k===D||D!==null&&k===D.alternate){xe=k;break t}k=xe(k),D=xe(D)}xe=null}else xe=null;G!==null&&g0(P,I,G,xe,!1),ye!==null&&bt!==null&&g0(P,bt,ye,xe,!0)}}e:{if(I=U?lt(U):window,G=I.nodeName&&I.nodeName.toLowerCase(),G==="select"||G==="input"&&I.type==="file")var rt=Lm;else if(Mm(I))if(zm)rt=n_;else{rt=e_;var Ae=$b}else G=I.nodeName,!G||G.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?U&&Tu(U.elementType)&&(rt=Lm):rt=t_;if(rt&&(rt=rt(e,U))){Dm(P,rt,a,F);break e}Ae&&Ae(e,I,U),e==="focusout"&&U&&I.type==="number"&&U.memoizedProps.value!=null&&Eu(I,"number",I.value)}switch(Ae=U?lt(U):window,e){case"focusin":(Mm(Ae)||Ae.contentEditable==="true")&&(ti=Ae,Hu=U,Ji=null);break;case"focusout":Ji=Hu=ti=null;break;case"mousedown":qu=!0;break;case"contextmenu":case"mouseup":case"dragend":qu=!1,Gm(P,a,F);break;case"selectionchange":if(l_)break;case"keydown":case"keyup":Gm(P,a,F)}var Le;if(ku)e:{switch(e){case"compositionstart":var Ke="onCompositionStart";break e;case"compositionend":Ke="onCompositionEnd";break e;case"compositionupdate":Ke="onCompositionUpdate";break e}Ke=void 0}else ei?Rm(e,a)&&(Ke="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ke="onCompositionStart");Ke&&(xm&&a.locale!=="ko"&&(ei||Ke!=="onCompositionStart"?Ke==="onCompositionEnd"&&ei&&(Le=Am()):(kl=F,Nu="value"in kl?kl.value:kl.textContent,ei=!0)),Ae=Ws(U,Ke),0<Ae.length&&(Ke=new Em(Ke,e,null,a,F),P.push({event:Ke,listeners:Ae}),Le?Ke.data=Le:(Le=Nm(a),Le!==null&&(Ke.data=Le)))),(Le=Jb?Zb(e,a):Wb(e,a))&&(Ke=Ws(U,"onBeforeInput"),0<Ke.length&&(Ae=new Em("onBeforeInput","beforeinput",null,a,F),P.push({event:Ae,listeners:Ke}),Ae.data=Le)),I_(P,e,U,a,F)}m0(P,t)})}function _o(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ws(e,t){for(var a=t+"Capture",i=[];e!==null;){var s=e,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=qi(e,a),s!=null&&i.unshift(_o(e,s,u)),s=qi(e,t),s!=null&&i.push(_o(e,s,u))),e.tag===3)return i;e=e.return}return[]}function X_(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function g0(e,t,a,i,s){for(var u=t._reactName,g=[];a!==null&&a!==i;){var _=a,w=_.alternate,U=_.stateNode;if(_=_.tag,w!==null&&w===i)break;_!==5&&_!==26&&_!==27||U===null||(w=U,s?(U=qi(a,u),U!=null&&g.unshift(_o(a,U,w))):s||(U=qi(a,u),U!=null&&g.push(_o(a,U,w)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var F_=/\r\n?/g,K_=/\u0000|\uFFFD/g;function v0(e){return(typeof e=="string"?e:""+e).replace(F_,`
9
- `).replace(K_,"")}function y0(e,t){return t=v0(t),v0(e)===t}function yt(e,t,a,i,s,u){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Pr(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Pr(e,""+i);break;case"className":Ar(e,"class",i);break;case"tabIndex":Ar(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ar(e,a,i);break;case"style":ym(e,i,u);break;case"data":if(t!=="object"){Ar(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=ns(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="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 u=="function"&&(a==="formAction"?(t!=="input"&&yt(e,t,"name",s.name,s,null),yt(e,t,"formEncType",s.formEncType,s,null),yt(e,t,"formMethod",s.formMethod,s,null),yt(e,t,"formTarget",s.formTarget,s,null)):(yt(e,t,"encType",s.encType,s,null),yt(e,t,"method",s.method,s,null),yt(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=ns(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=rl);break;case"onScroll":i!=null&&Ve("scroll",e);break;case"onScrollEnd":i!=null&&Ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=ns(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Ve("beforetoggle",e),Ve("toggle",e),zl(e,"popover",i);break;case"xlinkActuate":ka(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ka(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ka(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ka(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ka(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ka(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ka(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ka(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ka(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":zl(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ab.get(a)||a,zl(e,a,i))}}function dd(e,t,a,i,s,u){switch(a){case"style":ym(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof i=="string"?Pr(e,i):(typeof i=="number"||typeof i=="bigint")&&Pr(e,""+i);break;case"onScroll":i!=null&&Ve("scroll",e);break;case"onScrollEnd":i!=null&&Ve("scrollend",e);break;case"onClick":i!=null&&(e.onclick=rl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fn.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),u=e[St]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,s),typeof i=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,s);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):zl(e,a,i)}}}function Sn(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",e),Ve("load",e);var i=!1,s=!1,u;for(u in a)if(a.hasOwnProperty(u)){var g=a[u];if(g!=null)switch(u){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:yt(e,t,u,g,a,null)}}s&&yt(e,t,"srcSet",a.srcSet,a,null),i&&yt(e,t,"src",a.src,a,null);return;case"input":Ve("invalid",e);var _=u=g=s=null,w=null,U=null;for(i in a)if(a.hasOwnProperty(i)){var F=a[i];if(F!=null)switch(i){case"name":s=F;break;case"type":g=F;break;case"checked":w=F;break;case"defaultChecked":U=F;break;case"value":u=F;break;case"defaultValue":_=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,t));break;default:yt(e,t,i,F,a,null)}}mm(e,u,_,w,U,g,s,!1);return;case"select":Ve("invalid",e),i=g=u=null;for(s in a)if(a.hasOwnProperty(s)&&(_=a[s],_!=null))switch(s){case"value":u=_;break;case"defaultValue":g=_;break;case"multiple":i=_;default:yt(e,t,s,_,a,null)}t=u,a=g,e.multiple=!!i,t!=null?Wr(e,!!i,t,!1):a!=null&&Wr(e,!!i,a,!0);return;case"textarea":Ve("invalid",e),u=s=i=null;for(g in a)if(a.hasOwnProperty(g)&&(_=a[g],_!=null))switch(g){case"value":i=_;break;case"defaultValue":s=_;break;case"children":u=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(91));break;default:yt(e,t,g,_,a,null)}gm(e,i,s,u);return;case"option":for(w in a)a.hasOwnProperty(w)&&(i=a[w],i!=null)&&(w==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":yt(e,t,w,i,a,null));return;case"dialog":Ve("beforetoggle",e),Ve("toggle",e),Ve("cancel",e),Ve("close",e);break;case"iframe":case"object":Ve("load",e);break;case"video":case"audio":for(i=0;i<bo.length;i++)Ve(bo[i],e);break;case"image":Ve("error",e),Ve("load",e);break;case"details":Ve("toggle",e);break;case"embed":case"source":case"link":Ve("error",e),Ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in a)if(a.hasOwnProperty(U)&&(i=a[U],i!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:yt(e,t,U,i,a,null)}return;default:if(Tu(t)){for(F in a)a.hasOwnProperty(F)&&(i=a[F],i!==void 0&&dd(e,t,F,i,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(i=a[_],i!=null&&yt(e,t,_,i,a,null))}function J_(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,g=null,_=null,w=null,U=null,F=null;for(G in a){var P=a[G];if(a.hasOwnProperty(G)&&P!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":w=P;default:i.hasOwnProperty(G)||yt(e,t,G,null,i,P)}}for(var I in i){var G=i[I];if(P=a[I],i.hasOwnProperty(I)&&(G!=null||P!=null))switch(I){case"type":u=G;break;case"name":s=G;break;case"checked":U=G;break;case"defaultChecked":F=G;break;case"value":g=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:G!==P&&yt(e,t,I,G,i,P)}}Su(e,g,_,w,U,F,u,s);return;case"select":G=g=_=I=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":G=w;default:i.hasOwnProperty(u)||yt(e,t,u,null,i,w)}for(s in i)if(u=i[s],w=a[s],i.hasOwnProperty(s)&&(u!=null||w!=null))switch(s){case"value":I=u;break;case"defaultValue":_=u;break;case"multiple":g=u;default:u!==w&&yt(e,t,s,u,i,w)}t=_,a=g,i=G,I!=null?Wr(e,!!a,I,!1):!!i!=!!a&&(t!=null?Wr(e,!!a,t,!0):Wr(e,!!a,a?[]:"",!1));return;case"textarea":G=I=null;for(_ in a)if(s=a[_],a.hasOwnProperty(_)&&s!=null&&!i.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:yt(e,t,_,null,i,s)}for(g in i)if(s=i[g],u=a[g],i.hasOwnProperty(g)&&(s!=null||u!=null))switch(g){case"value":I=s;break;case"defaultValue":G=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==u&&yt(e,t,g,s,i,u)}pm(e,I,G);return;case"option":for(var ye in a)I=a[ye],a.hasOwnProperty(ye)&&I!=null&&!i.hasOwnProperty(ye)&&(ye==="selected"?e.selected=!1:yt(e,t,ye,null,i,I));for(w in i)I=i[w],G=a[w],i.hasOwnProperty(w)&&I!==G&&(I!=null||G!=null)&&(w==="selected"?e.selected=I&&typeof I!="function"&&typeof I!="symbol":yt(e,t,w,I,i,G));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 xe in a)I=a[xe],a.hasOwnProperty(xe)&&I!=null&&!i.hasOwnProperty(xe)&&yt(e,t,xe,null,i,I);for(U in i)if(I=i[U],G=a[U],i.hasOwnProperty(U)&&I!==G&&(I!=null||G!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(o(137,t));break;default:yt(e,t,U,I,i,G)}return;default:if(Tu(t)){for(var bt in a)I=a[bt],a.hasOwnProperty(bt)&&I!==void 0&&!i.hasOwnProperty(bt)&&dd(e,t,bt,void 0,i,I);for(F in i)I=i[F],G=a[F],!i.hasOwnProperty(F)||I===G||I===void 0&&G===void 0||dd(e,t,F,I,i,G);return}}for(var k in a)I=a[k],a.hasOwnProperty(k)&&I!=null&&!i.hasOwnProperty(k)&&yt(e,t,k,null,i,I);for(P in i)I=i[P],G=a[P],!i.hasOwnProperty(P)||I===G||I==null&&G==null||yt(e,t,P,I,i,G)}function b0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z_(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var s=a[i],u=s.transferSize,g=s.initiatorType,_=s.duration;if(u&&_&&b0(g)){for(g=0,_=s.responseEnd,i+=1;i<a.length;i++){var w=a[i],U=w.startTime;if(U>_)break;var F=w.transferSize,P=w.initiatorType;F&&b0(P)&&(w=w.responseEnd,g+=F*(w<_?1:(_-U)/(w-U)))}if(--i,t+=8*(u+g)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var hd=null,md=null;function Ps(e){return e.nodeType===9?e:e.ownerDocument}function _0(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 A0(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 pd(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 gd=null;function W_(){var e=window.event;return e&&e.type==="popstate"?e===gd?!1:(gd=e,!0):(gd=null,!1)}var C0=typeof setTimeout=="function"?setTimeout:void 0,P_=typeof clearTimeout=="function"?clearTimeout:void 0,S0=typeof Promise=="function"?Promise:void 0,Q_=typeof queueMicrotask=="function"?queueMicrotask:typeof S0<"u"?function(e){return S0.resolve(null).then(e).catch($_)}:C0;function $_(e){setTimeout(function(){throw e})}function Ql(e){return e==="head"}function E0(e,t){var a=t,i=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(s),wi(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Ao(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ao(a);for(var u=a.firstChild;u;){var g=u.nextSibling,_=u.nodeName;u[be]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=g}}else a==="body"&&Ao(e.ownerDocument.body);a=s}while(a);wi(t)}function T0(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function vd(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":vd(a),N(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function e2(e,t,a,i){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[be])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Oa(e.nextSibling),e===null)break}return null}function t2(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Oa(e.nextSibling),e===null))return null;return e}function x0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Oa(e.nextSibling),e===null))return null;return e}function yd(e){return e.data==="$?"||e.data==="$~"}function bd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function n2(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Oa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var _d=null;function O0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Oa(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function w0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function R0(e,t,a){switch(t=Ps(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ao(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);N(e)}var wa=new Map,N0=new Set;function Qs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Al=W.d;W.d={f:a2,r:l2,D:r2,C:i2,L:o2,m:s2,X:u2,S:c2,M:f2};function a2(){var e=Al.f(),t=Vs();return e||t}function l2(e){var t=ge(e);t!==null&&t.tag===5&&t.type==="form"?Kp(t):Al.r(e)}var Ti=typeof document>"u"?null:document;function M0(e,t,a){var i=Ti;if(i&&typeof t=="string"&&t){var s=_a(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),N0.has(s)||(N0.add(s),e={rel:e,crossOrigin:a,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),Sn(t,"link",e),we(t),i.head.appendChild(t)))}}function r2(e){Al.D(e),M0("dns-prefetch",e,null)}function i2(e,t){Al.C(e,t),M0("preconnect",e,t)}function o2(e,t,a){Al.L(e,t,a);var i=Ti;if(i&&e&&t){var s='link[rel="preload"][as="'+_a(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+_a(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+_a(a.imageSizes)+'"]')):s+='[href="'+_a(e)+'"]';var u=s;switch(t){case"style":u=xi(e);break;case"script":u=Oi(e)}wa.has(u)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),wa.set(u,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(Co(u))||t==="script"&&i.querySelector(So(u))||(t=i.createElement("link"),Sn(t,"link",e),we(t),i.head.appendChild(t)))}}function s2(e,t){Al.m(e,t);var a=Ti;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+_a(i)+'"][href="'+_a(e)+'"]',u=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Oi(e)}if(!wa.has(u)&&(e=b({rel:"modulepreload",href:e},t),wa.set(u,e),a.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(So(u)))return}i=a.createElement("link"),Sn(i,"link",e),we(i),a.head.appendChild(i)}}}function c2(e,t,a){Al.S(e,t,a);var i=Ti;if(i&&e){var s=gt(i).hoistableStyles,u=xi(e);t=t||"default";var g=s.get(u);if(!g){var _={loading:0,preload:null};if(g=i.querySelector(Co(u)))_.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=wa.get(u))&&Ad(e,a);var w=g=i.createElement("link");we(w),Sn(w,"link",e),w._p=new Promise(function(U,F){w.onload=U,w.onerror=F}),w.addEventListener("load",function(){_.loading|=1}),w.addEventListener("error",function(){_.loading|=2}),_.loading|=4,$s(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:_},s.set(u,g)}}}function u2(e,t){Al.X(e,t);var a=Ti;if(a&&e){var i=gt(a).hoistableScripts,s=Oi(e),u=i.get(s);u||(u=a.querySelector(So(s)),u||(e=b({src:e,async:!0},t),(t=wa.get(s))&&Cd(e,t),u=a.createElement("script"),we(u),Sn(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function f2(e,t){Al.M(e,t);var a=Ti;if(a&&e){var i=gt(a).hoistableScripts,s=Oi(e),u=i.get(s);u||(u=a.querySelector(So(s)),u||(e=b({src:e,async:!0,type:"module"},t),(t=wa.get(s))&&Cd(e,t),u=a.createElement("script"),we(u),Sn(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function D0(e,t,a,i){var s=(s=fe.current)?Qs(s):null;if(!s)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=xi(a.href),a=gt(s).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=xi(a.href);var u=gt(s).hoistableStyles,g=u.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=s.querySelector(Co(e)))&&!u._p&&(g.instance=u,g.state.loading=5),wa.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},wa.set(e,a),u||d2(s,e,a,g.state))),t&&i===null)throw Error(o(528,""));return g}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Oi(a),a=gt(s).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function xi(e){return'href="'+_a(e)+'"'}function Co(e){return'link[rel="stylesheet"]['+e+"]"}function L0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function d2(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Sn(t,"link",a),we(t),e.head.appendChild(t))}function Oi(e){return'[src="'+_a(e)+'"]'}function So(e){return"script[async]"+e}function z0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+_a(a.href)+'"]');if(i)return t.instance=i,we(i),i;var s=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),we(i),Sn(i,"style",s),$s(i,a.precedence,e),t.instance=i;case"stylesheet":s=xi(a.href);var u=e.querySelector(Co(s));if(u)return t.state.loading|=4,t.instance=u,we(u),u;i=L0(a),(s=wa.get(s))&&Ad(i,s),u=(e.ownerDocument||e).createElement("link"),we(u);var g=u;return g._p=new Promise(function(_,w){g.onload=_,g.onerror=w}),Sn(u,"link",i),t.state.loading|=4,$s(u,a.precedence,e),t.instance=u;case"script":return u=Oi(a.src),(s=e.querySelector(So(u)))?(t.instance=s,we(s),s):(i=a,(s=wa.get(u))&&(i=b({},a),Cd(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),we(s),Sn(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,$s(i,a.precedence,e));return t.instance}function $s(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,u=s,g=0;g<i.length;g++){var _=i[g];if(_.dataset.precedence===t)u=_;else if(u!==s)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ad(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ec=null;function k0(e,t,a){if(ec===null){var i=new Map,s=ec=new Map;s.set(a,i)}else s=ec,i=s.get(a),i||(i=new Map,s.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var u=a[s];if(!(u[be]||u[Gt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var g=u.getAttribute(t)||"";g=e+g;var _=i.get(g);_?_.push(u):i.set(g,[u])}}return i}function B0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function h2(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 j0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function m2(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=xi(i.href),u=t.querySelector(Co(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,we(u);return}u=t.ownerDocument||t,i=L0(i),(s=wa.get(s))&&Ad(i,s),u=u.createElement("link"),we(u);var g=u;g._p=new Promise(function(_,w){g.onload=_,g.onerror=w}),Sn(u,"link",i),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=tc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Sd=0;function p2(e,t){return e.stylesheets&&e.count===0&&ac(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Sd===0&&(Sd=62500*Z_());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Sd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ac(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nc=null;function ac(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nc=new Map,t.forEach(g2,e),nc=null,tc.call(e))}function g2(e,t){if(!(t.state.loading&4)){var a=nc.get(e);if(a)var i=a.get(null);else{a=new Map,nc.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var g=s[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),i=g)}i&&a.set(null,i)}s=t.instance,g=s.getAttribute("data-precedence"),u=a.get(g)||i,u===i&&a.set(null,s),a.set(g,s),this.count++,i=tc.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),u?u.parentNode.insertBefore(s,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Eo={$$typeof:L,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function v2(e,t,a,i,s,u,g,_,w){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=gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gr(0),this.hiddenUpdates=gr(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function U0(e,t,a,i,s,u,g,_,w,U,F,P){return e=new v2(e,t,a,g,w,U,F,P,_),t=1,u===!0&&(t|=24),u=ia(3,null,null,t),e.current=u,u.stateNode=e,t=tf(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:i,isDehydrated:a,cache:t},rf(u),e}function H0(e){return e?(e=li,e):li}function q0(e,t,a,i,s,u){s=H0(s),i.context===null?i.context=s:i.pendingContext=s,i=Il(t),i.payload={element:a},u=u===void 0?null:u,u!==null&&(i.callback=u),a=Gl(e,i,t),a!==null&&(Qn(a,e,t),to(a,e,t))}function I0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ed(e,t){I0(e,t),(e=e.alternate)&&I0(e,t)}function G0(e){if(e.tag===13||e.tag===31){var t=Tr(e,67108864);t!==null&&Qn(t,e,67108864),Ed(e,67108864)}}function V0(e){if(e.tag===13||e.tag===31){var t=fa();t=pt(t);var a=Tr(e,t);a!==null&&Qn(a,e,t),Ed(e,t)}}var lc=!0;function y2(e,t,a,i){var s=R.T;R.T=null;var u=W.p;try{W.p=2,Td(e,t,a,i)}finally{W.p=u,R.T=s}}function b2(e,t,a,i){var s=R.T;R.T=null;var u=W.p;try{W.p=8,Td(e,t,a,i)}finally{W.p=u,R.T=s}}function Td(e,t,a,i){if(lc){var s=xd(i);if(s===null)fd(e,t,i,rc,a),X0(e,i);else if(A2(s,e,t,a,i))i.stopPropagation();else if(X0(e,i),t&4&&-1<_2.indexOf(e)){for(;s!==null;){var u=ge(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=pn(u.pendingLanes);if(g!==0){var _=u;for(_.pendingLanes|=2,_.entangledLanes|=2;g;){var w=1<<31-Ot(g);_.entanglements[1]|=w,g&=~w}Za(u),(st&6)===0&&(Is=Ct()+500,yo(0))}}break;case 31:case 13:_=Tr(u,2),_!==null&&Qn(_,u,2),Vs(),Ed(u,2)}if(u=xd(i),u===null&&fd(e,t,i,rc,a),u===s)break;s=u}s!==null&&i.stopPropagation()}else fd(e,t,i,null,a)}}function xd(e){return e=Ou(e),Od(e)}var rc=null;function Od(e){if(rc=null,e=te(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(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 rc=e,null}function Y0(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(hn()){case Nn:return 2;case xt:return 8;case Kt:case ta:return 32;case xn:return 268435456;default:return 32}default:return 32}}var wd=!1,$l=null,er=null,tr=null,To=new Map,xo=new Map,nr=[],_2="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 X0(e,t){switch(e){case"focusin":case"focusout":$l=null;break;case"dragenter":case"dragleave":er=null;break;case"mouseover":case"mouseout":tr=null;break;case"pointerover":case"pointerout":To.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xo.delete(t.pointerId)}}function Oo(e,t,a,i,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:u,targetContainers:[s]},t!==null&&(t=ge(t),t!==null&&G0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function A2(e,t,a,i,s){switch(t){case"focusin":return $l=Oo($l,e,t,a,i,s),!0;case"dragenter":return er=Oo(er,e,t,a,i,s),!0;case"mouseover":return tr=Oo(tr,e,t,a,i,s),!0;case"pointerover":var u=s.pointerId;return To.set(u,Oo(To.get(u)||null,e,t,a,i,s)),!0;case"gotpointercapture":return u=s.pointerId,xo.set(u,Oo(xo.get(u)||null,e,t,a,i,s)),!0}return!1}function F0(e){var t=te(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,al(e.priority,function(){V0(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,al(e.priority,function(){V0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ic(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=xd(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);xu=i,a.target.dispatchEvent(i),xu=null}else return t=ge(a),t!==null&&G0(t),e.blockedOn=a,!1;t.shift()}return!0}function K0(e,t,a){ic(e)&&a.delete(t)}function C2(){wd=!1,$l!==null&&ic($l)&&($l=null),er!==null&&ic(er)&&(er=null),tr!==null&&ic(tr)&&(tr=null),To.forEach(K0),xo.forEach(K0)}function oc(e,t){e.blockedOn===t&&(e.blockedOn=null,wd||(wd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,C2)))}var sc=null;function J0(e){sc!==e&&(sc=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){sc===e&&(sc=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(Od(i||a)===null)continue;break}var u=ge(a);u!==null&&(e.splice(t,3),t-=3,xf(u,{pending:!0,data:s,method:a.method,action:i},i,s))}}))}function wi(e){function t(w){return oc(w,e)}$l!==null&&oc($l,e),er!==null&&oc(er,e),tr!==null&&oc(tr,e),To.forEach(t),xo.forEach(t);for(var a=0;a<nr.length;a++){var i=nr[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<nr.length&&(a=nr[0],a.blockedOn===null);)F0(a),a.blockedOn===null&&nr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var s=a[i],u=a[i+1],g=s[St]||null;if(typeof u=="function")g||J0(a);else if(g){var _=null;if(u&&u.hasAttribute("formAction")){if(s=u,g=u[St]||null)_=g.formAction;else if(Od(s)!==null)continue}else _=g.action;typeof _=="function"?a[i+1]=_:(a.splice(i,3),i-=3),J0(a)}}}function Z0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(g){return s=g})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Rd(e){this._internalRoot=e}cc.prototype.render=Rd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,i=fa();q0(a,i,e,t,null,null)},cc.prototype.unmount=Rd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;q0(e.current,2,null,e,null,null),Vs(),t[aa]=null}};function cc(e){this._internalRoot=e}cc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xa();e={blockedOn:null,target:e,priority:t};for(var a=0;a<nr.length&&t!==0&&t<nr[a].priority;a++);nr.splice(a,0,e),a===0&&F0(e)}};var W0=l.version;if(W0!=="19.2.4")throw Error(o(527,W0,"19.2.4"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var S2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{on=uc.inject(S2),mt=uc}catch{}}return Ro.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,i="",s=ag,u=lg,g=rg;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=U0(e,1,!1,null,null,a,i,null,s,u,g,Z0),e[aa]=t.current,ud(e),new Rd(t)},Ro.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var i=!1,s="",u=ag,g=lg,_=rg,w=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=U0(e,1,!0,t,a??null,i,s,w,u,g,_,Z0),t.context=H0(null),a=t.current,i=fa(),i=pt(i),s=Il(i),s.callback=null,Gl(a,s,i),a=i,t.current.lanes=a,za(t,a),Za(t),e[aa]=t.current,ud(e),new cc(t)},Ro.version="19.2.4",Ro}var i1;function z2(){if(i1)return Md.exports;i1=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(l){console.error(l)}}return n(),Md.exports=L2(),Md.exports}var k2=z2(),q=tu();const Mv=T2(q);var Bd={exports:{}},jd={};var o1;function B2(){if(o1)return jd;o1=1;var n=tu();function l(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var r=typeof Object.is=="function"?Object.is:l,o=n.useSyncExternalStore,c=n.useRef,f=n.useEffect,d=n.useMemo,m=n.useDebugValue;return jd.useSyncExternalStoreWithSelector=function(h,p,y,b,A){var S=c(null);if(S.current===null){var O={hasValue:!1,value:null};S.current=O}else O=S.current;S=d(function(){function E(H){if(!x){if(x=!0,M=H,H=b(H),A!==void 0&&O.hasValue){var B=O.value;if(A(B,H))return L=B}return L=H}if(B=L,r(M,H))return B;var X=b(H);return A!==void 0&&A(B,X)?(M=H,B):(M=H,L=X)}var x=!1,M,L,z=y===void 0?null:y;return[function(){return E(p())},z===null?void 0:function(){return E(z())}]},[p,y,b,A]);var C=o(h,S[0],S[1]);return f(function(){O.hasValue=!0,O.value=C},[C]),m(C),C},jd}var s1;function j2(){return s1||(s1=1,Bd.exports=B2()),Bd.exports}var U2=j2(),H2=q.version.startsWith("19"),q2=Symbol.for(H2?"react.transitional.element":"react.element"),I2=Symbol.for("react.portal"),G2=Symbol.for("react.fragment"),V2=Symbol.for("react.strict_mode"),Y2=Symbol.for("react.profiler"),X2=Symbol.for("react.consumer"),F2=Symbol.for("react.context"),Dv=Symbol.for("react.forward_ref"),K2=Symbol.for("react.suspense"),J2=Symbol.for("react.suspense_list"),Nh=Symbol.for("react.memo"),Z2=Symbol.for("react.lazy"),W2=Dv,P2=Nh;function Q2(n){if(typeof n=="object"&&n!==null){const{$$typeof:l}=n;switch(l){case q2:switch(n=n.type,n){case G2:case Y2:case V2:case K2:case J2:return n;default:switch(n=n&&n.$$typeof,n){case F2:case Dv:case Z2:case Nh:return n;case X2:return n;default:return l}}case I2:return l}}}function $2(n){return Q2(n)===Nh}function eA(n,l,r,o,{areStatesEqual:c,areOwnPropsEqual:f,areStatePropsEqual:d}){let m=!1,h,p,y,b,A;function S(M,L){return h=M,p=L,y=n(h,p),b=l(o,p),A=r(y,b,p),m=!0,A}function O(){return y=n(h,p),l.dependsOnOwnProps&&(b=l(o,p)),A=r(y,b,p),A}function C(){return n.dependsOnOwnProps&&(y=n(h,p)),l.dependsOnOwnProps&&(b=l(o,p)),A=r(y,b,p),A}function E(){const M=n(h,p),L=!d(M,y);return y=M,L&&(A=r(y,b,p)),A}function x(M,L){const z=!f(L,p),H=!c(M,h,L,p);return h=M,p=L,z&&H?O():z?C():H?E():A}return function(L,z){return m?x(L,z):S(L,z)}}function tA(n,{initMapStateToProps:l,initMapDispatchToProps:r,initMergeProps:o,...c}){const f=l(n,c),d=r(n,c),m=o(n,c);return eA(f,d,m,n,c)}function nA(n,l){const r={};for(const o in n){const c=n[o];typeof c=="function"&&(r[o]=(...f)=>l(c(...f)))}return r}function nh(n){return function(r){const o=n(r);function c(){return o}return c.dependsOnOwnProps=!1,c}}function c1(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function Lv(n,l){return function(o,{displayName:c}){const f=function(m,h){return f.dependsOnOwnProps?f.mapToProps(m,h):f.mapToProps(m,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(m,h){f.mapToProps=n,f.dependsOnOwnProps=c1(n);let p=f(m,h);return typeof p=="function"&&(f.mapToProps=p,f.dependsOnOwnProps=c1(p),p=f(m,h)),p},f}}function Mh(n,l){return(r,o)=>{throw new Error(`Invalid value of type ${typeof n} for ${l} argument when connecting component ${o.wrappedComponentName}.`)}}function aA(n){return n&&typeof n=="object"?nh(l=>nA(n,l)):n?typeof n=="function"?Lv(n):Mh(n,"mapDispatchToProps"):nh(l=>({dispatch:l}))}function lA(n){return n?typeof n=="function"?Lv(n):Mh(n,"mapStateToProps"):nh(()=>({}))}function rA(n,l,r){return{...r,...n,...l}}function iA(n){return function(r,{displayName:o,areMergedPropsEqual:c}){let f=!1,d;return function(h,p,y){const b=n(h,p,y);return f?c(b,d)||(d=b):(f=!0,d=b),d}}}function oA(n){return n?typeof n=="function"?iA(n):Mh(n,"mergeProps"):()=>rA}function sA(n){n()}function cA(){let n=null,l=null;return{clear(){n=null,l=null},notify(){sA(()=>{let r=n;for(;r;)r.callback(),r=r.next})},get(){const r=[];let o=n;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0;const c=l={callback:r,next:null,prev:l};return c.prev?c.prev.next=c:n=c,function(){!o||n===null||(o=!1,c.next?c.next.prev=c.prev:l=c.prev,c.prev?c.prev.next=c.next:n=c.next)}}}}var u1={notify(){},get:()=>[]};function zv(n,l){let r,o=u1,c=0,f=!1;function d(C){y();const E=o.subscribe(C);let x=!1;return()=>{x||(x=!0,E(),b())}}function m(){o.notify()}function h(){O.onStateChange&&O.onStateChange()}function p(){return f}function y(){c++,r||(r=l?l.addNestedSub(h):n.subscribe(h),o=cA())}function b(){c--,r&&c===0&&(r(),r=void 0,o.clear(),o=u1)}function A(){f||(f=!0,y())}function S(){f&&(f=!1,b())}const O={addNestedSub:d,notifyNestedSubs:m,handleChangeWrapper:h,isSubscribed:p,trySubscribe:A,tryUnsubscribe:S,getListeners:()=>o};return O}var uA=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fA=uA(),dA=()=>typeof navigator<"u"&&navigator.product==="ReactNative",hA=dA(),mA=()=>fA||hA?q.useLayoutEffect:q.useEffect,zc=mA();function f1(n,l){return n===l?n!==0||l!==0||1/n===1/l:n!==n&&l!==l}function Ud(n,l){if(f1(n,l))return!0;if(typeof n!="object"||n===null||typeof l!="object"||l===null)return!1;const r=Object.keys(n),o=Object.keys(l);if(r.length!==o.length)return!1;for(let c=0;c<r.length;c++)if(!Object.prototype.hasOwnProperty.call(l,r[c])||!f1(n[r[c]],l[r[c]]))return!1;return!0}var pA={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},gA={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vA={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yA={[W2]:vA,[P2]:kv};function d1(n){return $2(n)?kv:yA[n.$$typeof]||pA}var bA=Object.defineProperty,_A=Object.getOwnPropertyNames,h1=Object.getOwnPropertySymbols,AA=Object.getOwnPropertyDescriptor,CA=Object.getPrototypeOf,m1=Object.prototype;function ah(n,l){if(typeof l!="string"){if(m1){const f=CA(l);f&&f!==m1&&ah(n,f)}let r=_A(l);h1&&(r=r.concat(h1(l)));const o=d1(n),c=d1(l);for(let f=0;f<r.length;++f){const d=r[f];if(!gA[d]&&!(c&&c[d])&&!(o&&o[d])){const m=AA(l,d);try{bA(n,d,m)}catch{}}}}return n}var SA=Symbol.for("react-redux-context"),EA=typeof globalThis<"u"?globalThis:{};function TA(){if(!q.createContext)return{};const n=EA[SA]??=new Map;let l=n.get(q.createContext);return l||(l=q.createContext(null),n.set(q.createContext,l)),l}var wl=TA(),xA=[null,null];function OA(n,l,r){zc(()=>n(...l),r)}function wA(n,l,r,o,c,f){n.current=o,r.current=!1,c.current&&(c.current=null,f())}function RA(n,l,r,o,c,f,d,m,h,p,y){if(!n)return()=>{};let b=!1,A=null;const S=()=>{if(b||!m.current)return;const C=l.getState();let E,x;try{E=o(C,c.current)}catch(M){x=M,A=M}x||(A=null),E===f.current?d.current||p():(f.current=E,h.current=E,d.current=!0,y())};return r.onStateChange=S,r.trySubscribe(),S(),()=>{if(b=!0,r.tryUnsubscribe(),r.onStateChange=null,A)throw A}}function NA(n,l){return n===l}function MA(n,l,r,{pure:o,areStatesEqual:c=NA,areOwnPropsEqual:f=Ud,areStatePropsEqual:d=Ud,areMergedPropsEqual:m=Ud,forwardRef:h=!1,context:p=wl}={}){const y=p,b=lA(n),A=aA(l),S=oA(r),O=!!n;return E=>{const x=E.displayName||E.name||"Component",M=`Connect(${x})`,L={shouldHandleStateChanges:O,displayName:M,wrappedComponentName:x,WrappedComponent:E,initMapStateToProps:b,initMapDispatchToProps:A,initMergeProps:S,areStatesEqual:c,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:m};function z(X){const[Z,re,$]=q.useMemo(()=>{const{reactReduxForwardedRef:de,...ee}=X;return[X.context,de,ee]},[X]),ne=q.useMemo(()=>{let de=y;return Z?.Consumer,de},[Z,y]),ie=q.useContext(ne),he=!!X.store&&!!X.store.getState&&!!X.store.dispatch,pe=!!ie&&!!ie.store,ce=he?X.store:ie.store,R=pe?ie.getServerState:ce.getState,W=q.useMemo(()=>tA(ce.dispatch,L),[ce]),[le,ae]=q.useMemo(()=>{if(!O)return xA;const de=zv(ce,he?void 0:ie.subscription),ee=de.notifyNestedSubs.bind(de);return[de,ee]},[ce,he,ie]),_e=q.useMemo(()=>he?ie:{...ie,subscription:le},[he,ie,le]),T=q.useRef(void 0),V=q.useRef($),Y=q.useRef(void 0),oe=q.useRef(!1),K=q.useRef(!1),fe=q.useRef(void 0);zc(()=>(K.current=!0,()=>{K.current=!1}),[]);const Se=q.useMemo(()=>()=>Y.current&&$===V.current?Y.current:W(ce.getState(),$),[ce,$]),Ee=q.useMemo(()=>ee=>le?RA(O,ce,le,W,V,T,oe,K,Y,ae,ee):()=>{},[le]);OA(wA,[V,T,oe,$,Y,ae]);let De;try{De=q.useSyncExternalStore(Ee,Se,R?()=>W(R(),$):Se)}catch(de){throw fe.current&&(de.message+=`
10
- The error may be correlated with this previous error:
11
- ${fe.current.stack}
12
-
13
- `),de}zc(()=>{fe.current=void 0,Y.current=void 0,T.current=De});const Be=q.useMemo(()=>q.createElement(E,{...De,ref:re}),[re,E,De]);return q.useMemo(()=>O?q.createElement(ne.Provider,{value:_e},Be):Be,[ne,Be,_e])}const B=q.memo(z);if(B.WrappedComponent=E,B.displayName=z.displayName=M,h){const Z=q.forwardRef(function($,ne){return q.createElement(B,{...$,reactReduxForwardedRef:ne})});return Z.displayName=M,Z.WrappedComponent=E,ah(Z,E)}return ah(B,E)}}var DA=MA;function LA(n){const{children:l,context:r,serverState:o,store:c}=n,f=q.useMemo(()=>{const h=zv(c);return{store:c,subscription:h,getServerState:o?()=>o:void 0}},[c,o]),d=q.useMemo(()=>c.getState(),[c]);zc(()=>{const{subscription:h}=f;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==c.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[f,d]);const m=r||wl;return q.createElement(m.Provider,{value:f},l)}var zA=LA;function Dh(n=wl){return function(){return q.useContext(n)}}var Bv=Dh();function jv(n=wl){const l=n===wl?Bv:Dh(n),r=()=>{const{store:o}=l();return o};return Object.assign(r,{withTypes:()=>r}),r}var kA=jv();function BA(n=wl){const l=n===wl?kA:jv(n),r=()=>l().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var jA=BA(),UA=(n,l)=>n===l;function HA(n=wl){const l=n===wl?Bv:Dh(n),r=(o,c={})=>{const{equalityFn:f=UA}=typeof c=="function"?{equalityFn:c}:c,d=l(),{store:m,subscription:h,getServerState:p}=d;q.useRef(!0);const y=q.useCallback({[o.name](A){return o(A)}}[o.name],[o]),b=U2.useSyncExternalStoreWithSelector(h.addNestedSub,m.getState,p||m.getState,y,f);return q.useDebugValue(b),b};return Object.assign(r,{withTypes:()=>r}),r}var qA=HA();function Uv(n){var l,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(l=0;l<c;l++)n[l]&&(r=Uv(n[l]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function se(){for(var n,l,r=0,o="",c=arguments.length;r<c;r++)(n=arguments[r])&&(l=Uv(n))&&(o&&(o+=" "),o+=l);return o}const IA="_app_1rj0t_1",GA={app:IA},Hv="core.typing.on",qv="core.typing.off",Lh="core.message.from.guest",Iv="core.message.without.analysis.from.guest",Gv="core.message.to.guest",VA="core.nlu.request.event",Vv="core.event.to.guest",YA="core.chat.restart.request",XA="core.transcript.mail.request",Yv="core.transcript.item.guest.reaction",zh="core.conversation.rating.from.guest",FA="core.drawer.open",KA="core.drawer.close",JA="core.guest.locale.changed";var kc;(function(n){n.WEB_URL="web_url",n.POSTBACK="postback"})(kc||(kc={}));var p1;(function(n){n.GOOD="GOOD",n.BAD="BAD"})(p1||(p1={}));let ZA=class{type;sender;sources;quickReplies;constructor(l,r,o=[],c=[]){this.type=l,this.sender=r,this.sources=o,this.quickReplies=c}addQuickReply(l,r){this.quickReplies.push({label:l,payload:r})}},nu=class extends ZA{text;constructor(l,r,o=[],c=[]){super(Mi.TEXT,r,o,c),this.text=l}};var Mi;(function(n){n.TEXT="TEXT",n.DETAIL="DETAIL",n.MARKDOWN="MARKDOWN",n.VIDEO="VIDEO",n.IMAGE="IMAGE",n.FILE="FILE",n.AUDIO="AUDIO"})(Mi||(Mi={}));class Xv{type;id;name;avatar;constructor(l,r,o,c){this.type=l,this.id=r,this.name=o,this.avatar=c}}class WA extends Xv{constructor(){super(Rl.BOT,null,"Chatbot","bot.svg")}}class kh extends Xv{constructor(){super(Rl.GUEST,null,"Guest","visitor.svg")}}var Rl;(function(n){n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON"})(Rl||(Rl={}));const PA=n=>{const l=new nu(n,new kh);return{type:Lh,message:l}},QA=(n,l={})=>{const r=new nu(n,new kh);return{type:Iv,message:r,payload:l}},$A=n=>({type:VA,event:n}),eC=(n,l,r=null,o=null)=>({type:Yv,payload:{actionId:n,reaction:l,category:r,comment:o}});var g1;(function(n){n.GENERIC="GENERIC",n.CUSTOM="CUSTOM"})(g1||(g1={}));const Fv=n=>l=>(n.payload.type!==Lh&&l(QA(n.label,n.payload)),l(n.payload)),Kv=n=>(l,r)=>{const{quickReplies:o}=r().chat,c=o.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return l(c?Fv({...c,label:n}):JSON.parse(JSON.stringify(PA(n))))},Bh="MESSAGE_TO_PARENT_PAGE",jh="RESTORE_PREVIOUS_CHAT_MESSAGES",Uh="AUDIO_MESSAGE_FROM_USER",Hh="RECEIVE_SPEECH_TRANSCRIPTION",qh="ENABLE_CONVERSATION_RATING",Jv="LOAD_SOURCE_INFOS_RESPONSE",Ih="LOAD_SOURCE_INFOS_ERROR",Gh="LOAD_SOURCE_INFOS_REQUEST",Vh="CLOSE_SOURCE_INFOS",tC="webclient.get.started",Zv="webclient.window.expand",Wv="webclient.window.close",Pv="webclient.transcript.pdf.download",nC=[Bh,jh,Uh,Hh,qh,Gh,Vh],aC=n=>({type:Uh,buffer:n}),lC=n=>({type:Hh,transcription:n}),rC=n=>({type:XA,payload:{parameters:{mailTo:n}}}),iC=()=>({type:Pv}),oC=({rating:n})=>({type:qh,payload:{rating:n}}),sC=(n,l)=>({type:zh,payload:{value:n,feedback:l}}),Qv=n=>$A(n),cC=n=>({type:jh,messages:n}),uC=n=>{switch(n.type){case kc.WEB_URL:return ey(n.url);case kc.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},$v=n=>ey(n),ey=n=>({type:Bh,message:{type:"webclient.change.url",url:n}});function fc(n){for(var l=1;l<arguments.length;l++){var r=arguments[l];for(var o in r)n[o]=r[o]}return n}var fC={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 lh(n,l){function r(c,f,d){if(!(typeof document>"u")){d=fc({},l,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var h in d)d[h]&&(m+="; "+h,d[h]!==!0&&(m+="="+d[h].split(";")[0]));return document.cookie=c+"="+n.write(f,c)+m}}function o(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var f=document.cookie?document.cookie.split("; "):[],d={},m=0;m<f.length;m++){var h=f[m].split("="),p=h.slice(1).join("=");try{var y=decodeURIComponent(h[0]);if(d[y]=n.read(p,y),c===y)break}catch{}}return c?d[c]:d}}return Object.create({set:r,get:o,remove:function(c,f){r(c,"",fc({},f,{expires:-1}))},withAttributes:function(c){return lh(this.converter,fc({},this.attributes,c))},withConverter:function(c){return lh(fc({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(n)}})}var dc=lh(fC,{path:"/"});const En=[];for(let n=0;n<256;++n)En.push((n+256).toString(16).slice(1));function dC(n,l=0){return(En[n[l+0]]+En[n[l+1]]+En[n[l+2]]+En[n[l+3]]+"-"+En[n[l+4]]+En[n[l+5]]+"-"+En[n[l+6]]+En[n[l+7]]+"-"+En[n[l+8]]+En[n[l+9]]+"-"+En[n[l+10]]+En[n[l+11]]+En[n[l+12]]+En[n[l+13]]+En[n[l+14]]+En[n[l+15]]).toLowerCase()}let Hd;const hC=new Uint8Array(16);function mC(){if(!Hd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Hd=crypto.getRandomValues.bind(crypto)}return Hd(hC)}const pC=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),v1={randomUUID:pC};function gC(n,l,r){n=n||{};const o=n.random??n.rng?.()??mC();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,dC(o)}function Bc(n,l,r){return v1.randomUUID&&!n?v1.randomUUID():gC(n)}const au=()=>vC(window.location.pathname),vC=n=>{const l=n.split("/"),r=n.endsWith("/");return l[l.length-(r?2:1)]};function Tn(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 yC=typeof Symbol=="function"&&Symbol.observable||"@@observable",y1=yC,qd=()=>Math.random().toString(36).substring(7).split("").join("."),bC={INIT:`@@redux/INIT${qd()}`,REPLACE:`@@redux/REPLACE${qd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qd()}`},jc=bC;function Yh(n){if(typeof n!="object"||n===null)return!1;let l=n;for(;Object.getPrototypeOf(l)!==null;)l=Object.getPrototypeOf(l);return Object.getPrototypeOf(n)===l||Object.getPrototypeOf(n)===null}function ty(n,l,r){if(typeof n!="function")throw new Error(Tn(2));if(typeof l=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Tn(0));if(typeof l=="function"&&typeof r>"u"&&(r=l,l=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Tn(1));return r(ty)(n,l)}let o=n,c=l,f=new Map,d=f,m=0,h=!1;function p(){d===f&&(d=new Map,f.forEach((E,x)=>{d.set(x,E)}))}function y(){if(h)throw new Error(Tn(3));return c}function b(E){if(typeof E!="function")throw new Error(Tn(4));if(h)throw new Error(Tn(5));let x=!0;p();const M=m++;return d.set(M,E),function(){if(x){if(h)throw new Error(Tn(6));x=!1,p(),d.delete(M),f=null}}}function A(E){if(!Yh(E))throw new Error(Tn(7));if(typeof E.type>"u")throw new Error(Tn(8));if(typeof E.type!="string")throw new Error(Tn(17));if(h)throw new Error(Tn(9));try{h=!0,c=o(c,E)}finally{h=!1}return(f=d).forEach(M=>{M()}),E}function S(E){if(typeof E!="function")throw new Error(Tn(10));o=E,A({type:jc.REPLACE})}function O(){const E=b;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(Tn(11));function M(){const z=x;z.next&&z.next(y())}return M(),{unsubscribe:E(M)}},[y1](){return this}}}return A({type:jc.INIT}),{dispatch:A,subscribe:b,getState:y,replaceReducer:S,[y1]:O}}function _C(n){Object.keys(n).forEach(l=>{const r=n[l];if(typeof r(void 0,{type:jc.INIT})>"u")throw new Error(Tn(12));if(typeof r(void 0,{type:jc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Tn(13))})}function ny(n){const l=Object.keys(n),r={};for(let f=0;f<l.length;f++){const d=l[f];typeof n[d]=="function"&&(r[d]=n[d])}const o=Object.keys(r);let c;try{_C(r)}catch(f){c=f}return function(d={},m){if(c)throw c;let h=!1;const p={};for(let y=0;y<o.length;y++){const b=o[y],A=r[b],S=d[b],O=A(S,m);if(typeof O>"u")throw m&&m.type,new Error(Tn(14));p[b]=O,h=h||O!==S}return h=h||o.length!==Object.keys(d).length,h?p:d}}function Uc(...n){return n.length===0?l=>l:n.length===1?n[0]:n.reduce((l,r)=>(...o)=>l(r(...o)))}function AC(...n){return l=>(r,o)=>{const c=l(r,o);let f=()=>{throw new Error(Tn(15))};const d={getState:c.getState,dispatch:(h,...p)=>f(h,...p)},m=n.map(h=>h(d));return f=Uc(...m)(c.dispatch),{...c,dispatch:f}}}function CC(n){return Yh(n)&&"type"in n&&typeof n.type=="string"}var ay=Symbol.for("immer-nothing"),b1=Symbol.for("immer-draftable"),Hn=Symbol.for("immer-state");function Ga(n,...l){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var pa=Object,zi=pa.getPrototypeOf,Hc="constructor",lu="prototype",rh="configurable",qc="enumerable",Tc="writable",Vo="value",Nl=n=>!!n&&!!n[Hn];function Va(n){return n?ly(n)||iu(n)||!!n[b1]||!!n[Hc]?.[b1]||ou(n)||su(n):!1}var SC=pa[lu][Hc].toString(),_1=new WeakMap;function ly(n){if(!n||!Xh(n))return!1;const l=zi(n);if(l===null||l===pa[lu])return!0;const r=pa.hasOwnProperty.call(l,Hc)&&l[Hc];if(r===Object)return!0;if(!Ri(r))return!1;let o=_1.get(r);return o===void 0&&(o=Function.toString.call(r),_1.set(r,o)),o===SC}function ru(n,l,r=!0){Zo(n)===0?(r?Reflect.ownKeys(n):pa.keys(n)).forEach(c=>{l(c,n[c],n)}):n.forEach((o,c)=>l(c,o,n))}function Zo(n){const l=n[Hn];return l?l.type_:iu(n)?1:ou(n)?2:su(n)?3:0}var A1=(n,l,r=Zo(n))=>r===2?n.has(l):pa[lu].hasOwnProperty.call(n,l),ih=(n,l,r=Zo(n))=>r===2?n.get(l):n[l],Ic=(n,l,r,o=Zo(n))=>{o===2?n.set(l,r):o===3?n.add(r):n[l]=r};function EC(n,l){return n===l?n!==0||1/n===1/l:n!==n&&l!==l}var iu=Array.isArray,ou=n=>n instanceof Map,su=n=>n instanceof Set,Xh=n=>typeof n=="object",Ri=n=>typeof n=="function",Id=n=>typeof n=="boolean";function TC(n){const l=+n;return Number.isInteger(l)&&String(l)===n}var Cl=n=>n.copy_||n.base_,Fh=n=>n.modified_?n.copy_:n.base_;function oh(n,l){if(ou(n))return new Map(n);if(su(n))return new Set(n);if(iu(n))return Array[lu].slice.call(n);const r=ly(n);if(l===!0||l==="class_only"&&!r){const o=pa.getOwnPropertyDescriptors(n);delete o[Hn];let c=Reflect.ownKeys(o);for(let f=0;f<c.length;f++){const d=c[f],m=o[d];m[Tc]===!1&&(m[Tc]=!0,m[rh]=!0),(m.get||m.set)&&(o[d]={[rh]:!0,[Tc]:!0,[qc]:m[qc],[Vo]:n[d]})}return pa.create(zi(n),o)}else{const o=zi(n);if(o!==null&&r)return{...n};const c=pa.create(o);return pa.assign(c,n)}}function Kh(n,l=!1){return cu(n)||Nl(n)||!Va(n)||(Zo(n)>1&&pa.defineProperties(n,{set:hc,add:hc,clear:hc,delete:hc}),pa.freeze(n),l&&ru(n,(r,o)=>{Kh(o,!0)},!1)),n}function xC(){Ga(2)}var hc={[Vo]:xC};function cu(n){return n===null||!Xh(n)?!0:pa.isFrozen(n)}var Gc="MapSet",sh="Patches",C1="ArrayMethods",ry={};function Fr(n){const l=ry[n];return l||Ga(0,n),l}var S1=n=>!!ry[n],Yo,iy=()=>Yo,OC=(n,l)=>({drafts_:[],parent_:n,immer_:l,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:S1(Gc)?Fr(Gc):void 0,arrayMethodsPlugin_:S1(C1)?Fr(C1):void 0});function E1(n,l){l&&(n.patchPlugin_=Fr(sh),n.patches_=[],n.inversePatches_=[],n.patchListener_=l)}function ch(n){uh(n),n.drafts_.forEach(wC),n.drafts_=null}function uh(n){n===Yo&&(Yo=n.parent_)}var T1=n=>Yo=OC(Yo,n);function wC(n){const l=n[Hn];l.type_===0||l.type_===1?l.revoke_():l.revoked_=!0}function x1(n,l){l.unfinalizedDrafts_=l.drafts_.length;const r=l.drafts_[0];if(n!==void 0&&n!==r){r[Hn].modified_&&(ch(l),Ga(4)),Va(n)&&(n=O1(l,n));const{patchPlugin_:c}=l;c&&c.generateReplacementPatches_(r[Hn].base_,n,l)}else n=O1(l,r);return RC(l,n,!0),ch(l),l.patches_&&l.patchListener_(l.patches_,l.inversePatches_),n!==ay?n:void 0}function O1(n,l){if(cu(l))return l;const r=l[Hn];if(!r)return Vc(l,n.handledSet_,n);if(!uu(r,n))return l;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:o}=r;if(o)for(;o.length>0;)o.pop()(n);cy(r,n)}return r.copy_}function RC(n,l,r=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Kh(l,r)}function oy(n){n.finalized_=!0,n.scope_.unfinalizedDrafts_--}var uu=(n,l)=>n.scope_===l,NC=[];function sy(n,l,r,o){const c=Cl(n),f=n.type_;if(o!==void 0&&ih(c,o,f)===l){Ic(c,o,r,f);return}if(!n.draftLocations_){const m=n.draftLocations_=new Map;ru(c,(h,p)=>{if(Nl(p)){const y=m.get(p)||[];y.push(h),m.set(p,y)}})}const d=n.draftLocations_.get(l)??NC;for(const m of d)Ic(c,m,r,f)}function MC(n,l,r){n.callbacks_.push(function(c){const f=l;if(!f||!uu(f,c))return;c.mapSetPlugin_?.fixSetContents(f);const d=Fh(f);sy(n,f.draft_??f,d,r),cy(f,c)})}function cy(n,l){if(n.modified_&&!n.finalized_&&(n.type_===3||n.type_===1&&n.allIndicesReassigned_||(n.assigned_?.size??0)>0)){const{patchPlugin_:o}=l;if(o){const c=o.getPath(n);c&&o.generatePatches_(n,c,l)}oy(n)}}function DC(n,l,r){const{scope_:o}=n;if(Nl(r)){const c=r[Hn];uu(c,o)&&c.callbacks_.push(function(){xc(n);const d=Fh(c);sy(n,r,d,l)})}else Va(r)&&n.callbacks_.push(function(){const f=Cl(n);n.type_===3?f.has(r)&&Vc(r,o.handledSet_,o):ih(f,l,n.type_)===r&&o.drafts_.length>1&&(n.assigned_.get(l)??!1)===!0&&n.copy_&&Vc(ih(n.copy_,l,n.type_),o.handledSet_,o)})}function Vc(n,l,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Nl(n)||l.has(n)||!Va(n)||cu(n)||(l.add(n),ru(n,(o,c)=>{if(Nl(c)){const f=c[Hn];if(uu(f,r)){const d=Fh(f);Ic(n,o,d,n.type_),oy(f)}}else Va(c)&&Vc(c,l,r)})),n}function LC(n,l){const r=iu(n),o={type_:r?1:0,scope_:l?l.scope_:iy(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:l,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let c=o,f=Yc;r&&(c=[o],f=Xo);const{revoke:d,proxy:m}=Proxy.revocable(c,f);return o.draft_=m,o.revoke_=d,[m,o]}var Yc={get(n,l){if(l===Hn)return n;let r=n.scope_.arrayMethodsPlugin_;const o=n.type_===1&&typeof l=="string";if(o&&r?.isArrayOperationMethod(l))return r.createMethodInterceptor(n,l);const c=Cl(n);if(!A1(c,l,n.type_))return zC(n,c,l);const f=c[l];if(n.finalized_||!Va(f)||o&&n.operationMethod&&r?.isMutatingArrayMethod(n.operationMethod)&&TC(l))return f;if(f===Gd(n.base_,l)){xc(n);const d=n.type_===1?+l:l,m=dh(n.scope_,f,n,d);return n.copy_[d]=m}return f},has(n,l){return l in Cl(n)},ownKeys(n){return Reflect.ownKeys(Cl(n))},set(n,l,r){const o=uy(Cl(n),l);if(o?.set)return o.set.call(n.draft_,r),!0;if(!n.modified_){const c=Gd(Cl(n),l),f=c?.[Hn];if(f&&f.base_===r)return n.copy_[l]=r,n.assigned_.set(l,!1),!0;if(EC(r,c)&&(r!==void 0||A1(n.base_,l,n.type_)))return!0;xc(n),fh(n)}return n.copy_[l]===r&&(r!==void 0||l in n.copy_)||Number.isNaN(r)&&Number.isNaN(n.copy_[l])||(n.copy_[l]=r,n.assigned_.set(l,!0),DC(n,l,r)),!0},deleteProperty(n,l){return xc(n),Gd(n.base_,l)!==void 0||l in n.base_?(n.assigned_.set(l,!1),fh(n)):n.assigned_.delete(l),n.copy_&&delete n.copy_[l],!0},getOwnPropertyDescriptor(n,l){const r=Cl(n),o=Reflect.getOwnPropertyDescriptor(r,l);return o&&{[Tc]:!0,[rh]:n.type_!==1||l!=="length",[qc]:o[qc],[Vo]:r[l]}},defineProperty(){Ga(11)},getPrototypeOf(n){return zi(n.base_)},setPrototypeOf(){Ga(12)}},Xo={};for(let n in Yc){let l=Yc[n];Xo[n]=function(){const r=arguments;return r[0]=r[0][0],l.apply(this,r)}}Xo.deleteProperty=function(n,l){return Xo.set.call(this,n,l,void 0)};Xo.set=function(n,l,r){return Yc.set.call(this,n[0],l,r,n[0])};function Gd(n,l){const r=n[Hn];return(r?Cl(r):n)[l]}function zC(n,l,r){const o=uy(l,r);return o?Vo in o?o[Vo]:o.get?.call(n.draft_):void 0}function uy(n,l){if(!(l in n))return;let r=zi(n);for(;r;){const o=Object.getOwnPropertyDescriptor(r,l);if(o)return o;r=zi(r)}}function fh(n){n.modified_||(n.modified_=!0,n.parent_&&fh(n.parent_))}function xc(n){n.copy_||(n.assigned_=new Map,n.copy_=oh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var kC=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(l,r,o)=>{if(Ri(l)&&!Ri(r)){const f=r;r=l;const d=this;return function(h=f,...p){return d.produce(h,y=>r.call(this,y,...p))}}Ri(r)||Ga(6),o!==void 0&&!Ri(o)&&Ga(7);let c;if(Va(l)){const f=T1(this),d=dh(f,l,void 0);let m=!0;try{c=r(d),m=!1}finally{m?ch(f):uh(f)}return E1(f,o),x1(c,f)}else if(!l||!Xh(l)){if(c=r(l),c===void 0&&(c=l),c===ay&&(c=void 0),this.autoFreeze_&&Kh(c,!0),o){const f=[],d=[];Fr(sh).generateReplacementPatches_(l,c,{patches_:f,inversePatches_:d}),o(f,d)}return c}else Ga(1,l)},this.produceWithPatches=(l,r)=>{if(Ri(l))return(d,...m)=>this.produceWithPatches(d,h=>l(h,...m));let o,c;return[this.produce(l,r,(d,m)=>{o=d,c=m}),o,c]},Id(n?.autoFreeze)&&this.setAutoFreeze(n.autoFreeze),Id(n?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(n.useStrictShallowCopy),Id(n?.useStrictIteration)&&this.setUseStrictIteration(n.useStrictIteration)}createDraft(n){Va(n)||Ga(8),Nl(n)&&(n=BC(n));const l=T1(this),r=dh(l,n,void 0);return r[Hn].isManual_=!0,uh(l),r}finishDraft(n,l){const r=n&&n[Hn];(!r||!r.isManual_)&&Ga(9);const{scope_:o}=r;return E1(o,l),x1(void 0,o)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}setUseStrictIteration(n){this.useStrictIteration_=n}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(n,l){let r;for(r=l.length-1;r>=0;r--){const c=l[r];if(c.path.length===0&&c.op==="replace"){n=c.value;break}}r>-1&&(l=l.slice(r+1));const o=Fr(sh).applyPatches_;return Nl(n)?o(n,l):this.produce(n,c=>o(c,l))}};function dh(n,l,r,o){const[c,f]=ou(l)?Fr(Gc).proxyMap_(l,r):su(l)?Fr(Gc).proxySet_(l,r):LC(l,r);return(r?.scope_??iy()).drafts_.push(c),f.callbacks_=r?.callbacks_??[],f.key_=o,r&&o!==void 0?MC(r,f,o):f.callbacks_.push(function(h){h.mapSetPlugin_?.fixSetContents(f);const{patchPlugin_:p}=h;f.modified_&&p&&p.generatePatches_(f,[],h)}),c}function BC(n){return Nl(n)||Ga(10,n),fy(n)}function fy(n){if(!Va(n)||cu(n))return n;const l=n[Hn];let r,o=!0;if(l){if(!l.modified_)return l.base_;l.finalized_=!0,r=oh(n,l.scope_.immer_.useStrictShallowCopy_),o=l.scope_.immer_.shouldUseStrictIteration()}else r=oh(n,!0);return ru(r,(c,f)=>{Ic(r,c,fy(f))},o),l&&(l.finalized_=!1),r}var jC=new kC,dy=jC.produce;function hy(n){return({dispatch:r,getState:o})=>c=>f=>typeof f=="function"?f(r,o,n):c(f)}var UC=hy(),HC=hy,qC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Uc:Uc.apply(null,arguments)};function w1(n,l){function r(...o){if(l){let c=l(...o);if(!c)throw new Error(Tl(0));return{type:n,payload:c.payload,..."meta"in c&&{meta:c.meta},..."error"in c&&{error:c.error}}}return{type:n,payload:o[0]}}return r.toString=()=>`${n}`,r.type=n,r.match=o=>CC(o)&&o.type===n,r}var my=class qo extends Array{constructor(...l){super(...l),Object.setPrototypeOf(this,qo.prototype)}static get[Symbol.species](){return qo}concat(...l){return super.concat.apply(this,l)}prepend(...l){return l.length===1&&Array.isArray(l[0])?new qo(...l[0].concat(this)):new qo(...l.concat(this))}};function R1(n){return Va(n)?dy(n,()=>{}):n}function mc(n,l,r){return n.has(l)?n.get(l):n.set(l,r(l)).get(l)}function IC(n){return typeof n=="boolean"}var GC=()=>function(l){const{thunk:r=!0,immutableCheck:o=!0,serializableCheck:c=!0,actionCreatorCheck:f=!0}=l??{};let d=new my;return r&&(IC(r)?d.push(UC):d.push(HC(r.extraArgument))),d},VC="RTK_autoBatch",N1=n=>l=>{setTimeout(l,n)},YC=(n={type:"raf"})=>l=>(...r)=>{const o=l(...r);let c=!0,f=!1,d=!1;const m=new Set,h=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:N1(10):n.type==="callback"?n.queueNotification:N1(n.timeout),p=()=>{d=!1,f&&(f=!1,m.forEach(y=>y()))};return Object.assign({},o,{subscribe(y){const b=()=>c&&y(),A=o.subscribe(b);return m.add(y),()=>{A(),m.delete(y)}},dispatch(y){try{return c=!y?.meta?.[VC],f=!c,f&&(d||(d=!0,h(p))),o.dispatch(y)}finally{c=!0}}})},XC=n=>function(r){const{autoBatch:o=!0}=r??{};let c=new my(n);return o&&c.push(YC(typeof o=="object"?o:void 0)),c};function FC(n){const l=GC(),{reducer:r=void 0,middleware:o,devTools:c=!0,preloadedState:f=void 0,enhancers:d=void 0}=n||{};let m;if(typeof r=="function")m=r;else if(Yh(r))m=ny(r);else throw new Error(Tl(1));let h;typeof o=="function"?h=o(l):h=l();let p=Uc;c&&(p=qC({trace:!1,...typeof c=="object"&&c}));const y=AC(...h),b=XC(y);let A=typeof d=="function"?d(b):b();const S=p(...A);return ty(m,f,S)}function py(n){const l={},r=[];let o;const c={addCase(f,d){const m=typeof f=="string"?f:f.type;if(!m)throw new Error(Tl(28));if(m in l)throw new Error(Tl(29));return l[m]=d,c},addAsyncThunk(f,d){return d.pending&&(l[f.pending.type]=d.pending),d.rejected&&(l[f.rejected.type]=d.rejected),d.fulfilled&&(l[f.fulfilled.type]=d.fulfilled),d.settled&&r.push({matcher:f.settled,reducer:d.settled}),c},addMatcher(f,d){return r.push({matcher:f,reducer:d}),c},addDefaultCase(f){return o=f,c}};return n(c),[l,r,o]}function KC(n){return typeof n=="function"}function JC(n,l){let[r,o,c]=py(l),f;if(KC(n))f=()=>R1(n());else{const m=R1(n);f=()=>m}function d(m=f(),h){let p=[r[h.type],...o.filter(({matcher:y})=>y(h)).map(({reducer:y})=>y)];return p.filter(y=>!!y).length===0&&(p=[c]),p.reduce((y,b)=>{if(b)if(Nl(y)){const S=b(y,h);return S===void 0?y:S}else{if(Va(y))return dy(y,A=>b(A,h));{const A=b(y,h);if(A===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return y},m)}return d.getInitialState=f,d}var ZC=Symbol.for("rtk-slice-createasyncthunk");function WC(n,l){return`${n}/${l}`}function PC({creators:n}={}){const l=n?.asyncThunk?.[ZC];return function(o){const{name:c,reducerPath:f=c}=o;if(!c)throw new Error(Tl(11));const d=(typeof o.reducers=="function"?o.reducers($C()):o.reducers)||{},m=Object.keys(d),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(L,z){const H=typeof L=="string"?L:L.type;if(!H)throw new Error(Tl(12));if(H in h.sliceCaseReducersByType)throw new Error(Tl(13));return h.sliceCaseReducersByType[H]=z,p},addMatcher(L,z){return h.sliceMatchers.push({matcher:L,reducer:z}),p},exposeAction(L,z){return h.actionCreators[L]=z,p},exposeCaseReducer(L,z){return h.sliceCaseReducersByName[L]=z,p}};m.forEach(L=>{const z=d[L],H={reducerName:L,type:WC(c,L),createNotation:typeof o.reducers=="function"};tS(z)?aS(H,z,p,l):eS(H,z,p)});function y(){const[L={},z=[],H=void 0]=typeof o.extraReducers=="function"?py(o.extraReducers):[o.extraReducers],B={...L,...h.sliceCaseReducersByType};return JC(o.initialState,X=>{for(let Z in B)X.addCase(Z,B[Z]);for(let Z of h.sliceMatchers)X.addMatcher(Z.matcher,Z.reducer);for(let Z of z)X.addMatcher(Z.matcher,Z.reducer);H&&X.addDefaultCase(H)})}const b=L=>L,A=new Map,S=new WeakMap;let O;function C(L,z){return O||(O=y()),O(L,z)}function E(){return O||(O=y()),O.getInitialState()}function x(L,z=!1){function H(X){let Z=X[L];return typeof Z>"u"&&z&&(Z=mc(S,H,E)),Z}function B(X=b){const Z=mc(A,z,()=>new WeakMap);return mc(Z,X,()=>{const re={};for(const[$,ne]of Object.entries(o.selectors??{}))re[$]=QC(ne,X,()=>mc(S,X,E),z);return re})}return{reducerPath:L,getSelectors:B,get selectors(){return B(H)},selectSlice:H}}const M={name:c,reducer:C,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:E,...x(f),injectInto(L,{reducerPath:z,...H}={}){const B=z??f;return L.inject({reducerPath:B,reducer:C},H),{...M,...x(B,!0)}}};return M}}function QC(n,l,r,o){function c(f,...d){let m=l(f);return typeof m>"u"&&o&&(m=r()),n(m,...d)}return c.unwrapped=n,c}var Jh=PC();function $C(){function n(l,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:l,...r}}return n.withTypes=()=>n,{reducer(l){return Object.assign({[l.name](...r){return l(...r)}}[l.name],{_reducerDefinitionType:"reducer"})},preparedReducer(l,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:l,reducer:r}},asyncThunk:n}}function eS({type:n,reducerName:l,createNotation:r},o,c){let f,d;if("reducer"in o){if(r&&!nS(o))throw new Error(Tl(17));f=o.reducer,d=o.prepare}else f=o;c.addCase(n,f).exposeCaseReducer(l,f).exposeAction(l,d?w1(n,d):w1(n))}function tS(n){return n._reducerDefinitionType==="asyncThunk"}function nS(n){return n._reducerDefinitionType==="reducerWithPrepare"}function aS({type:n,reducerName:l},r,o,c){if(!c)throw new Error(Tl(18));const{payloadCreator:f,fulfilled:d,pending:m,rejected:h,settled:p,options:y}=r,b=c(n,f,y);o.exposeAction(l,b),d&&o.addCase(b.fulfilled,d),m&&o.addCase(b.pending,m),h&&o.addCase(b.rejected,h),p&&o.addMatcher(b.settled,p),o.exposeCaseReducer(l,{fulfilled:d||pc,pending:m||pc,rejected:h||pc,settled:p||pc})}function pc(){}function Tl(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 lS={formValues:{}},gy=Jh({name:"start-screen",initialState:lS,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,l){n.startScreenStatus="HIDDEN",n.formValues=l.payload.formValues},startAuthenticatedChat(n,l){n.startScreenStatus="HIDDEN",n.loginToken=l.payload.loginToken,n.loginRequestToken=void 0},requestLogin(n,l){n.loginRequestToken=l.payload.loginRequestToken,n.formValues=l.payload.formValues},loginWindowClosed(n){n.loginRequestToken=void 0}}}),{startChat:rS,startAuthenticatedChat:iS,showStartScreen:oS,requestLogin:sS,loginWindowClosed:cS}=gy.actions,uS=gy.reducer,vy="RESET_CHAT_STATE",yy="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",by="SHOW_CONVERSATION_RATING_OVERLAY",_y="HIDE_CONVERSATION_RATING_OVERLAY",Ay=()=>({type:Wv}),fS=()=>({type:vy}),Cy=()=>({type:yy}),Xc=(n,l=void 0)=>({type:by,payload:{opener:n,defaultRating:l}}),dS=()=>({type:_y}),M1=(n,l,r)=>(o,c)=>{try{const f=c().connection.sessionId;if(!f)throw new Error("Session ID is not available");o({type:Gh,payload:{chunkId:r}}),D1(n,f,l,r,!1,o),D1(n,f,l,r,!0,o)}catch(f){console.error("Error loading source infos:",f),o({type:Ih})}},D1=(n,l,r,o,c,f)=>{const d=`/${n}/me/chat-widget/transcript/${r}/chunks/${o}?highlight=${c}`;fetch(d,{headers:{"x-bubble-chat-session-id":l}}).then(m=>{if(!m.ok)throw new Error(`HTTP error! Status: ${m.status}`);return m.json()}).then(m=>{const h={...m,chunkId:o,highlighted:c};f({type:Jv,payload:h})}).catch(m=>{console.error("Error fetching source infos:",m),f({type:Ih,payload:{highlighted:c}})})},hS=()=>({type:Vh}),Zh="CONNECT",Wh="CONNECTING",Ph="CONNECTED",Qh="DISCONNECTED",$h="RECONNECTED",em="RESTORE_SESSION_ID",fu="START",du="CLEAR_SESSION_ID",mS=[Zh,Wh,Ph,Qh,$h,em],pS=(n,l)=>({type:Zh,clientName:n,querystrings:l}),gS=n=>({type:em,sessionId:n}),vS=()=>({type:Wh}),yS=()=>({type:Ph}),bS=()=>({type:Qh}),_S=()=>({type:$h}),Sy=n=>(l,r)=>{const o=r().connection,{formValues:c,loginToken:f}=r().startScreen;let d=o.sessionId;d===void 0&&(d=Bc());let m=o.userId;if(m===void 0){const y=dc.get("bubble-chat-user-id")||dc.get("bubble-chat-userId")||dc.get("bf-webclient-userId");m=y||Bc(),dc.set("bubble-chat-user-id",m,{expires:182})}const h=new URLSearchParams(r().connection.queryString||""),p=Object.fromEntries(h.entries());l({type:fu,payload:{sessionId:d,userId:m,clientName:n,loginToken:f,querystrings:{...p,...c}}})},Wo=()=>(n,l)=>{const r=l().connection.sessionId||"";if(n(AS(r)),n(fS()),l().settings.enableStartScreen)n(oS());else{const o=au();return n(Sy(o))}},AS=n=>({type:du,payload:{sessionId:n}}),Dl=jA,Bt=qA,Rt=()=>{const n=Bt(r=>r.intl.messages);return r=>n[r]||void 0};var Xr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Xr||{}),Fo=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(Fo||{});const CS="_container_q2uun_1",SS="_chatcontent_q2uun_6",ES="_accessabilityHidden_q2uun_12",Vd={container:CS,chatcontent:SS,accessabilityHidden:ES},TS="_messageContainer_1t640_1",xS="_messages_1t640_13",L1={messageContainer:TS,messages:xS};var gc;function OS(n){if(!gc)if(typeof document<"u")gc=document.createElement("textarea");else return;var l="&"+n+";";gc.innerHTML=l;var r=gc.value;return r!==l?r:void 0}var ue=32,me=9,dr=13,Ce=10,et=96,an=126,Dt=91,Ya=94,He=62,$a=35,wS=36,Fc=37,ze=45,$n=61,Pt=92,It=42,Ut=95,ct=60,hu=64,ga=93,qn=33,tm=38,Bn=58,z1=70,ki=102,mu=104,Di=119,Yd=116,k1=112,RS=115,NS=160,MS=12,Ey=44,nm=59,Bi=63,Ma=46,Ft=47,hr=39,mr=34,pr=43,nn=124,Kr=123,pu=125,Na=40,Da=41,Kc=30,Ty=31,Qe=48,$e=57,Je=65,tt=90,Lt=97,Ht=122,Po=128,ir=32,DS={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},Q=DS;function LS(n){if(!j1(n,"---"))return null;let l=3;for(;l<n.length&&(n[l]===" "||n[l]===" ");)l++;if(l<n.length&&n[l]==="\r"&&l++,l>=n.length||n[l]!==`
14
- `)return null;l++;let r=!1;for(;l<n.length;){let o=l;for(;l<n.length&&n[l]!==`
15
- `&&n[l]!=="\r";)l++;if(l>=n.length)break;let c=l;if(n[l]==="\r"&&l++,l<n.length&&n[l]===`
16
- `&&l++,j1(n,"---",o))return{endPos:l,hasValidYaml:r};let f=n.indexOf(":",o);f!==-1&&f<c&&(r=!0)}return null}var zS=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,kS={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"};function da(n){var l={};for(var r in n){var o=r.toLowerCase(),c=kS[o];if(c)l[c]=n[r];else{var f=r.indexOf(":");f!==-1?l[r.slice(0,f)+r[f+1].toUpperCase()+r.slice(f+2)]=n[r]:l[r]=n[r]}}return l}var BS=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function gu(n){return n.indexOf("&")===-1?n:n.replace(zS,(l,r)=>{var o=OS(r);if(o)return o;if(r[0]==="#"){var c=r[1]==="x"||r[1]==="X"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return c===0||c>=55296&&c<=57343||c>1114111?"�":c<=65535?String.fromCharCode(c):String.fromCharCode(55296+(c-65536>>10),56320+(c-65536&1023))}return l})}var B1=/(javascript|vbscript|data(?!:image)):/i;function am(n){if(B1.test(n))return null;if(n.indexOf("%")===-1)return n;try{let l=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(B1.test(l))return null}catch{return null}return n}var Rn={},Un,ln;for(Un=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],ln=0;ln<Un.length;ln++)Rn[Un[ln]]="a";for(Rn[231]=Rn[199]="c",Rn[240]=Rn[208]="d",Un=[200,201,202,203,233,232,234,235],ln=0;ln<Un.length;ln++)Rn[Un[ln]]="e";for(Un=[207,239,206,238,205,237,204,236],ln=0;ln<Un.length;ln++)Rn[Un[ln]]="i";for(Rn[209]=Rn[241]="n",Un=[248,216,339,338,213,245,212,244,211,243,210,242],ln=0;ln<Un.length;ln++)Rn[Un[ln]]="o";for(Un=[220,252,219,251,218,250,217,249],ln=0;ln<Un.length;ln++)Rn[Un[ln]]="u";Rn[376]=Rn[255]=Rn[221]=Rn[253]="y";function Pa(n){for(var l=n.toLowerCase(),r="",o=-1,c=0;c<l.length;c++){var f=l.charCodeAt(c);if(f<Po&&(IS[f]&(hh|xy))!==0)o<0&&(o=c);else if(f===ue||f===ze)o>=0&&(r+=l.slice(o,c),o=-1),r+="-";else{o>=0&&(r+=l.slice(o,c),o=-1);var d=Rn[f];d&&(r+=d)}}return o>=0&&(r+=l.slice(o)),r}function j1(n,l,r){return n.startsWith(l,r)}var U1=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function Qo(n){let l=n.toLowerCase();if(U1.has(l))return!0;let r=l.indexOf(":");return r!==-1?(l=l.slice(r+1),U1.has(l)):!1}var No=1,vc=2,hh=4,xy=8,H1=16,q1=32,jS=64,I1=1,US=2,HS=3,qS=4,IS=(function(){let n=new Uint8Array(128),l;for(n[me]=No|q1,n[Ce]=No|H1,n[MS]=No,n[dr]=No|H1,n[ue]=No|q1,l=qn;l<=Ft;l++)n[l]=vc;for(l=Bn;l<=hu;l++)n[l]=vc;for(l=Dt;l<=et;l++)n[l]=vc;for(l=Kr;l<=an;l++)n[l]=vc;for(l=Qe;l<=$e;l++)n[l]=xy;for(l=Je;l<=tt;l++)n[l]=hh|jS;for(l=Lt;l<=Ht;l++)n[l]=hh;return n})();(function(){let n=new Uint8Array(128);return n[Pt]=US,n[Dt]=qS,n[It]=n[Ut]=n[an]=n[$n]=HS,n[et]=n[ct]=n[hu]=n[ga]=n[Ce]=n[ue]=n[qn]=I1,n[ki]=n[mu]=n[Di]=I1,n})();var Ur=[];function GS(n){var l=n.indexOf("\r"),r=n.indexOf("\0");if(l===-1&&r===-1)return n;var o=n.length;Ur.length=0;var c=0,f=0;for(l===-1?f=r:r===-1?f=l:f=l<r?l:r;f<o;f++){var d=n.charCodeAt(f);d===dr?(c<f&&Ur.push(n.slice(c,f)),f+1<o&&n.charCodeAt(f+1)===Ce&&f++,Ur.push(`
17
- `),c=f+1):d===0&&(c<f&&Ur.push(n.slice(c,f)),Ur.push("�"),c=f+1)}return c<o&&Ur.push(n.slice(c)),Ur.join("")}function mh(n,l,r){for(var o=n,c=l.split("."),f=0;f<c.length&&(o=o?.[c[f]],o!==void 0);)f++;return o||r}function VS(n){for(var l=!1,r=0;r<n.length;r++){var o=n.charCodeAt(r);if(o<=ue||o===mr||o===Fc||o===ct||o===He||o===Dt||o===Pt||o===ga||o===Ya||o===et||o>=123){l=!0;break}}if(!l)return n;for(var c="",r=0;r<n.length;r++){var o=n.charCodeAt(r);if(o===Fc&&r+2<n.length){var f=n.charCodeAt(r+1),d=n.charCodeAt(r+2);if((f>=Qe&&f<=$e||f>=Je&&f<=z1||f>=Lt&&f<=ki)&&(d>=Qe&&d<=$e||d>=Je&&d<=z1||d>=Lt&&d<=ki)){c+=n[r]+n[r+1]+n[r+2],r+=2;continue}}c+=encodeURI(n[r])}return c}function YS(...n){return n.filter(Boolean).join(" ")}var XS=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Jc=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function G1(n){return XS.has(n.toLowerCase())}function FS(n){return Jc.lastIndex=0,Jc.test(n)}function V1(n){return Jc.lastIndex=0,n.replace(Jc,function(l,r,o,c){return"&lt;"+r+o+c})}var KS=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,JS=/^<[A-Z]/,ph=["script","pre","style","textarea"],$o=new Set(ph),ZS=/<(?:pre|script|style|textarea)\b/i,WS=new Set(["table","thead","tbody","tfoot","tr","td","th"]),Oy=new Uint8Array(128);(function(){for(var n=[et,It,Ut,an,$n,Dt,qn,ct,Pt,Ty,mu,Di,ki],l=0;l<n.length;l++)Oy[n[l]]=1})();var Y1=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function PS(n){return $o.has(n)}function QS(n){return ZS.test(n)}function wy(n,l,r){for(var o=l,c=r;o<c&&(n.charCodeAt(o)===ue||n.charCodeAt(o)===me);)o++;if(o>=c)return!1;n.charCodeAt(o)===nn&&o++;for(var f=0;o<c;){for(;o<c&&(n.charCodeAt(o)===ue||n.charCodeAt(o)===me);)o++;if(o>=c)break;if(n.charCodeAt(o)===nn&&f>0){for(var d=o+1;d<c&&(n.charCodeAt(d)===ue||n.charCodeAt(d)===me);)d++;if(d>=c)return!0}if(n.charCodeAt(o)===Bn&&o++,o>=c||n.charCodeAt(o)!==ze)return!1;for(;o<c&&n.charCodeAt(o)===ze;)o++;for(o<c&&n.charCodeAt(o)===Bn&&o++,f++;o<c&&(n.charCodeAt(o)===ue||n.charCodeAt(o)===me);)o++;if(o<c)if(n.charCodeAt(o)===nn)o++;else return!1}return f>0}function El(n,l){if(n.charCodeAt(l)!==ct)return null;let r=l+1,o=n.length,c=!1;n.charCodeAt(r)===Ft&&(r++,c=!0);let f=r,d=n.charCodeAt(r);if(!(d>=Lt&&d<=Ht||d>=Je&&d<=tt))return null;for(;r<o&&(n.charCodeAt(r)>=Lt&&n.charCodeAt(r)<=Ht||n.charCodeAt(r)>=Je&&n.charCodeAt(r)<=tt||n.charCodeAt(r)>=Qe&&n.charCodeAt(r)<=$e||n.charCodeAt(r)===ze);)r++;let m=n.slice(f,r);if(!m)return null;let h=r;for(;r<o&&(n.charCodeAt(r)===ue||n.charCodeAt(r)===me||n.charCodeAt(r)===Ce);)r++;let p=n.slice(h,r);if(r===h&&r<o){var y=n.charCodeAt(r);if(y!==He&&y!==Ft)return null}let b=r,A={},S=!1;for(;r<o;){let X=n.charCodeAt(r);if(X===He){let Z=n.slice(b,r);return{tag:m,attrs:A,selfClosing:!1,end:r+1,rawAttrs:Z,whitespaceBeforeAttrs:p,isClosing:c,hasSpaceBeforeSlash:S}}if(X===ue||X===me||X===Ce){r++;continue}if(X===Ft&&r+1<o&&n.charCodeAt(r+1)===He){let Z=n.slice(b,r);return S=r>b&&n.charCodeAt(r-1)===ue,{tag:m,attrs:A,selfClosing:!0,end:r+2,rawAttrs:Z,whitespaceBeforeAttrs:p,isClosing:c,hasSpaceBeforeSlash:S}}var O=r,C=n.charCodeAt(r);if(!(C>=Lt&&C<=Ht||C>=Je&&C<=tt||C===Ut||C===Bn))return null;for(r++;r<o;){var E=n.charCodeAt(r);if(E>=Lt&&E<=Ht||E>=Je&&E<=tt||E>=Qe&&E<=$e||E===Ut||E===Ma||E===Bn||E===ze)r++;else break}for(var x=n.slice(O,r);r<o&&(n.charCodeAt(r)===ue||n.charCodeAt(r)===me);)r++;if(n.charCodeAt(r)!==$n){A[x]="";continue}for(r++;r<o&&(n.charCodeAt(r)===ue||n.charCodeAt(r)===me);)r++;var M=n.charCodeAt(r);if(M===mr||M===hr){r++;for(var L=r;r<o&&n.charCodeAt(r)!==M;)r++;if(r>=o)return null;if(A[x]=n.slice(L,r),r++,r<o){var z=n.charCodeAt(r);if(z!==ue&&z!==me&&z!==Ce&&z!==He&&z!==Ft)return null}}else if(M===Kr){var H=1,L=r;for(r++;r<o&&H>0;){var E=n.charCodeAt(r);E===Kr?H++:E===pu&&H--,r++}A[x]=n.slice(L,r)}else{for(var L=r;r<o;){var B=n.charCodeAt(r);if(B===ue||B===me||B===He||B===Ce||B===mr||B===hr||B===$n||B===ct||B===et)break;r++}if(r===L)return null;A[x]=n.slice(L,r)}}return null}function Ry(n,l,r){for(var o=0,c=n.length,f=!1,d=!1;o<c;){for(var m=n.indexOf(`
18
- `,o),h=m<0?c:m,p=o,y=0;p<h&&y<4;)if(n.charCodeAt(p)===ue)y++,p++;else if(n.charCodeAt(p)===me)y+=4,p++;else break;if(p>=h){f=!1,o=m<0?c:m+1;continue}if(y<4){var b=n.charCodeAt(p);if(b===et||b===an){for(var A=b,S=0,O=p;O<h&&n.charCodeAt(O)===A;)S++,O++;if(S>=3){var C=!0;if(A===et){for(var E=O;E<h;E++)if(n.charCodeAt(E)===et){C=!1;break}}if(C){f=!1;for(var x=m<0?c:m+1;x<c;){for(var M=x,L=0;M<c&&L<4;){var z=n.charCodeAt(M);if(z===ue)L++,M++;else if(z===me)L+=4,M++;else break}if(L<4&&M<c&&n.charCodeAt(M)===A){for(var H=0;M<c&&n.charCodeAt(M)===A;)H++,M++;if(H>=S){for(;M<c&&(n.charCodeAt(M)===ue||n.charCodeAt(M)===me);)M++;if(M>=c||n.charCodeAt(M)===Ce){o=M>=c?c:M+1;break}}}for(;x<c&&n.charCodeAt(x)!==Ce;)x++;x<c&&x++}x>=c&&(o=c,d=!0);continue}}}}for(var B=p;B<h&&n.charCodeAt(B)===He;){B++,B<h&&n.charCodeAt(B)===ue&&B++;for(var X=0;B<h&&X<4;)if(n.charCodeAt(B)===ue)X++,B++;else if(n.charCodeAt(B)===me)X+=4,B++;else break;if(X>=4)break;f=!1}if(!f&&y<4&&B<h&&n.charCodeAt(B)===Dt&&!(B+1<c&&n.charCodeAt(B+1)===Ya)){var Z=Ny(n,B,l);if(Z){o=Z,f=!1;continue}}var re=n.charCodeAt(p);if(re===$a&&y<4)f=!1;else if(y<4&&(re===ze||re===It||re===Ut)){for(var $=p,ne=0;$<h;){var ie=n.charCodeAt($);if(ie===re)ne++;else if(ie!==ue&&ie!==me)break;$++}f=!(ne>=3&&$>=h)}else f=!0;o=m<0?c:m+1}return d}function Ny(n,l,r){let o=n.length;if(n.charCodeAt(l)!==Dt)return null;let c=l+1<o&&n.charCodeAt(l+1)===Ya,f=l+1;for(;f<o;){var d=n.charCodeAt(f);if(d===ga){f++;break}if(d===Dt)return null;d===Pt&&f+1<o&&f++,f++}if(f>o||n.charCodeAt(f-1)!==ga)return null;let m=n.slice(l+1,f-1);if(m.length>999)return null;let h=Oc(m);if(!h||f>=o||n.charCodeAt(f)!==Bn)return null;f++;let p=!1;for(;f<o;){let he=n.charCodeAt(f);if(he===ue||he===me)f++;else if(he===Ce&&!p)p=!0,f++;else break}if(c){let he=n.indexOf(`
19
- `,f),pe=he<0?o:he,ce=n.slice(f,pe).trim();return r[h]={target:ce,title:void 0},he<0?o:he+1}var y;if(f<o&&n.charCodeAt(f)===ct){f++;for(var b=f;f<o&&n.charCodeAt(f)!==He&&n.charCodeAt(f)!==Ce;)n.charCodeAt(f)===Pt&&f+1<o&&f++,f++;if(f>=o||n.charCodeAt(f)!==He)return null;y=n.slice(b,f),f++;for(var A=n.indexOf(`
20
- `,f),S=A<0?o:A,O=f;O<S&&(n.charCodeAt(O)===ue||n.charCodeAt(O)===me);)O++;if(O<S){if(O===f)return null;var C=n.charCodeAt(O);if(C!==mr&&C!==hr&&C!==Na)return null}}else{for(var b=f,E=0;f<o;){var d=n.charCodeAt(f);if(d===Na)E++;else if(d===Da){if(E===0)break;E--}else{if(d===ue||d===me||d===Ce)break;d===Pt&&f+1<o&&f++}f++}if(y=n.slice(b,f),!y)return null}for(;f<o&&(n.charCodeAt(f)===ue||n.charCodeAt(f)===me);)f++;var x=n.indexOf(`
21
- `,f),M=x<0?o:x,L,z=!1,H=f,B=f;if(f===M&&f<o)for(B=f+1;B<o&&(n.charCodeAt(B)===ue||n.charCodeAt(B)===me);)B++;if(B<o){var X=n.charCodeAt(B);if(X===mr||X===hr||X===Na){for(var Z=X===Na?41:X,re=B+1,$=re;re<o;){var ne=n.charCodeAt(re);if(ne===Z){for(var ie=re+1;ie<o&&(n.charCodeAt(ie)===ue||n.charCodeAt(ie)===me);)ie++;(ie>=o||n.charCodeAt(ie)===Ce)&&(L=n.slice($,re),z=!0,H=ie<o?ie+1:o);break}if(ne===Pt&&re+1<o){re+=2;continue}if(ne===Ce&&re+1<o&&n.charCodeAt(re+1)===Ce)break;re++}if(!z&&B===f)return null}}if(z)return r[h]||(r[h]={target:Li(y),title:L!==void 0?gu(Li(L)):L}),H;for(;f<M&&(n.charCodeAt(f)===ue||n.charCodeAt(f)===me);)f++;return f<M?null:(r[h]||(r[h]={target:Li(y),title:L}),x<0?o:x+1)}var Ni=1,X1=2,Pe=4,My=8,$S=16,Ha=32,lr=64,ke=new Uint8Array(128);ke[ue]=Ni,ke[me]=Ni,ke[Ce]=Ni|X1,ke[dr]=Ni|X1,ke[$a]=Ha|Pe,ke[He]=Ha|Pe,ke[ze]=Ha|lr|Pe,ke[pr]=Ha|Pe,ke[It]=Ha|lr|Pe,ke[Ut]=Ha|lr|Pe,ke[et]=Ha|lr|Pe,ke[an]=Ha|lr|Pe,ke[ct]=Ha|lr|Pe,ke[Dt]=lr|Pe,ke[qn]=lr|Pe,ke[nn]=Ha|Pe;for(let n=Qe;n<=$e;n++)ke[n]=$S|Ha;for(let n=Je;n<=tt;n++)ke[n]=My;for(let n=Lt;n<=Ht;n++)ke[n]=My;ke[Pt]=Pe,ke[ga]=Pe,ke[Na]=Pe,ke[Da]=Pe,ke[Bn]=Pe,ke[mr]=Pe,ke[hr]=Pe,ke[tm]=Pe,ke[$n]=Pe,ke[wS]=Pe,ke[Fc]=Pe,ke[Ey]=Pe,ke[Ma]=Pe,ke[Ft]=Pe,ke[nm]=Pe,ke[Bi]=Pe,ke[hu]=Pe,ke[Ya]=Pe,ke[Kr]=Pe,ke[pu]=Pe;function F1(n){if(n.indexOf("[")<0&&n.indexOf("]")<0)return!1;for(var l=0;l<n.length;l++){if(n.charCodeAt(l)===Pt){l++;continue}if(n.charCodeAt(l)===Dt||n.charCodeAt(l)===ga)return!0}return!1}function Oc(n){var l=n.replace(/\s+/g," ").trim();return l.indexOf("ẞ")!==-1?l.replace(/\u1E9E/g,"ss").toLowerCase():l.toLowerCase()}function lm(n){return n<Po?ke[n]:n===NS?Ni:0}function Li(n){return n.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}function ot(n,l){var r=n.indexOf(`
22
- `,l);return r<0?n.length:r}function Ue(n,l){let r=ot(n,l);return r<n.length?r+1:r}function Ko(n,l,r){for(;l<r;){let o=n.charCodeAt(l);if(o!==ue&&o!==me)break;l++}return l}function K1(n,l){let r=Ue(n,l);for(;r<n.length;){let o=ot(n,r);if(ea(n,r,o))return r;r=Ue(n,r)}return n.length}function Ml(n,l,r,o){let c=0;for(;l+c<r&&n.charCodeAt(l+c)===o;)c++;return c}var at=0,nt=0;function qt(n,l,r){for(at=0,nt=0;l+nt<r;){let o=n.charCodeAt(l+nt);if(o===me)at+=4-at%4;else if(o===ue)at++;else break;nt++}}function ea(n,l,r){return Ko(n,l,r)>=r}function Dy(n,l,r,o){let c=ot(n,l);if(qt(n,l,c),at>3)return null;let f=l+nt;if(n.charCodeAt(f)!==$a)return null;let d=Ml(n,f,c,35);if(d<1||d>6||(f+=d,f<c&&n.charCodeAt(f)!==ue&&n.charCodeAt(f)!==me))return null;f=Ko(n,f,c);for(var m=c;m>f&&n.charCodeAt(m-1)===ue;)m--;for(var h=m;m>f&&n.charCodeAt(m-1)===$a;)m--;if(m<h)if(m===f||n.charCodeAt(m-1)===ue)for(;m>f&&n.charCodeAt(m-1)===ue;)m--;else m=h;let p=n.slice(f,m),y=jn(p,0,p.length,r,o),b=(o?.slugify||Pa)(p);return{node:{type:Q.heading,level:d,children:y,id:b},end:Ue(n,c)}}function eE(n,l,r){var o=n.charCodeAt(l);if(o!==$n&&o!==ze)return!1;for(var c=l;c<r&&n.charCodeAt(c)===o;)c++;for(;c<r&&(n.charCodeAt(c)===ue||n.charCodeAt(c)===me);)c++;return c>=r}function cr(n,l){let r=ot(n,l);if(qt(n,l,r),at>3)return null;let o=l+nt,c=n.charCodeAt(o);if(c!==ze&&c!==It&&c!==Ut)return null;let f=0;for(;o<r;){let d=n.charCodeAt(o);if(d===c)f++;else if(d!==ue&&d!==me)return null;o++}return f<3?null:{node:{type:Q.breakThematic},end:Ue(n,r)}}function tE(n,l,r){let o=ot(n,l);if(qt(n,l,o),at>3)return null;let c=at,f=l+nt,d=n.charCodeAt(f);if(d!==et&&d!==an)return null;let m=Ml(n,f,o,d);if(m<3)return null;f+=m;let h=Ko(n,f,o),p=o;if(d===et){for(let Z=h;Z<o;Z++)if(n.charCodeAt(Z)===et)return null}for(;p>h&&(n.charCodeAt(p-1)===ue||n.charCodeAt(p-1)===me);)p--;let y=n.slice(h,p),b="",A="",S=y.indexOf(" ");S===-1?b=y:(b=y.slice(0,S),A=y.slice(S+1).trim()),b=Li(b);var O=void 0;if(A){Y1.lastIndex=0;for(var C;(C=Y1.exec(A))!==null;)O||(O={}),O[C[1]]=C[2]!==void 0?C[2]:C[3]}let E=Ue(n,o),x=E,M=n.length;for(;x<n.length;){let Z=ot(n,x);if(qt(n,x,Z),at<4){let re=x+nt;var L=Ml(n,re,Z,d);if(L>=m){let $=re+L;if(ea(n,$,Z)){M=Ue(n,Z);break}}}x=Ue(n,Z)}var z;if(c===0)z=x>E&&n.charCodeAt(x-1)===Ce?n.slice(E,x-1):n.slice(E,x);else{z="";for(var H=E;H<x;){var B=ot(n,H);qt(n,H,B);var X=Math.min(nt,c);z+=n.slice(H+X,B)+`
23
- `,H=Ue(n,B)}z.length>0&&z.charCodeAt(z.length-1)===Ce&&(z=z.slice(0,-1))}return{node:{type:Q.codeBlock,lang:b||void 0,text:z,infoString:A||void 0,attrs:O},end:M}}function nE(n,l){let r=ot(n,l);if(qt(n,l,r),at<4)return null;let o="",c=l;for(;c<n.length;){let S=ot(n,c);if(qt(n,c,S),ea(n,c,S)){for(var f=0,d=Ue(n,S);d<n.length;){var m=ot(n,d);if(ea(n,d,m)){f++,d=Ue(n,m);continue}if(qt(n,d,m),at>=4){for(var h=0;h<=f;h++)o+=`
24
- `;c=d;break}break}if(c!==d)break;continue}if(at<4)break;let O=0,C=0;var p=0;for(let E=c;E<S&&C<4;E++){if(n.charCodeAt(E)===me){var y=4-C%4;C+y>4&&(p=C+y-4),C+=y}else C++;O++}var b="";if(p>0)for(var A=0;A<p;A++)b+=" ";b+=n.slice(c+O,S),o+=b+`
25
- `,c=Ue(n,S)}for(;o.length>0&&o.charCodeAt(o.length-1)===Ce;)o=o.slice(0,-1);for(;o.length>0&&o.charCodeAt(o.length-1)===Ce;)o=o.slice(0,-1);return o?{node:{type:Q.codeBlock,text:o},end:c}:null}function aE(n,l,r,o){let c=ot(n,l);if(qt(n,l,c),at>3)return null;let f=l+nt;if(n.charCodeAt(f)!==He)return null;let d="",m=l,h,p=!1,y=!1,b=!1;for(;m<n.length;){let R=ot(n,m);qt(n,m,R);let W=m+nt;if(n.charCodeAt(W)===He){let le=W+1;var A=at+1,S=!1;if(le<R){var O=n.charCodeAt(le);O===ue?(le++,A++,S=!0):O===me&&(S=!0)}for(var C="",E=!1,x=le;x<R;x++)if(n.charCodeAt(x)===me){E=!0;break}if(E){var M=A;if(S&&le<R&&n.charCodeAt(le)===me){for(var L=4-M%4,z=0;z<L-1;z++)C+=" ";M+=L,le++}for(var H=le;H<R;H++)if(n.charCodeAt(H)===me){for(var B=4-M%4,X=0;X<B;X++)C+=" ";M+=B}else C+=n[H],M++}else C=n.slice(le,R);if(!d&&!h){let ae=C.match(/^\[!([A-Za-z]+)\]\s*$/);if(ae){h=ae[1].toUpperCase(),m=Ue(n,R);continue}}d+=C+`
26
- `;var Z=C.trimStart();Z.startsWith("```")||Z.startsWith("~~~")?b=!b:C.startsWith(" ")||C.startsWith(" ")?b=!0:Z.length>0&&!b&&(b=!1),y=Z.length>0,m=Ue(n,R)}else if(d&&!ea(n,m,R)&&y){if(at<4){var re=m+nt,$=re<R?n.charCodeAt(re):0;if($===$a||$===He||$===et||$===an||$===ct||($===ze||$===It||$===Ut)&&cr(n,m)||($===ze||$===It||$===pr)&&re+1<R&&(n.charCodeAt(re+1)===ue||n.charCodeAt(re+1)===me))break;if($>=Qe&&$<=$e){for(var ne=re;ne<R&&n.charCodeAt(ne)>=Qe&&n.charCodeAt(ne)<=$e;)ne++;if(ne<R&&(n.charCodeAt(ne)===Ma||n.charCodeAt(ne)===Da))break}}if(b)break;d+=n.slice(m,R)+`
27
- `,p=!0,m=Ue(n,R)}else break}if(!d&&!h)return null;var{inBlockQuote:ie,f:he}=r;r.inBlockQuote=!0,p&&(r.f=!0);let pe=ur(d||"",r,o);r.inBlockQuote=ie,r.f=he;let ce={type:Q.blockQuote,children:pe};return h&&(ce.alert=h),{node:ce,end:m}}function Ly(n,l,r){for(var o=0,c=l;c<r;c++)n.charCodeAt(c)===me?o+=4-o%4:o++;return o}function rr(n,l,r){if(qt(n,l,r),at>3)return null;var o=l+nt;if(o>=r)return null;var c=n.charCodeAt(o),f=at,d=o;if(c===ze||c===It||c===pr){if(d=o+1,d<r&&n.charCodeAt(d)!==ue&&n.charCodeAt(d)!==me&&n.charCodeAt(d)!==Ce)return null}else if(c>=Qe&&c<=$e){for(var m=o;m<r&&m-o<9;){var h=n.charCodeAt(m);if(h<Qe||h>$e)break;m++}if(m>o&&m<r){var p=n.charCodeAt(m);if(p===Ma||p===Da){if(d=m+1,d<r&&n.charCodeAt(d)!==ue&&n.charCodeAt(d)!==me&&n.charCodeAt(d)!==Ce)return null}else return null}else return null}else return null;var y=d,b=Ly(n,l,d),A=0,S=y,O=b;if(y>=r)return{ordered:c>=Qe&&c<=$e,marker:c>=Qe&&c<=$e?n[m]:n[o],start:c>=Qe&&c<=$e?parseInt(n.slice(o,m),10):void 0,contentStart:y,contentCol:b+1,markerCol:f,isEmpty:!0};for(;S<r&&(n.charCodeAt(S)===ue||n.charCodeAt(S)===me);){if(n.charCodeAt(S)===me){var C=4-O%4;O+=C}else O++;S++,A++}var E=S>=r,x=O-b;return E||x>4?(O=b+1,S=y+1,A=1):A===0&&(O=b+1,S=y,A=1),{ordered:c>=Qe&&c<=$e,marker:c>=Qe&&c<=$e?n[m]:n[o],start:c>=Qe&&c<=$e?parseInt(n.slice(o,m),10):void 0,contentStart:S,contentCol:O,markerCol:f,isEmpty:E}}var Zc=0;function lE(n,l,r,o){var c=0,f=l;for(Zc=0;f<r&&c<o;){var d=n.charCodeAt(f);if(d===me){var m=4-c%4;if(c+m>o){Zc=c+m-o,f++,c=o;break}c+=m}else if(d===ue)c++;else break;f++}return f}function J1(n,l,r,o){var c=ot(n,l),f=rr(n,l,c);if(!f)return null;var d=[],m=l,h=f.contentCol,p="",y=f.isEmpty,b=!1,A=!1;if(!f.isEmpty){for(var S=!1,O=f.contentStart;O<c;O++)if(n.charCodeAt(O)===me){S=!0;break}if(S){var C="",E=Ly(n,l,f.contentStart),x=E-f.contentCol;if(x>0)for(var M=0;M<x;M++)C+=" ";for(var L=f.contentStart;L<c;L++)if(n.charCodeAt(L)===me){for(var z=4-E%4,H=0;H<z;H++)C+=" ";E+=z}else C+=n[L],E++;p=C+`
28
- `}else p=n.slice(f.contentStart,c)+`
29
- `}for(m=Ue(n,c);m<n.length;){var B=ot(n,m);qt(n,m,B);var X=n.charCodeAt(m+nt);if(at<h&&(X===ze||X===It||X===Ut)&&at<=3&&cr(n,m))break;var Z=rr(n,m,B);if(Z&&Z.ordered===f.ordered&&Z.marker===f.marker&&Z.markerCol<h){d.push({contentCol:h,raw:p,hasBlankAfter:b,isEmpty:y}),b&&(A=!0),h=Z.contentCol,y=Z.isEmpty,b=!1,p=Z.isEmpty?"":n.slice(Z.contentStart,B)+`
30
- `,m=Ue(n,B);continue}if(ea(n,m,B)){p+=`
31
- `,m=Ue(n,B);for(var re=!1,$=0;$<p.length;$++){var ne=p.charCodeAt($);if(ne!==Ce&&ne!==dr&&ne!==ue&&ne!==me){re=!0;break}}if(y&&!re)if(m<n.length){var ie=ot(n,m),he=rr(n,m,ie);if(!he||he.ordered!==f.ordered||he.marker!==f.marker)break;b=!0}else break;if(m<n.length){var pe=ot(n,m);qt(n,m,pe);var ce=n.charCodeAt(m+nt);if((ce===ze||ce===It||ce===Ut)&&at<=3&&cr(n,m))break;var R=rr(n,m,pe);if(R&&R.ordered===f.ordered&&R.marker===f.marker&&R.markerCol<h){b=!0;continue}if(!ea(n,m,pe)&&at<h)break}continue}if(at>=h){var W=lE(n,m,B,h);if(Zc>0){for(var le="",ae=h,_e=0;_e<Zc;_e++)le+=" ",ae++;for(var T=W;T<B;T++)if(n.charCodeAt(T)===me){for(var V=4-ae%4,Y=0;Y<V;Y++)le+=" ";ae+=V}else le+=n[T],ae++;p+=le+`
32
- `}else p+=n.slice(W,B)+`
33
- `;m=Ue(n,B);continue}for(var oe=!1,K=0;K<p.length;K++){var fe=p.charCodeAt(K);if(fe!==Ce&&fe!==dr&&fe!==ue&&fe!==me){oe=!0;break}}if(!b&&oe&&!y){var Se=m+nt,Ee=n.charCodeAt(Se),De=Ee===$a||Ee===He||Ee===ct||Ee===et||Ee===an||(Ee===ze||Ee===It||Ee===Ut||Ee===pr)&&(cr(n,m)!==null||rr(n,m,B)!==null)||Ee>=Qe&&Ee<=$e&&rr(n,m,B)!==null;if(!De){p+=""+n.slice(Se,B)+`
34
- `,m=Ue(n,B);continue}}break}if(d.push({contentCol:h,raw:p,hasBlankAfter:b,isEmpty:y}),d.length===0)return null;var Be=A;if(!Be)for(var ut=0;ut<d.length;ut++){if(d[ut].hasBlankAfter&&ut<d.length-1){Be=!0;break}if(!d[ut].isEmpty){for(var de=d[ut].raw,ee=de.length,ve=0,Ye=!1,Tt=!1,ht=!1,qe=!1,_t=0,At=0,Oe=-1;ve<ee;){var je=de.indexOf(`
35
- `,ve);if(je<0&&(je=ee),qe){qt(de,ve,je);for(var zt=de.slice(ve+nt,je),Ct=0;Ct<zt.length&&zt.charCodeAt(Ct)===_t;)Ct++;Ct>=At&&zt.slice(Ct).trim()===""&&(qe=!1),ve=je<ee?je+1:ee;continue}if(ea(de,ve,je)){Oe>=0?ht=!0:Ye&&(Tt=!0),ve=je<ee?je+1:ee;continue}if(qt(de,ve,je),Oe>=0){if(at>=Oe){ve=je<ee?je+1:ee;continue}var hn=rr(de,ve,je);if(hn&&hn.markerCol<Oe&&hn.contentCol<=Oe){ve=je<ee?je+1:ee;continue}if(hn){ve=je<ee?je+1:ee;continue}Oe=-1,ht&&(Tt=!0,ht=!1)}var Nn=de.slice(ve+nt,je),xt=Nn.charCodeAt(0);if((xt===et||xt===an)&&at<=3){for(var Kt=0;Kt<Nn.length&&Nn.charCodeAt(Kt)===xt;)Kt++;if(Kt>=3){if(Tt&&Ye){Be=!0;break}qe=!0,_t=xt,At=Kt,Ye=!0,ve=je<ee?je+1:ee;continue}}var ta=at<=3?rr(de,ve,je):null;if(ta&&Ye){if(Tt){Be=!0;break}Oe=ta.contentCol,ht=!1,ve=je<ee?je+1:ee,Ye=!0;continue}if(Tt){Be=!0;break}Ye=!0,ve=je<ee?je+1:ee}if(Be)break}}for(var xn=[],mn=0;mn<d.length;mn++){for(var Mn=d[mn],on=Mn.raw,mt=on.length;mt>0&&on.charCodeAt(mt-1)===Ce;)mt--;var Xe=mt<on.length?on.slice(0,mt):on,Ot=null;if(Xe.length>=3&&Xe.charCodeAt(0)===Dt){var na=Xe[1];(na===" "||na==="x"||na==="X")&&Xe.charCodeAt(2)===ga&&(Ot={type:Q.gfmTask,completed:na==="x"||na==="X"},Xe=Xe.slice(3))}var wt;if(Mn.isEmpty&&Xe.trim()==="")wt=[];else if(Be){var Vn=r.inList;r.inList=!0,wt=ur(Xe,r,o),r.inList=Vn}else{var sn=r.inList;if(r.inList=!0,wt=ur(Xe,r,o),r.inList=sn,wt.length===1&&wt[0].type===Q.paragraph)wt=wt[0].children;else{for(var Dn=[],Yn=0;Yn<wt.length;Yn++)if(wt[Yn].type===Q.paragraph)for(var pn=wt[Yn].children,va=0;va<pn.length;va++)Dn.push(pn[va]);else Dn.push(wt[Yn]);wt=Dn}}Ot?xn.push([Ot,{type:Q.text,text:" "},...wt]):xn.push(wt)}return{node:{type:f.ordered?Q.orderedList:Q.unorderedList,start:f.ordered?f.start:void 0,items:xn},end:m}}var Wc=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function Sl(n,l,r){let o={};for(let[d,m]of Object.entries(n)){let h=d,p=d.toLowerCase();if(p==="style"&&typeof m=="string"){let y={},b=[],A=0,S=0;for(let C=0;C<m.length;C++){let E=m.charCodeAt(C);E===Na?A++:E===Da?A--:E===nm&&A===0&&(b.push(m.slice(S,C)),S=C+1)}S<m.length&&b.push(m.slice(S));let O=!1;b.forEach(C=>{let E=C.indexOf(":");if(E===-1)return;let x=C.slice(0,E).trim(),M=C.slice(E+1).trim();if(x&&M){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(M)){O=!0;return}let L=x.indexOf("-")!==-1?x.replace(/-([a-z])/g,(z,H)=>H.toUpperCase()):x;y[L]=M}}),!O&&Object.keys(y).length>0&&(o[h]=y)}else if((p==="href"||p==="src")&&r?.sanitizer){let y=r.sanitizer(m,l,p);y!==null&&(o[h]=y)}else if(m==="")o[h]=!0;else if(m.length>=2&&m.charCodeAt(0)===Kr&&m.charCodeAt(m.length-1)===pu){var c=m.slice(1,-1);if(c.length>0){var f=c.charCodeAt(0);if(f===Dt||f===Kr)try{o[h]=JSON.parse(c);continue}catch{}}if(c==="true"){o[h]=!0;continue}if(c==="false"){o[h]=!1;continue}if(r?.evalUnserializableExpressions)try{o[h]=(0,eval)("("+c+")");continue}catch{}o[h]=c}else o[h]=m}return o}function or(n,l,r){let o=l.length;var c=l.charCodeAt(0);c>=Je&&c<=tt&&(c+=ir);for(let d=r;d<=n.length-o;d++){var f=n.charCodeAt(d);if(f>=Je&&f<=tt&&(f+=ir),f!==c)continue;let m=!0;for(let h=1;h<o;h++){let p=n.charCodeAt(d+h),y=l.charCodeAt(h);if(p>=Je&&p<=tt&&(p+=ir),y>=Je&&y<=tt&&(y+=ir),p!==y){m=!1;break}}if(m)return d}return-1}function rE(n,l,r){let o=l.length;var c=l.charCodeAt(0);c>=Je&&c<=tt&&(c+=ir);for(let d=Math.min(r,n.length-o);d>=0;d--){var f=n.charCodeAt(d);if(f>=Je&&f<=tt&&(f+=ir),f!==c)continue;let m=!0;for(let h=1;h<o;h++){let p=n.charCodeAt(d+h),y=l.charCodeAt(h);if(p>=Je&&p<=tt&&(p+=ir),y>=Je&&y<=tt&&(y+=ir),p!==y){m=!1;break}}if(m)return d}return-1}var Pc=-1;function gh(n,l,r){let o=r.toLowerCase(),c="<"+o,f="</"+o,d=1,m=l,h=n.length;for(Pc=-1;m<h&&d>0;){let b=or(n,c,m),A=or(n,f,m);if(A===-1)return-1;if(b!==-1&&b<A){let S=El(n,b);S?(S.tag.toLowerCase()===o&&!S.isClosing&&!S.selfClosing&&!Qo(S.tag)&&d++,m=S.end):m=b+1}else{var p=A+f.length,y=p<h?n.charCodeAt(p):62;if((y===He||y===ue||y===me||y===Ce)&&(d--,d===0)){Pc=A;let S=A+f.length;for(;S<h&&n.charCodeAt(S)!==He;)S++;return S+1}m=A+1}}return-1}function zy(n,l,r,o){if(o.ignoreHTMLBlocks||o.disableParsingRawHTML)return null;var c=ot(n,l);if(qt(n,l,c),at>3&&!r.inHTML)return null;var f=l+nt;if(n.charCodeAt(f)!==ct)return null;var d=n.indexOf(">",f+1);if(d!==-1&&d<c){var m=n.slice(f+1,d);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(m)||/^[^\s@]+@[^\s@]+$/.test(m))return null}var h=iE(n,f);if(h>=1&&h<=5){var p=n.length;if(h===1){for(var y=n.length,b=0;b<ph.length;b++){var A=or(n,"</"+ph[b]+">",f);A>=0&&A<y&&(y=A)}if(y<n.length){var S=n.indexOf(">",y);p=S>=0?Ue(n,S+1):n.length}}else{var O=h===2?"-->":h===3?"?>":h===4?">":"]]>",C=n.indexOf(O,f);C>=0&&(p=Ue(n,C+O.length))}var E=n.slice(f,p);if(h>=2)return{node:{type:Q.htmlComment,text:E,raw:!0,endPos:p},end:p};var x="div",M=E.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);M&&(x=M[1]);var L=El(n,f),z={},H;L&&!L.isClosing&&(z=Sl(L.attrs,x,o),H=L.whitespaceBeforeAttrs+L.rawAttrs);var B=[],X=x.toLowerCase(),Z="</"+X,re=or(E,Z,0),$=E,ne="";if(L&&L.isClosing)for($=E.slice(L.end-f);$.length>0&&$.charCodeAt($.length-1)===Ce;)$=$.slice(0,-1);else if(L&&!L.isClosing){var ie=L.end-f;if(re!==-1)for($=E.slice(ie),$.charCodeAt(0)===Ce&&($=$.slice(1));$.length>0&&$.charCodeAt($.length-1)===Ce;)$=$.slice(0,-1);else for($=E;$.length>0&&$.charCodeAt($.length-1)===Ce;)$=$.slice(0,-1);if(re!==-1){var he=E.slice(ie,re);ne=he.trim()}}var pe=L?L.isClosing:!1;return{node:{type:Q.htmlBlock,tag:x,attrs:z,e:H,children:B,a:$,text:ne,c:!0,b:pe,endPos:p,canInterruptParagraph:!0},end:p}}if(h===6||h===7){var ce=K1(n,l),R=ce<n.length?ce:n.length,W=n.slice(f,R),le=ce<n.length?Ue(n,ce):n.length,ae=El(n,f);if(ae){var _e=ae.tag,T=_e.toLowerCase(),V=ae.isClosing;if(V){var Y=n.slice(ae.end,R);return{node:{type:Q.htmlBlock,tag:_e,attrs:{},children:[],a:Y,text:Y,c:!0,b:!0,endPos:R,canInterruptParagraph:h===6},end:le}}if(ae.selfClosing||Qo(_e))return{node:{type:Q.htmlBlock,tag:_e,attrs:Sl(ae.attrs,_e,o),e:ae.whitespaceBeforeAttrs+ae.rawAttrs,children:[],a:"",text:"",c:!1,b:!1,endPos:ae.end,canInterruptParagraph:h===6},end:Ue(n,ae.end)};var oe=r.d||0,K=n.slice(f,R),fe=-1,Se=-1;if(oe<10){for(var Ee="</"+T,De=ae.end-f,Be=1,ut=De;ut<K.length&&Be>0;){var de=or(K,"<"+T,ut),ee=or(K,Ee,ut);if(ee===-1)break;if(de!==-1&&de<ee){var ve=de+T.length+1;if(ve<K.length){var Ye=K.charCodeAt(ve);(Ye===ue||Ye===me||Ye===Ce||Ye===He||Ye===Ft)&&Be++}ut=de+1}else{var Tt=ee+Ee.length;if(Tt<K.length){var ht=K.charCodeAt(Tt);if((ht===He||ht===ue||ht===me||ht===Ce)&&(Be--,Be===0)){fe=ee;for(var qe=Tt;qe<K.length&&K.charCodeAt(qe)!==He;)qe++;Se=qe+1;break}}else if(Be--,Be===0){fe=ee,Se=K.length;break}ut=ee+1}}var _t=!1;if(fe===-1&&h===6&&!ae.isClosing&&!WS.has(T)){var At=gh(n,ae.end,T);if(At!==-1){var Oe=Pc,je=n.substring(ae.end,Oe);if(je.indexOf(`
36
-
37
- `)!==-1){var zt=ot(n,At);R=zt,le=Ue(n,zt),K=n.slice(f,R),W=n.slice(f,R),fe=Oe-f,Se=At-f,_t=!0}}}}var Ct=ae.rawAttrs.indexOf(`
38
- `)!==-1||ae.whitespaceBeforeAttrs.indexOf(`
39
- `)!==-1,hn=!1;if(fe!==-1){var Nn=K.slice(Se).trim();hn=Nn.length===0}var xt=!1,Kt=R,ta=le;if(fe!==-1){var xn=f+Se,mn=ot(n,xn-1);if(xn<mn){for(var Mn=xn;Mn<mn&&(n.charCodeAt(Mn)===ue||n.charCodeAt(Mn)===me);)Mn++;if(Mn<mn&&n.charCodeAt(Mn)===ct){var on=El(n,Mn);on&&!on.isClosing&&(xt=!0,Kt=xn,ta=xn,hn=!0)}}if(!xt){var mt=Ue(n,mn);if(mt<R){for(var Xe=mt;Xe<R&&(n.charCodeAt(Xe)===ue||n.charCodeAt(Xe)===me);)Xe++;if(Xe<R&&n.charCodeAt(Xe)===ct){var Ot=El(n,Xe);Ot&&(xt=!0,Kt=mn,ta=mt,hn=!0)}}}if(!xt&&r.inHTML){xt=!0,Kt=mn,ta=Ue(n,mn);var na=n.slice(xn,mn).trim();hn=na.length===0}}var wt=[],Vn="";if(fe!==-1){Vn=K.slice(ae.end-f,fe);var sn=Vn.trim();if(sn){var{inline:Dn,inHTML:Yn,d:pn}=r;r.inHTML=!0,r.d=oe+1;var va=T==="p";if(va)r.inline=!0,wt=jn(sn,0,sn.length,r,o);else{var tl=Vn.indexOf(`
40
-
41
- `)!==-1,jt=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(sn),ya=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(sn),gr=tl||jt||r.inHTML&&ya;gr||ya?(r.inline=!1,wt=ur(Vn,r,o)):(r.inline=!0,wt=jn(sn,0,sn.length,r,o))}r.inline=Dn,r.inHTML=Yn,r.d=pn}}var za=!1;if(h===6&&fe!==-1&&!r.inHTML&&!Ct){var nl=Vn,vr=/<[a-zA-Z][^>]*>/.test(nl),yr=/\n\n/.test(nl)||/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(nl);vr&&!yr&&(za=!0)}var Jr=r.inHTML||h===7||Ct||!hn||za;if(Jr){var pt;if(fe!==-1&&xt){var Xn=!1;if(r.inHTML&&Se<K.length){for(var Xa=Se;Xa<K.length&&K.charCodeAt(Xa)!==Ce;)Xa++;var al=K.slice(Se,Xa).trim();Xn=al.length>1&&al.charCodeAt(0)===ct&&al.charCodeAt(1)!==Ft}pt=Xn?K.slice(ae.end-f):Vn}else(h===7||r.inHTML)&&fe!==-1?(pt=K.slice(ae.end-f),pt.charCodeAt(0)===Ce&&(pt=pt.slice(1))):xt?pt=n.slice(f,Kt):Ct?pt=W:(pt=K.slice(ae.end-f),pt.charCodeAt(0)===Ce&&(pt=pt.slice(1)));return{node:{type:Q.htmlBlock,tag:_e,attrs:Sl(ae.attrs,_e,o),e:ae.whitespaceBeforeAttrs+ae.rawAttrs,children:wt,a:pt,text:pt,c:!0,b:!1,endPos:Kt,canInterruptParagraph:h===6},end:ta}}return{node:{type:Q.htmlBlock,tag:_e,attrs:Sl(ae.attrs,_e,o),e:ae.whitespaceBeforeAttrs+ae.rawAttrs,children:wt,a:_t?"":Vn,text:Vn,c:!1,b:!1,endPos:Kt,canInterruptParagraph:h===6},end:ta}}var bn=W.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Gt=bn?bn[2]:"div",St=bn?bn[1]==="/":!1,aa=W;if(St){var ll=W.indexOf(">");ll!==-1&&(aa=W.slice(ll+1))}return{node:{type:Q.htmlBlock,tag:Gt,attrs:{},children:[],a:aa,text:aa,c:!0,b:St,endPos:R,canInterruptParagraph:h===6},end:le}}var Vt=El(n,f);if(!Vt)return null;var la=Vt.tag,Ll=la.toLowerCase(),be=la.charCodeAt(0),N=be>=Je&&be<=tt;if(!N&&!Wc.has(Ll)&&!$o.has(Ll)&&!Ll.includes("-"))return null;if(Vt.isClosing)return{node:{type:Q.htmlSelfClosing,tag:la,attrs:{},endPos:Vt.end,b:!0,a:n.slice(f,Vt.end)},end:Vt.end};var te=gh(n,Vt.end,la),ge=[];if(te!==-1){var lt=Pc,gt=n.slice(Vt.end,lt),we=gt.trim();if(we){var cn=gt.indexOf(`
42
-
43
- `)!==-1,Fn=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(we),On=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(we),ba=r.inline,Jt=r.inHTML,br=r.d;r.inHTML=!0,r.d=(r.d||0)+1,cn||Fn||On?(r.inline=!1,ge=ur(gt,r,o)):(r.inline=!0,ge=jn(we,0,we.length,r,o)),r.inline=ba,r.inHTML=Jt,r.d=br}var _r=ot(n,te),Au=n.slice(te,_r).trim(),zl=Au?te:Ue(n,te),Ar=N?n.slice(f,te):n.slice(f,zl),ka=N?te:zl;return{node:{type:Q.htmlBlock,tag:la,attrs:Sl(Vt.attrs,la,o),e:Vt.whitespaceBeforeAttrs+Vt.rawAttrs,children:ge,a:Ar,text:N?gt:Ar,c:!0,b:!1,endPos:ka,canInterruptParagraph:!1},end:zl}}var un=K1(n,Vt.end),es=un<n.length?Ue(n,un):un,Ui=n.slice(Vt.end,un);if(Ui.trim()){var{inline:Hi,inHTML:ts,d:Zr}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,ge=ur(Ui,r,o),r.inline=Hi,r.inHTML=ts,r.d=Zr}var Cu=n.slice(Vt.end,un);return{node:{type:Q.htmlBlock,tag:la,attrs:Sl(Vt.attrs,la,o),e:Vt.whitespaceBeforeAttrs+Vt.rawAttrs,children:ge,a:Cu,text:Ui,c:!0,b:!1,endPos:un,canInterruptParagraph:!1},end:es}}function iE(n,l){if(n.charCodeAt(l)!==ct)return 0;var r=l+1,o=n.length;if(n.charCodeAt(r)===qn&&n.charCodeAt(r+1)===ze&&n.charCodeAt(r+2)===ze)return 2;if(n.charCodeAt(r)===Bi)return 3;if(n.charCodeAt(r)===qn){var c=n.charCodeAt(r+1);if(c>=Je&&c<=tt)return 4;if(n.slice(r+1,r+8)==="[CDATA[")return 5}for(var f=n.charCodeAt(r)===Ft,d=f?r+1:r,m=d;m<o;){var h=n.charCodeAt(m);if(h>=Je&&h<=tt||h>=Lt&&h<=Ht||h>=Qe&&h<=$e||h===ze)m++;else break}if(m===d)return 0;var p=n.slice(d,m);if($o.has(p.toLowerCase())){if(f)return 0;var y=n.charCodeAt(m);return y===ue||y===me||y===He||y===Ce||m>=o?1:0}if(Wc.has(p.toLowerCase())){if(f){for(var b=m;b<o&&(n.charCodeAt(b)===ue||n.charCodeAt(b)===me);)b++;return b<o&&n.charCodeAt(b)===He?6:0}var A=m<o?n.charCodeAt(m):-1;return A===ue||A===me||A===He||A===Ce||A===Ft||A===-1?6:0}if(f){for(var S=m;S<o&&(n.charCodeAt(S)===ue||n.charCodeAt(S)===me);)S++;if(S<o&&n.charCodeAt(S)===He){var O=ot(n,l),C=n.slice(S+1,O).trim();if(C==="")return 7}}else{var E=ot(n,l),x=El(n,l);if(x&&x.end<=E){var M=n.slice(x.end,E).trim();if(M==="")return 7}}return 0}function Z1(n,l,r){for(var o=0,c=n.length;o<c&&(n.charCodeAt(o)===ue||n.charCodeAt(o)===me);)o++;for(;c>o&&(n.charCodeAt(c-1)===ue||n.charCodeAt(c-1)===me);)c--;o<c&&n.charCodeAt(o)===nn&&o++,c>o&&n.charCodeAt(c-1)===nn&&(c-2<o||n.charCodeAt(c-2)!==Pt)&&c--;for(var f=[],d=o,m=!1,h=[],p=o;p<c;){var y=n.charCodeAt(p);if(y===Pt&&p+1<c){n.charCodeAt(p+1)===nn?(m||(m=!0,h=[]),h.push(n.slice(d,p)),h.push("|"),p+=2,d=p):p+=2;continue}if(y===et){for(var b=0;p<c&&n.charCodeAt(p)===et;)b++,p++;for(var A=!1;p<c&&!A;){for(var S=0;p<c&&n.charCodeAt(p)===et;)S++,p++;S===b?A=!0:S===0&&p++}continue}if(y===nn){var O=m?(h.push(n.slice(d,p)),h.join("")):n.slice(d,p);f.push(O.trim()),p++,d=p,m=!1,h=[];continue}p++}var C=m?(h.push(n.slice(d,c)),h.join("")):n.slice(d,c);return f.push(C.trim()),f.map(function(E){var x=E.indexOf("\\|")!==-1?E.replace(/\\\|/g,"|"):E;return jn(x,0,x.length,l,r)})}function W1(n,l,r,o){let c=ot(n,l);var f=n.indexOf("|",l);if(f<0||f>=c)return null;let d=Ue(n,c);if(d>=n.length)return null;let m=ot(n,d);if(!wy(n,d,m))return null;let h=n.slice(l,c),p=n.slice(d,m);for(var y=[],b=0,A=p.length;b<A&&(p.charCodeAt(b)===ue||p.charCodeAt(b)===me);)b++;for(b<A&&p.charCodeAt(b)===nn&&b++;b<A;){for(;b<A&&(p.charCodeAt(b)===ue||p.charCodeAt(b)===me);)b++;if(b>=A||p.charCodeAt(b)===nn)break;var S=p.charCodeAt(b)===Bn;for(S&&b++;b<A&&p.charCodeAt(b)===ze;)b++;var O=b<A&&p.charCodeAt(b)===Bn;for(O&&b++,y.push(S&&O?"center":O?"right":S?"left":null);b<A&&(p.charCodeAt(b)===ue||p.charCodeAt(b)===me);)b++;b<A&&p.charCodeAt(b)===nn&&b++}let C=Z1(h,r,o);if(y.length!==C.length)return null;let E=[],x=Ue(n,m);for(;x<n.length;){let X=ot(n,x),Z=n.slice(x,X);if(ea(n,x,X))break;if(qt(n,x,X),at<4){var M=n.charCodeAt(x+nt);if(M===He||M===$a||(M===ze||M===It||M===Ut)&&cr(n,x))break;if(M===et||M===an){for(var L=x+nt,z=0;L<X&&n.charCodeAt(L)===M;)z++,L++;if(z>=3)break}}E.push(Z1(Z,r,o)),x=Ue(n,X)}if((o.streaming||o.optimizeForStreaming)&&E.length===0)return null;for(var H=C.length,B=0;B<E.length;B++)if(E[B].length<H)for(;E[B].length<H;)E[B].push([]);else E[B].length>H&&(E[B].length=H);return{node:{type:Q.table,header:C,cells:E,align:y},end:x}}function oE(n,l,r){var o=ot(n,l);if(qt(n,l,o),at>3)return null;var c=l+nt;if(n.charCodeAt(c)!==Dt)return null;if(c+1<n.length&&n.charCodeAt(c+1)===Ya){var f=sE(n,c,r);return f||null}r.refs||(r.refs={});var d=Ny(n,c,r.refs);return d===null?null:{node:{type:Q.refCollection},end:d}}function sE(n,l,r){var o=n.length;if(n.charCodeAt(l)!==Dt||l+1>=o||n.charCodeAt(l+1)!==Ya)return null;for(var c=l+2,f=c;c<o&&n.charCodeAt(c)!==ga;){if(n.charCodeAt(c)===Ce)return null;c++}if(c>=o)return null;var d=("^"+n.slice(f,c)).toLowerCase();if(c++,c>=o||n.charCodeAt(c)!==Bn)return null;for(c++;c<o&&(n.charCodeAt(c)===ue||n.charCodeAt(c)===me);)c++;if(c<o&&n.charCodeAt(c)===Ce)for(c++;c<o&&(n.charCodeAt(c)===ue||n.charCodeAt(c)===me);)c++;var m=n.indexOf(`
44
- `,c);m<0&&(m=o);for(var h=n.slice(c,m).trim(),p=m<o?m+1:o;p<o;){var y=ot(n,p);if(qt(n,p,y),at>=2&&!ea(n,p,y))h+=`
45
- `+n.slice(p,y),p=Ue(n,y);else if(ea(n,p,y)){var b=Ue(n,y);if(b<o){var A=ot(n,b);if(qt(n,b,A),at>=2){h+=`
46
- `,p=Ue(n,y);continue}}break}else break}return r.refs[d]||(r.refs[d]={target:h,title:void 0}),{node:{type:Q.footnote},end:p}}function cE(n,l,r,o){let c=l,f=0,d=0,m=-1;for(;c<n.length;){let ne=m>=0?m:ot(n,c);if(m=-1,ea(n,c,ne))break;if(qt(n,c,ne),at<4&&d>0&&!r.f){let he=n.charCodeAt(c+nt);if(he===$n||he===ze){let pe=c+nt;for(;pe<ne&&n.charCodeAt(pe)===he;)pe++;for(;pe<ne&&(n.charCodeAt(pe)===ue||n.charCodeAt(pe)===me);)pe++;if(pe>=ne){f=he===$n?1:2,c=Ue(n,ne);break}}}d=ne;let ie=Ue(n,ne);if(ie<n.length){if(n.charCodeAt(ie)===Kc){var h=ot(n,ie);c=Ue(n,h),d=h;continue}let he=ot(n,ie);if(m=he,qt(n,ie,he),at<4){let pe=n.charCodeAt(ie+nt);if(pe===He){c=ie;break}if(pe===$a&&Dy(n,ie,r,o)){c=ie;break}if(pe===et||pe===an){for(var p=ie+nt,y=0;p<he&&n.charCodeAt(p)===pe;)y++,p++;if(y>=3){c=ie;break}}if(pe===ct){var b=ie+nt+1,A=b<he?n.charCodeAt(b):0,S=A===qn||A===Bi;if(!S&&A===Ft){for(var O=b+1,C=O;C<he&&(n.charCodeAt(C)>=Je&&n.charCodeAt(C)<=tt||n.charCodeAt(C)>=Lt&&n.charCodeAt(C)<=Ht||n.charCodeAt(C)>=Qe&&n.charCodeAt(C)<=$e||n.charCodeAt(C)===ze);)C++;C>O&&(S=Wc.has(n.slice(O,C).toLowerCase()))}else if(!S){for(var E=b;E<he&&(n.charCodeAt(E)>=Je&&n.charCodeAt(E)<=tt||n.charCodeAt(E)>=Lt&&n.charCodeAt(E)<=Ht||n.charCodeAt(E)>=Qe&&n.charCodeAt(E)<=$e||n.charCodeAt(E)===ze);)E++;if(E>b){var x=n.slice(b,E).toLowerCase();S=Wc.has(x)||$o.has(x)}}if(S&&zy(n,ie,r,o)){c=ie;break}}if(pe===ze||pe===It||pe===pr){let ce=ie+nt+1;if(ce<he&&(n.charCodeAt(ce)===ue||n.charCodeAt(ce)===me)){var M=Ko(n,ce,he);if(M<he&&!cr(n,ie)){c=ie;break}}}if(pe>=Qe&&pe<=$e){let ce=ie+nt;for(;ce<he&&n.charCodeAt(ce)>=Qe&&n.charCodeAt(ce)<=$e;)ce++;if(ce<he&&(n.charCodeAt(ce)===Ma||n.charCodeAt(ce)===Da)&&ce-(ie+nt)===1&&n.charCodeAt(ie+nt)===49){var L=ce+1;if(L<he&&(n.charCodeAt(L)===ue||n.charCodeAt(L)===me)){var z=Ko(n,L,he);if(z<he){c=ie;break}}}}if(pe===nn){let ce=Ue(n,he);if(ce<n.length){let R=ot(n,ce);if(wy(n,ce,R)){c=ie;break}}}if((pe===ze||pe===It||pe===Ut)&&cr(n,ie)){if(pe!==ze){c=ie;break}let ce=ie+nt;for(;ce<he&&n.charCodeAt(ce)===ze;)ce++;for(;ce<he&&(n.charCodeAt(ce)===ue||n.charCodeAt(ce)===me);)ce++;if(ce<he){c=ie;break}}}}c=Ue(n,ne)}for(var H=f?d:c;H>l&&(n.charCodeAt(H-1)===Ce||n.charCodeAt(H-1)===dr||n.charCodeAt(H-1)===ue||n.charCodeAt(H-1)===me);)H--;for(var B=l;B<H&&(n.charCodeAt(B)===ue||n.charCodeAt(B)===me);)B++;if(B>=H)return null;for(var X=!1,Z=B;Z<H;Z++)if(n.charCodeAt(Z)===Kc){X=!0;break}var re=X?n.slice(B,H).replace(/\u001E/g,""):n.slice(B,H);if(!re)return null;let $=uE(re,0,re.length,r,o);if(f){let ne=(o?.slugify||Pa)(re);return{node:{type:Q.heading,level:f,children:$,id:ne},end:c}}return{node:{type:Q.paragraph,children:$},end:c}}function uE(n,l,r,o,c){var f=n.indexOf(`
47
- `,l);if(f<0||f>=r)return jn(n,l,r,o,c);for(var d="",m=l,h=l;h<r;){var p=n.charCodeAt(h);if(p===et){var y=vu(n,h,r);if(y>h){for(var b=!1,A=h;A<y;A++)if(n.charCodeAt(A)===Ce){b=!0;break}b&&(d+=n.slice(m,h),d+=n.slice(h,y).replace(/\n/g," "),m=y),h=y;continue}}if(p===ct){var S=ky(n,h,r);if(S>h){h=S;continue}}if(p===Ce){var O=!1,C=0;if(h>l&&n.charCodeAt(h-1)===Pt)O=!0,C=1;else{for(var E=0,x=h-1;x>=l&&n.charCodeAt(x)===ue;)E++,x--;E>=2&&(O=!0,C=E)}if(O)d+=n.slice(m,h-C),d+="";else{for(var M=h;M>m&&n.charCodeAt(M-1)===ue;)M--;d+=n.slice(m,M)+`
48
- `}for(h++;h<r&&n.charCodeAt(h)===ue;)h++;m=h;continue}h++}return m<r&&(d+=n.slice(m,r)),jn(d,0,d.length,o,c)}function fE(n,l,r){if(n.charCodeAt(l)!==et)return null;let o=Ml(n,l,r,96),c=l+o;for(;c<r;){let f=n.indexOf("`",c);if(f<0||f>=r)return null;let d=Ml(n,f,r,96);if(d===o){let m=n.slice(l+o,f);return m=m.replace(/\n/g," "),m.length>0&&m[0]===" "&&m[m.length-1]===" "&&m.trim().length>0&&(m=m.slice(1,-1)),{node:{type:Q.codeInline,text:m},end:f+d}}c=f+d}return null}function vu(n,l,r){if(n.charCodeAt(l)!==et)return l;let o=Ml(n,l,r,96),c=l+o;for(;c<r;){let f=n.indexOf("`",c);if(f<0||f>=r)return l;let d=Ml(n,f,r,96);if(d===o)return f+d;c=f+d}return l}function ky(n,l,r){if(n.charCodeAt(l)!==ct)return l;if(l+1<r&&n.charCodeAt(l+1)===Ft){let p=l+2;for(;p<r&&n.charCodeAt(p)!==He;)p++;return p<r?p+1:l}if(l+3<r&&n.charCodeAt(l+1)===qn&&n.charCodeAt(l+2)===ze&&n.charCodeAt(l+3)===ze){let p=n.indexOf("-->",l+4);return p>=0?p+3:l}let o=l+1,c=o;for(;o<r;){let p=n.charCodeAt(o);if(p>=Je&&p<=tt||p>=Lt&&p<=Ht||p>=Qe&&p<=$e||p===ze)o++;else break}if(o===c)return l;let f=n.slice(c,o).toLowerCase(),d=!1;for(;o<r;){let p=n.charCodeAt(o);if(p===He){o++;break}if(p===Ft&&o+1<r&&n.charCodeAt(o+1)===He){o+=2,d=!0;break}if(p===mr||p===hr){var m=p;for(o++;o<r&&n.charCodeAt(o)!==m;)o++;o<r&&o++;continue}if(p===Ce)return l;o++}if(d||Qo(f))return o;let h=1;for(;o<r&&h>0;)if(n.charCodeAt(o)===ct)if(o+1<r&&n.charCodeAt(o+1)===Ft){let p=o+2,y=p;for(;y<r&&(n.charCodeAt(y)>=Je&&n.charCodeAt(y)<=tt||n.charCodeAt(y)>=Lt&&n.charCodeAt(y)<=Ht);)y++;if(n.slice(p,y).toLowerCase()===f){for(;y<r&&n.charCodeAt(y)!==He;)y++;if(y<r&&y++,h--,h===0)return y}o=y}else{let p=o+1,y=p;for(;y<r&&(n.charCodeAt(y)>=Je&&n.charCodeAt(y)<=tt||n.charCodeAt(y)>=Lt&&n.charCodeAt(y)<=Ht);)y++;n.slice(p,y).toLowerCase()===f&&h++,o++}else o++;return o}function dE(n,l,r,o,c){if(n.charCodeAt(l)!==an||l+1>=r||n.charCodeAt(l+1)!==an)return null;let f=l+2;for(;f+1<r;){let d=n.charCodeAt(f);if(d===et){let m=vu(n,f,r);if(m>f){f=m;continue}}if(d===an&&n.charCodeAt(f+1)===an){let m=n.slice(l+2,f),h=jn(m,0,m.length,o,c);return{node:{type:Q.textFormatted,tag:"del",children:h},end:f+2}}d===Pt&&f+1<r&&f++,f++}return null}function hE(n,l,r,o,c){if(n.charCodeAt(l)!==$n||l+1>=r||n.charCodeAt(l+1)!==$n)return null;let f=l+2;for(;f+1<r;){let d=n.charCodeAt(f);if(d===et){let m=vu(n,f,r);if(m>f){f=m;continue}}if(d===$n&&n.charCodeAt(f+1)===$n&&f>l+2){let m=n.slice(l+2,f),h=jn(m,0,m.length,o,c);return{node:{type:Q.textFormatted,tag:"mark",children:h},end:f+2}}d===Pt&&f+1<r&&f++,f++}return null}var mE=/[\p{P}\p{S}]/u;function P1(n,l,r){return n<Po?!!(lm(n)&Pe):mE.test(l[r])}function Q1(n,l,r){return n<Po?!!(lm(n)&Ni):new RegExp("\\p{Zs}","u").test(l[r])}function pE(n,l,r){var o=n.charCodeAt(l);if(o!==It&&o!==Ut)return null;var c=Ml(n,l,r,o);if(c===0)return null;var f=l>0?n.charCodeAt(l-1):32,d=l+c<r?n.charCodeAt(l+c):32,m=Q1(f,n,l-1),h=Q1(d,n,l+c),p=l>0?P1(f,n,l-1):!1,y=l+c<r?P1(d,n,l+c):!1,b=!h&&(!y||m||p),A=!m&&(!p||h||y),S,O;return o===It?(S=b,O=A):(S=b&&(!A||p),O=A&&(!b||y)),{len:c,canOpen:S,canClose:O}}function gE(n,l,r,o){if(l.length!==0){for(var c=[],f=0;f<12;f++)c[f]=-1;for(var d=0;d<l.length;){var m=l[d];if(!m.active||!m.canClose){d++;continue}for(var h=m.ch===It?0:1,p=h*6+m.len%3*2+(m.canOpen?1:0),y=c[p]!==void 0?c[p]:-1,b=-1,A=d-1;A>y;A--){var S=l[A];if(!(!S.active||S.ch!==m.ch||!S.canOpen)&&!((m.canOpen||S.canClose)&&(S.len+m.len)%3===0&&S.len%3!==0)){b=A;break}}if(b<0){c[p]=d-1,!m.canOpen&&(m.active=!1),d++;continue}var O=l[b],C=O.len>=2&&m.len>=2,E=C?2:1;O.len-=E,m.len-=E;var x=n[O.idx],M=n[m.idx];x.text=x.text.slice(0,x.text.length-E),M.text=M.text.slice(E);var L=O.idx+1,z=m.idx,H=n.slice(L,z),B={type:Q.textFormatted,tag:C?"strong":"em",children:H};n.splice(L,z-L,B);for(var X=z-L-1,Z=0;Z<l.length;Z++)l[Z].idx>O.idx&&(l[Z].idx-=X);for(var re=b+1;re<d;re++)l[re].active=!1;if(O.len===0&&(O.active=!1,x.text==="")){n.splice(O.idx,1);for(var $=0;$<l.length;$++)l[$].idx>O.idx?l[$].idx--:l[$].idx===O.idx&&(l[$].idx=-1)}if(m.len===0){m.active=!1;var ne=m.idx;if(M.text===""){n.splice(ne,1);for(var ie=0;ie<l.length;ie++)l[ie].idx>ne?l[ie].idx--:l[ie].idx===ne&&(l[ie].idx=-1)}}else continue;d++}for(var he=0,pe=0;pe<n.length;pe++){var ce=n[pe];if(ce.type===Q.text){var R=ce;if(R.text==="")continue;if(he>0&&n[he-1].type===Q.text){n[he-1].text+=R.text;continue}}n[he++]=ce}n.length=he}}function $1(n,l,r,o,c){let f=n.charCodeAt(l)===qn,d=f?l+1:l;if(n.charCodeAt(d)!==Dt)return null;var m=n.indexOf("]",d+1);if(m<0||m>=r)return null;for(var h=d+1,p=-1,y=1;h<r&&y>0;){var b=n.charCodeAt(h);if(b===Pt&&h+1<r){h+=2;continue}if(b===et){var A=vu(n,h,r);if(A>h){h=A;continue}}if(b===ct){var S=By(n,h,r);if(S){h=S.end;continue}var O=ky(n,h,r);if(O>h){h=O;continue}}b===Dt?y++:b===ga&&y--,h++}if(y!==0)return null;var C=h-1,E=n.slice(d+1,C),x=h<r?n.charCodeAt(h):0,M=!1;if(x===Na){var L=!0;for(h++;h<r&&(n.charCodeAt(h)===ue||n.charCodeAt(h)===Ce);)h++;var z="",H=h;if(h<r&&n.charCodeAt(h)===ct){for(h++,H=h;H<r&&n.charCodeAt(H)!==He;){if(n.charCodeAt(H)===Pt&&H+1<r){H+=2;continue}if(n.charCodeAt(H)===Ce){L=!1;break}H++}L&&(H>=r||n.charCodeAt(H)!==He)&&(L=!1),L&&(z=n.slice(h,H),H++)}else if(L){for(var B=0;H<r;){var X=n.charCodeAt(H);if(X===Pt&&H+1<r){H+=2;continue}if(X===Na)B++;else if(X===Da){if(B===0)break;B--}else if(X===ue||X===Ce)break;H++}z=n.slice(h,H)}if(L){for(h=H;h<r&&(n.charCodeAt(h)===ue||n.charCodeAt(h)===Ce);)h++;var Z;if(h<r){var re=n.charCodeAt(h);if(re===mr||re===hr||re===Na){var $=re===Na?41:re;h++;for(var ne=h;h<r&&n.charCodeAt(h)!==$;)n.charCodeAt(h)===Pt&&h+1<r&&h++,h++;h>=r?L=!1:(Z=n.slice(ne,h),h++)}}if(L){for(;h<r&&(n.charCodeAt(h)===ue||n.charCodeAt(h)===Ce);)h++;(h>=r||n.charCodeAt(h)!==Da)&&(L=!1)}}if(L){h++,z=Li(z),Z!==void 0&&(Z=gu(Li(Z)));var ie=c?.sanitizer||am,he=ie(z,f?"img":"a",f?"src":"href"),pe=he===null?null:z;if(f){var ce=jn(E,0,E.length,o,c),R=Qc(ce);return{node:{type:Q.image,target:pe,alt:R,title:Z},end:h}}else{var W=o.inAnchor;o.inAnchor=!0;var K=W?[{type:Q.text,text:E}]:jn(E,0,E.length,o,c);return o.inAnchor=W,!o.inAnchor&&vh(K)?null:{node:{type:Q.link,target:pe,title:Z,children:K},end:h}}}else h=C+1,M=!0}var le="",ae=h;if(!M&&x===Dt){var _e=h+1;ae=_e;for(var T=!1;ae<r&&n.charCodeAt(ae)!==ga;){if(n.charCodeAt(ae)===Pt&&ae+1<r){ae+=2;continue}if(n.charCodeAt(ae)===Dt){T=!0;break}ae++}if(T||ae>=r)return null;var V=n.slice(_e,ae);if(V.trim())le=Oc(V);else{if(F1(E))return null;le=Oc(E)}ae=ae+1}else{if(F1(E))return null;le=Oc(E)}var Y=o.refs[le];if(!Y)return null;if(f)return{node:{type:Q.image,target:Y.target,alt:Qc(jn(E,0,E.length,o,c)),title:Y.title},end:ae};var oe=o.inAnchor;o.inAnchor=!0;var K=oe?[{type:Q.text,text:E}]:jn(E,0,E.length,o,c);return o.inAnchor=oe,!o.inAnchor&&vh(K)?null:{node:{type:Q.link,target:Y.target,title:Y.title,children:K},end:ae}}function By(n,l,r){if(n.charCodeAt(l)!==ct)return null;for(var o=l+1;o<r;){var c=n.charCodeAt(o);if(c===He)break;if(c===ue||c===Ce||c===dr||c===ct)return null;o++}if(o>=r||n.charCodeAt(o)!==He)return null;var f=n.slice(l+1,o),d=f.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return d?{node:{type:Q.link,target:f,children:[{type:Q.text,text:f}]},end:o+1}:f.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(f)?{node:{type:Q.link,target:"mailto:"+f,children:[{type:Q.text,text:f}]},end:o+1}:null}function vE(n,l,r,o){if(n.charCodeAt(l)!==Dt||l+1>=r||n.charCodeAt(l+1)!==Ya)return null;let c=l+2;for(;c<r&&n.charCodeAt(c)!==ga&&n.charCodeAt(c)!==Ce;)c++;if(c>=r||n.charCodeAt(c)!==ga)return null;let f=n.slice(l+2,c);return f?{node:{type:Q.footnoteReference,target:"#"+Pa(f),text:f},end:c+1}:null}function yE(n,l,r,o){if(o.disableBareUrls)return null;var c="",f=!1,d=n.charCodeAt(l);if(d===mu||d===72?l+8<=r&&n.charCodeAt(l+1)===Yd&&n.charCodeAt(l+2)===Yd&&n.charCodeAt(l+3)===k1&&(n.charCodeAt(l+4)===RS&&n.charCodeAt(l+5)===Bn&&n.charCodeAt(l+6)===Ft&&n.charCodeAt(l+7)===Ft?c="https://":n.charCodeAt(l+4)===Bn&&n.charCodeAt(l+5)===Ft&&n.charCodeAt(l+6)===Ft&&(c="http://")):d===ki||d===70?l+6<=r&&n.charCodeAt(l+1)===Yd&&n.charCodeAt(l+2)===k1&&n.charCodeAt(l+3)===Bn&&n.charCodeAt(l+4)===Ft&&n.charCodeAt(l+5)===Ft&&(c="ftp://"):(d===Di||d===87)&&l+4<=r&&n.charCodeAt(l+1)===Di&&n.charCodeAt(l+2)===Di&&n.charCodeAt(l+3)===Ma&&(c="www.",f=!0),!c)return null;let m=l+c.length;for(;m<r;){let B=n.charCodeAt(m);if(B===ue||B===Ce||B===me||B===dr||B===ct||B===He)break;m++}for(var h=0,p=0,y=l;y<m;y++){var b=n.charCodeAt(y);b===Na?h++:b===Da&&p++}let A=m;for(;A>l+c.length;){let B=n.charCodeAt(A-1);if(B===Ma||B===Ey||B===Bn||B===qn||B===Bi||B===Da){if(B===Da){if(h>=p)break;p--}A--}else if(B===nm){for(var S=A-2;S>l&&(n.charCodeAt(S)>=Je&&n.charCodeAt(S)<=tt||n.charCodeAt(S)>=Lt&&n.charCodeAt(S)<=Ht||n.charCodeAt(S)>=Qe&&n.charCodeAt(S)<=$e);)S--;S>=l&&n.charCodeAt(S)===tm?A=S:A--}else break}if(A<=l+c.length)return null;var O=l+(f?4:c.length),C=n.indexOf("/",O);if((C<0||C>A)&&(C=A),f&&n.indexOf(".",O)===-1)return null;for(var E=-1,x=-1,M=C-1;M>=O;M--)if(n.charCodeAt(M)===Ma)if(E<0)E=M;else{x=M;break}for(var L=x>=0?x+1:O,M=L;M<C;M++)if(n.charCodeAt(M)===Ut)return null;var z=n.slice(l,A),H=f?"http://"+z:z;return{node:{type:Q.link,target:H,children:[{type:Q.text,text:z}]},end:A}}function bE(n,l,r,o){if(o.disableBareUrls)return null;for(var c=l,f=c;c<r;){var d=n.charCodeAt(c);if(d>=Je&&d<=tt||d>=Lt&&d<=Ht||d>=Qe&&d<=$e||d===Ma||d===qn||d===$a||d===36||d===Fc||d===tm||d===hr||d===It||d===pr||d===Ft||d===$n||d===Bi||d===Ya||d===Ut||d===et||d===Kr||d===nn||d===pu||d===an||d===ze)c++;else break}if(c===f||c>=r||n.charCodeAt(c)!==hu)return null;c++;for(var m=c,h=-1,p=c;c<r;){var d=n.charCodeAt(c);if(d>=Je&&d<=tt||d>=Lt&&d<=Ht||d>=Qe&&d<=$e)c++;else if((d===ze||d===Ut)&&c>m)c++;else if(d===Ma){if(c===m)break;var y=n.charCodeAt(c-1);if(y===ze||y===Ut||c-p>63)break;if(c+1<r){var b=n.charCodeAt(c+1);if(b>=Je&&b<=tt||b>=Lt&&b<=Ht||b>=Qe&&b<=$e)h=c,p=c+1,c++;else break}else break}else break}if(c-p>63||h<0)return null;var A=n.charCodeAt(c-1);if(!(A>=Je&&A<=tt||A>=Lt&&A<=Ht||A>=Qe&&A<=$e)||c<=h+1)return null;for(var S=-1,O=h-1;O>=m;O--)if(n.charCodeAt(O)===Ma){S=O;break}for(var C=S>=0?S+1:m,O=C;O<c;O++)if(n.charCodeAt(O)===Ut)return null;var E=n.slice(l,c);return{node:{type:Q.link,target:"mailto:"+E,children:[{type:Q.text,text:E}]},end:c}}function vh(n){for(var l=0;l<n.length;l++)if(n[l].type===Q.link||"children"in n[l]&&Array.isArray(n[l].children)&&vh(n[l].children))return!0;return!1}function Qc(n){for(var l="",r=0;r<n.length;r++){var o=n[r];o.type===Q.text?l+=o.text:o.type===Q.breakLine?l+=" ":o.type===Q.codeInline?l+=o.text:"children"in o&&Array.isArray(o.children)?l+=Qc(o.children):o.type===Q.image?l+=o.alt||"":o.type===Q.link&&(l+=Qc(o.children))}return l}function Hr(n){let l=n.includes("&")?gu(n):n;return{type:Q.text,text:l}}function _E(n,l,r,o,c){if(n.charCodeAt(l)!==ct)return null;var f=l+1;if(f>=r)return null;var d=n.charCodeAt(f);if(d===qn&&f+1<r&&n.charCodeAt(f+1)===ze&&f+2<r&&n.charCodeAt(f+2)===ze){var m=f+3;if(m<r&&n.charCodeAt(m)===He)return{node:{type:Q.htmlComment,text:"",endsWithGreaterThan:!0},end:m+1};if(m+1<r&&n.charCodeAt(m)===ze&&n.charCodeAt(m+1)===He)return{node:{type:Q.htmlComment,text:"-",endsWithGreaterThan:!0},end:m+2};var h=n.indexOf("-->",m);return h!==-1&&h<=r-3?{node:{type:Q.htmlComment,text:n.slice(l+4,h)},end:h+3}:null}if(d===Bi){var p=n.indexOf("?>",f+1);return p!==-1&&p<r?{node:{type:Q.htmlSelfClosing,tag:"?",attrs:{},a:n.slice(l,p+2)},end:p+2}:null}if(d===qn&&f+1<r){var y=n.charCodeAt(f+1);if(y===Dt&&n.slice(f+1,f+8)==="[CDATA["){var b=n.indexOf("]]>",f+8);return b!==-1&&b<r?{node:{type:Q.htmlSelfClosing,tag:"![CDATA[",attrs:{},a:n.slice(l,b+3)},end:b+3}:null}if(y>=Je&&y<=tt){var A=n.indexOf(">",f+2);return A!==-1&&A<r?{node:{type:Q.htmlSelfClosing,tag:"!"+n.slice(f+1,A),attrs:{},a:n.slice(l,A+1)},end:A+1}:null}}if(d===Ft){var S=f+1;if(S>=r)return null;var O=n.charCodeAt(S);if(!(O>=Je&&O<=tt||O>=Lt&&O<=Ht))return null;for(S++;S<r;){var C=n.charCodeAt(S);if(C>=Je&&C<=tt||C>=Lt&&C<=Ht||C>=Qe&&C<=$e||C===ze)S++;else break}for(;S<r&&(n.charCodeAt(S)===ue||n.charCodeAt(S)===me||n.charCodeAt(S)===Ce);)S++;if(S<r&&n.charCodeAt(S)===He){var E=n.slice(f+1,S).trim();return{node:{type:Q.htmlSelfClosing,tag:E,attrs:{},a:n.slice(l,S+1),b:!0},end:S+1}}return null}if(!(d>=Je&&d<=tt||d>=Lt&&d<=Ht))return null;var x=El(n,l);if(!x)return null;var M=x.tag,L=M.toLowerCase(),z=x.selfClosing;if(z||Qo(M))return{node:{type:Q.htmlSelfClosing,tag:M,attrs:Sl(x.attrs,M,c),a:n.slice(l,x.end)},end:x.end};var H=$o.has(L),B=gh(n.slice(0,r),x.end,M);if(B===-1)return{node:{type:Q.htmlSelfClosing,tag:M,attrs:Sl(x.attrs,M,c),a:n.slice(l,x.end)},end:x.end};var X=rE(n,"</"+L,B),Z=n.slice(x.end,X),re=[];if(H)Z.trim()&&(re=[{type:Q.text,text:Z}]);else{var $=Z.trim();if($){var{inAnchor:ne,inline:ie}=o;L==="a"&&(o.inAnchor=!0);var he=$.indexOf(`
49
-
50
- `)!==-1||/^#{1,6}\s/.test($);he?(o.inline=!1,re=ur($,o,c)):re=jn($,0,$.length,o,c),o.inAnchor=ne,o.inline=ie}}return{node:{type:Q.htmlBlock,tag:M,attrs:Sl(x.attrs,M,c),e:x.rawAttrs,children:re,text:Z,c:!1},end:B}}var AE=200,Io=0;function jn(n,l,r,o,c){if(Io++,Io>AE)return Io--,[{type:Q.text,text:n.slice(l,r)}];let f=o;if(c.streaming||c.optimizeForStreaming){let de=function(qe,_t){for(var At=1,Oe=_t+1;Oe<qe.length;Oe++){var je=qe.charCodeAt(Oe);if(je===Dt)At++;else if(je===ga&&(At--,At===0))return Oe}return-1},ee=n.slice(l,r),ve=ee;for(var d=0,m=0,h=0,p=0,y=0,b=-1,A=-1,S=-1,O=-1,C=-1,E=0;E<ee.length;E++){var x=ee.charCodeAt(E);x===It?E+1<ee.length&&ee.charCodeAt(E+1)===It?(d++,b=E,E++):(m++,A=E):x===Ut?E+1<ee.length&&ee.charCodeAt(E+1)===Ut?(h++,S=E,E++):(p++,O=E):x===an&&E+1<ee.length&&ee.charCodeAt(E+1)===an&&(y++,C=E,E++)}var M=[];y%2===1&&C>=0&&M.push([C,2]),h%2===1&&S>=0&&M.push([S,2]),p%2===1&&O>=0&&M.push([O,1]),d%2===1&&b>=0&&M.push([b,2]),m%2===1&&A>=0&&M.push([A,1]),M.sort(function(qe,_t){return _t[0]-qe[0]});for(var L=0;L<M.length;L++){var z=M[L][0],H=M[L][1];ee=ee.slice(0,z)+ee.slice(z+H)}let Ye=0,Tt=-1;for(let qe=0;qe<ee.length;qe++)ee.charCodeAt(qe)===et&&(Ye++,Tt=qe);if(Ye%2===1&&Tt!==-1){let qe=!1,_t=-1,At=0;for(;At<ee.length;)ee.charCodeAt(At)===et&&(qe?(qe=!1,_t=-1):(_t=At,qe=!0)),At++;qe&&_t!==-1&&(ee=ee.slice(0,_t))}for(var B=!0;B;){B=!1;for(var X=-1,Z=-1,re=-1,$=!1,ne=0;ne<ee.length;ne++){var ie=ee.charCodeAt(ne);if(ie===Dt&&(ne===0||ee.charCodeAt(ne-1)!==Pt)){var he=ne>0&&ee.charCodeAt(ne-1)===qn,pe=he?ne-1:ne,ce=de(ee,ne);if(ce===-1)X=pe,$=he,Z=ne+1,re=ee.length;else{var R=ce+1;if(R>=ee.length)X=pe,$=he,Z=ne+1,re=ce;else if(ee.charCodeAt(R)===Na){var W=ee.indexOf(")",R+1);W===-1?(X=pe,$=he,Z=ne+1,re=ce,ne=ee.length):ne=W}else if(ee.charCodeAt(R)===Dt){var le=ee.indexOf("]",R+1);le===-1?(X=pe,$=he,Z=ne+1,re=ce,ne=ee.length):ne=le}else ne=ce}}}if(X>=0){var ae=$?"":ee.slice(Z,re);ee=ee.slice(0,X)+ae,B=!0}}let ht=ee.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(ht&&ht.index!==void 0){for(var _e=!1,T=0,V=0;V<ht.index;V++)ee.charCodeAt(V)===et&&T++;if(_e=T%2===1,!_e){let qe=ht[1];or(ee,"</"+qe,0)===-1&&(ee=ee.replace(/<[A-Z][A-Za-z0-9]*(?:\s[^>]*)?>([^<]*)$/,"$1"))}}ee!==ve&&(n=n.slice(0,l)+ee,r=l+ee.length)}let Y=[];var oe=[];let K=l;var fe=c.disableAutoLink||c.disableBareUrls||f.inAnchor?-1:n.indexOf("@",l);for(fe>=r&&(fe=-1);l<r;){let de=n.charCodeAt(l),ee=null;if(de===et){if(ee=fE(n,l,r),!ee){var Se=Ml(n,l,r,et);l+=Se-1}}else if(de===It||de===Ut){var Ee=pE(n,l,r);if(Ee){if(Ee.canOpen||Ee.canClose){l>K&&Y.push(Hr(n.slice(K,l)));var De=n.slice(l,l+Ee.len),Be=Hr(De);oe.push({idx:Y.length,ch:de,len:Ee.len,canOpen:Ee.canOpen,canClose:Ee.canClose,active:!0}),Y.push(Be),l+=Ee.len,K=l;continue}l+=Ee.len-1}}else de===an?ee=dE(n,l,r,f,c):de===$n?ee=hE(n,l,r,f,c):de===Dt?(l+1<r&&n.charCodeAt(l+1)===Ya&&(ee=vE(n,l,r)),ee||(ee=$1(n,l,r,f,c))):de===qn&&l+1<r&&n.charCodeAt(l+1)===Dt?ee=$1(n,l,r,f,c):de===ct?(ee=By(n,l,r),!ee&&!c.disableParsingRawHTML&&!c.ignoreHTMLBlocks&&(ee=_E(n,l,r,f,c))):(de===mu||de===Di||de===ki)&&!f.inAnchor&&!c.disableAutoLink&&(l===0||n.charCodeAt(l-1)!==ct)&&(ee=yE(n,l,r,c));if(!ee&&fe>=0&&fe-l<=64&&!f.inAnchor&&!c.disableAutoLink&&!c.disableBareUrls&&(de>=Je&&de<=tt||de>=Lt&&de<=Ht||de>=Qe&&de<=$e)&&(ee=bE(n,l,r,c),!ee&&l>=fe&&(fe=n.indexOf("@",l+1),fe>=r&&(fe=-1))),de===Ty){l>K&&Y.push(Hr(n.slice(K,l))),Y.push({type:Q.breakLine}),l++,K=l;continue}if(ee)l>K&&Y.push(Hr(n.slice(K,l))),Y.push(ee.node),l=ee.end,K=l;else{if(de===Pt&&l+1<r){let ve=n.charCodeAt(l+1);if(lm(ve)&Pe){l>K&&Y.push(Hr(n.slice(K,l))),Y.push(Hr(n[l+1])),l+=2,K=l;continue}}if(l++,fe<0||fe-l>64)for(;l<r;){var ut=n.charCodeAt(l);if(ut<Po&&!Oy[ut])l++;else break}}}if(r>K){let de=n.slice(K,r);(c.streaming||c.optimizeForStreaming)&&(de=de.replace(/\*\*([^*]+)$/,"$1"),de.match(/\*[^*]+$/)&&(de=de.replace(/\*([^*]+)$/,"$1")),de=de.replace(/__([^_]+)$/,"$1"),de.match(/_[^_]+$/)&&(de=de.replace(/_([^_]+)$/,"$1")),de=de.replace(/~~([^~]+)$/,"$1"),de=de.replace(/\[([^\]]+)$/,"$1"),de=de.replace(/\[([^\]]+)\]\([^)]*$/,"$1")),de&&Y.push(Hr(de))}return oe.length>0&&gE(Y,oe),Io--,Y}var CE=500;function ur(n,l,r){var o=l.g||0;if(o>CE)return[{type:Q.text,text:n}];if(l.g=o+1,(r.streaming||r.optimizeForStreaming)&&!l.h){var c=n.length;c>0&&n.charCodeAt(c-1)===Ce&&c--;for(var f=c;f>0&&n.charCodeAt(f-1)!==Ce;)f--;if(f>0&&n.charCodeAt(f)===nn){for(var d=!0,m=f;m<c;m++){var h=n.charCodeAt(m);if(h!==ue&&h!==me&&h!==ze&&h!==Bn&&h!==nn){d=!1;break}}if(d){for(var p=f-1;p>0&&n.charCodeAt(p-1)!==Ce;)p--;n.charCodeAt(p)===nn&&(n=n.slice(0,p).trimEnd())}}var y=n.trim(),b=y.lastIndexOf(`
51
- `),A=b===-1?y:y.slice(b+1);if(A.length>0&&A.charCodeAt(0)===nn){for(var S=!1,O=!1,C=1;C<A.length;C++){var E=A.charCodeAt(C);E===nn&&(S=!0),E===ze&&(O=!0)}S&&O&&(n=b===-1?"":n.slice(0,n.lastIndexOf(A)).trimEnd())}for(var x=-1,M=-1,L=-1,z=n.length-1;z>=0;z--)if(n.charCodeAt(z)===ct){var H=z+1<n.length?n.charCodeAt(z+1):0;if(H>=Je&&H<=tt||H>=Lt&&H<=Ht){for(var B=z+2;B<n.length;){var X=n.charCodeAt(B);if(X>=Je&&X<=tt||X>=Lt&&X<=Ht||X>=Qe&&X<=$e)B++;else break}for(var Z=B;Z<n.length&&n.charCodeAt(Z)!==He;)Z++;if(Z<n.length){for(var re=!1,$=Z+1;$<n.length;$++)if(n.charCodeAt($)===ct){re=!0;break}re||(x=z,M=B,L=Z+1)}}break}if(x>=0){for(var ne=0,ie=0;ie<x;ie++)n.charCodeAt(ie)===et&&ne++;if(ne%2===0){var he=n.slice(x+1,M);or(n,"</"+he,0)===-1&&(n=n.slice(0,x)+n.slice(L))}}for(var pe=n.length;pe>0&&n.charCodeAt(pe-1)===Ce;)pe--;if(pe>0){for(var ce=pe;ce>0&&n.charCodeAt(ce-1)!==Ce;)ce--;for(var R=ce,W=0;R<pe&&n.charCodeAt(R)===ue&&W<3;)R++,W++;if(ce>0&&R<pe&&eE(n,R,pe)){for(var le=ce-1,ae=le;ae>0&&n.charCodeAt(ae-1)!==Ce;)ae--;ea(n,ae,le)||(n=n.slice(0,ce).trimEnd())}}var _e=n.length;if(_e>0){for(var T=n.lastIndexOf(`
52
- `),V=T===-1?0:T+1,Y=_e,oe=V,K=0;oe<Y&&n.charCodeAt(oe)===ue&&K<3;)oe++,K++;if(oe<Y){var fe=n.charCodeAt(oe),Se=!1;if(fe===It||fe===ze||fe===pr){var Ee=oe+1;if(Ee>=Y||n.charCodeAt(Ee)===ue||n.charCodeAt(Ee)===me){for(var De=Ee;De<Y&&(n.charCodeAt(De)===ue||n.charCodeAt(De)===me);)De++;De>=Y&&(Se=!0)}}else if(fe>=Qe&&fe<=$e){for(var Be=oe;Be<Y&&n.charCodeAt(Be)>=Qe&&n.charCodeAt(Be)<=$e;)Be++;if(Be<Y&&(n.charCodeAt(Be)===Ma||n.charCodeAt(Be)===Da)){var ut=Be+1;if(ut>=Y||n.charCodeAt(ut)===ue||n.charCodeAt(ut)===me){for(var de=ut;de<Y&&(n.charCodeAt(de)===ue||n.charCodeAt(de)===me);)de++;de>=Y&&(Se=!0)}}}Se&&(n=n.slice(0,V).trimEnd())}}}if(l.inline)return jn(n,0,n.length,l,r);let ee=[],ve=0,Ye=n.length;if(ve===0&&n.startsWith("---")){let Oe=LS(n);if(Oe&&Oe.hasValidYaml){if(r.preserveFrontmatter!==!1){let je=n.slice(0,Oe.endPos).trimEnd();ee.push({type:Q.frontmatter,text:je})}ve=Oe.endPos}}for(;ve<Ye;){for(var Tt=n.indexOf(`
53
- `,ve),ht=Tt<0?Ye:Tt;ve<Ye&&ea(n,ve,ht);)ve=ht<Ye?ht+1:ht,ve<Ye&&(Tt=n.indexOf(`
54
- `,ve),ht=Tt<0?Ye:Tt);if(ve>=Ye)break;n.charCodeAt(ve),qt(n,ve,ht);let Oe=null;if(n.charCodeAt(ve)!==Kc&&at>=4&&!l.inHTML)Oe=nE(n,ve);else if(n.charCodeAt(ve)!==Kc){let je=ve+nt,zt=n.charCodeAt(je);zt===$a?Oe=Dy(n,ve,l,r):zt===He?Oe=aE(n,ve,l,r):zt===et||zt===an?Oe=tE(n,ve):zt===ze||zt===It||zt===Ut?(Oe=cr(n,ve),!Oe&&(Oe=J1(n,ve,l,r))):zt===pr||zt>=Qe&&zt<=$e?Oe=J1(n,ve,l,r):zt===ct?Oe=zy(n,ve,l,r):zt===nn?Oe=W1(n,ve,l,r):zt===Dt&&(Oe=oE(n,ve,l))}if(!Oe){for(var qe=!1,_t=ve;_t<ht;_t++)if(n.charCodeAt(_t)===nn){qe=!0;break}qe&&(Oe=W1(n,ve,l,r))}if(Oe||(Oe=cE(n,ve,l,r)),Oe)Oe.node.type!==Q.refCollection&&ee.push(Oe.node),ve=Oe.end;else{var At=n.indexOf(`
55
- `,ve);ve=At<0?Ye:At+1}}return l.g=o,ee}function SE(n,l,r,o){var c=El(n,l);return c?{tagName:c.tag,tagLower:c.tag.toLowerCase(),attrs:c.rawAttrs,whitespaceBeforeAttrs:c.whitespaceBeforeAttrs,isSelfClosing:c.selfClosing,hasSpaceBeforeSlash:c.hasSpaceBeforeSlash,isClosing:c.isClosing,hasNewline:c.whitespaceBeforeAttrs.includes(`
56
- `)||c.rawAttrs.includes(`
57
- `),endPos:c.end}:null}function rm(n,l,r){Io=0,n=GS(n),!l.refs&&(l.refs={}),l.h=Ry(n,l.refs);let o=ur(n,l,r);return l.refs&&Object.keys(l.refs).length>0?[{type:Q.refCollection,refs:l.refs},...o]:o}var EE=/^\n+/,yh;try{yh=q.createElement("div").$$typeof}catch{yh=Symbol.for("react.transitional.element")}function bh(n,l,r){var o={$$typeof:yh,type:n,key:r!=null?""+r:null,ref:null,props:l,i:null};return o}var TE=typeof q.createContext<"u"?q.createContext(void 0):void 0;function ev(n,l,r,o,c,f,d,m){switch(n.type){case Q.blockQuote:{let C={key:r.key};return n.alert&&(C.className="markdown-alert-"+f(n.alert.toLowerCase(),Pa),n.children.unshift({attrs:{},children:[{type:Q.text,text:n.alert}],c:!0,type:Q.htmlBlock,tag:"header"})),o("blockquote",C,l(n.children,r))}case Q.breakLine:return o("br",{key:r.key});case Q.breakThematic:return o("hr",{key:r.key});case Q.frontmatter:return m.preserveFrontmatter?o("pre",{key:r.key},n.text):null;case Q.codeBlock:let O=n.lang?gu(n.lang):"";return o("pre",{key:r.key},o("code",{...da(n.attrs||{}),className:O?`language-${O} lang-${O}`:""},n.text));case Q.codeInline:return o("code",{key:r.key},n.text);case Q.footnoteReference:return o("a",{key:r.key,href:c(n.target,"a","href")||void 0},o("sup",{key:r.key},n.text));case Q.gfmTask:return o("input",{checked:n.completed,key:r.key,readOnly:!0,type:"checkbox"});case Q.heading:return o(`h${n.level}`,{id:n.id,key:r.key},l(n.children,r));case Q.htmlBlock:{let C=n;if(m.tagfilter&&G1(C.tag)){var h="";if(C.attrs)for(var p in C.attrs){var y=C.attrs[p];y===!0?h+=" "+p:y!=null&&y!==!1&&(h+=" "+p+'="'+String(y)+'"')}return o("span",{key:r.key},"<"+C.tag+h+">")}if(C.a&&C.c){let E=function(R){if((R.type===Q.htmlSelfClosing||R.type===Q.htmlBlock)&&R.b)return[];if(R.type===Q.paragraph){let W=R.children;return W?W.flatMap(E):[]}return R.type===Q.text?R.text?.trim()?[R]:[]:R.type===Q.htmlBlock&&R.children?[{...R,children:R.children?.flatMap(E)}]:[R]},x=function(R){for(var W=0;W<R.length;W++)R[W].type===Q.htmlBlock&&(R[W].c=!1),"children"in R[W]&&R[W].children&&x(R[W].children)},M=function(R,W){for(var le=0;le<R.length;le++){var ae=R[le];if(ae.type===Q.paragraph&&ae.children)for(var _e=ae.children,T=0;T<_e.length;T++){var V=_e[T];if(V.type===Q.htmlSelfClosing&&V.b&&V.tag.toLowerCase()===W){var Y=R.slice(0,le);T>0&&Y.push({type:Q.paragraph,children:_e.slice(0,T)});var oe=[];if(T+1<_e.length){var K=_e.slice(T+1);K=K.filter(function(fe){return!(fe.type===Q.htmlSelfClosing&&fe.b)}),K.length>0&&(oe=K)}return oe=oe.concat(R.slice(le+1)),{found:!0,beforeClose:Y,afterClose:oe}}}if((ae.type===Q.htmlSelfClosing||ae.type===Q.htmlBlock)&&ae.b&&ae.tag.toLowerCase()===W)return{found:!0,beforeClose:R.slice(0,le),afterClose:R.slice(le+1)}}return{found:!1,beforeClose:R,afterClose:[]}},L=C.tag.toLowerCase(),z=PS(L),H=C.children&&C.children.length>0,B=/<[a-z][^>]{0,100}>/i.test(C.a);if(z){let R=C.a.replace(new RegExp("\\s*</"+L+">\\s*$","i"),"");return m.tagfilter&&(R=V1(R)),B?o(n.tag,{key:r.key,...da(n.attrs||{}),dangerouslySetInnerHTML:{__html:R}}):o(n.tag,{key:r.key,...da(n.attrs||{})},R)}let X=new RegExp(`^<${C.tag}(\\s|>)`,"i").test(C.a);if(H&&!X&&m.tagfilter&&FS(C.a))return o(n.tag,{key:r.key,...da(n.attrs||{})},l(C.children,r));if(QS(C.a)){let R=m.tagfilter?V1(C.a):C.a;return o(n.tag,{key:r.key,...da(n.attrs||{}),dangerouslySetInnerHTML:{__html:R}})}let Z={slugify:R=>f(R,Pa),sanitizer:c,tagfilter:!0},re=C.a.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${C.tag}(\\s[^>]*)?>(\\s*</${C.tag}>)?$`,"i").test(re))return C.children&&C.children.length>0?o(n.tag,{key:r.key,...da(n.attrs||{})},l(C.children,r)):o(n.tag,{key:r.key,...da(n.attrs||{})});let $=rm(re,{inline:!1,refs:d,inHTML:!1},Z);x($);let ne=C.tag.toLowerCase(),ie="</"+ne+">",he=new RegExp(`^<${C.tag}(\\s|>)`,"i").test(re),pe=re.toLowerCase().trimEnd().endsWith(ie),ce=he&&pe;if(ce&&H)return o(n.tag,{key:r.key,...da(n.attrs||{})},l(C.children,r));if(ce)return l($.flatMap(E),r);var b=M($,ne);if(b.found&&b.afterClose.length>0){var A=b.beforeClose.flatMap(E),S=b.afterClose.flatMap(E);return bh(q.Fragment,{children:[o(n.tag,{key:r.key,...da(n.attrs||{})},l(A,r)),l(S,r)]},null)}return o(n.tag,{key:r.key,...da(n.attrs||{})},l($.flatMap(E),r))}return Qo(n.tag)?o(n.tag,{key:r.key,...da(n.attrs||{})}):o(n.tag,{key:r.key,...da(n.attrs||{})},n.children?l(n.children,r):"")}case Q.htmlSelfClosing:{let C=n;if(m.tagfilter&&G1(C.tag)){var h="";if(C.attrs)for(var p in C.attrs){var y=C.attrs[p];y===!0?h+=" "+p:y!=null&&y!==!1&&(h+=" "+p+'="'+String(y)+'"')}return o("span",{key:r.key},"<"+C.tag+h+" />")}return o(n.tag,{key:r.key,...da(n.attrs||{})})}case Q.image:{let C=n.target!=null?c(n.target,"img","src"):null;return o("img",{key:r.key,alt:n.alt&&n.alt.length>0?n.alt:void 0,title:n.title||void 0,src:C||void 0})}case Q.link:{let C={key:r.key};return n.target!=null&&(C.href=VS(n.target)),n.title&&(C.title=n.title),o("a",C,l(n.children,r))}case Q.table:{let C=n;return o("table",{key:r.key},o("thead",null,o("tr",null,C.header.map(function(E,x){return o("th",{key:x,style:C.align[x]==null?{}:{textAlign:C.align[x]}},l(E,r))}))),o("tbody",null,C.cells.map(function(E,x){return o("tr",{key:x},E.map(function(M,L){return o("td",{key:L,style:C.align[L]==null?{}:{textAlign:C.align[L]}},l(M,r))}))})))}case Q.text:return n.text;case Q.textFormatted:return o(n.tag,{key:r.key},l(n.children,r));case Q.orderedList:case Q.unorderedList:{let C=n.type===Q.orderedList?"ol":"ul";return o(C,{key:r.key,start:n.type===Q.orderedList?n.start:void 0},n.items.map(function(E,x){return o("li",{key:x},l(E,r))}))}case Q.paragraph:return o("p",{key:r.key},l(n.children,r));case Q.ref:return null;default:return null}}var xE=(n,l,r,o,c,f)=>{var d=h=>h.map(function(p){return"text"in p?p.text:""}),m=(h,p={})=>{var y=(p.renderDepth||0)+1;if(y>2500)return d(h);p.renderDepth=y;for(var b=p.key,A=[],S=!1,O=0;O<h.length;O++){p.key=O;var C;if(n){var E=ev.bind(null,h[O],m,p,l,r,o,c,f);C=n(E,h[O],m,p)}else C=ev(h[O],m,p,l,r,o,c,f);var x=typeof C=="string";if(x&&S)A[A.length-1]+=C;else if(C!==null)if(Array.isArray(C))for(var M=0;M<C.length;M++)A.push(C[M]);else A.push(C);S=x}return p.key=b,p.renderDepth=y-1,A};return m},OE=(n,l)=>{let r=mh(l,n,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:mh(l,`${n}.component`,n):n};function wE(n,l){let r={...l||{}};r.overrides=r.overrides||{};let o=r.slugify||Pa,c=r.sanitizer||am,f=r.createElement,d=r.overrides&&Object.keys(r.overrides).length>0,m=x=>_h(x,{...r,wrapper:null});function h(x,M,...L){var z=M||{};for(var H in z){var B=z[H];if(typeof B=="string"&&B.length>0&&B.charCodeAt(0)===ct&&(KS.test(B)||JS.test(B)||SE(B,0))){var X=m(B.trim());z[H]=H==="innerHTML"&&Array.isArray(X)?X[0]:X}}var Z=x;if(d){var re=mh(r.overrides,x+".props",{});Z=OE(x,r.overrides),z={...z,...re,className:YS(z.className,re.className)||void 0}}if(!f){var $=z.key;return $!=null&&delete z.key,L.length===1?z.children=L[0]:L.length>1&&(z.children=L),bh(Z,z,$)}return f(Z,z,...L)}let p={...r,slugify:x=>o(x,Pa),sanitizer:c,tagfilter:r.tagfilter!==!1},y=n[0]&&n[0].type===Q.refCollection?n[0].refs:{},b=xE(r.renderRule,h,c,o,y,r),A=b(n,{inline:r.forceInline,refs:y}),S=[];for(let x in y)x.charCodeAt(0)===Ya&&S.push({identifier:x,footnote:y[x].target});if(S.length&&A.push(h("footer",{key:"footer"},S.map(function(x){let M=x.identifier.charCodeAt(0)===Ya?x.identifier.slice(1):x.identifier,L=rm(x.footnote,{inline:!0,refs:y},p);return h("div",{id:o(M,Pa),key:x.identifier},M+": ",b(L,{inline:!0,refs:y}))}))),r.wrapper===null)return A;let O=r.wrapper||(r.forceInline?"span":"div"),C;if(A.length>1||r.forceWrapper)C=A;else return A.length===1?A[0]:null;var E=r.wrapperProps?{...r.wrapperProps}:{};return E.children=C,bh(O,E,"outer")}function _h(n="",l={}){let r={...l||{}};r.overrides=r.overrides||{};let o=r.slugify||Pa,c=r.sanitizer||am;function f(m){let h=r.forceInline||!r.forceBlock&&!BS.test(m),p={...r,slugify:A=>o(A,Pa),sanitizer:c,tagfilter:r.tagfilter!==!1};h||Ry(m,d);let y=m;if(!h){let A=y.length;for(;A>0&&(y[A-1]===`
58
- `||y[A-1]==="\r");)A--;y=y.slice(0,A),y=`${y.replace(EE,"")}
59
-
60
- `}if(r.optimizeForStreaming){let A=y.lastIndexOf("<");A!==-1&&y.slice(A).indexOf(">")===-1&&(y=y.slice(0,A))}let b=rm(h?m:y,{inline:h,refs:d},p);return wE(b,{...p,forceInline:h})}let d={};return f(n)}var RE=({children:n,options:l,...r})=>{if(!(typeof q.useContext<"u")){let d={...l,overrides:{...l?.overrides},wrapperProps:{...l?.wrapperProps,...r}};return _h(n??"",d)}let o=q.useContext(TE),c=q.useMemo(()=>({...o,...l,overrides:{...o?.overrides,...l?.overrides},wrapperProps:{...o?.wrapperProps,...l?.wrapperProps,...r}}),[o,l,r]),f=n??"";return q.useMemo(()=>_h(f,c),[f,c])},NE=RE,xl=NE;const ME="_generalConditionsContainer_55hjg_1",DE="_generalConditions_55hjg_1",LE="_generalConditionsHeader_55hjg_15",zE="_generalConditionsBody_55hjg_26",kE="_generalConditionsAccept_55hjg_35",Mo={generalConditionsContainer:ME,generalConditions:DE,generalConditionsHeader:LE,generalConditionsBody:zE,generalConditionsAccept:kE},BE=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),jE=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),UE="general-conditions.header",HE="general-conditions.body",tv="general-conditions.accept-conditions-note",qE=()=>{const n=Rt(),[l,r]=q.useState(!1),o=()=>r(!l),c=m=>{m.key==="ArrowDown"||m.key==="ArrowRight"?r(!0):m.key==="ArrowUp"||m.key==="ArrowLeft"||m.key==="Escape"?r(!1):(m.key==="Enter"||m.key==="Space"||m.key===" ")&&o()},f=n(UE),d=n(tv);return v.jsxs("div",{className:se(Mo.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&v.jsxs("div",{className:Mo.generalConditions,children:[v.jsxs("div",{role:"button",onClick:o,onKeyDown:c,tabIndex:0,className:se(Mo.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":l?"true":"false","aria-pressed":l?"true":"false",children:[v.jsx(xl,{children:f}),l?v.jsx(jE,{}):v.jsx(BE,{})]}),v.jsx("div",{className:se(Mo.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:l&&v.jsx(xl,{children:n(HE)||""})})]}),!!d?.length&&v.jsx("div",{className:se(Mo.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(xl,{children:n(tv)||""})})]})},IE="_messageContainer_1rxi5_1",GE="_message_1rxi5_1",VE="_messageBot_1rxi5_14",YE="_messageBotLast_1rxi5_45",XE="_avatar_1rxi5_45",FE="_messageBotFirst_1rxi5_54",KE="_messageBotAnimated_1rxi5_67",JE="_messageGuest_1rxi5_78",ZE="_messageGuestFirst_1rxi5_84",WE="_messageGuestLast_1rxi5_90",PE="_botAvatar_1rxi5_104",QE="_agentAvatar_1rxi5_108",$E="_bubble_1rxi5_112",e6="_bubbleContent_1rxi5_118",t6="_bubbleLeft_1rxi5_132",n6="_leftText_1rxi5_143",a6="_bubbleRight_1rxi5_150",l6="_rightText_1rxi5_160",r6="_sourceInfoReference_1rxi5_192",i6="_sourceInfoReferenceActive_1rxi5_204",Ne={messageContainer:IE,message:GE,messageBot:VE,messageBotLast:YE,avatar:XE,messageBotFirst:FE,messageBotAnimated:KE,messageGuest:JE,messageGuestFirst:ZE,messageGuestLast:WE,botAvatar:PE,agentAvatar:QE,bubble:$E,bubbleContent:e6,bubbleLeft:t6,leftText:n6,bubbleRight:a6,rightText:l6,sourceInfoReference:r6,sourceInfoReferenceActive:i6},im=(n,l)=>{q.useEffect(()=>{const r=o=>{n.current&&!n.current.contains(o.target)&&l()};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[n,l])};function o6(n,l){let r=null,o=null;const c=(...f)=>{o=f,r&&clearTimeout(r),r=setTimeout(()=>{n(...o),r=null,o=null},l)};return c.flush=()=>{r&&o&&(clearTimeout(r),n(...o),r=null,o=null)},c}function s6(n,l){let r=0,o=null;return((...c)=>{const f=Date.now(),d=f-r;d>=l?(r=f,n(...c)):(o&&clearTimeout(o),o=setTimeout(()=>{r=Date.now(),n(...c)},l-d))})}const c6="_container_131ib_1",u6="_categoryContainer_131ib_13",f6="_categoryButton_131ib_20",d6="_active_131ib_35",h6="_commentTextarea_131ib_44",Do={container:c6,categoryContainer:u6,categoryButton:f6,active:d6,commentTextarea:h6},m6=(n,l,r)=>{q.useEffect(()=>{if(n){const o=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=l.current?Array.from(l.current.querySelectorAll(f)):[],m=r.current?Array.from(r.current.querySelectorAll(f)):[];return[...d,...m]},c=f=>{if(f.key==="Tab"){const d=o();if(d.length>0){const m=d[0],h=d[d.length-1],p=document.activeElement;!f.shiftKey&&p===h?(f.preventDefault(),m.focus()):f.shiftKey&&p===m&&(f.preventDefault(),h.focus())}}};return document.addEventListener("keydown",c,!0),()=>{document.removeEventListener("keydown",c,!0)}}},[n,l,r])},p6=({open:n,actionsRef:l,reaction:r,onReaction:o})=>{const c=Rt(),f=q.useRef(null),d=o6(p=>{o({...r,comment:p})},300);q.useEffect(()=>()=>d.flush(),[d]),m6(n,l,f);const m=p=>{o({...r,category:r.category===p?void 0:p})},h=p=>d(p.target.value);return n?v.jsxs("div",{ref:f,className:Do.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[v.jsx("h2",{id:"bad-reaction-title",children:c("bot-bubble.reaction.say-more")}),v.jsx("div",{className:Do.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>v.jsx("button",{className:se(Do.categoryButton,r?.category===p&&Do.active),onClick:()=>m(p),"aria-pressed":r?.category===p,"aria-label":c(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:c(`bot-bubble.reaction.category.${p}`)},p))}),v.jsx("textarea",{id:"comment",name:"comment",placeholder:c("bot-bubble.reaction.comment"),defaultValue:r?.comment,onChange:h,className:Do.commentTextarea,rows:3,"aria-label":c("bot-bubble.reaction.comment")})]}):null},g6="_botMessageActionContainer_g6hpe_1",v6="_alwaysVisible_g6hpe_15",y6="_active_g6hpe_19",b6="_botMessageActionInnerContainer_g6hpe_27",_6="_header_g6hpe_52",A6="_botMessageActions_g6hpe_57",C6="_reported_g6hpe_68",S6="_action_g6hpe_72",E6="_anyReport_g6hpe_120",T6="_closeButton_g6hpe_136",dn={botMessageActionContainer:g6,alwaysVisible:v6,active:y6,botMessageActionInnerContainer:b6,header:_6,botMessageActions:A6,reported:C6,action:S6,anyReport:E6,closeButton:T6},x6=({isSubmitting:n,onClick:l})=>{const r=Rt();return v.jsx("button",{className:se(dn.action,dn.closeButton,"tooltip--bottom-left"),"aria-label":r("bot-bubble.reaction.close"),"data-title":r("bot-bubble.reaction.close"),tabIndex:0,onClick:l,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n?v.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):v.jsx("path",{d:"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"})})})},O6=({alwaysVisible:n,senderType:l,reaction:r,botMessageRef:o,message:c,onReaction:f})=>{const d=Rt(),[m,h]=q.useState(!1),[p,y]=q.useState(!1),[b,A]=q.useState(!1),S=q.useRef(null),O=q.useRef(null);im(S,()=>{A(!1)});const C=H=>{H.key==="Escape"&&A(!1)};q.useEffect(()=>(document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}),[]),q.useEffect(()=>{b&&S.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[b]);const E=H=>{O.current&&clearTimeout(O.current),y(!0),f(H),O.current=setTimeout(()=>{y(!1)},1e3)},x=q.useCallback(async()=>{if(o.current)try{h(!0);const H=o.current.innerHTML,B=o.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([H],{type:"text/html"}),"text/plain":new Blob([B],{type:"text/plain"})})]),await new Promise(X=>setTimeout(X,1500))}finally{h(!1)}},[o]),M=()=>{A(!1),f(r?.type==="GOOD"?null:{type:"GOOD"})},L=()=>{f({...c.reaction,type:"BAD"}),A(!b)},z=H=>B=>{(B.key==="Enter"||B.key===" ")&&H()};return v.jsx("div",{ref:S,className:se(dn.botMessageActionContainer,n&&dn.alwaysVisible,b&&dn.active),"aria-hidden":"true",children:v.jsxs("div",{className:se(dn.botMessageActionInnerContainer,n&&dn.alwaysVisible,b&&dn.active,r&&dn.reported),role:"group","aria-label":d("bot-bubble.actions.label"),children:[v.jsxs("div",{className:dn.header,children:[v.jsxs("div",{className:se(dn.botMessageActions,r&&dn.reported),children:[l===Fo.BOT&&v.jsx("button",{className:se(dn.action,r?.type&&dn.anyReport,r?.type==="GOOD"&&dn.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(r?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":r?.type==="GOOD","data-title":d(r?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:M,onKeyDown:z(M),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r?.type==="GOOD"?v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),l===Fo.BOT&&v.jsx("button",{className:se(dn.action,r?.type&&dn.anyReport,r?.type==="BAD"&&dn.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":r?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onPointerDown:L,onKeyDown:z(L),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r?.type==="BAD"?v.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):v.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),v.jsx("button",{className:se(dn.action,"tooltip--top-right"),style:{visibility:b?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:x,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:m?v.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):v.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]}),b&&v.jsx(x6,{isSubmitting:p,onClick:()=>A(!1)})]}),c.reaction&&v.jsx(p6,{open:b,actionsRef:S,reaction:c.reaction,onReaction:E})]})})},jy=q.forwardRef(({message:n,isAnimated:l,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:c,children:f,onReaction:d},m)=>{const h=Rt(),p=q.useRef(null),y=n.sender.type===Rl.BOT;return v.jsxs("li",{ref:m,className:se(Ne.message,Ne.messageBot,r&&Ne.lastMessage,o&&Ne.messageBotFirst,c&&Ne.messageBotLast,"chat__bubbleContainer",l&&Ne.messageBotAnimated,l&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",o&&"chat__bubbleContainer--first",c&&"chat__bubbleContainer--last"),role:"article",children:[v.jsx("img",{className:se(Ne.avatar,y?Ne.botAvatar:Ne.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer","aria-hidden":"true"}),v.jsxs("div",{className:Ne.messageContainer,children:[v.jsx("div",{ref:p,className:se(Ne.bubble,Ne.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,role:"group","aria-label":h(y?"bot-bubble.label":"agent-bubble.label"),children:v.jsx("div",{className:se(Ne.leftText),children:f})}),d&&v.jsx(O6,{alwaysVisible:r&&c,senderType:n.sender.type,reaction:n.reaction,message:n,botMessageRef:p,onReaction:d})]})]})}),w6="_sourceList_1sc0q_1",R6="_source_1sc0q_1",N6="_label_1sc0q_39",Xd={sourceList:w6,source:R6,label:N6},Uy=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),Hy=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})}),qy=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})}),Iy=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})}),M6=({type:n,...l})=>{switch(n){case"WEBSITE":return v.jsx(Iy,{...l});case"PDF":return v.jsx(qy,{...l});case"DOCX":return v.jsx(Uy,{...l});default:return v.jsx(Hy,{...l})}},om=({sources:n,onLinkClick:l})=>{const r=Rt(),o=f=>()=>{l(f.url)},c=f=>d=>{(d.key==="Enter"||d.key===" ")&&l(f.url)};return n.length?v.jsx("ul",{className:Xd.sourceList,"aria-label":r("bot-bubble.sources"),children:n.map(f=>v.jsx("li",{className:Xd.source,children:v.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${r("bot-bubble.source.open")}: ${f.label}`,onClick:o(f),onKeyDown:c(f),children:[v.jsx(M6,{type:f.type,"aria-hidden":"true"}),v.jsx("div",{className:Xd.label,children:f.label})]})},f.url))}):null},D6="_button_3ui4g_1",L6="_buttonDefault_3ui4g_13",z6="_buttonPrimary_3ui4g_28",Jo={button:D6,buttonDefault:L6,buttonPrimary:z6},yu=({className:n,children:l,...r})=>v.jsx("button",{className:se(Jo.button,n),type:"button",role:"button",...r,children:l}),k6="_title_137pi_1",B6="_buttons_137pi_6",j6="_button_137pi_6",U6="_imageContainer_137pi_29",H6="_image_137pi_29",q6="_video_container_137pi_44",I6="_video_137pi_44",G6="_only_137pi_58",ma={title:k6,buttons:B6,button:j6,imageContainer:U6,image:H6,video_container:q6,video:I6,only:G6},V6=({buttons:n,onButtonClick:l})=>v.jsx("div",{className:se(ma.buttons,"chat__bubbleButtons"),children:n.map((r,o)=>v.jsx(yu,{className:se(ma.button,"chat__bubbleButton"),onClick:()=>l(r),children:r.title},o))}),nv="newtab#",Gy=({markdown:n,markdownOptions:l={},onLinkClick:r})=>{const o=f=>d=>(d.preventDefault(),f&&r(f),!1),c=({title:f,href:d,children:m})=>d.indexOf(nv)===0?v.jsx("a",{href:d.slice(nv.length),title:f,target:"_blank",rel:"noopener noreferrer",children:m}):v.jsx("a",{onClick:o(d),title:f,href:d,children:m});return v.jsx(xl,{options:{...l,overrides:{a:c}},children:n})},Y6=({text:n,onLinkClick:l})=>n?v.jsx("div",{children:v.jsx(Gy,{markdown:n,onLinkClick:l})}):null,X6=({title:n})=>n?v.jsx("h1",{className:ma.title,children:n}):null,F6=({title:n,text:l,buttons:r,onButtonClick:o,onLinkClick:c})=>n?.length||l?.length||r?.length?v.jsxs("div",{className:se(Ne.bubbleContent),children:[v.jsx(X6,{title:n}),v.jsx(Y6,{text:l,onLinkClick:c}),v.jsx(V6,{buttons:r,onButtonClick:o})]}):null,K6=({alt:n,imageUrl:l,itemUrl:r,hasBody:o})=>l?r?r.indexOf("youtube.com")>-1?v.jsx("div",{className:ma.video_container,children:v.jsx("iframe",{className:se(ma.video,{[ma.only]:!o}),title:"Youtube",width:"100%",src:r+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):v.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:v.jsx("div",{className:ma.imageContainer,children:v.jsx("img",{className:se(ma.image,{[ma.only]:!o}),src:l,alt:n})})}):v.jsx("div",{className:ma.imageContainer,children:v.jsx("img",{className:se(ma.image,{[ma.only]:!o}),src:l,alt:n})}):null,J6=({title:n,text:l,imageUrl:r,itemUrl:o,buttons:c,sources:f,onButtonClick:d,onLinkClick:m})=>{const h=!!n?.length||!!l?.length||!!c?.length;return v.jsxs("div",{className:se(ma.detailMessage),children:[v.jsx(K6,{hasBody:h,imageUrl:r,itemUrl:o,alt:n||""}),h&&v.jsx(F6,{title:n,text:l,buttons:c,onLinkClick:m,onButtonClick:d}),v.jsx(om,{sources:f,onLinkClick:m})]})},Z6=q.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:l,children:r},o)=>{const c=Rt();return v.jsx("li",{ref:o,className:se(Ne.message,Ne.messageGuest,n&&Ne.messageGuestFirst,l&&Ne.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),role:"article",children:v.jsx("div",{className:se(Ne.bubble,Ne.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,role:"group","aria-label":c("guest-bubble.label"),children:v.jsx("div",{className:se(Ne.rightText),children:r})})})}),sm=()=>q.useMemo(()=>au(),[]),W6="_markdown_nw7vg_1",Vy={markdown:W6},yc="source-info-reference",P6=({actionId:n,markdown:l,sources:r,onLinkClick:o})=>{const c=sm(),f=Dl(),d=Q6(),m=Bt(y=>{const b=y.chat.sourceInfos;if(b?.type==="loaded"||b?.type==="loading")return b.chunkId}),h=y=>b=>{const A=b.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(b.stopPropagation(),f(M1(c,n,y)))},p=y=>()=>{f(M1(c,n,y))};return q.useLayoutEffect(()=>{document.querySelectorAll(`.${yc}`).forEach(y=>{const b=y.previousSibling;b&&b.nodeType===Node.TEXT_NODE&&b.textContent?.endsWith(" ")&&b.textContent?.trim().length&&y.classList.add(`${yc}--before-space`);const A=y.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&y.classList.add(`${yc}--after-space`)})},[l]),v.jsxs("div",{className:Ne.bubbleContent,children:[v.jsx("div",{className:Vy.markdown,children:v.jsx(Gy,{markdown:l,onLinkClick:o,markdownOptions:{renderRule(y,b,A,S){if(b.type===Q.footnoteReference){const O=b.text===m;return v.jsx("span",{className:se(Ne.sourceInfoReference,O&&Ne.sourceInfoReferenceActive,yc),children:v.jsx("a",{type:"button",tabIndex:0,onClick:p(b.text),onKeyDown:h(b.text),children:d(b.text)})},S.key)}return y()}}})}),v.jsx(om,{sources:r,onLinkClick:o})]})},Q6=()=>{const n=[];return r=>{const o=n.indexOf(r);return o>-1?o+1:(n.push(r),n.length)}},$6="_text_gp0s0_1",eT="_command_gp0s0_5",av={text:$6,command:eT},tT=({text:n,commands:l=[]})=>{const r=l.find(c=>n.startsWith(`/${c}`)),o=r?n.slice(r.length+1):n;return v.jsxs("div",{children:[r&&v.jsxs("code",{className:av.command,children:["/",r]}),o.split(`
61
- `).map((c,f)=>v.jsxs("span",{className:av.text,children:[c,v.jsx("br",{})]},f))]})},nT=({text:n,commands:l,sources:r,onLinkClick:o})=>v.jsxs("div",{className:Ne.bubbleContent,children:[v.jsx(tT,{text:n,commands:l}),v.jsx(om,{sources:r,onLinkClick:o})]}),aT=q.forwardRef(({message:n,commands:l,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:c,onReaction:f,onButtonClick:d,onLinkClick:m},h)=>{const p=lT(n._id,n,l,d,m),y=b=>{f(n._id,b)};return n.sender.type===Rl.GUEST?v.jsx(Z6,{ref:h,isFirstMessageBySender:o,isLastMessageBySender:c,children:p}):v.jsx(jy,{ref:h,message:n,isAnimated:!1,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:c,onReaction:y,children:p})}),lT=(n,l,r,o,c)=>{switch(l.type){case Mi.TEXT:{const f=l;return v.jsx(nT,{text:f.text,commands:r,sources:l.sources||[],onLinkClick:c})}case Mi.DETAIL:{const f=l;return v.jsx(J6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:l.sources||[],onButtonClick:o,onLinkClick:c})}case Mi.MARKDOWN:{const f=l;return v.jsx(P6,{actionId:n,markdown:f.markdown,sources:f.sources||[],onLinkClick:c})}}},rT=(n,l)=>n.message._id===l.message._id&&n.message.reaction===l.message.reaction&&n.isLastMessage===l.isLastMessage&&n.isFirstMessageBySender===l.isFirstMessageBySender&&n.isLastMessageBySender===l.isLastMessageBySender,iT=Mv.memo(aT,rT),oT="_ticontainer_xg0dn_1",sT="_tiblock_xg0dn_5",cT="_tidot_xg0dn_12",Lo={ticontainer:oT,tiblock:sT,tidot:cT},uT=({isTyping:n=!1})=>v.jsx("div",{className:Lo.ticontainer,children:v.jsx("div",{className:Lo.tiblock,children:n?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:se(Lo.tidot,"chat__typingIndicator"),"aria-hidden":"true"}),v.jsx("div",{className:se(Lo.tidot,"chat__typingIndicator"),"aria-hidden":"true"}),v.jsx("div",{className:se(Lo.tidot,"chat__typingIndicator"),"aria-hidden":"true"})]}):null})}),fT=Object.assign({_id:"typing-indicator"},new nu("",new WA)),dT=({messages:n,isBotTyping:l,commands:r,onTranscriptItemReaction:o,onButtonClick:c,onLinkClick:f})=>{const d=Rt(),m=q.useRef(0),h=q.useRef(!0),p=q.useRef(null),y=q.useRef(null),b=q.useRef(null),A=Bt(C=>C.settings.enableGeneralConditions);q.useLayoutEffect(()=>{if(n.length&&p.current&&(m.current<n.length||l)){if(y.current){const C=y.current.offsetTop;p.current.scrollTop=C}else if(b.current){const C=b.current.offsetTop;p.current.scrollTop=C}h.current&&(h.current=!1),m.current=n.length}},[n,h,l]);let S;const O=n.length;return v.jsxs("div",{ref:p,className:se(L1.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer","aria-label":d("conversation.label"),children:[A&&v.jsx(qE,{}),v.jsxs("ul",{className:L1.messages,role:"list",children:[n.map((C,E)=>{const x=hT(C,S),M=mT(C,E,n,l);S=C.sender.type;const L=E+1===O,z=C._id||`added-${E}`;return v.jsx(iT,{ref:L?b:null,message:C,commands:r,isLastMessage:L,isFirstMessageBySender:x,isLastMessageBySender:M,onButtonClick:c,onLinkClick:f,onReaction:o},z)}),l&&v.jsx(jy,{ref:y,message:fT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:S!==Rl.BOT,isLastMessageBySender:!0,children:v.jsx(uT,{isTyping:!0})},"last")]})]})},hT=(n,l)=>!l||l!==n.sender.type,mT=(n,l,r,o)=>{const c=n.sender.type,f=r.length;return l+1===f?!(c===Rl.BOT&&o):c!==r.at(l+1)?.sender.type},pT="_bottomSheet_jp8dl_1",gT="_bottomSheetOpen_jp8dl_15",vT="_bottomSheetClose_jp8dl_20",Ol={bottomSheet:pT,bottomSheetOpen:gT,bottomSheetClose:vT},yT="_container_xc2nx_1",lv={container:yT},bT=({contentUrl:n})=>{const l=Bt(f=>f.connection.sessionId),[r,o]=q.useState(!1);q.useEffect(()=>{o(f=>f||!!n)},[n]);const c=q.useMemo(()=>{if(n&&l){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",l),f.toString()}else return},[n,l]);return v.jsx("div",{className:se(lv.container,Ol.bottomSheet,{[Ol.bottomSheetOpen]:!!n,[Ol.bottomSheetClose]:r&&!n}),children:c&&v.jsx("iframe",{title:"Drawer",id:"form-drawer",src:c,className:lv.iframe})})},_T="_container_1634s_1",AT={container:_T},CT=({title:n,href:l,children:r})=>v.jsx("a",{href:l,title:n,target:"_blank",rel:"noopener noreferrer",children:r}),ST=()=>{const l=Rt()("powered-by");return l&&l.length?v.jsx("div",{className:se(AT.container,"chat__poweredBy"),children:v.jsx(xl,{options:{overrides:{a:CT}},children:l})}):null},ET=(n,l)=>{const r=new Map;let o=0;return n.replace(/^#{1,6}\s+/gm,"").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/\[\^([^\]]+)\]/g,(c,f)=>(r.has(f)||r.set(f,++o),`(${l} ${r.get(f)})`)).replace(/`([^`]+)`/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/^>\s+/gm,"").replace(/^(-{3,}|_{3,}|\*{3,})$/gm,"").replace(/^[\s]*[-*+]\s+/gm,"").replace(/^[\s]*\d+\.\s+/gm,"").replace(/\n{3,}/g,`
62
-
63
- `).trim()},TT=({messages:n,isBotTyping:l})=>{const r=q.useRef(""),o=Rt(),c=o("bot-bubble.footnote"),f=h=>{switch(h.type){case"TEXT":return h.text||"";case"MARKDOWN":{const p=h.markdown||"";return ET(p,c)}case"DETAIL":return h.text||h.title||"";default:return""}},m=(()=>{if(l)return o("chatbot.typing")??"Chatbot is typing";const h=[...n].reverse().find(p=>p.sender.type===Fo.BOT);return h?f(h):""})();return q.useEffect(()=>{m!==r.current&&(r.current=m)},[m]),v.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:m})},Yy=({className:n,children:l,...r})=>v.jsx(yu,{className:se(Jo.buttonDefault,n),type:"button",...r,children:l}),$c=({className:n,children:l,...r})=>v.jsx(yu,{className:se(Jo.buttonPrimary,n),...r,children:l}),xT="_container_h23mk_1",OT="_formContainer_h23mk_17",wT="_emailInput_h23mk_22",RT="_description_h23mk_52",NT="_actions_h23mk_57",MT="_validationError_h23mk_67",DT="_submitted_h23mk_74",qr={container:xT,formContainer:OT,emailInput:wT,description:RT,actions:NT,validationError:MT,submitted:DT},LT=({visible:n,onEmailExport:l,onClose:r})=>{const o=Rt(),[c,f]=q.useState(void 0),[d,m]=q.useState(!1),[h,p]=q.useState(void 0),y=q.useRef(null);q.useEffect(()=>{n?(y.current?.focus(),m(!1),f(n)):c===!0&&f(!1)},[n,c]);const b=S=>{S.preventDefault(),h&&h.length>0&&(l(h),m(!0),setTimeout(r,3*1e3))},A=S=>{const O=S.target.value.trim(),C=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(O);p(C?O:"")};return v.jsxs("div",{className:se(qr.container,Ol.bottomSheet,{[Ol.bottomSheetOpen]:c===!0,[Ol.bottomSheetClose]:c===!1}),children:[v.jsx("h2",{children:o("export-transcript.email.title")}),v.jsx(xl,{className:qr.description,children:o("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:b,className:qr.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:d,ref:y,type:"email",placeholder:o("export-transcript.email.placeholder"),className:qr.emailInput,onChange:A}),h?.length===0?v.jsx("div",{className:qr.validationError,children:o("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:qr.actions,children:[v.jsx(Yy,{onClick:r,children:o("export-transcript.email.cancel")}),v.jsx($c,{type:"submit",disabled:d||h===void 0||h.length===0,children:o("export-transcript.email.send")})]})]}),d&&v.jsx("div",{className:qr.submitted,children:o("export-transcript.email.success")})]})},zT="_inputContainer_fi5ao_1",kT={inputContainer:zT},BT="_blockUserInput_pot9c_1",jT={blockUserInput:BT},UT=({visible:n})=>{const l=Rt();return n?v.jsx("div",{className:se(jT.blockUserInput,"chat__blockUserInput"),children:l("block-user-input.title")}):null},HT="_commandsDropdown_fmklx_1",qT="_commands_fmklx_1",IT="_command_fmklx_1",GT="_commandActive_fmklx_49",bc={commandsDropdown:HT,commands:qT,command:IT,commandActive:GT},VT=(n,l,r,o,c)=>{q.useEffect(()=>{const f=d=>{if(n.length)switch(d.key){case"Enter":r(n[l]);break;case"ArrowUp":o(m=>m>0?m-1:n.length-1);break;case"ArrowDown":o(m=>m<n.length-1?m+1:0);break;case"Escape":c([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,l,r,o,c])},YT=({text:n,commands:l,onSelectCommand:r,onVisibilityChange:o})=>{const c=q.useRef(null),f=Rt(),[d,m]=q.useState([]),[h,p]=q.useState(rv(l)),[y,b]=q.useState(0),A=S=>r(`/${S}`);return im(c,()=>m([])),VT(d,y,A,b,m),q.useEffect(()=>{p(rv(l))},[l]),q.useEffect(()=>{const S=n.length||0;S===0||S>h||!n.startsWith("/")?m([]):m(l.filter(XT(n))),b(0)},[l,n,h]),q.useEffect(()=>{o(!!d.length)},[d,o]),d.length?v.jsx("div",{ref:c,className:bc.commandsDropdown,children:v.jsx("ul",{id:"command-list",className:bc.commands,role:"listbox",children:d.map((S,O)=>v.jsxs("li",{className:se([bc.command,y===O&&bc.commandActive]),role:"option",onClick:()=>A(S),onMouseOver:()=>b(O),children:[v.jsxs("h1",{children:["/",S]}),v.jsx("p",{children:f(`commands.${S}`)})]},S))})}):null},rv=n=>Math.max(...n.map(l=>l.length+1)),XT=n=>l=>{const r=`/${l}`;return r.startsWith(n)&&r.length>=n.length},FT="_callToActionContainer_d8izj_1",KT="_callToActionTitle_d8izj_23",JT="_rateOverlay_d8izj_30",ZT="_body_d8izj_52",WT="_footer_d8izj_60",PT="_actions_d8izj_75",QT="_bubbles_d8izj_89",$T="_stars_d8izj_191",e3="_starsSmall_d8izj_205",t3="_starsLarge_d8izj_211",n3="_star_d8izj_191",a3="_starReadonly_d8izj_225",l3="_starIcon_d8izj_235",r3="_starsDescriptionContainer_d8izj_253",i3="_starsDescription_d8izj_253",kn={callToActionContainer:FT,callToActionTitle:KT,rateOverlay:JT,body:ZT,footer:WT,actions:PT,bubbles:QT,stars:$T,starsSmall:e3,starsLarge:t3,star:n3,starReadonly:a3,starIcon:l3,starsDescriptionContainer:r3,starsDescription:i3},o3=({value:n,index:l,count:r,readonly:o,onHover:c,onClick:f})=>{const d=m=>{f&&m.key==="Enter"&&f()};return v.jsx("li",{className:se(kn.star,{[kn.starReadonly]:o},"chat__conversationRating__star"),children:v.jsx("div",{role:"radio","aria-checked":n>l?"true":"false","aria-posinset":l+1,"aria-setsize":r,tabIndex:0,onMouseOver:c,onKeyDown:d,onClick:f,children:v.jsx("span",{role:"img","aria-label":"Star",className:se(kn.starIcon),children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},iv=5,Xy=({value:n,size:l,readonly:r=!1,onChange:o})=>{const[c,f]=q.useState(void 0),d=()=>{f(void 0)},m=p=>()=>{if(!r){const y=p+1;f(y)}},h=p=>()=>{o&&!r&&(o(p===0&&n===1?0:p+1),f(void 0))};return v.jsx("ul",{tabIndex:0,role:"radiogroup",className:se(kn.stars,{[kn.starsSmall]:l==="small",[kn.starsLarge]:l==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:l==="small",chat__conversationRating__stars__large:l==="large"}),onMouseOut:d,children:Array(iv).fill(0).map((p,y)=>v.jsx(o3,{value:c===void 0?n:c,index:y,count:iv,readonly:r,onHover:m(y),onClick:h(y)},y))})},s3=({visible:n,onRate:l})=>{const r=Rt();return n?v.jsxs("div",{className:se(kn.callToActionContainer,"chat__conversationRating__callToAction"),children:[v.jsx("div",{className:se(kn.callToActionTitle,"chat__conversationRating__callToAction__title"),children:r("conversation-rating.call-to-action.title")}),v.jsx(Xy,{value:0,size:"small",onChange:l})]}):null},Fd=({isFirstMessageBySender:n,isLastMessageBySender:l,children:r})=>v.jsxs("div",{className:se(Ne.message,Ne.messageBot,n&&Ne.messageBotFirst,l&&Ne.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:se(Ne.avatar,Ne.botAvatar),src:"bot.svg",alt:"Bot"}),v.jsx("div",{className:se(Ne.bubble,Ne.bubbleLeft,"chat__bubble","chat__botBubble"),children:v.jsx("div",{className:se(Ne.leftText,Ne.bubbleContent),children:r})})]}),c3=({children:n})=>v.jsx("div",{className:se(Ne.message,Ne.messageGuest,Ne.messageGuestFirst,Ne.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:v.jsx("div",{className:se(Ne.bubble,Ne.bubbleRight,"chat__bubble","chat__guestBubble"),children:v.jsx("div",{className:se(Ne.rightText,Ne.bubbleContent),children:n})})}),u3=()=>{const n=Rt(),l=Dl(),r=Bt(E=>E.chat.conversationRating),[o,c]=q.useState(r.rating?.value||0),[f,d]=q.useState(void 0),[m,h]=q.useState(void 0),[p,y]=q.useState({submitted:!1,feedback:""}),b=q.useRef(null),[A,S]=q.useState(!1);q.useEffect(()=>{r.opener?(y({submitted:!1,feedback:""}),h(!0)):m===!0&&h(!1)},[r.opener,m]),q.useEffect(()=>{c(r.rating?.value||0)},[r.rating?.value,r.opener]),q.useEffect(()=>{b.current&&(b.current.value=r.rating?.feedback||"")},[r.rating?.feedback]),q.useEffect(()=>{const E=o>0?n(`conversation-rating.overlay.bot-message.rate-feedback.value-${o}`):void 0;d(E?.length?E:void 0)},[o,n]),q.useEffect(()=>{p.submitted?setTimeout(()=>S(!0),p.feedback.length?500:0):S(!1)},[p]);const O=E=>{E.preventDefault();const x=b.current?.value?.trim()||"";l(sC(o,x)),y({submitted:!0,feedback:x})},C=()=>{r.opener==="CLOSE_CHAT"?l(Ay()):r.opener==="RESTART_CHAT"?l(Wo()):l(dS())};return v.jsx("div",{className:se(kn.rateOverlay,Ol.bottomSheet,"chat__conversationRating__overlay",{[Ol.bottomSheetOpen]:m===!0,[Ol.bottomSheetClose]:m===!1}),children:v.jsxs("form",{onSubmit:O,children:[v.jsxs("div",{className:se(kn.body,"chat__conversationRating__overlay__body"),children:[v.jsx("div",{}),v.jsx("div",{className:se(kn.bubbles),children:r.opener&&v.jsxs(v.Fragment,{children:[v.jsxs(Fd,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[v.jsx("h2",{children:n("conversation-rating.overlay.title")}),v.jsxs("div",{className:se(kn.starsDescriptionContainer),children:[v.jsx(Xy,{value:o,size:"large",readonly:p.submitted,onChange:c}),v.jsxs("div",{className:se(kn.starsDescription),children:[v.jsx("div",{children:n("conversation-rating.overlay.star.very-bad")}),v.jsx("div",{children:n("conversation-rating.overlay.star.very-good")})]})]})]}),f&&v.jsx(Fd,{isFirstMessageBySender:!1,isLastMessageBySender:!A||!!p.feedback.length,children:v.jsx("div",{children:f})}),!!p.feedback.length&&v.jsx(c3,{children:p.feedback}),A&&v.jsx(Fd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:v.jsx("div",{children:n("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),v.jsxs("div",{className:se(kn.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&v.jsx("input",{ref:b,defaultValue:r.rating?.feedback||"",placeholder:n("conversation-rating.overlay.guest-feedback.input-placeholder")}),v.jsxs("div",{className:se(kn.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?v.jsx($c,{type:"button",disabled:!o,onClick:C,children:r.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):r.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.back-to-chat")},"close-button"):v.jsx($c,{type:"submit",disabled:!o,children:n("conversation-rating.overlay.action.submit")},"submit-button"),r.opener!=="CHAT"&&!p.submitted&&v.jsx(Yy,{onClick:C,children:r.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):r.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.cancel")})]})]})]})})},f3=({numberOfMessagesFromGuest:n})=>{const l=Dl(),r=Bt(f=>f.chat.conversationRating),o=f=>{l(Xc("CHAT",f))},c=!r.rating?.value&&n>=1;return r.enabled?v.jsxs(v.Fragment,{children:[v.jsx(s3,{visible:c,onRate:o}),v.jsx(u3,{})]}):null},d3=q.memo(f3),h3="_inputWrapper_18j9q_1",m3="_withOpenCommands_18j9q_13",p3="_actions_18j9q_18",g3="_messageInputWrapper_18j9q_53",v3="_messageInput_18j9q_53",y3="_buttons_18j9q_78",b3="_button_18j9q_78",Ir={inputWrapper:h3,withOpenCommands:m3,actions:p3,messageInputWrapper:g3,messageInput:v3,buttons:y3,button:b3},_3="_audioRecorder_g845f_1",A3="_audioButton_g845f_6",C3="_recorderIcon_g845f_37",S3="_spinning_g845f_60",Gr={audioRecorder:_3,audioButton:A3,recorderIcon:C3,spinning:S3},ov=2048,eu=16e3;class E3 extends Mv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(l){super(l),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(l){this.mediaStream=l,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(l)}initRecording(l){const r=window.AudioContext||window.webkitAudioContext,o=new r;this.sampleRate=o.sampleRate,this.volume=o.createGain(),this.audioInput=o.createMediaStreamSource(l),this.audioInput.connect(this.volume),this.recorder=o.createScriptProcessor(ov,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(o.destination)}processRecordingInput(l){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const r=l.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(r)),this.recordingLength+=ov}}handleClickSubmitAudio(){const l=x3(this.leftchannel,this.recordingLength),r=O3(l,this.sampleRate||0),o=T3(r);this.props.onAudioRecorded(o),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(l=>{l.stop()})}render(){return v.jsxs("div",{className:Gr.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:se(Gr.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&v.jsxs("svg",{className:Gr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&v.jsxs("div",{className:Gr.audioRecorder,children:[v.jsx("button",{className:se(Gr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),v.jsx("div",{className:Gr.recorderIcon}),v.jsx("button",{className:se(Gr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const T3=n=>{const l=new ArrayBuffer(44+n.length*2),r=new DataView(l);_c(r,0,"RIFF"),r.setUint32(4,44+n.length*2,!0),_c(r,8,"WAVE"),_c(r,12,"fmt "),r.setUint32(16,16,!0),r.setUint16(20,1,!0),r.setUint16(22,1,!0),r.setUint32(24,eu,!0),r.setUint32(28,eu*4,!0),r.setUint16(32,4,!0),r.setUint16(34,16,!0),_c(r,36,"data"),r.setUint32(40,n.length*2,!0);const o=n.length;let c=44;const f=1;for(let d=0;d<o;d++)r.setInt16(c,n[d]*(32767*f),!0),c+=2;return new Blob([r],{type:"audio/wav"})},_c=(n,l,r)=>{for(let o=0;o<r.length;o++)n.setUint8(l+o,r.charCodeAt(o))},x3=(n,l)=>{const r=new Float32Array(l);let o=0;const c=n.length;for(let f=0;f<c;f++){const d=n[f];r.set(d,o),o+=d.length}return r},O3=(n,l)=>{if(eu===l)return n;const r=l/eu,o=Math.round(n.length/r),c=new Float32Array(o);let f=0,d=0;for(;f<c.length;){const m=Math.round((f+1)*r);let h=0,p=0;for(let y=d;y<m&&y<n.length;y++)h+=n[y],p++;c[f]=h/p,f++,d=m}return c},w3=({onClick:n})=>{const l=Rt();return v.jsxs("button",{onClick:n,type:"button","aria-label":l("message-input.actions.command.label"),children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:[v.jsx("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16",ry:"16",fill:"none",stroke:"currentColor","stroke-width":"16"}),v.jsx("line",{x1:"80",y1:"176",x2:"176",y2:"80",stroke:"currentColor","stroke-width":"16","stroke-linecap":"round"})]}),v.jsx("span",{children:l("message-input.actions.command.label")})]})},R3=({disabled:n,textInput:l,commandsVisible:r,hasCommands:o,onTextInput:c,onTextInputSubmit:f,onAudioRecorded:d})=>{const m=Rt(),h=q.useRef(null),p=q.useRef(0),{enableSpeechSupport:y}=Bt(x=>x.settings),b=x=>{x.style.height="";const{scrollHeight:M}=x,L=Math.max(p.current,Math.min(M,150));x.style.height=`${L}px`,x.style.overflowY=M>150?"auto":"hidden"};q.useEffect(()=>{const x=h.current;x&&(p.current===0&&(p.current=x.scrollHeight),b(x),x.focus())},[l]);const A=()=>{const x=h.current;x&&l.trim().length>=1&&f(l.trim())&&(x.value="",x.style.height="",x.focus())},S=x=>{x.preventDefault(),A()},O=x=>{const M=x.target.value;c(M),b(x.target)},C=x=>{x.code==="Enter"&&!x.shiftKey?(x.repeat||A(),x.preventDefault()):r&&(x.code==="ArrowUp"||x.code==="ArrowDown")&&x.preventDefault()},E=()=>{l.startsWith("/")?c(""):c("/")};return v.jsxs("form",{className:se(Ir.inputWrapper,r&&Ir.withOpenCommands,"chat__textInput"),onSubmit:S,children:[v.jsxs("div",{className:Ir.messageInputWrapper,children:[v.jsx("textarea",{id:"user_input",ref:h,className:Ir.messageInput,tabIndex:0,placeholder:m("message-input-placeholder"),value:l,onChange:O,onKeyDown:C,"aria-label":m("message-input-label"),"aria-controls":o?"command-list":void 0,"aria-haspopup":o?"listbox":void 0}),o&&v.jsx("div",{className:Ir.actions,children:v.jsx(w3,{onClick:E})})]}),v.jsx("div",{className:se(Ir.buttons,"chat__buttons"),children:l.length||!y||navigator.mediaDevices===void 0?v.jsx("button",{className:se(Ir.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:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):y&&navigator.mediaDevices!==void 0&&v.jsx(E3,{translate:m,onAudioRecorded:d})})]})},N3="_quickReplies_83npe_1",M3="_quickReply_83npe_9",sv={quickReplies:N3,quickReply:M3},D3=({quickReplies:n,onQuickReplyClick:l})=>n.length?v.jsx("div",{className:se(sv.quickReplies,"chat__quickReplies"),children:n.map(r=>v.jsx(yu,{tabIndex:0,className:se(sv.quickReply,"chat__button","chat__quickReply"),onClick:()=>l(r),children:r.label},r.label))}):null,cv=5e3,L3=1e3,z3=({isBotTyping:n,quickReplies:l,numberOfMessagesFromGuest:r,commands:o,onTextInput:c,onQuickReplyClick:f,onAudioRecorded:d})=>{const[m,h]=q.useState(""),[p,y]=q.useState(!1),[b,A]=q.useState(!1),S=q.useRef(0),O=q.useRef(0);q.useEffect(()=>{if(p&&!n){const x=S.current?Date.now()-S.current:0;x>cv?y(!1):setTimeout(()=>{y(!1)},cv-x)}},[p,n]),q.useEffect(()=>{p&&(S.current=Date.now())},[p]);const C=x=>{const M=Date.now()-O.current<L3;return b?!1:n||M?(y(!0),!1):(c(x),h(""),O.current=Date.now(),!0)},E=x=>{h(x+" ")};return v.jsxs("div",{className:se(kT.inputContainer),children:[v.jsx(D3,{quickReplies:l,onQuickReplyClick:f}),v.jsx(UT,{visible:p}),!p&&v.jsx(d3,{numberOfMessagesFromGuest:r}),!!o?.length&&v.jsx(YT,{text:m,commands:o,onSelectCommand:E,onVisibilityChange:A}),v.jsx(R3,{textInput:m,disabled:p,commandsVisible:b,hasCommands:!!o?.length,onTextInput:h,onTextInputSubmit:C,onAudioRecorded:d})]})},k3=({clientName:n,messages:l,quickReplies:r,isBotTyping:o,drawerContentUrl:c,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:m,onLinkClick:h,onAudioRecorded:p,onTranscriptExport:y,onTranscriptItemReaction:b})=>{const A=Dl(),S=Bt(z=>z.connection.connectionState),{enableTranscriptExportEmail:O,commands:C}=Bt(z=>z.settings),{showTranscriptMailOverlay:E,conversationRating:x}=Bt(z=>z.chat),M=l.filter(z=>z.sender.type===Fo.GUEST).length;q.useEffect(()=>{S===Xr.CONNECTED&&A(Sy(n))},[n,S,A]);const L=()=>{A(Cy())};return v.jsxs("div",{className:Vd.container,children:[v.jsx(TT,{messages:l,isBotTyping:o}),v.jsxs("div",{className:se([Vd.chatcontent,(E||x?.opener)&&Vd.accessabilityHidden]),children:[v.jsx(dT,{messages:l,isBotTyping:o,commands:C,onButtonClick:m,onLinkClick:h,onTranscriptItemReaction:b}),v.jsx(z3,{isBotTyping:o,quickReplies:o?[]:r,numberOfMessagesFromGuest:M,commands:C,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:p}),v.jsx(ST,{})]}),O&&v.jsx(LT,{visible:!!E,onEmailExport:y,onClose:L}),v.jsx(bT,{contentUrl:c})]})},B3=n=>{const{messages:l,quickReplies:r,isBotTyping:o,drawerContentUrl:c}=n.chat;return{messages:l,quickReplies:r,isBotTyping:o,drawerContentUrl:c}},j3=n=>({onRestartChat:()=>n(Wo()),onMessageFromUser:l=>n(Kv(l)),onAudioRecorded:l=>n(aC(l)),onActionFromUser:l=>n(l),onQuickReplyClick:l=>n(Fv(l)),onNluEvent:l=>n(Qv(l)),onButtonClick:l=>n(uC(l)),onLinkClick:l=>n($v(l)),onTranscriptExport:l=>n(rC(l)),onTranscriptItemReaction:(l,r)=>{n(eC(l,r?.type||null,r?.category,r?.comment))}}),U3=DA(B3,j3)(k3),Fy=()=>q.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),H3=n=>l=>{const r=l.key;(r==="ArrowDown"||r==="ArrowRight"||r==="Enter"||r===" "||r==="Space")&&(l.stopPropagation(),n())},q3=({onClick:n})=>{const l=Rt();return Fy()?v.jsx("button",{className:"tooltip--bottom-left","aria-label":l("header.close-chat"),"data-title":l("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:H3(n),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},I3="_header_3gvbz_1",G3="_logoContainer_3gvbz_14",V3="_logo_3gvbz_14",Y3="_actions_3gvbz_28",X3="_active_3gvbz_43",F3="_menuContainer_3gvbz_56",K3="_menu_3gvbz_56",J3="_divider_3gvbz_86",sr={header:I3,logoContainer:G3,logo:V3,actions:Y3,active:X3,menuContainer:F3,menu:K3,divider:J3},Z3=({icon:n})=>{switch(n){case"arrow-counter-clockwise":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})});case"mail":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return v.jsx("div",{})}},W3=q.forwardRef(({selected:n,item:l,onClick:r},o)=>{const c=Rt(),f=d=>{d.preventDefault(),r()};return v.jsx("li",{"aria-selected":n,role:"option",className:l.withDivider?sr.divider:void 0,children:v.jsxs("a",{ref:o,type:"button",role:"button",tabIndex:-1,onClick:f,children:[v.jsx(Z3,{icon:l.icon}),v.jsx("span",{children:c(`header.menu.${l.id}`)})]})})}),P3=(n,l)=>{const r=Fy(),{menuItems:o,enableStandaloneView:c,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=Bt(p=>p.settings),m=Bt(p=>p.chat.conversationRating.enabled);return q.useMemo(()=>{const p=[],y=o.filter(({visibility:b})=>n?b==="always"||b==="chat-only":b==="always"||b==="start-screen-only");if(n&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),r&&c&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),l&&f&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),l&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),l&&m&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&y.length)){const b=p.pop();b&&o.length&&p.push({...b,withDivider:!0})}return p.push(...y),p},[n,l,f,d,c,m,r,o])},Q3=({chatStarted:n,hasGuestMessages:l})=>{const r=Dl(),o=Rt(),{enabled:c,opener:f}=Bt(M=>M.chat.conversationRating),[d,m]=q.useState(!1),[h,p]=q.useState(-1),y=q.useRef(null),b=q.useRef(null),A=q.useRef([]),S=P3(n,l);q.useEffect(()=>{A.current[h]?.focus()},[h]);const O=q.useCallback(()=>{r(l&&c&&!f?Xc("RESTART_CHAT"):Wo()),m(!1),p(0)},[l,c,f,r]),C=q.useCallback(M=>{switch(M.type){case"restart-chat":{O();break}case"expand-chat-window":{const L=new URL(window.location.origin);L.pathname=window.location.pathname,L.search=window.location.search,L.hash=window.location.hash,window.open(L.href,"_blank");break}case"download-transcript":{r(iC());break}case"send-transcript":{r(Cy());break}case"rate-conversation":{r(Xc("MENU"));break}case"link":{r($v(M.url));break}case"action":{r(JSON.parse(JSON.stringify(M.action)));break}}m(!1)},[r,O,m]);q.useEffect(()=>{const M=L=>{if(d)switch(L.key){case"Enter":L.preventDefault(),C(S[h]);break;case"ArrowUp":p(z=>z>0?z-1:S.length-1);break;case"ArrowDown":p(z=>z<S.length-1?z+1:0);break;case"Escape":m(!1);break;case"Tab":h>-1&&m(!1);break}};return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[d,h,S,p,m,C]),q.useEffect(()=>{d||p(-1)},[d,h]),im(b,()=>m(!1));const E=()=>{m(M=>!M)},x=()=>{setTimeout(()=>{const M=document.activeElement;b.current&&!b.current.contains(M)&&m(!1)},0)};return S.length?v.jsxs("div",{className:se(sr.menuContainer),ref:b,children:[v.jsx("button",{ref:y,className:se(d&&sr.active,d?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":o("header.menu.title"),"data-title":o("header.menu.title"),onClick:E,onBlur:x,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),d&&v.jsx("nav",{className:sr.menu,"aria-label":o("header.menu.title"),children:v.jsx("ul",{tabIndex:0,children:S.map((M,L)=>v.jsx(W3,{ref:z=>{A.current[L]=z},selected:h===L,item:M,onClick:()=>C(M)},M.id))})})]}):null},uv=({className:n,chatStarted:l,...r})=>{const o=Dl(),c=Bt(m=>m.chat.conversationRating),f=Bt(m=>m.chat.messages.some(h=>h.sender.type===Rl.GUEST)),d=()=>{c.enabled&&!c.opener&&f?o(Xc("CLOSE_CHAT")):o(Ay())};return v.jsxs("div",{className:se(sr.header,n),...r,children:[v.jsx("div",{className:sr.logoContainer,children:v.jsx("div",{className:sr.logo})}),v.jsxs("div",{className:sr.actions,children:[v.jsx(Q3,{chatStarted:l,hasGuestMessages:f}),v.jsx(q3,{onClick:d})]})]})},$3="_chatwindow_rkbir_1",e8="_chatwindowWithAside_rkbir_21",fv={chatwindow:$3,chatwindowWithAside:e8},Ky=()=>{const[n,l]=q.useState(!1);return q.useEffect(()=>{const r=window.matchMedia("(max-width: 1023px)"),o=()=>l(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),n},t8="_sourceInfos_vei0l_1",n8="_waitForLoading_vei0l_24",a8="_loadingContent_vei0l_28",l8="_sourceHeader_vei0l_37",r8="_sourceHeaderIcon_vei0l_57",i8="_sourceContent_vei0l_61",o8="_openSourceButton_vei0l_69",s8="_sourceButtonLabel_vei0l_79",c8="_closeSourceInfosButton_vei0l_101",u8="_loadingSourceInfos_vei0l_125",f8="_loading_vei0l_28",d8="_loadingError_vei0l_139",h8="_highlightLoadingInfo_vei0l_155",m8="_highlightLoadingInfoInnerContainer_vei0l_169",p8="_highlightLoadingInfoContent_vei0l_178",g8="_highlightLoadingInfoCloseIcon_vei0l_198",v8="_highlightLoader_vei0l_203",y8="_highlightLoaderLoading_vei0l_210",yn={sourceInfos:t8,waitForLoading:n8,loadingContent:a8,sourceHeader:l8,sourceHeaderIcon:r8,sourceContent:i8,openSourceButton:o8,sourceButtonLabel:s8,closeSourceInfosButton:c8,loadingSourceInfos:u8,loading:f8,loadingError:d8,highlightLoadingInfo:h8,highlightLoadingInfoInnerContainer:m8,highlightLoadingInfoContent:p8,highlightLoadingInfoCloseIcon:g8,highlightLoader:v8,highlightLoaderLoading:y8},b8=({onClick:n})=>{const l=Rt();return v.jsx("button",{className:se(yn.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":l("source-infos.close"),"data-title":l("source-infos.close"),tabIndex:0,onClick:n,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},_8=q.forwardRef(({sourceInfos:n,onClose:l,...r},o)=>v.jsxs("div",{className:yn.sourceHeader,...r,ref:o,children:[v.jsx("div",{children:n?v.jsx("p",{id:"source-info-title",children:n.title}):v.jsx("p",{children:" "})}),v.jsx(b8,{onClick:l})]})),A8=({loading:n})=>v.jsx("div",{className:yn.highlightLoader,children:n&&v.jsx("div",{className:yn.highlightLoaderLoading})});const{entries:Jy,setPrototypeOf:dv,isFrozen:C8,getPrototypeOf:S8,getOwnPropertyDescriptor:E8}=Object;let{freeze:In,seal:La,create:wc}=Object,{apply:Ah,construct:Ch}=typeof Reflect<"u"&&Reflect;In||(In=function(l){return l});La||(La=function(l){return l});Ah||(Ah=function(l,r){for(var o=arguments.length,c=new Array(o>2?o-2:0),f=2;f<o;f++)c[f-2]=arguments[f];return l.apply(r,c)});Ch||(Ch=function(l){for(var r=arguments.length,o=new Array(r>1?r-1:0),c=1;c<r;c++)o[c-1]=arguments[c];return new l(...o)});const Ac=Gn(Array.prototype.forEach),T8=Gn(Array.prototype.lastIndexOf),hv=Gn(Array.prototype.pop),zo=Gn(Array.prototype.push),x8=Gn(Array.prototype.splice),Rc=Gn(String.prototype.toLowerCase),Kd=Gn(String.prototype.toString),Jd=Gn(String.prototype.match),ko=Gn(String.prototype.replace),O8=Gn(String.prototype.indexOf),w8=Gn(String.prototype.trim),ha=Gn(Object.prototype.hasOwnProperty),zn=Gn(RegExp.prototype.test),Bo=R8(TypeError);function Gn(n){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var r=arguments.length,o=new Array(r>1?r-1:0),c=1;c<r;c++)o[c-1]=arguments[c];return Ah(n,l,o)}}function R8(n){return function(){for(var l=arguments.length,r=new Array(l),o=0;o<l;o++)r[o]=arguments[o];return Ch(n,r)}}function Ie(n,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rc;dv&&dv(n,null);let o=l.length;for(;o--;){let c=l[o];if(typeof c=="string"){const f=r(c);f!==c&&(C8(l)||(l[o]=f),c=f)}n[c]=!0}return n}function N8(n){for(let l=0;l<n.length;l++)ha(n,l)||(n[l]=null);return n}function Wa(n){const l=wc(null);for(const[r,o]of Jy(n))ha(n,r)&&(Array.isArray(o)?l[r]=N8(o):o&&typeof o=="object"&&o.constructor===Object?l[r]=Wa(o):l[r]=o);return l}function jo(n,l){for(;n!==null;){const o=E8(n,l);if(o){if(o.get)return Gn(o.get);if(typeof o.value=="function")return Gn(o.value)}n=S8(n)}function r(){return null}return r}const mv=In(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Zd=In(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Wd=In(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M8=In(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Pd=In(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D8=In(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pv=In(["#text"]),gv=In(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qd=In(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),vv=In(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cc=In(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L8=La(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z8=La(/<%[\w\W]*|[\w\W]*%>/gm),k8=La(/\$\{[\w\W]*/gm),B8=La(/^data-[\-\w.\u00B7-\uFFFF]+$/),j8=La(/^aria-[\-\w]+$/),Zy=La(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U8=La(/^(?:\w+script|data):/i),H8=La(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wy=La(/^html$/i),q8=La(/^[a-z][.\w]*(-[.\w]+)+$/i);var yv=Object.freeze({__proto__:null,ARIA_ATTR:j8,ATTR_WHITESPACE:H8,CUSTOM_ELEMENT:q8,DATA_ATTR:B8,DOCTYPE_NAME:Wy,ERB_EXPR:z8,IS_ALLOWED_URI:Zy,IS_SCRIPT_OR_DATA:U8,MUSTACHE_EXPR:L8,TMPLIT_EXPR:k8});const Uo={element:1,text:3,progressingInstruction:7,comment:8,document:9},I8=function(){return typeof window>"u"?null:window},G8=function(l,r){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let o=null;const c="data-tt-policy-suffix";r&&r.hasAttribute(c)&&(o=r.getAttribute(c));const f="dompurify"+(o?"#"+o:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},bv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Py(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I8();const l=be=>Py(be);if(l.version="3.3.3",l.removed=[],!n||!n.document||n.document.nodeType!==Uo.document||!n.Element)return l.isSupported=!1,l;let{document:r}=n;const o=r,c=o.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:m,Element:h,NodeFilter:p,NamedNodeMap:y=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:b,DOMParser:A,trustedTypes:S}=n,O=h.prototype,C=jo(O,"cloneNode"),E=jo(O,"remove"),x=jo(O,"nextSibling"),M=jo(O,"childNodes"),L=jo(O,"parentNode");if(typeof d=="function"){const be=r.createElement("template");be.content&&be.content.ownerDocument&&(r=be.content.ownerDocument)}let z,H="";const{implementation:B,createNodeIterator:X,createDocumentFragment:Z,getElementsByTagName:re}=r,{importNode:$}=o;let ne=bv();l.isSupported=typeof Jy=="function"&&typeof L=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ie,ERB_EXPR:he,TMPLIT_EXPR:pe,DATA_ATTR:ce,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:ae}=yv;let{IS_ALLOWED_URI:_e}=yv,T=null;const V=Ie({},[...mv,...Zd,...Wd,...Pd,...pv]);let Y=null;const oe=Ie({},[...gv,...Qd,...vv,...Cc]);let K=Object.seal(wc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fe=null,Se=null;const Ee=Object.seal(wc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let De=!0,Be=!0,ut=!1,de=!0,ee=!1,ve=!0,Ye=!1,Tt=!1,ht=!1,qe=!1,_t=!1,At=!1,Oe=!0,je=!1;const zt="user-content-";let Ct=!0,hn=!1,Nn={},xt=null;const Kt=Ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ta=null;const xn=Ie({},["audio","video","img","source","image","track"]);let mn=null;const Mn=Ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),on="http://www.w3.org/1998/Math/MathML",mt="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Ot=Xe,na=!1,wt=null;const Vn=Ie({},[on,mt,Xe],Kd);let sn=Ie({},["mi","mo","mn","ms","mtext"]),Dn=Ie({},["annotation-xml"]);const Yn=Ie({},["title","style","font","a","script"]);let pn=null;const va=["application/xhtml+xml","text/html"],tl="text/html";let jt=null,ya=null;const gr=r.createElement("form"),za=function(N){return N instanceof RegExp||N instanceof Function},nl=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ya&&ya===N)){if((!N||typeof N!="object")&&(N={}),N=Wa(N),pn=va.indexOf(N.PARSER_MEDIA_TYPE)===-1?tl:N.PARSER_MEDIA_TYPE,jt=pn==="application/xhtml+xml"?Kd:Rc,T=ha(N,"ALLOWED_TAGS")?Ie({},N.ALLOWED_TAGS,jt):V,Y=ha(N,"ALLOWED_ATTR")?Ie({},N.ALLOWED_ATTR,jt):oe,wt=ha(N,"ALLOWED_NAMESPACES")?Ie({},N.ALLOWED_NAMESPACES,Kd):Vn,mn=ha(N,"ADD_URI_SAFE_ATTR")?Ie(Wa(Mn),N.ADD_URI_SAFE_ATTR,jt):Mn,ta=ha(N,"ADD_DATA_URI_TAGS")?Ie(Wa(xn),N.ADD_DATA_URI_TAGS,jt):xn,xt=ha(N,"FORBID_CONTENTS")?Ie({},N.FORBID_CONTENTS,jt):Kt,fe=ha(N,"FORBID_TAGS")?Ie({},N.FORBID_TAGS,jt):Wa({}),Se=ha(N,"FORBID_ATTR")?Ie({},N.FORBID_ATTR,jt):Wa({}),Nn=ha(N,"USE_PROFILES")?N.USE_PROFILES:!1,De=N.ALLOW_ARIA_ATTR!==!1,Be=N.ALLOW_DATA_ATTR!==!1,ut=N.ALLOW_UNKNOWN_PROTOCOLS||!1,de=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ee=N.SAFE_FOR_TEMPLATES||!1,ve=N.SAFE_FOR_XML!==!1,Ye=N.WHOLE_DOCUMENT||!1,qe=N.RETURN_DOM||!1,_t=N.RETURN_DOM_FRAGMENT||!1,At=N.RETURN_TRUSTED_TYPE||!1,ht=N.FORCE_BODY||!1,Oe=N.SANITIZE_DOM!==!1,je=N.SANITIZE_NAMED_PROPS||!1,Ct=N.KEEP_CONTENT!==!1,hn=N.IN_PLACE||!1,_e=N.ALLOWED_URI_REGEXP||Zy,Ot=N.NAMESPACE||Xe,sn=N.MATHML_TEXT_INTEGRATION_POINTS||sn,Dn=N.HTML_INTEGRATION_POINTS||Dn,K=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&za(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&za(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ee&&(Be=!1),_t&&(qe=!0),Nn&&(T=Ie({},pv),Y=wc(null),Nn.html===!0&&(Ie(T,mv),Ie(Y,gv)),Nn.svg===!0&&(Ie(T,Zd),Ie(Y,Qd),Ie(Y,Cc)),Nn.svgFilters===!0&&(Ie(T,Wd),Ie(Y,Qd),Ie(Y,Cc)),Nn.mathMl===!0&&(Ie(T,Pd),Ie(Y,vv),Ie(Y,Cc))),ha(N,"ADD_TAGS")||(Ee.tagCheck=null),ha(N,"ADD_ATTR")||(Ee.attributeCheck=null),N.ADD_TAGS&&(typeof N.ADD_TAGS=="function"?Ee.tagCheck=N.ADD_TAGS:(T===V&&(T=Wa(T)),Ie(T,N.ADD_TAGS,jt))),N.ADD_ATTR&&(typeof N.ADD_ATTR=="function"?Ee.attributeCheck=N.ADD_ATTR:(Y===oe&&(Y=Wa(Y)),Ie(Y,N.ADD_ATTR,jt))),N.ADD_URI_SAFE_ATTR&&Ie(mn,N.ADD_URI_SAFE_ATTR,jt),N.FORBID_CONTENTS&&(xt===Kt&&(xt=Wa(xt)),Ie(xt,N.FORBID_CONTENTS,jt)),N.ADD_FORBID_CONTENTS&&(xt===Kt&&(xt=Wa(xt)),Ie(xt,N.ADD_FORBID_CONTENTS,jt)),Ct&&(T["#text"]=!0),Ye&&Ie(T,["html","head","body"]),T.table&&(Ie(T,["tbody"]),delete fe.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');z=N.TRUSTED_TYPES_POLICY,H=z.createHTML("")}else z===void 0&&(z=G8(S,c)),z!==null&&typeof H=="string"&&(H=z.createHTML(""));In&&In(N),ya=N}},vr=Ie({},[...Zd,...Wd,...M8]),yr=Ie({},[...Pd,...D8]),Jr=function(N){let te=L(N);(!te||!te.tagName)&&(te={namespaceURI:Ot,tagName:"template"});const ge=Rc(N.tagName),lt=Rc(te.tagName);return wt[N.namespaceURI]?N.namespaceURI===mt?te.namespaceURI===Xe?ge==="svg":te.namespaceURI===on?ge==="svg"&&(lt==="annotation-xml"||sn[lt]):!!vr[ge]:N.namespaceURI===on?te.namespaceURI===Xe?ge==="math":te.namespaceURI===mt?ge==="math"&&Dn[lt]:!!yr[ge]:N.namespaceURI===Xe?te.namespaceURI===mt&&!Dn[lt]||te.namespaceURI===on&&!sn[lt]?!1:!yr[ge]&&(Yn[ge]||!vr[ge]):!!(pn==="application/xhtml+xml"&&wt[N.namespaceURI]):!1},pt=function(N){zo(l.removed,{element:N});try{L(N).removeChild(N)}catch{E(N)}},Xn=function(N,te){try{zo(l.removed,{attribute:te.getAttributeNode(N),from:te})}catch{zo(l.removed,{attribute:null,from:te})}if(te.removeAttribute(N),N==="is")if(qe||_t)try{pt(te)}catch{}else try{te.setAttribute(N,"")}catch{}},Xa=function(N){let te=null,ge=null;if(ht)N="<remove></remove>"+N;else{const we=Jd(N,/^[\r\n\t ]+/);ge=we&&we[0]}pn==="application/xhtml+xml"&&Ot===Xe&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const lt=z?z.createHTML(N):N;if(Ot===Xe)try{te=new A().parseFromString(lt,pn)}catch{}if(!te||!te.documentElement){te=B.createDocument(Ot,"template",null);try{te.documentElement.innerHTML=na?H:lt}catch{}}const gt=te.body||te.documentElement;return N&&ge&&gt.insertBefore(r.createTextNode(ge),gt.childNodes[0]||null),Ot===Xe?re.call(te,Ye?"html":"body")[0]:Ye?te.documentElement:gt},al=function(N){return X.call(N.ownerDocument||N,N,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},bn=function(N){return N instanceof b&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof y)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Gt=function(N){return typeof m=="function"&&N instanceof m};function St(be,N,te){Ac(be,ge=>{ge.call(l,N,te,ya)})}const aa=function(N){let te=null;if(St(ne.beforeSanitizeElements,N,null),bn(N))return pt(N),!0;const ge=jt(N.nodeName);if(St(ne.uponSanitizeElement,N,{tagName:ge,allowedTags:T}),ve&&N.hasChildNodes()&&!Gt(N.firstElementChild)&&zn(/<[/\w!]/g,N.innerHTML)&&zn(/<[/\w!]/g,N.textContent)||N.nodeType===Uo.progressingInstruction||ve&&N.nodeType===Uo.comment&&zn(/<[/\w]/g,N.data))return pt(N),!0;if(!(Ee.tagCheck instanceof Function&&Ee.tagCheck(ge))&&(!T[ge]||fe[ge])){if(!fe[ge]&&Vt(ge)&&(K.tagNameCheck instanceof RegExp&&zn(K.tagNameCheck,ge)||K.tagNameCheck instanceof Function&&K.tagNameCheck(ge)))return!1;if(Ct&&!xt[ge]){const lt=L(N)||N.parentNode,gt=M(N)||N.childNodes;if(gt&&lt){const we=gt.length;for(let cn=we-1;cn>=0;--cn){const Fn=C(gt[cn],!0);Fn.__removalCount=(N.__removalCount||0)+1,lt.insertBefore(Fn,x(N))}}}return pt(N),!0}return N instanceof h&&!Jr(N)||(ge==="noscript"||ge==="noembed"||ge==="noframes")&&zn(/<\/no(script|embed|frames)/i,N.innerHTML)?(pt(N),!0):(ee&&N.nodeType===Uo.text&&(te=N.textContent,Ac([ie,he,pe],lt=>{te=ko(te,lt," ")}),N.textContent!==te&&(zo(l.removed,{element:N.cloneNode()}),N.textContent=te)),St(ne.afterSanitizeElements,N,null),!1)},ll=function(N,te,ge){if(Se[te]||Oe&&(te==="id"||te==="name")&&(ge in r||ge in gr))return!1;if(!(Be&&!Se[te]&&zn(ce,te))){if(!(De&&zn(R,te))){if(!(Ee.attributeCheck instanceof Function&&Ee.attributeCheck(te,N))){if(!Y[te]||Se[te]){if(!(Vt(N)&&(K.tagNameCheck instanceof RegExp&&zn(K.tagNameCheck,N)||K.tagNameCheck instanceof Function&&K.tagNameCheck(N))&&(K.attributeNameCheck instanceof RegExp&&zn(K.attributeNameCheck,te)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(te,N))||te==="is"&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&&zn(K.tagNameCheck,ge)||K.tagNameCheck instanceof Function&&K.tagNameCheck(ge))))return!1}else if(!mn[te]){if(!zn(_e,ko(ge,le,""))){if(!((te==="src"||te==="xlink:href"||te==="href")&&N!=="script"&&O8(ge,"data:")===0&&ta[N])){if(!(ut&&!zn(W,ko(ge,le,"")))){if(ge)return!1}}}}}}}return!0},Vt=function(N){return N!=="annotation-xml"&&Jd(N,ae)},la=function(N){St(ne.beforeSanitizeAttributes,N,null);const{attributes:te}=N;if(!te||bn(N))return;const ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let lt=te.length;for(;lt--;){const gt=te[lt],{name:we,namespaceURI:cn,value:Fn}=gt,On=jt(we),ba=Fn;let Jt=we==="value"?ba:w8(ba);if(ge.attrName=On,ge.attrValue=Jt,ge.keepAttr=!0,ge.forceKeepAttr=void 0,St(ne.uponSanitizeAttribute,N,ge),Jt=ge.attrValue,je&&(On==="id"||On==="name")&&(Xn(we,N),Jt=zt+Jt),ve&&zn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Jt)){Xn(we,N);continue}if(On==="attributename"&&Jd(Jt,"href")){Xn(we,N);continue}if(ge.forceKeepAttr)continue;if(!ge.keepAttr){Xn(we,N);continue}if(!de&&zn(/\/>/i,Jt)){Xn(we,N);continue}ee&&Ac([ie,he,pe],_r=>{Jt=ko(Jt,_r," ")});const br=jt(N.nodeName);if(!ll(br,On,Jt)){Xn(we,N);continue}if(z&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!cn)switch(S.getAttributeType(br,On)){case"TrustedHTML":{Jt=z.createHTML(Jt);break}case"TrustedScriptURL":{Jt=z.createScriptURL(Jt);break}}if(Jt!==ba)try{cn?N.setAttributeNS(cn,we,Jt):N.setAttribute(we,Jt),bn(N)?pt(N):hv(l.removed)}catch{Xn(we,N)}}St(ne.afterSanitizeAttributes,N,null)},Ll=function be(N){let te=null;const ge=al(N);for(St(ne.beforeSanitizeShadowDOM,N,null);te=ge.nextNode();)St(ne.uponSanitizeShadowNode,te,null),aa(te),la(te),te.content instanceof f&&be(te.content);St(ne.afterSanitizeShadowDOM,N,null)};return l.sanitize=function(be){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=null,ge=null,lt=null,gt=null;if(na=!be,na&&(be="<!-->"),typeof be!="string"&&!Gt(be))if(typeof be.toString=="function"){if(be=be.toString(),typeof be!="string")throw Bo("dirty is not a string, aborting")}else throw Bo("toString is not a function");if(!l.isSupported)return be;if(Tt||nl(N),l.removed=[],typeof be=="string"&&(hn=!1),hn){if(be.nodeName){const Fn=jt(be.nodeName);if(!T[Fn]||fe[Fn])throw Bo("root node is forbidden and cannot be sanitized in-place")}}else if(be instanceof m)te=Xa("<!---->"),ge=te.ownerDocument.importNode(be,!0),ge.nodeType===Uo.element&&ge.nodeName==="BODY"||ge.nodeName==="HTML"?te=ge:te.appendChild(ge);else{if(!qe&&!ee&&!Ye&&be.indexOf("<")===-1)return z&&At?z.createHTML(be):be;if(te=Xa(be),!te)return qe?null:At?H:""}te&&ht&&pt(te.firstChild);const we=al(hn?be:te);for(;lt=we.nextNode();)aa(lt),la(lt),lt.content instanceof f&&Ll(lt.content);if(hn)return be;if(qe){if(_t)for(gt=Z.call(te.ownerDocument);te.firstChild;)gt.appendChild(te.firstChild);else gt=te;return(Y.shadowroot||Y.shadowrootmode)&&(gt=$.call(o,gt,!0)),gt}let cn=Ye?te.outerHTML:te.innerHTML;return Ye&&T["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&zn(Wy,te.ownerDocument.doctype.name)&&(cn="<!DOCTYPE "+te.ownerDocument.doctype.name+`>
64
- `+cn),ee&&Ac([ie,he,pe],Fn=>{cn=ko(cn,Fn," ")}),z&&At?z.createHTML(cn):cn},l.setConfig=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nl(be),Tt=!0},l.clearConfig=function(){ya=null,Tt=!1},l.isValidAttribute=function(be,N,te){ya||nl({});const ge=jt(be),lt=jt(N);return ll(ge,lt,te)},l.addHook=function(be,N){typeof N=="function"&&zo(ne[be],N)},l.removeHook=function(be,N){if(N!==void 0){const te=T8(ne[be],N);return te===-1?void 0:x8(ne[be],te,1)[0]}return hv(ne[be])},l.removeHooks=function(be){ne[be]=[]},l.removeAllHooks=function(){ne=bv()},l}var V8=Py();const Y8=({onClose:n})=>{const l=Rt();return v.jsxs("div",{className:yn.highlightLoadingInfo,onClick:n,children:[v.jsx("div",{className:yn.highlightLoadingInfoCloseIcon,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})}),v.jsxs("div",{className:yn.highlightLoadingInfoInnerContainer,children:[v.jsxs("div",{className:yn.highlightLoadingInfoContent,children:[v.jsx("h3",{children:l("source-infos.highlight-loading.title")}),v.jsx("p",{children:l("source-infos.highlight-loading.description")})]}),v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},X8=({title:n,href:l,children:r})=>v.jsx("a",{href:l,title:n,target:"_blank",rel:"noopener noreferrer",children:r}),F8=({className:n,children:l,...r})=>v.jsx("a",{className:se(Jo.button,Jo.buttonDefault,n),type:"button",role:"button",...r,children:l}),K8=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),J8=({type:n,...l})=>{switch(n){case"WEBSITE":return v.jsx(Iy,{...l});case"PDF":return v.jsx(qy,{...l});case"DOCX":return v.jsx(Uy,{...l});case"TEXT":return v.jsx(K8,{...l});default:return v.jsx(Hy,{...l})}},Z8=({url:n,knowledgeBaseType:l})=>{const r=Rt();return v.jsx(F8,{className:yn.openSourceButton,href:n,target:"_blank",children:v.jsxs("div",{className:yn.sourceButtonLabel,children:[v.jsx("div",{className:yn.sourceHeaderIcon,children:v.jsx(J8,{type:l})}),v.jsx("p",{children:r("source-infos.open-source")})]})})},W8=({sourceInfos:{content:n,url:l,knowledgeBaseType:r,highlighted:o}})=>{const[c,f]=q.useState(!o);q.useEffect(()=>{o&&f(!1)},[o]);const d=V8.sanitize(n,{USE_PROFILES:{html:!0}});return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:se(yn.sourceContent,Vy.markdown),children:[v.jsx(xl,{options:{overrides:{a:X8}},children:d}),c&&v.jsx(Y8,{onClose:()=>f(!1)})]}),v.jsx(Z8,{url:l,knowledgeBaseType:r})]})},P8=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,Q8=()=>{const n=Rt();return v.jsxs("div",{className:yn.loadingError,children:[v.jsx("h1",{children:n("source-infos.error.title")}),v.jsx("img",{src:P8,title:n("source-infos.error.title")}),v.jsx("p",{children:n("source-infos.error.info")})]})},$8=()=>v.jsx("div",{className:yn.loadingSourceInfos,children:v.jsx("svg",{className:yn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})});function ex({sourceInfos:n,onClose:l,threshold:r=100}){const o=q.useRef(null),[c,f]=q.useState(0),[d,m]=q.useState(!1),h=q.useRef(null),p=q.useRef(null),y=q.useCallback(O=>{h.current=O,m(!0)},[]),b=q.useCallback(O=>{if(h.current!==null&&d){const C=O-h.current;C>0&&f(C)}},[d]),A=q.useCallback(()=>{m(!1),c>r&&l(),f(0),h.current=null},[c,r,l]),S=q.useCallback(O=>{const C=H=>y(H.touches[0].clientY),E=H=>b(H.touches[0].clientY),x=()=>A(),M=H=>{H.preventDefault(),y(H.clientY),window.addEventListener("mousemove",L),window.addEventListener("mouseup",z)},L=H=>b(H.clientY),z=()=>{A(),window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",z)};O.addEventListener("touchstart",C),O.addEventListener("touchmove",E),O.addEventListener("touchend",x),O.addEventListener("mousedown",M),p.current=()=>{O.removeEventListener("touchstart",C),O.removeEventListener("touchmove",E),O.removeEventListener("touchend",x),O.removeEventListener("mousedown",M),window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",z)}},[y,b,A]);return q.useEffect(()=>{let O;return o.current?(p.current?.(),S(o.current)):(O=new MutationObserver(()=>{o.current&&(p.current?.(),S(o.current),O?.disconnect())}),O.observe(document.body,{childList:!0,subtree:!0})),()=>{O?.disconnect(),p.current?.()}},[S,n]),{ref:o,dragOffsetY:c,isDragging:d}}const tx=n=>{const[l,r]=q.useState(!0);return q.useEffect(()=>{let o=null;return n?.type==="loading"?(r(!0),o=setTimeout(()=>{r(!1)},300)):r(!n),()=>{o&&clearTimeout(o)}},[n]),l},nx=()=>{const n=Dl(),l=Bt(h=>h.chat.sourceInfos),r=Ky(),o=q.useRef(null),c=tx(l);q.useEffect(()=>{o.current&&l?.type==="loading"&&(r?o.current.showModal():(o.current.setAttribute("open","true"),o.current?.focus()))},[l,r]);const f=q.useCallback(()=>{o.current&&(r?o.current.close():o.current.removeAttribute("open"),n(hS()))},[n,r]),{ref:d,dragOffsetY:m}=ex({onClose:f,sourceInfos:l});return l?v.jsx("dialog",{ref:o,className:se(yn.sourceInfos,c?yn.waitForLoading:l.type==="loading"?yn.loadingContent:""),style:r&&m?{transform:`translateY(${m}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:c?null:v.jsxs(v.Fragment,{children:[v.jsx(_8,{ref:d,tabIndex:-1,sourceInfos:l.type==="loaded"?l:void 0,onClose:f}),l.type==="loading"?v.jsx($8,{}):l.type==="loading-error"?v.jsx(Q8,{}):v.jsxs(v.Fragment,{children:[v.jsx(A8,{loading:!l.highlighted}),v.jsx(W8,{sourceInfos:l})]})]})}):null},ax="_container_5axup_1",lx="_body_5axup_7",rx="_intro_5axup_14",ix="_footer_5axup_48",ox="_footnote_5axup_52",sx="_containerWithFootnote_5axup_72",cx="_startChatButton_5axup_87",ux="_spinner_5axup_102",fx="_formFields_5axup_106",dx="_formField_5axup_106",hx="_radio_5axup_118",mx="_checkbox_5axup_125",px="_input_5axup_133",gx="_inputLabel_5axup_167",vx="_selectWrapper_5axup_171",yx="_select_5axup_171",bx="_selectLabel_5axup_217",vn={container:ax,body:lx,intro:rx,footer:ix,footnote:ox,containerWithFootnote:sx,startChatButton:cx,spinner:ux,formFields:fx,formField:dx,radio:hx,checkbox:mx,input:px,inputLabel:gx,selectWrapper:vx,select:yx,selectLabel:bx},_x=({name:n,label:l,defaultValue:r,required:o,onChange:c})=>{const f=d=>{c(d.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:se(vn.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[v.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:r==="true",required:o,onChange:f}),v.jsx("div",{children:l})]})},Ax=({type:n,name:l,label:r,defaultValue:o,placeholder:c,required:f,multiple:d,min:m,max:h,pattern:p,onChange:y})=>{const b=A=>{y(A.target.value)};return v.jsxs("label",{className:se(vn.input,"chat__startScreen__input"),htmlFor:l,children:[v.jsx("div",{className:se(vn.inputLabel),children:r}),v.jsx("input",{type:n,id:l,name:l,defaultValue:o,placeholder:c,required:f,multiple:d,min:m,max:h,pattern:p,onChange:b})]})},Cx=({name:n,value:l,label:r,defaultChecked:o,required:c,onChange:f})=>{const d=`${n}-${l}`,m=h=>{f(h.target.value)};return v.jsxs("label",{className:se(vn.radio,"chat__startScreen__radio"),htmlFor:d,children:[v.jsx("input",{id:d,type:"radio",name:n,value:l,defaultChecked:o,required:c,onChange:m}),v.jsx("span",{className:se(vn.label),children:r})]})},Sx=({name:n,label:l,defaultValue:r,required:o,multiple:c,options:f,onChange:d})=>{const m=h=>{d(h.target.value)};return v.jsxs("label",{className:se(vn.select,"chat__startScreen__select"),htmlFor:n,children:[v.jsx("div",{className:se(vn.selectLabel),children:l}),v.jsx("div",{className:se(vn.selectWrapper),children:v.jsx("select",{id:n,name:n,defaultValue:r,required:o,multiple:c,onChange:m,children:Object.entries(f||{}).map(([h,p])=>v.jsx("option",{value:h,selected:p===r,children:p}))})})]})},Ex="start-screen.intro",Tx="start-screen.start-chat",xx="start-screen.waiting-for-login",Ox="start-screen.footnote",qa="start-screen.form",_v=`${qa}.fields`,wx=()=>{const n=Rt(),l=Dl(),r=sm(),o=Bt(O=>O.startScreen.loginRequestToken),c=Bt(O=>O.settings.requiresUserAuthentication);q.useEffect(()=>{let O;if(o){const x=window.screenX+(window.outerWidth-600)/2,M=window.screenY+(window.outerHeight-700)/2,L=encodeURIComponent(r),z=new URL(window.location.origin);z.pathname=`/${L}/auth/login`,z.searchParams.set("loginRequestToken",o);const H=window.open(z.href,"Login",`width=600,height=700,left=${x},top=${M},resizable=yes,scrollbars=yes`);O=setInterval(()=>{H?.closed&&(l(cS()),clearInterval(O))},500)}return()=>{O&&clearInterval(O)}},[r,o,l]);const[f,d]=q.useState({}),m=()=>{const O=Object.entries(f).reduce((C,[E,x])=>({...C,[E]:x.value}),{});l(c?sS({loginRequestToken:Bc(),formValues:O}):rS({formValues:O}))},h=n(Ex),p=n(o?xx:Tx),y=n(Ox),b=q.useMemo(()=>n(_v)?.split(";").map(O=>O.trim())??[],[n(_v)]);q.useEffect(()=>{b.length&&Object.keys(f).length===0&&d(b.reduce((O,C)=>({...O,[C]:Rx(C,n)}),{}))},[n,b,f]);const A=O=>{O.preventDefault(),m()},S=O=>C=>{d(E=>({...E,[O]:{...E[O],value:C}}))};return v.jsxs("form",{onSubmit:A,className:se(vn.container,y&&vn.containerWithFootnote,"chat__startScreen"),children:[v.jsxs("div",{className:se(vn.body,"chat__startScreen__body"),children:[h&&v.jsx("div",{className:se(vn.intro,"chat__startScreen__intro"),children:v.jsx(xl,{options:{overrides:{a:Av}},children:h})}),v.jsx("div",{className:se(vn.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:O,name:C,label:E,placeholder:x,defaultValue:M,options:L,required:z,multiple:H,min:B,max:X,pattern:Z})=>v.jsx("div",{className:se(vn.formField,"chat__startScreen__field"),children:(()=>{switch(O){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:E}),Object.entries(L||{}).map(([re,$])=>v.jsx(Cx,{name:C,value:re,label:$,defaultChecked:re===M,required:z,onChange:S(C)},re))]});case"checkbox":return v.jsx(_x,{name:C,label:E,defaultValue:M,required:z,onChange:S(C)});case"select":return v.jsx(Sx,{name:C,label:E,defaultValue:M,required:z,multiple:H,options:L,onChange:S(C)});default:return v.jsx(Ax,{type:O,name:C,label:E,placeholder:x,defaultValue:M,required:z,multiple:H,min:B,max:X,pattern:Z,onChange:S(C)})}})()},C))})]}),v.jsxs("div",{className:se(vn.footer,"chat__startScreen__footer"),children:[v.jsxs($c,{type:"submit",className:vn.startChatButton,disabled:!!o,children:[!!o&&v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:vn.spinner,children:v.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),v.jsx("div",{children:p})]}),y&&v.jsx("div",{className:vn.footnote,children:v.jsx(xl,{options:{overrides:{a:Av}},children:y})})]})]})},Av=({title:n,href:l,children:r})=>v.jsx("a",{href:l,title:n,target:"_blank",rel:"noopener noreferrer",children:r}),Rx=(n,l)=>{const r=l(`${qa}.${n}.type`)||"text",o=l(`${qa}.${n}.required`)==="true",c=l(`${qa}.${n}.multiple`)==="true",f=l(`${qa}.${n}.placeholder`),d=l(`${qa}.${n}.label`)||"",m=l(`${qa}.${n}.defaultValue`),h=l(`${qa}.${n}.min`),p=l(`${qa}.${n}.max`),y=l(`${qa}.${n}.pattern`),b=Mx(l(`${qa}.${n}.options`));return{name:n,label:d,placeholder:f,value:Nx(r,m,b)||"",defaultValue:m,options:b,type:r,required:o,multiple:c,min:h,max:p,pattern:y}},Nx=(n,l,r)=>l||n==="select"&&Object.keys(r)[0]||"",Mx=(n="")=>n.split(";").map(l=>l.trim()).reduce((l,r)=>{const[o,c]=r.split(":").map(f=>f.trim());return{...l,[o]:c}},{}),Dx=()=>{const n=Bt(l=>l.intl.locale);q.useEffect(()=>{window.document.documentElement.lang=n},[n])},Vr={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"},Lx=({clientName:n})=>{Dx();const l=Dl(),r=Bt(b=>b.intl.messages),o=Rt(),c=Bt(b=>b.settings.enableStartScreen),f=Bt(b=>b.startScreen.startScreenStatus),d=Bt(b=>b.connection.queryString),m=Bt(b=>b.settings.allowedEmbedOrigins),h=q.useMemo(()=>new URLSearchParams(d||"?").get("cssClassName"),[d]);q.useEffect(()=>{const b=new URLSearchParams(d||""),A=Object.fromEntries(b.entries());l(pS(n,A))},[n,d,l]),q.useEffect(()=>{const b=A=>{if(!A.data?.type||!Object.values(Vr).includes(A.data.type))return;const S=A.origin===window.location.origin,O=A.source===window.parent,C=m===void 0||m.includes(A.origin);if(!(S||O&&C)){console.warn("Rejected postMessage from untrusted origin:",A.origin);return}switch(A.data.type){case Vr.TRIGGER_ACTION:l(A.data.action);break;case Vr.TRIGGER_STORY:l(Qv(A.data.story));break;case Vr.ON_CHAT_WINDOW_OPEN:l({type:"webclient.chatwindow.opened"});break;case Vr.ON_CHAT_WINDOW_CLOSE:l({type:"webclient.chatwindow.closed"});break;case Vr.CHAT_MESSAGE_FROM_GUEST:l(Kv(A.data.text));break;case Vr.RESTART_CHAT:l(Wo());break}};return window.addEventListener("message",b,!1),()=>window.removeEventListener("message",b)},[m,l]),q.useEffect(()=>{const b=o("page.title");b&&document&&(document.title=b)},[r,o]);const p=c===void 0,y=c===!1||f==="HIDDEN";return v.jsx("div",{className:se(fv.chatwindow,y&&fv.chatwindowWithAside,"chat__chatwindow",h),children:p?null:y?v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(uv,{chatStarted:!0})}),v.jsx("main",{children:v.jsx(U3,{clientName:n})}),v.jsx("aside",{children:v.jsx(nx,{})})]}):v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(uv,{chatStarted:!1})}),v.jsx("main",{children:v.jsx(wx,{})})]})})},zx=()=>{const n=sm(),l=Ky();return v.jsx("div",{className:se([GA.app,l?"chat__small":"chat__large"]),children:v.jsx(Lx,{clientName:n})})},Qy={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","message-input.actions.command.label":"Aktion ausführen","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.actions.label":"Nachricht-Aktionen","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","bot-bubble.footnote":"Fussnote","agent-bubble.label":"Nachricht des Live-Agenten","conversation.label":"Chat Verlauf","chatbot.typing":"Chatbot schreibt","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
65
-
66
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
67
- - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},kx={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","message-input.actions.command.label":"Perform action","bot-bubble.label":"Message from the chatbot","bot-bubble.actions.label":"Message actions","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","bot-bubble.footnote":"Footnote","agent-bubble.label":"Message from the live agent","conversation.label":"Chat history","chatbot.typing":"Chatbot is typing","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
68
-
69
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
70
- - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"};function $y(n,l="",r="."){const o={};for(const c in n)if(Object.prototype.hasOwnProperty.call(n,c)){const f=n[c],d=l?`${l}${r}${c}`:c;f!==null&&typeof f=="object"&&!Array.isArray(f)?Object.assign(o,$y(f,d,r)):o[d]=String(f)}return o}const Bx={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","message-input.actions.command.label":"Exécuter l'action","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.actions.label":"Actions du message","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","bot-bubble.footnote":"Note de bas de page","agent-bubble.label":"Message de l'agent en direct","conversation.label":"Historique du chat","chatbot.typing":"Le chatbot écrit","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
71
-
72
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
73
- - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},jx={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","message-input.actions.command.label":"Esegui azione","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.actions.label":"Azioni del messaggio","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","bot-bubble.footnote":"Nota a piè di pagina","agent-bubble.label":"Messaggio dell'agente dal vivo","conversation.label":"Cronologia chat","chatbot.typing":"Il chatbot sta scrivendo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
74
-
75
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
76
- - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},Ux=["de","en","fr","it"],eb={locale:"de",messages:Qy},Hx=(n,l)=>{if(Ux.includes(n)){const r=qx(n),o=$y(l);return{...r,...o}}return l},qx=n=>{switch(n.toString()){case"en":return kx;case"fr":return Bx;case"it":return jx;default:return Qy}},Ix=(n=Gx,l)=>{switch(l.type){case Wh:return Object.assign({},n,{connectionState:Xr.CONNECTING});case Ph:return Object.assign({},n,{connectionState:Xr.CONNECTED});case Qh:return Object.assign({},n,{connectionState:Xr.DISCONNECTED});case $h:return Object.assign({},n,{connectionState:Xr.RECONNECTED});case em:return Object.assign({},n,{sessionId:l.sessionId});case fu:return Object.assign({},n,{sessionId:l.payload.sessionId,userId:l.payload.userId});case du:return Object.assign({},n,{sessionId:void 0});default:return n}},Gx={connectionState:Xr.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},Vx=(n=Sv,l)=>{switch(l.type){case vy:return Sv;case fu:return Yr({type:"webclient.chat.started"}),n;case du:return Yr({type:"webclient.chat.ended"}),n;case Hv:return Object.assign({},n,{isBotTyping:!0});case qv:return Object.assign({},n,{isBotTyping:!1});case Lh:case Iv:return Cv(n,l.message);case Gv:{Yr(l);const r=Object.assign({},l.message,{_id:l.meta.actionId}),o=n.messages.filter(c=>c._id===l.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:o?n.messages:n.messages.concat([r]),quickReplies:r.quickReplies?r.quickReplies:[]})}case jh:{const r=l.messages,o=r.length?r[r.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:r,quickReplies:o?.quickReplies||[]})}case Bh:return Yr(l.message),n;case Vv:return Yr(l.event),n;case FA:return Object.assign({},n,{drawerContentUrl:l.payload.parameters.contentUrl});case KA:return Object.assign({},n,{drawerContentUrl:void 0});case JA:return Object.assign({},n,{locale:l.payload.locale});case Zv:return Yr(l),n;case Wv:return Yr(l),{...n,conversationRating:{...n.conversationRating,opener:void 0}};case Hh:{const r=new nu(l.transcription,new kh),o=Object.assign({},r,{_id:Bc()});return Cv(n,o)}case Yv:{const r=n.messages.map(o=>o._id===l.payload.actionId?Object.assign({},o,l.payload.reaction?{reaction:{type:l.payload.reaction,category:l.payload.category,comment:l.payload.comment}}:{reaction:void 0}):o);return Object.assign({},n,{messages:r})}case qh:{const r={enabled:!0,rating:l.payload.rating};return Object.assign({},n,{conversationRating:r})}case zh:{const r={...n.conversationRating,rating:l.payload};return Object.assign({},n,{conversationRating:r})}case by:{const r={...n.conversationRating,opener:l.payload.opener,...l.payload.defaultRating?{rating:{value:l.payload.defaultRating,feedback:n.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},n,{conversationRating:r})}case _y:{const r={...n.conversationRating,opener:void 0};return Object.assign({},n,{conversationRating:r})}case Gh:return{...n,sourceInfos:{type:"loading",chunkId:l.payload.chunkId}};case Ih:{const{highlighted:r}=l.payload;return n.sourceInfos?.type==="loaded"&&r?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case Jv:{const r=n.sourceInfos?.type,{chunkId:o,knowledgeBaseType:c,title:f,content:d,highlighted:m,url:h}=l.payload,p=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return p&&p!==o?n:r==="loading"||r==="loaded"&&m?{...n,sourceInfos:{type:"loaded",chunkId:o,knowledgeBaseType:c,title:f,content:d,highlighted:m,url:h}}:n}case Vh:return{...n,sourceInfos:void 0};case yy:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay,conversationRating:{...n.conversationRating,opener:void 0}};default:return n}},Cv=(n,l)=>{const r=n.messages[n.messages.length-1],o=r?.text===l.text;return r&&r.sender.type===l.sender.type&&o?n:Object.assign({},n,{messages:n.messages.concat([l]),quickReplies:[]})},Yr=n=>{if(Xx()){const l=Yx();window.top?.postMessage(n,l)}else n.type==="webclient.change.url"&&window.open(n.url)},Yx=()=>{try{return document.referrer?new URL(document.referrer).origin:"*"}catch{return"*"}},Xx=()=>typeof window<"u"&&window.self!==window.top,Sv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},tb=Jh({name:"intl",initialState:eb,reducers:{updateIntl:(n,l)=>{n.locale=l.payload.language,n.messages=l.payload.messages}}}),{updateIntl:Fx}=tb.actions,Kx=tb.reducer,Jx={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[],allowedEmbedOrigins:void 0},nb=Jh({name:"settings",initialState:Jx,reducers:{setSettings(n,l){n.version&&n.version!==l.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(n.version=l.payload.version,n.requiresUserAuthentication=l.payload.requiresUserAuthentication,n.enableStartScreen=l.payload.enableStartScreen,n.enableStandaloneView=l.payload.enableStandaloneView,n.enableTranscriptExportEmail=l.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=l.payload.enableTranscriptExportPdf,n.enableGeneralConditions=l.payload.enableGeneralConditions,n.enableSpeechSupport=l.payload.enableSpeechSupport,n.commands=l.payload.commands,n.menuItems=l.payload.menuItems||[],n.allowedEmbedOrigins=l.payload.allowedEmbedOrigins)}}}),{setSettings:Zx}=nb.actions,Wx=nb.reducer,Px=ny({settings:Wx,chat:Vx,startScreen:uS,connection:Ix,intl:Kx}),Qx="bubble-chat",ab="state-last-saved-at",lb="state",$x=n=>{try{if(!n4())return;const l=Ev(n,ab);if(t4(l))return;{const r=Ev(n,lb);if(r===null)return;const o=JSON.parse(r),c=o.connection?.queryString;if(c!==void 0&&!a4(c,window.location.search)){console.log("Ignoring persisted state due to different query string");return}else return o}}catch(l){console.error(l);return}},e4=(n,l)=>{try{const r=JSON.stringify(l);Tv(n,lb,r);const o=new Date().toISOString();Tv(n,ab,o)}catch(r){console.error(r)}},t4=n=>{if(n===null)return!1;const l=new Date(n);return l.setHours(l.getHours()+12),new Date>l},n4=()=>typeof localStorage<"u",Ev=(n,l)=>{const r=rb(n,l);return localStorage.getItem(r)},Tv=(n,l,r)=>{const o=rb(n,l);return localStorage.setItem(o,r)},rb=(n,l)=>`${Qx}-${n}-${l}`,a4=(n,l)=>{const r=new URLSearchParams(n),o=new URLSearchParams(l);r.delete("referrer"),o.delete("referrer");const c=Array.from(r.entries()).sort(),f=Array.from(o.entries()).sort();return c.length!==f.length?!1:c.every(([d,m],h)=>{const[p,y]=f[h];return d===p&&m===y})},el=Object.create(null);el.open="0";el.close="1";el.ping="2";el.pong="3";el.message="4";el.upgrade="5";el.noop="6";const Nc=Object.create(null);Object.keys(el).forEach(n=>{Nc[el[n]]=n});const Sh={type:"error",data:"parser error"},ib=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ob=typeof ArrayBuffer=="function",sb=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,cm=({type:n,data:l},r,o)=>ib&&l instanceof Blob?r?o(l):xv(l,o):ob&&(l instanceof ArrayBuffer||sb(l))?r?o(l):xv(new Blob([l]),o):o(el[n]+(l||"")),xv=(n,l)=>{const r=new FileReader;return r.onload=function(){const o=r.result.split(",")[1];l("b"+(o||""))},r.readAsDataURL(n)};function Ov(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let $d;function l4(n,l){if(ib&&n.data instanceof Blob)return n.data.arrayBuffer().then(Ov).then(l);if(ob&&(n.data instanceof ArrayBuffer||sb(n.data)))return l(Ov(n.data));cm(n,!1,r=>{$d||($d=new TextEncoder),l($d.encode(r))})}const wv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Go=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<wv.length;n++)Go[wv.charCodeAt(n)]=n;const r4=n=>{let l=n.length*.75,r=n.length,o,c=0,f,d,m,h;n[n.length-1]==="="&&(l--,n[n.length-2]==="="&&l--);const p=new ArrayBuffer(l),y=new Uint8Array(p);for(o=0;o<r;o+=4)f=Go[n.charCodeAt(o)],d=Go[n.charCodeAt(o+1)],m=Go[n.charCodeAt(o+2)],h=Go[n.charCodeAt(o+3)],y[c++]=f<<2|d>>4,y[c++]=(d&15)<<4|m>>2,y[c++]=(m&3)<<6|h&63;return p},i4=typeof ArrayBuffer=="function",um=(n,l)=>{if(typeof n!="string")return{type:"message",data:cb(n,l)};const r=n.charAt(0);return r==="b"?{type:"message",data:o4(n.substring(1),l)}:Nc[r]?n.length>1?{type:Nc[r],data:n.substring(1)}:{type:Nc[r]}:Sh},o4=(n,l)=>{if(i4){const r=r4(n);return cb(r,l)}else return{base64:!0,data:n}},cb=(n,l)=>l==="blob"?n instanceof Blob?n:new Blob([n]):n instanceof ArrayBuffer?n:n.buffer,ub="",s4=(n,l)=>{const r=n.length,o=new Array(r);let c=0;n.forEach((f,d)=>{cm(f,!1,m=>{o[d]=m,++c===r&&l(o.join(ub))})})},c4=(n,l)=>{const r=n.split(ub),o=[];for(let c=0;c<r.length;c++){const f=um(r[c],l);if(o.push(f),f.type==="error")break}return o};function u4(){return new TransformStream({transform(n,l){l4(n,r=>{const o=r.length;let c;if(o<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,o);else if(o<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,o)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(o))}n.data&&typeof n.data!="string"&&(c[0]|=128),l.enqueue(c),l.enqueue(r)})}})}let eh;function Sc(n){return n.reduce((l,r)=>l+r.length,0)}function Ec(n,l){if(n[0].length===l)return n.shift();const r=new Uint8Array(l);let o=0;for(let c=0;c<l;c++)r[c]=n[0][o++],o===n[0].length&&(n.shift(),o=0);return n.length&&o<n[0].length&&(n[0]=n[0].slice(o)),r}function f4(n,l){eh||(eh=new TextDecoder);const r=[];let o=0,c=-1,f=!1;return new TransformStream({transform(d,m){for(r.push(d);;){if(o===0){if(Sc(r)<1)break;const h=Ec(r,1);f=(h[0]&128)===128,c=h[0]&127,c<126?o=3:c===126?o=1:o=2}else if(o===1){if(Sc(r)<2)break;const h=Ec(r,2);c=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),o=3}else if(o===2){if(Sc(r)<8)break;const h=Ec(r,8),p=new DataView(h.buffer,h.byteOffset,h.length),y=p.getUint32(0);if(y>Math.pow(2,21)-1){m.enqueue(Sh);break}c=y*Math.pow(2,32)+p.getUint32(4),o=3}else{if(Sc(r)<c)break;const h=Ec(r,c);m.enqueue(um(f?h:eh.decode(h),l)),o=0}if(c===0||c>n){m.enqueue(Sh);break}}}})}const fb=4;function rn(n){if(n)return d4(n)}function d4(n){for(var l in rn.prototype)n[l]=rn.prototype[l];return n}rn.prototype.on=rn.prototype.addEventListener=function(n,l){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(l),this};rn.prototype.once=function(n,l){function r(){this.off(n,r),l.apply(this,arguments)}return r.fn=l,this.on(n,r),this};rn.prototype.off=rn.prototype.removeListener=rn.prototype.removeAllListeners=rn.prototype.removeEventListener=function(n,l){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+n];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var o,c=0;c<r.length;c++)if(o=r[c],o===l||o.fn===l){r.splice(c,1);break}return r.length===0&&delete this._callbacks["$"+n],this};rn.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var l=new Array(arguments.length-1),r=this._callbacks["$"+n],o=1;o<arguments.length;o++)l[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,c=r.length;o<c;++o)r[o].apply(this,l)}return this};rn.prototype.emitReserved=rn.prototype.emit;rn.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};rn.prototype.hasListeners=function(n){return!!this.listeners(n).length};const bu=typeof Promise=="function"&&typeof Promise.resolve=="function"?l=>Promise.resolve().then(l):(l,r)=>r(l,0),Ra=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),h4="arraybuffer";function db(n,...l){return l.reduce((r,o)=>(n.hasOwnProperty(o)&&(r[o]=n[o]),r),{})}const m4=Ra.setTimeout,p4=Ra.clearTimeout;function _u(n,l){l.useNativeTimers?(n.setTimeoutFn=m4.bind(Ra),n.clearTimeoutFn=p4.bind(Ra)):(n.setTimeoutFn=Ra.setTimeout.bind(Ra),n.clearTimeoutFn=Ra.clearTimeout.bind(Ra))}const g4=1.33;function v4(n){return typeof n=="string"?y4(n):Math.ceil((n.byteLength||n.size)*g4)}function y4(n){let l=0,r=0;for(let o=0,c=n.length;o<c;o++)l=n.charCodeAt(o),l<128?r+=1:l<2048?r+=2:l<55296||l>=57344?r+=3:(o++,r+=4);return r}function hb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function b4(n){let l="";for(let r in n)n.hasOwnProperty(r)&&(l.length&&(l+="&"),l+=encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return l}function _4(n){let l={},r=n.split("&");for(let o=0,c=r.length;o<c;o++){let f=r[o].split("=");l[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return l}class A4 extends Error{constructor(l,r,o){super(l),this.description=r,this.context=o,this.type="TransportError"}}class fm extends rn{constructor(l){super(),this.writable=!1,_u(this,l),this.opts=l,this.query=l.query,this.socket=l.socket,this.supportsBinary=!l.forceBase64}onError(l,r,o){return super.emitReserved("error",new A4(l,r,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(l){this.readyState==="open"&&this.write(l)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(l){const r=um(l,this.socket.binaryType);this.onPacket(r)}onPacket(l){super.emitReserved("packet",l)}onClose(l){this.readyState="closed",super.emitReserved("close",l)}pause(l){}createUri(l,r={}){return l+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const l=this.opts.hostname;return l.indexOf(":")===-1?l:"["+l+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(l){const r=b4(l);return r.length?"?"+r:""}}class C4 extends fm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(l){this.readyState="pausing";const r=()=>{this.readyState="paused",l()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(l){const r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};c4(l,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const l=()=>{this.write([{type:"close"}])};this.readyState==="open"?l():this.once("open",l)}write(l){this.writable=!1,s4(l,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const l=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=hb()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(l,r)}}let mb=!1;try{mb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const S4=mb;function E4(){}class T4 extends C4{constructor(l){if(super(l),typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&l.hostname!==location.hostname||o!==l.port}}doWrite(l,r){const o=this.request({method:"POST",data:l});o.on("success",r),o.on("error",(c,f)=>{this.onError("xhr post error",c,f)})}doPoll(){const l=this.request();l.on("data",this.onData.bind(this)),l.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=l}}class Qa extends rn{constructor(l,r,o){super(),this.createRequest=l,_u(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var l;const r=db(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&o.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(l=this._opts.cookieJar)===null||l===void 0||l.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var c;o.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=Qa.requestsCount++,Qa.requests[this._index]=this)}_onError(l){this.emitReserved("error",l,this._xhr),this._cleanup(!0)}_cleanup(l){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=E4,l)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Qa.requests[this._index],this._xhr=null}}_onLoad(){const l=this._xhr.responseText;l!==null&&(this.emitReserved("data",l),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Qa.requestsCount=0;Qa.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Rv);else if(typeof addEventListener=="function"){const n="onpagehide"in Ra?"pagehide":"unload";addEventListener(n,Rv,!1)}}function Rv(){for(let n in Qa.requests)Qa.requests.hasOwnProperty(n)&&Qa.requests[n].abort()}const x4=(function(){const n=pb({xdomain:!1});return n&&n.responseType!==null})();class O4 extends T4{constructor(l){super(l);const r=l&&l.forceBase64;this.supportsBinary=x4&&!r}request(l={}){return Object.assign(l,{xd:this.xd},this.opts),new Qa(pb,this.uri(),l)}}function pb(n){const l=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!l||S4))return new XMLHttpRequest}catch{}if(!l)try{return new Ra[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const gb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class w4 extends fm{get name(){return"websocket"}doOpen(){const l=this.uri(),r=this.opts.protocols,o=gb?{}:db(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(l,r,o)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=l=>this.onClose({description:"websocket connection closed",context:l}),this.ws.onmessage=l=>this.onData(l.data),this.ws.onerror=l=>this.onError("websocket error",l)}write(l){this.writable=!1;for(let r=0;r<l.length;r++){const o=l[r],c=r===l.length-1;cm(o,this.supportsBinary,f=>{try{this.doWrite(o,f)}catch{}c&&bu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const l=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=hb()),this.supportsBinary||(r.b64=1),this.createUri(l,r)}}const th=Ra.WebSocket||Ra.MozWebSocket;class R4 extends w4{createSocket(l,r,o){return gb?new th(l,r,o):r?new th(l,r):new th(l)}doWrite(l,r){this.ws.send(r)}}class N4 extends fm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(l){return this.emitReserved("error",l)}this._transport.closed.then(()=>{this.onClose()}).catch(l=>{this.onError("webtransport error",l)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(l=>{const r=f4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=l.readable.pipeThrough(r).getReader(),c=u4();c.readable.pipeTo(l.writable),this._writer=c.writable.getWriter();const f=()=>{o.read().then(({done:m,value:h})=>{m||(this.onPacket(h),f())}).catch(m=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(l){this.writable=!1;for(let r=0;r<l.length;r++){const o=l[r],c=r===l.length-1;this._writer.write(o).then(()=>{c&&bu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this._transport)===null||l===void 0||l.close()}}const M4={websocket:R4,webtransport:N4,polling:O4},D4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,L4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Eh(n){if(n.length>8e3)throw"URI too long";const l=n,r=n.indexOf("["),o=n.indexOf("]");r!=-1&&o!=-1&&(n=n.substring(0,r)+n.substring(r,o).replace(/:/g,";")+n.substring(o,n.length));let c=D4.exec(n||""),f={},d=14;for(;d--;)f[L4[d]]=c[d]||"";return r!=-1&&o!=-1&&(f.source=l,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=z4(f,f.path),f.queryKey=k4(f,f.query),f}function z4(n,l){const r=/\/{2,9}/g,o=l.replace(r,"/").split("/");return(l.slice(0,1)=="/"||l.length===0)&&o.splice(0,1),l.slice(-1)=="/"&&o.splice(o.length-1,1),o}function k4(n,l){const r={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,c,f){c&&(r[c]=f)}),r}const Th=typeof addEventListener=="function"&&typeof removeEventListener=="function",Mc=[];Th&&addEventListener("offline",()=>{Mc.forEach(n=>n())},!1);class fr extends rn{constructor(l,r){if(super(),this.binaryType=h4,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,l&&typeof l=="object"&&(r=l,l=null),l){const o=Eh(l);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=Eh(r.host).host);_u(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(o=>{const c=o.prototype.name;this.transports.push(c),this._transportsByName[c]=o}),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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=_4(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"})},Mc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(l){const r=Object.assign({},this.opts.query);r.EIO=fb,r.transport=l,this.id&&(r.sid=this.id);const o=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[l]);return new this._transportsByName[l](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const l=this.opts.rememberUpgrade&&fr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(l);r.open(),this.setTransport(r)}setTransport(l){this.transport&&this.transport.removeAllListeners(),this.transport=l,l.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",fr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",l),this.emitReserved("heartbeat"),l.type){case"open":this.onHandshake(JSON.parse(l.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=l.data,this._onError(r);break;case"message":this.emitReserved("data",l.data),this.emitReserved("message",l.data);break}}onHandshake(l){this.emitReserved("handshake",l),this.id=l.sid,this.transport.query.sid=l.sid,this._pingInterval=l.pingInterval,this._pingTimeout=l.pingTimeout,this._maxPayload=l.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const l=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+l,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},l),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 l=this._getWritablePackets();this.transport.send(l),this._prevBufferLen=l.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let o=0;o<this.writeBuffer.length;o++){const c=this.writeBuffer[o].data;if(c&&(r+=v4(c)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const l=Date.now()>this._pingTimeoutTime;return l&&(this._pingTimeoutTime=0,bu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),l}write(l,r,o){return this._sendPacket("message",l,r,o),this}send(l,r,o){return this._sendPacket("message",l,r,o),this}_sendPacket(l,r,o,c){if(typeof r=="function"&&(c=r,r=void 0),typeof o=="function"&&(c=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;const f={type:l,data:r,options:o};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),c&&this.once("flush",c),this.flush()}close(){const l=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),l()},o=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():l()}):this.upgrading?o():l()),this}_onError(l){if(fr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",l),this._onClose("transport error",l)}_onClose(l,r){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 o=Mc.indexOf(this._offlineEventListener);o!==-1&&Mc.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",l,r),this.writeBuffer=[],this._prevBufferLen=0}}}fr.protocol=fb;class B4 extends fr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let l=0;l<this._upgrades.length;l++)this._probe(this._upgrades[l])}_probe(l){let r=this.createTransport(l),o=!1;fr.priorWebsocketSuccess=!1;const c=()=>{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",b=>{if(!o)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;fr.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(y(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=r.name,this.emitReserved("upgradeError",A)}}))};function f(){o||(o=!0,y(),r.close(),r=null)}const d=b=>{const A=new Error("probe error: "+b);A.transport=r.name,f(),this.emitReserved("upgradeError",A)};function m(){d("transport closed")}function h(){d("socket closed")}function p(b){r&&b.name!==r.name&&f()}const y=()=>{r.removeListener("open",c),r.removeListener("error",d),r.removeListener("close",m),this.off("close",h),this.off("upgrading",p)};r.once("open",c),r.once("error",d),r.once("close",m),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&l!=="webtransport"?this.setTimeoutFn(()=>{o||r.open()},200):r.open()}onHandshake(l){this._upgrades=this._filterUpgrades(l.upgrades),super.onHandshake(l)}_filterUpgrades(l){const r=[];for(let o=0;o<l.length;o++)~this.transports.indexOf(l[o])&&r.push(l[o]);return r}}let j4=class extends B4{constructor(l,r={}){const o=typeof l=="object"?l:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(c=>M4[c]).filter(c=>!!c)),super(l,o)}};function U4(n,l="",r){let o=n;r=r||typeof location<"u"&&location,n==null&&(n=r.protocol+"//"+r.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=r.protocol+n:n=r.host+n),/^(https?|wss?):\/\//.test(n)||(typeof r<"u"?n=r.protocol+"//"+n:n="https://"+n),o=Eh(n)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const f=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+f+":"+o.port+l,o.href=o.protocol+"://"+f+(r&&r.port===o.port?"":":"+o.port),o}const H4=typeof ArrayBuffer=="function",q4=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,vb=Object.prototype.toString,I4=typeof Blob=="function"||typeof Blob<"u"&&vb.call(Blob)==="[object BlobConstructor]",G4=typeof File=="function"||typeof File<"u"&&vb.call(File)==="[object FileConstructor]";function dm(n){return H4&&(n instanceof ArrayBuffer||q4(n))||I4&&n instanceof Blob||G4&&n instanceof File}function Dc(n,l){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let r=0,o=n.length;r<o;r++)if(Dc(n[r]))return!0;return!1}if(dm(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Dc(n.toJSON(),!0);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&Dc(n[r]))return!0;return!1}function V4(n){const l=[],r=n.data,o=n;return o.data=xh(r,l),o.attachments=l.length,{packet:o,buffers:l}}function xh(n,l){if(!n)return n;if(dm(n)){const r={_placeholder:!0,num:l.length};return l.push(n),r}else if(Array.isArray(n)){const r=new Array(n.length);for(let o=0;o<n.length;o++)r[o]=xh(n[o],l);return r}else if(typeof n=="object"&&!(n instanceof Date)){const r={};for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=xh(n[o],l));return r}return n}function Y4(n,l){return n.data=Oh(n.data,l),delete n.attachments,n}function Oh(n,l){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<l.length)return l[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let r=0;r<n.length;r++)n[r]=Oh(n[r],l);else if(typeof n=="object")for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=Oh(n[r],l));return n}const X4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var We;(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"})(We||(We={}));class F4{constructor(l){this.replacer=l}encode(l){return(l.type===We.EVENT||l.type===We.ACK)&&Dc(l)?this.encodeAsBinary({type:l.type===We.EVENT?We.BINARY_EVENT:We.BINARY_ACK,nsp:l.nsp,data:l.data,id:l.id}):[this.encodeAsString(l)]}encodeAsString(l){let r=""+l.type;return(l.type===We.BINARY_EVENT||l.type===We.BINARY_ACK)&&(r+=l.attachments+"-"),l.nsp&&l.nsp!=="/"&&(r+=l.nsp+","),l.id!=null&&(r+=l.id),l.data!=null&&(r+=JSON.stringify(l.data,this.replacer)),r}encodeAsBinary(l){const r=V4(l),o=this.encodeAsString(r.packet),c=r.buffers;return c.unshift(o),c}}class hm extends rn{constructor(l){super(),this.reviver=l}add(l){let r;if(typeof l=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(l);const o=r.type===We.BINARY_EVENT;o||r.type===We.BINARY_ACK?(r.type=o?We.EVENT:We.ACK,this.reconstructor=new K4(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(dm(l)||l.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(l),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+l)}decodeString(l){let r=0;const o={type:Number(l.charAt(0))};if(We[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===We.BINARY_EVENT||o.type===We.BINARY_ACK){const f=r+1;for(;l.charAt(++r)!=="-"&&r!=l.length;);const d=l.substring(f,r);if(d!=Number(d)||l.charAt(r)!=="-")throw new Error("Illegal attachments");o.attachments=Number(d)}if(l.charAt(r+1)==="/"){const f=r+1;for(;++r&&!(l.charAt(r)===","||r===l.length););o.nsp=l.substring(f,r)}else o.nsp="/";const c=l.charAt(r+1);if(c!==""&&Number(c)==c){const f=r+1;for(;++r;){const d=l.charAt(r);if(d==null||Number(d)!=d){--r;break}if(r===l.length)break}o.id=Number(l.substring(f,r+1))}if(l.charAt(++r)){const f=this.tryParse(l.substr(r));if(hm.isPayloadValid(o.type,f))o.data=f;else throw new Error("invalid payload")}return o}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,r){switch(l){case We.CONNECT:return Nv(r);case We.DISCONNECT:return r===void 0;case We.CONNECT_ERROR:return typeof r=="string"||Nv(r);case We.EVENT:case We.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&X4.indexOf(r[0])===-1);case We.ACK:case We.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class K4{constructor(l){this.packet=l,this.buffers=[],this.reconPack=l}takeBinaryData(l){if(this.buffers.push(l),this.buffers.length===this.reconPack.attachments){const r=Y4(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Nv(n){return Object.prototype.toString.call(n)==="[object Object]"}const J4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:hm,Encoder:F4,get PacketType(){return We}},Symbol.toStringTag,{value:"Module"}));function Ia(n,l,r){return n.on(l,r),function(){n.off(l,r)}}const Z4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class yb extends rn{constructor(l,r,o){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=l,this.nsp=r,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[Ia(l,"open",this.onopen.bind(this)),Ia(l,"packet",this.onpacket.bind(this)),Ia(l,"error",this.onerror.bind(this)),Ia(l,"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(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...r){var o,c,f;if(Z4.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(r.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const d={type:We.EVENT,data:r};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const y=this.ids++,b=r.pop();this._registerAckCallback(y,b),d.id=y}const m=(c=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||c===void 0?void 0:c.writable,h=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!m||(h?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(l,r){var o;const c=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(c===void 0){this.acks[l]=r;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===l&&this.sendBuffer.splice(m,1);r.call(this,new Error("operation has timed out"))},c),d=(...m)=>{this.io.clearTimeoutFn(f),r.apply(this,m)};d.withError=!0,this.acks[l]=d}emitWithAck(l,...r){return new Promise((o,c)=>{const f=(d,m)=>d?c(d):o(m);f.withError=!0,r.push(f),this.emit(l,...r)})}_addToQueue(l){let r;typeof l[l.length-1]=="function"&&(r=l.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((c,...f)=>(this._queue[0],c!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(c)):(this._queue.shift(),r&&r(null,...f)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(l=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!l||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:We.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",l,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(l=>{if(!this.sendBuffer.some(o=>String(o.id)===l)){const o=this.acks[l];delete this.acks[l],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case We.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.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 We.EVENT:case We.BINARY_EVENT:this.onevent(l);break;case We.ACK:case We.BINARY_ACK:this.onack(l);break;case We.DISCONNECT:this.ondisconnect();break;case We.CONNECT_ERROR:this.destroy();const o=new Error(l.data.message);o.data=l.data.data,this.emitReserved("connect_error",o);break}}onevent(l){const r=l.data||[];l.id!=null&&r.push(this.ack(l.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const o of r)o.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const r=this;let o=!1;return function(...c){o||(o=!0,r.packet({type:We.ACK,id:l,data:c}))}}onack(l){const r=this.acks[l.id];typeof r=="function"&&(delete this.acks[l.id],r.withError&&l.data.unshift(null),r.apply(this,l.data))}onconnect(l,r){this.id=l,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:We.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const r=this._anyListeners;for(let o=0;o<r.length;o++)if(l===r[o])return r.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const r=this._anyOutgoingListeners;for(let o=0;o<r.length;o++)if(l===r[o])return r.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const o of r)o.apply(this,l.data)}}}function ji(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}ji.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var l=Math.random(),r=Math.floor(l*this.jitter*n);n=(Math.floor(l*10)&1)==0?n-r:n+r}return Math.min(n,this.max)|0};ji.prototype.reset=function(){this.attempts=0};ji.prototype.setMin=function(n){this.ms=n};ji.prototype.setMax=function(n){this.max=n};ji.prototype.setJitter=function(n){this.jitter=n};class wh extends rn{constructor(l,r){var o;super(),this.nsps={},this.subs=[],l&&typeof l=="object"&&(r=l,l=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,_u(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((o=r.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new ji({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=l;const c=r.parser||J4;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(l){return arguments.length?(this._reconnection=!!l,l||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(l){return l===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=l,this)}reconnectionDelay(l){var r;return l===void 0?this._reconnectionDelay:(this._reconnectionDelay=l,(r=this.backoff)===null||r===void 0||r.setMin(l),this)}randomizationFactor(l){var r;return l===void 0?this._randomizationFactor:(this._randomizationFactor=l,(r=this.backoff)===null||r===void 0||r.setJitter(l),this)}reconnectionDelayMax(l){var r;return l===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=l,(r=this.backoff)===null||r===void 0||r.setMax(l),this)}timeout(l){return arguments.length?(this._timeout=l,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(l){if(~this._readyState.indexOf("open"))return this;this.engine=new j4(this.uri,this.opts);const r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;const c=Ia(r,"open",function(){o.onopen(),l&&l()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),l?l(m):this.maybeReconnectOnOpen()},d=Ia(r,"error",f);if(this._timeout!==!1){const m=this._timeout,h=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),r.close()},m);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(c),this.subs.push(d),this}connect(l){return this.open(l)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const l=this.engine;this.subs.push(Ia(l,"ping",this.onping.bind(this)),Ia(l,"data",this.ondata.bind(this)),Ia(l,"error",this.onerror.bind(this)),Ia(l,"close",this.onclose.bind(this)),Ia(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(l){try{this.decoder.add(l)}catch(r){this.onclose("parse error",r)}}ondecoded(l){bu(()=>{this.emitReserved("packet",l)},this.setTimeoutFn)}onerror(l){this.emitReserved("error",l)}socket(l,r){let o=this.nsps[l];return o?this._autoConnect&&!o.active&&o.connect():(o=new yb(this,l,r),this.nsps[l]=o),o}_destroy(l){const r=Object.keys(this.nsps);for(const o of r)if(this.nsps[o].active)return;this._close()}_packet(l){const r=this.encoder.encode(l);for(let o=0;o<r.length;o++)this.engine.write(r[o],l.options)}cleanup(){this.subs.forEach(l=>l()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(l,r){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",l,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const l=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const o=this.setTimeoutFn(()=>{l.skipReconnect||(this.emitReserved("reconnect_attempt",l.backoff.attempts),!l.skipReconnect&&l.open(c=>{c?(l._reconnecting=!1,l.reconnect(),this.emitReserved("reconnect_error",c)):l.onreconnect()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){const l=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",l)}}const Ho={};function Lc(n,l){typeof n=="object"&&(l=n,n=void 0),l=l||{};const r=U4(n,l.path||"/socket.io"),o=r.source,c=r.id,f=r.path,d=Ho[c]&&f in Ho[c].nsps,m=l.forceNew||l["force new connection"]||l.multiplex===!1||d;let h;return m?h=new wh(o,l):(Ho[c]||(Ho[c]=new wh(o,l)),h=Ho[c]),r.query&&!l.query&&(l.query=r.queryKey),h.socket(r.path,l)}Object.assign(Lc,{Manager:wh,Socket:yb,io:Lc,connect:Lc});const W4=[Gv,Vv,Hv,qv,YA,...mS,...nC,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],P4=({dispatch:n,getState:l})=>r=>{let o=null;return c=>{const f=r(c);if(c.type===Zh){o?.disconnect(),n(vS());const m={path:`/website-messenger/${c.clientName}/socket.io`,query:c.querystrings};o=Lc(m),o.on("action",n),o.on("connect",()=>n(yS())),o.on("disconnect",()=>n(bS())),o.on("reconnect",()=>n(_S())),o.on("set-translations",(h,p)=>{n(Fx({language:h,messages:Hx(h,p)}))}),o.on("set-settings",h=>{n(Zx(h))}),o.on("enable-conversation-rating",h=>n(oC(h))),o.on("speech-transcription",h=>n(lC(h))),o.on("restore-client-state",h=>{n(gS(h.sessionId)),n(cC(h.messages))}),o.on("expand-window",({devices:h,initial:p=!1})=>{n({type:Zv,devices:h,initial:p})}),o.on("restart-chat",()=>{n(Wo())}),o.on("login-success",h=>{n(iS({loginToken:h.loginToken}))})}else if(c.type==="start-screen/requestLogin")o?.emit("login-requested",c.payload);else if(c.type===fu)o?.emit("start-chat",c.payload);else if(c.type===du)o?.emit("terminate-session",c.payload);else if(c.type===tC)o?.emit("get-started",JSON.stringify(c));else if(c.type===Uh)o?.emit("audio-message",c.buffer);else if(c.type===zh)o?.emit("conversation-rating",c.payload);else if(c.type===Pv){const{connection:{sessionId:d}}=l();if(d){const m=au(),h=new URL(`/${encodeURIComponent(m)}/transcript-pdf/${encodeURIComponent(d)}`,window.location.origin);window.location.href=h.toString()}}else W4.indexOf(c.type)===-1&&c.meta===void 0&&o&&o.emit("action",JSON.stringify(c));return f}},bb=au(),Q4={...$x(bb),intl:eb},Rh=FC({middleware:n=>n().concat(P4),reducer:Px,preloadedState:Q4});Rh.subscribe(s6(()=>{const n=Rh.getState();e4(bb,{connection:n.connection,startScreen:n.startScreen})},1e3));const $4=document.getElementById("root"),eO=k2.createRoot($4);eO.render(v.jsx(zA,{store:Rh,children:v.jsx(zx,{})}));
77
- //# sourceMappingURL=index-2NlIygAz.js.map