@botfabrik/engine-webclient 4.110.5 → 4.111.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,76 +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"]'))s(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"&&s(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 s(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:{}},Rs={};var W0;function x2(){if(W0)return Rs;W0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(s,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:s,key:d,ref:c!==void 0?c:null,props:f}}return Rs.Fragment=l,Rs.jsx=r,Rs.jsxs=r,Rs}var Q0;function O2(){return Q0||(Q0=1,Nd.exports=x2()),Nd.exports}var v=O2(),Md={exports:{}},ws={},Dd={exports:{}},Ld={};var P0;function R2(){return P0||(P0=1,(function(n){function l(N,F){var ne=N.length;N.push(F);e:for(;0<ne;){var le=ne-1>>>1,_e=N[le];if(0<c(_e,F))N[le]=F,N[ne]=_e,ne=le;else break e}}function r(N){return N.length===0?null:N[0]}function s(N){if(N.length===0)return null;var F=N[0],ne=N.pop();if(ne!==F){N[0]=ne;e:for(var le=0,_e=N.length,T=_e>>>1;le<T;){var V=2*(le+1)-1,X=N[V],re=V+1,J=N[re];if(0>c(X,ne))re<_e&&0>c(J,X)?(N[le]=J,N[re]=ne,le=re):(N[le]=X,N[V]=ne,le=V);else if(re<_e&&0>c(J,ne))N[le]=J,N[re]=ne,le=re;else break e}}return F}function c(N,F){var ne=N.sortIndex-F.sortIndex;return ne!==0?ne:N.id-F.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,x=!1,C=!1,E=!1,O=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function z(N){for(var F=r(p);F!==null;){if(F.callback===null)s(p);else if(F.startTime<=N)s(p),F.sortIndex=F.expirationTime,l(h,F);else break;F=r(p)}}function H(N){if(C=!1,z(N),!x)if(r(h)!==null)x=!0,B||(B=!0,oe());else{var F=r(p);F!==null&&fe(H,F.startTime-N)}}var B=!1,Y=-1,W=5,ie=-1;function ee(){return E?!0:!(n.unstable_now()-ie<W)}function ae(){if(E=!1,B){var N=n.unstable_now();ie=N;var F=!0;try{e:{x=!1,C&&(C=!1,L(Y),Y=-1),S=!0;var ne=A;try{t:{for(z(N),b=r(h);b!==null&&!(b.expirationTime>N&&ee());){var le=b.callback;if(typeof le=="function"){b.callback=null,A=b.priorityLevel;var _e=le(b.expirationTime<=N);if(N=n.unstable_now(),typeof _e=="function"){b.callback=_e,z(N),F=!0;break t}b===r(h)&&s(h),z(N)}else s(h);b=r(h)}if(b!==null)F=!0;else{var T=r(p);T!==null&&fe(H,T.startTime-N),F=!1}}break e}finally{b=null,A=ne,S=!1}F=void 0}}finally{F?oe():B=!1}}}var oe;if(typeof M=="function")oe=function(){M(ae)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ye=pe.port2;pe.port1.onmessage=ae,oe=function(){ye.postMessage(null)}}else oe=function(){O(ae,0)};function fe(N,F){Y=O(function(){N(n.unstable_now())},F)}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(N){N.callback=null},n.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<N?Math.floor(1e3/N):5},n.unstable_getCurrentPriorityLevel=function(){return A},n.unstable_next=function(N){switch(A){case 1:case 2:case 3:var F=3;break;default:F=A}var ne=A;A=F;try{return N()}finally{A=ne}},n.unstable_requestPaint=function(){E=!0},n.unstable_runWithPriority=function(N,F){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var ne=A;A=N;try{return F()}finally{A=ne}},n.unstable_scheduleCallback=function(N,F,ne){var le=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?le+ne:le):ne=le,N){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=ne+_e,N={id:y++,callback:F,priorityLevel:N,startTime:ne,expirationTime:_e,sortIndex:-1},ne>le?(N.sortIndex=ne,l(p,N),r(h)===null&&N===r(p)&&(C?(L(Y),Y=-1):C=!0,fe(H,ne-le))):(N.sortIndex=_e,l(h,N),x||S||(x=!0,B||(B=!0,oe()))),N},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(N){var F=A;return function(){var ne=A;A=F;try{return N.apply(this,arguments)}finally{A=ne}}}})(Ld)),Ld}var $0;function w2(){return $0||($0=1,Dd.exports=R2()),Dd.exports}var zd={exports:{}},we={};var e1;function N2(){if(e1)return we;e1=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=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 x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function O(T,V,X){this.props=T,this.context=V,this.refs=E,this.updater=X||x}O.prototype.isReactComponent={},O.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")},O.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function L(){}L.prototype=O.prototype;function M(T,V,X){this.props=T,this.context=V,this.refs=E,this.updater=X||x}var z=M.prototype=new L;z.constructor=M,C(z,O.prototype),z.isPureReactComponent=!0;var H=Array.isArray;function B(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ie(T,V,X){var re=X.ref;return{$$typeof:n,type:T,key:V,ref:re!==void 0?re:null,props:X}}function ee(T,V){return ie(T.type,V,T.props)}function ae(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function oe(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(X){return V[X]})}var pe=/\/+/g;function ye(T,V){return typeof T=="object"&&T!==null&&T.key!=null?oe(""+T.key):V.toString(36)}function fe(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 N(T,V,X,re,J){var ue=typeof T;(ue==="undefined"||ue==="boolean")&&(T=null);var Ce=!1;if(T===null)Ce=!0;else switch(ue){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(T.$$typeof){case n:case l:Ce=!0;break;case y:return Ce=T._init,N(Ce(T._payload),V,X,re,J)}}if(Ce)return J=J(T),Ce=re===""?"."+ye(T,0):re,H(J)?(X="",Ce!=null&&(X=Ce.replace(pe,"$&/")+"/"),N(J,V,X,"",function(Ge){return Ge})):J!=null&&(ae(J)&&(J=ee(J,X+(J.key==null||T&&T.key===J.key?"":(""+J.key).replace(pe,"$&/")+"/")+Ce)),V.push(J)),1;Ce=0;var ce=re===""?".":re+":";if(H(T))for(var Re=0;Re<T.length;Re++)re=T[Re],ue=ce+ye(re,Re),Ce+=N(re,V,X,ue,J);else if(Re=S(T),typeof Re=="function")for(T=Re.call(T),Re=0;!(re=T.next()).done;)re=re.value,ue=ce+ye(re,Re++),Ce+=N(re,V,X,ue,J);else if(ue==="object"){if(typeof T.then=="function")return N(fe(T),V,X,re,J);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 Ce}function F(T,V,X){if(T==null)return T;var re=[],J=0;return N(T,re,"","",function(ue){return V.call(X,ue,J++)}),re}function ne(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(X){(T._status===0||T._status===-1)&&(T._status=1,T._result=X)},function(X){(T._status===0||T._status===-1)&&(T._status=2,T._result=X)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var le=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:F,forEach:function(T,V,X){F(T,function(){V.apply(this,arguments)},X)},count:function(T){var V=0;return F(T,function(){V++}),V},toArray:function(T){return F(T,function(V){return V})||[]},only:function(T){if(!ae(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return we.Activity=b,we.Children=_e,we.Component=O,we.Fragment=r,we.Profiler=c,we.PureComponent=M,we.StrictMode=s,we.Suspense=h,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,we.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Y.H.useMemoCache(T)}},we.cache=function(T){return function(){return T.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(T,V,X){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var re=C({},T.props),J=T.key;if(V!=null)for(ue in V.key!==void 0&&(J=""+V.key),V)!W.call(V,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&V.ref===void 0||(re[ue]=V[ue]);var ue=arguments.length-2;if(ue===1)re.children=X;else if(1<ue){for(var Ce=Array(ue),ce=0;ce<ue;ce++)Ce[ce]=arguments[ce+2];re.children=Ce}return ie(T.type,J,re)},we.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},we.createElement=function(T,V,X){var re,J={},ue=null;if(V!=null)for(re in V.key!==void 0&&(ue=""+V.key),V)W.call(V,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(J[re]=V[re]);var Ce=arguments.length-2;if(Ce===1)J.children=X;else if(1<Ce){for(var ce=Array(Ce),Re=0;Re<Ce;Re++)ce[Re]=arguments[Re+2];J.children=ce}if(T&&T.defaultProps)for(re in Ce=T.defaultProps,Ce)J[re]===void 0&&(J[re]=Ce[re]);return ie(T,ue,J)},we.createRef=function(){return{current:null}},we.forwardRef=function(T){return{$$typeof:m,render:T}},we.isValidElement=ae,we.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:ne}},we.memo=function(T,V){return{$$typeof:p,type:T,compare:V===void 0?null:V}},we.startTransition=function(T){var V=Y.T,X={};Y.T=X;try{var re=T(),J=Y.S;J!==null&&J(X,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(B,le)}catch(ue){le(ue)}finally{V!==null&&X.types!==null&&(V.types=X.types),Y.T=V}},we.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},we.use=function(T){return Y.H.use(T)},we.useActionState=function(T,V,X){return Y.H.useActionState(T,V,X)},we.useCallback=function(T,V){return Y.H.useCallback(T,V)},we.useContext=function(T){return Y.H.useContext(T)},we.useDebugValue=function(){},we.useDeferredValue=function(T,V){return Y.H.useDeferredValue(T,V)},we.useEffect=function(T,V){return Y.H.useEffect(T,V)},we.useEffectEvent=function(T){return Y.H.useEffectEvent(T)},we.useId=function(){return Y.H.useId()},we.useImperativeHandle=function(T,V,X){return Y.H.useImperativeHandle(T,V,X)},we.useInsertionEffect=function(T,V){return Y.H.useInsertionEffect(T,V)},we.useLayoutEffect=function(T,V){return Y.H.useLayoutEffect(T,V)},we.useMemo=function(T,V){return Y.H.useMemo(T,V)},we.useOptimistic=function(T,V){return Y.H.useOptimistic(T,V)},we.useReducer=function(T,V,X){return Y.H.useReducer(T,V,X)},we.useRef=function(T){return Y.H.useRef(T)},we.useState=function(T){return Y.H.useState(T)},we.useSyncExternalStore=function(T,V,X){return Y.H.useSyncExternalStore(T,V,X)},we.useTransition=function(){return Y.H.useTransition()},we.version="19.2.4",we}var t1;function tu(){return t1||(t1=1,zd.exports=N2()),zd.exports}var kd={exports:{}},Rn={};var n1;function M2(){if(n1)return Rn;n1=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 s={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 Rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Rn.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)},Rn.flushSync=function(h){var p=d.T,y=s.p;try{if(d.T=null,s.p=2,h)return h()}finally{d.T=p,s.p=y,s.d.f()}},Rn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(h,p))},Rn.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Rn.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"?s.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:A,fetchPriority:S}):y==="script"&&s.d.X(h,{crossOrigin:b,integrity:A,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Rn.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);s.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&&s.d.M(h)},Rn.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);s.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})}},Rn.preloadModule=function(h,p){if(typeof h=="string")if(p){var y=m(p.as,p.crossOrigin);s.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 s.d.m(h)},Rn.requestFormReset=function(h){s.d.r(h)},Rn.unstable_batchedUpdates=function(h,p){return h(p)},Rn.useFormState=function(h,p,y){return d.H.useFormState(h,p,y)},Rn.useFormStatus=function(){return d.H.useHostTransitionStatus()},Rn.version="19.2.4",Rn}var a1;function D2(){if(a1)return kd.exports;a1=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 l1;function L2(){if(l1)return ws;l1=1;var n=w2(),l=tu(),r=D2();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function 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(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var o=a.return;if(o===null)break;var u=o.alternate;if(u===null){if(i=o.return,i!==null){a=i;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===a)return h(o),e;if(u===i)return h(o),t;u=u.sibling}throw Error(s(188))}if(a.return!==i.return)a=o,i=u;else{for(var g=!1,_=o.child;_;){if(_===a){g=!0,a=o,i=u;break}if(_===i){g=!0,i=o,a=u;break}_=_.sibling}if(!g){for(_=u.child;_;){if(_===a){g=!0,a=u,i=o;break}if(_===i){g=!0,i=u,a=o;break}_=_.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(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"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),M=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case O:return"Profiler";case E:return"StrictMode";case H:return"Suspense";case B:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case M:return e.displayName||"Context";case L: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 Y:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var fe=Array.isArray,N=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},le=[],_e=-1;function T(e){return{current:e}}function V(e){0>_e||(e.current=le[_e],le[_e]=null,_e--)}function X(e,t){_e++,le[_e]=e.current,e.current=t}var re=T(null),J=T(null),ue=T(null),Ce=T(null);function ce(e,t){switch(X(ue,t),X(J,e),X(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?b0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=b0(t),e=_0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(re),X(re,e)}function Re(){V(re),V(J),V(ue)}function Ge(e){e.memoizedState!==null&&X(Ce,e);var t=re.current,a=_0(t,e.type);t!==a&&(X(J,e),X(re,a))}function rt(e){J.current===e&&(V(re),V(J)),Ce.current===e&&(V(Ce),Es._currentValue=ne)}var he,$;function ze(e){if(he===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||"",$=-1<a.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+he+e+$}var Te=!1;function wt(e,t){if(!e||Te)return"";Te=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(G){var I=G}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(G){I=G}e.call(Q.prototype)}}else{try{throw Error()}catch(G){I=G}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(G){if(G&&I&&typeof G.stack=="string")return[G.stack,I.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),g=u[0],_=u[1];if(g&&_){var R=g.split(`
|
|
4
|
-
`),U=_.split(`
|
|
5
|
-
`);for(o=i=0;i<R.length&&!R[i].includes("DetermineComponentFrameRoot");)i++;for(;o<U.length&&!U[o].includes("DetermineComponentFrameRoot");)o++;if(i===R.length||o===U.length)for(i=R.length-1,o=U.length-1;1<=i&&0<=o&&R[i]!==U[o];)o--;for(;1<=i&&0<=o;i--,o--)if(R[i]!==U[o]){if(i!==1||o!==1)do if(i--,o--,0>o||R[i]!==U[o]){var K=`
|
|
6
|
-
`+R[i].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=i&&0<=o);break}}}finally{Te=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ze(a):""}function Pe(e,t){switch(e.tag){case 26:case 27:case 5:return ze(e.type);case 16:return ze("Lazy");case 13:return e.child!==t&&t!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return wt(e.type,!1);case 11:return wt(e.type.render,!1);case 1:return wt(e.type,!0);case 31:return ze("Activity");default:return""}}function Ke(e){try{var t="",a=null;do t+=Pe(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
|
|
7
|
-
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}}var Lt=Object.prototype.hasOwnProperty,zt=n.unstable_scheduleCallback,kt=n.unstable_cancelCallback,Fe=n.unstable_shouldYield,qa=n.unstable_requestPaint,dt=n.unstable_now,Nn=n.unstable_getCurrentPriorityLevel,En=n.unstable_ImmediatePriority,Gt=n.unstable_UserBlockingPriority,Qt=n.unstable_NormalPriority,Pa=n.unstable_LowPriority,gn=n.unstable_IdlePriority,Tn=n.log,Qn=n.unstable_setDisableYieldValue,Bt=null,nt=null;function Ve(e){if(typeof Tn=="function"&&Qn(e),nt&&typeof nt.setStrictMode=="function")try{nt.setStrictMode(Bt,e)}catch{}}var At=Math.clz32?Math.clz32:pr,Mn=Math.log,gt=Math.LN2;function pr(e){return e>>>=0,e===0?32:31-(Mn(e)/gt|0)|0}var Pn=256,on=262144,Kt=4194304;function Nt(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 ma(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,u=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var _=i&134217727;return _!==0?(i=_&~u,i!==0?o=Nt(i):(g&=_,g!==0?o=Nt(g):a||(a=_&~e,a!==0&&(o=Nt(a))))):(_=i&~u,_!==0?o=Nt(_):g!==0?o=Nt(g):a||(a=i&~e,a!==0&&(o=Nt(a)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:o}function $a(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 wa(){var e=Kt;return Kt<<=1,(Kt&62914560)===0&&(Kt=4194304),e}function gr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ia(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Nl(e,t,a,i,o,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,R=e.expirationTimes,U=e.hiddenUpdates;for(a=g&~a;0<a;){var K=31-At(a),Q=1<<K;_[K]=0,R[K]=-1;var I=U[K];if(I!==null)for(U[K]=null,K=0;K<I.length;K++){var G=I[K];G!==null&&(G.lane&=-536870913)}a&=~Q}i!==0&&vr(e,i,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(g&~t))}function vr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-At(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function Ml(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-At(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function Dl(e,t){var a=t&-t;return a=(a&42)!==0?1:xn(a),(a&(e.suspendedLanes|t))!==0?0:a}function xn(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 $n(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function yr(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:V0(e.type))}function cn(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var Dn=Math.random().toString(36).slice(2),Et="__reactFiber$"+Dn,vt="__reactProps$"+Dn,Vn="__reactContainer$"+Dn,Ll="__reactEvents$"+Dn,br="__reactListeners$"+Dn,zl="__reactHandles$"+Dn,_r="__reactResources$"+Dn,me="__reactMarker$"+Dn;function w(e){delete e[Et],delete e[vt],delete e[Ll],delete e[br],delete e[zl]}function te(e){var t=e[Et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Vn]||a[Et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=O0(e);e!==null;){if(a=e[Et])return a;e=O0(e)}return t}e=a,a=e.parentNode}return null}function ve(e){if(e=e[Et]||e[Vn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Je(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ut(e){var t=e[_r];return t||(t=e[_r]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Oe(e){e[me]=!0}var un=new Set,vn={};function Pt(e,t){pa(e,t),pa(e+"Capture",t)}function pa(e,t){for(vn[e]=t,e=0;e<t.length;e++)un.add(t[e])}var Ft=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]*$"),Ar={},Cr={};function Au(e){return Lt.call(Cr,e)?!0:Lt.call(Ar,e)?!1:Ft.test(e)?Cr[e]=!0:(Ar[e]=!0,!1)}function Zr(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 Wr(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 Na(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 On(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hi(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cu(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 o=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.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 Ga(e){if(!e._valueTracker){var t=Hi(e)?"checked":"value";e._valueTracker=Cu(e,t,""+e[t])}}function eo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Hi(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function kl(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 Su=/[\n"\\]/g;function Yn(e){return e.replace(Su,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qi(e,t,a,i,o,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=""+On(t)):e.value!==""+On(t)&&(e.value=""+On(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Eu(e,g,On(t)):a!=null?Eu(e,g,On(a)):i!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+On(_):e.removeAttribute("name")}function to(e,t,a,i,o,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)){Ga(e);return}a=a!=null?""+On(a):"",t=t!=null?""+On(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,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),Ga(e)}function Eu(e,t,a){t==="number"&&kl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Qr(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&i&&(e[a].defaultSelected=!0)}else{for(a=""+On(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function mm(e,t,a){if(t!=null&&(t=""+On(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+On(a):""}function pm(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(fe(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=On(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),Ga(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 gm(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 vm(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(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 o in t)i=t[o],t.hasOwnProperty(o)&&a[o]!==i&&gm(e,o,i)}else for(var u in t)t.hasOwnProperty(u)&&gm(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 no(e){return Cb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function el(){}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 $r=null,ei=null;function ym(e){var t=ve(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(qi(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="'+Yn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var o=i[vt]||null;if(!o)throw Error(s(90));qi(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&eo(i)}break e;case"textarea":mm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Qr(e,!!a.multiple,t,!1)}}}var Ru=!1;function bm(e,t,a){if(Ru)return e(t,a);Ru=!0;try{var i=e(t);return i}finally{if(Ru=!1,($r!==null||ei!==null)&&(Yo(),$r&&(t=$r,e=ei,ei=$r=null,ym(t),e)))for(t=0;t<e.length;t++)ym(e[t])}}function Ii(e,t){var a=e.stateNode;if(a===null)return null;var i=a[vt]||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(s(231,t,typeof a));return a}var tl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wu=!1;if(tl)try{var Gi={};Object.defineProperty(Gi,"passive",{get:function(){wu=!0}}),window.addEventListener("test",Gi,Gi),window.removeEventListener("test",Gi,Gi)}catch{wu=!1}var Bl=null,Nu=null,ao=null;function _m(){if(ao)return ao;var e,t=Nu,a=t.length,i,o="value"in Bl?Bl.value:Bl.textContent,u=o.length;for(e=0;e<a&&t[e]===o[e];e++);var g=a-e;for(i=1;i<=g&&t[a-i]===o[u-i];i++);return ao=o.slice(e,1<i?1-i:void 0)}function lo(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 ro(){return!0}function Am(){return!1}function Xn(e){function t(a,i,o,u,g){this._reactName=a,this._targetInst=o,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)?ro:Am,this.isPropagationStopped=Am,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=ro)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var Sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},io=Xn(Sr),Vi=b({},Sr,{view:0,detail:0}),Sb=Xn(Vi),Mu,Du,Yi,so=b({},Vi,{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!==Yi&&(Yi&&e.type==="mousemove"?(Mu=e.screenX-Yi.screenX,Du=e.screenY-Yi.screenY):Du=Mu=0,Yi=e),Mu)},movementY:function(e){return"movementY"in e?e.movementY:Du}}),Cm=Xn(so),Eb=b({},so,{dataTransfer:0}),Tb=Xn(Eb),xb=b({},Vi,{relatedTarget:0}),Lu=Xn(xb),Ob=b({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0}),Rb=Xn(Ob),wb=b({},Sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Nb=Xn(wb),Mb=b({},Sr,{data:0}),Sm=Xn(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({},Vi,{key:function(e){if(e.key){var t=Db[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=lo(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"?lo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?lo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jb=Xn(Bb),Ub=b({},so,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Em=Xn(Ub),Hb=b({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),qb=Xn(Hb),Ib=b({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gb=Xn(Ib),Vb=b({},so,{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=Xn(Vb),Xb=b({},Sr,{newState:0,oldState:0}),Kb=Xn(Xb),Fb=[9,13,27,32],ku=tl&&"CompositionEvent"in window,Xi=null;tl&&"documentMode"in document&&(Xi=document.documentMode);var Jb=tl&&"TextEvent"in window&&!Xi,Tm=tl&&(!ku||Xi&&8<Xi&&11>=Xi),xm=" ",Om=!1;function Rm(e,t){switch(e){case"keyup":return Fb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function Zb(e,t){switch(e){case"compositionend":return wm(t);case"keypress":return t.which!==32?null:(Om=!0,xm);case"textInput":return e=t.data,e===xm&&Om?null:e;default:return null}}function Wb(e,t){if(ti)return e==="compositionend"||!ku&&Rm(e,t)?(e=_m(),ao=Nu=Bl=null,ti=!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 Tm&&t.locale!=="ko"?null:t.data;default:return null}}var Qb={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 Nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qb[e.type]:t==="textarea"}function Mm(e,t,a,i){$r?ei?ei.push(i):ei=[i]:$r=i,t=Qo(t,"onChange"),0<t.length&&(a=new io("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Ki=null,Fi=null;function Pb(e){h0(e,0)}function oo(e){var t=Je(e);if(eo(t))return e}function Dm(e,t){if(e==="change")return t}var Lm=!1;if(tl){var Bu;if(tl){var ju="oninput"in document;if(!ju){var zm=document.createElement("div");zm.setAttribute("oninput","return;"),ju=typeof zm.oninput=="function"}Bu=ju}else Bu=!1;Lm=Bu&&(!document.documentMode||9<document.documentMode)}function km(){Ki&&(Ki.detachEvent("onpropertychange",Bm),Fi=Ki=null)}function Bm(e){if(e.propertyName==="value"&&oo(Fi)){var t=[];Mm(t,Fi,e,Ou(e)),bm(Pb,t)}}function $b(e,t,a){e==="focusin"?(km(),Ki=t,Fi=a,Ki.attachEvent("onpropertychange",Bm)):e==="focusout"&&km()}function e_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oo(Fi)}function t_(e,t){if(e==="click")return oo(t)}function n_(e,t){if(e==="input"||e==="change")return oo(t)}function a_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ea=typeof Object.is=="function"?Object.is:a_;function Ji(e,t){if(ea(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 o=a[i];if(!Lt.call(t,o)||!ea(e[o],t[o]))return!1}return!0}function jm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Um(e,t){var a=jm(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=jm(a)}}function Hm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kl(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=kl(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_=tl&&"documentMode"in document&&11>=document.documentMode,ni=null,Hu=null,Zi=null,qu=!1;function Im(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;qu||ni==null||ni!==kl(i)||(i=ni,"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}),Zi&&Ji(Zi,i)||(Zi=i,i=Qo(Hu,"onSelect"),0<i.length&&(t=new io("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ni)))}function Er(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ai={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionrun:Er("Transition","TransitionRun"),transitionstart:Er("Transition","TransitionStart"),transitioncancel:Er("Transition","TransitionCancel"),transitionend:Er("Transition","TransitionEnd")},Iu={},Gm={};tl&&(Gm=document.createElement("div").style,"AnimationEvent"in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),"TransitionEvent"in window||delete ai.transitionend.transition);function Tr(e){if(Iu[e])return Iu[e];if(!ai[e])return e;var t=ai[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Gm)return Iu[e]=t[a];return e}var Vm=Tr("animationend"),Ym=Tr("animationiteration"),Xm=Tr("animationstart"),r_=Tr("transitionrun"),i_=Tr("transitionstart"),s_=Tr("transitioncancel"),Km=Tr("transitionend"),Fm=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 Ma(e,t){Fm.set(e,t),Pt(t,[e])}var co=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)},ga=[],li=0,Vu=0;function uo(){for(var e=li,t=Vu=li=0;t<e;){var a=ga[t];ga[t++]=null;var i=ga[t];ga[t++]=null;var o=ga[t];ga[t++]=null;var u=ga[t];if(ga[t++]=null,i!==null&&o!==null){var g=i.pending;g===null?o.next=o:(o.next=g.next,g.next=o),i.pending=o}u!==0&&Jm(a,o,u)}}function fo(e,t,a,i){ga[li++]=e,ga[li++]=t,ga[li++]=a,ga[li++]=i,Vu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Yu(e,t,a,i){return fo(e,t,a,i),ho(e)}function xr(e,t){return fo(e,null,null,t),ho(e)}function Jm(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var o=!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||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-At(a),e=u.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=a|536870912),u):null}function ho(e){if(50<vs)throw vs=0,ed=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function o_(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 ta(e,t,a,i){return new o_(e,t,a,i)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nl(e,t){var a=e.alternate;return a===null?(a=ta(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Zm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function mo(e,t,a,i,o,u){var g=0;if(i=e,typeof e=="function")Xu(e)&&(g=1);else if(typeof e=="string")g=h2(e,a,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=ta(31,a,t,o),e.elementType=ie,e.lanes=u,e;case C:return Or(a.children,o,u,t);case E:g=8,o|=24;break;case O:return e=ta(12,a,t,o|2),e.elementType=O,e.lanes=u,e;case H:return e=ta(13,a,t,o),e.elementType=H,e.lanes=u,e;case B:return e=ta(19,a,t,o),e.elementType=B,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:g=10;break e;case L:g=9;break e;case z:g=11;break e;case Y:g=14;break e;case W:g=16,i=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ta(g,a,t,o),t.elementType=e,t.type=i,t.lanes=u,t}function Or(e,t,a,i){return e=ta(7,e,i,t),e.lanes=a,e}function Ku(e,t,a){return e=ta(6,e,null,t),e.lanes=a,e}function Wm(e){var t=ta(18,null,null,0);return t.stateNode=e,t}function Fu(e,t,a){return t=ta(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 va(e,t){if(typeof e=="object"&&e!==null){var a=Qm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ke(t)},Qm.set(e,t),t)}return{value:e,source:t,stack:Ke(t)}}var ii=[],si=0,po=null,Wi=0,ya=[],ba=0,jl=null,Va=1,Ya="";function al(e,t){ii[si++]=Wi,ii[si++]=po,po=e,Wi=t}function Pm(e,t,a){ya[ba++]=Va,ya[ba++]=Ya,ya[ba++]=jl,jl=e;var i=Va;e=Ya;var o=32-At(i)-1;i&=~(1<<o),a+=1;var u=32-At(t)+o;if(30<u){var g=o-o%5;u=(i&(1<<g)-1).toString(32),i>>=g,o-=g,Va=1<<32-At(t)+o|a<<o|i,Ya=u+e}else Va=1<<u|a<<o|i,Ya=e}function Ju(e){e.return!==null&&(al(e,1),Pm(e,1,0))}function Zu(e){for(;e===po;)po=ii[--si],ii[si]=null,Wi=ii[--si],ii[si]=null;for(;e===jl;)jl=ya[--ba],ya[ba]=null,Ya=ya[--ba],ya[ba]=null,Va=ya[--ba],ya[ba]=null}function $m(e,t){ya[ba++]=Va,ya[ba++]=Ya,ya[ba++]=jl,Va=t.id,Ya=t.overflow,jl=e}var yn=null,Tt=null,Ze=!1,Ul=null,_a=!1,Wu=Error(s(519));function Hl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(va(t,e)),Wu}function ep(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Et]=e,t[vt]=i,a){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(a=0;a<bs.length;a++)qe(bs[a],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),to(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),pm(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||v0(t.textContent,a)?(i.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),i.onScroll!=null&&qe("scroll",t),i.onScrollEnd!=null&&qe("scrollend",t),i.onClick!=null&&(t.onclick=el),t=!0):t=!1,t||Hl(e,!0)}function tp(e){for(yn=e.return;yn;)switch(yn.tag){case 5:case 31:case 13:_a=!1;return;case 27:case 3:_a=!0;return;default:yn=yn.return}}function oi(e){if(e!==yn)return!1;if(!Ze)return tp(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&&Tt&&Hl(e),tp(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Tt=x0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Tt=x0(e)}else t===27?(t=Tt,$l(e.type)?(e=_d,_d=null,Tt=e):Tt=t):Tt=yn?Ca(e.stateNode.nextSibling):null;return!0}function Rr(){Tt=yn=null,Ze=!1}function Qu(){var e=Ul;return e!==null&&(Zn===null?Zn=e:Zn.push.apply(Zn,e),Ul=null),e}function Qi(e){Ul===null?Ul=[e]:Ul.push(e)}var Pu=T(null),wr=null,ll=null;function ql(e,t,a){X(Pu,t._currentValue),t._currentValue=a}function rl(e){e._currentValue=Pu.current,V(Pu)}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 o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var g=o.child;u=u.firstContext;e:for(;u!==null;){var _=u;u=o;for(var R=0;R<t.length;R++)if(_.context===t[R]){u.lanes|=a,_=u.alternate,_!==null&&(_.lanes|=a),$u(u.return,a,e),i||(g=null);break e}u=_.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(s(341));g.lanes|=a,u=g.alternate,u!==null&&(u.lanes|=a),$u(g,a,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function ci(e,t,a,i){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var _=o.type;ea(o.pendingProps.value,g.value)||(e!==null?e.push(_):e=[_])}}else if(o===Ce.current){if(g=o.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Es):e=[Es])}o=o.return}e!==null&&ef(t,e,a,i),t.flags|=262144}function go(e){for(e=e.firstContext;e!==null;){if(!ea(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Nr(e){wr=e,ll=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bn(e){return np(wr,e)}function vo(e,t){return wr===null&&Nr(e),np(e,t)}function np(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ll===null){if(e===null)throw Error(s(308));ll=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ll=ll.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,$t={$$typeof:M,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 $i=null,nf=0,ui=0,fi=null;function d_(e,t){if($i===null){var a=$i=[];nf=0,ui=id(),fi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return nf++,t.then(ap,ap),t}function ap(){if(--nf===0&&$i!==null){fi!==null&&(fi.status="fulfilled");var e=$i;$i=null,ui=0,fi=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(o){a.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),i}var lp=N.S;N.S=function(e,t){Ig=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&d_(e,t),lp!==null&&lp(e,t)};var Mr=T(null);function af(){var e=Mr.current;return e!==null?e:Ct.pooledCache}function yo(e,t){t===null?X(Mr,Mr.current):X(Mr,t.pool)}function rp(){var e=af();return e===null?null:{parent:$t._currentValue,pool:e}}var di=Error(s(460)),lf=Error(s(474)),bo=Error(s(542)),_o={then:function(){}};function ip(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(el,el),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cp(e),e;default:if(typeof t.status=="string")t.then(el,el);else{if(e=Ct,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cp(e),e}throw Lr=t,di}}function Dr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Lr=a,di):a}}var Lr=null;function op(){if(Lr===null)throw Error(s(459));var e=Lr;return Lr=null,e}function cp(e){if(e===di||e===bo)throw Error(s(483))}var hi=null,es=0;function Ao(e){var t=es;return es+=1,hi===null&&(hi=[]),sp(hi,e,t)}function ts(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Co(e,t){throw t.$$typeof===A?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function up(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 o(k,D){return k=nl(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,Z){return D===null||D.tag!==6?(D=Ku(j,k.mode,Z),D.return=k,D):(D=o(D,j),D.return=k,D)}function R(k,D,j,Z){var Se=j.type;return Se===C?K(k,D,j.props.children,Z,j.key):D!==null&&(D.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===W&&Dr(Se)===D.type)?(D=o(D,j.props),ts(D,j),D.return=k,D):(D=mo(j.type,j.key,j.props,null,k.mode,Z),ts(D,j),D.return=k,D)}function U(k,D,j,Z){return D===null||D.tag!==4||D.stateNode.containerInfo!==j.containerInfo||D.stateNode.implementation!==j.implementation?(D=Fu(j,k.mode,Z),D.return=k,D):(D=o(D,j.children||[]),D.return=k,D)}function K(k,D,j,Z,Se){return D===null||D.tag!==7?(D=Or(j,k.mode,Z,Se),D.return=k,D):(D=o(D,j),D.return=k,D)}function Q(k,D,j){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Ku(""+D,k.mode,j),D.return=k,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return j=mo(D.type,D.key,D.props,null,k.mode,j),ts(j,D),j.return=k,j;case x:return D=Fu(D,k.mode,j),D.return=k,D;case W:return D=Dr(D),Q(k,D,j)}if(fe(D)||oe(D))return D=Or(D,k.mode,j,null),D.return=k,D;if(typeof D.then=="function")return Q(k,Ao(D),j);if(D.$$typeof===M)return Q(k,vo(k,D),j);Co(k,D)}return null}function I(k,D,j,Z){var Se=D!==null?D.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return Se!==null?null:_(k,D,""+j,Z);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return j.key===Se?R(k,D,j,Z):null;case x:return j.key===Se?U(k,D,j,Z):null;case W:return j=Dr(j),I(k,D,j,Z)}if(fe(j)||oe(j))return Se!==null?null:K(k,D,j,Z,null);if(typeof j.then=="function")return I(k,D,Ao(j),Z);if(j.$$typeof===M)return I(k,D,vo(k,j),Z);Co(k,j)}return null}function G(k,D,j,Z,Se){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return k=k.get(j)||null,_(D,k,""+Z,Se);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return k=k.get(Z.key===null?j:Z.key)||null,R(D,k,Z,Se);case x:return k=k.get(Z.key===null?j:Z.key)||null,U(D,k,Z,Se);case W:return Z=Dr(Z),G(k,D,j,Z,Se)}if(fe(Z)||oe(Z))return k=k.get(j)||null,K(D,k,Z,Se,null);if(typeof Z.then=="function")return G(k,D,j,Ao(Z),Se);if(Z.$$typeof===M)return G(k,D,j,vo(D,Z),Se);Co(D,Z)}return null}function be(k,D,j,Z){for(var Se=null,it=null,Ae=D,De=D=0,Xe=null;Ae!==null&&De<j.length;De++){Ae.index>De?(Xe=Ae,Ae=null):Xe=Ae.sibling;var st=I(k,Ae,j[De],Z);if(st===null){Ae===null&&(Ae=Xe);break}e&&Ae&&st.alternate===null&&t(k,Ae),D=u(st,D,De),it===null?Se=st:it.sibling=st,it=st,Ae=Xe}if(De===j.length)return a(k,Ae),Ze&&al(k,De),Se;if(Ae===null){for(;De<j.length;De++)Ae=Q(k,j[De],Z),Ae!==null&&(D=u(Ae,D,De),it===null?Se=Ae:it.sibling=Ae,it=Ae);return Ze&&al(k,De),Se}for(Ae=i(Ae);De<j.length;De++)Xe=G(Ae,k,De,j[De],Z),Xe!==null&&(e&&Xe.alternate!==null&&Ae.delete(Xe.key===null?De:Xe.key),D=u(Xe,D,De),it===null?Se=Xe:it.sibling=Xe,it=Xe);return e&&Ae.forEach(function(lr){return t(k,lr)}),Ze&&al(k,De),Se}function xe(k,D,j,Z){if(j==null)throw Error(s(151));for(var Se=null,it=null,Ae=D,De=D=0,Xe=null,st=j.next();Ae!==null&&!st.done;De++,st=j.next()){Ae.index>De?(Xe=Ae,Ae=null):Xe=Ae.sibling;var lr=I(k,Ae,st.value,Z);if(lr===null){Ae===null&&(Ae=Xe);break}e&&Ae&&lr.alternate===null&&t(k,Ae),D=u(lr,D,De),it===null?Se=lr:it.sibling=lr,it=lr,Ae=Xe}if(st.done)return a(k,Ae),Ze&&al(k,De),Se;if(Ae===null){for(;!st.done;De++,st=j.next())st=Q(k,st.value,Z),st!==null&&(D=u(st,D,De),it===null?Se=st:it.sibling=st,it=st);return Ze&&al(k,De),Se}for(Ae=i(Ae);!st.done;De++,st=j.next())st=G(Ae,k,De,st.value,Z),st!==null&&(e&&st.alternate!==null&&Ae.delete(st.key===null?De:st.key),D=u(st,D,De),it===null?Se=st:it.sibling=st,it=st);return e&&Ae.forEach(function(E2){return t(k,E2)}),Ze&&al(k,De),Se}function _t(k,D,j,Z){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 Se=j.key;D!==null;){if(D.key===Se){if(Se=j.type,Se===C){if(D.tag===7){a(k,D.sibling),Z=o(D,j.props.children),Z.return=k,k=Z;break e}}else if(D.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===W&&Dr(Se)===D.type){a(k,D.sibling),Z=o(D,j.props),ts(Z,j),Z.return=k,k=Z;break e}a(k,D);break}else t(k,D);D=D.sibling}j.type===C?(Z=Or(j.props.children,k.mode,Z,j.key),Z.return=k,k=Z):(Z=mo(j.type,j.key,j.props,null,k.mode,Z),ts(Z,j),Z.return=k,k=Z)}return g(k);case x:e:{for(Se=j.key;D!==null;){if(D.key===Se)if(D.tag===4&&D.stateNode.containerInfo===j.containerInfo&&D.stateNode.implementation===j.implementation){a(k,D.sibling),Z=o(D,j.children||[]),Z.return=k,k=Z;break e}else{a(k,D);break}else t(k,D);D=D.sibling}Z=Fu(j,k.mode,Z),Z.return=k,k=Z}return g(k);case W:return j=Dr(j),_t(k,D,j,Z)}if(fe(j))return be(k,D,j,Z);if(oe(j)){if(Se=oe(j),typeof Se!="function")throw Error(s(150));return j=Se.call(j),xe(k,D,j,Z)}if(typeof j.then=="function")return _t(k,D,Ao(j),Z);if(j.$$typeof===M)return _t(k,D,vo(k,j),Z);Co(k,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,D!==null&&D.tag===6?(a(k,D.sibling),Z=o(D,j),Z.return=k,k=Z):(a(k,D),Z=Ku(j,k.mode,Z),Z.return=k,k=Z),g(k)):a(k,D)}return function(k,D,j,Z){try{es=0;var Se=_t(k,D,j,Z);return hi=null,Se}catch(Ae){if(Ae===di||Ae===bo)throw Ae;var it=ta(29,Ae,null,k.mode);return it.lanes=Z,it.return=k,it}}}var zr=up(!0),fp=up(!1),Il=!1;function rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sf(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 Gl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vl(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ft&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=ho(e),Jm(e,null,a),t}return fo(e,i,t,a),ho(e)}function ns(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,Ml(e,a)}}function of(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=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?o=u=g:u=u.next=g,a=a.next}while(a!==null);u===null?o=u=t:u=u.next=t}else o=u=t;a={baseState:i.baseState,firstBaseUpdate:o,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 as(){if(cf){var e=fi;if(e!==null)throw e}}function ls(e,t,a,i){cf=!1;var o=e.updateQueue;Il=!1;var u=o.firstBaseUpdate,g=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var R=_,U=R.next;R.next=null,g===null?u=U:g.next=U,g=R;var K=e.alternate;K!==null&&(K=K.updateQueue,_=K.lastBaseUpdate,_!==g&&(_===null?K.firstBaseUpdate=U:_.next=U,K.lastBaseUpdate=R))}if(u!==null){var Q=o.baseState;g=0,K=U=R=null,_=u;do{var I=_.lane&-536870913,G=I!==_.lane;if(G?(Ye&I)===I:(i&I)===I){I!==0&&I===ui&&(cf=!0),K!==null&&(K=K.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var be=e,xe=_;I=t;var _t=a;switch(xe.tag){case 1:if(be=xe.payload,typeof be=="function"){Q=be.call(_t,Q,I);break e}Q=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=xe.payload,I=typeof be=="function"?be.call(_t,Q,I):be,I==null)break e;Q=b({},Q,I);break e;case 2:Il=!0}}I=_.callback,I!==null&&(e.flags|=64,G&&(e.flags|=8192),G=o.callbacks,G===null?o.callbacks=[I]:G.push(I))}else G={lane:I,tag:_.tag,payload:_.payload,callback:_.callback,next:null},K===null?(U=K=G,R=Q):K=K.next=G,g|=I;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;G=_,_=G.next,G.next=null,o.lastBaseUpdate=G,o.shared.pending=null}}while(!0);K===null&&(R=Q),o.baseState=R,o.firstBaseUpdate=U,o.lastBaseUpdate=K,u===null&&(o.shared.lanes=0),Jl|=g,e.lanes=g,e.memoizedState=Q}}function dp(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function hp(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)dp(a[e],t)}var mi=T(null),So=T(0);function mp(e,t){e=ml,X(So,e),X(mi,t),ml=e|t.baseLanes}function uf(){X(So,ml),X(mi,mi.current)}function ff(){ml=So.current,V(mi),V(So)}var na=T(null),Aa=null;function Yl(e){var t=e.alternate;X(Jt,Jt.current&1),X(na,e),Aa===null&&(t===null||mi.current!==null||t.memoizedState!==null)&&(Aa=e)}function df(e){X(Jt,Jt.current),X(na,e),Aa===null&&(Aa=e)}function pp(e){e.tag===22?(X(Jt,Jt.current),X(na,e),Aa===null&&(Aa=e)):Xl()}function Xl(){X(Jt,Jt.current),X(na,na.current)}function aa(e){V(na),Aa===e&&(Aa=null),V(Jt)}var Jt=T(0);function Eo(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 il=0,Me=null,yt=null,en=null,To=!1,pi=!1,kr=!1,xo=0,rs=0,gi=null,m_=0;function Vt(){throw Error(s(321))}function hf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ea(e[a],t[a]))return!1;return!0}function mf(e,t,a,i,o,u){return il=u,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Pp:wf,kr=!1,u=a(i,o),kr=!1,pi&&(u=vp(t,a,i,o)),gp(e),u}function gp(e){N.H=os;var t=yt!==null&&yt.next!==null;if(il=0,en=yt=Me=null,To=!1,rs=0,gi=null,t)throw Error(s(300));e===null||tn||(e=e.dependencies,e!==null&&go(e)&&(tn=!0))}function vp(e,t,a,i){Me=e;var o=0;do{if(pi&&(gi=null),rs=0,pi=!1,25<=o)throw Error(s(301));if(o+=1,en=yt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}N.H=$p,u=t(a,i)}while(pi);return u}function p_(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?is(t):t,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(Me.flags|=1024),t}function pf(){var e=xo!==0;return xo=0,e}function gf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function vf(e){if(To){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}To=!1}il=0,en=yt=Me=null,pi=!1,rs=xo=0,gi=null}function Ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return en===null?Me.memoizedState=en=e:en=en.next=e,en}function Zt(){if(yt===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=en===null?Me.memoizedState:en.next;if(t!==null)en=t,yt=e;else{if(e===null)throw Me.alternate===null?Error(s(467)):Error(s(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},en===null?Me.memoizedState=en=e:en=en.next=e}return en}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function is(e){var t=rs;return rs+=1,gi===null&&(gi=[]),e=sp(gi,e,t),t=Me,(en===null?t.memoizedState:en.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Pp:wf),e}function Ro(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return is(e);if(e.$$typeof===M)return bn(e)}throw Error(s(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(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Oo(),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]=ee;return t.index++,a}function sl(e,t){return typeof t=="function"?t(e):t}function wo(e){var t=Zt();return bf(t,yt,e)}function bf(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var o=e.baseQueue,u=i.pending;if(u!==null){if(o!==null){var g=o.next;o.next=u.next,u.next=g}t.baseQueue=o=u,i.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var _=g=null,R=null,U=t,K=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(Ye&Q)===Q:(il&Q)===Q){var I=U.revertLane;if(I===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===ui&&(K=!0);else if((il&I)===I){U=U.next,I===ui&&(K=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(_=R=Q,g=u):R=R.next=Q,Me.lanes|=I,Jl|=I;Q=U.action,kr&&a(u,Q),u=U.hasEagerState?U.eagerState:a(u,Q)}else I={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(_=R=I,g=u):R=R.next=I,Me.lanes|=Q,Jl|=Q;U=U.next}while(U!==null&&U!==t);if(R===null?g=u:R.next=_,!ea(u,e.memoizedState)&&(tn=!0,K&&(a=fi,a!==null)))throw a;e.memoizedState=u,e.baseState=g,e.baseQueue=R,i.lastRenderedState=u}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function _f(e){var t=Zt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,u=t.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do u=e(u,g.action),g=g.next;while(g!==o);ea(u,t.memoizedState)||(tn=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,i]}function yp(e,t,a){var i=Me,o=Zt(),u=Ze;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var g=!ea((yt||o).memoizedState,a);if(g&&(o.memoizedState=a,tn=!0),o=o.queue,Sf(Ap.bind(null,i,o,e),[e]),o.getSnapshot!==t||g||en!==null&&en.memoizedState.tag&1){if(i.flags|=2048,vi(9,{destroy:void 0},_p.bind(null,i,o,a,t),null),Ct===null)throw Error(s(349));u||(il&127)!==0||bp(i,t,a)}return a}function bp(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Me.updateQueue,t===null?(t=Oo(),Me.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function _p(e,t,a,i){t.value=a,t.getSnapshot=i,Cp(t)&&Sp(e)}function Ap(e,t,a){return a(function(){Cp(t)&&Sp(e)})}function Cp(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ea(e,a)}catch{return!0}}function Sp(e){var t=xr(e,2);t!==null&&Wn(t,e,2)}function Af(e){var t=Ln();if(typeof e=="function"){var a=e;if(e=a(),kr){Ve(!0);try{a()}finally{Ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:e},t}function Ep(e,t,a,i){return e.baseState=a,bf(e,yt,typeof i=="function"?i:sl)}function g_(e,t,a,i,o){if(Do(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};N.T!==null?a(!0):u.isTransition=!1,i(u),a=t.pending,a===null?(u.next=t.pending=u,Tp(t,u)):(u.next=a.next,t.pending=a.next=u)}}function Tp(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var u=N.T,g={};N.T=g;try{var _=a(o,i),R=N.S;R!==null&&R(g,_),xp(e,t,_)}catch(U){Cf(e,t,U)}finally{u!==null&&g.types!==null&&(u.types=g.types),N.T=u}}else try{u=a(o,i),xp(e,t,u)}catch(U){Cf(e,t,U)}}function xp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Op(e,t,i)},function(i){return Cf(e,t,i)}):Op(e,t,a)}function Op(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,Tp(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 wp(e,t){return t}function Np(e,t){if(Ze){var a=Ct.formState;if(a!==null){e:{var i=Me;if(Ze){if(Tt){t:{for(var o=Tt,u=_a;o.nodeType!==8;){if(!u){o=null;break t}if(o=Ca(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){Tt=Ca(o.nextSibling),i=o.data==="F!";break e}}Hl(i)}i=!1}i&&(t=a[0])}}return a=Ln(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wp,lastRenderedState:t},a.queue=i,a=Zp.bind(null,Me,i),i.dispatch=a,i=Af(!1),u=Rf.bind(null,Me,!1,i.queue),i=Ln(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,a=g_.bind(null,Me,o,u,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function Mp(e){var t=Zt();return Dp(t,yt,e)}function Dp(e,t,a){if(t=bf(e,t,wp)[0],e=wo(sl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=is(t)}catch(g){throw g===di?bo:g}else i=t;t=Zt();var o=t.queue,u=o.dispatch;return a!==t.memoizedState&&(Me.flags|=2048,vi(9,{destroy:void 0},v_.bind(null,o,a),null)),[i,u,e]}function v_(e,t){e.action=t}function Lp(e){var t=Zt(),a=yt;if(a!==null)return Dp(t,a,e);Zt(),t=t.memoizedState,a=Zt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function vi(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Me.updateQueue,t===null&&(t=Oo(),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 zp(){return Zt().memoizedState}function No(e,t,a,i){var o=Ln();Me.flags|=e,o.memoizedState=vi(1|t,{destroy:void 0},a,i===void 0?null:i)}function Mo(e,t,a,i){var o=Zt();i=i===void 0?null:i;var u=o.memoizedState.inst;yt!==null&&i!==null&&hf(i,yt.memoizedState.deps)?o.memoizedState=vi(t,u,a,i):(Me.flags|=e,o.memoizedState=vi(1|t,u,a,i))}function kp(e,t){No(8390656,8,e,t)}function Sf(e,t){Mo(2048,8,e,t)}function y_(e){Me.flags|=4;var t=Me.updateQueue;if(t===null)t=Oo(),Me.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Bp(e){var t=Zt().memoizedState;return y_({ref:t,nextImpl:e}),function(){if((ft&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function jp(e,t){return Mo(4,2,e,t)}function Up(e,t){return Mo(4,4,e,t)}function Hp(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 qp(e,t,a){a=a!=null?a.concat([e]):null,Mo(4,4,Hp.bind(null,t,e),a)}function Ef(){}function Ip(e,t){var a=Zt();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 Gp(e,t){var a=Zt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&hf(t,i[1]))return i[0];if(i=e(),kr){Ve(!0);try{e()}finally{Ve(!1)}}return a.memoizedState=[i,t],i}function Tf(e,t,a){return a===void 0||(il&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Vg(),Me.lanes|=e,Jl|=e,a)}function Vp(e,t,a,i){return ea(a,t)?a:mi.current!==null?(e=Tf(e,a,i),ea(e,t)||(tn=!0),e):(il&42)===0||(il&1073741824)!==0&&(Ye&261930)===0?(tn=!0,e.memoizedState=a):(e=Vg(),Me.lanes|=e,Jl|=e,t)}function Yp(e,t,a,i,o){var u=F.p;F.p=u!==0&&8>u?u:8;var g=N.T,_={};N.T=_,Rf(e,!1,t,a);try{var R=o(),U=N.S;if(U!==null&&U(_,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var K=h_(R,i);ss(e,t,K,ia(e))}else ss(e,t,i,ia(e))}catch(Q){ss(e,t,{then:function(){},status:"rejected",reason:Q},ia())}finally{F.p=u,g!==null&&_.types!==null&&(g.types=_.types),N.T=g}}function b_(){}function xf(e,t,a,i){if(e.tag!==5)throw Error(s(476));var o=Xp(e).queue;Yp(e,o,t,ne,a===null?b_:function(){return Kp(e),a(i)})}function Xp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kp(e){var t=Xp(e);t.next===null&&(t=e.alternate.memoizedState),ss(e,t.next.queue,{},ia())}function Of(){return bn(Es)}function Fp(){return Zt().memoizedState}function Jp(){return Zt().memoizedState}function __(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=ia();e=Gl(a);var i=Vl(t,e,a);i!==null&&(Wn(i,t,a),ns(i,t,a)),t={cache:tf()},e.payload=t;return}t=t.return}}function A_(e,t,a){var i=ia();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Do(e)?Wp(t,a):(a=Yu(e,t,a,i),a!==null&&(Wn(a,e,i),Qp(a,t,i)))}function Zp(e,t,a){var i=ia();ss(e,t,a,i)}function ss(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Do(e))Wp(t,o);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(o.hasEagerState=!0,o.eagerState=_,ea(_,g))return fo(e,t,o,0),Ct===null&&uo(),!1}catch{}if(a=Yu(e,t,o,i),a!==null)return Wn(a,e,i),Qp(a,t,i),!0}return!1}function Rf(e,t,a,i){if(i={lane:2,revertLane:id(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Do(e)){if(t)throw Error(s(479))}else t=Yu(e,a,i,2),t!==null&&Wn(t,e,2)}function Do(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function Wp(e,t){pi=To=!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,Ml(e,a)}}var os={readContext:bn,use:Ro,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};os.useEffectEvent=Vt;var Pp={readContext:bn,use:Ro,useCallback:function(e,t){return Ln().memoizedState=[e,t===void 0?null:t],e},useContext:bn,useEffect:kp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,No(4194308,4,Hp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return No(4194308,4,e,t)},useInsertionEffect:function(e,t){No(4,2,e,t)},useMemo:function(e,t){var a=Ln();t=t===void 0?null:t;var i=e();if(kr){Ve(!0);try{e()}finally{Ve(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Ln();if(a!==void 0){var o=a(t);if(kr){Ve(!0);try{a(t)}finally{Ve(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},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=Zp.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=Yp.bind(null,Me,e.queue,!0,!1),Ln().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Me,o=Ln();if(Ze){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ct===null)throw Error(s(349));(Ye&127)!==0||bp(i,t,a)}o.memoizedState=a;var u={value:a,getSnapshot:t};return o.queue=u,kp(Ap.bind(null,i,u,e),[e]),i.flags|=2048,vi(9,{destroy:void 0},_p.bind(null,i,u,a,t),null),a},useId:function(){var e=Ln(),t=Ct.identifierPrefix;if(Ze){var a=Ya,i=Va;a=(i&~(1<<32-At(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=m_++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Of,useFormState:Np,useActionState:Np,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=Rf.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((ft&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},wf={readContext:bn,use:Ro,useCallback:Ip,useContext:bn,useEffect:Sf,useImperativeHandle:qp,useInsertionEffect:jp,useLayoutEffect:Up,useMemo:Gp,useReducer:wo,useRef:zp,useState:function(){return wo(sl)},useDebugValue:Ef,useDeferredValue:function(e,t){var a=Zt();return Vp(a,yt.memoizedState,e,t)},useTransition:function(){var e=wo(sl)[0],t=Zt().memoizedState;return[typeof e=="boolean"?e:is(e),t]},useSyncExternalStore:yp,useId:Fp,useHostTransitionStatus:Of,useFormState:Mp,useActionState:Mp,useOptimistic:function(e,t){var a=Zt();return Ep(a,yt,e,t)},useMemoCache:yf,useCacheRefresh:Jp};wf.useEffectEvent=Bp;var $p={readContext:bn,use:Ro,useCallback:Ip,useContext:bn,useEffect:Sf,useImperativeHandle:qp,useInsertionEffect:jp,useLayoutEffect:Up,useMemo:Gp,useReducer:_f,useRef:zp,useState:function(){return _f(sl)},useDebugValue:Ef,useDeferredValue:function(e,t){var a=Zt();return yt===null?Tf(a,e,t):Vp(a,yt.memoizedState,e,t)},useTransition:function(){var e=_f(sl)[0],t=Zt().memoizedState;return[typeof e=="boolean"?e:is(e),t]},useSyncExternalStore:yp,useId:Fp,useHostTransitionStatus:Of,useFormState:Lp,useActionState:Lp,useOptimistic:function(e,t){var a=Zt();return yt!==null?Ep(a,yt,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:yf,useCacheRefresh:Jp};$p.useEffectEvent=Bp;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=ia(),o=Gl(i);o.payload=t,a!=null&&(o.callback=a),t=Vl(e,o,i),t!==null&&(Wn(t,e,i),ns(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=ia(),o=Gl(i);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Vl(e,o,i),t!==null&&(Wn(t,e,i),ns(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ia(),i=Gl(a);i.tag=2,t!=null&&(i.callback=t),t=Vl(e,i,a),t!==null&&(Wn(t,e,a),ns(t,e,a))}};function eg(e,t,a,i,o,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,g):t.prototype&&t.prototype.isPureReactComponent?!Ji(a,i)||!Ji(o,u):!0}function tg(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 Br(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 o in e)a[o]===void 0&&(a[o]=e[o])}return a}function ng(e){co(e)}function ag(e){console.error(e)}function lg(e){co(e)}function Lo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function rg(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Df(e,t,a){return a=Gl(a),a.tag=3,a.payload={element:null},a.callback=function(){Lo(e,t)},a}function ig(e){return e=Gl(e),e.tag=3,e}function sg(e,t,a,i){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var u=i.value;e.payload=function(){return o(u)},e.callback=function(){rg(t,a,i)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){rg(t,a,i),typeof o!="function"&&(Zl===null?Zl=new Set([this]):Zl.add(this));var _=i.stack;this.componentDidCatch(i.value,{componentStack:_!==null?_:""})})}function C_(e,t,a,i,o){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&ci(t,a,o,!0),a=na.current,a!==null){switch(a.tag){case 31:case 13:return Aa===null?Xo():a.alternate===null&&Yt===0&&(Yt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,i===_o?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),ad(e,i,o)),!1;case 22:return a.flags|=65536,i===_o?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,o)),!1}throw Error(s(435,a.tag))}return ad(e,i,o),Xo(),!1}if(Ze)return t=na.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Wu&&(e=Error(s(422),{cause:i}),Qi(va(e,a)))):(i!==Wu&&(t=Error(s(423),{cause:i}),Qi(va(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=va(i,a),o=Df(e.stateNode,i,o),of(e,o),Yt!==4&&(Yt=2)),!1;var u=Error(s(520),{cause:i});if(u=va(u,a),gs===null?gs=[u]:gs.push(u),Yt!==4&&(Yt=2),t===null)return!0;i=va(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Df(a.stateNode,i,e),of(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"&&(Zl===null||!Zl.has(u))))return a.flags|=65536,o&=-o,a.lanes|=o,o=ig(o),sg(o,e,a,i),of(a,o),!1}a=a.return}while(a!==null);return!1}var Lf=Error(s(461)),tn=!1;function _n(e,t,a,i){t.child=e===null?fp(t,null,a,i):zr(t,e.child,a,i)}function og(e,t,a,i,o){a=a.render;var u=t.ref;if("ref"in i){var g={};for(var _ in i)_!=="ref"&&(g[_]=i[_])}else g=i;return Nr(t),i=mf(e,t,a,g,u,o),_=pf(),e!==null&&!tn?(gf(e,t,o),ol(e,t,o)):(Ze&&_&&Ju(t),t.flags|=1,_n(e,t,i,o),t.child)}function cg(e,t,a,i,o){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,ug(e,t,u,i,o)):(e=mo(a.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!If(e,o)){var g=u.memoizedProps;if(a=a.compare,a=a!==null?a:Ji,a(g,i)&&e.ref===t.ref)return ol(e,t,o)}return t.flags|=1,e=nl(u,i),e.ref=t.ref,e.return=t,t.child=e}function ug(e,t,a,i,o){if(e!==null){var u=e.memoizedProps;if(Ji(u,i)&&e.ref===t.ref)if(tn=!1,t.pendingProps=i=u,If(e,o))(e.flags&131072)!==0&&(tn=!0);else return t.lanes=e.lanes,ol(e,t,o)}return zf(e,t,a,i,o)}function fg(e,t,a,i){var o=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,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~u}else i=0,t.child=null;return dg(e,t,u,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yo(t,u!==null?u.cachePool:null),u!==null?mp(t,u):uf(),pp(t);else return i=t.lanes=536870912,dg(e,t,u!==null?u.baseLanes|a:a,a,i)}else u!==null?(yo(t,u.cachePool),mp(t,u),Xl(),t.memoizedState=null):(e!==null&&yo(t,null),uf(),Xl());return _n(e,t,o,a),t.child}function cs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dg(e,t,a,i,o){var u=af();return u=u===null?null:{parent:$t._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&yo(t,null),uf(),pp(t),e!==null&&ci(e,t,i,!0),t.childLanes=o,null}function zo(e,t){return t=Bo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hg(e,t,a){return zr(t,e.child,null,a),e=zo(t,t.pendingProps),e.flags|=2,aa(t),t.memoizedState=null,e}function S_(e,t,a){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ze){if(i.mode==="hidden")return e=zo(t,i),t.lanes=536870912,cs(null,e);if(df(t),(e=Tt)?(e=T0(e,_a),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:Va,overflow:Ya}:null,retryLane:536870912,hydrationErrors:null},a=Wm(e),a.return=t,t.child=a,yn=t,Tt=null)):e=null,e===null)throw Hl(t);return t.lanes=536870912,null}return zo(t,i)}var u=e.memoizedState;if(u!==null){var g=u.dehydrated;if(df(t),o)if(t.flags&256)t.flags&=-257,t=hg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(tn||ci(e,t,a,!1),o=(a&e.childLanes)!==0,tn||o){if(i=Ct,i!==null&&(g=Dl(i,a),g!==0&&g!==u.retryLane))throw u.retryLane=g,xr(e,g),Wn(i,e,g),Lf;Xo(),t=hg(e,t,a)}else e=u.treeContext,Tt=Ca(g.nextSibling),yn=t,Ze=!0,Ul=null,_a=!1,e!==null&&$m(t,e),t=zo(t,i),t.flags|=4096;return t}return e=nl(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ko(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function zf(e,t,a,i,o){return Nr(t),a=mf(e,t,a,i,void 0,o),i=pf(),e!==null&&!tn?(gf(e,t,o),ol(e,t,o)):(Ze&&i&&Ju(t),t.flags|=1,_n(e,t,a,o),t.child)}function mg(e,t,a,i,o,u){return Nr(t),t.updateQueue=null,a=vp(t,i,a,o),gp(e),i=pf(),e!==null&&!tn?(gf(e,t,u),ol(e,t,u)):(Ze&&i&&Ju(t),t.flags|=1,_n(e,t,a,u),t.child)}function pg(e,t,a,i,o){if(Nr(t),t.stateNode===null){var u=ri,g=a.contextType;typeof g=="object"&&g!==null&&(u=bn(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?bn(g):ri,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),ls(t,i,u,o),as(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){u=t.stateNode;var _=t.memoizedProps,R=Br(a,_);u.props=R;var U=u.context,K=a.contextType;g=ri,typeof K=="object"&&K!==null&&(g=bn(K));var Q=a.getDerivedStateFromProps;K=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,K||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(_||U!==g)&&tg(t,u,i,g),Il=!1;var I=t.memoizedState;u.state=I,ls(t,i,u,o),as(),U=t.memoizedState,_||I!==U||Il?(typeof Q=="function"&&(Nf(t,a,Q,i),U=t.memoizedState),(R=Il||eg(t,a,R,i,I,U,g))?(K||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=R):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{u=t.stateNode,sf(e,t),g=t.memoizedProps,K=Br(a,g),u.props=K,Q=t.pendingProps,I=u.context,U=a.contextType,R=ri,typeof U=="object"&&U!==null&&(R=bn(U)),_=a.getDerivedStateFromProps,(U=typeof _=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==Q||I!==R)&&tg(t,u,i,R),Il=!1,I=t.memoizedState,u.state=I,ls(t,i,u,o),as();var G=t.memoizedState;g!==Q||I!==G||Il||e!==null&&e.dependencies!==null&&go(e.dependencies)?(typeof _=="function"&&(Nf(t,a,_,i),G=t.memoizedState),(K=Il||eg(t,a,K,i,I,G,R)||e!==null&&e.dependencies!==null&&go(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,G,R),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,G,R)),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=R,i=K):(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,ko(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=zr(t,e.child,null,o),t.child=zr(t,null,a,o)):_n(e,t,a,o),t.memoizedState=u.state,e=t.child):e=ol(e,t,o),e}function gg(e,t,a,i){return Rr(),t.flags|=256,_n(e,t,a,i),t.child}var kf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bf(e){return{baseLanes:e,cachePool:rp()}}function jf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ra),e}function vg(e,t,a){var i=t.pendingProps,o=!1,u=(t.flags&128)!==0,g;if((g=u)||(g=e!==null&&e.memoizedState===null?!1:(Jt.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ze){if(o?Yl(t):Xl(),(e=Tt)?(e=T0(e,_a),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:Va,overflow:Ya}:null,retryLane:536870912,hydrationErrors:null},a=Wm(e),a.return=t,t.child=a,yn=t,Tt=null)):e=null,e===null)throw Hl(t);return bd(e)?t.lanes=32:t.lanes=536870912,null}var _=i.children;return i=i.fallback,o?(Xl(),o=t.mode,_=Bo({mode:"hidden",children:_},o),i=Or(i,o,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,cs(null,i)):(Yl(t),Uf(t,_))}var R=e.memoizedState;if(R!==null&&(_=R.dehydrated,_!==null)){if(u)t.flags&256?(Yl(t),t.flags&=-257,t=Hf(e,t,a)):t.memoizedState!==null?(Xl(),t.child=e.child,t.flags|=128,t=null):(Xl(),_=i.fallback,o=t.mode,i=Bo({mode:"visible",children:i.children},o),_=Or(_,o,a,null),_.flags|=2,i.return=t,_.return=t,i.sibling=_,t.child=i,zr(t,e.child,null,a),i=t.child,i.memoizedState=Bf(a),i.childLanes=jf(e,g,a),t.memoizedState=kf,t=cs(null,i));else if(Yl(t),bd(_)){if(g=_.nextSibling&&_.nextSibling.dataset,g)var U=g.dgst;g=U,i=Error(s(419)),i.stack="",i.digest=g,Qi({value:i,source:null,stack:null}),t=Hf(e,t,a)}else if(tn||ci(e,t,a,!1),g=(a&e.childLanes)!==0,tn||g){if(g=Ct,g!==null&&(i=Dl(g,a),i!==0&&i!==R.retryLane))throw R.retryLane=i,xr(e,i),Wn(g,e,i),Lf;yd(_)||Xo(),t=Hf(e,t,a)}else yd(_)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Tt=Ca(_.nextSibling),yn=t,Ze=!0,Ul=null,_a=!1,e!==null&&$m(t,e),t=Uf(t,i.children),t.flags|=4096);return t}return o?(Xl(),_=i.fallback,o=t.mode,R=e.child,U=R.sibling,i=nl(R,{mode:"hidden",children:i.children}),i.subtreeFlags=R.subtreeFlags&65011712,U!==null?_=nl(U,_):(_=Or(_,o,a,null),_.flags|=2),_.return=t,i.return=t,i.sibling=_,t.child=i,cs(null,i),i=t.child,_=e.child.memoizedState,_===null?_=Bf(a):(o=_.cachePool,o!==null?(R=$t._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=rp(),_={baseLanes:_.baseLanes|a,cachePool:o}),i.memoizedState=_,i.childLanes=jf(e,g,a),t.memoizedState=kf,cs(e.child,i)):(Yl(t),a=e.child,e=a.sibling,a=nl(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=Bo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Bo(e,t){return e=ta(22,e,null,t),e.lanes=0,e}function Hf(e,t,a){return zr(t,e.child,null,a),e=Uf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yg(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,o,u){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o,treeForkCount:u}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=a,g.tailMode=o,g.treeForkCount=u)}function bg(e,t,a){var i=t.pendingProps,o=i.revealOrder,u=i.tail;i=i.children;var g=Jt.current,_=(g&2)!==0;if(_?(g=g&1|2,t.flags|=128):g&=1,X(Jt,g),_n(e,t,i,a),i=Ze?Wi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yg(e,a,t);else if(e.tag===19)yg(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(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Eo(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),qf(t,!1,o,a,u,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Eo(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=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 ol(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ci(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=nl(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=nl(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&&go(e)))}function E_(e,t,a){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),ql(t,$t,e.memoizedState.cache),Rr();break;case 27:case 5:Ge(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:ql(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?(Yl(t),t.flags|=128,null):(a&t.child.childLanes)!==0?vg(e,t,a):(Yl(t),e=ol(e,t,a),e!==null?e.sibling:null);Yl(t);break;case 19:var o=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(ci(e,t,a,!1),i=(a&t.childLanes)!==0),o){if(i)return bg(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),X(Jt,Jt.current),i)break;return null;case 22:return t.lanes=0,fg(e,t,a,t.pendingProps);case 24:ql(t,$t,e.memoizedState.cache)}return ol(e,t,a)}function _g(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)tn=!0;else{if(!If(e,a)&&(t.flags&128)===0)return tn=!1,E_(e,t,a);tn=(e.flags&131072)!==0}else tn=!1,Ze&&(t.flags&1048576)!==0&&Pm(t,Wi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Dr(t.elementType),t.type=e,typeof e=="function")Xu(e)?(i=Br(e,i),t.tag=1,t=pg(null,t,e,i,a)):(t.tag=0,t=zf(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===z){t.tag=11,t=og(null,t,e,i,a);break e}else if(o===Y){t.tag=14,t=cg(null,t,e,i,a);break e}}throw t=ye(e)||e,Error(s(306,t,""))}}return t;case 0:return zf(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Br(i,t.pendingProps),pg(e,t,i,o,a);case 3:e:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var u=t.memoizedState;o=u.element,sf(e,t),ls(t,i,null,a);var g=t.memoizedState;if(i=g.cache,ql(t,$t,i),i!==u.cache&&ef(t,[$t],a,!0),as(),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=gg(e,t,i,a);break e}else if(i!==o){o=va(Error(s(424)),t),Qi(o),t=gg(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,Tt=Ca(e.firstChild),yn=t,Ze=!0,Ul=null,_a=!0,a=fp(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Rr(),i===o){t=ol(e,t,a);break e}_n(e,t,i,a)}t=t.child}return t;case 26:return ko(e,t),e===null?(a=M0(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ze||(a=t.type,e=t.pendingProps,i=Po(ue.current).createElement(a),i[Et]=t,i[vt]=e,An(i,a,e),Oe(i),t.stateNode=i):t.memoizedState=M0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&Ze&&(i=t.stateNode=R0(t.type,t.pendingProps,ue.current),yn=t,_a=!0,o=Tt,$l(t.type)?(_d=o,Tt=Ca(i.firstChild)):Tt=o),_n(e,t,t.pendingProps.children,a),ko(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ze&&((o=i=Tt)&&(i=e2(i,t.type,t.pendingProps,_a),i!==null?(t.stateNode=i,yn=t,Tt=Ca(i.firstChild),_a=!1,o=!0):o=!1),o||Hl(t)),Ge(t),o=t.type,u=t.pendingProps,g=e!==null?e.memoizedProps:null,i=u.children,pd(o,u)?i=null:g!==null&&pd(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=mf(e,t,p_,null,null,a),Es._currentValue=o),ko(e,t),_n(e,t,i,a),t.child;case 6:return e===null&&Ze&&((e=a=Tt)&&(a=t2(a,t.pendingProps,_a),a!==null?(t.stateNode=a,yn=t,Tt=null,e=!0):e=!1),e||Hl(t)),null;case 13:return vg(e,t,a);case 4:return ce(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=zr(t,null,i,a):_n(e,t,i,a),t.child;case 11:return og(e,t,t.type,t.pendingProps,a);case 7:return _n(e,t,t.pendingProps,a),t.child;case 8:return _n(e,t,t.pendingProps.children,a),t.child;case 12:return _n(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,ql(t,t.type,i.value),_n(e,t,i.children,a),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Nr(t),o=bn(o),i=i(o),t.flags|=1,_n(e,t,i,a),t.child;case 14:return cg(e,t,t.type,t.pendingProps,a);case 15:return ug(e,t,t.type,t.pendingProps,a);case 19:return bg(e,t,a);case 31:return S_(e,t,a);case 22:return fg(e,t,a,t.pendingProps);case 24:return Nr(t),i=bn($t),e===null?(o=af(),o===null&&(o=Ct,u=tf(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),t.memoizedState={parent:i,cache:o},rf(t),ql(t,$t,o)):((e.lanes&a)!==0&&(sf(e,t),ls(t,null,null,a),as()),o=e.memoizedState,u=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ql(t,$t,i)):(i=u.cache,ql(t,$t,i),i!==o.cache&&ef(t,[$t],a,!0))),_n(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function cl(e){e.flags|=4}function Gf(e,t,a,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Fg())e.flags|=8192;else throw Lr=_o,lf}else e.flags&=-16777217}function Ag(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!B0(t))if(Fg())e.flags|=8192;else throw Lr=_o,lf}function jo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wa():536870912,e.lanes|=t,Ai|=t)}function us(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 xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.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 xt(t),null;case 1:return xt(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),rl($t),Re(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?cl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qu())),xt(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(cl(t),u!==null?(xt(t),Ag(t,u)):(xt(t),Gf(t,o,null,i,a))):u?u!==e.memoizedState?(cl(t),xt(t),Ag(t,u)):(xt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&cl(t),xt(t),Gf(t,o,e,i,a)),null;case 27:if(rt(t),a=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&cl(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return xt(t),null}e=re.current,oi(t)?ep(t):(e=R0(o,i,a),t.stateNode=e,cl(t))}return xt(t),null;case 5:if(rt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&cl(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return xt(t),null}if(u=re.current,oi(t))ep(t);else{var g=Po(ue.current);switch(u){case 1:u=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);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(o,{is:i.is}):g.createElement(o)}}u[Et]=t,u[vt]=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(An(u,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&cl(t)}}return xt(t),Gf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&cl(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,oi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=yn,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Et]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||v0(e.nodeValue,a)),e||Hl(t,!0)}else e=Po(e).createTextNode(i),e[Et]=t,t.stateNode=e}return xt(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(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Et]=t}else Rr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xt(t),e=!1}else a=Qu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(aa(t),t):(aa(t),null);if((t.flags&128)!==0)throw Error(s(558))}return xt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=oi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Et]=t}else Rr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xt(t),o=!1}else o=Qu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(aa(t),t):(aa(t),null)}return aa(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),jo(t,t.updateQueue),xt(t),null);case 4:return Re(),e===null&&ud(t.stateNode.containerInfo),xt(t),null;case 10:return rl(t.type),xt(t),null;case 19:if(V(Jt),i=t.memoizedState,i===null)return xt(t),null;if(o=(t.flags&128)!==0,u=i.rendering,u===null)if(o)us(i,!1);else{if(Yt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Eo(e),u!==null){for(t.flags|=128,us(i,!1),e=u.updateQueue,t.updateQueue=e,jo(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Zm(a,e),a=a.sibling;return X(Jt,Jt.current&1|2),Ze&&al(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&dt()>Go&&(t.flags|=128,o=!0,us(i,!1),t.lanes=4194304)}else{if(!o)if(e=Eo(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,jo(t,e),us(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ze)return xt(t),null}else 2*dt()-i.renderingStartTime>Go&&a!==536870912&&(t.flags|=128,o=!0,us(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=dt(),e.sibling=null,a=Jt.current,X(Jt,o?a&1|2:a&1),Ze&&al(t,i.treeForkCount),e):(xt(t),null);case 22:case 23:return aa(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&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),a=t.updateQueue,a!==null&&jo(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(Mr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),rl($t),xt(t),null;case 25:return null;case 30:return null}throw Error(s(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 rl($t),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return rt(t),null;case 31:if(t.memoizedState!==null){if(aa(t),t.alternate===null)throw Error(s(340));Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(aa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Jt),null;case 4:return Re(),null;case 10:return rl(t.type),null;case 22:case 23:return aa(t),ff(),e!==null&&V(Mr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return rl($t),null;case 25:return null;default:return null}}function Cg(e,t){switch(Zu(t),t.tag){case 3:rl($t),Re();break;case 26:case 27:case 5:rt(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&aa(t);break;case 13:aa(t);break;case 19:V(Jt);break;case 10:rl(t.type);break;case 22:case 23:aa(t),ff(),e!==null&&V(Mr);break;case 24:rl($t)}}function fs(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;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!==o)}}catch(_){pt(t,t.return,_)}}function Kl(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var u=o.next;i=u;do{if((i.tag&e)===e){var g=i.inst,_=g.destroy;if(_!==void 0){g.destroy=void 0,o=t;var R=a,U=_;try{U()}catch(K){pt(o,R,K)}}}i=i.next}while(i!==u)}}catch(K){pt(t,t.return,K)}}function Sg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{hp(t,a)}catch(i){pt(e,e.return,i)}}}function Eg(e,t,a){a.props=Br(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){pt(e,t,i)}}function ds(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(o){pt(e,t,o)}}function Xa(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){pt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){pt(e,t,o)}else a.current=null}function Tg(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(o){pt(e,e.return,o)}}function Vf(e,t,a){try{var i=e.stateNode;J_(i,e.type,a,t),i[vt]=t}catch(o){pt(e,e.return,o)}}function xg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$l(e.type)||e.tag===4}function Yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xg(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&&$l(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=el));else if(i!==4&&(i===27&&$l(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 Uo(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&&$l(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Uo(e,t,a),e=e.sibling;e!==null;)Uo(e,t,a),e=e.sibling}function Og(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);An(t,i,a),t[Et]=e,t[vt]=a}catch(u){pt(e,e.return,u)}}var ul=!1,nn=!1,Kf=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,hn=null;function O_(e,t){if(e=e.containerInfo,hd=rc,e=qm(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 o=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var g=0,_=-1,R=-1,U=0,K=0,Q=e,I=null;t:for(;;){for(var G;Q!==a||o!==0&&Q.nodeType!==3||(_=g+o),Q!==u||i!==0&&Q.nodeType!==3||(R=g+i),Q.nodeType===3&&(g+=Q.nodeValue.length),(G=Q.firstChild)!==null;)I=Q,Q=G;for(;;){if(Q===e)break t;if(I===a&&++U===o&&(_=g),I===u&&++K===i&&(R=g),(G=Q.nextSibling)!==null)break;Q=I,I=Q.parentNode}Q=G}a=_===-1||R===-1?null:{start:_,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(md={focusedElem:e,selectionRange:a},rc=!1,hn=t;hn!==null;)if(t=hn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,hn=e;else for(;hn!==null;){switch(t=hn,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++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,o=u.memoizedProps,u=u.memoizedState,i=a.stateNode;try{var be=Br(a.type,o);e=i.getSnapshotBeforeUpdate(be,u),i.__reactInternalSnapshotBeforeUpdate=e}catch(xe){pt(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,hn=e;break}hn=t.return}}function wg(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:dl(e,a),i&4&&fs(5,a);break;case 1:if(dl(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){pt(a,a.return,g)}else{var o=Br(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){pt(a,a.return,g)}}i&64&&Sg(a),i&512&&ds(a,a.return);break;case 3:if(dl(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{hp(e,t)}catch(g){pt(a,a.return,g)}}break;case 27:t===null&&i&4&&Og(a);case 26:case 5:dl(e,a),t===null&&i&4&&Tg(a),i&512&&ds(a,a.return);break;case 12:dl(e,a);break;case 31:dl(e,a),i&4&&Dg(e,a);break;case 13:dl(e,a),i&4&&Lg(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||ul,!i){t=t!==null&&t.memoizedState!==null||nn,o=ul;var u=nn;ul=i,(nn=t)&&!u?hl(e,a,(a.subtreeFlags&8772)!==0):dl(e,a),ul=o,nn=u}break;case 30:break;default:dl(e,a)}}function Ng(e){var t=e.alternate;t!==null&&(e.alternate=null,Ng(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&w(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 Mt=null,Kn=!1;function fl(e,t,a){for(a=a.child;a!==null;)Mg(e,t,a),a=a.sibling}function Mg(e,t,a){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(Bt,a)}catch{}switch(a.tag){case 26:nn||Xa(a,t),fl(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:nn||Xa(a,t);var i=Mt,o=Kn;$l(a.type)&&(Mt=a.stateNode,Kn=!1),fl(e,t,a),As(a.stateNode),Mt=i,Kn=o;break;case 5:nn||Xa(a,t);case 6:if(i=Mt,o=Kn,Mt=null,fl(e,t,a),Mt=i,Kn=o,Mt!==null)if(Kn)try{(Mt.nodeType===9?Mt.body:Mt.nodeName==="HTML"?Mt.ownerDocument.body:Mt).removeChild(a.stateNode)}catch(u){pt(a,t,u)}else try{Mt.removeChild(a.stateNode)}catch(u){pt(a,t,u)}break;case 18:Mt!==null&&(Kn?(e=Mt,S0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),wi(e)):S0(Mt,a.stateNode));break;case 4:i=Mt,o=Kn,Mt=a.stateNode.containerInfo,Kn=!0,fl(e,t,a),Mt=i,Kn=o;break;case 0:case 11:case 14:case 15:Kl(2,a,t),nn||Kl(4,a,t),fl(e,t,a);break;case 1:nn||(Xa(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Eg(a,t,i)),fl(e,t,a);break;case 21:fl(e,t,a);break;case 22:nn=(i=nn)||a.memoizedState!==null,fl(e,t,a),nn=i;break;default:fl(e,t,a)}}function Dg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wi(e)}catch(a){pt(t,t.return,a)}}}function Lg(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){pt(t,t.return,a)}}function R_(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(s(435,e.tag))}}function Ho(e,t){var a=R_(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=j_.bind(null,e,i);i.then(o,o)}})}function Fn(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],u=e,g=t,_=g;e:for(;_!==null;){switch(_.tag){case 27:if($l(_.type)){Mt=_.stateNode,Kn=!1;break e}break;case 5:Mt=_.stateNode,Kn=!1;break e;case 3:case 4:Mt=_.stateNode.containerInfo,Kn=!0;break e}_=_.return}if(Mt===null)throw Error(s(160));Mg(u,g,o),Mt=null,Kn=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zg(t,e),t=t.sibling}var Da=null;function zg(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Fn(t,e),Jn(e),i&4&&(Kl(3,e,e.return),fs(3,e),Kl(5,e,e.return));break;case 1:Fn(t,e),Jn(e),i&512&&(nn||a===null||Xa(a,a.return)),i&64&&ul&&(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 o=Da;if(Fn(t,e),Jn(e),i&512&&(nn||a===null||Xa(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,o=o.ownerDocument||o;t:switch(i){case"title":u=o.getElementsByTagName("title")[0],(!u||u[me]||u[Et]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(i),o.head.insertBefore(u,o.querySelector("head > title"))),An(u,i,a),u[Et]=e,Oe(u),i=u;break e;case"link":var g=z0("link","href",o).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=o.createElement(i),An(u,i,a),o.head.appendChild(u);break;case"meta":if(g=z0("meta","content",o).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=o.createElement(i),An(u,i,a),o.head.appendChild(u);break;default:throw Error(s(468,i))}u[Et]=e,Oe(u),i=u}e.stateNode=i}else k0(o,e.type,e.stateNode);else e.stateNode=L0(o,i,e.memoizedProps);else u!==i?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,i===null?k0(o,e.type,e.stateNode):L0(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Vf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Fn(t,e),Jn(e),i&512&&(nn||a===null||Xa(a,a.return)),a!==null&&i&4&&Vf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Fn(t,e),Jn(e),i&512&&(nn||a===null||Xa(a,a.return)),e.flags&32){o=e.stateNode;try{Pr(o,"")}catch(be){pt(e,e.return,be)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Vf(e,o,a!==null?a.memoizedProps:o)),i&1024&&(Kf=!0);break;case 6:if(Fn(t,e),Jn(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(be){pt(e,e.return,be)}}break;case 3:if(tc=null,o=Da,Da=$o(t.containerInfo),Fn(t,e),Da=o,Jn(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{wi(t.containerInfo)}catch(be){pt(e,e.return,be)}Kf&&(Kf=!1,kg(e));break;case 4:i=Da,Da=$o(e.stateNode.containerInfo),Fn(t,e),Jn(e),Da=i;break;case 12:Fn(t,e),Jn(e);break;case 31:Fn(t,e),Jn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ho(e,i)));break;case 13:Fn(t,e),Jn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Io=dt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ho(e,i)));break;case 22:o=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,U=ul,K=nn;if(ul=U||o,nn=K||R,Fn(t,e),nn=K,ul=U,Jn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||R||ul||nn||jr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(u=R.stateNode,o)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{_=R.stateNode;var Q=R.memoizedProps.style,I=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;_.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(be){pt(R,R.return,be)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(be){pt(R,R.return,be)}}}else if(t.tag===18){if(a===null){R=t;try{var G=R.stateNode;o?E0(G,!0):E0(R.stateNode,!1)}catch(be){pt(R,R.return,be)}}}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,Ho(e,a))));break;case 19:Fn(t,e),Jn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ho(e,i)));break;case 30:break;case 21:break;default:Fn(t,e),Jn(e)}}function Jn(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(xg(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,u=Yf(e);Uo(e,u,o);break;case 5:var g=a.stateNode;a.flags&32&&(Pr(g,""),a.flags&=-33);var _=Yf(e);Uo(e,_,g);break;case 3:case 4:var R=a.stateNode.containerInfo,U=Yf(e);Xf(e,U,R);break;default:throw Error(s(161))}}catch(K){pt(e,e.return,K)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function dl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wg(e,t.alternate,t),t=t.sibling}function jr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Kl(4,t,t.return),jr(t);break;case 1:Xa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Eg(t,t.return,a),jr(t);break;case 27:As(t.stateNode);case 26:case 5:Xa(t,t.return),jr(t);break;case 22:t.memoizedState===null&&jr(t);break;case 30:jr(t);break;default:jr(t)}e=e.sibling}}function hl(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,u=t,g=u.flags;switch(u.tag){case 0:case 11:case 15:hl(o,u,a),fs(4,u);break;case 1:if(hl(o,u,a),i=u,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(U){pt(i,i.return,U)}if(i=u,o=i.updateQueue,o!==null){var _=i.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)dp(R[o],_)}catch(U){pt(i,i.return,U)}}a&&g&64&&Sg(u),ds(u,u.return);break;case 27:Og(u);case 26:case 5:hl(o,u,a),a&&i===null&&g&4&&Tg(u),ds(u,u.return);break;case 12:hl(o,u,a);break;case 31:hl(o,u,a),a&&g&4&&Dg(o,u);break;case 13:hl(o,u,a),a&&g&4&&Lg(o,u);break;case 22:u.memoizedState===null&&hl(o,u,a),ds(u,u.return);break;case 30:break;default:hl(o,u,a)}t=t.sibling}}function Ff(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 La(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bg(e,t,a,i),t=t.sibling}function Bg(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:La(e,t,a,i),o&2048&&fs(9,t);break;case 1:La(e,t,a,i);break;case 3:La(e,t,a,i),o&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(o&2048){La(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(R){pt(t,t.return,R)}}else La(e,t,a,i);break;case 31:La(e,t,a,i);break;case 13:La(e,t,a,i);break;case 23:break;case 22:u=t.stateNode,g=t.alternate,t.memoizedState!==null?u._visibility&2?La(e,t,a,i):hs(e,t):u._visibility&2?La(e,t,a,i):(u._visibility|=2,yi(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ff(g,t);break;case 24:La(e,t,a,i),o&2048&&Jf(t.alternate,t);break;default:La(e,t,a,i)}}function yi(e,t,a,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,g=t,_=a,R=i,U=g.flags;switch(g.tag){case 0:case 11:case 15:yi(u,g,_,R,o),fs(8,g);break;case 23:break;case 22:var K=g.stateNode;g.memoizedState!==null?K._visibility&2?yi(u,g,_,R,o):hs(u,g):(K._visibility|=2,yi(u,g,_,R,o)),o&&U&2048&&Ff(g.alternate,g);break;case 24:yi(u,g,_,R,o),o&&U&2048&&Jf(g.alternate,g);break;default:yi(u,g,_,R,o)}t=t.sibling}}function hs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,o=i.flags;switch(i.tag){case 22:hs(a,i),o&2048&&Ff(i.alternate,i);break;case 24:hs(a,i),o&2048&&Jf(i.alternate,i);break;default:hs(a,i)}t=t.sibling}}var ms=8192;function bi(e,t,a){if(e.subtreeFlags&ms)for(e=e.child;e!==null;)jg(e,t,a),e=e.sibling}function jg(e,t,a){switch(e.tag){case 26:bi(e,t,a),e.flags&ms&&e.memoizedState!==null&&m2(a,Da,e.memoizedState,e.memoizedProps);break;case 5:bi(e,t,a);break;case 3:case 4:var i=Da;Da=$o(e.stateNode.containerInfo),bi(e,t,a),Da=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ms,ms=16777216,bi(e,t,a),ms=i):bi(e,t,a));break;default:bi(e,t,a)}}function Ug(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 ps(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];hn=i,qg(i,e)}Ug(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hg(e),e=e.sibling}function Hg(e){switch(e.tag){case 0:case 11:case 15:ps(e),e.flags&2048&&Kl(9,e,e.return);break;case 3:ps(e);break;case 12:ps(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qo(e)):ps(e);break;default:ps(e)}}function qo(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];hn=i,qg(i,e)}Ug(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Kl(8,t,t.return),qo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,qo(t));break;default:qo(t)}e=e.sibling}}function qg(e,t){for(;hn!==null;){var a=hn;switch(a.tag){case 0:case 11:case 15:Kl(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,hn=i;else e:for(a=e;hn!==null;){i=hn;var o=i.sibling,u=i.return;if(Ng(i),i===a){hn=null;break e}if(o!==null){o.return=u,hn=o;break e}hn=u}}}var w_={getCacheForType:function(e){var t=bn($t),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return bn($t).controller.signal}},N_=typeof WeakMap=="function"?WeakMap:Map,ft=0,Ct=null,He=null,Ye=0,mt=0,la=null,Fl=!1,_i=!1,Zf=!1,ml=0,Yt=0,Jl=0,Ur=0,Wf=0,ra=0,Ai=0,gs=null,Zn=null,Qf=!1,Io=0,Ig=0,Go=1/0,Vo=null,Zl=null,fn=0,Wl=null,Ci=null,pl=0,Pf=0,$f=null,Gg=null,vs=0,ed=null;function ia(){return(ft&2)!==0&&Ye!==0?Ye&-Ye:N.T!==null?id():yr()}function Vg(){if(ra===0)if((Ye&536870912)===0||Ze){var e=on;on<<=1,(on&3932160)===0&&(on=262144),ra=e}else ra=536870912;return e=na.current,e!==null&&(e.flags|=32),ra}function Wn(e,t,a){(e===Ct&&(mt===2||mt===9)||e.cancelPendingCommit!==null)&&(Si(e,0),Ql(e,Ye,ra,!1)),Ia(e,a),((ft&2)===0||e!==Ct)&&(e===Ct&&((ft&2)===0&&(Ur|=a),Yt===4&&Ql(e,Ye,ra,!1)),Ka(e))}function Yg(e,t,a){if((ft&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||$a(e,t),o=i?L_(e,t):nd(e,t,!0),u=i;do{if(o===0){_i&&!i&&Ql(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!M_(a)){o=nd(e,t,!1),u=!1;continue}if(o===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;o=gs;var R=_.current.memoizedState.isDehydrated;if(R&&(Si(_,g).flags|=256),g=nd(_,g,!1),g!==2){if(Zf&&!R){_.errorRecoveryDisabledLanes|=u,Ur|=u,o=4;break e}u=Zn,Zn=o,u!==null&&(Zn===null?Zn=u:Zn.push.apply(Zn,u))}o=g}if(u=!1,o!==2)continue}}if(o===1){Si(e,0),Ql(e,t,0,!0);break}e:{switch(i=e,u=o,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ql(i,t,ra,!Fl);break e;case 2:Zn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Io+300-dt(),10<o)){if(Ql(i,t,ra,!Fl),ma(i,0,!0)!==0)break e;pl=t,i.timeoutHandle=A0(Xg.bind(null,i,a,Zn,Vo,Qf,t,ra,Ur,Ai,Fl,u,"Throttled",-0,0),o);break e}Xg(i,a,Zn,Vo,Qf,t,ra,Ur,Ai,Fl,u,null,-0,0)}}break}while(!0);Ka(e)}function Xg(e,t,a,i,o,u,g,_,R,U,K,Q,I,G){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:el},jg(t,u,Q);var be=(u&62914560)===u?Io-dt():(u&4194048)===u?Ig-dt():0;if(be=p2(Q,be),be!==null){pl=u,e.cancelPendingCommit=be($g.bind(null,e,t,u,a,i,o,g,_,R,K,Q,null,I,G)),Ql(e,u,g,!U);return}}$g(e,t,u,a,i,o,g,_,R)}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 o=a[i],u=o.getSnapshot;o=o.value;try{if(!ea(u(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ql(e,t,a,i){t&=~Wf,t&=~Ur,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var u=31-At(o),g=1<<u;i[u]=-1,o&=~g}a!==0&&vr(e,a,t)}function Yo(){return(ft&6)===0?(ys(0),!1):!0}function td(){if(He!==null){if(mt===0)var e=He.return;else e=He,ll=wr=null,vf(e),hi=null,es=0,e=He;for(;e!==null;)Cg(e.alternate,e),e=e.return;He=null}}function Si(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Q_(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),pl=0,td(),Ct=e,He=a=nl(e.current,null),Ye=t,mt=0,la=null,Fl=!1,_i=$a(e,t),Zf=!1,Ai=ra=Wf=Ur=Jl=Yt=0,Zn=gs=null,Qf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-At(i),u=1<<o;t|=e[o],i&=~u}return ml=t,uo(),a}function Kg(e,t){Me=null,N.H=os,t===di||t===bo?(t=op(),mt=3):t===lf?(t=op(),mt=4):mt=t===Lf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,la=t,He===null&&(Yt=1,Lo(e,va(t,e.current)))}function Fg(){var e=na.current;return e===null?!0:(Ye&4194048)===Ye?Aa===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===Aa:!1}function Jg(){var e=N.H;return N.H=os,e===null?os:e}function Zg(){var e=N.A;return N.A=w_,e}function Xo(){Yt=4,Fl||(Ye&4194048)!==Ye&&na.current!==null||(_i=!0),(Jl&134217727)===0&&(Ur&134217727)===0||Ct===null||Ql(Ct,Ye,ra,!1)}function nd(e,t,a){var i=ft;ft|=2;var o=Jg(),u=Zg();(Ct!==e||Ye!==t)&&(Vo=null,Si(e,t)),t=!1;var g=Yt;e:do try{if(mt!==0&&He!==null){var _=He,R=la;switch(mt){case 8:td(),g=6;break e;case 3:case 2:case 9:case 6:na.current===null&&(t=!0);var U=mt;if(mt=0,la=null,Ei(e,_,R,U),a&&_i){g=0;break e}break;default:U=mt,mt=0,la=null,Ei(e,_,R,U)}}D_(),g=Yt;break}catch(K){Kg(e,K)}while(!0);return t&&e.shellSuspendCounter++,ll=wr=null,ft=i,N.H=o,N.A=u,He===null&&(Ct=null,Ye=0,uo()),g}function D_(){for(;He!==null;)Wg(He)}function L_(e,t){var a=ft;ft|=2;var i=Jg(),o=Zg();Ct!==e||Ye!==t?(Vo=null,Go=dt()+500,Si(e,t)):_i=$a(e,t);e:do try{if(mt!==0&&He!==null){t=He;var u=la;t:switch(mt){case 1:mt=0,la=null,Ei(e,t,u,1);break;case 2:case 9:if(ip(u)){mt=0,la=null,Qg(t);break}t=function(){mt!==2&&mt!==9||Ct!==e||(mt=7),Ka(e)},u.then(t,t);break e;case 3:mt=7;break e;case 4:mt=5;break e;case 7:ip(u)?(mt=0,la=null,Qg(t)):(mt=0,la=null,Ei(e,t,u,7));break;case 5:var g=null;switch(He.tag){case 26:g=He.memoizedState;case 5:case 27:var _=He;if(g?B0(g):_.stateNode.complete){mt=0,la=null;var R=_.sibling;if(R!==null)He=R;else{var U=_.return;U!==null?(He=U,Ko(U)):He=null}break t}}mt=0,la=null,Ei(e,t,u,5);break;case 6:mt=0,la=null,Ei(e,t,u,6);break;case 8:td(),Yt=6;break e;default:throw Error(s(462))}}z_();break}catch(K){Kg(e,K)}while(!0);return ll=wr=null,N.H=i,N.A=o,ft=a,He!==null?0:(Ct=null,Ye=0,uo(),Yt)}function z_(){for(;He!==null&&!Fe();)Wg(He)}function Wg(e){var t=_g(e.alternate,e,ml);e.memoizedProps=e.pendingProps,t===null?Ko(e):He=t}function Qg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=mg(a,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=mg(a,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:vf(t);default:Cg(a,t),t=He=Zm(t,ml),t=_g(a,t,ml)}e.memoizedProps=e.pendingProps,t===null?Ko(e):He=t}function Ei(e,t,a,i){ll=wr=null,vf(t),hi=null,es=0;var o=t.return;try{if(C_(e,o,t,a,Ye)){Yt=1,Lo(e,va(a,e.current)),He=null;return}}catch(u){if(o!==null)throw He=o,u;Yt=1,Lo(e,va(a,e.current)),He=null;return}t.flags&32768?(Ze||i===1?e=!0:_i||(Ye&536870912)!==0?e=!1:(Fl=e=!0,(i===2||i===9||i===3||i===6)&&(i=na.current,i!==null&&i.tag===13&&(i.flags|=16384))),Pg(t,e)):Ko(t)}function Ko(e){var t=e;do{if((t.flags&32768)!==0){Pg(t,Fl);return}e=t.return;var a=T_(t.alternate,t,ml);if(a!==null){He=a;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);Yt===0&&(Yt=5)}function Pg(e,t){do{var a=x_(e.alternate,e);if(a!==null){a.flags&=32767,He=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){He=e;return}He=e=a}while(e!==null);Yt=6,He=null}function $g(e,t,a,i,o,u,g,_,R){e.cancelPendingCommit=null;do Fo();while(fn!==0);if((ft&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Vu,Nl(e,a,u,g,_,R),e===Ct&&(He=Ct=null,Ye=0),Ci=t,Wl=e,pl=a,Pf=u,$f=o,Gg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,U_(Qt,function(){return l0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=N.T,N.T=null,o=F.p,F.p=2,g=ft,ft|=4;try{O_(e,t,a)}finally{ft=g,F.p=o,N.T=i}}fn=1,e0(),t0(),n0()}}function e0(){if(fn===1){fn=0;var e=Wl,t=Ci,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null;var i=F.p;F.p=2;var o=ft;ft|=4;try{zg(t,e);var u=md,g=qm(e.containerInfo),_=u.focusedElem,R=u.selectionRange;if(g!==_&&_&&_.ownerDocument&&Hm(_.ownerDocument.documentElement,_)){if(R!==null&&Uu(_)){var U=R.start,K=R.end;if(K===void 0&&(K=U),"selectionStart"in _)_.selectionStart=U,_.selectionEnd=Math.min(K,_.value.length);else{var Q=_.ownerDocument||document,I=Q&&Q.defaultView||window;if(I.getSelection){var G=I.getSelection(),be=_.textContent.length,xe=Math.min(R.start,be),_t=R.end===void 0?xe:Math.min(R.end,be);!G.extend&&xe>_t&&(g=_t,_t=xe,xe=g);var k=Um(_,xe),D=Um(_,_t);if(k&&D&&(G.rangeCount!==1||G.anchorNode!==k.node||G.anchorOffset!==k.offset||G.focusNode!==D.node||G.focusOffset!==D.offset)){var j=Q.createRange();j.setStart(k.node,k.offset),G.removeAllRanges(),xe>_t?(G.addRange(j),G.extend(D.node,D.offset)):(j.setEnd(D.node,D.offset),G.addRange(j))}}}}for(Q=[],G=_;G=G.parentNode;)G.nodeType===1&&Q.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<Q.length;_++){var Z=Q[_];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}rc=!!hd,md=hd=null}finally{ft=o,F.p=i,N.T=a}}e.current=t,fn=2}}function t0(){if(fn===2){fn=0;var e=Wl,t=Ci,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=N.T,N.T=null;var i=F.p;F.p=2;var o=ft;ft|=4;try{wg(e,t.alternate,t)}finally{ft=o,F.p=i,N.T=a}}fn=3}}function n0(){if(fn===4||fn===3){fn=0,qa();var e=Wl,t=Ci,a=pl,i=Gg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?fn=5:(fn=0,Ci=Wl=null,a0(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Zl=null),$n(a),t=t.stateNode,nt&&typeof nt.onCommitFiberRoot=="function")try{nt.onCommitFiberRoot(Bt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=N.T,o=F.p,F.p=2,N.T=null;try{for(var u=e.onRecoverableError,g=0;g<i.length;g++){var _=i[g];u(_.value,{componentStack:_.stack})}}finally{N.T=t,F.p=o}}(pl&3)!==0&&Fo(),Ka(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===ed?vs++:(vs=0,ed=e):vs=0,ys(0)}}function a0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pi(t)))}function Fo(){return e0(),t0(),n0(),l0()}function l0(){if(fn!==5)return!1;var e=Wl,t=Pf;Pf=0;var a=$n(pl),i=N.T,o=F.p;try{F.p=32>a?32:a,N.T=null,a=$f,$f=null;var u=Wl,g=pl;if(fn=0,Ci=Wl=null,pl=0,(ft&6)!==0)throw Error(s(331));var _=ft;if(ft|=4,Hg(u.current),Bg(u,u.current,g,a),ft=_,ys(0,!1),nt&&typeof nt.onPostCommitFiberRoot=="function")try{nt.onPostCommitFiberRoot(Bt,u)}catch{}return!0}finally{F.p=o,N.T=i,a0(e,t)}}function r0(e,t,a){t=va(a,t),t=Df(e.stateNode,t,2),e=Vl(e,t,2),e!==null&&(Ia(e,2),Ka(e))}function pt(e,t,a){if(e.tag===3)r0(e,e,a);else for(;t!==null;){if(t.tag===3){r0(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Zl===null||!Zl.has(i))){e=va(a,e),a=ig(2),i=Vl(t,a,2),i!==null&&(sg(a,i,t,e),Ia(i,2),Ka(i));break}}t=t.return}}function ad(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new N_;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(Zf=!0,o.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,Ct===e&&(Ye&a)===a&&(Yt===4||Yt===3&&(Ye&62914560)===Ye&&300>dt()-Io?(ft&2)===0&&Si(e,0):Wf|=a,Ai===Ye&&(Ai=0)),Ka(e)}function i0(e,t){t===0&&(t=wa()),e=xr(e,t),e!==null&&(Ia(e,t),Ka(e))}function B_(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),i0(e,a)}function j_(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),i0(e,a)}function U_(e,t){return zt(e,t)}var Jo=null,Ti=null,ld=!1,Zo=!1,rd=!1,Pl=0;function Ka(e){e!==Ti&&e.next===null&&(Ti===null?Jo=Ti=e:Ti=Ti.next=e),Zo=!0,ld||(ld=!0,q_())}function ys(e,t){if(!rd&&Zo){rd=!0;do for(var a=!1,i=Jo;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var u=0;else{var g=i.suspendedLanes,_=i.pingedLanes;u=(1<<31-At(42|e)+1)-1,u&=o&~(g&~_),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,u0(i,u))}else u=Ye,u=ma(i,i===Ct?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||$a(i,u)||(a=!0,u0(i,u));i=i.next}while(a);rd=!1}}function H_(){s0()}function s0(){Zo=ld=!1;var e=0;Pl!==0&&W_()&&(e=Pl);for(var t=dt(),a=null,i=Jo;i!==null;){var o=i.next,u=o0(i,t);u===0?(i.next=null,a===null?Jo=o:a.next=o,o===null&&(Ti=a)):(a=i,(e!==0||(u&3)!==0)&&(Zo=!0)),i=o}fn!==0&&fn!==5||ys(e),Pl!==0&&(Pl=0)}function o0(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var g=31-At(u),_=1<<g,R=o[g];R===-1?((_&a)===0||(_&i)!==0)&&(o[g]=jt(_,t)):R<=t&&(e.expiredLanes|=_),u&=~_}if(t=Ct,a=Ye,a=ma(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(mt===2||mt===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&kt(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||$a(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&kt(i),$n(a)){case 2:case 8:a=Gt;break;case 32:a=Qt;break;case 268435456:a=gn;break;default:a=Qt}return i=c0.bind(null,e),a=zt(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&kt(i),e.callbackPriority=2,e.callbackNode=null,2}function c0(e,t){if(fn!==0&&fn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Fo()&&e.callbackNode!==a)return null;var i=Ye;return i=ma(e,e===Ct?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Yg(e,i,t),o0(e,dt()),e.callbackNode!=null&&e.callbackNode===a?c0.bind(null,e):null)}function u0(e,t){if(Fo())return null;Yg(e,t,!0)}function q_(){P_(function(){(ft&6)!==0?zt(En,H_):s0()})}function id(){if(Pl===0){var e=ui;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),Pl=e}return Pl}function f0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:no(""+e)}function d0(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,o){if(t==="submit"&&a&&a.stateNode===o){var u=f0((o[vt]||null).action),g=i.submitter;g&&(t=(t=g[vt]||null)?f0(t.formAction):g.getAttribute("formAction"),t!==null&&(u=t,g=null));var _=new io("action","action",null,i,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Pl!==0){var R=g?d0(o,g):new FormData(o);xf(a,{pending:!0,data:R,method:o.method,action:u},null,R)}}else typeof u=="function"&&(_.preventDefault(),R=g?d0(o,g):new FormData(o),xf(a,{pending:!0,data:R,method:o.method,action:u},u,R))},currentTarget:o}]})}}for(var sd=0;sd<Gu.length;sd++){var od=Gu[sd],G_=od.toLowerCase(),V_=od[0].toUpperCase()+od.slice(1);Ma(G_,"on"+V_)}Ma(Vm,"onAnimationEnd"),Ma(Ym,"onAnimationIteration"),Ma(Xm,"onAnimationStart"),Ma("dblclick","onDoubleClick"),Ma("focusin","onFocus"),Ma("focusout","onBlur"),Ma(r_,"onTransitionRun"),Ma(i_,"onTransitionStart"),Ma(s_,"onTransitionCancel"),Ma(Km,"onTransitionEnd"),pa("onMouseEnter",["mouseout","mouseover"]),pa("onMouseLeave",["mouseout","mouseover"]),pa("onPointerEnter",["pointerout","pointerover"]),pa("onPointerLeave",["pointerout","pointerover"]),Pt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(bs));function h0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],o=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var g=i.length-1;0<=g;g--){var _=i[g],R=_.instance,U=_.currentTarget;if(_=_.listener,R!==u&&o.isPropagationStopped())break e;u=_,o.currentTarget=U;try{u(o)}catch(K){co(K)}o.currentTarget=null,u=R}else for(g=0;g<i.length;g++){if(_=i[g],R=_.instance,U=_.currentTarget,_=_.listener,R!==u&&o.isPropagationStopped())break e;u=_,o.currentTarget=U;try{u(o)}catch(K){co(K)}o.currentTarget=null,u=R}}}}function qe(e,t){var a=t[Ll];a===void 0&&(a=t[Ll]=new Set);var i=e+"__bubble";a.has(i)||(m0(t,e,2,!1),a.add(i))}function cd(e,t,a){var i=0;t&&(i|=4),m0(a,e,i,t)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function ud(e){if(!e[Wo]){e[Wo]=!0,un.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[Wo]||(t[Wo]=!0,cd("selectionchange",!1,t))}}function m0(e,t,a,i){switch(V0(t)){case 2:var o=y2;break;case 8:o=b2;break;default:o=Td}a=o.bind(null,t,a,e),o=void 0,!wu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function fd(e,t,a,i,o){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(_===o)break;if(g===4)for(g=i.return;g!==null;){var R=g.tag;if((R===3||R===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;_!==null;){if(g=te(_),g===null)return;if(R=g.tag,R===5||R===6||R===26||R===27){i=u=g;continue e}_=_.parentNode}}i=i.return}bm(function(){var U=u,K=Ou(a),Q=[];e:{var I=Fm.get(e);if(I!==void 0){var G=io,be=e;switch(e){case"keypress":if(lo(a)===0)break e;case"keydown":case"keyup":G=jb;break;case"focusin":be="focus",G=Lu;break;case"focusout":be="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=Cm;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 Vm:case Ym:case Xm:G=Rb;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=Em;break;case"toggle":case"beforetoggle":G=Kb}var xe=(t&4)!==0,_t=!xe&&(e==="scroll"||e==="scrollend"),k=xe?I!==null?I+"Capture":null:I;xe=[];for(var D=U,j;D!==null;){var Z=D;if(j=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||j===null||k===null||(Z=Ii(D,k),Z!=null&&xe.push(_s(D,Z,j))),_t)break;D=D.return}0<xe.length&&(I=new G(I,be,null,a,K),Q.push({event:I,listeners:xe}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",I&&a!==xu&&(be=a.relatedTarget||a.fromElement)&&(te(be)||be[Vn]))break e;if((G||I)&&(I=K.window===K?K:(I=K.ownerDocument)?I.defaultView||I.parentWindow:window,G?(be=a.relatedTarget||a.toElement,G=U,be=be?te(be):null,be!==null&&(_t=f(be),xe=be.tag,be!==_t||xe!==5&&xe!==27&&xe!==6)&&(be=null)):(G=null,be=U),G!==be)){if(xe=Cm,Z="onMouseLeave",k="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Em,Z="onPointerLeave",k="onPointerEnter",D="pointer"),_t=G==null?I:Je(G),j=be==null?I:Je(be),I=new xe(Z,D+"leave",G,a,K),I.target=_t,I.relatedTarget=j,Z=null,te(K)===U&&(xe=new xe(k,D+"enter",be,a,K),xe.target=j,xe.relatedTarget=_t,Z=xe),_t=Z,G&&be)t:{for(xe=X_,k=G,D=be,j=0,Z=k;Z;Z=xe(Z))j++;Z=0;for(var Se=D;Se;Se=xe(Se))Z++;for(;0<j-Z;)k=xe(k),j--;for(;0<Z-j;)D=xe(D),Z--;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&&p0(Q,I,G,xe,!1),be!==null&&_t!==null&&p0(Q,_t,be,xe,!0)}}e:{if(I=U?Je(U):window,G=I.nodeName&&I.nodeName.toLowerCase(),G==="select"||G==="input"&&I.type==="file")var it=Dm;else if(Nm(I))if(Lm)it=n_;else{it=e_;var Ae=$b}else G=I.nodeName,!G||G.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?U&&Tu(U.elementType)&&(it=Dm):it=t_;if(it&&(it=it(e,U))){Mm(Q,it,a,K);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?Je(U):window,e){case"focusin":(Nm(Ae)||Ae.contentEditable==="true")&&(ni=Ae,Hu=U,Zi=null);break;case"focusout":Zi=Hu=ni=null;break;case"mousedown":qu=!0;break;case"contextmenu":case"mouseup":case"dragend":qu=!1,Im(Q,a,K);break;case"selectionchange":if(l_)break;case"keydown":case"keyup":Im(Q,a,K)}var De;if(ku)e:{switch(e){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else ti?Rm(e,a)&&(Xe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Xe="onCompositionStart");Xe&&(Tm&&a.locale!=="ko"&&(ti||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&ti&&(De=_m()):(Bl=K,Nu="value"in Bl?Bl.value:Bl.textContent,ti=!0)),Ae=Qo(U,Xe),0<Ae.length&&(Xe=new Sm(Xe,e,null,a,K),Q.push({event:Xe,listeners:Ae}),De?Xe.data=De:(De=wm(a),De!==null&&(Xe.data=De)))),(De=Jb?Zb(e,a):Wb(e,a))&&(Xe=Qo(U,"onBeforeInput"),0<Xe.length&&(Ae=new Sm("onBeforeInput","beforeinput",null,a,K),Q.push({event:Ae,listeners:Xe}),Ae.data=De)),I_(Q,e,U,a,K)}h0(Q,t)})}function _s(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Qo(e,t){for(var a=t+"Capture",i=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Ii(e,a),o!=null&&i.unshift(_s(e,o,u)),o=Ii(e,t),o!=null&&i.push(_s(e,o,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 p0(e,t,a,i,o){for(var u=t._reactName,g=[];a!==null&&a!==i;){var _=a,R=_.alternate,U=_.stateNode;if(_=_.tag,R!==null&&R===i)break;_!==5&&_!==26&&_!==27||U===null||(R=U,o?(U=Ii(a,u),U!=null&&g.unshift(_s(a,U,R))):o||(U=Ii(a,u),U!=null&&g.push(_s(a,U,R)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var K_=/\r\n?/g,F_=/\u0000|\uFFFD/g;function g0(e){return(typeof e=="string"?e:""+e).replace(K_,`
|
|
9
|
-
`).replace(F_,"")}function v0(e,t){return t=g0(t),g0(e)===t}function bt(e,t,a,i,o,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":Wr(e,"class",i);break;case"tabIndex":Wr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Wr(e,a,i);break;case"style":vm(e,i,u);break;case"data":if(t!=="object"){Wr(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=no(""+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"&&bt(e,t,"name",o.name,o,null),bt(e,t,"formEncType",o.formEncType,o,null),bt(e,t,"formMethod",o.formMethod,o,null),bt(e,t,"formTarget",o.formTarget,o,null)):(bt(e,t,"encType",o.encType,o,null),bt(e,t,"method",o.method,o,null),bt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=no(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=el);break;case"onScroll":i!=null&&qe("scroll",e);break;case"onScrollEnd":i!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(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=no(""+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":qe("beforetoggle",e),qe("toggle",e),Zr(e,"popover",i);break;case"xlinkActuate":Na(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Na(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Na(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Na(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Na(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Na(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Na(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Zr(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,Zr(e,a,i))}}function dd(e,t,a,i,o,u){switch(a){case"style":vm(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(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&&qe("scroll",e);break;case"onScrollEnd":i!=null&&qe("scrollend",e);break;case"onClick":i!=null&&(e.onclick=el);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vn.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),u=e[vt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof i=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,o);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Zr(e,a,i)}}}function An(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var i=!1,o=!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":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:bt(e,t,u,g,a,null)}}o&&bt(e,t,"srcSet",a.srcSet,a,null),i&&bt(e,t,"src",a.src,a,null);return;case"input":qe("invalid",e);var _=u=g=o=null,R=null,U=null;for(i in a)if(a.hasOwnProperty(i)){var K=a[i];if(K!=null)switch(i){case"name":o=K;break;case"type":g=K;break;case"checked":R=K;break;case"defaultChecked":U=K;break;case"value":u=K;break;case"defaultValue":_=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,t));break;default:bt(e,t,i,K,a,null)}}to(e,u,_,R,U,g,o,!1);return;case"select":qe("invalid",e),i=g=u=null;for(o in a)if(a.hasOwnProperty(o)&&(_=a[o],_!=null))switch(o){case"value":u=_;break;case"defaultValue":g=_;break;case"multiple":i=_;default:bt(e,t,o,_,a,null)}t=u,a=g,e.multiple=!!i,t!=null?Qr(e,!!i,t,!1):a!=null&&Qr(e,!!i,a,!0);return;case"textarea":qe("invalid",e),u=o=i=null;for(g in a)if(a.hasOwnProperty(g)&&(_=a[g],_!=null))switch(g){case"value":i=_;break;case"defaultValue":o=_;break;case"children":u=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:bt(e,t,g,_,a,null)}pm(e,i,o,u);return;case"option":for(R in a)a.hasOwnProperty(R)&&(i=a[R],i!=null)&&(R==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":bt(e,t,R,i,a,null));return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(i=0;i<bs.length;i++)qe(bs[i],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("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(s(137,t));default:bt(e,t,U,i,a,null)}return;default:if(Tu(t)){for(K in a)a.hasOwnProperty(K)&&(i=a[K],i!==void 0&&dd(e,t,K,i,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(i=a[_],i!=null&&bt(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 o=null,u=null,g=null,_=null,R=null,U=null,K=null;for(G in a){var Q=a[G];if(a.hasOwnProperty(G)&&Q!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":R=Q;default:i.hasOwnProperty(G)||bt(e,t,G,null,i,Q)}}for(var I in i){var G=i[I];if(Q=a[I],i.hasOwnProperty(I)&&(G!=null||Q!=null))switch(I){case"type":u=G;break;case"name":o=G;break;case"checked":U=G;break;case"defaultChecked":K=G;break;case"value":g=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:G!==Q&&bt(e,t,I,G,i,Q)}}qi(e,g,_,R,U,K,u,o);return;case"select":G=g=_=I=null;for(u in a)if(R=a[u],a.hasOwnProperty(u)&&R!=null)switch(u){case"value":break;case"multiple":G=R;default:i.hasOwnProperty(u)||bt(e,t,u,null,i,R)}for(o in i)if(u=i[o],R=a[o],i.hasOwnProperty(o)&&(u!=null||R!=null))switch(o){case"value":I=u;break;case"defaultValue":_=u;break;case"multiple":g=u;default:u!==R&&bt(e,t,o,u,i,R)}t=_,a=g,i=G,I!=null?Qr(e,!!a,I,!1):!!i!=!!a&&(t!=null?Qr(e,!!a,t,!0):Qr(e,!!a,a?[]:"",!1));return;case"textarea":G=I=null;for(_ in a)if(o=a[_],a.hasOwnProperty(_)&&o!=null&&!i.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:bt(e,t,_,null,i,o)}for(g in i)if(o=i[g],u=a[g],i.hasOwnProperty(g)&&(o!=null||u!=null))switch(g){case"value":I=o;break;case"defaultValue":G=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==u&&bt(e,t,g,o,i,u)}mm(e,I,G);return;case"option":for(var be in a)I=a[be],a.hasOwnProperty(be)&&I!=null&&!i.hasOwnProperty(be)&&(be==="selected"?e.selected=!1:bt(e,t,be,null,i,I));for(R in i)I=i[R],G=a[R],i.hasOwnProperty(R)&&I!==G&&(I!=null||G!=null)&&(R==="selected"?e.selected=I&&typeof I!="function"&&typeof I!="symbol":bt(e,t,R,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)&&bt(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(s(137,t));break;default:bt(e,t,U,I,i,G)}return;default:if(Tu(t)){for(var _t in a)I=a[_t],a.hasOwnProperty(_t)&&I!==void 0&&!i.hasOwnProperty(_t)&&dd(e,t,_t,void 0,i,I);for(K in i)I=i[K],G=a[K],!i.hasOwnProperty(K)||I===G||I===void 0&&G===void 0||dd(e,t,K,I,i,G);return}}for(var k in a)I=a[k],a.hasOwnProperty(k)&&I!=null&&!i.hasOwnProperty(k)&&bt(e,t,k,null,i,I);for(Q in i)I=i[Q],G=a[Q],!i.hasOwnProperty(Q)||I===G||I==null&&G==null||bt(e,t,Q,I,i,G)}function y0(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 o=a[i],u=o.transferSize,g=o.initiatorType,_=o.duration;if(u&&_&&y0(g)){for(g=0,_=o.responseEnd,i+=1;i<a.length;i++){var R=a[i],U=R.startTime;if(U>_)break;var K=R.transferSize,Q=R.initiatorType;K&&y0(Q)&&(R=R.responseEnd,g+=K*(R<_?1:(_-U)/(R-U)))}if(--i,t+=8*(u+g)/(o.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 Po(e){return e.nodeType===9?e:e.ownerDocument}function b0(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 _0(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 A0=typeof setTimeout=="function"?setTimeout:void 0,Q_=typeof clearTimeout=="function"?clearTimeout:void 0,C0=typeof Promise=="function"?Promise:void 0,P_=typeof queueMicrotask=="function"?queueMicrotask:typeof C0<"u"?function(e){return C0.resolve(null).then(e).catch($_)}:A0;function $_(e){setTimeout(function(){throw e})}function $l(e){return e==="head"}function S0(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(o),wi(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")As(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,As(a);for(var u=a.firstChild;u;){var g=u.nextSibling,_=u.nodeName;u[me]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=g}}else a==="body"&&As(e.ownerDocument.body);a=o}while(a);wi(t)}function E0(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),w(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 o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[me])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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Ca(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=Ca(e.nextSibling),e===null))return null;return e}function T0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ca(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 Ca(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 x0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ca(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function O0(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=Po(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function As(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);w(e)}var Sa=new Map,w0=new Set;function $o(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var gl=F.d;F.d={f:a2,r:l2,D:r2,C:i2,L:s2,m:o2,X:u2,S:c2,M:f2};function a2(){var e=gl.f(),t=Yo();return e||t}function l2(e){var t=ve(e);t!==null&&t.tag===5&&t.type==="form"?Kp(t):gl.r(e)}var xi=typeof document>"u"?null:document;function N0(e,t,a){var i=xi;if(i&&typeof t=="string"&&t){var o=Yn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),w0.has(o)||(w0.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),An(t,"link",e),Oe(t),i.head.appendChild(t)))}}function r2(e){gl.D(e),N0("dns-prefetch",e,null)}function i2(e,t){gl.C(e,t),N0("preconnect",e,t)}function s2(e,t,a){gl.L(e,t,a);var i=xi;if(i&&e&&t){var o='link[rel="preload"][as="'+Yn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Yn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Yn(a.imageSizes)+'"]')):o+='[href="'+Yn(e)+'"]';var u=o;switch(t){case"style":u=Oi(e);break;case"script":u=Ri(e)}Sa.has(u)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Sa.set(u,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Cs(u))||t==="script"&&i.querySelector(Ss(u))||(t=i.createElement("link"),An(t,"link",e),Oe(t),i.head.appendChild(t)))}}function o2(e,t){gl.m(e,t);var a=xi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Yn(i)+'"][href="'+Yn(e)+'"]',u=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ri(e)}if(!Sa.has(u)&&(e=b({rel:"modulepreload",href:e},t),Sa.set(u,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ss(u)))return}i=a.createElement("link"),An(i,"link",e),Oe(i),a.head.appendChild(i)}}}function c2(e,t,a){gl.S(e,t,a);var i=xi;if(i&&e){var o=ut(i).hoistableStyles,u=Oi(e);t=t||"default";var g=o.get(u);if(!g){var _={loading:0,preload:null};if(g=i.querySelector(Cs(u)))_.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Sa.get(u))&&Ad(e,a);var R=g=i.createElement("link");Oe(R),An(R,"link",e),R._p=new Promise(function(U,K){R.onload=U,R.onerror=K}),R.addEventListener("load",function(){_.loading|=1}),R.addEventListener("error",function(){_.loading|=2}),_.loading|=4,ec(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:_},o.set(u,g)}}}function u2(e,t){gl.X(e,t);var a=xi;if(a&&e){var i=ut(a).hoistableScripts,o=Ri(e),u=i.get(o);u||(u=a.querySelector(Ss(o)),u||(e=b({src:e,async:!0},t),(t=Sa.get(o))&&Cd(e,t),u=a.createElement("script"),Oe(u),An(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(o,u))}}function f2(e,t){gl.M(e,t);var a=xi;if(a&&e){var i=ut(a).hoistableScripts,o=Ri(e),u=i.get(o);u||(u=a.querySelector(Ss(o)),u||(e=b({src:e,async:!0,type:"module"},t),(t=Sa.get(o))&&Cd(e,t),u=a.createElement("script"),Oe(u),An(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(o,u))}}function M0(e,t,a,i){var o=(o=ue.current)?$o(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Oi(a.href),a=ut(o).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=Oi(a.href);var u=ut(o).hoistableStyles,g=u.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=o.querySelector(Cs(e)))&&!u._p&&(g.instance=u,g.state.loading=5),Sa.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},Sa.set(e,a),u||d2(o,e,a,g.state))),t&&i===null)throw Error(s(528,""));return g}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ri(a),a=ut(o).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(s(444,e))}}function Oi(e){return'href="'+Yn(e)+'"'}function Cs(e){return'link[rel="stylesheet"]['+e+"]"}function D0(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}),An(t,"link",a),Oe(t),e.head.appendChild(t))}function Ri(e){return'[src="'+Yn(e)+'"]'}function Ss(e){return"script[async]"+e}function L0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Yn(a.href)+'"]');if(i)return t.instance=i,Oe(i),i;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Oe(i),An(i,"style",o),ec(i,a.precedence,e),t.instance=i;case"stylesheet":o=Oi(a.href);var u=e.querySelector(Cs(o));if(u)return t.state.loading|=4,t.instance=u,Oe(u),u;i=D0(a),(o=Sa.get(o))&&Ad(i,o),u=(e.ownerDocument||e).createElement("link"),Oe(u);var g=u;return g._p=new Promise(function(_,R){g.onload=_,g.onerror=R}),An(u,"link",i),t.state.loading|=4,ec(u,a.precedence,e),t.instance=u;case"script":return u=Ri(a.src),(o=e.querySelector(Ss(u)))?(t.instance=o,Oe(o),o):(i=a,(o=Sa.get(u))&&(i=b({},a),Cd(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),Oe(o),An(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,ec(i,a.precedence,e));return t.instance}function ec(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,u=o,g=0;g<i.length;g++){var _=i[g];if(_.dataset.precedence===t)u=_;else if(u!==o)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 tc=null;function z0(e,t,a){if(tc===null){var i=new Map,o=tc=new Map;o.set(a,i)}else o=tc,i=o.get(a),i||(i=new Map,o.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var u=a[o];if(!(u[me]||u[Et]||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 k0(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 B0(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 o=Oi(i.href),u=t.querySelector(Cs(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=nc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Oe(u);return}u=t.ownerDocument||t,i=D0(i),(o=Sa.get(o))&&Ad(i,o),u=u.createElement("link"),Oe(u);var g=u;g._p=new Promise(function(_,R){g.onload=_,g.onerror=R}),An(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=nc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Sd=0;function p2(e,t){return e.stylesheets&&e.count===0&&lc(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Sd===0&&(Sd=62500*Z_());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lc(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(o)}}:null}function nc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ac=null;function lc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ac=new Map,t.forEach(g2,e),ac=null,nc.call(e))}function g2(e,t){if(!(t.state.loading&4)){var a=ac.get(e);if(a)var i=a.get(null);else{a=new Map,ac.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var g=o[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),i=g)}i&&a.set(null,i)}o=t.instance,g=o.getAttribute("data-precedence"),u=a.get(g)||i,u===i&&a.set(null,o),a.set(g,o),this.count++,i=nc.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Es={$$typeof:M,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function v2(e,t,a,i,o,u,g,_,R){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=o,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function j0(e,t,a,i,o,u,g,_,R,U,K,Q){return e=new v2(e,t,a,g,R,U,K,Q,_),t=1,u===!0&&(t|=24),u=ta(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 U0(e){return e?(e=ri,e):ri}function H0(e,t,a,i,o,u){o=U0(o),i.context===null?i.context=o:i.pendingContext=o,i=Gl(t),i.payload={element:a},u=u===void 0?null:u,u!==null&&(i.callback=u),a=Vl(e,i,t),a!==null&&(Wn(a,e,t),ns(a,e,t))}function q0(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){q0(e,t),(e=e.alternate)&&q0(e,t)}function I0(e){if(e.tag===13||e.tag===31){var t=xr(e,67108864);t!==null&&Wn(t,e,67108864),Ed(e,67108864)}}function G0(e){if(e.tag===13||e.tag===31){var t=ia();t=xn(t);var a=xr(e,t);a!==null&&Wn(a,e,t),Ed(e,t)}}var rc=!0;function y2(e,t,a,i){var o=N.T;N.T=null;var u=F.p;try{F.p=2,Td(e,t,a,i)}finally{F.p=u,N.T=o}}function b2(e,t,a,i){var o=N.T;N.T=null;var u=F.p;try{F.p=8,Td(e,t,a,i)}finally{F.p=u,N.T=o}}function Td(e,t,a,i){if(rc){var o=xd(i);if(o===null)fd(e,t,i,ic,a),Y0(e,i);else if(A2(o,e,t,a,i))i.stopPropagation();else if(Y0(e,i),t&4&&-1<_2.indexOf(e)){for(;o!==null;){var u=ve(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=Nt(u.pendingLanes);if(g!==0){var _=u;for(_.pendingLanes|=2,_.entangledLanes|=2;g;){var R=1<<31-At(g);_.entanglements[1]|=R,g&=~R}Ka(u),(ft&6)===0&&(Go=dt()+500,ys(0))}}break;case 31:case 13:_=xr(u,2),_!==null&&Wn(_,u,2),Yo(),Ed(u,2)}if(u=xd(i),u===null&&fd(e,t,i,ic,a),u===o)break;o=u}o!==null&&i.stopPropagation()}else fd(e,t,i,null,a)}}function xd(e){return e=Ou(e),Od(e)}var ic=null;function Od(e){if(ic=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 ic=e,null}function V0(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(Nn()){case En:return 2;case Gt:return 8;case Qt:case Pa:return 32;case gn:return 268435456;default:return 32}default:return 32}}var Rd=!1,er=null,tr=null,nr=null,Ts=new Map,xs=new Map,ar=[],_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 Y0(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(t.pointerId)}}function Os(e,t,a,i,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:u,targetContainers:[o]},t!==null&&(t=ve(t),t!==null&&I0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function A2(e,t,a,i,o){switch(t){case"focusin":return er=Os(er,e,t,a,i,o),!0;case"dragenter":return tr=Os(tr,e,t,a,i,o),!0;case"mouseover":return nr=Os(nr,e,t,a,i,o),!0;case"pointerover":var u=o.pointerId;return Ts.set(u,Os(Ts.get(u)||null,e,t,a,i,o)),!0;case"gotpointercapture":return u=o.pointerId,xs.set(u,Os(xs.get(u)||null,e,t,a,i,o)),!0}return!1}function X0(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,cn(e.priority,function(){G0(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,cn(e.priority,function(){G0(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 sc(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=ve(a),t!==null&&I0(t),e.blockedOn=a,!1;t.shift()}return!0}function K0(e,t,a){sc(e)&&a.delete(t)}function C2(){Rd=!1,er!==null&&sc(er)&&(er=null),tr!==null&&sc(tr)&&(tr=null),nr!==null&&sc(nr)&&(nr=null),Ts.forEach(K0),xs.forEach(K0)}function oc(e,t){e.blockedOn===t&&(e.blockedOn=null,Rd||(Rd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,C2)))}var cc=null;function F0(e){cc!==e&&(cc=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){cc===e&&(cc=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Od(i||a)===null)continue;break}var u=ve(a);u!==null&&(e.splice(t,3),t-=3,xf(u,{pending:!0,data:o,method:a.method,action:i},i,o))}}))}function wi(e){function t(R){return oc(R,e)}er!==null&&oc(er,e),tr!==null&&oc(tr,e),nr!==null&&oc(nr,e),Ts.forEach(t),xs.forEach(t);for(var a=0;a<ar.length;a++){var i=ar[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ar.length&&(a=ar[0],a.blockedOn===null);)X0(a),a.blockedOn===null&&ar.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var o=a[i],u=a[i+1],g=o[vt]||null;if(typeof u=="function")g||F0(a);else if(g){var _=null;if(u&&u.hasAttribute("formAction")){if(o=u,g=u[vt]||null)_=g.formAction;else if(Od(o)!==null)continue}else _=g.action;typeof _=="function"?a[i+1]=_:(a.splice(i,3),i-=3),F0(a)}}}function J0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=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,o=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),o!==null&&(o(),o=null)}}}function wd(e){this._internalRoot=e}uc.prototype.render=wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=ia();H0(a,i,e,t,null,null)},uc.prototype.unmount=wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;H0(e.current,2,null,e,null,null),Yo(),t[Vn]=null}};function uc(e){this._internalRoot=e}uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=yr();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ar.length&&t!==0&&t<ar[a].priority;a++);ar.splice(a,0,e),a===0&&X0(e)}};var Z0=l.version;if(Z0!=="19.2.4")throw Error(s(527,Z0,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=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:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{Bt=fc.inject(S2),nt=fc}catch{}}return ws.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,i="",o=ng,u=ag,g=lg;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=j0(e,1,!1,null,null,a,i,null,o,u,g,J0),e[Vn]=t.current,ud(e),new wd(t)},ws.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var i=!1,o="",u=ng,g=ag,_=lg,R=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=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&&(R=a.formState)),t=j0(e,1,!0,t,a??null,i,o,R,u,g,_,J0),t.context=U0(null),a=t.current,i=ia(),i=xn(i),o=Gl(i),o.callback=null,Vl(a,o,i),a=i,t.current.lanes=a,Ia(t,a),Ka(t),e[Vn]=t.current,ud(e),new uc(t)},ws.version="19.2.4",ws}var r1;function z2(){if(r1)return Md.exports;r1=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 Nv=T2(q);var Bd={exports:{}},jd={};var i1;function B2(){if(i1)return jd;i1=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,s=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 x={hasValue:!1,value:null};S.current=x}else x=S.current;S=d(function(){function E(H){if(!O){if(O=!0,L=H,H=b(H),A!==void 0&&x.hasValue){var B=x.value;if(A(B,H))return M=B}return M=H}if(B=M,r(L,H))return B;var Y=b(H);return A!==void 0&&A(B,Y)?(L=H,B):(L=H,M=Y)}var O=!1,L,M,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=s(h,S[0],S[1]);return f(function(){x.hasValue=!0,x.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"),K2=Symbol.for("react.context"),Mv=Symbol.for("react.forward_ref"),F2=Symbol.for("react.suspense"),J2=Symbol.for("react.suspense_list"),Nh=Symbol.for("react.memo"),Z2=Symbol.for("react.lazy"),W2=Mv,Q2=Nh;function P2(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 F2:case J2:return n;default:switch(n=n&&n.$$typeof,n){case K2:case Mv:case Z2:case Nh:return n;case X2:return n;default:return l}}case I2:return l}}}function $2(n){return P2(n)===Nh}function eA(n,l,r,s,{areStatesEqual:c,areOwnPropsEqual:f,areStatePropsEqual:d}){let m=!1,h,p,y,b,A;function S(L,M){return h=L,p=M,y=n(h,p),b=l(s,p),A=r(y,b,p),m=!0,A}function x(){return y=n(h,p),l.dependsOnOwnProps&&(b=l(s,p)),A=r(y,b,p),A}function C(){return n.dependsOnOwnProps&&(y=n(h,p)),l.dependsOnOwnProps&&(b=l(s,p)),A=r(y,b,p),A}function E(){const L=n(h,p),M=!d(L,y);return y=L,M&&(A=r(y,b,p)),A}function O(L,M){const z=!f(M,p),H=!c(L,h,M,p);return h=L,p=M,z&&H?x():z?C():H?E():A}return function(M,z){return m?O(M,z):S(M,z)}}function tA(n,{initMapStateToProps:l,initMapDispatchToProps:r,initMergeProps:s,...c}){const f=l(n,c),d=r(n,c),m=s(n,c);return eA(f,d,m,n,c)}function nA(n,l){const r={};for(const s in n){const c=n[s];typeof c=="function"&&(r[s]=(...f)=>l(c(...f)))}return r}function nh(n){return function(r){const s=n(r);function c(){return s}return c.dependsOnOwnProps=!1,c}}function o1(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function Dv(n,l){return function(s,{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=o1(n);let p=f(m,h);return typeof p=="function"&&(f.mapToProps=p,f.dependsOnOwnProps=o1(p),p=f(m,h)),p},f}}function Mh(n,l){return(r,s)=>{throw new Error(`Invalid value of type ${typeof n} for ${l} argument when connecting component ${s.wrappedComponentName}.`)}}function aA(n){return n&&typeof n=="object"?nh(l=>nA(n,l)):n?typeof n=="function"?Dv(n):Mh(n,"mapDispatchToProps"):nh(l=>({dispatch:l}))}function lA(n){return n?typeof n=="function"?Dv(n):Mh(n,"mapStateToProps"):nh(()=>({}))}function rA(n,l,r){return{...r,...n,...l}}function iA(n){return function(r,{displayName:s,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 sA(n){return n?typeof n=="function"?iA(n):Mh(n,"mergeProps"):()=>rA}function oA(n){n()}function cA(){let n=null,l=null;return{clear(){n=null,l=null},notify(){oA(()=>{let r=n;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=n;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const c=l={callback:r,next:null,prev:l};return c.prev?c.prev.next=c:n=c,function(){!s||n===null||(s=!1,c.next?c.next.prev=c.prev:l=c.prev,c.prev?c.prev.next=c.next:n=c.next)}}}}var c1={notify(){},get:()=>[]};function Lv(n,l){let r,s=c1,c=0,f=!1;function d(C){y();const E=s.subscribe(C);let O=!1;return()=>{O||(O=!0,E(),b())}}function m(){s.notify()}function h(){x.onStateChange&&x.onStateChange()}function p(){return f}function y(){c++,r||(r=l?l.addNestedSub(h):n.subscribe(h),s=cA())}function b(){c--,r&&c===0&&(r(),r=void 0,s.clear(),s=c1)}function A(){f||(f=!0,y())}function S(){f&&(f=!1,b())}const x={addNestedSub:d,notifyNestedSubs:m,handleChangeWrapper:h,isSubscribed:p,trySubscribe:A,tryUnsubscribe:S,getListeners:()=>s};return x}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,kc=mA();function u1(n,l){return n===l?n!==0||l!==0||1/n===1/l:n!==n&&l!==l}function Ud(n,l){if(u1(n,l))return!0;if(typeof n!="object"||n===null||typeof l!="object"||l===null)return!1;const r=Object.keys(n),s=Object.keys(l);if(r.length!==s.length)return!1;for(let c=0;c<r.length;c++)if(!Object.prototype.hasOwnProperty.call(l,r[c])||!u1(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},zv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yA={[W2]:vA,[Q2]:zv};function f1(n){return $2(n)?zv:yA[n.$$typeof]||pA}var bA=Object.defineProperty,_A=Object.getOwnPropertyNames,d1=Object.getOwnPropertySymbols,AA=Object.getOwnPropertyDescriptor,CA=Object.getPrototypeOf,h1=Object.prototype;function ah(n,l){if(typeof l!="string"){if(h1){const f=CA(l);f&&f!==h1&&ah(n,f)}let r=_A(l);d1&&(r=r.concat(d1(l)));const s=f1(n),c=f1(l);for(let f=0;f<r.length;++f){const d=r[f];if(!gA[d]&&!(c&&c[d])&&!(s&&s[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 Tl=TA(),xA=[null,null];function OA(n,l,r){kc(()=>n(...l),r)}function RA(n,l,r,s,c,f){n.current=s,r.current=!1,c.current&&(c.current=null,f())}function wA(n,l,r,s,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,O;try{E=s(C,c.current)}catch(L){O=L,A=L}O||(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:s,areStatesEqual:c=NA,areOwnPropsEqual:f=Ud,areStatePropsEqual:d=Ud,areMergedPropsEqual:m=Ud,forwardRef:h=!1,context:p=Tl}={}){const y=p,b=lA(n),A=aA(l),S=sA(r),x=!!n;return E=>{const O=E.displayName||E.name||"Component",L=`Connect(${O})`,M={shouldHandleStateChanges:x,displayName:L,wrappedComponentName:O,WrappedComponent:E,initMapStateToProps:b,initMapDispatchToProps:A,initMergeProps:S,areStatesEqual:c,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:m};function z(Y){const[W,ie,ee]=q.useMemo(()=>{const{reactReduxForwardedRef:he,...$}=Y;return[Y.context,he,$]},[Y]),ae=q.useMemo(()=>{let he=y;return W?.Consumer,he},[W,y]),oe=q.useContext(ae),pe=!!Y.store&&!!Y.store.getState&&!!Y.store.dispatch,ye=!!oe&&!!oe.store,fe=pe?Y.store:oe.store,N=ye?oe.getServerState:fe.getState,F=q.useMemo(()=>tA(fe.dispatch,M),[fe]),[ne,le]=q.useMemo(()=>{if(!x)return xA;const he=Lv(fe,pe?void 0:oe.subscription),$=he.notifyNestedSubs.bind(he);return[he,$]},[fe,pe,oe]),_e=q.useMemo(()=>pe?oe:{...oe,subscription:ne},[pe,oe,ne]),T=q.useRef(void 0),V=q.useRef(ee),X=q.useRef(void 0),re=q.useRef(!1),J=q.useRef(!1),ue=q.useRef(void 0);kc(()=>(J.current=!0,()=>{J.current=!1}),[]);const Ce=q.useMemo(()=>()=>X.current&&ee===V.current?X.current:F(fe.getState(),ee),[fe,ee]),ce=q.useMemo(()=>$=>ne?wA(x,fe,ne,F,V,T,re,J,X,le,$):()=>{},[ne]);OA(RA,[V,T,re,ee,X,le]);let Re;try{Re=q.useSyncExternalStore(ce,Ce,N?()=>F(N(),ee):Ce)}catch(he){throw ue.current&&(he.message+=`
|
|
10
|
-
The error may be correlated with this previous error:
|
|
11
|
-
${ue.current.stack}
|
|
12
|
-
|
|
13
|
-
`),he}kc(()=>{ue.current=void 0,X.current=void 0,T.current=Re});const Ge=q.useMemo(()=>q.createElement(E,{...Re,ref:ie}),[ie,E,Re]);return q.useMemo(()=>x?q.createElement(ae.Provider,{value:_e},Ge):Ge,[ae,Ge,_e])}const B=q.memo(z);if(B.WrappedComponent=E,B.displayName=z.displayName=L,h){const W=q.forwardRef(function(ee,ae){return q.createElement(B,{...ee,reactReduxForwardedRef:ae})});return W.displayName=L,W.WrappedComponent=E,ah(W,E)}return ah(B,E)}}var DA=MA;function LA(n){const{children:l,context:r,serverState:s,store:c}=n,f=q.useMemo(()=>{const h=Lv(c);return{store:c,subscription:h,getServerState:s?()=>s:void 0}},[c,s]),d=q.useMemo(()=>c.getState(),[c]);kc(()=>{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||Tl;return q.createElement(m.Provider,{value:f},l)}var zA=LA;function Dh(n=Tl){return function(){return q.useContext(n)}}var kv=Dh();function Bv(n=Tl){const l=n===Tl?kv:Dh(n),r=()=>{const{store:s}=l();return s};return Object.assign(r,{withTypes:()=>r}),r}var kA=Bv();function BA(n=Tl){const l=n===Tl?kA:Bv(n),r=()=>l().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var jA=BA(),UA=(n,l)=>n===l;function HA(n=Tl){const l=n===Tl?kv:Dh(n),r=(s,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({[s.name](A){return s(A)}}[s.name],[s]),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 jv(n){var l,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(l=0;l<c;l++)n[l]&&(r=jv(n[l]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function se(){for(var n,l,r=0,s="",c=arguments.length;r<c;r++)(n=arguments[r])&&(l=jv(n))&&(s&&(s+=" "),s+=l);return s}const IA="_app_1rj0t_1",GA={app:IA},Uv="core.typing.on",Hv="core.typing.off",Lh="core.message.from.guest",qv="core.message.without.analysis.from.guest",Iv="core.message.to.guest",VA="core.nlu.request.event",Gv="core.event.to.guest",YA="core.chat.restart.request",XA="core.transcript.mail.request",Vv="core.transcript.item.guest.reaction",zh="core.conversation.rating.from.guest",KA="core.drawer.open",FA="core.drawer.close",JA="core.guest.locale.changed";var Bc;(function(n){n.WEB_URL="web_url",n.POSTBACK="postback"})(Bc||(Bc={}));var m1;(function(n){n.GOOD="GOOD",n.BAD="BAD"})(m1||(m1={}));let ZA=class{type;sender;sources;quickReplies;constructor(l,r,s=[],c=[]){this.type=l,this.sender=r,this.sources=s,this.quickReplies=c}addQuickReply(l,r){this.quickReplies.push({label:l,payload:r})}},nu=class extends ZA{text;constructor(l,r,s=[],c=[]){super(Di.TEXT,r,s,c),this.text=l}};var Di;(function(n){n.TEXT="TEXT",n.DETAIL="DETAIL",n.MARKDOWN="MARKDOWN",n.VIDEO="VIDEO",n.IMAGE="IMAGE",n.FILE="FILE",n.AUDIO="AUDIO"})(Di||(Di={}));class Yv{type;id;name;avatar;constructor(l,r,s,c){this.type=l,this.id=r,this.name=s,this.avatar=c}}class WA extends Yv{constructor(){super(xl.BOT,null,"Chatbot","bot.svg")}}class kh extends Yv{constructor(){super(xl.GUEST,null,"Guest","visitor.svg")}}var xl;(function(n){n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON"})(xl||(xl={}));const QA=n=>{const l=new nu(n,new kh);return{type:Lh,message:l}},PA=(n,l={})=>{const r=new nu(n,new kh);return{type:qv,message:r,payload:l}},$A=n=>({type:VA,event:n}),eC=(n,l,r=null,s=null)=>({type:Vv,payload:{actionId:n,reaction:l,category:r,comment:s}});var p1;(function(n){n.GENERIC="GENERIC",n.CUSTOM="CUSTOM"})(p1||(p1={}));const Xv=n=>l=>(n.payload.type!==Lh&&l(PA(n.label,n.payload)),l(n.payload)),Kv=n=>(l,r)=>{const{quickReplies:s}=r().chat,c=s.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return l(c?Xv({...c,label:n}):JSON.parse(JSON.stringify(QA(n))))},Bh="MESSAGE_TO_PARENT_PAGE",jh="RESTORE_PREVIOUS_CHAT_MESSAGES",Uh="AUDIO_MESSAGE_FROM_USER",Hh="RECEIVE_SPEECH_TRANSCRIPTION",qh="ENABLE_CONVERSATION_RATING",Fv="LOAD_SOURCE_INFOS_RESPONSE",Ih="LOAD_SOURCE_INFOS_ERROR",Gh="LOAD_SOURCE_INFOS_REQUEST",Vh="CLOSE_SOURCE_INFOS",tC="webclient.get.started",Jv="webclient.window.expand",Zv="webclient.window.close",Wv="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:Wv}),sC=({rating:n})=>({type:qh,payload:{rating:n}}),oC=(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 Bc.WEB_URL:return $v(n.url);case Bc.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},Pv=n=>$v(n),$v=n=>({type:Bh,message:{type:"webclient.change.url",url:n}});function dc(n){for(var l=1;l<arguments.length;l++){var r=arguments[l];for(var s in r)n[s]=r[s]}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=dc({},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 s(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:s,remove:function(c,f){r(c,"",dc({},f,{expires:-1}))},withAttributes:function(c){return lh(this.converter,dc({},this.attributes,c))},withConverter:function(c){return lh(dc({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(n)}})}var hc=lh(fC,{path:"/"});const Cn=[];for(let n=0;n<256;++n)Cn.push((n+256).toString(16).slice(1));function dC(n,l=0){return(Cn[n[l+0]]+Cn[n[l+1]]+Cn[n[l+2]]+Cn[n[l+3]]+"-"+Cn[n[l+4]]+Cn[n[l+5]]+"-"+Cn[n[l+6]]+Cn[n[l+7]]+"-"+Cn[n[l+8]]+Cn[n[l+9]]+"-"+Cn[n[l+10]]+Cn[n[l+11]]+Cn[n[l+12]]+Cn[n[l+13]]+Cn[n[l+14]]+Cn[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),g1={randomUUID:pC};function gC(n,l,r){n=n||{};const s=n.random??n.rng?.()??mC();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,dC(s)}function jc(n,l,r){return g1.randomUUID&&!n?g1.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 Sn(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",v1=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()}`},Uc=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 ey(n,l,r){if(typeof n!="function")throw new Error(Sn(2));if(typeof l=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Sn(0));if(typeof l=="function"&&typeof r>"u"&&(r=l,l=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Sn(1));return r(ey)(n,l)}let s=n,c=l,f=new Map,d=f,m=0,h=!1;function p(){d===f&&(d=new Map,f.forEach((E,O)=>{d.set(O,E)}))}function y(){if(h)throw new Error(Sn(3));return c}function b(E){if(typeof E!="function")throw new Error(Sn(4));if(h)throw new Error(Sn(5));let O=!0;p();const L=m++;return d.set(L,E),function(){if(O){if(h)throw new Error(Sn(6));O=!1,p(),d.delete(L),f=null}}}function A(E){if(!Yh(E))throw new Error(Sn(7));if(typeof E.type>"u")throw new Error(Sn(8));if(typeof E.type!="string")throw new Error(Sn(17));if(h)throw new Error(Sn(9));try{h=!0,c=s(c,E)}finally{h=!1}return(f=d).forEach(L=>{L()}),E}function S(E){if(typeof E!="function")throw new Error(Sn(10));s=E,A({type:Uc.REPLACE})}function x(){const E=b;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(Sn(11));function L(){const z=O;z.next&&z.next(y())}return L(),{unsubscribe:E(L)}},[v1](){return this}}}return A({type:Uc.INIT}),{dispatch:A,subscribe:b,getState:y,replaceReducer:S,[v1]:x}}function _C(n){Object.keys(n).forEach(l=>{const r=n[l];if(typeof r(void 0,{type:Uc.INIT})>"u")throw new Error(Sn(12));if(typeof r(void 0,{type:Uc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Sn(13))})}function ty(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 s=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<s.length;y++){const b=s[y],A=r[b],S=d[b],x=A(S,m);if(typeof x>"u")throw m&&m.type,new Error(Sn(14));p[b]=x,h=h||x!==S}return h=h||s.length!==Object.keys(d).length,h?p:d}}function Hc(...n){return n.length===0?l=>l:n.length===1?n[0]:n.reduce((l,r)=>(...s)=>l(r(...s)))}function AC(...n){return l=>(r,s)=>{const c=l(r,s);let f=()=>{throw new Error(Sn(15))};const d={getState:c.getState,dispatch:(h,...p)=>f(h,...p)},m=n.map(h=>h(d));return f=Hc(...m)(c.dispatch),{...c,dispatch:f}}}function CC(n){return Yh(n)&&"type"in n&&typeof n.type=="string"}var ny=Symbol.for("immer-nothing"),y1=Symbol.for("immer-draftable"),Hn=Symbol.for("immer-state");function ja(n,...l){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var ua=Object,ki=ua.getPrototypeOf,qc="constructor",lu="prototype",rh="configurable",Ic="enumerable",xc="writable",Vs="value",Ol=n=>!!n&&!!n[Hn];function Ua(n){return n?ay(n)||iu(n)||!!n[y1]||!!n[qc]?.[y1]||su(n)||ou(n):!1}var SC=ua[lu][qc].toString(),b1=new WeakMap;function ay(n){if(!n||!Xh(n))return!1;const l=ki(n);if(l===null||l===ua[lu])return!0;const r=ua.hasOwnProperty.call(l,qc)&&l[qc];if(r===Object)return!0;if(!Ni(r))return!1;let s=b1.get(r);return s===void 0&&(s=Function.toString.call(r),b1.set(r,s)),s===SC}function ru(n,l,r=!0){Zs(n)===0?(r?Reflect.ownKeys(n):ua.keys(n)).forEach(c=>{l(c,n[c],n)}):n.forEach((s,c)=>l(c,s,n))}function Zs(n){const l=n[Hn];return l?l.type_:iu(n)?1:su(n)?2:ou(n)?3:0}var _1=(n,l,r=Zs(n))=>r===2?n.has(l):ua[lu].hasOwnProperty.call(n,l),ih=(n,l,r=Zs(n))=>r===2?n.get(l):n[l],Gc=(n,l,r,s=Zs(n))=>{s===2?n.set(l,r):s===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,su=n=>n instanceof Map,ou=n=>n instanceof Set,Xh=n=>typeof n=="object",Ni=n=>typeof n=="function",Id=n=>typeof n=="boolean";function TC(n){const l=+n;return Number.isInteger(l)&&String(l)===n}var vl=n=>n.copy_||n.base_,Kh=n=>n.modified_?n.copy_:n.base_;function sh(n,l){if(su(n))return new Map(n);if(ou(n))return new Set(n);if(iu(n))return Array[lu].slice.call(n);const r=ay(n);if(l===!0||l==="class_only"&&!r){const s=ua.getOwnPropertyDescriptors(n);delete s[Hn];let c=Reflect.ownKeys(s);for(let f=0;f<c.length;f++){const d=c[f],m=s[d];m[xc]===!1&&(m[xc]=!0,m[rh]=!0),(m.get||m.set)&&(s[d]={[rh]:!0,[xc]:!0,[Ic]:m[Ic],[Vs]:n[d]})}return ua.create(ki(n),s)}else{const s=ki(n);if(s!==null&&r)return{...n};const c=ua.create(s);return ua.assign(c,n)}}function Fh(n,l=!1){return cu(n)||Ol(n)||!Ua(n)||(Zs(n)>1&&ua.defineProperties(n,{set:mc,add:mc,clear:mc,delete:mc}),ua.freeze(n),l&&ru(n,(r,s)=>{Fh(s,!0)},!1)),n}function xC(){ja(2)}var mc={[Vs]:xC};function cu(n){return n===null||!Xh(n)?!0:ua.isFrozen(n)}var Vc="MapSet",oh="Patches",A1="ArrayMethods",ly={};function Fr(n){const l=ly[n];return l||ja(0,n),l}var C1=n=>!!ly[n],Ys,ry=()=>Ys,OC=(n,l)=>({drafts_:[],parent_:n,immer_:l,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:C1(Vc)?Fr(Vc):void 0,arrayMethodsPlugin_:C1(A1)?Fr(A1):void 0});function S1(n,l){l&&(n.patchPlugin_=Fr(oh),n.patches_=[],n.inversePatches_=[],n.patchListener_=l)}function ch(n){uh(n),n.drafts_.forEach(RC),n.drafts_=null}function uh(n){n===Ys&&(Ys=n.parent_)}var E1=n=>Ys=OC(Ys,n);function RC(n){const l=n[Hn];l.type_===0||l.type_===1?l.revoke_():l.revoked_=!0}function T1(n,l){l.unfinalizedDrafts_=l.drafts_.length;const r=l.drafts_[0];if(n!==void 0&&n!==r){r[Hn].modified_&&(ch(l),ja(4)),Ua(n)&&(n=x1(l,n));const{patchPlugin_:c}=l;c&&c.generateReplacementPatches_(r[Hn].base_,n,l)}else n=x1(l,r);return wC(l,n,!0),ch(l),l.patches_&&l.patchListener_(l.patches_,l.inversePatches_),n!==ny?n:void 0}function x1(n,l){if(cu(l))return l;const r=l[Hn];if(!r)return Yc(l,n.handledSet_,n);if(!uu(r,n))return l;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:s}=r;if(s)for(;s.length>0;)s.pop()(n);oy(r,n)}return r.copy_}function wC(n,l,r=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Fh(l,r)}function iy(n){n.finalized_=!0,n.scope_.unfinalizedDrafts_--}var uu=(n,l)=>n.scope_===l,NC=[];function sy(n,l,r,s){const c=vl(n),f=n.type_;if(s!==void 0&&ih(c,s,f)===l){Gc(c,s,r,f);return}if(!n.draftLocations_){const m=n.draftLocations_=new Map;ru(c,(h,p)=>{if(Ol(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)Gc(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=Kh(f);sy(n,f.draft_??f,d,r),oy(f,c)})}function oy(n,l){if(n.modified_&&!n.finalized_&&(n.type_===3||n.type_===1&&n.allIndicesReassigned_||(n.assigned_?.size??0)>0)){const{patchPlugin_:s}=l;if(s){const c=s.getPath(n);c&&s.generatePatches_(n,c,l)}iy(n)}}function DC(n,l,r){const{scope_:s}=n;if(Ol(r)){const c=r[Hn];uu(c,s)&&c.callbacks_.push(function(){Oc(n);const d=Kh(c);sy(n,r,d,l)})}else Ua(r)&&n.callbacks_.push(function(){const f=vl(n);n.type_===3?f.has(r)&&Yc(r,s.handledSet_,s):ih(f,l,n.type_)===r&&s.drafts_.length>1&&(n.assigned_.get(l)??!1)===!0&&n.copy_&&Yc(ih(n.copy_,l,n.type_),s.handledSet_,s)})}function Yc(n,l,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ol(n)||l.has(n)||!Ua(n)||cu(n)||(l.add(n),ru(n,(s,c)=>{if(Ol(c)){const f=c[Hn];if(uu(f,r)){const d=Kh(f);Gc(n,s,d,n.type_),iy(f)}}else Ua(c)&&Yc(c,l,r)})),n}function LC(n,l){const r=iu(n),s={type_:r?1:0,scope_:l?l.scope_:ry(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:l,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let c=s,f=Xc;r&&(c=[s],f=Xs);const{revoke:d,proxy:m}=Proxy.revocable(c,f);return s.draft_=m,s.revoke_=d,[m,s]}var Xc={get(n,l){if(l===Hn)return n;let r=n.scope_.arrayMethodsPlugin_;const s=n.type_===1&&typeof l=="string";if(s&&r?.isArrayOperationMethod(l))return r.createMethodInterceptor(n,l);const c=vl(n);if(!_1(c,l,n.type_))return zC(n,c,l);const f=c[l];if(n.finalized_||!Ua(f)||s&&n.operationMethod&&r?.isMutatingArrayMethod(n.operationMethod)&&TC(l))return f;if(f===Gd(n.base_,l)){Oc(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 vl(n)},ownKeys(n){return Reflect.ownKeys(vl(n))},set(n,l,r){const s=cy(vl(n),l);if(s?.set)return s.set.call(n.draft_,r),!0;if(!n.modified_){const c=Gd(vl(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||_1(n.base_,l,n.type_)))return!0;Oc(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 Oc(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=vl(n),s=Reflect.getOwnPropertyDescriptor(r,l);return s&&{[xc]:!0,[rh]:n.type_!==1||l!=="length",[Ic]:s[Ic],[Vs]:r[l]}},defineProperty(){ja(11)},getPrototypeOf(n){return ki(n.base_)},setPrototypeOf(){ja(12)}},Xs={};for(let n in Xc){let l=Xc[n];Xs[n]=function(){const r=arguments;return r[0]=r[0][0],l.apply(this,r)}}Xs.deleteProperty=function(n,l){return Xs.set.call(this,n,l,void 0)};Xs.set=function(n,l,r){return Xc.set.call(this,n[0],l,r,n[0])};function Gd(n,l){const r=n[Hn];return(r?vl(r):n)[l]}function zC(n,l,r){const s=cy(l,r);return s?Vs in s?s[Vs]:s.get?.call(n.draft_):void 0}function cy(n,l){if(!(l in n))return;let r=ki(n);for(;r;){const s=Object.getOwnPropertyDescriptor(r,l);if(s)return s;r=ki(r)}}function fh(n){n.modified_||(n.modified_=!0,n.parent_&&fh(n.parent_))}function Oc(n){n.copy_||(n.assigned_=new Map,n.copy_=sh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var kC=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(l,r,s)=>{if(Ni(l)&&!Ni(r)){const f=r;r=l;const d=this;return function(h=f,...p){return d.produce(h,y=>r.call(this,y,...p))}}Ni(r)||ja(6),s!==void 0&&!Ni(s)&&ja(7);let c;if(Ua(l)){const f=E1(this),d=dh(f,l,void 0);let m=!0;try{c=r(d),m=!1}finally{m?ch(f):uh(f)}return S1(f,s),T1(c,f)}else if(!l||!Xh(l)){if(c=r(l),c===void 0&&(c=l),c===ny&&(c=void 0),this.autoFreeze_&&Fh(c,!0),s){const f=[],d=[];Fr(oh).generateReplacementPatches_(l,c,{patches_:f,inversePatches_:d}),s(f,d)}return c}else ja(1,l)},this.produceWithPatches=(l,r)=>{if(Ni(l))return(d,...m)=>this.produceWithPatches(d,h=>l(h,...m));let s,c;return[this.produce(l,r,(d,m)=>{s=d,c=m}),s,c]},Id(n?.autoFreeze)&&this.setAutoFreeze(n.autoFreeze),Id(n?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(n.useStrictShallowCopy),Id(n?.useStrictIteration)&&this.setUseStrictIteration(n.useStrictIteration)}createDraft(n){Ua(n)||ja(8),Ol(n)&&(n=BC(n));const l=E1(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_)&&ja(9);const{scope_:s}=r;return S1(s,l),T1(void 0,s)}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 s=Fr(oh).applyPatches_;return Ol(n)?s(n,l):this.produce(n,c=>s(c,l))}};function dh(n,l,r,s){const[c,f]=su(l)?Fr(Vc).proxyMap_(l,r):ou(l)?Fr(Vc).proxySet_(l,r):LC(l,r);return(r?.scope_??ry()).drafts_.push(c),f.callbacks_=r?.callbacks_??[],f.key_=s,r&&s!==void 0?MC(r,f,s):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 Ol(n)||ja(10,n),uy(n)}function uy(n){if(!Ua(n)||cu(n))return n;const l=n[Hn];let r,s=!0;if(l){if(!l.modified_)return l.base_;l.finalized_=!0,r=sh(n,l.scope_.immer_.useStrictShallowCopy_),s=l.scope_.immer_.shouldUseStrictIteration()}else r=sh(n,!0);return ru(r,(c,f)=>{Gc(r,c,uy(f))},s),l&&(l.finalized_=!1),r}var jC=new kC,fy=jC.produce;function dy(n){return({dispatch:r,getState:s})=>c=>f=>typeof f=="function"?f(r,s,n):c(f)}var UC=dy(),HC=dy,qC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hc:Hc.apply(null,arguments)};function O1(n,l){function r(...s){if(l){let c=l(...s);if(!c)throw new Error(Cl(0));return{type:n,payload:c.payload,..."meta"in c&&{meta:c.meta},..."error"in c&&{error:c.error}}}return{type:n,payload:s[0]}}return r.toString=()=>`${n}`,r.type=n,r.match=s=>CC(s)&&s.type===n,r}var hy=class qs extends Array{constructor(...l){super(...l),Object.setPrototypeOf(this,qs.prototype)}static get[Symbol.species](){return qs}concat(...l){return super.concat.apply(this,l)}prepend(...l){return l.length===1&&Array.isArray(l[0])?new qs(...l[0].concat(this)):new qs(...l.concat(this))}};function R1(n){return Ua(n)?fy(n,()=>{}):n}function pc(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:s=!0,serializableCheck:c=!0,actionCreatorCheck:f=!0}=l??{};let d=new hy;return r&&(IC(r)?d.push(UC):d.push(HC(r.extraArgument))),d},VC="RTK_autoBatch",w1=n=>l=>{setTimeout(l,n)},YC=(n={type:"raf"})=>l=>(...r)=>{const s=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:w1(10):n.type==="callback"?n.queueNotification:w1(n.timeout),p=()=>{d=!1,f&&(f=!1,m.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const b=()=>c&&y(),A=s.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))),s.dispatch(y)}finally{c=!0}}})},XC=n=>function(r){const{autoBatch:s=!0}=r??{};let c=new hy(n);return s&&c.push(YC(typeof s=="object"?s:void 0)),c};function KC(n){const l=GC(),{reducer:r=void 0,middleware:s,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=ty(r);else throw new Error(Cl(1));let h;typeof s=="function"?h=s(l):h=l();let p=Hc;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 ey(m,f,S)}function my(n){const l={},r=[];let s;const c={addCase(f,d){const m=typeof f=="string"?f:f.type;if(!m)throw new Error(Cl(28));if(m in l)throw new Error(Cl(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 s=f,c}};return n(c),[l,r,s]}function FC(n){return typeof n=="function"}function JC(n,l){let[r,s,c]=my(l),f;if(FC(n))f=()=>R1(n());else{const m=R1(n);f=()=>m}function d(m=f(),h){let p=[r[h.type],...s.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(Ol(y)){const S=b(y,h);return S===void 0?y:S}else{if(Ua(y))return fy(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 QC({creators:n}={}){const l=n?.asyncThunk?.[ZC];return function(s){const{name:c,reducerPath:f=c}=s;if(!c)throw new Error(Cl(11));const d=(typeof s.reducers=="function"?s.reducers($C()):s.reducers)||{},m=Object.keys(d),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(M,z){const H=typeof M=="string"?M:M.type;if(!H)throw new Error(Cl(12));if(H in h.sliceCaseReducersByType)throw new Error(Cl(13));return h.sliceCaseReducersByType[H]=z,p},addMatcher(M,z){return h.sliceMatchers.push({matcher:M,reducer:z}),p},exposeAction(M,z){return h.actionCreators[M]=z,p},exposeCaseReducer(M,z){return h.sliceCaseReducersByName[M]=z,p}};m.forEach(M=>{const z=d[M],H={reducerName:M,type:WC(c,M),createNotation:typeof s.reducers=="function"};tS(z)?aS(H,z,p,l):eS(H,z,p)});function y(){const[M={},z=[],H=void 0]=typeof s.extraReducers=="function"?my(s.extraReducers):[s.extraReducers],B={...M,...h.sliceCaseReducersByType};return JC(s.initialState,Y=>{for(let W in B)Y.addCase(W,B[W]);for(let W of h.sliceMatchers)Y.addMatcher(W.matcher,W.reducer);for(let W of z)Y.addMatcher(W.matcher,W.reducer);H&&Y.addDefaultCase(H)})}const b=M=>M,A=new Map,S=new WeakMap;let x;function C(M,z){return x||(x=y()),x(M,z)}function E(){return x||(x=y()),x.getInitialState()}function O(M,z=!1){function H(Y){let W=Y[M];return typeof W>"u"&&z&&(W=pc(S,H,E)),W}function B(Y=b){const W=pc(A,z,()=>new WeakMap);return pc(W,Y,()=>{const ie={};for(const[ee,ae]of Object.entries(s.selectors??{}))ie[ee]=PC(ae,Y,()=>pc(S,Y,E),z);return ie})}return{reducerPath:M,getSelectors:B,get selectors(){return B(H)},selectSlice:H}}const L={name:c,reducer:C,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:E,...O(f),injectInto(M,{reducerPath:z,...H}={}){const B=z??f;return M.inject({reducerPath:B,reducer:C},H),{...L,...O(B,!0)}}};return L}}function PC(n,l,r,s){function c(f,...d){let m=l(f);return typeof m>"u"&&s&&(m=r()),n(m,...d)}return c.unwrapped=n,c}var Jh=QC();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},s,c){let f,d;if("reducer"in s){if(r&&!nS(s))throw new Error(Cl(17));f=s.reducer,d=s.prepare}else f=s;c.addCase(n,f).exposeCaseReducer(l,f).exposeAction(l,d?O1(n,d):O1(n))}function tS(n){return n._reducerDefinitionType==="asyncThunk"}function nS(n){return n._reducerDefinitionType==="reducerWithPrepare"}function aS({type:n,reducerName:l},r,s,c){if(!c)throw new Error(Cl(18));const{payloadCreator:f,fulfilled:d,pending:m,rejected:h,settled:p,options:y}=r,b=c(n,f,y);s.exposeAction(l,b),d&&s.addCase(b.fulfilled,d),m&&s.addCase(b.pending,m),h&&s.addCase(b.rejected,h),p&&s.addMatcher(b.settled,p),s.exposeCaseReducer(l,{fulfilled:d||gc,pending:m||gc,rejected:h||gc,settled:p||gc})}function gc(){}function Cl(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:{}},py=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:sS,requestLogin:oS,loginWindowClosed:cS}=py.actions,uS=py.reducer,gy="RESET_CHAT_STATE",vy="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",yy="SHOW_CONVERSATION_RATING_OVERLAY",by="HIDE_CONVERSATION_RATING_OVERLAY",_y=()=>({type:Zv}),fS=()=>({type:gy}),Ay=()=>({type:vy}),Kc=(n,l=void 0)=>({type:yy,payload:{opener:n,defaultRating:l}}),dS=()=>({type:by}),N1=(n,l,r)=>(s,c)=>{try{const f=c().connection.sessionId;if(!f)throw new Error("Session ID is not available");s({type:Gh,payload:{chunkId:r}}),M1(n,f,l,r,!1,s),M1(n,f,l,r,!0,s)}catch(f){console.error("Error loading source infos:",f),s({type:Ih})}},M1=(n,l,r,s,c,f)=>{const d=`/${n}/me/chat-widget/transcript/${r}/chunks/${s}?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:s,highlighted:c};f({type:Fv,payload:h})}).catch(m=>{console.error("Error fetching source infos:",m),f({type:Ih,payload:{highlighted:c}})})},hS=()=>({type:Vh}),Zh="CONNECT",Wh="CONNECTING",Qh="CONNECTED",Ph="DISCONNECTED",$h="RECONNECTED",em="RESTORE_SESSION_ID",fu="START",du="CLEAR_SESSION_ID",mS=[Zh,Wh,Qh,Ph,$h,em],pS=(n,l)=>({type:Zh,clientName:n,querystrings:l}),gS=n=>({type:em,sessionId:n}),vS=()=>({type:Wh}),yS=()=>({type:Qh}),bS=()=>({type:Ph}),_S=()=>({type:$h}),Cy=n=>(l,r)=>{const s=r().connection,{formValues:c,loginToken:f}=r().startScreen;let d=s.sessionId;d===void 0&&(d=jc());let m=s.userId;if(m===void 0){const y=hc.get("bubble-chat-user-id")||hc.get("bubble-chat-userId")||hc.get("bf-webclient-userId");m=y||jc(),hc.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}}})},Ws=()=>(n,l)=>{const r=l().connection.sessionId||"";if(n(AS(r)),n(fS()),l().settings.enableStartScreen)n(sS());else{const s=au();return n(Cy(s))}},AS=n=>({type:du,payload:{sessionId:n}}),wl=jA,Dt=qA,St=()=>{const n=Dt(r=>r.intl.messages);return r=>n[r]||void 0};var Kr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Kr||{}),Ks=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(Ks||{});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",D1={messageContainer:TS,messages:xS};var vc;function OS(n){if(!vc)if(typeof document<"u")vc=document.createElement("textarea");else return;var l="&"+n+";";vc.innerHTML=l;var r=vc.value;return r!==l?r:void 0}var de=32,ge=9,fr=13,Ee=10,ot=96,ln=126,Ot=91,Ha=94,Le=62,Wa=35,RS=36,Fc=37,Be=45,fa=61,Wt=92,It=42,Ut=95,ht=60,hu=64,ha=93,qn=33,tm=38,Bn=58,L1=70,Bi=102,mu=104,Li=119,Yd=116,z1=112,wS=115,NS=160,MS=12,Sy=44,nm=59,ji=63,xa=46,Xt=47,dr=39,hr=34,mr=43,an=124,Jr=123,pu=125,Ta=40,Oa=41,Jc=30,Ey=31,et=48,tt=57,Ie=65,Qe=90,Rt=97,Ht=122,Qs=128,Al=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},P=DS;function LS(n){if(!B1(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 s=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++,B1(n,"---",s))return{endPos:l,hasValidYaml:r};let f=n.indexOf(":",s);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 sa(n){var l={};for(var r in n){var s=r.toLowerCase(),c=kS[s];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 s=OS(r);if(s)return s;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 k1=/(javascript|vbscript|data(?!:image)):/i;function am(n){if(k1.test(n))return null;if(n.indexOf("%")===-1)return n;try{let l=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(k1.test(l))return null}catch{return null}return n}var wn={},Un,rn;for(Un=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],rn=0;rn<Un.length;rn++)wn[Un[rn]]="a";for(wn[231]=wn[199]="c",wn[240]=wn[208]="d",Un=[200,201,202,203,233,232,234,235],rn=0;rn<Un.length;rn++)wn[Un[rn]]="e";for(Un=[207,239,206,238,205,237,204,236],rn=0;rn<Un.length;rn++)wn[Un[rn]]="i";for(wn[209]=wn[241]="n",Un=[248,216,339,338,213,245,212,244,211,243,210,242],rn=0;rn<Un.length;rn++)wn[Un[rn]]="o";for(Un=[220,252,219,251,218,250,217,249],rn=0;rn<Un.length;rn++)wn[Un[rn]]="u";wn[376]=wn[255]=wn[221]=wn[253]="y";function jS(n){return n<Qs&&(GS[n]&(hh|Ty))!==0}function Ja(n){for(var l="",r=-1,s=0;s<n.length;s++){var c=n.charCodeAt(s);if(jS(c))c>=Ie&&c<=Qe?(r>=0&&(l+=n.slice(r,s),r=-1),l+=String.fromCharCode(c+Al)):r<0&&(r=s);else if(c===de||c===Be)r>=0&&(l+=n.slice(r,s),r=-1),l+="-";else{r>=0&&(l+=n.slice(r,s),r=-1);var f=wn[c];f&&(l+=f)}}return r>=0&&(l+=n.slice(r)),l}function B1(n,l,r){return n.startsWith(l,r)}var j1=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 Ps(n){let l=n.toLowerCase();if(j1.has(l))return!0;let r=l.indexOf(":");return r!==-1?(l=l.slice(r+1),j1.has(l)):!1}var Ns=1,yc=2,hh=4,Ty=8,U1=16,H1=32,US=64,q1=1,HS=2,qS=3,IS=4,GS=(function(){let n=new Uint8Array(128),l;for(n[ge]=Ns|H1,n[Ee]=Ns|U1,n[MS]=Ns,n[fr]=Ns|U1,n[de]=Ns|H1,l=qn;l<=Xt;l++)n[l]=yc;for(l=Bn;l<=hu;l++)n[l]=yc;for(l=Ot;l<=ot;l++)n[l]=yc;for(l=Jr;l<=ln;l++)n[l]=yc;for(l=et;l<=tt;l++)n[l]=Ty;for(l=Ie;l<=Qe;l++)n[l]=hh|US;for(l=Rt;l<=Ht;l++)n[l]=hh;return n})();(function(){let n=new Uint8Array(128);return n[Wt]=HS,n[Ot]=IS,n[It]=n[Ut]=n[ln]=n[fa]=qS,n[ot]=n[ht]=n[hu]=n[ha]=n[Ee]=n[de]=n[qn]=q1,n[Bi]=n[mu]=n[Li]=q1,n})();var Hr=[];function VS(n){var l=n.indexOf("\r"),r=n.indexOf("\0");if(l===-1&&r===-1)return n;var s=n.length;Hr.length=0;var c=0,f=0;for(l===-1?f=r:r===-1?f=l:f=l<r?l:r;f<s;f++){var d=n.charCodeAt(f);d===fr?(c<f&&Hr.push(n.slice(c,f)),f+1<s&&n.charCodeAt(f+1)===Ee&&f++,Hr.push(`
|
|
17
|
-
`),c=f+1):d===0&&(c<f&&Hr.push(n.slice(c,f)),Hr.push("�"),c=f+1)}return c<s&&Hr.push(n.slice(c)),Hr.join("")}function mh(n,l,r){for(var s=n,c=l.split("."),f=0;f<c.length&&(s=s?.[c[f]],s!==void 0);)f++;return s||r}function YS(n){for(var l=!1,r=0;r<n.length;r++){var s=n.charCodeAt(r);if(s<=de||s===hr||s===Fc||s===ht||s===Le||s===Ot||s===Wt||s===ha||s===Ha||s===ot||s>=123){l=!0;break}}if(!l)return n;for(var c="",r=0;r<n.length;r++){var s=n.charCodeAt(r);if(s===Fc&&r+2<n.length){var f=n.charCodeAt(r+1),d=n.charCodeAt(r+2);if((f>=et&&f<=tt||f>=Ie&&f<=L1||f>=Rt&&f<=Bi)&&(d>=et&&d<=tt||d>=Ie&&d<=L1||d>=Rt&&d<=Bi)){c+=n[r]+n[r+1]+n[r+2],r+=2;continue}}c+=encodeURI(n[r])}return c}function XS(...n){return n.filter(Boolean).join(" ")}var KS=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Zc=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function I1(n){return KS.has(n.toLowerCase())}function FS(n){return Zc.lastIndex=0,Zc.test(n)}function G1(n){return Zc.lastIndex=0,n.replace(Zc,function(l,r,s,c){return"<"+r+s+c})}var JS=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,ZS=/^<[A-Z]/,ph=["script","pre","style","textarea"],$s=new Set(ph),WS=/<(?:pre|script|style|textarea)\b/i,QS=new Set(["table","thead","tbody","tfoot","tr","td","th"]),xy=new Uint8Array(128);(function(){for(var n=[ot,It,Ut,ln,fa,Ot,qn,ht,Wt,Ey,mu,Li,Bi],l=0;l<n.length;l++)xy[n[l]]=1})();var V1=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function PS(n){return $s.has(n)}function $S(n){return WS.test(n)}function Oy(n,l,r){for(var s=l,c=r;s<c&&(n.charCodeAt(s)===de||n.charCodeAt(s)===ge);)s++;if(s>=c)return!1;n.charCodeAt(s)===an&&s++;for(var f=0;s<c;){for(;s<c&&(n.charCodeAt(s)===de||n.charCodeAt(s)===ge);)s++;if(s>=c)break;if(n.charCodeAt(s)===an&&f>0){for(var d=s+1;d<c&&(n.charCodeAt(d)===de||n.charCodeAt(d)===ge);)d++;if(d>=c)return!0}if(n.charCodeAt(s)===Bn&&s++,s>=c||n.charCodeAt(s)!==Be)return!1;for(;s<c&&n.charCodeAt(s)===Be;)s++;for(s<c&&n.charCodeAt(s)===Bn&&s++,f++;s<c&&(n.charCodeAt(s)===de||n.charCodeAt(s)===ge);)s++;if(s<c)if(n.charCodeAt(s)===an)s++;else return!1}return f>0}function bl(n,l){if(n.charCodeAt(l)!==ht)return null;let r=l+1,s=n.length,c=!1;n.charCodeAt(r)===Xt&&(r++,c=!0);let f=r,d=n.charCodeAt(r);if(!(d>=Rt&&d<=Ht||d>=Ie&&d<=Qe))return null;for(;r<s&&(n.charCodeAt(r)>=Rt&&n.charCodeAt(r)<=Ht||n.charCodeAt(r)>=Ie&&n.charCodeAt(r)<=Qe||n.charCodeAt(r)>=et&&n.charCodeAt(r)<=tt||n.charCodeAt(r)===Be);)r++;let m=n.slice(f,r);if(!m)return null;let h=r;for(;r<s&&(n.charCodeAt(r)===de||n.charCodeAt(r)===ge||n.charCodeAt(r)===Ee);)r++;let p=n.slice(h,r);if(r===h&&r<s){var y=n.charCodeAt(r);if(y!==Le&&y!==Xt)return null}let b=r,A={},S=!1;for(;r<s;){let Y=n.charCodeAt(r);if(Y===Le){let W=n.slice(b,r);return{tag:m,attrs:A,selfClosing:!1,end:r+1,rawAttrs:W,whitespaceBeforeAttrs:p,isClosing:c,hasSpaceBeforeSlash:S}}if(Y===de||Y===ge||Y===Ee){r++;continue}if(Y===Xt&&r+1<s&&n.charCodeAt(r+1)===Le){let W=n.slice(b,r);return S=r>b&&n.charCodeAt(r-1)===de,{tag:m,attrs:A,selfClosing:!0,end:r+2,rawAttrs:W,whitespaceBeforeAttrs:p,isClosing:c,hasSpaceBeforeSlash:S}}var x=r,C=n.charCodeAt(r);if(!(C>=Rt&&C<=Ht||C>=Ie&&C<=Qe||C===Ut||C===Bn))return null;for(r++;r<s;){var E=n.charCodeAt(r);if(E>=Rt&&E<=Ht||E>=Ie&&E<=Qe||E>=et&&E<=tt||E===Ut||E===xa||E===Bn||E===Be)r++;else break}for(var O=n.slice(x,r);r<s&&(n.charCodeAt(r)===de||n.charCodeAt(r)===ge);)r++;if(n.charCodeAt(r)!==fa){A[O]="";continue}for(r++;r<s&&(n.charCodeAt(r)===de||n.charCodeAt(r)===ge);)r++;var L=n.charCodeAt(r);if(L===hr||L===dr){r++;for(var M=r;r<s&&n.charCodeAt(r)!==L;)r++;if(r>=s)return null;if(A[O]=n.slice(M,r),r++,r<s){var z=n.charCodeAt(r);if(z!==de&&z!==ge&&z!==Ee&&z!==Le&&z!==Xt)return null}}else if(L===Jr){var H=1,M=r;for(r++;r<s&&H>0;){var E=n.charCodeAt(r);E===Jr?H++:E===pu&&H--,r++}A[O]=n.slice(M,r)}else{for(var M=r;r<s;){var B=n.charCodeAt(r);if(B===de||B===ge||B===Le||B===Ee||B===hr||B===dr||B===fa||B===ht||B===ot)break;r++}if(r===M)return null;A[O]=n.slice(M,r)}}return null}function Ry(n,l,r){for(var s=0,c=n.length,f=!1;s<c;){for(var d=n.indexOf(`
|
|
18
|
-
`,s),m=d<0?c:d,h=s,p=0;h<m&&p<4;)if(n.charCodeAt(h)===de)p++,h++;else if(n.charCodeAt(h)===ge)p+=4,h++;else break;if(h>=m){f=!1,s=d<0?c:d+1;continue}if(p<4){var y=n.charCodeAt(h);if(y===ot||y===ln){for(var b=y,A=0,S=h;S<m&&n.charCodeAt(S)===b;)A++,S++;if(A>=3){f=!1;for(var x=d<0?c:d+1;x<c;){for(var C=x,E=0;C<c&&E<4;){var O=n.charCodeAt(C);if(O===de)E++,C++;else if(O===ge)E+=4,C++;else break}if(E<4&&C<c&&n.charCodeAt(C)===b){for(var L=0;C<c&&n.charCodeAt(C)===b;)L++,C++;if(L>=A){for(;C<c&&(n.charCodeAt(C)===de||n.charCodeAt(C)===ge);)C++;if(C>=c||n.charCodeAt(C)===Ee){s=C>=c?c:C+1;break}}}for(;x<c&&n.charCodeAt(x)!==Ee;)x++;x<c&&x++}x>=c&&(s=c);continue}}}for(var M=h;M<m&&n.charCodeAt(M)===Le;){M++,M<m&&n.charCodeAt(M)===de&&M++;for(var z=0;M<m&&z<4;)if(n.charCodeAt(M)===de)z++,M++;else if(n.charCodeAt(M)===ge)z+=4,M++;else break;if(z>=4)break;f=!1}if(!f&&p<4&&M<m&&n.charCodeAt(M)===Ot&&!(M+1<c&&n.charCodeAt(M+1)===Ha)){var H=wy(n,M,l);if(H){s=H,f=!1;continue}}var B=n.charCodeAt(h);if(B===Wa&&p<4)f=!1;else if(p<4&&(B===Be||B===It||B===Ut)){for(var Y=h,W=0;Y<m;){var ie=n.charCodeAt(Y);if(ie===B)W++;else if(ie!==de&&ie!==ge)break;Y++}f=!(W>=3&&Y>=m)}else f=!0;s=d<0?c:d+1}}function wy(n,l,r){let s=n.length;if(n.charCodeAt(l)!==Ot)return null;let c=l+1<s&&n.charCodeAt(l+1)===Ha,f=l+1;for(;f<s;){var d=n.charCodeAt(f);if(d===ha){f++;break}if(d===Ot)return null;d===Wt&&f+1<s&&f++,f++}if(f>s||n.charCodeAt(f-1)!==ha)return null;let m=n.slice(l+1,f-1);if(m.length>999)return null;let h=Rc(m);if(!h||f>=s||n.charCodeAt(f)!==Bn)return null;f++;let p=!1;for(;f<s;){let pe=n.charCodeAt(f);if(pe===de||pe===ge)f++;else if(pe===Ee&&!p)p=!0,f++;else break}if(c){let pe=n.indexOf(`
|
|
19
|
-
`,f),ye=pe<0?s:pe,fe=n.slice(f,ye).trim();return r[h]={target:fe,title:void 0},pe<0?s:pe+1}var y;if(f<s&&n.charCodeAt(f)===ht){f++;for(var b=f;f<s&&n.charCodeAt(f)!==Le&&n.charCodeAt(f)!==Ee;)n.charCodeAt(f)===Wt&&f+1<s&&f++,f++;if(f>=s||n.charCodeAt(f)!==Le)return null;y=n.slice(b,f),f++;for(var A=n.indexOf(`
|
|
20
|
-
`,f),S=A<0?s:A,x=f;x<S&&(n.charCodeAt(x)===de||n.charCodeAt(x)===ge);)x++;if(x<S){if(x===f)return null;var C=n.charCodeAt(x);if(C!==hr&&C!==dr&&C!==Ta)return null}}else{for(var b=f,E=0;f<s;){var d=n.charCodeAt(f);if(d===Ta)E++;else if(d===Oa){if(E===0)break;E--}else{if(d===de||d===ge||d===Ee)break;d===Wt&&f+1<s&&f++}f++}if(y=n.slice(b,f),!y)return null}for(;f<s&&(n.charCodeAt(f)===de||n.charCodeAt(f)===ge);)f++;var O=n.indexOf(`
|
|
21
|
-
`,f),L=O<0?s:O,M,z=!1,H=f,B=f;if(f===L&&f<s)for(B=f+1;B<s&&(n.charCodeAt(B)===de||n.charCodeAt(B)===ge);)B++;if(B<s){var Y=n.charCodeAt(B);if(Y===hr||Y===dr||Y===Ta){for(var W=Y===Ta?41:Y,ie=B+1,ee=ie;ie<s;){var ae=n.charCodeAt(ie);if(ae===W){for(var oe=ie+1;oe<s&&(n.charCodeAt(oe)===de||n.charCodeAt(oe)===ge);)oe++;(oe>=s||n.charCodeAt(oe)===Ee)&&(M=n.slice(ee,ie),z=!0,H=oe<s?oe+1:s);break}if(ae===Wt&&ie+1<s){ie+=2;continue}if(ae===Ee&&ie+1<s&&n.charCodeAt(ie+1)===Ee)break;ie++}if(!z&&B===f)return null}}if(z)return r[h]||(r[h]={target:zi(y),title:M!==void 0?gu(zi(M)):M}),H;for(;f<L&&(n.charCodeAt(f)===de||n.charCodeAt(f)===ge);)f++;return f<L?null:(r[h]||(r[h]={target:zi(y),title:M}),O<0?s:O+1)}var Mi=1,Y1=2,$e=4,Ny=8,eE=16,za=32,rr=64,ke=new Uint8Array(128);ke[de]=Mi,ke[ge]=Mi,ke[Ee]=Mi|Y1,ke[fr]=Mi|Y1,ke[Wa]=za|$e,ke[Le]=za|$e,ke[Be]=za|rr|$e,ke[mr]=za|$e,ke[It]=za|rr|$e,ke[Ut]=za|rr|$e,ke[ot]=za|rr|$e,ke[ln]=za|rr|$e,ke[ht]=za|rr|$e,ke[Ot]=rr|$e,ke[qn]=rr|$e,ke[an]=za|$e;for(let n=et;n<=tt;n++)ke[n]=eE|za;for(let n=Ie;n<=Qe;n++)ke[n]=Ny;for(let n=Rt;n<=Ht;n++)ke[n]=Ny;ke[Wt]=$e,ke[ha]=$e,ke[Ta]=$e,ke[Oa]=$e,ke[Bn]=$e,ke[hr]=$e,ke[dr]=$e,ke[tm]=$e,ke[fa]=$e,ke[RS]=$e,ke[Fc]=$e,ke[Sy]=$e,ke[xa]=$e,ke[Xt]=$e,ke[nm]=$e,ke[ji]=$e,ke[hu]=$e,ke[Ha]=$e,ke[Jr]=$e,ke[pu]=$e;function X1(n){if(n.indexOf("[")<0&&n.indexOf("]")<0)return!1;for(var l=0;l<n.length;l++){if(n.charCodeAt(l)===Wt){l++;continue}if(n.charCodeAt(l)===Ot||n.charCodeAt(l)===ha)return!0}return!1}function Rc(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<Qs?ke[n]:n===NS?Mi:0}function zi(n){return n.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}function ct(n,l){var r=n.indexOf(`
|
|
22
|
-
`,l);return r<0?n.length:r}function je(n,l){let r=ct(n,l);return r<n.length?r+1:r}function Fs(n,l,r){for(;l<r;){let s=n.charCodeAt(l);if(s!==de&&s!==ge)break;l++}return l}function K1(n,l){let r=je(n,l);for(;r<n.length;){let s=ct(n,r);if(da(n,r,s))return r;r=je(n,r)}return n.length}function Rl(n,l,r,s){let c=0;for(;l+c<r&&n.charCodeAt(l+c)===s;)c++;return c}var lt=0,at=0;function qt(n,l,r){for(lt=0,at=0;l+at<r;){let s=n.charCodeAt(l+at);if(s===ge)lt+=4-lt%4;else if(s===de)lt++;else break;at++}}function da(n,l,r){return Fs(n,l,r)>=r}function My(n,l,r,s){let c=ct(n,l);if(qt(n,l,c),lt>3)return null;let f=l+at;if(n.charCodeAt(f)!==Wa)return null;let d=Rl(n,f,c,35);if(d<1||d>6||(f+=d,f<c&&n.charCodeAt(f)!==de&&n.charCodeAt(f)!==ge))return null;f=Fs(n,f,c);for(var m=c;m>f&&n.charCodeAt(m-1)===de;)m--;for(var h=m;m>f&&n.charCodeAt(m-1)===Wa;)m--;if(m<h)if(m===f||n.charCodeAt(m-1)===de)for(;m>f&&n.charCodeAt(m-1)===de;)m--;else m=h;let p=n.slice(f,m),y=jn(p,0,p.length,r,s),b=(s?.slugify||Ja)(p);return{node:{type:P.heading,level:d,children:y,id:b},end:je(n,c)}}function or(n,l){let r=ct(n,l);if(qt(n,l,r),lt>3)return null;let s=l+at,c=n.charCodeAt(s);if(c!==Be&&c!==It&&c!==Ut)return null;let f=0;for(;s<r;){let d=n.charCodeAt(s);if(d===c)f++;else if(d!==de&&d!==ge)return null;s++}return f<3?null:{node:{type:P.breakThematic},end:je(n,r)}}function tE(n,l,r){let s=ct(n,l);if(qt(n,l,s),lt>3)return null;let c=lt,f=l+at,d=n.charCodeAt(f);if(d!==ot&&d!==ln)return null;let m=Rl(n,f,s,d);if(m<3)return null;f+=m;let h=Fs(n,f,s),p=s;if(d===ot){for(let W=h;W<s;W++)if(n.charCodeAt(W)===ot)return null}for(;p>h&&(n.charCodeAt(p-1)===de||n.charCodeAt(p-1)===ge);)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=zi(b);var x=void 0;if(A){V1.lastIndex=0;for(var C;(C=V1.exec(A))!==null;)x||(x={}),x[C[1]]=C[2]!==void 0?C[2]:C[3]}let E=je(n,s),O=E,L=n.length;for(;O<n.length;){let W=ct(n,O);if(qt(n,O,W),lt<4){let ie=O+at;var M=Rl(n,ie,W,d);if(M>=m){let ee=ie+M;if(da(n,ee,W)){L=je(n,W);break}}}O=je(n,W)}var z;if(c===0)z=O>E&&n.charCodeAt(O-1)===Ee?n.slice(E,O-1):n.slice(E,O);else{z="";for(var H=E;H<O;){var B=ct(n,H);qt(n,H,B);var Y=Math.min(at,c);z+=n.slice(H+Y,B)+`
|
|
23
|
-
`,H=je(n,B)}z.length>0&&z.charCodeAt(z.length-1)===Ee&&(z=z.slice(0,-1))}return{node:{type:P.codeBlock,lang:b||void 0,text:z,infoString:A||void 0,attrs:x},end:L}}function nE(n,l){let r=ct(n,l);if(qt(n,l,r),lt<4)return null;let s="",c=l;for(;c<n.length;){let S=ct(n,c);if(qt(n,c,S),da(n,c,S)){for(var f=0,d=je(n,S);d<n.length;){var m=ct(n,d);if(da(n,d,m)){f++,d=je(n,m);continue}if(qt(n,d,m),lt>=4){for(var h=0;h<=f;h++)s+=`
|
|
24
|
-
`;c=d;break}break}if(c!==d)break;continue}if(lt<4)break;let x=0,C=0;var p=0;for(let E=c;E<S&&C<4;E++){if(n.charCodeAt(E)===ge){var y=4-C%4;C+y>4&&(p=C+y-4),C+=y}else C++;x++}var b="";if(p>0)for(var A=0;A<p;A++)b+=" ";b+=n.slice(c+x,S),s+=b+`
|
|
25
|
-
`,c=je(n,S)}for(;s.length>0&&s.charCodeAt(s.length-1)===Ee;)s=s.slice(0,-1);for(;s.length>0&&s.charCodeAt(s.length-1)===Ee;)s=s.slice(0,-1);return s?{node:{type:P.codeBlock,text:s},end:c}:null}function aE(n,l,r,s){let c=ct(n,l);if(qt(n,l,c),lt>3)return null;let f=l+at;if(n.charCodeAt(f)!==Le)return null;let d="",m=l,h,p=!1,y=!1,b=!1;for(;m<n.length;){let N=ct(n,m);qt(n,m,N);let F=m+at;if(n.charCodeAt(F)===Le){let ne=F+1;var A=lt+1,S=!1;if(ne<N){var x=n.charCodeAt(ne);x===de?(ne++,A++,S=!0):x===ge&&(S=!0)}for(var C="",E=!1,O=ne;O<N;O++)if(n.charCodeAt(O)===ge){E=!0;break}if(E){var L=A;if(S&&ne<N&&n.charCodeAt(ne)===ge){for(var M=4-L%4,z=0;z<M-1;z++)C+=" ";L+=M,ne++}for(var H=ne;H<N;H++)if(n.charCodeAt(H)===ge){for(var B=4-L%4,Y=0;Y<B;Y++)C+=" ";L+=B}else C+=n[H],L++}else C=n.slice(ne,N);if(!d&&!h){let le=C.match(/^\[!([A-Za-z]+)\]\s*$/);if(le){h=le[1].toUpperCase(),m=je(n,N);continue}}d+=C+`
|
|
26
|
-
`;var W=C.trimStart();W.startsWith("```")||W.startsWith("~~~")?b=!b:C.startsWith(" ")||C.startsWith(" ")?b=!0:W.length>0&&!b&&(b=!1),y=W.length>0,m=je(n,N)}else if(d&&!da(n,m,N)&&y){if(lt<4){var ie=m+at,ee=ie<N?n.charCodeAt(ie):0;if(ee===Wa||ee===Le||ee===ot||ee===ln||ee===ht||(ee===Be||ee===It||ee===Ut)&&or(n,m)||(ee===Be||ee===It||ee===mr)&&ie+1<N&&(n.charCodeAt(ie+1)===de||n.charCodeAt(ie+1)===ge))break;if(ee>=et&&ee<=tt){for(var ae=ie;ae<N&&n.charCodeAt(ae)>=et&&n.charCodeAt(ae)<=tt;)ae++;if(ae<N&&(n.charCodeAt(ae)===xa||n.charCodeAt(ae)===Oa))break}}if(b)break;d+=n.slice(m,N)+`
|
|
27
|
-
`,p=!0,m=je(n,N)}else break}if(!d&&!h)return null;var{inBlockQuote:oe,f:pe}=r;r.inBlockQuote=!0,p&&(r.f=!0);let ye=cr(d||"",r,s);r.inBlockQuote=oe,r.f=pe;let fe={type:P.blockQuote,children:ye};return h&&(fe.alert=h),{node:fe,end:m}}function Dy(n,l,r){for(var s=0,c=l;c<r;c++)n.charCodeAt(c)===ge?s+=4-s%4:s++;return s}function ir(n,l,r){if(qt(n,l,r),lt>3)return null;var s=l+at;if(s>=r)return null;var c=n.charCodeAt(s),f=lt,d=s;if(c===Be||c===It||c===mr){if(d=s+1,d<r&&n.charCodeAt(d)!==de&&n.charCodeAt(d)!==ge&&n.charCodeAt(d)!==Ee)return null}else if(c>=et&&c<=tt){for(var m=s;m<r&&m-s<9;){var h=n.charCodeAt(m);if(h<et||h>tt)break;m++}if(m>s&&m<r){var p=n.charCodeAt(m);if(p===xa||p===Oa){if(d=m+1,d<r&&n.charCodeAt(d)!==de&&n.charCodeAt(d)!==ge&&n.charCodeAt(d)!==Ee)return null}else return null}else return null}else return null;var y=d,b=Dy(n,l,d),A=0,S=y,x=b;if(y>=r)return{ordered:c>=et&&c<=tt,marker:c>=et&&c<=tt?n[m]:n[s],start:c>=et&&c<=tt?parseInt(n.slice(s,m),10):void 0,contentStart:y,contentCol:b+1,markerCol:f,isEmpty:!0};for(;S<r&&(n.charCodeAt(S)===de||n.charCodeAt(S)===ge);){if(n.charCodeAt(S)===ge){var C=4-x%4;x+=C}else x++;S++,A++}var E=S>=r,O=x-b;return E||O>4?(x=b+1,S=y+1,A=1):A===0&&(x=b+1,S=y,A=1),{ordered:c>=et&&c<=tt,marker:c>=et&&c<=tt?n[m]:n[s],start:c>=et&&c<=tt?parseInt(n.slice(s,m),10):void 0,contentStart:S,contentCol:x,markerCol:f,isEmpty:E}}var Wc=0;function lE(n,l,r,s){var c=0,f=l;for(Wc=0;f<r&&c<s;){var d=n.charCodeAt(f);if(d===ge){var m=4-c%4;if(c+m>s){Wc=c+m-s,f++,c=s;break}c+=m}else if(d===de)c++;else break;f++}return f}function F1(n,l,r,s){var c=ct(n,l),f=ir(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,x=f.contentStart;x<c;x++)if(n.charCodeAt(x)===ge){S=!0;break}if(S){var C="",E=Dy(n,l,f.contentStart),O=E-f.contentCol;if(O>0)for(var L=0;L<O;L++)C+=" ";for(var M=f.contentStart;M<c;M++)if(n.charCodeAt(M)===ge){for(var z=4-E%4,H=0;H<z;H++)C+=" ";E+=z}else C+=n[M],E++;p=C+`
|
|
28
|
-
`}else p=n.slice(f.contentStart,c)+`
|
|
29
|
-
`}for(m=je(n,c);m<n.length;){var B=ct(n,m);qt(n,m,B);var Y=n.charCodeAt(m+at);if(lt<h&&(Y===Be||Y===It||Y===Ut)&<<=3&&or(n,m))break;var W=ir(n,m,B);if(W&&W.ordered===f.ordered&&W.marker===f.marker&&W.markerCol<h){d.push({contentCol:h,raw:p,hasBlankAfter:b,isEmpty:y}),b&&(A=!0),h=W.contentCol,y=W.isEmpty,b=!1,p=W.isEmpty?"":n.slice(W.contentStart,B)+`
|
|
30
|
-
`,m=je(n,B);continue}if(da(n,m,B)){p+=`
|
|
31
|
-
`,m=je(n,B);for(var ie=!1,ee=0;ee<p.length;ee++){var ae=p.charCodeAt(ee);if(ae!==Ee&&ae!==fr&&ae!==de&&ae!==ge){ie=!0;break}}if(y&&!ie)if(m<n.length){var oe=ct(n,m),pe=ir(n,m,oe);if(!pe||pe.ordered!==f.ordered||pe.marker!==f.marker)break;b=!0}else break;if(m<n.length){var ye=ct(n,m);qt(n,m,ye);var fe=n.charCodeAt(m+at);if((fe===Be||fe===It||fe===Ut)&<<=3&&or(n,m))break;var N=ir(n,m,ye);if(N&&N.ordered===f.ordered&&N.marker===f.marker&&N.markerCol<h){b=!0;continue}if(!da(n,m,ye)&<<h)break}continue}if(lt>=h){var F=lE(n,m,B,h);if(Wc>0){for(var ne="",le=h,_e=0;_e<Wc;_e++)ne+=" ",le++;for(var T=F;T<B;T++)if(n.charCodeAt(T)===ge){for(var V=4-le%4,X=0;X<V;X++)ne+=" ";le+=V}else ne+=n[T],le++;p+=ne+`
|
|
32
|
-
`}else p+=n.slice(F,B)+`
|
|
33
|
-
`;m=je(n,B);continue}for(var re=!1,J=0;J<p.length;J++){var ue=p.charCodeAt(J);if(ue!==Ee&&ue!==fr&&ue!==de&&ue!==ge){re=!0;break}}if(!b&&re&&!y){var Ce=m+at,ce=n.charCodeAt(Ce),Re=ce===Wa||ce===Le||ce===ht||ce===ot||ce===ln||(ce===Be||ce===It||ce===Ut||ce===mr)&&(or(n,m)!==null||ir(n,m,B)!==null)||ce>=et&&ce<=tt&&ir(n,m,B)!==null;if(!Re){p+=""+n.slice(Ce,B)+`
|
|
34
|
-
`,m=je(n,B);continue}}break}if(d.push({contentCol:h,raw:p,hasBlankAfter:b,isEmpty:y}),d.length===0)return null;var Ge=A;if(!Ge)for(var rt=0;rt<d.length;rt++){if(d[rt].hasBlankAfter&&rt<d.length-1){Ge=!0;break}if(!d[rt].isEmpty){for(var he=d[rt].raw,$=he.length,ze=0,Te=!1,wt=!1,Pe=!1,Ke=!1,Lt=0,zt=0,kt=-1;ze<$;){var Fe=he.indexOf(`
|
|
35
|
-
`,ze);if(Fe<0&&(Fe=$),Ke){qt(he,ze,Fe);for(var qa=he.slice(ze+at,Fe),dt=0;dt<qa.length&&qa.charCodeAt(dt)===Lt;)dt++;dt>=zt&&qa.slice(dt).trim()===""&&(Ke=!1),ze=Fe<$?Fe+1:$;continue}if(da(he,ze,Fe)){kt>=0?Pe=!0:Te&&(wt=!0),ze=Fe<$?Fe+1:$;continue}if(qt(he,ze,Fe),kt>=0){if(lt>=kt){ze=Fe<$?Fe+1:$;continue}var Nn=ir(he,ze,Fe);if(Nn&&Nn.markerCol<kt&&Nn.contentCol<=kt){ze=Fe<$?Fe+1:$;continue}if(Nn){ze=Fe<$?Fe+1:$;continue}kt=-1,Pe&&(wt=!0,Pe=!1)}var En=he.slice(ze+at,Fe),Gt=En.charCodeAt(0);if((Gt===ot||Gt===ln)&<<=3){for(var Qt=0;Qt<En.length&&En.charCodeAt(Qt)===Gt;)Qt++;if(Qt>=3){if(wt&&Te){Ge=!0;break}Ke=!0,Lt=Gt,zt=Qt,Te=!0,ze=Fe<$?Fe+1:$;continue}}var Pa=lt<=3?ir(he,ze,Fe):null;if(Pa&&Te){if(wt){Ge=!0;break}kt=Pa.contentCol,Pe=!1,ze=Fe<$?Fe+1:$,Te=!0;continue}if(wt){Ge=!0;break}Te=!0,ze=Fe<$?Fe+1:$}if(Ge)break}}for(var gn=[],Tn=0;Tn<d.length;Tn++){for(var Qn=d[Tn],Bt=Qn.raw,nt=Bt.length;nt>0&&Bt.charCodeAt(nt-1)===Ee;)nt--;var Ve=nt<Bt.length?Bt.slice(0,nt):Bt,At=null;if(Ve.length>=3&&Ve.charCodeAt(0)===Ot){var Mn=Ve[1];(Mn===" "||Mn==="x"||Mn==="X")&&Ve.charCodeAt(2)===ha&&(At={type:P.gfmTask,completed:Mn==="x"||Mn==="X"},Ve=Ve.slice(3))}var gt;if(Qn.isEmpty&&Ve.trim()==="")gt=[];else if(Ge){var pr=r.inList;r.inList=!0,gt=cr(Ve,r,s),r.inList=pr}else{var Pn=r.inList;if(r.inList=!0,gt=cr(Ve,r,s),r.inList=Pn,gt.length===1&>[0].type===P.paragraph)gt=gt[0].children;else{for(var on=[],Kt=0;Kt<gt.length;Kt++)if(gt[Kt].type===P.paragraph)for(var Nt=gt[Kt].children,ma=0;ma<Nt.length;ma++)on.push(Nt[ma]);else on.push(gt[Kt]);gt=on}}At?gn.push([At,{type:P.text,text:" "},...gt]):gn.push(gt)}return{node:{type:f.ordered?P.orderedList:P.unorderedList,start:f.ordered?f.start:void 0,items:gn},end:m}}var Qc=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 yl(n,l,r){let s={};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===Ta?A++:E===Oa?A--:E===nm&&A===0&&(b.push(m.slice(S,C)),S=C+1)}S<m.length&&b.push(m.slice(S));let x=!1;b.forEach(C=>{let E=C.indexOf(":");if(E===-1)return;let O=C.slice(0,E).trim(),L=C.slice(E+1).trim();if(O&&L){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(L)){x=!0;return}let M=O.indexOf("-")!==-1?O.replace(/-([a-z])/g,(z,H)=>H.toUpperCase()):O;y[M]=L}}),!x&&Object.keys(y).length>0&&(s[h]=y)}else if((p==="href"||p==="src")&&r?.sanitizer){let y=r.sanitizer(m,l,p);y!==null&&(s[h]=y)}else if(m==="")s[h]=!0;else if(m.length>=2&&m.charCodeAt(0)===Jr&&m.charCodeAt(m.length-1)===pu){var c=m.slice(1,-1);if(c.length>0){var f=c.charCodeAt(0);if(f===Ot||f===Jr)try{s[h]=JSON.parse(c);continue}catch{}}if(c==="true"){s[h]=!0;continue}if(c==="false"){s[h]=!1;continue}if(r?.evalUnserializableExpressions)try{s[h]=(0,eval)("("+c+")");continue}catch{}s[h]=c}else s[h]=m}return s}function _l(n,l,r){let s=l.length;var c=l.charCodeAt(0);c>=Ie&&c<=Qe&&(c+=Al);for(let d=r;d<=n.length-s;d++){var f=n.charCodeAt(d);if(f>=Ie&&f<=Qe&&(f+=Al),f!==c)continue;let m=!0;for(let h=1;h<s;h++){let p=n.charCodeAt(d+h),y=l.charCodeAt(h);if(p>=Ie&&p<=Qe&&(p+=Al),y>=Ie&&y<=Qe&&(y+=Al),p!==y){m=!1;break}}if(m)return d}return-1}function rE(n,l,r){let s=l.length;var c=l.charCodeAt(0);c>=Ie&&c<=Qe&&(c+=Al);for(let d=Math.min(r,n.length-s);d>=0;d--){var f=n.charCodeAt(d);if(f>=Ie&&f<=Qe&&(f+=Al),f!==c)continue;let m=!0;for(let h=1;h<s;h++){let p=n.charCodeAt(d+h),y=l.charCodeAt(h);if(p>=Ie&&p<=Qe&&(p+=Al),y>=Ie&&y<=Qe&&(y+=Al),p!==y){m=!1;break}}if(m)return d}return-1}var gh=-1;function Ly(n,l,r){let s=r.toLowerCase(),c="<"+s,f="</"+s,d=1,m=l,h=n.length;for(gh=-1;m<h&&d>0;){let b=_l(n,c,m),A=_l(n,f,m);if(A===-1)return-1;if(b!==-1&&b<A){let S=bl(n,b);S?(S.tag.toLowerCase()===s&&!S.isClosing&&!S.selfClosing&&!Ps(S.tag)&&d++,m=S.end):m=b+1}else{var p=A+f.length,y=p<h?n.charCodeAt(p):62;if((y===Le||y===de||y===ge||y===Ee)&&(d--,d===0)){gh=A;let S=A+f.length;for(;S<h&&n.charCodeAt(S)!==Le;)S++;return S+1}m=A+1}}return-1}function zy(n,l,r,s){if(s.ignoreHTMLBlocks||s.disableParsingRawHTML)return null;var c=ct(n,l);if(qt(n,l,c),lt>3&&!r.inHTML)return null;var f=l+at;if(n.charCodeAt(f)!==ht)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=_l(n,"</"+ph[b]+">",f);A>=0&&A<y&&(y=A)}if(y<n.length){var S=n.indexOf(">",y);p=S>=0?je(n,S+1):n.length}}else{var x=h===2?"-->":h===3?"?>":h===4?">":"]]>",C=n.indexOf(x,f);C>=0&&(p=je(n,C+x.length))}var E=n.slice(f,p);if(h>=2)return{node:{type:P.htmlComment,text:E,raw:!0,endPos:p},end:p};var O="div",L=E.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);L&&(O=L[1]);var M=bl(n,f),z={},H;M&&!M.isClosing&&(z=yl(M.attrs,O,s),H=M.whitespaceBeforeAttrs+M.rawAttrs);var B=[],Y=O.toLowerCase(),W="</"+Y,ie=_l(E,W,0),ee=E,ae="";if(M&&M.isClosing)for(ee=E.slice(M.end-f);ee.length>0&&ee.charCodeAt(ee.length-1)===Ee;)ee=ee.slice(0,-1);else if(M&&!M.isClosing){var oe=M.end-f;if(ie!==-1)for(ee=E.slice(oe),ee.charCodeAt(0)===Ee&&(ee=ee.slice(1));ee.length>0&&ee.charCodeAt(ee.length-1)===Ee;)ee=ee.slice(0,-1);else for(ee=E;ee.length>0&&ee.charCodeAt(ee.length-1)===Ee;)ee=ee.slice(0,-1);if(ie!==-1){var pe=E.slice(oe,ie);ae=pe.trim()}}var ye=M?M.isClosing:!1;return{node:{type:P.htmlBlock,tag:O,attrs:z,e:H,children:B,a:ee,text:ae,c:!0,b:ye,endPos:p,canInterruptParagraph:!0},end:p}}if(h===6||h===7){var fe=K1(n,l),N=fe<n.length?fe:n.length,F=n.slice(f,N),ne=fe<n.length?je(n,fe):n.length,le=bl(n,f);if(le){var _e=le.tag,T=_e.toLowerCase(),V=le.isClosing;if(V){var X=n.slice(le.end,N);return{node:{type:P.htmlBlock,tag:_e,attrs:{},children:[],a:X,text:X,c:!0,b:!0,endPos:N,canInterruptParagraph:h===6},end:ne}}if(le.selfClosing||Ps(_e))return{node:{type:P.htmlBlock,tag:_e,attrs:yl(le.attrs,_e,s),e:le.whitespaceBeforeAttrs+le.rawAttrs,children:[],a:"",text:"",c:!1,b:!1,endPos:le.end,canInterruptParagraph:h===6},end:je(n,le.end)};var re=r.d||0,J=n.slice(f,N),ue=-1,Ce=-1;if(re<10){for(var ce="</"+T,Re=le.end-f,Ge=1,rt=Re;rt<J.length&&Ge>0;){var he=_l(J,"<"+T,rt),$=_l(J,ce,rt);if($===-1)break;if(he!==-1&&he<$){var ze=he+T.length+1;if(ze<J.length){var Te=J.charCodeAt(ze);(Te===de||Te===ge||Te===Ee||Te===Le||Te===Xt)&&Ge++}rt=he+1}else{var wt=$+ce.length;if(wt<J.length){var Pe=J.charCodeAt(wt);if((Pe===Le||Pe===de||Pe===ge||Pe===Ee)&&(Ge--,Ge===0)){ue=$;for(var Ke=wt;Ke<J.length&&J.charCodeAt(Ke)!==Le;)Ke++;Ce=Ke+1;break}}else if(Ge--,Ge===0){ue=$,Ce=J.length;break}rt=$+1}}var Lt=!1;if(ue===-1&&h===6&&!le.isClosing&&!QS.has(T)){var zt=n.slice(le.end),kt=_l(zt,ce,0);if(kt!==-1){var Fe=zt.slice(0,kt);if(Fe.indexOf(`
|
|
36
|
-
|
|
37
|
-
`)!==-1){for(var qa=le.end+kt,dt=qa+ce.length;dt<n.length&&n.charCodeAt(dt)!==Le;)dt++;if(dt<n.length&&n.charCodeAt(dt)===Le){var Nn=dt+1,En=ct(n,Nn);N=En,ne=je(n,En),J=n.slice(f,N),F=n.slice(f,N),ue=qa-f,Ce=Nn-f,Lt=!0}}}}}var Gt=le.rawAttrs.indexOf(`
|
|
38
|
-
`)!==-1||le.whitespaceBeforeAttrs.indexOf(`
|
|
39
|
-
`)!==-1,Qt=!1;if(ue!==-1){var Pa=J.slice(Ce).trim();Qt=Pa.length===0}var gn=!1,Tn=N,Qn=ne;if(ue!==-1){var Bt=f+Ce,nt=ct(n,Bt-1);if(Bt<nt){for(var Ve=Bt;Ve<nt&&(n.charCodeAt(Ve)===de||n.charCodeAt(Ve)===ge);)Ve++;if(Ve<nt&&n.charCodeAt(Ve)===ht){var At=bl(n,Ve);At&&!At.isClosing&&(gn=!0,Tn=Bt,Qn=Bt,Qt=!0)}}if(!gn){var Mn=je(n,nt);if(Mn<N){for(var gt=Mn;gt<N&&(n.charCodeAt(gt)===de||n.charCodeAt(gt)===ge);)gt++;if(gt<N&&n.charCodeAt(gt)===ht){var pr=bl(n,gt);pr&&(gn=!0,Tn=nt,Qn=Mn,Qt=!0)}}}if(!gn&&r.inHTML){gn=!0,Tn=nt,Qn=je(n,nt);var Pn=n.slice(Bt,nt).trim();Qt=Pn.length===0}}var on=[],Kt="";if(ue!==-1){Kt=J.slice(le.end-f,ue);var Nt=Kt.trim();if(Nt){var{inline:ma,inHTML:$a,d:jt}=r;r.inHTML=!0,r.d=re+1;var wa=T==="p";if(wa)r.inline=!0,on=jn(Nt,0,Nt.length,r,s);else{var gr=Kt.indexOf(`
|
|
40
|
-
|
|
41
|
-
`)!==-1,Ia=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(Nt),Nl=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(Nt),vr=gr||Ia||r.inHTML&&Nl;vr||Nl?(r.inline=!1,on=cr(Kt,r,s)):(r.inline=!0,on=jn(Nt,0,Nt.length,r,s))}r.inline=ma,r.inHTML=$a,r.d=jt}}var Ml=!1;if(h===6&&ue!==-1&&!r.inHTML&&!Gt){var Dl=Kt,xn=/<[a-zA-Z][^>]*>/.test(Dl),$n=/\n\n/.test(Dl)||/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(Dl);xn&&!$n&&(Ml=!0)}var yr=r.inHTML||h===7||Gt||!Qt||Ml;if(yr){var cn;if(ue!==-1&&gn){var Dn=!1;if(r.inHTML&&Ce<J.length){for(var Et=Ce;Et<J.length&&J.charCodeAt(Et)!==Ee;)Et++;var vt=J.slice(Ce,Et).trim();Dn=vt.length>1&&vt.charCodeAt(0)===ht&&vt.charCodeAt(1)!==Xt}cn=Dn?J.slice(le.end-f):Kt}else(h===7||r.inHTML)&&ue!==-1?(cn=J.slice(le.end-f),cn.charCodeAt(0)===Ee&&(cn=cn.slice(1))):gn?cn=n.slice(f,Tn):Gt?cn=F:(cn=J.slice(le.end-f),cn.charCodeAt(0)===Ee&&(cn=cn.slice(1)));return{node:{type:P.htmlBlock,tag:_e,attrs:yl(le.attrs,_e,s),e:le.whitespaceBeforeAttrs+le.rawAttrs,children:on,a:cn,text:cn,c:!0,b:!1,endPos:Tn,canInterruptParagraph:h===6},end:Qn}}return{node:{type:P.htmlBlock,tag:_e,attrs:yl(le.attrs,_e,s),e:le.whitespaceBeforeAttrs+le.rawAttrs,children:on,a:Lt?"":Kt,text:Kt,c:!1,b:!1,endPos:Tn,canInterruptParagraph:h===6},end:Qn}}var Vn=F.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Ll=Vn?Vn[2]:"div",br=Vn?Vn[1]==="/":!1,zl=F;if(br){var _r=F.indexOf(">");_r!==-1&&(zl=F.slice(_r+1))}return{node:{type:P.htmlBlock,tag:Ll,attrs:{},children:[],a:zl,text:zl,c:!0,b:br,endPos:N,canInterruptParagraph:h===6},end:ne}}var me=bl(n,f);if(!me)return null;var w=me.tag,te=w.toLowerCase(),ve=w.charCodeAt(0),Je=ve>=Ie&&ve<=Qe;if(!Je&&!Qc.has(te)&&!$s.has(te)&&!te.includes("-"))return null;if(me.isClosing)return{node:{type:P.htmlSelfClosing,tag:w,attrs:{},endPos:me.end,b:!0,a:n.slice(f,me.end)},end:me.end};var ut=Ly(n,me.end,w),Oe=[];if(ut!==-1){var un=gh,vn=n.slice(me.end,un),Pt=vn.trim();if(Pt){var pa=vn.indexOf(`
|
|
42
|
-
|
|
43
|
-
`)!==-1,Ft=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(Pt),Ar=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(Pt),Cr=r.inline,Au=r.inHTML,Zr=r.d;r.inHTML=!0,r.d=(r.d||0)+1,pa||Ft||Ar?(r.inline=!1,Oe=cr(vn,r,s)):(r.inline=!0,Oe=jn(Pt,0,Pt.length,r,s)),r.inline=Cr,r.inHTML=Au,r.d=Zr}var Wr=ct(n,ut),Na=n.slice(ut,Wr).trim(),On=Na?ut:je(n,ut),Hi=Je?n.slice(f,ut):n.slice(f,On),Cu=Je?ut:On;return{node:{type:P.htmlBlock,tag:w,attrs:yl(me.attrs,w,s),e:me.whitespaceBeforeAttrs+me.rawAttrs,children:Oe,a:Hi,text:Je?vn:Hi,c:!0,b:!1,endPos:Cu,canInterruptParagraph:!1},end:On}}var Ga=K1(n,me.end),eo=Ga<n.length?je(n,Ga):Ga,kl=n.slice(me.end,Ga);if(kl.trim()){var{inline:Su,inHTML:Yn,d:qi}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,Oe=cr(kl,r,s),r.inline=Su,r.inHTML=Yn,r.d=qi}var to=n.slice(me.end,Ga);return{node:{type:P.htmlBlock,tag:w,attrs:yl(me.attrs,w,s),e:me.whitespaceBeforeAttrs+me.rawAttrs,children:Oe,a:to,text:kl,c:!0,b:!1,endPos:Ga,canInterruptParagraph:!1},end:eo}}function iE(n,l){if(n.charCodeAt(l)!==ht)return 0;var r=l+1,s=n.length;if(n.charCodeAt(r)===qn&&n.charCodeAt(r+1)===Be&&n.charCodeAt(r+2)===Be)return 2;if(n.charCodeAt(r)===ji)return 3;if(n.charCodeAt(r)===qn){var c=n.charCodeAt(r+1);if(c>=Ie&&c<=Qe)return 4;if(n.slice(r+1,r+8)==="[CDATA[")return 5}for(var f=n.charCodeAt(r)===Xt,d=f?r+1:r,m=d;m<s;){var h=n.charCodeAt(m);if(h>=Ie&&h<=Qe||h>=Rt&&h<=Ht||h>=et&&h<=tt||h===Be)m++;else break}if(m===d)return 0;var p=n.slice(d,m);if($s.has(p.toLowerCase())){if(f)return 0;var y=n.charCodeAt(m);return y===de||y===ge||y===Le||y===Ee||m>=s?1:0}if(Qc.has(p.toLowerCase())){if(f){for(var b=m;b<s&&(n.charCodeAt(b)===de||n.charCodeAt(b)===ge);)b++;return b<s&&n.charCodeAt(b)===Le?6:0}var A=m<s?n.charCodeAt(m):-1;return A===de||A===ge||A===Le||A===Ee||A===Xt||A===-1?6:0}if(f){for(var S=m;S<s&&(n.charCodeAt(S)===de||n.charCodeAt(S)===ge);)S++;if(S<s&&n.charCodeAt(S)===Le){var x=ct(n,l),C=n.slice(S+1,x).trim();if(C==="")return 7}}else{var E=ct(n,l),O=bl(n,l);if(O&&O.end<=E){var L=n.slice(O.end,E).trim();if(L==="")return 7}}return 0}function J1(n,l,r){for(var s=0,c=n.length;s<c&&(n.charCodeAt(s)===de||n.charCodeAt(s)===ge);)s++;for(;c>s&&(n.charCodeAt(c-1)===de||n.charCodeAt(c-1)===ge);)c--;s<c&&n.charCodeAt(s)===an&&s++,c>s&&n.charCodeAt(c-1)===an&&(c-2<s||n.charCodeAt(c-2)!==Wt)&&c--;for(var f=[],d=s,m=!1,h=[],p=s;p<c;){var y=n.charCodeAt(p);if(y===Wt&&p+1<c){n.charCodeAt(p+1)===an?(m||(m=!0,h=[]),h.push(n.slice(d,p)),h.push("|"),p+=2,d=p):p+=2;continue}if(y===ot){for(var b=0;p<c&&n.charCodeAt(p)===ot;)b++,p++;for(var A=!1;p<c&&!A;){for(var S=0;p<c&&n.charCodeAt(p)===ot;)S++,p++;S===b?A=!0:S===0&&p++}continue}if(y===an){var x=m?(h.push(n.slice(d,p)),h.join("")):n.slice(d,p);f.push(x.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 O=E.indexOf("\\|")!==-1?E.replace(/\\\|/g,"|"):E;return jn(O,0,O.length,l,r)})}function Z1(n,l,r,s){let c=ct(n,l);var f=n.indexOf("|",l);if(f<0||f>=c)return null;let d=je(n,c);if(d>=n.length)return null;let m=ct(n,d);if(!Oy(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)===de||p.charCodeAt(b)===ge);)b++;for(b<A&&p.charCodeAt(b)===an&&b++;b<A;){for(;b<A&&(p.charCodeAt(b)===de||p.charCodeAt(b)===ge);)b++;if(b>=A||p.charCodeAt(b)===an)break;var S=p.charCodeAt(b)===Bn;for(S&&b++;b<A&&p.charCodeAt(b)===Be;)b++;var x=b<A&&p.charCodeAt(b)===Bn;for(x&&b++,y.push(S&&x?"center":x?"right":S?"left":null);b<A&&(p.charCodeAt(b)===de||p.charCodeAt(b)===ge);)b++;b<A&&p.charCodeAt(b)===an&&b++}let C=J1(h,r,s);if(y.length!==C.length)return null;let E=[],O=je(n,m);for(;O<n.length;){let Y=ct(n,O),W=n.slice(O,Y);if(da(n,O,Y))break;if(qt(n,O,Y),lt<4){var L=n.charCodeAt(O+at);if(L===Le||L===Wa||(L===Be||L===It||L===Ut)&&or(n,O))break;if(L===ot||L===ln){for(var M=O+at,z=0;M<Y&&n.charCodeAt(M)===L;)z++,M++;if(z>=3)break}}E.push(J1(W,r,s)),O=je(n,Y)}if((s.streaming||s.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:P.table,header:C,cells:E,align:y},end:O}}function sE(n,l,r){var s=ct(n,l);if(qt(n,l,s),lt>3)return null;var c=l+at;if(n.charCodeAt(c)!==Ot)return null;if(c+1<n.length&&n.charCodeAt(c+1)===Ha){var f=oE(n,c,r);return f||null}r.refs||(r.refs={});var d=wy(n,c,r.refs);return d===null?null:{node:{type:P.refCollection},end:d}}function oE(n,l,r){var s=n.length;if(n.charCodeAt(l)!==Ot||l+1>=s||n.charCodeAt(l+1)!==Ha)return null;for(var c=l+2,f=c;c<s&&n.charCodeAt(c)!==ha;){if(n.charCodeAt(c)===Ee)return null;c++}if(c>=s)return null;var d=("^"+n.slice(f,c)).toLowerCase();if(c++,c>=s||n.charCodeAt(c)!==Bn)return null;for(c++;c<s&&(n.charCodeAt(c)===de||n.charCodeAt(c)===ge);)c++;if(c<s&&n.charCodeAt(c)===Ee)for(c++;c<s&&(n.charCodeAt(c)===de||n.charCodeAt(c)===ge);)c++;var m=n.indexOf(`
|
|
44
|
-
`,c);m<0&&(m=s);for(var h=n.slice(c,m).trim(),p=m<s?m+1:s;p<s;){var y=ct(n,p);if(qt(n,p,y),lt>=2&&!da(n,p,y))h+=`
|
|
45
|
-
`+n.slice(p,y),p=je(n,y);else if(da(n,p,y)){var b=je(n,y);if(b<s){var A=ct(n,b);if(qt(n,b,A),lt>=2){h+=`
|
|
46
|
-
`,p=je(n,y);continue}}break}else break}return r.refs[d]||(r.refs[d]={target:h,title:void 0}),{node:{type:P.footnote},end:p}}function cE(n,l,r,s){let c=l,f=0,d=0,m=-1;for(;c<n.length;){let ae=m>=0?m:ct(n,c);if(m=-1,da(n,c,ae))break;if(qt(n,c,ae),lt<4&&d>0&&!r.f){let pe=n.charCodeAt(c+at);if(pe===fa||pe===Be){let ye=c+at;for(;ye<ae&&n.charCodeAt(ye)===pe;)ye++;for(;ye<ae&&(n.charCodeAt(ye)===de||n.charCodeAt(ye)===ge);)ye++;if(ye>=ae){f=pe===fa?1:2,c=je(n,ae);break}}}d=ae;let oe=je(n,ae);if(oe<n.length){if(n.charCodeAt(oe)===Jc){var h=ct(n,oe);c=je(n,h),d=h;continue}let pe=ct(n,oe);if(m=pe,qt(n,oe,pe),lt<4){let ye=n.charCodeAt(oe+at);if(ye===Le){c=oe;break}if(ye===Wa&&My(n,oe,r,s)){c=oe;break}if(ye===ot||ye===ln){for(var p=oe+at,y=0;p<pe&&n.charCodeAt(p)===ye;)y++,p++;if(y>=3){c=oe;break}}if(ye===ht){var b=oe+at+1,A=b<pe?n.charCodeAt(b):0,S=A===qn||A===ji;if(!S&&A===Xt){for(var x=b+1,C=x;C<pe&&(n.charCodeAt(C)>=Ie&&n.charCodeAt(C)<=Qe||n.charCodeAt(C)>=Rt&&n.charCodeAt(C)<=Ht||n.charCodeAt(C)>=et&&n.charCodeAt(C)<=tt||n.charCodeAt(C)===Be);)C++;C>x&&(S=Qc.has(n.slice(x,C).toLowerCase()))}else if(!S){for(var E=b;E<pe&&(n.charCodeAt(E)>=Ie&&n.charCodeAt(E)<=Qe||n.charCodeAt(E)>=Rt&&n.charCodeAt(E)<=Ht||n.charCodeAt(E)>=et&&n.charCodeAt(E)<=tt||n.charCodeAt(E)===Be);)E++;if(E>b){var O=n.slice(b,E).toLowerCase();S=Qc.has(O)||$s.has(O)}}if(S&&zy(n,oe,r,s)){c=oe;break}}if(ye===Be||ye===It||ye===mr){let fe=oe+at+1;if(fe<pe&&(n.charCodeAt(fe)===de||n.charCodeAt(fe)===ge)){var L=Fs(n,fe,pe);if(L<pe&&!or(n,oe)){c=oe;break}}}if(ye>=et&&ye<=tt){let fe=oe+at;for(;fe<pe&&n.charCodeAt(fe)>=et&&n.charCodeAt(fe)<=tt;)fe++;if(fe<pe&&(n.charCodeAt(fe)===xa||n.charCodeAt(fe)===Oa)&&fe-(oe+at)===1&&n.charCodeAt(oe+at)===49){var M=fe+1;if(M<pe&&(n.charCodeAt(M)===de||n.charCodeAt(M)===ge)){var z=Fs(n,M,pe);if(z<pe){c=oe;break}}}}if(ye===an){let fe=je(n,pe);if(fe<n.length){let N=ct(n,fe);if(Oy(n,fe,N)){c=oe;break}}}if((ye===Be||ye===It||ye===Ut)&&or(n,oe)){if(ye!==Be){c=oe;break}let fe=oe+at;for(;fe<pe&&n.charCodeAt(fe)===Be;)fe++;for(;fe<pe&&(n.charCodeAt(fe)===de||n.charCodeAt(fe)===ge);)fe++;if(fe<pe){c=oe;break}}}}c=je(n,ae)}for(var H=f?d:c;H>l&&(n.charCodeAt(H-1)===Ee||n.charCodeAt(H-1)===fr||n.charCodeAt(H-1)===de||n.charCodeAt(H-1)===ge);)H--;for(var B=l;B<H&&(n.charCodeAt(B)===de||n.charCodeAt(B)===ge);)B++;if(B>=H)return null;for(var Y=!1,W=B;W<H;W++)if(n.charCodeAt(W)===Jc){Y=!0;break}var ie=Y?n.slice(B,H).replace(/\u001E/g,""):n.slice(B,H);if(!ie)return null;let ee=uE(ie,0,ie.length,r,s);if(f){let ae=(s?.slugify||Ja)(ie);return{node:{type:P.heading,level:f,children:ee,id:ae},end:c}}return{node:{type:P.paragraph,children:ee},end:c}}function uE(n,l,r,s,c){var f=n.indexOf(`
|
|
47
|
-
`,l);if(f<0||f>=r)return jn(n,l,r,s,c);for(var d="",m=l,h=l;h<r;){var p=n.charCodeAt(h);if(p===ot){var y=vu(n,h,r);if(y>h){for(var b=!1,A=h;A<y;A++)if(n.charCodeAt(A)===Ee){b=!0;break}b&&(d+=n.slice(m,h),d+=n.slice(h,y).replace(/\n/g," "),m=y),h=y;continue}}if(p===ht){var S=ky(n,h,r);if(S>h){h=S;continue}}if(p===Ee){var x=!1,C=0;if(h>l&&n.charCodeAt(h-1)===Wt)x=!0,C=1;else{for(var E=0,O=h-1;O>=l&&n.charCodeAt(O)===de;)E++,O--;E>=2&&(x=!0,C=E)}for(x?(d+=n.slice(m,h-C),d+=""):d+=n.slice(m,h+1),h++;h<r&&n.charCodeAt(h)===de;)h++;m=h;continue}h++}return m<r&&(d+=n.slice(m,r)),jn(d,0,d.length,s,c)}function fE(n,l,r){if(n.charCodeAt(l)!==ot)return null;let s=Rl(n,l,r,96),c=l+s;for(;c<r;){let f=n.indexOf("`",c);if(f<0||f>=r)return null;let d=Rl(n,f,r,96);if(d===s){let m=n.slice(l+s,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:P.codeInline,text:m},end:f+d}}c=f+d}return null}function vu(n,l,r){if(n.charCodeAt(l)!==ot)return l;let s=Rl(n,l,r,96),c=l+s;for(;c<r;){let f=n.indexOf("`",c);if(f<0||f>=r)return l;let d=Rl(n,f,r,96);if(d===s)return f+d;c=f+d}return l}function ky(n,l,r){if(n.charCodeAt(l)!==ht)return l;if(l+1<r&&n.charCodeAt(l+1)===Xt){let p=l+2;for(;p<r&&n.charCodeAt(p)!==Le;)p++;return p<r?p+1:l}if(l+3<r&&n.charCodeAt(l+1)===qn&&n.charCodeAt(l+2)===Be&&n.charCodeAt(l+3)===Be){let p=n.indexOf("-->",l+4);return p>=0?p+3:l}let s=l+1,c=s;for(;s<r;){let p=n.charCodeAt(s);if(p>=Ie&&p<=Qe||p>=Rt&&p<=Ht||p>=et&&p<=tt||p===Be)s++;else break}if(s===c)return l;let f=n.slice(c,s).toLowerCase(),d=!1;for(;s<r;){let p=n.charCodeAt(s);if(p===Le){s++;break}if(p===Xt&&s+1<r&&n.charCodeAt(s+1)===Le){s+=2,d=!0;break}if(p===hr||p===dr){var m=p;for(s++;s<r&&n.charCodeAt(s)!==m;)s++;s<r&&s++;continue}if(p===Ee)return l;s++}if(d||Ps(f))return s;let h=1;for(;s<r&&h>0;)if(n.charCodeAt(s)===ht)if(s+1<r&&n.charCodeAt(s+1)===Xt){let p=s+2,y=p;for(;y<r&&(n.charCodeAt(y)>=Ie&&n.charCodeAt(y)<=Qe||n.charCodeAt(y)>=Rt&&n.charCodeAt(y)<=Ht);)y++;if(n.slice(p,y).toLowerCase()===f){for(;y<r&&n.charCodeAt(y)!==Le;)y++;if(y<r&&y++,h--,h===0)return y}s=y}else{let p=s+1,y=p;for(;y<r&&(n.charCodeAt(y)>=Ie&&n.charCodeAt(y)<=Qe||n.charCodeAt(y)>=Rt&&n.charCodeAt(y)<=Ht);)y++;n.slice(p,y).toLowerCase()===f&&h++,s++}else s++;return s}function dE(n,l,r,s,c){if(n.charCodeAt(l)!==ln||l+1>=r||n.charCodeAt(l+1)!==ln)return null;let f=l+2;for(;f+1<r;){let d=n.charCodeAt(f);if(d===ot){let m=vu(n,f,r);if(m>f){f=m;continue}}if(d===ln&&n.charCodeAt(f+1)===ln){let m=n.slice(l+2,f),h=jn(m,0,m.length,s,c);return{node:{type:P.textFormatted,tag:"del",children:h},end:f+2}}d===Wt&&f+1<r&&f++,f++}return null}function hE(n,l,r,s,c){if(n.charCodeAt(l)!==fa||l+1>=r||n.charCodeAt(l+1)!==fa)return null;let f=l+2;for(;f+1<r;){let d=n.charCodeAt(f);if(d===ot){let m=vu(n,f,r);if(m>f){f=m;continue}}if(d===fa&&n.charCodeAt(f+1)===fa&&f>l+2){let m=n.slice(l+2,f),h=jn(m,0,m.length,s,c);return{node:{type:P.textFormatted,tag:"mark",children:h},end:f+2}}d===Wt&&f+1<r&&f++,f++}return null}var mE=/[\p{P}\p{S}]/u;function W1(n,l,r){return n<Qs?!!(lm(n)&$e):mE.test(l[r])}function Q1(n,l,r){return n<Qs?!!(lm(n)&Mi):new RegExp("\\p{Zs}","u").test(l[r])}function pE(n,l,r){var s=n.charCodeAt(l);if(s!==It&&s!==Ut)return null;var c=Rl(n,l,r,s);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?W1(f,n,l-1):!1,y=l+c<r?W1(d,n,l+c):!1,b=!h&&(!y||m||p),A=!m&&(!p||h||y),S,x;return s===It?(S=b,x=A):(S=b&&(!A||p),x=A&&(!b||y)),{len:c,canOpen:S,canClose:x}}function gE(n,l,r,s){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 x=l[b],C=x.len>=2&&m.len>=2,E=C?2:1;x.len-=E,m.len-=E;var O=n[x.idx],L=n[m.idx];O.text=O.text.slice(0,O.text.length-E),L.text=L.text.slice(E);var M=x.idx+1,z=m.idx,H=n.slice(M,z),B={type:P.textFormatted,tag:C?"strong":"em",children:H};n.splice(M,z-M,B);for(var Y=z-M-1,W=0;W<l.length;W++)l[W].idx>x.idx&&(l[W].idx-=Y);for(var ie=b+1;ie<d;ie++)l[ie].active=!1;if(x.len===0&&(x.active=!1,O.text==="")){n.splice(x.idx,1);for(var ee=0;ee<l.length;ee++)l[ee].idx>x.idx?l[ee].idx--:l[ee].idx===x.idx&&(l[ee].idx=-1)}if(m.len===0){m.active=!1;var ae=m.idx;if(L.text===""){n.splice(ae,1);for(var oe=0;oe<l.length;oe++)l[oe].idx>ae?l[oe].idx--:l[oe].idx===ae&&(l[oe].idx=-1)}}else continue;d++}for(var pe=0,ye=0;ye<n.length;ye++){var fe=n[ye];if(fe.type===P.text){var N=fe;if(N.text==="")continue;if(pe>0&&n[pe-1].type===P.text){n[pe-1].text+=N.text;continue}}n[pe++]=fe}n.length=pe}}function P1(n,l,r,s,c){let f=n.charCodeAt(l)===qn,d=f?l+1:l;if(n.charCodeAt(d)!==Ot)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===Wt&&h+1<r){h+=2;continue}if(b===ot){var A=vu(n,h,r);if(A>h){h=A;continue}}if(b===ht){var S=By(n,h,r);if(S){h=S.end;continue}var x=ky(n,h,r);if(x>h){h=x;continue}}b===Ot?y++:b===ha&&y--,h++}if(y!==0)return null;var C=h-1,E=n.slice(d+1,C),O=h<r?n.charCodeAt(h):0,L=!1;if(O===Ta){var M=!0;for(h++;h<r&&(n.charCodeAt(h)===de||n.charCodeAt(h)===Ee);)h++;var z="",H=h;if(h<r&&n.charCodeAt(h)===ht){for(h++,H=h;H<r&&n.charCodeAt(H)!==Le;){if(n.charCodeAt(H)===Wt&&H+1<r){H+=2;continue}if(n.charCodeAt(H)===Ee){M=!1;break}H++}M&&(H>=r||n.charCodeAt(H)!==Le)&&(M=!1),M&&(z=n.slice(h,H),H++)}else if(M){for(var B=0;H<r;){var Y=n.charCodeAt(H);if(Y===Wt&&H+1<r){H+=2;continue}if(Y===Ta)B++;else if(Y===Oa){if(B===0)break;B--}else if(Y===de||Y===Ee)break;H++}z=n.slice(h,H)}if(M){for(h=H;h<r&&(n.charCodeAt(h)===de||n.charCodeAt(h)===Ee);)h++;var W;if(h<r){var ie=n.charCodeAt(h);if(ie===hr||ie===dr||ie===Ta){var ee=ie===Ta?41:ie;h++;for(var ae=h;h<r&&n.charCodeAt(h)!==ee;)n.charCodeAt(h)===Wt&&h+1<r&&h++,h++;h>=r?M=!1:(W=n.slice(ae,h),h++)}}if(M){for(;h<r&&(n.charCodeAt(h)===de||n.charCodeAt(h)===Ee);)h++;(h>=r||n.charCodeAt(h)!==Oa)&&(M=!1)}}if(M){h++,z=zi(z),W!==void 0&&(W=gu(zi(W)));var oe=c?.sanitizer||am,pe=oe(z,f?"img":"a",f?"src":"href"),ye=pe===null?null:z;if(f){var fe=jn(E,0,E.length,s,c),N=Pc(fe);return{node:{type:P.image,target:ye,alt:N,title:W},end:h}}else{var F=s.inAnchor;s.inAnchor=!0;var J=F?[{type:P.text,text:E}]:jn(E,0,E.length,s,c);return s.inAnchor=F,!s.inAnchor&&vh(J)?null:{node:{type:P.link,target:ye,title:W,children:J},end:h}}}else h=C+1,L=!0}var ne="",le=h;if(!L&&O===Ot){var _e=h+1;le=_e;for(var T=!1;le<r&&n.charCodeAt(le)!==ha;){if(n.charCodeAt(le)===Wt&&le+1<r){le+=2;continue}if(n.charCodeAt(le)===Ot){T=!0;break}le++}if(T||le>=r)return null;var V=n.slice(_e,le);if(V.trim())ne=Rc(V);else{if(X1(E))return null;ne=Rc(E)}le=le+1}else{if(X1(E))return null;ne=Rc(E)}var X=s.refs[ne];if(!X)return null;if(f)return{node:{type:P.image,target:X.target,alt:Pc(jn(E,0,E.length,s,c)),title:X.title},end:le};var re=s.inAnchor;s.inAnchor=!0;var J=re?[{type:P.text,text:E}]:jn(E,0,E.length,s,c);return s.inAnchor=re,!s.inAnchor&&vh(J)?null:{node:{type:P.link,target:X.target,title:X.title,children:J},end:le}}function By(n,l,r){if(n.charCodeAt(l)!==ht)return null;for(var s=l+1;s<r;){var c=n.charCodeAt(s);if(c===Le)break;if(c===de||c===Ee||c===fr||c===ht)return null;s++}if(s>=r||n.charCodeAt(s)!==Le)return null;var f=n.slice(l+1,s),d=f.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return d?{node:{type:P.link,target:f,children:[{type:P.text,text:f}]},end:s+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:P.link,target:"mailto:"+f,children:[{type:P.text,text:f}]},end:s+1}:null}function vE(n,l,r,s){if(n.charCodeAt(l)!==Ot||l+1>=r||n.charCodeAt(l+1)!==Ha)return null;let c=l+2;for(;c<r&&n.charCodeAt(c)!==ha&&n.charCodeAt(c)!==Ee;)c++;if(c>=r||n.charCodeAt(c)!==ha)return null;let f=n.slice(l+2,c);return f?{node:{type:P.footnoteReference,target:"#"+Ja(f),text:f},end:c+1}:null}function yE(n,l,r,s){if(s.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)===z1&&(n.charCodeAt(l+4)===wS&&n.charCodeAt(l+5)===Bn&&n.charCodeAt(l+6)===Xt&&n.charCodeAt(l+7)===Xt?c="https://":n.charCodeAt(l+4)===Bn&&n.charCodeAt(l+5)===Xt&&n.charCodeAt(l+6)===Xt&&(c="http://")):d===Bi||d===70?l+6<=r&&n.charCodeAt(l+1)===Yd&&n.charCodeAt(l+2)===z1&&n.charCodeAt(l+3)===Bn&&n.charCodeAt(l+4)===Xt&&n.charCodeAt(l+5)===Xt&&(c="ftp://"):(d===Li||d===87)&&l+4<=r&&n.charCodeAt(l+1)===Li&&n.charCodeAt(l+2)===Li&&n.charCodeAt(l+3)===xa&&(c="www.",f=!0),!c)return null;let m=l+c.length;for(;m<r;){let B=n.charCodeAt(m);if(B===de||B===Ee||B===ge||B===fr||B===ht||B===Le)break;m++}for(var h=0,p=0,y=l;y<m;y++){var b=n.charCodeAt(y);b===Ta?h++:b===Oa&&p++}let A=m;for(;A>l+c.length;){let B=n.charCodeAt(A-1);if(B===xa||B===Sy||B===Bn||B===qn||B===ji||B===Oa){if(B===Oa){if(h>=p)break;p--}A--}else if(B===nm){for(var S=A-2;S>l&&(n.charCodeAt(S)>=Ie&&n.charCodeAt(S)<=Qe||n.charCodeAt(S)>=Rt&&n.charCodeAt(S)<=Ht||n.charCodeAt(S)>=et&&n.charCodeAt(S)<=tt);)S--;S>=l&&n.charCodeAt(S)===tm?A=S:A--}else break}if(A<=l+c.length)return null;var x=l+(f?4:c.length),C=n.indexOf("/",x);if((C<0||C>A)&&(C=A),f&&n.indexOf(".",x)===-1)return null;for(var E=-1,O=-1,L=C-1;L>=x;L--)if(n.charCodeAt(L)===xa)if(E<0)E=L;else{O=L;break}for(var M=O>=0?O+1:x,L=M;L<C;L++)if(n.charCodeAt(L)===Ut)return null;var z=n.slice(l,A),H=f?"http://"+z:z;return{node:{type:P.link,target:H,children:[{type:P.text,text:z}]},end:A}}function bE(n,l,r,s){if(s.disableBareUrls)return null;for(var c=l,f=c;c<r;){var d=n.charCodeAt(c);if(d>=Ie&&d<=Qe||d>=Rt&&d<=Ht||d>=et&&d<=tt||d===xa||d===qn||d===Wa||d===36||d===Fc||d===tm||d===dr||d===It||d===mr||d===Xt||d===fa||d===ji||d===Ha||d===Ut||d===ot||d===Jr||d===an||d===pu||d===ln||d===Be)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>=Ie&&d<=Qe||d>=Rt&&d<=Ht||d>=et&&d<=tt)c++;else if((d===Be||d===Ut)&&c>m)c++;else if(d===xa){if(c===m)break;var y=n.charCodeAt(c-1);if(y===Be||y===Ut||c-p>63)break;if(c+1<r){var b=n.charCodeAt(c+1);if(b>=Ie&&b<=Qe||b>=Rt&&b<=Ht||b>=et&&b<=tt)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>=Ie&&A<=Qe||A>=Rt&&A<=Ht||A>=et&&A<=tt)||c<=h+1)return null;for(var S=-1,x=h-1;x>=m;x--)if(n.charCodeAt(x)===xa){S=x;break}for(var C=S>=0?S+1:m,x=C;x<c;x++)if(n.charCodeAt(x)===Ut)return null;var E=n.slice(l,c);return{node:{type:P.link,target:"mailto:"+E,children:[{type:P.text,text:E}]},end:c}}function vh(n){for(var l=0;l<n.length;l++)if(n[l].type===P.link||"children"in n[l]&&Array.isArray(n[l].children)&&vh(n[l].children))return!0;return!1}function Pc(n){for(var l="",r=0;r<n.length;r++){var s=n[r];s.type===P.text?l+=s.text:s.type===P.breakLine?l+=" ":s.type===P.codeInline?l+=s.text:"children"in s&&Array.isArray(s.children)?l+=Pc(s.children):s.type===P.image?l+=s.alt||"":s.type===P.link&&(l+=Pc(s.children))}return l}function qr(n){let l=n.includes("&")?gu(n):n;return{type:P.text,text:l}}function _E(n,l,r,s,c){if(n.charCodeAt(l)!==ht)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)===Be&&f+2<r&&n.charCodeAt(f+2)===Be){var m=f+3;if(m<r&&n.charCodeAt(m)===Le)return{node:{type:P.htmlComment,text:"",endsWithGreaterThan:!0},end:m+1};if(m+1<r&&n.charCodeAt(m)===Be&&n.charCodeAt(m+1)===Le)return{node:{type:P.htmlComment,text:"-",endsWithGreaterThan:!0},end:m+2};var h=n.indexOf("-->",m);return h!==-1&&h<=r-3?{node:{type:P.htmlComment,text:n.slice(l+4,h)},end:h+3}:null}if(d===ji){var p=n.indexOf("?>",f+1);return p!==-1&&p<r?{node:{type:P.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===Ot&&n.slice(f+1,f+8)==="[CDATA["){var b=n.indexOf("]]>",f+8);return b!==-1&&b<r?{node:{type:P.htmlSelfClosing,tag:"![CDATA[",attrs:{},a:n.slice(l,b+3)},end:b+3}:null}if(y>=Ie&&y<=Qe){var A=n.indexOf(">",f+2);return A!==-1&&A<r?{node:{type:P.htmlSelfClosing,tag:"!"+n.slice(f+1,A),attrs:{},a:n.slice(l,A+1)},end:A+1}:null}}if(d===Xt){var S=f+1;if(S>=r)return null;var x=n.charCodeAt(S);if(!(x>=Ie&&x<=Qe||x>=Rt&&x<=Ht))return null;for(S++;S<r;){var C=n.charCodeAt(S);if(C>=Ie&&C<=Qe||C>=Rt&&C<=Ht||C>=et&&C<=tt||C===Be)S++;else break}for(;S<r&&(n.charCodeAt(S)===de||n.charCodeAt(S)===ge||n.charCodeAt(S)===Ee);)S++;if(S<r&&n.charCodeAt(S)===Le){var E=n.slice(f+1,S).trim();return{node:{type:P.htmlSelfClosing,tag:E,attrs:{},a:n.slice(l,S+1),b:!0},end:S+1}}return null}if(!(d>=Ie&&d<=Qe||d>=Rt&&d<=Ht))return null;var O=bl(n,l);if(!O)return null;var L=O.tag,M=L.toLowerCase(),z=O.selfClosing;if(z||Ps(L))return{node:{type:P.htmlSelfClosing,tag:L,attrs:yl(O.attrs,L,c),a:n.slice(l,O.end)},end:O.end};var H=$s.has(M),B=Ly(n.slice(0,r),O.end,L);if(B===-1)return{node:{type:P.htmlSelfClosing,tag:L,attrs:yl(O.attrs,L,c),a:n.slice(l,O.end)},end:O.end};var Y=rE(n,"</"+M,B),W=n.slice(O.end,Y),ie=[];if(H)W.trim()&&(ie=[{type:P.text,text:W}]);else{var ee=W.trim();if(ee){var{inAnchor:ae,inline:oe}=s;M==="a"&&(s.inAnchor=!0);var pe=ee.indexOf(`
|
|
48
|
-
|
|
49
|
-
`)!==-1||/^#{1,6}\s/.test(ee);pe?(s.inline=!1,ie=cr(ee,s,c)):ie=jn(ee,0,ee.length,s,c),s.inAnchor=ae,s.inline=oe}}return{node:{type:P.htmlBlock,tag:L,attrs:yl(O.attrs,L,c),e:O.rawAttrs,children:ie,text:W,c:!1},end:B}}var AE=200,Is=0;function jn(n,l,r,s,c){if(Is++,Is>AE)return Is--,[{type:P.text,text:n.slice(l,r)}];let f=s;if(c.streaming||c.optimizeForStreaming){let he=function(Ke,Lt){for(var zt=1,kt=Lt+1;kt<Ke.length;kt++){var Fe=Ke.charCodeAt(kt);if(Fe===Ot)zt++;else if(Fe===ha&&(zt--,zt===0))return kt}return-1},$=n.slice(l,r),ze=$;for(var d=0,m=0,h=0,p=0,y=0,b=-1,A=-1,S=-1,x=-1,C=-1,E=0;E<$.length;E++){var O=$.charCodeAt(E);O===It?E+1<$.length&&$.charCodeAt(E+1)===It?(d++,b=E,E++):(m++,A=E):O===Ut?E+1<$.length&&$.charCodeAt(E+1)===Ut?(h++,S=E,E++):(p++,x=E):O===ln&&E+1<$.length&&$.charCodeAt(E+1)===ln&&(y++,C=E,E++)}var L=[];y%2===1&&C>=0&&L.push([C,2]),h%2===1&&S>=0&&L.push([S,2]),p%2===1&&x>=0&&L.push([x,1]),d%2===1&&b>=0&&L.push([b,2]),m%2===1&&A>=0&&L.push([A,1]),L.sort(function(Ke,Lt){return Lt[0]-Ke[0]});for(var M=0;M<L.length;M++){var z=L[M][0],H=L[M][1];$=$.slice(0,z)+$.slice(z+H)}let Te=0,wt=-1;for(let Ke=0;Ke<$.length;Ke++)$.charCodeAt(Ke)===ot&&(Te++,wt=Ke);if(Te%2===1&&wt!==-1){let Ke=!1,Lt=-1,zt=0;for(;zt<$.length;)$.charCodeAt(zt)===ot&&(Ke?(Ke=!1,Lt=-1):(Lt=zt,Ke=!0)),zt++;Ke&&Lt!==-1&&($=$.slice(0,Lt))}for(var B=!0;B;){B=!1;for(var Y=-1,W=-1,ie=-1,ee=!1,ae=0;ae<$.length;ae++){var oe=$.charCodeAt(ae);if(oe===Ot&&(ae===0||$.charCodeAt(ae-1)!==Wt)){var pe=ae>0&&$.charCodeAt(ae-1)===qn,ye=pe?ae-1:ae,fe=he($,ae);if(fe===-1)Y=ye,ee=pe,W=ae+1,ie=$.length;else{var N=fe+1;if(N>=$.length)Y=ye,ee=pe,W=ae+1,ie=fe;else if($.charCodeAt(N)===Ta){var F=$.indexOf(")",N+1);F===-1?(Y=ye,ee=pe,W=ae+1,ie=fe,ae=$.length):ae=F}else if($.charCodeAt(N)===Ot){var ne=$.indexOf("]",N+1);ne===-1?(Y=ye,ee=pe,W=ae+1,ie=fe,ae=$.length):ae=ne}else ae=fe}}}if(Y>=0){var le=ee?"":$.slice(W,ie);$=$.slice(0,Y)+le,B=!0}}let Pe=$.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(Pe&&Pe.index!==void 0){for(var _e=!1,T=0,V=0;V<Pe.index;V++)$.charCodeAt(V)===ot&&T++;if(_e=T%2===1,!_e){let Ke=Pe[1];_l($,"</"+Ke,0)===-1&&($=$.replace(/<[A-Z][A-Za-z0-9]*(?:\s[^>]*)?>([^<]*)$/,"$1"))}}$!==ze&&(n=n.slice(0,l)+$,r=l+$.length)}let X=[];var re=[];let J=l;var ue=c.disableAutoLink||c.disableBareUrls||f.inAnchor?-1:n.indexOf("@",l);for(ue>=r&&(ue=-1);l<r;){let he=n.charCodeAt(l),$=null;if(he===ot){if($=fE(n,l,r),!$){var Ce=Rl(n,l,r,ot);l+=Ce-1}}else if(he===It||he===Ut){var ce=pE(n,l,r);if(ce){if(ce.canOpen||ce.canClose){l>J&&X.push(qr(n.slice(J,l)));var Re=n.slice(l,l+ce.len),Ge=qr(Re);re.push({idx:X.length,ch:he,len:ce.len,canOpen:ce.canOpen,canClose:ce.canClose,active:!0}),X.push(Ge),l+=ce.len,J=l;continue}l+=ce.len-1}}else he===ln?$=dE(n,l,r,f,c):he===fa?$=hE(n,l,r,f,c):he===Ot?(l+1<r&&n.charCodeAt(l+1)===Ha&&($=vE(n,l,r)),$||($=P1(n,l,r,f,c))):he===qn&&l+1<r&&n.charCodeAt(l+1)===Ot?$=P1(n,l,r,f,c):he===ht?($=By(n,l,r),!$&&!c.disableParsingRawHTML&&!c.ignoreHTMLBlocks&&($=_E(n,l,r,f,c))):(he===mu||he===Li||he===Bi)&&!f.inAnchor&&!c.disableAutoLink&&(l===0||n.charCodeAt(l-1)!==ht)&&($=yE(n,l,r,c));if(!$&&ue>=0&&ue-l<=64&&!f.inAnchor&&!c.disableAutoLink&&!c.disableBareUrls&&(he>=Ie&&he<=Qe||he>=Rt&&he<=Ht||he>=et&&he<=tt)&&($=bE(n,l,r,c),!$&&l>=ue&&(ue=n.indexOf("@",l+1),ue>=r&&(ue=-1))),he===Ey){l>J&&X.push(qr(n.slice(J,l))),X.push({type:P.breakLine}),l++,J=l;continue}if($)l>J&&X.push(qr(n.slice(J,l))),X.push($.node),l=$.end,J=l;else{if(he===Wt&&l+1<r){let ze=n.charCodeAt(l+1);if(lm(ze)&$e){l>J&&X.push(qr(n.slice(J,l))),X.push(qr(n[l+1])),l+=2,J=l;continue}}if(l++,ue<0||ue-l>64)for(;l<r;){var rt=n.charCodeAt(l);if(rt<Qs&&!xy[rt])l++;else break}}}if(r>J){let he=n.slice(J,r);(c.streaming||c.optimizeForStreaming)&&(he=he.replace(/\*\*([^*]+)$/,"$1"),he.match(/\*[^*]+$/)&&(he=he.replace(/\*([^*]+)$/,"$1")),he=he.replace(/__([^_]+)$/,"$1"),he.match(/_[^_]+$/)&&(he=he.replace(/_([^_]+)$/,"$1")),he=he.replace(/~~([^~]+)$/,"$1"),he=he.replace(/\[([^\]]+)$/,"$1"),he=he.replace(/\[([^\]]+)\]\([^)]*$/,"$1")),he&&X.push(qr(he))}return re.length>0&&gE(X,re),Is--,X}var CE=500;function cr(n,l,r){var s=l.g||0;if(s>CE)return[{type:P.text,text:n}];if(l.g=s+1,r.streaming||r.optimizeForStreaming){var c=n.length;c>0&&n.charCodeAt(c-1)===Ee&&c--;for(var f=c;f>0&&n.charCodeAt(f-1)!==Ee;)f--;if(f>0&&n.charCodeAt(f)===an){for(var d=!0,m=f;m<c;m++){var h=n.charCodeAt(m);if(h!==de&&h!==ge&&h!==Be&&h!==Bn&&h!==an){d=!1;break}}if(d){for(var p=f-1;p>0&&n.charCodeAt(p-1)!==Ee;)p--;n.charCodeAt(p)===an&&(n=n.slice(0,p).trimEnd())}}var y=n.trim(),b=y.lastIndexOf(`
|
|
50
|
-
`),A=b===-1?y:y.slice(b+1);if(A.length>0&&A.charCodeAt(0)===an){for(var S=!1,x=!1,C=1;C<A.length;C++){var E=A.charCodeAt(C);E===an&&(S=!0),E===Be&&(x=!0)}S&&x&&(n=b===-1?"":n.slice(0,n.lastIndexOf(A)).trimEnd())}for(var O=-1,L=-1,M=-1,z=n.length-1;z>=0;z--)if(n.charCodeAt(z)===ht){var H=z+1<n.length?n.charCodeAt(z+1):0;if(H>=Ie&&H<=Qe||H>=Rt&&H<=Ht){for(var B=z+2;B<n.length;){var Y=n.charCodeAt(B);if(Y>=Ie&&Y<=Qe||Y>=Rt&&Y<=Ht||Y>=et&&Y<=tt)B++;else break}for(var W=B;W<n.length&&n.charCodeAt(W)!==Le;)W++;if(W<n.length){for(var ie=!1,ee=W+1;ee<n.length;ee++)if(n.charCodeAt(ee)===ht){ie=!0;break}ie||(O=z,L=B,M=W+1)}}break}if(O>=0){for(var ae=0,oe=0;oe<O;oe++)n.charCodeAt(oe)===ot&&ae++;if(ae%2===0){var pe=n.slice(O+1,L);_l(n,"</"+pe,0)===-1&&(n=n.slice(0,O)+n.slice(M))}}var ye=n.length;if(ye>0){for(var fe=n.lastIndexOf(`
|
|
51
|
-
`),N=fe===-1?0:fe+1,F=ye,ne=N,le=0;ne<F&&n.charCodeAt(ne)===de&&le<3;)ne++,le++;if(ne<F){var _e=n.charCodeAt(ne),T=!1;if(_e===It||_e===Be||_e===mr){var V=ne+1;if(V>=F||n.charCodeAt(V)===de||n.charCodeAt(V)===ge){for(var X=V;X<F&&(n.charCodeAt(X)===de||n.charCodeAt(X)===ge);)X++;X>=F&&(T=!0)}}else if(_e>=et&&_e<=tt){for(var re=ne;re<F&&n.charCodeAt(re)>=et&&n.charCodeAt(re)<=tt;)re++;if(re<F&&(n.charCodeAt(re)===xa||n.charCodeAt(re)===Oa)){var J=re+1;if(J>=F||n.charCodeAt(J)===de||n.charCodeAt(J)===ge){for(var ue=J;ue<F&&(n.charCodeAt(ue)===de||n.charCodeAt(ue)===ge);)ue++;ue>=F&&(T=!0)}}}T&&(n=n.slice(0,N).trimEnd())}}}if(l.inline)return jn(n,0,n.length,l,r);let Ce=[],ce=0,Re=n.length;if(ce===0&&n.startsWith("---")){let Te=LS(n);if(Te&&Te.hasValidYaml){if(r.preserveFrontmatter!==!1){let wt=n.slice(0,Te.endPos).trimEnd();Ce.push({type:P.frontmatter,text:wt})}ce=Te.endPos}}for(;ce<Re;){for(var Ge=n.indexOf(`
|
|
52
|
-
`,ce),rt=Ge<0?Re:Ge;ce<Re&&da(n,ce,rt);)ce=rt<Re?rt+1:rt,ce<Re&&(Ge=n.indexOf(`
|
|
53
|
-
`,ce),rt=Ge<0?Re:Ge);if(ce>=Re)break;n.charCodeAt(ce),qt(n,ce,rt);let Te=null;if(n.charCodeAt(ce)!==Jc&<>=4&&!l.inHTML)Te=nE(n,ce);else if(n.charCodeAt(ce)!==Jc){let wt=ce+at,Pe=n.charCodeAt(wt);Pe===Wa?Te=My(n,ce,l,r):Pe===Le?Te=aE(n,ce,l,r):Pe===ot||Pe===ln?Te=tE(n,ce):Pe===Be||Pe===It||Pe===Ut?(Te=or(n,ce),!Te&&(Te=F1(n,ce,l,r))):Pe===mr||Pe>=et&&Pe<=tt?Te=F1(n,ce,l,r):Pe===ht?Te=zy(n,ce,l,r):Pe===an?Te=Z1(n,ce,l,r):Pe===Ot&&(Te=sE(n,ce,l))}if(!Te){for(var he=!1,$=ce;$<rt;$++)if(n.charCodeAt($)===an){he=!0;break}he&&(Te=Z1(n,ce,l,r))}if(Te||(Te=cE(n,ce,l,r)),Te)Te.node.type!==P.refCollection&&Ce.push(Te.node),ce=Te.end;else{var ze=n.indexOf(`
|
|
54
|
-
`,ce);ce=ze<0?Re:ze+1}}return l.g=s,Ce}function SE(n,l,r,s){var c=bl(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(`
|
|
55
|
-
`)||c.rawAttrs.includes(`
|
|
56
|
-
`),endPos:c.end}:null}function rm(n,l,r){Is=0,n=VS(n),!l.refs&&(l.refs={}),Ry(n,l.refs);let s=cr(n,l,r);return l.refs&&Object.keys(l.refs).length>0?[{type:P.refCollection,refs:l.refs},...s]:s}var EE=/^\n+/,yh;try{yh=q.createElement("div").$$typeof}catch{yh=Symbol.for("react.transitional.element")}function bh(n,l,r){var s={$$typeof:yh,type:n,key:r!=null?""+r:null,ref:null,props:l,h:null};return s}var TE=typeof q.createContext<"u"?q.createContext(void 0):void 0;function $1(n,l,r,s,c,f,d,m){switch(n.type){case P.blockQuote:{let C={key:r.key};return n.alert&&(C.className="markdown-alert-"+f(n.alert.toLowerCase(),Ja),n.children.unshift({attrs:{},children:[{type:P.text,text:n.alert}],c:!0,type:P.htmlBlock,tag:"header"})),s("blockquote",C,l(n.children,r))}case P.breakLine:return s("br",{key:r.key});case P.breakThematic:return s("hr",{key:r.key});case P.frontmatter:return m.preserveFrontmatter?s("pre",{key:r.key},n.text):null;case P.codeBlock:let x=n.lang?gu(n.lang):"";return s("pre",{key:r.key},s("code",{...sa(n.attrs||{}),className:x?`language-${x} lang-${x}`:""},n.text));case P.codeInline:return s("code",{key:r.key},n.text);case P.footnoteReference:return s("a",{key:r.key,href:c(n.target,"a","href")||void 0},s("sup",{key:r.key},n.text));case P.gfmTask:return s("input",{checked:n.completed,key:r.key,readOnly:!0,type:"checkbox"});case P.heading:return s(`h${n.level}`,{id:n.id,key:r.key},l(n.children,r));case P.htmlBlock:{let C=n;if(m.tagfilter&&I1(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 s("span",{key:r.key},"<"+C.tag+h+">")}if(C.a&&C.c){let E=function(N){if((N.type===P.htmlSelfClosing||N.type===P.htmlBlock)&&N.b)return[];if(N.type===P.paragraph){let F=N.children;return F?F.flatMap(E):[]}return N.type===P.text?N.text?.trim()?[N]:[]:N.type===P.htmlBlock&&N.children?[{...N,children:N.children?.flatMap(E)}]:[N]},O=function(N){for(var F=0;F<N.length;F++)N[F].type===P.htmlBlock&&(N[F].c=!1),"children"in N[F]&&N[F].children&&O(N[F].children)},L=function(N,F){for(var ne=0;ne<N.length;ne++){var le=N[ne];if(le.type===P.paragraph&&le.children)for(var _e=le.children,T=0;T<_e.length;T++){var V=_e[T];if(V.type===P.htmlSelfClosing&&V.b&&V.tag.toLowerCase()===F){var X=N.slice(0,ne);T>0&&X.push({type:P.paragraph,children:_e.slice(0,T)});var re=[];if(T+1<_e.length){var J=_e.slice(T+1);J=J.filter(function(ue){return!(ue.type===P.htmlSelfClosing&&ue.b)}),J.length>0&&(re=J)}return re=re.concat(N.slice(ne+1)),{found:!0,beforeClose:X,afterClose:re}}}if((le.type===P.htmlSelfClosing||le.type===P.htmlBlock)&&le.b&&le.tag.toLowerCase()===F)return{found:!0,beforeClose:N.slice(0,ne),afterClose:N.slice(ne+1)}}return{found:!1,beforeClose:N,afterClose:[]}},M=C.tag.toLowerCase(),z=PS(M),H=C.children&&C.children.length>0,B=/<[a-z][^>]{0,100}>/i.test(C.a);if(z){let N=C.a.replace(new RegExp("\\s*</"+M+">\\s*$","i"),"");return m.tagfilter&&(N=G1(N)),B?s(n.tag,{key:r.key,...sa(n.attrs||{}),dangerouslySetInnerHTML:{__html:N}}):s(n.tag,{key:r.key,...sa(n.attrs||{})},N)}let Y=new RegExp(`^<${C.tag}(\\s|>)`,"i").test(C.a);if(H&&!Y&&m.tagfilter&&FS(C.a))return s(n.tag,{key:r.key,...sa(n.attrs||{})},l(C.children,r));if($S(C.a)){let N=m.tagfilter?G1(C.a):C.a;return s(n.tag,{key:r.key,...sa(n.attrs||{}),dangerouslySetInnerHTML:{__html:N}})}let W={slugify:N=>f(N,Ja),sanitizer:c,tagfilter:!0},ie=C.a.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${C.tag}(\\s[^>]*)?>(\\s*</${C.tag}>)?$`,"i").test(ie))return C.children&&C.children.length>0?s(n.tag,{key:r.key,...sa(n.attrs||{})},l(C.children,r)):s(n.tag,{key:r.key,...sa(n.attrs||{})});let ee=rm(ie,{inline:!1,refs:d,inHTML:!1},W);O(ee);let ae=C.tag.toLowerCase(),oe="</"+ae+">",pe=new RegExp(`^<${C.tag}(\\s|>)`,"i").test(ie),ye=ie.toLowerCase().trimEnd().endsWith(oe),fe=pe&&ye;if(fe&&H)return s(n.tag,{key:r.key,...sa(n.attrs||{})},l(C.children,r));if(fe)return l(ee.flatMap(E),r);var b=L(ee,ae);if(b.found&&b.afterClose.length>0){var A=b.beforeClose.flatMap(E),S=b.afterClose.flatMap(E);return bh(q.Fragment,{children:[s(n.tag,{key:r.key,...sa(n.attrs||{})},l(A,r)),l(S,r)]},null)}return s(n.tag,{key:r.key,...sa(n.attrs||{})},l(ee.flatMap(E),r))}return Ps(n.tag)?s(n.tag,{key:r.key,...sa(n.attrs||{})}):s(n.tag,{key:r.key,...sa(n.attrs||{})},n.children?l(n.children,r):"")}case P.htmlSelfClosing:{let C=n;if(m.tagfilter&&I1(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 s("span",{key:r.key},"<"+C.tag+h+" />")}return s(n.tag,{key:r.key,...sa(n.attrs||{})})}case P.image:{let C=n.target!=null?c(n.target,"img","src"):null;return s("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 P.link:{let C={key:r.key};return n.target!=null&&(C.href=YS(n.target)),n.title&&(C.title=n.title),s("a",C,l(n.children,r))}case P.table:{let C=n;return s("table",{key:r.key},s("thead",null,s("tr",null,C.header.map(function(E,O){return s("th",{key:O,style:C.align[O]==null?{}:{textAlign:C.align[O]}},l(E,r))}))),s("tbody",null,C.cells.map(function(E,O){return s("tr",{key:O},E.map(function(L,M){return s("td",{key:M,style:C.align[M]==null?{}:{textAlign:C.align[M]}},l(L,r))}))})))}case P.text:return n.text;case P.textFormatted:return s(n.tag,{key:r.key},l(n.children,r));case P.orderedList:case P.unorderedList:{let C=n.type===P.orderedList?"ol":"ul";return s(C,{key:r.key,start:n.type===P.orderedList?n.start:void 0},n.items.map(function(E,O){return s("li",{key:O},l(E,r))}))}case P.paragraph:return s("p",{key:r.key},l(n.children,r));case P.ref:return null;default:return null}}var xE=(n,l,r,s,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,x=0;x<h.length;x++){p.key=x;var C;if(n){var E=$1.bind(null,h[x],m,p,l,r,s,c,f);C=n(E,h[x],m,p)}else C=$1(h[x],m,p,l,r,s,c,f);var O=typeof C=="string";if(O&&S)A[A.length-1]+=C;else if(C!==null)if(Array.isArray(C))for(var L=0;L<C.length;L++)A.push(C[L]);else A.push(C);S=O}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 RE(n,l){let r={...l||{}};r.overrides=r.overrides||{};let s=r.slugify||Ja,c=r.sanitizer||am,f=r.createElement,d=r.overrides&&Object.keys(r.overrides).length>0,m=O=>_h(O,{...r,wrapper:null});function h(O,L,...M){var z=L||{};for(var H in z){var B=z[H];if(typeof B=="string"&&B.length>0&&B.charCodeAt(0)===ht&&(JS.test(B)||ZS.test(B)||SE(B,0))){var Y=m(B.trim());z[H]=H==="innerHTML"&&Array.isArray(Y)?Y[0]:Y}}var W=O;if(d){var ie=mh(r.overrides,O+".props",{});W=OE(O,r.overrides),z={...z,...ie,className:XS(z.className,ie.className)||void 0}}if(!f){var ee=z.key;return ee!=null&&delete z.key,M.length===1?z.children=M[0]:M.length>1&&(z.children=M),bh(W,z,ee)}return f(W,z,...M)}let p={...r,slugify:O=>s(O,Ja),sanitizer:c,tagfilter:r.tagfilter!==!1},y=n[0]&&n[0].type===P.refCollection?n[0].refs:{},b=xE(r.renderRule,h,c,s,y,r),A=b(n,{inline:r.forceInline,refs:y}),S=[];for(let O in y)O.charCodeAt(0)===Ha&&S.push({identifier:O,footnote:y[O].target});if(S.length&&A.push(h("footer",{key:"footer"},S.map(function(O){let L=O.identifier.charCodeAt(0)===Ha?O.identifier.slice(1):O.identifier,M=rm(O.footnote,{inline:!0,refs:y},p);return h("div",{id:s(L,Ja),key:O.identifier},L+": ",b(M,{inline:!0,refs:y}))}))),r.wrapper===null)return A;let x=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(x,E,"outer")}function _h(n="",l={}){let r={...l||{}};r.overrides=r.overrides||{};let s=r.slugify||Ja,c=r.sanitizer||am;function f(m){let h=r.forceInline||!r.forceBlock&&!BS.test(m),p={...r,slugify:A=>s(A,Ja),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]===`
|
|
57
|
-
`||y[A-1]==="\r");)A--;y=y.slice(0,A),y=`${y.replace(EE,"")}
|
|
58
|
-
|
|
59
|
-
`}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 RE(b,{...p,forceInline:h})}let d={};return f(n)}var wE=({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 s=q.useContext(TE),c=q.useMemo(()=>({...s,...l,overrides:{...s?.overrides,...l?.overrides},wrapperProps:{...s?.wrapperProps,...l?.wrapperProps,...r}}),[s,l,r]),f=n??"";return q.useMemo(()=>_h(f,c),[f,c])},Sl=wE;const NE="_generalConditionsContainer_55hjg_1",ME="_generalConditions_55hjg_1",DE="_generalConditionsHeader_55hjg_15",LE="_generalConditionsBody_55hjg_26",zE="_generalConditionsAccept_55hjg_35",Ms={generalConditionsContainer:NE,generalConditions:ME,generalConditionsHeader:DE,generalConditionsBody:LE,generalConditionsAccept:zE},kE=()=>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"})}),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,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"})}),jE="general-conditions.header",UE="general-conditions.body",ev="general-conditions.accept-conditions-note",HE=()=>{const n=St(),[l,r]=q.useState(!1),s=()=>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===" ")&&s()},f=n(jE),d=n(ev);return v.jsxs("div",{className:se(Ms.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&v.jsxs("div",{className:Ms.generalConditions,children:[v.jsxs("div",{role:"button",onClick:s,onKeyDown:c,tabIndex:0,className:se(Ms.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":l?"true":"false","aria-pressed":l?"true":"false",children:[v.jsx(Sl,{children:f}),l?v.jsx(BE,{}):v.jsx(kE,{})]}),v.jsx("div",{className:se(Ms.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:l&&v.jsx(Sl,{children:n(UE)||""})})]}),!!d?.length&&v.jsx("div",{className:se(Ms.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(Sl,{children:n(ev)||""})})]})},qE="_messageContainer_1rxi5_1",IE="_message_1rxi5_1",GE="_messageBot_1rxi5_14",VE="_messageBotLast_1rxi5_45",YE="_avatar_1rxi5_45",XE="_messageBotFirst_1rxi5_54",KE="_messageBotAnimated_1rxi5_67",FE="_messageGuest_1rxi5_78",JE="_messageGuestFirst_1rxi5_84",ZE="_messageGuestLast_1rxi5_90",WE="_botAvatar_1rxi5_104",QE="_agentAvatar_1rxi5_108",PE="_bubble_1rxi5_112",$E="_bubbleContent_1rxi5_118",e6="_bubbleLeft_1rxi5_132",t6="_leftText_1rxi5_143",n6="_bubbleRight_1rxi5_150",a6="_rightText_1rxi5_160",l6="_sourceInfoReference_1rxi5_192",r6="_sourceInfoReferenceActive_1rxi5_204",Ne={messageContainer:qE,message:IE,messageBot:GE,messageBotLast:VE,avatar:YE,messageBotFirst:XE,messageBotAnimated:KE,messageGuest:FE,messageGuestFirst:JE,messageGuestLast:ZE,botAvatar:WE,agentAvatar:QE,bubble:PE,bubbleContent:$E,bubbleLeft:e6,leftText:t6,bubbleRight:n6,rightText:a6,sourceInfoReference:l6,sourceInfoReferenceActive:r6},im=(n,l)=>{q.useEffect(()=>{const r=s=>{n.current&&!n.current.contains(s.target)&&l()};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[n,l])};function i6(n,l){let r=null,s=null;const c=(...f)=>{s=f,r&&clearTimeout(r),r=setTimeout(()=>{n(...s),r=null,s=null},l)};return c.flush=()=>{r&&s&&(clearTimeout(r),n(...s),r=null,s=null)},c}function s6(n,l){let r=0,s=null;return((...c)=>{const f=Date.now(),d=f-r;d>=l?(r=f,n(...c)):(s&&clearTimeout(s),s=setTimeout(()=>{r=Date.now(),n(...c)},l-d))})}const o6="_container_131ib_1",c6="_categoryContainer_131ib_13",u6="_categoryButton_131ib_20",f6="_active_131ib_35",d6="_commentTextarea_131ib_44",Ds={container:o6,categoryContainer:c6,categoryButton:u6,active:f6,commentTextarea:d6},h6=(n,l,r)=>{q.useEffect(()=>{if(n){const s=()=>{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=s();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])},m6=({open:n,actionsRef:l,reaction:r,onReaction:s})=>{const c=St(),f=q.useRef(null),d=i6(p=>{s({...r,comment:p})},300);q.useEffect(()=>()=>d.flush(),[d]),h6(n,l,f);const m=p=>{s({...r,category:r.category===p?void 0:p})},h=p=>d(p.target.value);return n?v.jsxs("div",{ref:f,className:Ds.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:Ds.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>v.jsx("button",{className:se(Ds.categoryButton,r?.category===p&&Ds.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:Ds.commentTextarea,rows:3,"aria-label":c("bot-bubble.reaction.comment")})]}):null},p6="_botMessageActionContainer_g6hpe_1",g6="_alwaysVisible_g6hpe_15",v6="_active_g6hpe_19",y6="_botMessageActionInnerContainer_g6hpe_27",b6="_header_g6hpe_52",_6="_botMessageActions_g6hpe_57",A6="_reported_g6hpe_68",C6="_action_g6hpe_72",S6="_anyReport_g6hpe_120",E6="_closeButton_g6hpe_136",dn={botMessageActionContainer:p6,alwaysVisible:g6,active:v6,botMessageActionInnerContainer:y6,header:b6,botMessageActions:_6,reported:A6,action:C6,anyReport:S6,closeButton:E6},T6=({isSubmitting:n,onClick:l})=>{const r=St();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"})})})},x6=({alwaysVisible:n,senderType:l,reaction:r,botMessageRef:s,message:c,onReaction:f})=>{const d=St(),[m,h]=q.useState(!1),[p,y]=q.useState(!1),[b,A]=q.useState(!1),S=q.useRef(null),x=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=>{x.current&&clearTimeout(x.current),y(!0),f(H),x.current=setTimeout(()=>{y(!1)},1e3)},O=q.useCallback(async()=>{if(s.current)try{h(!0);const H=s.current.innerHTML,B=s.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(Y=>setTimeout(Y,1500))}finally{h(!1)}},[s]),L=()=>{A(!1),f(r?.type==="GOOD"?null:{type:"GOOD"})},M=()=>{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===Ks.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: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==="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===Ks.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: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==="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:O,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(T6,{isSubmitting:p,onClick:()=>A(!1)})]}),c.reaction&&v.jsx(m6,{open:b,actionsRef:S,reaction:c.reaction,onReaction:E})]})})},jy=q.forwardRef(({message:n,isAnimated:l,isLastMessage:r,isFirstMessageBySender:s,isLastMessageBySender:c,children:f,onReaction:d},m)=>{const h=St(),p=q.useRef(null),y=n.sender.type===xl.BOT;return v.jsxs("li",{ref:m,className:se(Ne.message,Ne.messageBot,r&&Ne.lastMessage,s&&Ne.messageBotFirst,c&&Ne.messageBotLast,"chat__bubbleContainer",l&&Ne.messageBotAnimated,l&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"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(x6,{alwaysVisible:r&&c,senderType:n.sender.type,reaction:n.reaction,message:n,botMessageRef:p,onReaction:d})]})]})}),O6="_sourceList_1sc0q_1",R6="_source_1sc0q_1",w6="_label_1sc0q_39",Xd={sourceList:O6,source:R6,label:w6},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"})}),N6=({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})}},sm=({sources:n,onLinkClick:l})=>{const r=St(),s=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:s(f),onKeyDown:c(f),children:[v.jsx(N6,{type:f.type,"aria-hidden":"true"}),v.jsx("div",{className:Xd.label,children:f.label})]})},f.url))}):null},M6="_button_3ui4g_1",D6="_buttonDefault_3ui4g_13",L6="_buttonPrimary_3ui4g_28",Js={button:M6,buttonDefault:D6,buttonPrimary:L6},yu=({className:n,children:l,...r})=>v.jsx("button",{className:se(Js.button,n),type:"button",role:"button",...r,children:l}),z6="_title_137pi_1",k6="_buttons_137pi_6",B6="_button_137pi_6",j6="_imageContainer_137pi_29",U6="_image_137pi_29",H6="_video_container_137pi_44",q6="_video_137pi_44",I6="_only_137pi_58",ca={title:z6,buttons:k6,button:B6,imageContainer:j6,image:U6,video_container:H6,video:q6,only:I6},G6=({buttons:n,onButtonClick:l})=>v.jsx("div",{className:se(ca.buttons,"chat__bubbleButtons"),children:n.map((r,s)=>v.jsx(yu,{className:se(ca.button,"chat__bubbleButton"),onClick:()=>l(r),children:r.title},s))}),tv="newtab#",Gy=({markdown:n,markdownOptions:l={},onLinkClick:r})=>{const s=f=>d=>(d.preventDefault(),f&&r(f),!1),c=({title:f,href:d,children:m})=>d.indexOf(tv)===0?v.jsx("a",{href:d.slice(tv.length),title:f,target:"_blank",rel:"noopener noreferrer",children:m}):v.jsx("a",{onClick:s(d),title:f,href:d,children:m});return v.jsx(Sl,{options:{...l,overrides:{a:c}},children:n})},V6=({text:n,onLinkClick:l})=>n?v.jsx("div",{children:v.jsx(Gy,{markdown:n,onLinkClick:l})}):null,Y6=({title:n})=>n?v.jsx("h1",{className:ca.title,children:n}):null,X6=({title:n,text:l,buttons:r,onButtonClick:s,onLinkClick:c})=>n?.length||l?.length||r?.length?v.jsxs("div",{className:se(Ne.bubbleContent),children:[v.jsx(Y6,{title:n}),v.jsx(V6,{text:l,onLinkClick:c}),v.jsx(G6,{buttons:r,onButtonClick:s})]}):null,K6=({alt:n,imageUrl:l,itemUrl:r,hasBody:s})=>l?r?r.indexOf("youtube.com")>-1?v.jsx("div",{className:ca.video_container,children:v.jsx("iframe",{className:se(ca.video,{[ca.only]:!s}),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:ca.imageContainer,children:v.jsx("img",{className:se(ca.image,{[ca.only]:!s}),src:l,alt:n})})}):v.jsx("div",{className:ca.imageContainer,children:v.jsx("img",{className:se(ca.image,{[ca.only]:!s}),src:l,alt:n})}):null,F6=({title:n,text:l,imageUrl:r,itemUrl:s,buttons:c,sources:f,onButtonClick:d,onLinkClick:m})=>{const h=!!n?.length||!!l?.length||!!c?.length;return v.jsxs("div",{className:se(ca.detailMessage),children:[v.jsx(K6,{hasBody:h,imageUrl:r,itemUrl:s,alt:n||""}),h&&v.jsx(X6,{title:n,text:l,buttons:c,onLinkClick:m,onButtonClick:d}),v.jsx(sm,{sources:f,onLinkClick:m})]})},J6=q.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:l,children:r},s)=>{const c=St();return v.jsx("li",{ref:s,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})})})}),om=()=>q.useMemo(()=>au(),[]),Z6="_markdown_nw7vg_1",Vy={markdown:Z6},bc="source-info-reference",W6=({actionId:n,markdown:l,sources:r,onLinkClick:s})=>{const c=om(),f=wl(),d=Q6(),m=Dt(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(N1(c,n,y)))},p=y=>()=>{f(N1(c,n,y))};return q.useLayoutEffect(()=>{document.querySelectorAll(`.${bc}`).forEach(y=>{const b=y.previousSibling;b&&b.nodeType===Node.TEXT_NODE&&b.textContent?.endsWith(" ")&&b.textContent?.trim().length&&y.classList.add(`${bc}--before-space`);const A=y.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&y.classList.add(`${bc}--after-space`)})},[l]),v.jsxs("div",{className:Ne.bubbleContent,children:[v.jsx("div",{className:Vy.markdown,children:v.jsx(Gy,{markdown:l,onLinkClick:s,markdownOptions:{renderRule(y,b,A,S){if(b.type===P.footnoteReference){const x=b.text===m;return v.jsx("span",{className:se(Ne.sourceInfoReference,x&&Ne.sourceInfoReferenceActive,bc),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(sm,{sources:r,onLinkClick:s})]})},Q6=()=>{const n=[];return r=>{const s=n.indexOf(r);return s>-1?s+1:(n.push(r),n.length)}},P6="_text_gp0s0_1",$6="_command_gp0s0_5",nv={text:P6,command:$6},eT=({text:n,commands:l=[]})=>{const r=l.find(c=>n.startsWith(`/${c}`)),s=r?n.slice(r.length+1):n;return v.jsxs("div",{children:[r&&v.jsxs("code",{className:nv.command,children:["/",r]}),s.split(`
|
|
60
|
-
`).map((c,f)=>v.jsxs("span",{className:nv.text,children:[c,v.jsx("br",{})]},f))]})},tT=({text:n,commands:l,sources:r,onLinkClick:s})=>v.jsxs("div",{className:Ne.bubbleContent,children:[v.jsx(eT,{text:n,commands:l}),v.jsx(sm,{sources:r,onLinkClick:s})]}),nT=q.forwardRef(({message:n,commands:l,isLastMessage:r,isFirstMessageBySender:s,isLastMessageBySender:c,onReaction:f,onButtonClick:d,onLinkClick:m},h)=>{const p=aT(n._id,n,l,d,m),y=b=>{f(n._id,b)};return n.sender.type===xl.GUEST?v.jsx(J6,{ref:h,isFirstMessageBySender:s,isLastMessageBySender:c,children:p}):v.jsx(jy,{ref:h,message:n,isAnimated:!1,isLastMessage:r,isFirstMessageBySender:s,isLastMessageBySender:c,onReaction:y,children:p})}),aT=(n,l,r,s,c)=>{switch(l.type){case Di.TEXT:{const f=l;return v.jsx(tT,{text:f.text,commands:r,sources:l.sources||[],onLinkClick:c})}case Di.DETAIL:{const f=l;return v.jsx(F6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:l.sources||[],onButtonClick:s,onLinkClick:c})}case Di.MARKDOWN:{const f=l;return v.jsx(W6,{actionId:n,markdown:f.markdown,sources:f.sources||[],onLinkClick:c})}}},lT=(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,rT=Nv.memo(nT,lT),iT="_ticontainer_xg0dn_1",sT="_tiblock_xg0dn_5",oT="_tidot_xg0dn_12",Ls={ticontainer:iT,tiblock:sT,tidot:oT},cT=({isTyping:n=!1})=>v.jsx("div",{className:Ls.ticontainer,children:v.jsx("div",{className:Ls.tiblock,children:n?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:se(Ls.tidot,"chat__typingIndicator"),"aria-hidden":"true"}),v.jsx("div",{className:se(Ls.tidot,"chat__typingIndicator"),"aria-hidden":"true"}),v.jsx("div",{className:se(Ls.tidot,"chat__typingIndicator"),"aria-hidden":"true"})]}):null})}),uT=Object.assign({_id:"typing-indicator"},new nu("",new WA)),fT=({messages:n,isBotTyping:l,commands:r,onTranscriptItemReaction:s,onButtonClick:c,onLinkClick:f})=>{const d=St(),m=q.useRef(0),h=q.useRef(!0),p=q.useRef(null),y=q.useRef(null),b=q.useRef(null),A=Dt(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 x=n.length;return v.jsxs("div",{ref:p,className:se(D1.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer","aria-label":d("conversation.label"),children:[A&&v.jsx(HE,{}),v.jsxs("ul",{className:D1.messages,role:"list",children:[n.map((C,E)=>{const O=dT(C,S),L=hT(C,E,n,l);S=C.sender.type;const M=E+1===x,z=C._id||`added-${E}`;return v.jsx(rT,{ref:M?b:null,message:C,commands:r,isLastMessage:M,isFirstMessageBySender:O,isLastMessageBySender:L,onButtonClick:c,onLinkClick:f,onReaction:s},z)}),l&&v.jsx(jy,{ref:y,message:uT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:S!==xl.BOT,isLastMessageBySender:!0,children:v.jsx(cT,{isTyping:!0})},"last")]})]})},dT=(n,l)=>!l||l!==n.sender.type,hT=(n,l,r,s)=>{const c=n.sender.type,f=r.length;return l+1===f?!(c===xl.BOT&&s):c!==r.at(l+1)?.sender.type},mT="_bottomSheet_jp8dl_1",pT="_bottomSheetOpen_jp8dl_15",gT="_bottomSheetClose_jp8dl_20",El={bottomSheet:mT,bottomSheetOpen:pT,bottomSheetClose:gT},vT="_container_xc2nx_1",av={container:vT},yT=({contentUrl:n})=>{const l=Dt(f=>f.connection.sessionId),[r,s]=q.useState(!1);q.useEffect(()=>{s(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(av.container,El.bottomSheet,{[El.bottomSheetOpen]:!!n,[El.bottomSheetClose]:r&&!n}),children:c&&v.jsx("iframe",{title:"Drawer",id:"form-drawer",src:c,className:av.iframe})})},bT="_container_vvbth_1",_T={container:bT},AT=({title:n,href:l,children:r})=>v.jsx("a",{href:l,title:n,target:"_blank",rel:"noopener noreferrer",children:r}),CT=()=>{const l=St()("powered-by");return l&&l.length?v.jsx("div",{className:se(_T.container,"chat__poweredBy"),children:v.jsx(Sl,{options:{overrides:{a:AT}},children:l})}):null},ST=(n,l)=>{const r=new Map;let s=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,++s),`(${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,`
|
|
61
|
-
|
|
62
|
-
`).trim()},ET=({messages:n,isBotTyping:l})=>{const r=q.useRef(""),s=St(),c=s("bot-bubble.footnote"),f=h=>{switch(h.type){case"TEXT":return h.text||"";case"MARKDOWN":{const p=h.markdown||"";return ST(p,c)}case"DETAIL":return h.text||h.title||"";default:return""}},m=(()=>{if(l)return s("chatbot.typing")??"Chatbot is typing";const h=[...n].reverse().find(p=>p.sender.type===Ks.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(Js.buttonDefault,n),type:"button",...r,children:l}),$c=({className:n,children:l,...r})=>v.jsx(yu,{className:se(Js.buttonPrimary,n),...r,children:l}),TT="_container_h23mk_1",xT="_formContainer_h23mk_17",OT="_emailInput_h23mk_22",RT="_description_h23mk_52",wT="_actions_h23mk_57",NT="_validationError_h23mk_67",MT="_submitted_h23mk_74",Ir={container:TT,formContainer:xT,emailInput:OT,description:RT,actions:wT,validationError:NT,submitted:MT},DT=({visible:n,onEmailExport:l,onClose:r})=>{const s=St(),[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 x=S.target.value.trim(),C=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(x);p(C?x:"")};return v.jsxs("div",{className:se(Ir.container,El.bottomSheet,{[El.bottomSheetOpen]:c===!0,[El.bottomSheetClose]:c===!1}),children:[v.jsx("h2",{children:s("export-transcript.email.title")}),v.jsx(Sl,{className:Ir.description,children:s("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:b,className:Ir.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:d,ref:y,type:"email",placeholder:s("export-transcript.email.placeholder"),className:Ir.emailInput,onChange:A}),h?.length===0?v.jsx("div",{className:Ir.validationError,children:s("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:Ir.actions,children:[v.jsx(Yy,{onClick:r,children:s("export-transcript.email.cancel")}),v.jsx($c,{type:"submit",disabled:d||h===void 0||h.length===0,children:s("export-transcript.email.send")})]})]}),d&&v.jsx("div",{className:Ir.submitted,children:s("export-transcript.email.success")})]})},LT="_inputContainer_fi5ao_1",zT={inputContainer:LT},kT="_blockUserInput_pot9c_1",BT={blockUserInput:kT},jT=({visible:n})=>{const l=St();return n?v.jsx("div",{className:se(BT.blockUserInput,"chat__blockUserInput"),children:l("block-user-input.title")}):null},UT="_commandsDropdown_fmklx_1",HT="_commands_fmklx_1",qT="_command_fmklx_1",IT="_commandActive_fmklx_49",_c={commandsDropdown:UT,commands:HT,command:qT,commandActive:IT},GT=(n,l,r,s,c)=>{q.useEffect(()=>{const f=d=>{if(n.length)switch(d.key){case"Enter":r(n[l]);break;case"ArrowUp":s(m=>m>0?m-1:n.length-1);break;case"ArrowDown":s(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,s,c])},VT=({text:n,commands:l,onSelectCommand:r,onVisibilityChange:s})=>{const c=q.useRef(null),f=St(),[d,m]=q.useState([]),[h,p]=q.useState(lv(l)),[y,b]=q.useState(0),A=S=>r(`/${S}`);return im(c,()=>m([])),GT(d,y,A,b,m),q.useEffect(()=>{p(lv(l))},[l]),q.useEffect(()=>{const S=n.length||0;S===0||S>h||!n.startsWith("/")?m([]):m(l.filter(YT(n))),b(0)},[l,n,h]),q.useEffect(()=>{s(!!d.length)},[d,s]),d.length?v.jsx("div",{ref:c,className:_c.commandsDropdown,children:v.jsx("ul",{id:"command-list",className:_c.commands,role:"listbox",children:d.map((S,x)=>v.jsxs("li",{className:se([_c.command,y===x&&_c.commandActive]),role:"option",onClick:()=>A(S),onMouseOver:()=>b(x),children:[v.jsxs("h1",{children:["/",S]}),v.jsx("p",{children:f(`commands.${S}`)})]},S))})}):null},lv=n=>Math.max(...n.map(l=>l.length+1)),YT=n=>l=>{const r=`/${l}`;return r.startsWith(n)&&r.length>=n.length},XT="_callToActionContainer_d8izj_1",KT="_callToActionTitle_d8izj_23",FT="_rateOverlay_d8izj_30",JT="_body_d8izj_52",ZT="_footer_d8izj_60",WT="_actions_d8izj_75",QT="_bubbles_d8izj_89",PT="_stars_d8izj_191",$T="_starsSmall_d8izj_205",e3="_starsLarge_d8izj_211",t3="_star_d8izj_191",n3="_starReadonly_d8izj_225",a3="_starIcon_d8izj_235",l3="_starsDescriptionContainer_d8izj_253",r3="_starsDescription_d8izj_253",kn={callToActionContainer:XT,callToActionTitle:KT,rateOverlay:FT,body:JT,footer:ZT,actions:WT,bubbles:QT,stars:PT,starsSmall:$T,starsLarge:e3,star:t3,starReadonly:n3,starIcon:a3,starsDescriptionContainer:l3,starsDescription:r3},i3=({value:n,index:l,count:r,readonly:s,onHover:c,onClick:f})=>{const d=m=>{f&&m.key==="Enter"&&f()};return v.jsx("li",{className:se(kn.star,{[kn.starReadonly]:s},"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"})})})})})},rv=5,Xy=({value:n,size:l,readonly:r=!1,onChange:s})=>{const[c,f]=q.useState(void 0),d=()=>{f(void 0)},m=p=>()=>{if(!r){const y=p+1;f(y)}},h=p=>()=>{s&&!r&&(s(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(rv).fill(0).map((p,y)=>v.jsx(i3,{value:c===void 0?n:c,index:y,count:rv,readonly:r,onHover:m(y),onClick:h(y)},y))})},s3=({visible:n,onRate:l})=>{const r=St();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},Kd=({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})})]}),o3=({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})})}),c3=()=>{const n=St(),l=wl(),r=Dt(E=>E.chat.conversationRating),[s,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=s>0?n(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(E?.length?E:void 0)},[s,n]),q.useEffect(()=>{p.submitted?setTimeout(()=>S(!0),p.feedback.length?500:0):S(!1)},[p]);const x=E=>{E.preventDefault();const O=b.current?.value?.trim()||"";l(oC(s,O)),y({submitted:!0,feedback:O})},C=()=>{r.opener==="CLOSE_CHAT"?l(_y()):r.opener==="RESTART_CHAT"?l(Ws()):l(dS())};return v.jsx("div",{className:se(kn.rateOverlay,El.bottomSheet,"chat__conversationRating__overlay",{[El.bottomSheetOpen]:m===!0,[El.bottomSheetClose]:m===!1}),children:v.jsxs("form",{onSubmit:x,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(Kd,{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:s,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(Kd,{isFirstMessageBySender:!1,isLastMessageBySender:!A||!!p.feedback.length,children:v.jsx("div",{children:f})}),!!p.feedback.length&&v.jsx(o3,{children:p.feedback}),A&&v.jsx(Kd,{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:!s,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:!s,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")})]})]})]})})},u3=({numberOfMessagesFromGuest:n})=>{const l=wl(),r=Dt(f=>f.chat.conversationRating),s=f=>{l(Kc("CHAT",f))},c=!r.rating?.value&&n>=1;return r.enabled?v.jsxs(v.Fragment,{children:[v.jsx(s3,{visible:c,onRate:s}),v.jsx(c3,{})]}):null},f3=q.memo(u3),d3="_inputWrapper_18j9q_1",h3="_withOpenCommands_18j9q_13",m3="_actions_18j9q_18",p3="_messageInputWrapper_18j9q_53",g3="_messageInput_18j9q_53",v3="_buttons_18j9q_78",y3="_button_18j9q_78",Gr={inputWrapper:d3,withOpenCommands:h3,actions:m3,messageInputWrapper:p3,messageInput:g3,buttons:v3,button:y3},b3="_audioRecorder_g845f_1",_3="_audioButton_g845f_6",A3="_recorderIcon_g845f_37",C3="_spinning_g845f_60",Vr={audioRecorder:b3,audioButton:_3,recorderIcon:A3,spinning:C3},iv=2048,eu=16e3;class S3 extends Nv.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,s=new r;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(l),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(iv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.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+=iv}}handleClickSubmitAudio(){const l=T3(this.leftchannel,this.recordingLength),r=x3(l,this.sampleRate||0),s=E3(r);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(l=>{l.stop()})}render(){return v.jsxs("div",{className:Vr.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:se(Vr.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:Vr.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:Vr.audioRecorder,children:[v.jsx("button",{className:se(Vr.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:Vr.recorderIcon}),v.jsx("button",{className:se(Vr.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 E3=n=>{const l=new ArrayBuffer(44+n.length*2),r=new DataView(l);Ac(r,0,"RIFF"),r.setUint32(4,44+n.length*2,!0),Ac(r,8,"WAVE"),Ac(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),Ac(r,36,"data"),r.setUint32(40,n.length*2,!0);const s=n.length;let c=44;const f=1;for(let d=0;d<s;d++)r.setInt16(c,n[d]*(32767*f),!0),c+=2;return new Blob([r],{type:"audio/wav"})},Ac=(n,l,r)=>{for(let s=0;s<r.length;s++)n.setUint8(l+s,r.charCodeAt(s))},T3=(n,l)=>{const r=new Float32Array(l);let s=0;const c=n.length;for(let f=0;f<c;f++){const d=n[f];r.set(d,s),s+=d.length}return r},x3=(n,l)=>{if(eu===l)return n;const r=l/eu,s=Math.round(n.length/r),c=new Float32Array(s);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},O3=({onClick:n})=>{const l=St();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:s,onTextInput:c,onTextInputSubmit:f,onAudioRecorded:d})=>{const m=St(),h=q.useRef(null),p=q.useRef(0),{enableSpeechSupport:y}=Dt(O=>O.settings),b=O=>{O.style.height="";const{scrollHeight:L}=O,M=Math.max(p.current,Math.min(L,150));O.style.height=`${M}px`,O.style.overflowY=L>150?"auto":"hidden"};q.useEffect(()=>{const O=h.current;O&&(p.current===0&&(p.current=O.scrollHeight),b(O),O.focus())},[l]);const A=()=>{const O=h.current;O&&l.trim().length>=1&&f(l.trim())&&(O.value="",O.style.height="",O.focus())},S=O=>{O.preventDefault(),A()},x=O=>{const L=O.target.value;c(L),b(O.target)},C=O=>{O.code==="Enter"&&!O.shiftKey?(O.repeat||A(),O.preventDefault()):r&&(O.code==="ArrowUp"||O.code==="ArrowDown")&&O.preventDefault()},E=()=>{l.startsWith("/")?c(""):c("/")};return v.jsxs("form",{className:se(Gr.inputWrapper,r&&Gr.withOpenCommands,"chat__textInput"),onSubmit:S,children:[v.jsxs("div",{className:Gr.messageInputWrapper,children:[v.jsx("textarea",{id:"user_input",ref:h,className:Gr.messageInput,tabIndex:0,placeholder:m("message-input-placeholder"),value:l,onChange:x,onKeyDown:C,"aria-label":m("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0}),s&&v.jsx("div",{className:Gr.actions,children:v.jsx(O3,{onClick:E})})]}),v.jsx("div",{className:se(Gr.buttons,"chat__buttons"),children:l.length||!y||navigator.mediaDevices===void 0?v.jsx("button",{className:se(Gr.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(S3,{translate:m,onAudioRecorded:d})})]})},w3="_quickReplies_83npe_1",N3="_quickReply_83npe_9",sv={quickReplies:w3,quickReply:N3},M3=({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,ov=5e3,D3=1e3,L3=({isBotTyping:n,quickReplies:l,numberOfMessagesFromGuest:r,commands:s,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),x=q.useRef(0);q.useEffect(()=>{if(p&&!n){const O=S.current?Date.now()-S.current:0;O>ov?y(!1):setTimeout(()=>{y(!1)},ov-O)}},[p,n]),q.useEffect(()=>{p&&(S.current=Date.now())},[p]);const C=O=>{const L=Date.now()-x.current<D3;return b?!1:n||L?(y(!0),!1):(c(O),h(""),x.current=Date.now(),!0)},E=O=>{h(O+" ")};return v.jsxs("div",{className:se(zT.inputContainer),children:[v.jsx(M3,{quickReplies:l,onQuickReplyClick:f}),v.jsx(jT,{visible:p}),!p&&v.jsx(f3,{numberOfMessagesFromGuest:r}),!!s?.length&&v.jsx(VT,{text:m,commands:s,onSelectCommand:E,onVisibilityChange:A}),v.jsx(R3,{textInput:m,disabled:p,commandsVisible:b,hasCommands:!!s?.length,onTextInput:h,onTextInputSubmit:C,onAudioRecorded:d})]})},z3=({clientName:n,messages:l,quickReplies:r,isBotTyping:s,drawerContentUrl:c,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:m,onLinkClick:h,onAudioRecorded:p,onTranscriptExport:y,onTranscriptItemReaction:b})=>{const A=wl(),S=Dt(z=>z.connection.connectionState),{enableTranscriptExportEmail:x,commands:C}=Dt(z=>z.settings),{showTranscriptMailOverlay:E,conversationRating:O}=Dt(z=>z.chat),L=l.filter(z=>z.sender.type===Ks.GUEST).length;q.useEffect(()=>{S===Kr.CONNECTED&&A(Cy(n))},[n,S,A]);const M=()=>{A(Ay())};return v.jsxs("div",{className:Vd.container,children:[v.jsx(ET,{messages:l,isBotTyping:s}),v.jsxs("div",{className:se([Vd.chatcontent,(E||O?.opener)&&Vd.accessabilityHidden]),children:[v.jsx(fT,{messages:l,isBotTyping:s,commands:C,onButtonClick:m,onLinkClick:h,onTranscriptItemReaction:b}),v.jsx(L3,{isBotTyping:s,quickReplies:s?[]:r,numberOfMessagesFromGuest:L,commands:C,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:p}),v.jsx(CT,{})]}),x&&v.jsx(DT,{visible:!!E,onEmailExport:y,onClose:M}),v.jsx(yT,{contentUrl:c})]})},k3=n=>{const{messages:l,quickReplies:r,isBotTyping:s,drawerContentUrl:c}=n.chat;return{messages:l,quickReplies:r,isBotTyping:s,drawerContentUrl:c}},B3=n=>({onRestartChat:()=>n(Ws()),onMessageFromUser:l=>n(Kv(l)),onAudioRecorded:l=>n(aC(l)),onActionFromUser:l=>n(l),onQuickReplyClick:l=>n(Xv(l)),onNluEvent:l=>n(Qv(l)),onButtonClick:l=>n(uC(l)),onLinkClick:l=>n(Pv(l)),onTranscriptExport:l=>n(rC(l)),onTranscriptItemReaction:(l,r)=>{n(eC(l,r?.type||null,r?.category,r?.comment))}}),j3=DA(k3,B3)(z3),Ky=()=>q.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),U3=n=>l=>{const r=l.key;(r==="ArrowDown"||r==="ArrowRight"||r==="Enter"||r===" "||r==="Space")&&(l.stopPropagation(),n())},H3=({onClick:n})=>{const l=St();return Ky()?v.jsx("button",{className:"tooltip--bottom-left","aria-label":l("header.close-chat"),"data-title":l("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:U3(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},q3="_header_3gvbz_1",I3="_logoContainer_3gvbz_14",G3="_logo_3gvbz_14",V3="_actions_3gvbz_28",Y3="_active_3gvbz_43",X3="_menuContainer_3gvbz_56",K3="_menu_3gvbz_56",F3="_divider_3gvbz_86",sr={header:q3,logoContainer:I3,logo:G3,actions:V3,active:Y3,menuContainer:X3,menu:K3,divider:F3},J3=({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",{})}},Z3=q.forwardRef(({selected:n,item:l,onClick:r},s)=>{const c=St(),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:s,type:"button",role:"button",tabIndex:-1,onClick:f,children:[v.jsx(J3,{icon:l.icon}),v.jsx("span",{children:c(`header.menu.${l.id}`)})]})})}),W3=(n,l)=>{const r=Ky(),{menuItems:s,enableStandaloneView:c,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=Dt(p=>p.settings),m=Dt(p=>p.chat.conversationRating.enabled);return q.useMemo(()=>{const p=[],y=s.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&&s.length&&p.push({...b,withDivider:!0})}return p.push(...y),p},[n,l,f,d,c,m,r,s])},Q3=({chatStarted:n,hasGuestMessages:l})=>{const r=wl(),s=St(),{enabled:c,opener:f}=Dt(L=>L.chat.conversationRating),[d,m]=q.useState(!1),[h,p]=q.useState(-1),y=q.useRef(null),b=q.useRef(null),A=q.useRef([]),S=W3(n,l);q.useEffect(()=>{A.current[h]?.focus()},[h]);const x=q.useCallback(()=>{r(l&&c&&!f?Kc("RESTART_CHAT"):Ws()),m(!1),p(0)},[l,c,f,r]),C=q.useCallback(L=>{switch(L.type){case"restart-chat":{x();break}case"expand-chat-window":{const M=new URL(window.location.origin);M.pathname=window.location.pathname,M.search=window.location.search,M.hash=window.location.hash,window.open(M.href,"_blank");break}case"download-transcript":{r(iC());break}case"send-transcript":{r(Ay());break}case"rate-conversation":{r(Kc("MENU"));break}case"link":{r(Pv(L.url));break}case"action":{r(JSON.parse(JSON.stringify(L.action)));break}}m(!1)},[r,x,m]);q.useEffect(()=>{const L=M=>{if(d)switch(M.key){case"Enter":M.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",L),()=>{document.removeEventListener("keydown",L)}},[d,h,S,p,m,C]),q.useEffect(()=>{d||p(-1)},[d,h]),im(b,()=>m(!1));const E=()=>{m(L=>!L)},O=()=>{setTimeout(()=>{const L=document.activeElement;b.current&&!b.current.contains(L)&&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":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:E,onBlur:O,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":s("header.menu.title"),children:v.jsx("ul",{tabIndex:0,children:S.map((L,M)=>v.jsx(Z3,{ref:z=>{A.current[M]=z},selected:h===M,item:L,onClick:()=>C(L)},L.id))})})]}):null},cv=({className:n,chatStarted:l,...r})=>{const s=wl(),c=Dt(m=>m.chat.conversationRating),f=Dt(m=>m.chat.messages.some(h=>h.sender.type===xl.GUEST)),d=()=>{c.enabled&&!c.opener&&f?s(Kc("CLOSE_CHAT")):s(_y())};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(H3,{onClick:d})]})]})},P3="_chatwindow_rkbir_1",$3="_chatwindowWithAside_rkbir_21",uv={chatwindow:P3,chatwindowWithAside:$3},Fy=()=>{const[n,l]=q.useState(!1);return q.useEffect(()=>{const r=window.matchMedia("(max-width: 1023px)"),s=()=>l(r.matches);return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),n},e8="_sourceInfos_vei0l_1",t8="_waitForLoading_vei0l_24",n8="_loadingContent_vei0l_28",a8="_sourceHeader_vei0l_37",l8="_sourceHeaderIcon_vei0l_57",r8="_sourceContent_vei0l_61",i8="_openSourceButton_vei0l_69",s8="_sourceButtonLabel_vei0l_79",o8="_closeSourceInfosButton_vei0l_101",c8="_loadingSourceInfos_vei0l_125",u8="_loading_vei0l_28",f8="_loadingError_vei0l_139",d8="_highlightLoadingInfo_vei0l_155",h8="_highlightLoadingInfoInnerContainer_vei0l_169",m8="_highlightLoadingInfoContent_vei0l_178",p8="_highlightLoadingInfoCloseIcon_vei0l_198",g8="_highlightLoader_vei0l_203",v8="_highlightLoaderLoading_vei0l_210",pn={sourceInfos:e8,waitForLoading:t8,loadingContent:n8,sourceHeader:a8,sourceHeaderIcon:l8,sourceContent:r8,openSourceButton:i8,sourceButtonLabel:s8,closeSourceInfosButton:o8,loadingSourceInfos:c8,loading:u8,loadingError:f8,highlightLoadingInfo:d8,highlightLoadingInfoInnerContainer:h8,highlightLoadingInfoContent:m8,highlightLoadingInfoCloseIcon:p8,highlightLoader:g8,highlightLoaderLoading:v8},y8=({onClick:n})=>{const l=St();return v.jsx("button",{className:se(pn.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"})})})},b8=q.forwardRef(({sourceInfos:n,onClose:l,...r},s)=>v.jsxs("div",{className:pn.sourceHeader,...r,ref:s,children:[v.jsx("div",{children:n?v.jsx("p",{id:"source-info-title",children:n.title}):v.jsx("p",{children:" "})}),v.jsx(y8,{onClick:l})]})),_8=({loading:n})=>v.jsx("div",{className:pn.highlightLoader,children:n&&v.jsx("div",{className:pn.highlightLoaderLoading})});const{entries:Jy,setPrototypeOf:fv,isFrozen:A8,getPrototypeOf:C8,getOwnPropertyDescriptor:S8}=Object;let{freeze:In,seal:Ra,create:wc}=Object,{apply:Ah,construct:Ch}=typeof Reflect<"u"&&Reflect;In||(In=function(l){return l});Ra||(Ra=function(l){return l});Ah||(Ah=function(l,r){for(var s=arguments.length,c=new Array(s>2?s-2:0),f=2;f<s;f++)c[f-2]=arguments[f];return l.apply(r,c)});Ch||(Ch=function(l){for(var r=arguments.length,s=new Array(r>1?r-1:0),c=1;c<r;c++)s[c-1]=arguments[c];return new l(...s)});const Cc=Gn(Array.prototype.forEach),E8=Gn(Array.prototype.lastIndexOf),dv=Gn(Array.prototype.pop),zs=Gn(Array.prototype.push),T8=Gn(Array.prototype.splice),Nc=Gn(String.prototype.toLowerCase),Fd=Gn(String.prototype.toString),Jd=Gn(String.prototype.match),ks=Gn(String.prototype.replace),x8=Gn(String.prototype.indexOf),O8=Gn(String.prototype.trim),oa=Gn(Object.prototype.hasOwnProperty),zn=Gn(RegExp.prototype.test),Bs=R8(TypeError);function Gn(n){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),c=1;c<r;c++)s[c-1]=arguments[c];return Ah(n,l,s)}}function R8(n){return function(){for(var l=arguments.length,r=new Array(l),s=0;s<l;s++)r[s]=arguments[s];return Ch(n,r)}}function Ue(n,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nc;fv&&fv(n,null);let s=l.length;for(;s--;){let c=l[s];if(typeof c=="string"){const f=r(c);f!==c&&(A8(l)||(l[s]=f),c=f)}n[c]=!0}return n}function w8(n){for(let l=0;l<n.length;l++)oa(n,l)||(n[l]=null);return n}function Fa(n){const l=wc(null);for(const[r,s]of Jy(n))oa(n,r)&&(Array.isArray(s)?l[r]=w8(s):s&&typeof s=="object"&&s.constructor===Object?l[r]=Fa(s):l[r]=s);return l}function js(n,l){for(;n!==null;){const s=S8(n,l);if(s){if(s.get)return Gn(s.get);if(typeof s.value=="function")return Gn(s.value)}n=C8(n)}function r(){return null}return r}const hv=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"]),N8=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"]),Qd=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"]),M8=In(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mv=In(["#text"]),pv=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"]),Pd=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"]),gv=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"]),Sc=In(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),D8=Ra(/\{\{[\w\W]*|[\w\W]*\}\}/gm),L8=Ra(/<%[\w\W]*|[\w\W]*%>/gm),z8=Ra(/\$\{[\w\W]*/gm),k8=Ra(/^data-[\-\w.\u00B7-\uFFFF]+$/),B8=Ra(/^aria-[\-\w]+$/),Zy=Ra(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j8=Ra(/^(?:\w+script|data):/i),U8=Ra(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wy=Ra(/^html$/i),H8=Ra(/^[a-z][.\w]*(-[.\w]+)+$/i);var vv=Object.freeze({__proto__:null,ARIA_ATTR:B8,ATTR_WHITESPACE:U8,CUSTOM_ELEMENT:H8,DATA_ATTR:k8,DOCTYPE_NAME:Wy,ERB_EXPR:L8,IS_ALLOWED_URI:Zy,IS_SCRIPT_OR_DATA:j8,MUSTACHE_EXPR:D8,TMPLIT_EXPR:z8});const Us={element:1,text:3,progressingInstruction:7,comment:8,document:9},q8=function(){return typeof window>"u"?null:window},I8=function(l,r){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let s=null;const c="data-tt-policy-suffix";r&&r.hasAttribute(c)&&(s=r.getAttribute(c));const f="dompurify"+(s?"#"+s:"");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}},yv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Qy(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q8();const l=me=>Qy(me);if(l.version="3.3.2",l.removed=[],!n||!n.document||n.document.nodeType!==Us.document||!n.Element)return l.isSupported=!1,l;let{document:r}=n;const s=r,c=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:m,Element:h,NodeFilter:p,NamedNodeMap:y=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:b,DOMParser:A,trustedTypes:S}=n,x=h.prototype,C=js(x,"cloneNode"),E=js(x,"remove"),O=js(x,"nextSibling"),L=js(x,"childNodes"),M=js(x,"parentNode");if(typeof d=="function"){const me=r.createElement("template");me.content&&me.content.ownerDocument&&(r=me.content.ownerDocument)}let z,H="";const{implementation:B,createNodeIterator:Y,createDocumentFragment:W,getElementsByTagName:ie}=r,{importNode:ee}=s;let ae=yv();l.isSupported=typeof Jy=="function"&&typeof M=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:oe,ERB_EXPR:pe,TMPLIT_EXPR:ye,DATA_ATTR:fe,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:le}=vv;let{IS_ALLOWED_URI:_e}=vv,T=null;const V=Ue({},[...hv,...Zd,...Wd,...Qd,...mv]);let X=null;const re=Ue({},[...pv,...Pd,...gv,...Sc]);let J=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}})),ue=null,Ce=null;const ce=Object.seal(wc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Re=!0,Ge=!0,rt=!1,he=!0,$=!1,ze=!0,Te=!1,wt=!1,Pe=!1,Ke=!1,Lt=!1,zt=!1,kt=!0,Fe=!1;const qa="user-content-";let dt=!0,Nn=!1,En={},Gt=null;const Qt=Ue({},["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 Pa=null;const gn=Ue({},["audio","video","img","source","image","track"]);let Tn=null;const Qn=Ue({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml";let At=Ve,Mn=!1,gt=null;const pr=Ue({},[Bt,nt,Ve],Fd);let Pn=Ue({},["mi","mo","mn","ms","mtext"]),on=Ue({},["annotation-xml"]);const Kt=Ue({},["title","style","font","a","script"]);let Nt=null;const ma=["application/xhtml+xml","text/html"],$a="text/html";let jt=null,wa=null;const gr=r.createElement("form"),Ia=function(w){return w instanceof RegExp||w instanceof Function},Nl=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(wa&&wa===w)){if((!w||typeof w!="object")&&(w={}),w=Fa(w),Nt=ma.indexOf(w.PARSER_MEDIA_TYPE)===-1?$a:w.PARSER_MEDIA_TYPE,jt=Nt==="application/xhtml+xml"?Fd:Nc,T=oa(w,"ALLOWED_TAGS")?Ue({},w.ALLOWED_TAGS,jt):V,X=oa(w,"ALLOWED_ATTR")?Ue({},w.ALLOWED_ATTR,jt):re,gt=oa(w,"ALLOWED_NAMESPACES")?Ue({},w.ALLOWED_NAMESPACES,Fd):pr,Tn=oa(w,"ADD_URI_SAFE_ATTR")?Ue(Fa(Qn),w.ADD_URI_SAFE_ATTR,jt):Qn,Pa=oa(w,"ADD_DATA_URI_TAGS")?Ue(Fa(gn),w.ADD_DATA_URI_TAGS,jt):gn,Gt=oa(w,"FORBID_CONTENTS")?Ue({},w.FORBID_CONTENTS,jt):Qt,ue=oa(w,"FORBID_TAGS")?Ue({},w.FORBID_TAGS,jt):Fa({}),Ce=oa(w,"FORBID_ATTR")?Ue({},w.FORBID_ATTR,jt):Fa({}),En=oa(w,"USE_PROFILES")?w.USE_PROFILES:!1,Re=w.ALLOW_ARIA_ATTR!==!1,Ge=w.ALLOW_DATA_ATTR!==!1,rt=w.ALLOW_UNKNOWN_PROTOCOLS||!1,he=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$=w.SAFE_FOR_TEMPLATES||!1,ze=w.SAFE_FOR_XML!==!1,Te=w.WHOLE_DOCUMENT||!1,Ke=w.RETURN_DOM||!1,Lt=w.RETURN_DOM_FRAGMENT||!1,zt=w.RETURN_TRUSTED_TYPE||!1,Pe=w.FORCE_BODY||!1,kt=w.SANITIZE_DOM!==!1,Fe=w.SANITIZE_NAMED_PROPS||!1,dt=w.KEEP_CONTENT!==!1,Nn=w.IN_PLACE||!1,_e=w.ALLOWED_URI_REGEXP||Zy,At=w.NAMESPACE||Ve,Pn=w.MATHML_TEXT_INTEGRATION_POINTS||Pn,on=w.HTML_INTEGRATION_POINTS||on,J=w.CUSTOM_ELEMENT_HANDLING||{},w.CUSTOM_ELEMENT_HANDLING&&Ia(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(J.tagNameCheck=w.CUSTOM_ELEMENT_HANDLING.tagNameCheck),w.CUSTOM_ELEMENT_HANDLING&&Ia(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(J.attributeNameCheck=w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$&&(Ge=!1),Lt&&(Ke=!0),En&&(T=Ue({},mv),X=wc(null),En.html===!0&&(Ue(T,hv),Ue(X,pv)),En.svg===!0&&(Ue(T,Zd),Ue(X,Pd),Ue(X,Sc)),En.svgFilters===!0&&(Ue(T,Wd),Ue(X,Pd),Ue(X,Sc)),En.mathMl===!0&&(Ue(T,Qd),Ue(X,gv),Ue(X,Sc))),oa(w,"ADD_TAGS")||(ce.tagCheck=null),oa(w,"ADD_ATTR")||(ce.attributeCheck=null),w.ADD_TAGS&&(typeof w.ADD_TAGS=="function"?ce.tagCheck=w.ADD_TAGS:(T===V&&(T=Fa(T)),Ue(T,w.ADD_TAGS,jt))),w.ADD_ATTR&&(typeof w.ADD_ATTR=="function"?ce.attributeCheck=w.ADD_ATTR:(X===re&&(X=Fa(X)),Ue(X,w.ADD_ATTR,jt))),w.ADD_URI_SAFE_ATTR&&Ue(Tn,w.ADD_URI_SAFE_ATTR,jt),w.FORBID_CONTENTS&&(Gt===Qt&&(Gt=Fa(Gt)),Ue(Gt,w.FORBID_CONTENTS,jt)),w.ADD_FORBID_CONTENTS&&(Gt===Qt&&(Gt=Fa(Gt)),Ue(Gt,w.ADD_FORBID_CONTENTS,jt)),dt&&(T["#text"]=!0),Te&&Ue(T,["html","head","body"]),T.table&&(Ue(T,["tbody"]),delete ue.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');z=w.TRUSTED_TYPES_POLICY,H=z.createHTML("")}else z===void 0&&(z=I8(S,c)),z!==null&&typeof H=="string"&&(H=z.createHTML(""));In&&In(w),wa=w}},vr=Ue({},[...Zd,...Wd,...N8]),Ml=Ue({},[...Qd,...M8]),Dl=function(w){let te=M(w);(!te||!te.tagName)&&(te={namespaceURI:At,tagName:"template"});const ve=Nc(w.tagName),Je=Nc(te.tagName);return gt[w.namespaceURI]?w.namespaceURI===nt?te.namespaceURI===Ve?ve==="svg":te.namespaceURI===Bt?ve==="svg"&&(Je==="annotation-xml"||Pn[Je]):!!vr[ve]:w.namespaceURI===Bt?te.namespaceURI===Ve?ve==="math":te.namespaceURI===nt?ve==="math"&&on[Je]:!!Ml[ve]:w.namespaceURI===Ve?te.namespaceURI===nt&&!on[Je]||te.namespaceURI===Bt&&!Pn[Je]?!1:!Ml[ve]&&(Kt[ve]||!vr[ve]):!!(Nt==="application/xhtml+xml"&>[w.namespaceURI]):!1},xn=function(w){zs(l.removed,{element:w});try{M(w).removeChild(w)}catch{E(w)}},$n=function(w,te){try{zs(l.removed,{attribute:te.getAttributeNode(w),from:te})}catch{zs(l.removed,{attribute:null,from:te})}if(te.removeAttribute(w),w==="is")if(Ke||Lt)try{xn(te)}catch{}else try{te.setAttribute(w,"")}catch{}},yr=function(w){let te=null,ve=null;if(Pe)w="<remove></remove>"+w;else{const Oe=Jd(w,/^[\r\n\t ]+/);ve=Oe&&Oe[0]}Nt==="application/xhtml+xml"&&At===Ve&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const Je=z?z.createHTML(w):w;if(At===Ve)try{te=new A().parseFromString(Je,Nt)}catch{}if(!te||!te.documentElement){te=B.createDocument(At,"template",null);try{te.documentElement.innerHTML=Mn?H:Je}catch{}}const ut=te.body||te.documentElement;return w&&ve&&ut.insertBefore(r.createTextNode(ve),ut.childNodes[0]||null),At===Ve?ie.call(te,Te?"html":"body")[0]:Te?te.documentElement:ut},cn=function(w){return Y.call(w.ownerDocument||w,w,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Dn=function(w){return w instanceof b&&(typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||!(w.attributes instanceof y)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function")},Et=function(w){return typeof m=="function"&&w instanceof m};function vt(me,w,te){Cc(me,ve=>{ve.call(l,w,te,wa)})}const Vn=function(w){let te=null;if(vt(ae.beforeSanitizeElements,w,null),Dn(w))return xn(w),!0;const ve=jt(w.nodeName);if(vt(ae.uponSanitizeElement,w,{tagName:ve,allowedTags:T}),ze&&w.hasChildNodes()&&!Et(w.firstElementChild)&&zn(/<[/\w!]/g,w.innerHTML)&&zn(/<[/\w!]/g,w.textContent)||w.nodeType===Us.progressingInstruction||ze&&w.nodeType===Us.comment&&zn(/<[/\w]/g,w.data))return xn(w),!0;if(!(ce.tagCheck instanceof Function&&ce.tagCheck(ve))&&(!T[ve]||ue[ve])){if(!ue[ve]&&br(ve)&&(J.tagNameCheck instanceof RegExp&&zn(J.tagNameCheck,ve)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ve)))return!1;if(dt&&!Gt[ve]){const Je=M(w)||w.parentNode,ut=L(w)||w.childNodes;if(ut&&Je){const Oe=ut.length;for(let un=Oe-1;un>=0;--un){const vn=C(ut[un],!0);vn.__removalCount=(w.__removalCount||0)+1,Je.insertBefore(vn,O(w))}}}return xn(w),!0}return w instanceof h&&!Dl(w)||(ve==="noscript"||ve==="noembed"||ve==="noframes")&&zn(/<\/no(script|embed|frames)/i,w.innerHTML)?(xn(w),!0):($&&w.nodeType===Us.text&&(te=w.textContent,Cc([oe,pe,ye],Je=>{te=ks(te,Je," ")}),w.textContent!==te&&(zs(l.removed,{element:w.cloneNode()}),w.textContent=te)),vt(ae.afterSanitizeElements,w,null),!1)},Ll=function(w,te,ve){if(Ce[te]||kt&&(te==="id"||te==="name")&&(ve in r||ve in gr))return!1;if(!(Ge&&!Ce[te]&&zn(fe,te))){if(!(Re&&zn(N,te))){if(!(ce.attributeCheck instanceof Function&&ce.attributeCheck(te,w))){if(!X[te]||Ce[te]){if(!(br(w)&&(J.tagNameCheck instanceof RegExp&&zn(J.tagNameCheck,w)||J.tagNameCheck instanceof Function&&J.tagNameCheck(w))&&(J.attributeNameCheck instanceof RegExp&&zn(J.attributeNameCheck,te)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(te,w))||te==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&zn(J.tagNameCheck,ve)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ve))))return!1}else if(!Tn[te]){if(!zn(_e,ks(ve,ne,""))){if(!((te==="src"||te==="xlink:href"||te==="href")&&w!=="script"&&x8(ve,"data:")===0&&Pa[w])){if(!(rt&&!zn(F,ks(ve,ne,"")))){if(ve)return!1}}}}}}}return!0},br=function(w){return w!=="annotation-xml"&&Jd(w,le)},zl=function(w){vt(ae.beforeSanitizeAttributes,w,null);const{attributes:te}=w;if(!te||Dn(w))return;const ve={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let Je=te.length;for(;Je--;){const ut=te[Je],{name:Oe,namespaceURI:un,value:vn}=ut,Pt=jt(Oe),pa=vn;let Ft=Oe==="value"?pa:O8(pa);if(ve.attrName=Pt,ve.attrValue=Ft,ve.keepAttr=!0,ve.forceKeepAttr=void 0,vt(ae.uponSanitizeAttribute,w,ve),Ft=ve.attrValue,Fe&&(Pt==="id"||Pt==="name")&&($n(Oe,w),Ft=qa+Ft),ze&&zn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ft)){$n(Oe,w);continue}if(Pt==="attributename"&&Jd(Ft,"href")){$n(Oe,w);continue}if(ve.forceKeepAttr)continue;if(!ve.keepAttr){$n(Oe,w);continue}if(!he&&zn(/\/>/i,Ft)){$n(Oe,w);continue}$&&Cc([oe,pe,ye],Cr=>{Ft=ks(Ft,Cr," ")});const Ar=jt(w.nodeName);if(!Ll(Ar,Pt,Ft)){$n(Oe,w);continue}if(z&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!un)switch(S.getAttributeType(Ar,Pt)){case"TrustedHTML":{Ft=z.createHTML(Ft);break}case"TrustedScriptURL":{Ft=z.createScriptURL(Ft);break}}if(Ft!==pa)try{un?w.setAttributeNS(un,Oe,Ft):w.setAttribute(Oe,Ft),Dn(w)?xn(w):dv(l.removed)}catch{$n(Oe,w)}}vt(ae.afterSanitizeAttributes,w,null)},_r=function me(w){let te=null;const ve=cn(w);for(vt(ae.beforeSanitizeShadowDOM,w,null);te=ve.nextNode();)vt(ae.uponSanitizeShadowNode,te,null),Vn(te),zl(te),te.content instanceof f&&me(te.content);vt(ae.afterSanitizeShadowDOM,w,null)};return l.sanitize=function(me){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=null,ve=null,Je=null,ut=null;if(Mn=!me,Mn&&(me="<!-->"),typeof me!="string"&&!Et(me))if(typeof me.toString=="function"){if(me=me.toString(),typeof me!="string")throw Bs("dirty is not a string, aborting")}else throw Bs("toString is not a function");if(!l.isSupported)return me;if(wt||Nl(w),l.removed=[],typeof me=="string"&&(Nn=!1),Nn){if(me.nodeName){const vn=jt(me.nodeName);if(!T[vn]||ue[vn])throw Bs("root node is forbidden and cannot be sanitized in-place")}}else if(me instanceof m)te=yr("<!---->"),ve=te.ownerDocument.importNode(me,!0),ve.nodeType===Us.element&&ve.nodeName==="BODY"||ve.nodeName==="HTML"?te=ve:te.appendChild(ve);else{if(!Ke&&!$&&!Te&&me.indexOf("<")===-1)return z&&zt?z.createHTML(me):me;if(te=yr(me),!te)return Ke?null:zt?H:""}te&&Pe&&xn(te.firstChild);const Oe=cn(Nn?me:te);for(;Je=Oe.nextNode();)Vn(Je),zl(Je),Je.content instanceof f&&_r(Je.content);if(Nn)return me;if(Ke){if(Lt)for(ut=W.call(te.ownerDocument);te.firstChild;)ut.appendChild(te.firstChild);else ut=te;return(X.shadowroot||X.shadowrootmode)&&(ut=ee.call(s,ut,!0)),ut}let un=Te?te.outerHTML:te.innerHTML;return Te&&T["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&zn(Wy,te.ownerDocument.doctype.name)&&(un="<!DOCTYPE "+te.ownerDocument.doctype.name+`>
|
|
63
|
-
`+un),$&&Cc([oe,pe,ye],vn=>{un=ks(un,vn," ")}),z&&zt?z.createHTML(un):un},l.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nl(me),wt=!0},l.clearConfig=function(){wa=null,wt=!1},l.isValidAttribute=function(me,w,te){wa||Nl({});const ve=jt(me),Je=jt(w);return Ll(ve,Je,te)},l.addHook=function(me,w){typeof w=="function"&&zs(ae[me],w)},l.removeHook=function(me,w){if(w!==void 0){const te=E8(ae[me],w);return te===-1?void 0:T8(ae[me],te,1)[0]}return dv(ae[me])},l.removeHooks=function(me){ae[me]=[]},l.removeAllHooks=function(){ae=yv()},l}var G8=Qy();const V8=({onClose:n})=>{const l=St();return v.jsxs("div",{className:pn.highlightLoadingInfo,onClick:n,children:[v.jsx("div",{className:pn.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:pn.highlightLoadingInfoInnerContainer,children:[v.jsxs("div",{className:pn.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"})})]})]})},Y8=({title:n,href:l,children:r})=>v.jsx("a",{href:l,title:n,target:"_blank",rel:"noopener noreferrer",children:r}),X8=({className:n,children:l,...r})=>v.jsx("a",{className:se(Js.button,Js.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"})}),F8=({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})}},J8=({url:n,knowledgeBaseType:l})=>{const r=St();return v.jsx(X8,{className:pn.openSourceButton,href:n,target:"_blank",children:v.jsxs("div",{className:pn.sourceButtonLabel,children:[v.jsx("div",{className:pn.sourceHeaderIcon,children:v.jsx(F8,{type:l})}),v.jsx("p",{children:r("source-infos.open-source")})]})})},Z8=({sourceInfos:{content:n,url:l,knowledgeBaseType:r,highlighted:s}})=>{const[c,f]=q.useState(!s);q.useEffect(()=>{s&&f(!1)},[s]);const d=G8.sanitize(n,{USE_PROFILES:{html:!0}});return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:se(pn.sourceContent,Vy.markdown),children:[v.jsx(Sl,{options:{overrides:{a:Y8}},children:d}),c&&v.jsx(V8,{onClose:()=>f(!1)})]}),v.jsx(J8,{url:l,knowledgeBaseType:r})]})},W8=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,Q8=()=>{const n=St();return v.jsxs("div",{className:pn.loadingError,children:[v.jsx("h1",{children:n("source-infos.error.title")}),v.jsx("img",{src:W8,title:n("source-infos.error.title")}),v.jsx("p",{children:n("source-infos.error.info")})]})},P8=()=>v.jsx("div",{className:pn.loadingSourceInfos,children:v.jsx("svg",{className:pn.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 $8({sourceInfos:n,onClose:l,threshold:r=100}){const s=q.useRef(null),[c,f]=q.useState(0),[d,m]=q.useState(!1),h=q.useRef(null),p=q.useRef(null),y=q.useCallback(x=>{h.current=x,m(!0)},[]),b=q.useCallback(x=>{if(h.current!==null&&d){const C=x-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(x=>{const C=H=>y(H.touches[0].clientY),E=H=>b(H.touches[0].clientY),O=()=>A(),L=H=>{H.preventDefault(),y(H.clientY),window.addEventListener("mousemove",M),window.addEventListener("mouseup",z)},M=H=>b(H.clientY),z=()=>{A(),window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",z)};x.addEventListener("touchstart",C),x.addEventListener("touchmove",E),x.addEventListener("touchend",O),x.addEventListener("mousedown",L),p.current=()=>{x.removeEventListener("touchstart",C),x.removeEventListener("touchmove",E),x.removeEventListener("touchend",O),x.removeEventListener("mousedown",L),window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",z)}},[y,b,A]);return q.useEffect(()=>{let x;return s.current?(p.current?.(),S(s.current)):(x=new MutationObserver(()=>{s.current&&(p.current?.(),S(s.current),x?.disconnect())}),x.observe(document.body,{childList:!0,subtree:!0})),()=>{x?.disconnect(),p.current?.()}},[S,n]),{ref:s,dragOffsetY:c,isDragging:d}}const ex=n=>{const[l,r]=q.useState(!0);return q.useEffect(()=>{let s=null;return n?.type==="loading"?(r(!0),s=setTimeout(()=>{r(!1)},300)):r(!n),()=>{s&&clearTimeout(s)}},[n]),l},tx=()=>{const n=wl(),l=Dt(h=>h.chat.sourceInfos),r=Fy(),s=q.useRef(null),c=ex(l);q.useEffect(()=>{s.current&&l?.type==="loading"&&(r?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[l,r]);const f=q.useCallback(()=>{s.current&&(r?s.current.close():s.current.removeAttribute("open"),n(hS()))},[n,r]),{ref:d,dragOffsetY:m}=$8({onClose:f,sourceInfos:l});return l?v.jsx("dialog",{ref:s,className:se(pn.sourceInfos,c?pn.waitForLoading:l.type==="loading"?pn.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(b8,{ref:d,tabIndex:-1,sourceInfos:l.type==="loaded"?l:void 0,onClose:f}),l.type==="loading"?v.jsx(P8,{}):l.type==="loading-error"?v.jsx(Q8,{}):v.jsxs(v.Fragment,{children:[v.jsx(_8,{loading:!l.highlighted}),v.jsx(Z8,{sourceInfos:l})]})]})}):null},nx="_container_1hnv6_1",ax="_body_1hnv6_7",lx="_intro_1hnv6_14",rx="_footer_1hnv6_48",ix="_footnote_1hnv6_52",sx="_containerWithFootnote_1hnv6_67",ox="_startChatButton_1hnv6_82",cx="_spinner_1hnv6_97",ux="_formFields_1hnv6_101",fx="_formField_1hnv6_101",dx="_radio_1hnv6_113",hx="_checkbox_1hnv6_120",mx="_input_1hnv6_128",px="_inputLabel_1hnv6_162",gx="_selectWrapper_1hnv6_166",vx="_select_1hnv6_166",yx="_selectLabel_1hnv6_212",mn={container:nx,body:ax,intro:lx,footer:rx,footnote:ix,containerWithFootnote:sx,startChatButton:ox,spinner:cx,formFields:ux,formField:fx,radio:dx,checkbox:hx,input:mx,inputLabel:px,selectWrapper:gx,select:vx,selectLabel:yx},bx=({name:n,label:l,defaultValue:r,required:s,onChange:c})=>{const f=d=>{c(d.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:se(mn.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[v.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:r==="true",required:s,onChange:f}),v.jsx("div",{children:l})]})},_x=({type:n,name:l,label:r,defaultValue:s,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(mn.input,"chat__startScreen__input"),htmlFor:l,children:[v.jsx("div",{className:se(mn.inputLabel),children:r}),v.jsx("input",{type:n,id:l,name:l,defaultValue:s,placeholder:c,required:f,multiple:d,min:m,max:h,pattern:p,onChange:b})]})},Ax=({name:n,value:l,label:r,defaultChecked:s,required:c,onChange:f})=>{const d=`${n}-${l}`,m=h=>{f(h.target.value)};return v.jsxs("label",{className:se(mn.radio,"chat__startScreen__radio"),htmlFor:d,children:[v.jsx("input",{id:d,type:"radio",name:n,value:l,defaultChecked:s,required:c,onChange:m}),v.jsx("span",{className:se(mn.label),children:r})]})},Cx=({name:n,label:l,defaultValue:r,required:s,multiple:c,options:f,onChange:d})=>{const m=h=>{d(h.target.value)};return v.jsxs("label",{className:se(mn.select,"chat__startScreen__select"),htmlFor:n,children:[v.jsx("div",{className:se(mn.selectLabel),children:l}),v.jsx("div",{className:se(mn.selectWrapper),children:v.jsx("select",{id:n,name:n,defaultValue:r,required:s,multiple:c,onChange:m,children:Object.entries(f||{}).map(([h,p])=>v.jsx("option",{value:h,selected:p===r,children:p}))})})]})},Sx="start-screen.intro",Ex="start-screen.start-chat",Tx="start-screen.waiting-for-login",xx="start-screen.footnote",ka="start-screen.form",bv=`${ka}.fields`,Ox=()=>{const n=St(),l=wl(),r=om(),s=Dt(x=>x.startScreen.loginRequestToken),c=Dt(x=>x.settings.requiresUserAuthentication);q.useEffect(()=>{let x;if(s){const O=window.screenX+(window.outerWidth-600)/2,L=window.screenY+(window.outerHeight-700)/2,M=encodeURIComponent(r),z=new URL(window.location.origin);z.pathname=`/${M}/auth/login`,z.searchParams.set("loginRequestToken",s);const H=window.open(z.href,"Login",`width=600,height=700,left=${O},top=${L},resizable=yes,scrollbars=yes`);x=setInterval(()=>{H?.closed&&(l(cS()),clearInterval(x))},500)}return()=>{x&&clearInterval(x)}},[r,s,l]);const[f,d]=q.useState({}),m=()=>{const x=Object.entries(f).reduce((C,[E,O])=>({...C,[E]:O.value}),{});l(c?oS({loginRequestToken:jc(),formValues:x}):rS({formValues:x}))},h=n(Sx),p=n(s?Tx:Ex),y=n(xx),b=q.useMemo(()=>n(bv)?.split(";").map(x=>x.trim())??[],[n(bv)]);q.useEffect(()=>{b.length&&Object.keys(f).length===0&&d(b.reduce((x,C)=>({...x,[C]:Rx(C,n)}),{}))},[n,b,f]);const A=x=>{x.preventDefault(),m()},S=x=>C=>{d(E=>({...E,[x]:{...E[x],value:C}}))};return v.jsxs("form",{onSubmit:A,className:se(mn.container,y&&mn.containerWithFootnote,"chat__startScreen"),children:[v.jsxs("div",{className:se(mn.body,"chat__startScreen__body"),children:[h&&v.jsx("div",{className:se(mn.intro,"chat__startScreen__intro"),children:v.jsx(Sl,{options:{overrides:{a:_v}},children:h})}),v.jsx("div",{className:se(mn.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:x,name:C,label:E,placeholder:O,defaultValue:L,options:M,required:z,multiple:H,min:B,max:Y,pattern:W})=>v.jsx("div",{className:se(mn.formField,"chat__startScreen__field"),children:(()=>{switch(x){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:E}),Object.entries(M||{}).map(([ie,ee])=>v.jsx(Ax,{name:C,value:ie,label:ee,defaultChecked:ie===L,required:z,onChange:S(C)},ie))]});case"checkbox":return v.jsx(bx,{name:C,label:E,defaultValue:L,required:z,onChange:S(C)});case"select":return v.jsx(Cx,{name:C,label:E,defaultValue:L,required:z,multiple:H,options:M,onChange:S(C)});default:return v.jsx(_x,{type:x,name:C,label:E,placeholder:O,defaultValue:L,required:z,multiple:H,min:B,max:Y,pattern:W,onChange:S(C)})}})()},C))})]}),v.jsxs("div",{className:se(mn.footer,"chat__startScreen__footer"),children:[v.jsxs($c,{type:"submit",className:mn.startChatButton,disabled:!!s,children:[!!s&&v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:mn.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:mn.footnote,children:v.jsx(Sl,{options:{overrides:{a:_v}},children:y})})]})]})},_v=({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(`${ka}.${n}.type`)||"text",s=l(`${ka}.${n}.required`)==="true",c=l(`${ka}.${n}.multiple`)==="true",f=l(`${ka}.${n}.placeholder`),d=l(`${ka}.${n}.label`)||"",m=l(`${ka}.${n}.defaultValue`),h=l(`${ka}.${n}.min`),p=l(`${ka}.${n}.max`),y=l(`${ka}.${n}.pattern`),b=Nx(l(`${ka}.${n}.options`));return{name:n,label:d,placeholder:f,value:wx(r,m,b)||"",defaultValue:m,options:b,type:r,required:s,multiple:c,min:h,max:p,pattern:y}},wx=(n,l,r)=>l||n==="select"&&Object.keys(r)[0]||"",Nx=(n="")=>n.split(";").map(l=>l.trim()).reduce((l,r)=>{const[s,c]=r.split(":").map(f=>f.trim());return{...l,[s]:c}},{}),Mx=()=>{const n=Dt(l=>l.intl.locale);q.useEffect(()=>{window.document.documentElement.lang=n},[n])},Yr={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"},Dx=({clientName:n})=>{Mx();const l=wl(),r=Dt(b=>b.intl.messages),s=St(),c=Dt(b=>b.settings.enableStartScreen),f=Dt(b=>b.startScreen.startScreenStatus),d=Dt(b=>b.connection.queryString),m=Dt(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(Yr).includes(A.data.type))return;const S=A.origin===window.location.origin,x=A.source===window.parent,C=m===void 0||m.includes(A.origin);if(!(S||x&&C)){console.warn("Rejected postMessage from untrusted origin:",A.origin);return}switch(A.data.type){case Yr.TRIGGER_ACTION:l(A.data.action);break;case Yr.TRIGGER_STORY:l(Qv(A.data.story));break;case Yr.ON_CHAT_WINDOW_OPEN:l({type:"webclient.chatwindow.opened"});break;case Yr.ON_CHAT_WINDOW_CLOSE:l({type:"webclient.chatwindow.closed"});break;case Yr.CHAT_MESSAGE_FROM_GUEST:l(Kv(A.data.text));break;case Yr.RESTART_CHAT:l(Ws());break}};return window.addEventListener("message",b,!1),()=>window.removeEventListener("message",b)},[m,l]),q.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[r,s]);const p=c===void 0,y=c===!1||f==="HIDDEN";return v.jsx("div",{className:se(uv.chatwindow,y&&uv.chatwindowWithAside,"chat__chatwindow",h),children:p?null:y?v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(cv,{chatStarted:!0})}),v.jsx("main",{children:v.jsx(j3,{clientName:n})}),v.jsx("aside",{children:v.jsx(tx,{})})]}):v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(cv,{chatStarted:!1})}),v.jsx("main",{children:v.jsx(Ox,{})})]})})},Lx=()=>{const n=om(),l=Fy();return v.jsx("div",{className:se([GA.app,l?"chat__small":"chat__large"]),children:v.jsx(Dx,{clientName:n})})},Py={"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:
|
|
64
|
-
|
|
65
|
-
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
66
|
-
- 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"},zx={"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:
|
|
67
|
-
|
|
68
|
-
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
69
|
-
- 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 s={};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(s,$y(f,d,r)):s[d]=String(f)}return s}const kx={"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:
|
|
70
|
-
|
|
71
|
-
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
72
|
-
- 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"},Bx={"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:
|
|
73
|
-
|
|
74
|
-
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
75
|
-
- 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"},jx=["de","en","fr","it"],eb={locale:"de",messages:Py},Ux=(n,l)=>{if(jx.includes(n)){const r=Hx(n),s=$y(l);return{...r,...s}}return l},Hx=n=>{switch(n.toString()){case"en":return zx;case"fr":return kx;case"it":return Bx;default:return Py}},qx=(n=Ix,l)=>{switch(l.type){case Wh:return Object.assign({},n,{connectionState:Kr.CONNECTING});case Qh:return Object.assign({},n,{connectionState:Kr.CONNECTED});case Ph:return Object.assign({},n,{connectionState:Kr.DISCONNECTED});case $h:return Object.assign({},n,{connectionState:Kr.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}},Ix={connectionState:Kr.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},Gx=(n=Cv,l)=>{switch(l.type){case gy:return Cv;case fu:return Xr({type:"webclient.chat.started"}),n;case du:return Xr({type:"webclient.chat.ended"}),n;case Uv:return Object.assign({},n,{isBotTyping:!0});case Hv:return Object.assign({},n,{isBotTyping:!1});case Lh:case qv:return Av(n,l.message);case Iv:{Xr(l);const r=Object.assign({},l.message,{_id:l.meta.actionId}),s=n.messages.filter(c=>c._id===l.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([r]),quickReplies:r.quickReplies?r.quickReplies:[]})}case jh:{const r=l.messages,s=r.length?r[r.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:r,quickReplies:s?.quickReplies||[]})}case Bh:return Xr(l.message),n;case Gv:return Xr(l.event),n;case KA:return Object.assign({},n,{drawerContentUrl:l.payload.parameters.contentUrl});case FA:return Object.assign({},n,{drawerContentUrl:void 0});case JA:return Object.assign({},n,{locale:l.payload.locale});case Jv:return Xr(l),n;case Zv:return Xr(l),{...n,conversationRating:{...n.conversationRating,opener:void 0}};case Hh:{const r=new nu(l.transcription,new kh),s=Object.assign({},r,{_id:jc()});return Av(n,s)}case Vv:{const r=n.messages.map(s=>s._id===l.payload.actionId?Object.assign({},s,l.payload.reaction?{reaction:{type:l.payload.reaction,category:l.payload.category,comment:l.payload.comment}}:{reaction:void 0}):s);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 yy:{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 by:{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 Fv:{const r=n.sourceInfos?.type,{chunkId:s,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!==s?n:r==="loading"||r==="loaded"&&m?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:c,title:f,content:d,highlighted:m,url:h}}:n}case Vh:return{...n,sourceInfos:void 0};case vy:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay,conversationRating:{...n.conversationRating,opener:void 0}};default:return n}},Av=(n,l)=>{const r=n.messages[n.messages.length-1],s=r?.text===l.text;return r&&r.sender.type===l.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([l]),quickReplies:[]})},Xr=n=>{if(Yx()){const l=Vx();window.top?.postMessage(n,l)}else n.type==="webclient.change.url"&&window.open(n.url)},Vx=()=>{try{return document.referrer?new URL(document.referrer).origin:"*"}catch{return"*"}},Yx=()=>typeof window<"u"&&window.self!==window.top,Cv={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:Xx}=tb.actions,Kx=tb.reducer,Fx={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:Fx,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:Jx}=nb.actions,Zx=nb.reducer,Wx=ty({settings:Zx,chat:Gx,startScreen:uS,connection:qx,intl:Kx}),Qx="bubble-chat",ab="state-last-saved-at",lb="state",Px=n=>{try{if(!t4())return;const l=Sv(n,ab);if(e4(l))return;{const r=Sv(n,lb);if(r===null)return;const s=JSON.parse(r),c=s.connection?.queryString;if(c!==void 0&&!n4(c,window.location.search)){console.log("Ignoring persisted state due to different query string");return}else return s}}catch(l){console.error(l);return}},$x=(n,l)=>{try{const r=JSON.stringify(l);Ev(n,lb,r);const s=new Date().toISOString();Ev(n,ab,s)}catch(r){console.error(r)}},e4=n=>{if(n===null)return!1;const l=new Date(n);return l.setHours(l.getHours()+12),new Date>l},t4=()=>typeof localStorage<"u",Sv=(n,l)=>{const r=rb(n,l);return localStorage.getItem(r)},Ev=(n,l,r)=>{const s=rb(n,l);return localStorage.setItem(s,r)},rb=(n,l)=>`${Qx}-${n}-${l}`,n4=(n,l)=>{const r=new URLSearchParams(n),s=new URLSearchParams(l);r.delete("referrer"),s.delete("referrer");const c=Array.from(r.entries()).sort(),f=Array.from(s.entries()).sort();return c.length!==f.length?!1:c.every(([d,m],h)=>{const[p,y]=f[h];return d===p&&m===y})},Qa=Object.create(null);Qa.open="0";Qa.close="1";Qa.ping="2";Qa.pong="3";Qa.message="4";Qa.upgrade="5";Qa.noop="6";const Mc=Object.create(null);Object.keys(Qa).forEach(n=>{Mc[Qa[n]]=n});const Sh={type:"error",data:"parser error"},ib=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",sb=typeof ArrayBuffer=="function",ob=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,cm=({type:n,data:l},r,s)=>ib&&l instanceof Blob?r?s(l):Tv(l,s):sb&&(l instanceof ArrayBuffer||ob(l))?r?s(l):Tv(new Blob([l]),s):s(Qa[n]+(l||"")),Tv=(n,l)=>{const r=new FileReader;return r.onload=function(){const s=r.result.split(",")[1];l("b"+(s||""))},r.readAsDataURL(n)};function xv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let $d;function a4(n,l){if(ib&&n.data instanceof Blob)return n.data.arrayBuffer().then(xv).then(l);if(sb&&(n.data instanceof ArrayBuffer||ob(n.data)))return l(xv(n.data));cm(n,!1,r=>{$d||($d=new TextEncoder),l($d.encode(r))})}const Ov="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Ov.length;n++)Gs[Ov.charCodeAt(n)]=n;const l4=n=>{let l=n.length*.75,r=n.length,s,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(s=0;s<r;s+=4)f=Gs[n.charCodeAt(s)],d=Gs[n.charCodeAt(s+1)],m=Gs[n.charCodeAt(s+2)],h=Gs[n.charCodeAt(s+3)],y[c++]=f<<2|d>>4,y[c++]=(d&15)<<4|m>>2,y[c++]=(m&3)<<6|h&63;return p},r4=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:i4(n.substring(1),l)}:Mc[r]?n.length>1?{type:Mc[r],data:n.substring(1)}:{type:Mc[r]}:Sh},i4=(n,l)=>{if(r4){const r=l4(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,s=new Array(r);let c=0;n.forEach((f,d)=>{cm(f,!1,m=>{s[d]=m,++c===r&&l(s.join(ub))})})},o4=(n,l)=>{const r=n.split(ub),s=[];for(let c=0;c<r.length;c++){const f=um(r[c],l);if(s.push(f),f.type==="error")break}return s};function c4(){return new TransformStream({transform(n,l){a4(n,r=>{const s=r.length;let c;if(s<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,s);else if(s<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(c[0]|=128),l.enqueue(c),l.enqueue(r)})}})}let eh;function Ec(n){return n.reduce((l,r)=>l+r.length,0)}function Tc(n,l){if(n[0].length===l)return n.shift();const r=new Uint8Array(l);let s=0;for(let c=0;c<l;c++)r[c]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),r}function u4(n,l){eh||(eh=new TextDecoder);const r=[];let s=0,c=-1,f=!1;return new TransformStream({transform(d,m){for(r.push(d);;){if(s===0){if(Ec(r)<1)break;const h=Tc(r,1);f=(h[0]&128)===128,c=h[0]&127,c<126?s=3:c===126?s=1:s=2}else if(s===1){if(Ec(r)<2)break;const h=Tc(r,2);c=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),s=3}else if(s===2){if(Ec(r)<8)break;const h=Tc(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),s=3}else{if(Ec(r)<c)break;const h=Tc(r,c);m.enqueue(um(f?h:eh.decode(h),l)),s=0}if(c===0||c>n){m.enqueue(Sh);break}}}})}const fb=4;function sn(n){if(n)return f4(n)}function f4(n){for(var l in sn.prototype)n[l]=sn.prototype[l];return n}sn.prototype.on=sn.prototype.addEventListener=function(n,l){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(l),this};sn.prototype.once=function(n,l){function r(){this.off(n,r),l.apply(this,arguments)}return r.fn=l,this.on(n,r),this};sn.prototype.off=sn.prototype.removeListener=sn.prototype.removeAllListeners=sn.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 s,c=0;c<r.length;c++)if(s=r[c],s===l||s.fn===l){r.splice(c,1);break}return r.length===0&&delete this._callbacks["$"+n],this};sn.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var l=new Array(arguments.length-1),r=this._callbacks["$"+n],s=1;s<arguments.length;s++)l[s-1]=arguments[s];if(r){r=r.slice(0);for(var s=0,c=r.length;s<c;++s)r[s].apply(this,l)}return this};sn.prototype.emitReserved=sn.prototype.emit;sn.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};sn.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),Ea=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),d4="arraybuffer";function db(n,...l){return l.reduce((r,s)=>(n.hasOwnProperty(s)&&(r[s]=n[s]),r),{})}const h4=Ea.setTimeout,m4=Ea.clearTimeout;function _u(n,l){l.useNativeTimers?(n.setTimeoutFn=h4.bind(Ea),n.clearTimeoutFn=m4.bind(Ea)):(n.setTimeoutFn=Ea.setTimeout.bind(Ea),n.clearTimeoutFn=Ea.clearTimeout.bind(Ea))}const p4=1.33;function g4(n){return typeof n=="string"?v4(n):Math.ceil((n.byteLength||n.size)*p4)}function v4(n){let l=0,r=0;for(let s=0,c=n.length;s<c;s++)l=n.charCodeAt(s),l<128?r+=1:l<2048?r+=2:l<55296||l>=57344?r+=3:(s++,r+=4);return r}function hb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function y4(n){let l="";for(let r in n)n.hasOwnProperty(r)&&(l.length&&(l+="&"),l+=encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return l}function b4(n){let l={},r=n.split("&");for(let s=0,c=r.length;s<c;s++){let f=r[s].split("=");l[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return l}class _4 extends Error{constructor(l,r,s){super(l),this.description=r,this.context=s,this.type="TransportError"}}class fm extends sn{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,s){return super.emitReserved("error",new _4(l,r,s)),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=y4(l);return r.length?"?"+r:""}}class A4 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 s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||r()})),this.writable||(s++,this.once("drain",function(){--s||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(l){const r=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};o4(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 C4=mb;function S4(){}class E4 extends A4{constructor(l){if(super(l),typeof location<"u"){const r=location.protocol==="https:";let s=location.port;s||(s=r?"443":"80"),this.xd=typeof location<"u"&&l.hostname!==location.hostname||s!==l.port}}doWrite(l,r){const s=this.request({method:"POST",data:l});s.on("success",r),s.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,s)=>{this.onError("xhr poll error",r,s)}),this.pollXhr=l}}class Za extends sn{constructor(l,r,s){super(),this.createRequest=l,_u(this,s),this._opts=s,this._method=s.method||"GET",this._uri=r,this._data=s.data!==void 0?s.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 s=this._xhr=this.createRequest(r);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&s.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(l=this._opts.cookieJar)===null||l===void 0||l.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var c;s.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=Za.requestsCount++,Za.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=S4,l)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Za.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()}}Za.requestsCount=0;Za.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Rv);else if(typeof addEventListener=="function"){const n="onpagehide"in Ea?"pagehide":"unload";addEventListener(n,Rv,!1)}}function Rv(){for(let n in Za.requests)Za.requests.hasOwnProperty(n)&&Za.requests[n].abort()}const T4=(function(){const n=pb({xdomain:!1});return n&&n.responseType!==null})();class x4 extends E4{constructor(l){super(l);const r=l&&l.forceBase64;this.supportsBinary=T4&&!r}request(l={}){return Object.assign(l,{xd:this.xd},this.opts),new Za(pb,this.uri(),l)}}function pb(n){const l=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!l||C4))return new XMLHttpRequest}catch{}if(!l)try{return new Ea[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const gb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class O4 extends fm{get name(){return"websocket"}doOpen(){const l=this.uri(),r=this.opts.protocols,s=gb?{}:db(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(l,r,s)}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 s=l[r],c=r===l.length-1;cm(s,this.supportsBinary,f=>{try{this.doWrite(s,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=Ea.WebSocket||Ea.MozWebSocket;class R4 extends O4{createSocket(l,r,s){return gb?new th(l,r,s):r?new th(l,r):new th(l)}doWrite(l,r){this.ws.send(r)}}class w4 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=u4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=l.readable.pipeThrough(r).getReader(),c=c4();c.readable.pipeTo(l.writable),this._writer=c.writable.getWriter();const f=()=>{s.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 s=l[r],c=r===l.length-1;this._writer.write(s).then(()=>{c&&bu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this._transport)===null||l===void 0||l.close()}}const N4={websocket:R4,webtransport:w4,polling:x4},M4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,D4=["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("["),s=n.indexOf("]");r!=-1&&s!=-1&&(n=n.substring(0,r)+n.substring(r,s).replace(/:/g,";")+n.substring(s,n.length));let c=M4.exec(n||""),f={},d=14;for(;d--;)f[D4[d]]=c[d]||"";return r!=-1&&s!=-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=L4(f,f.path),f.queryKey=z4(f,f.query),f}function L4(n,l){const r=/\/{2,9}/g,s=l.replace(r,"/").split("/");return(l.slice(0,1)=="/"||l.length===0)&&s.splice(0,1),l.slice(-1)=="/"&&s.splice(s.length-1,1),s}function z4(n,l){const r={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,c,f){c&&(r[c]=f)}),r}const Th=typeof addEventListener=="function"&&typeof removeEventListener=="function",Dc=[];Th&&addEventListener("offline",()=>{Dc.forEach(n=>n())},!1);class ur extends sn{constructor(l,r){if(super(),this.binaryType=d4,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 s=Eh(l);r.hostname=s.host,r.secure=s.protocol==="https"||s.protocol==="wss",r.port=s.port,s.query&&(r.query=s.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(s=>{const c=s.prototype.name;this.transports.push(c),this._transportsByName[c]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=b4(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"})},Dc.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 s=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](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const l=this.opts.rememberUpgrade&&ur.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",ur.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 s=0;s<this.writeBuffer.length;s++){const c=this.writeBuffer[s].data;if(c&&(r+=g4(c)),s>0&&r>this._maxPayload)return this.writeBuffer.slice(0,s);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,s){return this._sendPacket("message",l,r,s),this}send(l,r,s){return this._sendPacket("message",l,r,s),this}_sendPacket(l,r,s,c){if(typeof r=="function"&&(c=r,r=void 0),typeof s=="function"&&(c=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:l,data:r,options:s};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()},s=()=>{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?s():l()}):this.upgrading?s():l()),this}_onError(l){if(ur.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 s=Dc.indexOf(this._offlineEventListener);s!==-1&&Dc.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",l,r),this.writeBuffer=[],this._prevBufferLen=0}}}ur.protocol=fb;class k4 extends ur{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),s=!1;ur.priorWebsocketSuccess=!1;const c=()=>{s||(r.send([{type:"ping",data:"probe"}]),r.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;ur.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{s||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(){s||(s=!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(()=>{s||r.open()},200):r.open()}onHandshake(l){this._upgrades=this._filterUpgrades(l.upgrades),super.onHandshake(l)}_filterUpgrades(l){const r=[];for(let s=0;s<l.length;s++)~this.transports.indexOf(l[s])&&r.push(l[s]);return r}}let B4=class extends k4{constructor(l,r={}){const s=typeof l=="object"?l:r;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(c=>N4[c]).filter(c=>!!c)),super(l,s)}};function j4(n,l="",r){let s=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),s=Eh(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+l,s.href=s.protocol+"://"+f+(r&&r.port===s.port?"":":"+s.port),s}const U4=typeof ArrayBuffer=="function",H4=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,vb=Object.prototype.toString,q4=typeof Blob=="function"||typeof Blob<"u"&&vb.call(Blob)==="[object BlobConstructor]",I4=typeof File=="function"||typeof File<"u"&&vb.call(File)==="[object FileConstructor]";function dm(n){return U4&&(n instanceof ArrayBuffer||H4(n))||q4&&n instanceof Blob||I4&&n instanceof File}function Lc(n,l){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let r=0,s=n.length;r<s;r++)if(Lc(n[r]))return!0;return!1}if(dm(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Lc(n.toJSON(),!0);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&Lc(n[r]))return!0;return!1}function G4(n){const l=[],r=n.data,s=n;return s.data=xh(r,l),s.attachments=l.length,{packet:s,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 s=0;s<n.length;s++)r[s]=xh(n[s],l);return r}else if(typeof n=="object"&&!(n instanceof Date)){const r={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=xh(n[s],l));return r}return n}function V4(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 Y4=["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 X4{constructor(l){this.replacer=l}encode(l){return(l.type===We.EVENT||l.type===We.ACK)&&Lc(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=G4(l),s=this.encodeAsString(r.packet),c=r.buffers;return c.unshift(s),c}}class hm extends sn{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 s=r.type===We.BINARY_EVENT;s||r.type===We.BINARY_ACK?(r.type=s?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 s={type:Number(l.charAt(0))};if(We[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===We.BINARY_EVENT||s.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");s.attachments=Number(d)}if(l.charAt(r+1)==="/"){const f=r+1;for(;++r&&!(l.charAt(r)===","||r===l.length););s.nsp=l.substring(f,r)}else s.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}s.id=Number(l.substring(f,r+1))}if(l.charAt(++r)){const f=this.tryParse(l.substr(r));if(hm.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,r){switch(l){case We.CONNECT:return wv(r);case We.DISCONNECT:return r===void 0;case We.CONNECT_ERROR:return typeof r=="string"||wv(r);case We.EVENT:case We.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Y4.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=V4(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function wv(n){return Object.prototype.toString.call(n)==="[object Object]"}const F4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:hm,Encoder:X4,get PacketType(){return We}},Symbol.toStringTag,{value:"Module"}));function Ba(n,l,r){return n.on(l,r),function(){n.off(l,r)}}const J4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class yb extends sn{constructor(l,r,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=l,this.nsp=r,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[Ba(l,"open",this.onopen.bind(this)),Ba(l,"packet",this.onpacket.bind(this)),Ba(l,"error",this.onerror.bind(this)),Ba(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 s,c,f;if(J4.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=(s=this.io.engine)===null||s===void 0?void 0:s.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 s;const c=(s=this.flags.timeout)!==null&&s!==void 0?s: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((s,c)=>{const f=(d,m)=>d?c(d):s(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 s={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?s.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(c)):(this._queue.shift(),r&&r(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),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(s=>String(s.id)===l)){const s=this.acks[l];delete this.acks[l],s.withError&&s.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 s=new Error(l.data.message);s.data=l.data.data,this.emitReserved("connect_error",s);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 s of r)s.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 s=!1;return function(...c){s||(s=!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 s=0;s<r.length;s++)if(l===r[s])return r.splice(s,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 s=0;s<r.length;s++)if(l===r[s])return r.splice(s,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 s of r)s.apply(this,l.data)}}}function Ui(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}Ui.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};Ui.prototype.reset=function(){this.attempts=0};Ui.prototype.setMin=function(n){this.ms=n};Ui.prototype.setMax=function(n){this.max=n};Ui.prototype.setJitter=function(n){this.jitter=n};class Rh extends sn{constructor(l,r){var s;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((s=r.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Ui({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||F4;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 B4(this.uri,this.opts);const r=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const c=Ba(r,"open",function(){s.onopen(),l&&l()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),l?l(m):this.maybeReconnectOnOpen()},d=Ba(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(Ba(l,"ping",this.onping.bind(this)),Ba(l,"data",this.ondata.bind(this)),Ba(l,"error",this.onerror.bind(this)),Ba(l,"close",this.onclose.bind(this)),Ba(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 s=this.nsps[l];return s?this._autoConnect&&!s.active&&s.connect():(s=new yb(this,l,r),this.nsps[l]=s),s}_destroy(l){const r=Object.keys(this.nsps);for(const s of r)if(this.nsps[s].active)return;this._close()}_packet(l){const r=this.encoder.encode(l);for(let s=0;s<r.length;s++)this.engine.write(r[s],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 s;this.cleanup(),(s=this.engine)===null||s===void 0||s.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 s=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&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const l=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",l)}}const Hs={};function zc(n,l){typeof n=="object"&&(l=n,n=void 0),l=l||{};const r=j4(n,l.path||"/socket.io"),s=r.source,c=r.id,f=r.path,d=Hs[c]&&f in Hs[c].nsps,m=l.forceNew||l["force new connection"]||l.multiplex===!1||d;let h;return m?h=new Rh(s,l):(Hs[c]||(Hs[c]=new Rh(s,l)),h=Hs[c]),r.query&&!l.query&&(l.query=r.queryKey),h.socket(r.path,l)}Object.assign(zc,{Manager:Rh,Socket:yb,io:zc,connect:zc});const Z4=[Iv,Gv,Uv,Hv,YA,...mS,...nC,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],W4=({dispatch:n,getState:l})=>r=>{let s=null;return c=>{const f=r(c);if(c.type===Zh){s?.disconnect(),n(vS());const m={path:`/website-messenger/${c.clientName}/socket.io`,query:c.querystrings};s=zc(m),s.on("action",n),s.on("connect",()=>n(yS())),s.on("disconnect",()=>n(bS())),s.on("reconnect",()=>n(_S())),s.on("set-translations",(h,p)=>{n(Xx({language:h,messages:Ux(h,p)}))}),s.on("set-settings",h=>{n(Jx(h))}),s.on("enable-conversation-rating",h=>n(sC(h))),s.on("speech-transcription",h=>n(lC(h))),s.on("restore-client-state",h=>{n(gS(h.sessionId)),n(cC(h.messages))}),s.on("expand-window",({devices:h,initial:p=!1})=>{n({type:Jv,devices:h,initial:p})}),s.on("restart-chat",()=>{n(Ws())}),s.on("login-success",h=>{n(iS({loginToken:h.loginToken}))})}else if(c.type==="start-screen/requestLogin")s?.emit("login-requested",c.payload);else if(c.type===fu)s?.emit("start-chat",c.payload);else if(c.type===du)s?.emit("terminate-session",c.payload);else if(c.type===tC)s?.emit("get-started",JSON.stringify(c));else if(c.type===Uh)s?.emit("audio-message",c.buffer);else if(c.type===zh)s?.emit("conversation-rating",c.payload);else if(c.type===Wv){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 Z4.indexOf(c.type)===-1&&c.meta===void 0&&s&&s.emit("action",JSON.stringify(c));return f}},bb=au(),Q4={...Px(bb),intl:eb},wh=KC({middleware:n=>n().concat(W4),reducer:Wx,preloadedState:Q4});wh.subscribe(s6(()=>{const n=wh.getState();$x(bb,{connection:n.connection,startScreen:n.startScreen})},1e3));const P4=document.getElementById("root"),$4=k2.createRoot(P4);$4.render(v.jsx(zA,{store:wh,children:v.jsx(Lx,{})}));
|
|
76
|
-
//# sourceMappingURL=index-DgDI_BZV.js.map
|