@botfabrik/engine-webclient 4.104.19 → 4.104.21

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,131 +0,0 @@
1
- (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const g of m.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&c(g)}).observe(document,{childList:!0,subtree:!0});function u(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=u(d);fetch(d.href,m)}})();function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jsxRuntime={exports:{}},reactJsxRuntime_production={};var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(c,d,m){var g=null;if(m!==void 0&&(g=""+m),d.key!==void 0&&(g=""+d.key),"key"in d){m={};for(var _ in d)_!=="key"&&(m[_]=d[_])}else m=d;return d=m.ref,{$$typeof:t,type:c,key:g,ref:d!==void 0?d:null,props:m}}return reactJsxRuntime_production.Fragment=i,reactJsxRuntime_production.jsx=u,reactJsxRuntime_production.jsxs=u,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(t){function i($,ue){var Q=$.length;$.push(ue);e:for(;0<Q;){var xe=Q-1>>>1,_e=$[xe];if(0<d(_e,ue))$[xe]=ue,$[Q]=_e,Q=xe;else break e}}function u($){return $.length===0?null:$[0]}function c($){if($.length===0)return null;var ue=$[0],Q=$.pop();if(Q!==ue){$[0]=Q;e:for(var xe=0,_e=$.length,L=_e>>>1;xe<L;){var te=2*(xe+1)-1,le=$[te],me=te+1,ce=$[me];if(0>d(le,Q))me<_e&&0>d(ce,le)?($[xe]=ce,$[me]=Q,xe=me):($[xe]=le,$[te]=Q,xe=te);else if(me<_e&&0>d(ce,Q))$[xe]=ce,$[me]=Q,xe=me;else break e}}return ue}function d($,ue){var Q=$.sortIndex-ue.sortIndex;return Q!==0?Q:$.id-ue.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;t.unstable_now=function(){return m.now()}}else{var g=Date,_=g.now();t.unstable_now=function(){return g.now()-_}}var y=[],v=[],S=1,A=null,T=3,D=!1,N=!1,R=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function G($){for(var ue=u(v);ue!==null;){if(ue.callback===null)c(v);else if(ue.startTime<=$)c(v),ue.sortIndex=ue.expirationTime,i(y,ue);else break;ue=u(v)}}function Z($){if(R=!1,G($),!N)if(u(y)!==null)N=!0,F||(F=!0,ae());else{var ue=u(v);ue!==null&&ye(Z,ue.startTime-$)}}var F=!1,P=-1,W=5,J=-1;function ne(){return w?!0:!(t.unstable_now()-J<W)}function ee(){if(w=!1,F){var $=t.unstable_now();J=$;var ue=!0;try{e:{N=!1,R&&(R=!1,M(P),P=-1),D=!0;var Q=T;try{t:{for(G($),A=u(y);A!==null&&!(A.expirationTime>$&&ne());){var xe=A.callback;if(typeof xe=="function"){A.callback=null,T=A.priorityLevel;var _e=xe(A.expirationTime<=$);if($=t.unstable_now(),typeof _e=="function"){A.callback=_e,G($),ue=!0;break t}A===u(y)&&c(y),G($)}else c(y);A=u(y)}if(A!==null)ue=!0;else{var L=u(v);L!==null&&ye(Z,L.startTime-$),ue=!1}}break e}finally{A=null,T=Q,D=!1}ue=void 0}}finally{ue?ae():F=!1}}}var ae;if(typeof k=="function")ae=function(){k(ee)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,pe=ve.port2;ve.port1.onmessage=ee,ae=function(){pe.postMessage(null)}}else ae=function(){j(ee,0)};function ye($,ue){P=j(function(){$(t.unstable_now())},ue)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function($){$.callback=null},t.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_next=function($){switch(T){case 1:case 2:case 3:var ue=3;break;default:ue=T}var Q=T;T=ue;try{return $()}finally{T=Q}},t.unstable_requestPaint=function(){w=!0},t.unstable_runWithPriority=function($,ue){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Q=T;T=$;try{return ue()}finally{T=Q}},t.unstable_scheduleCallback=function($,ue,Q){var xe=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?xe+Q:xe):Q=xe,$){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=Q+_e,$={id:S++,callback:ue,priorityLevel:$,startTime:Q,expirationTime:_e,sortIndex:-1},Q>xe?($.sortIndex=Q,i(v,$),u(y)===null&&$===u(v)&&(R?(M(P),P=-1):R=!0,ye(Z,Q-xe))):($.sortIndex=_e,i(y,$),N||D||(N=!0,F||(F=!0,ae()))),$},t.unstable_shouldYield=ne,t.unstable_wrapCallback=function($){var ue=T;return function(){var Q=T;T=ue;try{return $.apply(this,arguments)}finally{T=Q}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var react={exports:{}},react_production={};var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),T=Symbol.iterator;function D(L){return L===null||typeof L!="object"?null:(L=T&&L[T]||L["@@iterator"],typeof L=="function"?L:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,w={};function j(L,te,le){this.props=L,this.context=te,this.refs=w,this.updater=le||N}j.prototype.isReactComponent={},j.prototype.setState=function(L,te){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,te,"setState")},j.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function M(){}M.prototype=j.prototype;function k(L,te,le){this.props=L,this.context=te,this.refs=w,this.updater=le||N}var G=k.prototype=new M;G.constructor=k,R(G,j.prototype),G.isPureReactComponent=!0;var Z=Array.isArray;function F(){}var P={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function J(L,te,le){var me=le.ref;return{$$typeof:t,type:L,key:te,ref:me!==void 0?me:null,props:le}}function ne(L,te){return J(L.type,te,L.props)}function ee(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function ae(L){var te={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(le){return te[le]})}var ve=/\/+/g;function pe(L,te){return typeof L=="object"&&L!==null&&L.key!=null?ae(""+L.key):te.toString(36)}function ye(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(F,F):(L.status="pending",L.then(function(te){L.status==="pending"&&(L.status="fulfilled",L.value=te)},function(te){L.status==="pending"&&(L.status="rejected",L.reason=te)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function $(L,te,le,me,ce){var ge=typeof L;(ge==="undefined"||ge==="boolean")&&(L=null);var be=!1;if(L===null)be=!0;else switch(ge){case"bigint":case"string":case"number":be=!0;break;case"object":switch(L.$$typeof){case t:case i:be=!0;break;case S:return be=L._init,$(be(L._payload),te,le,me,ce)}}if(be)return ce=ce(L),be=me===""?"."+pe(L,0):me,Z(ce)?(le="",be!=null&&(le=be.replace(ve,"$&/")+"/"),$(ce,te,le,"",function(Ge){return Ge})):ce!=null&&(ee(ce)&&(ce=ne(ce,le+(ce.key==null||L&&L.key===ce.key?"":(""+ce.key).replace(ve,"$&/")+"/")+be)),te.push(ce)),1;be=0;var De=me===""?".":me+":";if(Z(L))for(var we=0;we<L.length;we++)me=L[we],ge=De+pe(me,we),be+=$(me,te,le,ge,ce);else if(we=D(L),typeof we=="function")for(L=we.call(L),we=0;!(me=L.next()).done;)me=me.value,ge=De+pe(me,we++),be+=$(me,te,le,ge,ce);else if(ge==="object"){if(typeof L.then=="function")return $(ye(L),te,le,me,ce);throw te=String(L),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return be}function ue(L,te,le){if(L==null)return L;var me=[],ce=0;return $(L,me,"","",function(ge){return te.call(le,ge,ce++)}),me}function Q(L){if(L._status===-1){var te=L._result;te=te(),te.then(function(le){(L._status===0||L._status===-1)&&(L._status=1,L._result=le)},function(le){(L._status===0||L._status===-1)&&(L._status=2,L._result=le)}),L._status===-1&&(L._status=0,L._result=te)}if(L._status===1)return L._result.default;throw L._result}var xe=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},_e={map:ue,forEach:function(L,te,le){ue(L,function(){te.apply(this,arguments)},le)},count:function(L){var te=0;return ue(L,function(){te++}),te},toArray:function(L){return ue(L,function(te){return te})||[]},only:function(L){if(!ee(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return react_production.Activity=A,react_production.Children=_e,react_production.Component=j,react_production.Fragment=u,react_production.Profiler=d,react_production.PureComponent=k,react_production.StrictMode=c,react_production.Suspense=y,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(L){return P.H.useMemoCache(L)}},react_production.cache=function(L){return function(){return L.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(L,te,le){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var me=R({},L.props),ce=L.key;if(te!=null)for(ge in te.key!==void 0&&(ce=""+te.key),te)!W.call(te,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&te.ref===void 0||(me[ge]=te[ge]);var ge=arguments.length-2;if(ge===1)me.children=le;else if(1<ge){for(var be=Array(ge),De=0;De<ge;De++)be[De]=arguments[De+2];me.children=be}return J(L.type,ce,me)},react_production.createContext=function(L){return L={$$typeof:g,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:m,_context:L},L},react_production.createElement=function(L,te,le){var me,ce={},ge=null;if(te!=null)for(me in te.key!==void 0&&(ge=""+te.key),te)W.call(te,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(ce[me]=te[me]);var be=arguments.length-2;if(be===1)ce.children=le;else if(1<be){for(var De=Array(be),we=0;we<be;we++)De[we]=arguments[we+2];ce.children=De}if(L&&L.defaultProps)for(me in be=L.defaultProps,be)ce[me]===void 0&&(ce[me]=be[me]);return J(L,ge,ce)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(L){return{$$typeof:_,render:L}},react_production.isValidElement=ee,react_production.lazy=function(L){return{$$typeof:S,_payload:{_status:-1,_result:L},_init:Q}},react_production.memo=function(L,te){return{$$typeof:v,type:L,compare:te===void 0?null:te}},react_production.startTransition=function(L){var te=P.T,le={};P.T=le;try{var me=L(),ce=P.S;ce!==null&&ce(le,me),typeof me=="object"&&me!==null&&typeof me.then=="function"&&me.then(F,xe)}catch(ge){xe(ge)}finally{te!==null&&le.types!==null&&(te.types=le.types),P.T=te}},react_production.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},react_production.use=function(L){return P.H.use(L)},react_production.useActionState=function(L,te,le){return P.H.useActionState(L,te,le)},react_production.useCallback=function(L,te){return P.H.useCallback(L,te)},react_production.useContext=function(L){return P.H.useContext(L)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(L,te){return P.H.useDeferredValue(L,te)},react_production.useEffect=function(L,te){return P.H.useEffect(L,te)},react_production.useEffectEvent=function(L){return P.H.useEffectEvent(L)},react_production.useId=function(){return P.H.useId()},react_production.useImperativeHandle=function(L,te,le){return P.H.useImperativeHandle(L,te,le)},react_production.useInsertionEffect=function(L,te){return P.H.useInsertionEffect(L,te)},react_production.useLayoutEffect=function(L,te){return P.H.useLayoutEffect(L,te)},react_production.useMemo=function(L,te){return P.H.useMemo(L,te)},react_production.useOptimistic=function(L,te){return P.H.useOptimistic(L,te)},react_production.useReducer=function(L,te,le){return P.H.useReducer(L,te,le)},react_production.useRef=function(L){return P.H.useRef(L)},react_production.useState=function(L){return P.H.useState(L)},react_production.useSyncExternalStore=function(L,te,le){return P.H.useSyncExternalStore(L,te,le)},react_production.useTransition=function(){return P.H.useTransition()},react_production.version="19.2.3",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactDom={exports:{}},reactDom_production={};var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var t=requireReact();function i(y){var v="https://react.dev/errors/"+y;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)v+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(y,v,S){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:A==null?null:""+A,children:y,containerInfo:v,implementation:S}}var g=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(y,v){if(y==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,reactDom_production.createPortal=function(y,v){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return m(y,v,null,S)},reactDom_production.flushSync=function(y){var v=g.T,S=c.p;try{if(g.T=null,c.p=2,y)return y()}finally{g.T=v,c.p=S,c.d.f()}},reactDom_production.preconnect=function(y,v){typeof y=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(y,v))},reactDom_production.prefetchDNS=function(y){typeof y=="string"&&c.d.D(y)},reactDom_production.preinit=function(y,v){if(typeof y=="string"&&v&&typeof v.as=="string"){var S=v.as,A=_(S,v.crossOrigin),T=typeof v.integrity=="string"?v.integrity:void 0,D=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;S==="style"?c.d.S(y,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:A,integrity:T,fetchPriority:D}):S==="script"&&c.d.X(y,{crossOrigin:A,integrity:T,fetchPriority:D,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},reactDom_production.preinitModule=function(y,v){if(typeof y=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var S=_(v.as,v.crossOrigin);c.d.M(y,{crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(y)},reactDom_production.preload=function(y,v){if(typeof y=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var S=v.as,A=_(S,v.crossOrigin);c.d.L(y,S,{crossOrigin:A,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},reactDom_production.preloadModule=function(y,v){if(typeof y=="string")if(v){var S=_(v.as,v.crossOrigin);c.d.m(y,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(y)},reactDom_production.requestFormReset=function(y){c.d.r(y)},reactDom_production.unstable_batchedUpdates=function(y,v){return y(v)},reactDom_production.useFormState=function(y,v,S){return g.H.useFormState(y,v,S)},reactDom_production.useFormStatus=function(){return g.H.useHostTransitionStatus()},reactDom_production.version="19.2.3",reactDom_production}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),reactDom.exports=requireReactDom_production(),reactDom.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var t=requireScheduler(),i=requireReact(),u=requireReactDom();function c(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function g(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function _(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function y(e){if(m(e)!==e)throw Error(c(188))}function v(e){var n=e.alternate;if(!n){if(n=m(e),n===null)throw Error(c(188));return n!==e?null:e}for(var a=e,f=n;;){var h=a.return;if(h===null)break;var p=h.alternate;if(p===null){if(f=h.return,f!==null){a=f;continue}break}if(h.child===p.child){for(p=h.child;p;){if(p===a)return y(h),e;if(p===f)return y(h),n;p=p.sibling}throw Error(c(188))}if(a.return!==f.return)a=h,f=p;else{for(var x=!1,C=h.child;C;){if(C===a){x=!0,a=h,f=p;break}if(C===f){x=!0,f=h,a=p;break}C=C.sibling}if(!x){for(C=p.child;C;){if(C===a){x=!0,a=p,f=h;break}if(C===f){x=!0,f=p,a=h;break}C=C.sibling}if(!x)throw Error(c(189))}}if(a.alternate!==f)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:n}function S(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=S(e),n!==null)return n;e=e.sibling}return null}var A=Object.assign,T=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),k=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case j:return"Profiler";case w:return"StrictMode";case Z:return"Suspense";case F:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case k:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case G:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return n=e.displayName||null,n!==null?n:pe(e.type)||"Memo";case W:n=e._payload,e=e._init;try{return pe(e(n))}catch{}}return null}var ye=Array.isArray,$=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},xe=[],_e=-1;function L(e){return{current:e}}function te(e){0>_e||(e.current=xe[_e],xe[_e]=null,_e--)}function le(e,n){_e++,xe[_e]=e.current,e.current=n}var me=L(null),ce=L(null),ge=L(null),be=L(null);function De(e,n){switch(le(ge,n),le(ce,e),le(me,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=id(n),e=ld(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}te(me),le(me,e)}function we(){te(me),te(ce),te(ge)}function Ge(e){e.memoizedState!==null&&le(be,e);var n=me.current,a=ld(n,e.type);n!==a&&(le(ce,e),le(me,a))}function lt(e){ce.current===e&&(te(me),te(ce)),be.current===e&&(te(be),Ni._currentValue=Q)}var Oe,pt;function xt(e){if(Oe===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Oe=n&&n[1]||"",pt=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Oe+e+pt}var ke=!1;function st(e,n){if(!e||ke)return"";ke=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(n){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(q){var K=q}Reflect.construct(e,[],oe)}else{try{oe.call()}catch(q){K=q}e.call(oe.prototype)}}else{try{throw Error()}catch(q){K=q}(oe=e())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(q){if(q&&K&&typeof q.stack=="string")return[q.stack,K.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=f.DetermineComponentFrameRoot(),x=p[0],C=p[1];if(x&&C){var U=x.split(`
4
- `),X=C.split(`
5
- `);for(h=f=0;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;for(;h<X.length&&!X[h].includes("DetermineComponentFrameRoot");)h++;if(f===U.length||h===X.length)for(f=U.length-1,h=X.length-1;1<=f&&0<=h&&U[f]!==X[h];)h--;for(;1<=f&&0<=h;f--,h--)if(U[f]!==X[h]){if(f!==1||h!==1)do if(f--,h--,0>h||U[f]!==X[h]){var ie=`
6
- `+U[f].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),ie}while(1<=f&&0<=h);break}}}finally{ke=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?xt(a):""}function Kt(e,n){switch(e.tag){case 26:case 27:case 5:return xt(e.type);case 16:return xt("Lazy");case 13:return e.child!==n&&n!==null?xt("Suspense Fallback"):xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return st(e.type,!1);case 11:return st(e.type.render,!1);case 1:return st(e.type,!0);case 31:return xt("Activity");default:return""}}function hn(e){try{var n="",a=null;do n+=Kt(e,a),a=e,e=e.return;while(e);return n}catch(f){return`
7
- Error generating stack: `+f.message+`
8
- `+f.stack}}var Ze=Object.prototype.hasOwnProperty,Pt=t.unstable_scheduleCallback,Rt=t.unstable_cancelCallback,Qt=t.unstable_shouldYield,Et=t.unstable_requestPaint,at=t.unstable_now,vn=t.unstable_getCurrentPriorityLevel,Ut=t.unstable_ImmediatePriority,wt=t.unstable_UserBlockingPriority,Dt=t.unstable_NormalPriority,ln=t.unstable_LowPriority,sn=t.unstable_IdlePriority,Pn=t.log,qe=t.unstable_setDisableYieldValue,un=null,mt=null;function ct(e){if(typeof Pn=="function"&&qe(e),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(un,e)}catch{}}var Ke=Math.clz32?Math.clz32:cn,We=Math.log,Wt=Math.LN2;function cn(e){return e>>>=0,e===0?32:31-(We(e)/Wt|0)|0}var Nt=256,et=262144,Vt=4194304;function St(e){var n=e&42;if(n!==0)return n;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 bn(e,n,a){var f=e.pendingLanes;if(f===0)return 0;var h=0,p=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var C=f&134217727;return C!==0?(f=C&~p,f!==0?h=St(f):(x&=C,x!==0?h=St(x):a||(a=C&~e,a!==0&&(h=St(a))))):(C=f&~p,C!==0?h=St(C):x!==0?h=St(x):a||(a=f&~e,a!==0&&(h=St(a)))),h===0?0:n!==0&&n!==h&&(n&p)===0&&(p=h&-h,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:h}function En(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ft(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 qt(){var e=Vt;return Vt<<=1,(Vt&62914560)===0&&(Vt=4194304),e}function Vn(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function xn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $n(e,n,a,f,h,p){var x=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 C=e.entanglements,U=e.expirationTimes,X=e.hiddenUpdates;for(a=x&~a;0<a;){var ie=31-Ke(a),oe=1<<ie;C[ie]=0,U[ie]=-1;var K=X[ie];if(K!==null)for(X[ie]=null,ie=0;ie<K.length;ie++){var q=K[ie];q!==null&&(q.lane&=-536870913)}a&=~oe}f!==0&&tn(e,f,0),p!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=p&~(x&~n))}function tn(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var f=31-Ke(n);e.entangledLanes|=n,e.entanglements[f]=e.entanglements[f]|1073741824|a&261930}function nn(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var f=31-Ke(a),h=1<<f;h&n|e[f]&n&&(e[f]|=n),a&=~h}}function $t(e,n){var a=n&-n;return a=(a&42)!==0?1:Mt(a),(a&(e.suspendedLanes|n))!==0?0:a}function Mt(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 Pe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sn(){var e=ue.p;return e!==0?e:(e=window.event,e===void 0?32:Od(e.type))}function _n(e,n){var a=ue.p;try{return ue.p=e,n()}finally{ue.p=a}}var zt=Math.random().toString(36).slice(2),Tt="__reactFiber$"+zt,ot="__reactProps$"+zt,an="__reactContainer$"+zt,Zn="__reactEvents$"+zt,Xe="__reactListeners$"+zt,An="__reactHandles$"+zt,Cn="__reactResources$"+zt,Ee="__reactMarker$"+zt;function z(e){delete e[Tt],delete e[ot],delete e[Zn],delete e[Xe],delete e[An]}function fe(e){var n=e[Tt];if(n)return n;for(var a=e.parentNode;a;){if(n=a[an]||a[Tt]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=hd(e);e!==null;){if(a=e[Tt])return a;e=hd(e)}return n}e=a,a=e.parentNode}return null}function he(e){if(e=e[Tt]||e[an]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Re(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(c(33))}function Le(e){var n=e[Cn];return n||(n=e[Cn]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Se(e){e[Ee]=!0}var Ce=new Set,He={};function ut(e,n){Me(e,n),Me(e+"Capture",n)}function Me(e,n){for(He[e]=n,e=0;e<n.length;e++)Ce.add(n[e])}var Qe=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]*$"),Ue={},gt={};function jt(e){return Ze.call(gt,e)?!0:Ze.call(Ue,e)?!1:Qe.test(e)?gt[e]=!0:(Ue[e]=!0,!1)}function Be(e,n,a){if(jt(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var f=n.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Zt(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function fn(e,n,a,f){if(f===null)e.removeAttribute(a);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+f)}}function It(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kt(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function hr(e,n,a){var f=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var h=f.get,p=f.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return h.call(this)},set:function(x){a=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:f.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function kn(e){if(!e._valueTracker){var n=kt(e)?"checked":"value";e._valueTracker=hr(e,n,""+e[n])}}function pr(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),f="";return e&&(f=kt(e)?e.checked?"true":"false":e.value),e=f,e!==a?(n.setValue(e),!0):!1}function Ra(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 mr=/[\n"\\]/g;function Tn(e){return e.replace(mr,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Zl(e,n,a,f,h,p,x,C){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+It(n)):e.value!==""+It(n)&&(e.value=""+It(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Fl(e,x,It(n)):a!=null?Fl(e,x,It(a)):f!=null&&e.removeAttribute("value"),h==null&&p!=null&&(e.defaultChecked=!!p),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?e.name=""+It(C):e.removeAttribute("name")}function Yr(e,n,a,f,h,p,x,C){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){kn(e);return}a=a!=null?""+It(a):"",n=n!=null?""+It(n):a,C||n===e.value||(e.value=n),e.defaultValue=n}f=f??h,f=typeof f!="function"&&typeof f!="symbol"&&!!f,e.checked=C?e.checked:!!f,e.defaultChecked=!!f,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),kn(e)}function Fl(e,n,a){n==="number"&&Ra(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Aa(e,n,a,f){if(e=e.options,n){n={};for(var h=0;h<a.length;h++)n["$"+a[h]]=!0;for(a=0;a<e.length;a++)h=n.hasOwnProperty("$"+e[a].value),e[a].selected!==h&&(e[a].selected=h),h&&f&&(e[a].defaultSelected=!0)}else{for(a=""+It(a),n=null,h=0;h<e.length;h++){if(e[h].value===a){e[h].selected=!0,f&&(e[h].defaultSelected=!0);return}n!==null||e[h].disabled||(n=e[h])}n!==null&&(n.selected=!0)}}function qo(e,n,a){if(n!=null&&(n=""+It(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+It(a):""}function eu(e,n,a,f){if(n==null){if(f!=null){if(a!=null)throw Error(c(92));if(ye(f)){if(1<f.length)throw Error(c(93));f=f[0]}a=f}a==null&&(a=""),n=a}a=It(n),e.defaultValue=a,f=e.textContent,f===a&&f!==""&&f!==null&&(e.value=f),kn(e)}function sa(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var Bd=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 tu(e,n,a){var f=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?f?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":f?e.setProperty(n,a):typeof a!="number"||a===0||Bd.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function nu(e,n,a){if(n!=null&&typeof n!="object")throw Error(c(62));if(e=e.style,a!=null){for(var f in a)!a.hasOwnProperty(f)||n!=null&&n.hasOwnProperty(f)||(f.indexOf("--")===0?e.setProperty(f,""):f==="float"?e.cssFloat="":e[f]="");for(var h in n)f=n[h],n.hasOwnProperty(h)&&a[h]!==f&&tu(e,h,f)}else for(var p in n)n.hasOwnProperty(p)&&tu(e,p,n[p])}function Yl(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 Ud=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"]]),zd=/^[\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 Bi(e){return zd.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var Xl=null;function Jl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gr=null,yr=null;function au(e){var n=he(e);if(n&&(e=n.stateNode)){var a=e[ot]||null;e:switch(e=n.stateNode,n.type){case"input":if(Zl(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Tn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var f=a[n];if(f!==e&&f.form===e.form){var h=f[ot]||null;if(!h)throw Error(c(90));Zl(f,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(n=0;n<a.length;n++)f=a[n],f.form===e.form&&pr(f)}break e;case"textarea":qo(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Aa(e,!!a.multiple,n,!1)}}}var Kl=!1;function ru(e,n,a){if(Kl)return e(n,a);Kl=!0;try{var f=e(n);return f}finally{if(Kl=!1,(gr!==null||yr!==null)&&(Sl(),gr&&(n=gr,e=yr,yr=gr=null,au(n),e)))for(n=0;n<e.length;n++)au(e[n])}}function Xr(e,n){var a=e.stateNode;if(a===null)return null;var f=a[ot]||null;if(f===null)return null;a=f[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(e=e.type,f=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!f;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,n,typeof a));return a}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ql=!1;if(ua)try{var Jr={};Object.defineProperty(Jr,"passive",{get:function(){Ql=!0}}),window.addEventListener("test",Jr,Jr),window.removeEventListener("test",Jr,Jr)}catch{Ql=!1}var Ca=null,Wl=null,Ui=null;function iu(){if(Ui)return Ui;var e,n=Wl,a=n.length,f,h="value"in Ca?Ca.value:Ca.textContent,p=h.length;for(e=0;e<a&&n[e]===h[e];e++);var x=a-e;for(f=1;f<=x&&n[a-f]===h[p-f];f++);return Ui=h.slice(e,1<f?1-f:void 0)}function zi(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ii(){return!0}function lu(){return!1}function wn(e){function n(a,f,h,p,x){this._reactName=a,this._targetInst=h,this.type=f,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(a=e[C],this[C]=a?a(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ii:lu,this.isPropagationStopped=lu,this}return A(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),n}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hi=wn(Ka),Kr=A({},Ka,{view:0,detail:0}),Id=wn(Kr),ql,es,Qr,Gi=A({},Kr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ns,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!==Qr&&(Qr&&e.type==="mousemove"?(ql=e.screenX-Qr.screenX,es=e.screenY-Qr.screenY):es=ql=0,Qr=e),ql)},movementY:function(e){return"movementY"in e?e.movementY:es}}),su=wn(Gi),Hd=A({},Gi,{dataTransfer:0}),Gd=wn(Hd),Pd=A({},Kr,{relatedTarget:0}),ts=wn(Pd),Vd=A({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),$d=wn(Vd),Zd=A({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fd=wn(Zd),Yd=A({},Ka,{data:0}),ou=wn(Yd),Xd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jd={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"},Kd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qd(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Kd[e])?!!n[e]:!1}function ns(){return Qd}var Wd=A({},Kr,{key:function(e){if(e.key){var n=Xd[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=zi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ns,charCode:function(e){return e.type==="keypress"?zi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qd=wn(Wd),eh=A({},Gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uu=wn(eh),th=A({},Kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ns}),nh=wn(th),ah=A({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),rh=wn(ah),ih=A({},Gi,{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}),lh=wn(ih),sh=A({},Ka,{newState:0,oldState:0}),oh=wn(sh),uh=[9,13,27,32],as=ua&&"CompositionEvent"in window,Wr=null;ua&&"documentMode"in document&&(Wr=document.documentMode);var ch=ua&&"TextEvent"in window&&!Wr,cu=ua&&(!as||Wr&&8<Wr&&11>=Wr),fu=" ",du=!1;function hu(e,n){switch(e){case"keyup":return uh.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function fh(e,n){switch(e){case"compositionend":return pu(n);case"keypress":return n.which!==32?null:(du=!0,fu);case"textInput":return e=n.data,e===fu&&du?null:e;default:return null}}function dh(e,n){if(vr)return e==="compositionend"||!as&&hu(e,n)?(e=iu(),Ui=Wl=Ca=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return cu&&n.locale!=="ko"?null:n.data;default:return null}}var hh={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 mu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!hh[e.type]:n==="textarea"}function gu(e,n,a,f){gr?yr?yr.push(f):yr=[f]:gr=f,n=Dl(n,"onChange"),0<n.length&&(a=new Hi("onChange","change",null,a,f),e.push({event:a,listeners:n}))}var qr=null,ei=null;function ph(e){qf(e,0)}function Pi(e){var n=Re(e);if(pr(n))return e}function yu(e,n){if(e==="change")return n}var vu=!1;if(ua){var rs;if(ua){var ls="oninput"in document;if(!ls){var bu=document.createElement("div");bu.setAttribute("oninput","return;"),ls=typeof bu.oninput=="function"}rs=ls}else rs=!1;vu=rs&&(!document.documentMode||9<document.documentMode)}function Eu(){qr&&(qr.detachEvent("onpropertychange",_u),ei=qr=null)}function _u(e){if(e.propertyName==="value"&&Pi(ei)){var n=[];gu(n,ei,e,Jl(e)),ru(ph,n)}}function mh(e,n,a){e==="focusin"?(Eu(),qr=n,ei=a,qr.attachEvent("onpropertychange",_u)):e==="focusout"&&Eu()}function gh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pi(ei)}function yh(e,n){if(e==="click")return Pi(n)}function vh(e,n){if(e==="input"||e==="change")return Pi(n)}function bh(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ln=typeof Object.is=="function"?Object.is:bh;function ti(e,n){if(Ln(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),f=Object.keys(n);if(a.length!==f.length)return!1;for(f=0;f<a.length;f++){var h=a[f];if(!Ze.call(n,h)||!Ln(e[h],n[h]))return!1}return!0}function xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Su(e,n){var a=xu(e);e=0;for(var f;a;){if(a.nodeType===3){if(f=e+a.textContent.length,e<=n&&f>=n)return{node:a,offset:n-e};e=f}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=xu(a)}}function Tu(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Tu(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ru(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ra(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=Ra(e.document)}return n}function ss(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Eh=ua&&"documentMode"in document&&11>=document.documentMode,br=null,os=null,ni=null,us=!1;function Au(e,n,a){var f=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;us||br==null||br!==Ra(f)||(f=br,"selectionStart"in f&&ss(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),ni&&ti(ni,f)||(ni=f,f=Dl(os,"onSelect"),0<f.length&&(n=new Hi("onSelect","select",null,n,a),e.push({event:n,listeners:f}),n.target=br)))}function Qa(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Er={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionrun:Qa("Transition","TransitionRun"),transitionstart:Qa("Transition","TransitionStart"),transitioncancel:Qa("Transition","TransitionCancel"),transitionend:Qa("Transition","TransitionEnd")},cs={},Cu={};ua&&(Cu=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);function Wa(e){if(cs[e])return cs[e];if(!Er[e])return e;var n=Er[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Cu)return cs[e]=n[a];return e}var wu=Wa("animationend"),Ou=Wa("animationiteration"),Du=Wa("animationstart"),_h=Wa("transitionrun"),xh=Wa("transitionstart"),Sh=Wa("transitioncancel"),Nu=Wa("transitionend"),Mu=new Map,fs="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(" ");fs.push("scrollEnd");function ea(e,n){Mu.set(e,n),ut(n,[e])}var Vi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Fn=[],_r=0,ds=0;function $i(){for(var e=_r,n=ds=_r=0;n<e;){var a=Fn[n];Fn[n++]=null;var f=Fn[n];Fn[n++]=null;var h=Fn[n];Fn[n++]=null;var p=Fn[n];if(Fn[n++]=null,f!==null&&h!==null){var x=f.pending;x===null?h.next=h:(h.next=x.next,x.next=h),f.pending=h}p!==0&&ju(a,h,p)}}function Zi(e,n,a,f){Fn[_r++]=e,Fn[_r++]=n,Fn[_r++]=a,Fn[_r++]=f,ds|=f,e.lanes|=f,e=e.alternate,e!==null&&(e.lanes|=f)}function hs(e,n,a,f){return Zi(e,n,a,f),Fi(e)}function qa(e,n){return Zi(e,null,null,n),Fi(e)}function ju(e,n,a){e.lanes|=a;var f=e.alternate;f!==null&&(f.lanes|=a);for(var h=!1,p=e.return;p!==null;)p.childLanes|=a,f=p.alternate,f!==null&&(f.childLanes|=a),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(h=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,h&&n!==null&&(h=31-Ke(a),e=p.hiddenUpdates,f=e[h],f===null?e[h]=[n]:f.push(n),n.lane=a|536870912),p):null}function Fi(e){if(50<Ti)throw Ti=0,So=null,Error(c(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var xr={};function Th(e,n,a,f){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=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(e,n,a,f){return new Th(e,n,a,f)}function ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,n){var a=e.alternate;return a===null?(a=Bn(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,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,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function ku(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,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,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Yi(e,n,a,f,h,p){var x=0;if(f=e,typeof e=="function")ps(e)&&(x=1);else if(typeof e=="string")x=Op(e,a,me.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=Bn(31,a,n,h),e.elementType=J,e.lanes=p,e;case R:return er(a.children,h,p,n);case w:x=8,h|=24;break;case j:return e=Bn(12,a,n,h|2),e.elementType=j,e.lanes=p,e;case Z:return e=Bn(13,a,n,h),e.elementType=Z,e.lanes=p,e;case F:return e=Bn(19,a,n,h),e.elementType=F,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:x=10;break e;case M:x=9;break e;case G:x=11;break e;case P:x=14;break e;case W:x=16,f=null;break e}x=29,a=Error(c(130,e===null?"null":typeof e,"")),f=null}return n=Bn(x,a,n,h),n.elementType=e,n.type=f,n.lanes=p,n}function er(e,n,a,f){return e=Bn(7,e,f,n),e.lanes=a,e}function ms(e,n,a){return e=Bn(6,e,null,n),e.lanes=a,e}function Lu(e){var n=Bn(18,null,null,0);return n.stateNode=e,n}function gs(e,n,a){return n=Bn(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Bu=new WeakMap;function Yn(e,n){if(typeof e=="object"&&e!==null){var a=Bu.get(e);return a!==void 0?a:(n={value:e,source:n,stack:hn(n)},Bu.set(e,n),n)}return{value:e,source:n,stack:hn(n)}}var Sr=[],Tr=0,Xi=null,ai=0,Xn=[],Jn=0,wa=null,aa=1,ra="";function fa(e,n){Sr[Tr++]=ai,Sr[Tr++]=Xi,Xi=e,ai=n}function Uu(e,n,a){Xn[Jn++]=aa,Xn[Jn++]=ra,Xn[Jn++]=wa,wa=e;var f=aa;e=ra;var h=32-Ke(f)-1;f&=~(1<<h),a+=1;var p=32-Ke(n)+h;if(30<p){var x=h-h%5;p=(f&(1<<x)-1).toString(32),f>>=x,h-=x,aa=1<<32-Ke(n)+h|a<<h|f,ra=p+e}else aa=1<<p|a<<h|f,ra=e}function ys(e){e.return!==null&&(fa(e,1),Uu(e,1,0))}function vs(e){for(;e===Xi;)Xi=Sr[--Tr],Sr[Tr]=null,ai=Sr[--Tr],Sr[Tr]=null;for(;e===wa;)wa=Xn[--Jn],Xn[Jn]=null,ra=Xn[--Jn],Xn[Jn]=null,aa=Xn[--Jn],Xn[Jn]=null}function zu(e,n){Xn[Jn++]=aa,Xn[Jn++]=ra,Xn[Jn++]=wa,aa=n.id,ra=n.overflow,wa=e}var pn=null,At=null,Je=!1,Oa=null,Kn=!1,bs=Error(c(519));function Da(e){var n=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ri(Yn(n,e)),bs}function Iu(e){var n=e.stateNode,a=e.type,f=e.memoizedProps;switch(n[Tt]=e,n[ot]=f,a){case"dialog":$e("cancel",n),$e("close",n);break;case"iframe":case"object":case"embed":$e("load",n);break;case"video":case"audio":for(a=0;a<Ai.length;a++)$e(Ai[a],n);break;case"source":$e("error",n);break;case"img":case"image":case"link":$e("error",n),$e("load",n);break;case"details":$e("toggle",n);break;case"input":$e("invalid",n),Yr(n,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":$e("invalid",n);break;case"textarea":$e("invalid",n),eu(n,f.value,f.defaultValue,f.children)}a=f.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||f.suppressHydrationWarning===!0||ad(n.textContent,a)?(f.popover!=null&&($e("beforetoggle",n),$e("toggle",n)),f.onScroll!=null&&$e("scroll",n),f.onScrollEnd!=null&&$e("scrollend",n),f.onClick!=null&&(n.onclick=oa),n=!0):n=!1,n||Da(e,!0)}function Hu(e){for(pn=e.return;pn;)switch(pn.tag){case 5:case 31:case 13:Kn=!1;return;case 27:case 3:Kn=!0;return;default:pn=pn.return}}function Rr(e){if(e!==pn)return!1;if(!Je)return Hu(e),Je=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||zo(e.type,e.memoizedProps)),a=!a),a&&At&&Da(e),Hu(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));At=dd(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));At=dd(e)}else n===27?(n=At,$a(e.type)?(e=Vo,Vo=null,At=e):At=n):At=pn?Wn(e.stateNode.nextSibling):null;return!0}function tr(){At=pn=null,Je=!1}function Es(){var e=Oa;return e!==null&&(Mn===null?Mn=e:Mn.push.apply(Mn,e),Oa=null),e}function ri(e){Oa===null?Oa=[e]:Oa.push(e)}var _s=L(null),nr=null,da=null;function Na(e,n,a){le(_s,n._currentValue),n._currentValue=a}function ha(e){e._currentValue=_s.current,te(_s)}function xs(e,n,a){for(;e!==null;){var f=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,f!==null&&(f.childLanes|=n)):f!==null&&(f.childLanes&n)!==n&&(f.childLanes|=n),e===a)break;e=e.return}}function Ss(e,n,a,f){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var p=h.dependencies;if(p!==null){var x=h.child;p=p.firstContext;e:for(;p!==null;){var C=p;p=h;for(var U=0;U<n.length;U++)if(C.context===n[U]){p.lanes|=a,C=p.alternate,C!==null&&(C.lanes|=a),xs(p.return,a,e),f||(x=null);break e}p=C.next}}else if(h.tag===18){if(x=h.return,x===null)throw Error(c(341));x.lanes|=a,p=x.alternate,p!==null&&(p.lanes|=a),xs(x,a,e),x=null}else x=h.child;if(x!==null)x.return=h;else for(x=h;x!==null;){if(x===e){x=null;break}if(h=x.sibling,h!==null){h.return=x.return,x=h;break}x=x.return}h=x}}function Ar(e,n,a,f){e=null;for(var h=n,p=!1;h!==null;){if(!p){if((h.flags&524288)!==0)p=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var x=h.alternate;if(x===null)throw Error(c(387));if(x=x.memoizedProps,x!==null){var C=h.type;Ln(h.pendingProps.value,x.value)||(e!==null?e.push(C):e=[C])}}else if(h===be.current){if(x=h.alternate,x===null)throw Error(c(387));x.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(Ni):e=[Ni])}h=h.return}e!==null&&Ss(n,e,a,f),n.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!Ln(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ar(e){nr=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mn(e){return Gu(nr,e)}function Ki(e,n){return nr===null&&ar(e),Gu(e,n)}function Gu(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},da===null){if(e===null)throw Error(c(308));da=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else da=da.next=n;return a}var Rh=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,f){e.push(f)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},Ah=t.unstable_scheduleCallback,Ch=t.unstable_NormalPriority,Ft={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ts(){return{controller:new Rh,data:new Map,refCount:0}}function ii(e){e.refCount--,e.refCount===0&&Ah(Ch,function(){e.controller.abort()})}var li=null,Rs=0,Cr=0,wr=null;function wh(e,n){if(li===null){var a=li=[];Rs=0,Cr=Oo(),wr={status:"pending",value:void 0,then:function(f){a.push(f)}}}return Rs++,n.then(Pu,Pu),n}function Pu(){if(--Rs===0&&li!==null){wr!==null&&(wr.status="fulfilled");var e=li;li=null,Cr=0,wr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Oh(e,n){var a=[],f={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return e.then(function(){f.status="fulfilled",f.value=n;for(var h=0;h<a.length;h++)(0,a[h])(n)},function(h){for(f.status="rejected",f.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),f}var Vu=$.S;$.S=function(e,n){Cf=at(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&wh(e,n),Vu!==null&&Vu(e,n)};var rr=L(null);function As(){var e=rr.current;return e!==null?e:_t.pooledCache}function Qi(e,n){n===null?le(rr,rr.current):le(rr,n.pool)}function $u(){var e=As();return e===null?null:{parent:Ft._currentValue,pool:e}}var Or=Error(c(460)),Cs=Error(c(474)),Wi=Error(c(542)),qi={then:function(){}};function Zu(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fu(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(oa,oa),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Xu(e),e;default:if(typeof n.status=="string")n.then(oa,oa);else{if(e=_t,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=n,e.status="pending",e.then(function(f){if(n.status==="pending"){var h=n;h.status="fulfilled",h.value=f}},function(f){if(n.status==="pending"){var h=n;h.status="rejected",h.reason=f}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Xu(e),e}throw lr=n,Or}}function ir(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(lr=a,Or):a}}var lr=null;function Yu(){if(lr===null)throw Error(c(459));var e=lr;return lr=null,e}function Xu(e){if(e===Or||e===Wi)throw Error(c(483))}var Dr=null,si=0;function el(e){var n=si;return si+=1,Dr===null&&(Dr=[]),Fu(Dr,e,n)}function oi(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function tl(e,n){throw n.$$typeof===T?Error(c(525)):(e=Object.prototype.toString.call(n),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ju(e){function n(V,H){if(e){var Y=V.deletions;Y===null?(V.deletions=[H],V.flags|=16):Y.push(H)}}function a(V,H){if(!e)return null;for(;H!==null;)n(V,H),H=H.sibling;return null}function f(V){for(var H=new Map;V!==null;)V.key!==null?H.set(V.key,V):H.set(V.index,V),V=V.sibling;return H}function h(V,H){return V=ca(V,H),V.index=0,V.sibling=null,V}function p(V,H,Y){return V.index=Y,e?(Y=V.alternate,Y!==null?(Y=Y.index,Y<H?(V.flags|=67108866,H):Y):(V.flags|=67108866,H)):(V.flags|=1048576,H)}function x(V){return e&&V.alternate===null&&(V.flags|=67108866),V}function C(V,H,Y,se){return H===null||H.tag!==6?(H=ms(Y,V.mode,se),H.return=V,H):(H=h(H,Y),H.return=V,H)}function U(V,H,Y,se){var Ne=Y.type;return Ne===R?ie(V,H,Y.props.children,se,Y.key):H!==null&&(H.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===W&&ir(Ne)===H.type)?(H=h(H,Y.props),oi(H,Y),H.return=V,H):(H=Yi(Y.type,Y.key,Y.props,null,V.mode,se),oi(H,Y),H.return=V,H)}function X(V,H,Y,se){return H===null||H.tag!==4||H.stateNode.containerInfo!==Y.containerInfo||H.stateNode.implementation!==Y.implementation?(H=gs(Y,V.mode,se),H.return=V,H):(H=h(H,Y.children||[]),H.return=V,H)}function ie(V,H,Y,se,Ne){return H===null||H.tag!==7?(H=er(Y,V.mode,se,Ne),H.return=V,H):(H=h(H,Y),H.return=V,H)}function oe(V,H,Y){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=ms(""+H,V.mode,Y),H.return=V,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case D:return Y=Yi(H.type,H.key,H.props,null,V.mode,Y),oi(Y,H),Y.return=V,Y;case N:return H=gs(H,V.mode,Y),H.return=V,H;case W:return H=ir(H),oe(V,H,Y)}if(ye(H)||ae(H))return H=er(H,V.mode,Y,null),H.return=V,H;if(typeof H.then=="function")return oe(V,el(H),Y);if(H.$$typeof===k)return oe(V,Ki(V,H),Y);tl(V,H)}return null}function K(V,H,Y,se){var Ne=H!==null?H.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Ne!==null?null:C(V,H,""+Y,se);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case D:return Y.key===Ne?U(V,H,Y,se):null;case N:return Y.key===Ne?X(V,H,Y,se):null;case W:return Y=ir(Y),K(V,H,Y,se)}if(ye(Y)||ae(Y))return Ne!==null?null:ie(V,H,Y,se,null);if(typeof Y.then=="function")return K(V,H,el(Y),se);if(Y.$$typeof===k)return K(V,H,Ki(V,Y),se);tl(V,Y)}return null}function q(V,H,Y,se,Ne){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return V=V.get(Y)||null,C(H,V,""+se,Ne);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case D:return V=V.get(se.key===null?Y:se.key)||null,U(H,V,se,Ne);case N:return V=V.get(se.key===null?Y:se.key)||null,X(H,V,se,Ne);case W:return se=ir(se),q(V,H,Y,se,Ne)}if(ye(se)||ae(se))return V=V.get(Y)||null,ie(H,V,se,Ne,null);if(typeof se.then=="function")return q(V,H,Y,el(se),Ne);if(se.$$typeof===k)return q(V,H,Y,Ki(H,se),Ne);tl(H,se)}return null}function Te(V,H,Y,se){for(var Ne=null,tt=null,Ae=H,Ie=H=0,Ye=null;Ae!==null&&Ie<Y.length;Ie++){Ae.index>Ie?(Ye=Ae,Ae=null):Ye=Ae.sibling;var nt=K(V,Ae,Y[Ie],se);if(nt===null){Ae===null&&(Ae=Ye);break}e&&Ae&&nt.alternate===null&&n(V,Ae),H=p(nt,H,Ie),tt===null?Ne=nt:tt.sibling=nt,tt=nt,Ae=Ye}if(Ie===Y.length)return a(V,Ae),Je&&fa(V,Ie),Ne;if(Ae===null){for(;Ie<Y.length;Ie++)Ae=oe(V,Y[Ie],se),Ae!==null&&(H=p(Ae,H,Ie),tt===null?Ne=Ae:tt.sibling=Ae,tt=Ae);return Je&&fa(V,Ie),Ne}for(Ae=f(Ae);Ie<Y.length;Ie++)Ye=q(Ae,V,Ie,Y[Ie],se),Ye!==null&&(e&&Ye.alternate!==null&&Ae.delete(Ye.key===null?Ie:Ye.key),H=p(Ye,H,Ie),tt===null?Ne=Ye:tt.sibling=Ye,tt=Ye);return e&&Ae.forEach(function(Ja){return n(V,Ja)}),Je&&fa(V,Ie),Ne}function je(V,H,Y,se){if(Y==null)throw Error(c(151));for(var Ne=null,tt=null,Ae=H,Ie=H=0,Ye=null,nt=Y.next();Ae!==null&&!nt.done;Ie++,nt=Y.next()){Ae.index>Ie?(Ye=Ae,Ae=null):Ye=Ae.sibling;var Ja=K(V,Ae,nt.value,se);if(Ja===null){Ae===null&&(Ae=Ye);break}e&&Ae&&Ja.alternate===null&&n(V,Ae),H=p(Ja,H,Ie),tt===null?Ne=Ja:tt.sibling=Ja,tt=Ja,Ae=Ye}if(nt.done)return a(V,Ae),Je&&fa(V,Ie),Ne;if(Ae===null){for(;!nt.done;Ie++,nt=Y.next())nt=oe(V,nt.value,se),nt!==null&&(H=p(nt,H,Ie),tt===null?Ne=nt:tt.sibling=nt,tt=nt);return Je&&fa(V,Ie),Ne}for(Ae=f(Ae);!nt.done;Ie++,nt=Y.next())nt=q(Ae,V,Ie,nt.value,se),nt!==null&&(e&&nt.alternate!==null&&Ae.delete(nt.key===null?Ie:nt.key),H=p(nt,H,Ie),tt===null?Ne=nt:tt.sibling=nt,tt=nt);return e&&Ae.forEach(function(Hp){return n(V,Hp)}),Je&&fa(V,Ie),Ne}function bt(V,H,Y,se){if(typeof Y=="object"&&Y!==null&&Y.type===R&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case D:e:{for(var Ne=Y.key;H!==null;){if(H.key===Ne){if(Ne=Y.type,Ne===R){if(H.tag===7){a(V,H.sibling),se=h(H,Y.props.children),se.return=V,V=se;break e}}else if(H.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===W&&ir(Ne)===H.type){a(V,H.sibling),se=h(H,Y.props),oi(se,Y),se.return=V,V=se;break e}a(V,H);break}else n(V,H);H=H.sibling}Y.type===R?(se=er(Y.props.children,V.mode,se,Y.key),se.return=V,V=se):(se=Yi(Y.type,Y.key,Y.props,null,V.mode,se),oi(se,Y),se.return=V,V=se)}return x(V);case N:e:{for(Ne=Y.key;H!==null;){if(H.key===Ne)if(H.tag===4&&H.stateNode.containerInfo===Y.containerInfo&&H.stateNode.implementation===Y.implementation){a(V,H.sibling),se=h(H,Y.children||[]),se.return=V,V=se;break e}else{a(V,H);break}else n(V,H);H=H.sibling}se=gs(Y,V.mode,se),se.return=V,V=se}return x(V);case W:return Y=ir(Y),bt(V,H,Y,se)}if(ye(Y))return Te(V,H,Y,se);if(ae(Y)){if(Ne=ae(Y),typeof Ne!="function")throw Error(c(150));return Y=Ne.call(Y),je(V,H,Y,se)}if(typeof Y.then=="function")return bt(V,H,el(Y),se);if(Y.$$typeof===k)return bt(V,H,Ki(V,Y),se);tl(V,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,H!==null&&H.tag===6?(a(V,H.sibling),se=h(H,Y),se.return=V,V=se):(a(V,H),se=ms(Y,V.mode,se),se.return=V,V=se),x(V)):a(V,H)}return function(V,H,Y,se){try{si=0;var Ne=bt(V,H,Y,se);return Dr=null,Ne}catch(Ae){if(Ae===Or||Ae===Wi)throw Ae;var tt=Bn(29,Ae,null,V.mode);return tt.lanes=se,tt.return=V,tt}}}var sr=Ju(!0),Ku=Ju(!1),Ma=!1;function ws(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Os(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ka(e,n,a){var f=e.updateQueue;if(f===null)return null;if(f=f.shared,(rt&2)!==0){var h=f.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),f.pending=n,n=Fi(e),ju(e,null,a),n}return Zi(e,f,n,a),Fi(e)}function ui(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var f=n.lanes;f&=e.pendingLanes,a|=f,n.lanes=a,nn(e,a)}}function Ds(e,n){var a=e.updateQueue,f=e.alternate;if(f!==null&&(f=f.updateQueue,a===f)){var h=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?h=p=x:p=p.next=x,a=a.next}while(a!==null);p===null?h=p=n:p=p.next=n}else h=p=n;a={baseState:f.baseState,firstBaseUpdate:h,lastBaseUpdate:p,shared:f.shared,callbacks:f.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Ns=!1;function ci(){if(Ns){var e=wr;if(e!==null)throw e}}function fi(e,n,a,f){Ns=!1;var h=e.updateQueue;Ma=!1;var p=h.firstBaseUpdate,x=h.lastBaseUpdate,C=h.shared.pending;if(C!==null){h.shared.pending=null;var U=C,X=U.next;U.next=null,x===null?p=X:x.next=X,x=U;var ie=e.alternate;ie!==null&&(ie=ie.updateQueue,C=ie.lastBaseUpdate,C!==x&&(C===null?ie.firstBaseUpdate=X:C.next=X,ie.lastBaseUpdate=U))}if(p!==null){var oe=h.baseState;x=0,ie=X=U=null,C=p;do{var K=C.lane&-536870913,q=K!==C.lane;if(q?(Fe&K)===K:(f&K)===K){K!==0&&K===Cr&&(Ns=!0),ie!==null&&(ie=ie.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var Te=e,je=C;K=n;var bt=a;switch(je.tag){case 1:if(Te=je.payload,typeof Te=="function"){oe=Te.call(bt,oe,K);break e}oe=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=je.payload,K=typeof Te=="function"?Te.call(bt,oe,K):Te,K==null)break e;oe=A({},oe,K);break e;case 2:Ma=!0}}K=C.callback,K!==null&&(e.flags|=64,q&&(e.flags|=8192),q=h.callbacks,q===null?h.callbacks=[K]:q.push(K))}else q={lane:K,tag:C.tag,payload:C.payload,callback:C.callback,next:null},ie===null?(X=ie=q,U=oe):ie=ie.next=q,x|=K;if(C=C.next,C===null){if(C=h.shared.pending,C===null)break;q=C,C=q.next,q.next=null,h.lastBaseUpdate=q,h.shared.pending=null}}while(!0);ie===null&&(U=oe),h.baseState=U,h.firstBaseUpdate=X,h.lastBaseUpdate=ie,p===null&&(h.shared.lanes=0),Ia|=x,e.lanes=x,e.memoizedState=oe}}function Qu(e,n){if(typeof e!="function")throw Error(c(191,e));e.call(n)}function Wu(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Qu(a[e],n)}var Nr=L(null),nl=L(0);function qu(e,n){e=xa,le(nl,e),le(Nr,n),xa=e|n.baseLanes}function Ms(){le(nl,xa),le(Nr,Nr.current)}function js(){xa=nl.current,te(Nr),te(nl)}var Un=L(null),Qn=null;function La(e){var n=e.alternate;le(Ht,Ht.current&1),le(Un,e),Qn===null&&(n===null||Nr.current!==null||n.memoizedState!==null)&&(Qn=e)}function ks(e){le(Ht,Ht.current),le(Un,e),Qn===null&&(Qn=e)}function ec(e){e.tag===22?(le(Ht,Ht.current),le(Un,e),Qn===null&&(Qn=e)):Ba()}function Ba(){le(Ht,Ht.current),le(Un,Un.current)}function zn(e){te(Un),Qn===e&&(Qn=null),te(Ht)}var Ht=L(0);function al(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Go(a)||Po(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var pa=0,ze=null,yt=null,Yt=null,rl=!1,Mr=!1,or=!1,il=0,di=0,jr=null,Dh=0;function Lt(){throw Error(c(321))}function Ls(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Ln(e[a],n[a]))return!1;return!0}function Bs(e,n,a,f,h,p){return pa=p,ze=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,$.H=e===null||e.memoizedState===null?Uc:Qs,or=!1,p=a(f,h),or=!1,Mr&&(p=nc(n,a,f,h)),tc(e),p}function tc(e){$.H=mi;var n=yt!==null&&yt.next!==null;if(pa=0,Yt=yt=ze=null,rl=!1,di=0,jr=null,n)throw Error(c(300));e===null||Xt||(e=e.dependencies,e!==null&&Ji(e)&&(Xt=!0))}function nc(e,n,a,f){ze=e;var h=0;do{if(Mr&&(jr=null),di=0,Mr=!1,25<=h)throw Error(c(301));if(h+=1,Yt=yt=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}$.H=zc,p=n(a,f)}while(Mr);return p}function Nh(){var e=$.H,n=e.useState()[0];return n=typeof n.then=="function"?hi(n):n,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(ze.flags|=1024),n}function Us(){var e=il!==0;return il=0,e}function zs(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function Is(e){if(rl){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}rl=!1}pa=0,Yt=yt=ze=null,Mr=!1,di=il=0,jr=null}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?ze.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function Gt(){if(yt===null){var e=ze.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var n=Yt===null?ze.memoizedState:Yt.next;if(n!==null)Yt=n,yt=e;else{if(e===null)throw ze.alternate===null?Error(c(467)):Error(c(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Yt===null?ze.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function ll(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hi(e){var n=di;return di+=1,jr===null&&(jr=[]),e=Fu(jr,e,n),n=ze,(Yt===null?n.memoizedState:Yt.next)===null&&(n=n.alternate,$.H=n===null||n.memoizedState===null?Uc:Qs),e}function sl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return hi(e);if(e.$$typeof===k)return mn(e)}throw Error(c(438,String(e)))}function Hs(e){var n=null,a=ze.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var f=ze.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(n={data:f.data.map(function(h){return h.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=ll(),ze.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),f=0;f<e;f++)a[f]=ne;return n.index++,a}function ma(e,n){return typeof n=="function"?n(e):n}function ol(e){var n=Gt();return Gs(n,yt,e)}function Gs(e,n,a){var f=e.queue;if(f===null)throw Error(c(311));f.lastRenderedReducer=a;var h=e.baseQueue,p=f.pending;if(p!==null){if(h!==null){var x=h.next;h.next=p.next,p.next=x}n.baseQueue=h=p,f.pending=null}if(p=e.baseState,h===null)e.memoizedState=p;else{n=h.next;var C=x=null,U=null,X=n,ie=!1;do{var oe=X.lane&-536870913;if(oe!==X.lane?(Fe&oe)===oe:(pa&oe)===oe){var K=X.revertLane;if(K===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),oe===Cr&&(ie=!0);else if((pa&K)===K){X=X.next,K===Cr&&(ie=!0);continue}else oe={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},U===null?(C=U=oe,x=p):U=U.next=oe,ze.lanes|=K,Ia|=K;oe=X.action,or&&a(p,oe),p=X.hasEagerState?X.eagerState:a(p,oe)}else K={lane:oe,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},U===null?(C=U=K,x=p):U=U.next=K,ze.lanes|=oe,Ia|=oe;X=X.next}while(X!==null&&X!==n);if(U===null?x=p:U.next=C,!Ln(p,e.memoizedState)&&(Xt=!0,ie&&(a=wr,a!==null)))throw a;e.memoizedState=p,e.baseState=x,e.baseQueue=U,f.lastRenderedState=p}return h===null&&(f.lanes=0),[e.memoizedState,f.dispatch]}function Ps(e){var n=Gt(),a=n.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var f=a.dispatch,h=a.pending,p=n.memoizedState;if(h!==null){a.pending=null;var x=h=h.next;do p=e(p,x.action),x=x.next;while(x!==h);Ln(p,n.memoizedState)||(Xt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,f]}function ac(e,n,a){var f=ze,h=Gt(),p=Je;if(p){if(a===void 0)throw Error(c(407));a=a()}else a=n();var x=!Ln((yt||h).memoizedState,a);if(x&&(h.memoizedState=a,Xt=!0),h=h.queue,Zs(lc.bind(null,f,h,e),[e]),h.getSnapshot!==n||x||Yt!==null&&Yt.memoizedState.tag&1){if(f.flags|=2048,kr(9,{destroy:void 0},ic.bind(null,f,h,a,n),null),_t===null)throw Error(c(349));p||(pa&127)!==0||rc(f,n,a)}return a}function rc(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=ze.updateQueue,n===null?(n=ll(),ze.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function ic(e,n,a,f){n.value=a,n.getSnapshot=f,sc(n)&&oc(e)}function lc(e,n,a){return a(function(){sc(n)&&oc(e)})}function sc(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Ln(e,a)}catch{return!0}}function oc(e){var n=qa(e,2);n!==null&&jn(n,e,2)}function Vs(e){var n=Rn();if(typeof e=="function"){var a=e;if(e=a(),or){ct(!0);try{a()}finally{ct(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},n}function uc(e,n,a,f){return e.baseState=a,Gs(e,yt,typeof f=="function"?f:ma)}function Mh(e,n,a,f,h){if(fl(e))throw Error(c(485));if(e=n.action,e!==null){var p={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){p.listeners.push(x)}};$.T!==null?a(!0):p.isTransition=!1,f(p),a=n.pending,a===null?(p.next=n.pending=p,cc(n,p)):(p.next=a.next,n.pending=a.next=p)}}function cc(e,n){var a=n.action,f=n.payload,h=e.state;if(n.isTransition){var p=$.T,x={};$.T=x;try{var C=a(h,f),U=$.S;U!==null&&U(x,C),fc(e,n,C)}catch(X){$s(e,n,X)}finally{p!==null&&x.types!==null&&(p.types=x.types),$.T=p}}else try{p=a(h,f),fc(e,n,p)}catch(X){$s(e,n,X)}}function fc(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(f){dc(e,n,f)},function(f){return $s(e,n,f)}):dc(e,n,a)}function dc(e,n,a){n.status="fulfilled",n.value=a,hc(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,cc(e,a)))}function $s(e,n,a){var f=e.pending;if(e.pending=null,f!==null){f=f.next;do n.status="rejected",n.reason=a,hc(n),n=n.next;while(n!==f)}e.action=null}function hc(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function pc(e,n){return n}function mc(e,n){if(Je){var a=_t.formState;if(a!==null){e:{var f=ze;if(Je){if(At){t:{for(var h=At,p=Kn;h.nodeType!==8;){if(!p){h=null;break t}if(h=Wn(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p==="F!"||p==="F"?h:null}if(h){At=Wn(h.nextSibling),f=h.data==="F!";break e}}Da(f)}f=!1}f&&(n=a[0])}}return a=Rn(),a.memoizedState=a.baseState=n,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pc,lastRenderedState:n},a.queue=f,a=kc.bind(null,ze,f),f.dispatch=a,f=Vs(!1),p=Ks.bind(null,ze,!1,f.queue),f=Rn(),h={state:n,dispatch:null,action:e,pending:null},f.queue=h,a=Mh.bind(null,ze,h,p,a),h.dispatch=a,f.memoizedState=e,[n,a,!1]}function gc(e){var n=Gt();return yc(n,yt,e)}function yc(e,n,a){if(n=Gs(e,n,pc)[0],e=ol(ma)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var f=hi(n)}catch(x){throw x===Or?Wi:x}else f=n;n=Gt();var h=n.queue,p=h.dispatch;return a!==n.memoizedState&&(ze.flags|=2048,kr(9,{destroy:void 0},jh.bind(null,h,a),null)),[f,p,e]}function jh(e,n){e.action=n}function vc(e){var n=Gt(),a=yt;if(a!==null)return yc(n,a,e);Gt(),n=n.memoizedState,a=Gt();var f=a.queue.dispatch;return a.memoizedState=e,[n,f,!1]}function kr(e,n,a,f){return e={tag:e,create:a,deps:f,inst:n,next:null},n=ze.updateQueue,n===null&&(n=ll(),ze.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(f=a.next,a.next=e,e.next=f,n.lastEffect=e),e}function bc(){return Gt().memoizedState}function ul(e,n,a,f){var h=Rn();ze.flags|=e,h.memoizedState=kr(1|n,{destroy:void 0},a,f===void 0?null:f)}function cl(e,n,a,f){var h=Gt();f=f===void 0?null:f;var p=h.memoizedState.inst;yt!==null&&f!==null&&Ls(f,yt.memoizedState.deps)?h.memoizedState=kr(n,p,a,f):(ze.flags|=e,h.memoizedState=kr(1|n,p,a,f))}function Ec(e,n){ul(8390656,8,e,n)}function Zs(e,n){cl(2048,8,e,n)}function kh(e){ze.flags|=4;var n=ze.updateQueue;if(n===null)n=ll(),ze.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function _c(e){var n=Gt().memoizedState;return kh({ref:n,nextImpl:e}),function(){if((rt&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}function xc(e,n){return cl(4,2,e,n)}function Sc(e,n){return cl(4,4,e,n)}function Tc(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Rc(e,n,a){a=a!=null?a.concat([e]):null,cl(4,4,Tc.bind(null,n,e),a)}function Fs(){}function Ac(e,n){var a=Gt();n=n===void 0?null:n;var f=a.memoizedState;return n!==null&&Ls(n,f[1])?f[0]:(a.memoizedState=[e,n],e)}function Cc(e,n){var a=Gt();n=n===void 0?null:n;var f=a.memoizedState;if(n!==null&&Ls(n,f[1]))return f[0];if(f=e(),or){ct(!0);try{e()}finally{ct(!1)}}return a.memoizedState=[f,n],f}function Ys(e,n,a){return a===void 0||(pa&1073741824)!==0&&(Fe&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=Of(),ze.lanes|=e,Ia|=e,a)}function wc(e,n,a,f){return Ln(a,n)?a:Nr.current!==null?(e=Ys(e,a,f),Ln(e,n)||(Xt=!0),e):(pa&42)===0||(pa&1073741824)!==0&&(Fe&261930)===0?(Xt=!0,e.memoizedState=a):(e=Of(),ze.lanes|=e,Ia|=e,n)}function Oc(e,n,a,f,h){var p=ue.p;ue.p=p!==0&&8>p?p:8;var x=$.T,C={};$.T=C,Ks(e,!1,n,a);try{var U=h(),X=$.S;if(X!==null&&X(C,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var ie=Oh(U,f);pi(e,n,ie,Gn(e))}else pi(e,n,f,Gn(e))}catch(oe){pi(e,n,{then:function(){},status:"rejected",reason:oe},Gn())}finally{ue.p=p,x!==null&&C.types!==null&&(x.types=C.types),$.T=x}}function Lh(){}function Xs(e,n,a,f){if(e.tag!==5)throw Error(c(476));var h=Dc(e).queue;Oc(e,h,n,Q,a===null?Lh:function(){return Nc(e),a(f)})}function Dc(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:Q},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Nc(e){var n=Dc(e);n.next===null&&(n=e.alternate.memoizedState),pi(e,n.next.queue,{},Gn())}function Js(){return mn(Ni)}function Mc(){return Gt().memoizedState}function jc(){return Gt().memoizedState}function Bh(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Gn();e=ja(a);var f=ka(n,e,a);f!==null&&(jn(f,n,a),ui(f,n,a)),n={cache:Ts()},e.payload=n;return}n=n.return}}function Uh(e,n,a){var f=Gn();a={lane:f,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fl(e)?Lc(n,a):(a=hs(e,n,a,f),a!==null&&(jn(a,e,f),Bc(a,n,f)))}function kc(e,n,a){var f=Gn();pi(e,n,a,f)}function pi(e,n,a,f){var h={lane:f,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(fl(e))Lc(n,h);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,C=p(x,a);if(h.hasEagerState=!0,h.eagerState=C,Ln(C,x))return Zi(e,n,h,0),_t===null&&$i(),!1}catch{}if(a=hs(e,n,h,f),a!==null)return jn(a,e,f),Bc(a,n,f),!0}return!1}function Ks(e,n,a,f){if(f={lane:2,revertLane:Oo(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},fl(e)){if(n)throw Error(c(479))}else n=hs(e,a,f,2),n!==null&&jn(n,e,2)}function fl(e){var n=e.alternate;return e===ze||n!==null&&n===ze}function Lc(e,n){Mr=rl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function Bc(e,n,a){if((a&4194048)!==0){var f=n.lanes;f&=e.pendingLanes,a|=f,n.lanes=a,nn(e,a)}}var mi={readContext:mn,use:sl,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt};mi.useEffectEvent=Lt;var Uc={readContext:mn,use:sl,useCallback:function(e,n){return Rn().memoizedState=[e,n===void 0?null:n],e},useContext:mn,useEffect:Ec,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,ul(4194308,4,Tc.bind(null,n,e),a)},useLayoutEffect:function(e,n){return ul(4194308,4,e,n)},useInsertionEffect:function(e,n){ul(4,2,e,n)},useMemo:function(e,n){var a=Rn();n=n===void 0?null:n;var f=e();if(or){ct(!0);try{e()}finally{ct(!1)}}return a.memoizedState=[f,n],f},useReducer:function(e,n,a){var f=Rn();if(a!==void 0){var h=a(n);if(or){ct(!0);try{a(n)}finally{ct(!1)}}}else h=n;return f.memoizedState=f.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},f.queue=e,e=e.dispatch=Uh.bind(null,ze,e),[f.memoizedState,e]},useRef:function(e){var n=Rn();return e={current:e},n.memoizedState=e},useState:function(e){e=Vs(e);var n=e.queue,a=kc.bind(null,ze,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Fs,useDeferredValue:function(e,n){var a=Rn();return Ys(a,e,n)},useTransition:function(){var e=Vs(!1);return e=Oc.bind(null,ze,e.queue,!0,!1),Rn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var f=ze,h=Rn();if(Je){if(a===void 0)throw Error(c(407));a=a()}else{if(a=n(),_t===null)throw Error(c(349));(Fe&127)!==0||rc(f,n,a)}h.memoizedState=a;var p={value:a,getSnapshot:n};return h.queue=p,Ec(lc.bind(null,f,p,e),[e]),f.flags|=2048,kr(9,{destroy:void 0},ic.bind(null,f,p,a,n),null),a},useId:function(){var e=Rn(),n=_t.identifierPrefix;if(Je){var a=ra,f=aa;a=(f&~(1<<32-Ke(f)-1)).toString(32)+a,n="_"+n+"R_"+a,a=il++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=Dh++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Js,useFormState:mc,useActionState:mc,useOptimistic:function(e){var n=Rn();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Ks.bind(null,ze,!0,a),a.dispatch=n,[e,n]},useMemoCache:Hs,useCacheRefresh:function(){return Rn().memoizedState=Bh.bind(null,ze)},useEffectEvent:function(e){var n=Rn(),a={impl:e};return n.memoizedState=a,function(){if((rt&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},Qs={readContext:mn,use:sl,useCallback:Ac,useContext:mn,useEffect:Zs,useImperativeHandle:Rc,useInsertionEffect:xc,useLayoutEffect:Sc,useMemo:Cc,useReducer:ol,useRef:bc,useState:function(){return ol(ma)},useDebugValue:Fs,useDeferredValue:function(e,n){var a=Gt();return wc(a,yt.memoizedState,e,n)},useTransition:function(){var e=ol(ma)[0],n=Gt().memoizedState;return[typeof e=="boolean"?e:hi(e),n]},useSyncExternalStore:ac,useId:Mc,useHostTransitionStatus:Js,useFormState:gc,useActionState:gc,useOptimistic:function(e,n){var a=Gt();return uc(a,yt,e,n)},useMemoCache:Hs,useCacheRefresh:jc};Qs.useEffectEvent=_c;var zc={readContext:mn,use:sl,useCallback:Ac,useContext:mn,useEffect:Zs,useImperativeHandle:Rc,useInsertionEffect:xc,useLayoutEffect:Sc,useMemo:Cc,useReducer:Ps,useRef:bc,useState:function(){return Ps(ma)},useDebugValue:Fs,useDeferredValue:function(e,n){var a=Gt();return yt===null?Ys(a,e,n):wc(a,yt.memoizedState,e,n)},useTransition:function(){var e=Ps(ma)[0],n=Gt().memoizedState;return[typeof e=="boolean"?e:hi(e),n]},useSyncExternalStore:ac,useId:Mc,useHostTransitionStatus:Js,useFormState:vc,useActionState:vc,useOptimistic:function(e,n){var a=Gt();return yt!==null?uc(a,yt,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Hs,useCacheRefresh:jc};zc.useEffectEvent=_c;function Ws(e,n,a,f){n=e.memoizedState,a=a(f,n),a=a==null?n:A({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var qs={enqueueSetState:function(e,n,a){e=e._reactInternals;var f=Gn(),h=ja(f);h.payload=n,a!=null&&(h.callback=a),n=ka(e,h,f),n!==null&&(jn(n,e,f),ui(n,e,f))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var f=Gn(),h=ja(f);h.tag=1,h.payload=n,a!=null&&(h.callback=a),n=ka(e,h,f),n!==null&&(jn(n,e,f),ui(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Gn(),f=ja(a);f.tag=2,n!=null&&(f.callback=n),n=ka(e,f,a),n!==null&&(jn(n,e,a),ui(n,e,a))}};function Ic(e,n,a,f,h,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(f,p,x):n.prototype&&n.prototype.isPureReactComponent?!ti(a,f)||!ti(h,p):!0}function Hc(e,n,a,f){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,f),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,f),n.state!==e&&qs.enqueueReplaceState(n,n.state,null)}function ur(e,n){var a=n;if("ref"in n){a={};for(var f in n)f!=="ref"&&(a[f]=n[f])}if(e=e.defaultProps){a===n&&(a=A({},a));for(var h in e)a[h]===void 0&&(a[h]=e[h])}return a}function Gc(e){Vi(e)}function Pc(e){console.error(e)}function Vc(e){Vi(e)}function dl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(f){setTimeout(function(){throw f})}}function $c(e,n,a){try{var f=e.onCaughtError;f(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function eo(e,n,a){return a=ja(a),a.tag=3,a.payload={element:null},a.callback=function(){dl(e,n)},a}function Zc(e){return e=ja(e),e.tag=3,e}function Fc(e,n,a,f){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var p=f.value;e.payload=function(){return h(p)},e.callback=function(){$c(n,a,f)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){$c(n,a,f),typeof h!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var C=f.stack;this.componentDidCatch(f.value,{componentStack:C!==null?C:""})})}function zh(e,n,a,f,h){if(a.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(n=a.alternate,n!==null&&Ar(n,a,h,!0),a=Un.current,a!==null){switch(a.tag){case 31:case 13:return Qn===null?Tl():a.alternate===null&&Bt===0&&(Bt=3),a.flags&=-257,a.flags|=65536,a.lanes=h,f===qi?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([f]):n.add(f),Ao(e,f,h)),!1;case 22:return a.flags|=65536,f===qi?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([f])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([f]):a.add(f)),Ao(e,f,h)),!1}throw Error(c(435,a.tag))}return Ao(e,f,h),Tl(),!1}if(Je)return n=Un.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=h,f!==bs&&(e=Error(c(422),{cause:f}),ri(Yn(e,a)))):(f!==bs&&(n=Error(c(423),{cause:f}),ri(Yn(n,a))),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,f=Yn(f,a),h=eo(e.stateNode,f,h),Ds(e,h),Bt!==4&&(Bt=2)),!1;var p=Error(c(520),{cause:f});if(p=Yn(p,a),Si===null?Si=[p]:Si.push(p),Bt!==4&&(Bt=2),n===null)return!0;f=Yn(f,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=h&-h,a.lanes|=e,e=eo(a.stateNode,f,e),Ds(a,e),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ha===null||!Ha.has(p))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Zc(h),Fc(h,e,a,f),Ds(a,h),!1}a=a.return}while(a!==null);return!1}var to=Error(c(461)),Xt=!1;function gn(e,n,a,f){n.child=e===null?Ku(n,null,a,f):sr(n,e.child,a,f)}function Yc(e,n,a,f,h){a=a.render;var p=n.ref;if("ref"in f){var x={};for(var C in f)C!=="ref"&&(x[C]=f[C])}else x=f;return ar(n),f=Bs(e,n,a,x,p,h),C=Us(),e!==null&&!Xt?(zs(e,n,h),ga(e,n,h)):(Je&&C&&ys(n),n.flags|=1,gn(e,n,f,h),n.child)}function Xc(e,n,a,f,h){if(e===null){var p=a.type;return typeof p=="function"&&!ps(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,Jc(e,n,p,f,h)):(e=Yi(a.type,null,f,n,n.mode,h),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!uo(e,h)){var x=p.memoizedProps;if(a=a.compare,a=a!==null?a:ti,a(x,f)&&e.ref===n.ref)return ga(e,n,h)}return n.flags|=1,e=ca(p,f),e.ref=n.ref,e.return=n,n.child=e}function Jc(e,n,a,f,h){if(e!==null){var p=e.memoizedProps;if(ti(p,f)&&e.ref===n.ref)if(Xt=!1,n.pendingProps=f=p,uo(e,h))(e.flags&131072)!==0&&(Xt=!0);else return n.lanes=e.lanes,ga(e,n,h)}return no(e,n,a,f,h)}function Kc(e,n,a,f){var h=f.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,e!==null){for(f=n.child=e.child,h=0;f!==null;)h=h|f.lanes|f.childLanes,f=f.sibling;f=h&~p}else f=0,n.child=null;return Qc(e,n,p,a,f)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qi(n,p!==null?p.cachePool:null),p!==null?qu(n,p):Ms(),ec(n);else return f=n.lanes=536870912,Qc(e,n,p!==null?p.baseLanes|a:a,a,f)}else p!==null?(Qi(n,p.cachePool),qu(n,p),Ba(),n.memoizedState=null):(e!==null&&Qi(n,null),Ms(),Ba());return gn(e,n,h,a),n.child}function gi(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Qc(e,n,a,f,h){var p=As();return p=p===null?null:{parent:Ft._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},e!==null&&Qi(n,null),Ms(),ec(n),e!==null&&Ar(e,n,f,!0),n.childLanes=h,null}function hl(e,n){return n=ml({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Wc(e,n,a){return sr(n,e.child,null,a),e=hl(n,n.pendingProps),e.flags|=2,zn(n),n.memoizedState=null,e}function Ih(e,n,a){var f=n.pendingProps,h=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Je){if(f.mode==="hidden")return e=hl(n,f),n.lanes=536870912,gi(null,e);if(ks(n),(e=At)?(e=fd(e,Kn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:wa!==null?{id:aa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Lu(e),a.return=n,n.child=a,pn=n,At=null)):e=null,e===null)throw Da(n);return n.lanes=536870912,null}return hl(n,f)}var p=e.memoizedState;if(p!==null){var x=p.dehydrated;if(ks(n),h)if(n.flags&256)n.flags&=-257,n=Wc(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(c(558));else if(Xt||Ar(e,n,a,!1),h=(a&e.childLanes)!==0,Xt||h){if(f=_t,f!==null&&(x=$t(f,a),x!==0&&x!==p.retryLane))throw p.retryLane=x,qa(e,x),jn(f,e,x),to;Tl(),n=Wc(e,n,a)}else e=p.treeContext,At=Wn(x.nextSibling),pn=n,Je=!0,Oa=null,Kn=!1,e!==null&&zu(n,e),n=hl(n,f),n.flags|=4096;return n}return e=ca(e.child,{mode:f.mode,children:f.children}),e.ref=n.ref,n.child=e,e.return=n,e}function pl(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function no(e,n,a,f,h){return ar(n),a=Bs(e,n,a,f,void 0,h),f=Us(),e!==null&&!Xt?(zs(e,n,h),ga(e,n,h)):(Je&&f&&ys(n),n.flags|=1,gn(e,n,a,h),n.child)}function qc(e,n,a,f,h,p){return ar(n),n.updateQueue=null,a=nc(n,f,a,h),tc(e),f=Us(),e!==null&&!Xt?(zs(e,n,p),ga(e,n,p)):(Je&&f&&ys(n),n.flags|=1,gn(e,n,a,p),n.child)}function ef(e,n,a,f,h){if(ar(n),n.stateNode===null){var p=xr,x=a.contextType;typeof x=="object"&&x!==null&&(p=mn(x)),p=new a(f,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=qs,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=f,p.state=n.memoizedState,p.refs={},ws(n),x=a.contextType,p.context=typeof x=="object"&&x!==null?mn(x):xr,p.state=n.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Ws(n,a,x,f),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(x=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),x!==p.state&&qs.enqueueReplaceState(p,p.state,null),fi(n,f,p,h),ci(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),f=!0}else if(e===null){p=n.stateNode;var C=n.memoizedProps,U=ur(a,C);p.props=U;var X=p.context,ie=a.contextType;x=xr,typeof ie=="object"&&ie!==null&&(x=mn(ie));var oe=a.getDerivedStateFromProps;ie=typeof oe=="function"||typeof p.getSnapshotBeforeUpdate=="function",C=n.pendingProps!==C,ie||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(C||X!==x)&&Hc(n,p,f,x),Ma=!1;var K=n.memoizedState;p.state=K,fi(n,f,p,h),ci(),X=n.memoizedState,C||K!==X||Ma?(typeof oe=="function"&&(Ws(n,a,oe,f),X=n.memoizedState),(U=Ma||Ic(n,a,U,f,K,X,x))?(ie||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=f,n.memoizedState=X),p.props=f,p.state=X,p.context=x,f=U):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),f=!1)}else{p=n.stateNode,Os(e,n),x=n.memoizedProps,ie=ur(a,x),p.props=ie,oe=n.pendingProps,K=p.context,X=a.contextType,U=xr,typeof X=="object"&&X!==null&&(U=mn(X)),C=a.getDerivedStateFromProps,(X=typeof C=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x!==oe||K!==U)&&Hc(n,p,f,U),Ma=!1,K=n.memoizedState,p.state=K,fi(n,f,p,h),ci();var q=n.memoizedState;x!==oe||K!==q||Ma||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof C=="function"&&(Ws(n,a,C,f),q=n.memoizedState),(ie=Ma||Ic(n,a,ie,f,K,q,U)||e!==null&&e.dependencies!==null&&Ji(e.dependencies))?(X||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(f,q,U),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(f,q,U)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),n.memoizedProps=f,n.memoizedState=q),p.props=f,p.state=q,p.context=U,f=ie):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),f=!1)}return p=f,pl(e,n),f=(n.flags&128)!==0,p||f?(p=n.stateNode,a=f&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&f?(n.child=sr(n,e.child,null,h),n.child=sr(n,null,a,h)):gn(e,n,a,h),n.memoizedState=p.state,e=n.child):e=ga(e,n,h),e}function tf(e,n,a,f){return tr(),n.flags|=256,gn(e,n,a,f),n.child}var ao={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ro(e){return{baseLanes:e,cachePool:$u()}}function io(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Hn),e}function nf(e,n,a){var f=n.pendingProps,h=!1,p=(n.flags&128)!==0,x;if((x=p)||(x=e!==null&&e.memoizedState===null?!1:(Ht.current&2)!==0),x&&(h=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Je){if(h?La(n):Ba(),(e=At)?(e=fd(e,Kn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:wa!==null?{id:aa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Lu(e),a.return=n,n.child=a,pn=n,At=null)):e=null,e===null)throw Da(n);return Po(e)?n.lanes=32:n.lanes=536870912,null}var C=f.children;return f=f.fallback,h?(Ba(),h=n.mode,C=ml({mode:"hidden",children:C},h),f=er(f,h,a,null),C.return=n,f.return=n,C.sibling=f,n.child=C,f=n.child,f.memoizedState=ro(a),f.childLanes=io(e,x,a),n.memoizedState=ao,gi(null,f)):(La(n),lo(n,C))}var U=e.memoizedState;if(U!==null&&(C=U.dehydrated,C!==null)){if(p)n.flags&256?(La(n),n.flags&=-257,n=so(e,n,a)):n.memoizedState!==null?(Ba(),n.child=e.child,n.flags|=128,n=null):(Ba(),C=f.fallback,h=n.mode,f=ml({mode:"visible",children:f.children},h),C=er(C,h,a,null),C.flags|=2,f.return=n,C.return=n,f.sibling=C,n.child=f,sr(n,e.child,null,a),f=n.child,f.memoizedState=ro(a),f.childLanes=io(e,x,a),n.memoizedState=ao,n=gi(null,f));else if(La(n),Po(C)){if(x=C.nextSibling&&C.nextSibling.dataset,x)var X=x.dgst;x=X,f=Error(c(419)),f.stack="",f.digest=x,ri({value:f,source:null,stack:null}),n=so(e,n,a)}else if(Xt||Ar(e,n,a,!1),x=(a&e.childLanes)!==0,Xt||x){if(x=_t,x!==null&&(f=$t(x,a),f!==0&&f!==U.retryLane))throw U.retryLane=f,qa(e,f),jn(x,e,f),to;Go(C)||Tl(),n=so(e,n,a)}else Go(C)?(n.flags|=192,n.child=e.child,n=null):(e=U.treeContext,At=Wn(C.nextSibling),pn=n,Je=!0,Oa=null,Kn=!1,e!==null&&zu(n,e),n=lo(n,f.children),n.flags|=4096);return n}return h?(Ba(),C=f.fallback,h=n.mode,U=e.child,X=U.sibling,f=ca(U,{mode:"hidden",children:f.children}),f.subtreeFlags=U.subtreeFlags&65011712,X!==null?C=ca(X,C):(C=er(C,h,a,null),C.flags|=2),C.return=n,f.return=n,f.sibling=C,n.child=f,gi(null,f),f=n.child,C=e.child.memoizedState,C===null?C=ro(a):(h=C.cachePool,h!==null?(U=Ft._currentValue,h=h.parent!==U?{parent:U,pool:U}:h):h=$u(),C={baseLanes:C.baseLanes|a,cachePool:h}),f.memoizedState=C,f.childLanes=io(e,x,a),n.memoizedState=ao,gi(e.child,f)):(La(n),a=e.child,e=a.sibling,a=ca(a,{mode:"visible",children:f.children}),a.return=n,a.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=a,n.memoizedState=null,a)}function lo(e,n){return n=ml({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function ml(e,n){return e=Bn(22,e,null,n),e.lanes=0,e}function so(e,n,a){return sr(n,e.child,null,a),e=lo(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function af(e,n,a){e.lanes|=n;var f=e.alternate;f!==null&&(f.lanes|=n),xs(e.return,n,a)}function oo(e,n,a,f,h,p){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:f,tail:a,tailMode:h,treeForkCount:p}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=a,x.tailMode=h,x.treeForkCount=p)}function rf(e,n,a){var f=n.pendingProps,h=f.revealOrder,p=f.tail;f=f.children;var x=Ht.current,C=(x&2)!==0;if(C?(x=x&1|2,n.flags|=128):x&=1,le(Ht,x),gn(e,n,f,a),f=Je?ai:0,!C&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&af(e,a,n);else if(e.tag===19)af(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(h){case"forwards":for(a=n.child,h=null;a!==null;)e=a.alternate,e!==null&&al(e)===null&&(h=a),a=a.sibling;a=h,a===null?(h=n.child,n.child=null):(h=a.sibling,a.sibling=null),oo(n,!1,h,a,p,f);break;case"backwards":case"unstable_legacy-backwards":for(a=null,h=n.child,n.child=null;h!==null;){if(e=h.alternate,e!==null&&al(e)===null){n.child=h;break}e=h.sibling,h.sibling=a,a=h,h=e}oo(n,!0,a,null,p,f);break;case"together":oo(n,!1,null,null,void 0,f);break;default:n.memoizedState=null}return n.child}function ga(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Ia|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ar(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(c(153));if(n.child!==null){for(e=n.child,a=ca(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ca(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function uo(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ji(e)))}function Hh(e,n,a){switch(n.tag){case 3:De(n,n.stateNode.containerInfo),Na(n,Ft,e.memoizedState.cache),tr();break;case 27:case 5:Ge(n);break;case 4:De(n,n.stateNode.containerInfo);break;case 10:Na(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,ks(n),null;break;case 13:var f=n.memoizedState;if(f!==null)return f.dehydrated!==null?(La(n),n.flags|=128,null):(a&n.child.childLanes)!==0?nf(e,n,a):(La(n),e=ga(e,n,a),e!==null?e.sibling:null);La(n);break;case 19:var h=(e.flags&128)!==0;if(f=(a&n.childLanes)!==0,f||(Ar(e,n,a,!1),f=(a&n.childLanes)!==0),h){if(f)return rf(e,n,a);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),le(Ht,Ht.current),f)break;return null;case 22:return n.lanes=0,Kc(e,n,a,n.pendingProps);case 24:Na(n,Ft,e.memoizedState.cache)}return ga(e,n,a)}function lf(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Xt=!0;else{if(!uo(e,a)&&(n.flags&128)===0)return Xt=!1,Hh(e,n,a);Xt=(e.flags&131072)!==0}else Xt=!1,Je&&(n.flags&1048576)!==0&&Uu(n,ai,n.index);switch(n.lanes=0,n.tag){case 16:e:{var f=n.pendingProps;if(e=ir(n.elementType),n.type=e,typeof e=="function")ps(e)?(f=ur(e,f),n.tag=1,n=ef(null,n,e,f,a)):(n.tag=0,n=no(null,n,e,f,a));else{if(e!=null){var h=e.$$typeof;if(h===G){n.tag=11,n=Yc(null,n,e,f,a);break e}else if(h===P){n.tag=14,n=Xc(null,n,e,f,a);break e}}throw n=pe(e)||e,Error(c(306,n,""))}}return n;case 0:return no(e,n,n.type,n.pendingProps,a);case 1:return f=n.type,h=ur(f,n.pendingProps),ef(e,n,f,h,a);case 3:e:{if(De(n,n.stateNode.containerInfo),e===null)throw Error(c(387));f=n.pendingProps;var p=n.memoizedState;h=p.element,Os(e,n),fi(n,f,null,a);var x=n.memoizedState;if(f=x.cache,Na(n,Ft,f),f!==p.cache&&Ss(n,[Ft],a,!0),ci(),f=x.element,p.isDehydrated)if(p={element:f,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=tf(e,n,f,a);break e}else if(f!==h){h=Yn(Error(c(424)),n),ri(h),n=tf(e,n,f,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(At=Wn(e.firstChild),pn=n,Je=!0,Oa=null,Kn=!0,a=Ku(n,null,f,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(tr(),f===h){n=ga(e,n,a);break e}gn(e,n,f,a)}n=n.child}return n;case 26:return pl(e,n),e===null?(a=yd(n.type,null,n.pendingProps,null))?n.memoizedState=a:Je||(a=n.type,e=n.pendingProps,f=Nl(ge.current).createElement(a),f[Tt]=n,f[ot]=e,yn(f,a,e),Se(f),n.stateNode=f):n.memoizedState=yd(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ge(n),e===null&&Je&&(f=n.stateNode=pd(n.type,n.pendingProps,ge.current),pn=n,Kn=!0,h=At,$a(n.type)?(Vo=h,At=Wn(f.firstChild)):At=h),gn(e,n,n.pendingProps.children,a),pl(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Je&&((h=f=At)&&(f=gp(f,n.type,n.pendingProps,Kn),f!==null?(n.stateNode=f,pn=n,At=Wn(f.firstChild),Kn=!1,h=!0):h=!1),h||Da(n)),Ge(n),h=n.type,p=n.pendingProps,x=e!==null?e.memoizedProps:null,f=p.children,zo(h,p)?f=null:x!==null&&zo(h,x)&&(n.flags|=32),n.memoizedState!==null&&(h=Bs(e,n,Nh,null,null,a),Ni._currentValue=h),pl(e,n),gn(e,n,f,a),n.child;case 6:return e===null&&Je&&((e=a=At)&&(a=yp(a,n.pendingProps,Kn),a!==null?(n.stateNode=a,pn=n,At=null,e=!0):e=!1),e||Da(n)),null;case 13:return nf(e,n,a);case 4:return De(n,n.stateNode.containerInfo),f=n.pendingProps,e===null?n.child=sr(n,null,f,a):gn(e,n,f,a),n.child;case 11:return Yc(e,n,n.type,n.pendingProps,a);case 7:return gn(e,n,n.pendingProps,a),n.child;case 8:return gn(e,n,n.pendingProps.children,a),n.child;case 12:return gn(e,n,n.pendingProps.children,a),n.child;case 10:return f=n.pendingProps,Na(n,n.type,f.value),gn(e,n,f.children,a),n.child;case 9:return h=n.type._context,f=n.pendingProps.children,ar(n),h=mn(h),f=f(h),n.flags|=1,gn(e,n,f,a),n.child;case 14:return Xc(e,n,n.type,n.pendingProps,a);case 15:return Jc(e,n,n.type,n.pendingProps,a);case 19:return rf(e,n,a);case 31:return Ih(e,n,a);case 22:return Kc(e,n,a,n.pendingProps);case 24:return ar(n),f=mn(Ft),e===null?(h=As(),h===null&&(h=_t,p=Ts(),h.pooledCache=p,p.refCount++,p!==null&&(h.pooledCacheLanes|=a),h=p),n.memoizedState={parent:f,cache:h},ws(n),Na(n,Ft,h)):((e.lanes&a)!==0&&(Os(e,n),fi(n,null,null,a),ci()),h=e.memoizedState,p=n.memoizedState,h.parent!==f?(h={parent:f,cache:f},n.memoizedState=h,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=h),Na(n,Ft,f)):(f=p.cache,Na(n,Ft,f),f!==h.cache&&Ss(n,[Ft],a,!0))),gn(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(c(156,n.tag))}function ya(e){e.flags|=4}function co(e,n,a,f,h){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(h&335544128)===h)if(e.stateNode.complete)e.flags|=8192;else if(jf())e.flags|=8192;else throw lr=qi,Cs}else e.flags&=-16777217}function sf(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!xd(n))if(jf())e.flags|=8192;else throw lr=qi,Cs}function gl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?qt():536870912,e.lanes|=n,zr|=n)}function yi(e,n){if(!Je)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:f.sibling=null}}function Ct(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,f=0;if(n)for(var h=e.child;h!==null;)a|=h.lanes|h.childLanes,f|=h.subtreeFlags&65011712,f|=h.flags&65011712,h.return=e,h=h.sibling;else for(h=e.child;h!==null;)a|=h.lanes|h.childLanes,f|=h.subtreeFlags,f|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=f,e.childLanes=a,n}function Gh(e,n,a){var f=n.pendingProps;switch(vs(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(n),null;case 1:return Ct(n),null;case 3:return a=n.stateNode,f=null,e!==null&&(f=e.memoizedState.cache),n.memoizedState.cache!==f&&(n.flags|=2048),ha(Ft),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Rr(n)?ya(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Es())),Ct(n),null;case 26:var h=n.type,p=n.memoizedState;return e===null?(ya(n),p!==null?(Ct(n),sf(n,p)):(Ct(n),co(n,h,null,f,a))):p?p!==e.memoizedState?(ya(n),Ct(n),sf(n,p)):(Ct(n),n.flags&=-16777217):(e=e.memoizedProps,e!==f&&ya(n),Ct(n),co(n,h,e,f,a)),null;case 27:if(lt(n),a=ge.current,h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&ya(n);else{if(!f){if(n.stateNode===null)throw Error(c(166));return Ct(n),null}e=me.current,Rr(n)?Iu(n):(e=pd(h,f,a),n.stateNode=e,ya(n))}return Ct(n),null;case 5:if(lt(n),h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&ya(n);else{if(!f){if(n.stateNode===null)throw Error(c(166));return Ct(n),null}if(p=me.current,Rr(n))Iu(n);else{var x=Nl(ge.current);switch(p){case 1:p=x.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:p=x.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":p=x.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":p=x.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":p=x.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof f.is=="string"?x.createElement("select",{is:f.is}):x.createElement("select"),f.multiple?p.multiple=!0:f.size&&(p.size=f.size);break;default:p=typeof f.is=="string"?x.createElement(h,{is:f.is}):x.createElement(h)}}p[Tt]=n,p[ot]=f;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)p.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=p;e:switch(yn(p,h,f),h){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&ya(n)}}return Ct(n),co(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==f&&ya(n);else{if(typeof f!="string"&&n.stateNode===null)throw Error(c(166));if(e=ge.current,Rr(n)){if(e=n.stateNode,a=n.memoizedProps,f=null,h=pn,h!==null)switch(h.tag){case 27:case 5:f=h.memoizedProps}e[Tt]=n,e=!!(e.nodeValue===a||f!==null&&f.suppressHydrationWarning===!0||ad(e.nodeValue,a)),e||Da(n,!0)}else e=Nl(e).createTextNode(f),e[Tt]=n,n.stateNode=e}return Ct(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(f=Rr(n),a!==null){if(e===null){if(!f)throw Error(c(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Tt]=n}else tr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ct(n),e=!1}else a=Es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(zn(n),n):(zn(n),null);if((n.flags&128)!==0)throw Error(c(558))}return Ct(n),null;case 13:if(f=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=Rr(n),f!==null&&f.dehydrated!==null){if(e===null){if(!h)throw Error(c(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(c(317));h[Tt]=n}else tr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ct(n),h=!1}else h=Es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return n.flags&256?(zn(n),n):(zn(n),null)}return zn(n),(n.flags&128)!==0?(n.lanes=a,n):(a=f!==null,e=e!==null&&e.memoizedState!==null,a&&(f=n.child,h=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(h=f.alternate.memoizedState.cachePool.pool),p=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(p=f.memoizedState.cachePool.pool),p!==h&&(f.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),gl(n,n.updateQueue),Ct(n),null);case 4:return we(),e===null&&jo(n.stateNode.containerInfo),Ct(n),null;case 10:return ha(n.type),Ct(n),null;case 19:if(te(Ht),f=n.memoizedState,f===null)return Ct(n),null;if(h=(n.flags&128)!==0,p=f.rendering,p===null)if(h)yi(f,!1);else{if(Bt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=al(e),p!==null){for(n.flags|=128,yi(f,!1),e=p.updateQueue,n.updateQueue=e,gl(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)ku(a,e),a=a.sibling;return le(Ht,Ht.current&1|2),Je&&fa(n,f.treeForkCount),n.child}e=e.sibling}f.tail!==null&&at()>_l&&(n.flags|=128,h=!0,yi(f,!1),n.lanes=4194304)}else{if(!h)if(e=al(p),e!==null){if(n.flags|=128,h=!0,e=e.updateQueue,n.updateQueue=e,gl(n,e),yi(f,!0),f.tail===null&&f.tailMode==="hidden"&&!p.alternate&&!Je)return Ct(n),null}else 2*at()-f.renderingStartTime>_l&&a!==536870912&&(n.flags|=128,h=!0,yi(f,!1),n.lanes=4194304);f.isBackwards?(p.sibling=n.child,n.child=p):(e=f.last,e!==null?e.sibling=p:n.child=p,f.last=p)}return f.tail!==null?(e=f.tail,f.rendering=e,f.tail=e.sibling,f.renderingStartTime=at(),e.sibling=null,a=Ht.current,le(Ht,h?a&1|2:a&1),Je&&fa(n,f.treeForkCount),e):(Ct(n),null);case 22:case 23:return zn(n),js(),f=n.memoizedState!==null,e!==null?e.memoizedState!==null!==f&&(n.flags|=8192):f&&(n.flags|=8192),f?(a&536870912)!==0&&(n.flags&128)===0&&(Ct(n),n.subtreeFlags&6&&(n.flags|=8192)):Ct(n),a=n.updateQueue,a!==null&&gl(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),f=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(f=n.memoizedState.cachePool.pool),f!==a&&(n.flags|=2048),e!==null&&te(rr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),ha(Ft),Ct(n),null;case 25:return null;case 30:return null}throw Error(c(156,n.tag))}function Ph(e,n){switch(vs(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ha(Ft),we(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return lt(n),null;case 31:if(n.memoizedState!==null){if(zn(n),n.alternate===null)throw Error(c(340));tr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(zn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(c(340));tr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return te(Ht),null;case 4:return we(),null;case 10:return ha(n.type),null;case 22:case 23:return zn(n),js(),e!==null&&te(rr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return ha(Ft),null;case 25:return null;default:return null}}function of(e,n){switch(vs(n),n.tag){case 3:ha(Ft),we();break;case 26:case 27:case 5:lt(n);break;case 4:we();break;case 31:n.memoizedState!==null&&zn(n);break;case 13:zn(n);break;case 19:te(Ht);break;case 10:ha(n.type);break;case 22:case 23:zn(n),js(),e!==null&&te(rr);break;case 24:ha(Ft)}}function vi(e,n){try{var a=n.updateQueue,f=a!==null?a.lastEffect:null;if(f!==null){var h=f.next;a=h;do{if((a.tag&e)===e){f=void 0;var p=a.create,x=a.inst;f=p(),x.destroy=f}a=a.next}while(a!==h)}}catch(C){ht(n,n.return,C)}}function Ua(e,n,a){try{var f=n.updateQueue,h=f!==null?f.lastEffect:null;if(h!==null){var p=h.next;f=p;do{if((f.tag&e)===e){var x=f.inst,C=x.destroy;if(C!==void 0){x.destroy=void 0,h=n;var U=a,X=C;try{X()}catch(ie){ht(h,U,ie)}}}f=f.next}while(f!==p)}}catch(ie){ht(n,n.return,ie)}}function uf(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{Wu(n,a)}catch(f){ht(e,e.return,f)}}}function cf(e,n,a){a.props=ur(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(f){ht(e,n,f)}}function bi(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var f=e.stateNode;break;case 30:f=e.stateNode;break;default:f=e.stateNode}typeof a=="function"?e.refCleanup=a(f):a.current=f}}catch(h){ht(e,n,h)}}function ia(e,n){var a=e.ref,f=e.refCleanup;if(a!==null)if(typeof f=="function")try{f()}catch(h){ht(e,n,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){ht(e,n,h)}else a.current=null}function ff(e){var n=e.type,a=e.memoizedProps,f=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&f.focus();break e;case"img":a.src?f.src=a.src:a.srcSet&&(f.srcset=a.srcSet)}}catch(h){ht(e,e.return,h)}}function fo(e,n,a){try{var f=e.stateNode;cp(f,e.type,a,n),f[ot]=n}catch(h){ht(e,e.return,h)}}function df(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$a(e.type)||e.tag===4}function ho(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||df(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&&$a(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 po(e,n,a){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=oa));else if(f!==4&&(f===27&&$a(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(po(e,n,a),e=e.sibling;e!==null;)po(e,n,a),e=e.sibling}function yl(e,n,a){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(f!==4&&(f===27&&$a(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(yl(e,n,a),e=e.sibling;e!==null;)yl(e,n,a),e=e.sibling}function hf(e){var n=e.stateNode,a=e.memoizedProps;try{for(var f=e.type,h=n.attributes;h.length;)n.removeAttributeNode(h[0]);yn(n,f,a),n[Tt]=e,n[ot]=a}catch(p){ht(e,e.return,p)}}var va=!1,Jt=!1,mo=!1,pf=typeof WeakSet=="function"?WeakSet:Set,dn=null;function Vh(e,n){if(e=e.containerInfo,Bo=zl,e=Ru(e),ss(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var f=a.getSelection&&a.getSelection();if(f&&f.rangeCount!==0){a=f.anchorNode;var h=f.anchorOffset,p=f.focusNode;f=f.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var x=0,C=-1,U=-1,X=0,ie=0,oe=e,K=null;t:for(;;){for(var q;oe!==a||h!==0&&oe.nodeType!==3||(C=x+h),oe!==p||f!==0&&oe.nodeType!==3||(U=x+f),oe.nodeType===3&&(x+=oe.nodeValue.length),(q=oe.firstChild)!==null;)K=oe,oe=q;for(;;){if(oe===e)break t;if(K===a&&++X===h&&(C=x),K===p&&++ie===f&&(U=x),(q=oe.nextSibling)!==null)break;oe=K,K=oe.parentNode}oe=q}a=C===-1||U===-1?null:{start:C,end:U}}else a=null}a=a||{start:0,end:0}}else a=null;for(Uo={focusedElem:e,selectionRange:a},zl=!1,dn=n;dn!==null;)if(n=dn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,dn=e;else for(;dn!==null;){switch(n=dn,p=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)h=e[a],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,a=n,h=p.memoizedProps,p=p.memoizedState,f=a.stateNode;try{var Te=ur(a.type,h);e=f.getSnapshotBeforeUpdate(Te,p),f.__reactInternalSnapshotBeforeUpdate=e}catch(je){ht(a,a.return,je)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)Ho(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ho(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(c(163))}if(e=n.sibling,e!==null){e.return=n.return,dn=e;break}dn=n.return}}function mf(e,n,a){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Ea(e,a),f&4&&vi(5,a);break;case 1:if(Ea(e,a),f&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(x){ht(a,a.return,x)}else{var h=ur(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(h,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){ht(a,a.return,x)}}f&64&&uf(a),f&512&&bi(a,a.return);break;case 3:if(Ea(e,a),f&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Wu(e,n)}catch(x){ht(a,a.return,x)}}break;case 27:n===null&&f&4&&hf(a);case 26:case 5:Ea(e,a),n===null&&f&4&&ff(a),f&512&&bi(a,a.return);break;case 12:Ea(e,a);break;case 31:Ea(e,a),f&4&&vf(e,a);break;case 13:Ea(e,a),f&4&&bf(e,a),f&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Wh.bind(null,a),vp(e,a))));break;case 22:if(f=a.memoizedState!==null||va,!f){n=n!==null&&n.memoizedState!==null||Jt,h=va;var p=Jt;va=f,(Jt=n)&&!p?_a(e,a,(a.subtreeFlags&8772)!==0):Ea(e,a),va=h,Jt=p}break;case 30:break;default:Ea(e,a)}}function gf(e){var n=e.alternate;n!==null&&(e.alternate=null,gf(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&z(n)),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 Ot=null,On=!1;function ba(e,n,a){for(a=a.child;a!==null;)yf(e,n,a),a=a.sibling}function yf(e,n,a){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(un,a)}catch{}switch(a.tag){case 26:Jt||ia(a,n),ba(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Jt||ia(a,n);var f=Ot,h=On;$a(a.type)&&(Ot=a.stateNode,On=!1),ba(e,n,a),wi(a.stateNode),Ot=f,On=h;break;case 5:Jt||ia(a,n);case 6:if(f=Ot,h=On,Ot=null,ba(e,n,a),Ot=f,On=h,Ot!==null)if(On)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(a.stateNode)}catch(p){ht(a,n,p)}else try{Ot.removeChild(a.stateNode)}catch(p){ht(a,n,p)}break;case 18:Ot!==null&&(On?(e=Ot,ud(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Fr(e)):ud(Ot,a.stateNode));break;case 4:f=Ot,h=On,Ot=a.stateNode.containerInfo,On=!0,ba(e,n,a),Ot=f,On=h;break;case 0:case 11:case 14:case 15:Ua(2,a,n),Jt||Ua(4,a,n),ba(e,n,a);break;case 1:Jt||(ia(a,n),f=a.stateNode,typeof f.componentWillUnmount=="function"&&cf(a,n,f)),ba(e,n,a);break;case 21:ba(e,n,a);break;case 22:Jt=(f=Jt)||a.memoizedState!==null,ba(e,n,a),Jt=f;break;default:ba(e,n,a)}}function vf(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fr(e)}catch(a){ht(n,n.return,a)}}}function bf(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fr(e)}catch(a){ht(n,n.return,a)}}function $h(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new pf),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new pf),n;default:throw Error(c(435,e.tag))}}function vl(e,n){var a=$h(e);n.forEach(function(f){if(!a.has(f)){a.add(f);var h=qh.bind(null,e,f);f.then(h,h)}})}function Dn(e,n){var a=n.deletions;if(a!==null)for(var f=0;f<a.length;f++){var h=a[f],p=e,x=n,C=x;e:for(;C!==null;){switch(C.tag){case 27:if($a(C.type)){Ot=C.stateNode,On=!1;break e}break;case 5:Ot=C.stateNode,On=!1;break e;case 3:case 4:Ot=C.stateNode.containerInfo,On=!0;break e}C=C.return}if(Ot===null)throw Error(c(160));yf(p,x,h),Ot=null,On=!1,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Ef(n,e),n=n.sibling}var ta=null;function Ef(e,n){var a=e.alternate,f=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dn(n,e),Nn(e),f&4&&(Ua(3,e,e.return),vi(3,e),Ua(5,e,e.return));break;case 1:Dn(n,e),Nn(e),f&512&&(Jt||a===null||ia(a,a.return)),f&64&&va&&(e=e.updateQueue,e!==null&&(f=e.callbacks,f!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?f:a.concat(f))));break;case 26:var h=ta;if(Dn(n,e),Nn(e),f&512&&(Jt||a===null||ia(a,a.return)),f&4){var p=a!==null?a.memoizedState:null;if(f=e.memoizedState,a===null)if(f===null)if(e.stateNode===null){e:{f=e.type,a=e.memoizedProps,h=h.ownerDocument||h;t:switch(f){case"title":p=h.getElementsByTagName("title")[0],(!p||p[Ee]||p[Tt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=h.createElement(f),h.head.insertBefore(p,h.querySelector("head > title"))),yn(p,f,a),p[Tt]=e,Se(p),f=p;break e;case"link":var x=Ed("link","href",h).get(f+(a.href||""));if(x){for(var C=0;C<x.length;C++)if(p=x[C],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(C,1);break t}}p=h.createElement(f),yn(p,f,a),h.head.appendChild(p);break;case"meta":if(x=Ed("meta","content",h).get(f+(a.content||""))){for(C=0;C<x.length;C++)if(p=x[C],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(C,1);break t}}p=h.createElement(f),yn(p,f,a),h.head.appendChild(p);break;default:throw Error(c(468,f))}p[Tt]=e,Se(p),f=p}e.stateNode=f}else _d(h,e.type,e.stateNode);else e.stateNode=bd(h,f,e.memoizedProps);else p!==f?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,f===null?_d(h,e.type,e.stateNode):bd(h,f,e.memoizedProps)):f===null&&e.stateNode!==null&&fo(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dn(n,e),Nn(e),f&512&&(Jt||a===null||ia(a,a.return)),a!==null&&f&4&&fo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dn(n,e),Nn(e),f&512&&(Jt||a===null||ia(a,a.return)),e.flags&32){h=e.stateNode;try{sa(h,"")}catch(Te){ht(e,e.return,Te)}}f&4&&e.stateNode!=null&&(h=e.memoizedProps,fo(e,h,a!==null?a.memoizedProps:h)),f&1024&&(mo=!0);break;case 6:if(Dn(n,e),Nn(e),f&4){if(e.stateNode===null)throw Error(c(162));f=e.memoizedProps,a=e.stateNode;try{a.nodeValue=f}catch(Te){ht(e,e.return,Te)}}break;case 3:if(kl=null,h=ta,ta=Ml(n.containerInfo),Dn(n,e),ta=h,Nn(e),f&4&&a!==null&&a.memoizedState.isDehydrated)try{Fr(n.containerInfo)}catch(Te){ht(e,e.return,Te)}mo&&(mo=!1,_f(e));break;case 4:f=ta,ta=Ml(e.stateNode.containerInfo),Dn(n,e),Nn(e),ta=f;break;case 12:Dn(n,e),Nn(e);break;case 31:Dn(n,e),Nn(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,vl(e,f)));break;case 13:Dn(n,e),Nn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(El=at()),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,vl(e,f)));break;case 22:h=e.memoizedState!==null;var U=a!==null&&a.memoizedState!==null,X=va,ie=Jt;if(va=X||h,Jt=ie||U,Dn(n,e),Jt=ie,va=X,Nn(e),f&8192)e:for(n=e.stateNode,n._visibility=h?n._visibility&-2:n._visibility|1,h&&(a===null||U||va||Jt||cr(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){U=a=n;try{if(p=U.stateNode,h)x=p.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{C=U.stateNode;var oe=U.memoizedProps.style,K=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;C.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Te){ht(U,U.return,Te)}}}else if(n.tag===6){if(a===null){U=n;try{U.stateNode.nodeValue=h?"":U.memoizedProps}catch(Te){ht(U,U.return,Te)}}}else if(n.tag===18){if(a===null){U=n;try{var q=U.stateNode;h?cd(q,!0):cd(U.stateNode,!1)}catch(Te){ht(U,U.return,Te)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}f&4&&(f=e.updateQueue,f!==null&&(a=f.retryQueue,a!==null&&(f.retryQueue=null,vl(e,a))));break;case 19:Dn(n,e),Nn(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,vl(e,f)));break;case 30:break;case 21:break;default:Dn(n,e),Nn(e)}}function Nn(e){var n=e.flags;if(n&2){try{for(var a,f=e.return;f!==null;){if(df(f)){a=f;break}f=f.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var h=a.stateNode,p=ho(e);yl(e,p,h);break;case 5:var x=a.stateNode;a.flags&32&&(sa(x,""),a.flags&=-33);var C=ho(e);yl(e,C,x);break;case 3:case 4:var U=a.stateNode.containerInfo,X=ho(e);po(e,X,U);break;default:throw Error(c(161))}}catch(ie){ht(e,e.return,ie)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function _f(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;_f(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Ea(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)mf(e,n.alternate,n),n=n.sibling}function cr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ua(4,n,n.return),cr(n);break;case 1:ia(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&cf(n,n.return,a),cr(n);break;case 27:wi(n.stateNode);case 26:case 5:ia(n,n.return),cr(n);break;case 22:n.memoizedState===null&&cr(n);break;case 30:cr(n);break;default:cr(n)}e=e.sibling}}function _a(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var f=n.alternate,h=e,p=n,x=p.flags;switch(p.tag){case 0:case 11:case 15:_a(h,p,a),vi(4,p);break;case 1:if(_a(h,p,a),f=p,h=f.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(X){ht(f,f.return,X)}if(f=p,h=f.updateQueue,h!==null){var C=f.stateNode;try{var U=h.shared.hiddenCallbacks;if(U!==null)for(h.shared.hiddenCallbacks=null,h=0;h<U.length;h++)Qu(U[h],C)}catch(X){ht(f,f.return,X)}}a&&x&64&&uf(p),bi(p,p.return);break;case 27:hf(p);case 26:case 5:_a(h,p,a),a&&f===null&&x&4&&ff(p),bi(p,p.return);break;case 12:_a(h,p,a);break;case 31:_a(h,p,a),a&&x&4&&vf(h,p);break;case 13:_a(h,p,a),a&&x&4&&bf(h,p);break;case 22:p.memoizedState===null&&_a(h,p,a),bi(p,p.return);break;case 30:break;default:_a(h,p,a)}n=n.sibling}}function go(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ii(a))}function yo(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ii(e))}function na(e,n,a,f){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)xf(e,n,a,f),n=n.sibling}function xf(e,n,a,f){var h=n.flags;switch(n.tag){case 0:case 11:case 15:na(e,n,a,f),h&2048&&vi(9,n);break;case 1:na(e,n,a,f);break;case 3:na(e,n,a,f),h&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ii(e)));break;case 12:if(h&2048){na(e,n,a,f),e=n.stateNode;try{var p=n.memoizedProps,x=p.id,C=p.onPostCommit;typeof C=="function"&&C(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(U){ht(n,n.return,U)}}else na(e,n,a,f);break;case 31:na(e,n,a,f);break;case 13:na(e,n,a,f);break;case 23:break;case 22:p=n.stateNode,x=n.alternate,n.memoizedState!==null?p._visibility&2?na(e,n,a,f):Ei(e,n):p._visibility&2?na(e,n,a,f):(p._visibility|=2,Lr(e,n,a,f,(n.subtreeFlags&10256)!==0||!1)),h&2048&&go(x,n);break;case 24:na(e,n,a,f),h&2048&&yo(n.alternate,n);break;default:na(e,n,a,f)}}function Lr(e,n,a,f,h){for(h=h&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,x=n,C=a,U=f,X=x.flags;switch(x.tag){case 0:case 11:case 15:Lr(p,x,C,U,h),vi(8,x);break;case 23:break;case 22:var ie=x.stateNode;x.memoizedState!==null?ie._visibility&2?Lr(p,x,C,U,h):Ei(p,x):(ie._visibility|=2,Lr(p,x,C,U,h)),h&&X&2048&&go(x.alternate,x);break;case 24:Lr(p,x,C,U,h),h&&X&2048&&yo(x.alternate,x);break;default:Lr(p,x,C,U,h)}n=n.sibling}}function Ei(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,f=n,h=f.flags;switch(f.tag){case 22:Ei(a,f),h&2048&&go(f.alternate,f);break;case 24:Ei(a,f),h&2048&&yo(f.alternate,f);break;default:Ei(a,f)}n=n.sibling}}var _i=8192;function Br(e,n,a){if(e.subtreeFlags&_i)for(e=e.child;e!==null;)Sf(e,n,a),e=e.sibling}function Sf(e,n,a){switch(e.tag){case 26:Br(e,n,a),e.flags&_i&&e.memoizedState!==null&&Dp(a,ta,e.memoizedState,e.memoizedProps);break;case 5:Br(e,n,a);break;case 3:case 4:var f=ta;ta=Ml(e.stateNode.containerInfo),Br(e,n,a),ta=f;break;case 22:e.memoizedState===null&&(f=e.alternate,f!==null&&f.memoizedState!==null?(f=_i,_i=16777216,Br(e,n,a),_i=f):Br(e,n,a));break;default:Br(e,n,a)}}function Tf(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function xi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var f=n[a];dn=f,Af(f,e)}Tf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rf(e),e=e.sibling}function Rf(e){switch(e.tag){case 0:case 11:case 15:xi(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:xi(e);break;case 12:xi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,bl(e)):xi(e);break;default:xi(e)}}function bl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var f=n[a];dn=f,Af(f,e)}Tf(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ua(8,n,n.return),bl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,bl(n));break;default:bl(n)}e=e.sibling}}function Af(e,n){for(;dn!==null;){var a=dn;switch(a.tag){case 0:case 11:case 15:Ua(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var f=a.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:ii(a.memoizedState.cache)}if(f=a.child,f!==null)f.return=a,dn=f;else e:for(a=e;dn!==null;){f=dn;var h=f.sibling,p=f.return;if(gf(f),f===a){dn=null;break e}if(h!==null){h.return=p,dn=h;break e}dn=p}}}var Zh={getCacheForType:function(e){var n=mn(Ft),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return mn(Ft).controller.signal}},Fh=typeof WeakMap=="function"?WeakMap:Map,rt=0,_t=null,Ve=null,Fe=0,dt=0,In=null,za=!1,Ur=!1,vo=!1,xa=0,Bt=0,Ia=0,dr=0,bo=0,Hn=0,zr=0,Si=null,Mn=null,Eo=!1,El=0,Cf=0,_l=1/0,xl=null,Ha=null,rn=0,Ga=null,Ir=null,Sa=0,_o=0,xo=null,wf=null,Ti=0,So=null;function Gn(){return(rt&2)!==0&&Fe!==0?Fe&-Fe:$.T!==null?Oo():Sn()}function Of(){if(Hn===0)if((Fe&536870912)===0||Je){var e=et;et<<=1,(et&3932160)===0&&(et=262144),Hn=e}else Hn=536870912;return e=Un.current,e!==null&&(e.flags|=32),Hn}function jn(e,n,a){(e===_t&&(dt===2||dt===9)||e.cancelPendingCommit!==null)&&(Hr(e,0),Pa(e,Fe,Hn,!1)),xn(e,a),((rt&2)===0||e!==_t)&&(e===_t&&((rt&2)===0&&(dr|=a),Bt===4&&Pa(e,Fe,Hn,!1)),la(e))}function Df(e,n,a){if((rt&6)!==0)throw Error(c(327));var f=!a&&(n&127)===0&&(n&e.expiredLanes)===0||En(e,n),h=f?Jh(e,n):Ro(e,n,!0),p=f;do{if(h===0){Ur&&!f&&Pa(e,n,0,!1);break}else{if(a=e.current.alternate,p&&!Yh(a)){h=Ro(e,n,!1),p=!1;continue}if(h===2){if(p=n,e.errorRecoveryDisabledLanes&p)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var C=e;h=Si;var U=C.current.memoizedState.isDehydrated;if(U&&(Hr(C,x).flags|=256),x=Ro(C,x,!1),x!==2){if(vo&&!U){C.errorRecoveryDisabledLanes|=p,dr|=p,h=4;break e}p=Mn,Mn=h,p!==null&&(Mn===null?Mn=p:Mn.push.apply(Mn,p))}h=x}if(p=!1,h!==2)continue}}if(h===1){Hr(e,0),Pa(e,n,0,!0);break}e:{switch(f=e,p=h,p){case 0:case 1:throw Error(c(345));case 4:if((n&4194048)!==n)break;case 6:Pa(f,n,Hn,!za);break e;case 2:Mn=null;break;case 3:case 5:break;default:throw Error(c(329))}if((n&62914560)===n&&(h=El+300-at(),10<h)){if(Pa(f,n,Hn,!za),bn(f,0,!0)!==0)break e;Sa=n,f.timeoutHandle=sd(Nf.bind(null,f,a,Mn,xl,Eo,n,Hn,dr,zr,za,p,"Throttled",-0,0),h);break e}Nf(f,a,Mn,xl,Eo,n,Hn,dr,zr,za,p,null,-0,0)}}break}while(!0);la(e)}function Nf(e,n,a,f,h,p,x,C,U,X,ie,oe,K,q){if(e.timeoutHandle=-1,oe=n.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oa},Sf(n,p,oe);var Te=(p&62914560)===p?El-at():(p&4194048)===p?Cf-at():0;if(Te=Np(oe,Te),Te!==null){Sa=p,e.cancelPendingCommit=Te(If.bind(null,e,n,p,a,f,h,x,C,U,ie,oe,null,K,q)),Pa(e,p,x,!X);return}}If(e,n,p,a,f,h,x,C,U)}function Yh(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var f=0;f<a.length;f++){var h=a[f],p=h.getSnapshot;h=h.value;try{if(!Ln(p(),h))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Pa(e,n,a,f){n&=~bo,n&=~dr,e.suspendedLanes|=n,e.pingedLanes&=~n,f&&(e.warmLanes|=n),f=e.expirationTimes;for(var h=n;0<h;){var p=31-Ke(h),x=1<<p;f[p]=-1,h&=~x}a!==0&&tn(e,a,n)}function Sl(){return(rt&6)===0?(Ri(0),!1):!0}function To(){if(Ve!==null){if(dt===0)var e=Ve.return;else e=Ve,da=nr=null,Is(e),Dr=null,si=0,e=Ve;for(;e!==null;)of(e.alternate,e),e=e.return;Ve=null}}function Hr(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,hp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Sa=0,To(),_t=e,Ve=a=ca(e.current,null),Fe=n,dt=0,In=null,za=!1,Ur=En(e,n),vo=!1,zr=Hn=bo=dr=Ia=Bt=0,Mn=Si=null,Eo=!1,(n&8)!==0&&(n|=n&32);var f=e.entangledLanes;if(f!==0)for(e=e.entanglements,f&=n;0<f;){var h=31-Ke(f),p=1<<h;n|=e[h],f&=~p}return xa=n,$i(),a}function Mf(e,n){ze=null,$.H=mi,n===Or||n===Wi?(n=Yu(),dt=3):n===Cs?(n=Yu(),dt=4):dt=n===to?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,In=n,Ve===null&&(Bt=1,dl(e,Yn(n,e.current)))}function jf(){var e=Un.current;return e===null?!0:(Fe&4194048)===Fe?Qn===null:(Fe&62914560)===Fe||(Fe&536870912)!==0?e===Qn:!1}function kf(){var e=$.H;return $.H=mi,e===null?mi:e}function Lf(){var e=$.A;return $.A=Zh,e}function Tl(){Bt=4,za||(Fe&4194048)!==Fe&&Un.current!==null||(Ur=!0),(Ia&134217727)===0&&(dr&134217727)===0||_t===null||Pa(_t,Fe,Hn,!1)}function Ro(e,n,a){var f=rt;rt|=2;var h=kf(),p=Lf();(_t!==e||Fe!==n)&&(xl=null,Hr(e,n)),n=!1;var x=Bt;e:do try{if(dt!==0&&Ve!==null){var C=Ve,U=In;switch(dt){case 8:To(),x=6;break e;case 3:case 2:case 9:case 6:Un.current===null&&(n=!0);var X=dt;if(dt=0,In=null,Gr(e,C,U,X),a&&Ur){x=0;break e}break;default:X=dt,dt=0,In=null,Gr(e,C,U,X)}}Xh(),x=Bt;break}catch(ie){Mf(e,ie)}while(!0);return n&&e.shellSuspendCounter++,da=nr=null,rt=f,$.H=h,$.A=p,Ve===null&&(_t=null,Fe=0,$i()),x}function Xh(){for(;Ve!==null;)Bf(Ve)}function Jh(e,n){var a=rt;rt|=2;var f=kf(),h=Lf();_t!==e||Fe!==n?(xl=null,_l=at()+500,Hr(e,n)):Ur=En(e,n);e:do try{if(dt!==0&&Ve!==null){n=Ve;var p=In;t:switch(dt){case 1:dt=0,In=null,Gr(e,n,p,1);break;case 2:case 9:if(Zu(p)){dt=0,In=null,Uf(n);break}n=function(){dt!==2&&dt!==9||_t!==e||(dt=7),la(e)},p.then(n,n);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:Zu(p)?(dt=0,In=null,Uf(n)):(dt=0,In=null,Gr(e,n,p,7));break;case 5:var x=null;switch(Ve.tag){case 26:x=Ve.memoizedState;case 5:case 27:var C=Ve;if(x?xd(x):C.stateNode.complete){dt=0,In=null;var U=C.sibling;if(U!==null)Ve=U;else{var X=C.return;X!==null?(Ve=X,Rl(X)):Ve=null}break t}}dt=0,In=null,Gr(e,n,p,5);break;case 6:dt=0,In=null,Gr(e,n,p,6);break;case 8:To(),Bt=6;break e;default:throw Error(c(462))}}Kh();break}catch(ie){Mf(e,ie)}while(!0);return da=nr=null,$.H=f,$.A=h,rt=a,Ve!==null?0:(_t=null,Fe=0,$i(),Bt)}function Kh(){for(;Ve!==null&&!Qt();)Bf(Ve)}function Bf(e){var n=lf(e.alternate,e,xa);e.memoizedProps=e.pendingProps,n===null?Rl(e):Ve=n}function Uf(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=qc(a,n,n.pendingProps,n.type,void 0,Fe);break;case 11:n=qc(a,n,n.pendingProps,n.type.render,n.ref,Fe);break;case 5:Is(n);default:of(a,n),n=Ve=ku(n,xa),n=lf(a,n,xa)}e.memoizedProps=e.pendingProps,n===null?Rl(e):Ve=n}function Gr(e,n,a,f){da=nr=null,Is(n),Dr=null,si=0;var h=n.return;try{if(zh(e,h,n,a,Fe)){Bt=1,dl(e,Yn(a,e.current)),Ve=null;return}}catch(p){if(h!==null)throw Ve=h,p;Bt=1,dl(e,Yn(a,e.current)),Ve=null;return}n.flags&32768?(Je||f===1?e=!0:Ur||(Fe&536870912)!==0?e=!1:(za=e=!0,(f===2||f===9||f===3||f===6)&&(f=Un.current,f!==null&&f.tag===13&&(f.flags|=16384))),zf(n,e)):Rl(n)}function Rl(e){var n=e;do{if((n.flags&32768)!==0){zf(n,za);return}e=n.return;var a=Gh(n.alternate,n,xa);if(a!==null){Ve=a;return}if(n=n.sibling,n!==null){Ve=n;return}Ve=n=e}while(n!==null);Bt===0&&(Bt=5)}function zf(e,n){do{var a=Ph(e.alternate,e);if(a!==null){a.flags&=32767,Ve=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){Ve=e;return}Ve=e=a}while(e!==null);Bt=6,Ve=null}function If(e,n,a,f,h,p,x,C,U){e.cancelPendingCommit=null;do Al();while(rn!==0);if((rt&6)!==0)throw Error(c(327));if(n!==null){if(n===e.current)throw Error(c(177));if(p=n.lanes|n.childLanes,p|=ds,$n(e,a,p,x,C,U),e===_t&&(Ve=_t=null,Fe=0),Ir=n,Ga=e,Sa=a,_o=p,xo=h,wf=f,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ep(Dt,function(){return $f(),null})):(e.callbackNode=null,e.callbackPriority=0),f=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||f){f=$.T,$.T=null,h=ue.p,ue.p=2,x=rt,rt|=4;try{Vh(e,n,a)}finally{rt=x,ue.p=h,$.T=f}}rn=1,Hf(),Gf(),Pf()}}function Hf(){if(rn===1){rn=0;var e=Ga,n=Ir,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=$.T,$.T=null;var f=ue.p;ue.p=2;var h=rt;rt|=4;try{Ef(n,e);var p=Uo,x=Ru(e.containerInfo),C=p.focusedElem,U=p.selectionRange;if(x!==C&&C&&C.ownerDocument&&Tu(C.ownerDocument.documentElement,C)){if(U!==null&&ss(C)){var X=U.start,ie=U.end;if(ie===void 0&&(ie=X),"selectionStart"in C)C.selectionStart=X,C.selectionEnd=Math.min(ie,C.value.length);else{var oe=C.ownerDocument||document,K=oe&&oe.defaultView||window;if(K.getSelection){var q=K.getSelection(),Te=C.textContent.length,je=Math.min(U.start,Te),bt=U.end===void 0?je:Math.min(U.end,Te);!q.extend&&je>bt&&(x=bt,bt=je,je=x);var V=Su(C,je),H=Su(C,bt);if(V&&H&&(q.rangeCount!==1||q.anchorNode!==V.node||q.anchorOffset!==V.offset||q.focusNode!==H.node||q.focusOffset!==H.offset)){var Y=oe.createRange();Y.setStart(V.node,V.offset),q.removeAllRanges(),je>bt?(q.addRange(Y),q.extend(H.node,H.offset)):(Y.setEnd(H.node,H.offset),q.addRange(Y))}}}}for(oe=[],q=C;q=q.parentNode;)q.nodeType===1&&oe.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<oe.length;C++){var se=oe[C];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}zl=!!Bo,Uo=Bo=null}finally{rt=h,ue.p=f,$.T=a}}e.current=n,rn=2}}function Gf(){if(rn===2){rn=0;var e=Ga,n=Ir,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=$.T,$.T=null;var f=ue.p;ue.p=2;var h=rt;rt|=4;try{mf(e,n.alternate,n)}finally{rt=h,ue.p=f,$.T=a}}rn=3}}function Pf(){if(rn===4||rn===3){rn=0,Et();var e=Ga,n=Ir,a=Sa,f=wf;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?rn=5:(rn=0,Ir=Ga=null,Vf(e,e.pendingLanes));var h=e.pendingLanes;if(h===0&&(Ha=null),Pe(a),n=n.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(un,n,void 0,(n.current.flags&128)===128)}catch{}if(f!==null){n=$.T,h=ue.p,ue.p=2,$.T=null;try{for(var p=e.onRecoverableError,x=0;x<f.length;x++){var C=f[x];p(C.value,{componentStack:C.stack})}}finally{$.T=n,ue.p=h}}(Sa&3)!==0&&Al(),la(e),h=e.pendingLanes,(a&261930)!==0&&(h&42)!==0?e===So?Ti++:(Ti=0,So=e):Ti=0,Ri(0)}}function Vf(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ii(n)))}function Al(){return Hf(),Gf(),Pf(),$f()}function $f(){if(rn!==5)return!1;var e=Ga,n=_o;_o=0;var a=Pe(Sa),f=$.T,h=ue.p;try{ue.p=32>a?32:a,$.T=null,a=xo,xo=null;var p=Ga,x=Sa;if(rn=0,Ir=Ga=null,Sa=0,(rt&6)!==0)throw Error(c(331));var C=rt;if(rt|=4,Rf(p.current),xf(p,p.current,x,a),rt=C,Ri(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(un,p)}catch{}return!0}finally{ue.p=h,$.T=f,Vf(e,n)}}function Zf(e,n,a){n=Yn(a,n),n=eo(e.stateNode,n,2),e=ka(e,n,2),e!==null&&(xn(e,2),la(e))}function ht(e,n,a){if(e.tag===3)Zf(e,e,a);else for(;n!==null;){if(n.tag===3){Zf(n,e,a);break}else if(n.tag===1){var f=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Ha===null||!Ha.has(f))){e=Yn(a,e),a=Zc(2),f=ka(n,a,2),f!==null&&(Fc(a,f,n,e),xn(f,2),la(f));break}}n=n.return}}function Ao(e,n,a){var f=e.pingCache;if(f===null){f=e.pingCache=new Fh;var h=new Set;f.set(n,h)}else h=f.get(n),h===void 0&&(h=new Set,f.set(n,h));h.has(a)||(vo=!0,h.add(a),e=Qh.bind(null,e,n,a),n.then(e,e))}function Qh(e,n,a){var f=e.pingCache;f!==null&&f.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,_t===e&&(Fe&a)===a&&(Bt===4||Bt===3&&(Fe&62914560)===Fe&&300>at()-El?(rt&2)===0&&Hr(e,0):bo|=a,zr===Fe&&(zr=0)),la(e)}function Ff(e,n){n===0&&(n=qt()),e=qa(e,n),e!==null&&(xn(e,n),la(e))}function Wh(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Ff(e,a)}function qh(e,n){var a=0;switch(e.tag){case 31:case 13:var f=e.stateNode,h=e.memoizedState;h!==null&&(a=h.retryLane);break;case 19:f=e.stateNode;break;case 22:f=e.stateNode._retryCache;break;default:throw Error(c(314))}f!==null&&f.delete(n),Ff(e,a)}function ep(e,n){return Pt(e,n)}var Cl=null,Pr=null,Co=!1,wl=!1,wo=!1,Va=0;function la(e){e!==Pr&&e.next===null&&(Pr===null?Cl=Pr=e:Pr=Pr.next=e),wl=!0,Co||(Co=!0,np())}function Ri(e,n){if(!wo&&wl){wo=!0;do for(var a=!1,f=Cl;f!==null;){if(e!==0){var h=f.pendingLanes;if(h===0)var p=0;else{var x=f.suspendedLanes,C=f.pingedLanes;p=(1<<31-Ke(42|e)+1)-1,p&=h&~(x&~C),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,Kf(f,p))}else p=Fe,p=bn(f,f===_t?p:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(p&3)===0||En(f,p)||(a=!0,Kf(f,p));f=f.next}while(a);wo=!1}}function tp(){Yf()}function Yf(){wl=Co=!1;var e=0;Va!==0&&dp()&&(e=Va);for(var n=at(),a=null,f=Cl;f!==null;){var h=f.next,p=Xf(f,n);p===0?(f.next=null,a===null?Cl=h:a.next=h,h===null&&(Pr=a)):(a=f,(e!==0||(p&3)!==0)&&(wl=!0)),f=h}rn!==0&&rn!==5||Ri(e),Va!==0&&(Va=0)}function Xf(e,n){for(var a=e.suspendedLanes,f=e.pingedLanes,h=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var x=31-Ke(p),C=1<<x,U=h[x];U===-1?((C&a)===0||(C&f)!==0)&&(h[x]=ft(C,n)):U<=n&&(e.expiredLanes|=C),p&=~C}if(n=_t,a=Fe,a=bn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),f=e.callbackNode,a===0||e===n&&(dt===2||dt===9)||e.cancelPendingCommit!==null)return f!==null&&f!==null&&Rt(f),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||En(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(f!==null&&Rt(f),Pe(a)){case 2:case 8:a=wt;break;case 32:a=Dt;break;case 268435456:a=sn;break;default:a=Dt}return f=Jf.bind(null,e),a=Pt(a,f),e.callbackPriority=n,e.callbackNode=a,n}return f!==null&&f!==null&&Rt(f),e.callbackPriority=2,e.callbackNode=null,2}function Jf(e,n){if(rn!==0&&rn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Al()&&e.callbackNode!==a)return null;var f=Fe;return f=bn(e,e===_t?f:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),f===0?null:(Df(e,f,n),Xf(e,at()),e.callbackNode!=null&&e.callbackNode===a?Jf.bind(null,e):null)}function Kf(e,n){if(Al())return null;Df(e,n,!0)}function np(){pp(function(){(rt&6)!==0?Pt(Ut,tp):Yf()})}function Oo(){if(Va===0){var e=Cr;e===0&&(e=Nt,Nt<<=1,(Nt&261888)===0&&(Nt=256)),Va=e}return Va}function Qf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bi(""+e)}function Wf(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function ap(e,n,a,f,h){if(n==="submit"&&a&&a.stateNode===h){var p=Qf((h[ot]||null).action),x=f.submitter;x&&(n=(n=x[ot]||null)?Qf(n.formAction):x.getAttribute("formAction"),n!==null&&(p=n,x=null));var C=new Hi("action","action",null,f,h);e.push({event:C,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Va!==0){var U=x?Wf(h,x):new FormData(h);Xs(a,{pending:!0,data:U,method:h.method,action:p},null,U)}}else typeof p=="function"&&(C.preventDefault(),U=x?Wf(h,x):new FormData(h),Xs(a,{pending:!0,data:U,method:h.method,action:p},p,U))},currentTarget:h}]})}}for(var Do=0;Do<fs.length;Do++){var No=fs[Do],rp=No.toLowerCase(),ip=No[0].toUpperCase()+No.slice(1);ea(rp,"on"+ip)}ea(wu,"onAnimationEnd"),ea(Ou,"onAnimationIteration"),ea(Du,"onAnimationStart"),ea("dblclick","onDoubleClick"),ea("focusin","onFocus"),ea("focusout","onBlur"),ea(_h,"onTransitionRun"),ea(xh,"onTransitionStart"),ea(Sh,"onTransitionCancel"),ea(Nu,"onTransitionEnd"),Me("onMouseEnter",["mouseout","mouseover"]),Me("onMouseLeave",["mouseout","mouseover"]),Me("onPointerEnter",["pointerout","pointerover"]),Me("onPointerLeave",["pointerout","pointerover"]),ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ut("onBeforeInput",["compositionend","keypress","textInput","paste"]),ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="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(" "),lp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ai));function qf(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var f=e[a],h=f.event;f=f.listeners;e:{var p=void 0;if(n)for(var x=f.length-1;0<=x;x--){var C=f[x],U=C.instance,X=C.currentTarget;if(C=C.listener,U!==p&&h.isPropagationStopped())break e;p=C,h.currentTarget=X;try{p(h)}catch(ie){Vi(ie)}h.currentTarget=null,p=U}else for(x=0;x<f.length;x++){if(C=f[x],U=C.instance,X=C.currentTarget,C=C.listener,U!==p&&h.isPropagationStopped())break e;p=C,h.currentTarget=X;try{p(h)}catch(ie){Vi(ie)}h.currentTarget=null,p=U}}}}function $e(e,n){var a=n[Zn];a===void 0&&(a=n[Zn]=new Set);var f=e+"__bubble";a.has(f)||(ed(n,e,2,!1),a.add(f))}function Mo(e,n,a){var f=0;n&&(f|=4),ed(a,e,f,n)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[Ol]){e[Ol]=!0,Ce.forEach(function(a){a!=="selectionchange"&&(lp.has(a)||Mo(a,!1,e),Mo(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ol]||(n[Ol]=!0,Mo("selectionchange",!1,n))}}function ed(e,n,a,f){switch(Od(n)){case 2:var h=kp;break;case 8:h=Lp;break;default:h=Xo}a=h.bind(null,n,a,e),h=void 0,!Ql||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),f?h!==void 0?e.addEventListener(n,a,{capture:!0,passive:h}):e.addEventListener(n,a,!0):h!==void 0?e.addEventListener(n,a,{passive:h}):e.addEventListener(n,a,!1)}function ko(e,n,a,f,h){var p=f;if((n&1)===0&&(n&2)===0&&f!==null)e:for(;;){if(f===null)return;var x=f.tag;if(x===3||x===4){var C=f.stateNode.containerInfo;if(C===h)break;if(x===4)for(x=f.return;x!==null;){var U=x.tag;if((U===3||U===4)&&x.stateNode.containerInfo===h)return;x=x.return}for(;C!==null;){if(x=fe(C),x===null)return;if(U=x.tag,U===5||U===6||U===26||U===27){f=p=x;continue e}C=C.parentNode}}f=f.return}ru(function(){var X=p,ie=Jl(a),oe=[];e:{var K=Mu.get(e);if(K!==void 0){var q=Hi,Te=e;switch(e){case"keypress":if(zi(a)===0)break e;case"keydown":case"keyup":q=qd;break;case"focusin":Te="focus",q=ts;break;case"focusout":Te="blur",q=ts;break;case"beforeblur":case"afterblur":q=ts;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":q=su;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Gd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=nh;break;case wu:case Ou:case Du:q=$d;break;case Nu:q=rh;break;case"scroll":case"scrollend":q=Id;break;case"wheel":q=lh;break;case"copy":case"cut":case"paste":q=Fd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=uu;break;case"toggle":case"beforetoggle":q=oh}var je=(n&4)!==0,bt=!je&&(e==="scroll"||e==="scrollend"),V=je?K!==null?K+"Capture":null:K;je=[];for(var H=X,Y;H!==null;){var se=H;if(Y=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||Y===null||V===null||(se=Xr(H,V),se!=null&&je.push(Ci(H,se,Y))),bt)break;H=H.return}0<je.length&&(K=new q(K,Te,null,a,ie),oe.push({event:K,listeners:je}))}}if((n&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",K&&a!==Xl&&(Te=a.relatedTarget||a.fromElement)&&(fe(Te)||Te[an]))break e;if((q||K)&&(K=ie.window===ie?ie:(K=ie.ownerDocument)?K.defaultView||K.parentWindow:window,q?(Te=a.relatedTarget||a.toElement,q=X,Te=Te?fe(Te):null,Te!==null&&(bt=m(Te),je=Te.tag,Te!==bt||je!==5&&je!==27&&je!==6)&&(Te=null)):(q=null,Te=X),q!==Te)){if(je=su,se="onMouseLeave",V="onMouseEnter",H="mouse",(e==="pointerout"||e==="pointerover")&&(je=uu,se="onPointerLeave",V="onPointerEnter",H="pointer"),bt=q==null?K:Re(q),Y=Te==null?K:Re(Te),K=new je(se,H+"leave",q,a,ie),K.target=bt,K.relatedTarget=Y,se=null,fe(ie)===X&&(je=new je(V,H+"enter",Te,a,ie),je.target=Y,je.relatedTarget=bt,se=je),bt=se,q&&Te)t:{for(je=sp,V=q,H=Te,Y=0,se=V;se;se=je(se))Y++;se=0;for(var Ne=H;Ne;Ne=je(Ne))se++;for(;0<Y-se;)V=je(V),Y--;for(;0<se-Y;)H=je(H),se--;for(;Y--;){if(V===H||H!==null&&V===H.alternate){je=V;break t}V=je(V),H=je(H)}je=null}else je=null;q!==null&&td(oe,K,q,je,!1),Te!==null&&bt!==null&&td(oe,bt,Te,je,!0)}}e:{if(K=X?Re(X):window,q=K.nodeName&&K.nodeName.toLowerCase(),q==="select"||q==="input"&&K.type==="file")var tt=yu;else if(mu(K))if(vu)tt=vh;else{tt=gh;var Ae=mh}else q=K.nodeName,!q||q.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?X&&Yl(X.elementType)&&(tt=yu):tt=yh;if(tt&&(tt=tt(e,X))){gu(oe,tt,a,ie);break e}Ae&&Ae(e,K,X),e==="focusout"&&X&&K.type==="number"&&X.memoizedProps.value!=null&&Fl(K,"number",K.value)}switch(Ae=X?Re(X):window,e){case"focusin":(mu(Ae)||Ae.contentEditable==="true")&&(br=Ae,os=X,ni=null);break;case"focusout":ni=os=br=null;break;case"mousedown":us=!0;break;case"contextmenu":case"mouseup":case"dragend":us=!1,Au(oe,a,ie);break;case"selectionchange":if(Eh)break;case"keydown":case"keyup":Au(oe,a,ie)}var Ie;if(as)e:{switch(e){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else vr?hu(e,a)&&(Ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ye="onCompositionStart");Ye&&(cu&&a.locale!=="ko"&&(vr||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&vr&&(Ie=iu()):(Ca=ie,Wl="value"in Ca?Ca.value:Ca.textContent,vr=!0)),Ae=Dl(X,Ye),0<Ae.length&&(Ye=new ou(Ye,e,null,a,ie),oe.push({event:Ye,listeners:Ae}),Ie?Ye.data=Ie:(Ie=pu(a),Ie!==null&&(Ye.data=Ie)))),(Ie=ch?fh(e,a):dh(e,a))&&(Ye=Dl(X,"onBeforeInput"),0<Ye.length&&(Ae=new ou("onBeforeInput","beforeinput",null,a,ie),oe.push({event:Ae,listeners:Ye}),Ae.data=Ie)),ap(oe,e,X,a,ie)}qf(oe,n)})}function Ci(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Dl(e,n){for(var a=n+"Capture",f=[];e!==null;){var h=e,p=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||p===null||(h=Xr(e,a),h!=null&&f.unshift(Ci(e,h,p)),h=Xr(e,n),h!=null&&f.push(Ci(e,h,p))),e.tag===3)return f;e=e.return}return[]}function sp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function td(e,n,a,f,h){for(var p=n._reactName,x=[];a!==null&&a!==f;){var C=a,U=C.alternate,X=C.stateNode;if(C=C.tag,U!==null&&U===f)break;C!==5&&C!==26&&C!==27||X===null||(U=X,h?(X=Xr(a,p),X!=null&&x.unshift(Ci(a,X,U))):h||(X=Xr(a,p),X!=null&&x.push(Ci(a,X,U)))),a=a.return}x.length!==0&&e.push({event:n,listeners:x})}var op=/\r\n?/g,up=/\u0000|\uFFFD/g;function nd(e){return(typeof e=="string"?e:""+e).replace(op,`
9
- `).replace(up,"")}function ad(e,n){return n=nd(n),nd(e)===n}function vt(e,n,a,f,h,p){switch(a){case"children":typeof f=="string"?n==="body"||n==="textarea"&&f===""||sa(e,f):(typeof f=="number"||typeof f=="bigint")&&n!=="body"&&sa(e,""+f);break;case"className":Zt(e,"class",f);break;case"tabIndex":Zt(e,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Zt(e,a,f);break;case"style":nu(e,f,p);break;case"data":if(n!=="object"){Zt(e,"data",f);break}case"src":case"href":if(f===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(a);break}f=Bi(""+f),e.setAttribute(a,f);break;case"action":case"formAction":if(typeof f=="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 p=="function"&&(a==="formAction"?(n!=="input"&&vt(e,n,"name",h.name,h,null),vt(e,n,"formEncType",h.formEncType,h,null),vt(e,n,"formMethod",h.formMethod,h,null),vt(e,n,"formTarget",h.formTarget,h,null)):(vt(e,n,"encType",h.encType,h,null),vt(e,n,"method",h.method,h,null),vt(e,n,"target",h.target,h,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(a);break}f=Bi(""+f),e.setAttribute(a,f);break;case"onClick":f!=null&&(e.onclick=oa);break;case"onScroll":f!=null&&$e("scroll",e);break;case"onScrollEnd":f!=null&&$e("scrollend",e);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(c(61));if(a=f.__html,a!=null){if(h.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":e.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){e.removeAttribute("xlink:href");break}a=Bi(""+f),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":f!=null&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(a,""+f):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":f&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":f===!0?e.setAttribute(a,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(a,f):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?e.setAttribute(a,f):e.removeAttribute(a);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?e.removeAttribute(a):e.setAttribute(a,f);break;case"popover":$e("beforetoggle",e),$e("toggle",e),Be(e,"popover",f);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Be(e,"is",f);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ud.get(a)||a,Be(e,a,f))}}function Lo(e,n,a,f,h,p){switch(a){case"style":nu(e,f,p);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(c(61));if(a=f.__html,a!=null){if(h.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof f=="string"?sa(e,f):(typeof f=="number"||typeof f=="bigint")&&sa(e,""+f);break;case"onScroll":f!=null&&$e("scroll",e);break;case"onScrollEnd":f!=null&&$e("scrollend",e);break;case"onClick":f!=null&&(e.onclick=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!He.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),n=a.slice(2,h?a.length-7:void 0),p=e[ot]||null,p=p!=null?p[a]:null,typeof p=="function"&&e.removeEventListener(n,p,h),typeof f=="function")){typeof p!="function"&&p!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,f,h);break e}a in e?e[a]=f:f===!0?e.setAttribute(a,""):Be(e,a,f)}}}function yn(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",e),$e("load",e);var f=!1,h=!1,p;for(p in a)if(a.hasOwnProperty(p)){var x=a[p];if(x!=null)switch(p){case"src":f=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:vt(e,n,p,x,a,null)}}h&&vt(e,n,"srcSet",a.srcSet,a,null),f&&vt(e,n,"src",a.src,a,null);return;case"input":$e("invalid",e);var C=p=x=h=null,U=null,X=null;for(f in a)if(a.hasOwnProperty(f)){var ie=a[f];if(ie!=null)switch(f){case"name":h=ie;break;case"type":x=ie;break;case"checked":U=ie;break;case"defaultChecked":X=ie;break;case"value":p=ie;break;case"defaultValue":C=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(c(137,n));break;default:vt(e,n,f,ie,a,null)}}Yr(e,p,C,U,X,x,h,!1);return;case"select":$e("invalid",e),f=x=p=null;for(h in a)if(a.hasOwnProperty(h)&&(C=a[h],C!=null))switch(h){case"value":p=C;break;case"defaultValue":x=C;break;case"multiple":f=C;default:vt(e,n,h,C,a,null)}n=p,a=x,e.multiple=!!f,n!=null?Aa(e,!!f,n,!1):a!=null&&Aa(e,!!f,a,!0);return;case"textarea":$e("invalid",e),p=h=f=null;for(x in a)if(a.hasOwnProperty(x)&&(C=a[x],C!=null))switch(x){case"value":f=C;break;case"defaultValue":h=C;break;case"children":p=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(91));break;default:vt(e,n,x,C,a,null)}eu(e,f,h,p);return;case"option":for(U in a)if(a.hasOwnProperty(U)&&(f=a[U],f!=null))switch(U){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:vt(e,n,U,f,a,null)}return;case"dialog":$e("beforetoggle",e),$e("toggle",e),$e("cancel",e),$e("close",e);break;case"iframe":case"object":$e("load",e);break;case"video":case"audio":for(f=0;f<Ai.length;f++)$e(Ai[f],e);break;case"image":$e("error",e),$e("load",e);break;case"details":$e("toggle",e);break;case"embed":case"source":case"link":$e("error",e),$e("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(X in a)if(a.hasOwnProperty(X)&&(f=a[X],f!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:vt(e,n,X,f,a,null)}return;default:if(Yl(n)){for(ie in a)a.hasOwnProperty(ie)&&(f=a[ie],f!==void 0&&Lo(e,n,ie,f,a,void 0));return}}for(C in a)a.hasOwnProperty(C)&&(f=a[C],f!=null&&vt(e,n,C,f,a,null))}function cp(e,n,a,f){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,x=null,C=null,U=null,X=null,ie=null;for(q in a){var oe=a[q];if(a.hasOwnProperty(q)&&oe!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":U=oe;default:f.hasOwnProperty(q)||vt(e,n,q,null,f,oe)}}for(var K in f){var q=f[K];if(oe=a[K],f.hasOwnProperty(K)&&(q!=null||oe!=null))switch(K){case"type":p=q;break;case"name":h=q;break;case"checked":X=q;break;case"defaultChecked":ie=q;break;case"value":x=q;break;case"defaultValue":C=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(c(137,n));break;default:q!==oe&&vt(e,n,K,q,f,oe)}}Zl(e,x,C,U,X,ie,p,h);return;case"select":q=x=C=K=null;for(p in a)if(U=a[p],a.hasOwnProperty(p)&&U!=null)switch(p){case"value":break;case"multiple":q=U;default:f.hasOwnProperty(p)||vt(e,n,p,null,f,U)}for(h in f)if(p=f[h],U=a[h],f.hasOwnProperty(h)&&(p!=null||U!=null))switch(h){case"value":K=p;break;case"defaultValue":C=p;break;case"multiple":x=p;default:p!==U&&vt(e,n,h,p,f,U)}n=C,a=x,f=q,K!=null?Aa(e,!!a,K,!1):!!f!=!!a&&(n!=null?Aa(e,!!a,n,!0):Aa(e,!!a,a?[]:"",!1));return;case"textarea":q=K=null;for(C in a)if(h=a[C],a.hasOwnProperty(C)&&h!=null&&!f.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:vt(e,n,C,null,f,h)}for(x in f)if(h=f[x],p=a[x],f.hasOwnProperty(x)&&(h!=null||p!=null))switch(x){case"value":K=h;break;case"defaultValue":q=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:h!==p&&vt(e,n,x,h,f,p)}qo(e,K,q);return;case"option":for(var Te in a)if(K=a[Te],a.hasOwnProperty(Te)&&K!=null&&!f.hasOwnProperty(Te))switch(Te){case"selected":e.selected=!1;break;default:vt(e,n,Te,null,f,K)}for(U in f)if(K=f[U],q=a[U],f.hasOwnProperty(U)&&K!==q&&(K!=null||q!=null))switch(U){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:vt(e,n,U,K,f,q)}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 je in a)K=a[je],a.hasOwnProperty(je)&&K!=null&&!f.hasOwnProperty(je)&&vt(e,n,je,null,f,K);for(X in f)if(K=f[X],q=a[X],f.hasOwnProperty(X)&&K!==q&&(K!=null||q!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(c(137,n));break;default:vt(e,n,X,K,f,q)}return;default:if(Yl(n)){for(var bt in a)K=a[bt],a.hasOwnProperty(bt)&&K!==void 0&&!f.hasOwnProperty(bt)&&Lo(e,n,bt,void 0,f,K);for(ie in f)K=f[ie],q=a[ie],!f.hasOwnProperty(ie)||K===q||K===void 0&&q===void 0||Lo(e,n,ie,K,f,q);return}}for(var V in a)K=a[V],a.hasOwnProperty(V)&&K!=null&&!f.hasOwnProperty(V)&&vt(e,n,V,null,f,K);for(oe in f)K=f[oe],q=a[oe],!f.hasOwnProperty(oe)||K===q||K==null&&q==null||vt(e,n,oe,K,f,q)}function rd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),f=0;f<a.length;f++){var h=a[f],p=h.transferSize,x=h.initiatorType,C=h.duration;if(p&&C&&rd(x)){for(x=0,C=h.responseEnd,f+=1;f<a.length;f++){var U=a[f],X=U.startTime;if(X>C)break;var ie=U.transferSize,oe=U.initiatorType;ie&&rd(oe)&&(U=U.responseEnd,x+=ie*(U<C?1:(C-X)/(U-X)))}if(--f,n+=8*(p+x)/(h.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Bo=null,Uo=null;function Nl(e){return e.nodeType===9?e:e.ownerDocument}function id(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 ld(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function zo(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Io=null;function dp(){var e=window.event;return e&&e.type==="popstate"?e===Io?!1:(Io=e,!0):(Io=null,!1)}var sd=typeof setTimeout=="function"?setTimeout:void 0,hp=typeof clearTimeout=="function"?clearTimeout:void 0,od=typeof Promise=="function"?Promise:void 0,pp=typeof queueMicrotask=="function"?queueMicrotask:typeof od<"u"?function(e){return od.resolve(null).then(e).catch(mp)}:sd;function mp(e){setTimeout(function(){throw e})}function $a(e){return e==="head"}function ud(e,n){var a=n,f=0;do{var h=a.nextSibling;if(e.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"||a==="/&"){if(f===0){e.removeChild(h),Fr(n);return}f--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")f++;else if(a==="html")wi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,wi(a);for(var p=a.firstChild;p;){var x=p.nextSibling,C=p.nodeName;p[Ee]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=x}}else a==="body"&&wi(e.ownerDocument.body);a=h}while(a);Fr(n)}function cd(e,n){var a=e;e=0;do{var f=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=f}while(a)}function Ho(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ho(a),z(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function gp(e,n,a,f){for(;e.nodeType===1;){var h=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!f&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(f){if(!e[Ee])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==h.rel||e.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||e.getAttribute("title")!==(h.title==null?null:h.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=Wn(e.nextSibling),e===null)break}return null}function yp(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Wn(e.nextSibling),e===null))return null;return e}function fd(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Wn(e.nextSibling),e===null))return null;return e}function Go(e){return e.data==="$?"||e.data==="$~"}function Po(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function vp(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var f=function(){n(),a.removeEventListener("DOMContentLoaded",f)};a.addEventListener("DOMContentLoaded",f),e._reactRetry=f}}function Wn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Vo=null;function dd(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return Wn(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function hd(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function pd(e,n,a){switch(n=Nl(a),e){case"html":if(e=n.documentElement,!e)throw Error(c(452));return e;case"head":if(e=n.head,!e)throw Error(c(453));return e;case"body":if(e=n.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function wi(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);z(e)}var qn=new Map,md=new Set;function Ml(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ta=ue.d;ue.d={f:bp,r:Ep,D:_p,C:xp,L:Sp,m:Tp,X:Ap,S:Rp,M:Cp};function bp(){var e=Ta.f(),n=Sl();return e||n}function Ep(e){var n=he(e);n!==null&&n.tag===5&&n.type==="form"?Nc(n):Ta.r(e)}var Vr=typeof document>"u"?null:document;function gd(e,n,a){var f=Vr;if(f&&typeof n=="string"&&n){var h=Tn(n);h='link[rel="'+e+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),md.has(h)||(md.add(h),e={rel:e,crossOrigin:a,href:n},f.querySelector(h)===null&&(n=f.createElement("link"),yn(n,"link",e),Se(n),f.head.appendChild(n)))}}function _p(e){Ta.D(e),gd("dns-prefetch",e,null)}function xp(e,n){Ta.C(e,n),gd("preconnect",e,n)}function Sp(e,n,a){Ta.L(e,n,a);var f=Vr;if(f&&e&&n){var h='link[rel="preload"][as="'+Tn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+Tn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+Tn(a.imageSizes)+'"]')):h+='[href="'+Tn(e)+'"]';var p=h;switch(n){case"style":p=$r(e);break;case"script":p=Zr(e)}qn.has(p)||(e=A({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),qn.set(p,e),f.querySelector(h)!==null||n==="style"&&f.querySelector(Oi(p))||n==="script"&&f.querySelector(Di(p))||(n=f.createElement("link"),yn(n,"link",e),Se(n),f.head.appendChild(n)))}}function Tp(e,n){Ta.m(e,n);var a=Vr;if(a&&e){var f=n&&typeof n.as=="string"?n.as:"script",h='link[rel="modulepreload"][as="'+Tn(f)+'"][href="'+Tn(e)+'"]',p=h;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Zr(e)}if(!qn.has(p)&&(e=A({rel:"modulepreload",href:e},n),qn.set(p,e),a.querySelector(h)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Di(p)))return}f=a.createElement("link"),yn(f,"link",e),Se(f),a.head.appendChild(f)}}}function Rp(e,n,a){Ta.S(e,n,a);var f=Vr;if(f&&e){var h=Le(f).hoistableStyles,p=$r(e);n=n||"default";var x=h.get(p);if(!x){var C={loading:0,preload:null};if(x=f.querySelector(Oi(p)))C.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":n},a),(a=qn.get(p))&&$o(e,a);var U=x=f.createElement("link");Se(U),yn(U,"link",e),U._p=new Promise(function(X,ie){U.onload=X,U.onerror=ie}),U.addEventListener("load",function(){C.loading|=1}),U.addEventListener("error",function(){C.loading|=2}),C.loading|=4,jl(x,n,f)}x={type:"stylesheet",instance:x,count:1,state:C},h.set(p,x)}}}function Ap(e,n){Ta.X(e,n);var a=Vr;if(a&&e){var f=Le(a).hoistableScripts,h=Zr(e),p=f.get(h);p||(p=a.querySelector(Di(h)),p||(e=A({src:e,async:!0},n),(n=qn.get(h))&&Zo(e,n),p=a.createElement("script"),Se(p),yn(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},f.set(h,p))}}function Cp(e,n){Ta.M(e,n);var a=Vr;if(a&&e){var f=Le(a).hoistableScripts,h=Zr(e),p=f.get(h);p||(p=a.querySelector(Di(h)),p||(e=A({src:e,async:!0,type:"module"},n),(n=qn.get(h))&&Zo(e,n),p=a.createElement("script"),Se(p),yn(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},f.set(h,p))}}function yd(e,n,a,f){var h=(h=ge.current)?Ml(h):null;if(!h)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=$r(a.href),a=Le(h).hoistableStyles,f=a.get(n),f||(f={type:"style",instance:null,count:0,state:null},a.set(n,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=$r(a.href);var p=Le(h).hoistableStyles,x=p.get(e);if(x||(h=h.ownerDocument||h,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,x),(p=h.querySelector(Oi(e)))&&!p._p&&(x.instance=p,x.state.loading=5),qn.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},qn.set(e,a),p||wp(h,e,a,x.state))),n&&f===null)throw Error(c(528,""));return x}if(n&&f!==null)throw Error(c(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Zr(a),a=Le(h).hoistableScripts,f=a.get(n),f||(f={type:"script",instance:null,count:0,state:null},a.set(n,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function $r(e){return'href="'+Tn(e)+'"'}function Oi(e){return'link[rel="stylesheet"]['+e+"]"}function vd(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function wp(e,n,a,f){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?f.loading=1:(n=e.createElement("link"),f.preload=n,n.addEventListener("load",function(){return f.loading|=1}),n.addEventListener("error",function(){return f.loading|=2}),yn(n,"link",a),Se(n),e.head.appendChild(n))}function Zr(e){return'[src="'+Tn(e)+'"]'}function Di(e){return"script[async]"+e}function bd(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var f=e.querySelector('style[data-href~="'+Tn(a.href)+'"]');if(f)return n.instance=f,Se(f),f;var h=A({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return f=(e.ownerDocument||e).createElement("style"),Se(f),yn(f,"style",h),jl(f,a.precedence,e),n.instance=f;case"stylesheet":h=$r(a.href);var p=e.querySelector(Oi(h));if(p)return n.state.loading|=4,n.instance=p,Se(p),p;f=vd(a),(h=qn.get(h))&&$o(f,h),p=(e.ownerDocument||e).createElement("link"),Se(p);var x=p;return x._p=new Promise(function(C,U){x.onload=C,x.onerror=U}),yn(p,"link",f),n.state.loading|=4,jl(p,a.precedence,e),n.instance=p;case"script":return p=Zr(a.src),(h=e.querySelector(Di(p)))?(n.instance=h,Se(h),h):(f=a,(h=qn.get(p))&&(f=A({},a),Zo(f,h)),e=e.ownerDocument||e,h=e.createElement("script"),Se(h),yn(h,"link",f),e.head.appendChild(h),n.instance=h);case"void":return null;default:throw Error(c(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(f=n.instance,n.state.loading|=4,jl(f,a.precedence,e));return n.instance}function jl(e,n,a){for(var f=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=f.length?f[f.length-1]:null,p=h,x=0;x<f.length;x++){var C=f[x];if(C.dataset.precedence===n)p=C;else if(p!==h)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function $o(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Zo(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var kl=null;function Ed(e,n,a){if(kl===null){var f=new Map,h=kl=new Map;h.set(a,f)}else h=kl,f=h.get(a),f||(f=new Map,h.set(a,f));if(f.has(e))return f;for(f.set(e,null),a=a.getElementsByTagName(e),h=0;h<a.length;h++){var p=a[h];if(!(p[Ee]||p[Tt]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var x=p.getAttribute(n)||"";x=e+x;var C=f.get(x);C?C.push(p):f.set(x,[p])}}return f}function _d(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function Op(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function xd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Dp(e,n,a,f){if(a.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=$r(f.href),p=n.querySelector(Oi(h));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ll.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=p,Se(p);return}p=n.ownerDocument||n,f=vd(f),(h=qn.get(h))&&$o(f,h),p=p.createElement("link"),Se(p);var x=p;x._p=new Promise(function(C,U){x.onload=C,x.onerror=U}),yn(p,"link",f),a.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ll.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var Fo=0;function Np(e,n){return e.stylesheets&&e.count===0&&Ul(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var f=setTimeout(function(){if(e.stylesheets&&Ul(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&Fo===0&&(Fo=62500*fp());var h=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ul(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>Fo?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(f),clearTimeout(h)}}:null}function Ll(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ul(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bl=null;function Ul(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bl=new Map,n.forEach(Mp,e),Bl=null,Ll.call(e))}function Mp(e,n){if(!(n.state.loading&4)){var a=Bl.get(e);if(a)var f=a.get(null);else{a=new Map,Bl.set(e,a);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var x=h[p];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),f=x)}f&&a.set(null,f)}h=n.instance,x=h.getAttribute("data-precedence"),p=a.get(x)||f,p===f&&a.set(null,h),a.set(x,h),this.count++,f=Ll.bind(this),h.addEventListener("load",f),h.addEventListener("error",f),p?p.parentNode.insertBefore(h,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),n.state.loading|=4}}var Ni={$$typeof:k,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function jp(e,n,a,f,h,p,x,C,U){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=Vn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vn(0),this.hiddenUpdates=Vn(null),this.identifierPrefix=f,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function Sd(e,n,a,f,h,p,x,C,U,X,ie,oe){return e=new jp(e,n,a,x,U,X,ie,oe,C),n=1,p===!0&&(n|=24),p=Bn(3,null,null,n),e.current=p,p.stateNode=e,n=Ts(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:f,isDehydrated:a,cache:n},ws(p),e}function Td(e){return e?(e=xr,e):xr}function Rd(e,n,a,f,h,p){h=Td(h),f.context===null?f.context=h:f.pendingContext=h,f=ja(n),f.payload={element:a},p=p===void 0?null:p,p!==null&&(f.callback=p),a=ka(e,f,n),a!==null&&(jn(a,e,n),ui(a,e,n))}function Ad(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Yo(e,n){Ad(e,n),(e=e.alternate)&&Ad(e,n)}function Cd(e){if(e.tag===13||e.tag===31){var n=qa(e,67108864);n!==null&&jn(n,e,67108864),Yo(e,67108864)}}function wd(e){if(e.tag===13||e.tag===31){var n=Gn();n=Mt(n);var a=qa(e,n);a!==null&&jn(a,e,n),Yo(e,n)}}var zl=!0;function kp(e,n,a,f){var h=$.T;$.T=null;var p=ue.p;try{ue.p=2,Xo(e,n,a,f)}finally{ue.p=p,$.T=h}}function Lp(e,n,a,f){var h=$.T;$.T=null;var p=ue.p;try{ue.p=8,Xo(e,n,a,f)}finally{ue.p=p,$.T=h}}function Xo(e,n,a,f){if(zl){var h=Jo(f);if(h===null)ko(e,n,f,Il,a),Dd(e,f);else if(Up(h,e,n,a,f))f.stopPropagation();else if(Dd(e,f),n&4&&-1<Bp.indexOf(e)){for(;h!==null;){var p=he(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var x=St(p.pendingLanes);if(x!==0){var C=p;for(C.pendingLanes|=2,C.entangledLanes|=2;x;){var U=1<<31-Ke(x);C.entanglements[1]|=U,x&=~U}la(p),(rt&6)===0&&(_l=at()+500,Ri(0))}}break;case 31:case 13:C=qa(p,2),C!==null&&jn(C,p,2),Sl(),Yo(p,2)}if(p=Jo(f),p===null&&ko(e,n,f,Il,a),p===h)break;h=p}h!==null&&f.stopPropagation()}else ko(e,n,f,null,a)}}function Jo(e){return e=Jl(e),Ko(e)}var Il=null;function Ko(e){if(Il=null,e=fe(e),e!==null){var n=m(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=g(n),e!==null)return e;e=null}else if(a===31){if(e=_(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Il=e,null}function Od(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(vn()){case Ut:return 2;case wt:return 8;case Dt:case ln:return 32;case sn:return 268435456;default:return 32}default:return 32}}var Qo=!1,Za=null,Fa=null,Ya=null,Mi=new Map,ji=new Map,Xa=[],Bp="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 Dd(e,n){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Mi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ji.delete(n.pointerId)}}function ki(e,n,a,f,h,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:a,eventSystemFlags:f,nativeEvent:p,targetContainers:[h]},n!==null&&(n=he(n),n!==null&&Cd(n)),e):(e.eventSystemFlags|=f,n=e.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),e)}function Up(e,n,a,f,h){switch(n){case"focusin":return Za=ki(Za,e,n,a,f,h),!0;case"dragenter":return Fa=ki(Fa,e,n,a,f,h),!0;case"mouseover":return Ya=ki(Ya,e,n,a,f,h),!0;case"pointerover":var p=h.pointerId;return Mi.set(p,ki(Mi.get(p)||null,e,n,a,f,h)),!0;case"gotpointercapture":return p=h.pointerId,ji.set(p,ki(ji.get(p)||null,e,n,a,f,h)),!0}return!1}function Nd(e){var n=fe(e.target);if(n!==null){var a=m(n);if(a!==null){if(n=a.tag,n===13){if(n=g(a),n!==null){e.blockedOn=n,_n(e.priority,function(){wd(a)});return}}else if(n===31){if(n=_(a),n!==null){e.blockedOn=n,_n(e.priority,function(){wd(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Jo(e.nativeEvent);if(a===null){a=e.nativeEvent;var f=new a.constructor(a.type,a);Xl=f,a.target.dispatchEvent(f),Xl=null}else return n=he(a),n!==null&&Cd(n),e.blockedOn=a,!1;n.shift()}return!0}function Md(e,n,a){Hl(e)&&a.delete(n)}function zp(){Qo=!1,Za!==null&&Hl(Za)&&(Za=null),Fa!==null&&Hl(Fa)&&(Fa=null),Ya!==null&&Hl(Ya)&&(Ya=null),Mi.forEach(Md),ji.forEach(Md)}function Gl(e,n){e.blockedOn===n&&(e.blockedOn=null,Qo||(Qo=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zp)))}var Pl=null;function jd(e){Pl!==e&&(Pl=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Pl===e&&(Pl=null);for(var n=0;n<e.length;n+=3){var a=e[n],f=e[n+1],h=e[n+2];if(typeof f!="function"){if(Ko(f||a)===null)continue;break}var p=he(a);p!==null&&(e.splice(n,3),n-=3,Xs(p,{pending:!0,data:h,method:a.method,action:f},f,h))}}))}function Fr(e){function n(U){return Gl(U,e)}Za!==null&&Gl(Za,e),Fa!==null&&Gl(Fa,e),Ya!==null&&Gl(Ya,e),Mi.forEach(n),ji.forEach(n);for(var a=0;a<Xa.length;a++){var f=Xa[a];f.blockedOn===e&&(f.blockedOn=null)}for(;0<Xa.length&&(a=Xa[0],a.blockedOn===null);)Nd(a),a.blockedOn===null&&Xa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(f=0;f<a.length;f+=3){var h=a[f],p=a[f+1],x=h[ot]||null;if(typeof p=="function")x||jd(a);else if(x){var C=null;if(p&&p.hasAttribute("formAction")){if(h=p,x=p[ot]||null)C=x.formAction;else if(Ko(h)!==null)continue}else C=x.action;typeof C=="function"?a[f+1]=C:(a.splice(f,3),f-=3),jd(a)}}}function kd(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(x){return h=x})},focusReset:"manual",scroll:"manual"})}function n(){h!==null&&(h(),h=null),f||setTimeout(a,20)}function a(){if(!f&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,h=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){f=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),h!==null&&(h(),h=null)}}}function Wo(e){this._internalRoot=e}Vl.prototype.render=Wo.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(c(409));var a=n.current,f=Gn();Rd(a,f,e,n,null,null)},Vl.prototype.unmount=Wo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Rd(e.current,2,null,e,null,null),Sl(),n[an]=null}};function Vl(e){this._internalRoot=e}Vl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Sn();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Xa.length&&n!==0&&n<Xa[a].priority;a++);Xa.splice(a,0,e),a===0&&Nd(e)}};var Ld=i.version;if(Ld!=="19.2.3")throw Error(c(527,Ld,"19.2.3"));ue.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(n),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Ip={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$l.isDisabled&&$l.supportsFiber)try{un=$l.inject(Ip),mt=$l}catch{}}return reactDomClient_production.createRoot=function(e,n){if(!d(e))throw Error(c(299));var a=!1,f="",h=Gc,p=Pc,x=Vc;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(f=n.identifierPrefix),n.onUncaughtError!==void 0&&(h=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=Sd(e,1,!1,null,null,a,f,null,h,p,x,kd),e[an]=n.current,jo(e),new Wo(n)},reactDomClient_production.hydrateRoot=function(e,n,a){if(!d(e))throw Error(c(299));var f=!1,h="",p=Gc,x=Pc,C=Vc,U=null;return a!=null&&(a.unstable_strictMode===!0&&(f=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.formState!==void 0&&(U=a.formState)),n=Sd(e,1,!0,n,a??null,f,h,U,p,x,C,kd),n.context=Td(null),a=n.current,f=Gn(),f=Mt(f),h=ja(f),h.callback=null,ka(a,h,f),a=f,n.current.lanes=a,xn(n,a),la(n),e[an]=n.current,jo(e),new Vl(n)},reactDomClient_production.version="19.2.3",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient(),reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports);var withSelector={exports:{}},useSyncExternalStoreWithSelector_production={};var hasRequiredUseSyncExternalStoreWithSelector_production;function requireUseSyncExternalStoreWithSelector_production(){if(hasRequiredUseSyncExternalStoreWithSelector_production)return useSyncExternalStoreWithSelector_production;hasRequiredUseSyncExternalStoreWithSelector_production=1;var t=requireReact();function i(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var u=typeof Object.is=="function"?Object.is:i,c=t.useSyncExternalStore,d=t.useRef,m=t.useEffect,g=t.useMemo,_=t.useDebugValue;return useSyncExternalStoreWithSelector_production.useSyncExternalStoreWithSelector=function(y,v,S,A,T){var D=d(null);if(D.current===null){var N={hasValue:!1,value:null};D.current=N}else N=D.current;D=g(function(){function w(Z){if(!j){if(j=!0,M=Z,Z=A(Z),T!==void 0&&N.hasValue){var F=N.value;if(T(F,Z))return k=F}return k=Z}if(F=k,u(M,Z))return F;var P=A(Z);return T!==void 0&&T(F,P)?(M=Z,F):(M=Z,k=P)}var j=!1,M,k,G=S===void 0?null:S;return[function(){return w(v())},G===null?void 0:function(){return w(G())}]},[v,S,A,T]);var R=c(y,D[0],D[1]);return m(function(){N.hasValue=!0,N.value=R},[R]),_(R),R},useSyncExternalStoreWithSelector_production}var hasRequiredWithSelector;function requireWithSelector(){return hasRequiredWithSelector||(hasRequiredWithSelector=1,withSelector.exports=requireUseSyncExternalStoreWithSelector_production()),withSelector.exports}var withSelectorExports=requireWithSelector(),IS_REACT_19=reactExports.version.startsWith("19"),REACT_ELEMENT_TYPE=Symbol.for(IS_REACT_19?"react.transitional.element":"react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),ForwardRef=REACT_FORWARD_REF_TYPE,Memo=REACT_MEMO_TYPE;function typeOf(t){if(typeof t=="object"&&t!==null){const{$$typeof:i}=t;switch(i){case REACT_ELEMENT_TYPE:switch(t=t.type,t){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return t;default:switch(t=t&&t.$$typeof,t){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:return t;case REACT_CONSUMER_TYPE:return t;default:return i}}case REACT_PORTAL_TYPE:return i}}}function isMemo(t){return typeOf(t)===REACT_MEMO_TYPE}function pureFinalPropsSelectorFactory(t,i,u,c,{areStatesEqual:d,areOwnPropsEqual:m,areStatePropsEqual:g}){let _=!1,y,v,S,A,T;function D(M,k){return y=M,v=k,S=t(y,v),A=i(c,v),T=u(S,A,v),_=!0,T}function N(){return S=t(y,v),i.dependsOnOwnProps&&(A=i(c,v)),T=u(S,A,v),T}function R(){return t.dependsOnOwnProps&&(S=t(y,v)),i.dependsOnOwnProps&&(A=i(c,v)),T=u(S,A,v),T}function w(){const M=t(y,v),k=!g(M,S);return S=M,k&&(T=u(S,A,v)),T}function j(M,k){const G=!m(k,v),Z=!d(M,y,k,v);return y=M,v=k,G&&Z?N():G?R():Z?w():T}return function(k,G){return _?j(k,G):D(k,G)}}function finalPropsSelectorFactory(t,{initMapStateToProps:i,initMapDispatchToProps:u,initMergeProps:c,...d}){const m=i(t,d),g=u(t,d),_=c(t,d);return pureFinalPropsSelectorFactory(m,g,_,t,d)}function bindActionCreators(t,i){const u={};for(const c in t){const d=t[c];typeof d=="function"&&(u[c]=(...m)=>i(d(...m)))}return u}function wrapMapToPropsConstant(t){return function(u){const c=t(u);function d(){return c}return d.dependsOnOwnProps=!1,d}}function getDependsOnOwnProps(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function wrapMapToPropsFunc(t,i){return function(c,{displayName:d}){const m=function(_,y){return m.dependsOnOwnProps?m.mapToProps(_,y):m.mapToProps(_,void 0)};return m.dependsOnOwnProps=!0,m.mapToProps=function(_,y){m.mapToProps=t,m.dependsOnOwnProps=getDependsOnOwnProps(t);let v=m(_,y);return typeof v=="function"&&(m.mapToProps=v,m.dependsOnOwnProps=getDependsOnOwnProps(v),v=m(_,y)),v},m}}function createInvalidArgFactory(t,i){return(u,c)=>{throw new Error(`Invalid value of type ${typeof t} for ${i} argument when connecting component ${c.wrappedComponentName}.`)}}function mapDispatchToPropsFactory(t){return t&&typeof t=="object"?wrapMapToPropsConstant(i=>bindActionCreators(t,i)):t?typeof t=="function"?wrapMapToPropsFunc(t):createInvalidArgFactory(t,"mapDispatchToProps"):wrapMapToPropsConstant(i=>({dispatch:i}))}function mapStateToPropsFactory(t){return t?typeof t=="function"?wrapMapToPropsFunc(t):createInvalidArgFactory(t,"mapStateToProps"):wrapMapToPropsConstant(()=>({}))}function defaultMergeProps(t,i,u){return{...u,...t,...i}}function wrapMergePropsFunc(t){return function(u,{displayName:c,areMergedPropsEqual:d}){let m=!1,g;return function(y,v,S){const A=t(y,v,S);return m?d(A,g)||(g=A):(m=!0,g=A),g}}}function mergePropsFactory(t){return t?typeof t=="function"?wrapMergePropsFunc(t):createInvalidArgFactory(t,"mergeProps"):()=>defaultMergeProps}function defaultNoopBatch(t){t()}function createListenerCollection(){let t=null,i=null;return{clear(){t=null,i=null},notify(){defaultNoopBatch(()=>{let u=t;for(;u;)u.callback(),u=u.next})},get(){const u=[];let c=t;for(;c;)u.push(c),c=c.next;return u},subscribe(u){let c=!0;const d=i={callback:u,next:null,prev:i};return d.prev?d.prev.next=d:t=d,function(){!c||t===null||(c=!1,d.next?d.next.prev=d.prev:i=d.prev,d.prev?d.prev.next=d.next:t=d.next)}}}}var nullListeners={notify(){},get:()=>[]};function createSubscription(t,i){let u,c=nullListeners,d=0,m=!1;function g(R){S();const w=c.subscribe(R);let j=!1;return()=>{j||(j=!0,w(),A())}}function _(){c.notify()}function y(){N.onStateChange&&N.onStateChange()}function v(){return m}function S(){d++,u||(u=i?i.addNestedSub(y):t.subscribe(y),c=createListenerCollection())}function A(){d--,u&&d===0&&(u(),u=void 0,c.clear(),c=nullListeners)}function T(){m||(m=!0,S())}function D(){m&&(m=!1,A())}const N={addNestedSub:g,notifyNestedSubs:_,handleChangeWrapper:y,isSubscribed:v,trySubscribe:T,tryUnsubscribe:D,getListeners:()=>c};return N}var canUseDOM=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",isDOM=canUseDOM(),isRunningInReactNative=()=>typeof navigator<"u"&&navigator.product==="ReactNative",isReactNative$1=isRunningInReactNative(),getUseIsomorphicLayoutEffect=()=>isDOM||isReactNative$1?reactExports.useLayoutEffect:reactExports.useEffect,useIsomorphicLayoutEffect=getUseIsomorphicLayoutEffect();function is$1(t,i){return t===i?t!==0||i!==0||1/t===1/i:t!==t&&i!==i}function shallowEqual(t,i){if(is$1(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;const u=Object.keys(t),c=Object.keys(i);if(u.length!==c.length)return!1;for(let d=0;d<u.length;d++)if(!Object.prototype.hasOwnProperty.call(i,u[d])||!is$1(t[u[d]],i[u[d]]))return!1;return!0}var REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={[ForwardRef]:FORWARD_REF_STATICS,[Memo]:MEMO_STATICS};function getStatics(t){return isMemo(t)?MEMO_STATICS:TYPE_STATICS[t.$$typeof]||REACT_STATICS}var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,getPrototypeOf$2=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(t,i){if(typeof i!="string"){if(objectPrototype){const m=getPrototypeOf$2(i);m&&m!==objectPrototype&&hoistNonReactStatics(t,m)}let u=getOwnPropertyNames(i);getOwnPropertySymbols&&(u=u.concat(getOwnPropertySymbols(i)));const c=getStatics(t),d=getStatics(i);for(let m=0;m<u.length;++m){const g=u[m];if(!KNOWN_STATICS[g]&&!(d&&d[g])&&!(c&&c[g])){const _=getOwnPropertyDescriptor$1(i,g);try{defineProperty(t,g,_)}catch{}}}}return t}var ContextKey=Symbol.for("react-redux-context"),gT=typeof globalThis<"u"?globalThis:{};function getContext(){if(!reactExports.createContext)return{};const t=gT[ContextKey]??=new Map;let i=t.get(reactExports.createContext);return i||(i=reactExports.createContext(null),t.set(reactExports.createContext,i)),i}var ReactReduxContext=getContext(),NO_SUBSCRIPTION_ARRAY=[null,null];function useIsomorphicLayoutEffectWithArgs(t,i,u){useIsomorphicLayoutEffect(()=>t(...i),u)}function captureWrapperProps(t,i,u,c,d,m){t.current=c,u.current=!1,d.current&&(d.current=null,m())}function subscribeUpdates(t,i,u,c,d,m,g,_,y,v,S){if(!t)return()=>{};let A=!1,T=null;const D=()=>{if(A||!_.current)return;const R=i.getState();let w,j;try{w=c(R,d.current)}catch(M){j=M,T=M}j||(T=null),w===m.current?g.current||v():(m.current=w,y.current=w,g.current=!0,S())};return u.onStateChange=D,u.trySubscribe(),D(),()=>{if(A=!0,u.tryUnsubscribe(),u.onStateChange=null,T)throw T}}function strictEqual(t,i){return t===i}function connect$1(t,i,u,{pure:c,areStatesEqual:d=strictEqual,areOwnPropsEqual:m=shallowEqual,areStatePropsEqual:g=shallowEqual,areMergedPropsEqual:_=shallowEqual,forwardRef:y=!1,context:v=ReactReduxContext}={}){const S=v,A=mapStateToPropsFactory(t),T=mapDispatchToPropsFactory(i),D=mergePropsFactory(u),N=!!t;return w=>{const j=w.displayName||w.name||"Component",M=`Connect(${j})`,k={shouldHandleStateChanges:N,displayName:M,wrappedComponentName:j,WrappedComponent:w,initMapStateToProps:A,initMapDispatchToProps:T,initMergeProps:D,areStatesEqual:d,areStatePropsEqual:g,areOwnPropsEqual:m,areMergedPropsEqual:_};function G(P){const[W,J,ne]=reactExports.useMemo(()=>{const{reactReduxForwardedRef:Oe,...pt}=P;return[P.context,Oe,pt]},[P]),ee=reactExports.useMemo(()=>{let Oe=S;return W?.Consumer,Oe},[W,S]),ae=reactExports.useContext(ee),ve=!!P.store&&!!P.store.getState&&!!P.store.dispatch,pe=!!ae&&!!ae.store,ye=ve?P.store:ae.store,$=pe?ae.getServerState:ye.getState,ue=reactExports.useMemo(()=>finalPropsSelectorFactory(ye.dispatch,k),[ye]),[Q,xe]=reactExports.useMemo(()=>{if(!N)return NO_SUBSCRIPTION_ARRAY;const Oe=createSubscription(ye,ve?void 0:ae.subscription),pt=Oe.notifyNestedSubs.bind(Oe);return[Oe,pt]},[ye,ve,ae]),_e=reactExports.useMemo(()=>ve?ae:{...ae,subscription:Q},[ve,ae,Q]),L=reactExports.useRef(void 0),te=reactExports.useRef(ne),le=reactExports.useRef(void 0),me=reactExports.useRef(!1),ce=reactExports.useRef(!1),ge=reactExports.useRef(void 0);useIsomorphicLayoutEffect(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const be=reactExports.useMemo(()=>()=>le.current&&ne===te.current?le.current:ue(ye.getState(),ne),[ye,ne]),De=reactExports.useMemo(()=>pt=>Q?subscribeUpdates(N,ye,Q,ue,te,L,me,ce,le,xe,pt):()=>{},[Q]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[te,L,me,ne,le,xe]);let we;try{we=reactExports.useSyncExternalStore(De,be,$?()=>ue($(),ne):be)}catch(Oe){throw ge.current&&(Oe.message+=`
10
- The error may be correlated with this previous error:
11
- ${ge.current.stack}
12
-
13
- `),Oe}useIsomorphicLayoutEffect(()=>{ge.current=void 0,le.current=void 0,L.current=we});const Ge=reactExports.useMemo(()=>reactExports.createElement(w,{...we,ref:J}),[J,w,we]);return reactExports.useMemo(()=>N?reactExports.createElement(ee.Provider,{value:_e},Ge):Ge,[ee,Ge,_e])}const F=reactExports.memo(G);if(F.WrappedComponent=w,F.displayName=G.displayName=M,y){const W=reactExports.forwardRef(function(ne,ee){return reactExports.createElement(F,{...ne,reactReduxForwardedRef:ee})});return W.displayName=M,W.WrappedComponent=w,hoistNonReactStatics(W,w)}return hoistNonReactStatics(F,w)}}var connect_default=connect$1;function Provider(t){const{children:i,context:u,serverState:c,store:d}=t,m=reactExports.useMemo(()=>{const y=createSubscription(d);return{store:d,subscription:y,getServerState:c?()=>c:void 0}},[d,c]),g=reactExports.useMemo(()=>d.getState(),[d]);useIsomorphicLayoutEffect(()=>{const{subscription:y}=m;return y.onStateChange=y.notifyNestedSubs,y.trySubscribe(),g!==d.getState()&&y.notifyNestedSubs(),()=>{y.tryUnsubscribe(),y.onStateChange=void 0}},[m,g]);const _=u||ReactReduxContext;return reactExports.createElement(_.Provider,{value:m},i)}var Provider_default=Provider;function createReduxContextHook(t=ReactReduxContext){return function(){return reactExports.useContext(t)}}var useReduxContext=createReduxContextHook();function createStoreHook(t=ReactReduxContext){const i=t===ReactReduxContext?useReduxContext:createReduxContextHook(t),u=()=>{const{store:c}=i();return c};return Object.assign(u,{withTypes:()=>u}),u}var useStore=createStoreHook();function createDispatchHook(t=ReactReduxContext){const i=t===ReactReduxContext?useStore:createStoreHook(t),u=()=>i().dispatch;return Object.assign(u,{withTypes:()=>u}),u}var useDispatch=createDispatchHook(),refEquality=(t,i)=>t===i;function createSelectorHook(t=ReactReduxContext){const i=t===ReactReduxContext?useReduxContext:createReduxContextHook(t),u=(c,d={})=>{const{equalityFn:m=refEquality}=typeof d=="function"?{equalityFn:d}:d,g=i(),{store:_,subscription:y,getServerState:v}=g;reactExports.useRef(!0);const S=reactExports.useCallback({[c.name](T){return c(T)}}[c.name],[c]),A=withSelectorExports.useSyncExternalStoreWithSelector(y.addNestedSub,_.getState,v||_.getState,S,m);return reactExports.useDebugValue(A),A};return Object.assign(u,{withTypes:()=>u}),u}var useSelector=createSelectorHook();function r$1(t){var i,u,c="";if(typeof t=="string"||typeof t=="number")c+=t;else if(typeof t=="object")if(Array.isArray(t)){var d=t.length;for(i=0;i<d;i++)t[i]&&(u=r$1(t[i]))&&(c&&(c+=" "),c+=u)}else for(u in t)t[u]&&(c&&(c+=" "),c+=u);return c}function clsx(){for(var t,i,u=0,c="",d=arguments.length;u<d;u++)(t=arguments[u])&&(i=r$1(t))&&(c&&(c+=" "),c+=i);return c}const app="_app_1rj0t_1",styles$o={app},TYPING_ON="core.typing.on",TYPING_OFF="core.typing.off",MESSAGE_FROM_GUEST="core.message.from.guest",MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",MESSAGE_TO_GUEST="core.message.to.guest",NLU_REQUEST_EVENT="core.nlu.request.event",EVENT_TO_GUEST="core.event.to.guest",RESTART_CHAT_REQUEST="core.chat.restart.request",TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",DRAWER_OPEN="core.drawer.open",DRAWER_CLOSE="core.drawer.close",GUEST_LOCALE_CHANGED="core.guest.locale.changed";var ButtonTypeEnum;(function(t){t.WEB_URL="web_url",t.POSTBACK="postback"})(ButtonTypeEnum||(ButtonTypeEnum={}));var SatisfactionEnum;(function(t){t.GOOD="GOOD",t.BAD="BAD"})(SatisfactionEnum||(SatisfactionEnum={}));let Message$2=class{type;sender;sources;quickReplies;constructor(i,u,c=[],d=[]){this.type=i,this.sender=u,this.sources=c,this.quickReplies=d}addQuickReply(i,u){this.quickReplies.push({label:i,payload:u})}},TextMessage$1=class extends Message$2{text;constructor(i,u,c=[],d=[]){super(MessageTypeEnum.TEXT,u,c,d),this.text=i}};var MessageTypeEnum;(function(t){t.TEXT="TEXT",t.DETAIL="DETAIL",t.MARKDOWN="MARKDOWN",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.FILE="FILE",t.AUDIO="AUDIO"})(MessageTypeEnum||(MessageTypeEnum={}));class User{type;id;name;avatar;constructor(i,u,c,d){this.type=i,this.id=u,this.name=c,this.avatar=d}}class BotUser extends User{constructor(){super(UserType$1.BOT,null,"Chatbot","bot.svg")}}class GuestUser extends User{constructor(){super(UserType$1.GUEST,null,"Guest","visitor.svg")}}var UserType$1;(function(t){t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON"})(UserType$1||(UserType$1={}));const receiveTextMessageFromGuest=t=>{const i=new TextMessage$1(t,new GuestUser);return{type:MESSAGE_FROM_GUEST,message:i}},receiveTextMessageWithoutAnalysisFromGuest=(t,i={})=>{const u=new TextMessage$1(t,new GuestUser);return{type:MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:u,payload:i}},requestNLUEvent$1=t=>({type:NLU_REQUEST_EVENT,event:t}),transcriptItemGuestReaction=(t,i,u=null,c=null)=>({type:TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:t,reaction:i,category:u,comment:c}}),handleQuickReplyClick=t=>i=>(t.payload.type!==MESSAGE_FROM_GUEST&&i(receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),i(t.payload)),sendMessageFromUser=t=>(i,u)=>{const{quickReplies:c}=u().chat,d=c.find(m=>t.toLocaleLowerCase().indexOf(m.label.toLocaleLowerCase())>-1);return i(d?handleQuickReplyClick({...d,label:t}):JSON.parse(JSON.stringify(receiveTextMessageFromGuest(t))))},MESSAGE_TO_PARENT_PAGE="MESSAGE_TO_PARENT_PAGE",RESTORE_PREVIOUS_CHAT_MESSAGES="RESTORE_PREVIOUS_CHAT_MESSAGES",AUDIO_MESSAGE_FROM_USER="AUDIO_MESSAGE_FROM_USER",RECEIVE_SPEECH_TRANSCRIPTION="RECEIVE_SPEECH_TRANSCRIPTION",ENABLE_CONVERSATION_RATING="ENABLE_CONVERSATION_RATING",LOAD_SOURCE_INFOS_RESPONSE="LOAD_SOURCE_INFOS_RESPONSE",LOAD_SOURCE_INFOS_ERROR="LOAD_SOURCE_INFOS_ERROR",LOAD_SOURCE_INFOS_REQUEST="LOAD_SOURCE_INFOS_REQUEST",CLOSE_SOURCE_INFOS="CLOSE_SOURCE_INFOS",GET_STARTED="webclient.get.started",EXPAND_WINDOW="webclient.window.expand",CLOSE_WINDOW="webclient.window.close",DOWNLOAD_TRANSCRIPT_PDF="webclient.transcript.pdf.download",INTERNAL_ACTIONS$1=[MESSAGE_TO_PARENT_PAGE,RESTORE_PREVIOUS_CHAT_MESSAGES,AUDIO_MESSAGE_FROM_USER,RECEIVE_SPEECH_TRANSCRIPTION,ENABLE_CONVERSATION_RATING,LOAD_SOURCE_INFOS_REQUEST,CLOSE_SOURCE_INFOS],sendAudioMessageFromUser=t=>({type:AUDIO_MESSAGE_FROM_USER,buffer:t}),receiveSpeechTranscription=t=>({type:RECEIVE_SPEECH_TRANSCRIPTION,transcription:t}),exportTranscript=t=>({type:TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),downloadTranscriptPdf=()=>({type:DOWNLOAD_TRANSCRIPT_PDF}),enableConversationRating=({rating:t})=>({type:ENABLE_CONVERSATION_RATING,payload:{rating:t}}),handleRatingFromUser=(t,i)=>({type:CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:i}}),requestNLUEvent=t=>requestNLUEvent$1(t),restorePreviousChatMessages=t=>({type:RESTORE_PREVIOUS_CHAT_MESSAGES,messages:t}),handleButtonClick=t=>{switch(t.type){case ButtonTypeEnum.WEB_URL:return notifyParentToChangePath(t.url);case ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},handleLinkClick=t=>notifyParentToChangePath(t),notifyParentToChangePath=t=>({type:MESSAGE_TO_PARENT_PAGE,message:{type:"webclient.change.url",url:t}});function assign(t){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var c in u)t[c]=u[c]}return t}var defaultConverter={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(t,i){function u(d,m,g){if(!(typeof document>"u")){g=assign({},i,g),typeof g.expires=="number"&&(g.expires=new Date(Date.now()+g.expires*864e5)),g.expires&&(g.expires=g.expires.toUTCString()),d=encodeURIComponent(d).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var _="";for(var y in g)g[y]&&(_+="; "+y,g[y]!==!0&&(_+="="+g[y].split(";")[0]));return document.cookie=d+"="+t.write(m,d)+_}}function c(d){if(!(typeof document>"u"||arguments.length&&!d)){for(var m=document.cookie?document.cookie.split("; "):[],g={},_=0;_<m.length;_++){var y=m[_].split("="),v=y.slice(1).join("=");try{var S=decodeURIComponent(y[0]);if(g[S]=t.read(v,S),d===S)break}catch{}}return d?g[d]:g}}return Object.create({set:u,get:c,remove:function(d,m){u(d,"",assign({},m,{expires:-1}))},withAttributes:function(d){return init(this.converter,assign({},this.attributes,d))},withConverter:function(d){return init(assign({},this.converter,d),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}var api=init(defaultConverter,{path:"/"});const byteToHex=[];for(let t=0;t<256;++t)byteToHex.push((t+256).toString(16).slice(1));function unsafeStringify(t,i=0){return(byteToHex[t[i+0]]+byteToHex[t[i+1]]+byteToHex[t[i+2]]+byteToHex[t[i+3]]+"-"+byteToHex[t[i+4]]+byteToHex[t[i+5]]+"-"+byteToHex[t[i+6]]+byteToHex[t[i+7]]+"-"+byteToHex[t[i+8]]+byteToHex[t[i+9]]+"-"+byteToHex[t[i+10]]+byteToHex[t[i+11]]+byteToHex[t[i+12]]+byteToHex[t[i+13]]+byteToHex[t[i+14]]+byteToHex[t[i+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function _v4(t,i,u){t=t||{};const c=t.random??t.rng?.()??rng();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,unsafeStringify(c)}function v4(t,i,u){return native.randomUUID&&!t?native.randomUUID():_v4(t)}const getClientName=()=>extractClientNameFromPathname(window.location.pathname),extractClientNameFromPathname=t=>{const i=t.split("/"),u=t.endsWith("/");return i[i.length-(u?2:1)]};function formatProdErrorMessage$1(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var $$observable=typeof Symbol=="function"&&Symbol.observable||"@@observable",symbol_observable_default=$$observable,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes;function isPlainObject$1(t){if(typeof t!="object"||t===null)return!1;let i=t;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i||Object.getPrototypeOf(t)===null}function createStore(t,i,u){if(typeof t!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof i=="function"&&typeof u=="function"||typeof u=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof i=="function"&&typeof u>"u"&&(u=i,i=void 0),typeof u<"u"){if(typeof u!="function")throw new Error(formatProdErrorMessage$1(1));return u(createStore)(t,i)}let c=t,d=i,m=new Map,g=m,_=0,y=!1;function v(){g===m&&(g=new Map,m.forEach((w,j)=>{g.set(j,w)}))}function S(){if(y)throw new Error(formatProdErrorMessage$1(3));return d}function A(w){if(typeof w!="function")throw new Error(formatProdErrorMessage$1(4));if(y)throw new Error(formatProdErrorMessage$1(5));let j=!0;v();const M=_++;return g.set(M,w),function(){if(j){if(y)throw new Error(formatProdErrorMessage$1(6));j=!1,v(),g.delete(M),m=null}}}function T(w){if(!isPlainObject$1(w))throw new Error(formatProdErrorMessage$1(7));if(typeof w.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof w.type!="string")throw new Error(formatProdErrorMessage$1(17));if(y)throw new Error(formatProdErrorMessage$1(9));try{y=!0,d=c(d,w)}finally{y=!1}return(m=g).forEach(M=>{M()}),w}function D(w){if(typeof w!="function")throw new Error(formatProdErrorMessage$1(10));c=w,T({type:actionTypes_default.REPLACE})}function N(){const w=A;return{subscribe(j){if(typeof j!="object"||j===null)throw new Error(formatProdErrorMessage$1(11));function M(){const G=j;G.next&&G.next(S())}return M(),{unsubscribe:w(M)}},[symbol_observable_default](){return this}}}return T({type:actionTypes_default.INIT}),{dispatch:T,subscribe:A,getState:S,replaceReducer:D,[symbol_observable_default]:N}}function assertReducerShape(t){Object.keys(t).forEach(i=>{const u=t[i];if(typeof u(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof u(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(t){const i=Object.keys(t),u={};for(let m=0;m<i.length;m++){const g=i[m];typeof t[g]=="function"&&(u[g]=t[g])}const c=Object.keys(u);let d;try{assertReducerShape(u)}catch(m){d=m}return function(g={},_){if(d)throw d;let y=!1;const v={};for(let S=0;S<c.length;S++){const A=c[S],T=u[A],D=g[A],N=T(D,_);if(typeof N>"u")throw _&&_.type,new Error(formatProdErrorMessage$1(14));v[A]=N,y=y||N!==D}return y=y||c.length!==Object.keys(g).length,y?v:g}}function compose(...t){return t.length===0?i=>i:t.length===1?t[0]:t.reduce((i,u)=>(...c)=>i(u(...c)))}function applyMiddleware(...t){return i=>(u,c)=>{const d=i(u,c);let m=()=>{throw new Error(formatProdErrorMessage$1(15))};const g={getState:d.getState,dispatch:(y,...v)=>m(y,...v)},_=t.map(y=>y(g));return m=compose(..._)(d.dispatch),{...d,dispatch:m}}}function isAction(t){return isPlainObject$1(t)&&"type"in t&&typeof t.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(t,...i){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var O=Object,getPrototypeOf$1=O.getPrototypeOf,CONSTRUCTOR="constructor",PROTOTYPE="prototype",CONFIGURABLE="configurable",ENUMERABLE="enumerable",WRITABLE="writable",VALUE="value",isDraft=t=>!!t&&!!t[DRAFT_STATE];function isDraftable(t){return t?isPlainObject(t)||isArray(t)||!!t[DRAFTABLE]||!!t[CONSTRUCTOR]?.[DRAFTABLE]||isMap(t)||isSet(t):!1}var objectCtorString=O[PROTOTYPE][CONSTRUCTOR].toString(),cachedCtorStrings=new WeakMap;function isPlainObject(t){if(!t||!isObjectish(t))return!1;const i=getPrototypeOf$1(t);if(i===null||i===O[PROTOTYPE])return!0;const u=O.hasOwnProperty.call(i,CONSTRUCTOR)&&i[CONSTRUCTOR];if(u===Object)return!0;if(!isFunction(u))return!1;let c=cachedCtorStrings.get(u);return c===void 0&&(c=Function.toString.call(u),cachedCtorStrings.set(u,c)),c===objectCtorString}function each(t,i,u=!0){getArchtype(t)===0?(u?Reflect.ownKeys(t):O.keys(t)).forEach(d=>{i(d,t[d],t)}):t.forEach((c,d)=>i(d,c,t))}function getArchtype(t){const i=t[DRAFT_STATE];return i?i.type_:isArray(t)?1:isMap(t)?2:isSet(t)?3:0}var has=(t,i,u=getArchtype(t))=>u===2?t.has(i):O[PROTOTYPE].hasOwnProperty.call(t,i),get=(t,i,u=getArchtype(t))=>u===2?t.get(i):t[i],set=(t,i,u,c=getArchtype(t))=>{c===2?t.set(i,u):c===3?t.add(u):t[i]=u};function is(t,i){return t===i?t!==0||1/t===1/i:t!==t&&i!==i}var isArray=Array.isArray,isMap=t=>t instanceof Map,isSet=t=>t instanceof Set,isObjectish=t=>typeof t=="object",isFunction=t=>typeof t=="function",isBoolean$1=t=>typeof t=="boolean",latest=t=>t.copy_||t.base_,getFinalValue=t=>t.modified_?t.copy_:t.base_;function shallowCopy(t,i){if(isMap(t))return new Map(t);if(isSet(t))return new Set(t);if(isArray(t))return Array[PROTOTYPE].slice.call(t);const u=isPlainObject(t);if(i===!0||i==="class_only"&&!u){const c=O.getOwnPropertyDescriptors(t);delete c[DRAFT_STATE];let d=Reflect.ownKeys(c);for(let m=0;m<d.length;m++){const g=d[m],_=c[g];_[WRITABLE]===!1&&(_[WRITABLE]=!0,_[CONFIGURABLE]=!0),(_.get||_.set)&&(c[g]={[CONFIGURABLE]:!0,[WRITABLE]:!0,[ENUMERABLE]:_[ENUMERABLE],[VALUE]:t[g]})}return O.create(getPrototypeOf$1(t),c)}else{const c=getPrototypeOf$1(t);if(c!==null&&u)return{...t};const d=O.create(c);return O.assign(d,t)}}function freeze$1(t,i=!1){return isFrozen$1(t)||isDraft(t)||!isDraftable(t)||(getArchtype(t)>1&&O.defineProperties(t,{set:dontMutateMethodOverride,add:dontMutateMethodOverride,clear:dontMutateMethodOverride,delete:dontMutateMethodOverride}),O.freeze(t),i&&each(t,(u,c)=>{freeze$1(c,!0)},!1)),t}function dontMutateFrozenCollections(){die(2)}var dontMutateMethodOverride={[VALUE]:dontMutateFrozenCollections};function isFrozen$1(t){return t===null||!isObjectish(t)?!0:O.isFrozen(t)}var PluginMapSet="MapSet",PluginPatches="Patches",plugins={};function getPlugin(t){const i=plugins[t];return i||die(0,t),i}var isPluginLoaded=t=>!!plugins[t],currentScope,getCurrentScope=()=>currentScope,createScope=(t,i)=>({drafts_:[],parent_:t,immer_:i,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:isPluginLoaded(PluginMapSet)?getPlugin(PluginMapSet):void 0});function usePatchesInScope(t,i){i&&(t.patchPlugin_=getPlugin(PluginPatches),t.patches_=[],t.inversePatches_=[],t.patchListener_=i)}function revokeScope(t){leaveScope(t),t.drafts_.forEach(revokeDraft),t.drafts_=null}function leaveScope(t){t===currentScope&&(currentScope=t.parent_)}var enterScope=t=>currentScope=createScope(currentScope,t);function revokeDraft(t){const i=t[DRAFT_STATE];i.type_===0||i.type_===1?i.revoke_():i.revoked_=!0}function processResult(t,i){i.unfinalizedDrafts_=i.drafts_.length;const u=i.drafts_[0];if(t!==void 0&&t!==u){u[DRAFT_STATE].modified_&&(revokeScope(i),die(4)),isDraftable(t)&&(t=finalize(i,t));const{patchPlugin_:d}=i;d&&d.generateReplacementPatches_(u[DRAFT_STATE].base_,t,i)}else t=finalize(i,u);return maybeFreeze(i,t,!0),revokeScope(i),i.patches_&&i.patchListener_(i.patches_,i.inversePatches_),t!==NOTHING?t:void 0}function finalize(t,i){if(isFrozen$1(i))return i;const u=i[DRAFT_STATE];if(!u)return handleValue(i,t.handledSet_,t);if(!isSameScope(u,t))return i;if(!u.modified_)return u.base_;if(!u.finalized_){const{callbacks_:c}=u;if(c)for(;c.length>0;)c.pop()(t);generatePatchesAndFinalize(u,t)}return u.copy_}function maybeFreeze(t,i,u=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&freeze$1(i,u)}function markStateFinalized(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var isSameScope=(t,i)=>t.scope_===i,EMPTY_LOCATIONS_RESULT=[];function updateDraftInParent(t,i,u,c){const d=latest(t),m=t.type_;if(c!==void 0&&get(d,c,m)===i){set(d,c,u,m);return}if(!t.draftLocations_){const _=t.draftLocations_=new Map;each(d,(y,v)=>{if(isDraft(v)){const S=_.get(v)||[];S.push(y),_.set(v,S)}})}const g=t.draftLocations_.get(i)??EMPTY_LOCATIONS_RESULT;for(const _ of g)set(d,_,u,m)}function registerChildFinalizationCallback(t,i,u){t.callbacks_.push(function(d){const m=i;if(!m||!isSameScope(m,d))return;d.mapSetPlugin_?.fixSetContents(m);const g=getFinalValue(m);updateDraftInParent(t,m.draft_??m,g,u),generatePatchesAndFinalize(m,d)})}function generatePatchesAndFinalize(t,i){if(t.modified_&&!t.finalized_&&(t.type_===3||(t.assigned_?.size??0)>0)){const{patchPlugin_:c}=i;if(c){const d=c.getPath(t);d&&c.generatePatches_(t,d,i)}markStateFinalized(t)}}function handleCrossReference(t,i,u){const{scope_:c}=t;if(isDraft(u)){const d=u[DRAFT_STATE];isSameScope(d,c)&&d.callbacks_.push(function(){prepareCopy(t);const g=getFinalValue(d);updateDraftInParent(t,u,g,i)})}else isDraftable(u)&&t.callbacks_.push(function(){const m=latest(t);get(m,i,t.type_)===u&&c.drafts_.length>1&&(t.assigned_.get(i)??!1)===!0&&t.copy_&&handleValue(get(t.copy_,i,t.type_),c.handledSet_,c)})}function handleValue(t,i,u){return!u.immer_.autoFreeze_&&u.unfinalizedDrafts_<1||isDraft(t)||i.has(t)||!isDraftable(t)||isFrozen$1(t)||(i.add(t),each(t,(c,d)=>{if(isDraft(d)){const m=d[DRAFT_STATE];if(isSameScope(m,u)){const g=getFinalValue(m);set(t,c,g,t.type_),markStateFinalized(m)}}else isDraftable(d)&&handleValue(d,i,u)})),t}function createProxyProxy(t,i){const u=isArray(t),c={type_:u?1:0,scope_:i?i.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:i,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let d=c,m=objectTraps;u&&(d=[c],m=arrayTraps);const{revoke:g,proxy:_}=Proxy.revocable(d,m);return c.draft_=_,c.revoke_=g,[_,c]}var objectTraps={get(t,i){if(i===DRAFT_STATE)return t;const u=latest(t);if(!has(u,i,t.type_))return readPropFromProto(t,u,i);const c=u[i];if(t.finalized_||!isDraftable(c))return c;if(c===peek(t.base_,i)){prepareCopy(t);const d=t.type_===1?+i:i,m=createProxy(t.scope_,c,t,d);return t.copy_[d]=m}return c},has(t,i){return i in latest(t)},ownKeys(t){return Reflect.ownKeys(latest(t))},set(t,i,u){const c=getDescriptorFromProto(latest(t),i);if(c?.set)return c.set.call(t.draft_,u),!0;if(!t.modified_){const d=peek(latest(t),i),m=d?.[DRAFT_STATE];if(m&&m.base_===u)return t.copy_[i]=u,t.assigned_.set(i,!1),!0;if(is(u,d)&&(u!==void 0||has(t.base_,i,t.type_)))return!0;prepareCopy(t),markChanged(t)}return t.copy_[i]===u&&(u!==void 0||i in t.copy_)||Number.isNaN(u)&&Number.isNaN(t.copy_[i])||(t.copy_[i]=u,t.assigned_.set(i,!0),handleCrossReference(t,i,u)),!0},deleteProperty(t,i){return prepareCopy(t),peek(t.base_,i)!==void 0||i in t.base_?(t.assigned_.set(i,!1),markChanged(t)):t.assigned_.delete(i),t.copy_&&delete t.copy_[i],!0},getOwnPropertyDescriptor(t,i){const u=latest(t),c=Reflect.getOwnPropertyDescriptor(u,i);return c&&{[WRITABLE]:!0,[CONFIGURABLE]:t.type_!==1||i!=="length",[ENUMERABLE]:c[ENUMERABLE],[VALUE]:u[i]}},defineProperty(){die(11)},getPrototypeOf(t){return getPrototypeOf$1(t.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(t,i)=>{arrayTraps[t]=function(){const u=arguments;return u[0]=u[0][0],i.apply(this,u)}});arrayTraps.deleteProperty=function(t,i){return arrayTraps.set.call(this,t,i,void 0)};arrayTraps.set=function(t,i,u){return objectTraps.set.call(this,t[0],i,u,t[0])};function peek(t,i){const u=t[DRAFT_STATE];return(u?latest(u):t)[i]}function readPropFromProto(t,i,u){const c=getDescriptorFromProto(i,u);return c?VALUE in c?c[VALUE]:c.get?.call(t.draft_):void 0}function getDescriptorFromProto(t,i){if(!(i in t))return;let u=getPrototypeOf$1(t);for(;u;){const c=Object.getOwnPropertyDescriptor(u,i);if(c)return c;u=getPrototypeOf$1(u)}}function markChanged(t){t.modified_||(t.modified_=!0,t.parent_&&markChanged(t.parent_))}function prepareCopy(t){t.copy_||(t.assigned_=new Map,t.copy_=shallowCopy(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(i,u,c)=>{if(isFunction(i)&&!isFunction(u)){const m=u;u=i;const g=this;return function(y=m,...v){return g.produce(y,S=>u.call(this,S,...v))}}isFunction(u)||die(6),c!==void 0&&!isFunction(c)&&die(7);let d;if(isDraftable(i)){const m=enterScope(this),g=createProxy(m,i,void 0);let _=!0;try{d=u(g),_=!1}finally{_?revokeScope(m):leaveScope(m)}return usePatchesInScope(m,c),processResult(d,m)}else if(!i||!isObjectish(i)){if(d=u(i),d===void 0&&(d=i),d===NOTHING&&(d=void 0),this.autoFreeze_&&freeze$1(d,!0),c){const m=[],g=[];getPlugin(PluginPatches).generateReplacementPatches_(i,d,{patches_:m,inversePatches_:g}),c(m,g)}return d}else die(1,i)},this.produceWithPatches=(i,u)=>{if(isFunction(i))return(g,..._)=>this.produceWithPatches(g,y=>i(y,..._));let c,d;return[this.produce(i,u,(g,_)=>{c=g,d=_}),c,d]},isBoolean$1(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),isBoolean$1(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),isBoolean$1(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){isDraftable(t)||die(8),isDraft(t)&&(t=current(t));const i=enterScope(this),u=createProxy(i,t,void 0);return u[DRAFT_STATE].isManual_=!0,leaveScope(i),u}finishDraft(t,i){const u=t&&t[DRAFT_STATE];(!u||!u.isManual_)&&die(9);const{scope_:c}=u;return usePatchesInScope(c,i),processResult(void 0,c)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,i){let u;for(u=i.length-1;u>=0;u--){const d=i[u];if(d.path.length===0&&d.op==="replace"){t=d.value;break}}u>-1&&(i=i.slice(u+1));const c=getPlugin(PluginPatches).applyPatches_;return isDraft(t)?c(t,i):this.produce(t,d=>c(d,i))}};function createProxy(t,i,u,c){const[d,m]=isMap(i)?getPlugin(PluginMapSet).proxyMap_(i,u):isSet(i)?getPlugin(PluginMapSet).proxySet_(i,u):createProxyProxy(i,u);return(u?.scope_??getCurrentScope()).drafts_.push(d),m.callbacks_=u?.callbacks_??[],m.key_=c,u&&c!==void 0?registerChildFinalizationCallback(u,m,c):m.callbacks_.push(function(y){y.mapSetPlugin_?.fixSetContents(m);const{patchPlugin_:v}=y;m.modified_&&v&&v.generatePatches_(m,[],y)}),d}function current(t){return isDraft(t)||die(10,t),currentImpl(t)}function currentImpl(t){if(!isDraftable(t)||isFrozen$1(t))return t;const i=t[DRAFT_STATE];let u,c=!0;if(i){if(!i.modified_)return i.base_;i.finalized_=!0,u=shallowCopy(t,i.scope_.immer_.useStrictShallowCopy_),c=i.scope_.immer_.shouldUseStrictIteration()}else u=shallowCopy(t,!0);return each(u,(d,m)=>{set(u,d,currentImpl(m))},c),i&&(i.finalized_=!1),u}var immer=new Immer2,produce=immer.produce;function createThunkMiddleware(t){return({dispatch:u,getState:c})=>d=>m=>typeof m=="function"?m(u,c,t):d(m)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)};function createAction(t,i){function u(...c){if(i){let d=i(...c);if(!d)throw new Error(formatProdErrorMessage(0));return{type:t,payload:d.payload,..."meta"in d&&{meta:d.meta},..."error"in d&&{error:d.error}}}return{type:t,payload:c[0]}}return u.toString=()=>`${t}`,u.type=t,u.match=c=>isAction(c)&&c.type===t,u}var Tuple=class Li extends Array{constructor(...i){super(...i),Object.setPrototypeOf(this,Li.prototype)}static get[Symbol.species](){return Li}concat(...i){return super.concat.apply(this,i)}prepend(...i){return i.length===1&&Array.isArray(i[0])?new Li(...i[0].concat(this)):new Li(...i.concat(this))}};function freezeDraftable(t){return isDraftable(t)?produce(t,()=>{}):t}function getOrInsertComputed(t,i,u){return t.has(i)?t.get(i):t.set(i,u(i)).get(i)}function isBoolean(t){return typeof t=="boolean"}var buildGetDefaultMiddleware=()=>function(i){const{thunk:u=!0,immutableCheck:c=!0,serializableCheck:d=!0,actionCreatorCheck:m=!0}=i??{};let g=new Tuple;return u&&(isBoolean(u)?g.push(thunk):g.push(withExtraArgument(u.extraArgument))),g},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=t=>i=>{setTimeout(i,t)},autoBatchEnhancer=(t={type:"raf"})=>i=>(...u)=>{const c=i(...u);let d=!0,m=!1,g=!1;const _=new Set,y=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10):t.type==="callback"?t.queueNotification:createQueueWithTimer(t.timeout),v=()=>{g=!1,m&&(m=!1,_.forEach(S=>S()))};return Object.assign({},c,{subscribe(S){const A=()=>d&&S(),T=c.subscribe(A);return _.add(S),()=>{T(),_.delete(S)}},dispatch(S){try{return d=!S?.meta?.[SHOULD_AUTOBATCH],m=!d,m&&(g||(g=!0,y(v))),c.dispatch(S)}finally{d=!0}}})},buildGetDefaultEnhancers=t=>function(u){const{autoBatch:c=!0}=u??{};let d=new Tuple(t);return c&&d.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),d};function configureStore(t){const i=buildGetDefaultMiddleware(),{reducer:u=void 0,middleware:c,devTools:d=!0,preloadedState:m=void 0,enhancers:g=void 0}=t||{};let _;if(typeof u=="function")_=u;else if(isPlainObject$1(u))_=combineReducers(u);else throw new Error(formatProdErrorMessage(1));let y;typeof c=="function"?y=c(i):y=i();let v=compose;d&&(v=composeWithDevTools({trace:!1,...typeof d=="object"&&d}));const S=applyMiddleware(...y),A=buildGetDefaultEnhancers(S);let T=typeof g=="function"?g(A):A();const D=v(...T);return createStore(_,m,D)}function executeReducerBuilderCallback(t){const i={},u=[];let c;const d={addCase(m,g){const _=typeof m=="string"?m:m.type;if(!_)throw new Error(formatProdErrorMessage(28));if(_ in i)throw new Error(formatProdErrorMessage(29));return i[_]=g,d},addAsyncThunk(m,g){return g.pending&&(i[m.pending.type]=g.pending),g.rejected&&(i[m.rejected.type]=g.rejected),g.fulfilled&&(i[m.fulfilled.type]=g.fulfilled),g.settled&&u.push({matcher:m.settled,reducer:g.settled}),d},addMatcher(m,g){return u.push({matcher:m,reducer:g}),d},addDefaultCase(m){return c=m,d}};return t(d),[i,u,c]}function isStateFunction(t){return typeof t=="function"}function createReducer(t,i){let[u,c,d]=executeReducerBuilderCallback(i),m;if(isStateFunction(t))m=()=>freezeDraftable(t());else{const _=freezeDraftable(t);m=()=>_}function g(_=m(),y){let v=[u[y.type],...c.filter(({matcher:S})=>S(y)).map(({reducer:S})=>S)];return v.filter(S=>!!S).length===0&&(v=[d]),v.reduce((S,A)=>{if(A)if(isDraft(S)){const D=A(S,y);return D===void 0?S:D}else{if(isDraftable(S))return produce(S,T=>A(T,y));{const T=A(S,y);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}}return S},_)}return g.getInitialState=m,g}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(t,i){return`${t}/${i}`}function buildCreateSlice({creators:t}={}){const i=t?.asyncThunk?.[asyncThunkSymbol];return function(c){const{name:d,reducerPath:m=d}=c;if(!d)throw new Error(formatProdErrorMessage(11));const g=(typeof c.reducers=="function"?c.reducers(buildReducerCreators()):c.reducers)||{},_=Object.keys(g),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},v={addCase(k,G){const Z=typeof k=="string"?k:k.type;if(!Z)throw new Error(formatProdErrorMessage(12));if(Z in y.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return y.sliceCaseReducersByType[Z]=G,v},addMatcher(k,G){return y.sliceMatchers.push({matcher:k,reducer:G}),v},exposeAction(k,G){return y.actionCreators[k]=G,v},exposeCaseReducer(k,G){return y.sliceCaseReducersByName[k]=G,v}};_.forEach(k=>{const G=g[k],Z={reducerName:k,type:getType(d,k),createNotation:typeof c.reducers=="function"};isAsyncThunkSliceReducerDefinition(G)?handleThunkCaseReducerDefinition(Z,G,v,i):handleNormalReducerDefinition(Z,G,v)});function S(){const[k={},G=[],Z=void 0]=typeof c.extraReducers=="function"?executeReducerBuilderCallback(c.extraReducers):[c.extraReducers],F={...k,...y.sliceCaseReducersByType};return createReducer(c.initialState,P=>{for(let W in F)P.addCase(W,F[W]);for(let W of y.sliceMatchers)P.addMatcher(W.matcher,W.reducer);for(let W of G)P.addMatcher(W.matcher,W.reducer);Z&&P.addDefaultCase(Z)})}const A=k=>k,T=new Map,D=new WeakMap;let N;function R(k,G){return N||(N=S()),N(k,G)}function w(){return N||(N=S()),N.getInitialState()}function j(k,G=!1){function Z(P){let W=P[k];return typeof W>"u"&&G&&(W=getOrInsertComputed(D,Z,w)),W}function F(P=A){const W=getOrInsertComputed(T,G,()=>new WeakMap);return getOrInsertComputed(W,P,()=>{const J={};for(const[ne,ee]of Object.entries(c.selectors??{}))J[ne]=wrapSelector(ee,P,()=>getOrInsertComputed(D,P,w),G);return J})}return{reducerPath:k,getSelectors:F,get selectors(){return F(Z)},selectSlice:Z}}const M={name:d,reducer:R,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:w,...j(m),injectInto(k,{reducerPath:G,...Z}={}){const F=G??m;return k.inject({reducerPath:F,reducer:R},Z),{...M,...j(F,!0)}}};return M}}function wrapSelector(t,i,u,c){function d(m,...g){let _=i(m);return typeof _>"u"&&c&&(_=u()),t(_,...g)}return d.unwrapped=t,d}var createSlice=buildCreateSlice();function buildReducerCreators(){function t(i,u){return{_reducerDefinitionType:"asyncThunk",payloadCreator:i,...u}}return t.withTypes=()=>t,{reducer(i){return Object.assign({[i.name](...u){return i(...u)}}[i.name],{_reducerDefinitionType:"reducer"})},preparedReducer(i,u){return{_reducerDefinitionType:"reducerWithPrepare",prepare:i,reducer:u}},asyncThunk:t}}function handleNormalReducerDefinition({type:t,reducerName:i,createNotation:u},c,d){let m,g;if("reducer"in c){if(u&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage(17));m=c.reducer,g=c.prepare}else m=c;d.addCase(t,m).exposeCaseReducer(i,m).exposeAction(i,g?createAction(t,g):createAction(t))}function isAsyncThunkSliceReducerDefinition(t){return t._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(t){return t._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:t,reducerName:i},u,c,d){if(!d)throw new Error(formatProdErrorMessage(18));const{payloadCreator:m,fulfilled:g,pending:_,rejected:y,settled:v,options:S}=u,A=d(t,m,S);c.exposeAction(i,A),g&&c.addCase(A.fulfilled,g),_&&c.addCase(A.pending,_),y&&c.addCase(A.rejected,y),v&&c.addMatcher(A.settled,v),c.exposeCaseReducer(i,{fulfilled:g||noop,pending:_||noop,rejected:y||noop,settled:v||noop})}function noop(){}function formatProdErrorMessage(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const initialState$4={formValues:{}},startPageSlice=createSlice({name:"start-screen",initialState:initialState$4,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,i){t.startScreenStatus="HIDDEN",t.formValues=i.payload.formValues},startAuthenticatedChat(t,i){t.startScreenStatus="HIDDEN",t.loginToken=i.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,i){t.loginRequestToken=i.payload.loginRequestToken,t.formValues=i.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:startChat$1,startAuthenticatedChat,showStartScreen,requestLogin,loginWindowClosed}=startPageSlice.actions,startScreenReducer=startPageSlice.reducer,RESET_CHAT_STATE="RESET_CHAT_STATE",TOGGLE_TRANSCRIPT_MAIL_OVERLAY="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",SHOW_CONVERSATION_RATING_OVERLAY="SHOW_CONVERSATION_RATING_OVERLAY",HIDE_CONVERSATION_RATING_OVERLAY="HIDE_CONVERSATION_RATING_OVERLAY",closeChatWindow=()=>({type:CLOSE_WINDOW}),resetChatState=()=>({type:RESET_CHAT_STATE}),toggleTranscriptMailOverlay=()=>({type:TOGGLE_TRANSCRIPT_MAIL_OVERLAY}),showConversationRatingOverlay=(t,i=void 0)=>({type:SHOW_CONVERSATION_RATING_OVERLAY,payload:{opener:t,defaultRating:i}}),hideConversationRatingOverlay=()=>({type:HIDE_CONVERSATION_RATING_OVERLAY}),loadSourceInfosRequest=(t,i,u)=>(c,d)=>{try{const m=d().connection.sessionId;if(!m)throw new Error("Session ID is not available");c({type:LOAD_SOURCE_INFOS_REQUEST,payload:{chunkId:u}}),fetchSourceInfos(t,m,i,u,!1,c),fetchSourceInfos(t,m,i,u,!0,c)}catch(m){console.error("Error loading source infos:",m),c({type:LOAD_SOURCE_INFOS_ERROR})}},fetchSourceInfos=(t,i,u,c,d,m)=>{const g=`/${t}/me/chat-widget/transcript/${u}/chunks/${c}?highlight=${d}`;fetch(g,{headers:{"x-bubble-chat-session-id":i}}).then(_=>{if(!_.ok)throw new Error(`HTTP error! Status: ${_.status}`);return _.json()}).then(_=>{const y={..._,chunkId:c,highlighted:d};m({type:LOAD_SOURCE_INFOS_RESPONSE,payload:y})}).catch(_=>{console.error("Error fetching source infos:",_),m({type:LOAD_SOURCE_INFOS_ERROR,payload:{highlighted:d}})})},closeSourceInfos=()=>({type:CLOSE_SOURCE_INFOS}),CONNECT="CONNECT",CONNECTING="CONNECTING",CONNECTED="CONNECTED",DISCONNECTED="DISCONNECTED",RECONNECTED="RECONNECTED",RESTORE_SESSION_ID="RESTORE_SESSION_ID",START="START",TERMINATE_SESSION="CLEAR_SESSION_ID",INTERNAL_ACTIONS=[CONNECT,CONNECTING,CONNECTED,DISCONNECTED,RECONNECTED,RESTORE_SESSION_ID],connect=(t,i)=>({type:CONNECT,clientName:t,querystrings:i}),restoreSessionId=t=>({type:RESTORE_SESSION_ID,sessionId:t}),connecting=()=>({type:CONNECTING}),connected=()=>({type:CONNECTED}),disconnected=()=>({type:DISCONNECTED}),reconnected=()=>({type:RECONNECTED}),startChat=t=>(i,u)=>{const c=u().connection,{formValues:d,loginToken:m}=u().startScreen;let g=c.sessionId;g===void 0&&(g=v4());let _=c.userId;if(_===void 0){const S=api.get("bubble-chat-user-id")||api.get("bubble-chat-userId")||api.get("bf-webclient-userId");_=S||v4(),api.set("bubble-chat-user-id",_)}const y=new URLSearchParams(u().connection.queryString||""),v=Object.fromEntries(y.entries());i({type:START,payload:{sessionId:g,userId:_,clientName:t,loginToken:m,querystrings:{...v,...d}}})},restartChat=()=>(t,i)=>{const u=i().connection.sessionId||"";if(t(terminateSession(u)),t(resetChatState()),i().settings.enableStartScreen)t(showStartScreen());else{const c=getClientName();return t(startChat(c))}},terminateSession=t=>({type:TERMINATE_SESSION,payload:{sessionId:t}}),useAppDispatch=useDispatch,useAppSelector=useSelector,useTranslation=()=>{const t=useAppSelector(u=>u.intl.messages);return u=>t[u]||void 0};var ConnectionStateEnum=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(ConnectionStateEnum||{}),UserType=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(UserType||{});const container$6="_container_q2uun_1",chatcontent="_chatcontent_q2uun_6",accessabilityHidden="_accessabilityHidden_q2uun_12",styles$n={container:container$6,chatcontent,accessabilityHidden},messageContainer$1="_messageContainer_1t640_1",messages="_messages_1t640_13",styles$m={messageContainer:messageContainer$1,messages};var mJ=Object.defineProperty,kJ=(t,i)=>{for(var u in i)mJ(t,u,{get:i[u],enumerable:!0,configurable:!0,set:c=>i[u]=()=>c})},I=32,l=9,Aq=13,$q=10,mq=96,d1=126,L1=91,$G=94,T1=62,MG=35,V1=45,E1=61,i1=92,AG=42,c1=95,VG=60,yG=64,XG=93,BG=33,NG=38,RG=58,P1=102,I1=104,w1=119,pG=116,_Z=112,oZ=115,nZ=160,tZ=12,LG=46,KG=47,eZ=43,qJ=124,GJ=123,jZ=120,HZ=88,a1=48,r1=57,m1=65,k1=90,s1=97,o1=122,q1=128,ZJ=32,CJ={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},b=CJ,BZ={};kJ(BZ,{startsWith:()=>r,slugify:()=>iq,skipWhitespace:()=>yq,shouldFilterTag:()=>aG,sanitizer:()=>C1,parseFrontmatterBounds:()=>wZ,isVoidElement:()=>QG,isUnicodeWhitespace:()=>t1,isUnicodePunctuation:()=>iG,isAlnumCode:()=>uG,isASCIIWhitespace:()=>fG,isASCIIPunctuation:()=>dJ,inlineCharTypeTable:()=>TG,includes:()=>hJ,htmlAttrsToJSXProps:()=>lG,hasKeys:()=>cG,getTag:()=>aJ,getOverrideProps:()=>rJ,get:()=>yZ,findLineEnd:()=>E,extractPlainText:()=>XJ,endsWith:()=>dG,decodeEntityReferences:()=>vG,charClassTable:()=>zG,applyTagFilterToText:()=>rG,VOID_ELEMENTS:()=>bZ,SHOULD_RENDER_AS_BLOCK_R:()=>WZ,SANITIZE_R:()=>UG,NAMED_CODES_TO_UNICODE:()=>FZ,HTML_TO_JSX_MAP:()=>VJ,HTML_CHAR_CODE_R:()=>$J,ATTRIBUTES_TO_SANITIZE:()=>MZ});var JJ={af:"⁡",applyfunction:"⁡",ic:"⁣",invisiblecomma:"⁣",invisibletimes:"⁢",it:"⁢",lrm:"‎",negativemediumspace:"​",negativethickspace:"​",negativethinspace:"​",negativeverythinspace:"​",nobreak:"⁠",rlm:"‏",shy:"­",zerowidthspace:"​",zwj:"‍",zwnj:"‌",downbreve:"̑",tdot:"⃛",tripledot:"⃛",dotdot:"⃜",tab:" ",newline:`
14
- `,emsp:" ",emsp13:" ",emsp14:" ",ensp:" ",hairsp:" ",mediumspace:" ",puncsp:" ",thinsp:" ",thinspace:" ",verythinspace:" ",nbsp:" ",nonbreakingspace:" ",numsp:" ",thickspace:"  ",oline:"‾",overbar:"‾",lowbar:"_",underbar:"_",dash:"‐",hyphen:"‐",ndash:"–",mdash:"—",horbar:"―",comma:",",semi:";",bsemi:"⁏",colon:":",Colone:"⩴",excl:"!",iexcl:"¡",quest:"?",iquest:"¿",period:".",nldr:"‥",hellip:"…",mldr:"…",centerdot:"·",middot:"·",apos:"'",lsquo:"‘",opencurlyquote:"‘",closecurlyquote:"’",rsquo:"’",rsquor:"’",lsquor:"‚",sbquo:"‚",lsaquo:"‹",rsaquo:"›",quot:'"',ldquo:"“",opencurlydoublequote:"“",closecurlydoublequote:"”",rdquo:"”",rdquor:"”",bdquo:"„",ldquor:"„",laquo:"«",raquo:"»",lpar:"(",rpar:")",lbrack:"[",lsqb:"[",rbrack:"]",rsqb:"]",lbrace:"{",lcub:"{",rbrace:"}",rcub:"}",lceil:"⌈",leftceiling:"⌈",rceil:"⌉",rightceiling:"⌉",leftfloor:"⌊",lfloor:"⌊",rfloor:"⌋",rightfloor:"⌋",lopar:"⦅",ropar:"⦆",lbrke:"⦋",rbrke:"⦌",lbrkslu:"⦍",rbrksld:"⦎",lbrksld:"⦏",rbrkslu:"⦐",langd:"⦑",rangd:"⦒",lparlt:"⦓",rpargt:"⦔",gtlpar:"⦕",ltrpar:"⦖",leftdoublebracket:"⟦",lobrk:"⟦",rightdoublebracket:"⟧",robrk:"⟧",lang:"⟨",langle:"⟨",leftanglebracket:"⟨",rang:"⟩",rangle:"⟩",rightanglebracket:"⟩",Lang:"⟪",Rang:"⟫",loang:"⟬",roang:"⟭",lbbrk:"❲",rbbrk:"❳",Verbar:"‖",Vert:"‖",sect:"§",para:"¶",commat:"@",ast:"*",midast:"*",sol:"/",bsol:"\\",amp:"&",num:"#",percnt:"%",permil:"‰",pertenk:"‱",dagger:"†",Dagger:"‡",ddagger:"‡",bull:"•",bullet:"•",hybull:"⁃",prime:"′",Prime:"″",tprime:"‴",qprime:"⁗",backprime:"‵",bprime:"‵",caret:"⁁",diacriticalgrave:"`",grave:"`",acute:"´",diacriticalacute:"´",diacriticaltilde:"˜",tilde:"˜",hat:"^",macr:"¯",strns:"¯",breve:"˘",diacriticaldot:"˙",dot:"˙",die:"¨",Dot:"¨",doubledot:"¨",uml:"¨",ring:"˚",dblac:"˝",diacriticaldoubleacute:"˝",cedil:"¸",cedilla:"¸",ogon:"˛",circ:"ˆ",caron:"ˇ",hacek:"ˇ",deg:"°",copy:"©",circledr:"®",reg:"®",copysr:"℗",weierp:"℘",wp:"℘",rx:"℞",mho:"℧",iiota:"℩",larr:"←",leftarrow:"←",shortleftarrow:"←",slarr:"←",nlarr:"↚",nleftarrow:"↚",rarr:"→",rightarrow:"→",shortrightarrow:"→",srarr:"→",nrarr:"↛",nrightarrow:"↛",shortuparrow:"↑",uarr:"↑",uparrow:"↑",darr:"↓",downarrow:"↓",shortdownarrow:"↓",harr:"↔",leftrightarrow:"↔",nharr:"↮",nleftrightarrow:"↮",updownarrow:"↕",varr:"↕",nwarr:"↖",nwarrow:"↖",upperleftarrow:"↖",nearr:"↗",nearrow:"↗",upperrightarrow:"↗",lowerrightarrow:"↘",searr:"↘",searrow:"↘",lowerleftarrow:"↙",swarr:"↙",swarrow:"↙",rarrw:"↝",rightsquigarrow:"↝",nrarrw:"↝̸",Larr:"↞",twoheadleftarrow:"↞",Uarr:"↟",Rarr:"↠",twoheadrightarrow:"↠",Darr:"↡",larrtl:"↢",leftarrowtail:"↢",rarrtl:"↣",rightarrowtail:"↣",leftteearrow:"↤",mapstoleft:"↤",mapstoup:"↥",upteearrow:"↥",map:"↦",mapsto:"↦",rightteearrow:"↦",downteearrow:"↧",mapstodown:"↧",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",larrlp:"↫",looparrowleft:"↫",looparrowright:"↬",rarrlp:"↬",harrw:"↭",leftrightsquigarrow:"↭",lsh:"↰",rsh:"↱",ldsh:"↲",rdsh:"↳",crarr:"↵",cularr:"↶",curvearrowleft:"↶",curarr:"↷",curvearrowright:"↷",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",leftharpoonup:"↼",leftvector:"↼",lharu:"↼",downleftvector:"↽",leftharpoondown:"↽",lhard:"↽",rightupvector:"↾",uharr:"↾",upharpoonright:"↾",leftupvector:"↿",uharl:"↿",upharpoonleft:"↿",rharu:"⇀",rightharpoonup:"⇀",rightvector:"⇀",downrightvector:"⇁",rhard:"⇁",rightharpoondown:"⇁",dharr:"⇂",downharpoonright:"⇂",rightdownvector:"⇂",dharl:"⇃",downharpoonleft:"⇃",leftdownvector:"⇃",rightarrowleftarrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",udarr:"⇅",uparrowdownarrow:"⇅",leftarrowrightarrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",leftleftarrows:"⇇",llarr:"⇇",upuparrows:"⇈",uuarr:"⇈",rightrightarrows:"⇉",rrarr:"⇉",ddarr:"⇊",downdownarrows:"⇊",leftrightharpoons:"⇋",lrhar:"⇋",reverseequilibrium:"⇋",equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",doubleleftarrow:"⇐",lArr:"⇐",Leftarrow:"⇐",nlArr:"⇍",nLeftarrow:"⇍",doubleuparrow:"⇑",uArr:"⇑",Uparrow:"⇑",doublerightarrow:"⇒",implies:"⇒",rArr:"⇒",Rightarrow:"⇒",nrArr:"⇏",nRightarrow:"⇏",dArr:"⇓",doubledownarrow:"⇓",Downarrow:"⇓",doubleleftrightarrow:"⇔",hArr:"⇔",iff:"⇔",Leftrightarrow:"⇔",nhArr:"⇎",nLeftrightarrow:"⇎",doubleupdownarrow:"⇕",Updownarrow:"⇕",vArr:"⇕",nwArr:"⇖",neArr:"⇗",seArr:"⇘",swArr:"⇙",laarr:"⇚",lleftarrow:"⇚",raarr:"⇛",rrightarrow:"⇛",zigrarr:"⇝",larrb:"⇤",leftarrowbar:"⇤",rarrb:"⇥",rightarrowbar:"⇥",downarrowuparrow:"⇵",duarr:"⇵",loarr:"⇽",roarr:"⇾",hoarr:"⇿",forall:"∀",comp:"∁",complement:"∁",part:"∂",partiald:"∂",npart:"∂̸",exist:"∃",exists:"∃",nexist:"∄",nexists:"∄",notexists:"∄",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",del:"∇",nabla:"∇",element:"∈",in:"∈",isin:"∈",isinv:"∈",notelement:"∉",notin:"∉",notinva:"∉",ni:"∋",niv:"∋",reverseelement:"∋",suchthat:"∋",notni:"∌",notniva:"∌",notreverseelement:"∌",backepsilon:"϶",bepsi:"϶",prod:"∏",product:"∏",coprod:"∐",coproduct:"∐",sum:"∑",plus:"+",plusminus:"±",plusmn:"±",pm:"±",div:"÷",divide:"÷",times:"×",lt:"<",nless:"≮",nlt:"≮",notless:"≮",nvlt:"<⃒",equals:"=",ne:"≠",notequal:"≠",bne:"=⃥",equal:"⩵",gt:">",ngt:"≯",ngtr:"≯",notgreater:"≯",nvgt:">⃒",not:"¬",verbar:"|",vert:"|",verticalline:"|",brvbar:"¦",minus:"−",minusplus:"∓",mnplus:"∓",mp:"∓",dotplus:"∔",plusdo:"∔",frasl:"⁄",backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",lowast:"∗",compfn:"∘",smallcircle:"∘",radic:"√",sqrt:"√",prop:"∝",proportional:"∝",propto:"∝",varpropto:"∝",vprop:"∝",infin:"∞",angrt:"∟",ang:"∠",angle:"∠",nang:"∠⃒",angmsd:"∡",measuredangle:"∡",angsph:"∢",mid:"∣",shortmid:"∣",smid:"∣",verticalbar:"∣",nmid:"∤",notverticalbar:"∤",nshortmid:"∤",nsmid:"∤",doubleverticalbar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",notdoubleverticalbar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",and:"∧",wedge:"∧",or:"∨",vee:"∨",cap:"∩",caps:"∩︀",cup:"∪",cups:"∪︀",int:"∫",integral:"∫",Int:"∬",iiint:"∭",tint:"∭",iiiint:"⨌",qint:"⨌",conint:"∮",contourintegral:"∮",oint:"∮",Conint:"∯",doublecontourintegral:"∯",cconint:"∰",cwint:"∱",clockwisecontourintegral:"∲",cwconint:"∲",awconint:"∳",counterclockwisecontourintegral:"∳",there4:"∴",therefore:"∴",becaus:"∵",because:"∵",ratio:"∶",Colon:"∷",proportion:"∷",dotminus:"∸",minusd:"∸",mddot:"∺",homtht:"∻",sim:"∼",thicksim:"∼",thksim:"∼",Tilde:"∼",nottilde:"≁",nsim:"≁",nvsim:"∼⃒",backsim:"∽",bsim:"∽",race:"∽̱",ac:"∾",mstpos:"∾",ace:"∾̳",acd:"∿",verticaltilde:"≀",wr:"≀",wreath:"≀",eqsim:"≂",equaltilde:"≂",esim:"≂",nesim:"≂̸",notequaltilde:"≂̸",sime:"≃",simeq:"≃",tildeequal:"≃",nottildeequal:"≄",nsime:"≄",nsimeq:"≄",cong:"≅",tildefullequal:"≅",ncong:"≇",nottildefullequal:"≇",simne:"≆",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",tildetilde:"≈",nap:"≉",napprox:"≉",nottildetilde:"≉",ape:"≊",approxeq:"≊",apid:"≋",napid:"≋̸",backcong:"≌",bcong:"≌",asympeq:"≍",CupCap:"≍",notcupcap:"≭",nvap:"≍⃒",bump:"≎",Bumpeq:"≎",humpdownhump:"≎",nbump:"≎̸",nothumpdownhump:"≎̸",bumpe:"≏",bumpeq:"≏",humpequal:"≏",nbumpe:"≏̸",nothumpequal:"≏̸",doteq:"≐",dotequal:"≐",esdot:"≐",nedot:"≐̸",doteqdot:"≑",eDot:"≑",efdot:"≒",fallingdotseq:"≒",erdot:"≓",risingdotseq:"≓",assign:"≔",colone:"≔",coloneq:"≔",ecolon:"≕",eqcolon:"≕",ecir:"≖",eqcirc:"≖",circeq:"≗",cire:"≗",wedgeq:"≙",veeeq:"≚",triangleq:"≜",trie:"≜",equest:"≟",questeq:"≟",congruent:"≡",equiv:"≡",nequiv:"≢",notcongruent:"≢",bnequiv:"≡⃥",le:"≤",leq:"≤",nle:"≰",nleq:"≰",notlessequal:"≰",nvle:"≤⃒",ge:"≥",geq:"≥",greaterequal:"≥",nge:"≱",ngeq:"≱",notgreaterequal:"≱",nvge:"≥⃒",lE:"≦",leqq:"≦",lessfullequal:"≦",nlE:"≦̸",nleqq:"≦̸",gE:"≧",geqq:"≧",greaterfullequal:"≧",ngE:"≧̸",ngeqq:"≧̸",notgreaterfullequal:"≧̸",lnE:"≨",lneqq:"≨",lvertneqq:"≨︀",lvne:"≨︀",gnE:"≩",gneqq:"≩",gvertneqq:"≩︀",gvne:"≩︀",ll:"≪",Lt:"≪",nestedlessless:"≪",nltv:"≪̸",notlessless:"≪̸",nLt:"≪⃒",gg:"≫",Gt:"≫",nestedgreatergreater:"≫",ngtv:"≫̸",notgreatergreater:"≫̸",nGt:"≫⃒",between:"≬",twixt:"≬",lesssim:"≲",lesstilde:"≲",lsim:"≲",nlsim:"≴",notlesstilde:"≴",greatertilde:"≳",gsim:"≳",gtrsim:"≳",ngsim:"≵",notgreatertilde:"≵",lessgreater:"≶",lessgtr:"≶",lg:"≶",notlessgreater:"≸",ntlg:"≸",gl:"≷",greaterless:"≷",gtrless:"≷",notgreaterless:"≹",ntgl:"≹",pr:"≺",prec:"≺",precedes:"≺",notprecedes:"⊀",npr:"⊀",nprec:"⊀",sc:"≻",succ:"≻",succeeds:"≻",notsucceeds:"⊁",nsc:"⊁",nsucc:"⊁",prcue:"≼",preccurlyeq:"≼",precedesslantequal:"≼",notprecedesslantequal:"⋠",nprcue:"⋠",sccue:"≽",succcurlyeq:"≽",succeedsslantequal:"≽",notsucceedsslantequal:"⋡",nsccue:"⋡",precedestilde:"≾",precsim:"≾",prsim:"≾",scsim:"≿",succeedstilde:"≿",succsim:"≿",notsucceedstilde:"≿̸",sub:"⊂",subset:"⊂",nsub:"⊄",notsubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",sup:"⊃",superset:"⊃",supset:"⊃",nsup:"⊅",notsuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",sube:"⊆",subseteq:"⊆",subsetequal:"⊆",notsubsetequal:"⊈",nsube:"⊈",nsubseteq:"⊈",supe:"⊇",supersetequal:"⊇",supseteq:"⊇",notsupersetequal:"⊉",nsupe:"⊉",nsupseteq:"⊉",subne:"⊊",subsetneq:"⊊",varsubsetneq:"⊊︀",vsubne:"⊊︀",supne:"⊋",supsetneq:"⊋",varsupsetneq:"⊋︀",vsupne:"⊋︀",cupdot:"⊍",unionplus:"⊎",uplus:"⊎",sqsub:"⊏",sqsubset:"⊏",squaresubset:"⊏",notsquaresubset:"⊏̸",sqsup:"⊐",sqsupset:"⊐",squaresuperset:"⊐",notsquaresuperset:"⊐̸",sqsube:"⊑",sqsubseteq:"⊑",squaresubsetequal:"⊑",notsquaresubsetequal:"⋢",nsqsube:"⋢",sqsupe:"⊒",sqsupseteq:"⊒",squaresupersetequal:"⊒",notsquaresupersetequal:"⋣",nsqsupe:"⋣",sqcap:"⊓",sqcaps:"⊓︀",squareintersection:"⊓",sqcup:"⊔",sqcups:"⊔︀",squareunion:"⊔",circleplus:"⊕",oplus:"⊕",circleminus:"⊖",ominus:"⊖",circletimes:"⊗",otimes:"⊗",osol:"⊘",circledot:"⊙",odot:"⊙",circledcirc:"⊚",ocir:"⊚",circledast:"⊛",oast:"⊛",circleddash:"⊝",odash:"⊝",boxplus:"⊞",plusb:"⊞",boxminus:"⊟",minusb:"⊟",boxtimes:"⊠",timesb:"⊠",dotsquare:"⊡",sdotb:"⊡",righttee:"⊢",vdash:"⊢",nvdash:"⊬",dashv:"⊣",lefttee:"⊣",downtee:"⊤",top:"⊤",bot:"⊥",bottom:"⊥",perp:"⊥",uptee:"⊥",models:"⊧",doublerighttee:"⊨",vDash:"⊨",nvDash:"⊭",Vdash:"⊩",nVdash:"⊮",vvdash:"⊪",VDash:"⊫",nVDash:"⊯",prurel:"⊰",lefttriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",nltri:"⋪",notlefttriangle:"⋪",ntriangleleft:"⋪",righttriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",notrighttriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",lefttriangleequal:"⊴",ltrie:"⊴",trianglelefteq:"⊴",nltrie:"⋬",notlefttriangleequal:"⋬",ntrianglelefteq:"⋬",nvltrie:"⊴⃒",righttriangleequal:"⊵",rtrie:"⊵",trianglerighteq:"⊵",notrighttriangleequal:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",nvrtrie:"⊵⃒",origof:"⊶",imof:"⊷",multimap:"⊸",mumap:"⊸",hercon:"⊹",intcal:"⊺",intercal:"⊺",veebar:"⊻",barvee:"⊽",angrtvb:"⊾",lrtri:"⊿",bigwedge:"⋀",Wedge:"⋀",xwedge:"⋀",bigvee:"⋁",Vee:"⋁",xvee:"⋁",bigcap:"⋂",intersection:"⋂",xcap:"⋂",bigcup:"⋃",union:"⋃",xcup:"⋃",diam:"⋄",diamond:"⋄",sdot:"⋅",sstarf:"⋆",Star:"⋆",divideontimes:"⋇",divonx:"⋇",bowtie:"⋈",ltimes:"⋉",rtimes:"⋊",leftthreetimes:"⋋",lthree:"⋋",rightthreetimes:"⋌",rthree:"⋌",backsimeq:"⋍",bsime:"⋍",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",Sub:"⋐",Subset:"⋐",Sup:"⋑",Supset:"⋑",Cap:"⋒",Cup:"⋓",fork:"⋔",pitchfork:"⋔",epar:"⋕",lessdot:"⋖",ltdot:"⋖",gtdot:"⋗",gtrdot:"⋗",Ll:"⋘",nll:"⋘̸",Gg:"⋙",ggg:"⋙",ngg:"⋙̸",leg:"⋚",lesg:"⋚︀",lesseqgtr:"⋚",lessequalgreater:"⋚",gel:"⋛",gesl:"⋛︀",greaterequalless:"⋛",gtreqless:"⋛",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",lnsim:"⋦",gnsim:"⋧",precnsim:"⋨",prnsim:"⋨",scnsim:"⋩",succnsim:"⋩",vellip:"⋮",ctdot:"⋯",utdot:"⋰",dtdot:"⋱",disin:"⋲",isinsv:"⋳",isins:"⋴",isindot:"⋵",notindot:"⋵̸",notinvc:"⋶",notinvb:"⋷",isine:"⋹",notine:"⋹̸",nisd:"⋺",xnis:"⋻",nis:"⋼",notnivc:"⋽",notnivb:"⋾",barwed:"⌅",barwedge:"⌅",Barwed:"⌆",doublebarwedge:"⌆",drcrop:"⌌",dlcrop:"⌍",urcrop:"⌎",ulcrop:"⌏",bnot:"⌐",profline:"⌒",profsurf:"⌓",telrec:"⌕",target:"⌖",ulcorn:"⌜",ulcorner:"⌜",urcorn:"⌝",urcorner:"⌝",dlcorn:"⌞",llcorner:"⌞",drcorn:"⌟",lrcorner:"⌟",frown:"⌢",sfrown:"⌢",smile:"⌣",ssmile:"⌣",cylcty:"⌭",profalar:"⌮",topbot:"⌶",ovbar:"⌽",solbar:"⌿",angzarr:"⍼",lmoust:"⎰",lmoustache:"⎰",rmoust:"⎱",rmoustache:"⎱",overbracket:"⎴",tbrk:"⎴",bbrk:"⎵",underbracket:"⎵",bbrktbrk:"⎶",overparenthesis:"⏜",underparenthesis:"⏝",overbrace:"⏞",underbrace:"⏟",trpezium:"⏢",elinters:"⏧",blank:"␣",boxh:"─",horizontalline:"─",boxv:"│",boxdr:"┌",boxdl:"┐",boxur:"└",boxul:"┘",boxvr:"├",boxvl:"┤",boxhd:"┬",boxhu:"┴",boxvh:"┼",boxH:"═",boxV:"║",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxvR:"╞",boxVr:"╟",boxVR:"╠",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxvH:"╪",boxVh:"╫",boxVH:"╬",uhblk:"▀",lhblk:"▄",block:"█",blk14:"░",blk12:"▒",blk34:"▓",squ:"□",square:"□",blacksquare:"▪",filledverysmallsquare:"▪",squarf:"▪",squf:"▪",emptyverysmallsquare:"▫",rect:"▭",marker:"▮",fltns:"▱",bigtriangleup:"△",xutri:"△",blacktriangle:"▴",utrif:"▴",triangle:"▵",utri:"▵",blacktriangleright:"▸",rtrif:"▸",rtri:"▹",triangleright:"▹",bigtriangledown:"▽",xdtri:"▽",blacktriangledown:"▾",dtrif:"▾",dtri:"▿",triangledown:"▿",blacktriangleleft:"◂",ltrif:"◂",ltri:"◃",triangleleft:"◃",loz:"◊",lozenge:"◊",cir:"○",tridot:"◬",bigcirc:"◯",xcirc:"◯",ultri:"◸",urtri:"◹",lltri:"◺",emptysmallsquare:"◻",filledsmallsquare:"◼",bigstar:"★",starf:"★",star:"☆",phone:"☎",female:"♀",male:"♂",spades:"♠",spadesuit:"♠",clubs:"♣",clubsuit:"♣",hearts:"♥",heartsuit:"♥",diamondsuit:"♦",diams:"♦",sung:"♪",check:"✓",checkmark:"✓",cross:"✗",malt:"✠",maltese:"✠",sext:"✶",verticalseparator:"❘",bsolhsub:"⟈",suphsol:"⟉",longleftarrow:"⟵",xlarr:"⟵",longrightarrow:"⟶",xrarr:"⟶",longleftrightarrow:"⟷",xharr:"⟷",doublelongleftarrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",doublelongrightarrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",doublelongleftrightarrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",longmapsto:"⟼",xmap:"⟼",dzigrarr:"⟿",nvlarr:"⤂",nvrarr:"⤃",nvharr:"⤄",Map:"⤅",lbarr:"⤌",bkarow:"⤍",lBarr:"⤎",dbkarow:"⤏",rBarr:"⤏",drbkarow:"⤐",rbarr:"⤐",RBarr:"⤐",ddotrahd:"⤑",uparrowbar:"⤒",downarrowbar:"⤓",Rarrtl:"⤖",latail:"⤙",ratail:"⤚",lAtail:"⤛",rAtail:"⤜",larrfs:"⤝",rarrfs:"⤞",larrbfs:"⤟",rarrbfs:"⤠",nwarhk:"⤣",nearhk:"⤤",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",nwnear:"⤧",nesear:"⤨",toea:"⤨",seswar:"⤩",tosa:"⤩",swnwar:"⤪",rarrc:"⤳",nrarrc:"⤳̸",cudarrr:"⤵",ldca:"⤶",rdca:"⤷",cudarrl:"⤸",larrpl:"⤹",curarrm:"⤼",cularrp:"⤽",rarrpl:"⥅",harrcir:"⥈",uarrocir:"⥉",lurdshar:"⥊",ldrushar:"⥋",leftrightvector:"⥎",rightupdownvector:"⥏",downleftrightvector:"⥐",leftupdownvector:"⥑",leftvectorbar:"⥒",rightvectorbar:"⥓",rightupvectorbar:"⥔",rightdownvectorbar:"⥕",downleftvectorbar:"⥖",downrightvectorbar:"⥗",leftupvectorbar:"⥘",leftdownvectorbar:"⥙",leftteevector:"⥚",rightteevector:"⥛",rightupteevector:"⥜",rightdownteevector:"⥝",downleftteevector:"⥞",downrightteevector:"⥟",leftupteevector:"⥠",leftdownteevector:"⥡",lhar:"⥢",uhar:"⥣",rhar:"⥤",dhar:"⥥",luruhar:"⥦",ldrdhar:"⥧",ruluhar:"⥨",rdldhar:"⥩",lharul:"⥪",llhard:"⥫",rharul:"⥬",lrhard:"⥭",udhar:"⥮",upequilibrium:"⥮",duhar:"⥯",reverseupequilibrium:"⥯",roundimplies:"⥰",erarr:"⥱",simrarr:"⥲",larrsim:"⥳",rarrsim:"⥴",rarrap:"⥵",ltlarr:"⥶",gtrarr:"⥸",subrarr:"⥹",suplarr:"⥻",lfisht:"⥼",rfisht:"⥽",ufisht:"⥾",dfisht:"⥿",vzigzag:"⦚",vangrt:"⦜",angrtvbd:"⦝",ange:"⦤",range:"⦥",dwangle:"⦦",uwangle:"⦧",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",bemptyv:"⦰",demptyv:"⦱",cemptyv:"⦲",raemptyv:"⦳",laemptyv:"⦴",ohbar:"⦵",omid:"⦶",opar:"⦷",operp:"⦹",olcross:"⦻",odsold:"⦼",olcir:"⦾",ofcir:"⦿",olt:"⧀",ogt:"⧁",cirscir:"⧂",cirE:"⧃",solb:"⧄",bsolb:"⧅",boxbox:"⧉",trisb:"⧍",rtriltri:"⧎",lefttrianglebar:"⧏",notlefttrianglebar:"⧏̸",righttrianglebar:"⧐",notrighttrianglebar:"⧐̸",iinfin:"⧜",infintie:"⧝",nvinfin:"⧞",eparsl:"⧣",smeparsl:"⧤",eqvparsl:"⧥",blacklozenge:"⧫",lozf:"⧫",ruledelayed:"⧴",dsol:"⧶",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",biguplus:"⨄",xuplus:"⨄",bigsqcup:"⨆",xsqcup:"⨆",fpartint:"⨍",cirfnint:"⨐",awint:"⨑",rppolint:"⨒",scpolint:"⨓",npolint:"⨔",pointint:"⨕",quatint:"⨖",intlarhk:"⨗",pluscir:"⨢",plusacir:"⨣",simplus:"⨤",plusdu:"⨥",plussim:"⨦",plustwo:"⨧",mcomma:"⨩",minusdu:"⨪",loplus:"⨭",roplus:"⨮",Cross:"⨯",timesd:"⨰",timesbar:"⨱",smashp:"⨳",lotimes:"⨴",rotimes:"⨵",otimesas:"⨶",Otimes:"⨷",odiv:"⨸",triplus:"⨹",triminus:"⨺",tritime:"⨻",intprod:"⨼",iprod:"⨼",amalg:"⨿",capdot:"⩀",ncup:"⩂",ncap:"⩃",capand:"⩄",cupor:"⩅",cupcap:"⩆",capcup:"⩇",cupbrcap:"⩈",capbrcup:"⩉",cupcup:"⩊",capcap:"⩋",ccups:"⩌",ccaps:"⩍",ccupssm:"⩐",And:"⩓",Or:"⩔",andand:"⩕",oror:"⩖",orslope:"⩗",andslope:"⩘",andv:"⩚",orv:"⩛",andd:"⩜",ord:"⩝",wedbar:"⩟",sdote:"⩦",simdot:"⩪",congdot:"⩭",ncongdot:"⩭̸",easter:"⩮",apacir:"⩯",apE:"⩰",nape:"⩰̸",eplus:"⩱",pluse:"⩲",Esim:"⩳",ddotseq:"⩷",eddot:"⩷",equivdd:"⩸",ltcir:"⩹",gtcir:"⩺",ltquest:"⩻",gtquest:"⩼",leqslant:"⩽",les:"⩽",lessslantequal:"⩽",nleqslant:"⩽̸",nles:"⩽̸",notlessslantequal:"⩽̸",geqslant:"⩾",ges:"⩾",greaterslantequal:"⩾",ngeqslant:"⩾̸",nges:"⩾̸",notgreaterslantequal:"⩾̸",lesdot:"⩿",gesdot:"⪀",lesdoto:"⪁",gesdoto:"⪂",lesdotor:"⪃",gesdotol:"⪄",lap:"⪅",lessapprox:"⪅",gap:"⪆",gtrapprox:"⪆",lne:"⪇",lneq:"⪇",gne:"⪈",gneq:"⪈",lnap:"⪉",lnapprox:"⪉",gnap:"⪊",gnapprox:"⪊",lEg:"⪋",lesseqqgtr:"⪋",gEl:"⪌",gtreqqless:"⪌",lsime:"⪍",gsime:"⪎",lsimg:"⪏",gsiml:"⪐",lge:"⪑",gle:"⪒",lesges:"⪓",gesles:"⪔",els:"⪕",eqslantless:"⪕",egs:"⪖",eqslantgtr:"⪖",elsdot:"⪗",egsdot:"⪘",el:"⪙",eg:"⪚",siml:"⪝",simg:"⪞",simle:"⪟",simge:"⪠",lessless:"⪡",notnestedlessless:"⪡̸",greatergreater:"⪢",notnestedgreatergreater:"⪢̸",glj:"⪤",gla:"⪥",ltcc:"⪦",gtcc:"⪧",lescc:"⪨",gescc:"⪩",smt:"⪪",lat:"⪫",smte:"⪬",smtes:"⪬︀",late:"⪭",lates:"⪭︀",bumpE:"⪮",pre:"⪯",precedesequal:"⪯",preceq:"⪯",notprecedesequal:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",sce:"⪰",succeedsequal:"⪰",succeq:"⪰",notsucceedsequal:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",prE:"⪳",scE:"⪴",precneqq:"⪵",prne:"⪵",scne:"⪶",succneqq:"⪶",prap:"⪷",precapprox:"⪷",scap:"⪸",succapprox:"⪸",precnapprox:"⪹",prnap:"⪹",scnap:"⪺",succnapprox:"⪺",Pr:"⪻",Sc:"⪼",subdot:"⪽",supdot:"⪾",subplus:"⪿",supplus:"⫀",submult:"⫁",supmult:"⫂",subedot:"⫃",supedot:"⫄",subE:"⫅",subseteqq:"⫅",nsubE:"⫅̸",nsubseteqq:"⫅̸",supE:"⫆",supseteqq:"⫆",nsupE:"⫆̸",nsupseteqq:"⫆̸",subsim:"⫇",supsim:"⫈",subnE:"⫋",subsetneqq:"⫋",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",supnE:"⫌",supsetneqq:"⫌",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",csub:"⫏",csup:"⫐",csube:"⫑",csupe:"⫒",subsup:"⫓",supsub:"⫔",subsub:"⫕",supsup:"⫖",suphsub:"⫗",supdsub:"⫘",forkv:"⫙",topfork:"⫚",mlcp:"⫛",Dashv:"⫤",doublelefttee:"⫤",vdashl:"⫦",barv:"⫧",vbar:"⫨",vbarv:"⫩",Vbar:"⫫",Not:"⫬",bNot:"⫭",rnmid:"⫮",cirmid:"⫯",midcir:"⫰",topcir:"⫱",nhpar:"⫲",parsim:"⫳",parsl:"⫽",nparsl:"⫽⃥",flat:"♭",natur:"♮",natural:"♮",sharp:"♯",curren:"¤",cent:"¢",dollar:"$",pound:"£",yen:"¥",euro:"€",sup1:"¹",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",sup2:"²",frac23:"⅔",frac25:"⅖",sup3:"³",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",afr:"𝔞",aopf:"𝕒",ascr:"𝒶",Afr:"𝔄",Aopf:"𝔸",Ascr:"𝒜",ordf:"ª",aacute:"á",Aacute:"Á",agrave:"à",Agrave:"À",abreve:"ă",Abreve:"Ă",acirc:"â",Acirc:"Â",aring:"å",angst:"Å",Aring:"Å",auml:"ä",Auml:"Ä",atilde:"ã",Atilde:"Ã",aogon:"ą",Aogon:"Ą",amacr:"ā",Amacr:"Ā",aelig:"Æ",AElig:"Æ",bfr:"𝔟",bopf:"𝕓",bscr:"𝒷",bernou:"ℬ",bernoullis:"ℬ",Bfr:"𝔅",Bopf:"𝔹",Bscr:"ℬ",cfr:"𝔠",copf:"𝕔",cscr:"𝒸",cayleys:"ℭ",Cfr:"ℭ",complexes:"ℂ",Copf:"ℂ",Cscr:"𝒞",cacute:"ć",Cacute:"Ć",ccirc:"ĉ",Ccirc:"Ĉ",ccaron:"č",Ccaron:"Č",cdot:"ċ",Cdot:"Ċ",ccedil:"ç",Ccedil:"Ç",incare:"℅",dfr:"𝔡",differentiald:"ⅆ",dopf:"𝕕",dscr:"𝒹",capitaldifferentiald:"ⅅ",dd:"ⅅ",DD:"ⅅ",Dfr:"𝔇",Dopf:"𝔻",Dscr:"𝒟",dcaron:"ď",Dcaron:"Ď",dstrok:"đ",Dstrok:"Đ",eth:"ð",ETH:"Ð",ee:"ⅇ",efr:"𝔢",eopf:"𝕖",escr:"ℯ",exponentiale:"ⅇ",Efr:"𝔈",Eopf:"𝔼",Escr:"ℰ",expectation:"ℰ",eacute:"é",Eacute:"É",egrave:"è",Egrave:"È",ecirc:"ê",Ecirc:"Ê",ecaron:"ě",Ecaron:"Ě",euml:"ë",Euml:"Ë",edot:"ė",Edot:"Ė",eogon:"ę",Eogon:"Ę",emacr:"ē",Emacr:"Ē",ffr:"𝔣",fopf:"𝕗",fscr:"𝒻",Ffr:"𝔉",Fopf:"𝔽",fouriertrf:"ℱ",Fscr:"ℱ",fflig:"ff",ffilig:"ffi",ffllig:"ffl",filig:"fi",fjlig:"fj",fllig:"fl",fnof:"ƒ",gfr:"𝔤",gopf:"𝕘",gscr:"ℊ",Gfr:"𝔊",Gopf:"𝔾",Gscr:"𝒢",gacute:"ǵ",gbreve:"ğ",Gbreve:"Ğ",gcirc:"ĝ",Gcirc:"Ĝ",gdot:"ġ",Gdot:"Ġ",gcedil:"Ģ",hfr:"𝔥",hopf:"𝕙",hscr:"𝒽",planckh:"ℎ",hamilt:"ℋ",Hfr:"ℌ",hilbertspace:"ℋ",Hopf:"ℍ",Hscr:"ℋ",poincareplane:"ℌ",quaternions:"ℍ",hcirc:"ĥ",Hcirc:"Ĥ",hbar:"ℏ",hslash:"ℏ",hstrok:"ħ",planck:"ℏ",plankv:"ℏ",Hstrok:"Ħ",ifr:"𝔦",ii:"ⅈ",imaginaryi:"ⅈ",iopf:"𝕚",iscr:"𝒾",Ifr:"ℑ",im:"ℑ",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",Iopf:"𝕀",Iscr:"ℐ",iacute:"í",Iacute:"Í",igrave:"ì",Igrave:"Ì",icirc:"î",Icirc:"Î",iuml:"ï",Iuml:"Ï",itilde:"ĩ",Itilde:"Ĩ",idot:"İ",iogon:"į",Iogon:"Į",imacr:"ī",Imacr:"Ī",ijlig:"IJ",IJlig:"IJ",imath:"ı",inodot:"ı",jfr:"𝔧",jopf:"𝕛",jscr:"𝒿",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",jcirc:"ĵ",Jcirc:"Ĵ",jmath:"ȷ",kfr:"𝔨",kopf:"𝕜",kscr:"𝓀",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",kcedil:"ķ",Kcedil:"Ķ",ell:"ℓ",lfr:"𝔩",lopf:"𝕝",lscr:"𝓁",lagran:"ℒ",laplacetrf:"ℒ",Lfr:"𝔏",Lopf:"𝕃",Lscr:"ℒ",lacute:"ĺ",Lacute:"Ĺ",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lstrok:"ł",Lstrok:"Ł",lmidot:"ŀ",Lmidot:"Ŀ",mfr:"𝔪",mopf:"𝕞",mscr:"𝓂",mellintrf:"ℳ",Mfr:"𝔐",Mopf:"𝕄",Mscr:"ℳ",phmmat:"ℳ",nfr:"𝔫",nopf:"𝕟",nscr:"𝓃",naturals:"ℕ",Nfr:"𝔑",Nopf:"ℕ",Nscr:"𝒩",nacute:"ń",Nacute:"Ń",ncaron:"ň",Ncaron:"Ň",ntilde:"ñ",Ntilde:"Ñ",ncedil:"ņ",Ncedil:"Ņ",numero:"№",eng:"ŋ",ENG:"Ŋ",ofr:"𝔬",oopf:"𝕠",order:"ℴ",orderof:"ℴ",oscr:"ℴ",Ofr:"𝔒",Oopf:"𝕆",Oscr:"𝒪",ordm:"º",oacute:"ó",Oacute:"Ó",ograve:"ò",Ograve:"Ò",ocirc:"ô",Ocirc:"Ô",ouml:"ö",Ouml:"Ö",odblac:"ő",Odblac:"Ő",otilde:"õ",Otilde:"Õ",oslash:"ø",Oslash:"Ø",omacr:"ō",Omacr:"Ō",oelig:"Œ",OElig:"Œ",pfr:"𝔭",popf:"𝕡",pscr:"𝓅",Pfr:"𝔓",Popf:"ℙ",primes:"ℙ",Pscr:"𝒫",qfr:"𝔮",qopf:"𝕢",qscr:"𝓆",Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",rationals:"ℚ",kgreen:"ĸ",rfr:"𝔯",ropf:"𝕣",rscr:"𝓇",re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Rfr:"ℜ",Ropf:"ℝ",Rscr:"ℛ",racute:"ŕ",Racute:"Ŕ",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",sfr:"𝔰",sopf:"𝕤",sscr:"𝓈",Sfr:"𝔖",Sopf:"𝕊",Sscr:"𝒮",circleds:"Ⓢ",os:"Ⓢ",sacute:"ś",Sacute:"Ś",scirc:"ŝ",Scirc:"Ŝ",scaron:"š",Scaron:"Š",scedil:"ş",Scedil:"Ş",szlig:"ß",tfr:"𝔱",topf:"𝕥",tscr:"𝓉",Tfr:"𝔗",Topf:"𝕋",Tscr:"𝒯",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",trade:"™",tstrok:"ŧ",Tstrok:"Ŧ",ufr:"𝔲",uopf:"𝕦",uscr:"𝓊",Ufr:"𝔘",Uopf:"𝕌",Uscr:"𝒰",uacute:"ú",Uacute:"Ú",ugrave:"ù",Ugrave:"Ù",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",uring:"ů",Uring:"Ů",uuml:"ü",Uuml:"Ü",udblac:"ű",Udblac:"Ű",utilde:"ũ",Utilde:"Ũ",uogon:"ų",Uogon:"Ų",umacr:"ū",Umacr:"Ū",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",wcirc:"ŵ",Wcirc:"Ŵ",xfr:"𝔵",xopf:"𝕩",xscr:"𝓍",Xfr:"𝔛",Xopf:"𝕏",Xscr:"𝒳",yfr:"𝔶",yopf:"𝕪",yscr:"𝓎",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",yacute:"ý",Yacute:"Ý",ycirc:"ŷ",Ycirc:"Ŷ",yuml:"ÿ",Yuml:"Ÿ",zfr:"𝔷",zopf:"𝕫",zscr:"𝓏",integers:"ℤ",zeetrf:"ℨ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zdot:"ż",Zdot:"Ż",imped:"Ƶ",thorn:"þ",THORN:"Þ",napos:"ʼn",alpha:"α",Alpha:"Α",beta:"β",Beta:"Β",gamma:"γ",Gamma:"Γ",delta:"δ",Delta:"Δ",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",Epsilon:"Ε",digamma:"ϝ",gammad:"ϝ",Gammad:"Ϝ",zeta:"ζ",Zeta:"Ζ",eta:"η",Eta:"Η",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",Theta:"Θ",iota:"ι",Iota:"Ι",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",Kappa:"Κ",lambda:"λ",Lambda:"Λ",mu:"μ",micro:"µ",Mu:"Μ",nu:"ν",Nu:"Ν",xi:"ξ",Xi:"Ξ",omicron:"ο",Omicron:"Ο",pi:"π",piv:"ϖ",varpi:"ϖ",Pi:"Π",rho:"ρ",rhov:"ϱ",varrho:"ϱ",Rho:"Ρ",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",tau:"τ",Tau:"Τ",upsi:"υ",upsilon:"υ",Upsilon:"Υ",Upsi:"ϒ",upsih:"ϒ",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",Phi:"Φ",chi:"χ",Chi:"Χ",psi:"ψ",Psi:"Ψ",omega:"ω",ohm:"Ω",Omega:"Ω",acy:"а",Acy:"А",bcy:"б",Bcy:"Б",vcy:"в",Vcy:"В",gcy:"г",Gcy:"Г",gjcy:"Ѓ",GJcy:"Ѓ",dcy:"д",Dcy:"Д",djcy:"Ђ",DJcy:"Ђ",iecy:"Е",IEcy:"Е",iocy:"Ё",IOcy:"Ё",jukcy:"є",Jukcy:"Є",zhcy:"Ж",ZHcy:"Ж",zcy:"з",Zcy:"З",dscy:"Ѕ",DScy:"Ѕ",icy:"и",Icy:"И",iukcy:"і",Iukcy:"І",yicy:"Ї",YIcy:"Ї",jcy:"й",Jcy:"Й",jsercy:"ј",Jsercy:"Ј",kcy:"к",Kcy:"К",kjcy:"Ќ",KJcy:"Ќ",lcy:"л",Lcy:"Л",ljcy:"Љ",LJcy:"Љ",mcy:"м",Mcy:"М",ncy:"н",Ncy:"Н",njcy:"Њ",NJcy:"Њ",ocy:"о",Ocy:"О",pcy:"п",Pcy:"П",rcy:"р",Rcy:"Р",scy:"с",Scy:"С",tcy:"т",Tcy:"Т",tshcy:"ћ",TSHcy:"Ћ",ucy:"у",Ucy:"У",ubrcy:"ў",Ubrcy:"Ў",fcy:"ф",Fcy:"Ф",khcy:"Х",KHcy:"Х",tscy:"Ц",TScy:"Ц",chcy:"Ч",CHcy:"Ч",dzcy:"Џ",DZcy:"Џ",shcy:"Ш",SHcy:"Ш",shchcy:"щ",SHCHcy:"Щ",hardcy:"ъ",HARDcy:"Ъ",ycy:"ы",Ycy:"Ы",softcy:"ь",SOFTcy:"Ь",ecy:"э",Ecy:"Э",yucy:"Ю",YUcy:"Ю",yacy:"Я",YAcy:"Я",alefsym:"ℵ",aleph:"ℵ",beth:"ℶ",gimel:"ℷ",daleth:"ℸ"};function wZ(t){if(!r(t,"---"))return null;let i=3;for(;i<t.length&&(t[i]===" "||t[i]===" ");)i++;if(i>=t.length||t[i]!==`
15
- `)return null;i++;let u=!1;for(;i<t.length;){let c=i;for(;i<t.length&&t[i]!==`
16
- `;)i++;if(i>=t.length)break;let d=i++;if(r(t,"---",c))return{endPos:i,hasValidYaml:u};let m=t.indexOf(":",c);m!==-1&&m<d&&(u=!0)}return null}var FZ=JJ,$J=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,VJ={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"};function lG(t){var i={};for(var u in t){var c=u.toLowerCase(),d=VJ[c];i[d||u]=t[u]}return i}var WZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;function vG(t){return t.indexOf("&")===-1?t:t.replace($J,(i,u)=>{let c=FZ[u]||FZ[u.toLowerCase()];if(c)return c;if(u[0]==="#"){let d=u[1]==="x"||u[1]==="X"?parseInt(u.slice(2),16):parseInt(u.slice(1),10);return d===0||d>=55296&&d<=57343||d>1114111?"�":d<=65535?String.fromCharCode(d):String.fromCharCode(55296+(d-65536>>10),56320+(d-65536&1023))}return i})}var UG=/(javascript|vbscript|data(?!:image)):/i;function C1(t){if(UG.test(t))return null;if(t.indexOf("%")===-1)return t;try{let i=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(UG.test(i))return null}catch{return null}return t}var fq={},kq,wq;kq=[192,193,194,195,196,197,224,225,226,227,228,229,230,198];for(wq=0;wq<kq.length;wq++)fq[kq[wq]]="a";fq[231]=fq[199]="c";fq[240]=fq[208]="d";kq=[200,201,202,203,233,232,234,235];for(wq=0;wq<kq.length;wq++)fq[kq[wq]]="e";kq=[207,239,206,238,205,237,204,236];for(wq=0;wq<kq.length;wq++)fq[kq[wq]]="i";fq[209]=fq[241]="n";kq=[248,216,339,338,213,245,212,244,211,243,210,242];for(wq=0;wq<kq.length;wq++)fq[kq[wq]]="o";kq=[220,252,219,251,218,250,217,249];for(wq=0;wq<kq.length;wq++)fq[kq[wq]]="u";fq[376]=fq[255]=fq[221]=fq[253]="y";function uG(t){return t>=a1&&t<=r1||t>=m1&&t<=k1||t>=s1&&t<=o1}function iq(t){for(var i=[],u=0;u<t.length;u++){var c=t.charCodeAt(u);if(uG(c))c>=m1&&c<=k1?i.push(String.fromCharCode(c+ZJ)):i.push(t[u]);else if(c===I||c===V1)i.push("-");else{var d=fq[c];d&&i.push(d)}}return i.join("")}function hJ(t,i){return t.indexOf(i)!==-1}function r(t,i,u){return t.startsWith(i,u)}function dG(t,i,u){return t.startsWith(i,(u===void 0?t.length:u)-i.length)}var bZ=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","animateTransform","set"]);function QG(t){let i=t.toLowerCase();if(bZ.has(i))return!0;let u=i.indexOf(":");return u!==-1?(i=i.slice(u+1),bZ.has(i)):!1}var MZ=["src","href","data","formAction","srcDoc","action"],AZ=1,n1=2,YJ=1,pJ=2,lJ=3,uJ=4,zG=(function(){let t=new Uint8Array(128),i;for(t[l]=t[$q]=t[tZ]=t[Aq]=t[I]=AZ,i=BG;i<=KG;i++)t[i]=n1;for(i=RG;i<=yG;i++)t[i]=n1;for(i=L1;i<=mq;i++)t[i]=n1;for(i=GJ;i<=d1;i++)t[i]=n1;return t})(),TG=(function(){let t=new Uint8Array(128);return t[i1]=pJ,t[L1]=uJ,t[AG]=t[c1]=t[d1]=t[E1]=lJ,t[mq]=t[VG]=t[yG]=t[XG]=t[$q]=t[I]=t[BG]=YJ,t[P1]=t[I1]=t[w1]=YJ,t})();function dJ(t){return t<q1&&(zG[t]&n1)!==0}function fG(t){return t<q1&&(zG[t]&AZ)!==0}var iJ=/[\p{P}\p{S}]/u,cJ=new RegExp("\\p{Zs}","u");function t1(t){if(!t)return!0;let i=t.charCodeAt(0);return i<q1?(zG[i]&AZ)!==0:cJ.test(t)}function iG(t){if(typeof t=="number")return t<q1&&(zG[t]&n1)!==0;if(!t)return!1;let i=t.charCodeAt(0);return i<q1?(zG[i]&n1)!==0:iJ.test(t)}function E(t,i){let u=t.indexOf(`
17
- `,i);return u!==-1?u:t.length}function yq(t,i,u){let c=u??t.length;for(;i<c&&(t[i]===" "||t[i]===" ");)i++;return i}function cG(t){if(!t)return!1;for(var i in t)return!0;return!1}function yZ(t,i,u){for(var c=t,d=i.split("."),m=0;m<d.length&&(c=c?.[d[m]],c!==void 0);)m++;return c||u}function aJ(t,i){if(!i)return t;let u=yZ(i,t,void 0);return typeof u=="string"?u:typeof u=="object"&&u.component?u.component:t}function rJ(t,i){if(!i)return{};let u=yZ(i,t,void 0);return typeof u=="object"&&u.props?u.props:{}}function XJ(t,i){for(var u="",c=0,d=t.length;c<d;c++){var m=t[c],g=m.type;if(g===i.text||g===i.codeInline){var _=m.text;_&&(u+=_)}else g===i.textFormatted||g===i.link?m.children&&(u+=XJ(m.children,i)):g===i.image&&m.alt&&(u+=m.alt)}return u}function aG(t){var i=t.toLowerCase();return i==="title"||i==="textarea"||i==="style"||i==="xmp"||i==="iframe"||i==="noembed"||i==="noframes"||i==="script"||i==="plaintext"}function rG(t){return t.replace(/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi,function(i,u,c,d){return"&lt;"+u+c+d})}function sJ(t){console.warn(t)}function _G(t,i,u,c){for(var d=B(u),m=t.length,g=c??m-i,_=0;_<g&&i+_<m&&B(t,i+_)===d;)_++;return _}function KJ(t,i,u,c,d){if(d===0?u>=c:i<=c)return!1;let m=d===0?t[u]:t[i-1],g=d===0?i>0?t[i-1]:null:u<t.length?t[u]:null;var _=B(m);if(_<q1?fG(_):t1(m))return!1;var y=g?B(g):null,v=g===null||g===`
18
- `||g==="\r"||(y!==null?y<q1?fG(y):t1(g):!0),S=YZ(_,m);return!S||v?!0:g?YZ(B(g),g):!1}function GZ(t){for(var i="",u=0;u<t.length;)if(t[u]==="\\"&&u+1<t.length){var c=t[u+1];i+=iG(B(c))?c:"\\"+c,u+=2}else i+=t[u++];return vG(i)}function s(t,i){return i+(i<t.length?1:0)}function oJ(t,i){if(t>=q1)return 0;var u=TG[t];return i&&u===1&&(t===P1||t===I1||t===w1)?0:u}function nJ(t,i,u,c,d,m){if(!u.length||u[u.length-1].type!==b.blockQuote)return null;let g=yq(c,0,c.length);if(g>=c.length||c[g]!==">")return null;let _=RJ(t,i,d,m);if(!_)return null;let y=u[u.length-1],v=_;return v.children&&y.children.push(...v.children),v.endPos}function ZZ(t,i,u,c){return{type:b.heading,level:t,children:i,id:c(u)}}var gZ=/\\(.)/g,tJ=/\s+#+\s*$/,lZ=/^(?:(\d{1,9})([.)])\s+(.*)$|(\d{1,9})([.)])\s*$|([-*+])\s+(.*)$|([-*+])\s*$)/,xZ=/^(\d{1,9})([.)])(\s+|$)/,EZ=/^([*+\-])(\s+|$)/,XZ=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/i,WJ=/^<([a-z][^ >/]*) ?(?:[^>/]+[^/]|)>/i,B=function(t,i=0){return t.charCodeAt(i)},JZ=function(t){return uG(B(t))},PZ=function(t){return fG(B(t))},Tq=function(t){return t===" "||t===" "},YZ=function(t,i){return iG(t<q1?t:i)},eJ=function(t){var i=B(t);return JZ(t)||i===V1||i===c1||i===RG||i===LG};function IZ(t,i){var u=t.length;if(i>=u)return null;var c=B(t[i]);if(!GG(c))return null;for(var d=i,m=i;m<u;){var g=B(t[m]);if(g>=s1&&g<=o1||g>=m1&&g<=k1||g>=a1&&g<=r1||g===V1)m++;else{var _=B(t[m]);if(_===I||_===l||_===$q||_===Aq||_===T1||_===KG)break;return null}}if(m===d)return null;for(var y=t.slice(d,m),v=0;v<y.length;v++){var g=B(y[v]);if(!(g>=s1&&g<=o1||g>=m1&&g<=k1||g>=a1&&g<=r1||g===V1))return null}return{tagName:y,tagLower:y.toLowerCase(),nextPos:m}}function qG(t,i){var u=qZ(t,i);return!u||u.kind!=="tag"?null:{tagName:u.tagName||"",tagLower:u.tagNameLower||"",attrs:u.attrs||"",endPos:u.endPos,isClosing:u.isClosing||!1,isSelfClosing:u.isSelfClosing||!1,hasNewline:u.hasNewline,hasSpaceBeforeSlash:!1,whitespaceBeforeAttrs:u.whitespaceBeforeAttrs||""}}function qY(t,i,u){for(var c=1,d=i;c>0&&d<t.length;){var m=t.indexOf("<",d);if(m===-1)return null;var g=qG(t,m);if(!g){d=m+1;continue}if(g.isClosing&&g.tagLower===u&&--c===0)return[m,g.endPos];!g.isClosing&&!g.isSelfClosing&&g.tagLower===u&&c++,d=g.endPos}return null}var GY=/^\{.*\}$/,KZ=/\n\n/,UZ=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,ZY=/<\/?(?:pre|script|style|textarea)\b/i,MJ=/^<[A-Z]/,JY=/\n$/,YY=new Set(["#",">","-","*","+","`","|","0","1","2","3","4","5","6","7","8","9"]);function $Y(t,i,u,c){let d=i;for(;d<u;){if(t[d]==="\\"&&d+1<u){d+=2;continue}if(t[d]===c)return d;d++}return-1}function UJ(t,i){var u=i.indexOf(":");if(u>0){var c=i.slice(u+1).trim(),d=c.length;if(d>=2){var m=c[0];(m==='"'||m==="'")&&c[d-1]===m&&(c=c.slice(1,-1))}t.push([i.slice(0,u).trim(),c])}}function VY(t){var i=[];if(!t)return i;for(var u="",c=0,d="",m=0;m<t.length;m++){var g=t[m];if(g==='"'||g==="'")d?g===d&&(d="",c--):(d=g,c++);else if(g==="("&&dG(u,"url"))c++;else if(g===")"&&c>0)c--;else if(g===";"&&c===0){UJ(i,u),u="";continue}u+=g}return UJ(i,u),i}function XY(tag,key,value,sanitizeUrlFn,options){if(key==="style")return VY(value).reduce(function(t,[i,u]){let c=sanitizeUrlFn(u,tag,i);return c!=null&&(t[i.replace(/(-[a-z])/g,d=>d[1].toUpperCase())]=c),t},{});if(value.match(GY)){if(value=value.slice(1,value.length-1),value=value&&value.replace(gZ,"$1"),value.length>0){let t=value[0];if(t==="["||t==="{")try{return JSON.parse(value)}catch{return value}}if(value==="true")return!0;if(value==="false")return!1;if(options.evalUnserializableExpressions)try{return eval(`(${value})`)}catch(t){return value}return value}return MZ.indexOf(key)!==-1?sanitizeUrlFn(value&&value.replace(gZ,"$1"),tag,key):value==="true"?!0:value==="false"?!1:value}function e1(t,i,u,c){let d={};if(!t||!t.trim())return d;let m=[],g=0,_=t.length;for(;g<_;){for(;g<_&&Tq(t[g]);)g++;if(g>=_)break;let A=g;for(;g<_&&eJ(t[g]);)g++;if(g===A){g++;continue}let T=t.slice(A,g);for(;g<_&&Tq(t[g]);)g++;if(g>=_||t[g]!=="="){m.push(T);continue}for(g++;g<_&&Tq(t[g]);)g++;if(g>=_){m.push(T+"=");break}let D=g,N=t[g];if(N==='"'||N==="'")for(g++;g<_;){if(t[g]===N){if(g+1>=_){g++;break}let R=t[g+1];if(Tq(R)||R==="/"){g++;break}}g++}else if(N==="{"){let R=1;for(g++;g<_&&R>0;){if(t[g]==="{")R++;else if(t[g]==="}"&&(R--,R===0)){g++;break}g++}}else for(;g<_&&!Tq(t[g]);)g++;m.push(T+"="+t.slice(D,g))}if(!m?.length)return d;let y=i.toLowerCase(),v=u.length>0&&u[0]>="A"&&u[0]<="Z";for(let A=0;A<m.length;A++){let T=m[A],D=T.indexOf("=");if(D!==-1){let N=T.slice(0,D).trim(),R=N.toLowerCase();if(R==="ref")continue;let w=v?N:R,j=T.slice(D+1).trim(),M=(k=>{let G=k[0];return(G==='"'||G==="'")&&k.length>=2&&k[k.length-1]===G?k.slice(1,-1):k})(j);if(R==="href"&&y==="a"||R==="src"&&y==="img"){let k=c.sanitizer(M,y,R);if(k==null){sJ(`Stripped unsafe ${R} on <${u}>`);continue}d[w]=k}else{let k=XY(y,R,M,c.sanitizer,c);d[w]=k}}else T!=="style"&&(d[v?T:T.toLowerCase()]=!0)}if(t.indexOf("%")!==-1)try{if(UG.test(decodeURIComponent(t)))for(var S in d)delete d[S]}catch{}else if(UG.test(t))for(var S in d)delete d[S];return d}var EG=function(t){return YY.has(t)};function KY(t,i,u){let c=i+1;for(;c<t.length&&t[c]!=="]";){if(t[c]==="\\"&&c+1<t.length){c+=2;continue}c++}if(c>=t.length)return{shouldSkip:!1,newPos:0};let d=i+1,m=c,g=d<m&&(t[d]===`
19
- `||t[d]==="\r"),_=m>d&&(t[m-1]===`
20
- `||t[m-1]==="\r"),y=c+1;if(y=yq(t,y),y>=t.length||t[y]!==":")return{shouldSkip:!1,newPos:0};if((g||_)&&u){let v=y+1;for(v=yq(t,v),v<t.length&&t[v]===`
21
- `&&(v=yq(t,v+1));v<t.length&&t[v]!==`
22
- `;)v++;return v<t.length&&v++,{shouldSkip:!0,newPos:v}}return UY(t,y)}function UY(t,i){let u=i+1;for(u=yq(t,u),u<t.length&&t[u]===`
23
- `&&(u=yq(t,u+1));u<t.length&&t[u]!==`
24
- `;)u++;if(u>=t.length)return{shouldSkip:!1,newPos:0};u++;let c=yq(t,u);if(c>=t.length||t[c]!=='"'&&t[c]!=="'")return{shouldSkip:!1,newPos:0};let d=t[c],m=c+1;for(;m<t.length&&t[m]!==d&&t[m]!==`
25
- `;){if(t[m]==="\\"&&m+1<t.length){m+=2;continue}m++}if(m>=t.length||t[m]!==d)return{shouldSkip:!1,newPos:0};let g=yq(t,m+1);return g<t.length&&t[g]!==`
26
- `&&t[g]!=="\r"?{shouldSkip:!0,newPos:u}:{shouldSkip:!1,newPos:0}}function AJ(t){for(var i=0;i<t.length;i++){var u=t[i];if(u.type===b.link)return!0;if(u.type===b.textFormatted){var c=u;if(c.children&&AJ(c.children))return!0}}return!1}function mZ(t){for(var i="",u=0,c=t.length;u<c;u++){var d=t[u],m=d.type;if(m===b.text)i+=d.text;else if(m===b.image){var g=d;g.alt&&(i+=g.alt)}else if(m===b.textFormatted){var _=d;_.children&&(i+=mZ(_.children))}else if(m===b.link){var y=d;y.children&&(i+=mZ(y.children))}}return i}var zY=new Set([" "," ","\r",`
27
- `,"\f","\v"]);function f1(t,i,u,c,d){for(var m=[],g=[],_=[],y=i,v=i,S=d.disableAutoLink||c.inAnchor,A=!1,T=!!c.inAnchor,D=!!d.disableParsingRawHTML,N=function(tn,nn){if(!T){var $t=RZ(t,y,c,d,"<");if($t)return R(y),m.push($t),y=$t.endPos,v=y,!0}if(D)return!1;var Mt=vZ(t,y,c,d);if(Mt)return R(y),m.push(Mt),y=Mt.endPos,v=y,!0;var Pe=qG(t,y);if(!Pe)return!1;var Sn=y+(Pe.isClosing?2:1);if(Sn>=t.length||Tq(t[Sn]))return!1;var _n=t.indexOf(">",y+1);if(_n!==-1){var zt=y+1,Tt=_n-zt;if(Tt>=7){var ot=r(t,"http://",zt);if(ot||r(t,"https://",zt)){for(var an=zt;an<_n;an++)if(Tq(t[an]))return!1}}}var Zn=B(t,Sn);if(GG(Zn)&&Sn+1<t.length&&t[Sn+1]===":"||Pe.isClosing&&Pe.attrs.trim().length)return!1;if(Pe.attrs.length)for(var Xe=!1,An="",Cn=0;Cn<Pe.attrs.length;Cn++){var Ee=Pe.attrs[Cn];if(Xe&&Ee===An)Xe=!1;else if(!Xe&&(Ee==='"'||Ee==="'"))Xe=!0,An=Ee;else if(Ee==="*"||Ee==="#"||Ee==="!"){for(var z=Cn+1;z<Pe.attrs.length&&Pe.attrs[z]!=="="&&Pe.attrs[z]!==" "&&Pe.attrs[z]!==" ";)z++;if(z<Pe.attrs.length&&Pe.attrs[z]==="=")return!1}}var fe=t.slice(y,Pe.endPos),he=Pe.tagName.toLowerCase(),Re=fe,Le=Re.indexOf(">");if(Le!==-1){Re=Re.slice(Le+1);var Se="</"+he+">",Ce=Re.indexOf(Se);Ce!==-1&&(Re=Re.slice(0,Ce))}var He=[];if(Re.trim()&&d){var ut={...c,inline:!1,inHTML:!0},Me=Re.trim();KZ.test(Me)||UZ.test(Me)||XZ.test(Me)?He=mG(Me,ut,d):Me&&(ut.inline=!0,He=f1(Me,0,Me.length,ut,d))}var Qe={type:b.htmlBlock,tag:Pe.tagName,attrs:{},children:He,rawText:fe,text:fe,verbatim:!0,endPos:Pe.endPos};return R(y),m.push(Qe),y=Qe.endPos,v=y,!0},R=function(tn){if(tn>v){var nn=t.slice(v,tn);m.push({type:b.text,text:A?vG(nn):nn}),v=tn,A=!1}};y<u;){var w=B(t,y),j=oJ(w,S);if(j===0){for(w===NG&&(A=!0),y++;y<u&&(w=B(t,y),!(w>=q1));){w===NG&&(A=!0);var M=TG[w];if(M!==0){if(S&&M===1&&(w===P1||w===I1||w===w1)){y++;continue}break}y++}continue}if(w===mq){for(var k=y,G=0;y+G<u&&B(t,y+G)===mq;)G++;if(G>0){for(var Z=y+G,F=-1,P=Z;P<u;){for(;P<u&&B(t,P)!==mq;)P++;if(P>=u)break;for(var W=0;P+W<u&&B(t,P+W)===mq;)W++;W>G&&(W=G);var J=P+W;if(W===G&&(P<=Z||B(t,P-1)!==mq)&&(J>=u||B(t,J)!==mq)){F=P,P=J;break}P++}if(F!==-1){for(var ne=t.slice(Z,F),ee=!1,ae=0;ae<ne.length;ae++){var ve=B(ne,ae);if(ve===$q||ve===Aq){ee=!0;break}}var pe=ne;if(ee&&(pe=ne.replace(/\r\n/g," ").replace(/\r/g," ").replace(/\n/g," ")),pe.length>0){var ye=B(pe,0),$=B(pe,pe.length-1);if(ye===I&&$===I){for(var ue=1;ue<pe.length-1;ue++)if(B(pe,ue)!==I){pe=pe.slice(1,pe.length-1);break}}}R(k),m.push({type:b.codeInline,text:pe}),y=P,v=y;continue}y=Z;continue}}if(!T&&!S&&(w===P1||w===I1||w===w1)){var Q=null,xe=y+1<u?B(t,y+1):0,_e=y+2<u?B(t,y+2):0,L=y+3<u?B(t,y+3):0,te=y+4<u?B(t,y+4):0,le=y+5<u?B(t,y+5):0;if(w===I1&&xe===pG&&_e===pG&&L===_Z?Q="h":w===w1&&xe===w1&&_e===w1&&L===LG?Q="w":w===P1&&xe===pG&&_e===_Z&&L===RG&&te===KG&&le===KG&&(Q="f"),Q){var me=RZ(t,y,c,d,Q);if(me){R(y),m.push(me),y=me.endPos,v=y;continue}}}if(!T&&!S&&w===yG){var ce=RZ(t,y,c,d,"@");if(ce&&"emailStart"in ce){for(var{emailStart:ge,endPos:be}=ce,De=[],J=g.length-1;J>=0;J--){var we=g[J];we.sourcePos>=ge&&we.sourcePos<be&&(we.nodeIndex>=0&&we.nodeIndex<m.length&&(m.splice(we.nodeIndex,1),De.push(we.nodeIndex)),g.splice(J,1))}if(ge<v){for(var P=m.length-1;P>=0;P--)if(m[P].type===b.text){m.splice(P,1),De.push(P);break}v=ge}if(De.length){De.sort(function(tn,nn){return tn-nn});for(var Ge=0,lt=0;lt<g.length;lt++){for(var we=g[lt];Ge<De.length&&De[Ge]<we.nodeIndex;)Ge++;we.nodeIndex-=Ge}}R(ge),m.push(ce),y=be,v=y;continue}}if(!(w===VG&&N())){if(w===i1){if(y+1<u&&B(t,y+1)===$q){for(var Oe=y+2;Oe<u&&B(t,Oe)===I;)Oe++;if(Oe>=u){y++;continue}for(R(y),m.push({type:b.breakLine}),y+=2;y<u&&B(t,y)===I;)y++;v=y;continue}var pt=y+1<u?t[y+1]:"";if(pt&&"!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".indexOf(pt)!==-1){R(y),m.push({type:b.text,text:pt==="&"?"&​":pt}),y+=2,v=y;continue}}if(w===L1){if(!T){if(y+1<u&&t[y+1]==="^"){for(var xt=y+2;xt<u&&t[xt]!=="]";)xt++;if(xt<u){var ke=t.slice(y+2,xt);R(y),m.push({type:b.footnoteReference,target:`#${d.slugify(ke)}`,text:ke}),y=xt+1,v=y;continue}}if(c.inList&&y+2<u&&B(t,y+2)===XG){var st=B(t,y+1);if(st===I||st===jZ||st===HZ){R(y),m.push({type:b.gfmTask,completed:st===jZ||st===HZ}),y+=3,v=y;continue}}}var Kt=!1;if(y>i&&t[y-1]==="!"){for(var hn=0,Ze=y-2;Ze>=i&&t[Ze]==="\\";Ze--)hn++;if((hn&1)===0&&(Kt=!0,v<y-1&&R(y-1),m.length>0&&m[m.length-1].type===b.text)){var Pt=m[m.length-1];Pt.text.endsWith("!")&&(Pt.text=Pt.text.slice(0,-1),!Pt.text&&m.pop())}}Kt||R(y),v=y+1,(!T||Kt)&&_.push({type:Kt?"image":"link",pos:Kt?y-1:y,resultIdx:m.length,inAnchor:T}),y++;continue}if(w===XG&&_.length>0){var Rt=_[_.length-1],Qt=Rt.pos+(Rt.type==="image"?2:1),Et=y;R(y);var at=y+1,vn=uZ(m,Rt),Ut=Rt.type==="link"&&AJ(vn),wt=!1;if(!Ut&&at<u&&t[at]==="("){var Dt=_Y(t,at+1);if(Dt){zJ(m,g,_,Rt,Qt,Et,d.sanitizer(GZ(Dt.target),"a","href"),Dt.title?GZ(Dt.title):void 0),y=Dt.endPos,v=y;continue}}var ln=c.refs||{},sn=null,Pn=y;if(at<u&&t[at]==="["){for(var qe=at+1,P=qe;P<u&&t[P]!=="]";)P++;P<u&&(sn=t.slice(qe,P),Pn=P,wt=!0)}(!wt||sn==="")&&(sn=t.slice(Qt,Et));var un=BJ(sn);if(!Ut&&ln&&ln[un]){var mt=ln[un];zJ(m,g,_,Rt,Qt,Et,mt.target,mt.title),y=Pn+1,v=y;continue}var ct=Rt.resultIdx;_.pop(),m.length=ct,Rt.type==="image"&&m.push({type:b.text,text:"!"}),m.push({type:b.text,text:"["},...vn,{type:b.text,text:"]"});for(var ae=0;ae<g.length;ae++)g[ae].nodeIndex>=ct&&g[ae].nodeIndex++;y++,v=y;continue}if(w===AG||w===c1||w===d1||w===E1){var Ke=t[y],We=y,Wt=_G(t,y,Ke);if((Ke==="~"||Ke==="=")&&Wt!==2){y++;continue}var cn=We+Wt,Nt=KJ(t,We,cn,u,0),et=KJ(t,We,cn,i,1),Vt=Nt,St=et;if(Ke==="_"&&Nt&&et){if(We>0){var bn=t[We-1],En=B(bn);Vt=YZ(En,bn)}if(cn<u){var ft=t[cn],qt=B(ft);St=YZ(qt,ft)}}R(We),g.push({nodeIndex:m.length,type:Ke,length:Wt,canOpen:Vt,canClose:St,active:!0,sourcePos:We,inAnchor:T}),m.push({type:b.text,text:t.slice(We,We+Wt)}),y=We+Wt,v=y;continue}if(w===$q){for(var Ze=y-1,Vn=0;Ze>=v&&B(t,Ze)===I;)Vn++,Ze--;if(Vn>=2){for(var Oe=y+1;Oe<u&&B(t,Oe)===I;)Oe++;if(Oe>=u){R(Ze+1),y=u,v=u;continue}for(R(Ze+1),m.push({type:b.breakLine}),y++;y<u&&B(t,y)===I;)y++;v=y;continue}var xn=y>v?B(t,y-1):0,st=y+1<u?B(t,y+1):0,$n=y>v&&xn===I&&st===I?y-1:y;R($n),m.push({type:b.text,text:`
28
- `}),v=y+1,y>i&&xn===I&&v<u&&B(t,v)===I&&v++,y=v;continue}for(w===NG&&(A=!0),y++;y<u;){var w=B(t,y);if(w>=q1)break;w===NG&&(A=!0);var M=TG[w];if(M===0){y++;continue}if(M===1&&(w===P1||w===I1||w===w1)&&S){y++;continue}break}}}if(R(y),g.length&&xJ(m,g),_.length){_.sort(function(tn,nn){return tn.resultIdx-nn.resultIdx});for(var P=0;P<_.length;P++)m.splice(_[P].resultIdx+P,0,{type:b.text,text:_[P].type==="image"?"![":"["})}return m}function vY(t,i,u,c,d){for(var m=!1,g=0;g<i.length;g++)if(i[g].sourcePos>=c&&i[g].sourcePos<d){m=!0;break}if(m){for(var _=uZ(t,u),y=[],g=0;g<i.length;g++){var v=i[g];v.sourcePos>=c&&v.sourcePos<d&&y.push({nodeIndex:v.nodeIndex-u.resultIdx,type:v.type,length:v.length,canOpen:v.canOpen,canClose:v.canClose,active:v.active,sourcePos:v.sourcePos,inAnchor:v.inAnchor})}xJ(_,y),t.length=u.resultIdx;for(var S=0;S<_.length;S++)t.push(_[S]);for(var A=[],g=0;g<i.length;g++)(i[g].sourcePos<c||i[g].sourcePos>=d)&&A.push(i[g]);i.length=0;for(var S=0;S<A.length;S++)i.push(A[S])}}function QY(t,i,u,c){return t.type==="link"?{type:b.link,target:u,title:c,children:i}:{type:b.image,target:u||"",alt:mZ(i),title:c}}function uZ(t,i){return t.slice(i.resultIdx)}function zJ(t,i,u,c,d,m,g,_){vY(t,i,c,d,m);var y=uZ(t,c);u.pop(),t.length=c.resultIdx,t.push(QY(c,y,g,_))}function DY(t,i,u){let c=yq(t,i),d=c<t.length&&t[c]==="<";d&&c++;let m=c;if(d&&c<t.length&&t[c]===">")return{target:"",endPos:c+1,hadSpace:!1};let g,_;var y=!1;if(d){for(_=c;_<t.length&&t[_]!==">";){let A=t[_];if(A===`
29
- `||A==="\r"||A==="<")return null;if(A==="\\"){_+=2;continue}_++}if(_>=t.length||t[_]!==">")return null;_++;let v=m;for(;v<_-1&&Tq(t[v]);)v++;let S=_-1;for(;S>v&&Tq(t[S-1]);)S--;g=t.slice(v,S),c=_}else{let v=0;for(_=c;_<t.length;){let S=t[_];if(S===" "||S===" "||S===`
30
- `){y=!0;break}if(S==="("){if(_>0&&t[_-1]==="\\"){_++;continue}v++,_++;continue}if(S===")"){if(_>0&&t[_-1]==="\\"){_++;continue}if(v===0)break;v--,_++;continue}_++}g=t.slice(m,_),c=_}return{target:g,endPos:c,hadSpace:y}}function vJ(t,i,u,c){let d=i,m=0;for(;d<t.length;){let _=t[d];if(Tq(_))d++;else if(_===`
31
- `){if(m>=1)break;m++,d++}else{if(t1(_))break;break}}if(u&&!c&&(d>=t.length||t[d]!=='"'&&t[d]!=="'"&&t[d]!=="("))return{title:void 0,endPos:d};let g;if(d<t.length){let _=t[d];if(_==='"'||_==="'"){d++;let y=d;for(;d<t.length&&t[d]!==_;)t[d]==="\\"&&d++,d++;d<t.length&&(g=t.slice(y,d),d++)}else if(_==="("){d++;let y=d,v=1;for(;d<t.length&&v>0;)t[d]==="\\"&&d+1<t.length?d++:t[d]==="("?v++:t[d]===")"&&v--,d++;v===0&&(g=t.slice(y,d-1))}}return d=yq(t,d),{title:g,endPos:d}}function _Y(t,i,u){let c=DY(t,i);if(!c)return null;let d=i;d=yq(t,d);let m=d<t.length&&t[d]==="<";if(m&&c.target===""&&c.endPos===d+2){let _=vJ(t,c.endPos,!1,m);return _.endPos>=t.length||t[_.endPos]!==")"?null:{target:"",title:_.title,endPos:_.endPos+1}}let g=vJ(t,c.endPos,c.hadSpace,m);return g.endPos>=t.length||t[g.endPos]!==")"?null:{target:c.target,title:g.title,endPos:g.endPos+1}}var jY;(t=>{t[t.URI=0]="URI",t[t.EMAIL=1]="EMAIL",t[t.ANGLE=2]="ANGLE"})(jY||={});function GG(t){return t>=m1&&t<=k1||t>=s1&&t<=o1}function yJ(t){let i=t.indexOf(":");if(i<2||i>32)return!1;let u=B(t);if(!GG(u))return!1;for(let c=1;c<i;c++){let d=t[c];if(B(d),!JZ(d)&&d!=="+"&&d!=="."&&d!=="-")return!1}return!0}function QJ(t,i,u){return i===0?!0:(u?`
32
- \r*_~(`:`
33
- *_~(`).indexOf(t[i-1])!==-1}function sG(t,i,u,c,d){let m=c(t,"a","href");return m?{type:b.link,target:m,children:[{type:b.text,text:i}],endPos:u,...d!==void 0?{emailStart:d}:{}}:null}function NZ(t,i,u,c,d){if(u.inAnchor||d!==2&&c.disableAutoLink)return null;if(d===2){if(t[i]!=="<")return null;let R=i+1;for(;R<t.length&&t[R]!==">";){let W=B(t,R);if(W===I||W===l||W===$q||W===Aq||W<I)return null;R++}if(R>=t.length||t[R]!==">")return null;let w=t.slice(i+1,R);if(!w.length)return null;let j=w.indexOf("\\")!==-1,M=yJ(w),k=r(w,"http://")||r(w,"https://"),G=!1;if(!M&&!k&&w.length>=7){let W=w[0];if(W==="m"||W==="M"){let J=w.toLowerCase();if(r(J,"mailto:")){G=!0;let ne=J.indexOf(":"),ee=w.slice(ne+1);return sG("mailto:"+ee,w,R+1,c.sanitizer)}}}let Z=!j&&w.indexOf("@")!==-1&&w.indexOf("//")===-1&&!M;if(!k&&!G&&!Z&&!M)return null;let F=w,P=w;return!G&&!M&&!k&&Z&&(F="mailto:"+w),sG(F,P,R+1,c.sanitizer)}if(d===1){let R=i;for(;R>0&&(JZ(t[R-1])||".+-_".indexOf(t[R-1])!==-1);)R--;if(R>=i||!QJ(t,R,!0))return null;let w=i+1,j=!1;for(;w<t.length;){let k=t[w];if(k===".")j=!0,w++;else if(JZ(k)||k==="-"||k==="_")w++;else break}if(!j||w<=i+1)return null;for(;w>i+1&&t[w-1]===".";)w--;if(w>i+1&&(t[w-1]==="-"||t[w-1]==="_"))return null;if(w-(i+1)<1e4){if(t.indexOf(".",i+1)>=w||t.indexOf(".",i+1)===-1)return null}else if(t.slice(i+1,w).indexOf(".")===-1)return null;let M=t.slice(R,w);return sG("mailto:"+M,M,w,c.sanitizer,R)}let m=r(t,"http://",i)||r(t,"https://",i),g=!m&&r(t,"ftp://",i),_=!m&&!g&&r(t,"www.",i);if(!(m||g||_)||!QJ(t,i,!1))return null;for(var y=i+(m?B(t,i+4)===oZ?8:7:g?6:4),v=y;y<t.length;){let R=B(t,y);if(R===I||R===l||R===$q||R===VG||R===T1)break;y++}if(y<=v)return null;let S=y;for(;S>v;){let R=t[S-1];if(S>v+1&&t[S-2]==="\\")break;if(R==="?"||R==="!"||R==="."||R===","||R===":"||R==="*"||R==="_"||R==="~")S--;else if(R===";"){let w=S-2;for(;w>=v&&t[w]!=="&"&&t[w]!==" ";)w--;if(w>=v&&t[w]==="&"){let j=t.slice(w+1,S-1);if(j.length>=2&&j.length<=10&&/^[a-zA-Z0-9]+$/.test(j)&&(j==="lt"||j==="gt"||j.length>=3&&(r(j,"amp")||r(j,"apos")||r(j,"quot")||r(j,"nbsp")||/^[a-z]{3,10}$/.test(j))))break;S=w;break}S--}else if(R===")"){let w=0,j=0;for(let M=v;M<S;M++)t[M]==="("&&w++,t[M]===")"&&j++;if(j>w)S--;else break}else break}if(y=S,y<=v)return null;for(var A=v,T=-1,D=-1;A<y;){let R=B(t,A);if(R>=m1&&R<=k1||R>=s1&&R<=o1||R>=a1&&R<=r1||R===V1||R===c1||R===LG){R===LG&&(D=T,T=A),A++;continue}break}if(A===v||T===-1)return null;D===-1&&(D=v-1);for(let R=D+1;R<T;R++)if(t[R]==="_")return null;for(let R=T+1;R<A;R++)if(t[R]==="_")return null;let N=t.slice(i,y);return sG(_?"http://"+N:N,N,y,c.sanitizer)}function RZ(t,i,u,c,d){return d==="<"?NZ(t,i,u,c,2):d==="h"||d==="f"||d==="w"?NZ(t,i,u,c,0):d==="@"?NZ(t,i,u,c,1):null}function BJ(t){var i=t.trim(),u=i.replace(/[\s\t\n\r]+/g," ");return u.indexOf("ẞ")!==-1?u.replace(/\u1E9E/g,"ss").toLowerCase():u.toLowerCase()}function HY(t,i,u){if(i+3>=t.length||t[i]!=="[")return null;let c=t[i+1];return c!==" "&&c!=="x"&&c!=="X"||t[i+2]!=="]"?null:{type:b.gfmTask,completed:c.toLowerCase()==="x",endPos:i+3}}function dZ(t,i,u,c){let{inline:d,inList:m,inBlockQuote:g}=i;c.inline!==void 0&&(i.inline=c.inline),c.list!==void 0&&(i.inList=c.list),c.inBlockQuote!==void 0&&(i.inBlockQuote=c.inBlockQuote);let _=mG(t,i,u);return i.inline=d,i.inList=m,i.inBlockQuote=g,_}function PG(t,i,u,c,d){return zZ(c,!0,()=>f1(t,i,u,c,d))}function IG(t,i,u,c){var d=t[i];if(d===void 0)return null;var m=i,g=null,_=d,y=null,v=B(d),S=v===I||v===l;if(S){if(y=E(t,i),g=o(t,i,y),m=i+g.charCount,m>=t.length)return nG(t,i);_=t[m]}var A=g?g.spaceEquivalent:0;if(A>=4)return S?nG(t,i):null;var T=B(_);if(T===T1){var D=RJ(t,i,u,c);if(D)return D}else{if(T===c1)return $Z(t,i);if(T===V1||T===AG||T===eZ){var N=$Z(t,i);if(N)return N;var R=pZ(t,i,u,c);if(R)return R}else if(T>=a1&&T<=r1){var R=pZ(t,i,u,c);if(R)return R}else{if(T===MG)return OY(t,m,u,c);if(T===L1)return HG(t,m,u,c,m+1<t.length&&B(t,m+1)===$G);if(T===VG&&!c.disableParsingRawHTML)return vZ(t,m,u,c);if(T===mq||T===d1){if(y||(y=E(t,i)),g||(g=o(t,i,y)),g.spaceEquivalent<=3)return iZ(t,m,u,c)}else if(T===qJ)return gJ(t,i,u,c)}}return S?nG(t,i):null}function mG(t,i,u){let c=[],d=0;for(;d<t.length;){for(;d<t.length&&t[d]===`
34
- `;)d++;if(d>=t.length)break;var m=t[d];if(i.inList&&c.length>0){var g=c[c.length-1];if(g?.type===b.paragraph){var _=g,y=B(m);if(y===V1||y===E1||y===I||y===l){var v=E(t,d),S=t.slice(d,v),A=o(t,d,v);if(A.spaceEquivalent<4){var T=S.slice(A.charCount).trim();if(SJ(c,T,u)){d=v+(v<t.length&&t[v]===`
35
- `?1:0);continue}}}}}var D=IG(t,d,i,u);if(D){c.push(D),d=D.endPos;continue}var N=NJ(t,d,i,u);if(N){c.push(N),d=N.endPos;continue}var R=t.slice(d).trim();if(R){if(i.inBlockQuote&&c.length>0){let k=function(G){if(G.type===b.blockQuote){var Z=G;if(Z.children&&Z.children.length>0){var F=Z.children[Z.children.length-1];if(F.type===b.paragraph)return F}}else if(G.type===b.orderedList||G.type===b.unorderedList){var P=G;if(P.items&&P.items.length>0){var W=P.items[P.items.length-1];if(W&&W.length>0){var J=W[W.length-1],ne=k(J);if(ne)return ne}}}return null};for(var w=c.length-1;w>=0;w--){var _=k(c[w]);if(_){var M=kZ(t,d,i,u);if(M){var j=M;_.children&&j.children&&_.children.push({type:b.text,text:`
36
- `},...j.children),d=M.endPos;continue}}}}var M=kZ(t,d,i,u);if(M){c.push(M),d=M.endPos;continue}}d++}return c}function OY(t,i,u,c){if(u.inline)return null;let d=E(t,i),m=o(t,i,d,3);if(m.spaceEquivalent>3&&!u.inList)return null;var g=i+m.charCount;if(g>=t.length||t[g]!=="#")return null;let _=_G(t,g,"#",6);if(g+=_,g>=t.length)return null;let y=t[g];if(y===`
37
- `||y==="\r"){let D=E(t,g);return{...ZZ(_,[],"",c.slugify),endPos:D+(D<t.length?1:0)}}if(y!==" "&&y!==" ")return null;let v=g,S=E(t,v);var A=t.slice(v,S).replace(tJ,"").trim();let T=PG(A,0,A.length,u,c);return{...ZZ(_,T,A,c.slugify),endPos:S+(S<t.length?1:0)}}function NJ(t,i,u,c){if(u.inline||u.inBlockQuote||u.inList)return null;let d=E(t,i);if(d>=t.length)return null;let m=d+1,g=-1,_=null;for(var y=0;m<t.length&&y<10;y++){let ne=E(t,m);if(ne>=t.length)break;for(var v=m;v<ne&&(B(t,v)===I||B(t,v)===l||B(t,v)===Aq);)v++;if(v>=ne)break;for(var S=0,A=m;A<ne&&S<3&&B(t,A)===I;)S++,A++;if(A<ne){let ee=B(t,A);if(ee===E1||ee===V1){let ae=t[A];for(var T=0,D=!1,N=A;N<ne;){let ve=B(t,N);if(ve===ee){if(D){T=0;break}T++}else if(ve===I||ve===l)D=!0;else{T=0;break}N++}if(T>=1){g=ne,_=ae;break}}}m=ne+1}if(!_)return null;let R=B(t,i);if(R===MG||R===T1||t[i]==="|")return null;let w=i;for(var j=i,M=!1;j<m;){let ne=E(t,j);if(ne>=m)break;for(var k=j;k<ne&&(B(t,k)===I||B(t,k)===l||B(t,k)===Aq);)k++;k<ne&&(M=!0,w=ne),j=ne+1}if(!M)return null;let G=t.slice(i,w);for(var Z=0,F=G.length;Z<F&&(G.charCodeAt(Z)===I||G.charCodeAt(Z)===l||G.charCodeAt(Z)===Aq||G.charCodeAt(Z)===$q);)Z++;for(;F>Z&&(G.charCodeAt(F-1)===I||G.charCodeAt(F-1)===l||G.charCodeAt(F-1)===Aq||G.charCodeAt(F-1)===$q);)F--;let P=G.slice(Z,F);if(!P)return null;let W=_==="="?1:2,J=PG(P,0,P.length,u,c);return{...ZZ(W,J,P,c.slugify),endPos:g+(g<t.length?1:0)}}function kZ(t,i,u,c){if(u.inline)return null;let d=i,m=t.length;for(;d<m;){let ge=E(t,d),be=!0;for(let ke=d;ke<ge;ke++){let st=B(t,ke);if(st!==I&&st!==l&&st!==Aq){be=!1;break}}if(be){d=ge;break}if(ge>=m){d=m;break}let De=ge+1;if(De>=m){d=m;break}let we=E(t,De),Ge=!0,lt="";for(let ke=De;ke<we;ke++){let st=B(t,ke);if(st!==I&&st!==l&&st!==Aq){Ge=!1,lt===""&&(lt=t[ke]);break}}if(Ge){d=ge;break}let Oe=!1,pt=o(t,De,we),xt=pt.spaceEquivalent===4&&pt.charCount===4;if(lt==="<"&&!xt&&!c.disableParsingRawHTML){let ke=De,st=0;for(;ke<we&&st<3;){let Kt=B(t,ke);if(Kt===I||Kt===l)st++,ke++;else break}if(ke<we&&t[ke]==="<"){var g=vZ(t,ke,{...u,inline:!1},c);g&&(Oe=!("canInterruptParagraph"in g)||g.canInterruptParagraph)}}if(xt)Oe=!1;else if(!Oe&&lt&&EG(lt))if(lt==="["){let ke=De;ke+1>=m||t[ke+1]!=="^"?Oe=!1:Oe=!0}else if(lt==="*"||lt==="+")if($Z(t,De))Oe=!0;else{let ke=De+1<m?t[De+1]:"";ke&&Tq(ke)?Oe=!0:Oe=!1}else{let ke=IG(t,De,u,c);ke&&(ke.type===b.codeBlock?o(t,De,we).spaceEquivalent>=4?Oe=!1:Oe=!0:ke.type===b.unorderedList||ke.type===b.orderedList?ke.type===b.orderedList?Oe=ke.start===1:Oe=!0:lt==="-"?(d>i,Oe=!0):ke.type===b.ref?Oe=!1:Oe=!0)}if(Oe){d=ge;break}d=ge+1}if(d<=i)return null;for(var _=i,y=d;_<y;){let ge=B(t,_);if(ge===I||ge===l)_++;else break}let v=E(t,_);var S=y>v,A;if(!S)A=t.slice(_,y);else{for(var T=[],D=_,N=0;D<y;){var R=E(t,D);if(R>y&&(R=y),N===0)T.push(t.slice(D,R));else{for(var w=0;w<4&&D+w<R&&B(t,D+w)===I;)w++;var j=w===4?D+4:D;T.push(t.slice(j,R))}R<y&&B(t,R)===$q?(T.push(`
38
- `),D=R+1):D=y,N++}A=T.join("")}for(var M=A.length;M>0;){var k=A.charCodeAt(M-1);if(k===I||k===l)M--;else break}M<A.length&&(A=A.slice(0,M));let G=!1;for(let ge=0;ge<A.length;ge++){let be=A.charCodeAt(ge);if(be!==I&&be!==l&&be!==$q&&be!==Aq){G=!0;break}}if(!G)return null;for(var Z=A,F=d,P=-1,W=d-1;W>=_;){if(B(t,W)===$q){P=W;break}W--}if(P>=0){for(var J=!1,ne=_;ne<P;ne++){let ge=B(t,ne);if(ge!==I&&ge!==l&&ge!==$q&&ge!==Aq){J=!0;break}}if(!J){for(var ee=P+1;ee<t.length;){let ge=B(t,ee);if(ge===I||ge===l)ee++;else break}var ae=ee-(P+1);if(ae<4&&ee<t.length&&t[ee]==="["){var ve={...u,inline:!1},pe=HG(t,ee,ve,c,!1);if(pe){for(var ye=0,W=_;W<=P;){let be=t.indexOf(`
39
- `,W);if(be===-1||be>P)break;ye++,W=be+1}var $=0,ue=0;for(W=0;W<A.length;){let be=A.indexOf(`
40
- `,W);if(be===-1)break;if(ue++,ue===ye){$=be+1;break}W=be+1}$>0&&(Z=A.slice(0,$-1)),F=pe.endPos,u.refs=ve.refs}}}}let Q=PG(Z,0,Z.length,u,c);var xe={type:b.paragraph,children:Q,endPos:F};if(Q.length>0){for(var _e=[],L=Q.length-1;L>=0;L--){var te=Q[L];if(te.type===b.htmlSelfClosing&&te.isClosingTag===!0)_e.push(L);else if(te.type===b.text){var le=te;if(le.text&&le.text.trim().length>0)break}else break}if(_e.length>=3){var me=_e[_e.length-1],ce=Q.slice(me+1);Q.splice(me+1),xe.removedClosingTags=ce}}return xe}function FY(t,i){if(i!==0)return null;let u=wZ(t);return u?.hasValidYaml?{type:b.frontmatter,text:t.slice(0,u.endPos-1),endPos:u.endPos}:null}function $Z(t,i,u,c){let d=E(t,i),m=o(t,i,d,3);if(m.spaceEquivalent>3)return null;var g=i+m.charCount;if(g>=d)return null;let _=t[g];if(_!=="-"&&_!=="*"&&_!=="_")return null;for(var y=0,v=g;v<d;){var S=t[v];if(S===_)y++;else if(S!==" "&&S!==" ")return null;v++}return y<3?null:{type:b.breakThematic,endPos:s(t,d)}}function o(t,i,u,c){let d=0,m=0,g=i;for(;g<u;){var _=B(t,g);if(_!==I&&_!==l||c!==void 0&&d>=c)break;_===l?d+=4-d%4:d+=1,m++,g++}return{spaceEquivalent:d,charCount:m}}function DJ(t,i,u,c){let d=0,m=0,g=c;for(let A=i;A<u&&m<4;A++){var _=B(t,A);if(_===l){let T=4-g%4;if(m+=T,d++,g+=T,m>=4)break}else if(_===I){if(m++,d++,g++,m>=4)break}else break}let y=t.slice(i+d,u);for(var v=0,S=i;S<u&&(t[S]===" "&&v++,!(v>=2));S++);return v>=2&&r(y," ")&&c>0&&(y=" "+y.slice(1)),y}function nG(t,i,u){let c=E(t,i),d=o(t,i,c);if(d.spaceEquivalent<4)return null;let m=d.spaceEquivalent,g=E(t,i+d.charCount),_=i,y=0;for(var v=_-1;v>=0&&t[v]!==`
41
- `&&t[v]!=="\r";)v--;for(v++;v<_;)t[v]===" "?y=y+4-y%4:y++,v++;let S=DJ(t,_,g,y),A=s(t,g);if(A>=t.length)return S.trim()?{type:b.codeBlock,text:S,endPos:A}:null;var T=[];T.push(S);let D=A;for(;D<t.length;){let R=E(t,D);if(D1(t,D,R)){let w=R+1;if(w<t.length){let j=E(t,w),M=o(t,w,j),k=t[w+M.charCount];if(k&&k!==`
42
- `&&(M.spaceEquivalent<4||k===">"&&M.spaceEquivalent<m))break}T.push(`
43
- `)}else{if(o(t,D,R).spaceEquivalent<4)break;let w=DJ(t,D,R,0);T.push(`
44
- `),T.push(w)}D=s(t,R)}let N=T.join("");return N=N.replace(JY,""),N.trim()?{type:b.codeBlock,text:N,endPos:D}:null}function iZ(t,i,u,c){let d=t[i];if(d!=="`"&&d!=="~")return null;let m=_G(t,i,d);if(m<3)return null;let g=i;for(;g>0&&B(t,g-1)!==$q;)g--;let _=o(t,g,i),y=_.spaceEquivalent,v=y;if(y===4&&_.charCount===4&&(y=0,v=4),y>=4)return null;let S=yq(t,i+m),A=E(t,S),T=t.slice(S,A).trim();if(d==="`"&&T.indexOf("`")!==-1)return null;T=T.replace(gZ,"$1");let D=T.indexOf(" "),N=D>0?T.slice(0,D):T,R=D>0?T.slice(D+1).trim():"",w=R&&/=\s*["']/.test(R)?e1(R,"code","code",c):void 0,j=s(t,A),M=j;for(;M<t.length;){let F=E(t,M),P=M,W=0;for(;P<F;){let J=B(t,P);if(J===I){if(W++,P++,W>=4)break}else if(J===l){if(W+=4-W%4,P++,W>=4)break}else break}if(W<4){let J=_G(t,P,d,F-P);if(J>=m){let ne=P+J;for(;ne<F;){let ee=B(t,ne);if(ee===I||ee===l)ne++;else break}if(ne===F)break}}else if(v===4&&y===0&&W===4){let J=_G(t,P,d,F-P);if(J>=m&&D1(t,P+J,F))break}M=s(t,F)}let k=M>j&&t[M-1]===`
45
- `?M-1:M,G=t.slice(j,k);v&&(G=CZ(G,v));let Z=M<t.length?s(t,E(t,M)):M;return{type:b.codeBlock,text:G,lang:N,attrs:w,endPos:Z}}function bY(t,i,u){for(var c=0;c<t.length;c++)if(!PZ(t[c])){let m=dZ(t,i,u,{inline:!1,inBlockQuote:!0});for(var d=0;d<m.length;d++){let g=m[d];"endPos"in g&&delete g.endPos}return m}return[]}function RJ(t,i,u,c){if(u.inline)return null;let d=i;for(;d<t.length&&(t[d]===" "||t[d]===" ");)d++;if(d>=t.length||t[d]!==">")return null;let m=i;for(var g=[],_=void 0,y=-1,v=!1,S=null,A=null,T=0,D=!1;m<t.length;){let Z=E(t,m),F=m;for(;F<Z&&(t[F]===" "||t[F]===" ");)F++;if(F<Z&&t[F]===">"){let P=F+1;P<Z&&t[P]===" "&&P++;let W=o(t,P,Z).spaceEquivalent>=4,J=!1,ne=null,ee=0;if(P<Z){let ve=t[P];if(ve==="`"||ve==="~"){let pe=0,ye=P;for(;ye<Z&&t[ye]===ve&&pe<20;)pe++,ye++;pe>=3&&(J=!0,ne=ve,ee=pe)}}v&&S==="fenced"&&ne===A&&ee>=T?(v=!1,S=null,A=null,T=0):(W||J)&&(v=!0,S=W?"indented":"fenced",A=ne,T=ee);var N=!W&&!J;if(N){for(var R=P;R<Z;R++)if(!PZ(t[R])){N=!1;break}}D=N,y===-1&&!N&&(y=g.length);let ae=F+1;if(ae<Z&&t[ae]===" "){g.push(" ");let ve=4;for(let pe=ae+1;pe<Z;pe++){let ye=t[pe];var w=B(ye);if(w===l){let $=4-ve%4;$===1?g.push(" "):$===2?g.push(" "):$===3?g.push(" "):g.push(" ".repeat($)),ve+=$}else g.push(ye),ve++}Z<t.length&&g.push(`
46
- `)}else{let ve=ae;ve<Z&&t[ve]===" "&&ve++,g.push(t.slice(ve,Z)),Z<t.length&&g.push(`
47
- `)}}else{for(var j=!0,R=m;R<Z;R++)if(!PZ(t[R])){j=!1;break}if(j||v)break;if(o(t,m,Z).spaceEquivalent===0){let P=IG(t,m,u,c);if(P&&P.type!==b.ref&&P.type!==b.codeBlock||D)break}g.push(t.slice(m,Z)),Z<t.length&&g.push(`
48
- `)}m=s(t,Z)}if(m===i)return null;g.length>0&&g[g.length-1]===`
49
- `&&g.pop();let M=g.join("");if(M.length>=4&&M.charCodeAt(0)===L1&&M.charCodeAt(1)===BG){let Z=M.indexOf(`]
50
- `,2);Z>2&&(_=M.slice(2,Z),M=M.slice(Z+2))}let k=bY(M,u,c),G={type:b.blockQuote,children:k,endPos:m};return _&&(G.alert=_),G}function CZ(t,i){return t.split(`
51
- `).map(function(u){if(u.length===0)return u;let c=i,d=0,m=0,g=0;for(;m<u.length&&d<c;)if(u[m]===" ")d++,g++,m++;else if(u[m]===" "){let _=4-g%4;if(d+_<=c)d+=_,g+=_,m++;else{let y=c-d,v=Math.max(0,_-y);return" ".repeat(v)+u.slice(m+1)}}else break;return u.slice(m)}).join(`
52
- `)}function tG(t,i,u,c,d=!0){let m=(d?`
53
- `:"")+t,g=PG(m,0,m.length,u,c);i.length>0&&i[i.length-1].type===b.paragraph?i[i.length-1].children.push(...g):i.push(...g)}function SG(t){return t.some(function(i){return i.type===b.codeBlock||i.type===b.paragraph||i.type===b.blockQuote||i.type===b.orderedList||i.type===b.unorderedList||i.type===b.heading})}function LZ(t){return!!t.match(lZ)}function LJ(t){if(t.length===0)return t;var i=t[t.length-1];return(i.type===b.orderedList||i.type===b.unorderedList)&&i.items?.length>0?LJ(i.items.slice(-1)[0]):t}function hZ(t,i,u,c,d,m,g){if(!r(d,"["))return null;var _={inline:!1,refs:m.refs||{}},y=HG(t,i+c.charCount,_,g,!1);return y?y.endPos:null}function _J(t,i,u,c){return t.length!==1||!u||t[0].length!==0?!1:!!(i||!i&&c.trim()==="")}function jJ(t,i){var u=t.index||0;return i?u+t[1].length+t[2].length+1:u+t[1].length+1}function VZ(t,i,u,c,d){for(var m=0,g=c+d,_=i;_<u&&m<4;){var y=B(t,_);if(y===I)m++,g++;else if(y===l){var v=4-g%4;if(m+v>4)break;m+=v,g+=v}else break;_++}return{contentStartColumn:g,contentStartPos:_}}function TZ(t){var i=t.match(lZ);return i?i[1]?{match:[t,i[1],i[2],i[3]],ordered:!0,listItemRegex:xZ}:i[4]?{match:[t,i[4],i[5],""],ordered:!0,listItemRegex:xZ}:i[6]?{match:[t,i[6],i[7]],ordered:!1,listItemRegex:EZ}:i[8]?{match:[t,i[8],""],ordered:!1,listItemRegex:EZ}:null:null}function h1(t,i,u,c,d,m,g){if(i.spaceEquivalent!==m)return!1;var _=t.match(g);if(_)return u?_[2]===d:_[1]===c;var y=t.match(lZ);return y?u?y[4]&&y[5]===d:y[8]===c:!1}function TJ(t,i,u,c){for(var d=i,m=u,g=i[0];m<t.length;){var _=E(t,m),y=t.slice(m,_),v=r(y," ".repeat(c))?y.slice(c):y;if(r(v.trim(),g)&&_G(v.trim(),0,g)>=3)return{content:d,endPos:s(t,_)};d+=`
54
- `+v,m=s(t,_)}return{content:d,endPos:m}}function oG(t,i,u,c,d,m,g,_,y,v,S,A,T){var D=v?void 0:y[1],N=v?y[2]:void 0,R=v?xZ:EZ,w=S;if(!S)for(var j=s(t,m),M=j;M<t.length;){var k=E(t,M),G=t.slice(M,k),Z=o(t,M,k),F=Z.spaceEquivalent;if(D1(t,M,k)){var P=s(t,k);if(P<t.length){var W=E(t,P),J=o(t,P,W),ne=J.spaceEquivalent,ve=jJ(y,v),pe=d+_+ve,ye=VZ(t,pe,m,g,ve),$=ye.contentStartColumn;if(ne+1>$){w=!0;break}}break}else if(F<=g){var ee=G.slice(Z.charCount),ae=ee.match(R);if(ae&&(v?ae[2]===N:ae[1]===D))break}M=s(t,k)}var ve=jJ(y,v),pe=d+_+ve,ye=VZ(t,pe,m,g,ve),$=ye.contentStartColumn,ue=c,Q=s(t,m);if(r(c,"```")||r(c,"~~~")){var xe=v?y[1].length+y[2].length+1:y[1].length+1,_e=TJ(t,c,Q,xe);ue=_e.content,Q=_e.endPos}return i.push(fJ(ue,w,A,T)),u.push($),{newCurrentPos:Q,itemHasBlankLine:w}}function HJ(t,i,u,c,d,m){if(d>c||m.disableParsingRawHTML)return!1;let g=i+u;return g>=t.length||t[g]!=="<"?!1:wY(t,g)}function wY(t,i){if(i>=t.length||t[i]!=="<")return!1;let u=t.length,c=i+1;if(c<u&&t[c]==="/"&&c++,c>=u)return!1;let d=B(t,c);if(!GG(d))return!1;for(c++;c<u;){let g=t[c],_=B(t,c);if(g===">"||g===" "||g===" "||g===`
55
- `||g==="\r"||g==="/")break;if(g==="-"||g==="_"||GG(_)||_>=48&&_<=57)c++;else return!1}let m=0;for(;c<u;){let g=t[c],_=B(t,c);if(m===1)g==='"'&&(m=0),c++;else if(m===2)g==="'"&&(m=0),c++;else if(g==='"')m=1,c++;else if(g==="'")m=2,c++;else{if(g===">")return!0;if(g==="/"&&c+1<u&&t[c+1]===">")return!0;if(_===10||_===13)return!1;c++}}return!1}function OJ(t,i,u,c,d,m,g,_,y,v,S,A){let T=c,D=!1;for(;T<t.length;){let N=E(t,T),R=o(t,T,N),w=R.spaceEquivalent;if(D1(t,T,N)){D=!0,T=s(t,N);continue}let j=t.slice(T+R.charCount,N);if(w<=d&&h1(j,R,m,g,_,d,y))break;if(w>=u){if(A&&D){let k=hZ(t,T,N,R,j,v,S);if(k){T=k,D=!1;continue}}let M=eG(t,T,N,R,u-1,u,i,D,v,S,void 0);if(M.processed){T=M.newPos,D=M.wasBlank;continue}}else break}return T}function FJ(t,i,u,c){let d=dZ(t,u,c,{inline:!1,list:!0});if(d.length>0)return!i&&d.length===1&&d[0].type===b.paragraph?d[0].children:d;let m=zZ(u,!0,()=>f1(t,0,t.length,u,c));return i&&m.length>0?[{type:b.paragraph,children:m}]:m}function fJ(t,i,u,c){let d=HY(t,0);if(!(d&&(d.endPos>=t.length||t[d.endPos]===" ")))return FJ(t,i,u,c);let m=d.endPos<t.length?d.endPos+1:d.endPos,g=t.slice(m),_=FJ(g,i,u,c),y=[d];return d.endPos<t.length&&y.push({type:b.text,text:" "}),y.push(..._),y}function bJ(t,i){if(!t[0])return!1;let u=t[0].indexOf(i);if(u===-1)return!1;let c=u+i.length;if(c>=t[0].length)return!1;let d=t[0][c];return d?B(d)===nZ:!1}function SJ(t,i,u){if(t.length===0)return!1;let c=t[t.length-1],d=i.trim();if(!r(d,"=")&&!r(d,"-")||d.length<1||!/^[=-]+[ \t]*$/.test(d))return!1;let m=[],g="";if(c.type===b.paragraph){let y=c;m=y.children,g=y.children.map(v=>v.type===b.text?v.text:"").join("").trim()}else if(c.type===b.text){let y=[],v=t.length-1;for(;v>=0&&t[v].type===b.text;)y.unshift(t[v]),v--;y.length>0&&(m=y,g=y.map(S=>S.text).join("").trim())}if(!g)return!1;let _=d[0]==="="?1:2;if(c.type===b.paragraph)t.pop();else if(c.type===b.text)for(;t.length>0&&t[t.length-1].type===b.text;)t.pop();return t.push(ZZ(_,m,g,u.slugify)),!0}function eG(t,i,u,c,d,m,g,_,y,v,S,A){let T=c.spaceEquivalent,D=t.slice(i+c.charCount,u);if(T>=d+4){let j=nG(t,i);if(j){let M=j,k=CZ(M.text||"",m);return g.push({...M,text:k}),{processed:!0,newPos:M.endPos,wasBlank:!1}}}let N=T-(m-1);if(T+1>=m&&N<=3){let j=i+c.charCount;if(j<u){let M=t[j];if(M==="`"||M==="~"){let k=iZ(t,j,y,v);if(k){let G=k,Z=CZ(G.text||"",m-1);return g.push({...G,text:Z,endPos:G.endPos}),{processed:!0,newPos:G.endPos,wasBlank:!1}}}if(M==="|"){let k=gJ(t,j,y,v);if(k){let G=k;return g.push(G),{processed:!0,newPos:G.endPos,wasBlank:!1}}}}}if(D.length>0&&(D[0]==="-"||D[0]==="*"||D[0]==="+"||D[0]>="0"&&D[0]<="9")&&/^([-*+]|\d{1,9}[.)])\s+/.test(D)){let j=PG(D,0,D.length,y,v);return g.push({type:b.text,text:`
56
- `},...j),{processed:!0,newPos:s(t,u),wasBlank:!1}}let R=nJ(t,i,g,D,y,v);if(R!==null)return{processed:!0,newPos:R,wasBlank:!1};let w=dZ(D,y,v,{inline:!1,list:!0});if(w.length>0){if(S&&w[0].type===b.paragraph){let j=w[0];g.push({type:b.text,text:`
57
- `},...j.children),w.length>1&&g.push(...w.slice(1))}else if(!_&&w[0].type===b.paragraph&&g.length>0){let j=g[g.length-1],M=w[0];j.type===b.paragraph?j.children.push({type:b.text,text:`
58
- `},...M.children):j.type===b.heading?g.push(...M.children):SG(g)?g.push(...w):g.push({type:b.text,text:" "},...M.children),w.length>1&&g.push(...w.slice(1))}else g.push(...w);return{processed:!0,newPos:s(t,u),wasBlank:!1}}if(_){let j=zZ(y,!0,()=>f1(D,0,D.length,y,v));g.push({type:b.paragraph,children:j})}else tG(D,g,y,v);return{processed:!0,newPos:s(t,u),wasBlank:!1}}function pZ(t,i,u,c){if(u.inline)return null;var d=u.inList;if(u.inList=!0,i>0){var m=B(t,i-1);if(m!==$q&&m!==Aq)return u.inList=d,null}var g=E(t,i),_=o(t,i,g);if(_.spaceEquivalent>3&&!u.inList)return u.inList=d,null;var y=t.slice(i,g),v=_.charCount,S=y.slice(v),A=TZ(S);if(!A)return u.inList=d,null;var{match:T,ordered:D,listItemRegex:N}=A,R=_.spaceEquivalent,w=D?parseInt(T[1],10):void 0,j=D?T[2]:void 0,M=D?void 0:T[1],k=D?T[3]==="":T[2]==="";function G(he,Re){if(he===0)return!0;var Le=B(t,he-1);if(Le!==$q)return!1;if(!Re)return!0;for(var Se=he-2;Se>=0;){var Ce=B(t,Se);if(Ce!==I&&Ce!==l)break;Se--}return Se<0||B(t,Se)===$q}if(k&&!G(i,!0))return u.inList=d,null;if(D&&w!==1&&!G(i,!1)||!D&&bJ(T,M))return null;var Z=T.index||0,F=D?Z+T[1].length+T[2].length+1:k?Z+T[1].length:Z+T[1].length+1,P=i+v+F,W=VZ(t,P,g,R,F),J=W.contentStartColumn,ne=R+Z+T[1].length,ee=D?ne+T[2].length+1:k?ne:ne+1,ae=[],ve=[];function pe(he,Re,Le){return Le?he>=Re:he>Re}function ye(){return ae[ae.length-1]}function $(){return ve[ve.length-1]??J}function ue(he,Re){let Le=LJ(Re),Se=u.inList;u.inList=!0;let Ce=pZ(t,he,u,c);return u.inList=Se,Ce?(Le.push(Ce),Ce):null}for(var Q=s(t,g),xe=Q,_e=!1;xe<t.length;){var L=E(t,xe),te=t.slice(xe,L);if(te.trim()===""){for(var le=s(t,L);le<t.length;){var me=B(t,le);if(me!==$q){if(!zY.has(t[le]))break}le++}var ce=E(t,le),ge=t.slice(le,ce),be=o(t,le,ce),De=ge.slice(be.charCount);if(h1(De,be,D,M,j,R,N))_e=!0;else{var we=hZ(t,le,ce,be,De,u,c);if(we){for(var Ge=we;Ge<t.length&&B(t,Ge)===$q;)Ge++;if(Ge<t.length){var lt=E(t,Ge),Oe=t.slice(Ge,lt),pt=o(t,Ge,lt),xt=Oe.slice(pt.charCount);h1(xt,pt,D,M,j,R,N)&&(_e=!0)}}}break}var ke=o(t,xe,L),st=te.slice(ke.charCount),Kt=TZ(st);if(!Kt)break;var hn=Kt.match;if(D){if(hn[2]!==j)break}else if(hn[1]!==M)break;xe=s(t,L)}var Ze=D?T[3]:T[2];Ze=Ze.trimStart();for(var Pt=i+v+(T.index||0),Rt=D?Pt+T[1].length+T[2].length:Pt+T[1].length,Qt=Rt;Qt<t.length;){var me=B(t,Qt);if(me!==I&&me!==l)break;Qt++}for(var Et=0,at=Rt;at<g;){var me=B(t,at);if(me===l)Et+=4-Et%4;else if(me===I)Et++;else break;at++}var vn=!1;if(Rt<t.length&&B(t,Rt)===l){for(var Ut=1,wt=Rt+1;wt<t.length&&B(t,wt)===l;)Ut++,wt++;Ut>=2&&(Ze=" "+Ze,vn=!0)}D||(k=k&&Et===0),Et>=4&&!vn&&(Ze=" ".repeat(Et-1)+Ze.trimStart()),Ze.trim();let Dt=_e;if(!_e&&Q<t.length)for(var ln=Q;ln<t.length;){var sn=E(t,ln),Pn=t.slice(ln,sn);if(D1(t,ln,sn)){for(var qe=s(t,sn);qe<t.length;){var un=E(t,qe);if(D1(t,qe,un))qe=s(t,un);else break}if(qe<t.length){var mt=o(t,qe,t.length),ct=mt.spaceEquivalent;if(ct>=R){for(var Ke=t.slice(qe,E(t,qe)),We=Ke.slice(mt.charCount).match(N),Wt=We&&(D?We[2]===j:We[1]===M),cn=null,Nt=Q;Nt<ln;Nt=E(t,Nt)+1){var et=E(t,Nt),Vt=o(t,Nt,et),St=t.slice(Nt,et).slice(Vt.charCount).match(N),bn=St&&Vt.spaceEquivalent>R&&Vt.spaceEquivalent>=J&&(D?St[2]===j:St[1]===M);if(bn){var En=Vt.spaceEquivalent+1,ft=D?En+St[1].length+St[2].length+1:En+St[1].length+1,qt=Nt+Vt.charCount+St[0].length,Vn=VZ(t,qt,et,En,ft-En);cn=Vn.contentStartColumn;break}}var xn=Et>=5?ee:J;!Wt&&ct>=xn&&(cn===null||ct+1<cn)&&(Dt=!0)}}break}var $n=o(t,ln,sn),tn=$n.spaceEquivalent,nn=Pn.slice($n.charCount),$t=nn.match(N),Mt=$t&&(D?$t[2]===j:$t[1]===M);if(Mt&&tn<=R)break;ln=s(t,sn)}var Pe=Ze;if(r(Ze,"```")||r(Ze,"~~~")){var Sn=D?T[1].length+T[2].length+1:T[1].length+1,_n=TJ(t,Ze,Q,Sn);Pe=_n.content,Q=_n.endPos}var zt=!k&&Ze.trim()===""&&Et>0&&Et<5;if(!Dt)for(var Tt=Pe.length>0?Pe[0]:"",ot=Tt===">",i=Q;i<t.length;){var g=E(t,i),y=t.slice(i,g);if(y.trim()==="")break;var _=o(t,i,g);if(_.spaceEquivalent<ee)break;var S=y.slice(_.charCount);if(_.spaceEquivalent<=R&&h1(S,_,D,M,j,R,N)||LZ(S)&&_.spaceEquivalent>R)break;var an=S.length>0?S[0]:"",Zn=an===">"&&ot;if(an===">"&&!Zn||an==="#"||r(S,"```")||r(S,"~~~"))break;Pe+=`
59
- `+S,Q=i=s(t,g)}if(ae.push(fJ(Pe,Dt,u,c)),ve.push(J),Dt&&(Et>=5||zt)){let he=ye();Q=OJ(t,he,ee,Q,R,D,M,j,N,u,c,!0)}else if(!Dt){let he=ee-1;for(;Q<t.length;){let Re=E(t,Q),Le=t.slice(Q,Re),Se=o(t,Q,Re),Ce=Se.spaceEquivalent,He=Le.slice(Se.charCount);if(Le.trim()===""||Ce<=R&&h1(He,Se,D,M,j,R,N)||LZ(He)&&Ce>R||Ce<he)break;let ut=ye(),Me=eG(t,Q,Re,Se,he,J,ut,!1,u,c,!0);if(Me.processed)Q=Me.newPos;else break}}for(var Xe=!1;Q<t.length;){let he=E(t,Q),Re=t.slice(Q,he),Le=o(t,Q,he),Se=Le.charCount,Ce=Le.spaceEquivalent;if(Re.trim()==="")_e=!0,Xe=!0,Q=s(t,he);else if(Ce<R){let He=Re.slice(Se);if(He.startsWith("<")&&HJ(t,Q,Se,R,Ce,c))break;let ut=He.trim();if(ut.length>0&&ae.length>0&&!EG(ut[0])&&!h1(He,Le,D,M,j,R,N)){let Me=ye();if(Me.length>0){let Qe=Me[Me.length-1];if(Qe.type===b.paragraph||Qe.type===b.text){tG(He,Me,u,c),Xe=!1,Q=s(t,he);continue}}}break}else{let He=Re.slice(Se);if(ae.length>0){let Ue=ve[ae.length-1]||J;if(Ce+1>=Ue&&!h1(He,Le,D,M,j,R,N)){let gt=ye();if(gt.length>0&&SJ(gt,He,c)){Q=s(t,he);continue}}}if($Z(t,Q))break;if(Xe){let Ue=hZ(t,Q,he,Le,He,u,c);if(Ue){Q=Ue,Xe=!1;continue}}if(Ce<=R){if(He.startsWith("<")&&HJ(t,Q,Se,R,Ce,c))break;if(!h1(He,Le,D,M,j,R,N)){if(Ce===R&&!Xe){let Ue=He.trim();if(Ue.length>0&&!EG(Ue[0])){let gt=IG(t,Q,u,c);if(gt&&gt.type!==b.paragraph)break;let jt=ye();if(jt.length>0&&!SG(jt)){tG(He,jt,u,c,!1),Xe=!1,Q=s(t,he);continue}}}break}}if(_J(ae,k,Xe,Ze))break;let ut=TZ(He),Me=ut?ut.match:null,Qe=Me&&(D?Me[2]===j:Me[1]===M);if(Qe&&Ce>3&&Xe)break;if(Qe&&Ce<=R+3){if(Ce>=4&&Xe)break;if(Ce===R){let Ue=D?Me[3]:Me[2];if(Ue=Ue.trimStart(),Q=oG(t,ae,ve,Ue,Q,he,Ce,Se,Me,D,_e,u,c).newCurrentPos,Xe=!1,Ue.trim()===""){let gt=ae[ae.length-1],jt=$();Q=OJ(t,gt,jt,Q,R,D,M,j,N,u,c)}continue}if(Ce>R){if(Xe){let Be=D?Me[3]:Me[2];Be=Be.trimStart(),Q=oG(t,ae,ve,Be,Q,he,Ce,Se,Me,D,_e,u,c).newCurrentPos,Xe=!1;continue}let Ue=ye(),gt=Ce+1,jt=pe(gt,$(),SG(Ue));if(jt){let Be=ue(Q,Ue);if(Be){Q=Be.endPos,Xe=!1;continue}}if(!jt&&Qe){let Be=D?Me[3]:Me[2];if(Be=Be.trimStart(),!_e){let Zt=s(t,he);for(;Zt<t.length;){let fn=E(t,Zt),It=t.slice(Zt,fn),kt=o(t,Zt,fn),hr=kt.spaceEquivalent;if(It.trim()===""){let kn=s(t,fn);if(kn<t.length){let pr=o(t,kn,t.length).spaceEquivalent,Ra=Ce+(D?Me[1].length+Me[2].length+1:Me[1].length+1);if(pr+1>Ra)break}break}else if(hr<=R){let kn=It.slice(kt.charCount).match(N);if(kn&&(D?kn[2]===j:kn[1]===M)&&hr<=R)break}Zt=s(t,fn)}}Q=oG(t,ae,ve,Be,Q,he,Ce,Se,Me,D,_e,u,c).newCurrentPos,Xe=!1;continue}else if(!jt&&!Qe)break;{let Be=ye(),Zt=Be.length===0;if(Zt&&_J(ae,k,Xe,Ze))break;let fn=Be.some(kt=>kt.type===b.codeBlock||kt.type===b.paragraph||kt.type===b.blockQuote||kt.type===b.orderedList||kt.type===b.unorderedList||kt.type===b.heading),It=Zt&&ae.length===1?ee:J;if(fn?Ce>=It:Ce>It){let kt=eG(t,Q,he,Le,It,J,ye(),Xe,u,c,void 0);if(kt.processed){Xe=kt.wasBlank,Q=kt.newPos;continue}}else break}}else if(Ce===R){if(!D&&Me&&bJ(Me,Me[1]))break;let Ue=D?Me[3]:Me[2];Ue=Ue.trimStart(),Q=oG(t,ae,ve,Ue,Q,he,R,Se,Me,D,_e,u,c).newCurrentPos,Xe=!1}}else if(Ce>R){let Ue=ye();if(LZ(He)){let jt=Ce+1;if(pe(jt,$(),SG(Ue))){let Be=ue(Q,Ue);if(Be){Q=Be.endPos,Xe=!1;continue}}if(Ce-R>3){let Be=Ue.length>0?Ue[Ue.length-1]:null;if(Be&&(Be.type===b.paragraph||Be.type===b.text)){tG(He,Ue,u,c),Xe=!1,Q=s(t,he);continue}}else break}else{let jt=ue(Q,Ue);if(jt){Q=jt.endPos,Xe=!1;continue}}let gt=J;if(SG(Ue)?Ce>=gt-1:Ce>gt-1){let jt=eG(t,Q,he,Le,gt-1,J,ye(),Xe,u,c,void 0);if(jt.processed){Xe=jt.wasBlank,Q=jt.newPos;continue}}else break}else break}}if(_e&&ae.length>1&&ae[0].length>0&&ae[0][0].type!==b.paragraph){for(var An=1;An<ae.length;An++)if(ae[An].length>0&&ae[An][0].type===b.paragraph){for(var Cn=!1,Ee=0;Ee<ae[0].length;Ee++){var z=ae[0][Ee].type;if(z===b.codeBlock||z===b.heading||z===b.blockQuote||z===b.orderedList||z===b.unorderedList||z===b.htmlBlock||z===b.breakThematic){Cn=!0;break}}Cn||(ae[0]=[{type:b.paragraph,children:ae[0]}]);break}}let fe=D?{type:b.orderedList,items:ae,ordered:!0,start:w}:{type:b.unorderedList,items:ae,ordered:!1};return u.inList=d,{...fe,endPos:Q}}function gJ(t,i,u,c){if(u.inline)return null;let d=[],m=i;for(;m<t.length;){let N=E(t,m);if(D1(t,m,N))break;let R=t.slice(m,N).trim();if(!(R.indexOf("|")!==-1||d.length>=3&&R&&!EG(R[0])))break;d.push(R),m=s(t,N)}if(d.length<2)return null;let g=N=>N[0]==="|"&&N[N.length-1]==="|"?N.slice(1,-1):N,_=N=>{let R=[],w="",j=!1;for(let M=0;M<N.length;M++){let k=N[M];k==="\\"&&M+1<N.length&&N[M+1]==="|"?(w+="|",M++):k==="`"?(j=!j,w+=k):k==="|"&&!j?(R.push(w.trim()),w=""):w+=k}return R.push(w.trim()),R},y=_(g(d[0]));if(!y.length)return null;let v=_(g(d[1]));if(v.length!==y.length||v.some(N=>!/^:?-+:?$/.test(N)))return null;let S=v.map(N=>{let R=N[0]===":",w=N[N.length-1]===":";return R&&w?"center":R?"left":w?"right":null}),A=N=>zZ(u,!0,()=>N.map(R=>f1(R,0,R.length,u,c))),T=A(y),D=d.slice(2).map(N=>{let R=N.indexOf("|")!==-1?_(g(N)):[N.trim()],w=y.length;for(;R.length<w;)R.push("");return R.length=w,A(R)});return{type:b.table,header:T,cells:D,align:S,endPos:m}}var WY=["div","p","section","article","aside","nav","header","footer","main","h1","h2","h3","h4","h5","h6","blockquote","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","td","th","form","fieldset","hr","pre","details","summary","figure","figcaption"],MY=new Set(["pre","script","style","textarea"]);function gG(t){return WY.indexOf(t.toLowerCase())!==-1}function jG(t){return MY.has(t)}function D1(t,i,u){for(var c=i;c<u;c++){let d=B(t,c);if(d!==I&&d!==l&&d!==Aq)return!1}return!0}function zZ(t,i,u){let c=t.inline;t.inline=i;try{return u()}finally{t.inline=c}}function fZ(t,i,u){for(var c=i;c<u;){var d=E(t,c);if(D1(t,c,d))return c;c=d+(d<u?1:0)}return u}function SZ(t,i,u){return{type:b.htmlComment,text:t,endPos:i,...u}}function DG(t,i,u,c,d,m,g,_,y){var v=i;if(_&&_.forceBlock&&i&&!m){var S=new RegExp("^<"+t.toLowerCase()+"(\\s[^>]*)?>$","i");S.test(i.trim())&&(v="")}var A=v,T=t.toLowerCase(),D=new RegExp("^<"+T+"[\\s>]","i");if(D.test(A)){var N=A.indexOf(">");if(N!==-1){A=A.slice(N+1);var R="</"+T+">",w=A.indexOf(R);w!==-1&&(A=A.slice(0,w))}}else{var j="</"+T+">",M=A.indexOf(j);M!==-1&&(A=A.slice(0,M))}var k=[];if(A&&_){var G=y||{inline:!1,inHTML:!0,inAnchor:!1},Z=A.trim(),F=KZ.test(Z),P=UZ.test(Z),W=XZ.test(Z);if(F||P||W){var J={...G,inline:!1,inHTML:!0,inAnchor:G.inAnchor||T==="a"};k=mG(Z,J,_)}else if(Z){var ne={...G,inline:!0,inAnchor:G.inAnchor||T==="a"};k=f1(Z,0,Z.length,ne,_)}}return{type:b.htmlBlock,tag:t,attrs:c||{},rawAttrs:d,children:k,rawText:v,text:v,verbatim:!0,isClosingTag:m,canInterruptParagraph:g,endPos:u}}function xG(t){let i=UZ.test(t),u=KZ.test(t),c=ZY.test(t);return i||u&&!c}function wJ(t,i,u,c,d,m,g,_,y,v){if(!_.inHTML&&!_.inline&&!dG(d,`
60
- `)){let be=m,De=g.length;for(;be<De;){let we=E(g,be);if(D1(g,be,we))break;let Ge=g.slice(be,we).trim();if(Ge.length>0&&EG(Ge[0])){let lt=vZ(g,be,_,v);if(lt){be=lt.endPos;continue}let Oe=qG(g,be);if(Oe){be=Oe.endPos;continue}return null}be=s(g,we)}}let S=i,A=jG(S);var T=!A&&!QG(i),D=void 0;if(d){var N=d.indexOf(">");if(N!==-1){var R=d.slice(0,N+1);R.indexOf(`
61
- `)!==-1&&(D=R);for(var w=N,j=1;j<N;j++){var M=R[j];if(M===" "||M===" "||M===`
62
- `||M===">"){w=j;break}}u=R.slice(w,N)}}var k=u.replace(/^[\s\n\r\t]+/,""),G=e1(k,i,t,v),Z={...G},F=!1,P=!1;if(T&&c.length>0){var W="</"+S,J=c.indexOf(W);if(J>=0){for(var ne=J+W.length;ne<c.length&&(c[ne]===" "||c[ne]===" ");)ne++;if(ne<c.length&&c[ne]===">"){var ee=c.slice(0,J);xG(ee)?(c=ee,P=!0):F=!0}}if(!P){var ae=c.length-1;if(c[ae]===`
63
- `){for(ae--;ae>=0&&(c[ae]===" "||c[ae]===" "||c[ae]==="\r");)ae--;ae>=0&&c[ae]===`
64
- `&&(F=!0)}}}var ve=A||T&&F&&!xG(c),pe=c,ye=pe;if(ve){pe.length>0&&pe[0]===`
65
- `&&(pe=pe.slice(1),ye=pe),pe.length>0&&pe[pe.length-1]===`
66
- `&&(pe=pe.slice(0,-1),ye=pe);var W="</"+S+">",J=pe.indexOf(W);J!==-1&&(pe=pe.slice(0,J))}let $=pe.match(/^([ \t]*)/),ue=$?$[1]:"",Q=new RegExp(`^${ue.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"gm"),xe=pe.replace(Q,""),_e=KZ.test(xe),L=UZ.test(xe),te=S==="p",le=XZ.test(xe),me=te?_e:_e||L||_.inHTML&&le,ce=[];if(xe)if(me||le){let be={..._,inline:!1,inHTML:!0,inAnchor:_.inAnchor||S==="a"};ce=mG(xe,be,v)}else{let be={..._,inline:!0,inAnchor:_.inAnchor||S==="a"};ce=f1(xe,0,xe.length,be,v)}var ge=void 0;return ve&&(D!==void 0?ge=D+ye:ge=ye),{type:b.htmlBlock,tag:ve?i:t,attrs:Z,rawAttrs:u,children:ce,rawText:ge,text:ge,verbatim:ve,canInterruptParagraph:!0,endPos:m}}function vZ(t,i,u,c){if(t[i]!=="<")return null;if(u.inline,i+1<t.length){if(t[i+1]==="?"){var d=qZ(t,i);if(d&&d.kind==="pi")return SZ(d.text||"",d.endPos,{raw:!0})}else if(t[i+1]==="!"){if(i+3<t.length&&t.slice(i,i+4)==="<!--"){u.inline;var m=qZ(t,i);if(m&&m.kind==="comment"){var g=m.text||"",_=!1;return g==="<!-->"?(g="",_=!0):g==="<!--->"?(g="-",_=!0):g.startsWith("<!--")&&g.endsWith("-->")&&(g=g.slice(4,-3)),u.inline,SZ(g,m.endPos,{endsWithGreaterThan:_})}}var y=qZ(t,i);if(y&&(y.kind==="declaration"||y.kind==="cdata"))return SZ(y.text||"",y.endPos,{raw:!0})}}if(i+1<t.length){let mr=t[i+1];if(mr===" "||mr===`
67
- `||mr===" "||mr==="\r")return null}var v=t.indexOf(">",i+1);if(v!==-1){var S=t.slice(i+1,v),A=S.indexOf(" ")!==-1||S.indexOf(" ")!==-1;if(!A&&(r(S,"http://")||r(S,"https://"))||!A&&yJ(S))return null}var T=qG(t,i);if(!T&&!u.inline){for(var D=t.length,N=E(t,i),R=i,w=0;R<N&&w<3&&(t[R]===" "||t[R]===" ");)w++,R++;if(R>=N||t[R]!=="<")return null;if(R+1<N){var Ue=IZ(t,R+1);if(Ue){var gt=Ue.tagName,j=gG(gt);if(!j)return null;for(var M=Ue.nextPos,k=!1,G=!1,Z="",F=N,P=!1;F<D&&!P;){for(var W=!1;M<F;){var J=t[M];if(G)J===Z&&(G=!1,Z=""),(J===`
68
- `||J==="\r")&&(k=!0),M++,W=!0;else if(J==='"'||J==="'")G=!0,Z=J,M++,W=!0;else if(J===`
69
- `||J==="\r"){k=!0,M++,W=!0;var ne=E(t,M);if(ne===M)break;F=ne}else if(J===">"){M++,P=!0;break}else M++,W=!0}if(P)break;if(!W&&M>=F){var ee=E(t,F+1);if(ee<=F)break;F=ee}else if(M>=F&&F<D){var ee=E(t,F+1);if(ee<=F)break;F=ee}else break}if(!k&&P)return null;M>=N&&N<D&&(M=N);var ae=j?"type6":"type7",ve=M,pe=fZ(t,N+1,D),ye=t.slice(ve,pe),$=i+1<t.length&&t[i+1]==="/";if(ae==="type7"&&ye.trim()===""){var ue=t.slice(i,pe),Q=E(ue,0);Q<ue.length&&Q++;var xe=ue.slice(0,Q);return DG(gt,xe,pe,{},void 0,$,!1,c,u)}var _e=t.slice(i,pe);return DG(gt,_e,pe,{},void 0,$,ae==="type6",c,u)}}return null}if(!T)return null;if(v!==-1){var L=t.slice(i+1,v);if((r(L,"http://")||r(L,"https://"))&&(L.indexOf(" ")!==-1||L.indexOf(" ")!==-1))return null}var De=i+(T.isClosing?2:1);if(De<t.length){var te=t[De],le=B(te);if((le>=97&&le<=122||le>=65&&le<=90)&&De+1<t.length&&t[De+1]===":")return null}if(T.isClosing){var me=T.attrs.trim();if(me.length>0)return null;if(!u.inline){for(var D=t.length,N=E(t,i),ve=T.endPos,ce=ve;ce<N&&(t[ce]===" "||t[ce]===" "||t[ce]==="\r");)ce++;var ge=ce>=N||t[ce]==="<"&&(function(){var Yr=qG(t,ce);return Yr&&gG(Yr.tagLower)})();if(ge){var pe=fZ(t,N+1,D),ye=t.slice(ve,pe);ye.length>0&&ye[0]===`
70
- `&&(ye=ye.slice(1));let Aa=T.tagLower||T.tagName.toLowerCase();return DG(T.tagName,ye,pe,e1(T.whitespaceBeforeAttrs+T.attrs,Aa,T.tagName,c),T.whitespaceBeforeAttrs+T.attrs,!0,!1,c,u)}}var be=t.slice(i,T.endPos);return{type:b.htmlSelfClosing,tag:T.tagName,attrs:{},endPos:T.endPos,isClosingTag:!0,rawText:be}}var De=i+(T.isClosing?2:1);if(De<t.length){var we=t[De];if(we===" "||we===" "||we===`
71
- `||we==="\r")return null}var Ge=T.tagLower,lt=QG(T.tagName);let Oe=T.tagName.length>0&&T.tagName[0]>="A"&&T.tagName[0]<="Z";if(T.isSelfClosing||lt&&Ge!=="a"){if(T.hasNewline&&!Oe||!u.inHTML&&!u.inline&&!Oe)return null;var pt=T.attrs.replace(/\/\s*$/,""),xt=e1(pt,Ge,T.tagName,c),be=u.inline?t.slice(i,T.endPos):void 0;let Tn={type:b.htmlSelfClosing,tag:T.tagName,attrs:xt,endPos:T.endPos};return be!==void 0&&(Tn.rawText=be),Tn}if(u.inline){var ke=T.attrs.replace(/\/\s*$/,""),st=T.whitespaceBeforeAttrs+ke,Kt=e1(ke,Ge,T.tagName,c),hn={...Kt},Ze=T.endPos,Pt=[];if(!QG(T.tagName)){var Rt=qY(t,T.endPos,Ge);if(Rt!==null){var Qt=t.slice(T.endPos,Rt[0]);Qt&&(u.inHTML&&XZ.test(Qt)||xG(Qt)?Pt=mG(Qt,{...u,inline:!1,inHTML:!0,inAnchor:u.inAnchor||Ge==="a"},c):Pt=f1(Qt,0,Qt.length,{...u,inline:!0,inAnchor:u.inAnchor||Ge==="a"},c)),Ze=Rt[1]}}return{type:b.htmlBlock,tag:T.tagName,attrs:hn,rawAttrs:st,children:Pt,verbatim:!1,endPos:Ze}}if(!u.inline){for(var D=t.length,N=E(t,i),Et=T.tagLower,at=jG(Et),vn=!at&&gG(T.tagName),Ut=!1,wt=i;wt<T.endPos;){if(t[wt]===">"){Ut=!0;break}wt++}for(var ce=T.endPos;ce<N&&(t[ce]===" "||t[ce]===" ");)ce++;var Dt=ce>=N||t[ce]===`
72
- `||t[ce]==="\r"||vn&&ce<N||!Ut;if(at&&Ut&&!T.isClosing){var{tagName:ln,endPos:sn,attrs:Pn}=T,qe=sn;t[qe]===`
73
- `&&qe++;for(var un=qe,mt=qe,ct=1,Ke=Et.length+1;ct>0;){var We=t.indexOf("<",qe);if(We===-1){mt=D,qe=D;break}var Wt=-1,cn=-1;if(t[We+1]==="/")cn=We;else if(We+Ke+1<=D&&(t[We+1]===Et[0]||t[We+1]===ln[0])){var Nt=t.substring(We+1,We+Ke);Nt.toLowerCase()===Et&&(t[We+Ke]===" "||t[We+Ke]===">")&&(Wt=We)}if(Wt===-1&&cn===-1){qe=We+1;continue}if(Wt!==-1&&(cn===-1||Wt<cn))qe=Wt+Ke+1,ct++;else{for(var et=cn+2;et<D;){var Vt=t[et];if(Vt!==" "&&Vt!==" "&&Vt!==`
74
- `&&Vt!=="\r")break;et++}if(et+Et.length>D)break;var St=t.substring(et,et+Et.length);if(St.toLowerCase()!==Et){qe=et;continue}for(et+=Et.length;et<D;){var bn=t[et];if(bn!==" "&&bn!==" "&&bn!==`
75
- `&&bn!=="\r")break;et++}if(et>=D||t[et]!==">"){qe=et;continue}var En=et+1,ft=E(t,En);mt=ft,qe=ft+1,ct--}}for(var qt=0;qe+qt<D&&t[qe+qt]===`
76
- `;)qt++;var Vn=t.slice(i,qe+qt),xn=t.slice(un,mt),$n=qe+qt;return wJ(T.tagName,T.tagName,Pn,xn,Vn,$n,t,u,!1,c)}if(Dt||!Ut){var ae=vn?"type6":"type7",ve=T.endPos,pe=fZ(t,N+1,D);if(ae==="type6"&&!T.isClosing){var tn="</"+(Oe?T.tagName:T.tagLower||T.tagName.toLowerCase()),nn=t.indexOf(tn,ve);if(nn!==-1){for(var $t=nn+tn.length;$t<D&&(t[$t]===" "||t[$t]===" ");)$t++;if($t<D&&t[$t]===">"){var Mt=t.slice(ve,nn),Pe=Oe||xG(Mt);if(Pe){var Sn=E(t,$t+1);pe=Sn}}}}var ye=t.slice(ve,pe),_n=T.whitespaceBeforeAttrs+T.attrs,$=T.isClosing;if(ae==="type7"&&ye.trim()===""){var zt=t.slice(i,T.endPos),Tt=zt.indexOf(`
77
- `)!==-1;if(Tt)return null;var ot=T.endPos,Q=E(t,ot);Q<t.length&&Q++;var xe=t.slice(i,Q);return DG(T.tagName,xe,pe,{},void 0,$,!1,c,u)}var an=T.hasNewline,Zn=!Ut;if((an||Zn)&&ae==="type7"){var Xe=T.endPos,An=t.slice(i,Xe),Cn=ye,_e=An+Cn;return DG(T.tagName,_e,pe,{},void 0,$,!1,c,u)}let sa=T.tagLower||T.tagName.toLowerCase();var Ee=e1(_n,sa,T.tagName,c),z={...Ee};if(ae==="type6"){var fe=ye,he=ye.indexOf("</"+sa);if(he>=0){for(var ce=he+2+T.tagName.length;ce<ye.length&&(ye[ce]===" "||ye[ce]===" ");)ce++;ce<ye.length&&ye[ce]===">"&&(fe=ye.slice(0,he))}if(xG(fe))return wJ(T.tagName,T.tagName,_n,fe,t.slice(i,T.endPos),pe,t,u,!1,c)}var Re=ye;Re.length>0&&Re[0]===`
78
- `&&(Re=Re.slice(1));for(var Le=Re.split(`
79
- `),Se=1/0,Ce=0;Ce<Le.length;Ce++){var He=Le[Ce];if(He.trim().length!==0){for(var w=0;w<He.length&&(He[w]===" "||He[w]===" ");)w++;w<Se&&(Se=w)}}if(Se>0&&Se<1/0){for(var ut=[],Me=0;Me<Le.length;Me++){var Qe=Le[Me];Qe.trim().length===0?ut.push(Qe):ut.push(Qe.slice(Se))}Re=ut.join(`
80
- `)}return DG(T.tagName,Re,pe,z,_n,$,ae==="type6",c,u)}}if(u.inline)return null;var Ue=IZ(t,i+1);if(!Ue)return null;var gt=Ue.tagName;if(!QG(gt))return null;let jt=Ue.tagLower;for(var Be=Ue.nextPos,Zt=t.length;Be<Zt&&Tq(t[Be]);)Be++;for(var fn=Be;Be<Zt&&t[Be]!==">";)Be++;if(Be>=Zt)return null;let It=t.slice(fn,Be).trim(),kt=Be+1;for(;kt<Zt&&Tq(t[kt]);)kt++;let hr="</"+jt+">",kn=t.toLowerCase().indexOf(hr,kt);if(kn!==-1&&t.slice(kt,kn).trim())return null;Be++;let pr=Be;for(;Be<Zt&&Tq(t[Be]);)Be++;Be<Zt&&t[Be]===`
81
- `&&Be++;let Ra=e1(It,gt,gt,c);return{type:b.htmlSelfClosing,tag:gt,attrs:Ra,endPos:pr}}function AY(t,i){if(t[i]!=="<")return null;var u=t.length,c=!1,d=i+1;i+1<u&&t[i+1]==="/"&&(c=!0,d=i+2);var m=IZ(t,d);if(!m)return null;var{tagName:g,tagLower:_,nextPos:y}=m;if(y<u){var v=t[y];if(v===">"||v==="/"){var S=v===">"?y+1:y+2;if(v==="/"&&(y+1>=u||t[y+1]!==">"))return null;var A=v==="/",T=gG(g),D=!jG(_)&&!T;return{kind:"tag",tagNameLower:_,tagName:g,isClosing:c,isSelfClosing:A,hasNewline:!1,type6Candidate:T,type7Candidate:D,endPos:S,attrs:"",whitespaceBeforeAttrs:""}}}for(var N=y,R=!1;y<u;){var w=t[y],j=B(t,y);if(!(w===" "||w===" "))if(j===10||j===13)R=!0;else break;y++}for(var M=t.slice(N,y),k=y,G=0,Z=!1,F=!1,P=0;k<u;){var W=t[k],j=B(t,k);if(P===1){if(W==='"'){if(k+1<u&&t[k+1]==='"')return null;P=0}k++}else if(P===2)W==="'"&&(P=0),k++;else if(W==='"')P=1,k++;else if(W==="'")P=2,k++;else if(W==="{"||W==="}"&&G>0)G+=W==="{"?1:-1,k++;else if(W===">"&&G===0){if(k>y){for(var J=k-1;J>=y;){var ne=t[J];if(ne!==" "&&ne!==" ")break;J--}J>=y&&t[J]==="/"&&(Z=!0,F=J<k-1)}k++;break}else{if(W==="*"||W==="#"||W==="!"){for(var ee=k+1;ee<u;){var ae=t[ee];if(ae==="="||ae===" "||ae===" "||ae===`
82
- `||ae==="\r"||ae===">")break;ee++}if(ee<u&&t[ee]==="=")return null}(j===10||j===13)&&(R=!0),k++}}if(k>u||t[k-1]!==">"||P===1||P===2||G>0||F)return null;var ve=k-1;Z&&ve--;for(var pe=t.slice(y,ve),ye=Z,$=-1,ue=!1,Q="",xe=!1,_e=0;_e<pe.length;_e++){var w=pe[_e];if(ue)w===Q&&(ue=!1,$=_e,Q="",xe=!1);else if(w==='"'||w==="'")ue=!0,Q=w,xe=!1;else if(w==="=")xe=!0;else if($!==-1&&_e===$+1){var j=w.charCodeAt(0);if(GG(j))return null}else{if(xe&&!ue&&(w==="*"||w==="#"||w==="!"))return null;Tq(w)&&(xe=!1)}}var L=gG(g),te=!jG(_)&&!L;return{kind:"tag",tagNameLower:_,tagName:g,isClosing:c,isSelfClosing:ye,hasNewline:R,type6Candidate:L,type7Candidate:te,endPos:k,attrs:pe,whitespaceBeforeAttrs:M}}function qZ(t,i){if(i>=t.length||t[i]!=="<")return null;var u=t.length;if(i+1>=u)return null;var c=t[i+1];if(c==="!"){if(i+4<=u&&t.slice(i,i+4)==="<!--"){var d=i+4;if(d<u&&t[d]===">")return{kind:"comment",hasNewline:!1,endPos:d+1,text:t.slice(i,d+1),raw:!0};if(d+1<u&&t[d]==="-"&&t[d+1]===">")return{kind:"comment",hasNewline:!1,endPos:d+2,text:t.slice(i,d+2),raw:!0};for(;d+2<u;){if(t.slice(d,d+3)==="-->")return{kind:"comment",hasNewline:!1,endPos:d+3,text:t.slice(i,d+3),raw:!0};d++}return null}if(i+9<=u&&t.slice(i,i+9)==="<![CDATA["){for(var d=i+9;d+2<u;){if(t.slice(d,d+3)==="]]>")return{kind:"cdata",hasNewline:!1,endPos:d+3,text:t.slice(i,d+3),raw:!0};d++}return null}if(i+2<u&&GG(t.charCodeAt(i+2))){for(var d=i+2;d<u&&t[d]!==">";)d++;return d>=u?null:{kind:"declaration",hasNewline:!1,endPos:d+1,text:t.slice(i,d+1),raw:!0}}return null}if(c==="?"){for(var d=i+2;d+1<u;){if(t.slice(d,d+2)==="?>")return{kind:"pi",hasNewline:!1,endPos:d+2,text:t.slice(i,d+2),raw:!0};d++}return null}return AY(t,i)}function yY(t,i,u){let c=t.length,d=i,m=d<c&&t[d]==="<";m&&d++;let g=d,_=g;if(g>=c){if(!m)return null;_=g}else{if(u>0&&g<c&&t[g]===`
83
- `)return null;for(;_<c&&!(m&&t[_]===">");){if(t[_]===`
84
- `){let J=_+1;if(J>=c||J<c&&t[J]===`
85
- `)break;let ne=J;for(;ne<c&&(t[ne]===" "||t[ne]===" ");)ne++;if(ne<c&&(t[ne]==='"'||t[ne]==="'"||t[ne]==="(")||ne<c&&t[ne]==="[")break;if(ne<c){let ee=t[ne];if(ee==="="||ee==="-"||ee==="_"||ee==="*"||ee==="#"||ee===">"||ee==="`"||ee==="~"||ee==="["||ee>="0"&&ee<="9")break;if(ee>="a"&&ee<="z"){let ae=ne+1;for(;ae<c&&ae<ne+32&&(t[ae]>="a"&&t[ae]<="z"||t[ae]>="A"&&t[ae]<="Z"||t[ae]>="0"&&t[ae]<="9"||t[ae]==="+"||t[ae]==="."||t[ae]==="-");)ae++;if(!(ae<c&&t[ae]===":"))break}}_=ne;continue}if(!m&&(t[_]===" "||t[_]===" ")){let J=_+1;for(;J<c&&(t[J]===" "||t[J]===" ");)J++;if(J<c&&(t[J]==='"'||t[J]==="'"||t[J]==="("))break;if(J<c&&t[J]===`
86
- `){let ne=J+1;if(ne<c&&t[ne]===`
87
- `)break;let ee=ne;for(;ee<c&&(t[ee]===" "||t[ee]===" ");)ee++;if(ee<c&&(t[ee]==='"'||t[ee]==="'"||t[ee]==="("))break}}_++}}if(m&&(_>=c||t[_]!==">"))return null;let y=t.slice(g,_),v=[],S=0;for(let J=0;J<=y.length;J++)if(J===y.length||y[J]===`
88
- `){let ne=y.slice(S,J);ne=ne.trim(),(ne.length>0||v.length===0)&&v.push(ne),J<y.length&&v.push(`
89
- `),S=J+1}y=v.join(""),y=y.trim(),d=m?_+1:_;var A=!1;if(d<c&&t[d]===`
90
- `){for(var T=d+1,D=T;D<c&&(t[D]===" "||t[D]===" ");)D++;if(D<c){let J=t[D];if((J==="["||J==="="||J==="-"||J==="_"||J==="*"||J==="#"||J===">"||J==="`"||J==="~"||J>="0"&&J<="9")&&(A=!0),!A&&J!=="="&&J!=="-"){var N=E(t,D);if(N<c){for(var R=N+1,w=R;w<c&&(t[w]===" "||t[w]===" ");)w++;if(w<c){var j=t[w];(j==="="||j==="-")&&(A=!0)}}}}}if(!A&&d<c&&(t[d]==='"'||t[d]==="'"||t[d]==="("))return null;let M=0;for(;d<c&&!A;){let J=t[d];if(J===`
91
- `){if(M++,M>1)break;d++;var k=d;if(d=yq(t,d),d<c&&t1(t[d])&&t[d]!==`
92
- `){d=k-1;break}if(d<c){let ne=t[d];if(ne==="["||ne==="="||ne==="-"||ne==="_"||ne==="*"||ne==="#"||ne===">"||ne==="`"||ne==="~"||ne>="0"&&ne<="9"){A=!0,d=k-1;break}}}else if(J===" "||J===" ")d++;else{if(t1(J))break;break}}let G,Z=d;if(d<c){let J=t[d];if(J==='"'||J==="'"){d++;let ne=d,ee=!1,ae=!1;for(;d<c&&t[d]!==J;)if(t[d]===`
93
- `){if(ae){ee=!0;break}ae=!0,d++}else ae=!1,t[d]==="\\"&&d+1<c&&d++,d++;if(ee)return null;if(d<c&&t[d]===J){G=t.slice(ne,d),Z=d+1,d=Z;for(var F=d;F<c&&(t[F]===" "||t[F]===" ");)F++;if(F<c&&t[F]!==`
94
- `&&t[F]!=="\r")return null;d=F}}else if(J==="("){d++;let ne=d,ee=1,ae=!1,ve=!1;for(;d<c&&ee>0;)if(t[d]===`
95
- `){if(ve){ae=!0;break}ve=!0,d++}else ve=!1,t[d]==="\\"&&d+1<c?d++:t[d]==="("?ee++:t[d]===")"&&ee--,d++;if(ae)return null;ee===0&&(G=t.slice(ne,d-1),Z=d,d=Z)}}if(d=yq(t,d),d<c&&t[d]!==`
96
- `)for(var P=d;P<c&&t[P]!==`
97
- `;){if(t[P]!==" "&&t[P]!==" ")return null;P++}if(G===void 0&&d<c&&t[d]!==`
98
- `)for(var W=d;W<c&&t[W]!==`
99
- `;){if(t[W]!==" "&&t[W]!==" ")return null;W++}return{endPos:d<c&&t[d]===`
100
- `?d+1:d,target:y,title:G}}function BY(t,i){let u=i,c=u,d=!1;for(;c<t.length;){let N=c===0||t[c-1]===`
101
- `;if(c+1<t.length&&t[c]===`
102
- `&&t[c+1]===`
103
- `&&c>u){let R=c+2;for(;R<t.length&&(t[R]===" "||t[R]===" ");)R++;if(R<t.length&&t[R]!==`
104
- `&&R-(c+2)<4){d=!0;break}}if(N&&r(t,"[^",c)){let R=c+2;for(;R<t.length&&t[R]!=="]";)R++;if(R<t.length&&t[R]==="]"&&R+1<t.length&&t[R+1]===":")break}c++}let m=c,g=i;var _=[];let y=g,v=0,S=!1;for(;y<m;){let N=y;for(;N<m&&t[N]!==`
105
- `;)N++;if(v===0){let R=N;for(;R>y&&(t[R-1]===" "||t[R-1]===" ");)R--;let w=t.slice(y,R);_.push(w),S=w.length===0}else{let R=0,w=y;for(;w<N&&w<y+4&&t[w]===" ";)R++,w++;let j=!1;for(let k=y;k<N;k++)if(t[k]!==" "&&t[k]!==" "&&t[k]!=="\r"){j=!0;break}let M=!j;R>=4&&S?_.push(t.slice(y,N)):R===4&&!S?_.push(t.slice(y+4,N)):_.push(t.slice(y,N)),S=M}N<m&&t[N]===`
106
- `?(_.push(`
107
- `),y=N+1):y=m,v++}let A=_.join("");d&&(A=A.replace(/\n$/,""));for(var T=A.length;T>0;){var D=A[T-1];if(D===`
108
- `||D===" ")T--;else break}return T<A.length&&(A=A.slice(0,T)),{endPos:c,target:A,title:void 0}}function HG(t,i,u,c,d){if(t[i]!=="[")return null;var m=i+1<t.length&&t[i+1]==="^";if(d?!m:m)return null;for(var g=i;g>0&&t[g-1]!==`
109
- `;)g--;if(o(t,g,i).spaceEquivalent>=4||u.inline)return null;var _=i+(d?2:1),y=t.length,v=$Y(t,_,y,"]");if(v===-1)return null;var S=t.slice(_,v);if(S.length>999)return null;for(var A=!1,T=!1,D=!1,N=0;N<S.length;N++){var R=S[N];if(R==="\\"&&N+1<S.length){N++;continue}var w=B(R);w===L1||w===XG?T=!0:w===$q||w===Aq?D=!0:w!==I&&w!==l&&(A=!0)}if(!A||T)return null;var j=v+1;if(D){var M=B(t,_),k=B(t,v-1);if(M===$q||M===Aq||k===$q||k===Aq||j>=y||t[j]!==":")return null}else if((j>=y||t[j]!==":")&&(j=yq(t,j),j<y&&B(t,j)===$q&&(j=yq(t,j+1)),j>=y||t[j]!==":"))return null;j++;for(var G=0;j<y;){var Z=B(t,j);if(Z===$q){if(++G>1)break;j=yq(t,j+1)}else if(Z===I||Z===l)j++;else break}let F=d?BY(t,j):yY(t,j,G);if(!F)return null;let P=BJ(S),W=u.refs||{},J=d?`^${P}`:P;return W[J]||(W[J]={target:GZ(F.target.trim()),title:F.title?GZ(F.title):void 0},u.refs=W),{type:d?b.footnote:b.ref,endPos:F.endPos}}function xJ(t,i,u){for(var c=[],d=0;d<i.length;){var m=i[d];if(!m||m.type!=="*"&&m.type!=="_"&&m.type!=="~"&&m.type!=="="){d++;continue}if(!m.canClose||!m.active){d++;continue}for(var g=m.type==="*"?0:m.type==="_"?1:m.type==="~"?2:3,_=g*6+m.length%3*2+(m.canOpen?1:0),y=c[_]!==void 0?c[_]:-1,v=-1,S=m.type,A=m.inAnchor,T=m.canOpen,D=m.length,N=D%3,R=d-1;R>y;R--){var w=i[R];if(!(!w||!w.active||w.type!==S||!w.canOpen||w.inAnchor!==A)){var j=w.length;if(!T&&!w.canClose||N===0||(j+D)%3!==0){v=R;break}}}if(v>=0){var M=i[v],j=M.length,k=j>=2&&D>=2,G=k?2:1;if(G>j||G>D){d++;continue}var Z=M.nodeIndex,F=m.nodeIndex,P=Z+1,W=F,J=t.slice(P,W);if(J.length>0){var ne=W-P;t.splice(P,ne);for(var ee=0;ee<i.length;ee++)i[ee].nodeIndex>P&&(i[ee].nodeIndex-=ne);F>P&&(F-=ne)}var ae=M.type==="~"?"del":M.type==="="?"mark":k?"strong":"em",ve={type:b.textFormatted,tag:ae,children:J},pe=t[Z];if(!pe||!pe.text){M.active=m.active=!1;continue}var ye=pe.text.length<=G;if(ye){t.splice(Z,1);for(var ee=0;ee<i.length;ee++)i[ee].nodeIndex>Z&&i[ee].nodeIndex--;F>Z&&F--}else pe.text=pe.text.slice(G);var $=t[F];if(!$||!$.text){M.active=m.active=!1;continue}var ue=$.text.length<=G;if(ue){t.splice(F,1);for(var ee=0;ee<i.length;ee++)i[ee].nodeIndex>F&&i[ee].nodeIndex--}else $.text=$.text.slice(G);var Q=ye?Z<F?F-1:Z:Z+1;(Q<0||Q>t.length)&&(Q=Q<0?0:t.length),t.splice(Q,0,ve);for(var ee=0;ee<i.length;ee++)i[ee].nodeIndex>=Q&&i[ee].nodeIndex++;for(var ee=v+1;ee<d;ee++)i[ee].active=!1;ye?M.active=!1:(M.length-=G,M.length===0&&(M.active=!1)),ue?(m.active=!1,d++):(m.length-=G,m.length===0&&(m.active=!1,d++))}else c[_]=d-1,!m.canOpen&&(m.active=!1),d++}for(var xe=0,R=0;R<i.length;R++)i[R].active&&(i[xe++]=i[R]);i.length=xe}function kG(t,i,u){var c=[],d=0,m=-3,g=m;if(i.inline)return f1(t,0,t.length,i,u);if(d===0&&t.startsWith("---")){var _=FY(t,d);_&&(c.push(_),d=_.endPos)}for(;d<t.length;){for(;d<t.length&&t[d]===`
110
- `;)d++;if(d>=t.length)break;g=m;let A=t[d],T=IG(t,d,i,u);if(T){if(T.type===b.codeBlock){var y=A==="`"||A==="~";if(!y&&(A===" "||A===" ")){let M=E(t,d),k=o(t,d,M);y=k.spaceEquivalent<=3&&d+k.charCount<t.length&&(t[d+k.charCount]==="`"||t[d+k.charCount]==="~")}}if(T.type===b.htmlComment){c.push(T);let M=d;d=T.endPos;let k=E(t,M);if(d<k){let G=t.slice(d,k);G.trim().length>0&&c.push({type:b.text,text:G}),d=k,d<t.length&&t[d]===`
111
- `&&d++}continue}if(T.type===b.htmlBlock||T.type===b.htmlSelfClosing){if(!(T.type===b.htmlSelfClosing&&T.isClosingTag===!0&&!i.inline&&!i.inHTML)){c.push(T),d=T.endPos;continue}}else{c.push(T),d=T.endPos;continue}}let D=g!==m?g:d;if(g===m){if(Tq(A)){let j=E(t,d),M=o(t,d,j),k=d+M.charCount;M.spaceEquivalent<=3&&k<t.length&&t[k]==="["?D=k:D=-1}else A==="["?D=d:D=-1;g=D}if(D>=0&&D+1<t.length&&t[D+1]==="^"&&(D=-1),D>=0){let j=HG(t,D,i,u,!1);if(j){c.push(j),d=j.endPos;continue}let M=KY(t,D,d===0);if(M.shouldSkip){d=M.newPos;continue}}let N=NJ(t,d,i,u);if(N){c.push(N),d=N.endPos;continue}let R=d;if(Tq(t[R])){let j=E(t,d),M=o(t,d,j);R=d+M.charCount}if(R<t.length&&t[R]==="["&&R+1<t.length&&t[R+1]==="^"){let j=HG(t,R,i,u,!0);if(j){d=j.endPos;continue}}let w=kZ(t,d,i,u);if(w){c.push(w),d=w.endPos;continue}d++}let v=i.refs||{},S={};for(let A in v)S[A]=v[A];return cG(S)?[{type:b.refCollection,refs:S},...c]:c}function QZ(t,i,u){var c=0,d=!0;let m=t.length;for(;c<m;){for(var g=0;c<m&&B(t,c)===$q;)g++,c++;if(c>=m)break;g>0&&(d=!0);let k=B(t,c);if(k===mq||k===d1){var _=iZ(t,c,{},u);if(_){c=_.endPos,d=!0;continue}}for(var y=c,v=0;y<m&&v<4;){let G=B(t,y);if(G===I)v++,y++;else if(G===l)v+=4-v%4,y++;else break}if(v<4&&y<m&&B(t,y)===L1&&d)if(y+1<m&&B(t,y+1)===$G){d=!1;var j=E(t,c);c=j>=m?m:j+1;continue}else{var S=HG(t,y,{inline:!1,refs:i},u,!1);if(S){c=S.endPos,d=!0;continue}var j=E(t,c),A=t.indexOf(":",y+1);if(A===-1||A>=j){var T=o(t,c,j);!D1(t,c,j)&&k!==MG&&k!==T1&&k!==V1&&k!==E1&&T.spaceEquivalent<4&&(d=!1)}c=j>=m?m:j+1;continue}if(k===T1&&d){for(var D=c,N=[];D<m;){for(var j=E(t,D),R=D;R<j;){let Z=B(t,R);if(Z===I||Z===l)R++;else break}if(R>=j||B(t,R)!==T1)break;var w=R+1;w<j&&(B(t,w)===I||B(t,w)===l)&&w++,N.push(t.slice(w,j)),D=j+1}if(N.length){QZ(N.join(`
112
- `),i,u),c=D,d=!0;continue}}var j=E(t,c);if(j>=m)c=m;else{var M=D1(t,c,j),T=o(t,c,j);c=j+1,d=k===MG||k===T1||k===V1||k===E1||M||T.spaceEquivalent>=4}}}var RY=/^\n+/,cZ=typeof reactExports.createContext<"u"?reactExports.createContext(void 0):void 0;function LY(t){let i=!1;for(let c=0;c<t.length;c++){let d=t.charCodeAt(c);if(d>127||d===i1||d===mq){i=!0;break}}if(!i)return t;let u="";for(let c=0;c<t.length;c++){let d=t[c];if(d==="%"&&c+2<t.length&&/[0-9A-Fa-f]/.test(t[c+1])&&/[0-9A-Fa-f]/.test(t[c+2]))u+=t[c]+t[c+1]+t[c+2],c+=2;else if(d.charCodeAt(0)===i1)u+="%5C";else if(d.charCodeAt(0)===mq)u+="%60";else{let m=d.charCodeAt(0);u+=m>127?encodeURIComponent(d):d}}return u}function TY(t,i,u,c,d,m,g,_){switch(t.type){case b.blockQuote:{let v={key:u.key};return t.alert&&(v.className="markdown-alert-"+m(t.alert.toLowerCase(),iq),t.children.unshift({attrs:{},children:[{type:b.text,text:t.alert}],verbatim:!0,type:b.htmlBlock,tag:"header"})),c("blockquote",v,i(t.children,u))}case b.breakLine:return c("br",{key:u.key});case b.breakThematic:return c("hr",{key:u.key});case b.frontmatter:return _.preserveFrontmatter?c("pre",{key:u.key},t.text):null;case b.codeBlock:let y=t.lang?vG(t.lang):"";return c("pre",{key:u.key},c("code",{...lG(t.attrs||{}),className:y?`language-${y} lang-${y}`:""},t.text));case b.codeInline:return c("code",{key:u.key},t.text);case b.footnoteReference:return c("a",{key:u.key,href:d(t.target,"a","href")},c("sup",{key:u.key},t.text));case b.gfmTask:return c("input",{checked:t.completed,key:u.key,readOnly:!0,type:"checkbox"});case b.heading:return c(`h${t.level}`,{id:t.id,key:u.key},i(t.children,u));case b.htmlBlock:{let v=t;if(_.tagfilter&&aG(v.tag)){let S;if("rawText"in v&&typeof v.rawText=="string")S=v.rawText;else{let A="";if(v.attrs)for(let[T,D]of Object.entries(v.attrs))D===!0?A+=` ${T}`:D!=null&&D!==!1&&(A+=` ${T}="${String(D)}"`);S=`<${v.tag}${A}>`}return c("span",{key:u.key},S)}if(v.rawText&&v.verbatim){let S=function(M){if(M.type===b.htmlSelfClosing&&"isClosingTag"in M&&M.isClosingTag)return[];if(M.type===b.paragraph){let k=M.children;return k?k.flatMap(S):[]}return M.type===b.text?M.text?.trim()?[M]:[]:M.type===b.htmlBlock&&M.children?[{...M,children:M.children?.flatMap(S)}]:[M]},A=v.tag.toLowerCase(),T=jG(A),D=/<[a-z][^>]{0,100}>/i.test(v.rawText),N=/<\/?pre\b/i.test(v.rawText);if(T&&!D){let M=v.rawText.replace(new RegExp("\\s*</"+A+">\\s*$","i"),"");return _.tagfilter&&(M=rG(M)),c(t.tag,{key:u.key,...t.attrs},M)}if(N){let M=_.tagfilter?rG(v.rawText):v.rawText;return c(t.tag,{key:u.key,...t.attrs,dangerouslySetInnerHTML:{__html:M}})}let R={slugify:M=>m(M,iq),sanitizer:d,tagfilter:!0},w=v.rawText.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${v.tag}(\\s[^>]*)?>(\\s*</${v.tag}>)?$`,"i").test(w))return c(t.tag,{key:u.key,...t.attrs});let j=kG(w,{inline:!1,refs:g,inHTML:!1},R);return c(t.tag,{key:u.key,...t.attrs},i(j.flatMap(S),u))}return c(t.tag,{key:u.key,...t.attrs},t.children?i(t.children,u):"")}case b.htmlSelfClosing:{let v=t;if(_.tagfilter&&aG(v.tag)){let S;if("rawText"in v&&typeof v.rawText=="string")S=v.rawText;else{let A="";if(v.attrs)for(let[T,D]of Object.entries(v.attrs))D===!0?A+=` ${T}`:D!=null&&D!==!1&&(A+=` ${T}="${String(D)}"`);S=`<${v.tag}${A} />`}return c("span",{key:u.key},S)}return c(t.tag,{key:u.key,...t.attrs})}case b.image:return c("img",{key:u.key,alt:t.alt&&t.alt.length>0?t.alt:void 0,title:t.title||void 0,src:d(t.target,"img","src")});case b.link:{let v={key:u.key};return t.target!=null&&(v.href=LY(t.target)),t.title&&(v.title=t.title),c("a",v,i(t.children,u))}case b.table:{let v=t;return c("table",{key:u.key},c("thead",null,c("tr",null,v.header.map(function(S,A){return c("th",{key:A,style:v.align[A]==null?{}:{textAlign:v.align[A]}},i(S,u))}))),c("tbody",null,v.cells.map(function(S,A){return c("tr",{key:A},S.map(function(T,D){return c("td",{key:D,style:v.align[D]==null?{}:{textAlign:v.align[D]}},i(T,u))}))})))}case b.text:return t.text;case b.textFormatted:return c(t.tag,{key:u.key},i(t.children,u));case b.orderedList:case b.unorderedList:{let v=t.type===b.orderedList?"ol":"ul";return c(v,{key:u.key,start:t.type===b.orderedList?t.start:void 0},t.items.map(function(S,A){return c("li",{key:A},i(S,u))}))}case b.paragraph:return c("p",{key:u.key},i(t.children,u));case b.ref:return null;default:return null}}var fY=(t,i,u,c,d,m)=>{let g=(v,S,A)=>{let T=()=>TY(v,S,A,i,u,c,d,m);return t?t(T,v,S,A):T()},_=v=>v.map(S=>"text"in S?S.text:""),y=(v,S={})=>{let A=(S.renderDepth||0)+1;if(A>2500)return _(v);S.renderDepth=A;let T=S.key,D=[],N=!1;for(let R=0;R<v.length;R++){S.key=R;let w=g(v[R],y,S),j=typeof w=="string";if(j&&N)D[D.length-1]+=w;else if(w!==null)if(Array.isArray(w))for(let M=0;M<w.length;M++)D.push(w[M]);else D.push(w);N=j}return S.key=T,S.renderDepth=A-1,D};return y},SY=(...t)=>t.filter(Boolean).join(" "),aZ=(t,i,u)=>{let c=t,d=i.split("."),m=0;for(;m<d.length&&(c=c?.[d[m]],c!==void 0);)m++;return c||u},gY=(t,i)=>{let u=aZ(i,t,void 0);return u?typeof u=="function"||typeof u=="object"&&"render"in u?u:aZ(i,`${t}.component`,t):t};function xY(t,i){let u={...i||{}};u.overrides=u.overrides||{};let c=u.slugify||iq,d=u.sanitizer||C1,m=u.createElement||reactExports.createElement,g=w=>DZ(w,{...u,wrapper:null});function _(w,j,...M){let k=aZ(u.overrides,`${w}.props`,{}),G=lG(j||{});if(g)for(let[Z,F]of Object.entries(G))typeof F=="string"&&F.length>0&&F[0]==="<"&&(WJ.test(F)||MJ.test(F)||qG(F,0))&&(G[Z]=g(F.trim()));return m(gY(w,u.overrides),{...G,...k,className:SY(G?.className,k.className)||void 0},...M)}let y=[];for(let w=0;w<t.length;w++){let j=t[w];if(j.type===b.htmlBlock&&"rawText"in j&&j.rawText&&/<\/?pre\b/i.test(j.rawText)&&w+1<t.length&&t[w+1].type===b.paragraph&&"removedClosingTags"in t[w+1]&&t[w+1].removedClosingTags){let M=function(F){let P="";for(let W of F){let J=W.type;if(J===b.text)P+=W.text;else if(J===b.htmlSelfClosing&&"rawText"in W&&W.rawText)P+=W.rawText;else if(J===b.textFormatted){let ne=W,ee=ne.tag==="em"?"_":ne.tag==="strong"?"**":"";P+=ee+M(ne.children)+ee}else"children"in W&&W.children&&(P+=M(W.children))}return P},k=j,G=t[w+1],Z=M(G.children);G.removedClosingTags&&(Z+=G.removedClosingTags.filter(F=>F.type===b.htmlSelfClosing&&"rawText"in F&&F.rawText&&F.rawText.indexOf(`</${k.tag}>`)===-1).map(F=>F.type===b.htmlSelfClosing&&"rawText"in F&&F.rawText||"").join("")),k.rawText=(k.rawText||"")+`
113
- `+Z,k.text=k.rawText,w++}y.push(j)}t=y;let v={...u,slugify:w=>c(w,iq),sanitizer:d,tagfilter:u.tagfilter!==!1},S=t[0]&&t[0].type===b.refCollection?t[0].refs:{},A=fY(u.renderRule,_,d,c,S,u),T=A(t,{inline:u.forceInline,refs:S}),D=[];for(let w in S)w.charCodeAt(0)===$G&&D.push({identifier:w,footnote:S[w].target});if(D.length&&T.push(_("footer",{key:"footer"},D.map(function(w){let j=w.identifier.charCodeAt(0)===$G?w.identifier.slice(1):w.identifier,M=kG(w.footnote,{inline:!0,refs:S},v);return _("div",{id:c(j,iq),key:w.identifier},j+": ",A(M,{inline:!0,refs:S}))}))),u.wrapper===null)return T;let N=u.wrapper||(u.forceInline?"span":"div"),R;if(T.length>1||u.forceWrapper)R=T;else return T.length===1?T[0]:null;return m(N,{key:"outer",...u.wrapperProps},R)}function DZ(t="",i={}){let u={...i||{}};u.overrides=u.overrides||{};let c=u.slugify||iq,d=u.sanitizer||C1;function m(_){let y=u.forceInline||!u.forceBlock&&!WZ.test(_),v={...u,slugify:T=>c(T,iq),sanitizer:d,tagfilter:u.tagfilter!==!1};y||QZ(_,g,v);let S=_;if(!y){let T=S.length;for(;T>0&&(S[T-1]===`
114
- `||S[T-1]==="\r");)T--;S=S.slice(0,T),S=`${S.replace(RY,"")}
115
-
116
- `}let A=kG(y?_:S,{inline:y,refs:g},v);return xY(A,{...v,forceInline:y})}let g={};return m(t)}var PJ=({children:t,options:i,...u})=>{if(!(typeof reactExports.useContext<"u")){let g={...i,overrides:{...i?.overrides},wrapperProps:{...i?.wrapperProps,...u}};return DZ(t??"",g)}let c=reactExports.useContext(cZ),d=reactExports.useMemo(()=>({...c,...i,overrides:{...c?.overrides,...i?.overrides},wrapperProps:{...c?.wrapperProps,...i?.wrapperProps,...u}}),[c,i,u]),m=t??"";return reactExports.useMemo(()=>DZ(m,d),[m,d])},EY=PJ;const generalConditionsContainer="_generalConditionsContainer_55hjg_1",generalConditions="_generalConditions_55hjg_1",generalConditionsHeader="_generalConditionsHeader_55hjg_15",generalConditionsBody="_generalConditionsBody_55hjg_26",generalConditionsAccept="_generalConditionsAccept_55hjg_35",styles$l={generalConditionsContainer,generalConditions,generalConditionsHeader,generalConditionsBody,generalConditionsAccept},CaretDown=()=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})}),CaretUp=()=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})}),HEADER_KEY="general-conditions.header",BODY_KEY="general-conditions.body",ACCEPT_KEY="general-conditions.accept-conditions-note",GeneralConditions=()=>{const t=useTranslation(),[i,u]=reactExports.useState(!1),c=()=>u(!i),d=_=>{_.key==="ArrowDown"||_.key==="ArrowRight"?u(!0):_.key==="ArrowUp"||_.key==="ArrowLeft"||_.key==="Escape"?u(!1):(_.key==="Enter"||_.key==="Space"||_.key===" ")&&c()},m=t(HEADER_KEY),g=t(ACCEPT_KEY);return jsxRuntimeExports.jsxs("div",{className:clsx(styles$l.generalConditionsContainer,"chat__generalConditions"),children:[!!m?.length&&jsxRuntimeExports.jsxs("div",{className:styles$l.generalConditions,children:[jsxRuntimeExports.jsxs("div",{role:"button",onClick:c,onKeyDown:d,tabIndex:0,className:clsx(styles$l.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":i?"true":"false","aria-pressed":i?"true":"false",children:[jsxRuntimeExports.jsx(EY,{children:m}),i?jsxRuntimeExports.jsx(CaretUp,{}):jsxRuntimeExports.jsx(CaretDown,{})]}),jsxRuntimeExports.jsx("div",{className:clsx(styles$l.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:i&&jsxRuntimeExports.jsx(EY,{children:t(BODY_KEY)||""})})]}),!!g?.length&&jsxRuntimeExports.jsx("div",{className:clsx(styles$l.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:jsxRuntimeExports.jsx(EY,{children:t(ACCEPT_KEY)||""})})]})},messageContainer="_messageContainer_1rxi5_1",message="_message_1rxi5_1",messageBot="_messageBot_1rxi5_14",messageBotLast="_messageBotLast_1rxi5_45",avatar="_avatar_1rxi5_45",messageBotFirst="_messageBotFirst_1rxi5_54",messageBotAnimated="_messageBotAnimated_1rxi5_67",messageGuest="_messageGuest_1rxi5_78",messageGuestFirst="_messageGuestFirst_1rxi5_84",messageGuestLast="_messageGuestLast_1rxi5_90",botAvatar="_botAvatar_1rxi5_104",agentAvatar="_agentAvatar_1rxi5_108",bubble="_bubble_1rxi5_112",bubbleContent="_bubbleContent_1rxi5_118",bubbleLeft="_bubbleLeft_1rxi5_132",leftText="_leftText_1rxi5_143",bubbleRight="_bubbleRight_1rxi5_150",rightText="_rightText_1rxi5_160",sourceInfoReference="_sourceInfoReference_1rxi5_192",sourceInfoReferenceActive="_sourceInfoReferenceActive_1rxi5_204",styles$k={messageContainer,message,messageBot,messageBotLast,avatar,messageBotFirst,messageBotAnimated,messageGuest,messageGuestFirst,messageGuestLast,botAvatar,agentAvatar,bubble,bubbleContent,bubbleLeft,leftText,bubbleRight,rightText,sourceInfoReference,sourceInfoReferenceActive},useClickOutsideEventListener=(t,i)=>{reactExports.useEffect(()=>{const u=c=>{t.current&&!t.current.contains(c.target)&&i()};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[t,i])};function debounce(t,i){let u=null,c=null;const d=(...m)=>{c=m,u&&clearTimeout(u),u=setTimeout(()=>{t(...c),u=null,c=null},i)};return d.flush=()=>{u&&c&&(clearTimeout(u),t(...c),u=null,c=null)},d}function throttle(t,i){let u=0,c=null;return((...d)=>{const m=Date.now(),g=m-u;g>=i?(u=m,t(...d)):(c&&clearTimeout(c),c=setTimeout(()=>{u=Date.now(),t(...d)},i-g))})}const container$5="_container_131ib_1",categoryContainer="_categoryContainer_131ib_13",categoryButton="_categoryButton_131ib_20",active$2="_active_131ib_35",commentTextarea="_commentTextarea_131ib_44",styles$j={container:container$5,categoryContainer,categoryButton,active:active$2,commentTextarea},useTrapFocusEffect=(t,i,u)=>{reactExports.useEffect(()=>{if(t){const c=()=>{const m=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),g=i.current?Array.from(i.current.querySelectorAll(m)):[],_=u.current?Array.from(u.current.querySelectorAll(m)):[];return[...g,..._]},d=m=>{if(m.key==="Tab"){const g=c();if(g.length>0){const _=g[0],y=g[g.length-1],v=document.activeElement;!m.shiftKey&&v===y?(m.preventDefault(),_.focus()):m.shiftKey&&v===_&&(m.preventDefault(),y.focus())}}};return document.addEventListener("keydown",d,!0),()=>{document.removeEventListener("keydown",d,!0)}}},[t,i,u])},BadReactionForm=({open:t,actionsRef:i,reaction:u,onReaction:c})=>{const d=useTranslation(),m=reactExports.useRef(null),g=debounce(v=>{c({...u,comment:v})},300);reactExports.useEffect(()=>()=>g.flush(),[g]),useTrapFocusEffect(t,i,m);const _=v=>{c({...u,category:u.category===v?void 0:v})},y=v=>g(v.target.value);return t?jsxRuntimeExports.jsxs("div",{ref:m,className:styles$j.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[jsxRuntimeExports.jsx("h2",{id:"bad-reaction-title",children:d("bot-bubble.reaction.say-more")}),jsxRuntimeExports.jsx("div",{className:styles$j.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(v=>jsxRuntimeExports.jsx("button",{className:clsx(styles$j.categoryButton,u?.category===v&&styles$j.active),onClick:()=>_(v),"aria-pressed":u?.category===v,"aria-label":d(`bot-bubble.reaction.category.${v}`),tabIndex:0,role:"radio",children:d(`bot-bubble.reaction.category.${v}`)},v))}),jsxRuntimeExports.jsx("textarea",{id:"comment",name:"comment",placeholder:d("bot-bubble.reaction.comment"),defaultValue:u?.comment,onChange:y,className:styles$j.commentTextarea,rows:3,"aria-label":d("bot-bubble.reaction.comment")})]}):null},botMessageActionContainer="_botMessageActionContainer_18fjb_1",alwaysVisible="_alwaysVisible_18fjb_15",active$1="_active_18fjb_19",botMessageActionInnerContainer="_botMessageActionInnerContainer_18fjb_27",header$1="_header_18fjb_52",botMessageActions="_botMessageActions_18fjb_57",reported="_reported_18fjb_68",action="_action_18fjb_72",wave="_wave_18fjb_86",anyReport="_anyReport_18fjb_156",closeButton="_closeButton_18fjb_172",styles$i={botMessageActionContainer,alwaysVisible,active:active$1,botMessageActionInnerContainer,header:header$1,botMessageActions,reported,action,wave,anyReport,closeButton},CloseButton=({isSubmitting:t,onClick:i})=>{const u=useTranslation();return jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,styles$i.closeButton,"tooltip--bottom-left"),"aria-label":u("bot-bubble.reaction.close"),"data-title":u("bot-bubble.reaction.close"),tabIndex:0,onClick:i,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?jsxRuntimeExports.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"}):jsxRuntimeExports.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"})})})},BotMessageActions=({alwaysVisible:t,senderType:i,reaction:u,botMessageRef:c,message:d,animated:m,onReaction:g})=>{const _=useTranslation(),[y,v]=reactExports.useState(!1),[S,A]=reactExports.useState(!1),[T,D]=reactExports.useState(!1),N=reactExports.useRef(null),R=reactExports.useRef(null);useClickOutsideEventListener(N,()=>{D(!1)});const w=F=>{F.key==="Escape"&&D(!1)};reactExports.useEffect(()=>(document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}),[]),reactExports.useEffect(()=>{T&&N.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[T]);const j=F=>{R.current&&clearTimeout(R.current),A(!0),g(F),R.current=setTimeout(()=>{A(!1)},1e3)},M=reactExports.useCallback(async()=>{if(c.current)try{v(!0);const F=c.current.innerHTML,P=c.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([F],{type:"text/html"}),"text/plain":new Blob([P],{type:"text/plain"})})]),await new Promise(W=>setTimeout(W,1500))}finally{v(!1)}},[c]),k=()=>{D(!1),g(u?.type==="GOOD"?null:{type:"GOOD"})},G=()=>{g({...d.reaction,type:"BAD"}),D(!T)},Z=F=>P=>{(P.key==="Enter"||P.key===" ")&&F()};return jsxRuntimeExports.jsx("div",{ref:N,className:clsx(styles$i.botMessageActionContainer,t&&styles$i.alwaysVisible,T&&styles$i.active),children:jsxRuntimeExports.jsxs("div",{className:clsx(styles$i.botMessageActionInnerContainer,t&&styles$i.alwaysVisible,T&&styles$i.active,u&&styles$i.reported),role:"group",children:[jsxRuntimeExports.jsxs("div",{className:styles$i.header,children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$i.botMessageActions,u&&styles$i.reported),children:[i===UserType.BOT&&jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,m&&styles$i.wave,u?.type&&styles$i.anyReport,u?.type==="GOOD"&&styles$i.reported,"tooltip--top-right"),tabIndex:0,"aria-label":_(u?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":u?.type==="GOOD","data-title":_(u?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:k,onKeyDown:Z(k),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?.type==="GOOD"?jsxRuntimeExports.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"}):jsxRuntimeExports.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"})})}),i===UserType.BOT&&jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,m&&styles$i.wave,u?.type&&styles$i.anyReport,u?.type==="BAD"&&styles$i.reported,"tooltip--top-right"),tabIndex:0,"aria-label":_("bot-bubble.reaction.bad"),"aria-pressed":u?.type==="BAD","data-title":_("bot-bubble.reaction.bad"),onPointerDown:G,onKeyDown:Z(G),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?.type==="BAD"?jsxRuntimeExports.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"}):jsxRuntimeExports.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"})})}),jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,m&&styles$i.wave,"tooltip--top-right"),style:{visibility:T?"hidden":"visible"},tabIndex:0,"aria-label":_("bot-bubble.copy"),"data-title":_("bot-bubble.copy"),onClick:M,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y?jsxRuntimeExports.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"}):jsxRuntimeExports.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"})})})]}),T&&jsxRuntimeExports.jsx(CloseButton,{isSubmitting:S,onClick:()=>D(!1)})]}),d.reaction&&jsxRuntimeExports.jsx(BadReactionForm,{open:T,actionsRef:N,reaction:d.reaction,onReaction:j})]})})},BotMessage=reactExports.forwardRef(({message:t,isAnimated:i,isFirstMessage:u,isLastMessage:c,isFirstMessageBySender:d,isLastMessageBySender:m,children:g,onReaction:_},y)=>{const v=useTranslation(),S=reactExports.useRef(null),A=t.sender.type===UserType$1.BOT;return jsxRuntimeExports.jsxs("li",{ref:y,className:clsx(styles$k.message,styles$k.messageBot,c&&styles$k.lastMessage,d&&styles$k.messageBotFirst,m&&styles$k.messageBotLast,"chat__bubbleContainer",i&&styles$k.messageBotAnimated,i&&"chat__bubbleContainer--animated",A?"chat__botBubbleContainer":"chat__agentBubbleContainer",d&&"chat__bubbleContainer--first",m&&"chat__bubbleContainer--last"),children:[jsxRuntimeExports.jsx("img",{className:clsx(styles$k.avatar,A?styles$k.botAvatar:styles$k.agentAvatar,"chat__avatar",A?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:A?"Bot":"Agent",referrerPolicy:"no-referrer"}),jsxRuntimeExports.jsxs("div",{className:styles$k.messageContainer,children:[jsxRuntimeExports.jsx("div",{ref:S,className:clsx(styles$k.bubble,styles$k.bubbleLeft,"chat__bubble",A?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":v(A?"bot-bubble.label":"agent-bubble.label"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.leftText),children:g})}),_&&jsxRuntimeExports.jsx(BotMessageActions,{alwaysVisible:c&&m,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:S,animated:u,onReaction:_})]})]})}),sourceList="_sourceList_1sc0q_1",source="_source_1sc0q_1",label="_label_1sc0q_39",styles$h={sourceList,source,label},Docx=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),File$1=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),Pdf=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),Web=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),SourceIcon=({type:t,...i})=>{switch(t){case"WEBSITE":return jsxRuntimeExports.jsx(Web,{...i});case"PDF":return jsxRuntimeExports.jsx(Pdf,{...i});case"DOCX":return jsxRuntimeExports.jsx(Docx,{...i});default:return jsxRuntimeExports.jsx(File$1,{...i})}},MessageSources=({sources:t,onLinkClick:i})=>{const u=useTranslation(),c=m=>()=>{i(m.url)},d=m=>g=>{(g.key==="Enter"||g.key===" ")&&i(m.url)};return t.length?jsxRuntimeExports.jsx("ul",{className:styles$h.sourceList,"aria-label":u("bot-bubble.sources"),children:t.map(m=>jsxRuntimeExports.jsx("li",{className:styles$h.source,children:jsxRuntimeExports.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${u("bot-bubble.source.open")}: ${m.label}`,onClick:c(m),onKeyDown:d(m),children:[jsxRuntimeExports.jsx(SourceIcon,{type:m.type,"aria-hidden":"true"}),jsxRuntimeExports.jsx("div",{className:styles$h.label,children:m.label})]})},m.url))}):null},button$2="_button_3ui4g_1",buttonDefault="_buttonDefault_3ui4g_13",buttonPrimary="_buttonPrimary_3ui4g_28",styles$g={button:button$2,buttonDefault,buttonPrimary},Button=({className:t,children:i,...u})=>jsxRuntimeExports.jsx("button",{className:clsx(styles$g.button,t),type:"button",role:"button",...u,children:i}),title="_title_137pi_1",buttons$1="_buttons_137pi_6",button$1="_button_137pi_6",imageContainer="_imageContainer_137pi_29",image="_image_137pi_29",video_container="_video_container_137pi_44",video="_video_137pi_44",only="_only_137pi_58",styles$f={title,buttons:buttons$1,button:button$1,imageContainer,image,video_container,video,only},Buttons=({buttons:t,onButtonClick:i})=>jsxRuntimeExports.jsx("div",{className:clsx(styles$f.buttons,"chat__bubbleButtons"),children:t.map((u,c)=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$f.button,"chat__bubbleButton"),onClick:()=>i(u),children:u.title},c))}),OPEN_LINK_IN_NEW_TAB_INDICATOR="newtab#",MarkdownText=({markdown:t,markdownOptions:i={},onLinkClick:u})=>{const c=m=>g=>(g.preventDefault(),m&&u(m),!1),d=({title:m,href:g,children:_})=>g.indexOf(OPEN_LINK_IN_NEW_TAB_INDICATOR)===0?jsxRuntimeExports.jsx("a",{href:g.slice(OPEN_LINK_IN_NEW_TAB_INDICATOR.length),title:m,target:"_blank",rel:"noopener noreferrer",children:_}):jsxRuntimeExports.jsx("a",{onClick:c(g),title:m,href:g,children:_});return jsxRuntimeExports.jsx(EY,{options:{...i,overrides:{a:d}},children:t})},Text$2=({text:t,onLinkClick:i})=>t?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(MarkdownText,{markdown:t,onLinkClick:i})}):null,Title=({title:t})=>t?jsxRuntimeExports.jsx("h1",{className:styles$f.title,children:t}):null,Body=({title:t,text:i,buttons:u,onButtonClick:c,onLinkClick:d})=>t?.length||i?.length||u?.length?jsxRuntimeExports.jsxs("div",{className:clsx(styles$k.bubbleContent),children:[jsxRuntimeExports.jsx(Title,{title:t}),jsxRuntimeExports.jsx(Text$2,{text:i,onLinkClick:d}),jsxRuntimeExports.jsx(Buttons,{buttons:u,onButtonClick:c})]}):null,Image=({alt:t,imageUrl:i,itemUrl:u,hasBody:c})=>i?u?u.indexOf("youtube.com")>-1?jsxRuntimeExports.jsx("div",{className:styles$f.video_container,children:jsxRuntimeExports.jsx("iframe",{className:clsx(styles$f.video,{[styles$f.only]:!c}),title:"Youtube",width:"100%",src:u+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):jsxRuntimeExports.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",children:jsxRuntimeExports.jsx("div",{className:styles$f.imageContainer,children:jsxRuntimeExports.jsx("img",{className:clsx(styles$f.image,{[styles$f.only]:!c}),src:i,alt:t})})}):jsxRuntimeExports.jsx("div",{className:styles$f.imageContainer,children:jsxRuntimeExports.jsx("img",{className:clsx(styles$f.image,{[styles$f.only]:!c}),src:i,alt:t})}):null,DetailMessage=({title:t,text:i,imageUrl:u,itemUrl:c,buttons:d,sources:m,onButtonClick:g,onLinkClick:_})=>{const y=!!t?.length||!!i?.length||!!d?.length;return jsxRuntimeExports.jsxs("div",{className:clsx(styles$f.detailMessage),children:[jsxRuntimeExports.jsx(Image,{hasBody:y,imageUrl:u,itemUrl:c,alt:t||""}),y&&jsxRuntimeExports.jsx(Body,{title:t,text:i,buttons:d,onLinkClick:_,onButtonClick:g}),jsxRuntimeExports.jsx(MessageSources,{sources:m,onLinkClick:_})]})},UserMessage=reactExports.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:i,children:u},c)=>{const d=useTranslation();return jsxRuntimeExports.jsx("li",{ref:c,className:clsx(styles$k.message,styles$k.messageGuest,t&&styles$k.messageGuestFirst,i&&styles$k.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":d("guest-bubble.label"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.rightText),children:u})})})}),useClientName=()=>reactExports.useMemo(()=>getClientName(),[]),markdown="_markdown_nw7vg_1",markdownStyle={markdown},SOURCE_REFERENCE_CLASS="source-info-reference",MarkdownMessage=({actionId:t,markdown:i,sources:u,onLinkClick:c})=>{const d=useClientName(),m=useAppDispatch(),g=getFootnoteReferenceCounter(),_=useAppSelector(S=>{const A=S.chat.sourceInfos;if(A?.type==="loaded"||A?.type==="loading")return A.chunkId}),y=S=>A=>{const T=A.key;(T==="ArrowDown"||T==="ArrowRight"||T==="Enter"||T===" "||T==="Space")&&(A.stopPropagation(),m(loadSourceInfosRequest(d,t,S)))},v=S=>()=>{m(loadSourceInfosRequest(d,t,S))};return reactExports.useLayoutEffect(()=>{document.querySelectorAll(`.${SOURCE_REFERENCE_CLASS}`).forEach(S=>{const A=S.previousSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.endsWith(" ")&&A.textContent?.trim().length&&S.classList.add(`${SOURCE_REFERENCE_CLASS}--before-space`);const T=S.nextSibling;T&&T.nodeType===Node.TEXT_NODE&&T.textContent?.startsWith(" ")&&T.textContent?.trim().length&&S.classList.add(`${SOURCE_REFERENCE_CLASS}--after-space`)})},[i]),jsxRuntimeExports.jsxs("div",{className:styles$k.bubbleContent,children:[jsxRuntimeExports.jsx("div",{className:markdownStyle.markdown,children:jsxRuntimeExports.jsx(MarkdownText,{markdown:i,onLinkClick:c,markdownOptions:{renderRule(S,A,T,D){if(A.type===b.footnoteReference){const N=A.text===_;return jsxRuntimeExports.jsx("span",{className:clsx(styles$k.sourceInfoReference,N&&styles$k.sourceInfoReferenceActive,SOURCE_REFERENCE_CLASS),children:jsxRuntimeExports.jsx("a",{type:"button",tabIndex:0,onClick:v(A.text),onKeyDown:y(A.text),children:g(A.text)})},D.key)}return S()}}})}),jsxRuntimeExports.jsx(MessageSources,{sources:u,onLinkClick:c})]})},getFootnoteReferenceCounter=()=>{const t=[];return u=>{const c=t.indexOf(u);return c>-1?c+1:(t.push(u),t.length)}},text$1="_text_gp0s0_1",command$1="_command_gp0s0_5",styles$e={text:text$1,command:command$1},Text$1=({text:t,commands:i=[]})=>{const u=i.find(d=>t.startsWith(`/${d}`)),c=u?t.slice(u.length+1):t;return jsxRuntimeExports.jsxs("div",{children:[u&&jsxRuntimeExports.jsxs("code",{className:styles$e.command,children:["/",u]}),c.split(`
117
- `).map((d,m)=>jsxRuntimeExports.jsxs("span",{className:styles$e.text,children:[d,jsxRuntimeExports.jsx("br",{})]},m))]})},TextMessage=({text:t,commands:i,sources:u,onLinkClick:c})=>jsxRuntimeExports.jsxs("div",{className:styles$k.bubbleContent,children:[jsxRuntimeExports.jsx(Text$1,{text:t,commands:i}),jsxRuntimeExports.jsx(MessageSources,{sources:u,onLinkClick:c})]}),Message=reactExports.forwardRef(({message:t,commands:i,isFirstMessage:u,isLastMessage:c,isFirstMessageBySender:d,isLastMessageBySender:m,onReaction:g,onButtonClick:_,onLinkClick:y},v)=>{const S=getMessageCmp(t._id,t,i,_,y),A=T=>{g(t._id,T)};switch(t.sender.type){case UserType$1.GUEST:return jsxRuntimeExports.jsx(UserMessage,{ref:v,isFirstMessageBySender:d,isLastMessageBySender:m,children:S});default:return jsxRuntimeExports.jsx(BotMessage,{ref:v,message:t,isAnimated:!1,isFirstMessage:u,isLastMessage:c,isFirstMessageBySender:d,isLastMessageBySender:m,onReaction:A,children:S})}}),getMessageCmp=(t,i,u,c,d)=>{switch(i.type){case MessageTypeEnum.TEXT:{const m=i;return jsxRuntimeExports.jsx(TextMessage,{text:m.text,commands:u,sources:i.sources||[],onLinkClick:d})}case MessageTypeEnum.DETAIL:{const m=i;return jsxRuntimeExports.jsx(DetailMessage,{title:m.title,text:m.text,imageUrl:m.imageUrl,itemUrl:m.itemUrl,buttons:m.buttons,sources:i.sources||[],onButtonClick:c,onLinkClick:d})}case MessageTypeEnum.MARKDOWN:{const m=i;return jsxRuntimeExports.jsx(MarkdownMessage,{actionId:t,markdown:m.markdown,sources:m.sources||[],onLinkClick:d})}}},areEqual=(t,i)=>t.message._id===i.message._id&&t.message.reaction===i.message.reaction&&t.isFirstMessage===i.isFirstMessage&&t.isLastMessage===i.isLastMessage&&t.isFirstMessageBySender===i.isFirstMessageBySender&&t.isLastMessageBySender===i.isLastMessageBySender,Message$1=React.memo(Message,areEqual),ticontainer="_ticontainer_xg0dn_1",tiblock="_tiblock_xg0dn_5",tidot="_tidot_xg0dn_12",styles$d={ticontainer,tiblock,tidot},TypingIndicator=({isTyping:t=!1})=>jsxRuntimeExports.jsx("div",{className:styles$d.ticontainer,children:jsxRuntimeExports.jsx("div",{className:styles$d.tiblock,children:t?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator")}),jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator")}),jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator")})]}):null})}),BotTypingMessage=Object.assign({_id:"typing-indicator"},new TextMessage$1("",new BotUser)),Conversation=({messages:t,isBotTyping:i,commands:u,onTranscriptItemReaction:c,onButtonClick:d,onLinkClick:m})=>{const g=reactExports.useRef(0),_=reactExports.useRef(!0),y=reactExports.useRef(null),v=reactExports.useRef(null),S=reactExports.useRef(null),A=useAppSelector(N=>N.settings.enableGeneralConditions);reactExports.useLayoutEffect(()=>{if(t.length&&y.current&&(g.current<t.length||i)){if(v.current){const N=v.current.offsetTop;y.current.scrollTop=N}else if(S.current){const N=S.current.offsetTop;y.current.scrollTop=N}_.current&&(_.current=!1),g.current=t.length}},[t,_,i]);let T;const D=t.length;return jsxRuntimeExports.jsxs("div",{ref:y,className:clsx(styles$m.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&_.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[A&&jsxRuntimeExports.jsx(GeneralConditions,{}),jsxRuntimeExports.jsxs("ul",{className:styles$m.messages,children:[t.map((N,R)=>{const w=getIsFirstMessageBySender(N,T),j=getIsLastMessageBySender(N,R,t,i);T=N.sender.type;const M=R+1===D,k=R===0,G=N._id||`added-${R}`;return jsxRuntimeExports.jsx(Message$1,{ref:M?S:null,message:N,commands:u,isFirstMessage:k,isLastMessage:M,isFirstMessageBySender:w,isLastMessageBySender:j,onButtonClick:d,onLinkClick:m,onReaction:c},M&&!i?"last":G)}),i&&jsxRuntimeExports.jsx(BotMessage,{ref:v,message:BotTypingMessage,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:T!==UserType$1.BOT,isLastMessageBySender:!0,children:jsxRuntimeExports.jsx(TypingIndicator,{isTyping:!0})},"last")]})]})},getIsFirstMessageBySender=(t,i)=>!i||i!==t.sender.type,getIsLastMessageBySender=(t,i,u,c)=>{const d=t.sender.type,m=u.length;return i+1===m?!(d===UserType$1.BOT&&c):d!==u.at(i+1)?.sender.type},bottomSheet="_bottomSheet_jp8dl_1",bottomSheetOpen="_bottomSheetOpen_jp8dl_15",bottomSheetClose="_bottomSheetClose_jp8dl_20",bottomSheetStyles={bottomSheet,bottomSheetOpen,bottomSheetClose},container$4="_container_xc2nx_1",styles$c={container:container$4},Drawer=({contentUrl:t})=>{const i=useAppSelector(m=>m.connection.sessionId),[u,c]=reactExports.useState(!1);reactExports.useEffect(()=>{c(m=>m||!!t)},[t]);const d=reactExports.useMemo(()=>{if(t&&i){const m=new URL(t,document.baseURI);return m.searchParams.set("sessionId",i),m.toString()}else return},[t,i]);return jsxRuntimeExports.jsx("div",{className:clsx(styles$c.container,bottomSheetStyles.bottomSheet,{[bottomSheetStyles.bottomSheetOpen]:!!t,[bottomSheetStyles.bottomSheetClose]:u&&!t}),children:d&&jsxRuntimeExports.jsx("iframe",{title:"Drawer",id:"form-drawer",src:d,className:styles$c.iframe})})},container$3="_container_vvbth_1",styles$b={container:container$3},Link$1=({title:t,href:i,children:u})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:u}),PoweredBy=()=>{const i=useTranslation()("powered-by");return i&&i.length?jsxRuntimeExports.jsx("div",{className:clsx(styles$b.container,"chat__poweredBy"),children:jsxRuntimeExports.jsx(EY,{options:{overrides:{a:Link$1}},children:i})}):null},DefaultButton=({className:t,children:i,...u})=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$g.buttonDefault,t),type:"button",...u,children:i}),PrimaryButton=({className:t,children:i,...u})=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$g.buttonPrimary,t),...u,children:i}),container$2="_container_h23mk_1",formContainer="_formContainer_h23mk_17",emailInput="_emailInput_h23mk_22",description="_description_h23mk_52",actions$3="_actions_h23mk_57",validationError="_validationError_h23mk_67",submitted="_submitted_h23mk_74",styles$a={container:container$2,formContainer,emailInput,description,actions:actions$3,validationError,submitted},TranscriptExport=({visible:t,onEmailExport:i,onClose:u})=>{const c=useTranslation(),[d,m]=reactExports.useState(void 0),[g,_]=reactExports.useState(!1),[y,v]=reactExports.useState(void 0),S=reactExports.useRef(null);reactExports.useEffect(()=>{t?(S.current?.focus(),_(!1),m(t)):d===!0&&m(!1)},[t,d]);const A=D=>{D.preventDefault(),y&&y.length>0&&(i(y),_(!0),setTimeout(u,3*1e3))},T=D=>{const N=D.target.value.trim(),R=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(N);v(R?N:"")};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$a.container,bottomSheetStyles.bottomSheet,{[bottomSheetStyles.bottomSheetOpen]:d===!0,[bottomSheetStyles.bottomSheetClose]:d===!1}),children:[jsxRuntimeExports.jsx("h2",{children:c("export-transcript.email.title")}),jsxRuntimeExports.jsx(EY,{className:styles$a.description,children:c("export-transcript.email.description")||""}),jsxRuntimeExports.jsxs("form",{onSubmit:A,className:styles$a.formContainer,children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("input",{disabled:g,ref:S,type:"email",placeholder:c("export-transcript.email.placeholder"),className:styles$a.emailInput,onChange:T}),y?.length===0?jsxRuntimeExports.jsx("div",{className:styles$a.validationError,children:c("export-transcript.email.invalid")}):null]}),jsxRuntimeExports.jsxs("div",{className:styles$a.actions,children:[jsxRuntimeExports.jsx(DefaultButton,{onClick:u,children:c("export-transcript.email.cancel")}),jsxRuntimeExports.jsx(PrimaryButton,{type:"submit",disabled:g||y===void 0||y.length===0,children:c("export-transcript.email.send")})]})]}),g&&jsxRuntimeExports.jsx("div",{className:styles$a.submitted,children:c("export-transcript.email.success")})]})},inputContainer="_inputContainer_fi5ao_1",styles$9={inputContainer},blockUserInput="_blockUserInput_pot9c_1",styles$8={blockUserInput},BlockUserInput=({visible:t})=>{const i=useTranslation();return t?jsxRuntimeExports.jsx("div",{className:clsx(styles$8.blockUserInput,"chat__blockUserInput"),children:i("block-user-input.title")}):null},commandsDropdown="_commandsDropdown_fmklx_1",commands="_commands_fmklx_1",command="_command_fmklx_1",commandActive="_commandActive_fmklx_49",style={commandsDropdown,commands,command,commandActive},useKeyboardEffect=(t,i,u,c,d)=>{reactExports.useEffect(()=>{const m=g=>{if(t.length)switch(g.key){case"Enter":u(t[i]);break;case"ArrowUp":c(_=>_>0?_-1:t.length-1);break;case"ArrowDown":c(_=>_<t.length-1?_+1:0);break;case"Escape":d([]);break}};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[t,i,u,c,d])},CommandsDropdown=({text:t,commands:i,onSelectCommand:u,onVisibilityChange:c})=>{const d=reactExports.useRef(null),m=useTranslation(),[g,_]=reactExports.useState([]),[y,v]=reactExports.useState(calcMaxCommandLength(i)),[S,A]=reactExports.useState(0),T=D=>u(`/${D}`);return useClickOutsideEventListener(d,()=>_([])),useKeyboardEffect(g,S,T,A,_),reactExports.useEffect(()=>{v(calcMaxCommandLength(i))},[i]),reactExports.useEffect(()=>{const D=t.length||0;D===0||D>y||!t.startsWith("/")?_([]):_(i.filter(byText(t))),A(0)},[i,t,y]),reactExports.useEffect(()=>{c(!!g.length)},[g,c]),g.length?jsxRuntimeExports.jsx("div",{ref:d,className:style.commandsDropdown,children:jsxRuntimeExports.jsx("ul",{id:"command-list",className:style.commands,role:"listbox",children:g.map((D,N)=>jsxRuntimeExports.jsxs("li",{className:clsx([style.command,S===N&&style.commandActive]),role:"option",onClick:()=>T(D),onMouseOver:()=>A(N),children:[jsxRuntimeExports.jsxs("h1",{children:["/",D]}),jsxRuntimeExports.jsx("p",{children:m(`commands.${D}`)})]},D))})}):null},calcMaxCommandLength=t=>Math.max(...t.map(i=>i.length+1)),byText=t=>i=>{const u=`/${i}`;return u.startsWith(t)&&u.length>=t.length},callToActionContainer="_callToActionContainer_d8izj_1",callToActionTitle="_callToActionTitle_d8izj_23",rateOverlay="_rateOverlay_d8izj_30",body$1="_body_d8izj_52",footer$1="_footer_d8izj_60",actions$2="_actions_d8izj_75",bubbles="_bubbles_d8izj_89",stars="_stars_d8izj_191",starsSmall="_starsSmall_d8izj_205",starsLarge="_starsLarge_d8izj_211",star="_star_d8izj_191",starReadonly="_starReadonly_d8izj_225",starIcon="_starIcon_d8izj_235",starsDescriptionContainer="_starsDescriptionContainer_d8izj_253",starsDescription="_starsDescription_d8izj_253",styles$7={callToActionContainer,callToActionTitle,rateOverlay,body:body$1,footer:footer$1,actions:actions$2,bubbles,stars,starsSmall,starsLarge,star,starReadonly,starIcon,starsDescriptionContainer,starsDescription},Star=({value:t,index:i,count:u,readonly:c,onHover:d,onClick:m})=>{const g=_=>{m&&_.key==="Enter"&&m()};return jsxRuntimeExports.jsx("li",{className:clsx(styles$7.star,{[styles$7.starReadonly]:c},"chat__conversationRating__star"),children:jsxRuntimeExports.jsx("div",{role:"radio","aria-checked":t>i?"true":"false","aria-posinset":i+1,"aria-setsize":u,tabIndex:0,onMouseOver:d,onKeyDown:g,onClick:m,children:jsxRuntimeExports.jsx("span",{role:"img","aria-label":"Star",className:clsx(styles$7.starIcon),children:jsxRuntimeExports.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:jsxRuntimeExports.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"})})})})})},STAR_COUNT=5,Stars=({value:t,size:i,readonly:u=!1,onChange:c})=>{const[d,m]=reactExports.useState(void 0),g=()=>{m(void 0)},_=v=>()=>{if(!u){const S=v+1;m(S)}},y=v=>()=>{c&&!u&&(c(v===0&&t===1?0:v+1),m(void 0))};return jsxRuntimeExports.jsx("ul",{tabIndex:0,role:"radiogroup",className:clsx(styles$7.stars,{[styles$7.starsSmall]:i==="small",[styles$7.starsLarge]:i==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:i==="small",chat__conversationRating__stars__large:i==="large"}),onMouseOut:g,children:Array(STAR_COUNT).fill(0).map((v,S)=>jsxRuntimeExports.jsx(Star,{value:d===void 0?t:d,index:S,count:STAR_COUNT,readonly:u,onHover:_(S),onClick:y(S)},S))})},CallToAction=({visible:t,onRate:i})=>{const u=useTranslation();return t?jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.callToActionContainer,"chat__conversationRating__callToAction"),children:[jsxRuntimeExports.jsx("div",{className:clsx(styles$7.callToActionTitle,"chat__conversationRating__callToAction__title"),children:u("conversation-rating.call-to-action.title")}),jsxRuntimeExports.jsx(Stars,{value:0,size:"small",onChange:i})]}):null},BotBubble=({isFirstMessageBySender:t,isLastMessageBySender:i,children:u})=>jsxRuntimeExports.jsxs("div",{className:clsx(styles$k.message,styles$k.messageBot,t&&styles$k.messageBotFirst,i&&styles$k.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),children:[jsxRuntimeExports.jsx("img",{className:clsx(styles$k.avatar,styles$k.botAvatar),src:"bot.svg",alt:"Bot"}),jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleLeft,"chat__bubble","chat__botBubble"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.leftText,styles$k.bubbleContent),children:u})})]}),GuestBubble=({children:t})=>jsxRuntimeExports.jsx("div",{className:clsx(styles$k.message,styles$k.messageGuest,styles$k.messageGuestFirst,styles$k.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleRight,"chat__bubble","chat__guestBubble"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.rightText,styles$k.bubbleContent),children:t})})}),RateOverlay=()=>{const t=useTranslation(),i=useAppDispatch(),u=useAppSelector(w=>w.chat.conversationRating),[c,d]=reactExports.useState(u.rating?.value||0),[m,g]=reactExports.useState(void 0),[_,y]=reactExports.useState(void 0),[v,S]=reactExports.useState({submitted:!1,feedback:""}),A=reactExports.useRef(null),[T,D]=reactExports.useState(!1);reactExports.useEffect(()=>{u.opener?(S({submitted:!1,feedback:""}),y(!0)):_===!0&&y(!1)},[u.opener,_]),reactExports.useEffect(()=>{d(u.rating?.value||0)},[u.rating?.value,u.opener]),reactExports.useEffect(()=>{A.current&&(A.current.value=u.rating?.feedback||"")},[u.rating?.feedback]),reactExports.useEffect(()=>{const w=c>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`):void 0;g(w?.length?w:void 0)},[c,t]),reactExports.useEffect(()=>{v.submitted?setTimeout(()=>D(!0),v.feedback.length?500:0):D(!1)},[v]);const N=w=>{w.preventDefault();const j=A.current?.value?.trim()||"";i(handleRatingFromUser(c,j)),S({submitted:!0,feedback:j})},R=()=>{u.opener==="CLOSE_CHAT"?i(closeChatWindow()):u.opener==="RESTART_CHAT"?i(restartChat()):i(hideConversationRatingOverlay())};return jsxRuntimeExports.jsx("div",{className:clsx(styles$7.rateOverlay,bottomSheetStyles.bottomSheet,"chat__conversationRating__overlay",{[bottomSheetStyles.bottomSheetOpen]:_===!0,[bottomSheetStyles.bottomSheetClose]:_===!1}),children:jsxRuntimeExports.jsxs("form",{onSubmit:N,children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.body,"chat__conversationRating__overlay__body"),children:[jsxRuntimeExports.jsx("div",{}),jsxRuntimeExports.jsx("div",{className:clsx(styles$7.bubbles),children:u.opener&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(BotBubble,{isFirstMessageBySender:!0,isLastMessageBySender:!m,children:[jsxRuntimeExports.jsx("h2",{children:t("conversation-rating.overlay.title")}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.starsDescriptionContainer),children:[jsxRuntimeExports.jsx(Stars,{value:c,size:"large",readonly:v.submitted,onChange:d}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.starsDescription),children:[jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),m&&jsxRuntimeExports.jsx(BotBubble,{isFirstMessageBySender:!1,isLastMessageBySender:!T||!!v.feedback.length,children:jsxRuntimeExports.jsx("div",{children:m})}),!!v.feedback.length&&jsxRuntimeExports.jsx(GuestBubble,{children:v.feedback}),T&&jsxRuntimeExports.jsx(BotBubble,{isFirstMessageBySender:!!v.feedback.length,isLastMessageBySender:!0,children:jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.footer,"chat__conversationRating__overlay__footer"),children:[!v.submitted&&jsxRuntimeExports.jsx("input",{ref:A,defaultValue:u.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.actions,"chat__conversationRating__overlay__footer__actions"),children:[v.submitted?jsxRuntimeExports.jsx(PrimaryButton,{type:"button",disabled:!c,onClick:R,children:u.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):u.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):jsxRuntimeExports.jsx(PrimaryButton,{type:"submit",disabled:!c,children:t("conversation-rating.overlay.action.submit")},"submit-button"),u.opener!=="CHAT"&&!v.submitted&&jsxRuntimeExports.jsx(DefaultButton,{onClick:R,children:u.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):u.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},ConversationRating=({numberOfMessagesFromGuest:t})=>{const i=useAppDispatch(),u=useAppSelector(m=>m.chat.conversationRating),c=m=>{i(showConversationRatingOverlay("CHAT",m))},d=!u.rating?.value&&t>=1;return u.enabled?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CallToAction,{visible:d,onRate:c}),jsxRuntimeExports.jsx(RateOverlay,{})]}):null},ConversationRating$1=reactExports.memo(ConversationRating),inputWrapper="_inputWrapper_m3q4d_1",withOpenCommands="_withOpenCommands_m3q4d_13",actions$1="_actions_m3q4d_18",messageInputWrapper="_messageInputWrapper_m3q4d_53",messageInput="_messageInput_m3q4d_53",buttons="_buttons_m3q4d_78",button="_button_m3q4d_78",styles$6={inputWrapper,withOpenCommands,actions:actions$1,messageInputWrapper,messageInput,buttons,button},audioRecorder="_audioRecorder_g845f_1",audioButton="_audioButton_g845f_6",recorderIcon="_recorderIcon_g845f_37",spinning="_spinning_g845f_60",styles$5={audioRecorder,audioButton,recorderIcon,spinning},BUFFER_SIZE=2048,OUTPUT_SAMPLE_RATE=16e3;class AudioRecorder extends React.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(i){super(i),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(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const u=window.AudioContext||window.webkitAudioContext,c=new u;this.sampleRate=c.sampleRate,this.volume=c.createGain(),this.audioInput=c.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=c.createScriptProcessor(BUFFER_SIZE,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(c.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const u=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(u)),this.recordingLength+=BUFFER_SIZE}}handleClickSubmitAudio(){const i=mergeBuffers(this.leftchannel,this.recordingLength),u=downsampleBuffer(i,this.sampleRate||0),c=createWav(u);this.props.onAudioRecorded(c),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(i=>{i.stop()})}render(){return jsxRuntimeExports.jsxs("div",{className:styles$5.audioRecorder,children:[this.state.recordingState==="none"&&jsxRuntimeExports.jsx("button",{className:clsx(styles$5.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:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.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"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&jsxRuntimeExports.jsxs("svg",{className:styles$5.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.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"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&jsxRuntimeExports.jsxs("div",{className:styles$5.audioRecorder,children:[jsxRuntimeExports.jsx("button",{className:clsx(styles$5.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.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"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),jsxRuntimeExports.jsx("div",{className:styles$5.recorderIcon}),jsxRuntimeExports.jsx("button",{className:clsx(styles$5.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),jsxRuntimeExports.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const createWav=t=>{const i=new ArrayBuffer(44+t.length*2),u=new DataView(i);writeUTFBytes(u,0,"RIFF"),u.setUint32(4,44+t.length*2,!0),writeUTFBytes(u,8,"WAVE"),writeUTFBytes(u,12,"fmt "),u.setUint32(16,16,!0),u.setUint16(20,1,!0),u.setUint16(22,1,!0),u.setUint32(24,OUTPUT_SAMPLE_RATE,!0),u.setUint32(28,OUTPUT_SAMPLE_RATE*4,!0),u.setUint16(32,4,!0),u.setUint16(34,16,!0),writeUTFBytes(u,36,"data"),u.setUint32(40,t.length*2,!0);const c=t.length;let d=44;const m=1;for(let g=0;g<c;g++)u.setInt16(d,t[g]*(32767*m),!0),d+=2;return new Blob([u],{type:"audio/wav"})},writeUTFBytes=(t,i,u)=>{for(let c=0;c<u.length;c++)t.setUint8(i+c,u.charCodeAt(c))},mergeBuffers=(t,i)=>{const u=new Float32Array(i);let c=0;const d=t.length;for(let m=0;m<d;m++){const g=t[m];u.set(g,c),c+=g.length}return u},downsampleBuffer=(t,i)=>{if(OUTPUT_SAMPLE_RATE===i)return t;const u=i/OUTPUT_SAMPLE_RATE,c=Math.round(t.length/u),d=new Float32Array(c);let m=0,g=0;for(;m<d.length;){const _=Math.round((m+1)*u);let y=0,v=0;for(let S=g;S<_&&S<t.length;S++)y+=t[S],v++;d[m]=y/v,m++,g=_}return d},CommandButton=({onClick:t})=>{const i=useTranslation();return jsxRuntimeExports.jsxs("button",{onClick:t,type:"button","aria-label":i("message-input.actions.command.label"),children:[jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:[jsxRuntimeExports.jsx("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16",ry:"16",fill:"none",stroke:"currentColor","stroke-width":"16"}),jsxRuntimeExports.jsx("line",{x1:"80",y1:"176",x2:"176",y2:"80",stroke:"currentColor","stroke-width":"16","stroke-linecap":"round"})]}),jsxRuntimeExports.jsx("span",{children:i("message-input.actions.command.label")})]})},TextInput=({disabled:t,textInput:i,commandsVisible:u,hasCommands:c,onTextInput:d,onTextInputSubmit:m,onAudioRecorded:g})=>{const _=useTranslation(),y=reactExports.useRef(null),{enableSpeechSupport:v}=useAppSelector(R=>R.settings);reactExports.useEffect(()=>{y.current?.focus()},[i]);const S=()=>{const R=y.current;R&&i.trim().length>=1&&m(i.trim())&&(R.value="",R.style.height="",R.focus())},A=R=>{R.preventDefault(),S()},T=R=>{const w=R.target.value;d(w),R.target.style.height="";const{scrollHeight:j}=R.target;R.target.style.height=`${j>150?150:j}px`},D=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||S(),R.preventDefault()):u&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()},N=()=>{i.startsWith("/")?d(""):d("/")};return jsxRuntimeExports.jsxs("form",{className:clsx(styles$6.inputWrapper,u&&styles$6.withOpenCommands,"chat__textInput"),onSubmit:A,children:[jsxRuntimeExports.jsxs("div",{className:styles$6.messageInputWrapper,children:[jsxRuntimeExports.jsx("textarea",{id:"user_input",ref:y,className:styles$6.messageInput,tabIndex:0,placeholder:_("message-input-placeholder"),value:i,onChange:T,onKeyDown:D,"aria-label":_("message-input-label"),"aria-controls":c?"command-list":void 0,"aria-haspopup":c?"listbox":void 0}),c&&jsxRuntimeExports.jsx("div",{className:styles$6.actions,children:jsxRuntimeExports.jsx(CommandButton,{onClick:N})})]}),jsxRuntimeExports.jsx("div",{className:clsx(styles$6.buttons,"chat__buttons"),children:i.length||!v||navigator.mediaDevices===void 0?jsxRuntimeExports.jsx("button",{className:clsx(styles$6.button,"chat__button"),type:"submit","aria-label":_("message-input.actions.submit.label"),"data-title":_("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:jsxRuntimeExports.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:jsxRuntimeExports.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"})})}):v&&navigator.mediaDevices!==void 0&&jsxRuntimeExports.jsx(AudioRecorder,{translate:_,onAudioRecorded:g})})]})},quickReplies="_quickReplies_83npe_1",quickReply="_quickReply_83npe_9",styles$4={quickReplies,quickReply},QuickReplies=({quickReplies:t,onQuickReplyClick:i})=>t.length?jsxRuntimeExports.jsx("div",{className:clsx(styles$4.quickReplies,"chat__quickReplies"),children:t.map(u=>jsxRuntimeExports.jsx(Button,{tabIndex:0,className:clsx(styles$4.quickReply,"chat__button","chat__quickReply"),onClick:()=>i(u),children:u.label},u.label))}):null,MIN_USER_BLOCKED_TIME=5e3,MIN_TIME_BETWEEN_USER_REQUESTS=1e3,UserInput=({isBotTyping:t,quickReplies:i,numberOfMessagesFromGuest:u,commands:c,onTextInput:d,onQuickReplyClick:m,onAudioRecorded:g})=>{const[_,y]=reactExports.useState(""),[v,S]=reactExports.useState(!1),[A,T]=reactExports.useState(!1),D=reactExports.useRef(0),N=reactExports.useRef(0);reactExports.useEffect(()=>{if(v&&!t){const j=D.current?Date.now()-D.current:0;j>MIN_USER_BLOCKED_TIME?S(!1):setTimeout(()=>{S(!1)},MIN_USER_BLOCKED_TIME-j)}},[v,t]),reactExports.useEffect(()=>{v&&(D.current=Date.now())},[v]);const R=j=>{const M=Date.now()-N.current<MIN_TIME_BETWEEN_USER_REQUESTS;return A?!1:t||M?(S(!0),!1):(d(j),y(""),N.current=Date.now(),!0)},w=j=>{y(j+" ")};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$9.inputContainer),children:[jsxRuntimeExports.jsx(QuickReplies,{quickReplies:i,onQuickReplyClick:m}),jsxRuntimeExports.jsx(BlockUserInput,{visible:v}),!v&&jsxRuntimeExports.jsx(ConversationRating$1,{numberOfMessagesFromGuest:u}),!!c?.length&&jsxRuntimeExports.jsx(CommandsDropdown,{text:_,commands:c,onSelectCommand:w,onVisibilityChange:T}),jsxRuntimeExports.jsx(TextInput,{textInput:_,disabled:v,commandsVisible:A,hasCommands:!!c?.length,onTextInput:y,onTextInputSubmit:R,onAudioRecorded:g})]})},ChatComponent=({clientName:t,messages:i,quickReplies:u,isBotTyping:c,drawerContentUrl:d,onMessageFromUser:m,onQuickReplyClick:g,onButtonClick:_,onLinkClick:y,onAudioRecorded:v,onTranscriptExport:S,onTranscriptItemReaction:A})=>{const T=useAppDispatch(),D=useAppSelector(G=>G.connection.connectionState),{enableTranscriptExportEmail:N,commands:R}=useAppSelector(G=>G.settings),{showTranscriptMailOverlay:w,conversationRating:j}=useAppSelector(G=>G.chat),M=i.filter(G=>G.sender.type===UserType.GUEST).length;reactExports.useEffect(()=>{D===ConnectionStateEnum.CONNECTED&&T(startChat(t))},[t,D,T]);const k=()=>{T(toggleTranscriptMailOverlay())};return jsxRuntimeExports.jsxs("div",{className:styles$n.container,children:[jsxRuntimeExports.jsxs("div",{className:clsx([styles$n.chatcontent,(w||j?.opener)&&styles$n.accessabilityHidden]),children:[jsxRuntimeExports.jsx(Conversation,{messages:i,isBotTyping:c,commands:R,onButtonClick:_,onLinkClick:y,onTranscriptItemReaction:A}),jsxRuntimeExports.jsx(UserInput,{isBotTyping:c,quickReplies:c?[]:u,numberOfMessagesFromGuest:M,commands:R,onQuickReplyClick:g,onTextInput:m,onAudioRecorded:v}),jsxRuntimeExports.jsx(PoweredBy,{})]}),N&&jsxRuntimeExports.jsx(TranscriptExport,{visible:!!w,onEmailExport:S,onClose:k}),jsxRuntimeExports.jsx(Drawer,{contentUrl:d})]})},mapStateToProps=t=>{const{messages:i,quickReplies:u,isBotTyping:c,drawerContentUrl:d}=t.chat;return{messages:i,quickReplies:u,isBotTyping:c,drawerContentUrl:d}},bindAction=t=>({onRestartChat:()=>t(restartChat()),onMessageFromUser:i=>t(sendMessageFromUser(i)),onAudioRecorded:i=>t(sendAudioMessageFromUser(i)),onActionFromUser:i=>t(i),onQuickReplyClick:i=>t(handleQuickReplyClick(i)),onNluEvent:i=>t(requestNLUEvent(i)),onButtonClick:i=>t(handleButtonClick(i)),onLinkClick:i=>t(handleLinkClick(i)),onTranscriptExport:i=>t(exportTranscript(i)),onTranscriptItemReaction:(i,u)=>{t(transcriptItemGuestReaction(i,u?.type||null,u?.category,u?.comment))}}),Chat=connect_default(mapStateToProps,bindAction)(ChatComponent),useIsInIframe=()=>reactExports.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),onButtonKeyDownHandler=t=>i=>{const u=i.key;(u==="ArrowDown"||u==="ArrowRight"||u==="Enter"||u===" "||u==="Space")&&(i.stopPropagation(),t())},CloseChatWindowButton=({onClick:t})=>{const i=useTranslation();return useIsInIframe()?jsxRuntimeExports.jsx("button",{className:"tooltip--bottom-left","aria-label":i("header.close-chat"),"data-title":i("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:onButtonKeyDownHandler(t),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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},header="_header_3gvbz_1",logoContainer="_logoContainer_3gvbz_14",logo="_logo_3gvbz_14",actions="_actions_3gvbz_28",active="_active_3gvbz_43",menuContainer="_menuContainer_3gvbz_56",menu="_menu_3gvbz_56",divider="_divider_3gvbz_86",styles$3={header,logoContainer,logo,actions,active,menuContainer,menu,divider},MenuItemIcon=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 jsxRuntimeExports.jsx("div",{})}},MenuItem=reactExports.forwardRef(({selected:t,item:i,onClick:u},c)=>{const d=useTranslation(),m=g=>{g.preventDefault(),u()};return jsxRuntimeExports.jsx("li",{"aria-selected":t,role:"option",className:i.withDivider?styles$3.divider:void 0,children:jsxRuntimeExports.jsxs("a",{ref:c,type:"button",role:"button",tabIndex:-1,onClick:m,children:[jsxRuntimeExports.jsx(MenuItemIcon,{icon:i.icon}),jsxRuntimeExports.jsx("span",{children:d(`header.menu.${i.id}`)})]})})}),useMenuItems=(t,i)=>{const u=useIsInIframe(),{menuItems:c,enableStandaloneView:d,enableTranscriptExportPdf:m,enableTranscriptExportEmail:g}=useAppSelector(v=>v.settings),_=useAppSelector(v=>v.chat.conversationRating.enabled);return reactExports.useMemo(()=>{const v=[],S=c.filter(({visibility:A})=>t?A==="always"||A==="chat-only":A==="always"||A==="start-screen-only");if(t&&(v.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),u&&d&&v.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),i&&m&&v.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),i&&g&&v.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),i&&_&&v.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),v.length>0&&S.length)){const A=v.pop();A&&c.length&&v.push({...A,withDivider:!0})}return v.push(...S),v},[t,i,m,g,d,_,u,c])},Menu=({chatStarted:t,hasGuestMessages:i})=>{const u=useAppDispatch(),c=useTranslation(),{enabled:d,opener:m}=useAppSelector(M=>M.chat.conversationRating),[g,_]=reactExports.useState(!1),[y,v]=reactExports.useState(-1),S=reactExports.useRef(null),A=reactExports.useRef(null),T=reactExports.useRef([]),D=useMenuItems(t,i);reactExports.useEffect(()=>{T.current[y]?.focus()},[y]);const N=reactExports.useCallback(()=>{u(i&&d&&!m?showConversationRatingOverlay("RESTART_CHAT"):restartChat()),_(!1),v(0)},[i,d,m,u]),R=reactExports.useCallback(M=>{switch(M.type){case"restart-chat":N();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":u(downloadTranscriptPdf());break;case"send-transcript":u(toggleTranscriptMailOverlay());break;case"rate-conversation":u(showConversationRatingOverlay("MENU"));break;case"link":u(handleLinkClick(M.url));break;case"action":u(JSON.parse(JSON.stringify(M.action)));break}_(!1)},[u,N,_]);reactExports.useEffect(()=>{const M=k=>{if(g)switch(k.key){case"Enter":k.preventDefault(),R(D[y]);break;case"ArrowUp":v(G=>G>0?G-1:D.length-1);break;case"ArrowDown":v(G=>G<D.length-1?G+1:0);break;case"Escape":_(!1);break;case"Tab":y>-1&&_(!1);break}};return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[g,y,D,v,_,R]),reactExports.useEffect(()=>{g||v(-1)},[g,y]),useClickOutsideEventListener(A,()=>_(!1));const w=()=>{_(M=>!M)},j=()=>{setTimeout(()=>{const M=document.activeElement;A.current&&!A.current.contains(M)&&_(!1)},0)};return D.length?jsxRuntimeExports.jsxs("div",{className:clsx(styles$3.menuContainer),ref:A,children:[jsxRuntimeExports.jsx("button",{ref:S,className:clsx(g&&styles$3.active,g?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":c("header.menu.title"),"data-title":c("header.menu.title"),onClick:w,onBlur:j,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})})}),g&&jsxRuntimeExports.jsx("nav",{className:styles$3.menu,"aria-label":c("header.menu.title"),children:jsxRuntimeExports.jsx("ul",{tabIndex:0,children:D.map((M,k)=>jsxRuntimeExports.jsx(MenuItem,{ref:G=>{T.current[k]=G},selected:y===k,item:M,onClick:()=>R(M)},M.id))})})]}):null},Header$1=({className:t,chatStarted:i,...u})=>{const c=useAppDispatch(),d=useAppSelector(_=>_.chat.conversationRating),m=useAppSelector(_=>_.chat.messages.some(y=>y.sender.type===UserType$1.GUEST)),g=()=>{d.enabled&&!d.opener&&m?c(showConversationRatingOverlay("CLOSE_CHAT")):c(closeChatWindow())};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$3.header,t),...u,children:[jsxRuntimeExports.jsx("div",{className:styles$3.logoContainer,children:jsxRuntimeExports.jsx("div",{className:styles$3.logo})}),jsxRuntimeExports.jsxs("div",{className:styles$3.actions,children:[jsxRuntimeExports.jsx(Menu,{chatStarted:i,hasGuestMessages:m}),jsxRuntimeExports.jsx(CloseChatWindowButton,{onClick:g})]})]})},chatwindow="_chatwindow_rkbir_1",chatwindowWithAside="_chatwindowWithAside_rkbir_21",styles$2={chatwindow,chatwindowWithAside},useIsSmallScreen=()=>{const[t,i]=reactExports.useState(!1);return reactExports.useEffect(()=>{const u=window.matchMedia("(max-width: 1023px)"),c=()=>i(u.matches);return c(),u.addEventListener("change",c),()=>u.removeEventListener("change",c)},[]),t},sourceInfos="_sourceInfos_vei0l_1",waitForLoading="_waitForLoading_vei0l_24",loadingContent="_loadingContent_vei0l_28",sourceHeader="_sourceHeader_vei0l_37",sourceHeaderIcon="_sourceHeaderIcon_vei0l_57",sourceContent="_sourceContent_vei0l_61",openSourceButton="_openSourceButton_vei0l_69",sourceButtonLabel="_sourceButtonLabel_vei0l_79",closeSourceInfosButton="_closeSourceInfosButton_vei0l_101",loadingSourceInfos="_loadingSourceInfos_vei0l_125",loading="_loading_vei0l_28",loadingError="_loadingError_vei0l_139",highlightLoadingInfo="_highlightLoadingInfo_vei0l_155",highlightLoadingInfoInnerContainer="_highlightLoadingInfoInnerContainer_vei0l_169",highlightLoadingInfoContent="_highlightLoadingInfoContent_vei0l_178",highlightLoadingInfoCloseIcon="_highlightLoadingInfoCloseIcon_vei0l_198",highlightLoader="_highlightLoader_vei0l_203",highlightLoaderLoading="_highlightLoaderLoading_vei0l_210",styles$1={sourceInfos,waitForLoading,loadingContent,sourceHeader,sourceHeaderIcon,sourceContent,openSourceButton,sourceButtonLabel,closeSourceInfosButton,loadingSourceInfos,loading,loadingError,highlightLoadingInfo,highlightLoadingInfoInnerContainer,highlightLoadingInfoContent,highlightLoadingInfoCloseIcon,highlightLoader,highlightLoaderLoading},CloseSourceInfosButton=({onClick:t})=>{const i=useTranslation();return jsxRuntimeExports.jsx("button",{className:clsx(styles$1.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":i("source-infos.close"),"data-title":i("source-infos.close"),tabIndex:0,onClick:t,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})})})},Header=reactExports.forwardRef(({sourceInfos:t,onClose:i,...u},c)=>jsxRuntimeExports.jsxs("div",{className:styles$1.sourceHeader,...u,ref:c,children:[jsxRuntimeExports.jsx("div",{children:t?jsxRuntimeExports.jsx("p",{id:"source-info-title",children:t.title}):jsxRuntimeExports.jsx("p",{children:" "})}),jsxRuntimeExports.jsx(CloseSourceInfosButton,{onClick:i})]})),HighlightLoader=({loading:t})=>jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoader,children:t&&jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoaderLoading})});const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create}=Object,{apply,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(i){return i});seal||(seal=function(i){return i});apply||(apply=function(i,u){for(var c=arguments.length,d=new Array(c>2?c-2:0),m=2;m<c;m++)d[m-2]=arguments[m];return i.apply(u,d)});construct||(construct=function(i){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return new i(...c)});const arrayForEach=unapply(Array.prototype.forEach),arrayLastIndexOf=unapply(Array.prototype.lastIndexOf),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),arraySplice=unapply(Array.prototype.splice),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(t){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return apply(t,i,c)}}function unconstruct(t){return function(){for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];return construct(t,u)}}function addToSet(t,i){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(t,null);let c=i.length;for(;c--;){let d=i[c];if(typeof d=="string"){const m=u(d);m!==d&&(isFrozen(i)||(i[c]=m),d=m)}t[d]=!0}return t}function cleanArray(t){for(let i=0;i<t.length;i++)objectHasOwnProperty(t,i)||(t[i]=null);return t}function clone(t){const i=create(null);for(const[u,c]of entries(t))objectHasOwnProperty(t,u)&&(Array.isArray(c)?i[u]=cleanArray(c):c&&typeof c=="object"&&c.constructor===Object?i[u]=clone(c):i[u]=c);return i}function lookupGetter(t,i){for(;t!==null;){const c=getOwnPropertyDescriptor(t,i);if(c){if(c.get)return unapply(c.get);if(typeof c.value=="function")return unapply(c.value)}t=getPrototypeOf(t)}function u(){return null}return u}const html$1=freeze(["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"]),svg$1=freeze(["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"]),svgFilters=freeze(["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"]),svgDisallowed=freeze(["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"]),mathMl$1=freeze(["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"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["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"]),svg=freeze(["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"]),mathMl=freeze(["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"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\$\{[\w\W]*/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]+$/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,ARIA_ATTR,ATTR_WHITESPACE,CUSTOM_ELEMENT,DATA_ATTR,DOCTYPE_NAME,ERB_EXPR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,MUSTACHE_EXPR,TMPLIT_EXPR});const NODE_TYPE={element:1,text:3,progressingInstruction:7,comment:8,document:9},getGlobal=function t(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function t(i,u){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let c=null;const d="data-tt-policy-suffix";u&&u.hasAttribute(d)&&(c=u.getAttribute(d));const m="dompurify"+(c?"#"+c:"");try{return i.createPolicy(m,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},_createHooksMap=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const i=Ee=>createDOMPurify(Ee);if(i.version="3.3.1",i.removed=[],!t||!t.document||t.document.nodeType!==NODE_TYPE.document||!t.Element)return i.isSupported=!1,i;let{document:u}=t;const c=u,d=c.currentScript,{DocumentFragment:m,HTMLTemplateElement:g,Node:_,Element:y,NodeFilter:v,NamedNodeMap:S=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:A,DOMParser:T,trustedTypes:D}=t,N=y.prototype,R=lookupGetter(N,"cloneNode"),w=lookupGetter(N,"remove"),j=lookupGetter(N,"nextSibling"),M=lookupGetter(N,"childNodes"),k=lookupGetter(N,"parentNode");if(typeof g=="function"){const Ee=u.createElement("template");Ee.content&&Ee.content.ownerDocument&&(u=Ee.content.ownerDocument)}let G,Z="";const{implementation:F,createNodeIterator:P,createDocumentFragment:W,getElementsByTagName:J}=u,{importNode:ne}=c;let ee=_createHooksMap();i.isSupported=typeof entries=="function"&&typeof k=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ae,ERB_EXPR:ve,TMPLIT_EXPR:pe,DATA_ATTR:ye,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:xe}=EXPRESSIONS;let{IS_ALLOWED_URI:_e}=EXPRESSIONS,L=null;const te=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let le=null;const me=addToSet({},[...html,...svg,...mathMl,...xml]);let ce=Object.seal(create(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}})),ge=null,be=null;const De=Object.seal(create(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Ge=!0,lt=!1,Oe=!0,pt=!1,xt=!0,ke=!1,st=!1,Kt=!1,hn=!1,Ze=!1,Pt=!1,Rt=!0,Qt=!1;const Et="user-content-";let at=!0,vn=!1,Ut={},wt=null;const Dt=addToSet({},["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 ln=null;const sn=addToSet({},["audio","video","img","source","image","track"]);let Pn=null;const qe=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),un="http://www.w3.org/1998/Math/MathML",mt="http://www.w3.org/2000/svg",ct="http://www.w3.org/1999/xhtml";let Ke=ct,We=!1,Wt=null;const cn=addToSet({},[un,mt,ct],stringToString);let Nt=addToSet({},["mi","mo","mn","ms","mtext"]),et=addToSet({},["annotation-xml"]);const Vt=addToSet({},["title","style","font","a","script"]);let St=null;const bn=["application/xhtml+xml","text/html"],En="text/html";let ft=null,qt=null;const Vn=u.createElement("form"),xn=function(z){return z instanceof RegExp||z instanceof Function},$n=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(qt&&qt===z)){if((!z||typeof z!="object")&&(z={}),z=clone(z),St=bn.indexOf(z.PARSER_MEDIA_TYPE)===-1?En:z.PARSER_MEDIA_TYPE,ft=St==="application/xhtml+xml"?stringToString:stringToLowerCase,L=objectHasOwnProperty(z,"ALLOWED_TAGS")?addToSet({},z.ALLOWED_TAGS,ft):te,le=objectHasOwnProperty(z,"ALLOWED_ATTR")?addToSet({},z.ALLOWED_ATTR,ft):me,Wt=objectHasOwnProperty(z,"ALLOWED_NAMESPACES")?addToSet({},z.ALLOWED_NAMESPACES,stringToString):cn,Pn=objectHasOwnProperty(z,"ADD_URI_SAFE_ATTR")?addToSet(clone(qe),z.ADD_URI_SAFE_ATTR,ft):qe,ln=objectHasOwnProperty(z,"ADD_DATA_URI_TAGS")?addToSet(clone(sn),z.ADD_DATA_URI_TAGS,ft):sn,wt=objectHasOwnProperty(z,"FORBID_CONTENTS")?addToSet({},z.FORBID_CONTENTS,ft):Dt,ge=objectHasOwnProperty(z,"FORBID_TAGS")?addToSet({},z.FORBID_TAGS,ft):clone({}),be=objectHasOwnProperty(z,"FORBID_ATTR")?addToSet({},z.FORBID_ATTR,ft):clone({}),Ut=objectHasOwnProperty(z,"USE_PROFILES")?z.USE_PROFILES:!1,we=z.ALLOW_ARIA_ATTR!==!1,Ge=z.ALLOW_DATA_ATTR!==!1,lt=z.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,pt=z.SAFE_FOR_TEMPLATES||!1,xt=z.SAFE_FOR_XML!==!1,ke=z.WHOLE_DOCUMENT||!1,hn=z.RETURN_DOM||!1,Ze=z.RETURN_DOM_FRAGMENT||!1,Pt=z.RETURN_TRUSTED_TYPE||!1,Kt=z.FORCE_BODY||!1,Rt=z.SANITIZE_DOM!==!1,Qt=z.SANITIZE_NAMED_PROPS||!1,at=z.KEEP_CONTENT!==!1,vn=z.IN_PLACE||!1,_e=z.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Ke=z.NAMESPACE||ct,Nt=z.MATHML_TEXT_INTEGRATION_POINTS||Nt,et=z.HTML_INTEGRATION_POINTS||et,ce=z.CUSTOM_ELEMENT_HANDLING||{},z.CUSTOM_ELEMENT_HANDLING&&xn(z.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ce.tagNameCheck=z.CUSTOM_ELEMENT_HANDLING.tagNameCheck),z.CUSTOM_ELEMENT_HANDLING&&xn(z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ce.attributeNameCheck=z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),z.CUSTOM_ELEMENT_HANDLING&&typeof z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),pt&&(Ge=!1),Ze&&(hn=!0),Ut&&(L=addToSet({},text),le=[],Ut.html===!0&&(addToSet(L,html$1),addToSet(le,html)),Ut.svg===!0&&(addToSet(L,svg$1),addToSet(le,svg),addToSet(le,xml)),Ut.svgFilters===!0&&(addToSet(L,svgFilters),addToSet(le,svg),addToSet(le,xml)),Ut.mathMl===!0&&(addToSet(L,mathMl$1),addToSet(le,mathMl),addToSet(le,xml))),z.ADD_TAGS&&(typeof z.ADD_TAGS=="function"?De.tagCheck=z.ADD_TAGS:(L===te&&(L=clone(L)),addToSet(L,z.ADD_TAGS,ft))),z.ADD_ATTR&&(typeof z.ADD_ATTR=="function"?De.attributeCheck=z.ADD_ATTR:(le===me&&(le=clone(le)),addToSet(le,z.ADD_ATTR,ft))),z.ADD_URI_SAFE_ATTR&&addToSet(Pn,z.ADD_URI_SAFE_ATTR,ft),z.FORBID_CONTENTS&&(wt===Dt&&(wt=clone(wt)),addToSet(wt,z.FORBID_CONTENTS,ft)),z.ADD_FORBID_CONTENTS&&(wt===Dt&&(wt=clone(wt)),addToSet(wt,z.ADD_FORBID_CONTENTS,ft)),at&&(L["#text"]=!0),ke&&addToSet(L,["html","head","body"]),L.table&&(addToSet(L,["tbody"]),delete ge.tbody),z.TRUSTED_TYPES_POLICY){if(typeof z.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof z.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=z.TRUSTED_TYPES_POLICY,Z=G.createHTML("")}else G===void 0&&(G=_createTrustedTypesPolicy(D,d)),G!==null&&typeof Z=="string"&&(Z=G.createHTML(""));freeze&&freeze(z),qt=z}},tn=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),nn=addToSet({},[...mathMl$1,...mathMlDisallowed]),$t=function(z){let fe=k(z);(!fe||!fe.tagName)&&(fe={namespaceURI:Ke,tagName:"template"});const he=stringToLowerCase(z.tagName),Re=stringToLowerCase(fe.tagName);return Wt[z.namespaceURI]?z.namespaceURI===mt?fe.namespaceURI===ct?he==="svg":fe.namespaceURI===un?he==="svg"&&(Re==="annotation-xml"||Nt[Re]):!!tn[he]:z.namespaceURI===un?fe.namespaceURI===ct?he==="math":fe.namespaceURI===mt?he==="math"&&et[Re]:!!nn[he]:z.namespaceURI===ct?fe.namespaceURI===mt&&!et[Re]||fe.namespaceURI===un&&!Nt[Re]?!1:!nn[he]&&(Vt[he]||!tn[he]):!!(St==="application/xhtml+xml"&&Wt[z.namespaceURI]):!1},Mt=function(z){arrayPush(i.removed,{element:z});try{k(z).removeChild(z)}catch{w(z)}},Pe=function(z,fe){try{arrayPush(i.removed,{attribute:fe.getAttributeNode(z),from:fe})}catch{arrayPush(i.removed,{attribute:null,from:fe})}if(fe.removeAttribute(z),z==="is")if(hn||Ze)try{Mt(fe)}catch{}else try{fe.setAttribute(z,"")}catch{}},Sn=function(z){let fe=null,he=null;if(Kt)z="<remove></remove>"+z;else{const Se=stringMatch(z,/^[\r\n\t ]+/);he=Se&&Se[0]}St==="application/xhtml+xml"&&Ke===ct&&(z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+z+"</body></html>");const Re=G?G.createHTML(z):z;if(Ke===ct)try{fe=new T().parseFromString(Re,St)}catch{}if(!fe||!fe.documentElement){fe=F.createDocument(Ke,"template",null);try{fe.documentElement.innerHTML=We?Z:Re}catch{}}const Le=fe.body||fe.documentElement;return z&&he&&Le.insertBefore(u.createTextNode(he),Le.childNodes[0]||null),Ke===ct?J.call(fe,ke?"html":"body")[0]:ke?fe.documentElement:Le},_n=function(z){return P.call(z.ownerDocument||z,z,v.SHOW_ELEMENT|v.SHOW_COMMENT|v.SHOW_TEXT|v.SHOW_PROCESSING_INSTRUCTION|v.SHOW_CDATA_SECTION,null)},zt=function(z){return z instanceof A&&(typeof z.nodeName!="string"||typeof z.textContent!="string"||typeof z.removeChild!="function"||!(z.attributes instanceof S)||typeof z.removeAttribute!="function"||typeof z.setAttribute!="function"||typeof z.namespaceURI!="string"||typeof z.insertBefore!="function"||typeof z.hasChildNodes!="function")},Tt=function(z){return typeof _=="function"&&z instanceof _};function ot(Ee,z,fe){arrayForEach(Ee,he=>{he.call(i,z,fe,qt)})}const an=function(z){let fe=null;if(ot(ee.beforeSanitizeElements,z,null),zt(z))return Mt(z),!0;const he=ft(z.nodeName);if(ot(ee.uponSanitizeElement,z,{tagName:he,allowedTags:L}),xt&&z.hasChildNodes()&&!Tt(z.firstElementChild)&&regExpTest(/<[/\w!]/g,z.innerHTML)&&regExpTest(/<[/\w!]/g,z.textContent)||z.nodeType===NODE_TYPE.progressingInstruction||xt&&z.nodeType===NODE_TYPE.comment&&regExpTest(/<[/\w]/g,z.data))return Mt(z),!0;if(!(De.tagCheck instanceof Function&&De.tagCheck(he))&&(!L[he]||ge[he])){if(!ge[he]&&Xe(he)&&(ce.tagNameCheck instanceof RegExp&&regExpTest(ce.tagNameCheck,he)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(he)))return!1;if(at&&!wt[he]){const Re=k(z)||z.parentNode,Le=M(z)||z.childNodes;if(Le&&Re){const Se=Le.length;for(let Ce=Se-1;Ce>=0;--Ce){const He=R(Le[Ce],!0);He.__removalCount=(z.__removalCount||0)+1,Re.insertBefore(He,j(z))}}}return Mt(z),!0}return z instanceof y&&!$t(z)||(he==="noscript"||he==="noembed"||he==="noframes")&&regExpTest(/<\/no(script|embed|frames)/i,z.innerHTML)?(Mt(z),!0):(pt&&z.nodeType===NODE_TYPE.text&&(fe=z.textContent,arrayForEach([ae,ve,pe],Re=>{fe=stringReplace(fe,Re," ")}),z.textContent!==fe&&(arrayPush(i.removed,{element:z.cloneNode()}),z.textContent=fe)),ot(ee.afterSanitizeElements,z,null),!1)},Zn=function(z,fe,he){if(Rt&&(fe==="id"||fe==="name")&&(he in u||he in Vn))return!1;if(!(Ge&&!be[fe]&&regExpTest(ye,fe))){if(!(we&&regExpTest($,fe))){if(!(De.attributeCheck instanceof Function&&De.attributeCheck(fe,z))){if(!le[fe]||be[fe]){if(!(Xe(z)&&(ce.tagNameCheck instanceof RegExp&&regExpTest(ce.tagNameCheck,z)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(z))&&(ce.attributeNameCheck instanceof RegExp&&regExpTest(ce.attributeNameCheck,fe)||ce.attributeNameCheck instanceof Function&&ce.attributeNameCheck(fe,z))||fe==="is"&&ce.allowCustomizedBuiltInElements&&(ce.tagNameCheck instanceof RegExp&&regExpTest(ce.tagNameCheck,he)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(he))))return!1}else if(!Pn[fe]){if(!regExpTest(_e,stringReplace(he,Q,""))){if(!((fe==="src"||fe==="xlink:href"||fe==="href")&&z!=="script"&&stringIndexOf(he,"data:")===0&&ln[z])){if(!(lt&&!regExpTest(ue,stringReplace(he,Q,"")))){if(he)return!1}}}}}}}return!0},Xe=function(z){return z!=="annotation-xml"&&stringMatch(z,xe)},An=function(z){ot(ee.beforeSanitizeAttributes,z,null);const{attributes:fe}=z;if(!fe||zt(z))return;const he={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le,forceKeepAttr:void 0};let Re=fe.length;for(;Re--;){const Le=fe[Re],{name:Se,namespaceURI:Ce,value:He}=Le,ut=ft(Se),Me=He;let Qe=Se==="value"?Me:stringTrim(Me);if(he.attrName=ut,he.attrValue=Qe,he.keepAttr=!0,he.forceKeepAttr=void 0,ot(ee.uponSanitizeAttribute,z,he),Qe=he.attrValue,Qt&&(ut==="id"||ut==="name")&&(Pe(Se,z),Qe=Et+Qe),xt&&regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i,Qe)){Pe(Se,z);continue}if(ut==="attributename"&&stringMatch(Qe,"href")){Pe(Se,z);continue}if(he.forceKeepAttr)continue;if(!he.keepAttr){Pe(Se,z);continue}if(!Oe&&regExpTest(/\/>/i,Qe)){Pe(Se,z);continue}pt&&arrayForEach([ae,ve,pe],gt=>{Qe=stringReplace(Qe,gt," ")});const Ue=ft(z.nodeName);if(!Zn(Ue,ut,Qe)){Pe(Se,z);continue}if(G&&typeof D=="object"&&typeof D.getAttributeType=="function"&&!Ce)switch(D.getAttributeType(Ue,ut)){case"TrustedHTML":{Qe=G.createHTML(Qe);break}case"TrustedScriptURL":{Qe=G.createScriptURL(Qe);break}}if(Qe!==Me)try{Ce?z.setAttributeNS(Ce,Se,Qe):z.setAttribute(Se,Qe),zt(z)?Mt(z):arrayPop(i.removed)}catch{Pe(Se,z)}}ot(ee.afterSanitizeAttributes,z,null)},Cn=function Ee(z){let fe=null;const he=_n(z);for(ot(ee.beforeSanitizeShadowDOM,z,null);fe=he.nextNode();)ot(ee.uponSanitizeShadowNode,fe,null),an(fe),An(fe),fe.content instanceof m&&Ee(fe.content);ot(ee.afterSanitizeShadowDOM,z,null)};return i.sanitize=function(Ee){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=null,he=null,Re=null,Le=null;if(We=!Ee,We&&(Ee="<!-->"),typeof Ee!="string"&&!Tt(Ee))if(typeof Ee.toString=="function"){if(Ee=Ee.toString(),typeof Ee!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!i.isSupported)return Ee;if(st||$n(z),i.removed=[],typeof Ee=="string"&&(vn=!1),vn){if(Ee.nodeName){const He=ft(Ee.nodeName);if(!L[He]||ge[He])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Ee instanceof _)fe=Sn("<!---->"),he=fe.ownerDocument.importNode(Ee,!0),he.nodeType===NODE_TYPE.element&&he.nodeName==="BODY"||he.nodeName==="HTML"?fe=he:fe.appendChild(he);else{if(!hn&&!pt&&!ke&&Ee.indexOf("<")===-1)return G&&Pt?G.createHTML(Ee):Ee;if(fe=Sn(Ee),!fe)return hn?null:Pt?Z:""}fe&&Kt&&Mt(fe.firstChild);const Se=_n(vn?Ee:fe);for(;Re=Se.nextNode();)an(Re),An(Re),Re.content instanceof m&&Cn(Re.content);if(vn)return Ee;if(hn){if(Ze)for(Le=W.call(fe.ownerDocument);fe.firstChild;)Le.appendChild(fe.firstChild);else Le=fe;return(le.shadowroot||le.shadowrootmode)&&(Le=ne.call(c,Le,!0)),Le}let Ce=ke?fe.outerHTML:fe.innerHTML;return ke&&L["!doctype"]&&fe.ownerDocument&&fe.ownerDocument.doctype&&fe.ownerDocument.doctype.name&&regExpTest(DOCTYPE_NAME,fe.ownerDocument.doctype.name)&&(Ce="<!DOCTYPE "+fe.ownerDocument.doctype.name+`>
118
- `+Ce),pt&&arrayForEach([ae,ve,pe],He=>{Ce=stringReplace(Ce,He," ")}),G&&Pt?G.createHTML(Ce):Ce},i.setConfig=function(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$n(Ee),st=!0},i.clearConfig=function(){qt=null,st=!1},i.isValidAttribute=function(Ee,z,fe){qt||$n({});const he=ft(Ee),Re=ft(z);return Zn(he,Re,fe)},i.addHook=function(Ee,z){typeof z=="function"&&arrayPush(ee[Ee],z)},i.removeHook=function(Ee,z){if(z!==void 0){const fe=arrayLastIndexOf(ee[Ee],z);return fe===-1?void 0:arraySplice(ee[Ee],fe,1)[0]}return arrayPop(ee[Ee])},i.removeHooks=function(Ee){ee[Ee]=[]},i.removeAllHooks=function(){ee=_createHooksMap()},i}var purify=createDOMPurify();const HighlightLoadingInfo=({onClose:t})=>{const i=useTranslation();return jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfo,onClick:t,children:[jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoadingInfoCloseIcon,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})})}),jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfoInnerContainer,children:[jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfoContent,children:[jsxRuntimeExports.jsx("h3",{children:i("source-infos.highlight-loading.title")}),jsxRuntimeExports.jsx("p",{children:i("source-infos.highlight-loading.description")})]}),jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})})]})]})},MarkdownLink=({title:t,href:i,children:u})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:u}),DefaultLinkButton=({className:t,children:i,...u})=>jsxRuntimeExports.jsx("a",{className:clsx(styles$g.button,styles$g.buttonDefault,t),type:"button",role:"button",...u,children:i}),Text=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),KnowledgeBaseTypeIcon=({type:t,...i})=>{switch(t){case"WEBSITE":return jsxRuntimeExports.jsx(Web,{...i});case"PDF":return jsxRuntimeExports.jsx(Pdf,{...i});case"DOCX":return jsxRuntimeExports.jsx(Docx,{...i});case"TEXT":return jsxRuntimeExports.jsx(Text,{...i});default:return jsxRuntimeExports.jsx(File$1,{...i})}},OpenButton=({url:t,knowledgeBaseType:i})=>{const u=useTranslation();return jsxRuntimeExports.jsx(DefaultLinkButton,{className:styles$1.openSourceButton,href:t,target:"_blank",children:jsxRuntimeExports.jsxs("div",{className:styles$1.sourceButtonLabel,children:[jsxRuntimeExports.jsx("div",{className:styles$1.sourceHeaderIcon,children:jsxRuntimeExports.jsx(KnowledgeBaseTypeIcon,{type:i})}),jsxRuntimeExports.jsx("p",{children:u("source-infos.open-source")})]})})},LoadedSourceInfos=({sourceInfos:{content:t,url:i,knowledgeBaseType:u,highlighted:c}})=>{const[d,m]=reactExports.useState(!c);reactExports.useEffect(()=>{c&&m(!1)},[c]);const g=purify.sanitize(t,{USE_PROFILES:{html:!0}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$1.sourceContent,markdownStyle.markdown),children:[jsxRuntimeExports.jsx(EY,{options:{overrides:{a:MarkdownLink}},children:g}),d&&jsxRuntimeExports.jsx(HighlightLoadingInfo,{onClose:()=>m(!1)})]}),jsxRuntimeExports.jsx(OpenButton,{url:i,knowledgeBaseType:u})]})},fixingError=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,LoadingError=()=>{const t=useTranslation();return jsxRuntimeExports.jsxs("div",{className:styles$1.loadingError,children:[jsxRuntimeExports.jsx("h1",{children:t("source-infos.error.title")}),jsxRuntimeExports.jsx("img",{src:fixingError,title:t("source-infos.error.title")}),jsxRuntimeExports.jsx("p",{children:t("source-infos.error.info")})]})},LoadingSourceInfos=()=>jsxRuntimeExports.jsx("div",{className:styles$1.loadingSourceInfos,children:jsxRuntimeExports.jsx("svg",{className:styles$1.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 useSwipeToClose({sourceInfos:t,onClose:i,threshold:u=100}){const c=reactExports.useRef(null),[d,m]=reactExports.useState(0),[g,_]=reactExports.useState(!1),y=reactExports.useRef(null),v=reactExports.useRef(null),S=reactExports.useCallback(N=>{y.current=N,_(!0)},[]),A=reactExports.useCallback(N=>{if(y.current!==null&&g){const R=N-y.current;R>0&&m(R)}},[g]),T=reactExports.useCallback(()=>{_(!1),d>u&&i(),m(0),y.current=null},[d,u,i]),D=reactExports.useCallback(N=>{const R=Z=>S(Z.touches[0].clientY),w=Z=>A(Z.touches[0].clientY),j=()=>T(),M=Z=>{Z.preventDefault(),S(Z.clientY),window.addEventListener("mousemove",k),window.addEventListener("mouseup",G)},k=Z=>A(Z.clientY),G=()=>{T(),window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",G)};N.addEventListener("touchstart",R),N.addEventListener("touchmove",w),N.addEventListener("touchend",j),N.addEventListener("mousedown",M),v.current=()=>{N.removeEventListener("touchstart",R),N.removeEventListener("touchmove",w),N.removeEventListener("touchend",j),N.removeEventListener("mousedown",M),window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",G)}},[S,A,T]);return reactExports.useEffect(()=>{let N;return c.current?(v.current?.(),D(c.current)):(N=new MutationObserver(()=>{c.current&&(v.current?.(),D(c.current),N?.disconnect())}),N.observe(document.body,{childList:!0,subtree:!0})),()=>{N?.disconnect(),v.current?.()}},[D,t]),{ref:c,dragOffsetY:d,isDragging:g}}const useWaitForLoadingEffect=t=>{const[i,u]=reactExports.useState(!0);return reactExports.useEffect(()=>{let c=null;return t?.type==="loading"?(u(!0),c=setTimeout(()=>{u(!1)},300)):u(!t),()=>{c&&clearTimeout(c)}},[t]),i},SourceInfos=()=>{const t=useAppDispatch(),i=useAppSelector(y=>y.chat.sourceInfos),u=useIsSmallScreen(),c=reactExports.useRef(null),d=useWaitForLoadingEffect(i);reactExports.useEffect(()=>{c.current&&i?.type==="loading"&&(u?c.current.showModal():(c.current.setAttribute("open","true"),c.current?.focus()))},[i,u]);const m=reactExports.useCallback(()=>{c.current&&(u?c.current.close():c.current.removeAttribute("open"),t(closeSourceInfos()))},[t,u]),{ref:g,dragOffsetY:_}=useSwipeToClose({onClose:m,sourceInfos:i});return i?jsxRuntimeExports.jsx("dialog",{ref:c,className:clsx(styles$1.sourceInfos,d?styles$1.waitForLoading:i.type==="loading"?styles$1.loadingContent:""),style:u&&_?{transform:`translateY(${_}px)`}:{},onClose:m,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:d?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header,{ref:g,tabIndex:-1,sourceInfos:i.type==="loaded"?i:void 0,onClose:m}),i.type==="loading"?jsxRuntimeExports.jsx(LoadingSourceInfos,{}):i.type==="loading-error"?jsxRuntimeExports.jsx(LoadingError,{}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HighlightLoader,{loading:!i.highlighted}),jsxRuntimeExports.jsx(LoadedSourceInfos,{sourceInfos:i})]})]})}):null},container$1="_container_1aof3_1",body="_body_1aof3_7",intro="_intro_1aof3_14",footer="_footer_1aof3_39",footnote="_footnote_1aof3_43",containerWithFootnote="_containerWithFootnote_1aof3_58",startChatButton="_startChatButton_1aof3_73",spinner="_spinner_1aof3_88",formFields="_formFields_1aof3_92",formField="_formField_1aof3_92",radio="_radio_1aof3_104",checkbox="_checkbox_1aof3_111",input="_input_1aof3_119",inputLabel="_inputLabel_1aof3_153",selectWrapper="_selectWrapper_1aof3_157",select="_select_1aof3_157",selectLabel="_selectLabel_1aof3_203",styles={container:container$1,body,intro,footer,footnote,containerWithFootnote,startChatButton,spinner,formFields,formField,radio,checkbox,input,inputLabel,selectWrapper,select,selectLabel},Checkbox=({name:t,label:i,defaultValue:u,required:c,onChange:d})=>{const m=g=>{d(g.currentTarget.checked?"true":"false")};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:u==="true",required:c,onChange:m}),jsxRuntimeExports.jsx("div",{children:i})]})},Input=({type:t,name:i,label:u,defaultValue:c,placeholder:d,required:m,multiple:g,min:_,max:y,pattern:v,onChange:S})=>{const A=T=>{S(T.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.input,"chat__startScreen__input"),htmlFor:i,children:[jsxRuntimeExports.jsx("div",{className:clsx(styles.inputLabel),children:u}),jsxRuntimeExports.jsx("input",{type:t,id:i,name:i,defaultValue:c,placeholder:d,required:m,multiple:g,min:_,max:y,pattern:v,onChange:A})]})},Radio=({name:t,value:i,label:u,defaultChecked:c,required:d,onChange:m})=>{const g=`${t}-${i}`,_=y=>{m(y.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.radio,"chat__startScreen__radio"),htmlFor:g,children:[jsxRuntimeExports.jsx("input",{id:g,type:"radio",name:t,value:i,defaultChecked:c,required:d,onChange:_}),jsxRuntimeExports.jsx("span",{className:clsx(styles.label),children:u})]})},Select=({name:t,label:i,defaultValue:u,required:c,multiple:d,options:m,onChange:g})=>{const _=y=>{g(y.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.select,"chat__startScreen__select"),htmlFor:t,children:[jsxRuntimeExports.jsx("div",{className:clsx(styles.selectLabel),children:i}),jsxRuntimeExports.jsx("div",{className:clsx(styles.selectWrapper),children:jsxRuntimeExports.jsx("select",{id:t,name:t,defaultValue:u,required:c,multiple:d,onChange:_,children:Object.entries(m||{}).map(([y,v])=>jsxRuntimeExports.jsx("option",{value:y,selected:v===u,children:v}))})})]})},INTRO_KEY="start-screen.intro",START_CHAT_KEY="start-screen.start-chat",WAITING_FOR_LOGIN_KEY="start-screen.waiting-for-login",FOOTNOTE_KEY="start-screen.footnote",FORM_KEY="start-screen.form",FORM_FIELDS_KEY=`${FORM_KEY}.fields`,StartScreen=()=>{const t=useTranslation(),i=useAppDispatch(),u=useClientName(),c=useAppSelector(N=>N.startScreen.loginRequestToken),d=useAppSelector(N=>N.settings.requiresUserAuthentication);reactExports.useEffect(()=>{let N;if(c){const j=window.screenX+(window.outerWidth-600)/2,M=window.screenY+(window.outerHeight-700)/2,k=window.open(`/${u}/auth/login?loginRequestToken=${c}`,"Login",`width=600,height=700,left=${j},top=${M},resizable=yes,scrollbars=yes`);N=setInterval(()=>{k?.closed&&(i(loginWindowClosed()),clearInterval(N))},500)}return()=>{N&&clearInterval(N)}},[u,c,i]);const[m,g]=reactExports.useState({}),_=()=>{const N=Object.entries(m).reduce((R,[w,j])=>({...R,[w]:j.value}),{});i(d?requestLogin({loginRequestToken:v4(),formValues:N}):startChat$1({formValues:N}))},y=t(INTRO_KEY),v=t(c?WAITING_FOR_LOGIN_KEY:START_CHAT_KEY),S=t(FOOTNOTE_KEY),A=reactExports.useMemo(()=>t(FORM_FIELDS_KEY)?.split(";").map(N=>N.trim())??[],[t(FORM_FIELDS_KEY)]);reactExports.useEffect(()=>{A.length&&Object.keys(m).length===0&&g(A.reduce((N,R)=>({...N,[R]:toFormField(R,t)}),{}))},[t,A,m]);const T=N=>{N.preventDefault(),_()},D=N=>R=>{g(w=>({...w,[N]:{...w[N],value:R}}))};return jsxRuntimeExports.jsxs("form",{onSubmit:T,className:clsx(styles.container,S&&styles.containerWithFootnote,"chat__startScreen"),children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles.body,"chat__startScreen__body"),children:[y&&jsxRuntimeExports.jsx("div",{className:clsx(styles.intro,"chat__startScreen__intro"),children:jsxRuntimeExports.jsx(EY,{options:{overrides:{a:Link}},children:y})}),jsxRuntimeExports.jsx("div",{className:clsx(styles.formFields,"chat__startScreen__fields"),children:Object.values(m).map(({type:N,name:R,label:w,placeholder:j,defaultValue:M,options:k,required:G,multiple:Z,min:F,max:P,pattern:W})=>jsxRuntimeExports.jsx("div",{className:clsx(styles.formField,"chat__startScreen__field"),children:(()=>{switch(N){case"radio":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:w}),Object.entries(k||{}).map(([J,ne])=>jsxRuntimeExports.jsx(Radio,{name:R,value:J,label:ne,defaultChecked:J===M,required:G,onChange:D(R)},J))]});case"checkbox":return jsxRuntimeExports.jsx(Checkbox,{name:R,label:w,defaultValue:M,required:G,onChange:D(R)});case"select":return jsxRuntimeExports.jsx(Select,{name:R,label:w,defaultValue:M,required:G,multiple:Z,options:k,onChange:D(R)});default:return jsxRuntimeExports.jsx(Input,{type:N,name:R,label:w,placeholder:j,defaultValue:M,required:G,multiple:Z,min:F,max:P,pattern:W,onChange:D(R)})}})()},R))})]}),jsxRuntimeExports.jsxs("div",{className:clsx(styles.footer,"chat__startScreen__footer"),children:[jsxRuntimeExports.jsxs(PrimaryButton,{type:"submit",className:styles.startChatButton,disabled:!!c,children:[!!c&&jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:styles.spinner,children:jsxRuntimeExports.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"})}),jsxRuntimeExports.jsx("div",{children:v})]}),S&&jsxRuntimeExports.jsx("div",{className:styles.footnote,children:jsxRuntimeExports.jsx(EY,{options:{overrides:{a:Link}},children:S})})]})]})},Link=({title:t,href:i,children:u})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:u}),toFormField=(t,i)=>{const u=i(`${FORM_KEY}.${t}.type`)||"text",c=i(`${FORM_KEY}.${t}.required`)==="true",d=i(`${FORM_KEY}.${t}.multiple`)==="true",m=i(`${FORM_KEY}.${t}.placeholder`),g=i(`${FORM_KEY}.${t}.label`)||"",_=i(`${FORM_KEY}.${t}.defaultValue`),y=i(`${FORM_KEY}.${t}.min`),v=i(`${FORM_KEY}.${t}.max`),S=i(`${FORM_KEY}.${t}.pattern`),A=toFormFieldOptions(i(`${FORM_KEY}.${t}.options`));return{name:t,label:g,placeholder:m,value:getTypeSpecificValue(u,_,A)||"",defaultValue:_,options:A,type:u,required:c,multiple:d,min:y,max:v,pattern:S}},getTypeSpecificValue=(t,i,u)=>i||t==="select"&&Object.keys(u)[0]||"",toFormFieldOptions=(t="")=>t.split(";").map(i=>i.trim()).reduce((i,u)=>{const[c,d]=u.split(":").map(m=>m.trim());return{...i,[c]:d}},{}),useSetDocumentLanguageEffect=()=>{const t=useAppSelector(i=>i.intl.locale);reactExports.useEffect(()=>{window.document.documentElement.lang=t},[t])},INCOMMING_EVENTS={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"},RootScene=({clientName:t})=>{useSetDocumentLanguageEffect();const i=useAppDispatch(),u=useAppSelector(S=>S.intl.messages),c=useTranslation(),d=useAppSelector(S=>S.settings.enableStartScreen),m=useAppSelector(S=>S.startScreen.startScreenStatus),g=useAppSelector(S=>S.connection.queryString),_=reactExports.useMemo(()=>new URLSearchParams(g||"?").get("cssClassName"),[g]);reactExports.useEffect(()=>{const S=new URLSearchParams(g||""),A=Object.fromEntries(S.entries()),T=D=>{switch(D.data.type){case INCOMMING_EVENTS.TRIGGER_ACTION:i(D.data.action);break;case INCOMMING_EVENTS.TRIGGER_STORY:i(requestNLUEvent(D.data.story));break;case INCOMMING_EVENTS.ON_CHAT_WINDOW_OPEN:i({type:"webclient.chatwindow.opened"});break;case INCOMMING_EVENTS.ON_CHAT_WINDOW_CLOSE:i({type:"webclient.chatwindow.closed"});break;case INCOMMING_EVENTS.CHAT_MESSAGE_FROM_GUEST:i(sendMessageFromUser(D.data.text));break;case INCOMMING_EVENTS.RESTART_CHAT:i(restartChat());break}};return i(connect(t,A)),window.addEventListener("message",D=>T(D),!1),()=>window.removeEventListener("message",T)},[t,g,i]),reactExports.useEffect(()=>{const S=c("page.title");S&&document&&(document.title=S)},[u,c]);const y=d===void 0,v=d===!1||m==="HIDDEN";return jsxRuntimeExports.jsx("div",{className:clsx(styles$2.chatwindow,v&&styles$2.chatwindowWithAside,"chat__chatwindow",_),children:y?null:v?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("header",{children:jsxRuntimeExports.jsx(Header$1,{chatStarted:!0})}),jsxRuntimeExports.jsx("main",{children:jsxRuntimeExports.jsx(Chat,{clientName:t})}),jsxRuntimeExports.jsx("aside",{children:jsxRuntimeExports.jsx(SourceInfos,{})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("header",{children:jsxRuntimeExports.jsx(Header$1,{chatStarted:!1})}),jsxRuntimeExports.jsx("main",{children:jsxRuntimeExports.jsx(StartScreen,{})})]})})},App=()=>{const t=useClientName(),i=useIsSmallScreen();return jsxRuntimeExports.jsx("div",{className:clsx([styles$o.app,i?"chat__small":"chat__large"]),children:jsxRuntimeExports.jsx(RootScene,{clientName:t})})},de={"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.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
119
-
120
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
121
- - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},en={"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.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
122
-
123
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
124
- - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"};function flattenObject(t,i="",u="."){const c={};for(const d in t)if(Object.prototype.hasOwnProperty.call(t,d)){const m=t[d],g=i?`${i}${u}${d}`:d;m!==null&&typeof m=="object"&&!Array.isArray(m)?Object.assign(c,flattenObject(m,g,u)):c[g]=String(m)}return c}const fr={"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.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
125
-
126
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
127
- - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},it={"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.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
128
-
129
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
130
- - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},supportedLocales=["de","en","fr","it"],initialState$3={locale:"de",messages:de},mergeMessages=(t,i)=>{if(supportedLocales.includes(t)){const u=getMessagesByLanguage(t),c=flattenObject(i);return{...u,...c}}return i},getMessagesByLanguage=t=>{switch(t.toString()){case"en":return en;case"fr":return fr;case"it":return it;default:return de}},backendConnectionReducer=(t=initialState$2,i)=>{switch(i.type){case CONNECTING:return Object.assign({},t,{connectionState:ConnectionStateEnum.CONNECTING});case CONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.CONNECTED});case DISCONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.DISCONNECTED});case RECONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.RECONNECTED});case RESTORE_SESSION_ID:return Object.assign({},t,{sessionId:i.sessionId});case START:return Object.assign({},t,{sessionId:i.payload.sessionId,userId:i.payload.userId});case TERMINATE_SESSION:return Object.assign({},t,{sessionId:void 0});default:return t}},initialState$2={connectionState:ConnectionStateEnum.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},chatReducer=(t=initialState$1,i)=>{switch(i.type){case RESET_CHAT_STATE:return initialState$1;case START:return sendToParentPage({type:"webclient.chat.started"}),t;case TERMINATE_SESSION:return sendToParentPage({type:"webclient.chat.ended"}),t;case TYPING_ON:return Object.assign({},t,{isBotTyping:!0});case TYPING_OFF:return Object.assign({},t,{isBotTyping:!1});case MESSAGE_FROM_GUEST:case MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return appendMessageFromGuestToState(t,i.message);case MESSAGE_TO_GUEST:{sendToParentPage(i);const u=Object.assign({},i.message,{_id:i.meta.actionId}),c=t.messages.filter(d=>d._id===i.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:c?t.messages:t.messages.concat([u]),quickReplies:u.quickReplies?u.quickReplies:[]})}case RESTORE_PREVIOUS_CHAT_MESSAGES:{const u=i.messages,c=u.length?u[u.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:u,quickReplies:c?.quickReplies||[]})}case MESSAGE_TO_PARENT_PAGE:return sendToParentPage(i.message),t;case EVENT_TO_GUEST:return sendToParentPage(i.event),t;case DRAWER_OPEN:return Object.assign({},t,{drawerContentUrl:i.payload.parameters.contentUrl});case DRAWER_CLOSE:return Object.assign({},t,{drawerContentUrl:void 0});case GUEST_LOCALE_CHANGED:return Object.assign({},t,{locale:i.payload.locale});case EXPAND_WINDOW:return sendToParentPage(i),t;case CLOSE_WINDOW:return sendToParentPage(i),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case RECEIVE_SPEECH_TRANSCRIPTION:{const u=new TextMessage$1(i.transcription,new GuestUser),c=Object.assign({},u,{_id:v4()});return appendMessageFromGuestToState(t,c)}case TRANSCRIPT_ITEM_GUEST_REACTION:{const u=t.messages.map(c=>c._id===i.payload.actionId?Object.assign({},c,i.payload.reaction?{reaction:{type:i.payload.reaction,category:i.payload.category,comment:i.payload.comment}}:{reaction:void 0}):c);return Object.assign({},t,{messages:u})}case ENABLE_CONVERSATION_RATING:{const u={enabled:!0,rating:i.payload.rating};return Object.assign({},t,{conversationRating:u})}case CONVERSATION_RATING_FROM_GUEST:{const u={...t.conversationRating,rating:i.payload};return Object.assign({},t,{conversationRating:u})}case SHOW_CONVERSATION_RATING_OVERLAY:{const u={...t.conversationRating,opener:i.payload.opener,...i.payload.defaultRating?{rating:{value:i.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:u})}case HIDE_CONVERSATION_RATING_OVERLAY:{const u={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:u})}case LOAD_SOURCE_INFOS_REQUEST:return{...t,sourceInfos:{type:"loading",chunkId:i.payload.chunkId}};case LOAD_SOURCE_INFOS_ERROR:{const{highlighted:u}=i.payload;return t.sourceInfos?.type==="loaded"&&u?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case LOAD_SOURCE_INFOS_RESPONSE:{const u=t.sourceInfos?.type,{chunkId:c,knowledgeBaseType:d,title:m,content:g,highlighted:_,url:y}=i.payload,v=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return v&&v!==c?t:u==="loading"||u==="loaded"&&_?{...t,sourceInfos:{type:"loaded",chunkId:c,knowledgeBaseType:d,title:m,content:g,highlighted:_,url:y}}:t}case CLOSE_SOURCE_INFOS:return{...t,sourceInfos:void 0};case TOGGLE_TRANSCRIPT_MAIL_OVERLAY:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},appendMessageFromGuestToState=(t,i)=>{const u=t.messages[t.messages.length-1],c=u?.text===i.text;return u&&u.sender.type===i.sender.type&&c?t:Object.assign({},t,{messages:t.messages.concat([i]),quickReplies:[]})},sendToParentPage=t=>{isIframe()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},isIframe=()=>typeof window<"u"&&window.self!==window.top,initialState$1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},counterSlice=createSlice({name:"intl",initialState:initialState$3,reducers:{updateIntl:(t,i)=>{t.locale=i.payload.language,t.messages=i.payload.messages}}}),{updateIntl}=counterSlice.actions,intlReducer=counterSlice.reducer,initialState={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},settingsSlice=createSlice({name:"settings",initialState,reducers:{setSettings(t,i){t.version&&t.version!==i.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=i.payload.version,t.requiresUserAuthentication=i.payload.requiresUserAuthentication,t.enableStartScreen=i.payload.enableStartScreen,t.enableStandaloneView=i.payload.enableStandaloneView,t.enableTranscriptExportEmail=i.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=i.payload.enableTranscriptExportPdf,t.enableGeneralConditions=i.payload.enableGeneralConditions,t.enableSpeechSupport=i.payload.enableSpeechSupport,t.commands=i.payload.commands,t.menuItems=i.payload.menuItems||[])}}}),{setSettings}=settingsSlice.actions,settingsSlice$1=settingsSlice.reducer,rootReducer=combineReducers({settings:settingsSlice$1,chat:chatReducer,startScreen:startScreenReducer,connection:backendConnectionReducer,intl:intlReducer}),LOCAL_STORAGE_ITEM_PREFIX="bubble-chat",LOCAL_STORAGE_LAST_SAVED_ITEM_NAME="state-last-saved-at",LOCAL_STORAGE_STATE_ITEM_NAME="state",loadState=t=>{try{if(!supportsLocalStorage())return;const i=getStoreItem(t,LOCAL_STORAGE_LAST_SAVED_ITEM_NAME);if(isExpired(i))return;{const u=getStoreItem(t,LOCAL_STORAGE_STATE_ITEM_NAME);if(u===null)return;const c=JSON.parse(u),d=c.connection?.queryString;if(d!==void 0&&d!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return c}}catch(i){console.error(i);return}},saveState=(t,i)=>{try{const u=JSON.stringify(i);setStoreItem(t,LOCAL_STORAGE_STATE_ITEM_NAME,u);const c=new Date().toISOString();setStoreItem(t,LOCAL_STORAGE_LAST_SAVED_ITEM_NAME,c)}catch(u){console.error(u)}},isExpired=t=>{if(t===null)return!1;const i=new Date(t);return i.setHours(i.getHours()+12),new Date>i},supportsLocalStorage=()=>typeof localStorage<"u",getStoreItem=(t,i)=>{const u=getStoreItemName(t,i);return localStorage.getItem(u)},setStoreItem=(t,i,u)=>{const c=getStoreItemName(t,i);return localStorage.setItem(c,u)},getStoreItemName=(t,i)=>`${LOCAL_STORAGE_ITEM_PREFIX}-${t}-${i}`,PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(t=>{PACKET_TYPES_REVERSE[PACKET_TYPES[t]]=t});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,encodePacket=({type:t,data:i},u,c)=>withNativeBlob$1&&i instanceof Blob?u?c(i):encodeBlobAsBase64(i,c):withNativeArrayBuffer$2&&(i instanceof ArrayBuffer||isView$1(i))?u?c(i):encodeBlobAsBase64(new Blob([i]),c):c(PACKET_TYPES[t]+(i||"")),encodeBlobAsBase64=(t,i)=>{const u=new FileReader;return u.onload=function(){const c=u.result.split(",")[1];i("b"+(c||""))},u.readAsDataURL(t)};function toArray(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(t,i){if(withNativeBlob$1&&t.data instanceof Blob)return t.data.arrayBuffer().then(toArray).then(i);if(withNativeArrayBuffer$2&&(t.data instanceof ArrayBuffer||isView$1(t.data)))return i(toArray(t.data));encodePacket(t,!1,u=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),i(TEXT_ENCODER.encode(u))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<chars.length;t++)lookup$1[chars.charCodeAt(t)]=t;const decode$1=t=>{let i=t.length*.75,u=t.length,c,d=0,m,g,_,y;t[t.length-1]==="="&&(i--,t[t.length-2]==="="&&i--);const v=new ArrayBuffer(i),S=new Uint8Array(v);for(c=0;c<u;c+=4)m=lookup$1[t.charCodeAt(c)],g=lookup$1[t.charCodeAt(c+1)],_=lookup$1[t.charCodeAt(c+2)],y=lookup$1[t.charCodeAt(c+3)],S[d++]=m<<2|g>>4,S[d++]=(g&15)<<4|_>>2,S[d++]=(_&3)<<6|y&63;return v},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(t,i)=>{if(typeof t!="string")return{type:"message",data:mapBinary(t,i)};const u=t.charAt(0);return u==="b"?{type:"message",data:decodeBase64Packet(t.substring(1),i)}:PACKET_TYPES_REVERSE[u]?t.length>1?{type:PACKET_TYPES_REVERSE[u],data:t.substring(1)}:{type:PACKET_TYPES_REVERSE[u]}:ERROR_PACKET},decodeBase64Packet=(t,i)=>{if(withNativeArrayBuffer$1){const u=decode$1(t);return mapBinary(u,i)}else return{base64:!0,data:t}},mapBinary=(t,i)=>{switch(i){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},SEPARATOR="",encodePayload=(t,i)=>{const u=t.length,c=new Array(u);let d=0;t.forEach((m,g)=>{encodePacket(m,!1,_=>{c[g]=_,++d===u&&i(c.join(SEPARATOR))})})},decodePayload=(t,i)=>{const u=t.split(SEPARATOR),c=[];for(let d=0;d<u.length;d++){const m=decodePacket(u[d],i);if(c.push(m),m.type==="error")break}return c};function createPacketEncoderStream(){return new TransformStream({transform(t,i){encodePacketToBinary(t,u=>{const c=u.length;let d;if(c<126)d=new Uint8Array(1),new DataView(d.buffer).setUint8(0,c);else if(c<65536){d=new Uint8Array(3);const m=new DataView(d.buffer);m.setUint8(0,126),m.setUint16(1,c)}else{d=new Uint8Array(9);const m=new DataView(d.buffer);m.setUint8(0,127),m.setBigUint64(1,BigInt(c))}t.data&&typeof t.data!="string"&&(d[0]|=128),i.enqueue(d),i.enqueue(u)})}})}let TEXT_DECODER;function totalLength(t){return t.reduce((i,u)=>i+u.length,0)}function concatChunks(t,i){if(t[0].length===i)return t.shift();const u=new Uint8Array(i);let c=0;for(let d=0;d<i;d++)u[d]=t[0][c++],c===t[0].length&&(t.shift(),c=0);return t.length&&c<t[0].length&&(t[0]=t[0].slice(c)),u}function createPacketDecoderStream(t,i){TEXT_DECODER||(TEXT_DECODER=new TextDecoder);const u=[];let c=0,d=-1,m=!1;return new TransformStream({transform(g,_){for(u.push(g);;){if(c===0){if(totalLength(u)<1)break;const y=concatChunks(u,1);m=(y[0]&128)===128,d=y[0]&127,d<126?c=3:d===126?c=1:c=2}else if(c===1){if(totalLength(u)<2)break;const y=concatChunks(u,2);d=new DataView(y.buffer,y.byteOffset,y.length).getUint16(0),c=3}else if(c===2){if(totalLength(u)<8)break;const y=concatChunks(u,8),v=new DataView(y.buffer,y.byteOffset,y.length),S=v.getUint32(0);if(S>Math.pow(2,21)-1){_.enqueue(ERROR_PACKET);break}d=S*Math.pow(2,32)+v.getUint32(4),c=3}else{if(totalLength(u)<d)break;const y=concatChunks(u,d);_.enqueue(decodePacket(m?y:TEXT_DECODER.decode(y),i)),c=0}if(d===0||d>t){_.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(t){if(t)return mixin(t)}function mixin(t){for(var i in Emitter.prototype)t[i]=Emitter.prototype[i];return t}Emitter.prototype.on=Emitter.prototype.addEventListener=function(t,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(i),this};Emitter.prototype.once=function(t,i){function u(){this.off(t,u),i.apply(this,arguments)}return u.fn=i,this.on(t,u),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(t,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var u=this._callbacks["$"+t];if(!u)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var c,d=0;d<u.length;d++)if(c=u[d],c===i||c.fn===i){u.splice(d,1);break}return u.length===0&&delete this._callbacks["$"+t],this};Emitter.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),u=this._callbacks["$"+t],c=1;c<arguments.length;c++)i[c-1]=arguments[c];if(u){u=u.slice(0);for(var c=0,d=u.length;c<d;++c)u[c].apply(this,i)}return this};Emitter.prototype.emitReserved=Emitter.prototype.emit;Emitter.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Emitter.prototype.hasListeners=function(t){return!!this.listeners(t).length};const nextTick=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,u)=>u(i,0),globalThisShim=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),defaultBinaryType="arraybuffer";function createCookieJar(){}function pick(t,...i){return i.reduce((u,c)=>(t.hasOwnProperty(c)&&(u[c]=t[c]),u),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(t,i){i.useNativeTimers?(t.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),t.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(t.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),t.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(t){return typeof t=="string"?utf8Length(t):Math.ceil((t.byteLength||t.size)*BASE64_OVERHEAD)}function utf8Length(t){let i=0,u=0;for(let c=0,d=t.length;c<d;c++)i=t.charCodeAt(c),i<128?u+=1:i<2048?u+=2:i<55296||i>=57344?u+=3:(c++,u+=4);return u}function randomString(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function encode(t){let i="";for(let u in t)t.hasOwnProperty(u)&&(i.length&&(i+="&"),i+=encodeURIComponent(u)+"="+encodeURIComponent(t[u]));return i}function decode(t){let i={},u=t.split("&");for(let c=0,d=u.length;c<d;c++){let m=u[c].split("=");i[decodeURIComponent(m[0])]=decodeURIComponent(m[1])}return i}class TransportError extends Error{constructor(i,u,c){super(i),this.description=u,this.context=c,this.type="TransportError"}}class Transport extends Emitter{constructor(i){super(),this.writable=!1,installTimerFunctions(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,u,c){return super.emitReserved("error",new TransportError(i,u,c)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const u=decodePacket(i,this.socket.binaryType);this.onPacket(u)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,u={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(u)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const u=encode(i);return u.length?"?"+u:""}}class Polling extends Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const u=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let c=0;this._polling&&(c++,this.once("pollComplete",function(){--c||u()})),this.writable||(c++,this.once("drain",function(){--c||u()}))}else u()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const u=c=>{if(this.readyState==="opening"&&c.type==="open"&&this.onOpen(),c.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(c)};decodePayload(i,this.socket.binaryType).forEach(u),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,encodePayload(i,u=>{this.doWrite(u,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",u=this.query||{};return this.opts.timestampRequests!==!1&&(u[this.opts.timestampParam]=randomString()),!this.supportsBinary&&!u.sid&&(u.b64=1),this.createUri(i,u)}}let value=!1;try{value=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(t){}const hasCORS=value;function empty(){}class BaseXHR extends Polling{constructor(i){if(super(i),typeof location<"u"){const u=location.protocol==="https:";let c=location.port;c||(c=u?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||c!==i.port}}doWrite(i,u){const c=this.request({method:"POST",data:i});c.on("success",u),c.on("error",(d,m)=>{this.onError("xhr post error",d,m)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(u,c)=>{this.onError("xhr poll error",u,c)}),this.pollXhr=i}}class Request extends Emitter{constructor(i,u,c){super(),this.createRequest=i,installTimerFunctions(this,c),this._opts=c,this._method=c.method||"GET",this._uri=u,this._data=c.data!==void 0?c.data:null,this._create()}_create(){var i;const u=pick(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");u.xdomain=!!this._opts.xd;const c=this._xhr=this.createRequest(u);try{c.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){c.setDisableHeaderCheck&&c.setDisableHeaderCheck(!0);for(let d in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(d)&&c.setRequestHeader(d,this._opts.extraHeaders[d])}}catch{}if(this._method==="POST")try{c.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{c.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(c),"withCredentials"in c&&(c.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(c.timeout=this._opts.requestTimeout),c.onreadystatechange=()=>{var d;c.readyState===3&&((d=this._opts.cookieJar)===null||d===void 0||d.parseCookies(c.getResponseHeader("set-cookie"))),c.readyState===4&&(c.status===200||c.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof c.status=="number"?c.status:0)},0))},c.send(this._data)}catch(d){this.setTimeoutFn(()=>{this._onError(d)},0);return}typeof document<"u"&&(this._index=Request.requestsCount++,Request.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=empty,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const t="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(t,unloadHandler,!1)}}function unloadHandler(){for(let t in Request.requests)Request.requests.hasOwnProperty(t)&&Request.requests[t].abort()}const hasXHR2=(function(){const t=newRequest({xdomain:!1});return t&&t.responseType!==null})();class XHR extends BaseXHR{constructor(i){super(i);const u=i&&i.forceBase64;this.supportsBinary=hasXHR2&&!u}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Request(newRequest,this.uri(),i)}}function newRequest(t){const i=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class BaseWS extends Transport{get name(){return"websocket"}doOpen(){const i=this.uri(),u=this.opts.protocols,c=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(c.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,u,c)}catch(d){return this.emitReserved("error",d)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let u=0;u<i.length;u++){const c=i[u],d=u===i.length-1;encodePacket(c,this.supportsBinary,m=>{try{this.doWrite(c,m)}catch{}d&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",u=this.query||{};return this.opts.timestampRequests&&(u[this.opts.timestampParam]=randomString()),this.supportsBinary||(u.b64=1),this.createUri(i,u)}}const WebSocketCtor=globalThisShim.WebSocket||globalThisShim.MozWebSocket;class WS extends BaseWS{createSocket(i,u,c){return isReactNative?new WebSocketCtor(i,u,c):u?new WebSocketCtor(i,u):new WebSocketCtor(i)}doWrite(i,u){this.ws.send(u)}}class WT extends Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const u=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=i.readable.pipeThrough(u).getReader(),d=createPacketEncoderStream();d.readable.pipeTo(i.writable),this._writer=d.writable.getWriter();const m=()=>{c.read().then(({done:_,value:y})=>{_||(this.onPacket(y),m())}).catch(_=>{})};m();const g={type:"open"};this.query.sid&&(g.data=`{"sid":"${this.query.sid}"}`),this._writer.write(g).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let u=0;u<i.length;u++){const c=i[u],d=u===i.length-1;this._writer.write(c).then(()=>{d&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const transports={websocket:WS,webtransport:WT,polling:XHR},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(t){if(t.length>8e3)throw"URI too long";const i=t,u=t.indexOf("["),c=t.indexOf("]");u!=-1&&c!=-1&&(t=t.substring(0,u)+t.substring(u,c).replace(/:/g,";")+t.substring(c,t.length));let d=re.exec(t||""),m={},g=14;for(;g--;)m[parts[g]]=d[g]||"";return u!=-1&&c!=-1&&(m.source=i,m.host=m.host.substring(1,m.host.length-1).replace(/;/g,":"),m.authority=m.authority.replace("[","").replace("]","").replace(/;/g,":"),m.ipv6uri=!0),m.pathNames=pathNames(m,m.path),m.queryKey=queryKey(m,m.query),m}function pathNames(t,i){const u=/\/{2,9}/g,c=i.replace(u,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&c.splice(0,1),i.slice(-1)=="/"&&c.splice(c.length-1,1),c}function queryKey(t,i){const u={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,d,m){d&&(u[d]=m)}),u}const withEventListeners=typeof addEventListener=="function"&&typeof removeEventListener=="function",OFFLINE_EVENT_LISTENERS=[];withEventListeners&&addEventListener("offline",()=>{OFFLINE_EVENT_LISTENERS.forEach(t=>t())},!1);class SocketWithoutUpgrade extends Emitter{constructor(i,u){if(super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(u=i,i=null),i){const c=parse(i);u.hostname=c.host,u.secure=c.protocol==="https"||c.protocol==="wss",u.port=c.port,c.query&&(u.query=c.query)}else u.host&&(u.hostname=parse(u.host).host);installTimerFunctions(this,u),this.secure=u.secure!=null?u.secure:typeof location<"u"&&location.protocol==="https:",u.hostname&&!u.port&&(u.port=this.secure?"443":"80"),this.hostname=u.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=u.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},u.transports.forEach(c=>{const d=c.prototype.name;this.transports.push(d),this._transportsByName[d]=c}),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},u),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),withEventListeners&&(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"})},OFFLINE_EVENT_LISTENERS.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const u=Object.assign({},this.opts.query);u.EIO=protocol$1,u.transport=i,this.id&&(u.sid=this.id);const c=Object.assign({},this.opts,{query:u,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](c)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&SocketWithoutUpgrade.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const u=this.createTransport(i);u.open(),this.setTransport(u)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",u=>this._onClose("transport close",u))}onOpen(){this.readyState="open",SocketWithoutUpgrade.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const u=new Error("server error");u.code=i.data,this._onError(u);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),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 i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let u=1;for(let c=0;c<this.writeBuffer.length;c++){const d=this.writeBuffer[c].data;if(d&&(u+=byteLength(d)),c>0&&u>this._maxPayload)return this.writeBuffer.slice(0,c);u+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,nextTick(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,u,c){return this._sendPacket("message",i,u,c),this}send(i,u,c){return this._sendPacket("message",i,u,c),this}_sendPacket(i,u,c,d){if(typeof u=="function"&&(d=u,u=void 0),typeof c=="function"&&(d=c,c=null),this.readyState==="closing"||this.readyState==="closed")return;c=c||{},c.compress=c.compress!==!1;const m={type:i,data:u,options:c};this.emitReserved("packetCreate",m),this.writeBuffer.push(m),d&&this.once("flush",d),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},u=()=>{this.off("upgrade",u),this.off("upgradeError",u),i()},c=()=>{this.once("upgrade",u),this.once("upgradeError",u)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?c():i()}):this.upgrading?c():i()),this}_onError(i){if(SocketWithoutUpgrade.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,u){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(),withEventListeners&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const c=OFFLINE_EVENT_LISTENERS.indexOf(this._offlineEventListener);c!==-1&&OFFLINE_EVENT_LISTENERS.splice(c,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,u),this.writeBuffer=[],this._prevBufferLen=0}}}SocketWithoutUpgrade.protocol=protocol$1;class SocketWithUpgrade extends SocketWithoutUpgrade{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let u=this.createTransport(i),c=!1;SocketWithoutUpgrade.priorWebsocketSuccess=!1;const d=()=>{c||(u.send([{type:"ping",data:"probe"}]),u.once("packet",A=>{if(!c)if(A.type==="pong"&&A.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",u),!u)return;SocketWithoutUpgrade.priorWebsocketSuccess=u.name==="websocket",this.transport.pause(()=>{c||this.readyState!=="closed"&&(S(),this.setTransport(u),u.send([{type:"upgrade"}]),this.emitReserved("upgrade",u),u=null,this.upgrading=!1,this.flush())})}else{const T=new Error("probe error");T.transport=u.name,this.emitReserved("upgradeError",T)}}))};function m(){c||(c=!0,S(),u.close(),u=null)}const g=A=>{const T=new Error("probe error: "+A);T.transport=u.name,m(),this.emitReserved("upgradeError",T)};function _(){g("transport closed")}function y(){g("socket closed")}function v(A){u&&A.name!==u.name&&m()}const S=()=>{u.removeListener("open",d),u.removeListener("error",g),u.removeListener("close",_),this.off("close",y),this.off("upgrading",v)};u.once("open",d),u.once("error",g),u.once("close",_),this.once("close",y),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{c||u.open()},200):u.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const u=[];for(let c=0;c<i.length;c++)~this.transports.indexOf(i[c])&&u.push(i[c]);return u}}let Socket$1=class extends SocketWithUpgrade{constructor(i,u={}){const c=typeof i=="object"?i:u;(!c.transports||c.transports&&typeof c.transports[0]=="string")&&(c.transports=(c.transports||["polling","websocket","webtransport"]).map(d=>transports[d]).filter(d=>!!d)),super(i,c)}};function url(t,i="",u){let c=t;u=u||typeof location<"u"&&location,t==null&&(t=u.protocol+"//"+u.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=u.protocol+t:t=u.host+t),/^(https?|wss?):\/\//.test(t)||(typeof u<"u"?t=u.protocol+"//"+t:t="https://"+t),c=parse(t)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const m=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+m+":"+c.port+i,c.href=c.protocol+"://"+m+(u&&u.port===c.port?"":":"+c.port),c}const withNativeArrayBuffer=typeof ArrayBuffer=="function",isView=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(t){return withNativeArrayBuffer&&(t instanceof ArrayBuffer||isView(t))||withNativeBlob&&t instanceof Blob||withNativeFile&&t instanceof File}function hasBinary(t,i){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let u=0,c=t.length;u<c;u++)if(hasBinary(t[u]))return!0;return!1}if(isBinary(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return hasBinary(t.toJSON(),!0);for(const u in t)if(Object.prototype.hasOwnProperty.call(t,u)&&hasBinary(t[u]))return!0;return!1}function deconstructPacket(t){const i=[],u=t.data,c=t;return c.data=_deconstructPacket(u,i),c.attachments=i.length,{packet:c,buffers:i}}function _deconstructPacket(t,i){if(!t)return t;if(isBinary(t)){const u={_placeholder:!0,num:i.length};return i.push(t),u}else if(Array.isArray(t)){const u=new Array(t.length);for(let c=0;c<t.length;c++)u[c]=_deconstructPacket(t[c],i);return u}else if(typeof t=="object"&&!(t instanceof Date)){const u={};for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&(u[c]=_deconstructPacket(t[c],i));return u}return t}function reconstructPacket(t,i){return t.data=_reconstructPacket(t.data,i),delete t.attachments,t}function _reconstructPacket(t,i){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<i.length)return i[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let u=0;u<t.length;u++)t[u]=_reconstructPacket(t[u],i);else if(typeof t=="object")for(const u in t)Object.prototype.hasOwnProperty.call(t,u)&&(t[u]=_reconstructPacket(t[u],i));return t}const RESERVED_EVENTS$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],protocol=5;var PacketType;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(PacketType||(PacketType={}));class Encoder{constructor(i){this.replacer=i}encode(i){return(i.type===PacketType.EVENT||i.type===PacketType.ACK)&&hasBinary(i)?this.encodeAsBinary({type:i.type===PacketType.EVENT?PacketType.BINARY_EVENT:PacketType.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let u=""+i.type;return(i.type===PacketType.BINARY_EVENT||i.type===PacketType.BINARY_ACK)&&(u+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(u+=i.nsp+","),i.id!=null&&(u+=i.id),i.data!=null&&(u+=JSON.stringify(i.data,this.replacer)),u}encodeAsBinary(i){const u=deconstructPacket(i),c=this.encodeAsString(u.packet),d=u.buffers;return d.unshift(c),d}}function isObject(t){return Object.prototype.toString.call(t)==="[object Object]"}class Decoder extends Emitter{constructor(i){super(),this.reviver=i}add(i){let u;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");u=this.decodeString(i);const c=u.type===PacketType.BINARY_EVENT;c||u.type===PacketType.BINARY_ACK?(u.type=c?PacketType.EVENT:PacketType.ACK,this.reconstructor=new BinaryReconstructor(u),u.attachments===0&&super.emitReserved("decoded",u)):super.emitReserved("decoded",u)}else if(isBinary(i)||i.base64)if(this.reconstructor)u=this.reconstructor.takeBinaryData(i),u&&(this.reconstructor=null,super.emitReserved("decoded",u));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let u=0;const c={type:Number(i.charAt(0))};if(PacketType[c.type]===void 0)throw new Error("unknown packet type "+c.type);if(c.type===PacketType.BINARY_EVENT||c.type===PacketType.BINARY_ACK){const m=u+1;for(;i.charAt(++u)!=="-"&&u!=i.length;);const g=i.substring(m,u);if(g!=Number(g)||i.charAt(u)!=="-")throw new Error("Illegal attachments");c.attachments=Number(g)}if(i.charAt(u+1)==="/"){const m=u+1;for(;++u&&!(i.charAt(u)===","||u===i.length););c.nsp=i.substring(m,u)}else c.nsp="/";const d=i.charAt(u+1);if(d!==""&&Number(d)==d){const m=u+1;for(;++u;){const g=i.charAt(u);if(g==null||Number(g)!=g){--u;break}if(u===i.length)break}c.id=Number(i.substring(m,u+1))}if(i.charAt(++u)){const m=this.tryParse(i.substr(u));if(Decoder.isPayloadValid(c.type,m))c.data=m;else throw new Error("invalid payload")}return c}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,u){switch(i){case PacketType.CONNECT:return isObject(u);case PacketType.DISCONNECT:return u===void 0;case PacketType.CONNECT_ERROR:return typeof u=="string"||isObject(u);case PacketType.EVENT:case PacketType.BINARY_EVENT:return Array.isArray(u)&&(typeof u[0]=="number"||typeof u[0]=="string"&&RESERVED_EVENTS$1.indexOf(u[0])===-1);case PacketType.ACK:case PacketType.BINARY_ACK:return Array.isArray(u)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class BinaryReconstructor{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const u=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),u}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const parser=Object.freeze(Object.defineProperty({__proto__:null,Decoder,Encoder,get PacketType(){return PacketType},protocol},Symbol.toStringTag,{value:"Module"}));function on(t,i,u){return t.on(i,u),function(){t.off(i,u)}}const RESERVED_EVENTS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Socket extends Emitter{constructor(i,u,c){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=i,this.nsp=u,c&&c.auth&&(this.auth=c.auth),this._opts=Object.assign({},c),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[on(i,"open",this.onopen.bind(this)),on(i,"packet",this.onpacket.bind(this)),on(i,"error",this.onerror.bind(this)),on(i,"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(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...u){var c,d,m;if(RESERVED_EVENTS.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(u.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(u),this;const g={type:PacketType.EVENT,data:u};if(g.options={},g.options.compress=this.flags.compress!==!1,typeof u[u.length-1]=="function"){const S=this.ids++,A=u.pop();this._registerAckCallback(S,A),g.id=S}const _=(d=(c=this.io.engine)===null||c===void 0?void 0:c.transport)===null||d===void 0?void 0:d.writable,y=this.connected&&!(!((m=this.io.engine)===null||m===void 0)&&m._hasPingExpired());return this.flags.volatile&&!_||(y?(this.notifyOutgoingListeners(g),this.packet(g)):this.sendBuffer.push(g)),this.flags={},this}_registerAckCallback(i,u){var c;const d=(c=this.flags.timeout)!==null&&c!==void 0?c:this._opts.ackTimeout;if(d===void 0){this.acks[i]=u;return}const m=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let _=0;_<this.sendBuffer.length;_++)this.sendBuffer[_].id===i&&this.sendBuffer.splice(_,1);u.call(this,new Error("operation has timed out"))},d),g=(..._)=>{this.io.clearTimeoutFn(m),u.apply(this,_)};g.withError=!0,this.acks[i]=g}emitWithAck(i,...u){return new Promise((c,d)=>{const m=(g,_)=>g?d(g):c(_);m.withError=!0,u.push(m),this.emit(i,...u)})}_addToQueue(i){let u;typeof i[i.length-1]=="function"&&(u=i.pop());const c={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((d,...m)=>(this._queue[0],d!==null?c.tryCount>this._opts.retries&&(this._queue.shift(),u&&u(d)):(this._queue.shift(),u&&u(null,...m)),c.pending=!1,this._drainQueue())),this._queue.push(c),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const u=this._queue[0];u.pending&&!i||(u.pending=!0,u.tryCount++,this.flags=u.flags,this.emit.apply(this,u.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,u){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,u),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(c=>String(c.id)===i)){const c=this.acks[i];delete this.acks[i],c.withError&&c.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case PacketType.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.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 PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(i);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(i);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const c=new Error(i.data.message);c.data=i.data.data,this.emitReserved("connect_error",c);break}}onevent(i){const u=i.data||[];i.id!=null&&u.push(this.ack(i.id)),this.connected?this.emitEvent(u):this.receiveBuffer.push(Object.freeze(u))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const u=this._anyListeners.slice();for(const c of u)c.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const u=this;let c=!1;return function(...d){c||(c=!0,u.packet({type:PacketType.ACK,id:i,data:d}))}}onack(i){const u=this.acks[i.id];typeof u=="function"&&(delete this.acks[i.id],u.withError&&i.data.unshift(null),u.apply(this,i.data))}onconnect(i,u){this.id=i,this.recovered=u&&this._pid===u,this._pid=u,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const u=this._anyListeners;for(let c=0;c<u.length;c++)if(i===u[c])return u.splice(c,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const u=this._anyOutgoingListeners;for(let c=0;c<u.length;c++)if(i===u[c])return u.splice(c,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const u=this._anyOutgoingListeners.slice();for(const c of u)c.apply(this,i.data)}}}function Backoff(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),u=Math.floor(i*this.jitter*t);t=(Math.floor(i*10)&1)==0?t-u:t+u}return Math.min(t,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(t){this.ms=t};Backoff.prototype.setMax=function(t){this.max=t};Backoff.prototype.setJitter=function(t){this.jitter=t};class Manager extends Emitter{constructor(i,u){var c;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(u=i,i=void 0),u=u||{},u.path=u.path||"/socket.io",this.opts=u,installTimerFunctions(this,u),this.reconnection(u.reconnection!==!1),this.reconnectionAttempts(u.reconnectionAttempts||1/0),this.reconnectionDelay(u.reconnectionDelay||1e3),this.reconnectionDelayMax(u.reconnectionDelayMax||5e3),this.randomizationFactor((c=u.randomizationFactor)!==null&&c!==void 0?c:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(u.timeout==null?2e4:u.timeout),this._readyState="closed",this.uri=i;const d=u.parser||parser;this.encoder=new d.Encoder,this.decoder=new d.Decoder,this._autoConnect=u.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var u;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(u=this.backoff)===null||u===void 0||u.setMin(i),this)}randomizationFactor(i){var u;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(u=this.backoff)===null||u===void 0||u.setJitter(i),this)}reconnectionDelayMax(i){var u;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(u=this.backoff)===null||u===void 0||u.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const u=this.engine,c=this;this._readyState="opening",this.skipReconnect=!1;const d=on(u,"open",function(){c.onopen(),i&&i()}),m=_=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",_),i?i(_):this.maybeReconnectOnOpen()},g=on(u,"error",m);if(this._timeout!==!1){const _=this._timeout,y=this.setTimeoutFn(()=>{d(),m(new Error("timeout")),u.close()},_);this.opts.autoUnref&&y.unref(),this.subs.push(()=>{this.clearTimeoutFn(y)})}return this.subs.push(d),this.subs.push(g),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(on(i,"ping",this.onping.bind(this)),on(i,"data",this.ondata.bind(this)),on(i,"error",this.onerror.bind(this)),on(i,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(u){this.onclose("parse error",u)}}ondecoded(i){nextTick(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,u){let c=this.nsps[i];return c?this._autoConnect&&!c.active&&c.connect():(c=new Socket(this,i,u),this.nsps[i]=c),c}_destroy(i){const u=Object.keys(this.nsps);for(const c of u)if(this.nsps[c].active)return;this._close()}_packet(i){const u=this.encoder.encode(i);for(let c=0;c<u.length;c++)this.engine.write(u[c],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,u){var c;this.cleanup(),(c=this.engine)===null||c===void 0||c.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,u),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const u=this.backoff.duration();this._reconnecting=!0;const c=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(d=>{d?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",d)):i.onreconnect()}))},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const cache={};function lookup(t,i){typeof t=="object"&&(i=t,t=void 0),i=i||{};const u=url(t,i.path||"/socket.io"),c=u.source,d=u.id,m=u.path,g=cache[d]&&m in cache[d].nsps,_=i.forceNew||i["force new connection"]||i.multiplex===!1||g;let y;return _?y=new Manager(c,i):(cache[d]||(cache[d]=new Manager(c,i)),y=cache[d]),u.query&&!i.query&&(i.query=u.queryKey),y.socket(u.path,i)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const blacklist=[MESSAGE_TO_GUEST,EVENT_TO_GUEST,TYPING_ON,TYPING_OFF,RESTART_CHAT_REQUEST,...INTERNAL_ACTIONS,...INTERNAL_ACTIONS$1,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],socketMiddleware=({dispatch:t,getState:i})=>u=>{let c=null;return d=>{const m=u(d);if(d.type===CONNECT){c?.disconnect(),t(connecting());const g=`/chat?${new URLSearchParams(d.querystrings).toString()}`;c=lookup(`/${d.clientName}${g}`),c.on("action",t),c.on("connect",()=>t(connected())),c.on("disconnect",()=>t(disconnected())),c.on("reconnect",()=>t(reconnected())),c.on("set-translations",(_,y)=>{t(updateIntl({language:_,messages:mergeMessages(_,y)}))}),c.on("set-settings",_=>{t(setSettings(_))}),c.on("enable-conversation-rating",_=>t(enableConversationRating(_))),c.on("speech-transcription",_=>t(receiveSpeechTranscription(_))),c.on("restore-client-state",_=>{t(restoreSessionId(_.sessionId)),t(restorePreviousChatMessages(_.messages))}),c.on("expand-window",({devices:_,initial:y=!1})=>{t({type:EXPAND_WINDOW,devices:_,initial:y})}),c.on("restart-chat",()=>{t(restartChat())}),c.on("login-success",_=>{t(startAuthenticatedChat({loginToken:_.loginToken}))})}else if(d.type==="start-screen/requestLogin")c?.emit("login-requested",d.payload);else if(d.type===START)c?.emit("start-chat",d.payload);else if(d.type===TERMINATE_SESSION)c?.emit("terminate-session",d.payload);else if(d.type===GET_STARTED)c?.emit("get-started",JSON.stringify(d));else if(d.type===AUDIO_MESSAGE_FROM_USER)c?.emit("audio-message",d.buffer);else if(d.type===CONVERSATION_RATING_FROM_GUEST)c?.emit("conversation-rating",d.payload);else if(d.type===DOWNLOAD_TRANSCRIPT_PDF){const{connection:{sessionId:g}}=i();window.location.href=`/transcript-pdf/${g}`}else blacklist.indexOf(d.type)===-1&&d.meta===void 0&&c&&c.emit("action",JSON.stringify(d));return m}},clientName=getClientName(),preloadedState={...loadState(clientName),intl:initialState$3},store=configureStore({middleware:t=>t().concat(socketMiddleware),reducer:rootReducer,preloadedState});store.subscribe(throttle(()=>{const t=store.getState();saveState(clientName,{connection:t.connection,startScreen:t.startScreen})},1e3));const container=document.getElementById("root"),root=clientExports.createRoot(container);root.render(jsxRuntimeExports.jsx(Provider_default,{store,children:jsxRuntimeExports.jsx(App,{})}));
131
- //# sourceMappingURL=index-OGpqbf2g.js.map