@botfabrik/engine-webclient 4.103.1 → 4.103.2

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,152 +0,0 @@
1
- (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vh={exports:{}},bs={};var vb;function vT(){if(vb)return bs;vb=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(l,o,u){var f=null;if(u!==void 0&&(f=""+u),o.key!==void 0&&(f=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:e,type:l,key:f,ref:o!==void 0?o:null,props:u}}return bs.Fragment=r,bs.jsx=a,bs.jsxs=a,bs}var bb;function bT(){return bb||(bb=1,Vh.exports=vT()),Vh.exports}var _=bT(),Ph={exports:{}},ys={},Gh={exports:{}},Xh={};var yb;function yT(){return yb||(yb=1,(function(e){function r(U,ae){var X=U.length;U.push(ae);e:for(;0<X;){var be=X-1>>>1,pe=U[be];if(0<o(pe,ae))U[be]=ae,U[X]=pe,X=be;else break e}}function a(U){return U.length===0?null:U[0]}function l(U){if(U.length===0)return null;var ae=U[0],X=U.pop();if(X!==ae){U[0]=X;e:for(var be=0,pe=U.length,N=pe>>>1;be<N;){var Y=2*(be+1)-1,ee=U[Y],ue=Y+1,ne=U[ue];if(0>o(ee,X))ue<pe&&0>o(ne,ee)?(U[be]=ne,U[ue]=X,be=ue):(U[be]=ee,U[Y]=X,be=Y);else if(ue<pe&&0>o(ne,X))U[be]=ne,U[ue]=X,be=ue;else break e}}return ae}function o(U,ae){var X=U.sortIndex-ae.sortIndex;return X!==0?X:U.id-ae.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,m=f.now();e.unstable_now=function(){return f.now()-m}}var d=[],p=[],v=1,y=null,b=3,S=!1,E=!1,T=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function B(U){for(var ae=a(p);ae!==null;){if(ae.callback===null)l(p);else if(ae.startTime<=U)l(p),ae.sortIndex=ae.expirationTime,r(d,ae);else break;ae=a(p)}}function R(U){if(T=!1,B(U),!E)if(a(d)!==null)E=!0,j||(j=!0,J());else{var ae=a(p);ae!==null&&he(R,ae.startTime-U)}}var j=!1,k=-1,K=5,G=-1;function $(){return w?!0:!(e.unstable_now()-G<K)}function Z(){if(w=!1,j){var U=e.unstable_now();G=U;var ae=!0;try{e:{E=!1,T&&(T=!1,A(k),k=-1),S=!0;var X=b;try{t:{for(B(U),y=a(d);y!==null&&!(y.expirationTime>U&&$());){var be=y.callback;if(typeof be=="function"){y.callback=null,b=y.priorityLevel;var pe=be(y.expirationTime<=U);if(U=e.unstable_now(),typeof pe=="function"){y.callback=pe,B(U),ae=!0;break t}y===a(d)&&l(d),B(U)}else l(d);y=a(d)}if(y!==null)ae=!0;else{var N=a(p);N!==null&&he(R,N.startTime-U),ae=!1}}break e}finally{y=null,b=X,S=!1}ae=void 0}}finally{ae?J():j=!1}}}var J;if(typeof C=="function")J=function(){C(Z)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,fe=se.port2;se.port1.onmessage=Z,J=function(){fe.postMessage(null)}}else J=function(){O(Z,0)};function he(U,ae){k=O(function(){U(e.unstable_now())},ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(U){switch(b){case 1:case 2:case 3:var ae=3;break;default:ae=b}var X=b;b=ae;try{return U()}finally{b=X}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(U,ae){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var X=b;b=U;try{return ae()}finally{b=X}},e.unstable_scheduleCallback=function(U,ae,X){var be=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?be+X:be):X=be,U){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=X+pe,U={id:v++,callback:ae,priorityLevel:U,startTime:X,expirationTime:pe,sortIndex:-1},X>be?(U.sortIndex=X,r(p,U),a(d)===null&&U===a(p)&&(T?(A(k),k=-1):T=!0,he(R,X-be))):(U.sortIndex=pe,r(d,U),E||S||(E=!0,j||(j=!0,J()))),U},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(U){var ae=b;return function(){var X=b;b=ae;try{return U.apply(this,arguments)}finally{b=X}}}})(Xh)),Xh}var _b;function _T(){return _b||(_b=1,Gh.exports=yT()),Gh.exports}var Qh={exports:{}},Le={};var Sb;function ST(){if(Sb)return Le;Sb=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function S(N){return N===null||typeof N!="object"?null:(N=b&&N[b]||N["@@iterator"],typeof N=="function"?N:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,w={};function O(N,Y,ee){this.props=N,this.context=Y,this.refs=w,this.updater=ee||E}O.prototype.isReactComponent={},O.prototype.setState=function(N,Y){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,Y,"setState")},O.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function A(){}A.prototype=O.prototype;function C(N,Y,ee){this.props=N,this.context=Y,this.refs=w,this.updater=ee||E}var B=C.prototype=new A;B.constructor=C,T(B,O.prototype),B.isPureReactComponent=!0;var R=Array.isArray;function j(){}var k={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function G(N,Y,ee){var ue=ee.ref;return{$$typeof:e,type:N,key:Y,ref:ue!==void 0?ue:null,props:ee}}function $(N,Y){return G(N.type,Y,N.props)}function Z(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function J(N){var Y={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ee){return Y[ee]})}var se=/\/+/g;function fe(N,Y){return typeof N=="object"&&N!==null&&N.key!=null?J(""+N.key):Y.toString(36)}function he(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(j,j):(N.status="pending",N.then(function(Y){N.status==="pending"&&(N.status="fulfilled",N.value=Y)},function(Y){N.status==="pending"&&(N.status="rejected",N.reason=Y)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function U(N,Y,ee,ue,ne){var de=typeof N;(de==="undefined"||de==="boolean")&&(N=null);var ge=!1;if(N===null)ge=!0;else switch(de){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(N.$$typeof){case e:case r:ge=!0;break;case v:return ge=N._init,U(ge(N._payload),Y,ee,ue,ne)}}if(ge)return ne=ne(N),ge=ue===""?"."+fe(N,0):ue,R(ne)?(ee="",ge!=null&&(ee=ge.replace(se,"$&/")+"/"),U(ne,Y,ee,"",function(je){return je})):ne!=null&&(Z(ne)&&(ne=$(ne,ee+(ne.key==null||N&&N.key===ne.key?"":(""+ne.key).replace(se,"$&/")+"/")+ge)),Y.push(ne)),1;ge=0;var Ee=ue===""?".":ue+":";if(R(N))for(var xe=0;xe<N.length;xe++)ue=N[xe],de=Ee+fe(ue,xe),ge+=U(ue,Y,ee,de,ne);else if(xe=S(N),typeof xe=="function")for(N=xe.call(N),xe=0;!(ue=N.next()).done;)ue=ue.value,de=Ee+fe(ue,xe++),ge+=U(ue,Y,ee,de,ne);else if(de==="object"){if(typeof N.then=="function")return U(he(N),Y,ee,ue,ne);throw Y=String(N),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ge}function ae(N,Y,ee){if(N==null)return N;var ue=[],ne=0;return U(N,ue,"","",function(de){return Y.call(ee,de,ne++)}),ue}function X(N){if(N._status===-1){var Y=N._result;Y=Y(),Y.then(function(ee){(N._status===0||N._status===-1)&&(N._status=1,N._result=ee)},function(ee){(N._status===0||N._status===-1)&&(N._status=2,N._result=ee)}),N._status===-1&&(N._status=0,N._result=Y)}if(N._status===1)return N._result.default;throw N._result}var be=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},pe={map:ae,forEach:function(N,Y,ee){ae(N,function(){Y.apply(this,arguments)},ee)},count:function(N){var Y=0;return ae(N,function(){Y++}),Y},toArray:function(N){return ae(N,function(Y){return Y})||[]},only:function(N){if(!Z(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return Le.Activity=y,Le.Children=pe,Le.Component=O,Le.Fragment=a,Le.Profiler=o,Le.PureComponent=C,Le.StrictMode=l,Le.Suspense=d,Le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Le.__COMPILER_RUNTIME={__proto__:null,c:function(N){return k.H.useMemoCache(N)}},Le.cache=function(N){return function(){return N.apply(null,arguments)}},Le.cacheSignal=function(){return null},Le.cloneElement=function(N,Y,ee){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ue=T({},N.props),ne=N.key;if(Y!=null)for(de in Y.key!==void 0&&(ne=""+Y.key),Y)!K.call(Y,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&Y.ref===void 0||(ue[de]=Y[de]);var de=arguments.length-2;if(de===1)ue.children=ee;else if(1<de){for(var ge=Array(de),Ee=0;Ee<de;Ee++)ge[Ee]=arguments[Ee+2];ue.children=ge}return G(N.type,ne,ue)},Le.createContext=function(N){return N={$$typeof:f,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},Le.createElement=function(N,Y,ee){var ue,ne={},de=null;if(Y!=null)for(ue in Y.key!==void 0&&(de=""+Y.key),Y)K.call(Y,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ne[ue]=Y[ue]);var ge=arguments.length-2;if(ge===1)ne.children=ee;else if(1<ge){for(var Ee=Array(ge),xe=0;xe<ge;xe++)Ee[xe]=arguments[xe+2];ne.children=Ee}if(N&&N.defaultProps)for(ue in ge=N.defaultProps,ge)ne[ue]===void 0&&(ne[ue]=ge[ue]);return G(N,de,ne)},Le.createRef=function(){return{current:null}},Le.forwardRef=function(N){return{$$typeof:m,render:N}},Le.isValidElement=Z,Le.lazy=function(N){return{$$typeof:v,_payload:{_status:-1,_result:N},_init:X}},Le.memo=function(N,Y){return{$$typeof:p,type:N,compare:Y===void 0?null:Y}},Le.startTransition=function(N){var Y=k.T,ee={};k.T=ee;try{var ue=N(),ne=k.S;ne!==null&&ne(ee,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(j,be)}catch(de){be(de)}finally{Y!==null&&ee.types!==null&&(Y.types=ee.types),k.T=Y}},Le.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Le.use=function(N){return k.H.use(N)},Le.useActionState=function(N,Y,ee){return k.H.useActionState(N,Y,ee)},Le.useCallback=function(N,Y){return k.H.useCallback(N,Y)},Le.useContext=function(N){return k.H.useContext(N)},Le.useDebugValue=function(){},Le.useDeferredValue=function(N,Y){return k.H.useDeferredValue(N,Y)},Le.useEffect=function(N,Y){return k.H.useEffect(N,Y)},Le.useEffectEvent=function(N){return k.H.useEffectEvent(N)},Le.useId=function(){return k.H.useId()},Le.useImperativeHandle=function(N,Y,ee){return k.H.useImperativeHandle(N,Y,ee)},Le.useInsertionEffect=function(N,Y){return k.H.useInsertionEffect(N,Y)},Le.useLayoutEffect=function(N,Y){return k.H.useLayoutEffect(N,Y)},Le.useMemo=function(N,Y){return k.H.useMemo(N,Y)},Le.useOptimistic=function(N,Y){return k.H.useOptimistic(N,Y)},Le.useReducer=function(N,Y,ee){return k.H.useReducer(N,Y,ee)},Le.useRef=function(N){return k.H.useRef(N)},Le.useState=function(N){return k.H.useState(N)},Le.useSyncExternalStore=function(N,Y,ee){return k.H.useSyncExternalStore(N,Y,ee)},Le.useTransition=function(){return k.H.useTransition()},Le.version="19.2.0",Le}var Eb;function pc(){return Eb||(Eb=1,Qh.exports=ST()),Qh.exports}var Zh={exports:{}},zn={};var Tb;function ET(){if(Tb)return zn;Tb=1;var e=pc();function r(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(d,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:d,containerInfo:p,implementation:v}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return zn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,zn.createPortal=function(d,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return u(d,p,null,v)},zn.flushSync=function(d){var p=f.T,v=l.p;try{if(f.T=null,l.p=2,d)return d()}finally{f.T=p,l.p=v,l.d.f()}},zn.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(d,p))},zn.prefetchDNS=function(d){typeof d=="string"&&l.d.D(d)},zn.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?l.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):v==="script"&&l.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},zn.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);l.d.M(d,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(d)},zn.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin);l.d.L(d,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},zn.preloadModule=function(d,p){if(typeof d=="string")if(p){var v=m(p.as,p.crossOrigin);l.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(d)},zn.requestFormReset=function(d){l.d.r(d)},zn.unstable_batchedUpdates=function(d,p){return d(p)},zn.useFormState=function(d,p,v){return f.H.useFormState(d,p,v)},zn.useFormStatus=function(){return f.H.useHostTransitionStatus()},zn.version="19.2.0",zn}var xb;function TT(){if(xb)return Zh.exports;xb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Zh.exports=ET(),Zh.exports}var wb;function xT(){if(wb)return ys;wb=1;var e=_T(),r=pc(),a=TT();function l(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function f(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function m(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function d(t){if(u(t)!==t)throw Error(l(188))}function p(t){var n=t.alternate;if(!n){if(n=u(t),n===null)throw Error(l(188));return n!==t?null:t}for(var i=t,s=n;;){var c=i.return;if(c===null)break;var h=c.alternate;if(h===null){if(s=c.return,s!==null){i=s;continue}break}if(c.child===h.child){for(h=c.child;h;){if(h===i)return d(c),t;if(h===s)return d(c),n;h=h.sibling}throw Error(l(188))}if(i.return!==s.return)i=c,s=h;else{for(var g=!1,x=c.child;x;){if(x===i){g=!0,i=c,s=h;break}if(x===s){g=!0,s=c,i=h;break}x=x.sibling}if(!g){for(x=h.child;x;){if(x===i){g=!0,i=h,s=c;break}if(x===s){g=!0,s=h,i=c;break}x=x.sibling}if(!g)throw Error(l(189))}}if(i.alternate!==s)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?t:n}function v(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=v(t),n!==null)return n;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function J(t){return t===null||typeof t!="object"?null:(t=Z&&t[Z]||t["@@iterator"],typeof t=="function"?t:null)}var se=Symbol.for("react.client.reference");function fe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===se?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case T:return"Fragment";case O:return"Profiler";case w:return"StrictMode";case R:return"Suspense";case j:return"SuspenseList";case G:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case C:return t.displayName||"Context";case A:return(t._context.displayName||"Context")+".Consumer";case B:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return n=t.displayName||null,n!==null?n:fe(t.type)||"Memo";case K:n=t._payload,t=t._init;try{return fe(t(n))}catch{}}return null}var he=Array.isArray,U=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},be=[],pe=-1;function N(t){return{current:t}}function Y(t){0>pe||(t.current=be[pe],be[pe]=null,pe--)}function ee(t,n){pe++,be[pe]=t.current,t.current=n}var ue=N(null),ne=N(null),de=N(null),ge=N(null);function Ee(t,n){switch(ee(de,n),ee(ne,t),ee(ue,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Iv(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Iv(n),t=Fv(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(ue),ee(ue,t)}function xe(){Y(ue),Y(ne),Y(de)}function je(t){t.memoizedState!==null&&ee(ge,t);var n=ue.current,i=Fv(n,t.type);n!==i&&(ee(ne,t),ee(ue,i))}function wt(t){ne.current===t&&(Y(ue),Y(ne)),ge.current===t&&(Y(ge),ms._currentValue=X)}var Ae,yt;function Ot(t){if(Ae===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Ae=n&&n[1]||"",yt=-1<i.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Ae+t+yt}var Oe=!1;function ht(t,n){if(!t||Oe)return"";Oe=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(Q){var P=Q}Reflect.construct(t,[],re)}else{try{re.call()}catch(Q){P=Q}t.call(re.prototype)}}else{try{throw Error()}catch(Q){P=Q}(re=t())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(Q){if(Q&&P&&typeof Q.stack=="string")return[Q.stack,P.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=s.DetermineComponentFrameRoot(),g=h[0],x=h[1];if(g&&x){var M=g.split(`
4
- `),I=x.split(`
5
- `);for(c=s=0;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;for(;c<I.length&&!I[c].includes("DetermineComponentFrameRoot");)c++;if(s===M.length||c===I.length)for(s=M.length-1,c=I.length-1;1<=s&&0<=c&&M[s]!==I[c];)c--;for(;1<=s&&0<=c;s--,c--)if(M[s]!==I[c]){if(s!==1||c!==1)do if(s--,c--,0>c||M[s]!==I[c]){var q=`
6
- `+M[s].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=s&&0<=c);break}}}finally{Oe=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ot(i):""}function on(t,n){switch(t.tag){case 26:case 27:case 5:return Ot(t.type);case 16:return Ot("Lazy");case 13:return t.child!==n&&n!==null?Ot("Suspense Fallback"):Ot("Suspense");case 19:return Ot("SuspenseList");case 0:case 15:return ht(t.type,!1);case 11:return ht(t.type.render,!1);case 1:return ht(t.type,!0);case 31:return Ot("Activity");default:return""}}function An(t){try{var n="",i=null;do n+=on(t,i),i=t,t=t.return;while(t);return n}catch(s){return`
7
- Error generating stack: `+s.message+`
8
- `+s.stack}}var Pe=Object.prototype.hasOwnProperty,Kt=e.unstable_scheduleCallback,Nt=e.unstable_cancelCallback,un=e.unstable_shouldYield,At=e.unstable_requestPaint,ct=e.unstable_now,Bn=e.unstable_getCurrentPriorityLevel,Xt=e.unstable_ImmediatePriority,$t=e.unstable_UserBlockingPriority,Qt=e.unstable_NormalPriority,gn=e.unstable_LowPriority,vn=e.unstable_IdlePriority,gr=e.log,it=e.unstable_setDisableYieldValue,bn=null,_t=null;function pt(t){if(typeof gr=="function"&&it(t),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(bn,t)}catch{}}var $e=Math.clz32?Math.clz32:yn,nt=Math.log,cn=Math.LN2;function yn(t){return t>>>=0,t===0?32:31-(nt(t)/cn|0)|0}var zt=256,lt=262144,Wt=4194304;function Rt(t){var n=t&42;if(n!==0)return n;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function kn(t,n,i){var s=t.pendingLanes;if(s===0)return 0;var c=0,h=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var x=s&134217727;return x!==0?(s=x&~h,s!==0?c=Rt(s):(g&=x,g!==0?c=Rt(g):i||(i=x&~t,i!==0&&(c=Rt(i))))):(x=s&~h,x!==0?c=Rt(x):g!==0?c=Rt(g):i||(i=s&~t,i!==0&&(c=Rt(i)))),c===0?0:n!==0&&n!==c&&(n&h)===0&&(h=c&-c,i=n&-n,h>=i||h===32&&(i&4194048)!==0)?n:c}function Hn(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function St(t,n){switch(t){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 fn(){var t=Wt;return Wt<<=1,(Wt&62914560)===0&&(Wt=4194304),t}function vr(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Vn(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function br(t,n,i,s,c,h){var g=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var x=t.entanglements,M=t.expirationTimes,I=t.hiddenUpdates;for(i=g&~i;0<i;){var q=31-$e(i),re=1<<q;x[q]=0,M[q]=-1;var P=I[q];if(P!==null)for(I[q]=null,q=0;q<P.length;q++){var Q=P[q];Q!==null&&(Q.lane&=-536870913)}i&=~re}s!==0&&hn(t,s,0),h!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=h&~(g&~n))}function hn(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-$e(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|i&261930}function dn(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var s=31-$e(i),c=1<<s;c&n|t[s]&n&&(t[s]|=n),i&=~c}}function qt(t,n){var i=n&-n;return i=(i&42)!==0?1:It(i),(i&(t.suspendedLanes|n))!==0?0:i}function It(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function We(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Pn(){var t=ae.p;return t!==0?t:(t=window.event,t===void 0?32:cb(t.type))}function Un(t,n){var i=ae.p;try{return ae.p=t,n()}finally{ae.p=i}}var Ft=Math.random().toString(36).slice(2),Ne="__reactFiber$"+Ft,rt="__reactProps$"+Ft,_n="__reactContainer$"+Ft,qn="__reactEvents$"+Ft,mn="__reactListeners$"+Ft,Mr="__reactHandles$"+Ft,He="__reactResources$"+Ft,ce="__reactMarker$"+Ft;function D(t){delete t[Ne],delete t[rt],delete t[qn],delete t[mn],delete t[Mr]}function W(t){var n=t[Ne];if(n)return n;for(var i=t.parentNode;i;){if(n=i[_n]||i[Ne]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=Yv(t);t!==null;){if(i=t[Ne])return i;t=Yv(t)}return n}t=i,i=t.parentNode}return null}function le(t){if(t=t[Ne]||t[_n]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Te(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(l(33))}function Ge(t){var n=t[He];return n||(n=t[He]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function me(t){t[ce]=!0}var gt=new Set,De={};function st(t,n){at(t,n),at(t+"Capture",n)}function at(t,n){for(De[t]=n,t=0;t<n.length;t++)gt.add(n[t])}var Me=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]*$"),Ut={},Zt={};function Fr(t){return Pe.call(Zt,t)?!0:Pe.call(Ut,t)?!1:Me.test(t)?Zt[t]=!0:(Ut[t]=!0,!1)}function ze(t,n,i){if(Fr(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function er(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function Sn(t,n,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+s)}}function jn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Vr(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Bc(t,n,i){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,h=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(g){i=""+g,h.call(this,g)}}),Object.defineProperty(t,n,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Li(t){if(!t._valueTracker){var n=Vr(t)?"checked":"value";t._valueTracker=Bc(t,n,""+t[n])}}function qs(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return t&&(s=Vr(t)?t.checked?"true":"false":t.value),t=s,t!==i?(n.setValue(t),!0):!1}function Bi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ki=/[\n"\\]/g;function Gn(t){return t.replace(ki,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function kc(t,n,i,s,c,h,g,x){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),n!=null?g==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+jn(n)):t.value!==""+jn(n)&&(t.value=""+jn(n)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),n!=null?Hc(t,g,jn(n)):i!=null?Hc(t,g,jn(i)):s!=null&&t.removeAttribute("value"),c==null&&h!=null&&(t.defaultChecked=!!h),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+jn(x):t.removeAttribute("name")}function Nl(t,n,i,s,c,h,g,x){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),n!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Li(t);return}i=i!=null?""+jn(i):"",n=n!=null?""+jn(n):i,x||n===t.value||(t.value=n),t.defaultValue=n}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=x?t.checked:!!s,t.defaultChecked=!!s,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),Li(t)}function Hc(t,n,i){n==="number"&&Bi(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ra(t,n,i,s){if(t=t.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<t.length;i++)c=n.hasOwnProperty("$"+t[i].value),t[i].selected!==c&&(t[i].selected=c),c&&s&&(t[i].defaultSelected=!0)}else{for(i=""+jn(i),n=null,c=0;c<t.length;c++){if(t[c].value===i){t[c].selected=!0,s&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function kp(t,n,i){if(n!=null&&(n=""+jn(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+jn(i):""}function Hp(t,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(l(92));if(he(s)){if(1<s.length)throw Error(l(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=jn(n),t.defaultValue=i,s=t.textContent,s===i&&s!==""&&s!==null&&(t.value=s),Li(t)}function ta(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var hS=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 Up(t,n,i){var s=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":s?t.setProperty(n,i):typeof i!="number"||i===0||hS.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function jp(t,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(t=t.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var c in n)s=n[c],n.hasOwnProperty(c)&&i[c]!==s&&Up(t,c,s)}else for(var h in n)n.hasOwnProperty(h)&&Up(t,h,n[h])}function Uc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 dS=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"]]),mS=/^[\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 eo(t){return mS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function na(){}var jc=null;function zc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Hi=null,Ui=null;function zp(t){var n=le(t);if(n&&(t=n.stateNode)){var i=t[rt]||null;e:switch(t=n.stateNode,n.type){case"input":if(kc(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Gn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==t&&s.form===t.form){var c=s[rt]||null;if(!c)throw Error(l(90));kc(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===t.form&&qs(s)}break e;case"textarea":kp(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Ra(t,!!i.multiple,n,!1)}}}var Ic=!1;function Ip(t,n,i){if(Ic)return t(n,i);Ic=!0;try{var s=t(n);return s}finally{if(Ic=!1,(Hi!==null||Ui!==null)&&(Vo(),Hi&&(n=Hi,t=Ui,Ui=Hi=null,zp(n),t)))for(n=0;n<t.length;n++)zp(t[n])}}function Dl(t,n){var i=t.stateNode;if(i===null)return null;var s=i[rt]||null;if(s===null)return null;i=s[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":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(l(231,n,typeof i));return i}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fc=!1;if(ra)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Fc=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Fc=!1}var Na=null,Vc=null,to=null;function Fp(){if(to)return to;var t,n=Vc,i=n.length,s,c="value"in Na?Na.value:Na.textContent,h=c.length;for(t=0;t<i&&n[t]===c[t];t++);var g=i-t;for(s=1;s<=g&&n[i-s]===c[h-s];s++);return to=c.slice(t,1<s?1-s:void 0)}function no(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function ro(){return!0}function Vp(){return!1}function tr(t){function n(i,s,c,h,g){this._reactName=i,this._targetInst=c,this.type=s,this.nativeEvent=h,this.target=g,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(i=t[x],this[x]=i?i(h):h[x]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ro:Vp,this.isPropagationStopped=Vp,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),n}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ao=tr(ii),Ll=y({},ii,{view:0,detail:0}),pS=tr(Ll),Pc,Gc,Bl,io=y({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Bl&&(Bl&&t.type==="mousemove"?(Pc=t.screenX-Bl.screenX,Gc=t.screenY-Bl.screenY):Gc=Pc=0,Bl=t),Pc)},movementY:function(t){return"movementY"in t?t.movementY:Gc}}),Pp=tr(io),gS=y({},io,{dataTransfer:0}),vS=tr(gS),bS=y({},Ll,{relatedTarget:0}),Xc=tr(bS),yS=y({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),_S=tr(yS),SS=y({},ii,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ES=tr(SS),TS=y({},ii,{data:0}),Gp=tr(TS),xS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wS={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"},AS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CS(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=AS[t])?!!n[t]:!1}function Qc(){return CS}var OS=y({},Ll,{key:function(t){if(t.key){var n=xS[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=no(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qc,charCode:function(t){return t.type==="keypress"?no(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?no(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),RS=tr(OS),NS=y({},io,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xp=tr(NS),DS=y({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qc}),MS=tr(DS),LS=y({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),BS=tr(LS),kS=y({},io,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),HS=tr(kS),US=y({},ii,{newState:0,oldState:0}),jS=tr(US),zS=[9,13,27,32],Zc=ra&&"CompositionEvent"in window,kl=null;ra&&"documentMode"in document&&(kl=document.documentMode);var IS=ra&&"TextEvent"in window&&!kl,Qp=ra&&(!Zc||kl&&8<kl&&11>=kl),Zp=" ",Yp=!1;function Jp(t,n){switch(t){case"keyup":return zS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ji=!1;function FS(t,n){switch(t){case"compositionend":return Kp(n);case"keypress":return n.which!==32?null:(Yp=!0,Zp);case"textInput":return t=n.data,t===Zp&&Yp?null:t;default:return null}}function VS(t,n){if(ji)return t==="compositionend"||!Zc&&Jp(t,n)?(t=Fp(),to=Vc=Na=null,ji=!1,t):null;switch(t){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 Qp&&n.locale!=="ko"?null:n.data;default:return null}}var PS={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 $p(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!PS[t.type]:n==="textarea"}function Wp(t,n,i,s){Hi?Ui?Ui.push(s):Ui=[s]:Hi=s,n=Jo(n,"onChange"),0<n.length&&(i=new ao("onChange","change",null,i,s),t.push({event:i,listeners:n}))}var Hl=null,Ul=null;function GS(t){Bv(t,0)}function lo(t){var n=Te(t);if(qs(n))return t}function qp(t,n){if(t==="change")return n}var eg=!1;if(ra){var Yc;if(ra){var Jc="oninput"in document;if(!Jc){var tg=document.createElement("div");tg.setAttribute("oninput","return;"),Jc=typeof tg.oninput=="function"}Yc=Jc}else Yc=!1;eg=Yc&&(!document.documentMode||9<document.documentMode)}function ng(){Hl&&(Hl.detachEvent("onpropertychange",rg),Ul=Hl=null)}function rg(t){if(t.propertyName==="value"&&lo(Ul)){var n=[];Wp(n,Ul,t,zc(t)),Ip(GS,n)}}function XS(t,n,i){t==="focusin"?(ng(),Hl=n,Ul=i,Hl.attachEvent("onpropertychange",rg)):t==="focusout"&&ng()}function QS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return lo(Ul)}function ZS(t,n){if(t==="click")return lo(n)}function YS(t,n){if(t==="input"||t==="change")return lo(n)}function JS(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var sr=typeof Object.is=="function"?Object.is:JS;function jl(t,n){if(sr(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var c=i[s];if(!Pe.call(n,c)||!sr(t[c],n[c]))return!1}return!0}function ag(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ig(t,n){var i=ag(t);t=0;for(var s;i;){if(i.nodeType===3){if(s=t+i.textContent.length,t<=n&&s>=n)return{node:i,offset:n-t};t=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ag(i)}}function lg(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?lg(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function sg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Bi(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=Bi(t.document)}return n}function Kc(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var KS=ra&&"documentMode"in document&&11>=document.documentMode,zi=null,$c=null,zl=null,Wc=!1;function og(t,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Wc||zi==null||zi!==Bi(s)||(s=zi,"selectionStart"in s&&Kc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),zl&&jl(zl,s)||(zl=s,s=Jo($c,"onSelect"),0<s.length&&(n=new ao("onSelect","select",null,n,i),t.push({event:n,listeners:s}),n.target=zi)))}function li(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Ii={animationend:li("Animation","AnimationEnd"),animationiteration:li("Animation","AnimationIteration"),animationstart:li("Animation","AnimationStart"),transitionrun:li("Transition","TransitionRun"),transitionstart:li("Transition","TransitionStart"),transitioncancel:li("Transition","TransitionCancel"),transitionend:li("Transition","TransitionEnd")},qc={},ug={};ra&&(ug=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function si(t){if(qc[t])return qc[t];if(!Ii[t])return t;var n=Ii[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in ug)return qc[t]=n[i];return t}var cg=si("animationend"),fg=si("animationiteration"),hg=si("animationstart"),$S=si("transitionrun"),WS=si("transitionstart"),qS=si("transitioncancel"),dg=si("transitionend"),mg=new Map,ef="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(" ");ef.push("scrollEnd");function Lr(t,n){mg.set(t,n),st(n,[t])}var so=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},yr=[],Fi=0,tf=0;function oo(){for(var t=Fi,n=tf=Fi=0;n<t;){var i=yr[n];yr[n++]=null;var s=yr[n];yr[n++]=null;var c=yr[n];yr[n++]=null;var h=yr[n];if(yr[n++]=null,s!==null&&c!==null){var g=s.pending;g===null?c.next=c:(c.next=g.next,g.next=c),s.pending=c}h!==0&&pg(i,c,h)}}function uo(t,n,i,s){yr[Fi++]=t,yr[Fi++]=n,yr[Fi++]=i,yr[Fi++]=s,tf|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function nf(t,n,i,s){return uo(t,n,i,s),co(t)}function oi(t,n){return uo(t,null,null,n),co(t)}function pg(t,n,i){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i);for(var c=!1,h=t.return;h!==null;)h.childLanes|=i,s=h.alternate,s!==null&&(s.childLanes|=i),h.tag===22&&(t=h.stateNode,t===null||t._visibility&1||(c=!0)),t=h,h=h.return;return t.tag===3?(h=t.stateNode,c&&n!==null&&(c=31-$e(i),t=h.hiddenUpdates,s=t[c],s===null?t[c]=[n]:s.push(n),n.lane=i|536870912),h):null}function co(t){if(50<ss)throw ss=0,hh=null,Error(l(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Vi={};function eE(t,n,i,s){this.tag=t,this.key=i,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function or(t,n,i,s){return new eE(t,n,i,s)}function rf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function aa(t,n){var i=t.alternate;return i===null?(i=or(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function gg(t,n){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function fo(t,n,i,s,c,h){var g=0;if(s=t,typeof t=="function")rf(t)&&(g=1);else if(typeof t=="string")g=iT(t,i,ue.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case G:return t=or(31,i,n,c),t.elementType=G,t.lanes=h,t;case T:return ui(i.children,c,h,n);case w:g=8,c|=24;break;case O:return t=or(12,i,n,c|2),t.elementType=O,t.lanes=h,t;case R:return t=or(13,i,n,c),t.elementType=R,t.lanes=h,t;case j:return t=or(19,i,n,c),t.elementType=j,t.lanes=h,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case C:g=10;break e;case A:g=9;break e;case B:g=11;break e;case k:g=14;break e;case K:g=16,s=null;break e}g=29,i=Error(l(130,t===null?"null":typeof t,"")),s=null}return n=or(g,i,n,c),n.elementType=t,n.type=s,n.lanes=h,n}function ui(t,n,i,s){return t=or(7,t,s,n),t.lanes=i,t}function af(t,n,i){return t=or(6,t,null,n),t.lanes=i,t}function vg(t){var n=or(18,null,null,0);return n.stateNode=t,n}function lf(t,n,i){return n=or(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var bg=new WeakMap;function _r(t,n){if(typeof t=="object"&&t!==null){var i=bg.get(t);return i!==void 0?i:(n={value:t,source:n,stack:An(n)},bg.set(t,n),n)}return{value:t,source:n,stack:An(n)}}var Pi=[],Gi=0,ho=null,Il=0,Sr=[],Er=0,Da=null,Pr=1,Gr="";function ia(t,n){Pi[Gi++]=Il,Pi[Gi++]=ho,ho=t,Il=n}function yg(t,n,i){Sr[Er++]=Pr,Sr[Er++]=Gr,Sr[Er++]=Da,Da=t;var s=Pr;t=Gr;var c=32-$e(s)-1;s&=~(1<<c),i+=1;var h=32-$e(n)+c;if(30<h){var g=c-c%5;h=(s&(1<<g)-1).toString(32),s>>=g,c-=g,Pr=1<<32-$e(n)+c|i<<c|s,Gr=h+t}else Pr=1<<h|i<<c|s,Gr=t}function sf(t){t.return!==null&&(ia(t,1),yg(t,1,0))}function of(t){for(;t===ho;)ho=Pi[--Gi],Pi[Gi]=null,Il=Pi[--Gi],Pi[Gi]=null;for(;t===Da;)Da=Sr[--Er],Sr[Er]=null,Gr=Sr[--Er],Sr[Er]=null,Pr=Sr[--Er],Sr[Er]=null}function _g(t,n){Sr[Er++]=Pr,Sr[Er++]=Gr,Sr[Er++]=Da,Pr=n.id,Gr=n.overflow,Da=t}var Cn=null,Dt=null,Ye=!1,Ma=null,Tr=!1,uf=Error(l(519));function La(t){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fl(_r(n,t)),uf}function Sg(t){var n=t.stateNode,i=t.type,s=t.memoizedProps;switch(n[Ne]=t,n[rt]=s,i){case"dialog":Fe("cancel",n),Fe("close",n);break;case"iframe":case"object":case"embed":Fe("load",n);break;case"video":case"audio":for(i=0;i<us.length;i++)Fe(us[i],n);break;case"source":Fe("error",n);break;case"img":case"image":case"link":Fe("error",n),Fe("load",n);break;case"details":Fe("toggle",n);break;case"input":Fe("invalid",n),Nl(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Fe("invalid",n);break;case"textarea":Fe("invalid",n),Hp(n,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||s.suppressHydrationWarning===!0||jv(n.textContent,i)?(s.popover!=null&&(Fe("beforetoggle",n),Fe("toggle",n)),s.onScroll!=null&&Fe("scroll",n),s.onScrollEnd!=null&&Fe("scrollend",n),s.onClick!=null&&(n.onclick=na),n=!0):n=!1,n||La(t,!0)}function Eg(t){for(Cn=t.return;Cn;)switch(Cn.tag){case 5:case 31:case 13:Tr=!1;return;case 27:case 3:Tr=!0;return;default:Cn=Cn.return}}function Xi(t){if(t!==Cn)return!1;if(!Ye)return Eg(t),Ye=!0,!1;var n=t.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Ch(t.type,t.memoizedProps)),i=!i),i&&Dt&&La(t),Eg(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Dt=Zv(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Dt=Zv(t)}else n===27?(n=Dt,Za(t.type)?(t=Mh,Mh=null,Dt=t):Dt=n):Dt=Cn?wr(t.stateNode.nextSibling):null;return!0}function ci(){Dt=Cn=null,Ye=!1}function cf(){var t=Ma;return t!==null&&(ir===null?ir=t:ir.push.apply(ir,t),Ma=null),t}function Fl(t){Ma===null?Ma=[t]:Ma.push(t)}var ff=N(null),fi=null,la=null;function Ba(t,n,i){ee(ff,n._currentValue),n._currentValue=i}function sa(t){t._currentValue=ff.current,Y(ff)}function hf(t,n,i){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===i)break;t=t.return}}function df(t,n,i,s){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var h=c.dependencies;if(h!==null){var g=c.child;h=h.firstContext;e:for(;h!==null;){var x=h;h=c;for(var M=0;M<n.length;M++)if(x.context===n[M]){h.lanes|=i,x=h.alternate,x!==null&&(x.lanes|=i),hf(h.return,i,t),s||(g=null);break e}h=x.next}}else if(c.tag===18){if(g=c.return,g===null)throw Error(l(341));g.lanes|=i,h=g.alternate,h!==null&&(h.lanes|=i),hf(g,i,t),g=null}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===t){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}}function Qi(t,n,i,s){t=null;for(var c=n,h=!1;c!==null;){if(!h){if((c.flags&524288)!==0)h=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var g=c.alternate;if(g===null)throw Error(l(387));if(g=g.memoizedProps,g!==null){var x=c.type;sr(c.pendingProps.value,g.value)||(t!==null?t.push(x):t=[x])}}else if(c===ge.current){if(g=c.alternate,g===null)throw Error(l(387));g.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(ms):t=[ms])}c=c.return}t!==null&&df(n,t,i,s),n.flags|=262144}function mo(t){for(t=t.firstContext;t!==null;){if(!sr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function hi(t){fi=t,la=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function On(t){return Tg(fi,t)}function po(t,n){return fi===null&&hi(t),Tg(t,n)}function Tg(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},la===null){if(t===null)throw Error(l(308));la=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else la=la.next=n;return i}var tE=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,s){t.push(s)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},nE=e.unstable_scheduleCallback,rE=e.unstable_NormalPriority,en={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mf(){return{controller:new tE,data:new Map,refCount:0}}function Vl(t){t.refCount--,t.refCount===0&&nE(rE,function(){t.controller.abort()})}var Pl=null,pf=0,Zi=0,Yi=null;function aE(t,n){if(Pl===null){var i=Pl=[];pf=0,Zi=bh(),Yi={status:"pending",value:void 0,then:function(s){i.push(s)}}}return pf++,n.then(xg,xg),n}function xg(){if(--pf===0&&Pl!==null){Yi!==null&&(Yi.status="fulfilled");var t=Pl;Pl=null,Zi=0,Yi=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function iE(t,n){var i=[],s={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var c=0;c<i.length;c++)(0,i[c])(n)},function(c){for(s.status="rejected",s.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),s}var wg=U.S;U.S=function(t,n){ov=ct(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&aE(t,n),wg!==null&&wg(t,n)};var di=N(null);function gf(){var t=di.current;return t!==null?t:Ct.pooledCache}function go(t,n){n===null?ee(di,di.current):ee(di,n.pool)}function Ag(){var t=gf();return t===null?null:{parent:en._currentValue,pool:t}}var Ji=Error(l(460)),vf=Error(l(474)),vo=Error(l(542)),bo={then:function(){}};function Cg(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Og(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(na,na),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Ng(t),t;default:if(typeof n.status=="string")n.then(na,na);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=n,t.status="pending",t.then(function(s){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=s}},function(s){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Ng(t),t}throw pi=n,Ji}}function mi(t){try{var n=t._init;return n(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(pi=i,Ji):i}}var pi=null;function Rg(){if(pi===null)throw Error(l(459));var t=pi;return pi=null,t}function Ng(t){if(t===Ji||t===vo)throw Error(l(483))}var Ki=null,Gl=0;function yo(t){var n=Gl;return Gl+=1,Ki===null&&(Ki=[]),Og(Ki,t,n)}function Xl(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function _o(t,n){throw n.$$typeof===b?Error(l(525)):(t=Object.prototype.toString.call(n),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Dg(t){function n(H,L){if(t){var z=H.deletions;z===null?(H.deletions=[L],H.flags|=16):z.push(L)}}function i(H,L){if(!t)return null;for(;L!==null;)n(H,L),L=L.sibling;return null}function s(H){for(var L=new Map;H!==null;)H.key!==null?L.set(H.key,H):L.set(H.index,H),H=H.sibling;return L}function c(H,L){return H=aa(H,L),H.index=0,H.sibling=null,H}function h(H,L,z){return H.index=z,t?(z=H.alternate,z!==null?(z=z.index,z<L?(H.flags|=67108866,L):z):(H.flags|=67108866,L)):(H.flags|=1048576,L)}function g(H){return t&&H.alternate===null&&(H.flags|=67108866),H}function x(H,L,z,te){return L===null||L.tag!==6?(L=af(z,H.mode,te),L.return=H,L):(L=c(L,z),L.return=H,L)}function M(H,L,z,te){var we=z.type;return we===T?q(H,L,z.props.children,te,z.key):L!==null&&(L.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===K&&mi(we)===L.type)?(L=c(L,z.props),Xl(L,z),L.return=H,L):(L=fo(z.type,z.key,z.props,null,H.mode,te),Xl(L,z),L.return=H,L)}function I(H,L,z,te){return L===null||L.tag!==4||L.stateNode.containerInfo!==z.containerInfo||L.stateNode.implementation!==z.implementation?(L=lf(z,H.mode,te),L.return=H,L):(L=c(L,z.children||[]),L.return=H,L)}function q(H,L,z,te,we){return L===null||L.tag!==7?(L=ui(z,H.mode,te,we),L.return=H,L):(L=c(L,z),L.return=H,L)}function re(H,L,z){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=af(""+L,H.mode,z),L.return=H,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return z=fo(L.type,L.key,L.props,null,H.mode,z),Xl(z,L),z.return=H,z;case E:return L=lf(L,H.mode,z),L.return=H,L;case K:return L=mi(L),re(H,L,z)}if(he(L)||J(L))return L=ui(L,H.mode,z,null),L.return=H,L;if(typeof L.then=="function")return re(H,yo(L),z);if(L.$$typeof===C)return re(H,po(H,L),z);_o(H,L)}return null}function P(H,L,z,te){var we=L!==null?L.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return we!==null?null:x(H,L,""+z,te);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return z.key===we?M(H,L,z,te):null;case E:return z.key===we?I(H,L,z,te):null;case K:return z=mi(z),P(H,L,z,te)}if(he(z)||J(z))return we!==null?null:q(H,L,z,te,null);if(typeof z.then=="function")return P(H,L,yo(z),te);if(z.$$typeof===C)return P(H,L,po(H,z),te);_o(H,z)}return null}function Q(H,L,z,te,we){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return H=H.get(z)||null,x(L,H,""+te,we);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case S:return H=H.get(te.key===null?z:te.key)||null,M(L,H,te,we);case E:return H=H.get(te.key===null?z:te.key)||null,I(L,H,te,we);case K:return te=mi(te),Q(H,L,z,te,we)}if(he(te)||J(te))return H=H.get(z)||null,q(L,H,te,we,null);if(typeof te.then=="function")return Q(H,L,z,yo(te),we);if(te.$$typeof===C)return Q(H,L,z,po(L,te),we);_o(L,te)}return null}function ve(H,L,z,te){for(var we=null,ot=null,ye=L,Ue=L=0,Qe=null;ye!==null&&Ue<z.length;Ue++){ye.index>Ue?(Qe=ye,ye=null):Qe=ye.sibling;var ut=P(H,ye,z[Ue],te);if(ut===null){ye===null&&(ye=Qe);break}t&&ye&&ut.alternate===null&&n(H,ye),L=h(ut,L,Ue),ot===null?we=ut:ot.sibling=ut,ot=ut,ye=Qe}if(Ue===z.length)return i(H,ye),Ye&&ia(H,Ue),we;if(ye===null){for(;Ue<z.length;Ue++)ye=re(H,z[Ue],te),ye!==null&&(L=h(ye,L,Ue),ot===null?we=ye:ot.sibling=ye,ot=ye);return Ye&&ia(H,Ue),we}for(ye=s(ye);Ue<z.length;Ue++)Qe=Q(ye,H,Ue,z[Ue],te),Qe!==null&&(t&&Qe.alternate!==null&&ye.delete(Qe.key===null?Ue:Qe.key),L=h(Qe,L,Ue),ot===null?we=Qe:ot.sibling=Qe,ot=Qe);return t&&ye.forEach(function(Wa){return n(H,Wa)}),Ye&&ia(H,Ue),we}function Ce(H,L,z,te){if(z==null)throw Error(l(151));for(var we=null,ot=null,ye=L,Ue=L=0,Qe=null,ut=z.next();ye!==null&&!ut.done;Ue++,ut=z.next()){ye.index>Ue?(Qe=ye,ye=null):Qe=ye.sibling;var Wa=P(H,ye,ut.value,te);if(Wa===null){ye===null&&(ye=Qe);break}t&&ye&&Wa.alternate===null&&n(H,ye),L=h(Wa,L,Ue),ot===null?we=Wa:ot.sibling=Wa,ot=Wa,ye=Qe}if(ut.done)return i(H,ye),Ye&&ia(H,Ue),we;if(ye===null){for(;!ut.done;Ue++,ut=z.next())ut=re(H,ut.value,te),ut!==null&&(L=h(ut,L,Ue),ot===null?we=ut:ot.sibling=ut,ot=ut);return Ye&&ia(H,Ue),we}for(ye=s(ye);!ut.done;Ue++,ut=z.next())ut=Q(ye,H,Ue,ut.value,te),ut!==null&&(t&&ut.alternate!==null&&ye.delete(ut.key===null?Ue:ut.key),L=h(ut,L,Ue),ot===null?we=ut:ot.sibling=ut,ot=ut);return t&&ye.forEach(function(gT){return n(H,gT)}),Ye&&ia(H,Ue),we}function xt(H,L,z,te){if(typeof z=="object"&&z!==null&&z.type===T&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case S:e:{for(var we=z.key;L!==null;){if(L.key===we){if(we=z.type,we===T){if(L.tag===7){i(H,L.sibling),te=c(L,z.props.children),te.return=H,H=te;break e}}else if(L.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===K&&mi(we)===L.type){i(H,L.sibling),te=c(L,z.props),Xl(te,z),te.return=H,H=te;break e}i(H,L);break}else n(H,L);L=L.sibling}z.type===T?(te=ui(z.props.children,H.mode,te,z.key),te.return=H,H=te):(te=fo(z.type,z.key,z.props,null,H.mode,te),Xl(te,z),te.return=H,H=te)}return g(H);case E:e:{for(we=z.key;L!==null;){if(L.key===we)if(L.tag===4&&L.stateNode.containerInfo===z.containerInfo&&L.stateNode.implementation===z.implementation){i(H,L.sibling),te=c(L,z.children||[]),te.return=H,H=te;break e}else{i(H,L);break}else n(H,L);L=L.sibling}te=lf(z,H.mode,te),te.return=H,H=te}return g(H);case K:return z=mi(z),xt(H,L,z,te)}if(he(z))return ve(H,L,z,te);if(J(z)){if(we=J(z),typeof we!="function")throw Error(l(150));return z=we.call(z),Ce(H,L,z,te)}if(typeof z.then=="function")return xt(H,L,yo(z),te);if(z.$$typeof===C)return xt(H,L,po(H,z),te);_o(H,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,L!==null&&L.tag===6?(i(H,L.sibling),te=c(L,z),te.return=H,H=te):(i(H,L),te=af(z,H.mode,te),te.return=H,H=te),g(H)):i(H,L)}return function(H,L,z,te){try{Gl=0;var we=xt(H,L,z,te);return Ki=null,we}catch(ye){if(ye===Ji||ye===vo)throw ye;var ot=or(29,ye,null,H.mode);return ot.lanes=te,ot.return=H,ot}finally{}}}var gi=Dg(!0),Mg=Dg(!1),ka=!1;function bf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yf(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ha(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ua(t,n,i){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(ft&2)!==0){var c=s.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),s.pending=n,n=co(t),pg(t,null,i),n}return uo(t,s,n,i),co(t)}function Ql(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=t.pendingLanes,i|=s,n.lanes=i,dn(t,i)}}function _f(t,n){var i=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var c=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?c=h=g:h=h.next=g,i=i.next}while(i!==null);h===null?c=h=n:h=h.next=n}else c=h=n;i={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:h,shared:s.shared,callbacks:s.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var Sf=!1;function Zl(){if(Sf){var t=Yi;if(t!==null)throw t}}function Yl(t,n,i,s){Sf=!1;var c=t.updateQueue;ka=!1;var h=c.firstBaseUpdate,g=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var M=x,I=M.next;M.next=null,g===null?h=I:g.next=I,g=M;var q=t.alternate;q!==null&&(q=q.updateQueue,x=q.lastBaseUpdate,x!==g&&(x===null?q.firstBaseUpdate=I:x.next=I,q.lastBaseUpdate=M))}if(h!==null){var re=c.baseState;g=0,q=I=M=null,x=h;do{var P=x.lane&-536870913,Q=P!==x.lane;if(Q?(Xe&P)===P:(s&P)===P){P!==0&&P===Zi&&(Sf=!0),q!==null&&(q=q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ve=t,Ce=x;P=n;var xt=i;switch(Ce.tag){case 1:if(ve=Ce.payload,typeof ve=="function"){re=ve.call(xt,re,P);break e}re=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ce.payload,P=typeof ve=="function"?ve.call(xt,re,P):ve,P==null)break e;re=y({},re,P);break e;case 2:ka=!0}}P=x.callback,P!==null&&(t.flags|=64,Q&&(t.flags|=8192),Q=c.callbacks,Q===null?c.callbacks=[P]:Q.push(P))}else Q={lane:P,tag:x.tag,payload:x.payload,callback:x.callback,next:null},q===null?(I=q=Q,M=re):q=q.next=Q,g|=P;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;Q=x,x=Q.next,Q.next=null,c.lastBaseUpdate=Q,c.shared.pending=null}}while(!0);q===null&&(M=re),c.baseState=M,c.firstBaseUpdate=I,c.lastBaseUpdate=q,h===null&&(c.shared.lanes=0),Va|=g,t.lanes=g,t.memoizedState=re}}function Lg(t,n){if(typeof t!="function")throw Error(l(191,t));t.call(n)}function Bg(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Lg(i[t],n)}var $i=N(null),So=N(0);function kg(t,n){t=ga,ee(So,t),ee($i,n),ga=t|n.baseLanes}function Ef(){ee(So,ga),ee($i,$i.current)}function Tf(){ga=So.current,Y($i),Y(So)}var ur=N(null),xr=null;function ja(t){var n=t.alternate;ee(Yt,Yt.current&1),ee(ur,t),xr===null&&(n===null||$i.current!==null||n.memoizedState!==null)&&(xr=t)}function xf(t){ee(Yt,Yt.current),ee(ur,t),xr===null&&(xr=t)}function Hg(t){t.tag===22?(ee(Yt,Yt.current),ee(ur,t),xr===null&&(xr=t)):za()}function za(){ee(Yt,Yt.current),ee(ur,ur.current)}function cr(t){Y(ur),xr===t&&(xr=null),Y(Yt)}var Yt=N(0);function Eo(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Nh(i)||Dh(i)))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===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var oa=0,ke=null,Et=null,tn=null,To=!1,Wi=!1,vi=!1,xo=0,Jl=0,qi=null,lE=0;function Vt(){throw Error(l(321))}function wf(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!sr(t[i],n[i]))return!1;return!0}function Af(t,n,i,s,c,h){return oa=h,ke=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,U.H=t===null||t.memoizedState===null?y0:Ff,vi=!1,h=i(s,c),vi=!1,Wi&&(h=jg(n,i,s,c)),Ug(t),h}function Ug(t){U.H=Wl;var n=Et!==null&&Et.next!==null;if(oa=0,tn=Et=ke=null,To=!1,Jl=0,qi=null,n)throw Error(l(300));t===null||nn||(t=t.dependencies,t!==null&&mo(t)&&(nn=!0))}function jg(t,n,i,s){ke=t;var c=0;do{if(Wi&&(qi=null),Jl=0,Wi=!1,25<=c)throw Error(l(301));if(c+=1,tn=Et=null,t.updateQueue!=null){var h=t.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}U.H=_0,h=n(i,s)}while(Wi);return h}function sE(){var t=U.H,n=t.useState()[0];return n=typeof n.then=="function"?Kl(n):n,t=t.useState()[0],(Et!==null?Et.memoizedState:null)!==t&&(ke.flags|=1024),n}function Cf(){var t=xo!==0;return xo=0,t}function Of(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function Rf(t){if(To){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}To=!1}oa=0,tn=Et=ke=null,Wi=!1,Jl=xo=0,qi=null}function Xn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?ke.memoizedState=tn=t:tn=tn.next=t,tn}function Jt(){if(Et===null){var t=ke.alternate;t=t!==null?t.memoizedState:null}else t=Et.next;var n=tn===null?ke.memoizedState:tn.next;if(n!==null)tn=n,Et=t;else{if(t===null)throw ke.alternate===null?Error(l(467)):Error(l(310));Et=t,t={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},tn===null?ke.memoizedState=tn=t:tn=tn.next=t}return tn}function wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(t){var n=Jl;return Jl+=1,qi===null&&(qi=[]),t=Og(qi,t,n),n=ke,(tn===null?n.memoizedState:tn.next)===null&&(n=n.alternate,U.H=n===null||n.memoizedState===null?y0:Ff),t}function Ao(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Kl(t);if(t.$$typeof===C)return On(t)}throw Error(l(438,String(t)))}function Nf(t){var n=null,i=ke.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=ke.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=wo(),ke.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),s=0;s<t;s++)i[s]=$;return n.index++,i}function ua(t,n){return typeof n=="function"?n(t):n}function Co(t){var n=Jt();return Df(n,Et,t)}function Df(t,n,i){var s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=i;var c=t.baseQueue,h=s.pending;if(h!==null){if(c!==null){var g=c.next;c.next=h.next,h.next=g}n.baseQueue=c=h,s.pending=null}if(h=t.baseState,c===null)t.memoizedState=h;else{n=c.next;var x=g=null,M=null,I=n,q=!1;do{var re=I.lane&-536870913;if(re!==I.lane?(Xe&re)===re:(oa&re)===re){var P=I.revertLane;if(P===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),re===Zi&&(q=!0);else if((oa&P)===P){I=I.next,P===Zi&&(q=!0);continue}else re={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(x=M=re,g=h):M=M.next=re,ke.lanes|=P,Va|=P;re=I.action,vi&&i(h,re),h=I.hasEagerState?I.eagerState:i(h,re)}else P={lane:re,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(x=M=P,g=h):M=M.next=P,ke.lanes|=re,Va|=re;I=I.next}while(I!==null&&I!==n);if(M===null?g=h:M.next=x,!sr(h,t.memoizedState)&&(nn=!0,q&&(i=Yi,i!==null)))throw i;t.memoizedState=h,t.baseState=g,t.baseQueue=M,s.lastRenderedState=h}return c===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Mf(t){var n=Jt(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=t;var s=i.dispatch,c=i.pending,h=n.memoizedState;if(c!==null){i.pending=null;var g=c=c.next;do h=t(h,g.action),g=g.next;while(g!==c);sr(h,n.memoizedState)||(nn=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,s]}function zg(t,n,i){var s=ke,c=Jt(),h=Ye;if(h){if(i===void 0)throw Error(l(407));i=i()}else i=n();var g=!sr((Et||c).memoizedState,i);if(g&&(c.memoizedState=i,nn=!0),c=c.queue,kf(Vg.bind(null,s,c,t),[t]),c.getSnapshot!==n||g||tn!==null&&tn.memoizedState.tag&1){if(s.flags|=2048,el(9,{destroy:void 0},Fg.bind(null,s,c,i,n),null),Ct===null)throw Error(l(349));h||(oa&127)!==0||Ig(s,n,i)}return i}function Ig(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=ke.updateQueue,n===null?(n=wo(),ke.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function Fg(t,n,i,s){n.value=i,n.getSnapshot=s,Pg(n)&&Gg(t)}function Vg(t,n,i){return i(function(){Pg(n)&&Gg(t)})}function Pg(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!sr(t,i)}catch{return!0}}function Gg(t){var n=oi(t,2);n!==null&&lr(n,t,2)}function Lf(t){var n=Xn();if(typeof t=="function"){var i=t;if(t=i(),vi){pt(!0);try{i()}finally{pt(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:t},n}function Xg(t,n,i,s){return t.baseState=i,Df(t,Et,typeof s=="function"?s:ua)}function oE(t,n,i,s,c){if(No(t))throw Error(l(485));if(t=n.action,t!==null){var h={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){h.listeners.push(g)}};U.T!==null?i(!0):h.isTransition=!1,s(h),i=n.pending,i===null?(h.next=n.pending=h,Qg(n,h)):(h.next=i.next,n.pending=i.next=h)}}function Qg(t,n){var i=n.action,s=n.payload,c=t.state;if(n.isTransition){var h=U.T,g={};U.T=g;try{var x=i(c,s),M=U.S;M!==null&&M(g,x),Zg(t,n,x)}catch(I){Bf(t,n,I)}finally{h!==null&&g.types!==null&&(h.types=g.types),U.T=h}}else try{h=i(c,s),Zg(t,n,h)}catch(I){Bf(t,n,I)}}function Zg(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){Yg(t,n,s)},function(s){return Bf(t,n,s)}):Yg(t,n,i)}function Yg(t,n,i){n.status="fulfilled",n.value=i,Jg(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,Qg(t,i)))}function Bf(t,n,i){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,Jg(n),n=n.next;while(n!==s)}t.action=null}function Jg(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Kg(t,n){return n}function $g(t,n){if(Ye){var i=Ct.formState;if(i!==null){e:{var s=ke;if(Ye){if(Dt){t:{for(var c=Dt,h=Tr;c.nodeType!==8;){if(!h){c=null;break t}if(c=wr(c.nextSibling),c===null){c=null;break t}}h=c.data,c=h==="F!"||h==="F"?c:null}if(c){Dt=wr(c.nextSibling),s=c.data==="F!";break e}}La(s)}s=!1}s&&(n=i[0])}}return i=Xn(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kg,lastRenderedState:n},i.queue=s,i=g0.bind(null,ke,s),s.dispatch=i,s=Lf(!1),h=If.bind(null,ke,!1,s.queue),s=Xn(),c={state:n,dispatch:null,action:t,pending:null},s.queue=c,i=oE.bind(null,ke,c,h,i),c.dispatch=i,s.memoizedState=t,[n,i,!1]}function Wg(t){var n=Jt();return qg(n,Et,t)}function qg(t,n,i){if(n=Df(t,n,Kg)[0],t=Co(ua)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Kl(n)}catch(g){throw g===Ji?vo:g}else s=n;n=Jt();var c=n.queue,h=c.dispatch;return i!==n.memoizedState&&(ke.flags|=2048,el(9,{destroy:void 0},uE.bind(null,c,i),null)),[s,h,t]}function uE(t,n){t.action=n}function e0(t){var n=Jt(),i=Et;if(i!==null)return qg(n,i,t);Jt(),n=n.memoizedState,i=Jt();var s=i.queue.dispatch;return i.memoizedState=t,[n,s,!1]}function el(t,n,i,s){return t={tag:t,create:i,deps:s,inst:n,next:null},n=ke.updateQueue,n===null&&(n=wo(),ke.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(s=i.next,i.next=t,t.next=s,n.lastEffect=t),t}function t0(){return Jt().memoizedState}function Oo(t,n,i,s){var c=Xn();ke.flags|=t,c.memoizedState=el(1|n,{destroy:void 0},i,s===void 0?null:s)}function Ro(t,n,i,s){var c=Jt();s=s===void 0?null:s;var h=c.memoizedState.inst;Et!==null&&s!==null&&wf(s,Et.memoizedState.deps)?c.memoizedState=el(n,h,i,s):(ke.flags|=t,c.memoizedState=el(1|n,h,i,s))}function n0(t,n){Oo(8390656,8,t,n)}function kf(t,n){Ro(2048,8,t,n)}function cE(t){ke.flags|=4;var n=ke.updateQueue;if(n===null)n=wo(),ke.updateQueue=n,n.events=[t];else{var i=n.events;i===null?n.events=[t]:i.push(t)}}function r0(t){var n=Jt().memoizedState;return cE({ref:n,nextImpl:t}),function(){if((ft&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function a0(t,n){return Ro(4,2,t,n)}function i0(t,n){return Ro(4,4,t,n)}function l0(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function s0(t,n,i){i=i!=null?i.concat([t]):null,Ro(4,4,l0.bind(null,n,t),i)}function Hf(){}function o0(t,n){var i=Jt();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&wf(n,s[1])?s[0]:(i.memoizedState=[t,n],t)}function u0(t,n){var i=Jt();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&wf(n,s[1]))return s[0];if(s=t(),vi){pt(!0);try{t()}finally{pt(!1)}}return i.memoizedState=[s,n],s}function Uf(t,n,i){return i===void 0||(oa&1073741824)!==0&&(Xe&261930)===0?t.memoizedState=n:(t.memoizedState=i,t=cv(),ke.lanes|=t,Va|=t,i)}function c0(t,n,i,s){return sr(i,n)?i:$i.current!==null?(t=Uf(t,i,s),sr(t,n)||(nn=!0),t):(oa&42)===0||(oa&1073741824)!==0&&(Xe&261930)===0?(nn=!0,t.memoizedState=i):(t=cv(),ke.lanes|=t,Va|=t,n)}function f0(t,n,i,s,c){var h=ae.p;ae.p=h!==0&&8>h?h:8;var g=U.T,x={};U.T=x,If(t,!1,n,i);try{var M=c(),I=U.S;if(I!==null&&I(x,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var q=iE(M,s);$l(t,n,q,dr(t))}else $l(t,n,s,dr(t))}catch(re){$l(t,n,{then:function(){},status:"rejected",reason:re},dr())}finally{ae.p=h,g!==null&&x.types!==null&&(g.types=x.types),U.T=g}}function fE(){}function jf(t,n,i,s){if(t.tag!==5)throw Error(l(476));var c=h0(t).queue;f0(t,c,n,X,i===null?fE:function(){return d0(t),i(s)})}function h0(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:X},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function d0(t){var n=h0(t);n.next===null&&(n=t.alternate.memoizedState),$l(t,n.next.queue,{},dr())}function zf(){return On(ms)}function m0(){return Jt().memoizedState}function p0(){return Jt().memoizedState}function hE(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=dr();t=Ha(i);var s=Ua(n,t,i);s!==null&&(lr(s,n,i),Ql(s,n,i)),n={cache:mf()},t.payload=n;return}n=n.return}}function dE(t,n,i){var s=dr();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},No(t)?v0(n,i):(i=nf(t,n,i,s),i!==null&&(lr(i,t,s),b0(i,n,s)))}function g0(t,n,i){var s=dr();$l(t,n,i,s)}function $l(t,n,i,s){var c={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(No(t))v0(n,c);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var g=n.lastRenderedState,x=h(g,i);if(c.hasEagerState=!0,c.eagerState=x,sr(x,g))return uo(t,n,c,0),Ct===null&&oo(),!1}catch{}finally{}if(i=nf(t,n,c,s),i!==null)return lr(i,t,s),b0(i,n,s),!0}return!1}function If(t,n,i,s){if(s={lane:2,revertLane:bh(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},No(t)){if(n)throw Error(l(479))}else n=nf(t,i,s,2),n!==null&&lr(n,t,2)}function No(t){var n=t.alternate;return t===ke||n!==null&&n===ke}function v0(t,n){Wi=To=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function b0(t,n,i){if((i&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,i|=s,n.lanes=i,dn(t,i)}}var Wl={readContext:On,use:Ao,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};Wl.useEffectEvent=Vt;var y0={readContext:On,use:Ao,useCallback:function(t,n){return Xn().memoizedState=[t,n===void 0?null:n],t},useContext:On,useEffect:n0,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,Oo(4194308,4,l0.bind(null,n,t),i)},useLayoutEffect:function(t,n){return Oo(4194308,4,t,n)},useInsertionEffect:function(t,n){Oo(4,2,t,n)},useMemo:function(t,n){var i=Xn();n=n===void 0?null:n;var s=t();if(vi){pt(!0);try{t()}finally{pt(!1)}}return i.memoizedState=[s,n],s},useReducer:function(t,n,i){var s=Xn();if(i!==void 0){var c=i(n);if(vi){pt(!0);try{i(n)}finally{pt(!1)}}}else c=n;return s.memoizedState=s.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},s.queue=t,t=t.dispatch=dE.bind(null,ke,t),[s.memoizedState,t]},useRef:function(t){var n=Xn();return t={current:t},n.memoizedState=t},useState:function(t){t=Lf(t);var n=t.queue,i=g0.bind(null,ke,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:Hf,useDeferredValue:function(t,n){var i=Xn();return Uf(i,t,n)},useTransition:function(){var t=Lf(!1);return t=f0.bind(null,ke,t.queue,!0,!1),Xn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var s=ke,c=Xn();if(Ye){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),Ct===null)throw Error(l(349));(Xe&127)!==0||Ig(s,n,i)}c.memoizedState=i;var h={value:i,getSnapshot:n};return c.queue=h,n0(Vg.bind(null,s,h,t),[t]),s.flags|=2048,el(9,{destroy:void 0},Fg.bind(null,s,h,i,n),null),i},useId:function(){var t=Xn(),n=Ct.identifierPrefix;if(Ye){var i=Gr,s=Pr;i=(s&~(1<<32-$e(s)-1)).toString(32)+i,n="_"+n+"R_"+i,i=xo++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=lE++,n="_"+n+"r_"+i.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:zf,useFormState:$g,useActionState:$g,useOptimistic:function(t){var n=Xn();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=If.bind(null,ke,!0,i),i.dispatch=n,[t,n]},useMemoCache:Nf,useCacheRefresh:function(){return Xn().memoizedState=hE.bind(null,ke)},useEffectEvent:function(t){var n=Xn(),i={impl:t};return n.memoizedState=i,function(){if((ft&2)!==0)throw Error(l(440));return i.impl.apply(void 0,arguments)}}},Ff={readContext:On,use:Ao,useCallback:o0,useContext:On,useEffect:kf,useImperativeHandle:s0,useInsertionEffect:a0,useLayoutEffect:i0,useMemo:u0,useReducer:Co,useRef:t0,useState:function(){return Co(ua)},useDebugValue:Hf,useDeferredValue:function(t,n){var i=Jt();return c0(i,Et.memoizedState,t,n)},useTransition:function(){var t=Co(ua)[0],n=Jt().memoizedState;return[typeof t=="boolean"?t:Kl(t),n]},useSyncExternalStore:zg,useId:m0,useHostTransitionStatus:zf,useFormState:Wg,useActionState:Wg,useOptimistic:function(t,n){var i=Jt();return Xg(i,Et,t,n)},useMemoCache:Nf,useCacheRefresh:p0};Ff.useEffectEvent=r0;var _0={readContext:On,use:Ao,useCallback:o0,useContext:On,useEffect:kf,useImperativeHandle:s0,useInsertionEffect:a0,useLayoutEffect:i0,useMemo:u0,useReducer:Mf,useRef:t0,useState:function(){return Mf(ua)},useDebugValue:Hf,useDeferredValue:function(t,n){var i=Jt();return Et===null?Uf(i,t,n):c0(i,Et.memoizedState,t,n)},useTransition:function(){var t=Mf(ua)[0],n=Jt().memoizedState;return[typeof t=="boolean"?t:Kl(t),n]},useSyncExternalStore:zg,useId:m0,useHostTransitionStatus:zf,useFormState:e0,useActionState:e0,useOptimistic:function(t,n){var i=Jt();return Et!==null?Xg(i,Et,t,n):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Nf,useCacheRefresh:p0};_0.useEffectEvent=r0;function Vf(t,n,i,s){n=t.memoizedState,i=i(s,n),i=i==null?n:y({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Pf={enqueueSetState:function(t,n,i){t=t._reactInternals;var s=dr(),c=Ha(s);c.payload=n,i!=null&&(c.callback=i),n=Ua(t,c,s),n!==null&&(lr(n,t,s),Ql(n,t,s))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var s=dr(),c=Ha(s);c.tag=1,c.payload=n,i!=null&&(c.callback=i),n=Ua(t,c,s),n!==null&&(lr(n,t,s),Ql(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=dr(),s=Ha(i);s.tag=2,n!=null&&(s.callback=n),n=Ua(t,s,i),n!==null&&(lr(n,t,i),Ql(n,t,i))}};function S0(t,n,i,s,c,h,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,h,g):n.prototype&&n.prototype.isPureReactComponent?!jl(i,s)||!jl(c,h):!0}function E0(t,n,i,s){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==t&&Pf.enqueueReplaceState(n,n.state,null)}function bi(t,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(t=t.defaultProps){i===n&&(i=y({},i));for(var c in t)i[c]===void 0&&(i[c]=t[c])}return i}function T0(t){so(t)}function x0(t){console.error(t)}function w0(t){so(t)}function Do(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function A0(t,n,i){try{var s=t.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Gf(t,n,i){return i=Ha(i),i.tag=3,i.payload={element:null},i.callback=function(){Do(t,n)},i}function C0(t){return t=Ha(t),t.tag=3,t}function O0(t,n,i,s){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var h=s.value;t.payload=function(){return c(h)},t.callback=function(){A0(n,i,s)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){A0(n,i,s),typeof c!="function"&&(Pa===null?Pa=new Set([this]):Pa.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function mE(t,n,i,s,c){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&Qi(n,i,c,!0),i=ur.current,i!==null){switch(i.tag){case 31:case 13:return xr===null?Po():i.alternate===null&&Pt===0&&(Pt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,s===bo?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),ph(t,s,c)),!1;case 22:return i.flags|=65536,s===bo?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),ph(t,s,c)),!1}throw Error(l(435,i.tag))}return ph(t,s,c),Po(),!1}if(Ye)return n=ur.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,s!==uf&&(t=Error(l(422),{cause:s}),Fl(_r(t,i)))):(s!==uf&&(n=Error(l(423),{cause:s}),Fl(_r(n,i))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,s=_r(s,i),c=Gf(t.stateNode,s,c),_f(t,c),Pt!==4&&(Pt=2)),!1;var h=Error(l(520),{cause:s});if(h=_r(h,i),ls===null?ls=[h]:ls.push(h),Pt!==4&&(Pt=2),n===null)return!0;s=_r(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=c&-c,i.lanes|=t,t=Gf(i.stateNode,s,t),_f(i,t),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Pa===null||!Pa.has(h))))return i.flags|=65536,c&=-c,i.lanes|=c,c=C0(c),O0(c,t,i,s),_f(i,c),!1}i=i.return}while(i!==null);return!1}var Xf=Error(l(461)),nn=!1;function Rn(t,n,i,s){n.child=t===null?Mg(n,null,i,s):gi(n,t.child,i,s)}function R0(t,n,i,s,c){i=i.render;var h=n.ref;if("ref"in s){var g={};for(var x in s)x!=="ref"&&(g[x]=s[x])}else g=s;return hi(n),s=Af(t,n,i,g,h,c),x=Cf(),t!==null&&!nn?(Of(t,n,c),ca(t,n,c)):(Ye&&x&&sf(n),n.flags|=1,Rn(t,n,s,c),n.child)}function N0(t,n,i,s,c){if(t===null){var h=i.type;return typeof h=="function"&&!rf(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,D0(t,n,h,s,c)):(t=fo(i.type,null,s,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(h=t.child,!qf(t,c)){var g=h.memoizedProps;if(i=i.compare,i=i!==null?i:jl,i(g,s)&&t.ref===n.ref)return ca(t,n,c)}return n.flags|=1,t=aa(h,s),t.ref=n.ref,t.return=n,n.child=t}function D0(t,n,i,s,c){if(t!==null){var h=t.memoizedProps;if(jl(h,s)&&t.ref===n.ref)if(nn=!1,n.pendingProps=s=h,qf(t,c))(t.flags&131072)!==0&&(nn=!0);else return n.lanes=t.lanes,ca(t,n,c)}return Qf(t,n,i,s,c)}function M0(t,n,i,s){var c=s.children,h=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,t!==null){for(s=n.child=t.child,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;s=c&~h}else s=0,n.child=null;return L0(t,n,h,i,s)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&go(n,h!==null?h.cachePool:null),h!==null?kg(n,h):Ef(),Hg(n);else return s=n.lanes=536870912,L0(t,n,h!==null?h.baseLanes|i:i,i,s)}else h!==null?(go(n,h.cachePool),kg(n,h),za(),n.memoizedState=null):(t!==null&&go(n,null),Ef(),za());return Rn(t,n,c,i),n.child}function ql(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function L0(t,n,i,s,c){var h=gf();return h=h===null?null:{parent:en._currentValue,pool:h},n.memoizedState={baseLanes:i,cachePool:h},t!==null&&go(n,null),Ef(),Hg(n),t!==null&&Qi(t,n,s,!0),n.childLanes=c,null}function Mo(t,n){return n=Bo({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function B0(t,n,i){return gi(n,t.child,null,i),t=Mo(n,n.pendingProps),t.flags|=2,cr(n),n.memoizedState=null,t}function pE(t,n,i){var s=n.pendingProps,c=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Ye){if(s.mode==="hidden")return t=Mo(n,s),n.lanes=536870912,ql(null,t);if(xf(n),(t=Dt)?(t=Qv(t,Tr),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Da!==null?{id:Pr,overflow:Gr}:null,retryLane:536870912,hydrationErrors:null},i=vg(t),i.return=n,n.child=i,Cn=n,Dt=null)):t=null,t===null)throw La(n);return n.lanes=536870912,null}return Mo(n,s)}var h=t.memoizedState;if(h!==null){var g=h.dehydrated;if(xf(n),c)if(n.flags&256)n.flags&=-257,n=B0(t,n,i);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(l(558));else if(nn||Qi(t,n,i,!1),c=(i&t.childLanes)!==0,nn||c){if(s=Ct,s!==null&&(g=qt(s,i),g!==0&&g!==h.retryLane))throw h.retryLane=g,oi(t,g),lr(s,t,g),Xf;Po(),n=B0(t,n,i)}else t=h.treeContext,Dt=wr(g.nextSibling),Cn=n,Ye=!0,Ma=null,Tr=!1,t!==null&&_g(n,t),n=Mo(n,s),n.flags|=4096;return n}return t=aa(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function Lo(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(t===null||t.ref!==i)&&(n.flags|=4194816)}}function Qf(t,n,i,s,c){return hi(n),i=Af(t,n,i,s,void 0,c),s=Cf(),t!==null&&!nn?(Of(t,n,c),ca(t,n,c)):(Ye&&s&&sf(n),n.flags|=1,Rn(t,n,i,c),n.child)}function k0(t,n,i,s,c,h){return hi(n),n.updateQueue=null,i=jg(n,s,i,c),Ug(t),s=Cf(),t!==null&&!nn?(Of(t,n,h),ca(t,n,h)):(Ye&&s&&sf(n),n.flags|=1,Rn(t,n,i,h),n.child)}function H0(t,n,i,s,c){if(hi(n),n.stateNode===null){var h=Vi,g=i.contextType;typeof g=="object"&&g!==null&&(h=On(g)),h=new i(s,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Pf,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=s,h.state=n.memoizedState,h.refs={},bf(n),g=i.contextType,h.context=typeof g=="object"&&g!==null?On(g):Vi,h.state=n.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Vf(n,i,g,s),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(g=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),g!==h.state&&Pf.enqueueReplaceState(h,h.state,null),Yl(n,s,h,c),Zl(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(t===null){h=n.stateNode;var x=n.memoizedProps,M=bi(i,x);h.props=M;var I=h.context,q=i.contextType;g=Vi,typeof q=="object"&&q!==null&&(g=On(q));var re=i.getDerivedStateFromProps;q=typeof re=="function"||typeof h.getSnapshotBeforeUpdate=="function",x=n.pendingProps!==x,q||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x||I!==g)&&E0(n,h,s,g),ka=!1;var P=n.memoizedState;h.state=P,Yl(n,s,h,c),Zl(),I=n.memoizedState,x||P!==I||ka?(typeof re=="function"&&(Vf(n,i,re,s),I=n.memoizedState),(M=ka||S0(n,i,M,s,P,I,g))?(q||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=I),h.props=s,h.state=I,h.context=g,s=M):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{h=n.stateNode,yf(t,n),g=n.memoizedProps,q=bi(i,g),h.props=q,re=n.pendingProps,P=h.context,I=i.contextType,M=Vi,typeof I=="object"&&I!==null&&(M=On(I)),x=i.getDerivedStateFromProps,(I=typeof x=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(g!==re||P!==M)&&E0(n,h,s,M),ka=!1,P=n.memoizedState,h.state=P,Yl(n,s,h,c),Zl();var Q=n.memoizedState;g!==re||P!==Q||ka||t!==null&&t.dependencies!==null&&mo(t.dependencies)?(typeof x=="function"&&(Vf(n,i,x,s),Q=n.memoizedState),(q=ka||S0(n,i,q,s,P,Q,M)||t!==null&&t.dependencies!==null&&mo(t.dependencies))?(I||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(s,Q,M),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(s,Q,M)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||g===t.memoizedProps&&P===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&P===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Q),h.props=s,h.state=Q,h.context=M,s=q):(typeof h.componentDidUpdate!="function"||g===t.memoizedProps&&P===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&P===t.memoizedState||(n.flags|=1024),s=!1)}return h=s,Lo(t,n),s=(n.flags&128)!==0,h||s?(h=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,t!==null&&s?(n.child=gi(n,t.child,null,c),n.child=gi(n,null,i,c)):Rn(t,n,i,c),n.memoizedState=h.state,t=n.child):t=ca(t,n,c),t}function U0(t,n,i,s){return ci(),n.flags|=256,Rn(t,n,i,s),n.child}var Zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yf(t){return{baseLanes:t,cachePool:Ag()}}function Jf(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=hr),t}function j0(t,n,i){var s=n.pendingProps,c=!1,h=(n.flags&128)!==0,g;if((g=h)||(g=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),g&&(c=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,t===null){if(Ye){if(c?ja(n):za(),(t=Dt)?(t=Qv(t,Tr),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Da!==null?{id:Pr,overflow:Gr}:null,retryLane:536870912,hydrationErrors:null},i=vg(t),i.return=n,n.child=i,Cn=n,Dt=null)):t=null,t===null)throw La(n);return Dh(t)?n.lanes=32:n.lanes=536870912,null}var x=s.children;return s=s.fallback,c?(za(),c=n.mode,x=Bo({mode:"hidden",children:x},c),s=ui(s,c,i,null),x.return=n,s.return=n,x.sibling=s,n.child=x,s=n.child,s.memoizedState=Yf(i),s.childLanes=Jf(t,g,i),n.memoizedState=Zf,ql(null,s)):(ja(n),Kf(n,x))}var M=t.memoizedState;if(M!==null&&(x=M.dehydrated,x!==null)){if(h)n.flags&256?(ja(n),n.flags&=-257,n=$f(t,n,i)):n.memoizedState!==null?(za(),n.child=t.child,n.flags|=128,n=null):(za(),x=s.fallback,c=n.mode,s=Bo({mode:"visible",children:s.children},c),x=ui(x,c,i,null),x.flags|=2,s.return=n,x.return=n,s.sibling=x,n.child=s,gi(n,t.child,null,i),s=n.child,s.memoizedState=Yf(i),s.childLanes=Jf(t,g,i),n.memoizedState=Zf,n=ql(null,s));else if(ja(n),Dh(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var I=g.dgst;g=I,s=Error(l(419)),s.stack="",s.digest=g,Fl({value:s,source:null,stack:null}),n=$f(t,n,i)}else if(nn||Qi(t,n,i,!1),g=(i&t.childLanes)!==0,nn||g){if(g=Ct,g!==null&&(s=qt(g,i),s!==0&&s!==M.retryLane))throw M.retryLane=s,oi(t,s),lr(g,t,s),Xf;Nh(x)||Po(),n=$f(t,n,i)}else Nh(x)?(n.flags|=192,n.child=t.child,n=null):(t=M.treeContext,Dt=wr(x.nextSibling),Cn=n,Ye=!0,Ma=null,Tr=!1,t!==null&&_g(n,t),n=Kf(n,s.children),n.flags|=4096);return n}return c?(za(),x=s.fallback,c=n.mode,M=t.child,I=M.sibling,s=aa(M,{mode:"hidden",children:s.children}),s.subtreeFlags=M.subtreeFlags&65011712,I!==null?x=aa(I,x):(x=ui(x,c,i,null),x.flags|=2),x.return=n,s.return=n,s.sibling=x,n.child=s,ql(null,s),s=n.child,x=t.child.memoizedState,x===null?x=Yf(i):(c=x.cachePool,c!==null?(M=en._currentValue,c=c.parent!==M?{parent:M,pool:M}:c):c=Ag(),x={baseLanes:x.baseLanes|i,cachePool:c}),s.memoizedState=x,s.childLanes=Jf(t,g,i),n.memoizedState=Zf,ql(t.child,s)):(ja(n),i=t.child,t=i.sibling,i=aa(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,t!==null&&(g=n.deletions,g===null?(n.deletions=[t],n.flags|=16):g.push(t)),n.child=i,n.memoizedState=null,i)}function Kf(t,n){return n=Bo({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Bo(t,n){return t=or(22,t,null,n),t.lanes=0,t}function $f(t,n,i){return gi(n,t.child,null,i),t=Kf(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function z0(t,n,i){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),hf(t.return,n,i)}function Wf(t,n,i,s,c,h){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:c,treeForkCount:h}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=i,g.tailMode=c,g.treeForkCount=h)}function I0(t,n,i){var s=n.pendingProps,c=s.revealOrder,h=s.tail;s=s.children;var g=Yt.current,x=(g&2)!==0;if(x?(g=g&1|2,n.flags|=128):g&=1,ee(Yt,g),Rn(t,n,s,i),s=Ye?Il:0,!x&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&z0(t,i,n);else if(t.tag===19)z0(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(c){case"forwards":for(i=n.child,c=null;i!==null;)t=i.alternate,t!==null&&Eo(t)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),Wf(n,!1,c,i,h,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&Eo(t)===null){n.child=c;break}t=c.sibling,c.sibling=i,i=c,c=t}Wf(n,!0,i,null,h,s);break;case"together":Wf(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function ca(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),Va|=n.lanes,(i&n.childLanes)===0)if(t!==null){if(Qi(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(l(153));if(n.child!==null){for(t=n.child,i=aa(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=aa(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function qf(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&mo(t)))}function gE(t,n,i){switch(n.tag){case 3:Ee(n,n.stateNode.containerInfo),Ba(n,en,t.memoizedState.cache),ci();break;case 27:case 5:je(n);break;case 4:Ee(n,n.stateNode.containerInfo);break;case 10:Ba(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,xf(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(ja(n),n.flags|=128,null):(i&n.child.childLanes)!==0?j0(t,n,i):(ja(n),t=ca(t,n,i),t!==null?t.sibling:null);ja(n);break;case 19:var c=(t.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(Qi(t,n,i,!1),s=(i&n.childLanes)!==0),c){if(s)return I0(t,n,i);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ee(Yt,Yt.current),s)break;return null;case 22:return n.lanes=0,M0(t,n,i,n.pendingProps);case 24:Ba(n,en,t.memoizedState.cache)}return ca(t,n,i)}function F0(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)nn=!0;else{if(!qf(t,i)&&(n.flags&128)===0)return nn=!1,gE(t,n,i);nn=(t.flags&131072)!==0}else nn=!1,Ye&&(n.flags&1048576)!==0&&yg(n,Il,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=mi(n.elementType),n.type=t,typeof t=="function")rf(t)?(s=bi(t,s),n.tag=1,n=H0(null,n,t,s,i)):(n.tag=0,n=Qf(null,n,t,s,i));else{if(t!=null){var c=t.$$typeof;if(c===B){n.tag=11,n=R0(null,n,t,s,i);break e}else if(c===k){n.tag=14,n=N0(null,n,t,s,i);break e}}throw n=fe(t)||t,Error(l(306,n,""))}}return n;case 0:return Qf(t,n,n.type,n.pendingProps,i);case 1:return s=n.type,c=bi(s,n.pendingProps),H0(t,n,s,c,i);case 3:e:{if(Ee(n,n.stateNode.containerInfo),t===null)throw Error(l(387));s=n.pendingProps;var h=n.memoizedState;c=h.element,yf(t,n),Yl(n,s,null,i);var g=n.memoizedState;if(s=g.cache,Ba(n,en,s),s!==h.cache&&df(n,[en],i,!0),Zl(),s=g.element,h.isDehydrated)if(h={element:s,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=U0(t,n,s,i);break e}else if(s!==c){c=_r(Error(l(424)),n),Fl(c),n=U0(t,n,s,i);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Dt=wr(t.firstChild),Cn=n,Ye=!0,Ma=null,Tr=!0,i=Mg(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ci(),s===c){n=ca(t,n,i);break e}Rn(t,n,s,i)}n=n.child}return n;case 26:return Lo(t,n),t===null?(i=Wv(n.type,null,n.pendingProps,null))?n.memoizedState=i:Ye||(i=n.type,t=n.pendingProps,s=Ko(de.current).createElement(i),s[Ne]=n,s[rt]=t,Nn(s,i,t),me(s),n.stateNode=s):n.memoizedState=Wv(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return je(n),t===null&&Ye&&(s=n.stateNode=Jv(n.type,n.pendingProps,de.current),Cn=n,Tr=!0,c=Dt,Za(n.type)?(Mh=c,Dt=wr(s.firstChild)):Dt=c),Rn(t,n,n.pendingProps.children,i),Lo(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Ye&&((c=s=Dt)&&(s=QE(s,n.type,n.pendingProps,Tr),s!==null?(n.stateNode=s,Cn=n,Dt=wr(s.firstChild),Tr=!1,c=!0):c=!1),c||La(n)),je(n),c=n.type,h=n.pendingProps,g=t!==null?t.memoizedProps:null,s=h.children,Ch(c,h)?s=null:g!==null&&Ch(c,g)&&(n.flags|=32),n.memoizedState!==null&&(c=Af(t,n,sE,null,null,i),ms._currentValue=c),Lo(t,n),Rn(t,n,s,i),n.child;case 6:return t===null&&Ye&&((t=i=Dt)&&(i=ZE(i,n.pendingProps,Tr),i!==null?(n.stateNode=i,Cn=n,Dt=null,t=!0):t=!1),t||La(n)),null;case 13:return j0(t,n,i);case 4:return Ee(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=gi(n,null,s,i):Rn(t,n,s,i),n.child;case 11:return R0(t,n,n.type,n.pendingProps,i);case 7:return Rn(t,n,n.pendingProps,i),n.child;case 8:return Rn(t,n,n.pendingProps.children,i),n.child;case 12:return Rn(t,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,Ba(n,n.type,s.value),Rn(t,n,s.children,i),n.child;case 9:return c=n.type._context,s=n.pendingProps.children,hi(n),c=On(c),s=s(c),n.flags|=1,Rn(t,n,s,i),n.child;case 14:return N0(t,n,n.type,n.pendingProps,i);case 15:return D0(t,n,n.type,n.pendingProps,i);case 19:return I0(t,n,i);case 31:return pE(t,n,i);case 22:return M0(t,n,i,n.pendingProps);case 24:return hi(n),s=On(en),t===null?(c=gf(),c===null&&(c=Ct,h=mf(),c.pooledCache=h,h.refCount++,h!==null&&(c.pooledCacheLanes|=i),c=h),n.memoizedState={parent:s,cache:c},bf(n),Ba(n,en,c)):((t.lanes&i)!==0&&(yf(t,n),Yl(n,null,null,i),Zl()),c=t.memoizedState,h=n.memoizedState,c.parent!==s?(c={parent:s,cache:s},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),Ba(n,en,s)):(s=h.cache,Ba(n,en,s),s!==c.cache&&df(n,[en],i,!0))),Rn(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function fa(t){t.flags|=4}function eh(t,n,i,s,c){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(c&335544128)===c)if(t.stateNode.complete)t.flags|=8192;else if(mv())t.flags|=8192;else throw pi=bo,vf}else t.flags&=-16777217}function V0(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!rb(n))if(mv())t.flags|=8192;else throw pi=bo,vf}function ko(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?fn():536870912,t.lanes|=n,al|=n)}function es(t,n){if(!Ye)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Mt(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,s=0;if(n)for(var c=t.child;c!==null;)i|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)i|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=s,t.childLanes=i,n}function vE(t,n,i){var s=n.pendingProps;switch(of(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(n),null;case 1:return Mt(n),null;case 3:return i=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),sa(en),xe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Xi(n)?fa(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,cf())),Mt(n),null;case 26:var c=n.type,h=n.memoizedState;return t===null?(fa(n),h!==null?(Mt(n),V0(n,h)):(Mt(n),eh(n,c,null,s,i))):h?h!==t.memoizedState?(fa(n),Mt(n),V0(n,h)):(Mt(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&fa(n),Mt(n),eh(n,c,t,s,i)),null;case 27:if(wt(n),i=de.current,c=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&fa(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return Mt(n),null}t=ue.current,Xi(n)?Sg(n):(t=Jv(c,s,i),n.stateNode=t,fa(n))}return Mt(n),null;case 5:if(wt(n),c=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&fa(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return Mt(n),null}if(h=ue.current,Xi(n))Sg(n);else{var g=Ko(de.current);switch(h){case 1:h=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:h=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":h=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":h=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":h=g.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof s.is=="string"?g.createElement("select",{is:s.is}):g.createElement("select"),s.multiple?h.multiple=!0:s.size&&(h.size=s.size);break;default:h=typeof s.is=="string"?g.createElement(c,{is:s.is}):g.createElement(c)}}h[Ne]=n,h[rt]=s;e:for(g=n.child;g!==null;){if(g.tag===5||g.tag===6)h.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===n)break e;for(;g.sibling===null;){if(g.return===null||g.return===n)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}n.stateNode=h;e:switch(Nn(h,c,s),c){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&fa(n)}}return Mt(n),eh(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,i),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&fa(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(t=de.current,Xi(n)){if(t=n.stateNode,i=n.memoizedProps,s=null,c=Cn,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}t[Ne]=n,t=!!(t.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||jv(t.nodeValue,i)),t||La(n,!0)}else t=Ko(t).createTextNode(s),t[Ne]=n,n.stateNode=t}return Mt(n),null;case 31:if(i=n.memoizedState,t===null||t.memoizedState!==null){if(s=Xi(n),i!==null){if(t===null){if(!s)throw Error(l(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(557));t[Ne]=n}else ci(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Mt(n),t=!1}else i=cf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return n.flags&256?(cr(n),n):(cr(n),null);if((n.flags&128)!==0)throw Error(l(558))}return Mt(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Xi(n),s!==null&&s.dehydrated!==null){if(t===null){if(!c)throw Error(l(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[Ne]=n}else ci(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Mt(n),c=!1}else c=cf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return n.flags&256?(cr(n),n):(cr(n),null)}return cr(n),(n.flags&128)!==0?(n.lanes=i,n):(i=s!==null,t=t!==null&&t.memoizedState!==null,i&&(s=n.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==c&&(s.flags|=2048)),i!==t&&i&&(n.child.flags|=8192),ko(n,n.updateQueue),Mt(n),null);case 4:return xe(),t===null&&Eh(n.stateNode.containerInfo),Mt(n),null;case 10:return sa(n.type),Mt(n),null;case 19:if(Y(Yt),s=n.memoizedState,s===null)return Mt(n),null;if(c=(n.flags&128)!==0,h=s.rendering,h===null)if(c)es(s,!1);else{if(Pt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(h=Eo(t),h!==null){for(n.flags|=128,es(s,!1),t=h.updateQueue,n.updateQueue=t,ko(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)gg(i,t),i=i.sibling;return ee(Yt,Yt.current&1|2),Ye&&ia(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&ct()>Io&&(n.flags|=128,c=!0,es(s,!1),n.lanes=4194304)}else{if(!c)if(t=Eo(h),t!==null){if(n.flags|=128,c=!0,t=t.updateQueue,n.updateQueue=t,ko(n,t),es(s,!0),s.tail===null&&s.tailMode==="hidden"&&!h.alternate&&!Ye)return Mt(n),null}else 2*ct()-s.renderingStartTime>Io&&i!==536870912&&(n.flags|=128,c=!0,es(s,!1),n.lanes=4194304);s.isBackwards?(h.sibling=n.child,n.child=h):(t=s.last,t!==null?t.sibling=h:n.child=h,s.last=h)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ct(),t.sibling=null,i=Yt.current,ee(Yt,c?i&1|2:i&1),Ye&&ia(n,s.treeForkCount),t):(Mt(n),null);case 22:case 23:return cr(n),Tf(),s=n.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&(Mt(n),n.subtreeFlags&6&&(n.flags|=8192)):Mt(n),i=n.updateQueue,i!==null&&ko(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),t!==null&&Y(di),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),sa(en),Mt(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function bE(t,n){switch(of(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return sa(en),xe(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return wt(n),null;case 31:if(n.memoizedState!==null){if(cr(n),n.alternate===null)throw Error(l(340));ci()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(cr(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(l(340));ci()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Y(Yt),null;case 4:return xe(),null;case 10:return sa(n.type),null;case 22:case 23:return cr(n),Tf(),t!==null&&Y(di),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return sa(en),null;case 25:return null;default:return null}}function P0(t,n){switch(of(n),n.tag){case 3:sa(en),xe();break;case 26:case 27:case 5:wt(n);break;case 4:xe();break;case 31:n.memoizedState!==null&&cr(n);break;case 13:cr(n);break;case 19:Y(Yt);break;case 10:sa(n.type);break;case 22:case 23:cr(n),Tf(),t!==null&&Y(di);break;case 24:sa(en)}}function ts(t,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var c=s.next;i=c;do{if((i.tag&t)===t){s=void 0;var h=i.create,g=i.inst;s=h(),g.destroy=s}i=i.next}while(i!==c)}}catch(x){bt(n,n.return,x)}}function Ia(t,n,i){try{var s=n.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var h=c.next;s=h;do{if((s.tag&t)===t){var g=s.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,c=n;var M=i,I=x;try{I()}catch(q){bt(c,M,q)}}}s=s.next}while(s!==h)}}catch(q){bt(n,n.return,q)}}function G0(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{Bg(n,i)}catch(s){bt(t,t.return,s)}}}function X0(t,n,i){i.props=bi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(s){bt(t,n,s)}}function ns(t,n){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof i=="function"?t.refCleanup=i(s):i.current=s}}catch(c){bt(t,n,c)}}function Xr(t,n){var i=t.ref,s=t.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(c){bt(t,n,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){bt(t,n,c)}else i.current=null}function Q0(t){var n=t.type,i=t.memoizedProps,s=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(c){bt(t,t.return,c)}}function th(t,n,i){try{var s=t.stateNode;IE(s,t.type,i,n),s[rt]=n}catch(c){bt(t,t.return,c)}}function Z0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Za(t.type)||t.tag===4}function nh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Z0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Za(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function rh(t,n,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(t),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=na));else if(s!==4&&(s===27&&Za(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(rh(t,n,i),t=t.sibling;t!==null;)rh(t,n,i),t=t.sibling}function Ho(t,n,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(s!==4&&(s===27&&Za(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Ho(t,n,i),t=t.sibling;t!==null;)Ho(t,n,i),t=t.sibling}function Y0(t){var n=t.stateNode,i=t.memoizedProps;try{for(var s=t.type,c=n.attributes;c.length;)n.removeAttributeNode(c[0]);Nn(n,s,i),n[Ne]=t,n[rt]=i}catch(h){bt(t,t.return,h)}}var ha=!1,rn=!1,ah=!1,J0=typeof WeakSet=="function"?WeakSet:Set,En=null;function yE(t,n){if(t=t.containerInfo,wh=ru,t=sg(t),Kc(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var c=s.anchorOffset,h=s.focusNode;s=s.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var g=0,x=-1,M=-1,I=0,q=0,re=t,P=null;t:for(;;){for(var Q;re!==i||c!==0&&re.nodeType!==3||(x=g+c),re!==h||s!==0&&re.nodeType!==3||(M=g+s),re.nodeType===3&&(g+=re.nodeValue.length),(Q=re.firstChild)!==null;)P=re,re=Q;for(;;){if(re===t)break t;if(P===i&&++I===c&&(x=g),P===h&&++q===s&&(M=g),(Q=re.nextSibling)!==null)break;re=P,P=re.parentNode}re=Q}i=x===-1||M===-1?null:{start:x,end:M}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ah={focusedElem:t,selectionRange:i},ru=!1,En=n;En!==null;)if(n=En,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,En=t;else for(;En!==null;){switch(n=En,h=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)c=t[i],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&h!==null){t=void 0,i=n,c=h.memoizedProps,h=h.memoizedState,s=i.stateNode;try{var ve=bi(i.type,c);t=s.getSnapshotBeforeUpdate(ve,h),s.__reactInternalSnapshotBeforeUpdate=t}catch(Ce){bt(i,i.return,Ce)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)Rh(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Rh(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(l(163))}if(t=n.sibling,t!==null){t.return=n.return,En=t;break}En=n.return}}function K0(t,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:ma(t,i),s&4&&ts(5,i);break;case 1:if(ma(t,i),s&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(g){bt(i,i.return,g)}else{var c=bi(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(c,n,t.__reactInternalSnapshotBeforeUpdate)}catch(g){bt(i,i.return,g)}}s&64&&G0(i),s&512&&ns(i,i.return);break;case 3:if(ma(t,i),s&64&&(t=i.updateQueue,t!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Bg(t,n)}catch(g){bt(i,i.return,g)}}break;case 27:n===null&&s&4&&Y0(i);case 26:case 5:ma(t,i),n===null&&s&4&&Q0(i),s&512&&ns(i,i.return);break;case 12:ma(t,i);break;case 31:ma(t,i),s&4&&q0(t,i);break;case 13:ma(t,i),s&4&&ev(t,i),s&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=OE.bind(null,i),YE(t,i))));break;case 22:if(s=i.memoizedState!==null||ha,!s){n=n!==null&&n.memoizedState!==null||rn,c=ha;var h=rn;ha=s,(rn=n)&&!h?pa(t,i,(i.subtreeFlags&8772)!==0):ma(t,i),ha=c,rn=h}break;case 30:break;default:ma(t,i)}}function $0(t){var n=t.alternate;n!==null&&(t.alternate=null,$0(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&D(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var kt=null,nr=!1;function da(t,n,i){for(i=i.child;i!==null;)W0(t,n,i),i=i.sibling}function W0(t,n,i){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(bn,i)}catch{}switch(i.tag){case 26:rn||Xr(i,n),da(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:rn||Xr(i,n);var s=kt,c=nr;Za(i.type)&&(kt=i.stateNode,nr=!1),da(t,n,i),fs(i.stateNode),kt=s,nr=c;break;case 5:rn||Xr(i,n);case 6:if(s=kt,c=nr,kt=null,da(t,n,i),kt=s,nr=c,kt!==null)if(nr)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(i.stateNode)}catch(h){bt(i,n,h)}else try{kt.removeChild(i.stateNode)}catch(h){bt(i,n,h)}break;case 18:kt!==null&&(nr?(t=kt,Gv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),hl(t)):Gv(kt,i.stateNode));break;case 4:s=kt,c=nr,kt=i.stateNode.containerInfo,nr=!0,da(t,n,i),kt=s,nr=c;break;case 0:case 11:case 14:case 15:Ia(2,i,n),rn||Ia(4,i,n),da(t,n,i);break;case 1:rn||(Xr(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&X0(i,n,s)),da(t,n,i);break;case 21:da(t,n,i);break;case 22:rn=(s=rn)||i.memoizedState!==null,da(t,n,i),rn=s;break;default:da(t,n,i)}}function q0(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{hl(t)}catch(i){bt(n,n.return,i)}}}function ev(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{hl(t)}catch(i){bt(n,n.return,i)}}function _E(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new J0),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new J0),n;default:throw Error(l(435,t.tag))}}function Uo(t,n){var i=_E(t);n.forEach(function(s){if(!i.has(s)){i.add(s);var c=RE.bind(null,t,s);s.then(c,c)}})}function rr(t,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var c=i[s],h=t,g=n,x=g;e:for(;x!==null;){switch(x.tag){case 27:if(Za(x.type)){kt=x.stateNode,nr=!1;break e}break;case 5:kt=x.stateNode,nr=!1;break e;case 3:case 4:kt=x.stateNode.containerInfo,nr=!0;break e}x=x.return}if(kt===null)throw Error(l(160));W0(h,g,c),kt=null,nr=!1,h=c.alternate,h!==null&&(h.return=null),c.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)tv(n,t),n=n.sibling}var Br=null;function tv(t,n){var i=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:rr(n,t),ar(t),s&4&&(Ia(3,t,t.return),ts(3,t),Ia(5,t,t.return));break;case 1:rr(n,t),ar(t),s&512&&(rn||i===null||Xr(i,i.return)),s&64&&ha&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var c=Br;if(rr(n,t),ar(t),s&512&&(rn||i===null||Xr(i,i.return)),s&4){var h=i!==null?i.memoizedState:null;if(s=t.memoizedState,i===null)if(s===null)if(t.stateNode===null){e:{s=t.type,i=t.memoizedProps,c=c.ownerDocument||c;t:switch(s){case"title":h=c.getElementsByTagName("title")[0],(!h||h[ce]||h[Ne]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=c.createElement(s),c.head.insertBefore(h,c.querySelector("head > title"))),Nn(h,s,i),h[Ne]=t,me(h),s=h;break e;case"link":var g=tb("link","href",c).get(s+(i.href||""));if(g){for(var x=0;x<g.length;x++)if(h=g[x],h.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){g.splice(x,1);break t}}h=c.createElement(s),Nn(h,s,i),c.head.appendChild(h);break;case"meta":if(g=tb("meta","content",c).get(s+(i.content||""))){for(x=0;x<g.length;x++)if(h=g[x],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){g.splice(x,1);break t}}h=c.createElement(s),Nn(h,s,i),c.head.appendChild(h);break;default:throw Error(l(468,s))}h[Ne]=t,me(h),s=h}t.stateNode=s}else nb(c,t.type,t.stateNode);else t.stateNode=eb(c,s,t.memoizedProps);else h!==s?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,s===null?nb(c,t.type,t.stateNode):eb(c,s,t.memoizedProps)):s===null&&t.stateNode!==null&&th(t,t.memoizedProps,i.memoizedProps)}break;case 27:rr(n,t),ar(t),s&512&&(rn||i===null||Xr(i,i.return)),i!==null&&s&4&&th(t,t.memoizedProps,i.memoizedProps);break;case 5:if(rr(n,t),ar(t),s&512&&(rn||i===null||Xr(i,i.return)),t.flags&32){c=t.stateNode;try{ta(c,"")}catch(ve){bt(t,t.return,ve)}}s&4&&t.stateNode!=null&&(c=t.memoizedProps,th(t,c,i!==null?i.memoizedProps:c)),s&1024&&(ah=!0);break;case 6:if(rr(n,t),ar(t),s&4){if(t.stateNode===null)throw Error(l(162));s=t.memoizedProps,i=t.stateNode;try{i.nodeValue=s}catch(ve){bt(t,t.return,ve)}}break;case 3:if(qo=null,c=Br,Br=$o(n.containerInfo),rr(n,t),Br=c,ar(t),s&4&&i!==null&&i.memoizedState.isDehydrated)try{hl(n.containerInfo)}catch(ve){bt(t,t.return,ve)}ah&&(ah=!1,nv(t));break;case 4:s=Br,Br=$o(t.stateNode.containerInfo),rr(n,t),ar(t),Br=s;break;case 12:rr(n,t),ar(t);break;case 31:rr(n,t),ar(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Uo(t,s)));break;case 13:rr(n,t),ar(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(zo=ct()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Uo(t,s)));break;case 22:c=t.memoizedState!==null;var M=i!==null&&i.memoizedState!==null,I=ha,q=rn;if(ha=I||c,rn=q||M,rr(n,t),rn=q,ha=I,ar(t),s&8192)e:for(n=t.stateNode,n._visibility=c?n._visibility&-2:n._visibility|1,c&&(i===null||M||ha||rn||yi(t)),i=null,n=t;;){if(n.tag===5||n.tag===26){if(i===null){M=i=n;try{if(h=M.stateNode,c)g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=M.stateNode;var re=M.memoizedProps.style,P=re!=null&&re.hasOwnProperty("display")?re.display:null;x.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ve){bt(M,M.return,ve)}}}else if(n.tag===6){if(i===null){M=n;try{M.stateNode.nodeValue=c?"":M.memoizedProps}catch(ve){bt(M,M.return,ve)}}}else if(n.tag===18){if(i===null){M=n;try{var Q=M.stateNode;c?Xv(Q,!0):Xv(M.stateNode,!1)}catch(ve){bt(M,M.return,ve)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=t.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,Uo(t,i))));break;case 19:rr(n,t),ar(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Uo(t,s)));break;case 30:break;case 21:break;default:rr(n,t),ar(t)}}function ar(t){var n=t.flags;if(n&2){try{for(var i,s=t.return;s!==null;){if(Z0(s)){i=s;break}s=s.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var c=i.stateNode,h=nh(t);Ho(t,h,c);break;case 5:var g=i.stateNode;i.flags&32&&(ta(g,""),i.flags&=-33);var x=nh(t);Ho(t,x,g);break;case 3:case 4:var M=i.stateNode.containerInfo,I=nh(t);rh(t,I,M);break;default:throw Error(l(161))}}catch(q){bt(t,t.return,q)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function nv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;nv(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function ma(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)K0(t,n.alternate,n),n=n.sibling}function yi(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Ia(4,n,n.return),yi(n);break;case 1:Xr(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&X0(n,n.return,i),yi(n);break;case 27:fs(n.stateNode);case 26:case 5:Xr(n,n.return),yi(n);break;case 22:n.memoizedState===null&&yi(n);break;case 30:yi(n);break;default:yi(n)}t=t.sibling}}function pa(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,c=t,h=n,g=h.flags;switch(h.tag){case 0:case 11:case 15:pa(c,h,i),ts(4,h);break;case 1:if(pa(c,h,i),s=h,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(I){bt(s,s.return,I)}if(s=h,c=s.updateQueue,c!==null){var x=s.stateNode;try{var M=c.shared.hiddenCallbacks;if(M!==null)for(c.shared.hiddenCallbacks=null,c=0;c<M.length;c++)Lg(M[c],x)}catch(I){bt(s,s.return,I)}}i&&g&64&&G0(h),ns(h,h.return);break;case 27:Y0(h);case 26:case 5:pa(c,h,i),i&&s===null&&g&4&&Q0(h),ns(h,h.return);break;case 12:pa(c,h,i);break;case 31:pa(c,h,i),i&&g&4&&q0(c,h);break;case 13:pa(c,h,i),i&&g&4&&ev(c,h);break;case 22:h.memoizedState===null&&pa(c,h,i),ns(h,h.return);break;case 30:break;default:pa(c,h,i)}n=n.sibling}}function ih(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Vl(i))}function lh(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Vl(t))}function kr(t,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)rv(t,n,i,s),n=n.sibling}function rv(t,n,i,s){var c=n.flags;switch(n.tag){case 0:case 11:case 15:kr(t,n,i,s),c&2048&&ts(9,n);break;case 1:kr(t,n,i,s);break;case 3:kr(t,n,i,s),c&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Vl(t)));break;case 12:if(c&2048){kr(t,n,i,s),t=n.stateNode;try{var h=n.memoizedProps,g=h.id,x=h.onPostCommit;typeof x=="function"&&x(g,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(M){bt(n,n.return,M)}}else kr(t,n,i,s);break;case 31:kr(t,n,i,s);break;case 13:kr(t,n,i,s);break;case 23:break;case 22:h=n.stateNode,g=n.alternate,n.memoizedState!==null?h._visibility&2?kr(t,n,i,s):rs(t,n):h._visibility&2?kr(t,n,i,s):(h._visibility|=2,tl(t,n,i,s,(n.subtreeFlags&10256)!==0||!1)),c&2048&&ih(g,n);break;case 24:kr(t,n,i,s),c&2048&&lh(n.alternate,n);break;default:kr(t,n,i,s)}}function tl(t,n,i,s,c){for(c=c&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=t,g=n,x=i,M=s,I=g.flags;switch(g.tag){case 0:case 11:case 15:tl(h,g,x,M,c),ts(8,g);break;case 23:break;case 22:var q=g.stateNode;g.memoizedState!==null?q._visibility&2?tl(h,g,x,M,c):rs(h,g):(q._visibility|=2,tl(h,g,x,M,c)),c&&I&2048&&ih(g.alternate,g);break;case 24:tl(h,g,x,M,c),c&&I&2048&&lh(g.alternate,g);break;default:tl(h,g,x,M,c)}n=n.sibling}}function rs(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,s=n,c=s.flags;switch(s.tag){case 22:rs(i,s),c&2048&&ih(s.alternate,s);break;case 24:rs(i,s),c&2048&&lh(s.alternate,s);break;default:rs(i,s)}n=n.sibling}}var as=8192;function nl(t,n,i){if(t.subtreeFlags&as)for(t=t.child;t!==null;)av(t,n,i),t=t.sibling}function av(t,n,i){switch(t.tag){case 26:nl(t,n,i),t.flags&as&&t.memoizedState!==null&&lT(i,Br,t.memoizedState,t.memoizedProps);break;case 5:nl(t,n,i);break;case 3:case 4:var s=Br;Br=$o(t.stateNode.containerInfo),nl(t,n,i),Br=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=as,as=16777216,nl(t,n,i),as=s):nl(t,n,i));break;default:nl(t,n,i)}}function iv(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function is(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];En=s,sv(s,t)}iv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lv(t),t=t.sibling}function lv(t){switch(t.tag){case 0:case 11:case 15:is(t),t.flags&2048&&Ia(9,t,t.return);break;case 3:is(t);break;case 12:is(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,jo(t)):is(t);break;default:is(t)}}function jo(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];En=s,sv(s,t)}iv(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Ia(8,n,n.return),jo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,jo(n));break;default:jo(n)}t=t.sibling}}function sv(t,n){for(;En!==null;){var i=En;switch(i.tag){case 0:case 11:case 15:Ia(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Vl(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,En=s;else e:for(i=t;En!==null;){s=En;var c=s.sibling,h=s.return;if($0(s),s===i){En=null;break e}if(c!==null){c.return=h,En=c;break e}En=h}}}var SE={getCacheForType:function(t){var n=On(en),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i},cacheSignal:function(){return On(en).controller.signal}},EE=typeof WeakMap=="function"?WeakMap:Map,ft=0,Ct=null,Ie=null,Xe=0,vt=0,fr=null,Fa=!1,rl=!1,sh=!1,ga=0,Pt=0,Va=0,_i=0,oh=0,hr=0,al=0,ls=null,ir=null,uh=!1,zo=0,ov=0,Io=1/0,Fo=null,Pa=null,pn=0,Ga=null,il=null,va=0,ch=0,fh=null,uv=null,ss=0,hh=null;function dr(){return(ft&2)!==0&&Xe!==0?Xe&-Xe:U.T!==null?bh():Pn()}function cv(){if(hr===0)if((Xe&536870912)===0||Ye){var t=lt;lt<<=1,(lt&3932160)===0&&(lt=262144),hr=t}else hr=536870912;return t=ur.current,t!==null&&(t.flags|=32),hr}function lr(t,n,i){(t===Ct&&(vt===2||vt===9)||t.cancelPendingCommit!==null)&&(ll(t,0),Xa(t,Xe,hr,!1)),Vn(t,i),((ft&2)===0||t!==Ct)&&(t===Ct&&((ft&2)===0&&(_i|=i),Pt===4&&Xa(t,Xe,hr,!1)),Qr(t))}function fv(t,n,i){if((ft&6)!==0)throw Error(l(327));var s=!i&&(n&127)===0&&(n&t.expiredLanes)===0||Hn(t,n),c=s?wE(t,n):mh(t,n,!0),h=s;do{if(c===0){rl&&!s&&Xa(t,n,0,!1);break}else{if(i=t.current.alternate,h&&!TE(i)){c=mh(t,n,!1),h=!1;continue}if(c===2){if(h=n,t.errorRecoveryDisabledLanes&h)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){n=g;e:{var x=t;c=ls;var M=x.current.memoizedState.isDehydrated;if(M&&(ll(x,g).flags|=256),g=mh(x,g,!1),g!==2){if(sh&&!M){x.errorRecoveryDisabledLanes|=h,_i|=h,c=4;break e}h=ir,ir=c,h!==null&&(ir===null?ir=h:ir.push.apply(ir,h))}c=g}if(h=!1,c!==2)continue}}if(c===1){ll(t,0),Xa(t,n,0,!0);break}e:{switch(s=t,h=c,h){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Xa(s,n,hr,!Fa);break e;case 2:ir=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(c=zo+300-ct(),10<c)){if(Xa(s,n,hr,!Fa),kn(s,0,!0)!==0)break e;va=n,s.timeoutHandle=Vv(hv.bind(null,s,i,ir,Fo,uh,n,hr,_i,al,Fa,h,"Throttled",-0,0),c);break e}hv(s,i,ir,Fo,uh,n,hr,_i,al,Fa,h,null,-0,0)}}break}while(!0);Qr(t)}function hv(t,n,i,s,c,h,g,x,M,I,q,re,P,Q){if(t.timeoutHandle=-1,re=n.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},av(n,h,re);var ve=(h&62914560)===h?zo-ct():(h&4194048)===h?ov-ct():0;if(ve=sT(re,ve),ve!==null){va=h,t.cancelPendingCommit=ve(_v.bind(null,t,n,h,i,s,c,g,x,M,q,re,null,P,Q)),Xa(t,h,g,!I);return}}_v(t,n,h,i,s,c,g,x,M)}function TE(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var c=i[s],h=c.getSnapshot;c=c.value;try{if(!sr(h(),c))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Xa(t,n,i,s){n&=~oh,n&=~_i,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var c=n;0<c;){var h=31-$e(c),g=1<<h;s[h]=-1,c&=~g}i!==0&&hn(t,i,n)}function Vo(){return(ft&6)===0?(os(0),!1):!0}function dh(){if(Ie!==null){if(vt===0)var t=Ie.return;else t=Ie,la=fi=null,Rf(t),Ki=null,Gl=0,t=Ie;for(;t!==null;)P0(t.alternate,t),t=t.return;Ie=null}}function ll(t,n){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,PE(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),va=0,dh(),Ct=t,Ie=i=aa(t.current,null),Xe=n,vt=0,fr=null,Fa=!1,rl=Hn(t,n),sh=!1,al=hr=oh=_i=Va=Pt=0,ir=ls=null,uh=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var c=31-$e(s),h=1<<c;n|=t[c],s&=~h}return ga=n,oo(),i}function dv(t,n){ke=null,U.H=Wl,n===Ji||n===vo?(n=Rg(),vt=3):n===vf?(n=Rg(),vt=4):vt=n===Xf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,fr=n,Ie===null&&(Pt=1,Do(t,_r(n,t.current)))}function mv(){var t=ur.current;return t===null?!0:(Xe&4194048)===Xe?xr===null:(Xe&62914560)===Xe||(Xe&536870912)!==0?t===xr:!1}function pv(){var t=U.H;return U.H=Wl,t===null?Wl:t}function gv(){var t=U.A;return U.A=SE,t}function Po(){Pt=4,Fa||(Xe&4194048)!==Xe&&ur.current!==null||(rl=!0),(Va&134217727)===0&&(_i&134217727)===0||Ct===null||Xa(Ct,Xe,hr,!1)}function mh(t,n,i){var s=ft;ft|=2;var c=pv(),h=gv();(Ct!==t||Xe!==n)&&(Fo=null,ll(t,n)),n=!1;var g=Pt;e:do try{if(vt!==0&&Ie!==null){var x=Ie,M=fr;switch(vt){case 8:dh(),g=6;break e;case 3:case 2:case 9:case 6:ur.current===null&&(n=!0);var I=vt;if(vt=0,fr=null,sl(t,x,M,I),i&&rl){g=0;break e}break;default:I=vt,vt=0,fr=null,sl(t,x,M,I)}}xE(),g=Pt;break}catch(q){dv(t,q)}while(!0);return n&&t.shellSuspendCounter++,la=fi=null,ft=s,U.H=c,U.A=h,Ie===null&&(Ct=null,Xe=0,oo()),g}function xE(){for(;Ie!==null;)vv(Ie)}function wE(t,n){var i=ft;ft|=2;var s=pv(),c=gv();Ct!==t||Xe!==n?(Fo=null,Io=ct()+500,ll(t,n)):rl=Hn(t,n);e:do try{if(vt!==0&&Ie!==null){n=Ie;var h=fr;t:switch(vt){case 1:vt=0,fr=null,sl(t,n,h,1);break;case 2:case 9:if(Cg(h)){vt=0,fr=null,bv(n);break}n=function(){vt!==2&&vt!==9||Ct!==t||(vt=7),Qr(t)},h.then(n,n);break e;case 3:vt=7;break e;case 4:vt=5;break e;case 7:Cg(h)?(vt=0,fr=null,bv(n)):(vt=0,fr=null,sl(t,n,h,7));break;case 5:var g=null;switch(Ie.tag){case 26:g=Ie.memoizedState;case 5:case 27:var x=Ie;if(g?rb(g):x.stateNode.complete){vt=0,fr=null;var M=x.sibling;if(M!==null)Ie=M;else{var I=x.return;I!==null?(Ie=I,Go(I)):Ie=null}break t}}vt=0,fr=null,sl(t,n,h,5);break;case 6:vt=0,fr=null,sl(t,n,h,6);break;case 8:dh(),Pt=6;break e;default:throw Error(l(462))}}AE();break}catch(q){dv(t,q)}while(!0);return la=fi=null,U.H=s,U.A=c,ft=i,Ie!==null?0:(Ct=null,Xe=0,oo(),Pt)}function AE(){for(;Ie!==null&&!un();)vv(Ie)}function vv(t){var n=F0(t.alternate,t,ga);t.memoizedProps=t.pendingProps,n===null?Go(t):Ie=n}function bv(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=k0(i,n,n.pendingProps,n.type,void 0,Xe);break;case 11:n=k0(i,n,n.pendingProps,n.type.render,n.ref,Xe);break;case 5:Rf(n);default:P0(i,n),n=Ie=gg(n,ga),n=F0(i,n,ga)}t.memoizedProps=t.pendingProps,n===null?Go(t):Ie=n}function sl(t,n,i,s){la=fi=null,Rf(n),Ki=null,Gl=0;var c=n.return;try{if(mE(t,c,n,i,Xe)){Pt=1,Do(t,_r(i,t.current)),Ie=null;return}}catch(h){if(c!==null)throw Ie=c,h;Pt=1,Do(t,_r(i,t.current)),Ie=null;return}n.flags&32768?(Ye||s===1?t=!0:rl||(Xe&536870912)!==0?t=!1:(Fa=t=!0,(s===2||s===9||s===3||s===6)&&(s=ur.current,s!==null&&s.tag===13&&(s.flags|=16384))),yv(n,t)):Go(n)}function Go(t){var n=t;do{if((n.flags&32768)!==0){yv(n,Fa);return}t=n.return;var i=vE(n.alternate,n,ga);if(i!==null){Ie=i;return}if(n=n.sibling,n!==null){Ie=n;return}Ie=n=t}while(n!==null);Pt===0&&(Pt=5)}function yv(t,n){do{var i=bE(t.alternate,t);if(i!==null){i.flags&=32767,Ie=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){Ie=t;return}Ie=t=i}while(t!==null);Pt=6,Ie=null}function _v(t,n,i,s,c,h,g,x,M){t.cancelPendingCommit=null;do Xo();while(pn!==0);if((ft&6)!==0)throw Error(l(327));if(n!==null){if(n===t.current)throw Error(l(177));if(h=n.lanes|n.childLanes,h|=tf,br(t,i,h,g,x,M),t===Ct&&(Ie=Ct=null,Xe=0),il=n,Ga=t,va=i,ch=h,fh=c,uv=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,NE(Qt,function(){return wv(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=U.T,U.T=null,c=ae.p,ae.p=2,g=ft,ft|=4;try{yE(t,n,i)}finally{ft=g,ae.p=c,U.T=s}}pn=1,Sv(),Ev(),Tv()}}function Sv(){if(pn===1){pn=0;var t=Ga,n=il,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var s=ae.p;ae.p=2;var c=ft;ft|=4;try{tv(n,t);var h=Ah,g=sg(t.containerInfo),x=h.focusedElem,M=h.selectionRange;if(g!==x&&x&&x.ownerDocument&&lg(x.ownerDocument.documentElement,x)){if(M!==null&&Kc(x)){var I=M.start,q=M.end;if(q===void 0&&(q=I),"selectionStart"in x)x.selectionStart=I,x.selectionEnd=Math.min(q,x.value.length);else{var re=x.ownerDocument||document,P=re&&re.defaultView||window;if(P.getSelection){var Q=P.getSelection(),ve=x.textContent.length,Ce=Math.min(M.start,ve),xt=M.end===void 0?Ce:Math.min(M.end,ve);!Q.extend&&Ce>xt&&(g=xt,xt=Ce,Ce=g);var H=ig(x,Ce),L=ig(x,xt);if(H&&L&&(Q.rangeCount!==1||Q.anchorNode!==H.node||Q.anchorOffset!==H.offset||Q.focusNode!==L.node||Q.focusOffset!==L.offset)){var z=re.createRange();z.setStart(H.node,H.offset),Q.removeAllRanges(),Ce>xt?(Q.addRange(z),Q.extend(L.node,L.offset)):(z.setEnd(L.node,L.offset),Q.addRange(z))}}}}for(re=[],Q=x;Q=Q.parentNode;)Q.nodeType===1&&re.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<re.length;x++){var te=re[x];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}ru=!!wh,Ah=wh=null}finally{ft=c,ae.p=s,U.T=i}}t.current=n,pn=2}}function Ev(){if(pn===2){pn=0;var t=Ga,n=il,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var s=ae.p;ae.p=2;var c=ft;ft|=4;try{K0(t,n.alternate,n)}finally{ft=c,ae.p=s,U.T=i}}pn=3}}function Tv(){if(pn===4||pn===3){pn=0,At();var t=Ga,n=il,i=va,s=uv;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?pn=5:(pn=0,il=Ga=null,xv(t,t.pendingLanes));var c=t.pendingLanes;if(c===0&&(Pa=null),We(i),n=n.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(bn,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=U.T,c=ae.p,ae.p=2,U.T=null;try{for(var h=t.onRecoverableError,g=0;g<s.length;g++){var x=s[g];h(x.value,{componentStack:x.stack})}}finally{U.T=n,ae.p=c}}(va&3)!==0&&Xo(),Qr(t),c=t.pendingLanes,(i&261930)!==0&&(c&42)!==0?t===hh?ss++:(ss=0,hh=t):ss=0,os(0)}}function xv(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Vl(n)))}function Xo(){return Sv(),Ev(),Tv(),wv()}function wv(){if(pn!==5)return!1;var t=Ga,n=ch;ch=0;var i=We(va),s=U.T,c=ae.p;try{ae.p=32>i?32:i,U.T=null,i=fh,fh=null;var h=Ga,g=va;if(pn=0,il=Ga=null,va=0,(ft&6)!==0)throw Error(l(331));var x=ft;if(ft|=4,lv(h.current),rv(h,h.current,g,i),ft=x,os(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(bn,h)}catch{}return!0}finally{ae.p=c,U.T=s,xv(t,n)}}function Av(t,n,i){n=_r(i,n),n=Gf(t.stateNode,n,2),t=Ua(t,n,2),t!==null&&(Vn(t,2),Qr(t))}function bt(t,n,i){if(t.tag===3)Av(t,t,i);else for(;n!==null;){if(n.tag===3){Av(n,t,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Pa===null||!Pa.has(s))){t=_r(i,t),i=C0(2),s=Ua(n,i,2),s!==null&&(O0(i,s,n,t),Vn(s,2),Qr(s));break}}n=n.return}}function ph(t,n,i){var s=t.pingCache;if(s===null){s=t.pingCache=new EE;var c=new Set;s.set(n,c)}else c=s.get(n),c===void 0&&(c=new Set,s.set(n,c));c.has(i)||(sh=!0,c.add(i),t=CE.bind(null,t,n,i),n.then(t,t))}function CE(t,n,i){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Ct===t&&(Xe&i)===i&&(Pt===4||Pt===3&&(Xe&62914560)===Xe&&300>ct()-zo?(ft&2)===0&&ll(t,0):oh|=i,al===Xe&&(al=0)),Qr(t)}function Cv(t,n){n===0&&(n=fn()),t=oi(t,n),t!==null&&(Vn(t,n),Qr(t))}function OE(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Cv(t,i)}function RE(t,n){var i=0;switch(t.tag){case 31:case 13:var s=t.stateNode,c=t.memoizedState;c!==null&&(i=c.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(n),Cv(t,i)}function NE(t,n){return Kt(t,n)}var Qo=null,ol=null,gh=!1,Zo=!1,vh=!1,Qa=0;function Qr(t){t!==ol&&t.next===null&&(ol===null?Qo=ol=t:ol=ol.next=t),Zo=!0,gh||(gh=!0,ME())}function os(t,n){if(!vh&&Zo){vh=!0;do for(var i=!1,s=Qo;s!==null;){if(t!==0){var c=s.pendingLanes;if(c===0)var h=0;else{var g=s.suspendedLanes,x=s.pingedLanes;h=(1<<31-$e(42|t)+1)-1,h&=c&~(g&~x),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,Dv(s,h))}else h=Xe,h=kn(s,s===Ct?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(h&3)===0||Hn(s,h)||(i=!0,Dv(s,h));s=s.next}while(i);vh=!1}}function DE(){Ov()}function Ov(){Zo=gh=!1;var t=0;Qa!==0&&VE()&&(t=Qa);for(var n=ct(),i=null,s=Qo;s!==null;){var c=s.next,h=Rv(s,n);h===0?(s.next=null,i===null?Qo=c:i.next=c,c===null&&(ol=i)):(i=s,(t!==0||(h&3)!==0)&&(Zo=!0)),s=c}pn!==0&&pn!==5||os(t),Qa!==0&&(Qa=0)}function Rv(t,n){for(var i=t.suspendedLanes,s=t.pingedLanes,c=t.expirationTimes,h=t.pendingLanes&-62914561;0<h;){var g=31-$e(h),x=1<<g,M=c[g];M===-1?((x&i)===0||(x&s)!==0)&&(c[g]=St(x,n)):M<=n&&(t.expiredLanes|=x),h&=~x}if(n=Ct,i=Xe,i=kn(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,i===0||t===n&&(vt===2||vt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Nt(s),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Hn(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(s!==null&&Nt(s),We(i)){case 2:case 8:i=$t;break;case 32:i=Qt;break;case 268435456:i=vn;break;default:i=Qt}return s=Nv.bind(null,t),i=Kt(i,s),t.callbackPriority=n,t.callbackNode=i,n}return s!==null&&s!==null&&Nt(s),t.callbackPriority=2,t.callbackNode=null,2}function Nv(t,n){if(pn!==0&&pn!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Xo()&&t.callbackNode!==i)return null;var s=Xe;return s=kn(t,t===Ct?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(fv(t,s,n),Rv(t,ct()),t.callbackNode!=null&&t.callbackNode===i?Nv.bind(null,t):null)}function Dv(t,n){if(Xo())return null;fv(t,n,!0)}function ME(){GE(function(){(ft&6)!==0?Kt(Xt,DE):Ov()})}function bh(){if(Qa===0){var t=Zi;t===0&&(t=zt,zt<<=1,(zt&261888)===0&&(zt=256)),Qa=t}return Qa}function Mv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:eo(""+t)}function Lv(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function LE(t,n,i,s,c){if(n==="submit"&&i&&i.stateNode===c){var h=Mv((c[rt]||null).action),g=s.submitter;g&&(n=(n=g[rt]||null)?Mv(n.formAction):g.getAttribute("formAction"),n!==null&&(h=n,g=null));var x=new ao("action","action",null,s,c);t.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Qa!==0){var M=g?Lv(c,g):new FormData(c);jf(i,{pending:!0,data:M,method:c.method,action:h},null,M)}}else typeof h=="function"&&(x.preventDefault(),M=g?Lv(c,g):new FormData(c),jf(i,{pending:!0,data:M,method:c.method,action:h},h,M))},currentTarget:c}]})}}for(var yh=0;yh<ef.length;yh++){var _h=ef[yh],BE=_h.toLowerCase(),kE=_h[0].toUpperCase()+_h.slice(1);Lr(BE,"on"+kE)}Lr(cg,"onAnimationEnd"),Lr(fg,"onAnimationIteration"),Lr(hg,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr($S,"onTransitionRun"),Lr(WS,"onTransitionStart"),Lr(qS,"onTransitionCancel"),Lr(dg,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),st("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),st("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),st("onBeforeInput",["compositionend","keypress","textInput","paste"]),st("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),st("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),st("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var us="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(" "),HE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(us));function Bv(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var s=t[i],c=s.event;s=s.listeners;e:{var h=void 0;if(n)for(var g=s.length-1;0<=g;g--){var x=s[g],M=x.instance,I=x.currentTarget;if(x=x.listener,M!==h&&c.isPropagationStopped())break e;h=x,c.currentTarget=I;try{h(c)}catch(q){so(q)}c.currentTarget=null,h=M}else for(g=0;g<s.length;g++){if(x=s[g],M=x.instance,I=x.currentTarget,x=x.listener,M!==h&&c.isPropagationStopped())break e;h=x,c.currentTarget=I;try{h(c)}catch(q){so(q)}c.currentTarget=null,h=M}}}}function Fe(t,n){var i=n[qn];i===void 0&&(i=n[qn]=new Set);var s=t+"__bubble";i.has(s)||(kv(n,t,2,!1),i.add(s))}function Sh(t,n,i){var s=0;n&&(s|=4),kv(i,t,s,n)}var Yo="_reactListening"+Math.random().toString(36).slice(2);function Eh(t){if(!t[Yo]){t[Yo]=!0,gt.forEach(function(i){i!=="selectionchange"&&(HE.has(i)||Sh(i,!1,t),Sh(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Yo]||(n[Yo]=!0,Sh("selectionchange",!1,n))}}function kv(t,n,i,s){switch(cb(n)){case 2:var c=cT;break;case 8:c=fT;break;default:c=Uh}i=c.bind(null,n,i,t),c=void 0,!Fc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),s?c!==void 0?t.addEventListener(n,i,{capture:!0,passive:c}):t.addEventListener(n,i,!0):c!==void 0?t.addEventListener(n,i,{passive:c}):t.addEventListener(n,i,!1)}function Th(t,n,i,s,c){var h=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var g=s.tag;if(g===3||g===4){var x=s.stateNode.containerInfo;if(x===c)break;if(g===4)for(g=s.return;g!==null;){var M=g.tag;if((M===3||M===4)&&g.stateNode.containerInfo===c)return;g=g.return}for(;x!==null;){if(g=W(x),g===null)return;if(M=g.tag,M===5||M===6||M===26||M===27){s=h=g;continue e}x=x.parentNode}}s=s.return}Ip(function(){var I=h,q=zc(i),re=[];e:{var P=mg.get(t);if(P!==void 0){var Q=ao,ve=t;switch(t){case"keypress":if(no(i)===0)break e;case"keydown":case"keyup":Q=RS;break;case"focusin":ve="focus",Q=Xc;break;case"focusout":ve="blur",Q=Xc;break;case"beforeblur":case"afterblur":Q=Xc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=vS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=MS;break;case cg:case fg:case hg:Q=_S;break;case dg:Q=BS;break;case"scroll":case"scrollend":Q=pS;break;case"wheel":Q=HS;break;case"copy":case"cut":case"paste":Q=ES;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Xp;break;case"toggle":case"beforetoggle":Q=jS}var Ce=(n&4)!==0,xt=!Ce&&(t==="scroll"||t==="scrollend"),H=Ce?P!==null?P+"Capture":null:P;Ce=[];for(var L=I,z;L!==null;){var te=L;if(z=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||z===null||H===null||(te=Dl(L,H),te!=null&&Ce.push(cs(L,te,z))),xt)break;L=L.return}0<Ce.length&&(P=new Q(P,ve,null,i,q),re.push({event:P,listeners:Ce}))}}if((n&7)===0){e:{if(P=t==="mouseover"||t==="pointerover",Q=t==="mouseout"||t==="pointerout",P&&i!==jc&&(ve=i.relatedTarget||i.fromElement)&&(W(ve)||ve[_n]))break e;if((Q||P)&&(P=q.window===q?q:(P=q.ownerDocument)?P.defaultView||P.parentWindow:window,Q?(ve=i.relatedTarget||i.toElement,Q=I,ve=ve?W(ve):null,ve!==null&&(xt=u(ve),Ce=ve.tag,ve!==xt||Ce!==5&&Ce!==27&&Ce!==6)&&(ve=null)):(Q=null,ve=I),Q!==ve)){if(Ce=Pp,te="onMouseLeave",H="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(Ce=Xp,te="onPointerLeave",H="onPointerEnter",L="pointer"),xt=Q==null?P:Te(Q),z=ve==null?P:Te(ve),P=new Ce(te,L+"leave",Q,i,q),P.target=xt,P.relatedTarget=z,te=null,W(q)===I&&(Ce=new Ce(H,L+"enter",ve,i,q),Ce.target=z,Ce.relatedTarget=xt,te=Ce),xt=te,Q&&ve)t:{for(Ce=UE,H=Q,L=ve,z=0,te=H;te;te=Ce(te))z++;te=0;for(var we=L;we;we=Ce(we))te++;for(;0<z-te;)H=Ce(H),z--;for(;0<te-z;)L=Ce(L),te--;for(;z--;){if(H===L||L!==null&&H===L.alternate){Ce=H;break t}H=Ce(H),L=Ce(L)}Ce=null}else Ce=null;Q!==null&&Hv(re,P,Q,Ce,!1),ve!==null&&xt!==null&&Hv(re,xt,ve,Ce,!0)}}e:{if(P=I?Te(I):window,Q=P.nodeName&&P.nodeName.toLowerCase(),Q==="select"||Q==="input"&&P.type==="file")var ot=qp;else if($p(P))if(eg)ot=YS;else{ot=QS;var ye=XS}else Q=P.nodeName,!Q||Q.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?I&&Uc(I.elementType)&&(ot=qp):ot=ZS;if(ot&&(ot=ot(t,I))){Wp(re,ot,i,q);break e}ye&&ye(t,P,I),t==="focusout"&&I&&P.type==="number"&&I.memoizedProps.value!=null&&Hc(P,"number",P.value)}switch(ye=I?Te(I):window,t){case"focusin":($p(ye)||ye.contentEditable==="true")&&(zi=ye,$c=I,zl=null);break;case"focusout":zl=$c=zi=null;break;case"mousedown":Wc=!0;break;case"contextmenu":case"mouseup":case"dragend":Wc=!1,og(re,i,q);break;case"selectionchange":if(KS)break;case"keydown":case"keyup":og(re,i,q)}var Ue;if(Zc)e:{switch(t){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else ji?Jp(t,i)&&(Qe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Qe="onCompositionStart");Qe&&(Qp&&i.locale!=="ko"&&(ji||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&ji&&(Ue=Fp()):(Na=q,Vc="value"in Na?Na.value:Na.textContent,ji=!0)),ye=Jo(I,Qe),0<ye.length&&(Qe=new Gp(Qe,t,null,i,q),re.push({event:Qe,listeners:ye}),Ue?Qe.data=Ue:(Ue=Kp(i),Ue!==null&&(Qe.data=Ue)))),(Ue=IS?FS(t,i):VS(t,i))&&(Qe=Jo(I,"onBeforeInput"),0<Qe.length&&(ye=new Gp("onBeforeInput","beforeinput",null,i,q),re.push({event:ye,listeners:Qe}),ye.data=Ue)),LE(re,t,I,i,q)}Bv(re,n)})}function cs(t,n,i){return{instance:t,listener:n,currentTarget:i}}function Jo(t,n){for(var i=n+"Capture",s=[];t!==null;){var c=t,h=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||h===null||(c=Dl(t,i),c!=null&&s.unshift(cs(t,c,h)),c=Dl(t,n),c!=null&&s.push(cs(t,c,h))),t.tag===3)return s;t=t.return}return[]}function UE(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Hv(t,n,i,s,c){for(var h=n._reactName,g=[];i!==null&&i!==s;){var x=i,M=x.alternate,I=x.stateNode;if(x=x.tag,M!==null&&M===s)break;x!==5&&x!==26&&x!==27||I===null||(M=I,c?(I=Dl(i,h),I!=null&&g.unshift(cs(i,I,M))):c||(I=Dl(i,h),I!=null&&g.push(cs(i,I,M)))),i=i.return}g.length!==0&&t.push({event:n,listeners:g})}var jE=/\r\n?/g,zE=/\u0000|\uFFFD/g;function Uv(t){return(typeof t=="string"?t:""+t).replace(jE,`
9
- `).replace(zE,"")}function jv(t,n){return n=Uv(n),Uv(t)===n}function Tt(t,n,i,s,c,h){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||ta(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&ta(t,""+s);break;case"className":er(t,"class",s);break;case"tabIndex":er(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":er(t,i,s);break;case"style":jp(t,s,h);break;case"data":if(n!=="object"){er(t,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=eo(""+s),t.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(i,"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 h=="function"&&(i==="formAction"?(n!=="input"&&Tt(t,n,"name",c.name,c,null),Tt(t,n,"formEncType",c.formEncType,c,null),Tt(t,n,"formMethod",c.formMethod,c,null),Tt(t,n,"formTarget",c.formTarget,c,null)):(Tt(t,n,"encType",c.encType,c,null),Tt(t,n,"method",c.method,c,null),Tt(t,n,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=eo(""+s),t.setAttribute(i,s);break;case"onClick":s!=null&&(t.onclick=na);break;case"onScroll":s!=null&&Fe("scroll",t);break;case"onScrollEnd":s!=null&&Fe("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(c.children!=null)throw Error(l(60));t.innerHTML=i}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}i=eo(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""+s):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":s===!0?t.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,s):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(i,s):t.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(i):t.setAttribute(i,s);break;case"popover":Fe("beforetoggle",t),Fe("toggle",t),ze(t,"popover",s);break;case"xlinkActuate":Sn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Sn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Sn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Sn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Sn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Sn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Sn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Sn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Sn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ze(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=dS.get(i)||i,ze(t,i,s))}}function xh(t,n,i,s,c,h){switch(i){case"style":jp(t,s,h);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(c.children!=null)throw Error(l(60));t.innerHTML=i}}break;case"children":typeof s=="string"?ta(t,s):(typeof s=="number"||typeof s=="bigint")&&ta(t,""+s);break;case"onScroll":s!=null&&Fe("scroll",t);break;case"onScrollEnd":s!=null&&Fe("scrollend",t);break;case"onClick":s!=null&&(t.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!De.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),n=i.slice(2,c?i.length-7:void 0),h=t[rt]||null,h=h!=null?h[i]:null,typeof h=="function"&&t.removeEventListener(n,h,c),typeof s=="function")){typeof h!="function"&&h!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,s,c);break e}i in t?t[i]=s:s===!0?t.setAttribute(i,""):ze(t,i,s)}}}function Nn(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",t),Fe("load",t);var s=!1,c=!1,h;for(h in i)if(i.hasOwnProperty(h)){var g=i[h];if(g!=null)switch(h){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Tt(t,n,h,g,i,null)}}c&&Tt(t,n,"srcSet",i.srcSet,i,null),s&&Tt(t,n,"src",i.src,i,null);return;case"input":Fe("invalid",t);var x=h=g=c=null,M=null,I=null;for(s in i)if(i.hasOwnProperty(s)){var q=i[s];if(q!=null)switch(s){case"name":c=q;break;case"type":g=q;break;case"checked":M=q;break;case"defaultChecked":I=q;break;case"value":h=q;break;case"defaultValue":x=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,n));break;default:Tt(t,n,s,q,i,null)}}Nl(t,h,x,M,I,g,c,!1);return;case"select":Fe("invalid",t),s=g=h=null;for(c in i)if(i.hasOwnProperty(c)&&(x=i[c],x!=null))switch(c){case"value":h=x;break;case"defaultValue":g=x;break;case"multiple":s=x;default:Tt(t,n,c,x,i,null)}n=h,i=g,t.multiple=!!s,n!=null?Ra(t,!!s,n,!1):i!=null&&Ra(t,!!s,i,!0);return;case"textarea":Fe("invalid",t),h=c=s=null;for(g in i)if(i.hasOwnProperty(g)&&(x=i[g],x!=null))switch(g){case"value":s=x;break;case"defaultValue":c=x;break;case"children":h=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(l(91));break;default:Tt(t,n,g,x,i,null)}Hp(t,s,c,h);return;case"option":for(M in i)if(i.hasOwnProperty(M)&&(s=i[M],s!=null))switch(M){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Tt(t,n,M,s,i,null)}return;case"dialog":Fe("beforetoggle",t),Fe("toggle",t),Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":Fe("load",t);break;case"video":case"audio":for(s=0;s<us.length;s++)Fe(us[s],t);break;case"image":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"embed":case"source":case"link":Fe("error",t),Fe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in i)if(i.hasOwnProperty(I)&&(s=i[I],s!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Tt(t,n,I,s,i,null)}return;default:if(Uc(n)){for(q in i)i.hasOwnProperty(q)&&(s=i[q],s!==void 0&&xh(t,n,q,s,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(s=i[x],s!=null&&Tt(t,n,x,s,i,null))}function IE(t,n,i,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,h=null,g=null,x=null,M=null,I=null,q=null;for(Q in i){var re=i[Q];if(i.hasOwnProperty(Q)&&re!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":M=re;default:s.hasOwnProperty(Q)||Tt(t,n,Q,null,s,re)}}for(var P in s){var Q=s[P];if(re=i[P],s.hasOwnProperty(P)&&(Q!=null||re!=null))switch(P){case"type":h=Q;break;case"name":c=Q;break;case"checked":I=Q;break;case"defaultChecked":q=Q;break;case"value":g=Q;break;case"defaultValue":x=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,n));break;default:Q!==re&&Tt(t,n,P,Q,s,re)}}kc(t,g,x,M,I,q,h,c);return;case"select":Q=g=x=P=null;for(h in i)if(M=i[h],i.hasOwnProperty(h)&&M!=null)switch(h){case"value":break;case"multiple":Q=M;default:s.hasOwnProperty(h)||Tt(t,n,h,null,s,M)}for(c in s)if(h=s[c],M=i[c],s.hasOwnProperty(c)&&(h!=null||M!=null))switch(c){case"value":P=h;break;case"defaultValue":x=h;break;case"multiple":g=h;default:h!==M&&Tt(t,n,c,h,s,M)}n=x,i=g,s=Q,P!=null?Ra(t,!!i,P,!1):!!s!=!!i&&(n!=null?Ra(t,!!i,n,!0):Ra(t,!!i,i?[]:"",!1));return;case"textarea":Q=P=null;for(x in i)if(c=i[x],i.hasOwnProperty(x)&&c!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Tt(t,n,x,null,s,c)}for(g in s)if(c=s[g],h=i[g],s.hasOwnProperty(g)&&(c!=null||h!=null))switch(g){case"value":P=c;break;case"defaultValue":Q=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==h&&Tt(t,n,g,c,s,h)}kp(t,P,Q);return;case"option":for(var ve in i)if(P=i[ve],i.hasOwnProperty(ve)&&P!=null&&!s.hasOwnProperty(ve))switch(ve){case"selected":t.selected=!1;break;default:Tt(t,n,ve,null,s,P)}for(M in s)if(P=s[M],Q=i[M],s.hasOwnProperty(M)&&P!==Q&&(P!=null||Q!=null))switch(M){case"selected":t.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:Tt(t,n,M,P,s,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 Ce in i)P=i[Ce],i.hasOwnProperty(Ce)&&P!=null&&!s.hasOwnProperty(Ce)&&Tt(t,n,Ce,null,s,P);for(I in s)if(P=s[I],Q=i[I],s.hasOwnProperty(I)&&P!==Q&&(P!=null||Q!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,n));break;default:Tt(t,n,I,P,s,Q)}return;default:if(Uc(n)){for(var xt in i)P=i[xt],i.hasOwnProperty(xt)&&P!==void 0&&!s.hasOwnProperty(xt)&&xh(t,n,xt,void 0,s,P);for(q in s)P=s[q],Q=i[q],!s.hasOwnProperty(q)||P===Q||P===void 0&&Q===void 0||xh(t,n,q,P,s,Q);return}}for(var H in i)P=i[H],i.hasOwnProperty(H)&&P!=null&&!s.hasOwnProperty(H)&&Tt(t,n,H,null,s,P);for(re in s)P=s[re],Q=i[re],!s.hasOwnProperty(re)||P===Q||P==null&&Q==null||Tt(t,n,re,P,s,Q)}function zv(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function FE(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var c=i[s],h=c.transferSize,g=c.initiatorType,x=c.duration;if(h&&x&&zv(g)){for(g=0,x=c.responseEnd,s+=1;s<i.length;s++){var M=i[s],I=M.startTime;if(I>x)break;var q=M.transferSize,re=M.initiatorType;q&&zv(re)&&(M=M.responseEnd,g+=q*(M<x?1:(x-I)/(M-I)))}if(--s,n+=8*(h+g)/(c.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var wh=null,Ah=null;function Ko(t){return t.nodeType===9?t:t.ownerDocument}function Iv(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Fv(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Ch(t,n){return t==="textarea"||t==="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 Oh=null;function VE(){var t=window.event;return t&&t.type==="popstate"?t===Oh?!1:(Oh=t,!0):(Oh=null,!1)}var Vv=typeof setTimeout=="function"?setTimeout:void 0,PE=typeof clearTimeout=="function"?clearTimeout:void 0,Pv=typeof Promise=="function"?Promise:void 0,GE=typeof queueMicrotask=="function"?queueMicrotask:typeof Pv<"u"?function(t){return Pv.resolve(null).then(t).catch(XE)}:Vv;function XE(t){setTimeout(function(){throw t})}function Za(t){return t==="head"}function Gv(t,n){var i=n,s=0;do{var c=i.nextSibling;if(t.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"||i==="/&"){if(s===0){t.removeChild(c),hl(n);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")fs(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,fs(i);for(var h=i.firstChild;h;){var g=h.nextSibling,x=h.nodeName;h[ce]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&h.rel.toLowerCase()==="stylesheet"||i.removeChild(h),h=g}}else i==="body"&&fs(t.ownerDocument.body);i=c}while(i);hl(n)}function Xv(t,n){var i=t;t=0;do{var s=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=s}while(i)}function Rh(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Rh(i),D(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function QE(t,n,i,s){for(;t.nodeType===1;){var c=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[ce])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(h=t.getAttribute("rel"),h==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(h!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(h=t.getAttribute("src"),(h!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&h&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var h=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===h)return t}else return t;if(t=wr(t.nextSibling),t===null)break}return null}function ZE(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=wr(t.nextSibling),t===null))return null;return t}function Qv(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=wr(t.nextSibling),t===null))return null;return t}function Nh(t){return t.data==="$?"||t.data==="$~"}function Dh(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function YE(t,n){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||i.readyState!=="loading")n();else{var s=function(){n(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function wr(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var Mh=null;function Zv(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(n===0)return wr(t.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}t=t.nextSibling}return null}function Yv(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return t;n--}else i!=="/$"&&i!=="/&"||n++}t=t.previousSibling}return null}function Jv(t,n,i){switch(n=Ko(i),t){case"html":if(t=n.documentElement,!t)throw Error(l(452));return t;case"head":if(t=n.head,!t)throw Error(l(453));return t;case"body":if(t=n.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}function fs(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);D(t)}var Ar=new Map,Kv=new Set;function $o(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ba=ae.d;ae.d={f:JE,r:KE,D:$E,C:WE,L:qE,m:eT,X:nT,S:tT,M:rT};function JE(){var t=ba.f(),n=Vo();return t||n}function KE(t){var n=le(t);n!==null&&n.tag===5&&n.type==="form"?d0(n):ba.r(t)}var ul=typeof document>"u"?null:document;function $v(t,n,i){var s=ul;if(s&&typeof n=="string"&&n){var c=Gn(n);c='link[rel="'+t+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),Kv.has(c)||(Kv.add(c),t={rel:t,crossOrigin:i,href:n},s.querySelector(c)===null&&(n=s.createElement("link"),Nn(n,"link",t),me(n),s.head.appendChild(n)))}}function $E(t){ba.D(t),$v("dns-prefetch",t,null)}function WE(t,n){ba.C(t,n),$v("preconnect",t,n)}function qE(t,n,i){ba.L(t,n,i);var s=ul;if(s&&t&&n){var c='link[rel="preload"][as="'+Gn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+Gn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+Gn(i.imageSizes)+'"]')):c+='[href="'+Gn(t)+'"]';var h=c;switch(n){case"style":h=cl(t);break;case"script":h=fl(t)}Ar.has(h)||(t=y({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),Ar.set(h,t),s.querySelector(c)!==null||n==="style"&&s.querySelector(hs(h))||n==="script"&&s.querySelector(ds(h))||(n=s.createElement("link"),Nn(n,"link",t),me(n),s.head.appendChild(n)))}}function eT(t,n){ba.m(t,n);var i=ul;if(i&&t){var s=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+Gn(s)+'"][href="'+Gn(t)+'"]',h=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=fl(t)}if(!Ar.has(h)&&(t=y({rel:"modulepreload",href:t},n),Ar.set(h,t),i.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ds(h)))return}s=i.createElement("link"),Nn(s,"link",t),me(s),i.head.appendChild(s)}}}function tT(t,n,i){ba.S(t,n,i);var s=ul;if(s&&t){var c=Ge(s).hoistableStyles,h=cl(t);n=n||"default";var g=c.get(h);if(!g){var x={loading:0,preload:null};if(g=s.querySelector(hs(h)))x.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":n},i),(i=Ar.get(h))&&Lh(t,i);var M=g=s.createElement("link");me(M),Nn(M,"link",t),M._p=new Promise(function(I,q){M.onload=I,M.onerror=q}),M.addEventListener("load",function(){x.loading|=1}),M.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Wo(g,n,s)}g={type:"stylesheet",instance:g,count:1,state:x},c.set(h,g)}}}function nT(t,n){ba.X(t,n);var i=ul;if(i&&t){var s=Ge(i).hoistableScripts,c=fl(t),h=s.get(c);h||(h=i.querySelector(ds(c)),h||(t=y({src:t,async:!0},n),(n=Ar.get(c))&&Bh(t,n),h=i.createElement("script"),me(h),Nn(h,"link",t),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(c,h))}}function rT(t,n){ba.M(t,n);var i=ul;if(i&&t){var s=Ge(i).hoistableScripts,c=fl(t),h=s.get(c);h||(h=i.querySelector(ds(c)),h||(t=y({src:t,async:!0,type:"module"},n),(n=Ar.get(c))&&Bh(t,n),h=i.createElement("script"),me(h),Nn(h,"link",t),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(c,h))}}function Wv(t,n,i,s){var c=(c=de.current)?$o(c):null;if(!c)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=cl(i.href),i=Ge(c).hoistableStyles,s=i.get(n),s||(s={type:"style",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=cl(i.href);var h=Ge(c).hoistableStyles,g=h.get(t);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,g),(h=c.querySelector(hs(t)))&&!h._p&&(g.instance=h,g.state.loading=5),Ar.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ar.set(t,i),h||aT(c,t,i,g.state))),n&&s===null)throw Error(l(528,""));return g}if(n&&s!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=fl(i),i=Ge(c).hoistableScripts,s=i.get(n),s||(s={type:"script",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function cl(t){return'href="'+Gn(t)+'"'}function hs(t){return'link[rel="stylesheet"]['+t+"]"}function qv(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function aT(t,n,i,s){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=t.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Nn(n,"link",i),me(n),t.head.appendChild(n))}function fl(t){return'[src="'+Gn(t)+'"]'}function ds(t){return"script[async]"+t}function eb(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+Gn(i.href)+'"]');if(s)return n.instance=s,me(s),s;var c=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),me(s),Nn(s,"style",c),Wo(s,i.precedence,t),n.instance=s;case"stylesheet":c=cl(i.href);var h=t.querySelector(hs(c));if(h)return n.state.loading|=4,n.instance=h,me(h),h;s=qv(i),(c=Ar.get(c))&&Lh(s,c),h=(t.ownerDocument||t).createElement("link"),me(h);var g=h;return g._p=new Promise(function(x,M){g.onload=x,g.onerror=M}),Nn(h,"link",s),n.state.loading|=4,Wo(h,i.precedence,t),n.instance=h;case"script":return h=fl(i.src),(c=t.querySelector(ds(h)))?(n.instance=c,me(c),c):(s=i,(c=Ar.get(h))&&(s=y({},i),Bh(s,c)),t=t.ownerDocument||t,c=t.createElement("script"),me(c),Nn(c,"link",s),t.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Wo(s,i.precedence,t));return n.instance}function Wo(t,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,h=c,g=0;g<s.length;g++){var x=s[g];if(x.dataset.precedence===n)h=x;else if(h!==c)break}h?h.parentNode.insertBefore(t,h.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function Lh(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Bh(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var qo=null;function tb(t,n,i){if(qo===null){var s=new Map,c=qo=new Map;c.set(i,s)}else c=qo,s=c.get(i),s||(s=new Map,c.set(i,s));if(s.has(t))return s;for(s.set(t,null),i=i.getElementsByTagName(t),c=0;c<i.length;c++){var h=i[c];if(!(h[ce]||h[Ne]||t==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var g=h.getAttribute(n)||"";g=t+g;var x=s.get(g);x?x.push(h):s.set(g,[h])}}return s}function nb(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function iT(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){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 t=n.disabled,typeof n.precedence=="string"&&t==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 rb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function lT(t,n,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var c=cl(s.href),h=n.querySelector(hs(c));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=eu.bind(t),n.then(t,t)),i.state.loading|=4,i.instance=h,me(h);return}h=n.ownerDocument||n,s=qv(s),(c=Ar.get(c))&&Lh(s,c),h=h.createElement("link"),me(h);var g=h;g._p=new Promise(function(x,M){g.onload=x,g.onerror=M}),Nn(h,"link",s),i.instance=h}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=eu.bind(t),n.addEventListener("load",i),n.addEventListener("error",i))}}var kh=0;function sT(t,n){return t.stylesheets&&t.count===0&&nu(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var s=setTimeout(function(){if(t.stylesheets&&nu(t,t.stylesheets),t.unsuspend){var h=t.unsuspend;t.unsuspend=null,h()}},6e4+n);0<t.imgBytes&&kh===0&&(kh=62500*FE());var c=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&nu(t,t.stylesheets),t.unsuspend)){var h=t.unsuspend;t.unsuspend=null,h()}},(t.imgBytes>kh?50:800)+n);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(c)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var tu=null;function nu(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,tu=new Map,n.forEach(oT,t),tu=null,eu.call(t))}function oT(t,n){if(!(n.state.loading&4)){var i=tu.get(t);if(i)var s=i.get(null);else{i=new Map,tu.set(t,i);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<c.length;h++){var g=c[h];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),s=g)}s&&i.set(null,s)}c=n.instance,g=c.getAttribute("data-precedence"),h=i.get(g)||s,h===s&&i.set(null,c),i.set(g,c),this.count++,s=eu.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),h?h.parentNode.insertBefore(c,h.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),n.state.loading|=4}}var ms={$$typeof:C,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function uT(t,n,i,s,c,h,g,x,M){this.tag=1,this.containerInfo=t,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=vr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vr(0),this.hiddenUpdates=vr(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=h,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function ab(t,n,i,s,c,h,g,x,M,I,q,re){return t=new uT(t,n,i,g,M,I,q,re,x),n=1,h===!0&&(n|=24),h=or(3,null,null,n),t.current=h,h.stateNode=t,n=mf(),n.refCount++,t.pooledCache=n,n.refCount++,h.memoizedState={element:s,isDehydrated:i,cache:n},bf(h),t}function ib(t){return t?(t=Vi,t):Vi}function lb(t,n,i,s,c,h){c=ib(c),s.context===null?s.context=c:s.pendingContext=c,s=Ha(n),s.payload={element:i},h=h===void 0?null:h,h!==null&&(s.callback=h),i=Ua(t,s,n),i!==null&&(lr(i,t,n),Ql(i,t,n))}function sb(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function Hh(t,n){sb(t,n),(t=t.alternate)&&sb(t,n)}function ob(t){if(t.tag===13||t.tag===31){var n=oi(t,67108864);n!==null&&lr(n,t,67108864),Hh(t,67108864)}}function ub(t){if(t.tag===13||t.tag===31){var n=dr();n=It(n);var i=oi(t,n);i!==null&&lr(i,t,n),Hh(t,n)}}var ru=!0;function cT(t,n,i,s){var c=U.T;U.T=null;var h=ae.p;try{ae.p=2,Uh(t,n,i,s)}finally{ae.p=h,U.T=c}}function fT(t,n,i,s){var c=U.T;U.T=null;var h=ae.p;try{ae.p=8,Uh(t,n,i,s)}finally{ae.p=h,U.T=c}}function Uh(t,n,i,s){if(ru){var c=jh(s);if(c===null)Th(t,n,s,au,i),fb(t,s);else if(dT(c,t,n,i,s))s.stopPropagation();else if(fb(t,s),n&4&&-1<hT.indexOf(t)){for(;c!==null;){var h=le(c);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var g=Rt(h.pendingLanes);if(g!==0){var x=h;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var M=1<<31-$e(g);x.entanglements[1]|=M,g&=~M}Qr(h),(ft&6)===0&&(Io=ct()+500,os(0))}}break;case 31:case 13:x=oi(h,2),x!==null&&lr(x,h,2),Vo(),Hh(h,2)}if(h=jh(s),h===null&&Th(t,n,s,au,i),h===c)break;c=h}c!==null&&s.stopPropagation()}else Th(t,n,s,null,i)}}function jh(t){return t=zc(t),zh(t)}var au=null;function zh(t){if(au=null,t=W(t),t!==null){var n=u(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=f(n),t!==null)return t;t=null}else if(i===31){if(t=m(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return au=t,null}function cb(t){switch(t){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(Bn()){case Xt:return 2;case $t:return 8;case Qt:case gn:return 32;case vn:return 268435456;default:return 32}default:return 32}}var Ih=!1,Ya=null,Ja=null,Ka=null,ps=new Map,gs=new Map,$a=[],hT="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 fb(t,n){switch(t){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ps.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":gs.delete(n.pointerId)}}function vs(t,n,i,s,c,h){return t===null||t.nativeEvent!==h?(t={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:h,targetContainers:[c]},n!==null&&(n=le(n),n!==null&&ob(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function dT(t,n,i,s,c){switch(n){case"focusin":return Ya=vs(Ya,t,n,i,s,c),!0;case"dragenter":return Ja=vs(Ja,t,n,i,s,c),!0;case"mouseover":return Ka=vs(Ka,t,n,i,s,c),!0;case"pointerover":var h=c.pointerId;return ps.set(h,vs(ps.get(h)||null,t,n,i,s,c)),!0;case"gotpointercapture":return h=c.pointerId,gs.set(h,vs(gs.get(h)||null,t,n,i,s,c)),!0}return!1}function hb(t){var n=W(t.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=f(i),n!==null){t.blockedOn=n,Un(t.priority,function(){ub(i)});return}}else if(n===31){if(n=m(i),n!==null){t.blockedOn=n,Un(t.priority,function(){ub(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function iu(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=jh(t.nativeEvent);if(i===null){i=t.nativeEvent;var s=new i.constructor(i.type,i);jc=s,i.target.dispatchEvent(s),jc=null}else return n=le(i),n!==null&&ob(n),t.blockedOn=i,!1;n.shift()}return!0}function db(t,n,i){iu(t)&&i.delete(n)}function mT(){Ih=!1,Ya!==null&&iu(Ya)&&(Ya=null),Ja!==null&&iu(Ja)&&(Ja=null),Ka!==null&&iu(Ka)&&(Ka=null),ps.forEach(db),gs.forEach(db)}function lu(t,n){t.blockedOn===n&&(t.blockedOn=null,Ih||(Ih=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,mT)))}var su=null;function mb(t){su!==t&&(su=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){su===t&&(su=null);for(var n=0;n<t.length;n+=3){var i=t[n],s=t[n+1],c=t[n+2];if(typeof s!="function"){if(zh(s||i)===null)continue;break}var h=le(i);h!==null&&(t.splice(n,3),n-=3,jf(h,{pending:!0,data:c,method:i.method,action:s},s,c))}}))}function hl(t){function n(M){return lu(M,t)}Ya!==null&&lu(Ya,t),Ja!==null&&lu(Ja,t),Ka!==null&&lu(Ka,t),ps.forEach(n),gs.forEach(n);for(var i=0;i<$a.length;i++){var s=$a[i];s.blockedOn===t&&(s.blockedOn=null)}for(;0<$a.length&&(i=$a[0],i.blockedOn===null);)hb(i),i.blockedOn===null&&$a.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var c=i[s],h=i[s+1],g=c[rt]||null;if(typeof h=="function")g||mb(i);else if(g){var x=null;if(h&&h.hasAttribute("formAction")){if(c=h,g=h[rt]||null)x=g.formAction;else if(zh(c)!==null)continue}else x=g.action;typeof x=="function"?i[s+1]=x:(i.splice(s,3),s-=3),mb(i)}}}function pb(){function t(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(g){return c=g})},focusReset:"manual",scroll:"manual"})}function n(){c!==null&&(c(),c=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,c=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),c!==null&&(c(),c=null)}}}function Fh(t){this._internalRoot=t}ou.prototype.render=Fh.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,s=dr();lb(i,s,t,n,null,null)},ou.prototype.unmount=Fh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;lb(t.current,2,null,t,null,null),Vo(),n[_n]=null}};function ou(t){this._internalRoot=t}ou.prototype.unstable_scheduleHydration=function(t){if(t){var n=Pn();t={blockedOn:null,target:t,priority:n};for(var i=0;i<$a.length&&n!==0&&n<$a[i].priority;i++);$a.splice(i,0,t),i===0&&hb(t)}};var gb=r.version;if(gb!=="19.2.0")throw Error(l(527,gb,"19.2.0"));ae.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=p(n),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var pT={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uu.isDisabled&&uu.supportsFiber)try{bn=uu.inject(pT),_t=uu}catch{}}return ys.createRoot=function(t,n){if(!o(t))throw Error(l(299));var i=!1,s="",c=T0,h=x0,g=w0;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError)),n=ab(t,1,!1,null,null,i,s,null,c,h,g,pb),t[_n]=n.current,Eh(t),new Fh(n)},ys.hydrateRoot=function(t,n,i){if(!o(t))throw Error(l(299));var s=!1,c="",h=T0,g=x0,x=w0,M=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(M=i.formState)),n=ab(t,1,!0,n,i??null,s,c,M,h,g,x,pb),n.context=ib(null),i=n.current,s=dr(),s=It(s),c=Ha(s),c.callback=null,Ua(i,c,s),i=s,n.current.lanes=i,Vn(n,i),Qr(n),t[_n]=n.current,Eh(t),new ou(n)},ys.version="19.2.0",ys}var Ab;function wT(){if(Ab)return Ph.exports;Ab=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Ph.exports=xT(),Ph.exports}var AT=wT(),V=pc();const M1=mc(V);var Yh={exports:{}},Jh={};var Cb;function CT(){if(Cb)return Jh;Cb=1;var e=pc();function r(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var a=typeof Object.is=="function"?Object.is:r,l=e.useSyncExternalStore,o=e.useRef,u=e.useEffect,f=e.useMemo,m=e.useDebugValue;return Jh.useSyncExternalStoreWithSelector=function(d,p,v,y,b){var S=o(null);if(S.current===null){var E={hasValue:!1,value:null};S.current=E}else E=S.current;S=f(function(){function w(R){if(!O){if(O=!0,A=R,R=y(R),b!==void 0&&E.hasValue){var j=E.value;if(b(j,R))return C=j}return C=R}if(j=C,a(A,R))return j;var k=y(R);return b!==void 0&&b(j,k)?(A=R,j):(A=R,C=k)}var O=!1,A,C,B=v===void 0?null:v;return[function(){return w(p())},B===null?void 0:function(){return w(B())}]},[p,v,y,b]);var T=l(d,S[0],S[1]);return u(function(){E.hasValue=!0,E.value=T},[T]),m(T),T},Jh}var Ob;function OT(){return Ob||(Ob=1,Yh.exports=CT()),Yh.exports}var RT=OT(),NT=V.version.startsWith("19"),DT=Symbol.for(NT?"react.transitional.element":"react.element"),MT=Symbol.for("react.portal"),LT=Symbol.for("react.fragment"),BT=Symbol.for("react.strict_mode"),kT=Symbol.for("react.profiler"),HT=Symbol.for("react.consumer"),UT=Symbol.for("react.context"),L1=Symbol.for("react.forward_ref"),jT=Symbol.for("react.suspense"),zT=Symbol.for("react.suspense_list"),km=Symbol.for("react.memo"),IT=Symbol.for("react.lazy"),FT=L1,VT=km;function PT(e){if(typeof e=="object"&&e!==null){const{$$typeof:r}=e;switch(r){case DT:switch(e=e.type,e){case LT:case kT:case BT:case jT:case zT:return e;default:switch(e=e&&e.$$typeof,e){case UT:case L1:case IT:case km:return e;case HT:return e;default:return r}}case MT:return r}}}function GT(e){return PT(e)===km}function XT(e,r,a,l,{areStatesEqual:o,areOwnPropsEqual:u,areStatePropsEqual:f}){let m=!1,d,p,v,y,b;function S(A,C){return d=A,p=C,v=e(d,p),y=r(l,p),b=a(v,y,p),m=!0,b}function E(){return v=e(d,p),r.dependsOnOwnProps&&(y=r(l,p)),b=a(v,y,p),b}function T(){return e.dependsOnOwnProps&&(v=e(d,p)),r.dependsOnOwnProps&&(y=r(l,p)),b=a(v,y,p),b}function w(){const A=e(d,p),C=!f(A,v);return v=A,C&&(b=a(v,y,p)),b}function O(A,C){const B=!u(C,p),R=!o(A,d,C,p);return d=A,p=C,B&&R?E():B?T():R?w():b}return function(C,B){return m?O(C,B):S(C,B)}}function QT(e,{initMapStateToProps:r,initMapDispatchToProps:a,initMergeProps:l,...o}){const u=r(e,o),f=a(e,o),m=l(e,o);return XT(u,f,m,e,o)}function ZT(e,r){const a={};for(const l in e){const o=e[l];typeof o=="function"&&(a[l]=(...u)=>r(o(...u)))}return a}function Vd(e){return function(a){const l=e(a);function o(){return l}return o.dependsOnOwnProps=!1,o}}function Rb(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function B1(e,r){return function(l,{displayName:o}){const u=function(m,d){return u.dependsOnOwnProps?u.mapToProps(m,d):u.mapToProps(m,void 0)};return u.dependsOnOwnProps=!0,u.mapToProps=function(m,d){u.mapToProps=e,u.dependsOnOwnProps=Rb(e);let p=u(m,d);return typeof p=="function"&&(u.mapToProps=p,u.dependsOnOwnProps=Rb(p),p=u(m,d)),p},u}}function Hm(e,r){return(a,l)=>{throw new Error(`Invalid value of type ${typeof e} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function YT(e){return e&&typeof e=="object"?Vd(r=>ZT(e,r)):e?typeof e=="function"?B1(e):Hm(e,"mapDispatchToProps"):Vd(r=>({dispatch:r}))}function JT(e){return e?typeof e=="function"?B1(e):Hm(e,"mapStateToProps"):Vd(()=>({}))}function KT(e,r,a){return{...a,...e,...r}}function $T(e){return function(a,{displayName:l,areMergedPropsEqual:o}){let u=!1,f;return function(d,p,v){const y=e(d,p,v);return u?o(y,f)||(f=y):(u=!0,f=y),f}}}function WT(e){return e?typeof e=="function"?$T(e):Hm(e,"mergeProps"):()=>KT}function qT(e){e()}function ex(){let e=null,r=null;return{clear(){e=null,r=null},notify(){qT(()=>{let a=e;for(;a;)a.callback(),a=a.next})},get(){const a=[];let l=e;for(;l;)a.push(l),l=l.next;return a},subscribe(a){let l=!0;const o=r={callback:a,next:null,prev:r};return o.prev?o.prev.next=o:e=o,function(){!l||e===null||(l=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Nb={notify(){},get:()=>[]};function k1(e,r){let a,l=Nb,o=0,u=!1;function f(T){v();const w=l.subscribe(T);let O=!1;return()=>{O||(O=!0,w(),y())}}function m(){l.notify()}function d(){E.onStateChange&&E.onStateChange()}function p(){return u}function v(){o++,a||(a=r?r.addNestedSub(d):e.subscribe(d),l=ex())}function y(){o--,a&&o===0&&(a(),a=void 0,l.clear(),l=Nb)}function b(){u||(u=!0,v())}function S(){u&&(u=!1,y())}const E={addNestedSub:f,notifyNestedSubs:m,handleChangeWrapper:d,isSubscribed:p,trySubscribe:b,tryUnsubscribe:S,getListeners:()=>l};return E}var tx=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nx=tx(),rx=()=>typeof navigator<"u"&&navigator.product==="ReactNative",ax=rx(),ix=()=>nx||ax?V.useLayoutEffect:V.useEffect,zu=ix();function Db(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function Kh(e,r){if(Db(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;const a=Object.keys(e),l=Object.keys(r);if(a.length!==l.length)return!1;for(let o=0;o<a.length;o++)if(!Object.prototype.hasOwnProperty.call(r,a[o])||!Db(e[a[o]],r[a[o]]))return!1;return!0}var lx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ox={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},H1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ux={[FT]:ox,[VT]:H1};function Mb(e){return GT(e)?H1:ux[e.$$typeof]||lx}var cx=Object.defineProperty,fx=Object.getOwnPropertyNames,Lb=Object.getOwnPropertySymbols,hx=Object.getOwnPropertyDescriptor,dx=Object.getPrototypeOf,Bb=Object.prototype;function Pd(e,r){if(typeof r!="string"){if(Bb){const u=dx(r);u&&u!==Bb&&Pd(e,u)}let a=fx(r);Lb&&(a=a.concat(Lb(r)));const l=Mb(e),o=Mb(r);for(let u=0;u<a.length;++u){const f=a[u];if(!sx[f]&&!(o&&o[f])&&!(l&&l[f])){const m=hx(r,f);try{cx(e,f,m)}catch{}}}}return e}var mx=Symbol.for("react-redux-context"),px=typeof globalThis<"u"?globalThis:{};function gx(){if(!V.createContext)return{};const e=px[mx]??=new Map;let r=e.get(V.createContext);return r||(r=V.createContext(null),e.set(V.createContext,r)),r}var xa=gx(),vx=[null,null];function bx(e,r,a){zu(()=>e(...r),a)}function yx(e,r,a,l,o,u){e.current=l,a.current=!1,o.current&&(o.current=null,u())}function _x(e,r,a,l,o,u,f,m,d,p,v){if(!e)return()=>{};let y=!1,b=null;const S=()=>{if(y||!m.current)return;const T=r.getState();let w,O;try{w=l(T,o.current)}catch(A){O=A,b=A}O||(b=null),w===u.current?f.current||p():(u.current=w,d.current=w,f.current=!0,v())};return a.onStateChange=S,a.trySubscribe(),S(),()=>{if(y=!0,a.tryUnsubscribe(),a.onStateChange=null,b)throw b}}function Sx(e,r){return e===r}function Ex(e,r,a,{pure:l,areStatesEqual:o=Sx,areOwnPropsEqual:u=Kh,areStatePropsEqual:f=Kh,areMergedPropsEqual:m=Kh,forwardRef:d=!1,context:p=xa}={}){const v=p,y=JT(e),b=YT(r),S=WT(a),E=!!e;return w=>{const O=w.displayName||w.name||"Component",A=`Connect(${O})`,C={shouldHandleStateChanges:E,displayName:A,wrappedComponentName:O,WrappedComponent:w,initMapStateToProps:y,initMapDispatchToProps:b,initMergeProps:S,areStatesEqual:o,areStatePropsEqual:f,areOwnPropsEqual:u,areMergedPropsEqual:m};function B(k){const[K,G,$]=V.useMemo(()=>{const{reactReduxForwardedRef:Ae,...yt}=k;return[k.context,Ae,yt]},[k]),Z=V.useMemo(()=>{let Ae=v;return K?.Consumer,Ae},[K,v]),J=V.useContext(Z),se=!!k.store&&!!k.store.getState&&!!k.store.dispatch,fe=!!J&&!!J.store,he=se?k.store:J.store,U=fe?J.getServerState:he.getState,ae=V.useMemo(()=>QT(he.dispatch,C),[he]),[X,be]=V.useMemo(()=>{if(!E)return vx;const Ae=k1(he,se?void 0:J.subscription),yt=Ae.notifyNestedSubs.bind(Ae);return[Ae,yt]},[he,se,J]),pe=V.useMemo(()=>se?J:{...J,subscription:X},[se,J,X]),N=V.useRef(void 0),Y=V.useRef($),ee=V.useRef(void 0),ue=V.useRef(!1),ne=V.useRef(!1),de=V.useRef(void 0);zu(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const ge=V.useMemo(()=>()=>ee.current&&$===Y.current?ee.current:ae(he.getState(),$),[he,$]),Ee=V.useMemo(()=>yt=>X?_x(E,he,X,ae,Y,N,ue,ne,ee,be,yt):()=>{},[X]);bx(yx,[Y,N,ue,$,ee,be]);let xe;try{xe=V.useSyncExternalStore(Ee,ge,U?()=>ae(U(),$):ge)}catch(Ae){throw de.current&&(Ae.message+=`
10
- The error may be correlated with this previous error:
11
- ${de.current.stack}
12
-
13
- `),Ae}zu(()=>{de.current=void 0,ee.current=void 0,N.current=xe});const je=V.useMemo(()=>V.createElement(w,{...xe,ref:G}),[G,w,xe]);return V.useMemo(()=>E?V.createElement(Z.Provider,{value:pe},je):je,[Z,je,pe])}const j=V.memo(B);if(j.WrappedComponent=w,j.displayName=B.displayName=A,d){const K=V.forwardRef(function($,Z){return V.createElement(j,{...$,reactReduxForwardedRef:Z})});return K.displayName=A,K.WrappedComponent=w,Pd(K,w)}return Pd(j,w)}}var Tx=Ex;function xx(e){const{children:r,context:a,serverState:l,store:o}=e,u=V.useMemo(()=>{const d=k1(o);return{store:o,subscription:d,getServerState:l?()=>l:void 0}},[o,l]),f=V.useMemo(()=>o.getState(),[o]);zu(()=>{const{subscription:d}=u;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),f!==o.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[u,f]);const m=a||xa;return V.createElement(m.Provider,{value:u},r)}var wx=xx;function Um(e=xa){return function(){return V.useContext(e)}}var U1=Um();function j1(e=xa){const r=e===xa?U1:Um(e),a=()=>{const{store:l}=r();return l};return Object.assign(a,{withTypes:()=>a}),a}var Ax=j1();function Cx(e=xa){const r=e===xa?Ax:j1(e),a=()=>r().dispatch;return Object.assign(a,{withTypes:()=>a}),a}var Ox=Cx(),Rx=(e,r)=>e===r;function Nx(e=xa){const r=e===xa?U1:Um(e),a=(l,o={})=>{const{equalityFn:u=Rx}=typeof o=="function"?{equalityFn:o}:o,f=r(),{store:m,subscription:d,getServerState:p}=f;V.useRef(!0);const v=V.useCallback({[l.name](b){return l(b)}}[l.name],[l]),y=RT.useSyncExternalStoreWithSelector(d.addNestedSub,m.getState,p||m.getState,v,u);return V.useDebugValue(y),y};return Object.assign(a,{withTypes:()=>a}),a}var Dx=Nx(),$h={exports:{}};var kb;function Mx(){return kb||(kb=1,(function(e){(function(){var r={}.hasOwnProperty;function a(){for(var u="",f=0;f<arguments.length;f++){var m=arguments[f];m&&(u=o(u,l(m)))}return u}function l(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return a.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var m in u)r.call(u,m)&&u[m]&&(f=o(f,m));return f}function o(u,f){return f?u?u+" "+f:u+f:u}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})($h)),$h.exports}var Lx=Mx();const oe=mc(Lx);var Gd=function(e,r){return Gd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(a[o]=l[o])},Gd(e,r)};function Nr(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Gd(e,r);function a(){this.constructor=e}e.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}var _e=function(){return _e=Object.assign||function(r){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(r[u]=a[u])}return r},_e.apply(this,arguments)};function gc(e,r){var a={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&r.indexOf(l)<0&&(a[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o<l.length;o++)r.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(a[l[o]]=e[l[o]]);return a}function Jr(e,r,a){if(a||arguments.length===2)for(var l=0,o=r.length,u;l<o;l++)(u||!(l in r))&&(u||(u=Array.prototype.slice.call(r,0,l)),u[l]=r[l]);return e.concat(u||Array.prototype.slice.call(r))}function Zr(e,r){var a=r&&r.cache?r.cache:Ix,l=r&&r.serializer?r.serializer:jx,o=r&&r.strategy?r.strategy:Hx;return o(e,{cache:a,serializer:l})}function Bx(e){return e==null||typeof e=="number"||typeof e=="boolean"}function kx(e,r,a,l){var o=Bx(l)?l:a(l),u=r.get(o);return typeof u>"u"&&(u=e.call(this,l),r.set(o,u)),u}function z1(e,r,a){var l=Array.prototype.slice.call(arguments,3),o=a(l),u=r.get(o);return typeof u>"u"&&(u=e.apply(this,l),r.set(o,u)),u}function I1(e,r,a,l,o){return a.bind(r,e,l,o)}function Hx(e,r){var a=e.length===1?kx:z1;return I1(e,this,a,r.cache.create(),r.serializer)}function Ux(e,r){return I1(e,this,z1,r.cache.create(),r.serializer)}var jx=function(){return JSON.stringify(arguments)},zx=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(r){return this.cache[r]},e.prototype.set=function(r,a){this.cache[r]=a},e})(),Ix={create:function(){return new zx}},Yr={variadic:Ux},Je;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Je||(Je={}));var Lt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Lt||(Lt={}));var El;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(El||(El={}));function Hb(e){return e.type===Lt.literal}function Fx(e){return e.type===Lt.argument}function F1(e){return e.type===Lt.number}function V1(e){return e.type===Lt.date}function P1(e){return e.type===Lt.time}function G1(e){return e.type===Lt.select}function X1(e){return e.type===Lt.plural}function Vx(e){return e.type===Lt.pound}function Q1(e){return e.type===Lt.tag}function Z1(e){return!!(e&&typeof e=="object"&&e.type===El.number)}function Xd(e){return!!(e&&typeof e=="object"&&e.type===El.dateTime)}var Y1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Px=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Gx(e){var r={};return e.replace(Px,function(a){var l=a.length;switch(a[0]){case"G":r.era=l===4?"long":l===5?"narrow":"short";break;case"y":r.year=l===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][l-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][l-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=l===4?"long":l===5?"narrow":"short";break;case"e":if(l<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"c":if(l<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][l-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][l-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][l-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][l-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][l-1];break;case"s":r.second=["numeric","2-digit"][l-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=l<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var Xx=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qx(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split(Xx).filter(function(b){return b.length>0}),a=[],l=0,o=r;l<o.length;l++){var u=o[l],f=u.split("/");if(f.length===0)throw new Error("Invalid number skeleton");for(var m=f[0],d=f.slice(1),p=0,v=d;p<v.length;p++){var y=v[p];if(y.length===0)throw new Error("Invalid number skeleton")}a.push({stem:m,options:d})}return a}function Zx(e){return e.replace(/^(.*?)-/,"")}var Ub=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,J1=/^(@+)?(\+|#+)?[rs]?$/g,Yx=/(\*)(0+)|(#+)(0+)|(0+)/g,K1=/^(0+)$/;function jb(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(J1,function(a,l,o){return typeof o!="string"?(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length):o==="+"?r.minimumSignificantDigits=l.length:l[0]==="#"?r.maximumSignificantDigits=l.length:(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length+(typeof o=="string"?o.length:0)),""}),r}function $1(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Jx(e){var r;if(e[0]==="E"&&e[1]==="E"?(r={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(r={notation:"scientific"},e=e.slice(1)),r){var a=e.slice(0,2);if(a==="+!"?(r.signDisplay="always",e=e.slice(2)):a==="+?"&&(r.signDisplay="exceptZero",e=e.slice(2)),!K1.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function zb(e){var r={},a=$1(e);return a||r}function Kx(e){for(var r={},a=0,l=e;a<l.length;a++){var o=l[a];switch(o.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=o.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=Zx(o.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=_e(_e(_e({},r),{notation:"scientific"}),o.options.reduce(function(d,p){return _e(_e({},d),zb(p))},{}));continue;case"engineering":r=_e(_e(_e({},r),{notation:"engineering"}),o.options.reduce(function(d,p){return _e(_e({},d),zb(p))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Yx,function(d,p,v,y,b,S){if(p)r.minimumIntegerDigits=v.length;else{if(y&&b)throw new Error("We currently do not support maximum integer digits");if(S)throw new Error("We currently do not support exact integer digits")}return""});continue}if(K1.test(o.stem)){r.minimumIntegerDigits=o.stem.length;continue}if(Ub.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ub,function(d,p,v,y,b,S){return v==="*"?r.minimumFractionDigits=p.length:y&&y[0]==="#"?r.maximumFractionDigits=y.length:b&&S?(r.minimumFractionDigits=b.length,r.maximumFractionDigits=b.length+S.length):(r.minimumFractionDigits=p.length,r.maximumFractionDigits=p.length),""});var u=o.options[0];u==="w"?r=_e(_e({},r),{trailingZeroDisplay:"stripIfInteger"}):u&&(r=_e(_e({},r),jb(u)));continue}if(J1.test(o.stem)){r=_e(_e({},r),jb(o.stem));continue}var f=$1(o.stem);f&&(r=_e(_e({},r),f));var m=Jx(o.stem);m&&(r=_e(_e({},r),m))}return r}var fu={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function $x(e,r){for(var a="",l=0;l<e.length;l++){var o=e.charAt(l);if(o==="j"){for(var u=0;l+1<e.length&&e.charAt(l+1)===o;)u++,l++;var f=1+(u&1),m=u<2?1:3+(u>>1),d="a",p=Wx(r);for((p=="H"||p=="k")&&(m=0);m-- >0;)a+=d;for(;f-- >0;)a=p+a}else o==="J"?a+="H":a+=o}return a}function Wx(e){var r=e.hourCycle;if(r===void 0&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var a=e.language,l;a!=="root"&&(l=e.maximize().region);var o=fu[l||""]||fu[a||""]||fu["".concat(a,"-001")]||fu["001"];return o[0]}var Wh,qx=new RegExp("^".concat(Y1.source,"*")),ew=new RegExp("".concat(Y1.source,"*$"));function qe(e,r){return{start:e,end:r}}var tw=!!String.prototype.startsWith&&"_a".startsWith("a",1),nw=!!String.fromCodePoint,rw=!!Object.fromEntries,aw=!!String.prototype.codePointAt,iw=!!String.prototype.trimStart,lw=!!String.prototype.trimEnd,sw=!!Number.isSafeInteger,ow=sw?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Qd=!0;try{var uw=q1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Qd=((Wh=uw.exec("a"))===null||Wh===void 0?void 0:Wh[0])==="a"}catch{Qd=!1}var Ib=tw?function(r,a,l){return r.startsWith(a,l)}:function(r,a,l){return r.slice(l,l+a.length)===a},Zd=nw?String.fromCodePoint:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];for(var l="",o=r.length,u=0,f;o>u;){if(f=r[u++],f>1114111)throw RangeError(f+" is not a valid code point");l+=f<65536?String.fromCharCode(f):String.fromCharCode(((f-=65536)>>10)+55296,f%1024+56320)}return l},Fb=rw?Object.fromEntries:function(r){for(var a={},l=0,o=r;l<o.length;l++){var u=o[l],f=u[0],m=u[1];a[f]=m}return a},W1=aw?function(r,a){return r.codePointAt(a)}:function(r,a){var l=r.length;if(!(a<0||a>=l)){var o=r.charCodeAt(a),u;return o<55296||o>56319||a+1===l||(u=r.charCodeAt(a+1))<56320||u>57343?o:(o-55296<<10)+(u-56320)+65536}},cw=iw?function(r){return r.trimStart()}:function(r){return r.replace(qx,"")},fw=lw?function(r){return r.trimEnd()}:function(r){return r.replace(ew,"")};function q1(e,r){return new RegExp(e,r)}var Yd;if(Qd){var Vb=q1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yd=function(r,a){var l;Vb.lastIndex=a;var o=Vb.exec(r);return(l=o[1])!==null&&l!==void 0?l:""}}else Yd=function(r,a){for(var l=[];;){var o=W1(r,a);if(o===void 0||e2(o)||pw(o))break;l.push(o),a+=o>=65536?2:1}return Zd.apply(void 0,l)};var hw=(function(){function e(r,a){a===void 0&&(a={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!a.ignoreTag,this.locale=a.locale,this.requiresOtherClause=!!a.requiresOtherClause,this.shouldParseSkeletons=!!a.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(r,a,l){for(var o=[];!this.isEOF();){var u=this.char();if(u===123){var f=this.parseArgument(r,l);if(f.err)return f;o.push(f.val)}else{if(u===125&&r>0)break;if(u===35&&(a==="plural"||a==="selectordinal")){var m=this.clonePosition();this.bump(),o.push({type:Lt.pound,location:qe(m,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(Je.UNMATCHED_CLOSING_TAG,qe(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&Jd(this.peek()||0)){var f=this.parseTag(r,a);if(f.err)return f;o.push(f.val)}else{var f=this.parseLiteral(r,a);if(f.err)return f;o.push(f.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(r,a){var l=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Lt.literal,value:"<".concat(o,"/>"),location:qe(l,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(r+1,a,!0);if(u.err)return u;var f=u.val,m=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Jd(this.char()))return this.error(Je.INVALID_TAG,qe(m,this.clonePosition()));var d=this.clonePosition(),p=this.parseTagName();return o!==p?this.error(Je.UNMATCHED_CLOSING_TAG,qe(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Lt.tag,value:o,children:f,location:qe(l,this.clonePosition())},err:null}:this.error(Je.INVALID_TAG,qe(m,this.clonePosition())))}else return this.error(Je.UNCLOSED_TAG,qe(l,this.clonePosition()))}else return this.error(Je.INVALID_TAG,qe(l,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&mw(this.char());)this.bump();return this.message.slice(r,this.offset())},e.prototype.parseLiteral=function(r,a){for(var l=this.clonePosition(),o="";;){var u=this.tryParseQuote(a);if(u){o+=u;continue}var f=this.tryParseUnquoted(r,a);if(f){o+=f;continue}var m=this.tryParseLeftAngleBracket();if(m){o+=m;continue}break}var d=qe(l,this.clonePosition());return{val:{type:Lt.literal,value:o,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!dw(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var a=[this.char()];for(this.bump();!this.isEOF();){var l=this.char();if(l===39)if(this.peek()===39)a.push(39),this.bump();else{this.bump();break}else a.push(l);this.bump()}return Zd.apply(void 0,a)},e.prototype.tryParseUnquoted=function(r,a){if(this.isEOF())return null;var l=this.char();return l===60||l===123||l===35&&(a==="plural"||a==="selectordinal")||l===125&&r>0?null:(this.bump(),Zd(l))},e.prototype.parseArgument=function(r,a){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,qe(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Je.EMPTY_ARGUMENT,qe(l,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Je.MALFORMED_ARGUMENT,qe(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,qe(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Lt.argument,value:o,location:qe(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,qe(l,this.clonePosition())):this.parseArgumentOptions(r,a,o,l);default:return this.error(Je.MALFORMED_ARGUMENT,qe(l,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),a=this.offset(),l=Yd(this.message,a),o=a+l.length;this.bumpTo(o);var u=this.clonePosition(),f=qe(r,u);return{value:l,location:f}},e.prototype.parseArgumentOptions=function(r,a,l,o){var u,f=this.clonePosition(),m=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(m){case"":return this.error(Je.EXPECT_ARGUMENT_TYPE,qe(f,d));case"number":case"date":case"time":{this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),y=this.parseSimpleArgStyleIfPossible();if(y.err)return y;var b=fw(y.val);if(b.length===0)return this.error(Je.EXPECT_ARGUMENT_STYLE,qe(this.clonePosition(),this.clonePosition()));var S=qe(v,this.clonePosition());p={style:b,styleLocation:S}}var E=this.tryParseArgumentClose(o);if(E.err)return E;var T=qe(o,this.clonePosition());if(p&&Ib(p?.style,"::",0)){var w=cw(p.style.slice(2));if(m==="number"){var y=this.parseNumberSkeletonFromString(w,p.styleLocation);return y.err?y:{val:{type:Lt.number,value:l,location:T,style:y.val},err:null}}else{if(w.length===0)return this.error(Je.EXPECT_DATE_TIME_SKELETON,T);var O=w;this.locale&&(O=$x(w,this.locale));var b={type:El.dateTime,pattern:O,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?Gx(O):{}},A=m==="date"?Lt.date:Lt.time;return{val:{type:A,value:l,location:T,style:b},err:null}}}return{val:{type:m==="number"?Lt.number:m==="date"?Lt.date:Lt.time,value:l,location:T,style:(u=p?.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Je.EXPECT_SELECT_ARGUMENT_OPTIONS,qe(C,_e({},C)));this.bumpSpace();var B=this.parseIdentifierIfPossible(),R=0;if(m!=="select"&&B.value==="offset"){if(!this.bumpIf(":"))return this.error(Je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,qe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var y=this.tryParseDecimalInteger(Je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Je.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(y.err)return y;this.bumpSpace(),B=this.parseIdentifierIfPossible(),R=y.val}var j=this.tryParsePluralOrSelectOptions(r,m,a,B);if(j.err)return j;var E=this.tryParseArgumentClose(o);if(E.err)return E;var k=qe(o,this.clonePosition());return m==="select"?{val:{type:Lt.select,value:l,options:Fb(j.val),location:k},err:null}:{val:{type:Lt.plural,value:l,options:Fb(j.val),offset:R,pluralType:m==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(Je.INVALID_ARGUMENT_TYPE,qe(f,d))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,qe(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,a=this.clonePosition();!this.isEOF();){var l=this.char();switch(l){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Je.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,qe(o,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(a.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(a.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(r,a){var l=[];try{l=Qx(r)}catch{return this.error(Je.INVALID_NUMBER_SKELETON,a)}return{val:{type:El.number,tokens:l,location:a,parsedOptions:this.shouldParseSkeletons?Kx(l):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,a,l,o){for(var u,f=!1,m=[],d=new Set,p=o.value,v=o.location;;){if(p.length===0){var y=this.clonePosition();if(a!=="select"&&this.bumpIf("=")){var b=this.tryParseDecimalInteger(Je.EXPECT_PLURAL_ARGUMENT_SELECTOR,Je.INVALID_PLURAL_ARGUMENT_SELECTOR);if(b.err)return b;v=qe(y,this.clonePosition()),p=this.message.slice(y.offset,this.offset())}else break}if(d.has(p))return this.error(a==="select"?Je.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Je.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);p==="other"&&(f=!0),this.bumpSpace();var S=this.clonePosition();if(!this.bumpIf("{"))return this.error(a==="select"?Je.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Je.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,qe(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(r+1,a,l);if(E.err)return E;var T=this.tryParseArgumentClose(S);if(T.err)return T;m.push([p,{value:E.val,location:qe(S,this.clonePosition())}]),d.add(p),this.bumpSpace(),u=this.parseIdentifierIfPossible(),p=u.value,v=u.location}return m.length===0?this.error(a==="select"?Je.EXPECT_SELECT_ARGUMENT_SELECTOR:Je.EXPECT_PLURAL_ARGUMENT_SELECTOR,qe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!f?this.error(Je.MISSING_OTHER_CLAUSE,qe(this.clonePosition(),this.clonePosition())):{val:m,err:null}},e.prototype.tryParseDecimalInteger=function(r,a){var l=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(l=-1);for(var u=!1,f=0;!this.isEOF();){var m=this.char();if(m>=48&&m<=57)u=!0,f=f*10+(m-48),this.bump();else break}var d=qe(o,this.clonePosition());return u?(f*=l,ow(f)?{val:f,err:null}:this.error(a,d)):this.error(r,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var a=W1(this.message,r);if(a===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return a},e.prototype.error=function(r,a){return{val:null,err:{kind:r,message:this.message,location:a}}},e.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},e.prototype.bumpIf=function(r){if(Ib(this.message,r,this.offset())){for(var a=0;a<r.length;a++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(r){var a=this.offset(),l=this.message.indexOf(r,a);return l>=0?(this.bumpTo(l),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var a=this.offset();if(a===r)break;if(a>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&e2(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),a=this.offset(),l=this.message.charCodeAt(a+(r>=65536?2:1));return l??null},e})();function Jd(e){return e>=97&&e<=122||e>=65&&e<=90}function dw(e){return Jd(e)||e===47}function mw(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function e2(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function pw(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Kd(e){e.forEach(function(r){if(delete r.location,G1(r)||X1(r))for(var a in r.options)delete r.options[a].location,Kd(r.options[a].value);else F1(r)&&Z1(r.style)||(V1(r)||P1(r))&&Xd(r.style)?delete r.style.location:Q1(r)&&Kd(r.children)})}function gw(e,r){r===void 0&&(r={}),r=_e({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var a=new hw(e,r).parse();if(a.err){var l=SyntaxError(Je[a.err.kind]);throw l.location=a.err.location,l.originalMessage=a.err.message,l}return r?.captureLocation||Kd(a.val),a.val}var $r;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($r||($r={}));var ai=(function(e){Nr(r,e);function r(a,l,o){var u=e.call(this,a)||this;return u.code=l,u.originalMessage=o,u}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r})(Error),Pb=(function(e){Nr(r,e);function r(a,l,o,u){return e.call(this,'Invalid values for "'.concat(a,'": "').concat(l,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$r.INVALID_VALUE,u)||this}return r})(ai),vw=(function(e){Nr(r,e);function r(a,l,o){return e.call(this,'Value for "'.concat(a,'" must be of type ').concat(l),$r.INVALID_VALUE,o)||this}return r})(ai),bw=(function(e){Nr(r,e);function r(a,l){return e.call(this,'The intl string context variable "'.concat(a,'" was not provided to the string "').concat(l,'"'),$r.MISSING_VALUE,l)||this}return r})(ai),Zn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Zn||(Zn={}));function yw(e){return e.length<2?e:e.reduce(function(r,a){var l=r[r.length-1];return!l||l.type!==Zn.literal||a.type!==Zn.literal?r.push(a):l.value+=a.value,r},[])}function t2(e){return typeof e=="function"}function Au(e,r,a,l,o,u,f){if(e.length===1&&Hb(e[0]))return[{type:Zn.literal,value:e[0].value}];for(var m=[],d=0,p=e;d<p.length;d++){var v=p[d];if(Hb(v)){m.push({type:Zn.literal,value:v.value});continue}if(Vx(v)){typeof u=="number"&&m.push({type:Zn.literal,value:a.getNumberFormat(r).format(u)});continue}var y=v.value;if(!(o&&y in o))throw new bw(y,f);var b=o[y];if(Fx(v)){(!b||typeof b=="string"||typeof b=="number")&&(b=typeof b=="string"||typeof b=="number"?String(b):""),m.push({type:typeof b=="string"?Zn.literal:Zn.object,value:b});continue}if(V1(v)){var S=typeof v.style=="string"?l.date[v.style]:Xd(v.style)?v.style.parsedOptions:void 0;m.push({type:Zn.literal,value:a.getDateTimeFormat(r,S).format(b)});continue}if(P1(v)){var S=typeof v.style=="string"?l.time[v.style]:Xd(v.style)?v.style.parsedOptions:l.time.medium;m.push({type:Zn.literal,value:a.getDateTimeFormat(r,S).format(b)});continue}if(F1(v)){var S=typeof v.style=="string"?l.number[v.style]:Z1(v.style)?v.style.parsedOptions:void 0;S&&S.scale&&(b=b*(S.scale||1)),m.push({type:Zn.literal,value:a.getNumberFormat(r,S).format(b)});continue}if(Q1(v)){var E=v.children,T=v.value,w=o[T];if(!t2(w))throw new vw(T,"function",f);var O=Au(E,r,a,l,o,u),A=w(O.map(function(R){return R.value}));Array.isArray(A)||(A=[A]),m.push.apply(m,A.map(function(R){return{type:typeof R=="string"?Zn.literal:Zn.object,value:R}}))}if(G1(v)){var C=v.options[b]||v.options.other;if(!C)throw new Pb(v.value,b,Object.keys(v.options),f);m.push.apply(m,Au(C.value,r,a,l,o));continue}if(X1(v)){var C=v.options["=".concat(b)];if(!C){if(!Intl.PluralRules)throw new ai(`Intl.PluralRules is not available in this environment.
14
- Try polyfilling it using "@formatjs/intl-pluralrules"
15
- `,$r.MISSING_INTL_API,f);var B=a.getPluralRules(r,{type:v.pluralType}).select(b-(v.offset||0));C=v.options[B]||v.options.other}if(!C)throw new Pb(v.value,b,Object.keys(v.options),f);m.push.apply(m,Au(C.value,r,a,l,o,b-(v.offset||0)));continue}}return yw(m)}function _w(e,r){return r?_e(_e(_e({},e||{}),r||{}),Object.keys(e).reduce(function(a,l){return a[l]=_e(_e({},e[l]),r[l]||{}),a},{})):e}function Sw(e,r){return r?Object.keys(e).reduce(function(a,l){return a[l]=_w(e[l],r[l]),a},_e({},e)):e}function qh(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,a){e[r]=a}}}}}function Ew(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Zr(function(){for(var r,a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new((r=Intl.NumberFormat).bind.apply(r,Jr([void 0],a,!1)))},{cache:qh(e.number),strategy:Yr.variadic}),getDateTimeFormat:Zr(function(){for(var r,a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new((r=Intl.DateTimeFormat).bind.apply(r,Jr([void 0],a,!1)))},{cache:qh(e.dateTime),strategy:Yr.variadic}),getPluralRules:Zr(function(){for(var r,a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new((r=Intl.PluralRules).bind.apply(r,Jr([void 0],a,!1)))},{cache:qh(e.pluralRules),strategy:Yr.variadic})}}var n2=(function(){function e(r,a,l,o){a===void 0&&(a=e.defaultLocale);var u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var p=u.formatToParts(d);if(p.length===1)return p[0].value;var v=p.reduce(function(y,b){return!y.length||b.type!==Zn.literal||typeof y[y.length-1]!="string"?y.push(b.value):y[y.length-1]+=b.value,y},[]);return v.length<=1?v[0]||"":v},this.formatToParts=function(d){return Au(u.ast,u.locales,u.formatters,u.formats,d,void 0,u.message)},this.resolvedOptions=function(){var d;return{locale:((d=u.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=a,this.resolvedLocale=e.resolveLocale(a),typeof r=="string"){if(this.message=r,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=o||{};f.formatters;var m=gc(f,["formatters"]);this.ast=e.__parse(r,_e(_e({},m),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Sw(e.formats,l),this.formatters=o&&o.formatters||Ew(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var a=Intl.NumberFormat.supportedLocalesOf(r);return a.length>0?new Intl.Locale(a[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},e.__parse=gw,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})(),Ri;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ri||(Ri={}));var Gs=(function(e){Nr(r,e);function r(a,l,o){var u=this,f=o?o instanceof Error?o:new Error(String(o)):void 0;return u=e.call(this,"[@formatjs/intl Error ".concat(a,"] ").concat(l,`
16
- `).concat(f?`
17
- `.concat(f.message,`
18
- `).concat(f.stack):""))||this,u.code=a,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(u,r),u}return r})(Error),Tw=(function(e){Nr(r,e);function r(a,l){return e.call(this,Ri.UNSUPPORTED_FORMATTER,a,l)||this}return r})(Gs),xw=(function(e){Nr(r,e);function r(a,l){return e.call(this,Ri.INVALID_CONFIG,a,l)||this}return r})(Gs),Gb=(function(e){Nr(r,e);function r(a,l){return e.call(this,Ri.MISSING_DATA,a,l)||this}return r})(Gs),Dr=(function(e){Nr(r,e);function r(a,l,o){var u=e.call(this,Ri.FORMAT_ERROR,"".concat(a,`
19
- Locale: `).concat(l,`
20
- `),o)||this;return u.locale=l,u}return r})(Gs),ed=(function(e){Nr(r,e);function r(a,l,o,u){var f=e.call(this,"".concat(a,`
21
- MessageID: `).concat(o?.id,`
22
- Default Message: `).concat(o?.defaultMessage,`
23
- Description: `).concat(o?.description,`
24
- `),l,u)||this;return f.descriptor=o,f.locale=l,f}return r})(Dr),ww=(function(e){Nr(r,e);function r(a,l){var o=e.call(this,Ri.MISSING_TRANSLATION,'Missing message: "'.concat(a.id,'" for locale "').concat(l,'", using ').concat(a.defaultMessage?"default message (".concat(typeof a.defaultMessage=="string"?a.defaultMessage:a.defaultMessage.map(function(u){var f;return(f=u.value)!==null&&f!==void 0?f:JSON.stringify(u)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=a,o}return r})(Gs);function Aw(e,r,a){if(a===void 0&&(a=Error),!e)throw new a(r)}function Ol(e,r,a){return a===void 0&&(a={}),r.reduce(function(l,o){return o in e?l[o]=e[o]:o in a&&(l[o]=a[o]),l},{})}var Cw=function(e){},Ow=function(e){},r2={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Cw,onWarn:Ow};function a2(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Si(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,a){e[r]=a}}}}}function Rw(e){e===void 0&&(e=a2());var r=Intl.RelativeTimeFormat,a=Intl.ListFormat,l=Intl.DisplayNames,o=Zr(function(){for(var m,d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return new((m=Intl.DateTimeFormat).bind.apply(m,Jr([void 0],d,!1)))},{cache:Si(e.dateTime),strategy:Yr.variadic}),u=Zr(function(){for(var m,d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return new((m=Intl.NumberFormat).bind.apply(m,Jr([void 0],d,!1)))},{cache:Si(e.number),strategy:Yr.variadic}),f=Zr(function(){for(var m,d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return new((m=Intl.PluralRules).bind.apply(m,Jr([void 0],d,!1)))},{cache:Si(e.pluralRules),strategy:Yr.variadic});return{getDateTimeFormat:o,getNumberFormat:u,getMessageFormat:Zr(function(m,d,p,v){return new n2(m,d,p,_e({formatters:{getNumberFormat:u,getDateTimeFormat:o,getPluralRules:f}},v||{}))},{cache:Si(e.message),strategy:Yr.variadic}),getRelativeTimeFormat:Zr(function(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];return new(r.bind.apply(r,Jr([void 0],m,!1)))},{cache:Si(e.relativeTime),strategy:Yr.variadic}),getPluralRules:f,getListFormat:Zr(function(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];return new(a.bind.apply(a,Jr([void 0],m,!1)))},{cache:Si(e.list),strategy:Yr.variadic}),getDisplayNames:Zr(function(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];return new(l.bind.apply(l,Jr([void 0],m,!1)))},{cache:Si(e.displayNames),strategy:Yr.variadic})}}function jm(e,r,a,l){var o=e&&e[r],u;if(o&&(u=o[a]),u)return u;l(new Tw("No ".concat(r," format named: ").concat(a)))}function hu(e,r){return Object.keys(e).reduce(function(a,l){return a[l]=_e({timeZone:r},e[l]),a},{})}function Xb(e,r){var a=Object.keys(_e(_e({},e),r));return a.reduce(function(l,o){return l[o]=_e(_e({},e[o]||{}),r[o]||{}),l},{})}function Qb(e,r){if(!r)return e;var a=n2.formats;return _e(_e(_e({},a),e),{date:Xb(hu(a.date,r),hu(e.date||{},r)),time:Xb(hu(a.time,r),hu(e.time||{},r))})}var $d=function(e,r,a,l,o){var u=e.locale,f=e.formats,m=e.messages,d=e.defaultLocale,p=e.defaultFormats,v=e.fallbackOnEmptyString,y=e.onError,b=e.timeZone,S=e.defaultRichTextElements;a===void 0&&(a={id:""});var E=a.id,T=a.defaultMessage;Aw(!!E,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var w=String(E),O=m&&Object.prototype.hasOwnProperty.call(m,w)&&m[w];if(Array.isArray(O)&&O.length===1&&O[0].type===Lt.literal)return O[0].value;if(!l&&O&&typeof O=="string"&&!S)return O.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=_e(_e({},S),l||{}),f=Qb(f,b),p=Qb(p,b),!O){if(v===!1&&O==="")return O;if((!T||u&&u.toLowerCase()!==d.toLowerCase())&&y(new ww(a,u)),T)try{var A=r.getMessageFormat(T,d,p,o);return A.format(l)}catch(C){return y(new ed('Error formatting default message for: "'.concat(w,'", rendering default message verbatim'),u,a,C)),typeof T=="string"?T:w}return w}try{var A=r.getMessageFormat(O,u,f,_e({formatters:r},o||{}));return A.format(l)}catch(C){y(new ed('Error formatting message: "'.concat(w,'", using ').concat(T?"default message":"id"," as fallback."),u,a,C))}if(T)try{var A=r.getMessageFormat(T,d,p,o);return A.format(l)}catch(C){y(new ed('Error formatting the default message for: "'.concat(w,'", rendering message verbatim'),u,a,C))}return typeof O=="string"?O:typeof T=="string"?T:w},Nw=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Xs(e,r,a,l){var o=e.locale,u=e.formats,f=e.onError,m=e.timeZone;l===void 0&&(l={});var d=l.format,p=_e(_e({},m&&{timeZone:m}),d&&jm(u,r,d,f)),v=Ol(l,Nw,p);return r==="time"&&!v.hour&&!v.minute&&!v.second&&!v.timeStyle&&!v.dateStyle&&(v=_e(_e({},v),{hour:"numeric",minute:"numeric"})),a(o,v)}function Dw(e,r){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var o=a[0],u=a[1],f=u===void 0?{}:u,m=typeof o=="string"?new Date(o||0):o;try{return Xs(e,"date",r,f).format(m)}catch(d){e.onError(new Dr("Error formatting date.",e.locale,d))}return String(m)}function Mw(e,r){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var o=a[0],u=a[1],f=u===void 0?{}:u,m=typeof o=="string"?new Date(o||0):o;try{return Xs(e,"time",r,f).format(m)}catch(d){e.onError(new Dr("Error formatting time.",e.locale,d))}return String(m)}function Lw(e,r){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var o=a[0],u=a[1],f=a[2],m=f===void 0?{}:f,d=typeof o=="string"?new Date(o||0):o,p=typeof u=="string"?new Date(u||0):u;try{return Xs(e,"dateTimeRange",r,m).formatRange(d,p)}catch(v){e.onError(new Dr("Error formatting date time range.",e.locale,v))}return String(d)}function Bw(e,r){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var o=a[0],u=a[1],f=u===void 0?{}:u,m=typeof o=="string"?new Date(o||0):o;try{return Xs(e,"date",r,f).formatToParts(m)}catch(d){e.onError(new Dr("Error formatting date.",e.locale,d))}return[]}function kw(e,r){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var o=a[0],u=a[1],f=u===void 0?{}:u,m=typeof o=="string"?new Date(o||0):o;try{return Xs(e,"time",r,f).formatToParts(m)}catch(d){e.onError(new Dr("Error formatting time.",e.locale,d))}return[]}var Hw=["style","type","fallback","languageDisplay"];function Uw(e,r,a,l){var o=e.locale,u=e.onError,f=Intl.DisplayNames;f||u(new ai(`Intl.DisplayNames is not available in this environment.
25
- Try polyfilling it using "@formatjs/intl-displaynames"
26
- `,$r.MISSING_INTL_API));var m=Ol(l,Hw);try{return r(o,m).of(a)}catch(d){u(new Dr("Error formatting display name.",o,d))}}var jw=["type","style"],Zb=Date.now();function zw(e){return"".concat(Zb,"_").concat(e,"_").concat(Zb)}function Iw(e,r,a,l){l===void 0&&(l={});var o=i2(e,r,a,l).reduce(function(u,f){var m=f.value;return typeof m!="string"?u.push(m):typeof u[u.length-1]=="string"?u[u.length-1]+=m:u.push(m),u},[]);return o.length===1?o[0]:o.length===0?"":o}function i2(e,r,a,l){var o=e.locale,u=e.onError;l===void 0&&(l={});var f=Intl.ListFormat;f||u(new ai(`Intl.ListFormat is not available in this environment.
27
- Try polyfilling it using "@formatjs/intl-listformat"
28
- `,$r.MISSING_INTL_API));var m=Ol(l,jw);try{var d={},p=Array.from(a).map(function(v,y){if(typeof v=="object"&&v!==null){var b=zw(y);return d[b]=v,b}return String(v)});return r(o,m).formatToParts(p).map(function(v){return v.type==="literal"?v:_e(_e({},v),{value:d[v.value]||v.value})})}catch(v){u(new Dr("Error formatting list.",o,v))}return a}var Fw=["type"];function Vw(e,r,a,l){var o=e.locale,u=e.onError;l===void 0&&(l={}),Intl.PluralRules||u(new ai(`Intl.PluralRules is not available in this environment.
29
- Try polyfilling it using "@formatjs/intl-pluralrules"
30
- `,$r.MISSING_INTL_API));var f=Ol(l,Fw);try{return r(o,f).select(a)}catch(m){u(new Dr("Error formatting plural.",o,m))}return"other"}var Pw=["numeric","style"];function Gw(e,r,a){var l=e.locale,o=e.formats,u=e.onError;a===void 0&&(a={});var f=a.format,m=!!f&&jm(o,"relative",f,u)||{},d=Ol(a,Pw,m);return r(l,d)}function Xw(e,r,a,l,o){o===void 0&&(o={}),l||(l="second");var u=Intl.RelativeTimeFormat;u||e.onError(new ai(`Intl.RelativeTimeFormat is not available in this environment.
31
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
32
- `,$r.MISSING_INTL_API));try{return Gw(e,r,o).format(a,l)}catch(f){e.onError(new Dr("Error formatting relative time.",e.locale,f))}return String(a)}var Qw=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function l2(e,r,a){var l=e.locale,o=e.formats,u=e.onError;a===void 0&&(a={});var f=a.format,m=f&&jm(o,"number",f,u)||{},d=Ol(a,Qw,m);return r(l,d)}function Zw(e,r,a,l){l===void 0&&(l={});try{return l2(e,r,l).format(a)}catch(o){e.onError(new Dr("Error formatting number.",e.locale,o))}return String(a)}function Yw(e,r,a,l){l===void 0&&(l={});try{return l2(e,r,l).formatToParts(a)}catch(o){e.onError(new Dr("Error formatting number.",e.locale,o))}return[]}function Jw(e){var r=e?e[Object.keys(e)[0]]:void 0;return typeof r=="string"}function Kw(e){e.onWarn&&e.defaultRichTextElements&&Jw(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
33
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
34
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function $w(e,r){var a=Rw(r),l=_e(_e({},r2),e),o=l.locale,u=l.defaultLocale,f=l.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&f?f(new Gb('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&f&&f(new Gb('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(f&&f(new xw('"locale" was not configured, using "'.concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),l.locale=l.defaultLocale||"en"),Kw(l),_e(_e({},l),{formatters:a,formatNumber:Zw.bind(null,l,a.getNumberFormat),formatNumberToParts:Yw.bind(null,l,a.getNumberFormat),formatRelativeTime:Xw.bind(null,l,a.getRelativeTimeFormat),formatDate:Dw.bind(null,l,a.getDateTimeFormat),formatDateToParts:Bw.bind(null,l,a.getDateTimeFormat),formatTime:Mw.bind(null,l,a.getDateTimeFormat),formatDateTimeRange:Lw.bind(null,l,a.getDateTimeFormat),formatTimeToParts:kw.bind(null,l,a.getDateTimeFormat),formatPlural:Vw.bind(null,l,a.getPluralRules),formatMessage:$d.bind(null,l,a),$t:$d.bind(null,l,a),formatList:Iw.bind(null,l,a.getListFormat),formatListToParts:i2.bind(null,l,a.getListFormat),formatDisplayName:Uw.bind(null,l,a.getDisplayNames)})}function Ww(e,r,a){if(a===void 0&&(a=Error),!e)throw new a(r)}function s2(e){Ww(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var o2=_e(_e({},r2),{textComponent:V.Fragment}),qw=function(e,r){return V.isValidElement(e)?V.cloneElement(e,{key:r}):e},u2=function(e){var r;return(r=V.Children.map(e,qw))!==null&&r!==void 0?r:[]};function eA(e){return function(r){return e(u2(r))}}function tA(e,r){if(e===r)return!0;if(!e||!r)return!1;var a=Object.keys(e),l=Object.keys(r),o=a.length;if(l.length!==o)return!1;for(var u=0;u<o;u++){var f=a[u];if(e[f]!==r[f]||!Object.prototype.hasOwnProperty.call(r,f))return!1}return!0}var td={exports:{}},dt={};var Yb;function nA(){if(Yb)return dt;Yb=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,l=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,m=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(R){if(typeof R=="object"&&R!==null){var j=R.$$typeof;switch(j){case r:switch(R=R.type,R){case d:case p:case l:case u:case o:case y:return R;default:switch(R=R&&R.$$typeof,R){case m:case v:case E:case S:case f:return R;default:return j}}case a:return j}}}function B(R){return C(R)===p}return dt.AsyncMode=d,dt.ConcurrentMode=p,dt.ContextConsumer=m,dt.ContextProvider=f,dt.Element=r,dt.ForwardRef=v,dt.Fragment=l,dt.Lazy=E,dt.Memo=S,dt.Portal=a,dt.Profiler=u,dt.StrictMode=o,dt.Suspense=y,dt.isAsyncMode=function(R){return B(R)||C(R)===d},dt.isConcurrentMode=B,dt.isContextConsumer=function(R){return C(R)===m},dt.isContextProvider=function(R){return C(R)===f},dt.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===r},dt.isForwardRef=function(R){return C(R)===v},dt.isFragment=function(R){return C(R)===l},dt.isLazy=function(R){return C(R)===E},dt.isMemo=function(R){return C(R)===S},dt.isPortal=function(R){return C(R)===a},dt.isProfiler=function(R){return C(R)===u},dt.isStrictMode=function(R){return C(R)===o},dt.isSuspense=function(R){return C(R)===y},dt.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===l||R===p||R===u||R===o||R===y||R===b||typeof R=="object"&&R!==null&&(R.$$typeof===E||R.$$typeof===S||R.$$typeof===f||R.$$typeof===m||R.$$typeof===v||R.$$typeof===w||R.$$typeof===O||R.$$typeof===A||R.$$typeof===T)},dt.typeOf=C,dt}var Jb;function rA(){return Jb||(Jb=1,td.exports=nA()),td.exports}var nd,Kb;function aA(){if(Kb)return nd;Kb=1;var e=rA(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=l,u[e.Memo]=o;function f(E){return e.isMemo(E)?o:u[E.$$typeof]||r}var m=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function S(E,T,w){if(typeof T!="string"){if(b){var O=y(T);O&&O!==b&&S(E,O,w)}var A=d(T);p&&(A=A.concat(p(T)));for(var C=f(E),B=f(T),R=0;R<A.length;++R){var j=A[R];if(!a[j]&&!(w&&w[j])&&!(B&&B[j])&&!(C&&C[j])){var k=v(T,j);try{m(E,j,k)}catch{}}}}return E}return nd=S,nd}aA();var zm=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=V.createContext(null)):V.createContext(null);zm.Consumer;var iA=zm.Provider,lA=iA,sA=zm;function vc(){var e=V.useContext(sA);return s2(e),e}var Wd;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Wd||(Wd={}));var qd;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(qd||(qd={}));function c2(e){var r=function(a){var l=vc(),o=a.value,u=a.children,f=gc(a,["value","children"]),m=typeof o=="string"?new Date(o||0):o,d=e==="formatDate"?l.formatDateToParts(m,f):l.formatTimeToParts(m,f);return u(d)};return r.displayName=qd[e],r}function Qs(e){var r=function(a){var l=vc(),o=a.value,u=a.children,f=gc(a,["value","children"]),m=l[e](o,f);if(typeof u=="function")return u(m);var d=l.textComponent||V.Fragment;return V.createElement(d,null,m)};return r.displayName=Wd[e],r}function f2(e){return e&&Object.keys(e).reduce(function(r,a){var l=e[a];return r[a]=t2(l)?eA(l):l,r},{})}var $b=function(e,r,a,l){for(var o=[],u=4;u<arguments.length;u++)o[u-4]=arguments[u];var f=f2(l),m=$d.apply(void 0,Jr([e,r,a,f],o,!1));return Array.isArray(m)?u2(m):m},Wb=function(e,r){var a=e.defaultRichTextElements,l=gc(e,["defaultRichTextElements"]),o=f2(a),u=$w(_e(_e(_e({},o2),l),{defaultRichTextElements:o}),r),f={locale:u.locale,timeZone:u.timeZone,fallbackOnEmptyString:u.fallbackOnEmptyString,formats:u.formats,defaultLocale:u.defaultLocale,defaultFormats:u.defaultFormats,messages:u.messages,onError:u.onError,defaultRichTextElements:o};return _e(_e({},u),{formatMessage:$b.bind(null,f,u.formatters),$t:$b.bind(null,f,u.formatters)})};function rd(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var oA=(function(e){Nr(r,e);function r(){var a=e!==null&&e.apply(this,arguments)||this;return a.cache=a2(),a.state={cache:a.cache,intl:Wb(rd(a.props),a.cache),prevConfig:rd(a.props)},a}return r.getDerivedStateFromProps=function(a,l){var o=l.prevConfig,u=l.cache,f=rd(a);return tA(o,f)?null:{intl:Wb(f,u),prevConfig:f}},r.prototype.render=function(){return s2(this.state.intl),V.createElement(lA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=o2,r})(V.PureComponent);Qs("formatDate");Qs("formatTime");Qs("formatNumber");Qs("formatList");Qs("formatDisplayName");c2("formatDate");c2("formatTime");const uA="_app_1rj0t_1",cA={app:uA},Oa=Ox,jt=Dx,h2="%[a-f0-9]{2}",qb=new RegExp("("+h2+")|([^%]+?)","gi"),ey=new RegExp("("+h2+")+","gi");function em(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;const a=e.slice(0,r),l=e.slice(r);return Array.prototype.concat.call([],em(a),em(l))}function fA(e){try{return decodeURIComponent(e)}catch{let r=e.match(qb)||[];for(let a=1;a<r.length;a++)e=em(r,a).join(""),r=e.match(qb)||[];return e}}function hA(e){const r={"%FE%FF":"��","%FF%FE":"��"};let a=ey.exec(e);for(;a;){try{r[a[0]]=decodeURIComponent(a[0])}catch{const o=fA(a[0]);o!==a[0]&&(r[a[0]]=o)}a=ey.exec(e)}r["%C2"]="�";const l=Object.keys(r);for(const o of l)e=e.replace(new RegExp(o,"g"),r[o]);return e}function dA(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return hA(e)}}function mA(e,r){const a={};if(Array.isArray(r))for(const l of r){const o=Object.getOwnPropertyDescriptor(e,l);o?.enumerable&&Object.defineProperty(a,l,o)}else for(const l of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,l);if(o.enumerable){const u=e[l];r(l,u,e)&&Object.defineProperty(a,l,o)}}return a}function d2(e,r){if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||r==="")return[];const a=e.indexOf(r);return a===-1?[]:[e.slice(0,a),e.slice(a+r.length)]}const pA=e=>e==null,gA=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),tm=Symbol("encodeFragmentIdentifier");function vA(e){switch(e.arrayFormat){case"index":return r=>(a,l)=>{const o=a.length;return l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?a:l===null?[...a,[an(r,e),"[",o,"]"].join("")]:[...a,[an(r,e),"[",an(o,e),"]=",an(l,e)].join("")]};case"bracket":return r=>(a,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?a:l===null?[...a,[an(r,e),"[]"].join("")]:[...a,[an(r,e),"[]=",an(l,e)].join("")];case"colon-list-separator":return r=>(a,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?a:l===null?[...a,[an(r,e),":list="].join("")]:[...a,[an(r,e),":list=",an(l,e)].join("")];case"comma":case"separator":case"bracket-separator":{const r=e.arrayFormat==="bracket-separator"?"[]=":"=";return a=>(l,o)=>o===void 0||e.skipNull&&o===null||e.skipEmptyString&&o===""?l:(o=o===null?"":o,l.length===0?[[an(a,e),r,an(o,e)].join("")]:[[l,an(o,e)].join(e.arrayFormatSeparator)])}default:return r=>(a,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?a:l===null?[...a,an(r,e)]:[...a,[an(r,e),"=",an(l,e)].join("")]}}function bA(e){let r;switch(e.arrayFormat){case"index":return(a,l,o)=>{if(r=/\[(\d*)]$/.exec(a),a=a.replace(/\[\d*]$/,""),!r){o[a]=l;return}o[a]===void 0&&(o[a]={}),o[a][r[1]]=l};case"bracket":return(a,l,o)=>{if(r=/(\[])$/.exec(a),a=a.replace(/\[]$/,""),!r){o[a]=l;return}if(o[a]===void 0){o[a]=[l];return}o[a]=[...o[a],l]};case"colon-list-separator":return(a,l,o)=>{if(r=/(:list)$/.exec(a),a=a.replace(/:list$/,""),!r){o[a]=l;return}if(o[a]===void 0){o[a]=[l];return}o[a]=[...o[a],l]};case"comma":case"separator":return(a,l,o)=>{const f=typeof l=="string"&&l.includes(e.arrayFormatSeparator)?l.split(e.arrayFormatSeparator).map(m=>Ai(m,e)):l===null?l:Ai(l,e);o[a]=f};case"bracket-separator":return(a,l,o)=>{const u=/(\[])$/.test(a);if(a=a.replace(/\[]$/,""),!u){o[a]=l&&Ai(l,e);return}const f=l===null?[]:Ai(l,e).split(e.arrayFormatSeparator);if(o[a]===void 0){o[a]=f;return}o[a]=[...o[a],...f]};default:return(a,l,o)=>{if(o[a]===void 0){o[a]=l;return}o[a]=[...[o[a]].flat(),l]}}}function m2(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function an(e,r){return r.encode?r.strict?gA(e):encodeURIComponent(e):e}function Ai(e,r){return r.decode?dA(e):e}function p2(e){return Array.isArray(e)?e.sort():typeof e=="object"?p2(Object.keys(e)).sort((r,a)=>Number(r)-Number(a)).map(r=>e[r]):e}function g2(e){const r=e.indexOf("#");return r!==-1&&(e=e.slice(0,r)),e}function yA(e){let r="";const a=e.indexOf("#");return a!==-1&&(r=e.slice(a)),r}function ty(e,r,a){return a==="string"&&typeof e=="string"?e:typeof a=="function"&&typeof e=="string"?a(e):a==="boolean"&&e===null?!0:a==="boolean"&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":a==="boolean"&&e!==null&&(e.toLowerCase()==="1"||e.toLowerCase()==="0")?e.toLowerCase()==="1":a==="string[]"&&r.arrayFormat!=="none"&&typeof e=="string"?[e]:a==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?[Number(e)]:a==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):r.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function Im(e){e=g2(e);const r=e.indexOf("?");return r===-1?"":e.slice(r+1)}function Fm(e,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},m2(r.arrayFormatSeparator);const a=bA(r),l=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return l;for(const o of e.split("&")){if(o==="")continue;const u=r.decode?o.replaceAll("+"," "):o;let[f,m]=d2(u,"=");f===void 0&&(f=u),m=m===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?m:Ai(m,r),a(Ai(f,r),m,l)}for(const[o,u]of Object.entries(l))if(typeof u=="object"&&u!==null&&r.types[o]!=="string")for(const[f,m]of Object.entries(u)){const d=r.types[o],p=typeof d=="function"?d:d?d.replace("[]",""):void 0;u[f]=ty(m,r,p)}else typeof u=="object"&&u!==null&&r.types[o]==="string"?l[o]=Object.values(u).join(r.arrayFormatSeparator):l[o]=ty(u,r,r.types[o]);return r.sort===!1?l:(r.sort===!0?Object.keys(l).sort():Object.keys(l).sort(r.sort)).reduce((o,u)=>{const f=l[u];return o[u]=f&&typeof f=="object"&&!Array.isArray(f)?p2(f):f,o},Object.create(null))}function v2(e,r){if(!e)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},m2(r.arrayFormatSeparator);const a=f=>r.skipNull&&pA(e[f])||r.skipEmptyString&&e[f]==="",l=vA(r),o={};for(const[f,m]of Object.entries(e))a(f)||(o[f]=m);const u=Object.keys(o);return r.sort!==!1&&u.sort(r.sort),u.map(f=>{let m=e[f];if(r.replacer&&(m=r.replacer(f,m),m===void 0)||m===void 0)return"";if(m===null)return an(f,r);if(Array.isArray(m)){if(m.length===0&&r.arrayFormat==="bracket-separator")return an(f,r)+"[]";let d=m;return r.replacer&&(d=m.map((p,v)=>r.replacer(`${f}[${v}]`,p)).filter(p=>p!==void 0)),d.reduce(l(f),[]).join("&")}return an(f,r)+"="+an(m,r)}).filter(f=>f.length>0).join("&")}function b2(e,r){r={decode:!0,...r};let[a,l]=d2(e,"#");return a===void 0&&(a=e),{url:a?.split("?")?.[0]??"",query:Fm(Im(e),r),...r&&r.parseFragmentIdentifier&&l?{fragmentIdentifier:Ai(l,r)}:{}}}function y2(e,r){r={encode:!0,strict:!0,[tm]:!0,...r};const a=g2(e.url).split("?")[0]||"",l=Im(e.url),o={...Fm(l,{sort:!1,...r}),...e.query};let u=v2(o,r);u&&=`?${u}`;let f=yA(e.url);if(typeof e.fragmentIdentifier=="string"){const m=new URL(a);m.hash=e.fragmentIdentifier,f=r[tm]?m.hash:`#${e.fragmentIdentifier}`}return`${a}${u}${f}`}function _2(e,r,a){a={parseFragmentIdentifier:!0,[tm]:!1,...a};const{url:l,query:o,fragmentIdentifier:u}=b2(e,a);return y2({url:l,query:mA(o,r),fragmentIdentifier:u},a)}function _A(e,r,a){const l=Array.isArray(r)?o=>!r.includes(o):(o,u)=>!r(o,u);return _2(e,l,a)}const Vm=Object.freeze(Object.defineProperty({__proto__:null,exclude:_A,extract:Im,parse:Fm,parseUrl:b2,pick:_2,stringify:v2,stringifyUrl:y2},Symbol.toStringTag,{value:"Module"})),S2="core.typing.on",E2="core.typing.off",Pm="core.message.from.guest",T2="core.message.without.analysis.from.guest",x2="core.message.to.guest",SA="core.nlu.request.event",w2="core.event.to.guest",EA="core.chat.restart.request",TA="core.transcript.mail.request",A2="core.transcript.item.guest.reaction",Gm="core.conversation.rating.from.guest",xA="core.drawer.open",wA="core.drawer.close",AA="core.guest.locale.changed";var Iu;(function(e){e.WEB_URL="web_url",e.POSTBACK="postback"})(Iu||(Iu={}));var ny;(function(e){e.GOOD="GOOD",e.BAD="BAD"})(ny||(ny={}));let CA=class{type;sender;sources;quickReplies;constructor(r,a,l=[],o=[]){this.type=r,this.sender=a,this.sources=l,this.quickReplies=o}addQuickReply(r,a){this.quickReplies.push({label:r,payload:a})}},bc=class extends CA{text;constructor(r,a,l=[],o=[]){super(_l.TEXT,a,l,o),this.text=r}};var _l;(function(e){e.TEXT="TEXT",e.DETAIL="DETAIL",e.MARKDOWN="MARKDOWN",e.VIDEO="VIDEO",e.IMAGE="IMAGE",e.FILE="FILE",e.AUDIO="AUDIO"})(_l||(_l={}));class C2{type;id;name;avatar;constructor(r,a,l,o){this.type=r,this.id=a,this.name=l,this.avatar=o}}class OA extends C2{constructor(){super(wa.BOT,null,"Chatbot","bot.svg")}}class Xm extends C2{constructor(){super(wa.GUEST,null,"Guest","visitor.svg")}}var wa;(function(e){e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON"})(wa||(wa={}));const RA=e=>{const r=new bc(e,new Xm);return{type:Pm,message:r}},NA=(e,r={})=>{const a=new bc(e,new Xm);return{type:T2,message:a,payload:r}},DA=e=>({type:SA,event:e}),MA=(e,r,a=null,l=null)=>({type:A2,payload:{actionId:e,reaction:r,category:a,comment:l}}),O2=e=>r=>(e.payload.type!==Pm&&r(NA(e.label,e.payload)),r(e.payload)),R2=e=>(r,a)=>{const{quickReplies:l}=a().chat,o=l.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return r(o?O2({...o,label:e}):JSON.parse(JSON.stringify(RA(e))))},Qm="MESSAGE_TO_PARENT_PAGE",Zm="RESTORE_PREVIOUS_CHAT_MESSAGES",Ym="AUDIO_MESSAGE_FROM_USER",Jm="RECEIVE_SPEECH_TRANSCRIPTION",Km="ENABLE_CONVERSATION_RATING",N2="LOAD_SOURCE_INFOS_RESPONSE",$m="LOAD_SOURCE_INFOS_ERROR",Wm="LOAD_SOURCE_INFOS_REQUEST",qm="CLOSE_SOURCE_INFOS",LA="webclient.get.started",D2="webclient.window.expand",M2="webclient.window.close",L2="webclient.transcript.pdf.download",BA=[Qm,Zm,Ym,Jm,Km,Wm,qm],kA=e=>({type:Ym,buffer:e}),HA=e=>({type:Jm,transcription:e}),UA=e=>({type:TA,payload:{parameters:{mailTo:e}}}),jA=()=>({type:L2}),zA=({rating:e})=>({type:Km,payload:{rating:e}}),IA=(e,r)=>({type:Gm,payload:{value:e,feedback:r}}),B2=e=>DA(e),FA=e=>({type:Zm,messages:e}),VA=e=>{switch(e.type){case Iu.WEB_URL:return H2(e.url);case Iu.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},k2=e=>H2(e),H2=e=>({type:Qm,message:{type:"webclient.change.url",url:e}});function du(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var l in a)e[l]=a[l]}return e}var PA={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function nm(e,r){function a(o,u,f){if(!(typeof document>"u")){f=du({},r,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var d in f)f[d]&&(m+="; "+d,f[d]!==!0&&(m+="="+f[d].split(";")[0]));return document.cookie=o+"="+e.write(u,o)+m}}function l(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var u=document.cookie?document.cookie.split("; "):[],f={},m=0;m<u.length;m++){var d=u[m].split("="),p=d.slice(1).join("=");try{var v=decodeURIComponent(d[0]);if(f[v]=e.read(p,v),o===v)break}catch{}}return o?f[o]:f}}return Object.create({set:a,get:l,remove:function(o,u){a(o,"",du({},u,{expires:-1}))},withAttributes:function(o){return nm(this.converter,du({},this.attributes,o))},withConverter:function(o){return nm(du({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}var mu=nm(PA,{path:"/"});const Dn=[];for(let e=0;e<256;++e)Dn.push((e+256).toString(16).slice(1));function GA(e,r=0){return(Dn[e[r+0]]+Dn[e[r+1]]+Dn[e[r+2]]+Dn[e[r+3]]+"-"+Dn[e[r+4]]+Dn[e[r+5]]+"-"+Dn[e[r+6]]+Dn[e[r+7]]+"-"+Dn[e[r+8]]+Dn[e[r+9]]+"-"+Dn[e[r+10]]+Dn[e[r+11]]+Dn[e[r+12]]+Dn[e[r+13]]+Dn[e[r+14]]+Dn[e[r+15]]).toLowerCase()}let ad;const XA=new Uint8Array(16);function QA(){if(!ad){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ad=crypto.getRandomValues.bind(crypto)}return ad(XA)}const ZA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ry={randomUUID:ZA};function YA(e,r,a){e=e||{};const l=e.random??e.rng?.()??QA();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,GA(l)}function Fu(e,r,a){return ry.randomUUID&&!e?ry.randomUUID():YA(e)}const ep=()=>JA(window.location.pathname),JA=e=>{const r=e.split("/"),a=e.endsWith("/");return r[r.length-(a?2:1)]};function Mn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var KA=typeof Symbol=="function"&&Symbol.observable||"@@observable",ay=KA,id=()=>Math.random().toString(36).substring(7).split("").join("."),$A={INIT:`@@redux/INIT${id()}`,REPLACE:`@@redux/REPLACE${id()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${id()}`},Vu=$A;function tp(e){if(typeof e!="object"||e===null)return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r||Object.getPrototypeOf(e)===null}function U2(e,r,a){if(typeof e!="function")throw new Error(Mn(2));if(typeof r=="function"&&typeof a=="function"||typeof a=="function"&&typeof arguments[3]=="function")throw new Error(Mn(0));if(typeof r=="function"&&typeof a>"u"&&(a=r,r=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(Mn(1));return a(U2)(e,r)}let l=e,o=r,u=new Map,f=u,m=0,d=!1;function p(){f===u&&(f=new Map,u.forEach((w,O)=>{f.set(O,w)}))}function v(){if(d)throw new Error(Mn(3));return o}function y(w){if(typeof w!="function")throw new Error(Mn(4));if(d)throw new Error(Mn(5));let O=!0;p();const A=m++;return f.set(A,w),function(){if(O){if(d)throw new Error(Mn(6));O=!1,p(),f.delete(A),u=null}}}function b(w){if(!tp(w))throw new Error(Mn(7));if(typeof w.type>"u")throw new Error(Mn(8));if(typeof w.type!="string")throw new Error(Mn(17));if(d)throw new Error(Mn(9));try{d=!0,o=l(o,w)}finally{d=!1}return(u=f).forEach(A=>{A()}),w}function S(w){if(typeof w!="function")throw new Error(Mn(10));l=w,b({type:Vu.REPLACE})}function E(){const w=y;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(Mn(11));function A(){const B=O;B.next&&B.next(v())}return A(),{unsubscribe:w(A)}},[ay](){return this}}}return b({type:Vu.INIT}),{dispatch:b,subscribe:y,getState:v,replaceReducer:S,[ay]:E}}function WA(e){Object.keys(e).forEach(r=>{const a=e[r];if(typeof a(void 0,{type:Vu.INIT})>"u")throw new Error(Mn(12));if(typeof a(void 0,{type:Vu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mn(13))})}function j2(e){const r=Object.keys(e),a={};for(let u=0;u<r.length;u++){const f=r[u];typeof e[f]=="function"&&(a[f]=e[f])}const l=Object.keys(a);let o;try{WA(a)}catch(u){o=u}return function(f={},m){if(o)throw o;let d=!1;const p={};for(let v=0;v<l.length;v++){const y=l[v],b=a[y],S=f[y],E=b(S,m);if(typeof E>"u")throw m&&m.type,new Error(Mn(14));p[y]=E,d=d||E!==S}return d=d||l.length!==Object.keys(f).length,d?p:f}}function Pu(...e){return e.length===0?r=>r:e.length===1?e[0]:e.reduce((r,a)=>(...l)=>r(a(...l)))}function qA(...e){return r=>(a,l)=>{const o=r(a,l);let u=()=>{throw new Error(Mn(15))};const f={getState:o.getState,dispatch:(d,...p)=>u(d,...p)},m=e.map(d=>d(f));return u=Pu(...m)(o.dispatch),{...o,dispatch:u}}}function eC(e){return tp(e)&&"type"in e&&typeof e.type=="string"}var z2=Symbol.for("immer-nothing"),iy=Symbol.for("immer-draftable"),Jn=Symbol.for("immer-state");function zr(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var pr=Object,Tl=pr.getPrototypeOf,Gu="constructor",yc="prototype",rm="configurable",Xu="enumerable",Cu="writable",ks="value",Aa=e=>!!e&&!!e[Jn];function Wr(e){return e?I2(e)||_c(e)||!!e[iy]||!!e[Gu]?.[iy]||Sc(e)||Ec(e):!1}var tC=pr[yc][Gu].toString(),ly=new WeakMap;function I2(e){if(!e||!np(e))return!1;const r=Tl(e);if(r===null||r===pr[yc])return!0;const a=pr.hasOwnProperty.call(r,Gu)&&r[Gu];if(a===Object)return!0;if(!gl(a))return!1;let l=ly.get(a);return l===void 0&&(l=Function.toString.call(a),ly.set(a,l)),l===tC}function Zs(e,r,a=!0){Ys(e)===0?(a?Reflect.ownKeys(e):pr.keys(e)).forEach(o=>{r(o,e[o],e)}):e.forEach((l,o)=>r(o,l,e))}function Ys(e){const r=e[Jn];return r?r.type_:_c(e)?1:Sc(e)?2:Ec(e)?3:0}var sy=(e,r,a=Ys(e))=>a===2?e.has(r):pr[yc].hasOwnProperty.call(e,r),am=(e,r,a=Ys(e))=>a===2?e.get(r):e[r],Qu=(e,r,a,l=Ys(e))=>{l===2?e.set(r,a):l===3?e.add(a):e[r]=a};function nC(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}var _c=Array.isArray,Sc=e=>e instanceof Map,Ec=e=>e instanceof Set,np=e=>typeof e=="object",gl=e=>typeof e=="function",ld=e=>typeof e=="boolean",_a=e=>e.copy_||e.base_,rp=e=>e.modified_?e.copy_:e.base_;function im(e,r){if(Sc(e))return new Map(e);if(Ec(e))return new Set(e);if(_c(e))return Array[yc].slice.call(e);const a=I2(e);if(r===!0||r==="class_only"&&!a){const l=pr.getOwnPropertyDescriptors(e);delete l[Jn];let o=Reflect.ownKeys(l);for(let u=0;u<o.length;u++){const f=o[u],m=l[f];m[Cu]===!1&&(m[Cu]=!0,m[rm]=!0),(m.get||m.set)&&(l[f]={[rm]:!0,[Cu]:!0,[Xu]:m[Xu],[ks]:e[f]})}return pr.create(Tl(e),l)}else{const l=Tl(e);if(l!==null&&a)return{...e};const o=pr.create(l);return pr.assign(o,e)}}function ap(e,r=!1){return Tc(e)||Aa(e)||(Ys(e)>1&&pr.defineProperties(e,{set:pu,add:pu,clear:pu,delete:pu}),pr.freeze(e),r&&Zs(e,(a,l)=>{ap(l,!0)},!1)),e}function rC(){zr(2)}var pu={[ks]:rC};function Tc(e){return e===null||!np(e)?!0:pr.isFrozen(e)}var Zu="MapSet",lm="Patches",F2={};function xl(e){const r=F2[e];return r||zr(0,e),r}var aC=e=>!!F2[e],Hs,V2=()=>Hs,iC=(e,r)=>({drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:aC(Zu)?xl(Zu):void 0});function oy(e,r){r&&(e.patchPlugin_=xl(lm),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function sm(e){om(e),e.drafts_.forEach(lC),e.drafts_=null}function om(e){e===Hs&&(Hs=e.parent_)}var uy=e=>Hs=iC(Hs,e);function lC(e){const r=e[Jn];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function cy(e,r){r.unfinalizedDrafts_=r.drafts_.length;const a=r.drafts_[0];if(e!==void 0&&e!==a){a[Jn].modified_&&(sm(r),zr(4)),Wr(e)&&(e=fy(r,e));const{patchPlugin_:o}=r;o&&o.generateReplacementPatches_(a[Jn].base_,e,r)}else e=fy(r,a);return sC(r,e,!0),sm(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==z2?e:void 0}function fy(e,r){if(Tc(r))return r;const a=r[Jn];if(!a)return ip(r,e.handledSet_,e);if(!xc(a,e))return r;if(!a.modified_)return a.base_;if(!a.finalized_){const{callbacks_:l}=a;if(l)for(;l.length>0;)l.pop()(e);X2(a,e)}return a.copy_}function sC(e,r,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ap(r,a)}function P2(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var xc=(e,r)=>e.scope_===r,oC=[];function G2(e,r,a,l){const o=_a(e),u=e.type_;if(l!==void 0&&am(o,l,u)===r){Qu(o,l,a,u);return}if(!e.draftLocations_){const m=e.draftLocations_=new Map;Zs(o,(d,p)=>{if(Aa(p)){const v=m.get(p)||[];v.push(d),m.set(p,v)}})}const f=e.draftLocations_.get(r)??oC;for(const m of f)Qu(o,m,a,u)}function uC(e,r,a){e.callbacks_.push(function(o){const u=r;if(!u||!xc(u,o))return;o.mapSetPlugin_?.fixSetContents(u);const f=rp(u);G2(e,u.draft_??u,f,a),X2(u,o)})}function X2(e,r){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:l}=r;if(l){const o=l.getPath(e);o&&l.generatePatches_(e,o,r)}P2(e)}}function cC(e,r,a){const{scope_:l}=e;if(Aa(a)){const o=a[Jn];xc(o,l)&&o.callbacks_.push(function(){Ou(e);const f=rp(o);G2(e,a,f,r)})}else Wr(a)&&e.callbacks_.push(function(){const u=_a(e);am(u,r,e.type_)===a&&l.drafts_.length>1&&(e.assigned_.get(r)??!1)===!0&&e.copy_&&ip(am(e.copy_,r,e.type_),l.handledSet_,l)})}function ip(e,r,a){return!a.immer_.autoFreeze_&&a.unfinalizedDrafts_<1||Aa(e)||r.has(e)||!Wr(e)||Tc(e)||(r.add(e),Zs(e,(l,o)=>{if(Aa(o)){const u=o[Jn];if(xc(u,a)){const f=rp(u);Qu(e,l,f,e.type_),P2(u)}}else Wr(o)&&ip(o,r,a)})),e}function fC(e,r){const a=_c(e),l={type_:a?1:0,scope_:r?r.scope_:V2(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=l,u=lp;a&&(o=[l],u=Us);const{revoke:f,proxy:m}=Proxy.revocable(o,u);return l.draft_=m,l.revoke_=f,[m,l]}var lp={get(e,r){if(r===Jn)return e;const a=_a(e);if(!sy(a,r,e.type_))return hC(e,a,r);const l=a[r];if(e.finalized_||!Wr(l))return l;if(l===sd(e.base_,r)){Ou(e);const o=e.type_===1?+r:r,u=cm(e.scope_,l,e,o);return e.copy_[o]=u}return l},has(e,r){return r in _a(e)},ownKeys(e){return Reflect.ownKeys(_a(e))},set(e,r,a){const l=Q2(_a(e),r);if(l?.set)return l.set.call(e.draft_,a),!0;if(!e.modified_){const o=sd(_a(e),r),u=o?.[Jn];if(u&&u.base_===a)return e.copy_[r]=a,e.assigned_.set(r,!1),!0;if(nC(a,o)&&(a!==void 0||sy(e.base_,r,e.type_)))return!0;Ou(e),um(e)}return e.copy_[r]===a&&(a!==void 0||r in e.copy_)||Number.isNaN(a)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=a,e.assigned_.set(r,!0),cC(e,r,a)),!0},deleteProperty(e,r){return Ou(e),sd(e.base_,r)!==void 0||r in e.base_?(e.assigned_.set(r,!1),um(e)):e.assigned_.delete(r),e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const a=_a(e),l=Reflect.getOwnPropertyDescriptor(a,r);return l&&{[Cu]:!0,[rm]:e.type_!==1||r!=="length",[Xu]:l[Xu],[ks]:a[r]}},defineProperty(){zr(11)},getPrototypeOf(e){return Tl(e.base_)},setPrototypeOf(){zr(12)}},Us={};Zs(lp,(e,r)=>{Us[e]=function(){const a=arguments;return a[0]=a[0][0],r.apply(this,a)}});Us.deleteProperty=function(e,r){return Us.set.call(this,e,r,void 0)};Us.set=function(e,r,a){return lp.set.call(this,e[0],r,a,e[0])};function sd(e,r){const a=e[Jn];return(a?_a(a):e)[r]}function hC(e,r,a){const l=Q2(r,a);return l?ks in l?l[ks]:l.get?.call(e.draft_):void 0}function Q2(e,r){if(!(r in e))return;let a=Tl(e);for(;a;){const l=Object.getOwnPropertyDescriptor(a,r);if(l)return l;a=Tl(a)}}function um(e){e.modified_||(e.modified_=!0,e.parent_&&um(e.parent_))}function Ou(e){e.copy_||(e.assigned_=new Map,e.copy_=im(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var dC=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,a,l)=>{if(gl(r)&&!gl(a)){const u=a;a=r;const f=this;return function(d=u,...p){return f.produce(d,v=>a.call(this,v,...p))}}gl(a)||zr(6),l!==void 0&&!gl(l)&&zr(7);let o;if(Wr(r)){const u=uy(this),f=cm(u,r,void 0);let m=!0;try{o=a(f),m=!1}finally{m?sm(u):om(u)}return oy(u,l),cy(o,u)}else if(!r||!np(r)){if(o=a(r),o===void 0&&(o=r),o===z2&&(o=void 0),this.autoFreeze_&&ap(o,!0),l){const u=[],f=[];xl(lm).generateReplacementPatches_(r,o,{patches_:u,inversePatches_:f}),l(u,f)}return o}else zr(1,r)},this.produceWithPatches=(r,a)=>{if(gl(r))return(f,...m)=>this.produceWithPatches(f,d=>r(d,...m));let l,o;return[this.produce(r,a,(f,m)=>{l=f,o=m}),l,o]},ld(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ld(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ld(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Wr(e)||zr(8),Aa(e)&&(e=mC(e));const r=uy(this),a=cm(r,e,void 0);return a[Jn].isManual_=!0,om(r),a}finishDraft(e,r){const a=e&&e[Jn];(!a||!a.isManual_)&&zr(9);const{scope_:l}=a;return oy(l,r),cy(void 0,l)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,r){let a;for(a=r.length-1;a>=0;a--){const o=r[a];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}a>-1&&(r=r.slice(a+1));const l=xl(lm).applyPatches_;return Aa(e)?l(e,r):this.produce(e,o=>l(o,r))}};function cm(e,r,a,l){const[o,u]=Sc(r)?xl(Zu).proxyMap_(r,a):Ec(r)?xl(Zu).proxySet_(r,a):fC(r,a);return(a?.scope_??V2()).drafts_.push(o),u.callbacks_=a?.callbacks_??[],u.key_=l,a&&l!==void 0?uC(a,u,l):u.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(u);const{patchPlugin_:p}=d;u.modified_&&p&&p.generatePatches_(u,[],d)}),o}function mC(e){return Aa(e)||zr(10,e),Z2(e)}function Z2(e){if(!Wr(e)||Tc(e))return e;const r=e[Jn];let a,l=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,a=im(e,r.scope_.immer_.useStrictShallowCopy_),l=r.scope_.immer_.shouldUseStrictIteration()}else a=im(e,!0);return Zs(a,(o,u)=>{Qu(a,o,Z2(u))},l),r&&(r.finalized_=!1),a}var pC=new dC,Y2=pC.produce;function J2(e){return({dispatch:a,getState:l})=>o=>u=>typeof u=="function"?u(a,l,e):o(u)}var gC=J2(),vC=J2,bC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pu:Pu.apply(null,arguments)};function hy(e,r){function a(...l){if(r){let o=r(...l);if(!o)throw new Error(Sa(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:l[0]}}return a.toString=()=>`${e}`,a.type=e,a.match=l=>eC(l)&&l.type===e,a}var K2=class Rs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Rs.prototype)}static get[Symbol.species](){return Rs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Rs(...r[0].concat(this)):new Rs(...r.concat(this))}};function dy(e){return Wr(e)?Y2(e,()=>{}):e}function gu(e,r,a){return e.has(r)?e.get(r):e.set(r,a(r)).get(r)}function yC(e){return typeof e=="boolean"}var _C=()=>function(r){const{thunk:a=!0,immutableCheck:l=!0,serializableCheck:o=!0,actionCreatorCheck:u=!0}=r??{};let f=new K2;return a&&(yC(a)?f.push(gC):f.push(vC(a.extraArgument))),f},SC="RTK_autoBatch",my=e=>r=>{setTimeout(r,e)},EC=(e={type:"raf"})=>r=>(...a)=>{const l=r(...a);let o=!0,u=!1,f=!1;const m=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:my(10):e.type==="callback"?e.queueNotification:my(e.timeout),p=()=>{f=!1,u&&(u=!1,m.forEach(v=>v()))};return Object.assign({},l,{subscribe(v){const y=()=>o&&v(),b=l.subscribe(y);return m.add(v),()=>{b(),m.delete(v)}},dispatch(v){try{return o=!v?.meta?.[SC],u=!o,u&&(f||(f=!0,d(p))),l.dispatch(v)}finally{o=!0}}})},TC=e=>function(a){const{autoBatch:l=!0}=a??{};let o=new K2(e);return l&&o.push(EC(typeof l=="object"?l:void 0)),o};function xC(e){const r=_C(),{reducer:a=void 0,middleware:l,devTools:o=!0,preloadedState:u=void 0,enhancers:f=void 0}=e||{};let m;if(typeof a=="function")m=a;else if(tp(a))m=j2(a);else throw new Error(Sa(1));let d;typeof l=="function"?d=l(r):d=r();let p=Pu;o&&(p=bC({trace:!1,...typeof o=="object"&&o}));const v=qA(...d),y=TC(v);let b=typeof f=="function"?f(y):y();const S=p(...b);return U2(m,u,S)}function $2(e){const r={},a=[];let l;const o={addCase(u,f){const m=typeof u=="string"?u:u.type;if(!m)throw new Error(Sa(28));if(m in r)throw new Error(Sa(29));return r[m]=f,o},addAsyncThunk(u,f){return f.pending&&(r[u.pending.type]=f.pending),f.rejected&&(r[u.rejected.type]=f.rejected),f.fulfilled&&(r[u.fulfilled.type]=f.fulfilled),f.settled&&a.push({matcher:u.settled,reducer:f.settled}),o},addMatcher(u,f){return a.push({matcher:u,reducer:f}),o},addDefaultCase(u){return l=u,o}};return e(o),[r,a,l]}function wC(e){return typeof e=="function"}function AC(e,r){let[a,l,o]=$2(r),u;if(wC(e))u=()=>dy(e());else{const m=dy(e);u=()=>m}function f(m=u(),d){let p=[a[d.type],...l.filter(({matcher:v})=>v(d)).map(({reducer:v})=>v)];return p.filter(v=>!!v).length===0&&(p=[o]),p.reduce((v,y)=>{if(y)if(Aa(v)){const S=y(v,d);return S===void 0?v:S}else{if(Wr(v))return Y2(v,b=>y(b,d));{const b=y(v,d);if(b===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return v},m)}return f.getInitialState=u,f}var CC=Symbol.for("rtk-slice-createasyncthunk");function OC(e,r){return`${e}/${r}`}function RC({creators:e}={}){const r=e?.asyncThunk?.[CC];return function(l){const{name:o,reducerPath:u=o}=l;if(!o)throw new Error(Sa(11));const f=(typeof l.reducers=="function"?l.reducers(DC()):l.reducers)||{},m=Object.keys(f),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(C,B){const R=typeof C=="string"?C:C.type;if(!R)throw new Error(Sa(12));if(R in d.sliceCaseReducersByType)throw new Error(Sa(13));return d.sliceCaseReducersByType[R]=B,p},addMatcher(C,B){return d.sliceMatchers.push({matcher:C,reducer:B}),p},exposeAction(C,B){return d.actionCreators[C]=B,p},exposeCaseReducer(C,B){return d.sliceCaseReducersByName[C]=B,p}};m.forEach(C=>{const B=f[C],R={reducerName:C,type:OC(o,C),createNotation:typeof l.reducers=="function"};LC(B)?kC(R,B,p,r):MC(R,B,p)});function v(){const[C={},B=[],R=void 0]=typeof l.extraReducers=="function"?$2(l.extraReducers):[l.extraReducers],j={...C,...d.sliceCaseReducersByType};return AC(l.initialState,k=>{for(let K in j)k.addCase(K,j[K]);for(let K of d.sliceMatchers)k.addMatcher(K.matcher,K.reducer);for(let K of B)k.addMatcher(K.matcher,K.reducer);R&&k.addDefaultCase(R)})}const y=C=>C,b=new Map,S=new WeakMap;let E;function T(C,B){return E||(E=v()),E(C,B)}function w(){return E||(E=v()),E.getInitialState()}function O(C,B=!1){function R(k){let K=k[C];return typeof K>"u"&&B&&(K=gu(S,R,w)),K}function j(k=y){const K=gu(b,B,()=>new WeakMap);return gu(K,k,()=>{const G={};for(const[$,Z]of Object.entries(l.selectors??{}))G[$]=NC(Z,k,()=>gu(S,k,w),B);return G})}return{reducerPath:C,getSelectors:j,get selectors(){return j(R)},selectSlice:R}}const A={name:o,reducer:T,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:w,...O(u),injectInto(C,{reducerPath:B,...R}={}){const j=B??u;return C.inject({reducerPath:j,reducer:T},R),{...A,...O(j,!0)}}};return A}}function NC(e,r,a,l){function o(u,...f){let m=r(u);return typeof m>"u"&&l&&(m=a()),e(m,...f)}return o.unwrapped=e,o}var sp=RC();function DC(){function e(r,a){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...a}}return e.withTypes=()=>e,{reducer(r){return Object.assign({[r.name](...a){return r(...a)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,a){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:a}},asyncThunk:e}}function MC({type:e,reducerName:r,createNotation:a},l,o){let u,f;if("reducer"in l){if(a&&!BC(l))throw new Error(Sa(17));u=l.reducer,f=l.prepare}else u=l;o.addCase(e,u).exposeCaseReducer(r,u).exposeAction(r,f?hy(e,f):hy(e))}function LC(e){return e._reducerDefinitionType==="asyncThunk"}function BC(e){return e._reducerDefinitionType==="reducerWithPrepare"}function kC({type:e,reducerName:r},a,l,o){if(!o)throw new Error(Sa(18));const{payloadCreator:u,fulfilled:f,pending:m,rejected:d,settled:p,options:v}=a,y=o(e,u,v);l.exposeAction(r,y),f&&l.addCase(y.fulfilled,f),m&&l.addCase(y.pending,m),d&&l.addCase(y.rejected,d),p&&l.addMatcher(y.settled,p),l.exposeCaseReducer(r,{fulfilled:f||vu,pending:m||vu,rejected:d||vu,settled:p||vu})}function vu(){}function Sa(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const HC={formValues:{}},W2=sp({name:"start-screen",initialState:HC,reducers:{showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,r){e.startScreenStatus="HIDDEN",e.formValues=r.payload.formValues},startAuthenticatedChat(e,r){e.startScreenStatus="HIDDEN",e.loginToken=r.payload.loginToken,e.loginRequestToken=void 0},requestLogin(e,r){e.loginRequestToken=r.payload.loginRequestToken,e.formValues=r.payload.formValues},loginWindowClosed(e){e.loginRequestToken=void 0}}}),{startChat:UC,startAuthenticatedChat:jC,showStartScreen:zC,requestLogin:IC,loginWindowClosed:FC}=W2.actions,VC=W2.reducer,q2="RESET_CHAT_STATE",e_="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",t_="SHOW_CONVERSATION_RATING_OVERLAY",n_="HIDE_CONVERSATION_RATING_OVERLAY",r_=()=>({type:M2}),PC=()=>({type:q2}),a_=()=>({type:e_}),Yu=(e,r=void 0)=>({type:t_,payload:{opener:e,defaultRating:r}}),GC=()=>({type:n_}),py=(e,r,a)=>(l,o)=>{try{const u=o().connection.sessionId;if(!u)throw new Error("Session ID is not available");l({type:Wm,payload:{chunkId:a}}),gy(e,u,r,a,!1,l),gy(e,u,r,a,!0,l)}catch(u){console.error("Error loading source infos:",u),l({type:$m})}},gy=(e,r,a,l,o,u)=>{const f=`/${e}/me/chat-widget/transcript/${a}/chunks/${l}?highlight=${o}`;fetch(f,{headers:{"x-bubble-chat-session-id":r}}).then(m=>{if(!m.ok)throw new Error(`HTTP error! Status: ${m.status}`);return m.json()}).then(m=>{const d={...m,chunkId:l,highlighted:o};u({type:N2,payload:d})}).catch(m=>{console.error("Error fetching source infos:",m),u({type:$m,payload:{highlighted:o}})})},XC=()=>({type:qm}),op="CONNECT",up="CONNECTING",cp="CONNECTED",fp="DISCONNECTED",hp="RECONNECTED",dp="RESTORE_SESSION_ID",wc="START",Ac="CLEAR_SESSION_ID",QC=[op,up,cp,fp,hp,dp],ZC=(e,r)=>({type:op,clientName:e,querystrings:r}),YC=e=>({type:dp,sessionId:e}),JC=()=>({type:up}),KC=()=>({type:cp}),$C=()=>({type:fp}),WC=()=>({type:hp}),i_=e=>(r,a)=>{const l=a().connection,{formValues:o,loginToken:u}=a().startScreen;let f=l.sessionId;f===void 0&&(f=Fu());let m=l.userId;if(m===void 0){const p=mu.get("bubble-chat-user-id")||mu.get("bubble-chat-userId")||mu.get("bf-webclient-userId");m=p||Fu(),mu.set("bubble-chat-user-id",m)}const d=Vm.parse(a().connection.queryString||"");r({type:wc,payload:{sessionId:f,userId:m,clientName:e,loginToken:u,querystrings:{...d,...o}}})},Js=()=>(e,r)=>{const a=r().connection.sessionId||"";if(e(qC(a)),e(PC()),r().settings.enableStartScreen)e(zC());else{const l=ep();return e(i_(l))}},qC=e=>({type:Ac,payload:{sessionId:e}}),Ht=()=>{const e=vc();return a=>{const l=e.formatMessage({id:a});return l===a?void 0:l}};var Ci=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(Ci||{}),Ju=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(Ju||{});const e3="_container_q2uun_1",t3="_chatcontent_q2uun_6",n3="_accessabilityHidden_q2uun_12",od={container:e3,chatcontent:t3,accessabilityHidden:n3},r3="_messageContainer_1t640_1",a3="_messages_1t640_13",vy={messageContainer:r3,messages:a3};var Re=32,Ze=9,In=13,Bt=10,Cr=96,Ks=126,Di=91,Ku=94,ti=62,$u=35,Ca=45,wl=61,Wu=92,mp=42,Cc=95,Oc=60,pp=64,qu=93,gp=33,bu=38,vp=58,vl=102,bl=104,ei=119,ud=116,by=112,i3=115,l3=160,s3=12,l_=46,ec=47,o3=43,u3=124,c3=123,yy=120,_y=88,tc=48,nc=57,js=65,zs=90,rc=97,ac=122,qr=128,f3=32,h3={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},F=h3,d3={af:"⁡",applyfunction:"⁡",ic:"⁣",invisiblecomma:"⁣",invisibletimes:"⁢",it:"⁢",lrm:"‎",negativemediumspace:"​",negativethickspace:"​",negativethinspace:"​",negativeverythinspace:"​",nobreak:"⁠",rlm:"‏",shy:"­",zerowidthspace:"​",zwj:"‍",zwnj:"‌",downbreve:"̑",tdot:"⃛",tripledot:"⃛",dotdot:"⃜",tab:" ",newline:`
35
- `,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 m3(e){if(!mt(e,"---"))return null;let r=3;for(;r<e.length&&(e[r]===" "||e[r]===" ");)r++;if(r>=e.length||e[r]!==`
36
- `)return null;r++;let a=!1;for(;r<e.length;){let l=r;for(;r<e.length&&e[r]!==`
37
- `;)r++;if(r>=e.length)break;let o=r++;if(mt(e,"---",l))return{endPos:r,hasValidYaml:a};let u=e.indexOf(":",l);u!==-1&&u<o&&(a=!0)}return null}var Sy=d3,p3=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,g3=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;function bp(e){return e.indexOf("&")===-1?e:e.replace(p3,(r,a)=>{let l=Sy[a]||Sy[a.toLowerCase()];if(l)return l;if(a[0]==="#"){let o=a[1]==="x"||a[1]==="X"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o===0||o>=55296&&o<=57343||o>1114111?"�":o<=65535?String.fromCharCode(o):String.fromCharCode(55296+(o-65536>>10),56320+(o-65536&1023))}return r})}var fm=/(javascript|vbscript|data(?!:image)):/i;function s_(e){if(fm.test(e))return null;if(e.indexOf("%")===-1)return e;try{let r=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(fm.test(r))return null}catch{return null}return e}var Fn={},Kn,ln;Kn=[192,193,194,195,196,197,224,225,226,227,228,229,230,198];for(ln=0;ln<Kn.length;ln++)Fn[Kn[ln]]="a";Fn[231]=Fn[199]="c";Fn[240]=Fn[208]="d";Kn=[200,201,202,203,233,232,234,235];for(ln=0;ln<Kn.length;ln++)Fn[Kn[ln]]="e";Kn=[207,239,206,238,205,237,204,236];for(ln=0;ln<Kn.length;ln++)Fn[Kn[ln]]="i";Fn[209]=Fn[241]="n";Kn=[248,216,339,338,213,245,212,244,211,243,210,242];for(ln=0;ln<Kn.length;ln++)Fn[Kn[ln]]="o";Kn=[220,252,219,251,218,250,217,249];for(ln=0;ln<Kn.length;ln++)Fn[Kn[ln]]="u";Fn[376]=Fn[255]=Fn[221]=Fn[253]="y";function o_(e){return e>=tc&&e<=nc||e>=js&&e<=zs||e>=rc&&e<=ac}function Oi(e){for(var r=[],a=0;a<e.length;a++){var l=e.charCodeAt(a);if(o_(l))l>=js&&l<=zs?r.push(String.fromCharCode(l+f3)):r.push(e[a]);else if(l===Re||l===Ca)r.push("-");else{var o=Fn[l];o&&r.push(o)}}return r.join("")}function mt(e,r,a){return e.startsWith(r,a)}function u_(e,r,a){return e.startsWith(r,e.length-r.length)}var Ey=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 Ru(e){let r=e.toLowerCase();if(Ey.has(r))return!0;let a=r.indexOf(":");return a!==-1?(r=r.slice(a+1),Ey.has(r)):!1}var v3=["src","href","data","formAction","srcDoc","action"],yp=1,yl=2,Ty=1,b3=2,y3=3,_3=4,ic=(function(){let e=new Uint8Array(128),r;for(e[Ze]=e[Bt]=e[s3]=e[In]=e[Re]=yp,r=gp;r<=ec;r++)e[r]=yl;for(r=vp;r<=pp;r++)e[r]=yl;for(r=Di;r<=Cr;r++)e[r]=yl;for(r=c3;r<=Ks;r++)e[r]=yl;return e})(),hm=(function(){let e=new Uint8Array(128);return e[Wu]=b3,e[Di]=_3,e[mp]=e[Cc]=e[Ks]=e[wl]=y3,e[Cr]=e[Oc]=e[pp]=e[qu]=e[Bt]=e[Re]=e[gp]=Ty,e[vl]=e[bl]=e[ei]=Ty,e})();function dm(e){return e<qr&&(ic[e]&yp)!==0}var S3=/[\p{P}\p{S}]/u,E3=new RegExp("\\p{Zs}","u");function Is(e){if(!e)return!0;let r=e.charCodeAt(0);return r<qr?(ic[r]&yp)!==0:E3.test(e)}function c_(e){if(typeof e=="number")return e<qr&&(ic[e]&yl)!==0;if(!e)return!1;let r=e.charCodeAt(0);return r<qr?(ic[r]&yl)!==0:S3.test(e)}function Se(e,r){let a=e.indexOf(`
38
- `,r);return a!==-1?a:e.length}function Ln(e,r,a){let l=a??e.length;for(;r<l&&(e[r]===" "||e[r]===" ");)r++;return r}function T3(e){if(!e)return!1;for(var r in e)return!0;return!1}function xy(e){var r=e.toLowerCase();return r==="title"||r==="textarea"||r==="style"||r==="xmp"||r==="iframe"||r==="noembed"||r==="noframes"||r==="script"||r==="plaintext"}function wy(e){return e.replace(/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi,function(r,a,l,o){return"&lt;"+a+l+o})}function x3(e){console.warn(e)}function Sl(e,r,a,l){for(var o=ie(a),u=e.length,f=l??u-r,m=0;m<f&&r+m<u&&ie(e,r+m)===o;)m++;return m}function Ay(e,r,a,l,o){if(o===0?a>=l:r<=l)return!1;let u=o===0?e[a]:e[r-1],f=o===0?r>0?e[r-1]:null:a<e.length?e[a]:null;var m=ie(u);if(m<qr?dm(m):Is(u))return!1;var d=f?ie(f):null,p=f===null||f===`
39
- `||f==="\r"||(d!==null?d<qr?dm(d):Is(f):!0),v=uc(m,u);return!v||p?!0:f?uc(ie(f),f):!1}function lc(e){for(var r="",a=0;a<e.length;)if(e[a]==="\\"&&a+1<e.length){var l=e[a+1];r+=c_(ie(l))?l:"\\"+l,a+=2}else r+=e[a++];return bp(r)}function et(e,r){return r+(r<e.length?1:0)}function w3(e,r){if(e>=qr)return 0;var a=hm[e];return r&&a===1&&(e===vl||e===bl||e===ei)?0:a}function A3(e,r,a,l,o,u){if(!a.length||a[a.length-1].type!==F.blockQuote)return null;let f=Ln(l,0,l.length);if(f>=l.length||l[f]!==">")return null;let m=b_(e,r,o,u);if(!m)return null;let d=a[a.length-1],p=m;return p.children&&d.children.push(...p.children),p.endPos}function sc(e,r,a,l){return{type:F.heading,level:e,children:r,id:l(a)}}var mm=/\\(.)/g,C3=/\s+#+\s*$/,_p=/^(?:(\d{1,9})([.)])\s+(.*)$|(\d{1,9})([.)])\s*$|([-*+])\s+(.*)$|([-*+])\s*$)/,pm=/^(\d{1,9})([.)])(\s+|$)/,gm=/^([*+\-])(\s+|$)/,f_=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/i,O3=/^<([a-z][^ >/]*) ?(?:[^>/]+[^/]|)>/i,ie=function(e,r=0){return e.charCodeAt(r)},oc=function(e){return o_(ie(e))},vm=function(e){return dm(ie(e))},xn=function(e){return e===" "||e===" "},uc=function(e,r){return c_(e<qr?e:r)},R3=function(e){var r=ie(e);return oc(e)||r===Ca||r===Cc||r===vp||r===l_};function bm(e,r){var a=e.length;if(r>=a)return null;var l=ie(e[r]);if(!Ni(l))return null;for(var o=r,u=r;u<a;){var f=ie(e[u]);if(f>=rc&&f<=ac||f>=js&&f<=zs||f>=tc&&f<=nc||f===Ca)u++;else{var m=ie(e[u]);if(m===Re||m===Ze||m===Bt||m===In||m===ti||m===ec)break;return null}}if(u===o)return null;for(var d=e.slice(o,u),p=0;p<d.length;p++){var f=ie(d[p]);if(!(f>=rc&&f<=ac||f>=js&&f<=zs||f>=tc&&f<=nc||f===Ca))return null}return{tagName:d,tagLower:d.toLowerCase(),nextPos:u}}function Al(e,r){var a=Lu(e,r);return!a||a.kind!=="tag"?null:{tagName:a.tagName||"",tagLower:a.tagNameLower||"",attrs:a.attrs||"",endPos:a.endPos,isClosing:a.isClosing||!1,isSelfClosing:a.isSelfClosing||!1,hasNewline:a.hasNewline,hasSpaceBeforeSlash:!1,whitespaceBeforeAttrs:a.whitespaceBeforeAttrs||""}}function N3(e,r,a){for(var l=1,o=r;l>0&&o<e.length;){var u=e.indexOf("<",o);if(u===-1)return null;var f=Al(e,u);if(!f){o=u+1;continue}if(f.isClosing&&f.tagLower===a&&--l===0)return[u,f.endPos];!f.isClosing&&!f.isSelfClosing&&f.tagLower===a&&l++,o=f.endPos}return null}var D3=/^\{.*\}$/,h_=/\n\n/,d_=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,M3=/<\/?(?:pre|script|style|textarea)\b/i,L3=/^<[A-Z]/,B3=/\n$/,k3=new Set(["#",">","-","*","+","`","|","0","1","2","3","4","5","6","7","8","9"]);function H3(e,r,a,l){let o=r;for(;o<a;){if(e[o]==="\\"&&o+1<a){o+=2;continue}if(e[o]===l)return o;o++}return-1}function Cy(e,r){var a=r.indexOf(":");if(a>0){var l=r.slice(a+1).trim(),o=l.length;if(o>=2){var u=l[0];(u==='"'||u==="'")&&l[o-1]===u&&(l=l.slice(1,-1))}e.push([r.slice(0,a).trim(),l])}}function U3(e){var r=[];if(!e)return r;for(var a="",l=0,o="",u=0;u<e.length;u++){var f=e[u];if(f==='"'||f==="'")o?f===o&&(o="",l--):(o=f,l++);else if(f==="("&&u_(a,"url"))l++;else if(f===")"&&l>0)l--;else if(f===";"&&l===0){Cy(r,a),a="";continue}a+=f}return Cy(r,a),r}function j3(e,r,a,l){return r==="style"?U3(a).reduce(function(o,[u,f]){let m=l(f,e,u);return m!=null&&(o[u.replace(/(-[a-z])/g,d=>d[1].toUpperCase())]=m),o},{}):v3.indexOf(r)!==-1?l(a&&a.replace(mm,"$1"),e,r):(a.match(D3)&&(a=a.slice(1,a.length-1),a=a&&a.replace(mm,"$1")),a==="true"?!0:a==="false"?!1:a)}function wi(e,r,a,l){let o={};if(!e||!e.trim())return o;let u=[],f=0,m=e.length;for(;f<m;){for(;f<m&&xn(e[f]);)f++;if(f>=m)break;let v=f;for(;f<m&&R3(e[f]);)f++;if(f===v){f++;continue}let y=e.slice(v,f);for(;f<m&&xn(e[f]);)f++;if(f>=m||e[f]!=="="){u.push(y);continue}for(f++;f<m&&xn(e[f]);)f++;if(f>=m){u.push(y+"=");break}let b=f,S=e[f];if(S==='"'||S==="'")for(f++;f<m;){if(e[f]===S){if(f+1>=m){f++;break}let E=e[f+1];if(xn(E)||E==="/"){f++;break}}f++}else if(S==="{"){let E=1;for(f++;f<m&&E>0;){if(e[f]==="{")E++;else if(e[f]==="}"&&(E--,E===0)){f++;break}f++}}else for(;f<m&&!xn(e[f]);)f++;u.push(y+"="+e.slice(b,f))}if(!u?.length)return o;let d=r.toLowerCase(),p=a.length>0&&a[0]>="A"&&a[0]<="Z";for(let v=0;v<u.length;v++){let y=u[v],b=y.indexOf("=");if(b!==-1){let S=y.slice(0,b).trim(),E=S.toLowerCase();if(E==="ref")continue;let T=p?S:E,w=y.slice(b+1).trim(),O=(A=>{let C=A[0];return(C==='"'||C==="'")&&A.length>=2&&A[A.length-1]===C?A.slice(1,-1):A})(w);if(E==="href"&&d==="a"||E==="src"&&d==="img"){let A=l.sanitizer(O,d,E);if(A==null){x3(`Stripped unsafe ${E} on <${a}>`);continue}o[T]=A}else{let A=j3(d,E,O,l.sanitizer);o[T]=A}}else y!=="style"&&(o[p?y:y.toLowerCase()]=!0)}if(fm.test(decodeURIComponent(e)))for(let v in o)delete o[v];return o}var Fs=function(e){return k3.has(e)};function z3(e,r,a){let l=r+1;for(;l<e.length&&e[l]!=="]";){if(e[l]==="\\"&&l+1<e.length){l+=2;continue}l++}if(l>=e.length)return{shouldSkip:!1,newPos:0};let o=r+1,u=l,f=o<u&&(e[o]===`
40
- `||e[o]==="\r"),m=u>o&&(e[u-1]===`
41
- `||e[u-1]==="\r"),d=l+1;if(d=Ln(e,d),d>=e.length||e[d]!==":")return{shouldSkip:!1,newPos:0};if((f||m)&&a){let p=d+1;for(p=Ln(e,p),p<e.length&&e[p]===`
42
- `&&(p=Ln(e,p+1));p<e.length&&e[p]!==`
43
- `;)p++;return p<e.length&&p++,{shouldSkip:!0,newPos:p}}return I3(e,d)}function I3(e,r){let a=r+1;for(a=Ln(e,a),a<e.length&&e[a]===`
44
- `&&(a=Ln(e,a+1));a<e.length&&e[a]!==`
45
- `;)a++;if(a>=e.length)return{shouldSkip:!1,newPos:0};a++;let l=Ln(e,a);if(l>=e.length||e[l]!=='"'&&e[l]!=="'")return{shouldSkip:!1,newPos:0};let o=e[l],u=l+1;for(;u<e.length&&e[u]!==o&&e[u]!==`
46
- `;){if(e[u]==="\\"&&u+1<e.length){u+=2;continue}u++}if(u>=e.length||e[u]!==o)return{shouldSkip:!1,newPos:0};let f=Ln(e,u+1);return f<e.length&&e[f]!==`
47
- `&&e[f]!=="\r"?{shouldSkip:!0,newPos:a}:{shouldSkip:!1,newPos:0}}function m_(e){for(var r=0;r<e.length;r++){var a=e[r];if(a.type===F.link)return!0;if(a.type===F.textFormatted){var l=a;if(l.children&&m_(l.children))return!0}}return!1}function ym(e){for(var r="",a=0,l=e.length;a<l;a++){var o=e[a],u=o.type;if(u===F.text)r+=o.text;else if(u===F.image){var f=o;f.alt&&(r+=f.alt)}else if(u===F.textFormatted){var m=o;m.children&&(r+=ym(m.children))}else if(u===F.link){var d=o;d.children&&(r+=ym(d.children))}}return r}var F3=new Set([" "," ","\r",`
48
- `,"\f","\v"]);function Mi(e,r,a,l,o){for(var u=[],f=[],m=[],d=r,p=r,v=o.disableAutoLink||l.inAnchor,y=!1,b=!!l.inAnchor,S=!!o.disableParsingRawHTML,E=function(hn,dn){if(S)return!1;if(!b){var qt=hd(e,d,l,o,"<");if(qt)return T(d),u.push(qt),d=qt.endPos,p=d,!0}var It=Nc(e,d,l,o);if(It)return T(d),u.push(It),d=It.endPos,p=d,!0;var We=Al(e,d);if(!We)return!1;var Pn=d+(We.isClosing?2:1);if(Pn>=e.length||xn(e[Pn]))return!1;var Un=e.indexOf(">",d+1);if(Un!==-1){var Ft=d+1,Ne=Un-Ft;if(Ne>=7){var rt=mt(e,"http://",Ft);if(rt||mt(e,"https://",Ft)){for(var _n=Ft;_n<Un;_n++)if(xn(e[_n]))return!1}}}var qn=ie(e,Pn);if(Ni(qn)&&Pn+1<e.length&&e[Pn+1]===":"||We.isClosing&&We.attrs.trim().length)return!1;if(We.attrs.length)for(var mn=!1,Mr="",He=0;He<We.attrs.length;He++){var ce=We.attrs[He];if(mn&&ce===Mr)mn=!1;else if(!mn&&(ce==='"'||ce==="'"))mn=!0,Mr=ce;else if(ce==="*"||ce==="#"||ce==="!"){for(var D=He+1;D<We.attrs.length&&We.attrs[D]!=="="&&We.attrs[D]!==" "&&We.attrs[D]!==" ";)D++;if(D<We.attrs.length&&We.attrs[D]==="=")return!1}}var W={type:F.htmlBlock,tag:We.tagName,attrs:{},children:[],text:e.slice(d,We.endPos),noInnerParse:!0,endPos:We.endPos};return T(d),u.push(W),d=W.endPos,p=d,!0},T=function(hn){if(hn>p){var dn=e.slice(p,hn);u.push({type:F.text,text:y?bp(dn):dn}),p=hn,y=!1}};d<a;){var w=ie(e,d),O=w3(w,v);if(O===0){for(w===bu&&(y=!0),d++;d<a&&(w=ie(e,d),!(w>=qr));){w===bu&&(y=!0);var A=hm[w];if(A!==0){if(v&&A===1&&(w===vl||w===bl||w===ei)){d++;continue}break}d++}continue}if(w===Cr){for(var C=d,B=0;d+B<a&&ie(e,d+B)===Cr;)B++;if(B>0){for(var R=d+B,j=-1,k=R;k<a;){for(;k<a&&ie(e,k)!==Cr;)k++;if(k>=a)break;for(var K=0;k+K<a&&ie(e,k+K)===Cr;)K++;K>B&&(K=B);var G=k+K;if(K===B&&(k<=R||ie(e,k-1)!==Cr)&&(G>=a||ie(e,G)!==Cr)){j=k,k=G;break}k++}if(j!==-1){for(var $=e.slice(R,j),Z=!1,J=0;J<$.length;J++){var se=ie($,J);if(se===Bt||se===In){Z=!0;break}}var fe=$;if(Z&&(fe=$.replace(/\r\n/g," ").replace(/\r/g," ").replace(/\n/g," ")),fe.length>0){var he=ie(fe,0),U=ie(fe,fe.length-1);if(he===Re&&U===Re){for(var ae=1;ae<fe.length-1;ae++)if(ie(fe,ae)!==Re){fe=fe.slice(1,fe.length-1);break}}}T(C),u.push({type:F.codeInline,text:fe}),d=k,p=d;continue}d=R;continue}}if(!b&&!v&&(w===vl||w===bl||w===ei)){var X=null,be=d+1<a?ie(e,d+1):0,pe=d+2<a?ie(e,d+2):0,N=d+3<a?ie(e,d+3):0,Y=d+4<a?ie(e,d+4):0,ee=d+5<a?ie(e,d+5):0;if(w===bl&&be===ud&&pe===ud&&N===by?X="h":w===ei&&be===ei&&pe===ei&&N===l_?X="w":w===vl&&be===ud&&pe===by&&N===vp&&Y===ec&&ee===ec&&(X="f"),X){var ue=hd(e,d,l,o,X);if(ue){T(d),u.push(ue),d=ue.endPos,p=d;continue}}}if(!b&&!v&&w===pp){var ne=hd(e,d,l,o,"@");if(ne&&"emailStart"in ne){for(var{emailStart:de,endPos:ge}=ne,Ee=[],G=f.length-1;G>=0;G--){var xe=f[G];xe.sourcePos>=de&&xe.sourcePos<ge&&(xe.nodeIndex>=0&&xe.nodeIndex<u.length&&(u.splice(xe.nodeIndex,1),Ee.push(xe.nodeIndex)),f.splice(G,1))}if(de<p){for(var k=u.length-1;k>=0;k--)if(u[k].type===F.text){u.splice(k,1),Ee.push(k);break}p=de}if(Ee.length){Ee.sort(function(hn,dn){return hn-dn});for(var je=0,wt=0;wt<f.length;wt++){for(var xe=f[wt];je<Ee.length&&Ee[je]<xe.nodeIndex;)je++;xe.nodeIndex-=je}}T(de),u.push(ne),d=ge,p=d;continue}}if(!(w===Oc&&E())){if(w===Wu){if(d+1<a&&ie(e,d+1)===Bt){for(var Ae=d+2;Ae<a&&ie(e,Ae)===Re;)Ae++;if(Ae>=a){d++;continue}for(T(d),u.push({type:F.breakLine}),d+=2;d<a&&ie(e,d)===Re;)d++;p=d;continue}var yt=d+1<a?e[d+1]:"";if(yt&&"!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".indexOf(yt)!==-1){T(d),u.push({type:F.text,text:yt==="&"?"&​":yt}),d+=2,p=d;continue}}if(w===Di){if(!b){if(d+1<a&&e[d+1]==="^"){for(var Ot=d+2;Ot<a&&e[Ot]!=="]";)Ot++;if(Ot<a){var Oe=e.slice(d+2,Ot);T(d),u.push({type:F.footnoteReference,target:`#${o.slugify(Oe)}`,text:Oe}),d=Ot+1,p=d;continue}}if(l.inList&&d+2<a&&ie(e,d+2)===qu){var ht=ie(e,d+1);if(ht===Re||ht===yy||ht===_y){T(d),u.push({type:F.gfmTask,completed:ht===yy||ht===_y}),d+=3,p=d;continue}}}var on=!1;if(d>r&&e[d-1]==="!"){for(var An=0,Pe=d-2;Pe>=r&&e[Pe]==="\\";Pe--)An++;if((An&1)===0&&(on=!0,p<d-1&&T(d-1),u.length>0&&u[u.length-1].type===F.text)){var Kt=u[u.length-1];Kt.text.endsWith("!")&&(Kt.text=Kt.text.slice(0,-1),!Kt.text&&u.pop())}}on||T(d),p=d+1,(!b||on)&&m.push({type:on?"image":"link",pos:on?d-1:d,resultIdx:u.length,inAnchor:b}),d++;continue}if(w===qu&&m.length>0){var Nt=m[m.length-1],un=Nt.pos+(Nt.type==="image"?2:1),At=d;T(d);var ct=d+1,Bn=Sp(u,Nt),Xt=Nt.type==="link"&&m_(Bn),$t=!1;if(!Xt&&ct<a&&e[ct]==="("){var Qt=X3(e,ct+1);if(Qt){Oy(u,f,m,Nt,un,At,o.sanitizer(lc(Qt.target),"a","href"),Qt.title?lc(Qt.title):void 0),d=Qt.endPos,p=d;continue}}var gn=l.refs||{},vn=null,gr=d;if(ct<a&&e[ct]==="["){for(var it=ct+1,k=it;k<a&&e[k]!=="]";)k++;k<a&&(vn=e.slice(it,k),gr=k,$t=!0)}(!$t||vn==="")&&(vn=e.slice(un,At));var bn=g_(vn);if(!Xt&&gn&&gn[bn]){var _t=gn[bn];Oy(u,f,m,Nt,un,At,_t.target,_t.title),d=gr+1,p=d;continue}var pt=Nt.resultIdx;m.pop(),u.length=pt,Nt.type==="image"&&u.push({type:F.text,text:"!"}),u.push({type:F.text,text:"["},...Bn,{type:F.text,text:"]"});for(var J=0;J<f.length;J++)f[J].nodeIndex>=pt&&f[J].nodeIndex++;d++,p=d;continue}if(w===mp||w===Cc||w===Ks||w===wl){var $e=e[d],nt=d,cn=Sl(e,d,$e);if(($e==="~"||$e==="=")&&cn!==2){d++;continue}var yn=nt+cn,zt=Ay(e,nt,yn,a,0),lt=Ay(e,nt,yn,r,1),Wt=zt,Rt=lt;if($e==="_"&&zt&&lt){if(nt>0){var kn=e[nt-1],Hn=ie(kn);Wt=uc(Hn,kn)}if(yn<a){var St=e[yn],fn=ie(St);Rt=uc(fn,St)}}T(nt),f.push({nodeIndex:u.length,type:$e,length:cn,canOpen:Wt,canClose:Rt,active:!0,sourcePos:nt,inAnchor:b}),u.push({type:F.text,text:e.slice(nt,nt+cn)}),d=nt+cn,p=d;continue}if(w===Bt){for(var Pe=d-1,vr=0;Pe>=p&&ie(e,Pe)===Re;)vr++,Pe--;if(vr>=2){for(var Ae=d+1;Ae<a&&ie(e,Ae)===Re;)Ae++;if(Ae>=a){T(Pe+1),d=a,p=a;continue}for(T(Pe+1),u.push({type:F.breakLine}),d++;d<a&&ie(e,d)===Re;)d++;p=d;continue}var Vn=d>p?ie(e,d-1):0,ht=d+1<a?ie(e,d+1):0,br=d>p&&Vn===Re&&ht===Re?d-1:d;T(br),u.push({type:F.text,text:`
49
- `}),p=d+1,d>r&&Vn===Re&&p<a&&ie(e,p)===Re&&p++,d=p;continue}for(w===bu&&(y=!0),d++;d<a;){var w=ie(e,d);if(w>=qr)break;w===bu&&(y=!0);var A=hm[w];if(A===0){d++;continue}if(A===1&&(w===vl||w===bl||w===ei)&&v){d++;continue}break}}}if(T(d),f.length&&T_(u,f),m.length){m.sort(function(hn,dn){return hn.resultIdx-dn.resultIdx});for(var k=0;k<m.length;k++)u.splice(m[k].resultIdx+k,0,{type:F.text,text:m[k].type==="image"?"![":"["})}return u}function V3(e,r,a,l,o){for(var u=!1,f=0;f<r.length;f++)if(r[f].sourcePos>=l&&r[f].sourcePos<o){u=!0;break}if(u){for(var m=Sp(e,a),d=[],f=0;f<r.length;f++){var p=r[f];p.sourcePos>=l&&p.sourcePos<o&&d.push({nodeIndex:p.nodeIndex-a.resultIdx,type:p.type,length:p.length,canOpen:p.canOpen,canClose:p.canClose,active:p.active,sourcePos:p.sourcePos,inAnchor:p.inAnchor})}T_(m,d),e.length=a.resultIdx;for(var v=0;v<m.length;v++)e.push(m[v]);for(var y=[],f=0;f<r.length;f++)(r[f].sourcePos<l||r[f].sourcePos>=o)&&y.push(r[f]);r.length=0;for(var v=0;v<y.length;v++)r.push(y[v])}}function P3(e,r,a,l){return e.type==="link"?{type:F.link,target:a,title:l,children:r}:{type:F.image,target:a||"",alt:ym(r),title:l}}function Sp(e,r){return e.slice(r.resultIdx)}function Oy(e,r,a,l,o,u,f,m){V3(e,r,l,o,u);var d=Sp(e,l);a.pop(),e.length=l.resultIdx,e.push(P3(l,d,f,m))}function G3(e,r,a){let l=Ln(e,r),o=l<e.length&&e[l]==="<";o&&l++;let u=l;if(o&&l<e.length&&e[l]===">")return{target:"",endPos:l+1,hadSpace:!1};let f,m;var d=!1;if(o){for(m=l;m<e.length&&e[m]!==">";){let y=e[m];if(y===`
50
- `||y==="\r"||y==="<")return null;if(y==="\\"){m+=2;continue}m++}if(m>=e.length||e[m]!==">")return null;m++;let p=u;for(;p<m-1&&xn(e[p]);)p++;let v=m-1;for(;v>p&&xn(e[v-1]);)v--;f=e.slice(p,v),l=m}else{let p=0;for(m=l;m<e.length;){let v=e[m];if(v===" "||v===" "||v===`
51
- `){d=!0;break}if(v==="("){if(m>0&&e[m-1]==="\\"){m++;continue}p++,m++;continue}if(v===")"){if(m>0&&e[m-1]==="\\"){m++;continue}if(p===0)break;p--,m++;continue}m++}f=e.slice(u,m),l=m}return{target:f,endPos:l,hadSpace:d}}function Ry(e,r,a,l){let o=r,u=0;for(;o<e.length;){let m=e[o];if(xn(m))o++;else if(m===`
52
- `){if(u>=1)break;u++,o++}else{if(Is(m))break;break}}if(a&&!l&&(o>=e.length||e[o]!=='"'&&e[o]!=="'"&&e[o]!=="("))return{title:void 0,endPos:o};let f;if(o<e.length){let m=e[o];if(m==='"'||m==="'"){o++;let d=o;for(;o<e.length&&e[o]!==m;)e[o]==="\\"&&o++,o++;o<e.length&&(f=e.slice(d,o),o++)}else if(m==="("){o++;let d=o,p=1;for(;o<e.length&&p>0;)e[o]==="\\"&&o+1<e.length?o++:e[o]==="("?p++:e[o]===")"&&p--,o++;p===0&&(f=e.slice(d,o-1))}}return o=Ln(e,o),{title:f,endPos:o}}function X3(e,r,a){let l=G3(e,r);if(!l)return null;let o=r;o=Ln(e,o);let u=o<e.length&&e[o]==="<";if(u&&l.target===""&&l.endPos===o+2){let m=Ry(e,l.endPos,!1,u);return m.endPos>=e.length||e[m.endPos]!==")"?null:{target:"",title:m.title,endPos:m.endPos+1}}let f=Ry(e,l.endPos,l.hadSpace,u);return f.endPos>=e.length||e[f.endPos]!==")"?null:{target:l.target,title:f.title,endPos:f.endPos+1}}function Ni(e){return e>=js&&e<=zs||e>=rc&&e<=ac}function p_(e){let r=e.indexOf(":");if(r<2||r>32)return!1;let a=ie(e);if(!Ni(a))return!1;for(let l=1;l<r;l++){let o=e[l];if(ie(o),!oc(o)&&o!=="+"&&o!=="."&&o!=="-")return!1}return!0}function Ny(e,r,a){return r===0?!0:(a?`
53
- \r*_~(`:`
54
- *_~(`).indexOf(e[r-1])!==-1}function cd(e,r,a,l,o){let u=l(e,"a","href");return u?{type:F.link,target:u,children:[{type:F.text,text:r}],endPos:a,...o!==void 0?{emailStart:o}:{}}:null}function fd(e,r,a,l,o){if(a.inAnchor||o!==2&&l.disableAutoLink)return null;if(o===2){if(e[r]!=="<")return null;let b=r+1;for(;b<e.length&&e[b]!==">";){if(xn(e[b]))return null;b++}if(b>=e.length||e[b]!==">")return null;let S=e.slice(r+1,b);if(!S.length)return null;let E=S.indexOf("\\")!==-1,T=p_(S),w=mt(S,"http://")||mt(S,"https://"),O=S.toLowerCase(),A=mt(O,"mailto:"),C=!E&&S.indexOf("@")!==-1&&S.indexOf("//")===-1&&!T;if(!w&&!A&&!C&&!T)return null;let B=S,R=S;if(!(T||w))if(A){let j=O.indexOf(":");R=S.slice(j+1),B="mailto:"+R}else C&&(B="mailto:"+S);return cd(B,R,b+1,l.sanitizer)}if(o===1){let b=r;for(;b>0&&(oc(e[b-1])||".+-_".indexOf(e[b-1])!==-1);)b--;if(b>=r||!Ny(e,b,!0))return null;let S=r+1,E=!1;for(;S<e.length;){let w=e[S];if(w===".")E=!0,S++;else if(oc(w)||w==="-"||w==="_")S++;else break}if(!E||S<=r+1)return null;for(;S>r+1&&e[S-1]===".";)S--;if(S>r+1&&(e[S-1]==="-"||e[S-1]==="_"))return null;if(S-(r+1)<1e4){if(e.indexOf(".",r+1)>=S||e.indexOf(".",r+1)===-1)return null}else if(e.slice(r+1,S).indexOf(".")===-1)return null;let T=e.slice(b,S);return cd("mailto:"+T,T,S,l.sanitizer,b)}let u=mt(e,"http://",r)||mt(e,"https://",r),f=!u&&mt(e,"ftp://",r),m=!u&&!f&&mt(e,"www.",r);if(!(u||f||m)||!Ny(e,r,!1))return null;for(var d=r+(u?ie(e,r+4)===i3?8:7:f?6:4),p=d;d<e.length;){let b=ie(e,d);if(b===Re||b===Ze||b===Bt||b===Oc||b===ti)break;d++}if(d<=p)return null;let v=d;for(;v>p;){let b=e[v-1];if(v>p+1&&e[v-2]==="\\")break;if(b==="?"||b==="!"||b==="."||b===","||b===":"||b==="*"||b==="_"||b==="~")v--;else if(b===";"){let S=v-2;for(;S>=p&&e[S]!=="&"&&e[S]!==" ";)S--;if(S>=p&&e[S]==="&"){let E=e.slice(S+1,v-1);if(E.length>=2&&E.length<=10&&/^[a-zA-Z0-9]+$/.test(E)&&(E==="lt"||E==="gt"||E.length>=3&&(mt(E,"amp")||mt(E,"apos")||mt(E,"quot")||mt(E,"nbsp")||/^[a-z]{3,10}$/.test(E))))break;v=S;break}v--}else if(b===")"){let S=0,E=0;for(let T=p;T<v;T++)e[T]==="("&&S++,e[T]===")"&&E++;if(E>S)v--;else break}else break}if(d=v,d<=p)return null;let y=e.slice(r,d);return cd(m?"http://"+y:y,y,d,l.sanitizer)}function hd(e,r,a,l,o){return o==="<"?fd(e,r,a,l,2):o==="h"||o==="f"||o==="w"?fd(e,r,a,l,0):o==="@"?fd(e,r,a,l,1):null}function g_(e){var r=e.trim(),a=r.replace(/[\s\t\n\r]+/g," ");return a.indexOf("ẞ")!==-1?a.replace(/\u1E9E/g,"ss").toLowerCase():a.toLowerCase()}function Q3(e,r,a){if(r+3>=e.length||e[r]!=="[")return null;let l=e[r+1];return l!==" "&&l!=="x"&&l!=="X"||e[r+2]!=="]"?null:{type:F.gfmTask,completed:l.toLowerCase()==="x",endPos:r+3}}function Ep(e,r,a,l){let{inline:o,inList:u,inBlockQuote:f}=r;l.inline!==void 0&&(r.inline=l.inline),l.list!==void 0&&(r.inList=l.list),l.inBlockQuote!==void 0&&(r.inBlockQuote=l.inBlockQuote);let m=Tp(e,r,a);return r.inline=o,r.inList=u,r.inBlockQuote=f,m}function $s(e,r,a,l,o){return Rc(l,!0,()=>Mi(e,r,a,l,o))}function Ws(e,r,a,l){var o=e[r];if(o===void 0)return null;var u=r,f=null,m=o,d=null,p=ie(o),v=p===Re||p===Ze;if(v){if(d=Se(e,r),f=tt(e,r,d),u=r+f.charCount,u>=e.length)return Nu(e,r);m=e[u]}var y=f?f.spaceEquivalent:0;if(y>=4)return v?Nu(e,r):null;var b=ie(m);if(b===ti){var S=b_(e,r,a,l);if(S)return S}else{if(b===Cc)return cc(e,r);if(b===Ca||b===mp||b===o3){var E=cc(e,r);if(E)return E;var T=Tm(e,r,a,l);if(T)return T}else if(b>=tc&&b<=nc){var T=Tm(e,r,a,l);if(T)return T}else{if(b===$u)return Z3(e,u,a,l);if(b===Di)return Cl(e,u,a,l,u+1<e.length&&ie(e,u+1)===Ku);if(b===Oc&&!l.disableParsingRawHTML)return Nc(e,u,a,l);if(b===Cr||b===Ks){if(d||(d=Se(e,r)),f||(f=tt(e,r,d)),f.spaceEquivalent<=3)return xp(e,u,a,l)}else if(b===u3)return $3(e,r,a,l)}}return v?Nu(e,r):null}function Tp(e,r,a){let l=[],o=0;for(;o<e.length;){for(;o<e.length&&e[o]===`
55
- `;)o++;if(o>=e.length)break;var u=e[o];if(r.inList&&l.length>0){var f=l[l.length-1];if(f?.type===F.paragraph){var m=f,d=ie(u);if(d===Ca||d===wl||d===Re||d===Ze){var p=Se(e,o),v=e.slice(o,p),y=tt(e,o,p);if(y.spaceEquivalent<4){var b=v.slice(y.charCount).trim();if(E_(l,b,a)){o=p+(p<e.length&&e[p]===`
56
- `?1:0);continue}}}}}var S=Ws(e,o,r,a);if(S){l.push(S),o=S.endPos;continue}var E=v_(e,o,r,a);if(E){l.push(E),o=E.endPos;continue}var T=e.slice(o).trim();if(T){if(r.inBlockQuote&&l.length>0){let C=function(B){if(B.type===F.blockQuote){var R=B;if(R.children&&R.children.length>0){var j=R.children[R.children.length-1];if(j.type===F.paragraph)return j}}else if(B.type===F.orderedList||B.type===F.unorderedList){var k=B;if(k.items&&k.items.length>0){var K=k.items[k.items.length-1];if(K&&K.length>0){var G=K[K.length-1],$=C(G);if($)return $}}}return null};for(var w=l.length-1;w>=0;w--){var m=C(l[w]);if(m){var A=_m(e,o,r,a);if(A){var O=A;m.children&&O.children&&m.children.push({type:F.text,text:`
57
- `},...O.children),o=A.endPos;continue}}}}var A=_m(e,o,r,a);if(A){l.push(A),o=A.endPos;continue}}o++}return l}function Z3(e,r,a,l){if(a.inline)return null;let o=Se(e,r),u=tt(e,r,o,3);if(u.spaceEquivalent>3&&!a.inList)return null;var f=r+u.charCount;if(f>=e.length||e[f]!=="#")return null;let m=Sl(e,f,"#",6);if(f+=m,f>=e.length)return null;let d=e[f];if(d===`
58
- `||d==="\r"){let S=Se(e,f);return{...sc(m,[],"",l.slugify),endPos:S+(S<e.length?1:0)}}if(d!==" "&&d!==" ")return null;let p=f,v=Se(e,p);var y=e.slice(p,v).replace(C3,"").trim();let b=$s(y,0,y.length,a,l);return{...sc(m,b,y,l.slugify),endPos:v+(v<e.length?1:0)}}function v_(e,r,a,l){if(a.inline||a.inBlockQuote||a.inList)return null;let o=Se(e,r);if(o>=e.length)return null;let u=o+1,f=-1,m=null;for(var d=0;u<e.length&&d<10;d++){let $=Se(e,u);if($>=e.length)break;for(var p=u;p<$&&(ie(e,p)===Re||ie(e,p)===Ze||ie(e,p)===In);)p++;if(p>=$)break;for(var v=0,y=u;y<$&&v<3&&ie(e,y)===Re;)v++,y++;if(y<$){let Z=ie(e,y);if(Z===wl||Z===Ca){let J=e[y];for(var b=0,S=!1,E=y;E<$;){let se=ie(e,E);if(se===Z){if(S){b=0;break}b++}else if(se===Re||se===Ze)S=!0;else{b=0;break}E++}if(b>=1){f=$,m=J;break}}}u=$+1}if(!m)return null;let T=ie(e,r);if(T===$u||T===ti||e[r]==="|")return null;let w=r;for(var O=r,A=!1;O<u;){let $=Se(e,O);if($>=u)break;for(var C=O;C<$&&(ie(e,C)===Re||ie(e,C)===Ze||ie(e,C)===In);)C++;C<$&&(A=!0,w=$),O=$+1}if(!A)return null;let B=e.slice(r,w);for(var R=0,j=B.length;R<j&&(B.charCodeAt(R)===Re||B.charCodeAt(R)===Ze||B.charCodeAt(R)===In||B.charCodeAt(R)===Bt);)R++;for(;j>R&&(B.charCodeAt(j-1)===Re||B.charCodeAt(j-1)===Ze||B.charCodeAt(j-1)===In||B.charCodeAt(j-1)===Bt);)j--;let k=B.slice(R,j);if(!k)return null;let K=m==="="?1:2,G=$s(k,0,k.length,a,l);return{...sc(K,G,k,l.slugify),endPos:f+(f<e.length?1:0)}}function _m(e,r,a,l){if(a.inline)return null;let o=r,u=e.length;for(;o<u;){let de=Se(e,o),ge=!0;for(let Oe=o;Oe<de;Oe++){let ht=ie(e,Oe);if(ht!==Re&&ht!==Ze&&ht!==In){ge=!1;break}}if(ge){o=de;break}if(de>=u){o=u;break}let Ee=de+1;if(Ee>=u){o=u;break}let xe=Se(e,Ee),je=!0,wt="";for(let Oe=Ee;Oe<xe;Oe++){let ht=ie(e,Oe);if(ht!==Re&&ht!==Ze&&ht!==In){je=!1,wt===""&&(wt=e[Oe]);break}}if(je){o=de;break}let Ae=!1,yt=tt(e,Ee,xe),Ot=yt.spaceEquivalent===4&&yt.charCount===4;if(wt==="<"&&!Ot&&!l.disableParsingRawHTML){let Oe=Ee,ht=0;for(;Oe<xe&&ht<3;){let on=ie(e,Oe);if(on===Re||on===Ze)ht++,Oe++;else break}if(Oe<xe&&e[Oe]==="<"){var f=Nc(e,Oe,{...a,inline:!1},l);f&&(Ae=!("canInterruptParagraph"in f)||f.canInterruptParagraph)}}if(Ot)Ae=!1;else if(!Ae&&wt&&Fs(wt))if(wt==="["){let Oe=Ee;Oe+1>=u||e[Oe+1]!=="^"?Ae=!1:Ae=!0}else if(wt==="*"||wt==="+")if(cc(e,Ee))Ae=!0;else{let Oe=Ee+1<u?e[Ee+1]:"";Oe&&xn(Oe)?Ae=!0:Ae=!1}else{let Oe=Ws(e,Ee,a,l);Oe&&(Oe.type===F.codeBlock?tt(e,Ee,xe).spaceEquivalent>=4?Ae=!1:Ae=!0:Oe.type===F.unorderedList||Oe.type===F.orderedList?Oe.type===F.orderedList?Ae=Oe.start===1:Ae=!0:wt==="-"?(o>r,Ae=!0):Oe.type===F.ref?Ae=!1:Ae=!0)}if(Ae){o=de;break}o=de+1}if(o<=r)return null;for(var m=r,d=o;m<d;){let de=ie(e,m);if(de===Re||de===Ze)m++;else break}let p=Se(e,m);var v=d>p,y;if(!v)y=e.slice(m,d);else{for(var b=[],S=m,E=0;S<d;){var T=Se(e,S);if(T>d&&(T=d),E===0)b.push(e.slice(S,T));else{for(var w=0;w<4&&S+w<T&&ie(e,S+w)===Re;)w++;var O=w===4?S+4:S;b.push(e.slice(O,T))}T<d&&ie(e,T)===Bt?(b.push(`
59
- `),S=T+1):S=d,E++}y=b.join("")}for(var A=y.length;A>0;){var C=y.charCodeAt(A-1);if(C===Re||C===Ze)A--;else break}A<y.length&&(y=y.slice(0,A));let B=!1;for(let de=0;de<y.length;de++){let ge=y.charCodeAt(de);if(ge!==Re&&ge!==Ze&&ge!==Bt&&ge!==In){B=!0;break}}if(!B)return null;for(var R=y,j=o,k=-1,K=o-1;K>=m;){if(ie(e,K)===Bt){k=K;break}K--}if(k>=0){for(var G=!1,$=m;$<k;$++){let de=ie(e,$);if(de!==Re&&de!==Ze&&de!==Bt&&de!==In){G=!0;break}}if(!G){for(var Z=k+1;Z<e.length;){let de=ie(e,Z);if(de===Re||de===Ze)Z++;else break}var J=Z-(k+1);if(J<4&&Z<e.length&&e[Z]==="["){var se={...a,inline:!1},fe=Cl(e,Z,se,l,!1);if(fe){for(var he=0,K=m;K<=k;){let ge=e.indexOf(`
60
- `,K);if(ge===-1||ge>k)break;he++,K=ge+1}var U=0,ae=0;for(K=0;K<y.length;){let ge=y.indexOf(`
61
- `,K);if(ge===-1)break;if(ae++,ae===he){U=ge+1;break}K=ge+1}U>0&&(R=y.slice(0,U-1)),j=fe.endPos,a.refs=se.refs}}}}let X=$s(R,0,R.length,a,l);var be={type:F.paragraph,children:X,endPos:j};if(X.length>0){for(var pe=[],N=X.length-1;N>=0;N--){var Y=X[N];if(Y.type===F.htmlSelfClosing&&Y.isClosingTag===!0)pe.push(N);else if(Y.type===F.text){var ee=Y;if(ee.text&&ee.text.trim().length>0)break}else break}if(pe.length>=3){var ue=pe[pe.length-1],ne=X.slice(ue+1);X.splice(ue+1),be.removedClosingTags=ne}}return be}function Y3(e,r){if(r!==0)return null;let a=m3(e);return a?.hasValidYaml?{type:F.frontmatter,text:e.slice(0,a.endPos-1),endPos:a.endPos}:null}function cc(e,r,a,l){let o=Se(e,r),u=tt(e,r,o,3);if(u.spaceEquivalent>3)return null;var f=r+u.charCount;if(f>=o)return null;let m=e[f];if(m!=="-"&&m!=="*"&&m!=="_")return null;for(var d=0,p=f;p<o;){var v=e[p];if(v===m)d++;else if(v!==" "&&v!==" ")return null;p++}return d<3?null:{type:F.breakThematic,endPos:et(e,o)}}function tt(e,r,a,l){let o=0,u=0,f=r;for(;f<a;){var m=ie(e,f);if(m!==Re&&m!==Ze||l!==void 0&&o>=l)break;m===Ze?o+=4-o%4:o+=1,u++,f++}return{spaceEquivalent:o,charCount:u}}function Dy(e,r,a,l){let o=0,u=0,f=l;for(let y=r;y<a&&u<4;y++){var m=ie(e,y);if(m===Ze){let b=4-f%4;if(u+=b,o++,f+=b,u>=4)break}else if(m===Re){if(u++,o++,f++,u>=4)break}else break}let d=e.slice(r+o,a);for(var p=0,v=r;v<a&&(e[v]===" "&&p++,!(p>=2));v++);return p>=2&&mt(d," ")&&l>0&&(d=" "+d.slice(1)),d}function Nu(e,r,a){let l=Se(e,r),o=tt(e,r,l);if(o.spaceEquivalent<4)return null;let u=o.spaceEquivalent,f=Se(e,r+o.charCount),m=r,d=0;for(var p=m-1;p>=0&&e[p]!==`
62
- `&&e[p]!=="\r";)p--;for(p++;p<m;)e[p]===" "?d=d+4-d%4:d++,p++;let v=Dy(e,m,f,d),y=et(e,f);if(y>=e.length)return v.trim()?{type:F.codeBlock,text:v,endPos:y}:null;var b=[];b.push(v);let S=y;for(;S<e.length;){let T=Se(e,S);if(Ir(e,S,T)){let w=T+1;if(w<e.length){let O=Se(e,w),A=tt(e,w,O),C=e[w+A.charCount];if(C&&C!==`
63
- `&&(A.spaceEquivalent<4||C===">"&&A.spaceEquivalent<u))break}b.push(`
64
- `)}else{if(tt(e,S,T).spaceEquivalent<4)break;let w=Dy(e,S,T,0);b.push(`
65
- `),b.push(w)}S=et(e,T)}let E=b.join("");return E=E.replace(B3,""),E.trim()?{type:F.codeBlock,text:E,endPos:S}:null}function xp(e,r,a,l){let o=e[r];if(o!=="`"&&o!=="~")return null;let u=Sl(e,r,o);if(u<3)return null;let f=r;for(;f>0&&ie(e,f-1)!==Bt;)f--;let m=tt(e,f,r),d=m.spaceEquivalent,p=d;if(d===4&&m.charCount===4&&(d=0,p=4),d>=4)return null;let v=Ln(e,r+u),y=Se(e,v),b=e.slice(v,y).trim();if(o==="`"&&b.indexOf("`")!==-1)return null;b=b.replace(mm,"$1");let S=b.indexOf(" "),E=S>0?b.slice(0,S):b,T=S>0?b.slice(S+1).trim():"",w=T&&/=\s*["']/.test(T)?wi(T,"code","code",l):void 0,O=et(e,y),A=O;for(;A<e.length;){let j=Se(e,A),k=A,K=0;for(;k<j;){let G=ie(e,k);if(G===Re){if(K++,k++,K>=4)break}else if(G===Ze){if(K+=4-K%4,k++,K>=4)break}else break}if(K<4){let G=Sl(e,k,o,j-k);if(G>=u){let $=k+G;for(;$<j;){let Z=ie(e,$);if(Z===Re||Z===Ze)$++;else break}if($===j)break}}else if(p===4&&d===0&&K===4){let G=Sl(e,k,o,j-k);if(G>=u&&Ir(e,k+G,j))break}A=et(e,j)}let C=A>O&&e[A-1]===`
66
- `?A-1:A,B=e.slice(O,C);p&&(B=Sm(B,p));let R=A<e.length?et(e,Se(e,A)):A;return{type:F.codeBlock,text:B,lang:E,attrs:w,endPos:R}}function J3(e,r,a){for(var l=0;l<e.length;l++)if(!vm(e[l])){let u=Ep(e,r,a,{inline:!1,inBlockQuote:!0});for(var o=0;o<u.length;o++){let f=u[o];"endPos"in f&&delete f.endPos}return u}return[]}function b_(e,r,a,l){if(a.inline)return null;let o=r;for(;o<e.length&&(e[o]===" "||e[o]===" ");)o++;if(o>=e.length||e[o]!==">")return null;let u=r;for(var f=[],m=void 0,d=-1,p=!1,v=null,y=null,b=0,S=!1;u<e.length;){let R=Se(e,u),j=u;for(;j<R&&(e[j]===" "||e[j]===" ");)j++;if(j<R&&e[j]===">"){let k=j+1;k<R&&e[k]===" "&&k++;let K=tt(e,k,R).spaceEquivalent>=4,G=!1,$=null,Z=0;if(k<R){let se=e[k];if(se==="`"||se==="~"){let fe=0,he=k;for(;he<R&&e[he]===se&&fe<20;)fe++,he++;fe>=3&&(G=!0,$=se,Z=fe)}}p&&v==="fenced"&&$===y&&Z>=b?(p=!1,v=null,y=null,b=0):(K||G)&&(p=!0,v=K?"indented":"fenced",y=$,b=Z);var E=!K&&!G;if(E){for(var T=k;T<R;T++)if(!vm(e[T])){E=!1;break}}S=E,d===-1&&!E&&(d=f.length);let J=j+1;if(J<R&&e[J]===" "){f.push(" ");let se=4;for(let fe=J+1;fe<R;fe++){let he=e[fe];var w=ie(he);if(w===Ze){let U=4-se%4;U===1?f.push(" "):U===2?f.push(" "):U===3?f.push(" "):f.push(" ".repeat(U)),se+=U}else f.push(he),se++}R<e.length&&f.push(`
67
- `)}else{let se=J;se<R&&e[se]===" "&&se++,f.push(e.slice(se,R)),R<e.length&&f.push(`
68
- `)}}else{for(var O=!0,T=u;T<R;T++)if(!vm(e[T])){O=!1;break}if(O||p)break;if(tt(e,u,R).spaceEquivalent===0){let k=Ws(e,u,a,l);if(k&&k.type!==F.ref&&k.type!==F.codeBlock||S)break}f.push(e.slice(u,R)),R<e.length&&f.push(`
69
- `)}u=et(e,R)}if(u===r)return null;f.length>0&&f[f.length-1]===`
70
- `&&f.pop();let A=f.join("");if(A.length>=4&&A.charCodeAt(0)===Di&&A.charCodeAt(1)===gp){let R=A.indexOf(`]
71
- `,2);R>2&&(m=A.slice(2,R),A=A.slice(R+2))}let C=J3(A,a,l),B={type:F.blockQuote,children:C,endPos:u};return m&&(B.alert=m),B}function Sm(e,r){return e.split(`
72
- `).map(function(a){if(a.length===0)return a;let l=r,o=0,u=0,f=0;for(;u<a.length&&o<l;)if(a[u]===" ")o++,f++,u++;else if(a[u]===" "){let m=4-f%4;if(o+m<=l)o+=m,f+=m,u++;else{let d=l-o,p=Math.max(0,m-d);return" ".repeat(p)+a.slice(u+1)}}else break;return a.slice(u)}).join(`
73
- `)}function Du(e,r,a,l,o=!0){let u=(o?`
74
- `:"")+e,f=$s(u,0,u.length,a,l);r.length>0&&r[r.length-1].type===F.paragraph?r[r.length-1].children.push(...f):r.push(...f)}function Ns(e){return e.some(function(r){return r.type===F.codeBlock||r.type===F.paragraph||r.type===F.blockQuote||r.type===F.orderedList||r.type===F.unorderedList||r.type===F.heading})}function My(e){return!!e.match(_p)}function y_(e){if(e.length===0)return e;var r=e[e.length-1];return(r.type===F.orderedList||r.type===F.unorderedList)&&r.items?.length>0?y_(r.items.slice(-1)[0]):e}function Em(e,r,a,l,o,u,f){if(!mt(o,"["))return null;var m={inline:!1,refs:u.refs||{}},d=Cl(e,r+l.charCount,m,f,!1);return d?d.endPos:null}function Ly(e,r,a,l){return e.length!==1||!a||e[0].length!==0?!1:!!(r||!r&&l.trim()==="")}function By(e,r){var a=e.index||0;return r?a+e[1].length+e[2].length+1:a+e[1].length+1}function fc(e,r,a,l,o){for(var u=0,f=l+o,m=r;m<a&&u<4;){var d=ie(e,m);if(d===Re)u++,f++;else if(d===Ze){var p=4-f%4;if(u+p>4)break;u+=p,f+=p}else break;m++}return{contentStartColumn:f,contentStartPos:m}}function dd(e){var r=e.match(_p);return r?r[1]?{match:[e,r[1],r[2],r[3]],ordered:!0,listItemRegex:pm}:r[4]?{match:[e,r[4],r[5],""],ordered:!0,listItemRegex:pm}:r[6]?{match:[e,r[6],r[7]],ordered:!1,listItemRegex:gm}:r[8]?{match:[e,r[8],""],ordered:!1,listItemRegex:gm}:null:null}function qa(e,r,a,l,o,u,f){if(r.spaceEquivalent!==u)return!1;var m=e.match(f);if(m)return a?m[2]===o:m[1]===l;var d=e.match(_p);return d?a?d[4]&&d[5]===o:d[8]===l:!1}function __(e,r,a,l){for(var o=r,u=a,f=r[0];u<e.length;){var m=Se(e,u),d=e.slice(u,m),p=mt(d," ".repeat(l))?d.slice(l):d;if(mt(p.trim(),f)&&Sl(p.trim(),0,f)>=3)return{content:o,endPos:et(e,m)};o+=`
75
- `+p,u=et(e,m)}return{content:o,endPos:u}}function yu(e,r,a,l,o,u,f,m,d,p,v,y,b){var S=p?void 0:d[1],E=p?d[2]:void 0,T=p?pm:gm,w=v;if(!v)for(var O=et(e,u),A=O;A<e.length;){var C=Se(e,A),B=e.slice(A,C),R=tt(e,A,C),j=R.spaceEquivalent;if(Ir(e,A,C)){var k=et(e,C);if(k<e.length){var K=Se(e,k),G=tt(e,k,K),$=G.spaceEquivalent,se=By(d,p),fe=o+m+se,he=fc(e,fe,u,f,se),U=he.contentStartColumn;if($+1>U){w=!0;break}}break}else if(j<=f){var Z=B.slice(R.charCount),J=Z.match(T);if(J&&(p?J[2]===E:J[1]===S))break}A=et(e,C)}var se=By(d,p),fe=o+m+se,he=fc(e,fe,u,f,se),U=he.contentStartColumn,ae=l,X=et(e,u);if(mt(l,"```")||mt(l,"~~~")){var be=p?d[1].length+d[2].length+1:d[1].length+1,pe=__(e,l,X,be);ae=pe.content,X=pe.endPos}return r.push(S_(ae,w,y,b)),a.push(U),{newCurrentPos:X,itemHasBlankLine:w}}function ky(e,r,a,l,o,u){if(o>l||u.disableParsingRawHTML)return!1;let f=r+a;return f>=e.length||e[f]!=="<"?!1:K3(e,f)}function K3(e,r){if(r>=e.length||e[r]!=="<")return!1;let a=e.length,l=r+1;if(l<a&&e[l]==="/"&&l++,l>=a)return!1;let o=ie(e,l);if(!Ni(o))return!1;for(l++;l<a;){let f=e[l],m=ie(e,l);if(f===">"||f===" "||f===" "||f===`
76
- `||f==="\r"||f==="/")break;if(f==="-"||f==="_"||Ni(m)||m>=48&&m<=57)l++;else return!1}let u=0;for(;l<a;){let f=e[l],m=ie(e,l);if(u===1)f==='"'&&(u=0),l++;else if(u===2)f==="'"&&(u=0),l++;else if(f==='"')u=1,l++;else if(f==="'")u=2,l++;else{if(f===">")return!0;if(f==="/"&&l+1<a&&e[l+1]===">")return!0;if(m===10||m===13)return!1;l++}}return!1}function Hy(e,r,a,l,o,u,f,m,d,p,v,y){let b=l,S=!1;for(;b<e.length;){let E=Se(e,b),T=tt(e,b,E),w=T.spaceEquivalent;if(Ir(e,b,E)){S=!0,b=et(e,E);continue}let O=e.slice(b+T.charCount,E);if(w<=o&&qa(O,T,u,f,m,o,d))break;if(w>=a){if(y&&S){let C=Em(e,b,E,T,O,p,v);if(C){b=C,S=!1;continue}}let A=Mu(e,b,E,T,a-1,a,r,S,p,v,void 0);if(A.processed){b=A.newPos,S=A.wasBlank;continue}}else break}return b}function Uy(e,r,a,l){let o=Ep(e,a,l,{inline:!1,list:!0});if(o.length>0)return!r&&o.length===1&&o[0].type===F.paragraph?o[0].children:o;let u=Rc(a,!0,()=>Mi(e,0,e.length,a,l));return r&&u.length>0?[{type:F.paragraph,children:u}]:u}function S_(e,r,a,l){let o=Q3(e,0);if(!(o&&(o.endPos>=e.length||e[o.endPos]===" ")))return Uy(e,r,a,l);let u=o.endPos<e.length?o.endPos+1:o.endPos,f=e.slice(u),m=Uy(f,r,a,l),d=[o];return o.endPos<e.length&&d.push({type:F.text,text:" "}),d.push(...m),d}function jy(e,r){if(!e[0])return!1;let a=e[0].indexOf(r);if(a===-1)return!1;let l=a+r.length;if(l>=e[0].length)return!1;let o=e[0][l];return o?ie(o)===l3:!1}function E_(e,r,a){if(e.length===0)return!1;let l=e[e.length-1],o=r.trim();if(!mt(o,"=")&&!mt(o,"-")||o.length<1||!/^[=-]+[ \t]*$/.test(o))return!1;let u=[],f="";if(l.type===F.paragraph){let d=l;u=d.children,f=d.children.map(p=>p.type===F.text?p.text:"").join("").trim()}else if(l.type===F.text){let d=[],p=e.length-1;for(;p>=0&&e[p].type===F.text;)d.unshift(e[p]),p--;d.length>0&&(u=d,f=d.map(v=>v.text).join("").trim())}if(!f)return!1;let m=o[0]==="="?1:2;if(l.type===F.paragraph)e.pop();else if(l.type===F.text)for(;e.length>0&&e[e.length-1].type===F.text;)e.pop();return e.push(sc(m,u,f,a.slugify)),!0}function Mu(e,r,a,l,o,u,f,m,d,p,v,y){let b=l.spaceEquivalent,S=e.slice(r+l.charCount,a);if(b>=o+4){let O=Nu(e,r);if(O){let A=O,C=Sm(A.text||"",u);return f.push({...A,text:C}),{processed:!0,newPos:A.endPos,wasBlank:!1}}}let E=b-(u-1);if(b+1>=u&&E<=3){let O=r+l.charCount;if(O<a){let A=e[O];if(A==="`"||A==="~"){let C=xp(e,O,d,p);if(C){let B=C,R=Sm(B.text||"",u-1);return f.push({...B,text:R,endPos:B.endPos}),{processed:!0,newPos:B.endPos,wasBlank:!1}}}}}if(S.length>0&&(S[0]==="-"||S[0]==="*"||S[0]==="+"||S[0]>="0"&&S[0]<="9")&&/^([-*+]|\d{1,9}[.)])\s+/.test(S)){let O=$s(S,0,S.length,d,p);return f.push({type:F.text,text:`
77
- `},...O),{processed:!0,newPos:et(e,a),wasBlank:!1}}let T=A3(e,r,f,S,d,p);if(T!==null)return{processed:!0,newPos:T,wasBlank:!1};let w=Ep(S,d,p,{inline:!1,list:!0});if(w.length>0){if(v&&w[0].type===F.paragraph){let O=w[0];f.push({type:F.text,text:`
78
- `},...O.children),w.length>1&&f.push(...w.slice(1))}else if(!m&&w[0].type===F.paragraph&&f.length>0){let O=f[f.length-1],A=w[0];O.type===F.paragraph?O.children.push({type:F.text,text:`
79
- `},...A.children):O.type===F.heading?f.push(...A.children):Ns(f)?f.push(...w):f.push({type:F.text,text:" "},...A.children),w.length>1&&f.push(...w.slice(1))}else f.push(...w);return{processed:!0,newPos:et(e,a),wasBlank:!1}}if(m){let O=Rc(d,!0,()=>Mi(S,0,S.length,d,p));f.push({type:F.paragraph,children:O})}else Du(S,f,d,p);return{processed:!0,newPos:et(e,a),wasBlank:!1}}function Tm(e,r,a,l){if(a.inline)return null;var o=a.inList;if(a.inList=!0,r>0){var u=ie(e,r-1);if(u!==Bt&&u!==In)return a.inList=o,null}var f=Se(e,r),m=tt(e,r,f);if(m.spaceEquivalent>3&&!a.inList)return a.inList=o,null;var d=e.slice(r,f),p=m.charCount,v=d.slice(p),y=dd(v);if(!y)return a.inList=o,null;var{match:b,ordered:S,listItemRegex:E}=y,T=m.spaceEquivalent,w=S?parseInt(b[1],10):void 0,O=S?b[2]:void 0,A=S?void 0:b[1],C=S?b[3]==="":b[2]==="";function B(He,ce){if(He===0)return!0;var D=ie(e,He-1);if(D!==Bt)return!1;if(!ce)return!0;for(var W=He-2;W>=0;){var le=ie(e,W);if(le!==Re&&le!==Ze)break;W--}return W<0||ie(e,W)===Bt}if(C&&!B(r,!0))return a.inList=o,null;if(S&&w!==1&&!B(r,!1)||!S&&jy(b,A))return null;var R=b.index||0,j=S?R+b[1].length+b[2].length+1:C?R+b[1].length:R+b[1].length+1,k=r+p+j,K=fc(e,k,f,T,j),G=K.contentStartColumn,$=T+R+b[1].length,Z=S?$+b[2].length+1:C?$:$+1,J=[],se=[];function fe(He,ce,D){return D?He>=ce:He>ce}function he(){return J[J.length-1]}function U(){return se[se.length-1]??G}function ae(He,ce){let D=y_(ce),W=a.inList;a.inList=!0;let le=Tm(e,He,a,l);return a.inList=W,le?(D.push(le),le):null}for(var X=et(e,f),be=X,pe=!1;be<e.length;){var N=Se(e,be),Y=e.slice(be,N);if(Y.trim()===""){for(var ee=et(e,N);ee<e.length;){var ue=ie(e,ee);if(ue!==Bt){if(!F3.has(e[ee]))break}ee++}var ne=Se(e,ee),de=e.slice(ee,ne),ge=tt(e,ee,ne),Ee=de.slice(ge.charCount);if(qa(Ee,ge,S,A,O,T,E))pe=!0;else{var xe=Em(e,ee,ne,ge,Ee,a,l);if(xe){for(var je=xe;je<e.length&&ie(e,je)===Bt;)je++;if(je<e.length){var wt=Se(e,je),Ae=e.slice(je,wt),yt=tt(e,je,wt),Ot=Ae.slice(yt.charCount);qa(Ot,yt,S,A,O,T,E)&&(pe=!0)}}}break}var Oe=tt(e,be,N),ht=Y.slice(Oe.charCount),on=dd(ht);if(!on)break;var An=on.match;if(S){if(An[2]!==O)break}else if(An[1]!==A)break;be=et(e,N)}var Pe=S?b[3]:b[2];Pe=Pe.trimStart();for(var Kt=r+p+(b.index||0),Nt=S?Kt+b[1].length+b[2].length:Kt+b[1].length,un=Nt;un<e.length;){var ue=ie(e,un);if(ue!==Re&&ue!==Ze)break;un++}for(var At=0,ct=Nt;ct<f;){var ue=ie(e,ct);if(ue===Ze)At+=4-At%4;else if(ue===Re)At++;else break;ct++}var Bn=!1;if(Nt<e.length&&ie(e,Nt)===Ze){for(var Xt=1,$t=Nt+1;$t<e.length&&ie(e,$t)===Ze;)Xt++,$t++;Xt>=2&&(Pe=" "+Pe,Bn=!0)}S||(C=C&&At===0),At>=4&&!Bn&&(Pe=" ".repeat(At-1)+Pe.trimStart()),Pe.trim();let Qt=pe;if(!pe&&X<e.length)for(var gn=X;gn<e.length;){var vn=Se(e,gn),gr=e.slice(gn,vn);if(Ir(e,gn,vn)){for(var it=et(e,vn);it<e.length;){var bn=Se(e,it);if(Ir(e,it,bn))it=et(e,bn);else break}if(it<e.length){var _t=tt(e,it,e.length),pt=_t.spaceEquivalent;if(pt>=T){for(var $e=e.slice(it,Se(e,it)),nt=$e.slice(_t.charCount).match(E),cn=nt&&(S?nt[2]===O:nt[1]===A),yn=null,zt=X;zt<gn;zt=Se(e,zt)+1){var lt=Se(e,zt),Wt=tt(e,zt,lt),Rt=e.slice(zt,lt).slice(Wt.charCount).match(E),kn=Rt&&Wt.spaceEquivalent>T&&Wt.spaceEquivalent>=G&&(S?Rt[2]===O:Rt[1]===A);if(kn){var Hn=Wt.spaceEquivalent+1,St=S?Hn+Rt[1].length+Rt[2].length+1:Hn+Rt[1].length+1,fn=zt+Wt.charCount+Rt[0].length,vr=fc(e,fn,lt,Hn,St-Hn);yn=vr.contentStartColumn;break}}var Vn=At>=5?Z:G;!cn&&pt>=Vn&&(yn===null||pt+1<yn)&&(Qt=!0)}}break}var br=tt(e,gn,vn),hn=br.spaceEquivalent,dn=gr.slice(br.charCount),qt=dn.match(E),It=qt&&(S?qt[2]===O:qt[1]===A);if(It&&hn<=T)break;gn=et(e,vn)}var We=Pe;if(mt(Pe,"```")||mt(Pe,"~~~")){var Pn=S?b[1].length+b[2].length+1:b[1].length+1,Un=__(e,Pe,X,Pn);We=Un.content,X=Un.endPos}var Ft=!C&&Pe.trim()===""&&At>0&&At<5;if(Ft&&!Qt)for(var r=X;r<e.length;){var f=Se(e,r),d=e.slice(r,f);if(d.trim()==="")break;var m=tt(e,r,f);if(m.spaceEquivalent<Z)break;var v=d.slice(m.charCount);if(m.spaceEquivalent<=T&&qa(v,m,S,A,O,T,E))break;We+=`
80
- `+v,X=r=et(e,f)}if(J.push(S_(We,Qt,a,l)),se.push(G),Qt&&(At>=5||Ft)){let He=he();X=Hy(e,He,Z,X,T,S,A,O,E,a,l,!0)}else if(!Qt){let He=Z-1;for(;X<e.length;){let ce=Se(e,X),D=e.slice(X,ce),W=tt(e,X,ce),le=W.spaceEquivalent,Te=D.slice(W.charCount);if(D.trim()===""||le<=T&&qa(Te,W,S,A,O,T,E)||My(Te)&&le>T||le<He)break;let Ge=he(),me=Mu(e,X,ce,W,He,G,Ge,!1,a,l,!0);if(me.processed)X=me.newPos;else break}}for(var Ne=!1;X<e.length;){let He=Se(e,X),ce=e.slice(X,He),D=tt(e,X,He),W=D.charCount,le=D.spaceEquivalent;if(ce.trim()==="")pe=!0,Ne=!0,X=et(e,He);else if(le<T){let Te=ce.slice(W);if(Te.startsWith("<")&&ky(e,X,W,T,le,l))break;let Ge=Te.trim();if(Ge.length>0&&J.length>0&&!Fs(Ge[0])&&!qa(Te,D,S,A,O,T,E)){let me=he();if(me.length>0){let gt=me[me.length-1];if(gt.type===F.paragraph||gt.type===F.text){Du(Te,me,a,l),Ne=!1,X=et(e,He);continue}}}break}else{let Te=ce.slice(W);if(J.length>0){let De=se[J.length-1]||G;if(le+1>=De&&!qa(Te,D,S,A,O,T,E)){let st=he();if(st.length>0&&E_(st,Te,l)){X=et(e,He);continue}}}if(cc(e,X))break;if(Ne){let De=Em(e,X,He,D,Te,a,l);if(De){X=De,Ne=!1;continue}}if(le<=T){if(Te.startsWith("<")&&ky(e,X,W,T,le,l))break;if(!qa(Te,D,S,A,O,T,E)){if(le===T&&!Ne){let De=Te.trim();if(De.length>0&&!Fs(De[0])){let st=Ws(e,X,a,l);if(st&&st.type!==F.paragraph)break;let at=he();if(at.length>0&&!Ns(at)){Du(Te,at,a,l,!1),Ne=!1,X=et(e,He);continue}}}break}}if(Ly(J,C,Ne,Pe))break;let Ge=dd(Te),me=Ge?Ge.match:null,gt=me&&(S?me[2]===O:me[1]===A);if(gt&&le>3&&Ne)break;if(gt&&le<=T+3){if(le>=4&&Ne)break;if(le===T){let De=S?me[3]:me[2];if(De=De.trimStart(),X=yu(e,J,se,De,X,He,le,W,me,S,pe,a,l).newCurrentPos,Ne=!1,De.trim()===""){let st=J[J.length-1],at=U();X=Hy(e,st,at,X,T,S,A,O,E,a,l)}continue}if(le>T){if(Ne){let Me=S?me[3]:me[2];Me=Me.trimStart(),X=yu(e,J,se,Me,X,He,le,W,me,S,pe,a,l).newCurrentPos,Ne=!1;continue}let De=he(),st=le+1,at=fe(st,U(),Ns(De));if(at){let Me=ae(X,De);if(Me){X=Me.endPos,Ne=!1;continue}}if(!at&&gt){let Me=S?me[3]:me[2];if(Me=Me.trimStart(),!pe){let Ut=et(e,He);for(;Ut<e.length;){let Zt=Se(e,Ut),Fr=e.slice(Ut,Zt),ze=tt(e,Ut,Zt),er=ze.spaceEquivalent;if(Fr.trim()===""){let Sn=et(e,Zt);if(Sn<e.length){let jn=tt(e,Sn,e.length).spaceEquivalent,Vr=le+(S?me[1].length+me[2].length+1:me[1].length+1);if(jn+1>Vr)break}break}else if(er<=T){let Sn=Fr.slice(ze.charCount).match(E);if(Sn&&(S?Sn[2]===O:Sn[1]===A)&&er<=T)break}Ut=et(e,Zt)}}X=yu(e,J,se,Me,X,He,le,W,me,S,pe,a,l).newCurrentPos,Ne=!1;continue}else if(!at&&!gt)break;{let Me=he(),Ut=Me.length===0;if(Ut&&Ly(J,C,Ne,Pe))break;let Zt=Me.some(ze=>ze.type===F.codeBlock||ze.type===F.paragraph||ze.type===F.blockQuote||ze.type===F.orderedList||ze.type===F.unorderedList||ze.type===F.heading),Fr=Ut&&J.length===1?Z:G;if(Zt?le>=Fr:le>Fr){let ze=Mu(e,X,He,D,Fr,G,he(),Ne,a,l,void 0);if(ze.processed){Ne=ze.wasBlank,X=ze.newPos;continue}}else break}}else if(le===T){if(!S&&me&&jy(me,me[1]))break;let De=S?me[3]:me[2];De=De.trimStart(),X=yu(e,J,se,De,X,He,T,W,me,S,pe,a,l).newCurrentPos,Ne=!1}}else if(le>T){let De=he();if(My(Te)){let at=le+1;if(fe(at,U(),Ns(De))){let Me=ae(X,De);if(Me){X=Me.endPos,Ne=!1;continue}}if(le-T>3){let Me=De.length>0?De[De.length-1]:null;if(Me&&(Me.type===F.paragraph||Me.type===F.text)){Du(Te,De,a,l),Ne=!1,X=et(e,He);continue}}else break}else{let at=ae(X,De);if(at){X=at.endPos,Ne=!1;continue}}let st=G;if(Ns(De)?le>=st-1:le>st-1){let at=Mu(e,X,He,D,st-1,G,he(),Ne,a,l,void 0);if(at.processed){Ne=at.wasBlank,X=at.newPos;continue}}else break}else break}}if(pe&&J.length>1&&J[0].length>0&&J[0][0].type!==F.paragraph){for(var rt=1;rt<J.length;rt++)if(J[rt].length>0&&J[rt][0].type===F.paragraph){for(var _n=!1,qn=0;qn<J[0].length;qn++){var mn=J[0][qn].type;if(mn===F.codeBlock||mn===F.heading||mn===F.blockQuote||mn===F.orderedList||mn===F.unorderedList||mn===F.htmlBlock||mn===F.breakThematic){_n=!0;break}}_n||(J[0]=[{type:F.paragraph,children:J[0]}]);break}}let Mr=S?{type:F.orderedList,items:J,ordered:!0,start:w}:{type:F.unorderedList,items:J,ordered:!1};return a.inList=o,{...Mr,endPos:X}}function $3(e,r,a,l){if(a.inline)return null;let o=[],u=r;for(;u<e.length;){let E=Se(e,u);if(Ir(e,u,E))break;let T=e.slice(u,E).trim();if(!(T.indexOf("|")!==-1||o.length>=3&&T&&!Fs(T[0])))break;o.push(T),u=et(e,E)}if(o.length<2)return null;let f=E=>E[0]==="|"&&E[E.length-1]==="|"?E.slice(1,-1):E,m=E=>{let T=[],w="",O=!1;for(let A=0;A<E.length;A++){let C=E[A];C==="\\"&&A+1<E.length&&E[A+1]==="|"?(w+="|",A++):C==="`"?(O=!O,w+=C):C==="|"&&!O?(T.push(w.trim()),w=""):w+=C}return T.push(w.trim()),T},d=m(f(o[0]));if(!d.length)return null;let p=m(f(o[1]));if(p.length!==d.length||p.some(E=>!/^:?-+:?$/.test(E)))return null;let v=p.map(E=>{let T=E[0]===":",w=E[E.length-1]===":";return T&&w?"center":T?"left":w?"right":null}),y=E=>Rc(a,!0,()=>E.map(T=>Mi(T,0,T.length,a,l))),b=y(d),S=o.slice(2).map(E=>{let T=E.indexOf("|")!==-1?m(f(E)):[E.trim()],w=d.length;for(;T.length<w;)T.push("");return T.length=w,y(T)});return{type:F.table,header:b,cells:S,align:v,endPos:u}}var W3=["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"],q3=new Set(["pre","script","style","textarea"]);function Ls(e){return W3.indexOf(e.toLowerCase())!==-1}function Vs(e){return q3.has(e)}function Ir(e,r,a){for(var l=r;l<a;l++){let o=ie(e,l);if(o!==Re&&o!==Ze&&o!==In)return!1}return!0}function Rc(e,r,a){let l=e.inline;e.inline=r;try{return a()}finally{e.inline=l}}function md(e,r,a){for(var l=r;l<a;){var o=Se(e,l);if(Ir(e,l,o))return l;l=o+(o<a?1:0)}return a}function pd(e,r,a){return{type:F.htmlComment,text:e,endPos:r,...a}}function dl(e,r,a,l,o,u,f,m){var d=r;if(m&&m.forceBlock&&r&&!u){var p=new RegExp("^<"+e.toLowerCase()+"(\\s[^>]*)?>$","i");p.test(r.trim())&&(d="")}return{type:F.htmlBlock,tag:e,attrs:l||{},rawAttrs:o,children:[],text:d,noInnerParse:!0,isClosingTag:u,canInterruptParagraph:f,endPos:a}}function Bs(e){let r=d_.test(e),a=h_.test(e),l=M3.test(e);return r||a&&!l}function zy(e,r,a,l,o,u,f,m,d,p){if(!m.inHTML&&!m.inline&&!u_(o,`
81
- `)){let ne=u,de=f.length;for(;ne<de;){let ge=Se(f,ne);if(Ir(f,ne,ge))break;let Ee=f.slice(ne,ge).trim();if(Ee.length>0&&Fs(Ee[0])){let xe=Nc(f,ne,m,p);if(xe){ne=xe.endPos;continue}let je=Al(f,ne);if(je){ne=je.endPos;continue}return null}ne=et(f,ge)}}let v=r,y=Vs(v);var b=!y&&!Ru(r),S=void 0;if(o){var E=o.indexOf(">");if(E!==-1){var T=o.slice(0,E+1);T.indexOf(`
82
- `)!==-1&&(S=T);for(var w=E,O=1;O<E;O++){var A=T[O];if(A===" "||A===" "||A===`
83
- `||A===">"){w=O;break}}a=T.slice(w,E)}}var C=a.replace(/^[\s\n\r\t]+/,""),B=wi(C,r,e,p),R={...B},j=!1,k=!1;if(b&&l.length>0){var K="</"+v,G=l.indexOf(K);if(G>=0){for(var $=G+K.length;$<l.length&&(l[$]===" "||l[$]===" ");)$++;if($<l.length&&l[$]===">"){var Z=l.slice(0,G);Bs(Z)?(l=Z,k=!0):j=!0}}if(!k){var J=l.length-1;if(l[J]===`
84
- `){for(J--;J>=0&&(l[J]===" "||l[J]===" "||l[J]==="\r");)J--;J>=0&&l[J]===`
85
- `&&(j=!0)}}}var se=y||b&&j&&!Bs(l);se&&(l.length>0&&l[0]===`
86
- `&&(l=l.slice(1)),l.length>0&&l[l.length-1]===`
87
- `&&(l=l.slice(0,-1)));let fe=l.match(/^([ \t]*)/),he=fe?fe[1]:"",U=new RegExp(`^${he.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"gm"),ae=l.replace(U,""),X=h_.test(ae),be=d_.test(ae),pe=v==="p",N=f_.test(ae),Y=pe?X:X||be||m.inHTML&&N,ee=[];if(!se&&ae)if(Y||N){let ne={...m,inline:!1,inHTML:!0,inAnchor:m.inAnchor||v==="a"};ee=Tp(ae,ne,p)}else{let ne={...m,inline:!0,inAnchor:m.inAnchor||v==="a"};ee=Mi(ae,0,ae.length,ne,p)}var ue=void 0;return se&&(S!==void 0?ue=S+l:ue=l),{type:F.htmlBlock,tag:se?r:e,attrs:R,rawAttrs:a,children:ee,text:ue,noInnerParse:se,canInterruptParagraph:!0,endPos:u}}function Nc(e,r,a,l){if(e[r]!=="<")return null;if(a.inline,r+1<e.length){if(e[r+1]==="?"){var o=Lu(e,r);if(o&&o.kind==="pi")return pd(o.text||"",o.endPos,{raw:!0})}else if(e[r+1]==="!"){if(r+3<e.length&&e.slice(r,r+4)==="<!--"){a.inline;var u=Lu(e,r);if(u&&u.kind==="comment"){var f=u.text||"",m=!1;return f==="<!-->"?(f="",m=!0):f==="<!--->"?(f="-",m=!0):f.startsWith("<!--")&&f.endsWith("-->")&&(f=f.slice(4,-3)),a.inline,pd(f,u.endPos,{endsWithGreaterThan:m})}}var d=Lu(e,r);if(d&&(d.kind==="declaration"||d.kind==="cdata"))return pd(d.text||"",d.endPos,{raw:!0})}}if(r+1<e.length){let ki=e[r+1];if(ki===" "||ki===`
88
- `||ki===" "||ki==="\r")return null}var p=e.indexOf(">",r+1);if(p!==-1){var v=e.slice(r+1,p),y=v.indexOf(" ")!==-1||v.indexOf(" ")!==-1;if(!y&&(mt(v,"http://")||mt(v,"https://"))||!y&&p_(v))return null}var b=Al(e,r);if(!b&&!a.inline){for(var S=e.length,E=Se(e,r),T=r,w=0;T<E&&w<3&&(e[T]===" "||e[T]===" ");)w++,T++;if(T>=E||e[T]!=="<")return null;if(T+1<E){var Ut=bm(e,T+1);if(Ut){var Zt=Ut.tagName,O=Ls(Zt);if(!O)return null;for(var A=Ut.nextPos,C=!1,B=!1,R="",j=E,k=!1;j<S&&!k;){for(var K=!1;A<j;){var G=e[A];if(B)G===R&&(B=!1,R=""),(G===`
89
- `||G==="\r")&&(C=!0),A++,K=!0;else if(G==='"'||G==="'")B=!0,R=G,A++,K=!0;else if(G===`
90
- `||G==="\r"){C=!0,A++,K=!0;var $=Se(e,A);if($===A)break;j=$}else if(G===">"){A++,k=!0;break}else A++,K=!0}if(k)break;if(!K&&A>=j){var Z=Se(e,j+1);if(Z<=j)break;j=Z}else if(A>=j&&j<S){var Z=Se(e,j+1);if(Z<=j)break;j=Z}else break}if(!C&&k)return null;A>=E&&E<S&&(A=E);var J=O?"type6":"type7",se=A,fe=md(e,E+1,S),he=e.slice(se,fe),U=r+1<e.length&&e[r+1]==="/";if(J==="type7"&&he.trim()===""){var ae=e.slice(r,fe),X=Se(ae,0);X<ae.length&&X++;var be=ae.slice(0,X);return dl(Zt,be,fe,{},void 0,U,!1,l)}var pe=e.slice(r,fe);return dl(Zt,pe,fe,{},void 0,U,J==="type6",l)}}return null}if(!b)return null;if(p!==-1){var N=e.slice(r+1,p);if((mt(N,"http://")||mt(N,"https://"))&&(N.indexOf(" ")!==-1||N.indexOf(" ")!==-1))return null}var Ee=r+(b.isClosing?2:1);if(Ee<e.length){var Y=e[Ee],ee=ie(Y);if((ee>=97&&ee<=122||ee>=65&&ee<=90)&&Ee+1<e.length&&e[Ee+1]===":")return null}if(b.isClosing){var ue=b.attrs.trim();if(ue.length>0)return null;if(!a.inline){for(var S=e.length,E=Se(e,r),se=b.endPos,ne=se;ne<E&&(e[ne]===" "||e[ne]===" "||e[ne]==="\r");)ne++;var de=ne>=E||e[ne]==="<"&&(function(){var Nl=Al(e,ne);return Nl&&Ls(Nl.tagLower)})();if(de){var fe=md(e,E+1,S),he=e.slice(se,fe);he.length>0&&he[0]===`
91
- `&&(he=he.slice(1));let Ra=b.tagLower||b.tagName.toLowerCase();return dl(b.tagName,he,fe,wi(b.whitespaceBeforeAttrs+b.attrs,Ra,b.tagName,l),b.whitespaceBeforeAttrs+b.attrs,!0,!1)}}var ge=e.slice(r,b.endPos);return{type:F.htmlSelfClosing,tag:b.tagName,attrs:{},endPos:b.endPos,isClosingTag:!0,rawText:ge}}var Ee=r+(b.isClosing?2:1);if(Ee<e.length){var xe=e[Ee];if(xe===" "||xe===" "||xe===`
92
- `||xe==="\r")return null}var je=b.tagLower,wt=Ru(b.tagName);let Ae=b.tagName.length>0&&b.tagName[0]>="A"&&b.tagName[0]<="Z";if(b.isSelfClosing||wt&&je!=="a"){if(b.hasNewline&&!Ae||!a.inHTML&&!a.inline&&!Ae)return null;var yt=b.attrs.replace(/\/\s*$/,""),Ot=wi(yt,je,b.tagName,l),ge=a.inline?e.slice(r,b.endPos):void 0;let Gn={type:F.htmlSelfClosing,tag:b.tagName,attrs:Ot,endPos:b.endPos};return ge!==void 0&&(Gn.rawText=ge),Gn}if(a.inline){var Oe=b.attrs.replace(/\/\s*$/,""),ht=b.whitespaceBeforeAttrs+Oe,on=wi(Oe,je,b.tagName,l),An={...on},Pe=b.endPos,Kt=[];if(!Ru(b.tagName)){var Nt=N3(e,b.endPos,je);if(Nt!==null){var un=e.slice(b.endPos,Nt[0]);un&&(a.inHTML&&f_.test(un)||Bs(un)?Kt=Tp(un,{...a,inline:!1,inHTML:!0,inAnchor:a.inAnchor||je==="a"},l):Kt=Mi(un,0,un.length,{...a,inline:!0,inAnchor:a.inAnchor||je==="a"},l)),Pe=Nt[1]}}return{type:F.htmlBlock,tag:b.tagName,attrs:An,rawAttrs:ht,children:Kt,noInnerParse:!1,endPos:Pe}}if(!a.inline){for(var S=e.length,E=Se(e,r),At=b.tagLower,ct=Vs(At),Bn=!ct&&Ls(b.tagName),Xt=!1,$t=r;$t<b.endPos;){if(e[$t]===">"){Xt=!0;break}$t++}for(var ne=b.endPos;ne<E&&(e[ne]===" "||e[ne]===" ");)ne++;var Qt=ne>=E||e[ne]===`
93
- `||e[ne]==="\r"||Bn&&ne<E||!Xt;if(ct&&Xt&&!b.isClosing){var{tagName:gn,endPos:vn,attrs:gr}=b,it=vn;e[it]===`
94
- `&&it++;for(var bn=it,_t=it,pt=1,$e=At.length+1;pt>0;){var nt=e.indexOf("<",it);if(nt===-1){_t=S,it=S;break}var cn=-1,yn=-1;if(e[nt+1]==="/")yn=nt;else if(nt+$e+1<=S&&(e[nt+1]===At[0]||e[nt+1]===gn[0])){var zt=e.substring(nt+1,nt+$e);zt.toLowerCase()===At&&(e[nt+$e]===" "||e[nt+$e]===">")&&(cn=nt)}if(cn===-1&&yn===-1){it=nt+1;continue}if(cn!==-1&&(yn===-1||cn<yn))it=cn+$e+1,pt++;else{for(var lt=yn+2;lt<S;){var Wt=e[lt];if(Wt!==" "&&Wt!==" "&&Wt!==`
95
- `&&Wt!=="\r")break;lt++}if(lt+At.length>S)break;var Rt=e.substring(lt,lt+At.length);if(Rt.toLowerCase()!==At){it=lt;continue}for(lt+=At.length;lt<S;){var kn=e[lt];if(kn!==" "&&kn!==" "&&kn!==`
96
- `&&kn!=="\r")break;lt++}if(lt>=S||e[lt]!==">"){it=lt;continue}var Hn=lt+1,St=Se(e,Hn);_t=St,it=St+1,pt--}}for(var fn=0;it+fn<S&&e[it+fn]===`
97
- `;)fn++;var vr=e.slice(r,it+fn),Vn=e.slice(bn,_t),br=it+fn;return zy(b.tagName,b.tagName,gr,Vn,vr,br,e,a,!1,l)}if(Qt||!Xt){var J=Bn?"type6":"type7",se=b.endPos,fe=md(e,E+1,S);if(J==="type6"&&!b.isClosing){var hn="</"+(b.tagLower||b.tagName.toLowerCase()),dn=e.indexOf(hn,se);if(dn!==-1){for(var qt=dn+hn.length;qt<S&&(e[qt]===" "||e[qt]===" ");)qt++;if(qt<S&&e[qt]===">"){var It=e.slice(se,dn),We=Bs(It);if(We){var Pn=Se(e,qt+1);fe=Pn}}}}var he=e.slice(se,fe),Un=b.whitespaceBeforeAttrs+b.attrs,U=b.isClosing;if(J==="type7"&&he.trim()===""){var Ft=e.slice(r,b.endPos),Ne=Ft.indexOf(`
98
- `)!==-1;if(Ne)return null;var rt=b.endPos,X=Se(e,rt);X<e.length&&X++;var be=e.slice(r,X);return dl(b.tagName,be,fe,{},void 0,U,!1,l)}var _n=b.hasNewline,qn=!Xt;if((_n||qn)&&J==="type7"){var mn=b.endPos,Mr=e.slice(r,mn),He=he,pe=Mr+He;return dl(b.tagName,pe,fe,{},void 0,U,!1,l)}let ta=b.tagLower||b.tagName.toLowerCase();var ce=wi(Un,ta,b.tagName,l),D={...ce};if(J==="type6"){var W=he,le=he.indexOf("</"+ta);if(le>=0){for(var ne=le+2+b.tagName.length;ne<he.length&&(he[ne]===" "||he[ne]===" ");)ne++;ne<he.length&&he[ne]===">"&&(W=he.slice(0,le))}if(Bs(W))return zy(b.tagName,b.tagName,Un,W,e.slice(r,b.endPos),fe,e,a,!1,l)}var Te=he;Te.length>0&&Te[0]===`
99
- `&&(Te=Te.slice(1));for(var Ge=Te.split(`
100
- `),me=1/0,gt=0;gt<Ge.length;gt++){var De=Ge[gt];if(De.trim().length!==0){for(var w=0;w<De.length&&(De[w]===" "||De[w]===" ");)w++;w<me&&(me=w)}}if(me>0&&me<1/0){for(var st=[],at=0;at<Ge.length;at++){var Me=Ge[at];Me.trim().length===0?st.push(Me):st.push(Me.slice(me))}Te=st.join(`
101
- `)}return dl(b.tagName,Te,fe,D,Un,U,J==="type6",l)}}if(a.inline)return null;var Ut=bm(e,r+1);if(!Ut)return null;var Zt=Ut.tagName;if(!Ru(Zt))return null;let Fr=Ut.tagLower;for(var ze=Ut.nextPos,er=e.length;ze<er&&xn(e[ze]);)ze++;for(var Sn=ze;ze<er&&e[ze]!==">";)ze++;if(ze>=er)return null;let jn=e.slice(Sn,ze).trim(),Vr=ze+1;for(;Vr<er&&xn(e[Vr]);)Vr++;let Bc="</"+Fr+">",Li=e.toLowerCase().indexOf(Bc,Vr);if(Li!==-1&&e.slice(Vr,Li).trim())return null;ze++;let qs=ze;for(;ze<er&&xn(e[ze]);)ze++;ze<er&&e[ze]===`
102
- `&&ze++;let Bi=wi(jn,Zt,Zt,l);return{type:F.htmlSelfClosing,tag:Zt,attrs:Bi,endPos:qs}}function eO(e,r){if(e[r]!=="<")return null;var a=e.length,l=!1,o=r+1;r+1<a&&e[r+1]==="/"&&(l=!0,o=r+2);var u=bm(e,o);if(!u)return null;var{tagName:f,tagLower:m,nextPos:d}=u;if(d<a){var p=e[d];if(p===">"||p==="/"){var v=p===">"?d+1:d+2;if(p==="/"&&(d+1>=a||e[d+1]!==">"))return null;var y=p==="/",b=Ls(f),S=!Vs(m)&&!b;return{kind:"tag",tagNameLower:m,tagName:f,isClosing:l,isSelfClosing:y,hasNewline:!1,type6Candidate:b,type7Candidate:S,endPos:v,attrs:"",whitespaceBeforeAttrs:""}}}for(var E=d,T=!1;d<a;){var w=e[d],O=ie(e,d);if(!(w===" "||w===" "))if(O===10||O===13)T=!0;else break;d++}for(var A=e.slice(E,d),C=d,B=0,R=!1,j=!1,k=0;C<a;){var K=e[C],O=ie(e,C);if(k===1){if(K==='"'){if(C+1<a&&e[C+1]==='"')return null;k=0}C++}else if(k===2)K==="'"&&(k=0),C++;else if(K==='"')k=1,C++;else if(K==="'")k=2,C++;else if(K==="{"||K==="}"&&B>0)B+=K==="{"?1:-1,C++;else if(K===">"&&B===0){if(C>d){for(var G=C-1;G>=d;){var $=e[G];if($!==" "&&$!==" ")break;G--}G>=d&&e[G]==="/"&&(R=!0,j=G<C-1)}C++;break}else{if(K==="*"||K==="#"||K==="!"){for(var Z=C+1;Z<a;){var J=e[Z];if(J==="="||J===" "||J===" "||J===`
103
- `||J==="\r"||J===">")break;Z++}if(Z<a&&e[Z]==="=")return null}(O===10||O===13)&&(T=!0),C++}}if(C>a||e[C-1]!==">"||k===1||k===2||B>0||j)return null;var se=C-1;R&&se--;for(var fe=e.slice(d,se),he=R,U=-1,ae=!1,X="",be=!1,pe=0;pe<fe.length;pe++){var w=fe[pe];if(ae)w===X&&(ae=!1,U=pe,X="",be=!1);else if(w==='"'||w==="'")ae=!0,X=w,be=!1;else if(w==="=")be=!0;else if(U!==-1&&pe===U+1){var O=w.charCodeAt(0);if(Ni(O))return null}else{if(be&&!ae&&(w==="*"||w==="#"||w==="!"))return null;xn(w)&&(be=!1)}}var N=Ls(f),Y=!Vs(m)&&!N;return{kind:"tag",tagNameLower:m,tagName:f,isClosing:l,isSelfClosing:he,hasNewline:T,type6Candidate:N,type7Candidate:Y,endPos:C,attrs:fe,whitespaceBeforeAttrs:A}}function Lu(e,r){if(r>=e.length||e[r]!=="<")return null;var a=e.length;if(r+1>=a)return null;var l=e[r+1];if(l==="!"){if(r+4<=a&&e.slice(r,r+4)==="<!--"){var o=r+4;if(o<a&&e[o]===">")return{kind:"comment",hasNewline:!1,endPos:o+1,text:e.slice(r,o+1),raw:!0};if(o+1<a&&e[o]==="-"&&e[o+1]===">")return{kind:"comment",hasNewline:!1,endPos:o+2,text:e.slice(r,o+2),raw:!0};for(;o+2<a;){if(e.slice(o,o+3)==="-->")return{kind:"comment",hasNewline:!1,endPos:o+3,text:e.slice(r,o+3),raw:!0};o++}return null}if(r+9<=a&&e.slice(r,r+9)==="<![CDATA["){for(var o=r+9;o+2<a;){if(e.slice(o,o+3)==="]]>")return{kind:"cdata",hasNewline:!1,endPos:o+3,text:e.slice(r,o+3),raw:!0};o++}return null}if(r+2<a&&Ni(e.charCodeAt(r+2))){for(var o=r+2;o<a&&e[o]!==">";)o++;return o>=a?null:{kind:"declaration",hasNewline:!1,endPos:o+1,text:e.slice(r,o+1),raw:!0}}return null}if(l==="?"){for(var o=r+2;o+1<a;){if(e.slice(o,o+2)==="?>")return{kind:"pi",hasNewline:!1,endPos:o+2,text:e.slice(r,o+2),raw:!0};o++}return null}return eO(e,r)}function tO(e,r,a){let l=e.length,o=r,u=o<l&&e[o]==="<";u&&o++;let f=o,m=f;if(f>=l){if(!u)return null;m=f}else{if(a>0&&f<l&&e[f]===`
104
- `)return null;for(;m<l&&!(u&&e[m]===">");){if(e[m]===`
105
- `){let G=m+1;if(G>=l||G<l&&e[G]===`
106
- `)break;let $=G;for(;$<l&&(e[$]===" "||e[$]===" ");)$++;if($<l&&(e[$]==='"'||e[$]==="'"||e[$]==="(")||$<l&&e[$]==="[")break;if($<l){let Z=e[$];if(Z==="="||Z==="-"||Z==="_"||Z==="*"||Z==="#"||Z===">"||Z==="`"||Z==="~"||Z==="["||Z>="0"&&Z<="9")break;if(Z>="a"&&Z<="z"){let J=$+1;for(;J<l&&J<$+32&&(e[J]>="a"&&e[J]<="z"||e[J]>="A"&&e[J]<="Z"||e[J]>="0"&&e[J]<="9"||e[J]==="+"||e[J]==="."||e[J]==="-");)J++;if(!(J<l&&e[J]===":"))break}}m=$;continue}if(!u&&(e[m]===" "||e[m]===" ")){let G=m+1;for(;G<l&&(e[G]===" "||e[G]===" ");)G++;if(G<l&&(e[G]==='"'||e[G]==="'"||e[G]==="("))break;if(G<l&&e[G]===`
107
- `){let $=G+1;if($<l&&e[$]===`
108
- `)break;let Z=$;for(;Z<l&&(e[Z]===" "||e[Z]===" ");)Z++;if(Z<l&&(e[Z]==='"'||e[Z]==="'"||e[Z]==="("))break}}m++}}if(u&&(m>=l||e[m]!==">"))return null;let d=e.slice(f,m),p=[],v=0;for(let G=0;G<=d.length;G++)if(G===d.length||d[G]===`
109
- `){let $=d.slice(v,G);$=$.trim(),($.length>0||p.length===0)&&p.push($),G<d.length&&p.push(`
110
- `),v=G+1}d=p.join(""),d=d.trim(),o=u?m+1:m;var y=!1;if(o<l&&e[o]===`
111
- `){for(var b=o+1,S=b;S<l&&(e[S]===" "||e[S]===" ");)S++;if(S<l){let G=e[S];if((G==="["||G==="="||G==="-"||G==="_"||G==="*"||G==="#"||G===">"||G==="`"||G==="~"||G>="0"&&G<="9")&&(y=!0),!y&&G!=="="&&G!=="-"){var E=Se(e,S);if(E<l){for(var T=E+1,w=T;w<l&&(e[w]===" "||e[w]===" ");)w++;if(w<l){var O=e[w];(O==="="||O==="-")&&(y=!0)}}}}}if(!y&&o<l&&(e[o]==='"'||e[o]==="'"||e[o]==="("))return null;let A=0;for(;o<l&&!y;){let G=e[o];if(G===`
112
- `){if(A++,A>1)break;o++;var C=o;if(o=Ln(e,o),o<l&&Is(e[o])&&e[o]!==`
113
- `){o=C-1;break}if(o<l){let $=e[o];if($==="["||$==="="||$==="-"||$==="_"||$==="*"||$==="#"||$===">"||$==="`"||$==="~"||$>="0"&&$<="9"){y=!0,o=C-1;break}}}else if(G===" "||G===" ")o++;else{if(Is(G))break;break}}let B,R=o;if(o<l){let G=e[o];if(G==='"'||G==="'"){o++;let $=o,Z=!1,J=!1;for(;o<l&&e[o]!==G;)if(e[o]===`
114
- `){if(J){Z=!0;break}J=!0,o++}else J=!1,e[o]==="\\"&&o+1<l&&o++,o++;if(Z)return null;if(o<l&&e[o]===G){B=e.slice($,o),R=o+1,o=R;for(var j=o;j<l&&(e[j]===" "||e[j]===" ");)j++;if(j<l&&e[j]!==`
115
- `&&e[j]!=="\r")return null;o=j}}else if(G==="("){o++;let $=o,Z=1,J=!1,se=!1;for(;o<l&&Z>0;)if(e[o]===`
116
- `){if(se){J=!0;break}se=!0,o++}else se=!1,e[o]==="\\"&&o+1<l?o++:e[o]==="("?Z++:e[o]===")"&&Z--,o++;if(J)return null;Z===0&&(B=e.slice($,o-1),R=o,o=R)}}if(o=Ln(e,o),o<l&&e[o]!==`
117
- `)for(var k=o;k<l&&e[k]!==`
118
- `;){if(e[k]!==" "&&e[k]!==" ")return null;k++}if(B===void 0&&o<l&&e[o]!==`
119
- `)for(var K=o;K<l&&e[K]!==`
120
- `;){if(e[K]!==" "&&e[K]!==" ")return null;K++}return{endPos:o<l&&e[o]===`
121
- `?o+1:o,target:d,title:B}}function nO(e,r){let a=r,l=a,o=!1;for(;l<e.length;){let E=l===0||e[l-1]===`
122
- `;if(l+1<e.length&&e[l]===`
123
- `&&e[l+1]===`
124
- `&&l>a){let T=l+2;for(;T<e.length&&(e[T]===" "||e[T]===" ");)T++;if(T<e.length&&e[T]!==`
125
- `&&T-(l+2)<4){o=!0;break}}if(E&&mt(e,"[^",l)){let T=l+2;for(;T<e.length&&e[T]!=="]";)T++;if(T<e.length&&e[T]==="]"&&T+1<e.length&&e[T+1]===":")break}l++}let u=l,f=r;var m=[];let d=f,p=0,v=!1;for(;d<u;){let E=d;for(;E<u&&e[E]!==`
126
- `;)E++;if(p===0){let T=E;for(;T>d&&(e[T-1]===" "||e[T-1]===" ");)T--;let w=e.slice(d,T);m.push(w),v=w.length===0}else{let T=0,w=d;for(;w<E&&w<d+4&&e[w]===" ";)T++,w++;let O=!1;for(let C=d;C<E;C++)if(e[C]!==" "&&e[C]!==" "&&e[C]!=="\r"){O=!0;break}let A=!O;T>=4&&v?m.push(e.slice(d,E)):T===4&&!v?m.push(e.slice(d+4,E)):m.push(e.slice(d,E)),v=A}E<u&&e[E]===`
127
- `?(m.push(`
128
- `),d=E+1):d=u,p++}let y=m.join("");o&&(y=y.replace(/\n$/,""));for(var b=y.length;b>0;){var S=y[b-1];if(S===`
129
- `||S===" ")b--;else break}return b<y.length&&(y=y.slice(0,b)),{endPos:l,target:y,title:void 0}}function Cl(e,r,a,l,o){if(e[r]!=="[")return null;var u=r+1<e.length&&e[r+1]==="^";if(o?!u:u)return null;for(var f=r;f>0&&e[f-1]!==`
130
- `;)f--;if(tt(e,f,r).spaceEquivalent>=4||a.inline)return null;var m=r+(o?2:1),d=e.length,p=H3(e,m,d,"]");if(p===-1)return null;var v=e.slice(m,p);if(v.length>999)return null;for(var y=!1,b=!1,S=!1,E=0;E<v.length;E++){var T=v[E];if(T==="\\"&&E+1<v.length){E++;continue}var w=ie(T);w===Di||w===qu?b=!0:w===Bt||w===In?S=!0:w!==Re&&w!==Ze&&(y=!0)}if(!y||b)return null;var O=p+1;if(S){var A=ie(e,m),C=ie(e,p-1);if(A===Bt||A===In||C===Bt||C===In||O>=d||e[O]!==":")return null}else if((O>=d||e[O]!==":")&&(O=Ln(e,O),O<d&&ie(e,O)===Bt&&(O=Ln(e,O+1)),O>=d||e[O]!==":"))return null;O++;for(var B=0;O<d;){var R=ie(e,O);if(R===Bt){if(++B>1)break;O=Ln(e,O+1)}else if(R===Re||R===Ze)O++;else break}let j=o?nO(e,O):tO(e,O,B);if(!j)return null;let k=g_(v),K=a.refs||{},G=o?`^${k}`:k;return K[G]||(K[G]={target:lc(j.target.trim()),title:j.title?lc(j.title):void 0},a.refs=K),{type:o?F.footnote:F.ref,endPos:j.endPos}}function T_(e,r,a){for(var l=[],o=0;o<r.length;){var u=r[o];if(!u||u.type!=="*"&&u.type!=="_"&&u.type!=="~"&&u.type!=="="){o++;continue}if(!u.canClose||!u.active){o++;continue}for(var f=u.type==="*"?0:u.type==="_"?1:u.type==="~"?2:3,m=f*6+u.length%3*2+(u.canOpen?1:0),d=l[m]!==void 0?l[m]:-1,p=-1,v=u.type,y=u.inAnchor,b=u.canOpen,S=u.length,E=S%3,T=o-1;T>d;T--){var w=r[T];if(!(!w||!w.active||w.type!==v||!w.canOpen||w.inAnchor!==y)){var O=w.length;if(!b&&!w.canClose||E===0||(O+S)%3!==0){p=T;break}}}if(p>=0){var A=r[p],O=A.length,C=O>=2&&S>=2,B=C?2:1;if(B>O||B>S){o++;continue}var R=A.nodeIndex,j=u.nodeIndex,k=R+1,K=j,G=e.slice(k,K);if(G.length>0){var $=K-k;e.splice(k,$);for(var Z=0;Z<r.length;Z++)r[Z].nodeIndex>k&&(r[Z].nodeIndex-=$);j>k&&(j-=$)}var J=A.type==="~"?"del":A.type==="="?"mark":C?"strong":"em",se={type:F.textFormatted,tag:J,children:G},fe=e[R];if(!fe||!fe.text){A.active=u.active=!1;continue}var he=fe.text.length<=B;if(he){e.splice(R,1);for(var Z=0;Z<r.length;Z++)r[Z].nodeIndex>R&&r[Z].nodeIndex--;j>R&&j--}else fe.text=fe.text.slice(B);var U=e[j];if(!U||!U.text){A.active=u.active=!1;continue}var ae=U.text.length<=B;if(ae){e.splice(j,1);for(var Z=0;Z<r.length;Z++)r[Z].nodeIndex>j&&r[Z].nodeIndex--}else U.text=U.text.slice(B);var X=he?R<j?j-1:R:R+1;(X<0||X>e.length)&&(X=X<0?0:e.length),e.splice(X,0,se);for(var Z=0;Z<r.length;Z++)r[Z].nodeIndex>=X&&r[Z].nodeIndex++;for(var Z=p+1;Z<o;Z++)r[Z].active=!1;he?A.active=!1:(A.length-=B,A.length===0&&(A.active=!1)),ae?(u.active=!1,o++):(u.length-=B,u.length===0&&(u.active=!1,o++))}else l[m]=o-1,!u.canOpen&&(u.active=!1),o++}for(var be=0,T=0;T<r.length;T++)r[T].active&&(r[be++]=r[T]);r.length=be}function wp(e,r,a){var l=[],o=0,u=-3,f=u;if(r.inline)return Mi(e,0,e.length,r,a);if(o===0&&e.startsWith("---")){var m=Y3(e,o);m&&(l.push(m),o=m.endPos)}for(;o<e.length;){for(;o<e.length&&e[o]===`
131
- `;)o++;if(o>=e.length)break;f=u;let y=e[o],b=Ws(e,o,r,a);if(b){if(b.type===F.codeBlock){var d=y==="`"||y==="~";if(!d&&(y===" "||y===" ")){let A=Se(e,o),C=tt(e,o,A);d=C.spaceEquivalent<=3&&o+C.charCount<e.length&&(e[o+C.charCount]==="`"||e[o+C.charCount]==="~")}}if(b.type===F.htmlComment){l.push(b);let A=o;o=b.endPos;let C=Se(e,A);if(o<C){let B=e.slice(o,C);B.trim().length>0&&l.push({type:F.text,text:B}),o=C,o<e.length&&e[o]===`
132
- `&&o++}continue}if(b.type===F.htmlBlock||b.type===F.htmlSelfClosing){if(!(b.type===F.htmlSelfClosing&&b.isClosingTag===!0&&!r.inline&&!r.inHTML)){l.push(b),o=b.endPos;continue}}else{l.push(b),o=b.endPos;continue}}let S=f!==u?f:o;if(f===u){if(xn(y)){let O=Se(e,o),A=tt(e,o,O),C=o+A.charCount;A.spaceEquivalent<=3&&C<e.length&&e[C]==="["?S=C:S=-1}else y==="["?S=o:S=-1;f=S}if(S>=0&&S+1<e.length&&e[S+1]==="^"&&(S=-1),S>=0){let O=Cl(e,S,r,a,!1);if(O){l.push(O),o=O.endPos;continue}let A=z3(e,S,o===0);if(A.shouldSkip){o=A.newPos;continue}}let E=v_(e,o,r,a);if(E){l.push(E),o=E.endPos;continue}let T=o;if(xn(e[T])){let O=Se(e,o),A=tt(e,o,O);T=o+A.charCount}if(T<e.length&&e[T]==="["&&T+1<e.length&&e[T+1]==="^"){let O=Cl(e,T,r,a,!0);if(O){o=O.endPos;continue}}let w=_m(e,o,r,a);if(w){l.push(w),o=w.endPos;continue}o++}let p=r.refs||{},v={};for(let y in p)v[y]=p[y];return T3(v)?[{type:F.refCollection,refs:v},...l]:l}function x_(e,r,a){var l=0,o=!0;let u=e.length;for(;l<u;){for(var f=0;l<u&&ie(e,l)===Bt;)f++,l++;if(l>=u)break;f>0&&(o=!0);let C=ie(e,l);if(C===Cr||C===Ks){var m=xp(e,l,{},a);if(m){l=m.endPos,o=!0;continue}}for(var d=l,p=0;d<u&&p<4;){let B=ie(e,d);if(B===Re)p++,d++;else if(B===Ze)p+=4-p%4,d++;else break}if(p<4&&d<u&&ie(e,d)===Di&&o)if(d+1<u&&ie(e,d+1)===Ku){o=!1;var O=Se(e,l);l=O>=u?u:O+1;continue}else{var v=Cl(e,d,{inline:!1,refs:r},a,!1);if(v){l=v.endPos,o=!0;continue}var O=Se(e,l),y=e.indexOf(":",d+1);if(y===-1||y>=O){var b=tt(e,l,O);!Ir(e,l,O)&&C!==$u&&C!==ti&&C!==Ca&&C!==wl&&b.spaceEquivalent<4&&(o=!1)}l=O>=u?u:O+1;continue}if(C===ti&&o){for(var S=l,E=[];S<u;){for(var O=Se(e,S),T=S;T<O;){let R=ie(e,T);if(R===Re||R===Ze)T++;else break}if(T>=O||ie(e,T)!==ti)break;var w=T+1;w<O&&(ie(e,w)===Re||ie(e,w)===Ze)&&w++,E.push(e.slice(w,O)),S=O+1}if(E.length){x_(E.join(`
133
- `),r,a),l=S,o=!0;continue}}var O=Se(e,l);if(O>=u)l=u;else{var A=Ir(e,l,O),b=tt(e,l,O);l=O+1,o=C===$u||C===ti||C===Ca||C===wl||A||b.spaceEquivalent>=4}}}var rO=/^\n+/,aO={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 w_(e){var r={};for(var a in e){var l=a.toLowerCase(),o=aO[l];r[o||a]=e[a]}return r}function iO(e){let r=!1;for(let l=0;l<e.length;l++){let o=e.charCodeAt(l);if(o>127||o===Wu||o===Cr){r=!0;break}}if(!r)return e;let a="";for(let l=0;l<e.length;l++){let o=e[l];if(o==="%"&&l+2<e.length&&/[0-9A-Fa-f]/.test(e[l+1])&&/[0-9A-Fa-f]/.test(e[l+2]))a+=e[l]+e[l+1]+e[l+2],l+=2;else if(o.charCodeAt(0)===Wu)a+="%5C";else if(o.charCodeAt(0)===Cr)a+="%60";else{let u=o.charCodeAt(0);a+=u>127?encodeURIComponent(o):o}}return a}function lO(e,r,a,l,o,u,f,m){switch(e.type){case F.blockQuote:{let p={key:a.key};return e.alert&&(p.className="markdown-alert-"+u(e.alert.toLowerCase(),Oi),e.children.unshift({attrs:{},children:[{type:F.text,text:e.alert}],noInnerParse:!0,type:F.htmlBlock,tag:"header"})),l("blockquote",p,r(e.children,a))}case F.breakLine:return l("br",{key:a.key});case F.breakThematic:return l("hr",{key:a.key});case F.frontmatter:return m.preserveFrontmatter?l("pre",{key:a.key},e.text):null;case F.codeBlock:let d=e.lang?bp(e.lang):"";return l("pre",{key:a.key},l("code",{...w_(e.attrs||{}),className:d?`language-${d} lang-${d}`:""},e.text));case F.codeInline:return l("code",{key:a.key},e.text);case F.footnoteReference:return l("a",{key:a.key,href:o(e.target,"a","href")},l("sup",{key:a.key},e.text));case F.gfmTask:return l("input",{checked:e.completed,key:a.key,readOnly:!0,type:"checkbox"});case F.heading:return l(`h${e.level}`,{id:e.id,key:a.key},r(e.children,a));case F.htmlBlock:{let p=e;if(m.tagfilter&&xy(p.tag)){let v;if("rawText"in p&&typeof p.rawText=="string")v=p.rawText;else{let y="";if(p.attrs)for(let[b,S]of Object.entries(p.attrs))S===!0?y+=` ${b}`:S!=null&&S!==!1&&(y+=` ${b}="${String(S)}"`);v=`<${p.tag}${y}>`}return l("span",{key:a.key},v)}if(p.text&&p.noInnerParse){let v=function(A){if(A.type===F.htmlSelfClosing&&"isClosingTag"in A&&A.isClosingTag)return[];if(A.type===F.paragraph){let C=A.children;return C?C.flatMap(v):[]}return A.type===F.text?A.text?.trim()?[A]:[]:A.type===F.htmlBlock&&A.children?[{...A,children:A.children?.flatMap(v)}]:[A]},y=p.tag.toLowerCase(),b=Vs(y),S=/<[a-z][^>]{0,100}>/i.test(p.text),E=/<\/?pre\b/i.test(p.text);if(b&&!S){let A=p.text.replace(new RegExp("\\s*</"+y+">\\s*$","i"),"");return m.tagfilter&&(A=wy(A)),l(e.tag,{key:a.key,...e.attrs},A)}if(E){let A=m.tagfilter?wy(p.text):p.text;return l(e.tag,{key:a.key,...e.attrs,dangerouslySetInnerHTML:{__html:A}})}let T={slugify:A=>u(A,Oi),sanitizer:o,tagfilter:!0},w=p.text.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${p.tag}(\\s[^>]*)?>(\\s*</${p.tag}>)?$`,"i").test(w))return l(e.tag,{key:a.key,...e.attrs});let O=wp(w,{inline:!1,refs:f,inHTML:!1},T);return l(e.tag,{key:a.key,...e.attrs},r(O.flatMap(v),a))}return l(e.tag,{key:a.key,...e.attrs},e.children?r(e.children,a):"")}case F.htmlSelfClosing:{let p=e;if(m.tagfilter&&xy(p.tag)){let v;if("rawText"in p&&typeof p.rawText=="string")v=p.rawText;else{let y="";if(p.attrs)for(let[b,S]of Object.entries(p.attrs))S===!0?y+=` ${b}`:S!=null&&S!==!1&&(y+=` ${b}="${String(S)}"`);v=`<${p.tag}${y} />`}return l("span",{key:a.key},v)}return l(e.tag,{key:a.key,...e.attrs})}case F.image:return l("img",{key:a.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:o(e.target,"img","src")});case F.link:{let p={key:a.key};return e.target!=null&&(p.href=iO(e.target)),e.title&&(p.title=e.title),l("a",p,r(e.children,a))}case F.table:{let p=e;return l("table",{key:a.key},l("thead",null,l("tr",null,p.header.map(function(v,y){return l("th",{key:y,style:p.align[y]==null?{}:{textAlign:p.align[y]}},r(v,a))}))),l("tbody",null,p.cells.map(function(v,y){return l("tr",{key:y},v.map(function(b,S){return l("td",{key:S,style:p.align[S]==null?{}:{textAlign:p.align[S]}},r(b,a))}))})))}case F.text:return e.text;case F.textFormatted:return l(e.tag,{key:a.key},r(e.children,a));case F.orderedList:case F.unorderedList:{let p=e.type===F.orderedList?"ol":"ul";return l(p,{key:a.key,start:e.type===F.orderedList?e.start:void 0},e.items.map(function(v,y){return l("li",{key:y},r(v,a))}))}case F.paragraph:return l("p",{key:a.key},r(e.children,a));case F.ref:return null;default:return null}}var sO=(e,r,a,l,o,u)=>{let f=(p,v,y)=>{let b=()=>lO(p,v,y,r,a,l,o,u);return e?e(b,p,v,y):b()},m=p=>p.map(v=>"text"in v?v.text:""),d=(p,v={})=>{let y=(v.renderDepth||0)+1;if(y>2500)return m(p);v.renderDepth=y;let b=v.key,S=[],E=!1;for(let T=0;T<p.length;T++){v.key=T;let w=f(p[T],d,v),O=typeof w=="string";if(O&&E)S[S.length-1]+=w;else if(w!==null)if(Array.isArray(w))for(let A=0;A<w.length;A++)S.push(w[A]);else S.push(w);E=O}return v.key=b,v.renderDepth=y-1,S};return d},oO=(...e)=>e.filter(Boolean).join(" "),xm=(e,r,a)=>{let l=e,o=r.split("."),u=0;for(;u<o.length&&(l=l?.[o[u]],l!==void 0);)u++;return l||a},uO=(e,r)=>{let a=xm(r,e,void 0);return a?typeof a=="function"||typeof a=="object"&&"render"in a?a:xm(r,`${e}.component`,e):e};function cO(e,r){r.overrides=r.overrides||{};let a=r.slugify||Oi,l=r.sanitizer||s_,o=r.createElement||V.createElement,u=T=>A_(T,{...r,wrapper:null});function f(T,w,...O){let A=xm(r.overrides,`${T}.props`,{}),C=w_(w||{});if(u)for(let[B,R]of Object.entries(C))typeof R=="string"&&R.length>0&&R[0]==="<"&&(O3.test(R)||L3.test(R)||Al(R,0))&&(C[B]=u(R.trim()));return o(uO(T,r.overrides),{...C,...A,className:oO(C?.className,A.className)||void 0},...O)}let m=[];for(let T=0;T<e.length;T++){let w=e[T];if(w.type===F.htmlBlock&&"text"in w&&w.text&&/<\/?pre\b/i.test(w.text)&&T+1<e.length&&e[T+1].type===F.paragraph&&"removedClosingTags"in e[T+1]&&e[T+1].removedClosingTags){let O=function(R){let j="";for(let k of R){let K=k.type;if(K===F.text)j+=k.text;else if(K===F.htmlSelfClosing&&"rawText"in k&&k.rawText)j+=k.rawText;else if(K===F.textFormatted){let G=k,$=G.tag==="em"?"_":G.tag==="strong"?"**":"";j+=$+O(G.children)+$}else"children"in k&&k.children&&(j+=O(k.children))}return j},A=w,C=e[T+1],B=O(C.children);C.removedClosingTags&&(B+=C.removedClosingTags.filter(R=>R.type===F.htmlSelfClosing&&"rawText"in R&&R.rawText&&R.rawText.indexOf(`</${A.tag}>`)===-1).map(R=>R.type===F.htmlSelfClosing&&"rawText"in R&&R.rawText||"").join("")),A.text+=`
134
- `+B,T++}m.push(w)}e=m;let d={...r,slugify:T=>a(T,Oi),sanitizer:l,tagfilter:r.tagfilter!==!1},p=e[0]&&e[0].type===F.refCollection?e[0].refs:{},v=sO(r.renderRule,f,l,a,p,r),y=v(e,{inline:r.forceInline,refs:p}),b=[];for(let T in p)T.charCodeAt(0)===Ku&&b.push({identifier:T,footnote:p[T].target});if(b.length&&y.push(f("footer",{key:"footer"},b.map(function(T){let w=T.identifier.charCodeAt(0)===Ku?T.identifier.slice(1):T.identifier,O=wp(T.footnote,{inline:!0,refs:p},d);return f("div",{id:a(w,Oi),key:T.identifier},w+": ",v(O,{inline:!0,refs:p}))}))),r.wrapper===null)return y;let S=r.wrapper||(r.forceInline?"span":"div"),E;if(y.length>1||r.forceWrapper)E=y;else return y.length===1?y[0]:null;return o(S,{key:"outer",...r.wrapperProps},E)}function A_(e="",r={}){r.overrides=r.overrides||{};let a=r.slugify||Oi,l=r.sanitizer||s_;function o(f){let m=r.forceInline||!r.forceBlock&&!g3.test(f),d={...r,slugify:y=>a(y,Oi),sanitizer:l,tagfilter:r.tagfilter!==!1};m||x_(f,u,d);let p=f;if(!m){let y=p.length;for(;y>0&&(p[y-1]===`
135
- `||p[y-1]==="\r");)y--;p=p.slice(0,y),p=`${p.replace(rO,"")}
136
-
137
- `}let v=wp(m?f:p,{inline:m,refs:u},d);return cO(v,{...d,forceInline:m})}let u={};return o(e)}var fO=({children:e,options:r,...a})=>A_(e??"",{...r,wrapperProps:{...r?.wrapperProps,...a}}),Ea=fO;const hO="_generalConditionsContainer_55hjg_1",dO="_generalConditions_55hjg_1",mO="_generalConditionsHeader_55hjg_15",pO="_generalConditionsBody_55hjg_26",gO="_generalConditionsAccept_55hjg_35",_s={generalConditionsContainer:hO,generalConditions:dO,generalConditionsHeader:mO,generalConditionsBody:pO,generalConditionsAccept:gO},vO=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})}),bO=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})}),yO="general-conditions.header",_O="general-conditions.body",Iy="general-conditions.accept-conditions-note",SO=()=>{const e=Ht(),[r,a]=V.useState(!1),l=()=>a(!r),o=m=>{m.key==="ArrowDown"||m.key==="ArrowRight"?a(!0):m.key==="ArrowUp"||m.key==="ArrowLeft"||m.key==="Escape"?a(!1):(m.key==="Enter"||m.key==="Space"||m.key===" ")&&l()},u=e(yO),f=e(Iy);return _.jsxs("div",{className:oe(_s.generalConditionsContainer,"chat__generalConditions"),children:[!!u?.length&&_.jsxs("div",{className:_s.generalConditions,children:[_.jsxs("div",{role:"button",onClick:l,onKeyDown:o,tabIndex:0,className:oe(_s.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[_.jsx(Ea,{children:u}),r?_.jsx(bO,{}):_.jsx(vO,{})]}),_.jsx("div",{className:oe(_s.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&_.jsx(Ea,{children:e(_O)||""})})]}),!!f?.length&&_.jsx("div",{className:oe(_s.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:_.jsx(Ea,{children:e(Iy)||""})})]})},EO="_messageContainer_1rxi5_1",TO="_message_1rxi5_1",xO="_messageBot_1rxi5_14",wO="_messageBotLast_1rxi5_45",AO="_avatar_1rxi5_45",CO="_messageBotFirst_1rxi5_54",OO="_messageBotAnimated_1rxi5_67",RO="_messageGuest_1rxi5_78",NO="_messageGuestFirst_1rxi5_84",DO="_messageGuestLast_1rxi5_90",MO="_botAvatar_1rxi5_104",LO="_agentAvatar_1rxi5_108",BO="_bubble_1rxi5_112",kO="_bubbleContent_1rxi5_118",HO="_bubbleLeft_1rxi5_132",UO="_leftText_1rxi5_143",jO="_bubbleRight_1rxi5_150",zO="_rightText_1rxi5_160",IO="_sourceInfoReference_1rxi5_192",FO="_sourceInfoReferenceActive_1rxi5_204",Be={messageContainer:EO,message:TO,messageBot:xO,messageBotLast:wO,avatar:AO,messageBotFirst:CO,messageBotAnimated:OO,messageGuest:RO,messageGuestFirst:NO,messageGuestLast:DO,botAvatar:MO,agentAvatar:LO,bubble:BO,bubbleContent:kO,bubbleLeft:HO,leftText:UO,bubbleRight:jO,rightText:zO,sourceInfoReference:IO,sourceInfoReferenceActive:FO},Ap=(e,r)=>{V.useEffect(()=>{const a=l=>{e.current&&!e.current.contains(l.target)&&r()};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[e,r])};var gd,Fy;function Cp(){if(Fy)return gd;Fy=1;function e(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}return gd=e,gd}var vd,Vy;function VO(){if(Vy)return vd;Vy=1;var e=typeof cu=="object"&&cu&&cu.Object===Object&&cu;return vd=e,vd}var bd,Py;function C_(){if(Py)return bd;Py=1;var e=VO(),r=typeof self=="object"&&self&&self.Object===Object&&self,a=e||r||Function("return this")();return bd=a,bd}var yd,Gy;function PO(){if(Gy)return yd;Gy=1;var e=C_(),r=function(){return e.Date.now()};return yd=r,yd}var _d,Xy;function GO(){if(Xy)return _d;Xy=1;var e=/\s/;function r(a){for(var l=a.length;l--&&e.test(a.charAt(l)););return l}return _d=r,_d}var Sd,Qy;function XO(){if(Qy)return Sd;Qy=1;var e=GO(),r=/^\s+/;function a(l){return l&&l.slice(0,e(l)+1).replace(r,"")}return Sd=a,Sd}var Ed,Zy;function O_(){if(Zy)return Ed;Zy=1;var e=C_(),r=e.Symbol;return Ed=r,Ed}var Td,Yy;function QO(){if(Yy)return Td;Yy=1;var e=O_(),r=Object.prototype,a=r.hasOwnProperty,l=r.toString,o=e?e.toStringTag:void 0;function u(f){var m=a.call(f,o),d=f[o];try{f[o]=void 0;var p=!0}catch{}var v=l.call(f);return p&&(m?f[o]=d:delete f[o]),v}return Td=u,Td}var xd,Jy;function ZO(){if(Jy)return xd;Jy=1;var e=Object.prototype,r=e.toString;function a(l){return r.call(l)}return xd=a,xd}var wd,Ky;function YO(){if(Ky)return wd;Ky=1;var e=O_(),r=QO(),a=ZO(),l="[object Null]",o="[object Undefined]",u=e?e.toStringTag:void 0;function f(m){return m==null?m===void 0?o:l:u&&u in Object(m)?r(m):a(m)}return wd=f,wd}var Ad,$y;function JO(){if($y)return Ad;$y=1;function e(r){return r!=null&&typeof r=="object"}return Ad=e,Ad}var Cd,Wy;function KO(){if(Wy)return Cd;Wy=1;var e=YO(),r=JO(),a="[object Symbol]";function l(o){return typeof o=="symbol"||r(o)&&e(o)==a}return Cd=l,Cd}var Od,qy;function $O(){if(qy)return Od;qy=1;var e=XO(),r=Cp(),a=KO(),l=NaN,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,m=parseInt;function d(p){if(typeof p=="number")return p;if(a(p))return l;if(r(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=r(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=e(p);var y=u.test(p);return y||f.test(p)?m(p.slice(2),y?2:8):o.test(p)?l:+p}return Od=d,Od}var Rd,e1;function R_(){if(e1)return Rd;e1=1;var e=Cp(),r=PO(),a=$O(),l="Expected a function",o=Math.max,u=Math.min;function f(m,d,p){var v,y,b,S,E,T,w=0,O=!1,A=!1,C=!0;if(typeof m!="function")throw new TypeError(l);d=a(d)||0,e(p)&&(O=!!p.leading,A="maxWait"in p,b=A?o(a(p.maxWait)||0,d):b,C="trailing"in p?!!p.trailing:C);function B(se){var fe=v,he=y;return v=y=void 0,w=se,S=m.apply(he,fe),S}function R(se){return w=se,E=setTimeout(K,d),O?B(se):S}function j(se){var fe=se-T,he=se-w,U=d-fe;return A?u(U,b-he):U}function k(se){var fe=se-T,he=se-w;return T===void 0||fe>=d||fe<0||A&&he>=b}function K(){var se=r();if(k(se))return G(se);E=setTimeout(K,j(se))}function G(se){return E=void 0,C&&v?B(se):(v=y=void 0,S)}function $(){E!==void 0&&clearTimeout(E),w=0,v=T=y=E=void 0}function Z(){return E===void 0?S:G(r())}function J(){var se=r(),fe=k(se);if(v=arguments,y=this,T=se,fe){if(E===void 0)return R(T);if(A)return clearTimeout(E),E=setTimeout(K,d),B(T)}return E===void 0&&(E=setTimeout(K,d)),S}return J.cancel=$,J.flush=Z,J}return Rd=f,Rd}var WO=R_();const qO=mc(WO),e6="_container_131ib_1",t6="_categoryContainer_131ib_13",n6="_categoryButton_131ib_20",r6="_active_131ib_35",a6="_commentTextarea_131ib_44",Ss={container:e6,categoryContainer:t6,categoryButton:n6,active:r6,commentTextarea:a6},i6=(e,r,a)=>{V.useEffect(()=>{if(e){const l=()=>{const u=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),f=r.current?Array.from(r.current.querySelectorAll(u)):[],m=a.current?Array.from(a.current.querySelectorAll(u)):[];return[...f,...m]},o=u=>{if(u.key==="Tab"){const f=l();if(f.length>0){const m=f[0],d=f[f.length-1],p=document.activeElement;!u.shiftKey&&p===d?(u.preventDefault(),m.focus()):u.shiftKey&&p===m&&(u.preventDefault(),d.focus())}}};return document.addEventListener("keydown",o,!0),()=>{document.removeEventListener("keydown",o,!0)}}},[e,r,a])},l6=({open:e,actionsRef:r,reaction:a,onReaction:l})=>{const o=Ht(),u=V.useRef(null),f=qO(p=>{l({...a,comment:p})},300);V.useEffect(()=>()=>f.flush(),[f]),i6(e,r,u);const m=p=>{l({...a,category:a.category===p?void 0:p})},d=p=>f(p.target.value);return e?_.jsxs("div",{ref:u,className:Ss.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[_.jsx("h2",{id:"bad-reaction-title",children:o("bot-bubble.reaction.say-more")}),_.jsx("div",{className:Ss.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>_.jsx("button",{className:oe(Ss.categoryButton,a?.category===p&&Ss.active),onClick:()=>m(p),"aria-pressed":a?.category===p,"aria-label":o(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:o(`bot-bubble.reaction.category.${p}`)},p))}),_.jsx("textarea",{id:"comment",name:"comment",placeholder:o("bot-bubble.reaction.comment"),defaultValue:a?.comment,onChange:d,className:Ss.commentTextarea,rows:3,"aria-label":o("bot-bubble.reaction.comment")})]}):null},s6="_botMessageActionContainer_18fjb_1",o6="_alwaysVisible_18fjb_15",u6="_active_18fjb_19",c6="_botMessageActionInnerContainer_18fjb_27",f6="_header_18fjb_52",h6="_botMessageActions_18fjb_57",d6="_reported_18fjb_68",m6="_action_18fjb_72",p6="_wave_18fjb_86",g6="_anyReport_18fjb_156",v6="_closeButton_18fjb_172",Gt={botMessageActionContainer:s6,alwaysVisible:o6,active:u6,botMessageActionInnerContainer:c6,header:f6,botMessageActions:h6,reported:d6,action:m6,wave:p6,anyReport:g6,closeButton:v6},b6=({isSubmitting:e,onClick:r})=>{const a=Ht();return _.jsx("button",{className:oe(Gt.action,Gt.closeButton,"tooltip--bottom-left"),"aria-label":a("bot-bubble.reaction.close"),"data-title":a("bot-bubble.reaction.close"),tabIndex:0,onClick:r,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:e?_.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"}):_.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"})})})},y6=({alwaysVisible:e,senderType:r,reaction:a,botMessageRef:l,message:o,animated:u,onReaction:f})=>{const m=Ht(),[d,p]=V.useState(!1),[v,y]=V.useState(!1),[b,S]=V.useState(!1),E=V.useRef(null),T=V.useRef(null);Ap(E,()=>{S(!1)});const w=j=>{j.key==="Escape"&&S(!1)};V.useEffect(()=>(document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}),[]),V.useEffect(()=>{b&&E.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[b]);const O=j=>{T.current&&clearTimeout(T.current),y(!0),f(j),T.current=setTimeout(()=>{y(!1)},1e3)},A=V.useCallback(async()=>{if(l.current)try{p(!0);const j=l.current.innerHTML,k=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([j],{type:"text/html"}),"text/plain":new Blob([k],{type:"text/plain"})})]),await new Promise(K=>setTimeout(K,1500))}finally{p(!1)}},[l]),C=()=>{S(!1),f(a?.type==="GOOD"?null:{type:"GOOD"})},B=()=>{f({...o.reaction,type:"BAD"}),S(!b)},R=j=>k=>{(k.key==="Enter"||k.key===" ")&&j()};return _.jsx("div",{ref:E,className:oe(Gt.botMessageActionContainer,e&&Gt.alwaysVisible,b&&Gt.active),children:_.jsxs("div",{className:oe(Gt.botMessageActionInnerContainer,e&&Gt.alwaysVisible,b&&Gt.active,a&&Gt.reported),role:"group",children:[_.jsxs("div",{className:Gt.header,children:[_.jsxs("div",{className:oe(Gt.botMessageActions,a&&Gt.reported),children:[r===Ju.BOT&&_.jsx("button",{className:oe(Gt.action,u&&Gt.wave,a?.type&&Gt.anyReport,a?.type==="GOOD"&&Gt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":m(a?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":a?.type==="GOOD","data-title":m(a?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:C,onKeyDown:R(C),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:a?.type==="GOOD"?_.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"}):_.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),r===Ju.BOT&&_.jsx("button",{className:oe(Gt.action,u&&Gt.wave,a?.type&&Gt.anyReport,a?.type==="BAD"&&Gt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":m("bot-bubble.reaction.bad"),"aria-pressed":a?.type==="BAD","data-title":m("bot-bubble.reaction.bad"),onPointerDown:B,onKeyDown:R(B),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:a?.type==="BAD"?_.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"}):_.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"})})}),_.jsx("button",{className:oe(Gt.action,u&&Gt.wave,"tooltip--top-right"),style:{visibility:b?"hidden":"visible"},tabIndex:0,"aria-label":m("bot-bubble.copy"),"data-title":m("bot-bubble.copy"),onClick:A,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:d?_.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"}):_.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]}),b&&_.jsx(b6,{isSubmitting:v,onClick:()=>S(!1)})]}),o.reaction&&_.jsx(l6,{open:b,actionsRef:E,reaction:o.reaction,onReaction:O})]})})},N_=V.forwardRef(({message:e,isAnimated:r,isFirstMessage:a,isLastMessage:l,isFirstMessageBySender:o,isLastMessageBySender:u,children:f,onReaction:m},d)=>{const p=Ht(),v=V.useRef(null),y=e.sender.type===wa.BOT;return _.jsxs("li",{ref:d,className:oe(Be.message,Be.messageBot,l&&Be.lastMessage,o&&Be.messageBotFirst,u&&Be.messageBotLast,"chat__bubbleContainer",r&&Be.messageBotAnimated,r&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",o&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[_.jsx("img",{className:oe(Be.avatar,y?Be.botAvatar:Be.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),_.jsxs("div",{className:Be.messageContainer,children:[_.jsx("div",{ref:v,className:oe(Be.bubble,Be.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:_.jsx("div",{className:oe(Be.leftText),children:f})}),m&&_.jsx(y6,{alwaysVisible:l&&u,senderType:e.sender.type,reaction:e.reaction,message:e,botMessageRef:v,animated:a,onReaction:m})]})]})}),_6="_sourceList_1n31h_1",S6="_source_1n31h_1",E6="_label_1n31h_37",Nd={sourceList:_6,source:S6,label:E6},D_=e=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:_.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"})}),M_=e=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:_.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"})}),L_=e=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:_.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"})}),B_=e=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:_.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"})}),T6=({type:e,...r})=>{switch(e){case"WEBSITE":return _.jsx(B_,{...r});case"PDF":return _.jsx(L_,{...r});case"DOCX":return _.jsx(D_,{...r});default:return _.jsx(M_,{...r})}},Op=({sources:e,onLinkClick:r})=>{const a=Ht(),l=u=>()=>{r(u.url)},o=u=>f=>{(f.key==="Enter"||f.key===" ")&&r(u.url)};return e.length?_.jsx("ul",{className:Nd.sourceList,"aria-label":a("bot-bubble.sources"),children:e.map(u=>_.jsx("li",{className:Nd.source,children:_.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${a("bot-bubble.source.open")}: ${u.label}`,onClick:l(u),onKeyDown:o(u),children:[_.jsx(T6,{type:u.type,"aria-hidden":"true"}),_.jsx("div",{className:Nd.label,children:u.label})]})},u.url))}):null},x6="_button_3ui4g_1",w6="_buttonDefault_3ui4g_13",A6="_buttonPrimary_3ui4g_28",Ps={button:x6,buttonDefault:w6,buttonPrimary:A6},Dc=({className:e,children:r,...a})=>_.jsx("button",{className:oe(Ps.button,e),type:"button",role:"button",...a,children:r}),C6="_title_137pi_1",O6="_buttons_137pi_6",R6="_button_137pi_6",N6="_imageContainer_137pi_29",D6="_image_137pi_29",M6="_video_container_137pi_44",L6="_video_137pi_44",B6="_only_137pi_58",mr={title:C6,buttons:O6,button:R6,imageContainer:N6,image:D6,video_container:M6,video:L6,only:B6},k6=({buttons:e,onButtonClick:r})=>_.jsx("div",{className:oe(mr.buttons,"chat__bubbleButtons"),children:e.map((a,l)=>_.jsx(Dc,{className:oe(mr.button,"chat__bubbleButton"),onClick:()=>r(a),children:a.title},l))}),t1="newtab#",k_=({markdown:e,markdownOptions:r={},onLinkClick:a})=>{const l=u=>f=>(f.preventDefault(),u&&a(u),!1),o=({title:u,href:f,children:m})=>f.indexOf(t1)===0?_.jsx("a",{href:f.slice(t1.length),title:u,target:"_blank",rel:"noopener noreferrer",children:m}):_.jsx("a",{onClick:l(f),title:u,href:f,children:m});return _.jsx(Ea,{options:{...r,overrides:{a:o}},children:e})},H6=({text:e,onLinkClick:r})=>e?_.jsx("div",{children:_.jsx(k_,{markdown:e,onLinkClick:r})}):null,U6=({title:e})=>e?_.jsx("h1",{className:mr.title,children:e}):null,j6=({title:e,text:r,buttons:a,onButtonClick:l,onLinkClick:o})=>e?.length||r?.length||a?.length?_.jsxs("div",{className:oe(Be.bubbleContent),children:[_.jsx(U6,{title:e}),_.jsx(H6,{text:r,onLinkClick:o}),_.jsx(k6,{buttons:a,onButtonClick:l})]}):null,z6=({alt:e,imageUrl:r,itemUrl:a,hasBody:l})=>r?a?a.indexOf("youtube.com")>-1?_.jsx("div",{className:mr.video_container,children:_.jsx("iframe",{className:oe(mr.video,{[mr.only]:!l}),title:"Youtube",width:"100%",src:a+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):_.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:_.jsx("div",{className:mr.imageContainer,children:_.jsx("img",{className:oe(mr.image,{[mr.only]:!l}),src:r,alt:e})})}):_.jsx("div",{className:mr.imageContainer,children:_.jsx("img",{className:oe(mr.image,{[mr.only]:!l}),src:r,alt:e})}):null,I6=({title:e,text:r,imageUrl:a,itemUrl:l,buttons:o,sources:u,onButtonClick:f,onLinkClick:m})=>{const d=!!e?.length||!!r?.length||!!o?.length;return _.jsxs("div",{className:oe(mr.detailMessage),children:[_.jsx(z6,{hasBody:d,imageUrl:a,itemUrl:l,alt:e||""}),d&&_.jsx(j6,{title:e,text:r,buttons:o,onLinkClick:m,onButtonClick:f}),_.jsx(Op,{sources:u,onLinkClick:m})]})},F6=V.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:r,children:a},l)=>{const o=Ht();return _.jsx("li",{ref:l,className:oe(Be.message,Be.messageGuest,e&&Be.messageGuestFirst,r&&Be.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:_.jsx("div",{className:oe(Be.bubble,Be.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":o("guest-bubble.label"),children:_.jsx("div",{className:oe(Be.rightText),children:a})})})}),Rp=()=>V.useMemo(()=>ep(),[]),V6="_markdown_nw7vg_1",H_={markdown:V6},_u="source-info-reference",P6=({actionId:e,markdown:r,sources:a,onLinkClick:l})=>{const o=Rp(),u=Oa(),f=G6(),m=jt(v=>{const y=v.chat.sourceInfos;if(y?.type==="loaded"||y?.type==="loading")return y.chunkId}),d=v=>y=>{const b=y.key;(b==="ArrowDown"||b==="ArrowRight"||b==="Enter"||b===" "||b==="Space")&&(y.stopPropagation(),u(py(o,e,v)))},p=v=>()=>{u(py(o,e,v))};return V.useLayoutEffect(()=>{document.querySelectorAll(`.${_u}`).forEach(v=>{const y=v.previousSibling;y&&y.nodeType===Node.TEXT_NODE&&y.textContent?.endsWith(" ")&&y.textContent?.trim().length&&v.classList.add(`${_u}--before-space`);const b=v.nextSibling;b&&b.nodeType===Node.TEXT_NODE&&b.textContent?.startsWith(" ")&&b.textContent?.trim().length&&v.classList.add(`${_u}--after-space`)})},[r]),_.jsxs("div",{className:Be.bubbleContent,children:[_.jsx("div",{className:H_.markdown,children:_.jsx(k_,{markdown:r,onLinkClick:l,markdownOptions:{renderRule(v,y,b,S){if(y.type===F.footnoteReference){const E=y.text===m;return _.jsx("span",{className:oe(Be.sourceInfoReference,E&&Be.sourceInfoReferenceActive,_u),children:_.jsx("a",{type:"button",tabIndex:0,onClick:p(y.text),onKeyDown:d(y.text),children:f(y.text)})},S.key)}return v()}}})}),_.jsx(Op,{sources:a,onLinkClick:l})]})},G6=()=>{const e=[];return a=>{const l=e.indexOf(a);return l>-1?l+1:(e.push(a),e.length)}},X6="_text_gp0s0_1",Q6="_command_gp0s0_5",n1={text:X6,command:Q6},Z6=({text:e,commands:r=[]})=>{const a=r.find(o=>e.startsWith(`/${o}`)),l=a?e.slice(a.length+1):e;return _.jsxs("div",{children:[a&&_.jsxs("code",{className:n1.command,children:["/",a]}),l.split(`
138
- `).map((o,u)=>_.jsxs("span",{className:n1.text,children:[o,_.jsx("br",{})]},u))]})},Y6=({text:e,commands:r,sources:a,onLinkClick:l})=>_.jsxs("div",{className:Be.bubbleContent,children:[_.jsx(Z6,{text:e,commands:r}),_.jsx(Op,{sources:a,onLinkClick:l})]}),J6=V.forwardRef(({message:e,commands:r,isFirstMessage:a,isLastMessage:l,isFirstMessageBySender:o,isLastMessageBySender:u,onReaction:f,onButtonClick:m,onLinkClick:d},p)=>{const v=K6(e._id,e,r,m,d),y=b=>{f(e._id,b)};switch(e.sender.type){case wa.GUEST:return _.jsx(F6,{ref:p,isFirstMessageBySender:o,isLastMessageBySender:u,children:v});default:return _.jsx(N_,{ref:p,message:e,isAnimated:!1,isFirstMessage:a,isLastMessage:l,isFirstMessageBySender:o,isLastMessageBySender:u,onReaction:y,children:v})}}),K6=(e,r,a,l,o)=>{switch(r.type){case _l.TEXT:{const u=r;return _.jsx(Y6,{text:u.text,commands:a,sources:r.sources||[],onLinkClick:o})}case _l.DETAIL:{const u=r;return _.jsx(I6,{title:u.title,text:u.text,imageUrl:u.imageUrl,itemUrl:u.itemUrl,buttons:u.buttons,sources:r.sources||[],onButtonClick:l,onLinkClick:o})}case _l.MARKDOWN:{const u=r;return _.jsx(P6,{actionId:e,markdown:u.markdown,sources:u.sources||[],onLinkClick:o})}}},$6=(e,r)=>e.message._id===r.message._id&&e.message.reaction===r.message.reaction&&e.isFirstMessage===r.isFirstMessage&&e.isLastMessage===r.isLastMessage&&e.isFirstMessageBySender===r.isFirstMessageBySender&&e.isLastMessageBySender===r.isLastMessageBySender,W6=M1.memo(J6,$6),q6="_ticontainer_xg0dn_1",e8="_tiblock_xg0dn_5",t8="_tidot_xg0dn_12",Es={ticontainer:q6,tiblock:e8,tidot:t8},n8=({isTyping:e=!1})=>_.jsx("div",{className:Es.ticontainer,children:_.jsx("div",{className:Es.tiblock,children:e?_.jsxs(_.Fragment,{children:[_.jsx("div",{className:oe(Es.tidot,"chat__typingIndicator")}),_.jsx("div",{className:oe(Es.tidot,"chat__typingIndicator")}),_.jsx("div",{className:oe(Es.tidot,"chat__typingIndicator")})]}):null})}),r8=Object.assign({_id:"typing-indicator"},new bc("",new OA)),a8=({messages:e,isBotTyping:r,commands:a,onTranscriptItemReaction:l,onButtonClick:o,onLinkClick:u})=>{const f=V.useRef(0),m=V.useRef(!0),d=V.useRef(null),p=V.useRef(null),v=V.useRef(null),y=jt(E=>E.settings.enableGeneralConditions);V.useLayoutEffect(()=>{if(e.length&&d.current&&(f.current<e.length||r)){if(p.current){const E=p.current.offsetTop;d.current.scrollTop=E}else if(v.current){const E=v.current.offsetTop;d.current.scrollTop=E}m.current&&(m.current=!1),f.current=e.length}},[e,m,r]);let b;const S=e.length;return _.jsxs("div",{ref:d,className:oe(vy.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&m.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[y&&_.jsx(SO,{}),_.jsxs("ul",{className:vy.messages,children:[e.map((E,T)=>{const w=i8(E,b),O=l8(E,T,e,r);b=E.sender.type;const A=T+1===S,C=T===0,B=E._id||`added-${T}`;return _.jsx(W6,{ref:A?v:null,message:E,commands:a,isFirstMessage:C,isLastMessage:A,isFirstMessageBySender:w,isLastMessageBySender:O,onButtonClick:o,onLinkClick:u,onReaction:l},A&&!r?"last":B)}),r&&_.jsx(N_,{ref:p,message:r8,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:b!==wa.BOT,isLastMessageBySender:!0,children:_.jsx(n8,{isTyping:!0})},"last")]})]})},i8=(e,r)=>!r||r!==e.sender.type,l8=(e,r,a,l)=>{const o=e.sender.type,u=a.length;return r+1===u?!(o===wa.BOT&&l):o!==a.at(r+1)?.sender.type},s8="_bottomSheet_jp8dl_1",o8="_bottomSheetOpen_jp8dl_15",u8="_bottomSheetClose_jp8dl_20",Ta={bottomSheet:s8,bottomSheetOpen:o8,bottomSheetClose:u8},c8="_container_xc2nx_1",r1={container:c8},f8=({contentUrl:e})=>{const r=jt(u=>u.connection.sessionId),[a,l]=V.useState(!1);V.useEffect(()=>{l(u=>u||!!e)},[e]);const o=V.useMemo(()=>{if(e&&r){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",r),u.toString()}else return},[e,r]);return _.jsx("div",{className:oe(r1.container,Ta.bottomSheet,{[Ta.bottomSheetOpen]:!!e,[Ta.bottomSheetClose]:a&&!e}),children:o&&_.jsx("iframe",{title:"Drawer",src:o,className:r1.iframe})})},h8="_container_6tt4m_1",d8={container:h8},m8=({title:e,href:r,children:a})=>_.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:a}),p8=()=>{const r=Ht()("powered-by");return r&&r.length?_.jsx("div",{className:oe(d8.container,"chat__poweredBy"),children:_.jsx(Ea,{options:{overrides:{a:m8}},children:r})}):null},U_=({className:e,children:r,...a})=>_.jsx(Dc,{className:oe(Ps.buttonDefault,e),type:"button",...a,children:r}),hc=({className:e,children:r,...a})=>_.jsx(Dc,{className:oe(Ps.buttonPrimary,e),...a,children:r}),g8="_container_h23mk_1",v8="_formContainer_h23mk_17",b8="_emailInput_h23mk_22",y8="_description_h23mk_52",_8="_actions_h23mk_57",S8="_validationError_h23mk_67",E8="_submitted_h23mk_74",Ei={container:g8,formContainer:v8,emailInput:b8,description:y8,actions:_8,validationError:S8,submitted:E8},T8=({visible:e,onEmailExport:r,onClose:a})=>{const l=Ht(),[o,u]=V.useState(void 0),[f,m]=V.useState(!1),[d,p]=V.useState(void 0),v=V.useRef(null);V.useEffect(()=>{e?(v.current?.focus(),m(!1),u(e)):o===!0&&u(!1)},[e,o]);const y=S=>{S.preventDefault(),d&&d.length>0&&(r(d),m(!0),setTimeout(a,3*1e3))},b=S=>{const E=S.target.value.trim(),T=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(E);p(T?E:"")};return _.jsxs("div",{className:oe(Ei.container,Ta.bottomSheet,{[Ta.bottomSheetOpen]:o===!0,[Ta.bottomSheetClose]:o===!1}),children:[_.jsx("h2",{children:l("export-transcript.email.title")}),_.jsx(Ea,{className:Ei.description,children:l("export-transcript.email.description")||""}),_.jsxs("form",{onSubmit:y,className:Ei.formContainer,children:[_.jsxs("div",{children:[_.jsx("input",{disabled:f,ref:v,type:"email",placeholder:l("export-transcript.email.placeholder"),className:Ei.emailInput,onChange:b}),d?.length===0?_.jsx("div",{className:Ei.validationError,children:l("export-transcript.email.invalid")}):null]}),_.jsxs("div",{className:Ei.actions,children:[_.jsx(U_,{onClick:a,children:l("export-transcript.email.cancel")}),_.jsx(hc,{type:"submit",disabled:f||d===void 0||d.length===0,children:l("export-transcript.email.send")})]})]}),f&&_.jsx("div",{className:Ei.submitted,children:l("export-transcript.email.success")})]})},x8="_inputContainer_fi5ao_1",w8={inputContainer:x8},A8="_blockUserInput_pot9c_1",C8={blockUserInput:A8},O8=({visible:e})=>{const r=Ht();return e?_.jsx("div",{className:oe(C8.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},R8="_commandsDropdown_5ytuv_1",N8="_commands_5ytuv_1",D8="_command_5ytuv_1",M8="_commandActive_5ytuv_46",L8="_commandsSelections_5ytuv_55",Ds={commandsDropdown:R8,commands:N8,command:D8,commandActive:M8,commandsSelections:L8},B8=(e,r,a,l,o)=>{V.useEffect(()=>{const u=f=>{if(e.length)switch(f.key){case"Enter":a(e[r]);break;case"ArrowUp":l(m=>m>0?m-1:e.length-1);break;case"ArrowDown":l(m=>m<e.length-1?m+1:0);break;case"Escape":o([]);break}};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[e,r,a,l,o])},k8=({text:e,commands:r,onSelectCommand:a,onVisibilityChange:l})=>{const o=V.useRef(null),u=Ht(),[f,m]=V.useState([]),[d,p]=V.useState(a1(r)),[v,y]=V.useState(0),b=S=>a(`/${S}`);return Ap(o,()=>m([])),B8(f,v,b,y,m),V.useEffect(()=>{p(a1(r))},[r]),V.useEffect(()=>{const S=e.length||0;S===0||S>d||!e.startsWith("/")?m([]):m(r.filter(H8(e))),y(0)},[r,e,d]),V.useEffect(()=>{l(!!f.length)},[f,l]),f.length?_.jsx("div",{ref:o,className:Ds.commandsDropdown,children:_.jsx("ul",{id:"command-list",className:Ds.commands,role:"listbox",children:f.map((S,E)=>_.jsxs("li",{className:oe([Ds.command,v===E&&Ds.commandActive]),role:"option",onClick:()=>b(S),onMouseOver:()=>y(E),children:[_.jsxs("h1",{children:["/",S]}),_.jsx("p",{children:u(`commands.${S}`)})]},S))})}):null},a1=e=>Math.max(...e.map(r=>r.length+1)),H8=e=>r=>{const a=`/${r}`;return a.startsWith(e)&&a.length>=e.length},i1=3,U8=({commands:e,onSelectCommand:r})=>{const a=Ht(),[l,o]=V.useState(!1),u=p=>()=>{r(`/${p}`),o(!1)},f=()=>{o(!0)},m=()=>{o(!1)},d=l?e:e.slice(0,i1);return _.jsxs("div",{className:Ds.commandsSelections,children:[d.map(p=>_.jsxs("button",{className:"tooltip--top-center","aria-label":a(`commands.${p}`),"data-title":a(`commands.${p}`),tabIndex:0,onClick:u(p),children:["/",p]},p)),d.length<e.length?_.jsx("button",{"aria-label":a("commands.show-more.tooltip"),"data-title":a("commands.show-more.tooltip"),tabIndex:0,onClick:f,children:a("commands.show-more.action")},"show-more"):d.length>i1?_.jsx("button",{"aria-label":a("commands.show-less.tooltip"),"data-title":a("commands.show-less.tooltip"),tabIndex:0,onClick:m,children:a("commands.show-less.action")},"show-less"):null]})},j8="_callToActionContainer_d8izj_1",z8="_callToActionTitle_d8izj_23",I8="_rateOverlay_d8izj_30",F8="_body_d8izj_52",V8="_footer_d8izj_60",P8="_actions_d8izj_75",G8="_bubbles_d8izj_89",X8="_stars_d8izj_191",Q8="_starsSmall_d8izj_205",Z8="_starsLarge_d8izj_211",Y8="_star_d8izj_191",J8="_starReadonly_d8izj_225",K8="_starIcon_d8izj_235",$8="_starsDescriptionContainer_d8izj_253",W8="_starsDescription_d8izj_253",Yn={callToActionContainer:j8,callToActionTitle:z8,rateOverlay:I8,body:F8,footer:V8,actions:P8,bubbles:G8,stars:X8,starsSmall:Q8,starsLarge:Z8,star:Y8,starReadonly:J8,starIcon:K8,starsDescriptionContainer:$8,starsDescription:W8},q8=({value:e,index:r,count:a,readonly:l,onHover:o,onClick:u})=>{const f=m=>{u&&m.key==="Enter"&&u()};return _.jsx("li",{className:oe(Yn.star,{[Yn.starReadonly]:l},"chat__conversationRating__star"),children:_.jsx("div",{role:"radio","aria-checked":e>r?"true":"false","aria-posinset":r+1,"aria-setsize":a,tabIndex:0,onMouseOver:o,onKeyDown:f,onClick:u,children:_.jsx("span",{role:"img","aria-label":"Star",className:oe(Yn.starIcon),children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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"})})})})})},l1=5,j_=({value:e,size:r,readonly:a=!1,onChange:l})=>{const[o,u]=V.useState(void 0),f=()=>{u(void 0)},m=p=>()=>{if(!a){const v=p+1;u(v)}},d=p=>()=>{l&&!a&&(l(p===0&&e===1?0:p+1),u(void 0))};return _.jsx("ul",{tabIndex:0,role:"radiogroup",className:oe(Yn.stars,{[Yn.starsSmall]:r==="small",[Yn.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:f,children:Array(l1).fill(0).map((p,v)=>_.jsx(q8,{value:o===void 0?e:o,index:v,count:l1,readonly:a,onHover:m(v),onClick:d(v)},v))})},eR=({visible:e,onRate:r})=>{const a=Ht();return e?_.jsxs("div",{className:oe(Yn.callToActionContainer,"chat__conversationRating__callToAction"),children:[_.jsx("div",{className:oe(Yn.callToActionTitle,"chat__conversationRating__callToAction__title"),children:a("conversation-rating.call-to-action.title")}),_.jsx(j_,{value:0,size:"small",onChange:r})]}):null},Dd=({isFirstMessageBySender:e,isLastMessageBySender:r,children:a})=>_.jsxs("div",{className:oe(Be.message,Be.messageBot,e&&Be.messageBotFirst,r&&Be.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[_.jsx("img",{className:oe(Be.avatar,Be.botAvatar),src:"bot.svg",alt:"Bot"}),_.jsx("div",{className:oe(Be.bubble,Be.bubbleLeft,"chat__bubble","chat__botBubble"),children:_.jsx("div",{className:oe(Be.leftText,Be.bubbleContent),children:a})})]}),tR=({children:e})=>_.jsx("div",{className:oe(Be.message,Be.messageGuest,Be.messageGuestFirst,Be.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:_.jsx("div",{className:oe(Be.bubble,Be.bubbleRight,"chat__bubble","chat__guestBubble"),children:_.jsx("div",{className:oe(Be.rightText,Be.bubbleContent),children:e})})}),nR=()=>{const e=Ht(),r=Oa(),a=jt(w=>w.chat.conversationRating),[l,o]=V.useState(a.rating?.value||0),[u,f]=V.useState(void 0),[m,d]=V.useState(void 0),[p,v]=V.useState({submitted:!1,feedback:""}),y=V.useRef(null),[b,S]=V.useState(!1);V.useEffect(()=>{a.opener?(v({submitted:!1,feedback:""}),d(!0)):m===!0&&d(!1)},[a.opener,m]),V.useEffect(()=>{o(a.rating?.value||0)},[a.rating?.value,a.opener]),V.useEffect(()=>{y.current&&(y.current.value=a.rating?.feedback||"")},[a.rating?.feedback]),V.useEffect(()=>{const w=l>0?e(`conversation-rating.overlay.bot-message.rate-feedback.value-${l}`):void 0;f(w?.length?w:void 0)},[l,e]),V.useEffect(()=>{p.submitted?setTimeout(()=>S(!0),p.feedback.length?500:0):S(!1)},[p]);const E=w=>{w.preventDefault();const O=y.current?.value?.trim()||"";r(IA(l,O)),v({submitted:!0,feedback:O})},T=()=>{a.opener==="CLOSE_CHAT"?r(r_()):a.opener==="RESTART_CHAT"?r(Js()):r(GC())};return _.jsx("div",{className:oe(Yn.rateOverlay,Ta.bottomSheet,"chat__conversationRating__overlay",{[Ta.bottomSheetOpen]:m===!0,[Ta.bottomSheetClose]:m===!1}),children:_.jsxs("form",{onSubmit:E,children:[_.jsxs("div",{className:oe(Yn.body,"chat__conversationRating__overlay__body"),children:[_.jsx("div",{}),_.jsx("div",{className:oe(Yn.bubbles),children:a.opener&&_.jsxs(_.Fragment,{children:[_.jsxs(Dd,{isFirstMessageBySender:!0,isLastMessageBySender:!u,children:[_.jsx("h2",{children:e("conversation-rating.overlay.title")}),_.jsxs("div",{className:oe(Yn.starsDescriptionContainer),children:[_.jsx(j_,{value:l,size:"large",readonly:p.submitted,onChange:o}),_.jsxs("div",{className:oe(Yn.starsDescription),children:[_.jsx("div",{children:e("conversation-rating.overlay.star.very-bad")}),_.jsx("div",{children:e("conversation-rating.overlay.star.very-good")})]})]})]}),u&&_.jsx(Dd,{isFirstMessageBySender:!1,isLastMessageBySender:!b||!!p.feedback.length,children:_.jsx("div",{children:u})}),!!p.feedback.length&&_.jsx(tR,{children:p.feedback}),b&&_.jsx(Dd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:_.jsx("div",{children:e("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),_.jsxs("div",{className:oe(Yn.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&_.jsx("input",{ref:y,defaultValue:a.rating?.feedback||"",placeholder:e("conversation-rating.overlay.guest-feedback.input-placeholder")}),_.jsxs("div",{className:oe(Yn.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?_.jsx(hc,{type:"button",disabled:!l,onClick:T,children:a.opener==="CLOSE_CHAT"?e("conversation-rating.overlay.action.close-chat"):a.opener==="RESTART_CHAT"?e("conversation-rating.overlay.action.restart-chat"):e("conversation-rating.overlay.action.back-to-chat")},"close-button"):_.jsx(hc,{type:"submit",disabled:!l,children:e("conversation-rating.overlay.action.submit")},"submit-button"),a.opener!=="CHAT"&&!p.submitted&&_.jsx(U_,{onClick:T,children:a.opener==="CLOSE_CHAT"?e("conversation-rating.overlay.action.close-chat"):a.opener==="RESTART_CHAT"?e("conversation-rating.overlay.action.restart-chat"):e("conversation-rating.overlay.action.cancel")})]})]})]})})},rR=({numberOfMessagesFromGuest:e})=>{const r=Oa(),a=jt(u=>u.chat.conversationRating),l=u=>{r(Yu("CHAT",u))},o=!a.rating?.value&&e>=1;return a.enabled?_.jsxs(_.Fragment,{children:[_.jsx(eR,{visible:o,onRate:l}),_.jsx(nR,{})]}):null},aR=V.memo(rR),iR="_inputWrapper_e3h44_1",lR="_withOpenCommands_e3h44_14",sR="_messageInputWrapper_e3h44_20",oR="_messageInput_e3h44_20",uR="_buttons_e3h44_44",cR="_button_e3h44_44",ml={inputWrapper:iR,withOpenCommands:lR,messageInputWrapper:sR,messageInput:oR,buttons:uR,button:cR},fR="_audioRecorder_g845f_1",hR="_audioButton_g845f_6",dR="_recorderIcon_g845f_37",mR="_spinning_g845f_60",Ti={audioRecorder:fR,audioButton:hR,recorderIcon:dR,spinning:mR},s1=2048,dc=16e3;class pR extends M1.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const a=window.AudioContext||window.webkitAudioContext,l=new a;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(s1,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const a=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(a)),this.recordingLength+=s1}}handleClickSubmitAudio(){const r=vR(this.leftchannel,this.recordingLength),a=bR(r,this.sampleRate||0),l=gR(a);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return _.jsxs("div",{className:Ti.audioRecorder,children:[this.state.recordingState==="none"&&_.jsx("button",{className:oe(Ti.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:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&_.jsxs("svg",{className:Ti.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&_.jsxs("div",{className:Ti.audioRecorder,children:[_.jsx("button",{className:oe(Ti.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),_.jsx("div",{className:Ti.recorderIcon}),_.jsx("button",{className:oe(Ti.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),_.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const gR=e=>{const r=new ArrayBuffer(44+e.length*2),a=new DataView(r);Su(a,0,"RIFF"),a.setUint32(4,44+e.length*2,!0),Su(a,8,"WAVE"),Su(a,12,"fmt "),a.setUint32(16,16,!0),a.setUint16(20,1,!0),a.setUint16(22,1,!0),a.setUint32(24,dc,!0),a.setUint32(28,dc*4,!0),a.setUint16(32,4,!0),a.setUint16(34,16,!0),Su(a,36,"data"),a.setUint32(40,e.length*2,!0);const l=e.length;let o=44;const u=1;for(let f=0;f<l;f++)a.setInt16(o,e[f]*(32767*u),!0),o+=2;return new Blob([a],{type:"audio/wav"})},Su=(e,r,a)=>{for(let l=0;l<a.length;l++)e.setUint8(r+l,a.charCodeAt(l))},vR=(e,r)=>{const a=new Float32Array(r);let l=0;const o=e.length;for(let u=0;u<o;u++){const f=e[u];a.set(f,l),l+=f.length}return a},bR=(e,r)=>{if(dc===r)return e;const a=r/dc,l=Math.round(e.length/a),o=new Float32Array(l);let u=0,f=0;for(;u<o.length;){const m=Math.round((u+1)*a);let d=0,p=0;for(let v=f;v<m&&v<e.length;v++)d+=e[v],p++;o[u]=d/p,u++,f=m}return o},yR=({disabled:e,textInput:r,commandsVisible:a,hasCommands:l,onTextInput:o,onTextInputSubmit:u,onAudioRecorded:f})=>{const m=Ht(),d=V.useRef(null),{enableSpeechSupport:p}=jt(E=>E.settings);V.useEffect(()=>{d.current?.focus()},[r]);const v=()=>{const E=d.current;E&&r.trim().length>=1&&u(r.trim())&&(E.value="",E.style.height="",E.focus())},y=E=>{E.preventDefault(),v()},b=E=>{const T=E.target.value;o(T),E.target.style.height="";const{scrollHeight:w}=E.target;E.target.style.height=`${w>150?150:w}px`},S=E=>{E.code==="Enter"&&!E.shiftKey?(E.repeat||v(),E.preventDefault()):a&&(E.code==="ArrowUp"||E.code==="ArrowDown")&&E.preventDefault()};return _.jsxs("form",{className:oe(ml.inputWrapper,a&&ml.withOpenCommands,"chat__textInput"),onSubmit:y,children:[_.jsx("div",{className:ml.messageInputWrapper,children:_.jsx("textarea",{id:"user_input",ref:d,className:ml.messageInput,tabIndex:0,placeholder:m("message-input-placeholder"),value:r,onChange:b,onKeyDown:S,"aria-label":m("message-input-label"),"aria-controls":l?"command-list":void 0,"aria-haspopup":l?"listbox":void 0})}),_.jsx("div",{className:oe(ml.buttons,"chat__buttons"),children:r.length||!p||navigator.mediaDevices===void 0?_.jsx("button",{className:oe(ml.button,"chat__button"),type:"submit","aria-label":m("message-input.actions.submit.label"),"data-title":m("message-input.actions.submit.label"),tabIndex:0,disabled:e,children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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"})})}):p&&navigator.mediaDevices!==void 0&&_.jsx(pR,{translate:m,onAudioRecorded:f})})]})},_R="_quickReplies_83npe_1",SR="_quickReply_83npe_9",o1={quickReplies:_R,quickReply:SR},ER=({quickReplies:e,onQuickReplyClick:r})=>e.length?_.jsx("div",{className:oe(o1.quickReplies,"chat__quickReplies"),children:e.map(a=>_.jsx(Dc,{tabIndex:0,className:oe(o1.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(a),children:a.label},a.label))}):null,u1=5e3,TR=1e3,xR=({isBotTyping:e,quickReplies:r,numberOfMessagesFromGuest:a,commands:l,onTextInput:o,onQuickReplyClick:u,onAudioRecorded:f})=>{const[m,d]=V.useState(""),[p,v]=V.useState(!1),[y,b]=V.useState(!1),S=V.useRef(0),E=V.useRef(0);V.useEffect(()=>{if(p&&!e){const O=S.current?Date.now()-S.current:0;O>u1?v(!1):setTimeout(()=>{v(!1)},u1-O)}},[p,e]),V.useEffect(()=>{p&&(S.current=Date.now())},[p]);const T=O=>{const A=Date.now()-E.current<TR;return y?!1:e||A?(v(!0),!1):(o(O),d(""),E.current=Date.now(),!0)},w=O=>{d(O+" ")};return _.jsxs("div",{className:oe(w8.inputContainer),children:[_.jsx(ER,{quickReplies:r,onQuickReplyClick:u}),_.jsx(O8,{visible:p}),!p&&_.jsx(aR,{numberOfMessagesFromGuest:a}),!!l?.length&&_.jsx(k8,{text:m,commands:l,onSelectCommand:w,onVisibilityChange:b}),_.jsx(yR,{textInput:m,disabled:p,commandsVisible:y,hasCommands:!!l?.length,onTextInput:d,onTextInputSubmit:T,onAudioRecorded:f}),!!l?.length&&_.jsx(U8,{commands:l,onSelectCommand:d})]})},wR=({clientName:e,messages:r,quickReplies:a,isBotTyping:l,drawerContentUrl:o,onMessageFromUser:u,onQuickReplyClick:f,onButtonClick:m,onLinkClick:d,onAudioRecorded:p,onTranscriptExport:v,onTranscriptItemReaction:y})=>{const b=Oa(),S=jt(B=>B.connection.connectionState),{enableTranscriptExportEmail:E,commands:T}=jt(B=>B.settings),{showTranscriptMailOverlay:w,conversationRating:O}=jt(B=>B.chat),A=r.filter(B=>B.sender.type===Ju.GUEST).length;V.useEffect(()=>{S===Ci.CONNECTED&&b(i_(e))},[e,S,b]);const C=()=>{b(a_())};return _.jsxs("div",{className:od.container,children:[_.jsxs("div",{className:oe([od.chatcontent,(w||O?.opener)&&od.accessabilityHidden]),children:[_.jsx(a8,{messages:r,isBotTyping:l,commands:T,onButtonClick:m,onLinkClick:d,onTranscriptItemReaction:y}),_.jsx(xR,{isBotTyping:l,quickReplies:l?[]:a,numberOfMessagesFromGuest:A,commands:T,onQuickReplyClick:f,onTextInput:u,onAudioRecorded:p}),_.jsx(p8,{})]}),E&&_.jsx(T8,{visible:!!w,onEmailExport:v,onClose:C}),_.jsx(f8,{contentUrl:o})]})},AR=e=>{const{messages:r,quickReplies:a,isBotTyping:l,drawerContentUrl:o}=e.chat;return{messages:r,quickReplies:a,isBotTyping:l,drawerContentUrl:o}},CR=e=>({onRestartChat:()=>e(Js()),onMessageFromUser:r=>e(R2(r)),onAudioRecorded:r=>e(kA(r)),onActionFromUser:r=>e(r),onQuickReplyClick:r=>e(O2(r)),onNluEvent:r=>e(B2(r)),onButtonClick:r=>e(VA(r)),onLinkClick:r=>e(k2(r)),onTranscriptExport:r=>e(UA(r)),onTranscriptItemReaction:(r,a)=>{e(MA(r,a?.type||null,a?.category,a?.comment))}}),OR=Tx(AR,CR)(wR),z_=()=>V.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),RR=e=>r=>{const a=r.key;(a==="ArrowDown"||a==="ArrowRight"||a==="Enter"||a===" "||a==="Space")&&(r.stopPropagation(),e())},NR=({onClick:e})=>{const r=Ht();return z_()?_.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:e,onKeyDown:RR(e),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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},DR="_header_3gvbz_1",MR="_logoContainer_3gvbz_14",LR="_logo_3gvbz_14",BR="_actions_3gvbz_28",kR="_active_3gvbz_43",HR="_menuContainer_3gvbz_56",UR="_menu_3gvbz_56",jR="_divider_3gvbz_86",ni={header:DR,logoContainer:MR,logo:LR,actions:BR,active:kR,menuContainer:HR,menu:UR,divider:jR},zR=({icon:e})=>{switch(e){case"arrow-counter-clockwise":return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:_.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 _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:_.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 _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:_.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 _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:_.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 _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:_.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 _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:_.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 _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:_.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 _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:_.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 _.jsx("div",{})}},IR=V.forwardRef(({selected:e,item:r,onClick:a},l)=>{const o=Ht(),u=f=>{f.preventDefault(),a()};return _.jsx("li",{"aria-selected":e,role:"option",className:r.withDivider?ni.divider:void 0,children:_.jsxs("a",{ref:l,type:"button",role:"button",tabIndex:-1,onClick:u,children:[_.jsx(zR,{icon:r.icon}),_.jsx("span",{children:o(`header.menu.${r.id}`)})]})})}),FR=(e,r)=>{const a=z_(),{menuItems:l,enableStandaloneView:o,enableTranscriptExportPdf:u,enableTranscriptExportEmail:f}=jt(p=>p.settings),m=jt(p=>p.chat.conversationRating.enabled);return V.useMemo(()=>{const p=[],v=l.filter(({visibility:y})=>e?y==="always"||y==="chat-only":y==="always"||y==="start-screen-only");if(e&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),a&&o&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),r&&u&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),r&&f&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),r&&m&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&v.length)){const y=p.pop();y&&l.length&&p.push({...y,withDivider:!0})}return p.push(...v),p},[e,r,u,f,o,m,a,l])},VR=({chatStarted:e,hasGuestMessages:r})=>{const a=Oa(),l=Ht(),{enabled:o,opener:u}=jt(A=>A.chat.conversationRating),[f,m]=V.useState(!1),[d,p]=V.useState(-1),v=V.useRef(null),y=V.useRef(null),b=V.useRef([]),S=FR(e,r);V.useEffect(()=>{b.current[d]?.focus()},[d]);const E=V.useCallback(()=>{a(r&&o&&!u?Yu("RESTART_CHAT"):Js()),m(!1),p(0)},[r,o,u,a]),T=V.useCallback(A=>{switch(A.type){case"restart-chat":E();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":a(jA());break;case"send-transcript":a(a_());break;case"rate-conversation":a(Yu("MENU"));break;case"link":a(k2(A.url));break;case"action":a(JSON.parse(JSON.stringify(A.action)));break}m(!1)},[a,E,m]);V.useEffect(()=>{const A=C=>{if(f)switch(C.key){case"Enter":C.preventDefault(),T(S[d]);break;case"ArrowUp":p(B=>B>0?B-1:S.length-1);break;case"ArrowDown":p(B=>B<S.length-1?B+1:0);break;case"Escape":m(!1);break;case"Tab":d>-1&&m(!1);break}};return document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}},[f,d,S,p,m,T]),V.useEffect(()=>{f||p(-1)},[f,d]),Ap(y,()=>m(!1));const w=()=>{m(A=>!A)},O=()=>{setTimeout(()=>{const A=document.activeElement;y.current&&!y.current.contains(A)&&m(!1)},0)};return S.length?_.jsxs("div",{className:oe(ni.menuContainer),ref:y,children:[_.jsx("button",{ref:v,className:oe(f&&ni.active,f?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":l("header.menu.title"),"data-title":l("header.menu.title"),onClick:w,onBlur:O,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})}),f&&_.jsx("nav",{className:ni.menu,"aria-label":l("header.menu.title"),children:_.jsx("ul",{tabIndex:0,children:S.map((A,C)=>_.jsx(IR,{ref:B=>{b.current[C]=B},selected:d===C,item:A,onClick:()=>T(A)},A.id))})})]}):null},c1=({className:e,chatStarted:r,...a})=>{const l=Oa(),o=jt(m=>m.chat.conversationRating),u=jt(m=>m.chat.messages.some(d=>d.sender.type===wa.GUEST)),f=()=>{o.enabled&&!o.opener&&u?l(Yu("CLOSE_CHAT")):l(r_())};return _.jsxs("div",{className:oe([ni.header,e]),...a,children:[_.jsx("div",{className:ni.logoContainer,children:_.jsx("div",{className:ni.logo})}),_.jsxs("div",{className:ni.actions,children:[_.jsx(VR,{chatStarted:r,hasGuestMessages:u}),_.jsx(NR,{onClick:f})]})]})},PR="_chatwindow_rkbir_1",GR="_chatwindowWithAside_rkbir_21",f1={chatwindow:PR,chatwindowWithAside:GR},I_=()=>{const[e,r]=V.useState(!1);return V.useEffect(()=>{const a=window.matchMedia("(max-width: 1023px)"),l=()=>r(a.matches);return l(),a.addEventListener("change",l),()=>a.removeEventListener("change",l)},[]),e},XR="_sourceInfos_vei0l_1",QR="_waitForLoading_vei0l_24",ZR="_loadingContent_vei0l_28",YR="_sourceHeader_vei0l_37",JR="_sourceHeaderIcon_vei0l_57",KR="_sourceContent_vei0l_61",$R="_openSourceButton_vei0l_69",WR="_sourceButtonLabel_vei0l_79",qR="_closeSourceInfosButton_vei0l_101",eN="_loadingSourceInfos_vei0l_125",tN="_loading_vei0l_28",nN="_loadingError_vei0l_139",rN="_highlightLoadingInfo_vei0l_155",aN="_highlightLoadingInfoInnerContainer_vei0l_169",iN="_highlightLoadingInfoContent_vei0l_178",lN="_highlightLoadingInfoCloseIcon_vei0l_198",sN="_highlightLoader_vei0l_203",oN="_highlightLoaderLoading_vei0l_210",wn={sourceInfos:XR,waitForLoading:QR,loadingContent:ZR,sourceHeader:YR,sourceHeaderIcon:JR,sourceContent:KR,openSourceButton:$R,sourceButtonLabel:WR,closeSourceInfosButton:qR,loadingSourceInfos:eN,loading:tN,loadingError:nN,highlightLoadingInfo:rN,highlightLoadingInfoInnerContainer:aN,highlightLoadingInfoContent:iN,highlightLoadingInfoCloseIcon:lN,highlightLoader:sN,highlightLoaderLoading:oN},uN=({onClick:e})=>{const r=Ht();return _.jsx("button",{className:oe(wn.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:e,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})})},cN=V.forwardRef(({sourceInfos:e,onClose:r,...a},l)=>_.jsxs("div",{className:wn.sourceHeader,...a,ref:l,children:[_.jsx("div",{children:e?_.jsx("p",{id:"source-info-title",children:e.title}):_.jsx("p",{children:" "})}),_.jsx(uN,{onClick:r})]})),fN=({loading:e})=>_.jsx("div",{className:wn.highlightLoader,children:e&&_.jsx("div",{className:wn.highlightLoaderLoading})});const{entries:F_,setPrototypeOf:h1,isFrozen:hN,getPrototypeOf:dN,getOwnPropertyDescriptor:mN}=Object;let{freeze:$n,seal:Rr,create:wm}=Object,{apply:Am,construct:Cm}=typeof Reflect<"u"&&Reflect;$n||($n=function(r){return r});Rr||(Rr=function(r){return r});Am||(Am=function(r,a){for(var l=arguments.length,o=new Array(l>2?l-2:0),u=2;u<l;u++)o[u-2]=arguments[u];return r.apply(a,o)});Cm||(Cm=function(r){for(var a=arguments.length,l=new Array(a>1?a-1:0),o=1;o<a;o++)l[o-1]=arguments[o];return new r(...l)});const Eu=Wn(Array.prototype.forEach),pN=Wn(Array.prototype.lastIndexOf),d1=Wn(Array.prototype.pop),Ts=Wn(Array.prototype.push),gN=Wn(Array.prototype.splice),Bu=Wn(String.prototype.toLowerCase),Md=Wn(String.prototype.toString),Ld=Wn(String.prototype.match),xs=Wn(String.prototype.replace),vN=Wn(String.prototype.indexOf),bN=Wn(String.prototype.trim),Ur=Wn(Object.prototype.hasOwnProperty),Qn=Wn(RegExp.prototype.test),ws=yN(TypeError);function Wn(e){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var a=arguments.length,l=new Array(a>1?a-1:0),o=1;o<a;o++)l[o-1]=arguments[o];return Am(e,r,l)}}function yN(e){return function(){for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return Cm(e,a)}}function Ve(e,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bu;h1&&h1(e,null);let l=r.length;for(;l--;){let o=r[l];if(typeof o=="string"){const u=a(o);u!==o&&(hN(r)||(r[l]=u),o=u)}e[o]=!0}return e}function _N(e){for(let r=0;r<e.length;r++)Ur(e,r)||(e[r]=null);return e}function ya(e){const r=wm(null);for(const[a,l]of F_(e))Ur(e,a)&&(Array.isArray(l)?r[a]=_N(l):l&&typeof l=="object"&&l.constructor===Object?r[a]=ya(l):r[a]=l);return r}function As(e,r){for(;e!==null;){const l=mN(e,r);if(l){if(l.get)return Wn(l.get);if(typeof l.value=="function")return Wn(l.value)}e=dN(e)}function a(){return null}return a}const m1=$n(["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"]),Bd=$n(["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"]),kd=$n(["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"]),SN=$n(["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"]),Hd=$n(["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"]),EN=$n(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),p1=$n(["#text"]),g1=$n(["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"]),Ud=$n(["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"]),v1=$n(["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"]),Tu=$n(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),TN=Rr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xN=Rr(/<%[\w\W]*|[\w\W]*%>/gm),wN=Rr(/\$\{[\w\W]*/gm),AN=Rr(/^data-[\-\w.\u00B7-\uFFFF]+$/),CN=Rr(/^aria-[\-\w]+$/),V_=Rr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ON=Rr(/^(?:\w+script|data):/i),RN=Rr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),P_=Rr(/^html$/i),NN=Rr(/^[a-z][.\w]*(-[.\w]+)+$/i);var b1=Object.freeze({__proto__:null,ARIA_ATTR:CN,ATTR_WHITESPACE:RN,CUSTOM_ELEMENT:NN,DATA_ATTR:AN,DOCTYPE_NAME:P_,ERB_EXPR:xN,IS_ALLOWED_URI:V_,IS_SCRIPT_OR_DATA:ON,MUSTACHE_EXPR:TN,TMPLIT_EXPR:wN});const Cs={element:1,text:3,progressingInstruction:7,comment:8,document:9},DN=function(){return typeof window>"u"?null:window},MN=function(r,a){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let l=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(l=a.getAttribute(o));const u="dompurify"+(l?"#"+l:"");try{return r.createPolicy(u,{createHTML(f){return f},createScriptURL(f){return f}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},y1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function G_(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DN();const r=ce=>G_(ce);if(r.version="3.3.0",r.removed=[],!e||!e.document||e.document.nodeType!==Cs.document||!e.Element)return r.isSupported=!1,r;let{document:a}=e;const l=a,o=l.currentScript,{DocumentFragment:u,HTMLTemplateElement:f,Node:m,Element:d,NodeFilter:p,NamedNodeMap:v=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:y,DOMParser:b,trustedTypes:S}=e,E=d.prototype,T=As(E,"cloneNode"),w=As(E,"remove"),O=As(E,"nextSibling"),A=As(E,"childNodes"),C=As(E,"parentNode");if(typeof f=="function"){const ce=a.createElement("template");ce.content&&ce.content.ownerDocument&&(a=ce.content.ownerDocument)}let B,R="";const{implementation:j,createNodeIterator:k,createDocumentFragment:K,getElementsByTagName:G}=a,{importNode:$}=l;let Z=y1();r.isSupported=typeof F_=="function"&&typeof C=="function"&&j&&j.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:J,ERB_EXPR:se,TMPLIT_EXPR:fe,DATA_ATTR:he,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:ae,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:be}=b1;let{IS_ALLOWED_URI:pe}=b1,N=null;const Y=Ve({},[...m1,...Bd,...kd,...Hd,...p1]);let ee=null;const ue=Ve({},[...g1,...Ud,...v1,...Tu]);let ne=Object.seal(wm(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}})),de=null,ge=null;const Ee=Object.seal(wm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xe=!0,je=!0,wt=!1,Ae=!0,yt=!1,Ot=!0,Oe=!1,ht=!1,on=!1,An=!1,Pe=!1,Kt=!1,Nt=!0,un=!1;const At="user-content-";let ct=!0,Bn=!1,Xt={},$t=null;const Qt=Ve({},["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 gn=null;const vn=Ve({},["audio","video","img","source","image","track"]);let gr=null;const it=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bn="http://www.w3.org/1998/Math/MathML",_t="http://www.w3.org/2000/svg",pt="http://www.w3.org/1999/xhtml";let $e=pt,nt=!1,cn=null;const yn=Ve({},[bn,_t,pt],Md);let zt=Ve({},["mi","mo","mn","ms","mtext"]),lt=Ve({},["annotation-xml"]);const Wt=Ve({},["title","style","font","a","script"]);let Rt=null;const kn=["application/xhtml+xml","text/html"],Hn="text/html";let St=null,fn=null;const vr=a.createElement("form"),Vn=function(D){return D instanceof RegExp||D instanceof Function},br=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fn&&fn===D)){if((!D||typeof D!="object")&&(D={}),D=ya(D),Rt=kn.indexOf(D.PARSER_MEDIA_TYPE)===-1?Hn:D.PARSER_MEDIA_TYPE,St=Rt==="application/xhtml+xml"?Md:Bu,N=Ur(D,"ALLOWED_TAGS")?Ve({},D.ALLOWED_TAGS,St):Y,ee=Ur(D,"ALLOWED_ATTR")?Ve({},D.ALLOWED_ATTR,St):ue,cn=Ur(D,"ALLOWED_NAMESPACES")?Ve({},D.ALLOWED_NAMESPACES,Md):yn,gr=Ur(D,"ADD_URI_SAFE_ATTR")?Ve(ya(it),D.ADD_URI_SAFE_ATTR,St):it,gn=Ur(D,"ADD_DATA_URI_TAGS")?Ve(ya(vn),D.ADD_DATA_URI_TAGS,St):vn,$t=Ur(D,"FORBID_CONTENTS")?Ve({},D.FORBID_CONTENTS,St):Qt,de=Ur(D,"FORBID_TAGS")?Ve({},D.FORBID_TAGS,St):ya({}),ge=Ur(D,"FORBID_ATTR")?Ve({},D.FORBID_ATTR,St):ya({}),Xt=Ur(D,"USE_PROFILES")?D.USE_PROFILES:!1,xe=D.ALLOW_ARIA_ATTR!==!1,je=D.ALLOW_DATA_ATTR!==!1,wt=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,yt=D.SAFE_FOR_TEMPLATES||!1,Ot=D.SAFE_FOR_XML!==!1,Oe=D.WHOLE_DOCUMENT||!1,An=D.RETURN_DOM||!1,Pe=D.RETURN_DOM_FRAGMENT||!1,Kt=D.RETURN_TRUSTED_TYPE||!1,on=D.FORCE_BODY||!1,Nt=D.SANITIZE_DOM!==!1,un=D.SANITIZE_NAMED_PROPS||!1,ct=D.KEEP_CONTENT!==!1,Bn=D.IN_PLACE||!1,pe=D.ALLOWED_URI_REGEXP||V_,$e=D.NAMESPACE||pt,zt=D.MATHML_TEXT_INTEGRATION_POINTS||zt,lt=D.HTML_INTEGRATION_POINTS||lt,ne=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Vn(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Vn(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),yt&&(je=!1),Pe&&(An=!0),Xt&&(N=Ve({},p1),ee=[],Xt.html===!0&&(Ve(N,m1),Ve(ee,g1)),Xt.svg===!0&&(Ve(N,Bd),Ve(ee,Ud),Ve(ee,Tu)),Xt.svgFilters===!0&&(Ve(N,kd),Ve(ee,Ud),Ve(ee,Tu)),Xt.mathMl===!0&&(Ve(N,Hd),Ve(ee,v1),Ve(ee,Tu))),D.ADD_TAGS&&(typeof D.ADD_TAGS=="function"?Ee.tagCheck=D.ADD_TAGS:(N===Y&&(N=ya(N)),Ve(N,D.ADD_TAGS,St))),D.ADD_ATTR&&(typeof D.ADD_ATTR=="function"?Ee.attributeCheck=D.ADD_ATTR:(ee===ue&&(ee=ya(ee)),Ve(ee,D.ADD_ATTR,St))),D.ADD_URI_SAFE_ATTR&&Ve(gr,D.ADD_URI_SAFE_ATTR,St),D.FORBID_CONTENTS&&($t===Qt&&($t=ya($t)),Ve($t,D.FORBID_CONTENTS,St)),ct&&(N["#text"]=!0),Oe&&Ve(N,["html","head","body"]),N.table&&(Ve(N,["tbody"]),delete de.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=D.TRUSTED_TYPES_POLICY,R=B.createHTML("")}else B===void 0&&(B=MN(S,o)),B!==null&&typeof R=="string"&&(R=B.createHTML(""));$n&&$n(D),fn=D}},hn=Ve({},[...Bd,...kd,...SN]),dn=Ve({},[...Hd,...EN]),qt=function(D){let W=C(D);(!W||!W.tagName)&&(W={namespaceURI:$e,tagName:"template"});const le=Bu(D.tagName),Te=Bu(W.tagName);return cn[D.namespaceURI]?D.namespaceURI===_t?W.namespaceURI===pt?le==="svg":W.namespaceURI===bn?le==="svg"&&(Te==="annotation-xml"||zt[Te]):!!hn[le]:D.namespaceURI===bn?W.namespaceURI===pt?le==="math":W.namespaceURI===_t?le==="math"&&lt[Te]:!!dn[le]:D.namespaceURI===pt?W.namespaceURI===_t&&!lt[Te]||W.namespaceURI===bn&&!zt[Te]?!1:!dn[le]&&(Wt[le]||!hn[le]):!!(Rt==="application/xhtml+xml"&&cn[D.namespaceURI]):!1},It=function(D){Ts(r.removed,{element:D});try{C(D).removeChild(D)}catch{w(D)}},We=function(D,W){try{Ts(r.removed,{attribute:W.getAttributeNode(D),from:W})}catch{Ts(r.removed,{attribute:null,from:W})}if(W.removeAttribute(D),D==="is")if(An||Pe)try{It(W)}catch{}else try{W.setAttribute(D,"")}catch{}},Pn=function(D){let W=null,le=null;if(on)D="<remove></remove>"+D;else{const me=Ld(D,/^[\r\n\t ]+/);le=me&&me[0]}Rt==="application/xhtml+xml"&&$e===pt&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const Te=B?B.createHTML(D):D;if($e===pt)try{W=new b().parseFromString(Te,Rt)}catch{}if(!W||!W.documentElement){W=j.createDocument($e,"template",null);try{W.documentElement.innerHTML=nt?R:Te}catch{}}const Ge=W.body||W.documentElement;return D&&le&&Ge.insertBefore(a.createTextNode(le),Ge.childNodes[0]||null),$e===pt?G.call(W,Oe?"html":"body")[0]:Oe?W.documentElement:Ge},Un=function(D){return k.call(D.ownerDocument||D,D,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ft=function(D){return D instanceof y&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof v)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},Ne=function(D){return typeof m=="function"&&D instanceof m};function rt(ce,D,W){Eu(ce,le=>{le.call(r,D,W,fn)})}const _n=function(D){let W=null;if(rt(Z.beforeSanitizeElements,D,null),Ft(D))return It(D),!0;const le=St(D.nodeName);if(rt(Z.uponSanitizeElement,D,{tagName:le,allowedTags:N}),Ot&&D.hasChildNodes()&&!Ne(D.firstElementChild)&&Qn(/<[/\w!]/g,D.innerHTML)&&Qn(/<[/\w!]/g,D.textContent)||D.nodeType===Cs.progressingInstruction||Ot&&D.nodeType===Cs.comment&&Qn(/<[/\w]/g,D.data))return It(D),!0;if(!(Ee.tagCheck instanceof Function&&Ee.tagCheck(le))&&(!N[le]||de[le])){if(!de[le]&&mn(le)&&(ne.tagNameCheck instanceof RegExp&&Qn(ne.tagNameCheck,le)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(le)))return!1;if(ct&&!$t[le]){const Te=C(D)||D.parentNode,Ge=A(D)||D.childNodes;if(Ge&&Te){const me=Ge.length;for(let gt=me-1;gt>=0;--gt){const De=T(Ge[gt],!0);De.__removalCount=(D.__removalCount||0)+1,Te.insertBefore(De,O(D))}}}return It(D),!0}return D instanceof d&&!qt(D)||(le==="noscript"||le==="noembed"||le==="noframes")&&Qn(/<\/no(script|embed|frames)/i,D.innerHTML)?(It(D),!0):(yt&&D.nodeType===Cs.text&&(W=D.textContent,Eu([J,se,fe],Te=>{W=xs(W,Te," ")}),D.textContent!==W&&(Ts(r.removed,{element:D.cloneNode()}),D.textContent=W)),rt(Z.afterSanitizeElements,D,null),!1)},qn=function(D,W,le){if(Nt&&(W==="id"||W==="name")&&(le in a||le in vr))return!1;if(!(je&&!ge[W]&&Qn(he,W))){if(!(xe&&Qn(U,W))){if(!(Ee.attributeCheck instanceof Function&&Ee.attributeCheck(W,D))){if(!ee[W]||ge[W]){if(!(mn(D)&&(ne.tagNameCheck instanceof RegExp&&Qn(ne.tagNameCheck,D)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(D))&&(ne.attributeNameCheck instanceof RegExp&&Qn(ne.attributeNameCheck,W)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(W,D))||W==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&Qn(ne.tagNameCheck,le)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(le))))return!1}else if(!gr[W]){if(!Qn(pe,xs(le,X,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&D!=="script"&&vN(le,"data:")===0&&gn[D])){if(!(wt&&!Qn(ae,xs(le,X,"")))){if(le)return!1}}}}}}}return!0},mn=function(D){return D!=="annotation-xml"&&Ld(D,be)},Mr=function(D){rt(Z.beforeSanitizeAttributes,D,null);const{attributes:W}=D;if(!W||Ft(D))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Te=W.length;for(;Te--;){const Ge=W[Te],{name:me,namespaceURI:gt,value:De}=Ge,st=St(me),at=De;let Me=me==="value"?at:bN(at);if(le.attrName=st,le.attrValue=Me,le.keepAttr=!0,le.forceKeepAttr=void 0,rt(Z.uponSanitizeAttribute,D,le),Me=le.attrValue,un&&(st==="id"||st==="name")&&(We(me,D),Me=At+Me),Ot&&Qn(/((--!?|])>)|<\/(style|title|textarea)/i,Me)){We(me,D);continue}if(st==="attributename"&&Ld(Me,"href")){We(me,D);continue}if(le.forceKeepAttr)continue;if(!le.keepAttr){We(me,D);continue}if(!Ae&&Qn(/\/>/i,Me)){We(me,D);continue}yt&&Eu([J,se,fe],Zt=>{Me=xs(Me,Zt," ")});const Ut=St(D.nodeName);if(!qn(Ut,st,Me)){We(me,D);continue}if(B&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!gt)switch(S.getAttributeType(Ut,st)){case"TrustedHTML":{Me=B.createHTML(Me);break}case"TrustedScriptURL":{Me=B.createScriptURL(Me);break}}if(Me!==at)try{gt?D.setAttributeNS(gt,me,Me):D.setAttribute(me,Me),Ft(D)?It(D):d1(r.removed)}catch{We(me,D)}}rt(Z.afterSanitizeAttributes,D,null)},He=function ce(D){let W=null;const le=Un(D);for(rt(Z.beforeSanitizeShadowDOM,D,null);W=le.nextNode();)rt(Z.uponSanitizeShadowNode,W,null),_n(W),Mr(W),W.content instanceof u&&ce(W.content);rt(Z.afterSanitizeShadowDOM,D,null)};return r.sanitize=function(ce){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,le=null,Te=null,Ge=null;if(nt=!ce,nt&&(ce="<!-->"),typeof ce!="string"&&!Ne(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw ws("dirty is not a string, aborting")}else throw ws("toString is not a function");if(!r.isSupported)return ce;if(ht||br(D),r.removed=[],typeof ce=="string"&&(Bn=!1),Bn){if(ce.nodeName){const De=St(ce.nodeName);if(!N[De]||de[De])throw ws("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof m)W=Pn("<!---->"),le=W.ownerDocument.importNode(ce,!0),le.nodeType===Cs.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?W=le:W.appendChild(le);else{if(!An&&!yt&&!Oe&&ce.indexOf("<")===-1)return B&&Kt?B.createHTML(ce):ce;if(W=Pn(ce),!W)return An?null:Kt?R:""}W&&on&&It(W.firstChild);const me=Un(Bn?ce:W);for(;Te=me.nextNode();)_n(Te),Mr(Te),Te.content instanceof u&&He(Te.content);if(Bn)return ce;if(An){if(Pe)for(Ge=K.call(W.ownerDocument);W.firstChild;)Ge.appendChild(W.firstChild);else Ge=W;return(ee.shadowroot||ee.shadowrootmode)&&(Ge=$.call(l,Ge,!0)),Ge}let gt=Oe?W.outerHTML:W.innerHTML;return Oe&&N["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&Qn(P_,W.ownerDocument.doctype.name)&&(gt="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
139
- `+gt),yt&&Eu([J,se,fe],De=>{gt=xs(gt,De," ")}),B&&Kt?B.createHTML(gt):gt},r.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};br(ce),ht=!0},r.clearConfig=function(){fn=null,ht=!1},r.isValidAttribute=function(ce,D,W){fn||br({});const le=St(ce),Te=St(D);return qn(le,Te,W)},r.addHook=function(ce,D){typeof D=="function"&&Ts(Z[ce],D)},r.removeHook=function(ce,D){if(D!==void 0){const W=pN(Z[ce],D);return W===-1?void 0:gN(Z[ce],W,1)[0]}return d1(Z[ce])},r.removeHooks=function(ce){Z[ce]=[]},r.removeAllHooks=function(){Z=y1()},r}var LN=G_();const BN=({onClose:e})=>{const r=Ht();return _.jsxs("div",{className:wn.highlightLoadingInfo,onClick:e,children:[_.jsx("div",{className:wn.highlightLoadingInfoCloseIcon,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})}),_.jsxs("div",{className:wn.highlightLoadingInfoInnerContainer,children:[_.jsxs("div",{className:wn.highlightLoadingInfoContent,children:[_.jsx("h3",{children:r("source-infos.highlight-loading.title")}),_.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:_.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"})})]})]})},kN=({title:e,href:r,children:a})=>_.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:a}),HN=({className:e,children:r,...a})=>_.jsx("a",{className:oe(Ps.button,Ps.buttonDefault,e),type:"button",role:"button",...a,children:r}),UN=e=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:_.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"})}),jN=({type:e,...r})=>{switch(e){case"WEBSITE":return _.jsx(B_,{...r});case"PDF":return _.jsx(L_,{...r});case"DOCX":return _.jsx(D_,{...r});case"TEXT":return _.jsx(UN,{...r});default:return _.jsx(M_,{...r})}},zN=({url:e,knowledgeBaseType:r})=>{const a=Ht();return _.jsx(HN,{className:wn.openSourceButton,href:e,target:"_blank",children:_.jsxs("div",{className:wn.sourceButtonLabel,children:[_.jsx("div",{className:wn.sourceHeaderIcon,children:_.jsx(jN,{type:r})}),_.jsx("p",{children:a("source-infos.open-source")})]})})},IN=({sourceInfos:{content:e,url:r,knowledgeBaseType:a,highlighted:l}})=>{const[o,u]=V.useState(!l);V.useEffect(()=>{l&&u(!1)},[l]);const f=LN.sanitize(e,{USE_PROFILES:{html:!0}});return _.jsxs(_.Fragment,{children:[_.jsxs("div",{className:oe(wn.sourceContent,H_.markdown),children:[_.jsx(Ea,{options:{overrides:{a:kN}},children:f}),o&&_.jsx(BN,{onClose:()=>u(!1)})]}),_.jsx(zN,{url:r,knowledgeBaseType:a})]})},FN=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,VN=()=>{const e=Ht();return _.jsxs("div",{className:wn.loadingError,children:[_.jsx("h1",{children:e("source-infos.error.title")}),_.jsx("img",{src:FN,title:e("source-infos.error.title")}),_.jsx("p",{children:e("source-infos.error.info")})]})},PN=()=>_.jsx("div",{className:wn.loadingSourceInfos,children:_.jsx("svg",{className:wn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})}),GN=e=>{const[r,a]=V.useState(!0);return V.useEffect(()=>{let l=null;return e?.type==="loading"?(a(!0),l=setTimeout(()=>{a(!1)},300)):a(!e),()=>{l&&clearTimeout(l)}},[e]),r};function XN({sourceInfos:e,onClose:r,threshold:a=100}){const l=V.useRef(null),[o,u]=V.useState(0),[f,m]=V.useState(!1),d=V.useRef(null),p=V.useRef(null),v=V.useCallback(E=>{d.current=E,m(!0)},[]),y=V.useCallback(E=>{if(d.current!==null&&f){const T=E-d.current;T>0&&u(T)}},[f]),b=V.useCallback(()=>{m(!1),o>a&&r(),u(0),d.current=null},[o,a,r]),S=V.useCallback(E=>{const T=R=>v(R.touches[0].clientY),w=R=>y(R.touches[0].clientY),O=()=>b(),A=R=>{R.preventDefault(),v(R.clientY),window.addEventListener("mousemove",C),window.addEventListener("mouseup",B)},C=R=>y(R.clientY),B=()=>{b(),window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",B)};E.addEventListener("touchstart",T),E.addEventListener("touchmove",w),E.addEventListener("touchend",O),E.addEventListener("mousedown",A),p.current=()=>{E.removeEventListener("touchstart",T),E.removeEventListener("touchmove",w),E.removeEventListener("touchend",O),E.removeEventListener("mousedown",A),window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",B)}},[v,y,b]);return V.useEffect(()=>{let E;return(()=>{l.current?(p.current?.(),S(l.current)):(E=new MutationObserver(()=>{l.current&&(p.current?.(),S(l.current),E?.disconnect())}),E.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{E?.disconnect(),p.current?.()}},[S,e]),{ref:l,dragOffsetY:o,isDragging:f}}const QN=()=>{const e=Oa(),r=jt(d=>d.chat.sourceInfos),a=I_(),l=V.useRef(null),o=GN(r);V.useEffect(()=>{l.current&&r?.type==="loading"&&(a?l.current.showModal():(l.current.setAttribute("open","true"),l.current?.focus()))},[r,a]);const u=V.useCallback(()=>{l.current&&(a?l.current.close():l.current.removeAttribute("open"),e(XC()))},[e,a]),{ref:f,dragOffsetY:m}=XN({onClose:u,sourceInfos:r});return r?_.jsx("dialog",{ref:l,className:oe(wn.sourceInfos,o?wn.waitForLoading:r.type==="loading"?wn.loadingContent:""),style:a&&m?{transform:`translateY(${m}px)`}:{},onClose:u,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:o?null:_.jsxs(_.Fragment,{children:[_.jsx(cN,{ref:f,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:u}),r.type==="loading"?_.jsx(PN,{}):r.type==="loading-error"?_.jsx(VN,{}):_.jsxs(_.Fragment,{children:[_.jsx(fN,{loading:!r.highlighted}),_.jsx(IN,{sourceInfos:r})]})]})}):null},ZN="_container_1aof3_1",YN="_body_1aof3_7",JN="_intro_1aof3_14",KN="_footer_1aof3_39",$N="_footnote_1aof3_43",WN="_containerWithFootnote_1aof3_58",qN="_startChatButton_1aof3_73",eD="_spinner_1aof3_88",tD="_formFields_1aof3_92",nD="_formField_1aof3_92",rD="_radio_1aof3_104",aD="_checkbox_1aof3_111",iD="_input_1aof3_119",lD="_inputLabel_1aof3_153",sD="_selectWrapper_1aof3_157",oD="_select_1aof3_157",uD="_selectLabel_1aof3_203",Tn={container:ZN,body:YN,intro:JN,footer:KN,footnote:$N,containerWithFootnote:WN,startChatButton:qN,spinner:eD,formFields:tD,formField:nD,radio:rD,checkbox:aD,input:iD,inputLabel:lD,selectWrapper:sD,select:oD,selectLabel:uD},cD=({name:e,label:r,defaultValue:a,required:l,onChange:o})=>{const u=f=>{o(f.currentTarget.checked?"true":"false")};return _.jsxs("label",{className:oe(Tn.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[_.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:a==="true",required:l,onChange:u}),_.jsx("div",{children:r})]})},fD=({type:e,name:r,label:a,defaultValue:l,placeholder:o,required:u,multiple:f,min:m,max:d,pattern:p,onChange:v})=>{const y=b=>{v(b.target.value)};return _.jsxs("label",{className:oe(Tn.input,"chat__startScreen__input"),htmlFor:r,children:[_.jsx("div",{className:oe(Tn.inputLabel),children:a}),_.jsx("input",{type:e,id:r,name:r,defaultValue:l,placeholder:o,required:u,multiple:f,min:m,max:d,pattern:p,onChange:y})]})},hD=({name:e,value:r,label:a,defaultChecked:l,required:o,onChange:u})=>{const f=`${e}-${r}`,m=d=>{u(d.target.value)};return _.jsxs("label",{className:oe(Tn.radio,"chat__startScreen__radio"),htmlFor:f,children:[_.jsx("input",{id:f,type:"radio",name:e,value:r,defaultChecked:l,required:o,onChange:m}),_.jsx("span",{className:oe(Tn.label),children:a})]})},dD=({name:e,label:r,defaultValue:a,required:l,multiple:o,options:u,onChange:f})=>{const m=d=>{f(d.target.value)};return _.jsxs("label",{className:oe(Tn.select,"chat__startScreen__select"),htmlFor:e,children:[_.jsx("div",{className:oe(Tn.selectLabel),children:r}),_.jsx("div",{className:oe(Tn.selectWrapper),children:_.jsx("select",{id:e,name:e,defaultValue:a,required:l,multiple:o,onChange:m,children:Object.entries(u||{}).map(([d,p])=>_.jsx("option",{value:d,selected:p===a,children:p}))})})]})},mD="start-screen.intro",pD="start-screen.start-chat",gD="start-screen.waiting-for-login",vD="start-screen.footnote",Hr="start-screen.form",_1=`${Hr}.fields`,bD=()=>{const e=Ht(),r=Oa(),a=Rp(),l=jt(E=>E.startScreen.loginRequestToken),o=jt(E=>E.settings.requiresUserAuthentication);V.useEffect(()=>{let E;if(l){const O=window.screenX+(window.outerWidth-600)/2,A=window.screenY+(window.outerHeight-700)/2,C=window.open(`/${a}/auth/login?loginRequestToken=${l}`,"Login",`width=600,height=700,left=${O},top=${A},resizable=yes,scrollbars=yes`);E=setInterval(()=>{C?.closed&&(r(FC()),clearInterval(E))},500)}return()=>{E&&clearInterval(E)}},[a,l,r]);const[u,f]=V.useState({}),m=()=>{const E=Object.entries(u).reduce((T,[w,O])=>({...T,[w]:O.value}),{});r(o?IC({loginRequestToken:Fu(),formValues:E}):UC({formValues:E}))},d=e(mD),p=e(l?gD:pD),v=e(vD),y=V.useMemo(()=>e(_1)?.split(";").map(E=>E.trim())??[],[e(_1)]);V.useEffect(()=>{y.length&&Object.keys(u).length===0&&f(y.reduce((E,T)=>({...E,[T]:yD(T,e)}),{}))},[e,y,u]);const b=E=>{E.preventDefault(),m()},S=E=>T=>{f(w=>({...w,[E]:{...w[E],value:T}}))};return _.jsxs("form",{onSubmit:b,className:oe(Tn.container,v&&Tn.containerWithFootnote,"chat__startScreen"),children:[_.jsxs("div",{className:oe(Tn.body,"chat__startScreen__body"),children:[d&&_.jsx("div",{className:oe(Tn.intro,"chat__startScreen__intro"),children:_.jsx(Ea,{options:{overrides:{a:S1}},children:d})}),_.jsx("div",{className:oe(Tn.formFields,"chat__startScreen__fields"),children:Object.values(u).map(({type:E,name:T,label:w,placeholder:O,defaultValue:A,options:C,required:B,multiple:R,min:j,max:k,pattern:K})=>_.jsx("div",{className:oe(Tn.formField,"chat__startScreen__field"),children:(()=>{switch(E){case"radio":return _.jsxs(_.Fragment,{children:[_.jsx("div",{children:w}),Object.entries(C||{}).map(([G,$])=>_.jsx(hD,{name:T,value:G,label:$,defaultChecked:G===A,required:B,onChange:S(T)},G))]});case"checkbox":return _.jsx(cD,{name:T,label:w,defaultValue:A,required:B,onChange:S(T)});case"select":return _.jsx(dD,{name:T,label:w,defaultValue:A,required:B,multiple:R,options:C,onChange:S(T)});default:return _.jsx(fD,{type:E,name:T,label:w,placeholder:O,defaultValue:A,required:B,multiple:R,min:j,max:k,pattern:K,onChange:S(T)})}})()},T))})]}),_.jsxs("div",{className:oe(Tn.footer,"chat__startScreen__footer"),children:[_.jsxs(hc,{type:"submit",className:Tn.startChatButton,disabled:!!l,children:[!!l&&_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:Tn.spinner,children:_.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"})}),_.jsx("div",{children:p})]}),v&&_.jsx("div",{className:Tn.footnote,children:_.jsx(Ea,{options:{overrides:{a:S1}},children:v})})]})]})},S1=({title:e,href:r,children:a})=>_.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:a}),yD=(e,r)=>{const a=r(`${Hr}.${e}.type`)||"text",l=r(`${Hr}.${e}.required`)==="true",o=r(`${Hr}.${e}.multiple`)==="true",u=r(`${Hr}.${e}.placeholder`),f=r(`${Hr}.${e}.label`)||"",m=r(`${Hr}.${e}.defaultValue`),d=r(`${Hr}.${e}.min`),p=r(`${Hr}.${e}.max`),v=r(`${Hr}.${e}.pattern`),y=SD(r(`${Hr}.${e}.options`));return{name:e,label:f,placeholder:u,value:_D(a,m,y)||"",defaultValue:m,options:y,type:a,required:l,multiple:o,min:d,max:p,pattern:v}},_D=(e,r,a)=>r||e==="select"&&Object.keys(a)[0]||"",SD=(e="")=>e.split(";").map(r=>r.trim()).reduce((r,a)=>{const[l,o]=a.split(":").map(u=>u.trim());return{...r,[l]:o}},{}),ED=()=>{const e=vc();V.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},pl={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"},TD=({clientName:e})=>{ED();const r=Oa(),a=jt(v=>v.intl.messages),l=Ht(),o=jt(v=>v.settings.enableStartScreen),u=jt(v=>v.startScreen.startScreenStatus),f=jt(v=>v.connection.queryString),m=V.useMemo(()=>new URLSearchParams(f||"?").get("cssClassName"),[f]);V.useEffect(()=>{const v=Vm.parse(f||""),y=b=>{switch(b.data.type){case pl.TRIGGER_ACTION:r(b.data.action);break;case pl.TRIGGER_STORY:r(B2(b.data.story));break;case pl.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case pl.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case pl.CHAT_MESSAGE_FROM_GUEST:r(R2(b.data.text));break;case pl.RESTART_CHAT:r(Js());break}};return r(ZC(e,v)),window.addEventListener("message",b=>y(b),!1),()=>window.removeEventListener("message",y)},[e,f,r]),V.useEffect(()=>{const v=l("page.title");v&&document&&(document.title=v)},[a,l]);const d=o===void 0,p=o===!1||u==="HIDDEN";return _.jsx("div",{className:oe(f1.chatwindow,p&&f1.chatwindowWithAside,"chat__chatwindow",m),children:d?null:p?_.jsxs(_.Fragment,{children:[_.jsx("header",{children:_.jsx(c1,{chatStarted:!0})}),_.jsx("main",{children:_.jsx(OR,{clientName:e})}),_.jsx("aside",{children:_.jsx(QN,{})})]}):_.jsxs(_.Fragment,{children:[_.jsx("header",{children:_.jsx(c1,{chatStarted:!1})}),_.jsx("main",{children:_.jsx(bD,{})})]})})},xD=()=>{const e=Rp(),r=I_(),a=jt(o=>o.intl.locale),l=jt(o=>o.intl.messages);return _.jsx(oA,{locale:a,messages:l,onError:()=>{},children:_.jsx("div",{className:oe([cA.app,r?"chat__small":"chat__large"]),children:_.jsx(TD,{clientName:e})})})};var jd,E1;function wD(){if(E1)return jd;E1=1;var e=R_(),r=Cp(),a="Expected a function";function l(o,u,f){var m=!0,d=!0;if(typeof o!="function")throw new TypeError(a);return r(f)&&(m="leading"in f?!!f.leading:m,d="trailing"in f?!!f.trailing:d),e(o,u,{leading:m,maxWait:u,trailing:d})}return jd=l,jd}var AD=wD();const CD=mc(AD);function OD(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function RD(e){return e}function ND(e,r){r=r||{};const a=r.delimiter||".",l=r.maxDepth,o=r.transformKey||RD,u={};function f(m,d,p){p=p||1,Object.keys(m).forEach(function(v){const y=m[v],b=r.safe&&Array.isArray(y),S=Object.prototype.toString.call(y),E=OD(y),T=S==="[object Object]"||S==="[object Array]",w=d?d+a+o(v):o(v);if(!b&&!E&&T&&Object.keys(y).length&&(!r.maxDepth||p<l))return f(y,w,p+1);u[w]=y})}return f(e),u}const X_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
140
-
141
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
142
- - 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"},DD={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
143
-
144
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
145
- - 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"},MD={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
146
-
147
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
148
- - 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"},LD={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
149
-
150
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
151
- - 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"},BD=["de","en","fr","it"],Q_={locale:"de",messages:X_},kD=(e,r)=>{if(BD.includes(e)){const a=HD(e),l=ND(r);return{...a,...l}}return r},HD=e=>{switch(e.toString()){case"en":return DD;case"fr":return MD;case"it":return LD;default:return X_}},UD=(e=jD,r)=>{switch(r.type){case up:return Object.assign({},e,{connectionState:Ci.CONNECTING});case cp:return Object.assign({},e,{connectionState:Ci.CONNECTED});case fp:return Object.assign({},e,{connectionState:Ci.DISCONNECTED});case hp:return Object.assign({},e,{connectionState:Ci.RECONNECTED});case dp:return Object.assign({},e,{sessionId:r.sessionId});case wc:return Object.assign({},e,{sessionId:r.payload.sessionId,userId:r.payload.userId});case Ac:return Object.assign({},e,{sessionId:void 0});default:return e}},jD={connectionState:Ci.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},zD=(e=x1,r)=>{switch(r.type){case q2:return x1;case wc:return xi({type:"webclient.chat.started"}),e;case Ac:return xi({type:"webclient.chat.ended"}),e;case S2:return Object.assign({},e,{isBotTyping:!0});case E2:return Object.assign({},e,{isBotTyping:!1});case Pm:case T2:return T1(e,r.message);case x2:{xi(r);const a=Object.assign({},r.message,{_id:r.meta.actionId}),l=e.messages.filter(o=>o._id===r.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:l?e.messages:e.messages.concat([a]),quickReplies:a.quickReplies?a.quickReplies:[]})}case Zm:{const a=r.messages,l=a.length?a[a.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:a,quickReplies:l?.quickReplies||[]})}case Qm:return xi(r.message),e;case w2:return xi(r.event),e;case xA:return Object.assign({},e,{drawerContentUrl:r.payload.parameters.contentUrl});case wA:return Object.assign({},e,{drawerContentUrl:void 0});case AA:return Object.assign({},e,{locale:r.payload.locale});case D2:return xi(r),e;case M2:return xi(r),{...e,conversationRating:{...e.conversationRating,opener:void 0}};case Jm:{const a=new bc(r.transcription,new Xm),l=Object.assign({},a,{_id:Fu()});return T1(e,l)}case A2:{const a=e.messages.map(l=>l._id===r.payload.actionId?Object.assign({},l,r.payload.reaction?{reaction:{type:r.payload.reaction,category:r.payload.category,comment:r.payload.comment}}:{reaction:void 0}):l);return Object.assign({},e,{messages:a})}case Km:{const a={enabled:!0,rating:r.payload.rating};return Object.assign({},e,{conversationRating:a})}case Gm:{const a={...e.conversationRating,rating:r.payload};return Object.assign({},e,{conversationRating:a})}case t_:{const a={...e.conversationRating,opener:r.payload.opener,...r.payload.defaultRating?{rating:{value:r.payload.defaultRating,feedback:e.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},e,{conversationRating:a})}case n_:{const a={...e.conversationRating,opener:void 0};return Object.assign({},e,{conversationRating:a})}case Wm:return{...e,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case $m:{const{highlighted:a}=r.payload;return e.sourceInfos?.type==="loaded"&&a?{...e,sourceInfos:{...e.sourceInfos,highlighted:!0}}:{...e,sourceInfos:{type:"loading-error"}}}case N2:{const a=e.sourceInfos?.type,{chunkId:l,knowledgeBaseType:o,title:u,content:f,highlighted:m,url:d}=r.payload,p=e.sourceInfos?.type==="loading"||e.sourceInfos?.type==="loaded"?e.sourceInfos?.chunkId:void 0;return p&&p!==l?e:a==="loading"||a==="loaded"&&m?{...e,sourceInfos:{type:"loaded",chunkId:l,knowledgeBaseType:o,title:u,content:f,highlighted:m,url:d}}:e}case qm:return{...e,sourceInfos:void 0};case e_:return{...e,showTranscriptMailOverlay:!e.showTranscriptMailOverlay,conversationRating:{...e.conversationRating,opener:void 0}};default:return e}},T1=(e,r)=>{const a=e.messages[e.messages.length-1],l=a?.text===r.text;return a&&a.sender.type===r.sender.type&&l?e:Object.assign({},e,{messages:e.messages.concat([r]),quickReplies:[]})},xi=e=>{ID()?window.top?.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},ID=()=>typeof window<"u"&&window.self!==window.top,x1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},Z_=sp({name:"intl",initialState:Q_,reducers:{updateIntl:(e,r)=>{e.locale=r.payload.language,e.messages=r.payload.messages}}}),{updateIntl:FD}=Z_.actions,VD=Z_.reducer,PD={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},Y_=sp({name:"settings",initialState:PD,reducers:{setSettings(e,r){e.version&&e.version!==r.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(e.version=r.payload.version,e.requiresUserAuthentication=r.payload.requiresUserAuthentication,e.enableStartScreen=r.payload.enableStartScreen,e.enableStandaloneView=r.payload.enableStandaloneView,e.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,e.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,e.enableGeneralConditions=r.payload.enableGeneralConditions,e.enableSpeechSupport=r.payload.enableSpeechSupport,e.commands=r.payload.commands,e.menuItems=r.payload.menuItems||[])}}}),{setSettings:GD}=Y_.actions,XD=Y_.reducer,QD=j2({settings:XD,chat:zD,startScreen:VC,connection:UD,intl:VD}),ZD="bubble-chat",J_="state-last-saved-at",K_="state",YD=e=>{try{if(!$D())return;const r=w1(e,J_);if(KD(r))return;{const a=w1(e,K_);if(a===null)return;const l=JSON.parse(a),o=l.connection?.queryString;if(o!==void 0&&o!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return l}}catch(r){console.error(r);return}},JD=(e,r)=>{try{const a=JSON.stringify(r);A1(e,K_,a);const l=new Date().toISOString();A1(e,J_,l)}catch(a){console.error(a)}},KD=e=>{if(e===null)return!1;const r=new Date(e);return r.setHours(r.getHours()+12),new Date>r},$D=()=>typeof localStorage<"u",w1=(e,r)=>{const a=$_(e,r);return localStorage.getItem(a)},A1=(e,r,a)=>{const l=$_(e,r);return localStorage.setItem(l,a)},$_=(e,r)=>`${ZD}-${e}-${r}`,ea=Object.create(null);ea.open="0";ea.close="1";ea.ping="2";ea.pong="3";ea.message="4";ea.upgrade="5";ea.noop="6";const ku=Object.create(null);Object.keys(ea).forEach(e=>{ku[ea[e]]=e});const Om={type:"error",data:"parser error"},W_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",q_=typeof ArrayBuffer=="function",eS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Np=({type:e,data:r},a,l)=>W_&&r instanceof Blob?a?l(r):C1(r,l):q_&&(r instanceof ArrayBuffer||eS(r))?a?l(r):C1(new Blob([r]),l):l(ea[e]+(r||"")),C1=(e,r)=>{const a=new FileReader;return a.onload=function(){const l=a.result.split(",")[1];r("b"+(l||""))},a.readAsDataURL(e)};function O1(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let zd;function WD(e,r){if(W_&&e.data instanceof Blob)return e.data.arrayBuffer().then(O1).then(r);if(q_&&(e.data instanceof ArrayBuffer||eS(e.data)))return r(O1(e.data));Np(e,!1,a=>{zd||(zd=new TextEncoder),r(zd.encode(a))})}const R1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ms=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<R1.length;e++)Ms[R1.charCodeAt(e)]=e;const qD=e=>{let r=e.length*.75,a=e.length,l,o=0,u,f,m,d;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);const p=new ArrayBuffer(r),v=new Uint8Array(p);for(l=0;l<a;l+=4)u=Ms[e.charCodeAt(l)],f=Ms[e.charCodeAt(l+1)],m=Ms[e.charCodeAt(l+2)],d=Ms[e.charCodeAt(l+3)],v[o++]=u<<2|f>>4,v[o++]=(f&15)<<4|m>>2,v[o++]=(m&3)<<6|d&63;return p},e4=typeof ArrayBuffer=="function",Dp=(e,r)=>{if(typeof e!="string")return{type:"message",data:tS(e,r)};const a=e.charAt(0);return a==="b"?{type:"message",data:t4(e.substring(1),r)}:ku[a]?e.length>1?{type:ku[a],data:e.substring(1)}:{type:ku[a]}:Om},t4=(e,r)=>{if(e4){const a=qD(e);return tS(a,r)}else return{base64:!0,data:e}},tS=(e,r)=>{switch(r){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},nS="",n4=(e,r)=>{const a=e.length,l=new Array(a);let o=0;e.forEach((u,f)=>{Np(u,!1,m=>{l[f]=m,++o===a&&r(l.join(nS))})})},r4=(e,r)=>{const a=e.split(nS),l=[];for(let o=0;o<a.length;o++){const u=Dp(a[o],r);if(l.push(u),u.type==="error")break}return l};function a4(){return new TransformStream({transform(e,r){WD(e,a=>{const l=a.length;let o;if(l<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,l);else if(l<65536){o=new Uint8Array(3);const u=new DataView(o.buffer);u.setUint8(0,126),u.setUint16(1,l)}else{o=new Uint8Array(9);const u=new DataView(o.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(l))}e.data&&typeof e.data!="string"&&(o[0]|=128),r.enqueue(o),r.enqueue(a)})}})}let Id;function xu(e){return e.reduce((r,a)=>r+a.length,0)}function wu(e,r){if(e[0].length===r)return e.shift();const a=new Uint8Array(r);let l=0;for(let o=0;o<r;o++)a[o]=e[0][l++],l===e[0].length&&(e.shift(),l=0);return e.length&&l<e[0].length&&(e[0]=e[0].slice(l)),a}function i4(e,r){Id||(Id=new TextDecoder);const a=[];let l=0,o=-1,u=!1;return new TransformStream({transform(f,m){for(a.push(f);;){if(l===0){if(xu(a)<1)break;const d=wu(a,1);u=(d[0]&128)===128,o=d[0]&127,o<126?l=3:o===126?l=1:l=2}else if(l===1){if(xu(a)<2)break;const d=wu(a,2);o=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),l=3}else if(l===2){if(xu(a)<8)break;const d=wu(a,8),p=new DataView(d.buffer,d.byteOffset,d.length),v=p.getUint32(0);if(v>Math.pow(2,21)-1){m.enqueue(Om);break}o=v*Math.pow(2,32)+p.getUint32(4),l=3}else{if(xu(a)<o)break;const d=wu(a,o);m.enqueue(Dp(u?d:Id.decode(d),r)),l=0}if(o===0||o>e){m.enqueue(Om);break}}}})}const rS=4;function sn(e){if(e)return l4(e)}function l4(e){for(var r in sn.prototype)e[r]=sn.prototype[r];return e}sn.prototype.on=sn.prototype.addEventListener=function(e,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(r),this};sn.prototype.once=function(e,r){function a(){this.off(e,a),r.apply(this,arguments)}return a.fn=r,this.on(e,a),this};sn.prototype.off=sn.prototype.removeListener=sn.prototype.removeAllListeners=sn.prototype.removeEventListener=function(e,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+e];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var l,o=0;o<a.length;o++)if(l=a[o],l===r||l.fn===r){a.splice(o,1);break}return a.length===0&&delete this._callbacks["$"+e],this};sn.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),a=this._callbacks["$"+e],l=1;l<arguments.length;l++)r[l-1]=arguments[l];if(a){a=a.slice(0);for(var l=0,o=a.length;l<o;++l)a[l].apply(this,r)}return this};sn.prototype.emitReserved=sn.prototype.emit;sn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};sn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Mc=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,a)=>a(r,0),Or=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),s4="arraybuffer";function aS(e,...r){return r.reduce((a,l)=>(e.hasOwnProperty(l)&&(a[l]=e[l]),a),{})}const o4=Or.setTimeout,u4=Or.clearTimeout;function Lc(e,r){r.useNativeTimers?(e.setTimeoutFn=o4.bind(Or),e.clearTimeoutFn=u4.bind(Or)):(e.setTimeoutFn=Or.setTimeout.bind(Or),e.clearTimeoutFn=Or.clearTimeout.bind(Or))}const c4=1.33;function f4(e){return typeof e=="string"?h4(e):Math.ceil((e.byteLength||e.size)*c4)}function h4(e){let r=0,a=0;for(let l=0,o=e.length;l<o;l++)r=e.charCodeAt(l),r<128?a+=1:r<2048?a+=2:r<55296||r>=57344?a+=3:(l++,a+=4);return a}function iS(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function d4(e){let r="";for(let a in e)e.hasOwnProperty(a)&&(r.length&&(r+="&"),r+=encodeURIComponent(a)+"="+encodeURIComponent(e[a]));return r}function m4(e){let r={},a=e.split("&");for(let l=0,o=a.length;l<o;l++){let u=a[l].split("=");r[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return r}class p4 extends Error{constructor(r,a,l){super(r),this.description=a,this.context=l,this.type="TransportError"}}class Mp extends sn{constructor(r){super(),this.writable=!1,Lc(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,a,l){return super.emitReserved("error",new p4(r,a,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const a=Dp(r,this.socket.binaryType);this.onPacket(a)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,a={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(a)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const a=d4(r);return a.length?"?"+a:""}}class g4 extends Mp{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const a=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||a()})),this.writable||(l++,this.once("drain",function(){--l||a()}))}else a()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const a=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};r4(r,this.socket.binaryType).forEach(a),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,n4(r,a=>{this.doWrite(a,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",a=this.query||{};return this.opts.timestampRequests!==!1&&(a[this.opts.timestampParam]=iS()),!this.supportsBinary&&!a.sid&&(a.b64=1),this.createUri(r,a)}}let lS=!1;try{lS=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const v4=lS;function b4(){}class y4 extends g4{constructor(r){if(super(r),typeof location<"u"){const a=location.protocol==="https:";let l=location.port;l||(l=a?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||l!==r.port}}doWrite(r,a){const l=this.request({method:"POST",data:r});l.on("success",a),l.on("error",(o,u)=>{this.onError("xhr post error",o,u)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(a,l)=>{this.onError("xhr poll error",a,l)}),this.pollXhr=r}}class Kr extends sn{constructor(r,a,l){super(),this.createRequest=r,Lc(this,l),this._opts=l,this._method=l.method||"GET",this._uri=a,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var r;const a=aS(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");a.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(a);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&l.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var o;l.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Kr.requestsCount++,Kr.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=b4,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Kr.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Kr.requestsCount=0;Kr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",N1);else if(typeof addEventListener=="function"){const e="onpagehide"in Or?"pagehide":"unload";addEventListener(e,N1,!1)}}function N1(){for(let e in Kr.requests)Kr.requests.hasOwnProperty(e)&&Kr.requests[e].abort()}const _4=(function(){const e=sS({xdomain:!1});return e&&e.responseType!==null})();class S4 extends y4{constructor(r){super(r);const a=r&&r.forceBase64;this.supportsBinary=_4&&!a}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Kr(sS,this.uri(),r)}}function sS(e){const r=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||v4))return new XMLHttpRequest}catch{}if(!r)try{return new Or[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const oS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class E4 extends Mp{get name(){return"websocket"}doOpen(){const r=this.uri(),a=this.opts.protocols,l=oS?{}:aS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,a,l)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let a=0;a<r.length;a++){const l=r[a],o=a===r.length-1;Np(l,this.supportsBinary,u=>{try{this.doWrite(l,u)}catch{}o&&Mc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",a=this.query||{};return this.opts.timestampRequests&&(a[this.opts.timestampParam]=iS()),this.supportsBinary||(a.b64=1),this.createUri(r,a)}}const Fd=Or.WebSocket||Or.MozWebSocket;class T4 extends E4{createSocket(r,a,l){return oS?new Fd(r,a,l):a?new Fd(r,a):new Fd(r)}doWrite(r,a){this.ws.send(a)}}class x4 extends Mp{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const a=i4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(a).getReader(),o=a4();o.readable.pipeTo(r.writable),this._writer=o.writable.getWriter();const u=()=>{l.read().then(({done:m,value:d})=>{m||(this.onPacket(d),u())}).catch(m=>{})};u();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let a=0;a<r.length;a++){const l=r[a],o=a===r.length-1;this._writer.write(l).then(()=>{o&&Mc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const w4={websocket:T4,webtransport:x4,polling:S4},A4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,C4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rm(e){if(e.length>8e3)throw"URI too long";const r=e,a=e.indexOf("["),l=e.indexOf("]");a!=-1&&l!=-1&&(e=e.substring(0,a)+e.substring(a,l).replace(/:/g,";")+e.substring(l,e.length));let o=A4.exec(e||""),u={},f=14;for(;f--;)u[C4[f]]=o[f]||"";return a!=-1&&l!=-1&&(u.source=r,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=O4(u,u.path),u.queryKey=R4(u,u.query),u}function O4(e,r){const a=/\/{2,9}/g,l=r.replace(a,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&l.splice(0,1),r.slice(-1)=="/"&&l.splice(l.length-1,1),l}function R4(e,r){const a={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,o,u){o&&(a[o]=u)}),a}const Nm=typeof addEventListener=="function"&&typeof removeEventListener=="function",Hu=[];Nm&&addEventListener("offline",()=>{Hu.forEach(e=>e())},!1);class ri extends sn{constructor(r,a){if(super(),this.binaryType=s4,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(a=r,r=null),r){const l=Rm(r);a.hostname=l.host,a.secure=l.protocol==="https"||l.protocol==="wss",a.port=l.port,l.query&&(a.query=l.query)}else a.host&&(a.hostname=Rm(a.host).host);Lc(this,a),this.secure=a.secure!=null?a.secure:typeof location<"u"&&location.protocol==="https:",a.hostname&&!a.port&&(a.port=this.secure?"443":"80"),this.hostname=a.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=a.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},a.transports.forEach(l=>{const o=l.prototype.name;this.transports.push(o),this._transportsByName[o]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},a),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=m4(this.opts.query)),Nm&&(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"})},Hu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const a=Object.assign({},this.opts.query);a.EIO=rS,a.transport=r,this.id&&(a.sid=this.id);const l=Object.assign({},this.opts,{query:a,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&ri.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const a=this.createTransport(r);a.open(),this.setTransport(a)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",a=>this._onClose("transport close",a))}onOpen(){this.readyState="open",ri.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const a=new Error("server error");a.code=r.data,this._onError(a);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let a=1;for(let l=0;l<this.writeBuffer.length;l++){const o=this.writeBuffer[l].data;if(o&&(a+=f4(o)),l>0&&a>this._maxPayload)return this.writeBuffer.slice(0,l);a+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Mc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,a,l){return this._sendPacket("message",r,a,l),this}send(r,a,l){return this._sendPacket("message",r,a,l),this}_sendPacket(r,a,l,o){if(typeof a=="function"&&(o=a,a=void 0),typeof l=="function"&&(o=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const u={type:r,data:a,options:l};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),o&&this.once("flush",o),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},a=()=>{this.off("upgrade",a),this.off("upgradeError",a),r()},l=()=>{this.once("upgrade",a),this.once("upgradeError",a)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():r()}):this.upgrading?l():r()),this}_onError(r){if(ri.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,a){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(),Nm&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=Hu.indexOf(this._offlineEventListener);l!==-1&&Hu.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,a),this.writeBuffer=[],this._prevBufferLen=0}}}ri.protocol=rS;class N4 extends ri{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let a=this.createTransport(r),l=!1;ri.priorWebsocketSuccess=!1;const o=()=>{l||(a.send([{type:"ping",data:"probe"}]),a.once("packet",y=>{if(!l)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",a),!a)return;ri.priorWebsocketSuccess=a.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(v(),this.setTransport(a),a.send([{type:"upgrade"}]),this.emitReserved("upgrade",a),a=null,this.upgrading=!1,this.flush())})}else{const b=new Error("probe error");b.transport=a.name,this.emitReserved("upgradeError",b)}}))};function u(){l||(l=!0,v(),a.close(),a=null)}const f=y=>{const b=new Error("probe error: "+y);b.transport=a.name,u(),this.emitReserved("upgradeError",b)};function m(){f("transport closed")}function d(){f("socket closed")}function p(y){a&&y.name!==a.name&&u()}const v=()=>{a.removeListener("open",o),a.removeListener("error",f),a.removeListener("close",m),this.off("close",d),this.off("upgrading",p)};a.once("open",o),a.once("error",f),a.once("close",m),this.once("close",d),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{l||a.open()},200):a.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const a=[];for(let l=0;l<r.length;l++)~this.transports.indexOf(r[l])&&a.push(r[l]);return a}}let D4=class extends N4{constructor(r,a={}){const l=typeof r=="object"?r:a;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(o=>w4[o]).filter(o=>!!o)),super(r,l)}};function M4(e,r="",a){let l=e;a=a||typeof location<"u"&&location,e==null&&(e=a.protocol+"//"+a.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=a.protocol+e:e=a.host+e),/^(https?|wss?):\/\//.test(e)||(typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),l=Rm(e)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const u=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+u+":"+l.port+r,l.href=l.protocol+"://"+u+(a&&a.port===l.port?"":":"+l.port),l}const L4=typeof ArrayBuffer=="function",B4=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,uS=Object.prototype.toString,k4=typeof Blob=="function"||typeof Blob<"u"&&uS.call(Blob)==="[object BlobConstructor]",H4=typeof File=="function"||typeof File<"u"&&uS.call(File)==="[object FileConstructor]";function Lp(e){return L4&&(e instanceof ArrayBuffer||B4(e))||k4&&e instanceof Blob||H4&&e instanceof File}function Uu(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let a=0,l=e.length;a<l;a++)if(Uu(e[a]))return!0;return!1}if(Lp(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Uu(e.toJSON(),!0);for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&Uu(e[a]))return!0;return!1}function U4(e){const r=[],a=e.data,l=e;return l.data=Dm(a,r),l.attachments=r.length,{packet:l,buffers:r}}function Dm(e,r){if(!e)return e;if(Lp(e)){const a={_placeholder:!0,num:r.length};return r.push(e),a}else if(Array.isArray(e)){const a=new Array(e.length);for(let l=0;l<e.length;l++)a[l]=Dm(e[l],r);return a}else if(typeof e=="object"&&!(e instanceof Date)){const a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(a[l]=Dm(e[l],r));return a}return e}function j4(e,r){return e.data=Mm(e.data,r),delete e.attachments,e}function Mm(e,r){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<r.length)return r[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let a=0;a<e.length;a++)e[a]=Mm(e[a],r);else if(typeof e=="object")for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(e[a]=Mm(e[a],r));return e}const z4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],I4=5;var Ke;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ke||(Ke={}));class F4{constructor(r){this.replacer=r}encode(r){return(r.type===Ke.EVENT||r.type===Ke.ACK)&&Uu(r)?this.encodeAsBinary({type:r.type===Ke.EVENT?Ke.BINARY_EVENT:Ke.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let a=""+r.type;return(r.type===Ke.BINARY_EVENT||r.type===Ke.BINARY_ACK)&&(a+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(a+=r.nsp+","),r.id!=null&&(a+=r.id),r.data!=null&&(a+=JSON.stringify(r.data,this.replacer)),a}encodeAsBinary(r){const a=U4(r),l=this.encodeAsString(a.packet),o=a.buffers;return o.unshift(l),o}}function D1(e){return Object.prototype.toString.call(e)==="[object Object]"}class Bp extends sn{constructor(r){super(),this.reviver=r}add(r){let a;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");a=this.decodeString(r);const l=a.type===Ke.BINARY_EVENT;l||a.type===Ke.BINARY_ACK?(a.type=l?Ke.EVENT:Ke.ACK,this.reconstructor=new V4(a),a.attachments===0&&super.emitReserved("decoded",a)):super.emitReserved("decoded",a)}else if(Lp(r)||r.base64)if(this.reconstructor)a=this.reconstructor.takeBinaryData(r),a&&(this.reconstructor=null,super.emitReserved("decoded",a));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let a=0;const l={type:Number(r.charAt(0))};if(Ke[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Ke.BINARY_EVENT||l.type===Ke.BINARY_ACK){const u=a+1;for(;r.charAt(++a)!=="-"&&a!=r.length;);const f=r.substring(u,a);if(f!=Number(f)||r.charAt(a)!=="-")throw new Error("Illegal attachments");l.attachments=Number(f)}if(r.charAt(a+1)==="/"){const u=a+1;for(;++a&&!(r.charAt(a)===","||a===r.length););l.nsp=r.substring(u,a)}else l.nsp="/";const o=r.charAt(a+1);if(o!==""&&Number(o)==o){const u=a+1;for(;++a;){const f=r.charAt(a);if(f==null||Number(f)!=f){--a;break}if(a===r.length)break}l.id=Number(r.substring(u,a+1))}if(r.charAt(++a)){const u=this.tryParse(r.substr(a));if(Bp.isPayloadValid(l.type,u))l.data=u;else throw new Error("invalid payload")}return l}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,a){switch(r){case Ke.CONNECT:return D1(a);case Ke.DISCONNECT:return a===void 0;case Ke.CONNECT_ERROR:return typeof a=="string"||D1(a);case Ke.EVENT:case Ke.BINARY_EVENT:return Array.isArray(a)&&(typeof a[0]=="number"||typeof a[0]=="string"&&z4.indexOf(a[0])===-1);case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(a)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class V4{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const a=j4(this.reconPack,this.buffers);return this.finishedReconstruction(),a}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const P4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Bp,Encoder:F4,get PacketType(){return Ke},protocol:I4},Symbol.toStringTag,{value:"Module"}));function jr(e,r,a){return e.on(r,a),function(){e.off(r,a)}}const G4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class cS extends sn{constructor(r,a,l){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=a,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[jr(r,"open",this.onopen.bind(this)),jr(r,"packet",this.onpacket.bind(this)),jr(r,"error",this.onerror.bind(this)),jr(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...a){var l,o,u;if(G4.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(a.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(a),this;const f={type:Ke.EVENT,data:a};if(f.options={},f.options.compress=this.flags.compress!==!1,typeof a[a.length-1]=="function"){const v=this.ids++,y=a.pop();this._registerAckCallback(v,y),f.id=v}const m=(o=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||o===void 0?void 0:o.writable,d=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!m||(d?(this.notifyOutgoingListeners(f),this.packet(f)):this.sendBuffer.push(f)),this.flags={},this}_registerAckCallback(r,a){var l;const o=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(o===void 0){this.acks[r]=a;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===r&&this.sendBuffer.splice(m,1);a.call(this,new Error("operation has timed out"))},o),f=(...m)=>{this.io.clearTimeoutFn(u),a.apply(this,m)};f.withError=!0,this.acks[r]=f}emitWithAck(r,...a){return new Promise((l,o)=>{const u=(f,m)=>f?o(f):l(m);u.withError=!0,a.push(u),this.emit(r,...a)})}_addToQueue(r){let a;typeof r[r.length-1]=="function"&&(a=r.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((o,...u)=>l!==this._queue[0]?void 0:(o!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),a&&a(o)):(this._queue.shift(),a&&a(null,...u)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const a=this._queue[0];a.pending&&!r||(a.pending=!0,a.tryCount++,this.flags=a.flags,this.emit.apply(this,a.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ke.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,a){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,a),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(l=>String(l.id)===r)){const l=this.acks[r];delete this.acks[r],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ke.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(r);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(r);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.CONNECT_ERROR:this.destroy();const l=new Error(r.data.message);l.data=r.data.data,this.emitReserved("connect_error",l);break}}onevent(r){const a=r.data||[];r.id!=null&&a.push(this.ack(r.id)),this.connected?this.emitEvent(a):this.receiveBuffer.push(Object.freeze(a))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const a=this._anyListeners.slice();for(const l of a)l.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const a=this;let l=!1;return function(...o){l||(l=!0,a.packet({type:Ke.ACK,id:r,data:o}))}}onack(r){const a=this.acks[r.id];typeof a=="function"&&(delete this.acks[r.id],a.withError&&r.data.unshift(null),a.apply(this,r.data))}onconnect(r,a){this.id=r,this.recovered=a&&this._pid===a,this._pid=a,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ke.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const a=this._anyListeners;for(let l=0;l<a.length;l++)if(r===a[l])return a.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const a=this._anyOutgoingListeners;for(let l=0;l<a.length;l++)if(r===a[l])return a.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const a=this._anyOutgoingListeners.slice();for(const l of a)l.apply(this,r.data)}}}function Rl(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Rl.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),a=Math.floor(r*this.jitter*e);e=(Math.floor(r*10)&1)==0?e-a:e+a}return Math.min(e,this.max)|0};Rl.prototype.reset=function(){this.attempts=0};Rl.prototype.setMin=function(e){this.ms=e};Rl.prototype.setMax=function(e){this.max=e};Rl.prototype.setJitter=function(e){this.jitter=e};class Lm extends sn{constructor(r,a){var l;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(a=r,r=void 0),a=a||{},a.path=a.path||"/socket.io",this.opts=a,Lc(this,a),this.reconnection(a.reconnection!==!1),this.reconnectionAttempts(a.reconnectionAttempts||1/0),this.reconnectionDelay(a.reconnectionDelay||1e3),this.reconnectionDelayMax(a.reconnectionDelayMax||5e3),this.randomizationFactor((l=a.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new Rl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(a.timeout==null?2e4:a.timeout),this._readyState="closed",this.uri=r;const o=a.parser||P4;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=a.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var a;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(a=this.backoff)===null||a===void 0||a.setMin(r),this)}randomizationFactor(r){var a;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(a=this.backoff)===null||a===void 0||a.setJitter(r),this)}reconnectionDelayMax(r){var a;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(a=this.backoff)===null||a===void 0||a.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new D4(this.uri,this.opts);const a=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const o=jr(a,"open",function(){l.onopen(),r&&r()}),u=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),r?r(m):this.maybeReconnectOnOpen()},f=jr(a,"error",u);if(this._timeout!==!1){const m=this._timeout,d=this.setTimeoutFn(()=>{o(),u(new Error("timeout")),a.close()},m);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(o),this.subs.push(f),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(jr(r,"ping",this.onping.bind(this)),jr(r,"data",this.ondata.bind(this)),jr(r,"error",this.onerror.bind(this)),jr(r,"close",this.onclose.bind(this)),jr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(a){this.onclose("parse error",a)}}ondecoded(r){Mc(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,a){let l=this.nsps[r];return l?this._autoConnect&&!l.active&&l.connect():(l=new cS(this,r,a),this.nsps[r]=l),l}_destroy(r){const a=Object.keys(this.nsps);for(const l of a)if(this.nsps[l].active)return;this._close()}_packet(r){const a=this.encoder.encode(r);for(let l=0;l<a.length;l++)this.engine.write(a[l],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,a){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,a),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const a=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(o=>{o?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",o)):r.onreconnect()}))},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Os={};function ju(e,r){typeof e=="object"&&(r=e,e=void 0),r=r||{};const a=M4(e,r.path||"/socket.io"),l=a.source,o=a.id,u=a.path,f=Os[o]&&u in Os[o].nsps,m=r.forceNew||r["force new connection"]||r.multiplex===!1||f;let d;return m?d=new Lm(l,r):(Os[o]||(Os[o]=new Lm(l,r)),d=Os[o]),a.query&&!r.query&&(r.query=a.queryKey),d.socket(a.path,r)}Object.assign(ju,{Manager:Lm,Socket:cS,io:ju,connect:ju});const X4=[x2,w2,S2,E2,EA,...QC,...BA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],Q4=({dispatch:e,getState:r})=>a=>{let l=null;return o=>{const u=a(o);if(o.type===op){l?.disconnect(),e(JC());const f=`/chat?${Vm.stringify(o.querystrings)}`;l=ju(`/${o.clientName}${f}`),l.on("action",e),l.on("connect",()=>e(KC())),l.on("disconnect",()=>e($C())),l.on("reconnect",()=>e(WC())),l.on("set-translations",(m,d)=>{e(FD({language:m,messages:kD(m,d)}))}),l.on("set-settings",m=>{e(GD(m))}),l.on("enable-conversation-rating",m=>e(zA(m))),l.on("speech-transcription",m=>e(HA(m))),l.on("restore-client-state",m=>{e(YC(m.sessionId)),e(FA(m.messages))}),l.on("expand-window",({devices:m,initial:d=!1})=>{e({type:D2,devices:m,initial:d})}),l.on("restart-chat",()=>{e(Js())}),l.on("login-success",m=>{e(jC({loginToken:m.loginToken}))})}else if(o.type==="start-screen/requestLogin")l?.emit("login-requested",o.payload);else if(o.type===wc)l?.emit("start-chat",o.payload);else if(o.type===Ac)l?.emit("terminate-session",o.payload);else if(o.type===LA)l?.emit("get-started",JSON.stringify(o));else if(o.type===Ym)l?.emit("audio-message",o.buffer);else if(o.type===Gm)l?.emit("conversation-rating",o.payload);else if(o.type===L2){const{connection:{sessionId:f}}=r();window.location.href=`/transcript-pdf/${f}`}else X4.indexOf(o.type)===-1&&o.meta===void 0&&l&&l.emit("action",JSON.stringify(o));return u}},fS=ep(),Z4={...YD(fS),intl:Q_},Bm=xC({middleware:e=>e().concat(Q4),reducer:QD,preloadedState:Z4});Bm.subscribe(CD(()=>{const e=Bm.getState();JD(fS,{connection:e.connection,startScreen:e.startScreen})},1e3));const Y4=document.getElementById("root"),J4=AT.createRoot(Y4);J4.render(_.jsx(wx,{store:Bm,children:_.jsx(xD,{})}));
152
- //# sourceMappingURL=index-D0MjARj1.js.map