@botfabrik/engine-webclient 4.103.3 → 4.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-BFRLY6ZE.css +1 -0
- package/dist/client/assets/{index-C18N6XYl.js → index-qmz848Sp.js} +68 -68
- package/dist/client/assets/index-qmz848Sp.js.map +1 -0
- package/dist/client/index.html +2 -2
- package/package.json +2 -2
- package/dist/client/assets/index-C18N6XYl.js.map +0 -1
- package/dist/client/assets/index-nVfX9aR5.css +0 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function Z2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vd={exports:{}},ts={};var d1;function F2(){if(d1)return ts;d1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:t,type:r,key:d,ref:o!==void 0?o:null,props:f}}return ts.Fragment=l,ts.jsx=i,ts.jsxs=i,ts}var h1;function Y2(){return h1||(h1=1,vd.exports=F2()),vd.exports}var y=Y2(),bd={exports:{}},ns={},yd={exports:{}},_d={};var p1;function K2(){return p1||(p1=1,(function(t){function l(j,le){var Q=j.length;j.push(le);e:for(;0<Q;){var be=Q-1>>>1,ge=j[be];if(0<o(ge,le))j[be]=le,j[Q]=ge,Q=be;else break e}}function i(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var le=j[0],Q=j.pop();if(Q!==le){j[0]=Q;e:for(var be=0,ge=j.length,x=ge>>>1;be<x;){var K=2*(be+1)-1,ee=j[K],oe=K+1,ne=j[oe];if(0>o(ee,Q))oe<ge&&0>o(ne,ee)?(j[be]=ne,j[oe]=Q,be=oe):(j[be]=ee,j[K]=Q,be=K);else if(oe<ge&&0>o(ne,Q))j[be]=ne,j[oe]=Q,be=oe;else break e}}return le}function o(j,le){var Q=j.sortIndex-le.sortIndex;return Q!==0?Q:j.id-le.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();t.unstable_now=function(){return d.now()-g}}var h=[],p=[],b=1,S=null,v=3,_=!1,w=!1,T=!1,A=!1,O=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var le=i(p);le!==null;){if(le.callback===null)r(p);else if(le.startTime<=j)r(p),le.sortIndex=le.expirationTime,l(h,le);else break;le=i(p)}}function B(j){if(T=!1,k(j),!w)if(i(h)!==null)w=!0,I||(I=!0,P());else{var le=i(p);le!==null&&de(B,le.startTime-j)}}var I=!1,L=-1,J=5,G=-1;function q(){return A?!0:!(t.unstable_now()-G<J)}function Y(){if(A=!1,I){var j=t.unstable_now();G=j;var le=!0;try{e:{w=!1,T&&(T=!1,C(L),L=-1),_=!0;var Q=v;try{t:{for(k(j),S=i(h);S!==null&&!(S.expirationTime>j&&q());){var be=S.callback;if(typeof be=="function"){S.callback=null,v=S.priorityLevel;var ge=be(S.expirationTime<=j);if(j=t.unstable_now(),typeof ge=="function"){S.callback=ge,k(j),le=!0;break t}S===i(h)&&r(h),k(j)}else r(h);S=i(h)}if(S!==null)le=!0;else{var x=i(p);x!==null&&de(B,x.startTime-j),le=!1}}break e}finally{S=null,v=Q,_=!1}le=void 0}}finally{le?P():I=!1}}}var P;if(typeof N=="function")P=function(){N(Y)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,he=fe.port2;fe.port1.onmessage=Y,P=function(){he.postMessage(null)}}else P=function(){O(Y,0)};function de(j,le){L=O(function(){j(t.unstable_now())},le)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(j){switch(v){case 1:case 2:case 3:var le=3;break;default:le=v}var Q=v;v=le;try{return j()}finally{v=Q}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(j,le){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var Q=v;v=j;try{return le()}finally{v=Q}},t.unstable_scheduleCallback=function(j,le,Q){var be=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?be+Q:be):Q=be,j){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=Q+ge,j={id:b++,callback:le,priorityLevel:j,startTime:Q,expirationTime:ge,sortIndex:-1},Q>be?(j.sortIndex=Q,l(p,j),i(h)===null&&j===i(p)&&(T?(C(L),L=-1):T=!0,de(B,Q-be))):(j.sortIndex=ge,l(h,j),w||_||(w=!0,I||(I=!0,P()))),j},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(j){var le=v;return function(){var Q=v;v=le;try{return j.apply(this,arguments)}finally{v=Q}}}})(_d)),_d}var g1;function J2(){return g1||(g1=1,yd.exports=K2()),yd.exports}var Sd={exports:{}},Me={};var m1;function P2(){if(m1)return Me;m1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),v=Symbol.iterator;function _(x){return x===null||typeof x!="object"?null:(x=v&&x[v]||x["@@iterator"],typeof x=="function"?x:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function O(x,K,ee){this.props=x,this.context=K,this.refs=A,this.updater=ee||w}O.prototype.isReactComponent={},O.prototype.setState=function(x,K){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,K,"setState")},O.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function C(){}C.prototype=O.prototype;function N(x,K,ee){this.props=x,this.context=K,this.refs=A,this.updater=ee||w}var k=N.prototype=new C;k.constructor=N,T(k,O.prototype),k.isPureReactComponent=!0;var B=Array.isArray;function I(){}var L={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function G(x,K,ee){var oe=ee.ref;return{$$typeof:t,type:x,key:K,ref:oe!==void 0?oe:null,props:ee}}function q(x,K){return G(x.type,K,x.props)}function Y(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function P(x){var K={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(ee){return K[ee]})}var fe=/\/+/g;function he(x,K){return typeof x=="object"&&x!==null&&x.key!=null?P(""+x.key):K.toString(36)}function de(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(I,I):(x.status="pending",x.then(function(K){x.status==="pending"&&(x.status="fulfilled",x.value=K)},function(K){x.status==="pending"&&(x.status="rejected",x.reason=K)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function j(x,K,ee,oe,ne){var ce=typeof x;(ce==="undefined"||ce==="boolean")&&(x=null);var me=!1;if(x===null)me=!0;else switch(ce){case"bigint":case"string":case"number":me=!0;break;case"object":switch(x.$$typeof){case t:case l:me=!0;break;case b:return me=x._init,j(me(x._payload),K,ee,oe,ne)}}if(me)return ne=ne(x),me=oe===""?"."+he(x,0):oe,B(ne)?(ee="",me!=null&&(ee=me.replace(fe,"$&/")+"/"),j(ne,K,ee,"",function(Be){return Be})):ne!=null&&(Y(ne)&&(ne=q(ne,ee+(ne.key==null||x&&x.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+me)),K.push(ne)),1;me=0;var Se=oe===""?".":oe+":";if(B(x))for(var we=0;we<x.length;we++)oe=x[we],ce=Se+he(oe,we),me+=j(oe,K,ee,ce,ne);else if(we=_(x),typeof we=="function")for(x=we.call(x),we=0;!(oe=x.next()).done;)oe=oe.value,ce=Se+he(oe,we++),me+=j(oe,K,ee,ce,ne);else if(ce==="object"){if(typeof x.then=="function")return j(de(x),K,ee,oe,ne);throw K=String(x),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return me}function le(x,K,ee){if(x==null)return x;var oe=[],ne=0;return j(x,oe,"","",function(ce){return K.call(ee,ce,ne++)}),oe}function Q(x){if(x._status===-1){var K=x._result;K=K(),K.then(function(ee){(x._status===0||x._status===-1)&&(x._status=1,x._result=ee)},function(ee){(x._status===0||x._status===-1)&&(x._status=2,x._result=ee)}),x._status===-1&&(x._status=0,x._result=K)}if(x._status===1)return x._result.default;throw x._result}var be=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ge={map:le,forEach:function(x,K,ee){le(x,function(){K.apply(this,arguments)},ee)},count:function(x){var K=0;return le(x,function(){K++}),K},toArray:function(x){return le(x,function(K){return K})||[]},only:function(x){if(!Y(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return Me.Activity=S,Me.Children=ge,Me.Component=O,Me.Fragment=i,Me.Profiler=o,Me.PureComponent=N,Me.StrictMode=r,Me.Suspense=h,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Me.__COMPILER_RUNTIME={__proto__:null,c:function(x){return L.H.useMemoCache(x)}},Me.cache=function(x){return function(){return x.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(x,K,ee){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var oe=T({},x.props),ne=x.key;if(K!=null)for(ce in K.key!==void 0&&(ne=""+K.key),K)!J.call(K,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&K.ref===void 0||(oe[ce]=K[ce]);var ce=arguments.length-2;if(ce===1)oe.children=ee;else if(1<ce){for(var me=Array(ce),Se=0;Se<ce;Se++)me[Se]=arguments[Se+2];oe.children=me}return G(x.type,ne,oe)},Me.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},Me.createElement=function(x,K,ee){var oe,ne={},ce=null;if(K!=null)for(oe in K.key!==void 0&&(ce=""+K.key),K)J.call(K,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ne[oe]=K[oe]);var me=arguments.length-2;if(me===1)ne.children=ee;else if(1<me){for(var Se=Array(me),we=0;we<me;we++)Se[we]=arguments[we+2];ne.children=Se}if(x&&x.defaultProps)for(oe in me=x.defaultProps,me)ne[oe]===void 0&&(ne[oe]=me[oe]);return G(x,ce,ne)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(x){return{$$typeof:g,render:x}},Me.isValidElement=Y,Me.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:Q}},Me.memo=function(x,K){return{$$typeof:p,type:x,compare:K===void 0?null:K}},Me.startTransition=function(x){var K=L.T,ee={};L.T=ee;try{var oe=x(),ne=L.S;ne!==null&&ne(ee,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(I,be)}catch(ce){be(ce)}finally{K!==null&&ee.types!==null&&(K.types=ee.types),L.T=K}},Me.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Me.use=function(x){return L.H.use(x)},Me.useActionState=function(x,K,ee){return L.H.useActionState(x,K,ee)},Me.useCallback=function(x,K){return L.H.useCallback(x,K)},Me.useContext=function(x){return L.H.useContext(x)},Me.useDebugValue=function(){},Me.useDeferredValue=function(x,K){return L.H.useDeferredValue(x,K)},Me.useEffect=function(x,K){return L.H.useEffect(x,K)},Me.useEffectEvent=function(x){return L.H.useEffectEvent(x)},Me.useId=function(){return L.H.useId()},Me.useImperativeHandle=function(x,K,ee){return L.H.useImperativeHandle(x,K,ee)},Me.useInsertionEffect=function(x,K){return L.H.useInsertionEffect(x,K)},Me.useLayoutEffect=function(x,K){return L.H.useLayoutEffect(x,K)},Me.useMemo=function(x,K){return L.H.useMemo(x,K)},Me.useOptimistic=function(x,K){return L.H.useOptimistic(x,K)},Me.useReducer=function(x,K,ee){return L.H.useReducer(x,K,ee)},Me.useRef=function(x){return L.H.useRef(x)},Me.useState=function(x){return L.H.useState(x)},Me.useSyncExternalStore=function(x,K,ee){return L.H.useSyncExternalStore(x,K,ee)},Me.useTransition=function(){return L.H.useTransition()},Me.version="19.2.0",Me}var v1;function Zu(){return v1||(v1=1,Sd.exports=P2()),Sd.exports}var Ed={exports:{}},kn={};var b1;function W2(){if(b1)return kn;b1=1;var t=Zu();function l(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(h,p,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:h,containerInfo:p,implementation:b}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,kn.createPortal=function(h,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(h,p,null,b)},kn.flushSync=function(h){var p=d.T,b=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=p,r.p=b,r.d.f()}},kn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(h,p))},kn.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},kn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var b=p.as,S=g(b,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?r.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:v,fetchPriority:_}):b==="script"&&r.d.X(h,{crossOrigin:S,integrity:v,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},kn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);r.d.M(h,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(h)},kn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,S=g(b,p.crossOrigin);r.d.L(h,b,{crossOrigin:S,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})}},kn.preloadModule=function(h,p){if(typeof h=="string")if(p){var b=g(p.as,p.crossOrigin);r.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(h)},kn.requestFormReset=function(h){r.d.r(h)},kn.unstable_batchedUpdates=function(h,p){return h(p)},kn.useFormState=function(h,p,b){return d.H.useFormState(h,p,b)},kn.useFormStatus=function(){return d.H.useHostTransitionStatus()},kn.version="19.2.0",kn}var y1;function $2(){if(y1)return Ed.exports;y1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Ed.exports=W2(),Ed.exports}var _1;function q2(){if(_1)return ns;_1=1;var t=J2(),l=Zu(),i=$2();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(r(188))}function p(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(r(188));return n!==e?null:e}for(var a=e,s=n;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(s=u.return,s!==null){a=s;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return h(u),e;if(c===s)return h(u),n;c=c.sibling}throw Error(r(188))}if(a.return!==s.return)a=u,s=c;else{for(var m=!1,E=u.child;E;){if(E===a){m=!0,a=u,s=c;break}if(E===s){m=!0,s=u,a=c;break}E=E.sibling}if(!m){for(E=c.child;E;){if(E===a){m=!0,a=c,s=u;break}if(E===s){m=!0,s=c,a=u;break}E=E.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:n}function b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(e),n!==null)return n;e=e.sibling}return null}var S=Object.assign,v=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),N=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case O:return"Profiler";case A:return"StrictMode";case B:return"Suspense";case I:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case N:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case k:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case L:return n=e.displayName||null,n!==null?n:he(e.type)||"Memo";case J:n=e._payload,e=e._init;try{return he(e(n))}catch{}}return null}var de=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},be=[],ge=-1;function x(e){return{current:e}}function K(e){0>ge||(e.current=be[ge],be[ge]=null,ge--)}function ee(e,n){ge++,be[ge]=e.current,e.current=n}var oe=x(null),ne=x(null),ce=x(null),me=x(null);function Se(e,n){switch(ee(ce,n),ee(ne,e),ee(oe,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?z0(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=z0(n),e=j0(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(oe),ee(oe,e)}function we(){K(oe),K(ne),K(ce)}function Be(e){e.memoizedState!==null&&ee(me,e);var n=oe.current,a=j0(n,e.type);n!==a&&(ee(ne,e),ee(oe,a))}function St(e){ne.current===e&&(K(oe),K(ne)),me.current===e&&(K(me),Wr._currentValue=Q)}var Ae,gt;function Tt(e){if(Ae===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Ae=n&&n[1]||"",gt=-1<a.stack.indexOf(`
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function G2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vd={exports:{}},ts={};var d1;function Z2(){if(d1)return ts;d1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:t,type:r,key:d,ref:o!==void 0?o:null,props:f}}return ts.Fragment=l,ts.jsx=i,ts.jsxs=i,ts}var h1;function F2(){return h1||(h1=1,vd.exports=Z2()),vd.exports}var y=F2(),bd={exports:{}},ns={},yd={exports:{}},_d={};var p1;function Y2(){return p1||(p1=1,(function(t){function l(j,le){var Q=j.length;j.push(le);e:for(;0<Q;){var be=Q-1>>>1,ge=j[be];if(0<o(ge,le))j[be]=le,j[Q]=ge,Q=be;else break e}}function i(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var le=j[0],Q=j.pop();if(Q!==le){j[0]=Q;e:for(var be=0,ge=j.length,x=ge>>>1;be<x;){var K=2*(be+1)-1,ee=j[K],oe=K+1,ne=j[oe];if(0>o(ee,Q))oe<ge&&0>o(ne,ee)?(j[be]=ne,j[oe]=Q,be=oe):(j[be]=ee,j[K]=Q,be=K);else if(oe<ge&&0>o(ne,Q))j[be]=ne,j[oe]=Q,be=oe;else break e}}return le}function o(j,le){var Q=j.sortIndex-le.sortIndex;return Q!==0?Q:j.id-le.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();t.unstable_now=function(){return d.now()-g}}var h=[],p=[],b=1,S=null,v=3,_=!1,T=!1,w=!1,A=!1,O=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var le=i(p);le!==null;){if(le.callback===null)r(p);else if(le.startTime<=j)r(p),le.sortIndex=le.expirationTime,l(h,le);else break;le=i(p)}}function B(j){if(w=!1,k(j),!T)if(i(h)!==null)T=!0,I||(I=!0,P());else{var le=i(p);le!==null&&de(B,le.startTime-j)}}var I=!1,L=-1,J=5,G=-1;function q(){return A?!0:!(t.unstable_now()-G<J)}function Y(){if(A=!1,I){var j=t.unstable_now();G=j;var le=!0;try{e:{T=!1,w&&(w=!1,C(L),L=-1),_=!0;var Q=v;try{t:{for(k(j),S=i(h);S!==null&&!(S.expirationTime>j&&q());){var be=S.callback;if(typeof be=="function"){S.callback=null,v=S.priorityLevel;var ge=be(S.expirationTime<=j);if(j=t.unstable_now(),typeof ge=="function"){S.callback=ge,k(j),le=!0;break t}S===i(h)&&r(h),k(j)}else r(h);S=i(h)}if(S!==null)le=!0;else{var x=i(p);x!==null&&de(B,x.startTime-j),le=!1}}break e}finally{S=null,v=Q,_=!1}le=void 0}}finally{le?P():I=!1}}}var P;if(typeof N=="function")P=function(){N(Y)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,he=fe.port2;fe.port1.onmessage=Y,P=function(){he.postMessage(null)}}else P=function(){O(Y,0)};function de(j,le){L=O(function(){j(t.unstable_now())},le)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(j){switch(v){case 1:case 2:case 3:var le=3;break;default:le=v}var Q=v;v=le;try{return j()}finally{v=Q}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(j,le){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var Q=v;v=j;try{return le()}finally{v=Q}},t.unstable_scheduleCallback=function(j,le,Q){var be=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?be+Q:be):Q=be,j){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=Q+ge,j={id:b++,callback:le,priorityLevel:j,startTime:Q,expirationTime:ge,sortIndex:-1},Q>be?(j.sortIndex=Q,l(p,j),i(h)===null&&j===i(p)&&(w?(C(L),L=-1):w=!0,de(B,Q-be))):(j.sortIndex=ge,l(h,j),T||_||(T=!0,I||(I=!0,P()))),j},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(j){var le=v;return function(){var Q=v;v=le;try{return j.apply(this,arguments)}finally{v=Q}}}})(_d)),_d}var g1;function K2(){return g1||(g1=1,yd.exports=Y2()),yd.exports}var Sd={exports:{}},Me={};var m1;function J2(){if(m1)return Me;m1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),v=Symbol.iterator;function _(x){return x===null||typeof x!="object"?null:(x=v&&x[v]||x["@@iterator"],typeof x=="function"?x:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function O(x,K,ee){this.props=x,this.context=K,this.refs=A,this.updater=ee||T}O.prototype.isReactComponent={},O.prototype.setState=function(x,K){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,K,"setState")},O.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function C(){}C.prototype=O.prototype;function N(x,K,ee){this.props=x,this.context=K,this.refs=A,this.updater=ee||T}var k=N.prototype=new C;k.constructor=N,w(k,O.prototype),k.isPureReactComponent=!0;var B=Array.isArray;function I(){}var L={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function G(x,K,ee){var oe=ee.ref;return{$$typeof:t,type:x,key:K,ref:oe!==void 0?oe:null,props:ee}}function q(x,K){return G(x.type,K,x.props)}function Y(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function P(x){var K={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(ee){return K[ee]})}var fe=/\/+/g;function he(x,K){return typeof x=="object"&&x!==null&&x.key!=null?P(""+x.key):K.toString(36)}function de(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(I,I):(x.status="pending",x.then(function(K){x.status==="pending"&&(x.status="fulfilled",x.value=K)},function(K){x.status==="pending"&&(x.status="rejected",x.reason=K)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function j(x,K,ee,oe,ne){var ce=typeof x;(ce==="undefined"||ce==="boolean")&&(x=null);var me=!1;if(x===null)me=!0;else switch(ce){case"bigint":case"string":case"number":me=!0;break;case"object":switch(x.$$typeof){case t:case l:me=!0;break;case b:return me=x._init,j(me(x._payload),K,ee,oe,ne)}}if(me)return ne=ne(x),me=oe===""?"."+he(x,0):oe,B(ne)?(ee="",me!=null&&(ee=me.replace(fe,"$&/")+"/"),j(ne,K,ee,"",function(Be){return Be})):ne!=null&&(Y(ne)&&(ne=q(ne,ee+(ne.key==null||x&&x.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+me)),K.push(ne)),1;me=0;var Se=oe===""?".":oe+":";if(B(x))for(var we=0;we<x.length;we++)oe=x[we],ce=Se+he(oe,we),me+=j(oe,K,ee,ce,ne);else if(we=_(x),typeof we=="function")for(x=we.call(x),we=0;!(oe=x.next()).done;)oe=oe.value,ce=Se+he(oe,we++),me+=j(oe,K,ee,ce,ne);else if(ce==="object"){if(typeof x.then=="function")return j(de(x),K,ee,oe,ne);throw K=String(x),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return me}function le(x,K,ee){if(x==null)return x;var oe=[],ne=0;return j(x,oe,"","",function(ce){return K.call(ee,ce,ne++)}),oe}function Q(x){if(x._status===-1){var K=x._result;K=K(),K.then(function(ee){(x._status===0||x._status===-1)&&(x._status=1,x._result=ee)},function(ee){(x._status===0||x._status===-1)&&(x._status=2,x._result=ee)}),x._status===-1&&(x._status=0,x._result=K)}if(x._status===1)return x._result.default;throw x._result}var be=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ge={map:le,forEach:function(x,K,ee){le(x,function(){K.apply(this,arguments)},ee)},count:function(x){var K=0;return le(x,function(){K++}),K},toArray:function(x){return le(x,function(K){return K})||[]},only:function(x){if(!Y(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return Me.Activity=S,Me.Children=ge,Me.Component=O,Me.Fragment=i,Me.Profiler=o,Me.PureComponent=N,Me.StrictMode=r,Me.Suspense=h,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Me.__COMPILER_RUNTIME={__proto__:null,c:function(x){return L.H.useMemoCache(x)}},Me.cache=function(x){return function(){return x.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(x,K,ee){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var oe=w({},x.props),ne=x.key;if(K!=null)for(ce in K.key!==void 0&&(ne=""+K.key),K)!J.call(K,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&K.ref===void 0||(oe[ce]=K[ce]);var ce=arguments.length-2;if(ce===1)oe.children=ee;else if(1<ce){for(var me=Array(ce),Se=0;Se<ce;Se++)me[Se]=arguments[Se+2];oe.children=me}return G(x.type,ne,oe)},Me.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},Me.createElement=function(x,K,ee){var oe,ne={},ce=null;if(K!=null)for(oe in K.key!==void 0&&(ce=""+K.key),K)J.call(K,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ne[oe]=K[oe]);var me=arguments.length-2;if(me===1)ne.children=ee;else if(1<me){for(var Se=Array(me),we=0;we<me;we++)Se[we]=arguments[we+2];ne.children=Se}if(x&&x.defaultProps)for(oe in me=x.defaultProps,me)ne[oe]===void 0&&(ne[oe]=me[oe]);return G(x,ce,ne)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(x){return{$$typeof:g,render:x}},Me.isValidElement=Y,Me.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:Q}},Me.memo=function(x,K){return{$$typeof:p,type:x,compare:K===void 0?null:K}},Me.startTransition=function(x){var K=L.T,ee={};L.T=ee;try{var oe=x(),ne=L.S;ne!==null&&ne(ee,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(I,be)}catch(ce){be(ce)}finally{K!==null&&ee.types!==null&&(K.types=ee.types),L.T=K}},Me.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Me.use=function(x){return L.H.use(x)},Me.useActionState=function(x,K,ee){return L.H.useActionState(x,K,ee)},Me.useCallback=function(x,K){return L.H.useCallback(x,K)},Me.useContext=function(x){return L.H.useContext(x)},Me.useDebugValue=function(){},Me.useDeferredValue=function(x,K){return L.H.useDeferredValue(x,K)},Me.useEffect=function(x,K){return L.H.useEffect(x,K)},Me.useEffectEvent=function(x){return L.H.useEffectEvent(x)},Me.useId=function(){return L.H.useId()},Me.useImperativeHandle=function(x,K,ee){return L.H.useImperativeHandle(x,K,ee)},Me.useInsertionEffect=function(x,K){return L.H.useInsertionEffect(x,K)},Me.useLayoutEffect=function(x,K){return L.H.useLayoutEffect(x,K)},Me.useMemo=function(x,K){return L.H.useMemo(x,K)},Me.useOptimistic=function(x,K){return L.H.useOptimistic(x,K)},Me.useReducer=function(x,K,ee){return L.H.useReducer(x,K,ee)},Me.useRef=function(x){return L.H.useRef(x)},Me.useState=function(x){return L.H.useState(x)},Me.useSyncExternalStore=function(x,K,ee){return L.H.useSyncExternalStore(x,K,ee)},Me.useTransition=function(){return L.H.useTransition()},Me.version="19.2.0",Me}var v1;function Zu(){return v1||(v1=1,Sd.exports=J2()),Sd.exports}var Ed={exports:{}},kn={};var b1;function P2(){if(b1)return kn;b1=1;var t=Zu();function l(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(h,p,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:h,containerInfo:p,implementation:b}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,kn.createPortal=function(h,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(h,p,null,b)},kn.flushSync=function(h){var p=d.T,b=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=p,r.p=b,r.d.f()}},kn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(h,p))},kn.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},kn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var b=p.as,S=g(b,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?r.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:v,fetchPriority:_}):b==="script"&&r.d.X(h,{crossOrigin:S,integrity:v,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},kn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);r.d.M(h,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(h)},kn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,S=g(b,p.crossOrigin);r.d.L(h,b,{crossOrigin:S,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})}},kn.preloadModule=function(h,p){if(typeof h=="string")if(p){var b=g(p.as,p.crossOrigin);r.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(h)},kn.requestFormReset=function(h){r.d.r(h)},kn.unstable_batchedUpdates=function(h,p){return h(p)},kn.useFormState=function(h,p,b){return d.H.useFormState(h,p,b)},kn.useFormStatus=function(){return d.H.useHostTransitionStatus()},kn.version="19.2.0",kn}var y1;function W2(){if(y1)return Ed.exports;y1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Ed.exports=P2(),Ed.exports}var _1;function $2(){if(_1)return ns;_1=1;var t=K2(),l=Zu(),i=W2();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(r(188))}function p(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(r(188));return n!==e?null:e}for(var a=e,s=n;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(s=u.return,s!==null){a=s;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return h(u),e;if(c===s)return h(u),n;c=c.sibling}throw Error(r(188))}if(a.return!==s.return)a=u,s=c;else{for(var m=!1,E=u.child;E;){if(E===a){m=!0,a=u,s=c;break}if(E===s){m=!0,s=u,a=c;break}E=E.sibling}if(!m){for(E=c.child;E;){if(E===a){m=!0,a=c,s=u;break}if(E===s){m=!0,s=c,a=u;break}E=E.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:n}function b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(e),n!==null)return n;e=e.sibling}return null}var S=Object.assign,v=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),N=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case O:return"Profiler";case A:return"StrictMode";case B:return"Suspense";case I:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case N:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case k:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case L:return n=e.displayName||null,n!==null?n:he(e.type)||"Memo";case J:n=e._payload,e=e._init;try{return he(e(n))}catch{}}return null}var de=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},be=[],ge=-1;function x(e){return{current:e}}function K(e){0>ge||(e.current=be[ge],be[ge]=null,ge--)}function ee(e,n){ge++,be[ge]=e.current,e.current=n}var oe=x(null),ne=x(null),ce=x(null),me=x(null);function Se(e,n){switch(ee(ce,n),ee(ne,e),ee(oe,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?z0(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=z0(n),e=j0(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(oe),ee(oe,e)}function we(){K(oe),K(ne),K(ce)}function Be(e){e.memoizedState!==null&&ee(me,e);var n=oe.current,a=j0(n,e.type);n!==a&&(ee(ne,e),ee(oe,a))}function St(e){ne.current===e&&(K(oe),K(ne)),me.current===e&&(K(me),Wr._currentValue=Q)}var Ae,gt;function Tt(e){if(Ae===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Ae=n&&n[1]||"",gt=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Ae+e+gt}var xe=!1;function ct(e,n){if(!e||xe)return"";xe=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(F){var X=F}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(F){X=F}e.call(ae.prototype)}}else{try{throw Error()}catch(F){X=F}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(F){if(F&&X&&typeof F.stack=="string")return[F.stack,X.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),m=c[0],E=c[1];if(m&&E){var R=m.split(`
|
|
4
4
|
`),H=E.split(`
|
|
5
5
|
`);for(u=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;u<H.length&&!H[u].includes("DetermineComponentFrameRoot");)u++;if(s===R.length||u===H.length)for(s=R.length-1,u=H.length-1;1<=s&&0<=u&&R[s]!==H[u];)u--;for(;1<=s&&0<=u;s--,u--)if(R[s]!==H[u]){if(s!==1||u!==1)do if(s--,u--,0>u||R[s]!==H[u]){var $=`
|
|
6
6
|
`+R[s].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=s&&0<=u);break}}}finally{xe=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Tt(a):""}function tn(e,n){switch(e.tag){case 26:case 27:case 5:return Tt(e.type);case 16:return Tt("Lazy");case 13:return e.child!==n&&n!==null?Tt("Suspense Fallback"):Tt("Suspense");case 19:return Tt("SuspenseList");case 0:case 15:return ct(e.type,!1);case 11:return ct(e.type.render,!1);case 1:return ct(e.type,!0);case 31:return Tt("Activity");default:return""}}function Sn(e){try{var n="",a=null;do n+=tn(e,a),a=e,e=e.return;while(e);return n}catch(s){return`
|
|
7
7
|
Error generating stack: `+s.message+`
|
|
8
|
-
`+s.stack}}var Xe=Object.prototype.hasOwnProperty,Zt=t.unstable_scheduleCallback,Ct=t.unstable_cancelCallback,nn=t.unstable_shouldYield,Et=t.unstable_requestPaint,st=t.unstable_now,On=t.unstable_getCurrentPriorityLevel,It=t.unstable_ImmediatePriority,Ft=t.unstable_UserBlockingPriority,Vt=t.unstable_NormalPriority,cn=t.unstable_LowPriority,fn=t.unstable_IdlePriority,ua=t.log,nt=t.unstable_setDisableYieldValue,dn=null,mt=null;function ft(e){if(typeof ua=="function"&&nt(e),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(dn,e)}catch{}}var Je=Math.clz32?Math.clz32:hn,qe=Math.log,an=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(qe(e)/an|0)|0}var Lt=256,at=262144,Yt=4194304;function At(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Dn(e,n,a){var s=e.pendingLanes;if(s===0)return 0;var u=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var E=s&134217727;return E!==0?(s=E&~c,s!==0?u=At(s):(m&=E,m!==0?u=At(m):a||(a=E&~e,a!==0&&(u=At(a))))):(E=s&~c,E!==0?u=At(E):m!==0?u=At(m):a||(a=s&~e,a!==0&&(u=At(a)))),u===0?0:n!==0&&n!==u&&(n&c)===0&&(c=u&-u,a=n&-n,c>=a||c===32&&(a&4194048)!==0)?n:u}function Rn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function vt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ln(){var e=Yt;return Yt<<=1,(Yt&62914560)===0&&(Yt=4194304),e}function ca(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function jn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fa(e,n,a,s,u,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,R=e.expirationTimes,H=e.hiddenUpdates;for(a=m&~a;0<a;){var $=31-Je(a),ae=1<<$;E[$]=0,R[$]=-1;var X=H[$];if(X!==null)for(H[$]=null,$=0;$<X.length;$++){var F=X[$];F!==null&&(F.lane&=-536870913)}a&=~ae}s!==0&&rn(e,s,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~n))}function rn(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-Je(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|a&261930}function sn(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var s=31-Je(a),u=1<<s;u&n|e[s]&n&&(e[s]|=n),a&=~u}}function Kt(e,n){var a=n&-n;return a=(a&42)!==0?1:zt(a),(a&(e.suspendedLanes|n))!==0?0:a}function zt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bn(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:i1(e.type))}function Nn(e,n){var a=le.p;try{return le.p=e,n()}finally{le.p=a}}var jt=Math.random().toString(36).slice(2),De="__reactFiber$"+jt,et="__reactProps$"+jt,pn="__reactContainer$"+jt,Fn="__reactEvents$"+jt,on="__reactListeners$"+jt,wa="__reactHandles$"+jt,ze="__reactResources$"+jt,ue="__reactMarker$"+jt;function D(e){delete e[De],delete e[et],delete e[Fn],delete e[on],delete e[wa]}function W(e){var n=e[De];if(n)return n;for(var a=e.parentNode;a;){if(n=a[pn]||a[De]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=Q0(e);e!==null;){if(a=e[De])return a;e=Q0(e)}return n}e=a,a=e.parentNode}return null}function re(e){if(e=e[De]||e[pn]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ee(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function Qe(e){var n=e[ze];return n||(n=e[ze]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pe(e){e[ue]=!0}var dt=new Set,Re={};function lt(e,n){tt(e,n),tt(e+"Capture",n)}function tt(e,n){for(Re[e]=n,e=0;e<n.length;e++)dt.add(n[e])}var Ne=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]*$"),Mt={},Xt={};function La(e){return Xe.call(Xt,e)?!0:Xe.call(Mt,e)?!1:Ne.test(e)?Xt[e]=!0:(Mt[e]=!0,!1)}function Ue(e,n,a){if(La(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Yn(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function gn(e,n,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+s)}}function Mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function za(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function uc(e,n,a){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,c=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function vi(e){if(!e._valueTracker){var n=za(e)?"checked":"value";e._valueTracker=uc(e,n,""+e[n])}}function ks(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),s="";return e&&(s=za(e)?e.checked?"true":"false":e.value),e=s,e!==a?(n.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var yi=/[\n"\\]/g;function Un(e){return e.replace(yi,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function cc(e,n,a,s,u,c,m,E){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),n!=null?m==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Mn(n)):e.value!==""+Mn(n)&&(e.value=""+Mn(n)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),n!=null?fc(e,m,Mn(n)):a!=null?fc(e,m,Mn(a)):s!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+Mn(E):e.removeAttribute("name")}function hr(e,n,a,s,u,c,m,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),n!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||n!=null)){vi(e);return}a=a!=null?""+Mn(a):"",n=n!=null?""+Mn(n):a,E||n===e.value||(e.value=n),e.defaultValue=n}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=E?e.checked:!!s,e.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),vi(e)}function fc(e,n,a){n==="number"&&bi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ml(e,n,a,s){if(e=e.options,n){n={};for(var u=0;u<a.length;u++)n["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=n.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Mn(a),n=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Rp(e,n,a){if(n!=null&&(n=""+Mn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+Mn(a):""}function Np(e,n,a,s){if(n==null){if(s!=null){if(a!=null)throw Error(r(92));if(de(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),n=a}a=Mn(n),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s),vi(e)}function Xa(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var Iy=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 Mp(e,n,a){var s=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,a):typeof a!="number"||a===0||Iy.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function kp(e,n,a){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var u in n)s=n[u],n.hasOwnProperty(u)&&a[u]!==s&&Mp(e,u,s)}else for(var c in n)n.hasOwnProperty(c)&&Mp(e,c,n[c])}function dc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vy=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"]]),Xy=/^[\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 Ls(e){return Xy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qa(){}var hc=null;function pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _i=null,Si=null;function Lp(e){var n=re(e);if(n&&(e=n.stateNode)){var a=e[et]||null;e:switch(e=n.stateNode,n.type){case"input":if(cc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Un(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var s=a[n];if(s!==e&&s.form===e.form){var u=s[et]||null;if(!u)throw Error(r(90));cc(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<a.length;n++)s=a[n],s.form===e.form&&ks(s)}break e;case"textarea":Rp(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&ml(e,!!a.multiple,n,!1)}}}var gc=!1;function zp(e,n,a){if(gc)return e(n,a);gc=!0;try{var s=e(n);return s}finally{if(gc=!1,(_i!==null||Si!==null)&&(Eo(),_i&&(n=_i,e=Si,Si=_i=null,Lp(n),e)))for(n=0;n<e.length;n++)Lp(e[n])}}function pr(e,n){var a=e.stateNode;if(a===null)return null;var s=a[et]||null;if(s===null)return null;a=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)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,n,typeof a));return a}var Ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mc=!1;if(Ga)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){mc=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{mc=!1}var vl=null,vc=null,zs=null;function jp(){if(zs)return zs;var e,n=vc,a=n.length,s,u="value"in vl?vl.value:vl.textContent,c=u.length;for(e=0;e<a&&n[e]===u[e];e++);var m=a-e;for(s=1;s<=m&&n[a-s]===u[c-s];s++);return zs=u.slice(e,1<s?1-s:void 0)}function js(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Bs(){return!0}function Bp(){return!1}function Kn(e){function n(a,s,u,c,m){this._reactName=a,this._targetInst=u,this.type=s,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Bs:Bp,this.isPropagationStopped=Bp,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Bs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Bs)},persist:function(){},isPersistent:Bs}),n}var Fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Us=Kn(Fl),mr=S({},Fl,{view:0,detail:0}),Qy=Kn(mr),bc,yc,vr,Hs=S({},mr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vr&&(vr&&e.type==="mousemove"?(bc=e.screenX-vr.screenX,yc=e.screenY-vr.screenY):yc=bc=0,vr=e),bc)},movementY:function(e){return"movementY"in e?e.movementY:yc}}),Up=Kn(Hs),Gy=S({},Hs,{dataTransfer:0}),Zy=Kn(Gy),Fy=S({},mr,{relatedTarget:0}),_c=Kn(Fy),Yy=S({},Fl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ky=Kn(Yy),Jy=S({},Fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Py=Kn(Jy),Wy=S({},Fl,{data:0}),Hp=Kn(Wy),$y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qy={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"},e_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=e_[e])?!!n[e]:!1}function Sc(){return t_}var n_=S({},mr,{key:function(e){if(e.key){var n=$y[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=js(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sc,charCode:function(e){return e.type==="keypress"?js(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?js(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a_=Kn(n_),l_=S({},Hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ip=Kn(l_),i_=S({},mr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sc}),r_=Kn(i_),s_=S({},Fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),o_=Kn(s_),u_=S({},Hs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),c_=Kn(u_),f_=S({},Fl,{newState:0,oldState:0}),d_=Kn(f_),h_=[9,13,27,32],Ec=Ga&&"CompositionEvent"in window,br=null;Ga&&"documentMode"in document&&(br=document.documentMode);var p_=Ga&&"TextEvent"in window&&!br,Vp=Ga&&(!Ec||br&&8<br&&11>=br),Xp=" ",Qp=!1;function Gp(e,n){switch(e){case"keyup":return h_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ei=!1;function g_(e,n){switch(e){case"compositionend":return Zp(n);case"keypress":return n.which!==32?null:(Qp=!0,Xp);case"textInput":return e=n.data,e===Xp&&Qp?null:e;default:return null}}function m_(e,n){if(Ei)return e==="compositionend"||!Ec&&Gp(e,n)?(e=jp(),zs=vc=vl=null,Ei=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Vp&&n.locale!=="ko"?null:n.data;default:return null}}var v_={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 Fp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!v_[e.type]:n==="textarea"}function Yp(e,n,a,s){_i?Si?Si.push(s):Si=[s]:_i=s,n=Do(n,"onChange"),0<n.length&&(a=new Us("onChange","change",null,a,s),e.push({event:a,listeners:n}))}var yr=null,_r=null;function b_(e){D0(e,0)}function Is(e){var n=Ee(e);if(ks(n))return e}function Kp(e,n){if(e==="change")return n}var Jp=!1;if(Ga){var wc;if(Ga){var Tc="oninput"in document;if(!Tc){var Pp=document.createElement("div");Pp.setAttribute("oninput","return;"),Tc=typeof Pp.oninput=="function"}wc=Tc}else wc=!1;Jp=wc&&(!document.documentMode||9<document.documentMode)}function Wp(){yr&&(yr.detachEvent("onpropertychange",$p),_r=yr=null)}function $p(e){if(e.propertyName==="value"&&Is(_r)){var n=[];Yp(n,_r,e,pc(e)),zp(b_,n)}}function y_(e,n,a){e==="focusin"?(Wp(),yr=n,_r=a,yr.attachEvent("onpropertychange",$p)):e==="focusout"&&Wp()}function __(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Is(_r)}function S_(e,n){if(e==="click")return Is(n)}function E_(e,n){if(e==="input"||e==="change")return Is(n)}function w_(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var ea=typeof Object.is=="function"?Object.is:w_;function Sr(e,n){if(ea(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var u=a[s];if(!Xe.call(n,u)||!ea(e[u],n[u]))return!1}return!0}function qp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eg(e,n){var a=qp(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=n&&s>=n)return{node:a,offset:n-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=qp(a)}}function tg(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?tg(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ng(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=bi(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=bi(e.document)}return n}function Ac(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var T_=Ga&&"documentMode"in document&&11>=document.documentMode,wi=null,Cc=null,Er=null,xc=!1;function ag(e,n,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;xc||wi==null||wi!==bi(s)||(s=wi,"selectionStart"in s&&Ac(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}),Er&&Sr(Er,s)||(Er=s,s=Do(Cc,"onSelect"),0<s.length&&(n=new Us("onSelect","select",null,n,a),e.push({event:n,listeners:s}),n.target=wi)))}function Yl(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Ti={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},Oc={},lg={};Ga&&(lg=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function Kl(e){if(Oc[e])return Oc[e];if(!Ti[e])return e;var n=Ti[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in lg)return Oc[e]=n[a];return e}var ig=Kl("animationend"),rg=Kl("animationiteration"),sg=Kl("animationstart"),A_=Kl("transitionrun"),C_=Kl("transitionstart"),x_=Kl("transitioncancel"),og=Kl("transitionend"),ug=new Map,Dc="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(" ");Dc.push("scrollEnd");function Ta(e,n){ug.set(e,n),lt(n,[e])}var Vs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},da=[],Ai=0,Rc=0;function Xs(){for(var e=Ai,n=Rc=Ai=0;n<e;){var a=da[n];da[n++]=null;var s=da[n];da[n++]=null;var u=da[n];da[n++]=null;var c=da[n];if(da[n++]=null,s!==null&&u!==null){var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}c!==0&&cg(a,u,c)}}function Qs(e,n,a,s){da[Ai++]=e,da[Ai++]=n,da[Ai++]=a,da[Ai++]=s,Rc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Nc(e,n,a,s){return Qs(e,n,a,s),Gs(e)}function Jl(e,n){return Qs(e,null,null,n),Gs(e)}function cg(e,n,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&n!==null&&(u=31-Je(a),e=c.hiddenUpdates,s=e[u],s===null?e[u]=[n]:s.push(n),n.lane=a|536870912),c):null}function Gs(e){if(50<Gr)throw Gr=0,Vf=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Ci={};function O_(e,n,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,n,a,s){return new O_(e,n,a,s)}function Mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Za(e,n){var a=e.alternate;return a===null?(a=ta(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function fg(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Zs(e,n,a,s,u,c){var m=0;if(s=e,typeof e=="function")Mc(e)&&(m=1);else if(typeof e=="string")m=k2(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=ta(31,a,n,u),e.elementType=G,e.lanes=c,e;case T:return Pl(a.children,u,c,n);case A:m=8,u|=24;break;case O:return e=ta(12,a,n,u|2),e.elementType=O,e.lanes=c,e;case B:return e=ta(13,a,n,u),e.elementType=B,e.lanes=c,e;case I:return e=ta(19,a,n,u),e.elementType=I,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:m=10;break e;case C:m=9;break e;case k:m=11;break e;case L:m=14;break e;case J:m=16,s=null;break e}m=29,a=Error(r(130,e===null?"null":typeof e,"")),s=null}return n=ta(m,a,n,u),n.elementType=e,n.type=s,n.lanes=c,n}function Pl(e,n,a,s){return e=ta(7,e,s,n),e.lanes=a,e}function kc(e,n,a){return e=ta(6,e,null,n),e.lanes=a,e}function dg(e){var n=ta(18,null,null,0);return n.stateNode=e,n}function Lc(e,n,a){return n=ta(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var hg=new WeakMap;function ha(e,n){if(typeof e=="object"&&e!==null){var a=hg.get(e);return a!==void 0?a:(n={value:e,source:n,stack:Sn(n)},hg.set(e,n),n)}return{value:e,source:n,stack:Sn(n)}}var xi=[],Oi=0,Fs=null,wr=0,pa=[],ga=0,bl=null,ja=1,Ba="";function Fa(e,n){xi[Oi++]=wr,xi[Oi++]=Fs,Fs=e,wr=n}function pg(e,n,a){pa[ga++]=ja,pa[ga++]=Ba,pa[ga++]=bl,bl=e;var s=ja;e=Ba;var u=32-Je(s)-1;s&=~(1<<u),a+=1;var c=32-Je(n)+u;if(30<c){var m=u-u%5;c=(s&(1<<m)-1).toString(32),s>>=m,u-=m,ja=1<<32-Je(n)+u|a<<u|s,Ba=c+e}else ja=1<<c|a<<u|s,Ba=e}function zc(e){e.return!==null&&(Fa(e,1),pg(e,1,0))}function jc(e){for(;e===Fs;)Fs=xi[--Oi],xi[Oi]=null,wr=xi[--Oi],xi[Oi]=null;for(;e===bl;)bl=pa[--ga],pa[ga]=null,Ba=pa[--ga],pa[ga]=null,ja=pa[--ga],pa[ga]=null}function gg(e,n){pa[ga++]=ja,pa[ga++]=Ba,pa[ga++]=bl,ja=n.id,Ba=n.overflow,bl=e}var En=null,xt=null,Ye=!1,yl=null,ma=!1,Bc=Error(r(519));function _l(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tr(ha(n,e)),Bc}function mg(e){var n=e.stateNode,a=e.type,s=e.memoizedProps;switch(n[De]=e,n[et]=s,a){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(a=0;a<Fr.length;a++)Ie(Fr[a],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":Ie("invalid",n),hr(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ie("invalid",n);break;case"textarea":Ie("invalid",n),Np(n,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||s.suppressHydrationWarning===!0||k0(n.textContent,a)?(s.popover!=null&&(Ie("beforetoggle",n),Ie("toggle",n)),s.onScroll!=null&&Ie("scroll",n),s.onScrollEnd!=null&&Ie("scrollend",n),s.onClick!=null&&(n.onclick=Qa),n=!0):n=!1,n||_l(e,!0)}function vg(e){for(En=e.return;En;)switch(En.tag){case 5:case 31:case 13:ma=!1;return;case 27:case 3:ma=!0;return;default:En=En.return}}function Di(e){if(e!==En)return!1;if(!Ye)return vg(e),Ye=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||nd(e.type,e.memoizedProps)),a=!a),a&&xt&&_l(e),vg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));xt=X0(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));xt=X0(e)}else n===27?(n=xt,Ll(e.type)?(e=sd,sd=null,xt=e):xt=n):xt=En?ba(e.stateNode.nextSibling):null;return!0}function Wl(){xt=En=null,Ye=!1}function Uc(){var e=yl;return e!==null&&($n===null?$n=e:$n.push.apply($n,e),yl=null),e}function Tr(e){yl===null?yl=[e]:yl.push(e)}var Hc=x(null),$l=null,Ya=null;function Sl(e,n,a){ee(Hc,n._currentValue),n._currentValue=a}function Ka(e){e._currentValue=Hc.current,K(Hc)}function Ic(e,n,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===a)break;e=e.return}}function Vc(e,n,a,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var m=u.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=u;for(var R=0;R<n.length;R++)if(E.context===n[R]){c.lanes|=a,E=c.alternate,E!==null&&(E.lanes|=a),Ic(c.return,a,e),s||(m=null);break e}c=E.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Ic(m,a,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Ri(e,n,a,s){e=null;for(var u=n,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var E=u.type;ea(u.pendingProps.value,m.value)||(e!==null?e.push(E):e=[E])}}else if(u===me.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Wr):e=[Wr])}u=u.return}e!==null&&Vc(n,e,a,s),n.flags|=262144}function Ys(e){for(e=e.firstContext;e!==null;){if(!ea(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ql(e){$l=e,Ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wn(e){return bg($l,e)}function Ks(e,n){return $l===null&&ql(e),bg(e,n)}function bg(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Ya===null){if(e===null)throw Error(r(308));Ya=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Ya=Ya.next=n;return a}var D_=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},R_=t.unstable_scheduleCallback,N_=t.unstable_NormalPriority,Jt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xc(){return{controller:new D_,data:new Map,refCount:0}}function Ar(e){e.refCount--,e.refCount===0&&R_(N_,function(){e.controller.abort()})}var Cr=null,Qc=0,Ni=0,Mi=null;function M_(e,n){if(Cr===null){var a=Cr=[];Qc=0,Ni=Yf(),Mi={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Qc++,n.then(yg,yg),n}function yg(){if(--Qc===0&&Cr!==null){Mi!==null&&(Mi.status="fulfilled");var e=Cr;Cr=null,Ni=0,Mi=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function k_(e,n){var a=[],s={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var u=0;u<a.length;u++)(0,a[u])(n)},function(u){for(s.status="rejected",s.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),s}var _g=j.S;j.S=function(e,n){a0=st(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&M_(e,n),_g!==null&&_g(e,n)};var ei=x(null);function Gc(){var e=ei.current;return e!==null?e:wt.pooledCache}function Js(e,n){n===null?ee(ei,ei.current):ee(ei,n.pool)}function Sg(){var e=Gc();return e===null?null:{parent:Jt._currentValue,pool:e}}var ki=Error(r(460)),Zc=Error(r(474)),Ps=Error(r(542)),Ws={then:function(){}};function Eg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wg(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Qa,Qa),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ag(e),e;default:if(typeof n.status=="string")n.then(Qa,Qa);else{if(e=wt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=s}},function(s){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ag(e),e}throw ni=n,ki}}function ti(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ni=a,ki):a}}var ni=null;function Tg(){if(ni===null)throw Error(r(459));var e=ni;return ni=null,e}function Ag(e){if(e===ki||e===Ps)throw Error(r(483))}var Li=null,xr=0;function $s(e){var n=xr;return xr+=1,Li===null&&(Li=[]),wg(Li,e,n)}function Or(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function qs(e,n){throw n.$$typeof===v?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Cg(e){function n(z,M){if(e){var U=z.deletions;U===null?(z.deletions=[M],z.flags|=16):U.push(M)}}function a(z,M){if(!e)return null;for(;M!==null;)n(z,M),M=M.sibling;return null}function s(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function u(z,M){return z=Za(z,M),z.index=0,z.sibling=null,z}function c(z,M,U){return z.index=U,e?(U=z.alternate,U!==null?(U=U.index,U<M?(z.flags|=67108866,M):U):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function E(z,M,U,te){return M===null||M.tag!==6?(M=kc(U,z.mode,te),M.return=z,M):(M=u(M,U),M.return=z,M)}function R(z,M,U,te){var Te=U.type;return Te===T?$(z,M,U.props.children,te,U.key):M!==null&&(M.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===J&&ti(Te)===M.type)?(M=u(M,U.props),Or(M,U),M.return=z,M):(M=Zs(U.type,U.key,U.props,null,z.mode,te),Or(M,U),M.return=z,M)}function H(z,M,U,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==U.containerInfo||M.stateNode.implementation!==U.implementation?(M=Lc(U,z.mode,te),M.return=z,M):(M=u(M,U.children||[]),M.return=z,M)}function $(z,M,U,te,Te){return M===null||M.tag!==7?(M=Pl(U,z.mode,te,Te),M.return=z,M):(M=u(M,U),M.return=z,M)}function ae(z,M,U){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=kc(""+M,z.mode,U),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case _:return U=Zs(M.type,M.key,M.props,null,z.mode,U),Or(U,M),U.return=z,U;case w:return M=Lc(M,z.mode,U),M.return=z,M;case J:return M=ti(M),ae(z,M,U)}if(de(M)||P(M))return M=Pl(M,z.mode,U,null),M.return=z,M;if(typeof M.then=="function")return ae(z,$s(M),U);if(M.$$typeof===N)return ae(z,Ks(z,M),U);qs(z,M)}return null}function X(z,M,U,te){var Te=M!==null?M.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return Te!==null?null:E(z,M,""+U,te);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case _:return U.key===Te?R(z,M,U,te):null;case w:return U.key===Te?H(z,M,U,te):null;case J:return U=ti(U),X(z,M,U,te)}if(de(U)||P(U))return Te!==null?null:$(z,M,U,te,null);if(typeof U.then=="function")return X(z,M,$s(U),te);if(U.$$typeof===N)return X(z,M,Ks(z,U),te);qs(z,U)}return null}function F(z,M,U,te,Te){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return z=z.get(U)||null,E(M,z,""+te,Te);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case _:return z=z.get(te.key===null?U:te.key)||null,R(M,z,te,Te);case w:return z=z.get(te.key===null?U:te.key)||null,H(M,z,te,Te);case J:return te=ti(te),F(z,M,U,te,Te)}if(de(te)||P(te))return z=z.get(U)||null,$(M,z,te,Te,null);if(typeof te.then=="function")return F(z,M,U,$s(te),Te);if(te.$$typeof===N)return F(z,M,U,Ks(M,te),Te);qs(M,te)}return null}function ve(z,M,U,te){for(var Te=null,it=null,_e=M,je=M=0,Ze=null;_e!==null&&je<U.length;je++){_e.index>je?(Ze=_e,_e=null):Ze=_e.sibling;var rt=X(z,_e,U[je],te);if(rt===null){_e===null&&(_e=Ze);break}e&&_e&&rt.alternate===null&&n(z,_e),M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt,_e=Ze}if(je===U.length)return a(z,_e),Ye&&Fa(z,je),Te;if(_e===null){for(;je<U.length;je++)_e=ae(z,U[je],te),_e!==null&&(M=c(_e,M,je),it===null?Te=_e:it.sibling=_e,it=_e);return Ye&&Fa(z,je),Te}for(_e=s(_e);je<U.length;je++)Ze=F(_e,z,je,U[je],te),Ze!==null&&(e&&Ze.alternate!==null&&_e.delete(Ze.key===null?je:Ze.key),M=c(Ze,M,je),it===null?Te=Ze:it.sibling=Ze,it=Ze);return e&&_e.forEach(function(Hl){return n(z,Hl)}),Ye&&Fa(z,je),Te}function Ce(z,M,U,te){if(U==null)throw Error(r(151));for(var Te=null,it=null,_e=M,je=M=0,Ze=null,rt=U.next();_e!==null&&!rt.done;je++,rt=U.next()){_e.index>je?(Ze=_e,_e=null):Ze=_e.sibling;var Hl=X(z,_e,rt.value,te);if(Hl===null){_e===null&&(_e=Ze);break}e&&_e&&Hl.alternate===null&&n(z,_e),M=c(Hl,M,je),it===null?Te=Hl:it.sibling=Hl,it=Hl,_e=Ze}if(rt.done)return a(z,_e),Ye&&Fa(z,je),Te;if(_e===null){for(;!rt.done;je++,rt=U.next())rt=ae(z,rt.value,te),rt!==null&&(M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt);return Ye&&Fa(z,je),Te}for(_e=s(_e);!rt.done;je++,rt=U.next())rt=F(_e,z,je,rt.value,te),rt!==null&&(e&&rt.alternate!==null&&_e.delete(rt.key===null?je:rt.key),M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt);return e&&_e.forEach(function(G2){return n(z,G2)}),Ye&&Fa(z,je),Te}function _t(z,M,U,te){if(typeof U=="object"&&U!==null&&U.type===T&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case _:e:{for(var Te=U.key;M!==null;){if(M.key===Te){if(Te=U.type,Te===T){if(M.tag===7){a(z,M.sibling),te=u(M,U.props.children),te.return=z,z=te;break e}}else if(M.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===J&&ti(Te)===M.type){a(z,M.sibling),te=u(M,U.props),Or(te,U),te.return=z,z=te;break e}a(z,M);break}else n(z,M);M=M.sibling}U.type===T?(te=Pl(U.props.children,z.mode,te,U.key),te.return=z,z=te):(te=Zs(U.type,U.key,U.props,null,z.mode,te),Or(te,U),te.return=z,z=te)}return m(z);case w:e:{for(Te=U.key;M!==null;){if(M.key===Te)if(M.tag===4&&M.stateNode.containerInfo===U.containerInfo&&M.stateNode.implementation===U.implementation){a(z,M.sibling),te=u(M,U.children||[]),te.return=z,z=te;break e}else{a(z,M);break}else n(z,M);M=M.sibling}te=Lc(U,z.mode,te),te.return=z,z=te}return m(z);case J:return U=ti(U),_t(z,M,U,te)}if(de(U))return ve(z,M,U,te);if(P(U)){if(Te=P(U),typeof Te!="function")throw Error(r(150));return U=Te.call(U),Ce(z,M,U,te)}if(typeof U.then=="function")return _t(z,M,$s(U),te);if(U.$$typeof===N)return _t(z,M,Ks(z,U),te);qs(z,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,M!==null&&M.tag===6?(a(z,M.sibling),te=u(M,U),te.return=z,z=te):(a(z,M),te=kc(U,z.mode,te),te.return=z,z=te),m(z)):a(z,M)}return function(z,M,U,te){try{xr=0;var Te=_t(z,M,U,te);return Li=null,Te}catch(_e){if(_e===ki||_e===Ps)throw _e;var it=ta(29,_e,null,z.mode);return it.lanes=te,it.return=z,it}finally{}}}var ai=Cg(!0),xg=Cg(!1),El=!1;function Fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,n,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ot&2)!==0){var u=s.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),s.pending=n,n=Gs(e),cg(e,null,a),n}return Qs(e,s,n,a),Gs(e)}function Dr(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,sn(e,a)}}function Kc(e,n){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?u=c=n:c=c.next=n}else u=c=n;a={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Jc=!1;function Rr(){if(Jc){var e=Mi;if(e!==null)throw e}}function Nr(e,n,a,s){Jc=!1;var u=e.updateQueue;El=!1;var c=u.firstBaseUpdate,m=u.lastBaseUpdate,E=u.shared.pending;if(E!==null){u.shared.pending=null;var R=E,H=R.next;R.next=null,m===null?c=H:m.next=H,m=R;var $=e.alternate;$!==null&&($=$.updateQueue,E=$.lastBaseUpdate,E!==m&&(E===null?$.firstBaseUpdate=H:E.next=H,$.lastBaseUpdate=R))}if(c!==null){var ae=u.baseState;m=0,$=H=R=null,E=c;do{var X=E.lane&-536870913,F=X!==E.lane;if(F?(Ge&X)===X:(s&X)===X){X!==0&&X===Ni&&(Jc=!0),$!==null&&($=$.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ve=e,Ce=E;X=n;var _t=a;switch(Ce.tag){case 1:if(ve=Ce.payload,typeof ve=="function"){ae=ve.call(_t,ae,X);break e}ae=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ce.payload,X=typeof ve=="function"?ve.call(_t,ae,X):ve,X==null)break e;ae=S({},ae,X);break e;case 2:El=!0}}X=E.callback,X!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[X]:F.push(X))}else F={lane:X,tag:E.tag,payload:E.payload,callback:E.callback,next:null},$===null?(H=$=F,R=ae):$=$.next=F,m|=X;if(E=E.next,E===null){if(E=u.shared.pending,E===null)break;F=E,E=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);$===null&&(R=ae),u.baseState=R,u.firstBaseUpdate=H,u.lastBaseUpdate=$,c===null&&(u.shared.lanes=0),Dl|=m,e.lanes=m,e.memoizedState=ae}}function Og(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function Dg(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Og(a[e],n)}var zi=x(null),eo=x(0);function Rg(e,n){e=al,ee(eo,e),ee(zi,n),al=e|n.baseLanes}function Pc(){ee(eo,al),ee(zi,zi.current)}function Wc(){al=eo.current,K(zi),K(eo)}var na=x(null),va=null;function Al(e){var n=e.alternate;ee(Qt,Qt.current&1),ee(na,e),va===null&&(n===null||zi.current!==null||n.memoizedState!==null)&&(va=e)}function $c(e){ee(Qt,Qt.current),ee(na,e),va===null&&(va=e)}function Ng(e){e.tag===22?(ee(Qt,Qt.current),ee(na,e),va===null&&(va=e)):Cl()}function Cl(){ee(Qt,Qt.current),ee(na,na.current)}function aa(e){K(na),va===e&&(va=null),K(Qt)}var Qt=x(0);function to(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||id(a)||rd(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ja=0,Le=null,bt=null,Pt=null,no=!1,ji=!1,li=!1,ao=0,Mr=0,Bi=null,L_=0;function Bt(){throw Error(r(321))}function qc(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!ea(e[a],n[a]))return!1;return!0}function ef(e,n,a,s,u,c){return Ja=c,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,j.H=e===null||e.memoizedState===null?pm:mf,li=!1,c=a(s,u),li=!1,ji&&(c=kg(n,a,s,u)),Mg(e),c}function Mg(e){j.H=zr;var n=bt!==null&&bt.next!==null;if(Ja=0,Pt=bt=Le=null,no=!1,Mr=0,Bi=null,n)throw Error(r(300));e===null||Wt||(e=e.dependencies,e!==null&&Ys(e)&&(Wt=!0))}function kg(e,n,a,s){Le=e;var u=0;do{if(ji&&(Bi=null),Mr=0,ji=!1,25<=u)throw Error(r(301));if(u+=1,Pt=bt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=gm,c=n(a,s)}while(ji);return c}function z_(){var e=j.H,n=e.useState()[0];return n=typeof n.then=="function"?kr(n):n,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(Le.flags|=1024),n}function tf(){var e=ao!==0;return ao=0,e}function nf(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function af(e){if(no){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}no=!1}Ja=0,Pt=bt=Le=null,ji=!1,Mr=ao=0,Bi=null}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Le.memoizedState=Pt=e:Pt=Pt.next=e,Pt}function Gt(){if(bt===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var n=Pt===null?Le.memoizedState:Pt.next;if(n!==null)Pt=n,bt=e;else{if(e===null)throw Le.alternate===null?Error(r(467)):Error(r(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Pt===null?Le.memoizedState=Pt=e:Pt=Pt.next=e}return Pt}function lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kr(e){var n=Mr;return Mr+=1,Bi===null&&(Bi=[]),e=wg(Bi,e,n),n=Le,(Pt===null?n.memoizedState:Pt.next)===null&&(n=n.alternate,j.H=n===null||n.memoizedState===null?pm:mf),e}function io(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return kr(e);if(e.$$typeof===N)return wn(e)}throw Error(r(438,String(e)))}function lf(e){var n=null,a=Le.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var s=Le.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=lo(),Le.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),s=0;s<e;s++)a[s]=q;return n.index++,a}function Pa(e,n){return typeof n=="function"?n(e):n}function ro(e){var n=Gt();return rf(n,bt,e)}function rf(e,n,a){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var u=e.baseQueue,c=s.pending;if(c!==null){if(u!==null){var m=u.next;u.next=c.next,c.next=m}n.baseQueue=u=c,s.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{n=u.next;var E=m=null,R=null,H=n,$=!1;do{var ae=H.lane&-536870913;if(ae!==H.lane?(Ge&ae)===ae:(Ja&ae)===ae){var X=H.revertLane;if(X===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),ae===Ni&&($=!0);else if((Ja&X)===X){H=H.next,X===Ni&&($=!0);continue}else ae={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(E=R=ae,m=c):R=R.next=ae,Le.lanes|=X,Dl|=X;ae=H.action,li&&a(c,ae),c=H.hasEagerState?H.eagerState:a(c,ae)}else X={lane:ae,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(E=R=X,m=c):R=R.next=X,Le.lanes|=ae,Dl|=ae;H=H.next}while(H!==null&&H!==n);if(R===null?m=c:R.next=E,!ea(c,e.memoizedState)&&(Wt=!0,$&&(a=Mi,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=R,s.lastRenderedState=c}return u===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function sf(e){var n=Gt(),a=n.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var s=a.dispatch,u=a.pending,c=n.memoizedState;if(u!==null){a.pending=null;var m=u=u.next;do c=e(c,m.action),m=m.next;while(m!==u);ea(c,n.memoizedState)||(Wt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),a.lastRenderedState=c}return[c,s]}function Lg(e,n,a){var s=Le,u=Gt(),c=Ye;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=n();var m=!ea((bt||u).memoizedState,a);if(m&&(u.memoizedState=a,Wt=!0),u=u.queue,cf(Bg.bind(null,s,u,e),[e]),u.getSnapshot!==n||m||Pt!==null&&Pt.memoizedState.tag&1){if(s.flags|=2048,Ui(9,{destroy:void 0},jg.bind(null,s,u,a,n),null),wt===null)throw Error(r(349));c||(Ja&127)!==0||zg(s,n,a)}return a}function zg(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=Le.updateQueue,n===null?(n=lo(),Le.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function jg(e,n,a,s){n.value=a,n.getSnapshot=s,Ug(n)&&Hg(e)}function Bg(e,n,a){return a(function(){Ug(n)&&Hg(e)})}function Ug(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!ea(e,a)}catch{return!0}}function Hg(e){var n=Jl(e,2);n!==null&&qn(n,e,2)}function of(e){var n=Hn();if(typeof e=="function"){var a=e;if(e=a(),li){ft(!0);try{a()}finally{ft(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},n}function Ig(e,n,a,s){return e.baseState=a,rf(e,bt,typeof s=="function"?s:Pa)}function j_(e,n,a,s,u){if(uo(e))throw Error(r(485));if(e=n.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};j.T!==null?a(!0):c.isTransition=!1,s(c),a=n.pending,a===null?(c.next=n.pending=c,Vg(n,c)):(c.next=a.next,n.pending=a.next=c)}}function Vg(e,n){var a=n.action,s=n.payload,u=e.state;if(n.isTransition){var c=j.T,m={};j.T=m;try{var E=a(u,s),R=j.S;R!==null&&R(m,E),Xg(e,n,E)}catch(H){uf(e,n,H)}finally{c!==null&&m.types!==null&&(c.types=m.types),j.T=c}}else try{c=a(u,s),Xg(e,n,c)}catch(H){uf(e,n,H)}}function Xg(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Qg(e,n,s)},function(s){return uf(e,n,s)}):Qg(e,n,a)}function Qg(e,n,a){n.status="fulfilled",n.value=a,Gg(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,Vg(e,a)))}function uf(e,n,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=a,Gg(n),n=n.next;while(n!==s)}e.action=null}function Gg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Zg(e,n){return n}function Fg(e,n){if(Ye){var a=wt.formState;if(a!==null){e:{var s=Le;if(Ye){if(xt){t:{for(var u=xt,c=ma;u.nodeType!==8;){if(!c){u=null;break t}if(u=ba(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){xt=ba(u.nextSibling),s=u.data==="F!";break e}}_l(s)}s=!1}s&&(n=a[0])}}return a=Hn(),a.memoizedState=a.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zg,lastRenderedState:n},a.queue=s,a=fm.bind(null,Le,s),s.dispatch=a,s=of(!1),c=gf.bind(null,Le,!1,s.queue),s=Hn(),u={state:n,dispatch:null,action:e,pending:null},s.queue=u,a=j_.bind(null,Le,u,c,a),u.dispatch=a,s.memoizedState=e,[n,a,!1]}function Yg(e){var n=Gt();return Kg(n,bt,e)}function Kg(e,n,a){if(n=rf(e,n,Zg)[0],e=ro(Pa)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=kr(n)}catch(m){throw m===ki?Ps:m}else s=n;n=Gt();var u=n.queue,c=u.dispatch;return a!==n.memoizedState&&(Le.flags|=2048,Ui(9,{destroy:void 0},B_.bind(null,u,a),null)),[s,c,e]}function B_(e,n){e.action=n}function Jg(e){var n=Gt(),a=bt;if(a!==null)return Kg(n,a,e);Gt(),n=n.memoizedState,a=Gt();var s=a.queue.dispatch;return a.memoizedState=e,[n,s,!1]}function Ui(e,n,a,s){return e={tag:e,create:a,deps:s,inst:n,next:null},n=Le.updateQueue,n===null&&(n=lo(),Le.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,n.lastEffect=e),e}function Pg(){return Gt().memoizedState}function so(e,n,a,s){var u=Hn();Le.flags|=e,u.memoizedState=Ui(1|n,{destroy:void 0},a,s===void 0?null:s)}function oo(e,n,a,s){var u=Gt();s=s===void 0?null:s;var c=u.memoizedState.inst;bt!==null&&s!==null&&qc(s,bt.memoizedState.deps)?u.memoizedState=Ui(n,c,a,s):(Le.flags|=e,u.memoizedState=Ui(1|n,c,a,s))}function Wg(e,n){so(8390656,8,e,n)}function cf(e,n){oo(2048,8,e,n)}function U_(e){Le.flags|=4;var n=Le.updateQueue;if(n===null)n=lo(),Le.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function $g(e){var n=Gt().memoizedState;return U_({ref:n,nextImpl:e}),function(){if((ot&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function qg(e,n){return oo(4,2,e,n)}function em(e,n){return oo(4,4,e,n)}function tm(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function nm(e,n,a){a=a!=null?a.concat([e]):null,oo(4,4,tm.bind(null,n,e),a)}function ff(){}function am(e,n){var a=Gt();n=n===void 0?null:n;var s=a.memoizedState;return n!==null&&qc(n,s[1])?s[0]:(a.memoizedState=[e,n],e)}function lm(e,n){var a=Gt();n=n===void 0?null:n;var s=a.memoizedState;if(n!==null&&qc(n,s[1]))return s[0];if(s=e(),li){ft(!0);try{e()}finally{ft(!1)}}return a.memoizedState=[s,n],s}function df(e,n,a){return a===void 0||(Ja&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=i0(),Le.lanes|=e,Dl|=e,a)}function im(e,n,a,s){return ea(a,n)?a:zi.current!==null?(e=df(e,a,s),ea(e,n)||(Wt=!0),e):(Ja&42)===0||(Ja&1073741824)!==0&&(Ge&261930)===0?(Wt=!0,e.memoizedState=a):(e=i0(),Le.lanes|=e,Dl|=e,n)}function rm(e,n,a,s,u){var c=le.p;le.p=c!==0&&8>c?c:8;var m=j.T,E={};j.T=E,gf(e,!1,n,a);try{var R=u(),H=j.S;if(H!==null&&H(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=k_(R,s);Lr(e,n,$,ra(e))}else Lr(e,n,s,ra(e))}catch(ae){Lr(e,n,{then:function(){},status:"rejected",reason:ae},ra())}finally{le.p=c,m!==null&&E.types!==null&&(m.types=E.types),j.T=m}}function H_(){}function hf(e,n,a,s){if(e.tag!==5)throw Error(r(476));var u=sm(e).queue;rm(e,u,n,Q,a===null?H_:function(){return om(e),a(s)})}function sm(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:Q},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function om(e){var n=sm(e);n.next===null&&(n=e.alternate.memoizedState),Lr(e,n.next.queue,{},ra())}function pf(){return wn(Wr)}function um(){return Gt().memoizedState}function cm(){return Gt().memoizedState}function I_(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=ra();e=wl(a);var s=Tl(n,e,a);s!==null&&(qn(s,n,a),Dr(s,n,a)),n={cache:Xc()},e.payload=n;return}n=n.return}}function V_(e,n,a){var s=ra();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},uo(e)?dm(n,a):(a=Nc(e,n,a,s),a!==null&&(qn(a,e,s),hm(a,n,s)))}function fm(e,n,a){var s=ra();Lr(e,n,a,s)}function Lr(e,n,a,s){var u={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(uo(e))dm(n,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=n.lastRenderedReducer,c!==null))try{var m=n.lastRenderedState,E=c(m,a);if(u.hasEagerState=!0,u.eagerState=E,ea(E,m))return Qs(e,n,u,0),wt===null&&Xs(),!1}catch{}finally{}if(a=Nc(e,n,u,s),a!==null)return qn(a,e,s),hm(a,n,s),!0}return!1}function gf(e,n,a,s){if(s={lane:2,revertLane:Yf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},uo(e)){if(n)throw Error(r(479))}else n=Nc(e,a,s,2),n!==null&&qn(n,e,2)}function uo(e){var n=e.alternate;return e===Le||n!==null&&n===Le}function dm(e,n){ji=no=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function hm(e,n,a){if((a&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,sn(e,a)}}var zr={readContext:wn,use:io,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};zr.useEffectEvent=Bt;var pm={readContext:wn,use:io,useCallback:function(e,n){return Hn().memoizedState=[e,n===void 0?null:n],e},useContext:wn,useEffect:Wg,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,so(4194308,4,tm.bind(null,n,e),a)},useLayoutEffect:function(e,n){return so(4194308,4,e,n)},useInsertionEffect:function(e,n){so(4,2,e,n)},useMemo:function(e,n){var a=Hn();n=n===void 0?null:n;var s=e();if(li){ft(!0);try{e()}finally{ft(!1)}}return a.memoizedState=[s,n],s},useReducer:function(e,n,a){var s=Hn();if(a!==void 0){var u=a(n);if(li){ft(!0);try{a(n)}finally{ft(!1)}}}else u=n;return s.memoizedState=s.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},s.queue=e,e=e.dispatch=V_.bind(null,Le,e),[s.memoizedState,e]},useRef:function(e){var n=Hn();return e={current:e},n.memoizedState=e},useState:function(e){e=of(e);var n=e.queue,a=fm.bind(null,Le,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:ff,useDeferredValue:function(e,n){var a=Hn();return df(a,e,n)},useTransition:function(){var e=of(!1);return e=rm.bind(null,Le,e.queue,!0,!1),Hn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var s=Le,u=Hn();if(Ye){if(a===void 0)throw Error(r(407));a=a()}else{if(a=n(),wt===null)throw Error(r(349));(Ge&127)!==0||zg(s,n,a)}u.memoizedState=a;var c={value:a,getSnapshot:n};return u.queue=c,Wg(Bg.bind(null,s,c,e),[e]),s.flags|=2048,Ui(9,{destroy:void 0},jg.bind(null,s,c,a,n),null),a},useId:function(){var e=Hn(),n=wt.identifierPrefix;if(Ye){var a=Ba,s=ja;a=(s&~(1<<32-Je(s)-1)).toString(32)+a,n="_"+n+"R_"+a,a=ao++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=L_++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:pf,useFormState:Fg,useActionState:Fg,useOptimistic:function(e){var n=Hn();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=gf.bind(null,Le,!0,a),a.dispatch=n,[e,n]},useMemoCache:lf,useCacheRefresh:function(){return Hn().memoizedState=I_.bind(null,Le)},useEffectEvent:function(e){var n=Hn(),a={impl:e};return n.memoizedState=a,function(){if((ot&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},mf={readContext:wn,use:io,useCallback:am,useContext:wn,useEffect:cf,useImperativeHandle:nm,useInsertionEffect:qg,useLayoutEffect:em,useMemo:lm,useReducer:ro,useRef:Pg,useState:function(){return ro(Pa)},useDebugValue:ff,useDeferredValue:function(e,n){var a=Gt();return im(a,bt.memoizedState,e,n)},useTransition:function(){var e=ro(Pa)[0],n=Gt().memoizedState;return[typeof e=="boolean"?e:kr(e),n]},useSyncExternalStore:Lg,useId:um,useHostTransitionStatus:pf,useFormState:Yg,useActionState:Yg,useOptimistic:function(e,n){var a=Gt();return Ig(a,bt,e,n)},useMemoCache:lf,useCacheRefresh:cm};mf.useEffectEvent=$g;var gm={readContext:wn,use:io,useCallback:am,useContext:wn,useEffect:cf,useImperativeHandle:nm,useInsertionEffect:qg,useLayoutEffect:em,useMemo:lm,useReducer:sf,useRef:Pg,useState:function(){return sf(Pa)},useDebugValue:ff,useDeferredValue:function(e,n){var a=Gt();return bt===null?df(a,e,n):im(a,bt.memoizedState,e,n)},useTransition:function(){var e=sf(Pa)[0],n=Gt().memoizedState;return[typeof e=="boolean"?e:kr(e),n]},useSyncExternalStore:Lg,useId:um,useHostTransitionStatus:pf,useFormState:Jg,useActionState:Jg,useOptimistic:function(e,n){var a=Gt();return bt!==null?Ig(a,bt,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:lf,useCacheRefresh:cm};gm.useEffectEvent=$g;function vf(e,n,a,s){n=e.memoizedState,a=a(s,n),a=a==null?n:S({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var bf={enqueueSetState:function(e,n,a){e=e._reactInternals;var s=ra(),u=wl(s);u.payload=n,a!=null&&(u.callback=a),n=Tl(e,u,s),n!==null&&(qn(n,e,s),Dr(n,e,s))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var s=ra(),u=wl(s);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=Tl(e,u,s),n!==null&&(qn(n,e,s),Dr(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=ra(),s=wl(a);s.tag=2,n!=null&&(s.callback=n),n=Tl(e,s,a),n!==null&&(qn(n,e,a),Dr(n,e,a))}};function mm(e,n,a,s,u,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,m):n.prototype&&n.prototype.isPureReactComponent?!Sr(a,s)||!Sr(u,c):!0}function vm(e,n,a,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,s),n.state!==e&&bf.enqueueReplaceState(n,n.state,null)}function ii(e,n){var a=n;if("ref"in n){a={};for(var s in n)s!=="ref"&&(a[s]=n[s])}if(e=e.defaultProps){a===n&&(a=S({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function bm(e){Vs(e)}function ym(e){console.error(e)}function _m(e){Vs(e)}function co(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Sm(e,n,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function yf(e,n,a){return a=wl(a),a.tag=3,a.payload={element:null},a.callback=function(){co(e,n)},a}function Em(e){return e=wl(e),e.tag=3,e}function wm(e,n,a,s){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=s.value;e.payload=function(){return u(c)},e.callback=function(){Sm(n,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Sm(n,a,s),typeof u!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function X_(e,n,a,s,u){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=a.alternate,n!==null&&Ri(n,a,u,!0),a=na.current,a!==null){switch(a.tag){case 31:case 13:return va===null?wo():a.alternate===null&&Ut===0&&(Ut=3),a.flags&=-257,a.flags|=65536,a.lanes=u,s===Ws?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([s]):n.add(s),Gf(e,s,u)),!1;case 22:return a.flags|=65536,s===Ws?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([s]):a.add(s)),Gf(e,s,u)),!1}throw Error(r(435,a.tag))}return Gf(e,s,u),wo(),!1}if(Ye)return n=na.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,s!==Bc&&(e=Error(r(422),{cause:s}),Tr(ha(e,a)))):(s!==Bc&&(n=Error(r(423),{cause:s}),Tr(ha(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,s=ha(s,a),u=yf(e.stateNode,s,u),Kc(e,u),Ut!==4&&(Ut=2)),!1;var c=Error(r(520),{cause:s});if(c=ha(c,a),Qr===null?Qr=[c]:Qr.push(c),Ut!==4&&(Ut=2),n===null)return!0;s=ha(s,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=yf(a.stateNode,s,e),Kc(a,e),!1;case 1:if(n=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Rl===null||!Rl.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Em(u),wm(u,e,a,s),Kc(a,u),!1}a=a.return}while(a!==null);return!1}var _f=Error(r(461)),Wt=!1;function Tn(e,n,a,s){n.child=e===null?xg(n,null,a,s):ai(n,e.child,a,s)}function Tm(e,n,a,s,u){a=a.render;var c=n.ref;if("ref"in s){var m={};for(var E in s)E!=="ref"&&(m[E]=s[E])}else m=s;return ql(n),s=ef(e,n,a,m,c,u),E=tf(),e!==null&&!Wt?(nf(e,n,u),Wa(e,n,u)):(Ye&&E&&zc(n),n.flags|=1,Tn(e,n,s,u),n.child)}function Am(e,n,a,s,u){if(e===null){var c=a.type;return typeof c=="function"&&!Mc(c)&&c.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=c,Cm(e,n,c,s,u)):(e=Zs(a.type,null,s,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,!Of(e,u)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Sr,a(m,s)&&e.ref===n.ref)return Wa(e,n,u)}return n.flags|=1,e=Za(c,s),e.ref=n.ref,e.return=n,n.child=e}function Cm(e,n,a,s,u){if(e!==null){var c=e.memoizedProps;if(Sr(c,s)&&e.ref===n.ref)if(Wt=!1,n.pendingProps=s=c,Of(e,u))(e.flags&131072)!==0&&(Wt=!0);else return n.lanes=e.lanes,Wa(e,n,u)}return Sf(e,n,a,s,u)}function xm(e,n,a,s){var u=s.children,c=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(s=n.child=e.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~c}else s=0,n.child=null;return Om(e,n,c,a,s)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Js(n,c!==null?c.cachePool:null),c!==null?Rg(n,c):Pc(),Ng(n);else return s=n.lanes=536870912,Om(e,n,c!==null?c.baseLanes|a:a,a,s)}else c!==null?(Js(n,c.cachePool),Rg(n,c),Cl(),n.memoizedState=null):(e!==null&&Js(n,null),Pc(),Cl());return Tn(e,n,u,a),n.child}function jr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Om(e,n,a,s,u){var c=Gc();return c=c===null?null:{parent:Jt._currentValue,pool:c},n.memoizedState={baseLanes:a,cachePool:c},e!==null&&Js(n,null),Pc(),Ng(n),e!==null&&Ri(e,n,s,!0),n.childLanes=u,null}function fo(e,n){return n=po({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Dm(e,n,a){return ai(n,e.child,null,a),e=fo(n,n.pendingProps),e.flags|=2,aa(n),n.memoizedState=null,e}function Q_(e,n,a){var s=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ye){if(s.mode==="hidden")return e=fo(n,s),n.lanes=536870912,jr(null,e);if($c(n),(e=xt)?(e=V0(e,ma),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:bl!==null?{id:ja,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=dg(e),a.return=n,n.child=a,En=n,xt=null)):e=null,e===null)throw _l(n);return n.lanes=536870912,null}return fo(n,s)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if($c(n),u)if(n.flags&256)n.flags&=-257,n=Dm(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(Wt||Ri(e,n,a,!1),u=(a&e.childLanes)!==0,Wt||u){if(s=wt,s!==null&&(m=Kt(s,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Jl(e,m),qn(s,e,m),_f;wo(),n=Dm(e,n,a)}else e=c.treeContext,xt=ba(m.nextSibling),En=n,Ye=!0,yl=null,ma=!1,e!==null&&gg(n,e),n=fo(n,s),n.flags|=4096;return n}return e=Za(e.child,{mode:s.mode,children:s.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ho(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Sf(e,n,a,s,u){return ql(n),a=ef(e,n,a,s,void 0,u),s=tf(),e!==null&&!Wt?(nf(e,n,u),Wa(e,n,u)):(Ye&&s&&zc(n),n.flags|=1,Tn(e,n,a,u),n.child)}function Rm(e,n,a,s,u,c){return ql(n),n.updateQueue=null,a=kg(n,s,a,u),Mg(e),s=tf(),e!==null&&!Wt?(nf(e,n,c),Wa(e,n,c)):(Ye&&s&&zc(n),n.flags|=1,Tn(e,n,a,c),n.child)}function Nm(e,n,a,s,u){if(ql(n),n.stateNode===null){var c=Ci,m=a.contextType;typeof m=="object"&&m!==null&&(c=wn(m)),c=new a(s,c),n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bf,n.stateNode=c,c._reactInternals=n,c=n.stateNode,c.props=s,c.state=n.memoizedState,c.refs={},Fc(n),m=a.contextType,c.context=typeof m=="object"&&m!==null?wn(m):Ci,c.state=n.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(vf(n,a,m,s),c.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&bf.enqueueReplaceState(c,c.state,null),Nr(n,s,c,u),Rr(),c.state=n.memoizedState),typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){c=n.stateNode;var E=n.memoizedProps,R=ii(a,E);c.props=R;var H=c.context,$=a.contextType;m=Ci,typeof $=="object"&&$!==null&&(m=wn($));var ae=a.getDerivedStateFromProps;$=typeof ae=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||H!==m)&&vm(n,c,s,m),El=!1;var X=n.memoizedState;c.state=X,Nr(n,s,c,u),Rr(),H=n.memoizedState,E||X!==H||El?(typeof ae=="function"&&(vf(n,a,ae,s),H=n.memoizedState),(R=El||mm(n,a,R,s,X,H,m))?($||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(n.flags|=4194308)):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=H),c.props=s,c.state=H,c.context=m,s=R):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{c=n.stateNode,Yc(e,n),m=n.memoizedProps,$=ii(a,m),c.props=$,ae=n.pendingProps,X=c.context,H=a.contextType,R=Ci,typeof H=="object"&&H!==null&&(R=wn(H)),E=a.getDerivedStateFromProps,(H=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==ae||X!==R)&&vm(n,c,s,R),El=!1,X=n.memoizedState,c.state=X,Nr(n,s,c,u),Rr();var F=n.memoizedState;m!==ae||X!==F||El||e!==null&&e.dependencies!==null&&Ys(e.dependencies)?(typeof E=="function"&&(vf(n,a,E,s),F=n.memoizedState),($=El||mm(n,a,$,s,X,F,R)||e!==null&&e.dependencies!==null&&Ys(e.dependencies))?(H||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,F,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,F,R)),typeof c.componentDidUpdate=="function"&&(n.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&X===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&X===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=F),c.props=s,c.state=F,c.context=R,s=$):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&X===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&X===e.memoizedState||(n.flags|=1024),s=!1)}return c=s,ho(e,n),s=(n.flags&128)!==0,c||s?(c=n.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),n.flags|=1,e!==null&&s?(n.child=ai(n,e.child,null,u),n.child=ai(n,null,a,u)):Tn(e,n,a,u),n.memoizedState=c.state,e=n.child):e=Wa(e,n,u),e}function Mm(e,n,a,s){return Wl(),n.flags|=256,Tn(e,n,a,s),n.child}var Ef={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wf(e){return{baseLanes:e,cachePool:Sg()}}function Tf(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=ia),e}function km(e,n,a){var s=n.pendingProps,u=!1,c=(n.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Qt.current&2)!==0),m&&(u=!0,n.flags&=-129),m=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ye){if(u?Al(n):Cl(),(e=xt)?(e=V0(e,ma),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:bl!==null?{id:ja,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=dg(e),a.return=n,n.child=a,En=n,xt=null)):e=null,e===null)throw _l(n);return rd(e)?n.lanes=32:n.lanes=536870912,null}var E=s.children;return s=s.fallback,u?(Cl(),u=n.mode,E=po({mode:"hidden",children:E},u),s=Pl(s,u,a,null),E.return=n,s.return=n,E.sibling=s,n.child=E,s=n.child,s.memoizedState=wf(a),s.childLanes=Tf(e,m,a),n.memoizedState=Ef,jr(null,s)):(Al(n),Af(n,E))}var R=e.memoizedState;if(R!==null&&(E=R.dehydrated,E!==null)){if(c)n.flags&256?(Al(n),n.flags&=-257,n=Cf(e,n,a)):n.memoizedState!==null?(Cl(),n.child=e.child,n.flags|=128,n=null):(Cl(),E=s.fallback,u=n.mode,s=po({mode:"visible",children:s.children},u),E=Pl(E,u,a,null),E.flags|=2,s.return=n,E.return=n,s.sibling=E,n.child=s,ai(n,e.child,null,a),s=n.child,s.memoizedState=wf(a),s.childLanes=Tf(e,m,a),n.memoizedState=Ef,n=jr(null,s));else if(Al(n),rd(E)){if(m=E.nextSibling&&E.nextSibling.dataset,m)var H=m.dgst;m=H,s=Error(r(419)),s.stack="",s.digest=m,Tr({value:s,source:null,stack:null}),n=Cf(e,n,a)}else if(Wt||Ri(e,n,a,!1),m=(a&e.childLanes)!==0,Wt||m){if(m=wt,m!==null&&(s=Kt(m,a),s!==0&&s!==R.retryLane))throw R.retryLane=s,Jl(e,s),qn(m,e,s),_f;id(E)||wo(),n=Cf(e,n,a)}else id(E)?(n.flags|=192,n.child=e.child,n=null):(e=R.treeContext,xt=ba(E.nextSibling),En=n,Ye=!0,yl=null,ma=!1,e!==null&&gg(n,e),n=Af(n,s.children),n.flags|=4096);return n}return u?(Cl(),E=s.fallback,u=n.mode,R=e.child,H=R.sibling,s=Za(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,H!==null?E=Za(H,E):(E=Pl(E,u,a,null),E.flags|=2),E.return=n,s.return=n,s.sibling=E,n.child=s,jr(null,s),s=n.child,E=e.child.memoizedState,E===null?E=wf(a):(u=E.cachePool,u!==null?(R=Jt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=Sg(),E={baseLanes:E.baseLanes|a,cachePool:u}),s.memoizedState=E,s.childLanes=Tf(e,m,a),n.memoizedState=Ef,jr(e.child,s)):(Al(n),a=e.child,e=a.sibling,a=Za(a,{mode:"visible",children:s.children}),a.return=n,a.sibling=null,e!==null&&(m=n.deletions,m===null?(n.deletions=[e],n.flags|=16):m.push(e)),n.child=a,n.memoizedState=null,a)}function Af(e,n){return n=po({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function po(e,n){return e=ta(22,e,null,n),e.lanes=0,e}function Cf(e,n,a){return ai(n,e.child,null,a),e=Af(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Lm(e,n,a){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Ic(e.return,n,a)}function xf(e,n,a,s,u,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:u,treeForkCount:c}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=u,m.treeForkCount=c)}function zm(e,n,a){var s=n.pendingProps,u=s.revealOrder,c=s.tail;s=s.children;var m=Qt.current,E=(m&2)!==0;if(E?(m=m&1|2,n.flags|=128):m&=1,ee(Qt,m),Tn(e,n,s,a),s=Ye?wr:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lm(e,a,n);else if(e.tag===19)Lm(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&to(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),xf(n,!1,u,a,c,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&to(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}xf(n,!0,a,null,c,s);break;case"together":xf(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Wa(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Dl|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ri(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,a=Za(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Za(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Of(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ys(e)))}function G_(e,n,a){switch(n.tag){case 3:Se(n,n.stateNode.containerInfo),Sl(n,Jt,e.memoizedState.cache),Wl();break;case 27:case 5:Be(n);break;case 4:Se(n,n.stateNode.containerInfo);break;case 10:Sl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,$c(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Al(n),n.flags|=128,null):(a&n.child.childLanes)!==0?km(e,n,a):(Al(n),e=Wa(e,n,a),e!==null?e.sibling:null);Al(n);break;case 19:var u=(e.flags&128)!==0;if(s=(a&n.childLanes)!==0,s||(Ri(e,n,a,!1),s=(a&n.childLanes)!==0),u){if(s)return zm(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(Qt,Qt.current),s)break;return null;case 22:return n.lanes=0,xm(e,n,a,n.pendingProps);case 24:Sl(n,Jt,e.memoizedState.cache)}return Wa(e,n,a)}function jm(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Wt=!0;else{if(!Of(e,a)&&(n.flags&128)===0)return Wt=!1,G_(e,n,a);Wt=(e.flags&131072)!==0}else Wt=!1,Ye&&(n.flags&1048576)!==0&&pg(n,wr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(e=ti(n.elementType),n.type=e,typeof e=="function")Mc(e)?(s=ii(e,s),n.tag=1,n=Nm(null,n,e,s,a)):(n.tag=0,n=Sf(null,n,e,s,a));else{if(e!=null){var u=e.$$typeof;if(u===k){n.tag=11,n=Tm(null,n,e,s,a);break e}else if(u===L){n.tag=14,n=Am(null,n,e,s,a);break e}}throw n=he(e)||e,Error(r(306,n,""))}}return n;case 0:return Sf(e,n,n.type,n.pendingProps,a);case 1:return s=n.type,u=ii(s,n.pendingProps),Nm(e,n,s,u,a);case 3:e:{if(Se(n,n.stateNode.containerInfo),e===null)throw Error(r(387));s=n.pendingProps;var c=n.memoizedState;u=c.element,Yc(e,n),Nr(n,s,null,a);var m=n.memoizedState;if(s=m.cache,Sl(n,Jt,s),s!==c.cache&&Vc(n,[Jt],a,!0),Rr(),s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=Mm(e,n,s,a);break e}else if(s!==u){u=ha(Error(r(424)),n),Tr(u),n=Mm(e,n,s,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(xt=ba(e.firstChild),En=n,Ye=!0,yl=null,ma=!0,a=xg(n,null,s,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Wl(),s===u){n=Wa(e,n,a);break e}Tn(e,n,s,a)}n=n.child}return n;case 26:return ho(e,n),e===null?(a=Y0(n.type,null,n.pendingProps,null))?n.memoizedState=a:Ye||(a=n.type,e=n.pendingProps,s=Ro(ce.current).createElement(a),s[De]=n,s[et]=e,An(s,a,e),pe(s),n.stateNode=s):n.memoizedState=Y0(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Be(n),e===null&&Ye&&(s=n.stateNode=G0(n.type,n.pendingProps,ce.current),En=n,ma=!0,u=xt,Ll(n.type)?(sd=u,xt=ba(s.firstChild)):xt=u),Tn(e,n,n.pendingProps.children,a),ho(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ye&&((u=s=xt)&&(s=_2(s,n.type,n.pendingProps,ma),s!==null?(n.stateNode=s,En=n,xt=ba(s.firstChild),ma=!1,u=!0):u=!1),u||_l(n)),Be(n),u=n.type,c=n.pendingProps,m=e!==null?e.memoizedProps:null,s=c.children,nd(u,c)?s=null:m!==null&&nd(u,m)&&(n.flags|=32),n.memoizedState!==null&&(u=ef(e,n,z_,null,null,a),Wr._currentValue=u),ho(e,n),Tn(e,n,s,a),n.child;case 6:return e===null&&Ye&&((e=a=xt)&&(a=S2(a,n.pendingProps,ma),a!==null?(n.stateNode=a,En=n,xt=null,e=!0):e=!1),e||_l(n)),null;case 13:return km(e,n,a);case 4:return Se(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=ai(n,null,s,a):Tn(e,n,s,a),n.child;case 11:return Tm(e,n,n.type,n.pendingProps,a);case 7:return Tn(e,n,n.pendingProps,a),n.child;case 8:return Tn(e,n,n.pendingProps.children,a),n.child;case 12:return Tn(e,n,n.pendingProps.children,a),n.child;case 10:return s=n.pendingProps,Sl(n,n.type,s.value),Tn(e,n,s.children,a),n.child;case 9:return u=n.type._context,s=n.pendingProps.children,ql(n),u=wn(u),s=s(u),n.flags|=1,Tn(e,n,s,a),n.child;case 14:return Am(e,n,n.type,n.pendingProps,a);case 15:return Cm(e,n,n.type,n.pendingProps,a);case 19:return zm(e,n,a);case 31:return Q_(e,n,a);case 22:return xm(e,n,a,n.pendingProps);case 24:return ql(n),s=wn(Jt),e===null?(u=Gc(),u===null&&(u=wt,c=Xc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),n.memoizedState={parent:s,cache:u},Fc(n),Sl(n,Jt,u)):((e.lanes&a)!==0&&(Yc(e,n),Nr(n,null,null,a),Rr()),u=e.memoizedState,c=n.memoizedState,u.parent!==s?(u={parent:s,cache:s},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Sl(n,Jt,s)):(s=c.cache,Sl(n,Jt,s),s!==u.cache&&Vc(n,[Jt],a,!0))),Tn(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function $a(e){e.flags|=4}function Df(e,n,a,s,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(u0())e.flags|=8192;else throw ni=Ws,Zc}else e.flags&=-16777217}function Bm(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$0(n))if(u0())e.flags|=8192;else throw ni=Ws,Zc}function go(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ln():536870912,e.lanes|=n,Xi|=n)}function Br(e,n){if(!Ye)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ot(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=a,n}function Z_(e,n,a){var s=n.pendingProps;switch(jc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(n),null;case 1:return Ot(n),null;case 3:return a=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Ka(Jt),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Di(n)?$a(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Uc())),Ot(n),null;case 26:var u=n.type,c=n.memoizedState;return e===null?($a(n),c!==null?(Ot(n),Bm(n,c)):(Ot(n),Df(n,u,null,s,a))):c?c!==e.memoizedState?($a(n),Ot(n),Bm(n,c)):(Ot(n),n.flags&=-16777217):(e=e.memoizedProps,e!==s&&$a(n),Ot(n),Df(n,u,e,s,a)),null;case 27:if(St(n),a=ce.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&$a(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Ot(n),null}e=oe.current,Di(n)?mg(n):(e=G0(u,s,a),n.stateNode=e,$a(n))}return Ot(n),null;case 5:if(St(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&$a(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Ot(n),null}if(c=oe.current,Di(n))mg(n);else{var m=Ro(ce.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?m.createElement(u,{is:s.is}):m.createElement(u)}}c[De]=n,c[et]=s;e:for(m=n.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===n)break e;for(;m.sibling===null;){if(m.return===null||m.return===n)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}n.stateNode=c;e:switch(An(c,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&$a(n)}}return Ot(n),Df(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&$a(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(r(166));if(e=ce.current,Di(n)){if(e=n.stateNode,a=n.memoizedProps,s=null,u=En,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}e[De]=n,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||k0(e.nodeValue,a)),e||_l(n,!0)}else e=Ro(e).createTextNode(s),e[De]=n,n.stateNode=e}return Ot(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(s=Di(n),a!==null){if(e===null){if(!s)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[De]=n}else Wl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ot(n),e=!1}else a=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(aa(n),n):(aa(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Ot(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Di(n),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[De]=n}else Wl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ot(n),u=!1}else u=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(aa(n),n):(aa(n),null)}return aa(n),(n.flags&128)!==0?(n.lanes=a,n):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=n.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==u&&(s.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),go(n,n.updateQueue),Ot(n),null);case 4:return we(),e===null&&Wf(n.stateNode.containerInfo),Ot(n),null;case 10:return Ka(n.type),Ot(n),null;case 19:if(K(Qt),s=n.memoizedState,s===null)return Ot(n),null;if(u=(n.flags&128)!==0,c=s.rendering,c===null)if(u)Br(s,!1);else{if(Ut!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(c=to(e),c!==null){for(n.flags|=128,Br(s,!1),e=c.updateQueue,n.updateQueue=e,go(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)fg(a,e),a=a.sibling;return ee(Qt,Qt.current&1|2),Ye&&Fa(n,s.treeForkCount),n.child}e=e.sibling}s.tail!==null&&st()>_o&&(n.flags|=128,u=!0,Br(s,!1),n.lanes=4194304)}else{if(!u)if(e=to(c),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,go(n,e),Br(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Ye)return Ot(n),null}else 2*st()-s.renderingStartTime>_o&&a!==536870912&&(n.flags|=128,u=!0,Br(s,!1),n.lanes=4194304);s.isBackwards?(c.sibling=n.child,n.child=c):(e=s.last,e!==null?e.sibling=c:n.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=st(),e.sibling=null,a=Qt.current,ee(Qt,u?a&1|2:a&1),Ye&&Fa(n,s.treeForkCount),e):(Ot(n),null);case 22:case 23:return aa(n),Wc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(a&536870912)!==0&&(n.flags&128)===0&&(Ot(n),n.subtreeFlags&6&&(n.flags|=8192)):Ot(n),a=n.updateQueue,a!==null&&go(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==a&&(n.flags|=2048),e!==null&&K(ei),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Ka(Jt),Ot(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function F_(e,n){switch(jc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Ka(Jt),we(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return St(n),null;case 31:if(n.memoizedState!==null){if(aa(n),n.alternate===null)throw Error(r(340));Wl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(aa(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Wl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return K(Qt),null;case 4:return we(),null;case 10:return Ka(n.type),null;case 22:case 23:return aa(n),Wc(),e!==null&&K(ei),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Ka(Jt),null;case 25:return null;default:return null}}function Um(e,n){switch(jc(n),n.tag){case 3:Ka(Jt),we();break;case 26:case 27:case 5:St(n);break;case 4:we();break;case 31:n.memoizedState!==null&&aa(n);break;case 13:aa(n);break;case 19:K(Qt);break;case 10:Ka(n.type);break;case 22:case 23:aa(n),Wc(),e!==null&&K(ei);break;case 24:Ka(Jt)}}function Ur(e,n){try{var a=n.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&e)===e){s=void 0;var c=a.create,m=a.inst;s=c(),m.destroy=s}a=a.next}while(a!==u)}}catch(E){pt(n,n.return,E)}}function xl(e,n,a){try{var s=n.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var c=u.next;s=c;do{if((s.tag&e)===e){var m=s.inst,E=m.destroy;if(E!==void 0){m.destroy=void 0,u=n;var R=a,H=E;try{H()}catch($){pt(u,R,$)}}}s=s.next}while(s!==c)}}catch($){pt(n,n.return,$)}}function Hm(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{Dg(n,a)}catch(s){pt(e,e.return,s)}}}function Im(e,n,a){a.props=ii(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){pt(e,n,s)}}function Hr(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(u){pt(e,n,u)}}function Ua(e,n){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(u){pt(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){pt(e,n,u)}else a.current=null}function Vm(e){var n=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(u){pt(e,e.return,u)}}function Rf(e,n,a){try{var s=e.stateNode;p2(s,e.type,a,n),s[et]=n}catch(u){pt(e,e.return,u)}}function Xm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ll(e.type)||e.tag===4}function Nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ll(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mf(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Qa));else if(s!==4&&(s===27&&Ll(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Mf(e,n,a),e=e.sibling;e!==null;)Mf(e,n,a),e=e.sibling}function mo(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(s!==4&&(s===27&&Ll(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(mo(e,n,a),e=e.sibling;e!==null;)mo(e,n,a),e=e.sibling}function Qm(e){var n=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);An(n,s,a),n[De]=e,n[et]=a}catch(c){pt(e,e.return,c)}}var qa=!1,$t=!1,kf=!1,Gm=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Y_(e,n){if(e=e.containerInfo,ed=Bo,e=ng(e),Ac(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var u=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,E=-1,R=-1,H=0,$=0,ae=e,X=null;t:for(;;){for(var F;ae!==a||u!==0&&ae.nodeType!==3||(E=m+u),ae!==c||s!==0&&ae.nodeType!==3||(R=m+s),ae.nodeType===3&&(m+=ae.nodeValue.length),(F=ae.firstChild)!==null;)X=ae,ae=F;for(;;){if(ae===e)break t;if(X===a&&++H===u&&(E=m),X===c&&++$===s&&(R=m),(F=ae.nextSibling)!==null)break;ae=X,X=ae.parentNode}ae=F}a=E===-1||R===-1?null:{start:E,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(td={focusedElem:e,selectionRange:a},Bo=!1,mn=n;mn!==null;)if(n=mn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mn=e;else for(;mn!==null;){switch(n=mn,c=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=n,u=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var ve=ii(a.type,u);e=s.getSnapshotBeforeUpdate(ve,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){pt(a,a.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)ld(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ld(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,mn=e;break}mn=n.return}}function Zm(e,n,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:tl(e,a),s&4&&Ur(5,a);break;case 1:if(tl(e,a),s&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(m){pt(a,a.return,m)}else{var u=ii(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(m){pt(a,a.return,m)}}s&64&&Hm(a),s&512&&Hr(a,a.return);break;case 3:if(tl(e,a),s&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Dg(e,n)}catch(m){pt(a,a.return,m)}}break;case 27:n===null&&s&4&&Qm(a);case 26:case 5:tl(e,a),n===null&&s&4&&Vm(a),s&512&&Hr(a,a.return);break;case 12:tl(e,a);break;case 31:tl(e,a),s&4&&Km(e,a);break;case 13:tl(e,a),s&4&&Jm(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=n2.bind(null,a),E2(e,a))));break;case 22:if(s=a.memoizedState!==null||qa,!s){n=n!==null&&n.memoizedState!==null||$t,u=qa;var c=$t;qa=s,($t=n)&&!c?nl(e,a,(a.subtreeFlags&8772)!==0):tl(e,a),qa=u,$t=c}break;case 30:break;default:tl(e,a)}}function Fm(e){var n=e.alternate;n!==null&&(e.alternate=null,Fm(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&D(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Rt=null,Jn=!1;function el(e,n,a){for(a=a.child;a!==null;)Ym(e,n,a),a=a.sibling}function Ym(e,n,a){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:$t||Ua(a,n),el(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||Ua(a,n);var s=Rt,u=Jn;Ll(a.type)&&(Rt=a.stateNode,Jn=!1),el(e,n,a),Kr(a.stateNode),Rt=s,Jn=u;break;case 5:$t||Ua(a,n);case 6:if(s=Rt,u=Jn,Rt=null,el(e,n,a),Rt=s,Jn=u,Rt!==null)if(Jn)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(a.stateNode)}catch(c){pt(a,n,c)}else try{Rt.removeChild(a.stateNode)}catch(c){pt(a,n,c)}break;case 18:Rt!==null&&(Jn?(e=Rt,H0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Pi(e)):H0(Rt,a.stateNode));break;case 4:s=Rt,u=Jn,Rt=a.stateNode.containerInfo,Jn=!0,el(e,n,a),Rt=s,Jn=u;break;case 0:case 11:case 14:case 15:xl(2,a,n),$t||xl(4,a,n),el(e,n,a);break;case 1:$t||(Ua(a,n),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Im(a,n,s)),el(e,n,a);break;case 21:el(e,n,a);break;case 22:$t=(s=$t)||a.memoizedState!==null,el(e,n,a),$t=s;break;default:el(e,n,a)}}function Km(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pi(e)}catch(a){pt(n,n.return,a)}}}function Jm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pi(e)}catch(a){pt(n,n.return,a)}}function K_(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Gm),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Gm),n;default:throw Error(r(435,e.tag))}}function vo(e,n){var a=K_(e);n.forEach(function(s){if(!a.has(s)){a.add(s);var u=a2.bind(null,e,s);s.then(u,u)}})}function Pn(e,n){var a=n.deletions;if(a!==null)for(var s=0;s<a.length;s++){var u=a[s],c=e,m=n,E=m;e:for(;E!==null;){switch(E.tag){case 27:if(Ll(E.type)){Rt=E.stateNode,Jn=!1;break e}break;case 5:Rt=E.stateNode,Jn=!1;break e;case 3:case 4:Rt=E.stateNode.containerInfo,Jn=!0;break e}E=E.return}if(Rt===null)throw Error(r(160));Ym(c,m,u),Rt=null,Jn=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Pm(n,e),n=n.sibling}var Aa=null;function Pm(e,n){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pn(n,e),Wn(e),s&4&&(xl(3,e,e.return),Ur(3,e),xl(5,e,e.return));break;case 1:Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),s&64&&qa&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var u=Aa;if(Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(s){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ue]||c[De]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(s),u.head.insertBefore(c,u.querySelector("head > title"))),An(c,s,a),c[De]=e,pe(c),s=c;break e;case"link":var m=P0("link","href",u).get(s+(a.href||""));if(m){for(var E=0;E<m.length;E++)if(c=m[E],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(E,1);break t}}c=u.createElement(s),An(c,s,a),u.head.appendChild(c);break;case"meta":if(m=P0("meta","content",u).get(s+(a.content||""))){for(E=0;E<m.length;E++)if(c=m[E],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(E,1);break t}}c=u.createElement(s),An(c,s,a),u.head.appendChild(c);break;default:throw Error(r(468,s))}c[De]=e,pe(c),s=c}e.stateNode=s}else W0(u,e.type,e.stateNode);else e.stateNode=J0(u,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?W0(u,e.type,e.stateNode):J0(u,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Rf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),a!==null&&s&4&&Rf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),e.flags&32){u=e.stateNode;try{Xa(u,"")}catch(ve){pt(e,e.return,ve)}}s&4&&e.stateNode!=null&&(u=e.memoizedProps,Rf(e,u,a!==null?a.memoizedProps:u)),s&1024&&(kf=!0);break;case 6:if(Pn(n,e),Wn(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(ve){pt(e,e.return,ve)}}break;case 3:if(ko=null,u=Aa,Aa=No(n.containerInfo),Pn(n,e),Aa=u,Wn(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Pi(n.containerInfo)}catch(ve){pt(e,e.return,ve)}kf&&(kf=!1,Wm(e));break;case 4:s=Aa,Aa=No(e.stateNode.containerInfo),Pn(n,e),Wn(e),Aa=s;break;case 12:Pn(n,e),Wn(e);break;case 31:Pn(n,e),Wn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,vo(e,s)));break;case 13:Pn(n,e),Wn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(yo=st()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,vo(e,s)));break;case 22:u=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,H=qa,$=$t;if(qa=H||u,$t=$||R,Pn(n,e),$t=$,qa=H,Wn(e),s&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(a===null||R||qa||$t||ri(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){R=a=n;try{if(c=R.stateNode,u)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{E=R.stateNode;var ae=R.memoizedProps.style,X=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(ve){pt(R,R.return,ve)}}}else if(n.tag===6){if(a===null){R=n;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(ve){pt(R,R.return,ve)}}}else if(n.tag===18){if(a===null){R=n;try{var F=R.stateNode;u?I0(F,!0):I0(R.stateNode,!1)}catch(ve){pt(R,R.return,ve)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,vo(e,a))));break;case 19:Pn(n,e),Wn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,vo(e,s)));break;case 30:break;case 21:break;default:Pn(n,e),Wn(e)}}function Wn(e){var n=e.flags;if(n&2){try{for(var a,s=e.return;s!==null;){if(Xm(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=Nf(e);mo(e,c,u);break;case 5:var m=a.stateNode;a.flags&32&&(Xa(m,""),a.flags&=-33);var E=Nf(e);mo(e,E,m);break;case 3:case 4:var R=a.stateNode.containerInfo,H=Nf(e);Mf(e,H,R);break;default:throw Error(r(161))}}catch($){pt(e,e.return,$)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Wm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Wm(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function tl(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Zm(e,n.alternate,n),n=n.sibling}function ri(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),ri(n);break;case 1:Ua(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Im(n,n.return,a),ri(n);break;case 27:Kr(n.stateNode);case 26:case 5:Ua(n,n.return),ri(n);break;case 22:n.memoizedState===null&&ri(n);break;case 30:ri(n);break;default:ri(n)}e=e.sibling}}function nl(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,u=e,c=n,m=c.flags;switch(c.tag){case 0:case 11:case 15:nl(u,c,a),Ur(4,c);break;case 1:if(nl(u,c,a),s=c,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(H){pt(s,s.return,H)}if(s=c,u=s.updateQueue,u!==null){var E=s.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)Og(R[u],E)}catch(H){pt(s,s.return,H)}}a&&m&64&&Hm(c),Hr(c,c.return);break;case 27:Qm(c);case 26:case 5:nl(u,c,a),a&&s===null&&m&4&&Vm(c),Hr(c,c.return);break;case 12:nl(u,c,a);break;case 31:nl(u,c,a),a&&m&4&&Km(u,c);break;case 13:nl(u,c,a),a&&m&4&&Jm(u,c);break;case 22:c.memoizedState===null&&nl(u,c,a),Hr(c,c.return);break;case 30:break;default:nl(u,c,a)}n=n.sibling}}function Lf(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ar(a))}function zf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ar(e))}function Ca(e,n,a,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)$m(e,n,a,s),n=n.sibling}function $m(e,n,a,s){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Ca(e,n,a,s),u&2048&&Ur(9,n);break;case 1:Ca(e,n,a,s);break;case 3:Ca(e,n,a,s),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ar(e)));break;case 12:if(u&2048){Ca(e,n,a,s),e=n.stateNode;try{var c=n.memoizedProps,m=c.id,E=c.onPostCommit;typeof E=="function"&&E(m,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){pt(n,n.return,R)}}else Ca(e,n,a,s);break;case 31:Ca(e,n,a,s);break;case 13:Ca(e,n,a,s);break;case 23:break;case 22:c=n.stateNode,m=n.alternate,n.memoizedState!==null?c._visibility&2?Ca(e,n,a,s):Ir(e,n):c._visibility&2?Ca(e,n,a,s):(c._visibility|=2,Hi(e,n,a,s,(n.subtreeFlags&10256)!==0||!1)),u&2048&&Lf(m,n);break;case 24:Ca(e,n,a,s),u&2048&&zf(n.alternate,n);break;default:Ca(e,n,a,s)}}function Hi(e,n,a,s,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var c=e,m=n,E=a,R=s,H=m.flags;switch(m.tag){case 0:case 11:case 15:Hi(c,m,E,R,u),Ur(8,m);break;case 23:break;case 22:var $=m.stateNode;m.memoizedState!==null?$._visibility&2?Hi(c,m,E,R,u):Ir(c,m):($._visibility|=2,Hi(c,m,E,R,u)),u&&H&2048&&Lf(m.alternate,m);break;case 24:Hi(c,m,E,R,u),u&&H&2048&&zf(m.alternate,m);break;default:Hi(c,m,E,R,u)}n=n.sibling}}function Ir(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,s=n,u=s.flags;switch(s.tag){case 22:Ir(a,s),u&2048&&Lf(s.alternate,s);break;case 24:Ir(a,s),u&2048&&zf(s.alternate,s);break;default:Ir(a,s)}n=n.sibling}}var Vr=8192;function Ii(e,n,a){if(e.subtreeFlags&Vr)for(e=e.child;e!==null;)qm(e,n,a),e=e.sibling}function qm(e,n,a){switch(e.tag){case 26:Ii(e,n,a),e.flags&Vr&&e.memoizedState!==null&&L2(a,Aa,e.memoizedState,e.memoizedProps);break;case 5:Ii(e,n,a);break;case 3:case 4:var s=Aa;Aa=No(e.stateNode.containerInfo),Ii(e,n,a),Aa=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Vr,Vr=16777216,Ii(e,n,a),Vr=s):Ii(e,n,a));break;default:Ii(e,n,a)}}function e0(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Xr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];mn=s,n0(s,e)}e0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)t0(e),e=e.sibling}function t0(e){switch(e.tag){case 0:case 11:case 15:Xr(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Xr(e);break;case 12:Xr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,bo(e)):Xr(e);break;default:Xr(e)}}function bo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];mn=s,n0(s,e)}e0(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:xl(8,n,n.return),bo(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,bo(n));break;default:bo(n)}e=e.sibling}}function n0(e,n){for(;mn!==null;){var a=mn;switch(a.tag){case 0:case 11:case 15:xl(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ar(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,mn=s;else e:for(a=e;mn!==null;){s=mn;var u=s.sibling,c=s.return;if(Fm(s),s===a){mn=null;break e}if(u!==null){u.return=c,mn=u;break e}mn=c}}}var J_={getCacheForType:function(e){var n=wn(Jt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return wn(Jt).controller.signal}},P_=typeof WeakMap=="function"?WeakMap:Map,ot=0,wt=null,He=null,Ge=0,ht=0,la=null,Ol=!1,Vi=!1,jf=!1,al=0,Ut=0,Dl=0,si=0,Bf=0,ia=0,Xi=0,Qr=null,$n=null,Uf=!1,yo=0,a0=0,_o=1/0,So=null,Rl=null,un=0,Nl=null,Qi=null,ll=0,Hf=0,If=null,l0=null,Gr=0,Vf=null;function ra(){return(ot&2)!==0&&Ge!==0?Ge&-Ge:j.T!==null?Yf():Bn()}function i0(){if(ia===0)if((Ge&536870912)===0||Ye){var e=at;at<<=1,(at&3932160)===0&&(at=262144),ia=e}else ia=536870912;return e=na.current,e!==null&&(e.flags|=32),ia}function qn(e,n,a){(e===wt&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(Gi(e,0),Ml(e,Ge,ia,!1)),jn(e,a),((ot&2)===0||e!==wt)&&(e===wt&&((ot&2)===0&&(si|=a),Ut===4&&Ml(e,Ge,ia,!1)),Ha(e))}function r0(e,n,a){if((ot&6)!==0)throw Error(r(327));var s=!a&&(n&127)===0&&(n&e.expiredLanes)===0||Rn(e,n),u=s?q_(e,n):Qf(e,n,!0),c=s;do{if(u===0){Vi&&!s&&Ml(e,n,0,!1);break}else{if(a=e.current.alternate,c&&!W_(a)){u=Qf(e,n,!1),c=!1;continue}if(u===2){if(c=n,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){n=m;e:{var E=e;u=Qr;var R=E.current.memoizedState.isDehydrated;if(R&&(Gi(E,m).flags|=256),m=Qf(E,m,!1),m!==2){if(jf&&!R){E.errorRecoveryDisabledLanes|=c,si|=c,u=4;break e}c=$n,$n=u,c!==null&&($n===null?$n=c:$n.push.apply($n,c))}u=m}if(c=!1,u!==2)continue}}if(u===1){Gi(e,0),Ml(e,n,0,!0);break}e:{switch(s=e,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:Ml(s,n,ia,!Ol);break e;case 2:$n=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(u=yo+300-st(),10<u)){if(Ml(s,n,ia,!Ol),Dn(s,0,!0)!==0)break e;ll=n,s.timeoutHandle=B0(s0.bind(null,s,a,$n,So,Uf,n,ia,si,Xi,Ol,c,"Throttled",-0,0),u);break e}s0(s,a,$n,So,Uf,n,ia,si,Xi,Ol,c,null,-0,0)}}break}while(!0);Ha(e)}function s0(e,n,a,s,u,c,m,E,R,H,$,ae,X,F){if(e.timeoutHandle=-1,ae=n.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qa},qm(n,c,ae);var ve=(c&62914560)===c?yo-st():(c&4194048)===c?a0-st():0;if(ve=z2(ae,ve),ve!==null){ll=c,e.cancelPendingCommit=ve(g0.bind(null,e,n,c,a,s,u,m,E,R,$,ae,null,X,F)),Ml(e,c,m,!H);return}}g0(e,n,c,a,s,u,m,E,R)}function W_(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var u=a[s],c=u.getSnapshot;u=u.value;try{if(!ea(c(),u))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ml(e,n,a,s){n&=~Bf,n&=~si,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var u=n;0<u;){var c=31-Je(u),m=1<<c;s[c]=-1,u&=~m}a!==0&&rn(e,a,n)}function Eo(){return(ot&6)===0?(Zr(0),!1):!0}function Xf(){if(He!==null){if(ht===0)var e=He.return;else e=He,Ya=$l=null,af(e),Li=null,xr=0,e=He;for(;e!==null;)Um(e.alternate,e),e=e.return;He=null}}function Gi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,v2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ll=0,Xf(),wt=e,He=a=Za(e.current,null),Ge=n,ht=0,la=null,Ol=!1,Vi=Rn(e,n),jf=!1,Xi=ia=Bf=si=Dl=Ut=0,$n=Qr=null,Uf=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var u=31-Je(s),c=1<<u;n|=e[u],s&=~c}return al=n,Xs(),a}function o0(e,n){Le=null,j.H=zr,n===ki||n===Ps?(n=Tg(),ht=3):n===Zc?(n=Tg(),ht=4):ht=n===_f?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,la=n,He===null&&(Ut=1,co(e,ha(n,e.current)))}function u0(){var e=na.current;return e===null?!0:(Ge&4194048)===Ge?va===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===va:!1}function c0(){var e=j.H;return j.H=zr,e===null?zr:e}function f0(){var e=j.A;return j.A=J_,e}function wo(){Ut=4,Ol||(Ge&4194048)!==Ge&&na.current!==null||(Vi=!0),(Dl&134217727)===0&&(si&134217727)===0||wt===null||Ml(wt,Ge,ia,!1)}function Qf(e,n,a){var s=ot;ot|=2;var u=c0(),c=f0();(wt!==e||Ge!==n)&&(So=null,Gi(e,n)),n=!1;var m=Ut;e:do try{if(ht!==0&&He!==null){var E=He,R=la;switch(ht){case 8:Xf(),m=6;break e;case 3:case 2:case 9:case 6:na.current===null&&(n=!0);var H=ht;if(ht=0,la=null,Zi(e,E,R,H),a&&Vi){m=0;break e}break;default:H=ht,ht=0,la=null,Zi(e,E,R,H)}}$_(),m=Ut;break}catch($){o0(e,$)}while(!0);return n&&e.shellSuspendCounter++,Ya=$l=null,ot=s,j.H=u,j.A=c,He===null&&(wt=null,Ge=0,Xs()),m}function $_(){for(;He!==null;)d0(He)}function q_(e,n){var a=ot;ot|=2;var s=c0(),u=f0();wt!==e||Ge!==n?(So=null,_o=st()+500,Gi(e,n)):Vi=Rn(e,n);e:do try{if(ht!==0&&He!==null){n=He;var c=la;t:switch(ht){case 1:ht=0,la=null,Zi(e,n,c,1);break;case 2:case 9:if(Eg(c)){ht=0,la=null,h0(n);break}n=function(){ht!==2&&ht!==9||wt!==e||(ht=7),Ha(e)},c.then(n,n);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:Eg(c)?(ht=0,la=null,h0(n)):(ht=0,la=null,Zi(e,n,c,7));break;case 5:var m=null;switch(He.tag){case 26:m=He.memoizedState;case 5:case 27:var E=He;if(m?$0(m):E.stateNode.complete){ht=0,la=null;var R=E.sibling;if(R!==null)He=R;else{var H=E.return;H!==null?(He=H,To(H)):He=null}break t}}ht=0,la=null,Zi(e,n,c,5);break;case 6:ht=0,la=null,Zi(e,n,c,6);break;case 8:Xf(),Ut=6;break e;default:throw Error(r(462))}}e2();break}catch($){o0(e,$)}while(!0);return Ya=$l=null,j.H=s,j.A=u,ot=a,He!==null?0:(wt=null,Ge=0,Xs(),Ut)}function e2(){for(;He!==null&&!nn();)d0(He)}function d0(e){var n=jm(e.alternate,e,al);e.memoizedProps=e.pendingProps,n===null?To(e):He=n}function h0(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=Rm(a,n,n.pendingProps,n.type,void 0,Ge);break;case 11:n=Rm(a,n,n.pendingProps,n.type.render,n.ref,Ge);break;case 5:af(n);default:Um(a,n),n=He=fg(n,al),n=jm(a,n,al)}e.memoizedProps=e.pendingProps,n===null?To(e):He=n}function Zi(e,n,a,s){Ya=$l=null,af(n),Li=null,xr=0;var u=n.return;try{if(X_(e,u,n,a,Ge)){Ut=1,co(e,ha(a,e.current)),He=null;return}}catch(c){if(u!==null)throw He=u,c;Ut=1,co(e,ha(a,e.current)),He=null;return}n.flags&32768?(Ye||s===1?e=!0:Vi||(Ge&536870912)!==0?e=!1:(Ol=e=!0,(s===2||s===9||s===3||s===6)&&(s=na.current,s!==null&&s.tag===13&&(s.flags|=16384))),p0(n,e)):To(n)}function To(e){var n=e;do{if((n.flags&32768)!==0){p0(n,Ol);return}e=n.return;var a=Z_(n.alternate,n,al);if(a!==null){He=a;return}if(n=n.sibling,n!==null){He=n;return}He=n=e}while(n!==null);Ut===0&&(Ut=5)}function p0(e,n){do{var a=F_(e.alternate,e);if(a!==null){a.flags&=32767,He=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){He=e;return}He=e=a}while(e!==null);Ut=6,He=null}function g0(e,n,a,s,u,c,m,E,R){e.cancelPendingCommit=null;do Ao();while(un!==0);if((ot&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(c=n.lanes|n.childLanes,c|=Rc,fa(e,a,c,m,E,R),e===wt&&(He=wt=null,Ge=0),Qi=n,Nl=e,ll=a,Hf=c,If=u,l0=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,l2(Vt,function(){return _0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=j.T,j.T=null,u=le.p,le.p=2,m=ot,ot|=4;try{Y_(e,n,a)}finally{ot=m,le.p=u,j.T=s}}un=1,m0(),v0(),b0()}}function m0(){if(un===1){un=0;var e=Nl,n=Qi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var s=le.p;le.p=2;var u=ot;ot|=4;try{Pm(n,e);var c=td,m=ng(e.containerInfo),E=c.focusedElem,R=c.selectionRange;if(m!==E&&E&&E.ownerDocument&&tg(E.ownerDocument.documentElement,E)){if(R!==null&&Ac(E)){var H=R.start,$=R.end;if($===void 0&&($=H),"selectionStart"in E)E.selectionStart=H,E.selectionEnd=Math.min($,E.value.length);else{var ae=E.ownerDocument||document,X=ae&&ae.defaultView||window;if(X.getSelection){var F=X.getSelection(),ve=E.textContent.length,Ce=Math.min(R.start,ve),_t=R.end===void 0?Ce:Math.min(R.end,ve);!F.extend&&Ce>_t&&(m=_t,_t=Ce,Ce=m);var z=eg(E,Ce),M=eg(E,_t);if(z&&M&&(F.rangeCount!==1||F.anchorNode!==z.node||F.anchorOffset!==z.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var U=ae.createRange();U.setStart(z.node,z.offset),F.removeAllRanges(),Ce>_t?(F.addRange(U),F.extend(M.node,M.offset)):(U.setEnd(M.node,M.offset),F.addRange(U))}}}}for(ae=[],F=E;F=F.parentNode;)F.nodeType===1&&ae.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Bo=!!ed,td=ed=null}finally{ot=u,le.p=s,j.T=a}}e.current=n,un=2}}function v0(){if(un===2){un=0;var e=Nl,n=Qi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var s=le.p;le.p=2;var u=ot;ot|=4;try{Zm(e,n.alternate,n)}finally{ot=u,le.p=s,j.T=a}}un=3}}function b0(){if(un===4||un===3){un=0,Et();var e=Nl,n=Qi,a=ll,s=l0;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?un=5:(un=0,Qi=Nl=null,y0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Rl=null),Pe(a),n=n.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=j.T,u=le.p,le.p=2,j.T=null;try{for(var c=e.onRecoverableError,m=0;m<s.length;m++){var E=s[m];c(E.value,{componentStack:E.stack})}}finally{j.T=n,le.p=u}}(ll&3)!==0&&Ao(),Ha(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Vf?Gr++:(Gr=0,Vf=e):Gr=0,Zr(0)}}function y0(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Ar(n)))}function Ao(){return m0(),v0(),b0(),_0()}function _0(){if(un!==5)return!1;var e=Nl,n=Hf;Hf=0;var a=Pe(ll),s=j.T,u=le.p;try{le.p=32>a?32:a,j.T=null,a=If,If=null;var c=Nl,m=ll;if(un=0,Qi=Nl=null,ll=0,(ot&6)!==0)throw Error(r(331));var E=ot;if(ot|=4,t0(c.current),$m(c,c.current,m,a),ot=E,Zr(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(dn,c)}catch{}return!0}finally{le.p=u,j.T=s,y0(e,n)}}function S0(e,n,a){n=ha(a,n),n=yf(e.stateNode,n,2),e=Tl(e,n,2),e!==null&&(jn(e,2),Ha(e))}function pt(e,n,a){if(e.tag===3)S0(e,e,a);else for(;n!==null;){if(n.tag===3){S0(n,e,a);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Rl===null||!Rl.has(s))){e=ha(a,e),a=Em(2),s=Tl(n,a,2),s!==null&&(wm(a,s,n,e),jn(s,2),Ha(s));break}}n=n.return}}function Gf(e,n,a){var s=e.pingCache;if(s===null){s=e.pingCache=new P_;var u=new Set;s.set(n,u)}else u=s.get(n),u===void 0&&(u=new Set,s.set(n,u));u.has(a)||(jf=!0,u.add(a),e=t2.bind(null,e,n,a),n.then(e,e))}function t2(e,n,a){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,wt===e&&(Ge&a)===a&&(Ut===4||Ut===3&&(Ge&62914560)===Ge&&300>st()-yo?(ot&2)===0&&Gi(e,0):Bf|=a,Xi===Ge&&(Xi=0)),Ha(e)}function E0(e,n){n===0&&(n=ln()),e=Jl(e,n),e!==null&&(jn(e,n),Ha(e))}function n2(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),E0(e,a)}function a2(e,n){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(n),E0(e,a)}function l2(e,n){return Zt(e,n)}var Co=null,Fi=null,Zf=!1,xo=!1,Ff=!1,kl=0;function Ha(e){e!==Fi&&e.next===null&&(Fi===null?Co=Fi=e:Fi=Fi.next=e),xo=!0,Zf||(Zf=!0,r2())}function Zr(e,n){if(!Ff&&xo){Ff=!0;do for(var a=!1,s=Co;s!==null;){if(e!==0){var u=s.pendingLanes;if(u===0)var c=0;else{var m=s.suspendedLanes,E=s.pingedLanes;c=(1<<31-Je(42|e)+1)-1,c&=u&~(m&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,C0(s,c))}else c=Ge,c=Dn(s,s===wt?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Rn(s,c)||(a=!0,C0(s,c));s=s.next}while(a);Ff=!1}}function i2(){w0()}function w0(){xo=Zf=!1;var e=0;kl!==0&&m2()&&(e=kl);for(var n=st(),a=null,s=Co;s!==null;){var u=s.next,c=T0(s,n);c===0?(s.next=null,a===null?Co=u:a.next=u,u===null&&(Fi=a)):(a=s,(e!==0||(c&3)!==0)&&(xo=!0)),s=u}un!==0&&un!==5||Zr(e),kl!==0&&(kl=0)}function T0(e,n){for(var a=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Je(c),E=1<<m,R=u[m];R===-1?((E&a)===0||(E&s)!==0)&&(u[m]=vt(E,n)):R<=n&&(e.expiredLanes|=E),c&=~E}if(n=wt,a=Ge,a=Dn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===n&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ct(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Rn(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(s!==null&&Ct(s),Pe(a)){case 2:case 8:a=Ft;break;case 32:a=Vt;break;case 268435456:a=fn;break;default:a=Vt}return s=A0.bind(null,e),a=Zt(a,s),e.callbackPriority=n,e.callbackNode=a,n}return s!==null&&s!==null&&Ct(s),e.callbackPriority=2,e.callbackNode=null,2}function A0(e,n){if(un!==0&&un!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ao()&&e.callbackNode!==a)return null;var s=Ge;return s=Dn(e,e===wt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(r0(e,s,n),T0(e,st()),e.callbackNode!=null&&e.callbackNode===a?A0.bind(null,e):null)}function C0(e,n){if(Ao())return null;r0(e,n,!0)}function r2(){b2(function(){(ot&6)!==0?Zt(It,i2):w0()})}function Yf(){if(kl===0){var e=Ni;e===0&&(e=Lt,Lt<<=1,(Lt&261888)===0&&(Lt=256)),kl=e}return kl}function x0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ls(""+e)}function O0(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function s2(e,n,a,s,u){if(n==="submit"&&a&&a.stateNode===u){var c=x0((u[et]||null).action),m=s.submitter;m&&(n=(n=m[et]||null)?x0(n.formAction):m.getAttribute("formAction"),n!==null&&(c=n,m=null));var E=new Us("action","action",null,s,u);e.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(kl!==0){var R=m?O0(u,m):new FormData(u);hf(a,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(E.preventDefault(),R=m?O0(u,m):new FormData(u),hf(a,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var Kf=0;Kf<Dc.length;Kf++){var Jf=Dc[Kf],o2=Jf.toLowerCase(),u2=Jf[0].toUpperCase()+Jf.slice(1);Ta(o2,"on"+u2)}Ta(ig,"onAnimationEnd"),Ta(rg,"onAnimationIteration"),Ta(sg,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(A_,"onTransitionRun"),Ta(C_,"onTransitionStart"),Ta(x_,"onTransitionCancel"),Ta(og,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),lt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),lt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),lt("onBeforeInput",["compositionend","keypress","textInput","paste"]),lt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),lt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),lt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="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(" "),c2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fr));function D0(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],u=s.event;s=s.listeners;e:{var c=void 0;if(n)for(var m=s.length-1;0<=m;m--){var E=s[m],R=E.instance,H=E.currentTarget;if(E=E.listener,R!==c&&u.isPropagationStopped())break e;c=E,u.currentTarget=H;try{c(u)}catch($){Vs($)}u.currentTarget=null,c=R}else for(m=0;m<s.length;m++){if(E=s[m],R=E.instance,H=E.currentTarget,E=E.listener,R!==c&&u.isPropagationStopped())break e;c=E,u.currentTarget=H;try{c(u)}catch($){Vs($)}u.currentTarget=null,c=R}}}}function Ie(e,n){var a=n[Fn];a===void 0&&(a=n[Fn]=new Set);var s=e+"__bubble";a.has(s)||(R0(n,e,2,!1),a.add(s))}function Pf(e,n,a){var s=0;n&&(s|=4),R0(a,e,s,n)}var Oo="_reactListening"+Math.random().toString(36).slice(2);function Wf(e){if(!e[Oo]){e[Oo]=!0,dt.forEach(function(a){a!=="selectionchange"&&(c2.has(a)||Pf(a,!1,e),Pf(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Oo]||(n[Oo]=!0,Pf("selectionchange",!1,n))}}function R0(e,n,a,s){switch(i1(n)){case 2:var u=U2;break;case 8:u=H2;break;default:u=dd}a=u.bind(null,n,a,e),u=void 0,!mc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(n,a,{capture:!0,passive:u}):e.addEventListener(n,a,!0):u!==void 0?e.addEventListener(n,a,{passive:u}):e.addEventListener(n,a,!1)}function $f(e,n,a,s,u){var c=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var E=s.stateNode.containerInfo;if(E===u)break;if(m===4)for(m=s.return;m!==null;){var R=m.tag;if((R===3||R===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;E!==null;){if(m=W(E),m===null)return;if(R=m.tag,R===5||R===6||R===26||R===27){s=c=m;continue e}E=E.parentNode}}s=s.return}zp(function(){var H=c,$=pc(a),ae=[];e:{var X=ug.get(e);if(X!==void 0){var F=Us,ve=e;switch(e){case"keypress":if(js(a)===0)break e;case"keydown":case"keyup":F=a_;break;case"focusin":ve="focus",F=_c;break;case"focusout":ve="blur",F=_c;break;case"beforeblur":case"afterblur":F=_c;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Up;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=r_;break;case ig:case rg:case sg:F=Ky;break;case og:F=o_;break;case"scroll":case"scrollend":F=Qy;break;case"wheel":F=c_;break;case"copy":case"cut":case"paste":F=Py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Ip;break;case"toggle":case"beforetoggle":F=d_}var Ce=(n&4)!==0,_t=!Ce&&(e==="scroll"||e==="scrollend"),z=Ce?X!==null?X+"Capture":null:X;Ce=[];for(var M=H,U;M!==null;){var te=M;if(U=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||U===null||z===null||(te=pr(M,z),te!=null&&Ce.push(Yr(M,te,U))),_t)break;M=M.return}0<Ce.length&&(X=new F(X,ve,null,a,$),ae.push({event:X,listeners:Ce}))}}if((n&7)===0){e:{if(X=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",X&&a!==hc&&(ve=a.relatedTarget||a.fromElement)&&(W(ve)||ve[pn]))break e;if((F||X)&&(X=$.window===$?$:(X=$.ownerDocument)?X.defaultView||X.parentWindow:window,F?(ve=a.relatedTarget||a.toElement,F=H,ve=ve?W(ve):null,ve!==null&&(_t=f(ve),Ce=ve.tag,ve!==_t||Ce!==5&&Ce!==27&&Ce!==6)&&(ve=null)):(F=null,ve=H),F!==ve)){if(Ce=Up,te="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=Ip,te="onPointerLeave",z="onPointerEnter",M="pointer"),_t=F==null?X:Ee(F),U=ve==null?X:Ee(ve),X=new Ce(te,M+"leave",F,a,$),X.target=_t,X.relatedTarget=U,te=null,W($)===H&&(Ce=new Ce(z,M+"enter",ve,a,$),Ce.target=U,Ce.relatedTarget=_t,te=Ce),_t=te,F&&ve)t:{for(Ce=f2,z=F,M=ve,U=0,te=z;te;te=Ce(te))U++;te=0;for(var Te=M;Te;Te=Ce(Te))te++;for(;0<U-te;)z=Ce(z),U--;for(;0<te-U;)M=Ce(M),te--;for(;U--;){if(z===M||M!==null&&z===M.alternate){Ce=z;break t}z=Ce(z),M=Ce(M)}Ce=null}else Ce=null;F!==null&&N0(ae,X,F,Ce,!1),ve!==null&&_t!==null&&N0(ae,_t,ve,Ce,!0)}}e:{if(X=H?Ee(H):window,F=X.nodeName&&X.nodeName.toLowerCase(),F==="select"||F==="input"&&X.type==="file")var it=Kp;else if(Fp(X))if(Jp)it=E_;else{it=__;var _e=y_}else F=X.nodeName,!F||F.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?H&&dc(H.elementType)&&(it=Kp):it=S_;if(it&&(it=it(e,H))){Yp(ae,it,a,$);break e}_e&&_e(e,X,H),e==="focusout"&&H&&X.type==="number"&&H.memoizedProps.value!=null&&fc(X,"number",X.value)}switch(_e=H?Ee(H):window,e){case"focusin":(Fp(_e)||_e.contentEditable==="true")&&(wi=_e,Cc=H,Er=null);break;case"focusout":Er=Cc=wi=null;break;case"mousedown":xc=!0;break;case"contextmenu":case"mouseup":case"dragend":xc=!1,ag(ae,a,$);break;case"selectionchange":if(T_)break;case"keydown":case"keyup":ag(ae,a,$)}var je;if(Ec)e:{switch(e){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else Ei?Gp(e,a)&&(Ze="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ze="onCompositionStart");Ze&&(Vp&&a.locale!=="ko"&&(Ei||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&Ei&&(je=jp()):(vl=$,vc="value"in vl?vl.value:vl.textContent,Ei=!0)),_e=Do(H,Ze),0<_e.length&&(Ze=new Hp(Ze,e,null,a,$),ae.push({event:Ze,listeners:_e}),je?Ze.data=je:(je=Zp(a),je!==null&&(Ze.data=je)))),(je=p_?g_(e,a):m_(e,a))&&(Ze=Do(H,"onBeforeInput"),0<Ze.length&&(_e=new Hp("onBeforeInput","beforeinput",null,a,$),ae.push({event:_e,listeners:Ze}),_e.data=je)),s2(ae,e,H,a,$)}D0(ae,n)})}function Yr(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Do(e,n){for(var a=n+"Capture",s=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=pr(e,a),u!=null&&s.unshift(Yr(e,u,c)),u=pr(e,n),u!=null&&s.push(Yr(e,u,c))),e.tag===3)return s;e=e.return}return[]}function f2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function N0(e,n,a,s,u){for(var c=n._reactName,m=[];a!==null&&a!==s;){var E=a,R=E.alternate,H=E.stateNode;if(E=E.tag,R!==null&&R===s)break;E!==5&&E!==26&&E!==27||H===null||(R=H,u?(H=pr(a,c),H!=null&&m.unshift(Yr(a,H,R))):u||(H=pr(a,c),H!=null&&m.push(Yr(a,H,R)))),a=a.return}m.length!==0&&e.push({event:n,listeners:m})}var d2=/\r\n?/g,h2=/\u0000|\uFFFD/g;function M0(e){return(typeof e=="string"?e:""+e).replace(d2,`
|
|
9
|
-
`).replace(h2,"")}function k0(e,n){return n=M0(n),M0(e)===n}function yt(e,n,a,s,u,c){switch(a){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Xa(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Xa(e,""+s);break;case"className":Yn(e,"class",s);break;case"tabIndex":Yn(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(e,a,s);break;case"style":kp(e,s,c);break;case"data":if(n!=="object"){Yn(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Ls(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(n!=="input"&&yt(e,n,"name",u.name,u,null),yt(e,n,"formEncType",u.formEncType,u,null),yt(e,n,"formMethod",u.formMethod,u,null),yt(e,n,"formTarget",u.formTarget,u,null)):(yt(e,n,"encType",u.encType,u,null),yt(e,n,"method",u.method,u,null),yt(e,n,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Ls(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=Qa);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}a=Ls(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),Ue(e,"popover",s);break;case"xlinkActuate":gn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":gn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":gn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":gn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":gn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":gn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":gn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":gn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":gn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ue(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Vy.get(a)||a,Ue(e,a,s))}}function qf(e,n,a,s,u,c){switch(a){case"style":kp(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof s=="string"?Xa(e,s):(typeof s=="number"||typeof s=="bigint")&&Xa(e,""+s);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Qa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Re.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),n=a.slice(2,u?a.length-7:void 0),c=e[et]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(n,c,u),typeof s=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,s,u);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):Ue(e,a,s)}}}function An(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",e),Ie("load",e);var s=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:yt(e,n,c,m,a,null)}}u&&yt(e,n,"srcSet",a.srcSet,a,null),s&&yt(e,n,"src",a.src,a,null);return;case"input":Ie("invalid",e);var E=c=m=u=null,R=null,H=null;for(s in a)if(a.hasOwnProperty(s)){var $=a[s];if($!=null)switch(s){case"name":u=$;break;case"type":m=$;break;case"checked":R=$;break;case"defaultChecked":H=$;break;case"value":c=$;break;case"defaultValue":E=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,n));break;default:yt(e,n,s,$,a,null)}}hr(e,c,E,R,H,m,u,!1);return;case"select":Ie("invalid",e),s=m=c=null;for(u in a)if(a.hasOwnProperty(u)&&(E=a[u],E!=null))switch(u){case"value":c=E;break;case"defaultValue":m=E;break;case"multiple":s=E;default:yt(e,n,u,E,a,null)}n=c,a=m,e.multiple=!!s,n!=null?ml(e,!!s,n,!1):a!=null&&ml(e,!!s,a,!0);return;case"textarea":Ie("invalid",e),c=u=s=null;for(m in a)if(a.hasOwnProperty(m)&&(E=a[m],E!=null))switch(m){case"value":s=E;break;case"defaultValue":u=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:yt(e,n,m,E,a,null)}Np(e,s,u,c);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(s=a[R],s!=null))switch(R){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:yt(e,n,R,s,a,null)}return;case"dialog":Ie("beforetoggle",e),Ie("toggle",e),Ie("cancel",e),Ie("close",e);break;case"iframe":case"object":Ie("load",e);break;case"video":case"audio":for(s=0;s<Fr.length;s++)Ie(Fr[s],e);break;case"image":Ie("error",e),Ie("load",e);break;case"details":Ie("toggle",e);break;case"embed":case"source":case"link":Ie("error",e),Ie("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in a)if(a.hasOwnProperty(H)&&(s=a[H],s!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:yt(e,n,H,s,a,null)}return;default:if(dc(n)){for($ in a)a.hasOwnProperty($)&&(s=a[$],s!==void 0&&qf(e,n,$,s,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null&&yt(e,n,E,s,a,null))}function p2(e,n,a,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,m=null,E=null,R=null,H=null,$=null;for(F in a){var ae=a[F];if(a.hasOwnProperty(F)&&ae!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":R=ae;default:s.hasOwnProperty(F)||yt(e,n,F,null,s,ae)}}for(var X in s){var F=s[X];if(ae=a[X],s.hasOwnProperty(X)&&(F!=null||ae!=null))switch(X){case"type":c=F;break;case"name":u=F;break;case"checked":H=F;break;case"defaultChecked":$=F;break;case"value":m=F;break;case"defaultValue":E=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,n));break;default:F!==ae&&yt(e,n,X,F,s,ae)}}cc(e,m,E,R,H,$,c,u);return;case"select":F=m=E=X=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":F=R;default:s.hasOwnProperty(c)||yt(e,n,c,null,s,R)}for(u in s)if(c=s[u],R=a[u],s.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":X=c;break;case"defaultValue":E=c;break;case"multiple":m=c;default:c!==R&&yt(e,n,u,c,s,R)}n=E,a=m,s=F,X!=null?ml(e,!!a,X,!1):!!s!=!!a&&(n!=null?ml(e,!!a,n,!0):ml(e,!!a,a?[]:"",!1));return;case"textarea":F=X=null;for(E in a)if(u=a[E],a.hasOwnProperty(E)&&u!=null&&!s.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:yt(e,n,E,null,s,u)}for(m in s)if(u=s[m],c=a[m],s.hasOwnProperty(m)&&(u!=null||c!=null))switch(m){case"value":X=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&yt(e,n,m,u,s,c)}Rp(e,X,F);return;case"option":for(var ve in a)if(X=a[ve],a.hasOwnProperty(ve)&&X!=null&&!s.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:yt(e,n,ve,null,s,X)}for(R in s)if(X=s[R],F=a[R],s.hasOwnProperty(R)&&X!==F&&(X!=null||F!=null))switch(R){case"selected":e.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:yt(e,n,R,X,s,F)}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 a)X=a[Ce],a.hasOwnProperty(Ce)&&X!=null&&!s.hasOwnProperty(Ce)&&yt(e,n,Ce,null,s,X);for(H in s)if(X=s[H],F=a[H],s.hasOwnProperty(H)&&X!==F&&(X!=null||F!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,n));break;default:yt(e,n,H,X,s,F)}return;default:if(dc(n)){for(var _t in a)X=a[_t],a.hasOwnProperty(_t)&&X!==void 0&&!s.hasOwnProperty(_t)&&qf(e,n,_t,void 0,s,X);for($ in s)X=s[$],F=a[$],!s.hasOwnProperty($)||X===F||X===void 0&&F===void 0||qf(e,n,$,X,s,F);return}}for(var z in a)X=a[z],a.hasOwnProperty(z)&&X!=null&&!s.hasOwnProperty(z)&&yt(e,n,z,null,s,X);for(ae in s)X=s[ae],F=a[ae],!s.hasOwnProperty(ae)||X===F||X==null&&F==null||yt(e,n,ae,X,s,F)}function L0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var u=a[s],c=u.transferSize,m=u.initiatorType,E=u.duration;if(c&&E&&L0(m)){for(m=0,E=u.responseEnd,s+=1;s<a.length;s++){var R=a[s],H=R.startTime;if(H>E)break;var $=R.transferSize,ae=R.initiatorType;$&&L0(ae)&&(R=R.responseEnd,m+=$*(R<E?1:(E-H)/(R-H)))}if(--s,n+=8*(c+m)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ed=null,td=null;function Ro(e){return e.nodeType===9?e:e.ownerDocument}function z0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j0(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function nd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ad=null;function m2(){var e=window.event;return e&&e.type==="popstate"?e===ad?!1:(ad=e,!0):(ad=null,!1)}var B0=typeof setTimeout=="function"?setTimeout:void 0,v2=typeof clearTimeout=="function"?clearTimeout:void 0,U0=typeof Promise=="function"?Promise:void 0,b2=typeof queueMicrotask=="function"?queueMicrotask:typeof U0<"u"?function(e){return U0.resolve(null).then(e).catch(y2)}:B0;function y2(e){setTimeout(function(){throw e})}function Ll(e){return e==="head"}function H0(e,n){var a=n,s=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(s===0){e.removeChild(u),Pi(n);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Kr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Kr(a);for(var c=a.firstChild;c;){var m=c.nextSibling,E=c.nodeName;c[ue]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Kr(e.ownerDocument.body);a=u}while(a);Pi(n)}function I0(e,n){var a=e;e=0;do{var s=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=s}while(a)}function ld(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ld(a),D(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function _2(e,n,a,s){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ue])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ba(e.nextSibling),e===null)break}return null}function S2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ba(e.nextSibling),e===null))return null;return e}function V0(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ba(e.nextSibling),e===null))return null;return e}function id(e){return e.data==="$?"||e.data==="$~"}function rd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function E2(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var s=function(){n(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function ba(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var sd=null;function X0(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return ba(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function Q0(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function G0(e,n,a){switch(n=Ro(a),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Kr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);D(e)}var ya=new Map,Z0=new Set;function No(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var il=le.d;le.d={f:w2,r:T2,D:A2,C:C2,L:x2,m:O2,X:R2,S:D2,M:N2};function w2(){var e=il.f(),n=Eo();return e||n}function T2(e){var n=re(e);n!==null&&n.tag===5&&n.type==="form"?om(n):il.r(e)}var Yi=typeof document>"u"?null:document;function F0(e,n,a){var s=Yi;if(s&&typeof n=="string"&&n){var u=Un(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Z0.has(u)||(Z0.add(u),e={rel:e,crossOrigin:a,href:n},s.querySelector(u)===null&&(n=s.createElement("link"),An(n,"link",e),pe(n),s.head.appendChild(n)))}}function A2(e){il.D(e),F0("dns-prefetch",e,null)}function C2(e,n){il.C(e,n),F0("preconnect",e,n)}function x2(e,n,a){il.L(e,n,a);var s=Yi;if(s&&e&&n){var u='link[rel="preload"][as="'+Un(n)+'"]';n==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Un(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Un(a.imageSizes)+'"]')):u+='[href="'+Un(e)+'"]';var c=u;switch(n){case"style":c=Ki(e);break;case"script":c=Ji(e)}ya.has(c)||(e=S({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),ya.set(c,e),s.querySelector(u)!==null||n==="style"&&s.querySelector(Jr(c))||n==="script"&&s.querySelector(Pr(c))||(n=s.createElement("link"),An(n,"link",e),pe(n),s.head.appendChild(n)))}}function O2(e,n){il.m(e,n);var a=Yi;if(a&&e){var s=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Un(s)+'"][href="'+Un(e)+'"]',c=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ji(e)}if(!ya.has(c)&&(e=S({rel:"modulepreload",href:e},n),ya.set(c,e),a.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pr(c)))return}s=a.createElement("link"),An(s,"link",e),pe(s),a.head.appendChild(s)}}}function D2(e,n,a){il.S(e,n,a);var s=Yi;if(s&&e){var u=Qe(s).hoistableStyles,c=Ki(e);n=n||"default";var m=u.get(c);if(!m){var E={loading:0,preload:null};if(m=s.querySelector(Jr(c)))E.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":n},a),(a=ya.get(c))&&od(e,a);var R=m=s.createElement("link");pe(R),An(R,"link",e),R._p=new Promise(function(H,$){R.onload=H,R.onerror=$}),R.addEventListener("load",function(){E.loading|=1}),R.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Mo(m,n,s)}m={type:"stylesheet",instance:m,count:1,state:E},u.set(c,m)}}}function R2(e,n){il.X(e,n);var a=Yi;if(a&&e){var s=Qe(a).hoistableScripts,u=Ji(e),c=s.get(u);c||(c=a.querySelector(Pr(u)),c||(e=S({src:e,async:!0},n),(n=ya.get(u))&&ud(e,n),c=a.createElement("script"),pe(c),An(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function N2(e,n){il.M(e,n);var a=Yi;if(a&&e){var s=Qe(a).hoistableScripts,u=Ji(e),c=s.get(u);c||(c=a.querySelector(Pr(u)),c||(e=S({src:e,async:!0,type:"module"},n),(n=ya.get(u))&&ud(e,n),c=a.createElement("script"),pe(c),An(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function Y0(e,n,a,s){var u=(u=ce.current)?No(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ki(a.href),a=Qe(u).hoistableStyles,s=a.get(n),s||(s={type:"style",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ki(a.href);var c=Qe(u).hoistableStyles,m=c.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=u.querySelector(Jr(e)))&&!c._p&&(m.instance=c,m.state.loading=5),ya.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ya.set(e,a),c||M2(u,e,a,m.state))),n&&s===null)throw Error(r(528,""));return m}if(n&&s!==null)throw Error(r(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ji(a),a=Qe(u).hoistableScripts,s=a.get(n),s||(s={type:"script",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ki(e){return'href="'+Un(e)+'"'}function Jr(e){return'link[rel="stylesheet"]['+e+"]"}function K0(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function M2(e,n,a,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),An(n,"link",a),pe(n),e.head.appendChild(n))}function Ji(e){return'[src="'+Un(e)+'"]'}function Pr(e){return"script[async]"+e}function J0(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+Un(a.href)+'"]');if(s)return n.instance=s,pe(s),s;var u=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),pe(s),An(s,"style",u),Mo(s,a.precedence,e),n.instance=s;case"stylesheet":u=Ki(a.href);var c=e.querySelector(Jr(u));if(c)return n.state.loading|=4,n.instance=c,pe(c),c;s=K0(a),(u=ya.get(u))&&od(s,u),c=(e.ownerDocument||e).createElement("link"),pe(c);var m=c;return m._p=new Promise(function(E,R){m.onload=E,m.onerror=R}),An(c,"link",s),n.state.loading|=4,Mo(c,a.precedence,e),n.instance=c;case"script":return c=Ji(a.src),(u=e.querySelector(Pr(c)))?(n.instance=u,pe(u),u):(s=a,(u=ya.get(c))&&(s=S({},a),ud(s,u)),e=e.ownerDocument||e,u=e.createElement("script"),pe(u),An(u,"link",s),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Mo(s,a.precedence,e));return n.instance}function Mo(e,n,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,c=u,m=0;m<s.length;m++){var E=s[m];if(E.dataset.precedence===n)c=E;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function od(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function ud(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var ko=null;function P0(e,n,a){if(ko===null){var s=new Map,u=ko=new Map;u.set(a,s)}else u=ko,s=u.get(a),s||(s=new Map,u.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[ue]||c[De]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(n)||"";m=e+m;var E=s.get(m);E?E.push(c):s.set(m,[c])}}return s}function W0(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function k2(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function $0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function L2(e,n,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ki(s.href),c=n.querySelector(Jr(u));if(c){n=c._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Lo.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=c,pe(c);return}c=n.ownerDocument||n,s=K0(s),(u=ya.get(u))&&od(s,u),c=c.createElement("link"),pe(c);var m=c;m._p=new Promise(function(E,R){m.onload=E,m.onerror=R}),An(c,"link",s),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Lo.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var cd=0;function z2(e,n){return e.stylesheets&&e.count===0&&jo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var s=setTimeout(function(){if(e.stylesheets&&jo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+n);0<e.imgBytes&&cd===0&&(cd=62500*g2());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>cd?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function Lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var zo=null;function jo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zo=new Map,n.forEach(j2,e),zo=null,Lo.call(e))}function j2(e,n){if(!(n.state.loading&4)){var a=zo.get(e);if(a)var s=a.get(null);else{a=new Map,zo.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var m=u[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}u=n.instance,m=u.getAttribute("data-precedence"),c=a.get(m)||s,c===s&&a.set(null,u),a.set(m,u),this.count++,s=Lo.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var Wr={$$typeof:N,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function B2(e,n,a,s,u,c,m,E,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ca(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ca(0),this.hiddenUpdates=ca(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function q0(e,n,a,s,u,c,m,E,R,H,$,ae){return e=new B2(e,n,a,m,R,H,$,ae,E),n=1,c===!0&&(n|=24),c=ta(3,null,null,n),e.current=c,c.stateNode=e,n=Xc(),n.refCount++,e.pooledCache=n,n.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:n},Fc(c),e}function e1(e){return e?(e=Ci,e):Ci}function t1(e,n,a,s,u,c){u=e1(u),s.context===null?s.context=u:s.pendingContext=u,s=wl(n),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Tl(e,s,n),a!==null&&(qn(a,e,n),Dr(a,e,n))}function n1(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function fd(e,n){n1(e,n),(e=e.alternate)&&n1(e,n)}function a1(e){if(e.tag===13||e.tag===31){var n=Jl(e,67108864);n!==null&&qn(n,e,67108864),fd(e,67108864)}}function l1(e){if(e.tag===13||e.tag===31){var n=ra();n=zt(n);var a=Jl(e,n);a!==null&&qn(a,e,n),fd(e,n)}}var Bo=!0;function U2(e,n,a,s){var u=j.T;j.T=null;var c=le.p;try{le.p=2,dd(e,n,a,s)}finally{le.p=c,j.T=u}}function H2(e,n,a,s){var u=j.T;j.T=null;var c=le.p;try{le.p=8,dd(e,n,a,s)}finally{le.p=c,j.T=u}}function dd(e,n,a,s){if(Bo){var u=hd(s);if(u===null)$f(e,n,s,Uo,a),r1(e,s);else if(V2(u,e,n,a,s))s.stopPropagation();else if(r1(e,s),n&4&&-1<I2.indexOf(e)){for(;u!==null;){var c=re(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=At(c.pendingLanes);if(m!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;m;){var R=1<<31-Je(m);E.entanglements[1]|=R,m&=~R}Ha(c),(ot&6)===0&&(_o=st()+500,Zr(0))}}break;case 31:case 13:E=Jl(c,2),E!==null&&qn(E,c,2),Eo(),fd(c,2)}if(c=hd(s),c===null&&$f(e,n,s,Uo,a),c===u)break;u=c}u!==null&&s.stopPropagation()}else $f(e,n,s,null,a)}}function hd(e){return e=pc(e),pd(e)}var Uo=null;function pd(e){if(Uo=null,e=W(e),e!==null){var n=f(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=d(n),e!==null)return e;e=null}else if(a===31){if(e=g(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Uo=e,null}function i1(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(On()){case It:return 2;case Ft:return 8;case Vt:case cn:return 32;case fn:return 268435456;default:return 32}default:return 32}}var gd=!1,zl=null,jl=null,Bl=null,$r=new Map,qr=new Map,Ul=[],I2="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 r1(e,n){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Bl=null;break;case"pointerover":case"pointerout":$r.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":qr.delete(n.pointerId)}}function es(e,n,a,s,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[u]},n!==null&&(n=re(n),n!==null&&a1(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function V2(e,n,a,s,u){switch(n){case"focusin":return zl=es(zl,e,n,a,s,u),!0;case"dragenter":return jl=es(jl,e,n,a,s,u),!0;case"mouseover":return Bl=es(Bl,e,n,a,s,u),!0;case"pointerover":var c=u.pointerId;return $r.set(c,es($r.get(c)||null,e,n,a,s,u)),!0;case"gotpointercapture":return c=u.pointerId,qr.set(c,es(qr.get(c)||null,e,n,a,s,u)),!0}return!1}function s1(e){var n=W(e.target);if(n!==null){var a=f(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){e.blockedOn=n,Nn(e.priority,function(){l1(a)});return}}else if(n===31){if(n=g(a),n!==null){e.blockedOn=n,Nn(e.priority,function(){l1(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ho(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=hd(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);hc=s,a.target.dispatchEvent(s),hc=null}else return n=re(a),n!==null&&a1(n),e.blockedOn=a,!1;n.shift()}return!0}function o1(e,n,a){Ho(e)&&a.delete(n)}function X2(){gd=!1,zl!==null&&Ho(zl)&&(zl=null),jl!==null&&Ho(jl)&&(jl=null),Bl!==null&&Ho(Bl)&&(Bl=null),$r.forEach(o1),qr.forEach(o1)}function Io(e,n){e.blockedOn===n&&(e.blockedOn=null,gd||(gd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,X2)))}var Vo=null;function u1(e){Vo!==e&&(Vo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vo===e&&(Vo=null);for(var n=0;n<e.length;n+=3){var a=e[n],s=e[n+1],u=e[n+2];if(typeof s!="function"){if(pd(s||a)===null)continue;break}var c=re(a);c!==null&&(e.splice(n,3),n-=3,hf(c,{pending:!0,data:u,method:a.method,action:s},s,u))}}))}function Pi(e){function n(R){return Io(R,e)}zl!==null&&Io(zl,e),jl!==null&&Io(jl,e),Bl!==null&&Io(Bl,e),$r.forEach(n),qr.forEach(n);for(var a=0;a<Ul.length;a++){var s=Ul[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ul.length&&(a=Ul[0],a.blockedOn===null);)s1(a),a.blockedOn===null&&Ul.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var u=a[s],c=a[s+1],m=u[et]||null;if(typeof c=="function")m||u1(a);else if(m){var E=null;if(c&&c.hasAttribute("formAction")){if(u=c,m=c[et]||null)E=m.formAction;else if(pd(u)!==null)continue}else E=m.action;typeof E=="function"?a[s+1]=E:(a.splice(s,3),s-=3),u1(a)}}}function c1(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function md(e){this._internalRoot=e}Xo.prototype.render=md.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var a=n.current,s=ra();t1(a,s,e,n,null,null)},Xo.prototype.unmount=md.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;t1(e.current,2,null,e,null,null),Eo(),n[pn]=null}};function Xo(e){this._internalRoot=e}Xo.prototype.unstable_scheduleHydration=function(e){if(e){var n=Bn();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Ul.length&&n!==0&&n<Ul[a].priority;a++);Ul.splice(a,0,e),a===0&&s1(e)}};var f1=l.version;if(f1!=="19.2.0")throw Error(r(527,f1,"19.2.0"));le.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(n),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Q2={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qo.isDisabled&&Qo.supportsFiber)try{dn=Qo.inject(Q2),mt=Qo}catch{}}return ns.createRoot=function(e,n){if(!o(e))throw Error(r(299));var a=!1,s="",u=bm,c=ym,m=_m;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError)),n=q0(e,1,!1,null,null,a,s,null,u,c,m,c1),e[pn]=n.current,Wf(e),new md(n)},ns.hydrateRoot=function(e,n,a){if(!o(e))throw Error(r(299));var s=!1,u="",c=bm,m=ym,E=_m,R=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),n=q0(e,1,!0,n,a??null,s,u,R,c,m,E,c1),n.context=e1(null),a=n.current,s=ra(),s=zt(s),u=wl(s),u.callback=null,Tl(a,u,s),a=s,n.current.lanes=a,jn(n,a),Ha(n),e[pn]=n.current,Wf(e),new Xo(n)},ns.version="19.2.0",ns}var S1;function eS(){if(S1)return bd.exports;S1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),bd.exports=q2(),bd.exports}var tS=eS(),Z=Zu();const Vv=Z2(Z);var wd={exports:{}},Td={};var E1;function nS(){if(E1)return Td;E1=1;var t=Zu();function l(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var i=typeof Object.is=="function"?Object.is:l,r=t.useSyncExternalStore,o=t.useRef,f=t.useEffect,d=t.useMemo,g=t.useDebugValue;return Td.useSyncExternalStoreWithSelector=function(h,p,b,S,v){var _=o(null);if(_.current===null){var w={hasValue:!1,value:null};_.current=w}else w=_.current;_=d(function(){function A(B){if(!O){if(O=!0,C=B,B=S(B),v!==void 0&&w.hasValue){var I=w.value;if(v(I,B))return N=I}return N=B}if(I=N,i(C,B))return I;var L=S(B);return v!==void 0&&v(I,L)?(C=B,I):(C=B,N=L)}var O=!1,C,N,k=b===void 0?null:b;return[function(){return A(p())},k===null?void 0:function(){return A(k())}]},[p,b,S,v]);var T=r(h,_[0],_[1]);return f(function(){w.hasValue=!0,w.value=T},[T]),g(T),T},Td}var w1;function aS(){return w1||(w1=1,wd.exports=nS()),wd.exports}var lS=aS(),iS=Z.version.startsWith("19"),rS=Symbol.for(iS?"react.transitional.element":"react.element"),sS=Symbol.for("react.portal"),oS=Symbol.for("react.fragment"),uS=Symbol.for("react.strict_mode"),cS=Symbol.for("react.profiler"),fS=Symbol.for("react.consumer"),dS=Symbol.for("react.context"),Xv=Symbol.for("react.forward_ref"),hS=Symbol.for("react.suspense"),pS=Symbol.for("react.suspense_list"),Nh=Symbol.for("react.memo"),gS=Symbol.for("react.lazy"),mS=Xv,vS=Nh;function bS(t){if(typeof t=="object"&&t!==null){const{$$typeof:l}=t;switch(l){case rS:switch(t=t.type,t){case oS:case cS:case uS:case hS:case pS:return t;default:switch(t=t&&t.$$typeof,t){case dS:case Xv:case gS:case Nh:return t;case fS:return t;default:return l}}case sS:return l}}}function yS(t){return bS(t)===Nh}function _S(t,l,i,r,{areStatesEqual:o,areOwnPropsEqual:f,areStatePropsEqual:d}){let g=!1,h,p,b,S,v;function _(C,N){return h=C,p=N,b=t(h,p),S=l(r,p),v=i(b,S,p),g=!0,v}function w(){return b=t(h,p),l.dependsOnOwnProps&&(S=l(r,p)),v=i(b,S,p),v}function T(){return t.dependsOnOwnProps&&(b=t(h,p)),l.dependsOnOwnProps&&(S=l(r,p)),v=i(b,S,p),v}function A(){const C=t(h,p),N=!d(C,b);return b=C,N&&(v=i(b,S,p)),v}function O(C,N){const k=!f(N,p),B=!o(C,h,N,p);return h=C,p=N,k&&B?w():k?T():B?A():v}return function(N,k){return g?O(N,k):_(N,k)}}function SS(t,{initMapStateToProps:l,initMapDispatchToProps:i,initMergeProps:r,...o}){const f=l(t,o),d=i(t,o),g=r(t,o);return _S(f,d,g,t,o)}function ES(t,l){const i={};for(const r in t){const o=t[r];typeof o=="function"&&(i[r]=(...f)=>l(o(...f)))}return i}function Jd(t){return function(i){const r=t(i);function o(){return r}return o.dependsOnOwnProps=!1,o}}function T1(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function Qv(t,l){return function(r,{displayName:o}){const f=function(g,h){return f.dependsOnOwnProps?f.mapToProps(g,h):f.mapToProps(g,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(g,h){f.mapToProps=t,f.dependsOnOwnProps=T1(t);let p=f(g,h);return typeof p=="function"&&(f.mapToProps=p,f.dependsOnOwnProps=T1(p),p=f(g,h)),p},f}}function Mh(t,l){return(i,r)=>{throw new Error(`Invalid value of type ${typeof t} for ${l} argument when connecting component ${r.wrappedComponentName}.`)}}function wS(t){return t&&typeof t=="object"?Jd(l=>ES(t,l)):t?typeof t=="function"?Qv(t):Mh(t,"mapDispatchToProps"):Jd(l=>({dispatch:l}))}function TS(t){return t?typeof t=="function"?Qv(t):Mh(t,"mapStateToProps"):Jd(()=>({}))}function AS(t,l,i){return{...i,...t,...l}}function CS(t){return function(i,{displayName:r,areMergedPropsEqual:o}){let f=!1,d;return function(h,p,b){const S=t(h,p,b);return f?o(S,d)||(d=S):(f=!0,d=S),d}}}function xS(t){return t?typeof t=="function"?CS(t):Mh(t,"mergeProps"):()=>AS}function OS(t){t()}function DS(){let t=null,l=null;return{clear(){t=null,l=null},notify(){OS(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let r=t;for(;r;)i.push(r),r=r.next;return i},subscribe(i){let r=!0;const o=l={callback:i,next:null,prev:l};return o.prev?o.prev.next=o:t=o,function(){!r||t===null||(r=!1,o.next?o.next.prev=o.prev:l=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var A1={notify(){},get:()=>[]};function Gv(t,l){let i,r=A1,o=0,f=!1;function d(T){b();const A=r.subscribe(T);let O=!1;return()=>{O||(O=!0,A(),S())}}function g(){r.notify()}function h(){w.onStateChange&&w.onStateChange()}function p(){return f}function b(){o++,i||(i=l?l.addNestedSub(h):t.subscribe(h),r=DS())}function S(){o--,i&&o===0&&(i(),i=void 0,r.clear(),r=A1)}function v(){f||(f=!0,b())}function _(){f&&(f=!1,S())}const w={addNestedSub:d,notifyNestedSubs:g,handleChangeWrapper:h,isSubscribed:p,trySubscribe:v,tryUnsubscribe:_,getListeners:()=>r};return w}var RS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",NS=RS(),MS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",kS=MS(),LS=()=>NS||kS?Z.useLayoutEffect:Z.useEffect,pu=LS();function C1(t,l){return t===l?t!==0||l!==0||1/t===1/l:t!==t&&l!==l}function Ad(t,l){if(C1(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;const i=Object.keys(t),r=Object.keys(l);if(i.length!==r.length)return!1;for(let o=0;o<i.length;o++)if(!Object.prototype.hasOwnProperty.call(l,i[o])||!C1(t[i[o]],l[i[o]]))return!1;return!0}var zS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},BS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},US={[mS]:BS,[vS]:Zv};function x1(t){return yS(t)?Zv:US[t.$$typeof]||zS}var HS=Object.defineProperty,IS=Object.getOwnPropertyNames,O1=Object.getOwnPropertySymbols,VS=Object.getOwnPropertyDescriptor,XS=Object.getPrototypeOf,D1=Object.prototype;function Pd(t,l){if(typeof l!="string"){if(D1){const f=XS(l);f&&f!==D1&&Pd(t,f)}let i=IS(l);O1&&(i=i.concat(O1(l)));const r=x1(t),o=x1(l);for(let f=0;f<i.length;++f){const d=i[f];if(!jS[d]&&!(o&&o[d])&&!(r&&r[d])){const g=VS(l,d);try{HS(t,d,g)}catch{}}}}return t}var QS=Symbol.for("react-redux-context"),GS=typeof globalThis<"u"?globalThis:{};function ZS(){if(!Z.createContext)return{};const t=GS[QS]??=new Map;let l=t.get(Z.createContext);return l||(l=Z.createContext(null),t.set(Z.createContext,l)),l}var fl=ZS(),FS=[null,null];function YS(t,l,i){pu(()=>t(...l),i)}function KS(t,l,i,r,o,f){t.current=r,i.current=!1,o.current&&(o.current=null,f())}function JS(t,l,i,r,o,f,d,g,h,p,b){if(!t)return()=>{};let S=!1,v=null;const _=()=>{if(S||!g.current)return;const T=l.getState();let A,O;try{A=r(T,o.current)}catch(C){O=C,v=C}O||(v=null),A===f.current?d.current||p():(f.current=A,h.current=A,d.current=!0,b())};return i.onStateChange=_,i.trySubscribe(),_(),()=>{if(S=!0,i.tryUnsubscribe(),i.onStateChange=null,v)throw v}}function PS(t,l){return t===l}function WS(t,l,i,{pure:r,areStatesEqual:o=PS,areOwnPropsEqual:f=Ad,areStatePropsEqual:d=Ad,areMergedPropsEqual:g=Ad,forwardRef:h=!1,context:p=fl}={}){const b=p,S=TS(t),v=wS(l),_=xS(i),w=!!t;return A=>{const O=A.displayName||A.name||"Component",C=`Connect(${O})`,N={shouldHandleStateChanges:w,displayName:C,wrappedComponentName:O,WrappedComponent:A,initMapStateToProps:S,initMapDispatchToProps:v,initMergeProps:_,areStatesEqual:o,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:g};function k(L){const[J,G,q]=Z.useMemo(()=>{const{reactReduxForwardedRef:Ae,...gt}=L;return[L.context,Ae,gt]},[L]),Y=Z.useMemo(()=>{let Ae=b;return J?.Consumer,Ae},[J,b]),P=Z.useContext(Y),fe=!!L.store&&!!L.store.getState&&!!L.store.dispatch,he=!!P&&!!P.store,de=fe?L.store:P.store,j=he?P.getServerState:de.getState,le=Z.useMemo(()=>SS(de.dispatch,N),[de]),[Q,be]=Z.useMemo(()=>{if(!w)return FS;const Ae=Gv(de,fe?void 0:P.subscription),gt=Ae.notifyNestedSubs.bind(Ae);return[Ae,gt]},[de,fe,P]),ge=Z.useMemo(()=>fe?P:{...P,subscription:Q},[fe,P,Q]),x=Z.useRef(void 0),K=Z.useRef(q),ee=Z.useRef(void 0),oe=Z.useRef(!1),ne=Z.useRef(!1),ce=Z.useRef(void 0);pu(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const me=Z.useMemo(()=>()=>ee.current&&q===K.current?ee.current:le(de.getState(),q),[de,q]),Se=Z.useMemo(()=>gt=>Q?JS(w,de,Q,le,K,x,oe,ne,ee,be,gt):()=>{},[Q]);YS(KS,[K,x,oe,q,ee,be]);let we;try{we=Z.useSyncExternalStore(Se,me,j?()=>le(j(),q):me)}catch(Ae){throw ce.current&&(Ae.message+=`
|
|
8
|
+
`+s.stack}}var Xe=Object.prototype.hasOwnProperty,Zt=t.unstable_scheduleCallback,Ct=t.unstable_cancelCallback,nn=t.unstable_shouldYield,Et=t.unstable_requestPaint,st=t.unstable_now,On=t.unstable_getCurrentPriorityLevel,It=t.unstable_ImmediatePriority,Ft=t.unstable_UserBlockingPriority,Vt=t.unstable_NormalPriority,cn=t.unstable_LowPriority,fn=t.unstable_IdlePriority,ua=t.log,nt=t.unstable_setDisableYieldValue,dn=null,mt=null;function ft(e){if(typeof ua=="function"&&nt(e),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(dn,e)}catch{}}var Je=Math.clz32?Math.clz32:hn,qe=Math.log,an=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(qe(e)/an|0)|0}var Lt=256,at=262144,Yt=4194304;function At(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Dn(e,n,a){var s=e.pendingLanes;if(s===0)return 0;var u=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var E=s&134217727;return E!==0?(s=E&~c,s!==0?u=At(s):(m&=E,m!==0?u=At(m):a||(a=E&~e,a!==0&&(u=At(a))))):(E=s&~c,E!==0?u=At(E):m!==0?u=At(m):a||(a=s&~e,a!==0&&(u=At(a)))),u===0?0:n!==0&&n!==u&&(n&c)===0&&(c=u&-u,a=n&-n,c>=a||c===32&&(a&4194048)!==0)?n:u}function Rn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function vt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ln(){var e=Yt;return Yt<<=1,(Yt&62914560)===0&&(Yt=4194304),e}function ca(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function jn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fa(e,n,a,s,u,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,R=e.expirationTimes,H=e.hiddenUpdates;for(a=m&~a;0<a;){var $=31-Je(a),ae=1<<$;E[$]=0,R[$]=-1;var X=H[$];if(X!==null)for(H[$]=null,$=0;$<X.length;$++){var F=X[$];F!==null&&(F.lane&=-536870913)}a&=~ae}s!==0&&rn(e,s,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~n))}function rn(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-Je(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|a&261930}function sn(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var s=31-Je(a),u=1<<s;u&n|e[s]&n&&(e[s]|=n),a&=~u}}function Kt(e,n){var a=n&-n;return a=(a&42)!==0?1:zt(a),(a&(e.suspendedLanes|n))!==0?0:a}function zt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bn(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:i1(e.type))}function Nn(e,n){var a=le.p;try{return le.p=e,n()}finally{le.p=a}}var jt=Math.random().toString(36).slice(2),De="__reactFiber$"+jt,et="__reactProps$"+jt,pn="__reactContainer$"+jt,Fn="__reactEvents$"+jt,on="__reactListeners$"+jt,wa="__reactHandles$"+jt,ze="__reactResources$"+jt,ue="__reactMarker$"+jt;function D(e){delete e[De],delete e[et],delete e[Fn],delete e[on],delete e[wa]}function W(e){var n=e[De];if(n)return n;for(var a=e.parentNode;a;){if(n=a[pn]||a[De]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=Q0(e);e!==null;){if(a=e[De])return a;e=Q0(e)}return n}e=a,a=e.parentNode}return null}function re(e){if(e=e[De]||e[pn]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ee(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function Qe(e){var n=e[ze];return n||(n=e[ze]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pe(e){e[ue]=!0}var dt=new Set,Re={};function lt(e,n){tt(e,n),tt(e+"Capture",n)}function tt(e,n){for(Re[e]=n,e=0;e<n.length;e++)dt.add(n[e])}var Ne=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]*$"),Mt={},Xt={};function La(e){return Xe.call(Xt,e)?!0:Xe.call(Mt,e)?!1:Ne.test(e)?Xt[e]=!0:(Mt[e]=!0,!1)}function Ue(e,n,a){if(La(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Yn(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function gn(e,n,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+s)}}function Mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function za(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function uc(e,n,a){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,c=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function bi(e){if(!e._valueTracker){var n=za(e)?"checked":"value";e._valueTracker=uc(e,n,""+e[n])}}function Ms(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),s="";return e&&(s=za(e)?e.checked?"true":"false":e.value),e=s,e!==a?(n.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _i=/[\n"\\]/g;function Un(e){return e.replace(_i,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function cc(e,n,a,s,u,c,m,E){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),n!=null?m==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Mn(n)):e.value!==""+Mn(n)&&(e.value=""+Mn(n)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),n!=null?fc(e,m,Mn(n)):a!=null?fc(e,m,Mn(a)):s!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+Mn(E):e.removeAttribute("name")}function hr(e,n,a,s,u,c,m,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),n!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||n!=null)){bi(e);return}a=a!=null?""+Mn(a):"",n=n!=null?""+Mn(n):a,E||n===e.value||(e.value=n),e.defaultValue=n}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=E?e.checked:!!s,e.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),bi(e)}function fc(e,n,a){n==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ml(e,n,a,s){if(e=e.options,n){n={};for(var u=0;u<a.length;u++)n["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=n.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Mn(a),n=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Rp(e,n,a){if(n!=null&&(n=""+Mn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+Mn(a):""}function Np(e,n,a,s){if(n==null){if(s!=null){if(a!=null)throw Error(r(92));if(de(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),n=a}a=Mn(n),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s),bi(e)}function Xa(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var Hy=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 Mp(e,n,a){var s=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,a):typeof a!="number"||a===0||Hy.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function kp(e,n,a){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var u in n)s=n[u],n.hasOwnProperty(u)&&a[u]!==s&&Mp(e,u,s)}else for(var c in n)n.hasOwnProperty(c)&&Mp(e,c,n[c])}function dc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Iy=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"]]),Vy=/^[\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 ks(e){return Vy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qa(){}var hc=null;function pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Si=null,Ei=null;function Lp(e){var n=re(e);if(n&&(e=n.stateNode)){var a=e[et]||null;e:switch(e=n.stateNode,n.type){case"input":if(cc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Un(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var s=a[n];if(s!==e&&s.form===e.form){var u=s[et]||null;if(!u)throw Error(r(90));cc(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<a.length;n++)s=a[n],s.form===e.form&&Ms(s)}break e;case"textarea":Rp(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&ml(e,!!a.multiple,n,!1)}}}var gc=!1;function zp(e,n,a){if(gc)return e(n,a);gc=!0;try{var s=e(n);return s}finally{if(gc=!1,(Si!==null||Ei!==null)&&(So(),Si&&(n=Si,e=Ei,Ei=Si=null,Lp(n),e)))for(n=0;n<e.length;n++)Lp(e[n])}}function pr(e,n){var a=e.stateNode;if(a===null)return null;var s=a[et]||null;if(s===null)return null;a=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)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,n,typeof a));return a}var Ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mc=!1;if(Ga)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){mc=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{mc=!1}var vl=null,vc=null,Ls=null;function jp(){if(Ls)return Ls;var e,n=vc,a=n.length,s,u="value"in vl?vl.value:vl.textContent,c=u.length;for(e=0;e<a&&n[e]===u[e];e++);var m=a-e;for(s=1;s<=m&&n[a-s]===u[c-s];s++);return Ls=u.slice(e,1<s?1-s:void 0)}function zs(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function js(){return!0}function Bp(){return!1}function Kn(e){function n(a,s,u,c,m){this._reactName=a,this._targetInst=u,this.type=s,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?js:Bp,this.isPropagationStopped=Bp,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=js)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=js)},persist:function(){},isPersistent:js}),n}var Fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bs=Kn(Fl),mr=S({},Fl,{view:0,detail:0}),Xy=Kn(mr),bc,yc,vr,Us=S({},mr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vr&&(vr&&e.type==="mousemove"?(bc=e.screenX-vr.screenX,yc=e.screenY-vr.screenY):yc=bc=0,vr=e),bc)},movementY:function(e){return"movementY"in e?e.movementY:yc}}),Up=Kn(Us),Qy=S({},Us,{dataTransfer:0}),Gy=Kn(Qy),Zy=S({},mr,{relatedTarget:0}),_c=Kn(Zy),Fy=S({},Fl,{animationName:0,elapsedTime:0,pseudoElement:0}),Yy=Kn(Fy),Ky=S({},Fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jy=Kn(Ky),Py=S({},Fl,{data:0}),Hp=Kn(Py),Wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$y={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"},qy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=qy[e])?!!n[e]:!1}function Sc(){return e_}var t_=S({},mr,{key:function(e){if(e.key){var n=Wy[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=zs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$y[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sc,charCode:function(e){return e.type==="keypress"?zs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),n_=Kn(t_),a_=S({},Us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ip=Kn(a_),l_=S({},mr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sc}),i_=Kn(l_),r_=S({},Fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),s_=Kn(r_),o_=S({},Us,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),u_=Kn(o_),c_=S({},Fl,{newState:0,oldState:0}),f_=Kn(c_),d_=[9,13,27,32],Ec=Ga&&"CompositionEvent"in window,br=null;Ga&&"documentMode"in document&&(br=document.documentMode);var h_=Ga&&"TextEvent"in window&&!br,Vp=Ga&&(!Ec||br&&8<br&&11>=br),Xp=" ",Qp=!1;function Gp(e,n){switch(e){case"keyup":return d_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function p_(e,n){switch(e){case"compositionend":return Zp(n);case"keypress":return n.which!==32?null:(Qp=!0,Xp);case"textInput":return e=n.data,e===Xp&&Qp?null:e;default:return null}}function g_(e,n){if(wi)return e==="compositionend"||!Ec&&Gp(e,n)?(e=jp(),Ls=vc=vl=null,wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Vp&&n.locale!=="ko"?null:n.data;default:return null}}var m_={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 Fp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!m_[e.type]:n==="textarea"}function Yp(e,n,a,s){Si?Ei?Ei.push(s):Ei=[s]:Si=s,n=Oo(n,"onChange"),0<n.length&&(a=new Bs("onChange","change",null,a,s),e.push({event:a,listeners:n}))}var yr=null,_r=null;function v_(e){D0(e,0)}function Hs(e){var n=Ee(e);if(Ms(n))return e}function Kp(e,n){if(e==="change")return n}var Jp=!1;if(Ga){var wc;if(Ga){var Tc="oninput"in document;if(!Tc){var Pp=document.createElement("div");Pp.setAttribute("oninput","return;"),Tc=typeof Pp.oninput=="function"}wc=Tc}else wc=!1;Jp=wc&&(!document.documentMode||9<document.documentMode)}function Wp(){yr&&(yr.detachEvent("onpropertychange",$p),_r=yr=null)}function $p(e){if(e.propertyName==="value"&&Hs(_r)){var n=[];Yp(n,_r,e,pc(e)),zp(v_,n)}}function b_(e,n,a){e==="focusin"?(Wp(),yr=n,_r=a,yr.attachEvent("onpropertychange",$p)):e==="focusout"&&Wp()}function y_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hs(_r)}function __(e,n){if(e==="click")return Hs(n)}function S_(e,n){if(e==="input"||e==="change")return Hs(n)}function E_(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var ea=typeof Object.is=="function"?Object.is:E_;function Sr(e,n){if(ea(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var u=a[s];if(!Xe.call(n,u)||!ea(e[u],n[u]))return!1}return!0}function qp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eg(e,n){var a=qp(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=n&&s>=n)return{node:a,offset:n-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=qp(a)}}function tg(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?tg(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ng(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=yi(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=yi(e.document)}return n}function Ac(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var w_=Ga&&"documentMode"in document&&11>=document.documentMode,Ti=null,Cc=null,Er=null,xc=!1;function ag(e,n,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;xc||Ti==null||Ti!==yi(s)||(s=Ti,"selectionStart"in s&&Ac(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}),Er&&Sr(Er,s)||(Er=s,s=Oo(Cc,"onSelect"),0<s.length&&(n=new Bs("onSelect","select",null,n,a),e.push({event:n,listeners:s}),n.target=Ti)))}function Yl(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Ai={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},Oc={},lg={};Ga&&(lg=document.createElement("div").style,"AnimationEvent"in window||(delete Ai.animationend.animation,delete Ai.animationiteration.animation,delete Ai.animationstart.animation),"TransitionEvent"in window||delete Ai.transitionend.transition);function Kl(e){if(Oc[e])return Oc[e];if(!Ai[e])return e;var n=Ai[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in lg)return Oc[e]=n[a];return e}var ig=Kl("animationend"),rg=Kl("animationiteration"),sg=Kl("animationstart"),T_=Kl("transitionrun"),A_=Kl("transitionstart"),C_=Kl("transitioncancel"),og=Kl("transitionend"),ug=new Map,Dc="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(" ");Dc.push("scrollEnd");function Ta(e,n){ug.set(e,n),lt(n,[e])}var Is=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},da=[],Ci=0,Rc=0;function Vs(){for(var e=Ci,n=Rc=Ci=0;n<e;){var a=da[n];da[n++]=null;var s=da[n];da[n++]=null;var u=da[n];da[n++]=null;var c=da[n];if(da[n++]=null,s!==null&&u!==null){var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}c!==0&&cg(a,u,c)}}function Xs(e,n,a,s){da[Ci++]=e,da[Ci++]=n,da[Ci++]=a,da[Ci++]=s,Rc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Nc(e,n,a,s){return Xs(e,n,a,s),Qs(e)}function Jl(e,n){return Xs(e,null,null,n),Qs(e)}function cg(e,n,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&n!==null&&(u=31-Je(a),e=c.hiddenUpdates,s=e[u],s===null?e[u]=[n]:s.push(n),n.lane=a|536870912),c):null}function Qs(e){if(50<Gr)throw Gr=0,Vf=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var xi={};function x_(e,n,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,n,a,s){return new x_(e,n,a,s)}function Mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Za(e,n){var a=e.alternate;return a===null?(a=ta(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function fg(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Gs(e,n,a,s,u,c){var m=0;if(s=e,typeof e=="function")Mc(e)&&(m=1);else if(typeof e=="string")m=M2(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=ta(31,a,n,u),e.elementType=G,e.lanes=c,e;case w:return Pl(a.children,u,c,n);case A:m=8,u|=24;break;case O:return e=ta(12,a,n,u|2),e.elementType=O,e.lanes=c,e;case B:return e=ta(13,a,n,u),e.elementType=B,e.lanes=c,e;case I:return e=ta(19,a,n,u),e.elementType=I,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:m=10;break e;case C:m=9;break e;case k:m=11;break e;case L:m=14;break e;case J:m=16,s=null;break e}m=29,a=Error(r(130,e===null?"null":typeof e,"")),s=null}return n=ta(m,a,n,u),n.elementType=e,n.type=s,n.lanes=c,n}function Pl(e,n,a,s){return e=ta(7,e,s,n),e.lanes=a,e}function kc(e,n,a){return e=ta(6,e,null,n),e.lanes=a,e}function dg(e){var n=ta(18,null,null,0);return n.stateNode=e,n}function Lc(e,n,a){return n=ta(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var hg=new WeakMap;function ha(e,n){if(typeof e=="object"&&e!==null){var a=hg.get(e);return a!==void 0?a:(n={value:e,source:n,stack:Sn(n)},hg.set(e,n),n)}return{value:e,source:n,stack:Sn(n)}}var Oi=[],Di=0,Zs=null,wr=0,pa=[],ga=0,bl=null,ja=1,Ba="";function Fa(e,n){Oi[Di++]=wr,Oi[Di++]=Zs,Zs=e,wr=n}function pg(e,n,a){pa[ga++]=ja,pa[ga++]=Ba,pa[ga++]=bl,bl=e;var s=ja;e=Ba;var u=32-Je(s)-1;s&=~(1<<u),a+=1;var c=32-Je(n)+u;if(30<c){var m=u-u%5;c=(s&(1<<m)-1).toString(32),s>>=m,u-=m,ja=1<<32-Je(n)+u|a<<u|s,Ba=c+e}else ja=1<<c|a<<u|s,Ba=e}function zc(e){e.return!==null&&(Fa(e,1),pg(e,1,0))}function jc(e){for(;e===Zs;)Zs=Oi[--Di],Oi[Di]=null,wr=Oi[--Di],Oi[Di]=null;for(;e===bl;)bl=pa[--ga],pa[ga]=null,Ba=pa[--ga],pa[ga]=null,ja=pa[--ga],pa[ga]=null}function gg(e,n){pa[ga++]=ja,pa[ga++]=Ba,pa[ga++]=bl,ja=n.id,Ba=n.overflow,bl=e}var En=null,xt=null,Ye=!1,yl=null,ma=!1,Bc=Error(r(519));function _l(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tr(ha(n,e)),Bc}function mg(e){var n=e.stateNode,a=e.type,s=e.memoizedProps;switch(n[De]=e,n[et]=s,a){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(a=0;a<Fr.length;a++)Ie(Fr[a],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":Ie("invalid",n),hr(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ie("invalid",n);break;case"textarea":Ie("invalid",n),Np(n,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||s.suppressHydrationWarning===!0||k0(n.textContent,a)?(s.popover!=null&&(Ie("beforetoggle",n),Ie("toggle",n)),s.onScroll!=null&&Ie("scroll",n),s.onScrollEnd!=null&&Ie("scrollend",n),s.onClick!=null&&(n.onclick=Qa),n=!0):n=!1,n||_l(e,!0)}function vg(e){for(En=e.return;En;)switch(En.tag){case 5:case 31:case 13:ma=!1;return;case 27:case 3:ma=!0;return;default:En=En.return}}function Ri(e){if(e!==En)return!1;if(!Ye)return vg(e),Ye=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||nd(e.type,e.memoizedProps)),a=!a),a&&xt&&_l(e),vg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));xt=X0(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));xt=X0(e)}else n===27?(n=xt,Ll(e.type)?(e=sd,sd=null,xt=e):xt=n):xt=En?ba(e.stateNode.nextSibling):null;return!0}function Wl(){xt=En=null,Ye=!1}function Uc(){var e=yl;return e!==null&&($n===null?$n=e:$n.push.apply($n,e),yl=null),e}function Tr(e){yl===null?yl=[e]:yl.push(e)}var Hc=x(null),$l=null,Ya=null;function Sl(e,n,a){ee(Hc,n._currentValue),n._currentValue=a}function Ka(e){e._currentValue=Hc.current,K(Hc)}function Ic(e,n,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===a)break;e=e.return}}function Vc(e,n,a,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var m=u.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=u;for(var R=0;R<n.length;R++)if(E.context===n[R]){c.lanes|=a,E=c.alternate,E!==null&&(E.lanes|=a),Ic(c.return,a,e),s||(m=null);break e}c=E.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Ic(m,a,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Ni(e,n,a,s){e=null;for(var u=n,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var E=u.type;ea(u.pendingProps.value,m.value)||(e!==null?e.push(E):e=[E])}}else if(u===me.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Wr):e=[Wr])}u=u.return}e!==null&&Vc(n,e,a,s),n.flags|=262144}function Fs(e){for(e=e.firstContext;e!==null;){if(!ea(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ql(e){$l=e,Ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wn(e){return bg($l,e)}function Ys(e,n){return $l===null&&ql(e),bg(e,n)}function bg(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Ya===null){if(e===null)throw Error(r(308));Ya=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Ya=Ya.next=n;return a}var O_=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},D_=t.unstable_scheduleCallback,R_=t.unstable_NormalPriority,Jt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xc(){return{controller:new O_,data:new Map,refCount:0}}function Ar(e){e.refCount--,e.refCount===0&&D_(R_,function(){e.controller.abort()})}var Cr=null,Qc=0,Mi=0,ki=null;function N_(e,n){if(Cr===null){var a=Cr=[];Qc=0,Mi=Yf(),ki={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Qc++,n.then(yg,yg),n}function yg(){if(--Qc===0&&Cr!==null){ki!==null&&(ki.status="fulfilled");var e=Cr;Cr=null,Mi=0,ki=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function M_(e,n){var a=[],s={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var u=0;u<a.length;u++)(0,a[u])(n)},function(u){for(s.status="rejected",s.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),s}var _g=j.S;j.S=function(e,n){a0=st(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&N_(e,n),_g!==null&&_g(e,n)};var ei=x(null);function Gc(){var e=ei.current;return e!==null?e:wt.pooledCache}function Ks(e,n){n===null?ee(ei,ei.current):ee(ei,n.pool)}function Sg(){var e=Gc();return e===null?null:{parent:Jt._currentValue,pool:e}}var Li=Error(r(460)),Zc=Error(r(474)),Js=Error(r(542)),Ps={then:function(){}};function Eg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wg(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Qa,Qa),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ag(e),e;default:if(typeof n.status=="string")n.then(Qa,Qa);else{if(e=wt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=s}},function(s){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ag(e),e}throw ni=n,Li}}function ti(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ni=a,Li):a}}var ni=null;function Tg(){if(ni===null)throw Error(r(459));var e=ni;return ni=null,e}function Ag(e){if(e===Li||e===Js)throw Error(r(483))}var zi=null,xr=0;function Ws(e){var n=xr;return xr+=1,zi===null&&(zi=[]),wg(zi,e,n)}function Or(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function $s(e,n){throw n.$$typeof===v?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Cg(e){function n(z,M){if(e){var U=z.deletions;U===null?(z.deletions=[M],z.flags|=16):U.push(M)}}function a(z,M){if(!e)return null;for(;M!==null;)n(z,M),M=M.sibling;return null}function s(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function u(z,M){return z=Za(z,M),z.index=0,z.sibling=null,z}function c(z,M,U){return z.index=U,e?(U=z.alternate,U!==null?(U=U.index,U<M?(z.flags|=67108866,M):U):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function E(z,M,U,te){return M===null||M.tag!==6?(M=kc(U,z.mode,te),M.return=z,M):(M=u(M,U),M.return=z,M)}function R(z,M,U,te){var Te=U.type;return Te===w?$(z,M,U.props.children,te,U.key):M!==null&&(M.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===J&&ti(Te)===M.type)?(M=u(M,U.props),Or(M,U),M.return=z,M):(M=Gs(U.type,U.key,U.props,null,z.mode,te),Or(M,U),M.return=z,M)}function H(z,M,U,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==U.containerInfo||M.stateNode.implementation!==U.implementation?(M=Lc(U,z.mode,te),M.return=z,M):(M=u(M,U.children||[]),M.return=z,M)}function $(z,M,U,te,Te){return M===null||M.tag!==7?(M=Pl(U,z.mode,te,Te),M.return=z,M):(M=u(M,U),M.return=z,M)}function ae(z,M,U){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=kc(""+M,z.mode,U),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case _:return U=Gs(M.type,M.key,M.props,null,z.mode,U),Or(U,M),U.return=z,U;case T:return M=Lc(M,z.mode,U),M.return=z,M;case J:return M=ti(M),ae(z,M,U)}if(de(M)||P(M))return M=Pl(M,z.mode,U,null),M.return=z,M;if(typeof M.then=="function")return ae(z,Ws(M),U);if(M.$$typeof===N)return ae(z,Ys(z,M),U);$s(z,M)}return null}function X(z,M,U,te){var Te=M!==null?M.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return Te!==null?null:E(z,M,""+U,te);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case _:return U.key===Te?R(z,M,U,te):null;case T:return U.key===Te?H(z,M,U,te):null;case J:return U=ti(U),X(z,M,U,te)}if(de(U)||P(U))return Te!==null?null:$(z,M,U,te,null);if(typeof U.then=="function")return X(z,M,Ws(U),te);if(U.$$typeof===N)return X(z,M,Ys(z,U),te);$s(z,U)}return null}function F(z,M,U,te,Te){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return z=z.get(U)||null,E(M,z,""+te,Te);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case _:return z=z.get(te.key===null?U:te.key)||null,R(M,z,te,Te);case T:return z=z.get(te.key===null?U:te.key)||null,H(M,z,te,Te);case J:return te=ti(te),F(z,M,U,te,Te)}if(de(te)||P(te))return z=z.get(U)||null,$(M,z,te,Te,null);if(typeof te.then=="function")return F(z,M,U,Ws(te),Te);if(te.$$typeof===N)return F(z,M,U,Ys(M,te),Te);$s(M,te)}return null}function ve(z,M,U,te){for(var Te=null,it=null,_e=M,je=M=0,Ze=null;_e!==null&&je<U.length;je++){_e.index>je?(Ze=_e,_e=null):Ze=_e.sibling;var rt=X(z,_e,U[je],te);if(rt===null){_e===null&&(_e=Ze);break}e&&_e&&rt.alternate===null&&n(z,_e),M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt,_e=Ze}if(je===U.length)return a(z,_e),Ye&&Fa(z,je),Te;if(_e===null){for(;je<U.length;je++)_e=ae(z,U[je],te),_e!==null&&(M=c(_e,M,je),it===null?Te=_e:it.sibling=_e,it=_e);return Ye&&Fa(z,je),Te}for(_e=s(_e);je<U.length;je++)Ze=F(_e,z,je,U[je],te),Ze!==null&&(e&&Ze.alternate!==null&&_e.delete(Ze.key===null?je:Ze.key),M=c(Ze,M,je),it===null?Te=Ze:it.sibling=Ze,it=Ze);return e&&_e.forEach(function(Hl){return n(z,Hl)}),Ye&&Fa(z,je),Te}function Ce(z,M,U,te){if(U==null)throw Error(r(151));for(var Te=null,it=null,_e=M,je=M=0,Ze=null,rt=U.next();_e!==null&&!rt.done;je++,rt=U.next()){_e.index>je?(Ze=_e,_e=null):Ze=_e.sibling;var Hl=X(z,_e,rt.value,te);if(Hl===null){_e===null&&(_e=Ze);break}e&&_e&&Hl.alternate===null&&n(z,_e),M=c(Hl,M,je),it===null?Te=Hl:it.sibling=Hl,it=Hl,_e=Ze}if(rt.done)return a(z,_e),Ye&&Fa(z,je),Te;if(_e===null){for(;!rt.done;je++,rt=U.next())rt=ae(z,rt.value,te),rt!==null&&(M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt);return Ye&&Fa(z,je),Te}for(_e=s(_e);!rt.done;je++,rt=U.next())rt=F(_e,z,je,rt.value,te),rt!==null&&(e&&rt.alternate!==null&&_e.delete(rt.key===null?je:rt.key),M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt);return e&&_e.forEach(function(Q2){return n(z,Q2)}),Ye&&Fa(z,je),Te}function _t(z,M,U,te){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case _:e:{for(var Te=U.key;M!==null;){if(M.key===Te){if(Te=U.type,Te===w){if(M.tag===7){a(z,M.sibling),te=u(M,U.props.children),te.return=z,z=te;break e}}else if(M.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===J&&ti(Te)===M.type){a(z,M.sibling),te=u(M,U.props),Or(te,U),te.return=z,z=te;break e}a(z,M);break}else n(z,M);M=M.sibling}U.type===w?(te=Pl(U.props.children,z.mode,te,U.key),te.return=z,z=te):(te=Gs(U.type,U.key,U.props,null,z.mode,te),Or(te,U),te.return=z,z=te)}return m(z);case T:e:{for(Te=U.key;M!==null;){if(M.key===Te)if(M.tag===4&&M.stateNode.containerInfo===U.containerInfo&&M.stateNode.implementation===U.implementation){a(z,M.sibling),te=u(M,U.children||[]),te.return=z,z=te;break e}else{a(z,M);break}else n(z,M);M=M.sibling}te=Lc(U,z.mode,te),te.return=z,z=te}return m(z);case J:return U=ti(U),_t(z,M,U,te)}if(de(U))return ve(z,M,U,te);if(P(U)){if(Te=P(U),typeof Te!="function")throw Error(r(150));return U=Te.call(U),Ce(z,M,U,te)}if(typeof U.then=="function")return _t(z,M,Ws(U),te);if(U.$$typeof===N)return _t(z,M,Ys(z,U),te);$s(z,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,M!==null&&M.tag===6?(a(z,M.sibling),te=u(M,U),te.return=z,z=te):(a(z,M),te=kc(U,z.mode,te),te.return=z,z=te),m(z)):a(z,M)}return function(z,M,U,te){try{xr=0;var Te=_t(z,M,U,te);return zi=null,Te}catch(_e){if(_e===Li||_e===Js)throw _e;var it=ta(29,_e,null,z.mode);return it.lanes=te,it.return=z,it}finally{}}}var ai=Cg(!0),xg=Cg(!1),El=!1;function Fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,n,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ot&2)!==0){var u=s.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),s.pending=n,n=Qs(e),cg(e,null,a),n}return Xs(e,s,n,a),Qs(e)}function Dr(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,sn(e,a)}}function Kc(e,n){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?u=c=n:c=c.next=n}else u=c=n;a={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Jc=!1;function Rr(){if(Jc){var e=ki;if(e!==null)throw e}}function Nr(e,n,a,s){Jc=!1;var u=e.updateQueue;El=!1;var c=u.firstBaseUpdate,m=u.lastBaseUpdate,E=u.shared.pending;if(E!==null){u.shared.pending=null;var R=E,H=R.next;R.next=null,m===null?c=H:m.next=H,m=R;var $=e.alternate;$!==null&&($=$.updateQueue,E=$.lastBaseUpdate,E!==m&&(E===null?$.firstBaseUpdate=H:E.next=H,$.lastBaseUpdate=R))}if(c!==null){var ae=u.baseState;m=0,$=H=R=null,E=c;do{var X=E.lane&-536870913,F=X!==E.lane;if(F?(Ge&X)===X:(s&X)===X){X!==0&&X===Mi&&(Jc=!0),$!==null&&($=$.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ve=e,Ce=E;X=n;var _t=a;switch(Ce.tag){case 1:if(ve=Ce.payload,typeof ve=="function"){ae=ve.call(_t,ae,X);break e}ae=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ce.payload,X=typeof ve=="function"?ve.call(_t,ae,X):ve,X==null)break e;ae=S({},ae,X);break e;case 2:El=!0}}X=E.callback,X!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[X]:F.push(X))}else F={lane:X,tag:E.tag,payload:E.payload,callback:E.callback,next:null},$===null?(H=$=F,R=ae):$=$.next=F,m|=X;if(E=E.next,E===null){if(E=u.shared.pending,E===null)break;F=E,E=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);$===null&&(R=ae),u.baseState=R,u.firstBaseUpdate=H,u.lastBaseUpdate=$,c===null&&(u.shared.lanes=0),Dl|=m,e.lanes=m,e.memoizedState=ae}}function Og(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function Dg(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Og(a[e],n)}var ji=x(null),qs=x(0);function Rg(e,n){e=al,ee(qs,e),ee(ji,n),al=e|n.baseLanes}function Pc(){ee(qs,al),ee(ji,ji.current)}function Wc(){al=qs.current,K(ji),K(qs)}var na=x(null),va=null;function Al(e){var n=e.alternate;ee(Qt,Qt.current&1),ee(na,e),va===null&&(n===null||ji.current!==null||n.memoizedState!==null)&&(va=e)}function $c(e){ee(Qt,Qt.current),ee(na,e),va===null&&(va=e)}function Ng(e){e.tag===22?(ee(Qt,Qt.current),ee(na,e),va===null&&(va=e)):Cl()}function Cl(){ee(Qt,Qt.current),ee(na,na.current)}function aa(e){K(na),va===e&&(va=null),K(Qt)}var Qt=x(0);function eo(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||id(a)||rd(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ja=0,Le=null,bt=null,Pt=null,to=!1,Bi=!1,li=!1,no=0,Mr=0,Ui=null,k_=0;function Bt(){throw Error(r(321))}function qc(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!ea(e[a],n[a]))return!1;return!0}function ef(e,n,a,s,u,c){return Ja=c,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,j.H=e===null||e.memoizedState===null?pm:mf,li=!1,c=a(s,u),li=!1,Bi&&(c=kg(n,a,s,u)),Mg(e),c}function Mg(e){j.H=zr;var n=bt!==null&&bt.next!==null;if(Ja=0,Pt=bt=Le=null,to=!1,Mr=0,Ui=null,n)throw Error(r(300));e===null||Wt||(e=e.dependencies,e!==null&&Fs(e)&&(Wt=!0))}function kg(e,n,a,s){Le=e;var u=0;do{if(Bi&&(Ui=null),Mr=0,Bi=!1,25<=u)throw Error(r(301));if(u+=1,Pt=bt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=gm,c=n(a,s)}while(Bi);return c}function L_(){var e=j.H,n=e.useState()[0];return n=typeof n.then=="function"?kr(n):n,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(Le.flags|=1024),n}function tf(){var e=no!==0;return no=0,e}function nf(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function af(e){if(to){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}to=!1}Ja=0,Pt=bt=Le=null,Bi=!1,Mr=no=0,Ui=null}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Le.memoizedState=Pt=e:Pt=Pt.next=e,Pt}function Gt(){if(bt===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var n=Pt===null?Le.memoizedState:Pt.next;if(n!==null)Pt=n,bt=e;else{if(e===null)throw Le.alternate===null?Error(r(467)):Error(r(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Pt===null?Le.memoizedState=Pt=e:Pt=Pt.next=e}return Pt}function ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kr(e){var n=Mr;return Mr+=1,Ui===null&&(Ui=[]),e=wg(Ui,e,n),n=Le,(Pt===null?n.memoizedState:Pt.next)===null&&(n=n.alternate,j.H=n===null||n.memoizedState===null?pm:mf),e}function lo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return kr(e);if(e.$$typeof===N)return wn(e)}throw Error(r(438,String(e)))}function lf(e){var n=null,a=Le.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var s=Le.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=ao(),Le.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),s=0;s<e;s++)a[s]=q;return n.index++,a}function Pa(e,n){return typeof n=="function"?n(e):n}function io(e){var n=Gt();return rf(n,bt,e)}function rf(e,n,a){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var u=e.baseQueue,c=s.pending;if(c!==null){if(u!==null){var m=u.next;u.next=c.next,c.next=m}n.baseQueue=u=c,s.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{n=u.next;var E=m=null,R=null,H=n,$=!1;do{var ae=H.lane&-536870913;if(ae!==H.lane?(Ge&ae)===ae:(Ja&ae)===ae){var X=H.revertLane;if(X===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),ae===Mi&&($=!0);else if((Ja&X)===X){H=H.next,X===Mi&&($=!0);continue}else ae={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(E=R=ae,m=c):R=R.next=ae,Le.lanes|=X,Dl|=X;ae=H.action,li&&a(c,ae),c=H.hasEagerState?H.eagerState:a(c,ae)}else X={lane:ae,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(E=R=X,m=c):R=R.next=X,Le.lanes|=ae,Dl|=ae;H=H.next}while(H!==null&&H!==n);if(R===null?m=c:R.next=E,!ea(c,e.memoizedState)&&(Wt=!0,$&&(a=ki,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=R,s.lastRenderedState=c}return u===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function sf(e){var n=Gt(),a=n.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var s=a.dispatch,u=a.pending,c=n.memoizedState;if(u!==null){a.pending=null;var m=u=u.next;do c=e(c,m.action),m=m.next;while(m!==u);ea(c,n.memoizedState)||(Wt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),a.lastRenderedState=c}return[c,s]}function Lg(e,n,a){var s=Le,u=Gt(),c=Ye;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=n();var m=!ea((bt||u).memoizedState,a);if(m&&(u.memoizedState=a,Wt=!0),u=u.queue,cf(Bg.bind(null,s,u,e),[e]),u.getSnapshot!==n||m||Pt!==null&&Pt.memoizedState.tag&1){if(s.flags|=2048,Hi(9,{destroy:void 0},jg.bind(null,s,u,a,n),null),wt===null)throw Error(r(349));c||(Ja&127)!==0||zg(s,n,a)}return a}function zg(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=Le.updateQueue,n===null?(n=ao(),Le.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function jg(e,n,a,s){n.value=a,n.getSnapshot=s,Ug(n)&&Hg(e)}function Bg(e,n,a){return a(function(){Ug(n)&&Hg(e)})}function Ug(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!ea(e,a)}catch{return!0}}function Hg(e){var n=Jl(e,2);n!==null&&qn(n,e,2)}function of(e){var n=Hn();if(typeof e=="function"){var a=e;if(e=a(),li){ft(!0);try{a()}finally{ft(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},n}function Ig(e,n,a,s){return e.baseState=a,rf(e,bt,typeof s=="function"?s:Pa)}function z_(e,n,a,s,u){if(oo(e))throw Error(r(485));if(e=n.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};j.T!==null?a(!0):c.isTransition=!1,s(c),a=n.pending,a===null?(c.next=n.pending=c,Vg(n,c)):(c.next=a.next,n.pending=a.next=c)}}function Vg(e,n){var a=n.action,s=n.payload,u=e.state;if(n.isTransition){var c=j.T,m={};j.T=m;try{var E=a(u,s),R=j.S;R!==null&&R(m,E),Xg(e,n,E)}catch(H){uf(e,n,H)}finally{c!==null&&m.types!==null&&(c.types=m.types),j.T=c}}else try{c=a(u,s),Xg(e,n,c)}catch(H){uf(e,n,H)}}function Xg(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Qg(e,n,s)},function(s){return uf(e,n,s)}):Qg(e,n,a)}function Qg(e,n,a){n.status="fulfilled",n.value=a,Gg(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,Vg(e,a)))}function uf(e,n,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=a,Gg(n),n=n.next;while(n!==s)}e.action=null}function Gg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Zg(e,n){return n}function Fg(e,n){if(Ye){var a=wt.formState;if(a!==null){e:{var s=Le;if(Ye){if(xt){t:{for(var u=xt,c=ma;u.nodeType!==8;){if(!c){u=null;break t}if(u=ba(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){xt=ba(u.nextSibling),s=u.data==="F!";break e}}_l(s)}s=!1}s&&(n=a[0])}}return a=Hn(),a.memoizedState=a.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zg,lastRenderedState:n},a.queue=s,a=fm.bind(null,Le,s),s.dispatch=a,s=of(!1),c=gf.bind(null,Le,!1,s.queue),s=Hn(),u={state:n,dispatch:null,action:e,pending:null},s.queue=u,a=z_.bind(null,Le,u,c,a),u.dispatch=a,s.memoizedState=e,[n,a,!1]}function Yg(e){var n=Gt();return Kg(n,bt,e)}function Kg(e,n,a){if(n=rf(e,n,Zg)[0],e=io(Pa)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=kr(n)}catch(m){throw m===Li?Js:m}else s=n;n=Gt();var u=n.queue,c=u.dispatch;return a!==n.memoizedState&&(Le.flags|=2048,Hi(9,{destroy:void 0},j_.bind(null,u,a),null)),[s,c,e]}function j_(e,n){e.action=n}function Jg(e){var n=Gt(),a=bt;if(a!==null)return Kg(n,a,e);Gt(),n=n.memoizedState,a=Gt();var s=a.queue.dispatch;return a.memoizedState=e,[n,s,!1]}function Hi(e,n,a,s){return e={tag:e,create:a,deps:s,inst:n,next:null},n=Le.updateQueue,n===null&&(n=ao(),Le.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,n.lastEffect=e),e}function Pg(){return Gt().memoizedState}function ro(e,n,a,s){var u=Hn();Le.flags|=e,u.memoizedState=Hi(1|n,{destroy:void 0},a,s===void 0?null:s)}function so(e,n,a,s){var u=Gt();s=s===void 0?null:s;var c=u.memoizedState.inst;bt!==null&&s!==null&&qc(s,bt.memoizedState.deps)?u.memoizedState=Hi(n,c,a,s):(Le.flags|=e,u.memoizedState=Hi(1|n,c,a,s))}function Wg(e,n){ro(8390656,8,e,n)}function cf(e,n){so(2048,8,e,n)}function B_(e){Le.flags|=4;var n=Le.updateQueue;if(n===null)n=ao(),Le.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function $g(e){var n=Gt().memoizedState;return B_({ref:n,nextImpl:e}),function(){if((ot&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function qg(e,n){return so(4,2,e,n)}function em(e,n){return so(4,4,e,n)}function tm(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function nm(e,n,a){a=a!=null?a.concat([e]):null,so(4,4,tm.bind(null,n,e),a)}function ff(){}function am(e,n){var a=Gt();n=n===void 0?null:n;var s=a.memoizedState;return n!==null&&qc(n,s[1])?s[0]:(a.memoizedState=[e,n],e)}function lm(e,n){var a=Gt();n=n===void 0?null:n;var s=a.memoizedState;if(n!==null&&qc(n,s[1]))return s[0];if(s=e(),li){ft(!0);try{e()}finally{ft(!1)}}return a.memoizedState=[s,n],s}function df(e,n,a){return a===void 0||(Ja&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=i0(),Le.lanes|=e,Dl|=e,a)}function im(e,n,a,s){return ea(a,n)?a:ji.current!==null?(e=df(e,a,s),ea(e,n)||(Wt=!0),e):(Ja&42)===0||(Ja&1073741824)!==0&&(Ge&261930)===0?(Wt=!0,e.memoizedState=a):(e=i0(),Le.lanes|=e,Dl|=e,n)}function rm(e,n,a,s,u){var c=le.p;le.p=c!==0&&8>c?c:8;var m=j.T,E={};j.T=E,gf(e,!1,n,a);try{var R=u(),H=j.S;if(H!==null&&H(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=M_(R,s);Lr(e,n,$,ra(e))}else Lr(e,n,s,ra(e))}catch(ae){Lr(e,n,{then:function(){},status:"rejected",reason:ae},ra())}finally{le.p=c,m!==null&&E.types!==null&&(m.types=E.types),j.T=m}}function U_(){}function hf(e,n,a,s){if(e.tag!==5)throw Error(r(476));var u=sm(e).queue;rm(e,u,n,Q,a===null?U_:function(){return om(e),a(s)})}function sm(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:Q},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function om(e){var n=sm(e);n.next===null&&(n=e.alternate.memoizedState),Lr(e,n.next.queue,{},ra())}function pf(){return wn(Wr)}function um(){return Gt().memoizedState}function cm(){return Gt().memoizedState}function H_(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=ra();e=wl(a);var s=Tl(n,e,a);s!==null&&(qn(s,n,a),Dr(s,n,a)),n={cache:Xc()},e.payload=n;return}n=n.return}}function I_(e,n,a){var s=ra();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},oo(e)?dm(n,a):(a=Nc(e,n,a,s),a!==null&&(qn(a,e,s),hm(a,n,s)))}function fm(e,n,a){var s=ra();Lr(e,n,a,s)}function Lr(e,n,a,s){var u={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(oo(e))dm(n,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=n.lastRenderedReducer,c!==null))try{var m=n.lastRenderedState,E=c(m,a);if(u.hasEagerState=!0,u.eagerState=E,ea(E,m))return Xs(e,n,u,0),wt===null&&Vs(),!1}catch{}finally{}if(a=Nc(e,n,u,s),a!==null)return qn(a,e,s),hm(a,n,s),!0}return!1}function gf(e,n,a,s){if(s={lane:2,revertLane:Yf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},oo(e)){if(n)throw Error(r(479))}else n=Nc(e,a,s,2),n!==null&&qn(n,e,2)}function oo(e){var n=e.alternate;return e===Le||n!==null&&n===Le}function dm(e,n){Bi=to=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function hm(e,n,a){if((a&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,sn(e,a)}}var zr={readContext:wn,use:lo,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};zr.useEffectEvent=Bt;var pm={readContext:wn,use:lo,useCallback:function(e,n){return Hn().memoizedState=[e,n===void 0?null:n],e},useContext:wn,useEffect:Wg,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,ro(4194308,4,tm.bind(null,n,e),a)},useLayoutEffect:function(e,n){return ro(4194308,4,e,n)},useInsertionEffect:function(e,n){ro(4,2,e,n)},useMemo:function(e,n){var a=Hn();n=n===void 0?null:n;var s=e();if(li){ft(!0);try{e()}finally{ft(!1)}}return a.memoizedState=[s,n],s},useReducer:function(e,n,a){var s=Hn();if(a!==void 0){var u=a(n);if(li){ft(!0);try{a(n)}finally{ft(!1)}}}else u=n;return s.memoizedState=s.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},s.queue=e,e=e.dispatch=I_.bind(null,Le,e),[s.memoizedState,e]},useRef:function(e){var n=Hn();return e={current:e},n.memoizedState=e},useState:function(e){e=of(e);var n=e.queue,a=fm.bind(null,Le,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:ff,useDeferredValue:function(e,n){var a=Hn();return df(a,e,n)},useTransition:function(){var e=of(!1);return e=rm.bind(null,Le,e.queue,!0,!1),Hn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var s=Le,u=Hn();if(Ye){if(a===void 0)throw Error(r(407));a=a()}else{if(a=n(),wt===null)throw Error(r(349));(Ge&127)!==0||zg(s,n,a)}u.memoizedState=a;var c={value:a,getSnapshot:n};return u.queue=c,Wg(Bg.bind(null,s,c,e),[e]),s.flags|=2048,Hi(9,{destroy:void 0},jg.bind(null,s,c,a,n),null),a},useId:function(){var e=Hn(),n=wt.identifierPrefix;if(Ye){var a=Ba,s=ja;a=(s&~(1<<32-Je(s)-1)).toString(32)+a,n="_"+n+"R_"+a,a=no++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=k_++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:pf,useFormState:Fg,useActionState:Fg,useOptimistic:function(e){var n=Hn();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=gf.bind(null,Le,!0,a),a.dispatch=n,[e,n]},useMemoCache:lf,useCacheRefresh:function(){return Hn().memoizedState=H_.bind(null,Le)},useEffectEvent:function(e){var n=Hn(),a={impl:e};return n.memoizedState=a,function(){if((ot&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},mf={readContext:wn,use:lo,useCallback:am,useContext:wn,useEffect:cf,useImperativeHandle:nm,useInsertionEffect:qg,useLayoutEffect:em,useMemo:lm,useReducer:io,useRef:Pg,useState:function(){return io(Pa)},useDebugValue:ff,useDeferredValue:function(e,n){var a=Gt();return im(a,bt.memoizedState,e,n)},useTransition:function(){var e=io(Pa)[0],n=Gt().memoizedState;return[typeof e=="boolean"?e:kr(e),n]},useSyncExternalStore:Lg,useId:um,useHostTransitionStatus:pf,useFormState:Yg,useActionState:Yg,useOptimistic:function(e,n){var a=Gt();return Ig(a,bt,e,n)},useMemoCache:lf,useCacheRefresh:cm};mf.useEffectEvent=$g;var gm={readContext:wn,use:lo,useCallback:am,useContext:wn,useEffect:cf,useImperativeHandle:nm,useInsertionEffect:qg,useLayoutEffect:em,useMemo:lm,useReducer:sf,useRef:Pg,useState:function(){return sf(Pa)},useDebugValue:ff,useDeferredValue:function(e,n){var a=Gt();return bt===null?df(a,e,n):im(a,bt.memoizedState,e,n)},useTransition:function(){var e=sf(Pa)[0],n=Gt().memoizedState;return[typeof e=="boolean"?e:kr(e),n]},useSyncExternalStore:Lg,useId:um,useHostTransitionStatus:pf,useFormState:Jg,useActionState:Jg,useOptimistic:function(e,n){var a=Gt();return bt!==null?Ig(a,bt,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:lf,useCacheRefresh:cm};gm.useEffectEvent=$g;function vf(e,n,a,s){n=e.memoizedState,a=a(s,n),a=a==null?n:S({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var bf={enqueueSetState:function(e,n,a){e=e._reactInternals;var s=ra(),u=wl(s);u.payload=n,a!=null&&(u.callback=a),n=Tl(e,u,s),n!==null&&(qn(n,e,s),Dr(n,e,s))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var s=ra(),u=wl(s);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=Tl(e,u,s),n!==null&&(qn(n,e,s),Dr(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=ra(),s=wl(a);s.tag=2,n!=null&&(s.callback=n),n=Tl(e,s,a),n!==null&&(qn(n,e,a),Dr(n,e,a))}};function mm(e,n,a,s,u,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,m):n.prototype&&n.prototype.isPureReactComponent?!Sr(a,s)||!Sr(u,c):!0}function vm(e,n,a,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,s),n.state!==e&&bf.enqueueReplaceState(n,n.state,null)}function ii(e,n){var a=n;if("ref"in n){a={};for(var s in n)s!=="ref"&&(a[s]=n[s])}if(e=e.defaultProps){a===n&&(a=S({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function bm(e){Is(e)}function ym(e){console.error(e)}function _m(e){Is(e)}function uo(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Sm(e,n,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function yf(e,n,a){return a=wl(a),a.tag=3,a.payload={element:null},a.callback=function(){uo(e,n)},a}function Em(e){return e=wl(e),e.tag=3,e}function wm(e,n,a,s){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=s.value;e.payload=function(){return u(c)},e.callback=function(){Sm(n,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Sm(n,a,s),typeof u!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function V_(e,n,a,s,u){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=a.alternate,n!==null&&Ni(n,a,u,!0),a=na.current,a!==null){switch(a.tag){case 31:case 13:return va===null?Eo():a.alternate===null&&Ut===0&&(Ut=3),a.flags&=-257,a.flags|=65536,a.lanes=u,s===Ps?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([s]):n.add(s),Gf(e,s,u)),!1;case 22:return a.flags|=65536,s===Ps?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([s]):a.add(s)),Gf(e,s,u)),!1}throw Error(r(435,a.tag))}return Gf(e,s,u),Eo(),!1}if(Ye)return n=na.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,s!==Bc&&(e=Error(r(422),{cause:s}),Tr(ha(e,a)))):(s!==Bc&&(n=Error(r(423),{cause:s}),Tr(ha(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,s=ha(s,a),u=yf(e.stateNode,s,u),Kc(e,u),Ut!==4&&(Ut=2)),!1;var c=Error(r(520),{cause:s});if(c=ha(c,a),Qr===null?Qr=[c]:Qr.push(c),Ut!==4&&(Ut=2),n===null)return!0;s=ha(s,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=yf(a.stateNode,s,e),Kc(a,e),!1;case 1:if(n=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Rl===null||!Rl.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Em(u),wm(u,e,a,s),Kc(a,u),!1}a=a.return}while(a!==null);return!1}var _f=Error(r(461)),Wt=!1;function Tn(e,n,a,s){n.child=e===null?xg(n,null,a,s):ai(n,e.child,a,s)}function Tm(e,n,a,s,u){a=a.render;var c=n.ref;if("ref"in s){var m={};for(var E in s)E!=="ref"&&(m[E]=s[E])}else m=s;return ql(n),s=ef(e,n,a,m,c,u),E=tf(),e!==null&&!Wt?(nf(e,n,u),Wa(e,n,u)):(Ye&&E&&zc(n),n.flags|=1,Tn(e,n,s,u),n.child)}function Am(e,n,a,s,u){if(e===null){var c=a.type;return typeof c=="function"&&!Mc(c)&&c.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=c,Cm(e,n,c,s,u)):(e=Gs(a.type,null,s,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,!Of(e,u)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Sr,a(m,s)&&e.ref===n.ref)return Wa(e,n,u)}return n.flags|=1,e=Za(c,s),e.ref=n.ref,e.return=n,n.child=e}function Cm(e,n,a,s,u){if(e!==null){var c=e.memoizedProps;if(Sr(c,s)&&e.ref===n.ref)if(Wt=!1,n.pendingProps=s=c,Of(e,u))(e.flags&131072)!==0&&(Wt=!0);else return n.lanes=e.lanes,Wa(e,n,u)}return Sf(e,n,a,s,u)}function xm(e,n,a,s){var u=s.children,c=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(s=n.child=e.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~c}else s=0,n.child=null;return Om(e,n,c,a,s)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ks(n,c!==null?c.cachePool:null),c!==null?Rg(n,c):Pc(),Ng(n);else return s=n.lanes=536870912,Om(e,n,c!==null?c.baseLanes|a:a,a,s)}else c!==null?(Ks(n,c.cachePool),Rg(n,c),Cl(),n.memoizedState=null):(e!==null&&Ks(n,null),Pc(),Cl());return Tn(e,n,u,a),n.child}function jr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Om(e,n,a,s,u){var c=Gc();return c=c===null?null:{parent:Jt._currentValue,pool:c},n.memoizedState={baseLanes:a,cachePool:c},e!==null&&Ks(n,null),Pc(),Ng(n),e!==null&&Ni(e,n,s,!0),n.childLanes=u,null}function co(e,n){return n=ho({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Dm(e,n,a){return ai(n,e.child,null,a),e=co(n,n.pendingProps),e.flags|=2,aa(n),n.memoizedState=null,e}function X_(e,n,a){var s=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ye){if(s.mode==="hidden")return e=co(n,s),n.lanes=536870912,jr(null,e);if($c(n),(e=xt)?(e=V0(e,ma),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:bl!==null?{id:ja,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=dg(e),a.return=n,n.child=a,En=n,xt=null)):e=null,e===null)throw _l(n);return n.lanes=536870912,null}return co(n,s)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if($c(n),u)if(n.flags&256)n.flags&=-257,n=Dm(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(Wt||Ni(e,n,a,!1),u=(a&e.childLanes)!==0,Wt||u){if(s=wt,s!==null&&(m=Kt(s,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Jl(e,m),qn(s,e,m),_f;Eo(),n=Dm(e,n,a)}else e=c.treeContext,xt=ba(m.nextSibling),En=n,Ye=!0,yl=null,ma=!1,e!==null&&gg(n,e),n=co(n,s),n.flags|=4096;return n}return e=Za(e.child,{mode:s.mode,children:s.children}),e.ref=n.ref,n.child=e,e.return=n,e}function fo(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Sf(e,n,a,s,u){return ql(n),a=ef(e,n,a,s,void 0,u),s=tf(),e!==null&&!Wt?(nf(e,n,u),Wa(e,n,u)):(Ye&&s&&zc(n),n.flags|=1,Tn(e,n,a,u),n.child)}function Rm(e,n,a,s,u,c){return ql(n),n.updateQueue=null,a=kg(n,s,a,u),Mg(e),s=tf(),e!==null&&!Wt?(nf(e,n,c),Wa(e,n,c)):(Ye&&s&&zc(n),n.flags|=1,Tn(e,n,a,c),n.child)}function Nm(e,n,a,s,u){if(ql(n),n.stateNode===null){var c=xi,m=a.contextType;typeof m=="object"&&m!==null&&(c=wn(m)),c=new a(s,c),n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bf,n.stateNode=c,c._reactInternals=n,c=n.stateNode,c.props=s,c.state=n.memoizedState,c.refs={},Fc(n),m=a.contextType,c.context=typeof m=="object"&&m!==null?wn(m):xi,c.state=n.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(vf(n,a,m,s),c.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&bf.enqueueReplaceState(c,c.state,null),Nr(n,s,c,u),Rr(),c.state=n.memoizedState),typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){c=n.stateNode;var E=n.memoizedProps,R=ii(a,E);c.props=R;var H=c.context,$=a.contextType;m=xi,typeof $=="object"&&$!==null&&(m=wn($));var ae=a.getDerivedStateFromProps;$=typeof ae=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||H!==m)&&vm(n,c,s,m),El=!1;var X=n.memoizedState;c.state=X,Nr(n,s,c,u),Rr(),H=n.memoizedState,E||X!==H||El?(typeof ae=="function"&&(vf(n,a,ae,s),H=n.memoizedState),(R=El||mm(n,a,R,s,X,H,m))?($||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(n.flags|=4194308)):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=H),c.props=s,c.state=H,c.context=m,s=R):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{c=n.stateNode,Yc(e,n),m=n.memoizedProps,$=ii(a,m),c.props=$,ae=n.pendingProps,X=c.context,H=a.contextType,R=xi,typeof H=="object"&&H!==null&&(R=wn(H)),E=a.getDerivedStateFromProps,(H=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==ae||X!==R)&&vm(n,c,s,R),El=!1,X=n.memoizedState,c.state=X,Nr(n,s,c,u),Rr();var F=n.memoizedState;m!==ae||X!==F||El||e!==null&&e.dependencies!==null&&Fs(e.dependencies)?(typeof E=="function"&&(vf(n,a,E,s),F=n.memoizedState),($=El||mm(n,a,$,s,X,F,R)||e!==null&&e.dependencies!==null&&Fs(e.dependencies))?(H||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,F,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,F,R)),typeof c.componentDidUpdate=="function"&&(n.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&X===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&X===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=F),c.props=s,c.state=F,c.context=R,s=$):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&X===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&X===e.memoizedState||(n.flags|=1024),s=!1)}return c=s,fo(e,n),s=(n.flags&128)!==0,c||s?(c=n.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),n.flags|=1,e!==null&&s?(n.child=ai(n,e.child,null,u),n.child=ai(n,null,a,u)):Tn(e,n,a,u),n.memoizedState=c.state,e=n.child):e=Wa(e,n,u),e}function Mm(e,n,a,s){return Wl(),n.flags|=256,Tn(e,n,a,s),n.child}var Ef={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wf(e){return{baseLanes:e,cachePool:Sg()}}function Tf(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=ia),e}function km(e,n,a){var s=n.pendingProps,u=!1,c=(n.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Qt.current&2)!==0),m&&(u=!0,n.flags&=-129),m=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ye){if(u?Al(n):Cl(),(e=xt)?(e=V0(e,ma),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:bl!==null?{id:ja,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=dg(e),a.return=n,n.child=a,En=n,xt=null)):e=null,e===null)throw _l(n);return rd(e)?n.lanes=32:n.lanes=536870912,null}var E=s.children;return s=s.fallback,u?(Cl(),u=n.mode,E=ho({mode:"hidden",children:E},u),s=Pl(s,u,a,null),E.return=n,s.return=n,E.sibling=s,n.child=E,s=n.child,s.memoizedState=wf(a),s.childLanes=Tf(e,m,a),n.memoizedState=Ef,jr(null,s)):(Al(n),Af(n,E))}var R=e.memoizedState;if(R!==null&&(E=R.dehydrated,E!==null)){if(c)n.flags&256?(Al(n),n.flags&=-257,n=Cf(e,n,a)):n.memoizedState!==null?(Cl(),n.child=e.child,n.flags|=128,n=null):(Cl(),E=s.fallback,u=n.mode,s=ho({mode:"visible",children:s.children},u),E=Pl(E,u,a,null),E.flags|=2,s.return=n,E.return=n,s.sibling=E,n.child=s,ai(n,e.child,null,a),s=n.child,s.memoizedState=wf(a),s.childLanes=Tf(e,m,a),n.memoizedState=Ef,n=jr(null,s));else if(Al(n),rd(E)){if(m=E.nextSibling&&E.nextSibling.dataset,m)var H=m.dgst;m=H,s=Error(r(419)),s.stack="",s.digest=m,Tr({value:s,source:null,stack:null}),n=Cf(e,n,a)}else if(Wt||Ni(e,n,a,!1),m=(a&e.childLanes)!==0,Wt||m){if(m=wt,m!==null&&(s=Kt(m,a),s!==0&&s!==R.retryLane))throw R.retryLane=s,Jl(e,s),qn(m,e,s),_f;id(E)||Eo(),n=Cf(e,n,a)}else id(E)?(n.flags|=192,n.child=e.child,n=null):(e=R.treeContext,xt=ba(E.nextSibling),En=n,Ye=!0,yl=null,ma=!1,e!==null&&gg(n,e),n=Af(n,s.children),n.flags|=4096);return n}return u?(Cl(),E=s.fallback,u=n.mode,R=e.child,H=R.sibling,s=Za(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,H!==null?E=Za(H,E):(E=Pl(E,u,a,null),E.flags|=2),E.return=n,s.return=n,s.sibling=E,n.child=s,jr(null,s),s=n.child,E=e.child.memoizedState,E===null?E=wf(a):(u=E.cachePool,u!==null?(R=Jt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=Sg(),E={baseLanes:E.baseLanes|a,cachePool:u}),s.memoizedState=E,s.childLanes=Tf(e,m,a),n.memoizedState=Ef,jr(e.child,s)):(Al(n),a=e.child,e=a.sibling,a=Za(a,{mode:"visible",children:s.children}),a.return=n,a.sibling=null,e!==null&&(m=n.deletions,m===null?(n.deletions=[e],n.flags|=16):m.push(e)),n.child=a,n.memoizedState=null,a)}function Af(e,n){return n=ho({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function ho(e,n){return e=ta(22,e,null,n),e.lanes=0,e}function Cf(e,n,a){return ai(n,e.child,null,a),e=Af(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Lm(e,n,a){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Ic(e.return,n,a)}function xf(e,n,a,s,u,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:u,treeForkCount:c}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=u,m.treeForkCount=c)}function zm(e,n,a){var s=n.pendingProps,u=s.revealOrder,c=s.tail;s=s.children;var m=Qt.current,E=(m&2)!==0;if(E?(m=m&1|2,n.flags|=128):m&=1,ee(Qt,m),Tn(e,n,s,a),s=Ye?wr:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lm(e,a,n);else if(e.tag===19)Lm(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&eo(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),xf(n,!1,u,a,c,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&eo(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}xf(n,!0,a,null,c,s);break;case"together":xf(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Wa(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Dl|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ni(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,a=Za(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Za(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Of(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Fs(e)))}function Q_(e,n,a){switch(n.tag){case 3:Se(n,n.stateNode.containerInfo),Sl(n,Jt,e.memoizedState.cache),Wl();break;case 27:case 5:Be(n);break;case 4:Se(n,n.stateNode.containerInfo);break;case 10:Sl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,$c(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Al(n),n.flags|=128,null):(a&n.child.childLanes)!==0?km(e,n,a):(Al(n),e=Wa(e,n,a),e!==null?e.sibling:null);Al(n);break;case 19:var u=(e.flags&128)!==0;if(s=(a&n.childLanes)!==0,s||(Ni(e,n,a,!1),s=(a&n.childLanes)!==0),u){if(s)return zm(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(Qt,Qt.current),s)break;return null;case 22:return n.lanes=0,xm(e,n,a,n.pendingProps);case 24:Sl(n,Jt,e.memoizedState.cache)}return Wa(e,n,a)}function jm(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Wt=!0;else{if(!Of(e,a)&&(n.flags&128)===0)return Wt=!1,Q_(e,n,a);Wt=(e.flags&131072)!==0}else Wt=!1,Ye&&(n.flags&1048576)!==0&&pg(n,wr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(e=ti(n.elementType),n.type=e,typeof e=="function")Mc(e)?(s=ii(e,s),n.tag=1,n=Nm(null,n,e,s,a)):(n.tag=0,n=Sf(null,n,e,s,a));else{if(e!=null){var u=e.$$typeof;if(u===k){n.tag=11,n=Tm(null,n,e,s,a);break e}else if(u===L){n.tag=14,n=Am(null,n,e,s,a);break e}}throw n=he(e)||e,Error(r(306,n,""))}}return n;case 0:return Sf(e,n,n.type,n.pendingProps,a);case 1:return s=n.type,u=ii(s,n.pendingProps),Nm(e,n,s,u,a);case 3:e:{if(Se(n,n.stateNode.containerInfo),e===null)throw Error(r(387));s=n.pendingProps;var c=n.memoizedState;u=c.element,Yc(e,n),Nr(n,s,null,a);var m=n.memoizedState;if(s=m.cache,Sl(n,Jt,s),s!==c.cache&&Vc(n,[Jt],a,!0),Rr(),s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=Mm(e,n,s,a);break e}else if(s!==u){u=ha(Error(r(424)),n),Tr(u),n=Mm(e,n,s,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(xt=ba(e.firstChild),En=n,Ye=!0,yl=null,ma=!0,a=xg(n,null,s,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Wl(),s===u){n=Wa(e,n,a);break e}Tn(e,n,s,a)}n=n.child}return n;case 26:return fo(e,n),e===null?(a=Y0(n.type,null,n.pendingProps,null))?n.memoizedState=a:Ye||(a=n.type,e=n.pendingProps,s=Do(ce.current).createElement(a),s[De]=n,s[et]=e,An(s,a,e),pe(s),n.stateNode=s):n.memoizedState=Y0(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Be(n),e===null&&Ye&&(s=n.stateNode=G0(n.type,n.pendingProps,ce.current),En=n,ma=!0,u=xt,Ll(n.type)?(sd=u,xt=ba(s.firstChild)):xt=u),Tn(e,n,n.pendingProps.children,a),fo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ye&&((u=s=xt)&&(s=y2(s,n.type,n.pendingProps,ma),s!==null?(n.stateNode=s,En=n,xt=ba(s.firstChild),ma=!1,u=!0):u=!1),u||_l(n)),Be(n),u=n.type,c=n.pendingProps,m=e!==null?e.memoizedProps:null,s=c.children,nd(u,c)?s=null:m!==null&&nd(u,m)&&(n.flags|=32),n.memoizedState!==null&&(u=ef(e,n,L_,null,null,a),Wr._currentValue=u),fo(e,n),Tn(e,n,s,a),n.child;case 6:return e===null&&Ye&&((e=a=xt)&&(a=_2(a,n.pendingProps,ma),a!==null?(n.stateNode=a,En=n,xt=null,e=!0):e=!1),e||_l(n)),null;case 13:return km(e,n,a);case 4:return Se(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=ai(n,null,s,a):Tn(e,n,s,a),n.child;case 11:return Tm(e,n,n.type,n.pendingProps,a);case 7:return Tn(e,n,n.pendingProps,a),n.child;case 8:return Tn(e,n,n.pendingProps.children,a),n.child;case 12:return Tn(e,n,n.pendingProps.children,a),n.child;case 10:return s=n.pendingProps,Sl(n,n.type,s.value),Tn(e,n,s.children,a),n.child;case 9:return u=n.type._context,s=n.pendingProps.children,ql(n),u=wn(u),s=s(u),n.flags|=1,Tn(e,n,s,a),n.child;case 14:return Am(e,n,n.type,n.pendingProps,a);case 15:return Cm(e,n,n.type,n.pendingProps,a);case 19:return zm(e,n,a);case 31:return X_(e,n,a);case 22:return xm(e,n,a,n.pendingProps);case 24:return ql(n),s=wn(Jt),e===null?(u=Gc(),u===null&&(u=wt,c=Xc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),n.memoizedState={parent:s,cache:u},Fc(n),Sl(n,Jt,u)):((e.lanes&a)!==0&&(Yc(e,n),Nr(n,null,null,a),Rr()),u=e.memoizedState,c=n.memoizedState,u.parent!==s?(u={parent:s,cache:s},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Sl(n,Jt,s)):(s=c.cache,Sl(n,Jt,s),s!==u.cache&&Vc(n,[Jt],a,!0))),Tn(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function $a(e){e.flags|=4}function Df(e,n,a,s,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(u0())e.flags|=8192;else throw ni=Ps,Zc}else e.flags&=-16777217}function Bm(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$0(n))if(u0())e.flags|=8192;else throw ni=Ps,Zc}function po(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ln():536870912,e.lanes|=n,Qi|=n)}function Br(e,n){if(!Ye)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ot(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=a,n}function G_(e,n,a){var s=n.pendingProps;switch(jc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(n),null;case 1:return Ot(n),null;case 3:return a=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Ka(Jt),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ri(n)?$a(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Uc())),Ot(n),null;case 26:var u=n.type,c=n.memoizedState;return e===null?($a(n),c!==null?(Ot(n),Bm(n,c)):(Ot(n),Df(n,u,null,s,a))):c?c!==e.memoizedState?($a(n),Ot(n),Bm(n,c)):(Ot(n),n.flags&=-16777217):(e=e.memoizedProps,e!==s&&$a(n),Ot(n),Df(n,u,e,s,a)),null;case 27:if(St(n),a=ce.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&$a(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Ot(n),null}e=oe.current,Ri(n)?mg(n):(e=G0(u,s,a),n.stateNode=e,$a(n))}return Ot(n),null;case 5:if(St(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&$a(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Ot(n),null}if(c=oe.current,Ri(n))mg(n);else{var m=Do(ce.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?m.createElement(u,{is:s.is}):m.createElement(u)}}c[De]=n,c[et]=s;e:for(m=n.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===n)break e;for(;m.sibling===null;){if(m.return===null||m.return===n)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}n.stateNode=c;e:switch(An(c,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&$a(n)}}return Ot(n),Df(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&$a(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(r(166));if(e=ce.current,Ri(n)){if(e=n.stateNode,a=n.memoizedProps,s=null,u=En,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}e[De]=n,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||k0(e.nodeValue,a)),e||_l(n,!0)}else e=Do(e).createTextNode(s),e[De]=n,n.stateNode=e}return Ot(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(s=Ri(n),a!==null){if(e===null){if(!s)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[De]=n}else Wl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ot(n),e=!1}else a=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(aa(n),n):(aa(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Ot(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ri(n),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[De]=n}else Wl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ot(n),u=!1}else u=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(aa(n),n):(aa(n),null)}return aa(n),(n.flags&128)!==0?(n.lanes=a,n):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=n.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==u&&(s.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),po(n,n.updateQueue),Ot(n),null);case 4:return we(),e===null&&Wf(n.stateNode.containerInfo),Ot(n),null;case 10:return Ka(n.type),Ot(n),null;case 19:if(K(Qt),s=n.memoizedState,s===null)return Ot(n),null;if(u=(n.flags&128)!==0,c=s.rendering,c===null)if(u)Br(s,!1);else{if(Ut!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(c=eo(e),c!==null){for(n.flags|=128,Br(s,!1),e=c.updateQueue,n.updateQueue=e,po(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)fg(a,e),a=a.sibling;return ee(Qt,Qt.current&1|2),Ye&&Fa(n,s.treeForkCount),n.child}e=e.sibling}s.tail!==null&&st()>yo&&(n.flags|=128,u=!0,Br(s,!1),n.lanes=4194304)}else{if(!u)if(e=eo(c),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,po(n,e),Br(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Ye)return Ot(n),null}else 2*st()-s.renderingStartTime>yo&&a!==536870912&&(n.flags|=128,u=!0,Br(s,!1),n.lanes=4194304);s.isBackwards?(c.sibling=n.child,n.child=c):(e=s.last,e!==null?e.sibling=c:n.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=st(),e.sibling=null,a=Qt.current,ee(Qt,u?a&1|2:a&1),Ye&&Fa(n,s.treeForkCount),e):(Ot(n),null);case 22:case 23:return aa(n),Wc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(a&536870912)!==0&&(n.flags&128)===0&&(Ot(n),n.subtreeFlags&6&&(n.flags|=8192)):Ot(n),a=n.updateQueue,a!==null&&po(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==a&&(n.flags|=2048),e!==null&&K(ei),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Ka(Jt),Ot(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function Z_(e,n){switch(jc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Ka(Jt),we(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return St(n),null;case 31:if(n.memoizedState!==null){if(aa(n),n.alternate===null)throw Error(r(340));Wl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(aa(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Wl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return K(Qt),null;case 4:return we(),null;case 10:return Ka(n.type),null;case 22:case 23:return aa(n),Wc(),e!==null&&K(ei),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Ka(Jt),null;case 25:return null;default:return null}}function Um(e,n){switch(jc(n),n.tag){case 3:Ka(Jt),we();break;case 26:case 27:case 5:St(n);break;case 4:we();break;case 31:n.memoizedState!==null&&aa(n);break;case 13:aa(n);break;case 19:K(Qt);break;case 10:Ka(n.type);break;case 22:case 23:aa(n),Wc(),e!==null&&K(ei);break;case 24:Ka(Jt)}}function Ur(e,n){try{var a=n.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&e)===e){s=void 0;var c=a.create,m=a.inst;s=c(),m.destroy=s}a=a.next}while(a!==u)}}catch(E){pt(n,n.return,E)}}function xl(e,n,a){try{var s=n.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var c=u.next;s=c;do{if((s.tag&e)===e){var m=s.inst,E=m.destroy;if(E!==void 0){m.destroy=void 0,u=n;var R=a,H=E;try{H()}catch($){pt(u,R,$)}}}s=s.next}while(s!==c)}}catch($){pt(n,n.return,$)}}function Hm(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{Dg(n,a)}catch(s){pt(e,e.return,s)}}}function Im(e,n,a){a.props=ii(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){pt(e,n,s)}}function Hr(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(u){pt(e,n,u)}}function Ua(e,n){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(u){pt(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){pt(e,n,u)}else a.current=null}function Vm(e){var n=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(u){pt(e,e.return,u)}}function Rf(e,n,a){try{var s=e.stateNode;h2(s,e.type,a,n),s[et]=n}catch(u){pt(e,e.return,u)}}function Xm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ll(e.type)||e.tag===4}function Nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ll(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mf(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Qa));else if(s!==4&&(s===27&&Ll(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Mf(e,n,a),e=e.sibling;e!==null;)Mf(e,n,a),e=e.sibling}function go(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(s!==4&&(s===27&&Ll(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(go(e,n,a),e=e.sibling;e!==null;)go(e,n,a),e=e.sibling}function Qm(e){var n=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);An(n,s,a),n[De]=e,n[et]=a}catch(c){pt(e,e.return,c)}}var qa=!1,$t=!1,kf=!1,Gm=typeof WeakSet=="function"?WeakSet:Set,mn=null;function F_(e,n){if(e=e.containerInfo,ed=jo,e=ng(e),Ac(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var u=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,E=-1,R=-1,H=0,$=0,ae=e,X=null;t:for(;;){for(var F;ae!==a||u!==0&&ae.nodeType!==3||(E=m+u),ae!==c||s!==0&&ae.nodeType!==3||(R=m+s),ae.nodeType===3&&(m+=ae.nodeValue.length),(F=ae.firstChild)!==null;)X=ae,ae=F;for(;;){if(ae===e)break t;if(X===a&&++H===u&&(E=m),X===c&&++$===s&&(R=m),(F=ae.nextSibling)!==null)break;ae=X,X=ae.parentNode}ae=F}a=E===-1||R===-1?null:{start:E,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(td={focusedElem:e,selectionRange:a},jo=!1,mn=n;mn!==null;)if(n=mn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mn=e;else for(;mn!==null;){switch(n=mn,c=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=n,u=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var ve=ii(a.type,u);e=s.getSnapshotBeforeUpdate(ve,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){pt(a,a.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)ld(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ld(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,mn=e;break}mn=n.return}}function Zm(e,n,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:tl(e,a),s&4&&Ur(5,a);break;case 1:if(tl(e,a),s&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(m){pt(a,a.return,m)}else{var u=ii(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(m){pt(a,a.return,m)}}s&64&&Hm(a),s&512&&Hr(a,a.return);break;case 3:if(tl(e,a),s&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Dg(e,n)}catch(m){pt(a,a.return,m)}}break;case 27:n===null&&s&4&&Qm(a);case 26:case 5:tl(e,a),n===null&&s&4&&Vm(a),s&512&&Hr(a,a.return);break;case 12:tl(e,a);break;case 31:tl(e,a),s&4&&Km(e,a);break;case 13:tl(e,a),s&4&&Jm(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=t2.bind(null,a),S2(e,a))));break;case 22:if(s=a.memoizedState!==null||qa,!s){n=n!==null&&n.memoizedState!==null||$t,u=qa;var c=$t;qa=s,($t=n)&&!c?nl(e,a,(a.subtreeFlags&8772)!==0):tl(e,a),qa=u,$t=c}break;case 30:break;default:tl(e,a)}}function Fm(e){var n=e.alternate;n!==null&&(e.alternate=null,Fm(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&D(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Rt=null,Jn=!1;function el(e,n,a){for(a=a.child;a!==null;)Ym(e,n,a),a=a.sibling}function Ym(e,n,a){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:$t||Ua(a,n),el(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||Ua(a,n);var s=Rt,u=Jn;Ll(a.type)&&(Rt=a.stateNode,Jn=!1),el(e,n,a),Kr(a.stateNode),Rt=s,Jn=u;break;case 5:$t||Ua(a,n);case 6:if(s=Rt,u=Jn,Rt=null,el(e,n,a),Rt=s,Jn=u,Rt!==null)if(Jn)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(a.stateNode)}catch(c){pt(a,n,c)}else try{Rt.removeChild(a.stateNode)}catch(c){pt(a,n,c)}break;case 18:Rt!==null&&(Jn?(e=Rt,H0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wi(e)):H0(Rt,a.stateNode));break;case 4:s=Rt,u=Jn,Rt=a.stateNode.containerInfo,Jn=!0,el(e,n,a),Rt=s,Jn=u;break;case 0:case 11:case 14:case 15:xl(2,a,n),$t||xl(4,a,n),el(e,n,a);break;case 1:$t||(Ua(a,n),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Im(a,n,s)),el(e,n,a);break;case 21:el(e,n,a);break;case 22:$t=(s=$t)||a.memoizedState!==null,el(e,n,a),$t=s;break;default:el(e,n,a)}}function Km(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wi(e)}catch(a){pt(n,n.return,a)}}}function Jm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wi(e)}catch(a){pt(n,n.return,a)}}function Y_(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Gm),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Gm),n;default:throw Error(r(435,e.tag))}}function mo(e,n){var a=Y_(e);n.forEach(function(s){if(!a.has(s)){a.add(s);var u=n2.bind(null,e,s);s.then(u,u)}})}function Pn(e,n){var a=n.deletions;if(a!==null)for(var s=0;s<a.length;s++){var u=a[s],c=e,m=n,E=m;e:for(;E!==null;){switch(E.tag){case 27:if(Ll(E.type)){Rt=E.stateNode,Jn=!1;break e}break;case 5:Rt=E.stateNode,Jn=!1;break e;case 3:case 4:Rt=E.stateNode.containerInfo,Jn=!0;break e}E=E.return}if(Rt===null)throw Error(r(160));Ym(c,m,u),Rt=null,Jn=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Pm(n,e),n=n.sibling}var Aa=null;function Pm(e,n){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pn(n,e),Wn(e),s&4&&(xl(3,e,e.return),Ur(3,e),xl(5,e,e.return));break;case 1:Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),s&64&&qa&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var u=Aa;if(Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(s){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ue]||c[De]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(s),u.head.insertBefore(c,u.querySelector("head > title"))),An(c,s,a),c[De]=e,pe(c),s=c;break e;case"link":var m=P0("link","href",u).get(s+(a.href||""));if(m){for(var E=0;E<m.length;E++)if(c=m[E],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(E,1);break t}}c=u.createElement(s),An(c,s,a),u.head.appendChild(c);break;case"meta":if(m=P0("meta","content",u).get(s+(a.content||""))){for(E=0;E<m.length;E++)if(c=m[E],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(E,1);break t}}c=u.createElement(s),An(c,s,a),u.head.appendChild(c);break;default:throw Error(r(468,s))}c[De]=e,pe(c),s=c}e.stateNode=s}else W0(u,e.type,e.stateNode);else e.stateNode=J0(u,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?W0(u,e.type,e.stateNode):J0(u,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Rf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),a!==null&&s&4&&Rf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),e.flags&32){u=e.stateNode;try{Xa(u,"")}catch(ve){pt(e,e.return,ve)}}s&4&&e.stateNode!=null&&(u=e.memoizedProps,Rf(e,u,a!==null?a.memoizedProps:u)),s&1024&&(kf=!0);break;case 6:if(Pn(n,e),Wn(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(ve){pt(e,e.return,ve)}}break;case 3:if(Mo=null,u=Aa,Aa=Ro(n.containerInfo),Pn(n,e),Aa=u,Wn(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Wi(n.containerInfo)}catch(ve){pt(e,e.return,ve)}kf&&(kf=!1,Wm(e));break;case 4:s=Aa,Aa=Ro(e.stateNode.containerInfo),Pn(n,e),Wn(e),Aa=s;break;case 12:Pn(n,e),Wn(e);break;case 31:Pn(n,e),Wn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,mo(e,s)));break;case 13:Pn(n,e),Wn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(bo=st()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,mo(e,s)));break;case 22:u=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,H=qa,$=$t;if(qa=H||u,$t=$||R,Pn(n,e),$t=$,qa=H,Wn(e),s&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(a===null||R||qa||$t||ri(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){R=a=n;try{if(c=R.stateNode,u)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{E=R.stateNode;var ae=R.memoizedProps.style,X=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(ve){pt(R,R.return,ve)}}}else if(n.tag===6){if(a===null){R=n;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(ve){pt(R,R.return,ve)}}}else if(n.tag===18){if(a===null){R=n;try{var F=R.stateNode;u?I0(F,!0):I0(R.stateNode,!1)}catch(ve){pt(R,R.return,ve)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,mo(e,a))));break;case 19:Pn(n,e),Wn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,mo(e,s)));break;case 30:break;case 21:break;default:Pn(n,e),Wn(e)}}function Wn(e){var n=e.flags;if(n&2){try{for(var a,s=e.return;s!==null;){if(Xm(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=Nf(e);go(e,c,u);break;case 5:var m=a.stateNode;a.flags&32&&(Xa(m,""),a.flags&=-33);var E=Nf(e);go(e,E,m);break;case 3:case 4:var R=a.stateNode.containerInfo,H=Nf(e);Mf(e,H,R);break;default:throw Error(r(161))}}catch($){pt(e,e.return,$)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Wm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Wm(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function tl(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Zm(e,n.alternate,n),n=n.sibling}function ri(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),ri(n);break;case 1:Ua(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Im(n,n.return,a),ri(n);break;case 27:Kr(n.stateNode);case 26:case 5:Ua(n,n.return),ri(n);break;case 22:n.memoizedState===null&&ri(n);break;case 30:ri(n);break;default:ri(n)}e=e.sibling}}function nl(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,u=e,c=n,m=c.flags;switch(c.tag){case 0:case 11:case 15:nl(u,c,a),Ur(4,c);break;case 1:if(nl(u,c,a),s=c,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(H){pt(s,s.return,H)}if(s=c,u=s.updateQueue,u!==null){var E=s.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)Og(R[u],E)}catch(H){pt(s,s.return,H)}}a&&m&64&&Hm(c),Hr(c,c.return);break;case 27:Qm(c);case 26:case 5:nl(u,c,a),a&&s===null&&m&4&&Vm(c),Hr(c,c.return);break;case 12:nl(u,c,a);break;case 31:nl(u,c,a),a&&m&4&&Km(u,c);break;case 13:nl(u,c,a),a&&m&4&&Jm(u,c);break;case 22:c.memoizedState===null&&nl(u,c,a),Hr(c,c.return);break;case 30:break;default:nl(u,c,a)}n=n.sibling}}function Lf(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ar(a))}function zf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ar(e))}function Ca(e,n,a,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)$m(e,n,a,s),n=n.sibling}function $m(e,n,a,s){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Ca(e,n,a,s),u&2048&&Ur(9,n);break;case 1:Ca(e,n,a,s);break;case 3:Ca(e,n,a,s),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ar(e)));break;case 12:if(u&2048){Ca(e,n,a,s),e=n.stateNode;try{var c=n.memoizedProps,m=c.id,E=c.onPostCommit;typeof E=="function"&&E(m,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){pt(n,n.return,R)}}else Ca(e,n,a,s);break;case 31:Ca(e,n,a,s);break;case 13:Ca(e,n,a,s);break;case 23:break;case 22:c=n.stateNode,m=n.alternate,n.memoizedState!==null?c._visibility&2?Ca(e,n,a,s):Ir(e,n):c._visibility&2?Ca(e,n,a,s):(c._visibility|=2,Ii(e,n,a,s,(n.subtreeFlags&10256)!==0||!1)),u&2048&&Lf(m,n);break;case 24:Ca(e,n,a,s),u&2048&&zf(n.alternate,n);break;default:Ca(e,n,a,s)}}function Ii(e,n,a,s,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var c=e,m=n,E=a,R=s,H=m.flags;switch(m.tag){case 0:case 11:case 15:Ii(c,m,E,R,u),Ur(8,m);break;case 23:break;case 22:var $=m.stateNode;m.memoizedState!==null?$._visibility&2?Ii(c,m,E,R,u):Ir(c,m):($._visibility|=2,Ii(c,m,E,R,u)),u&&H&2048&&Lf(m.alternate,m);break;case 24:Ii(c,m,E,R,u),u&&H&2048&&zf(m.alternate,m);break;default:Ii(c,m,E,R,u)}n=n.sibling}}function Ir(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,s=n,u=s.flags;switch(s.tag){case 22:Ir(a,s),u&2048&&Lf(s.alternate,s);break;case 24:Ir(a,s),u&2048&&zf(s.alternate,s);break;default:Ir(a,s)}n=n.sibling}}var Vr=8192;function Vi(e,n,a){if(e.subtreeFlags&Vr)for(e=e.child;e!==null;)qm(e,n,a),e=e.sibling}function qm(e,n,a){switch(e.tag){case 26:Vi(e,n,a),e.flags&Vr&&e.memoizedState!==null&&k2(a,Aa,e.memoizedState,e.memoizedProps);break;case 5:Vi(e,n,a);break;case 3:case 4:var s=Aa;Aa=Ro(e.stateNode.containerInfo),Vi(e,n,a),Aa=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Vr,Vr=16777216,Vi(e,n,a),Vr=s):Vi(e,n,a));break;default:Vi(e,n,a)}}function e0(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Xr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];mn=s,n0(s,e)}e0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)t0(e),e=e.sibling}function t0(e){switch(e.tag){case 0:case 11:case 15:Xr(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Xr(e);break;case 12:Xr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,vo(e)):Xr(e);break;default:Xr(e)}}function vo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];mn=s,n0(s,e)}e0(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:xl(8,n,n.return),vo(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,vo(n));break;default:vo(n)}e=e.sibling}}function n0(e,n){for(;mn!==null;){var a=mn;switch(a.tag){case 0:case 11:case 15:xl(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ar(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,mn=s;else e:for(a=e;mn!==null;){s=mn;var u=s.sibling,c=s.return;if(Fm(s),s===a){mn=null;break e}if(u!==null){u.return=c,mn=u;break e}mn=c}}}var K_={getCacheForType:function(e){var n=wn(Jt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return wn(Jt).controller.signal}},J_=typeof WeakMap=="function"?WeakMap:Map,ot=0,wt=null,He=null,Ge=0,ht=0,la=null,Ol=!1,Xi=!1,jf=!1,al=0,Ut=0,Dl=0,si=0,Bf=0,ia=0,Qi=0,Qr=null,$n=null,Uf=!1,bo=0,a0=0,yo=1/0,_o=null,Rl=null,un=0,Nl=null,Gi=null,ll=0,Hf=0,If=null,l0=null,Gr=0,Vf=null;function ra(){return(ot&2)!==0&&Ge!==0?Ge&-Ge:j.T!==null?Yf():Bn()}function i0(){if(ia===0)if((Ge&536870912)===0||Ye){var e=at;at<<=1,(at&3932160)===0&&(at=262144),ia=e}else ia=536870912;return e=na.current,e!==null&&(e.flags|=32),ia}function qn(e,n,a){(e===wt&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(Zi(e,0),Ml(e,Ge,ia,!1)),jn(e,a),((ot&2)===0||e!==wt)&&(e===wt&&((ot&2)===0&&(si|=a),Ut===4&&Ml(e,Ge,ia,!1)),Ha(e))}function r0(e,n,a){if((ot&6)!==0)throw Error(r(327));var s=!a&&(n&127)===0&&(n&e.expiredLanes)===0||Rn(e,n),u=s?$_(e,n):Qf(e,n,!0),c=s;do{if(u===0){Xi&&!s&&Ml(e,n,0,!1);break}else{if(a=e.current.alternate,c&&!P_(a)){u=Qf(e,n,!1),c=!1;continue}if(u===2){if(c=n,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){n=m;e:{var E=e;u=Qr;var R=E.current.memoizedState.isDehydrated;if(R&&(Zi(E,m).flags|=256),m=Qf(E,m,!1),m!==2){if(jf&&!R){E.errorRecoveryDisabledLanes|=c,si|=c,u=4;break e}c=$n,$n=u,c!==null&&($n===null?$n=c:$n.push.apply($n,c))}u=m}if(c=!1,u!==2)continue}}if(u===1){Zi(e,0),Ml(e,n,0,!0);break}e:{switch(s=e,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:Ml(s,n,ia,!Ol);break e;case 2:$n=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(u=bo+300-st(),10<u)){if(Ml(s,n,ia,!Ol),Dn(s,0,!0)!==0)break e;ll=n,s.timeoutHandle=B0(s0.bind(null,s,a,$n,_o,Uf,n,ia,si,Qi,Ol,c,"Throttled",-0,0),u);break e}s0(s,a,$n,_o,Uf,n,ia,si,Qi,Ol,c,null,-0,0)}}break}while(!0);Ha(e)}function s0(e,n,a,s,u,c,m,E,R,H,$,ae,X,F){if(e.timeoutHandle=-1,ae=n.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qa},qm(n,c,ae);var ve=(c&62914560)===c?bo-st():(c&4194048)===c?a0-st():0;if(ve=L2(ae,ve),ve!==null){ll=c,e.cancelPendingCommit=ve(g0.bind(null,e,n,c,a,s,u,m,E,R,$,ae,null,X,F)),Ml(e,c,m,!H);return}}g0(e,n,c,a,s,u,m,E,R)}function P_(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var u=a[s],c=u.getSnapshot;u=u.value;try{if(!ea(c(),u))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ml(e,n,a,s){n&=~Bf,n&=~si,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var u=n;0<u;){var c=31-Je(u),m=1<<c;s[c]=-1,u&=~m}a!==0&&rn(e,a,n)}function So(){return(ot&6)===0?(Zr(0),!1):!0}function Xf(){if(He!==null){if(ht===0)var e=He.return;else e=He,Ya=$l=null,af(e),zi=null,xr=0,e=He;for(;e!==null;)Um(e.alternate,e),e=e.return;He=null}}function Zi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,m2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ll=0,Xf(),wt=e,He=a=Za(e.current,null),Ge=n,ht=0,la=null,Ol=!1,Xi=Rn(e,n),jf=!1,Qi=ia=Bf=si=Dl=Ut=0,$n=Qr=null,Uf=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var u=31-Je(s),c=1<<u;n|=e[u],s&=~c}return al=n,Vs(),a}function o0(e,n){Le=null,j.H=zr,n===Li||n===Js?(n=Tg(),ht=3):n===Zc?(n=Tg(),ht=4):ht=n===_f?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,la=n,He===null&&(Ut=1,uo(e,ha(n,e.current)))}function u0(){var e=na.current;return e===null?!0:(Ge&4194048)===Ge?va===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===va:!1}function c0(){var e=j.H;return j.H=zr,e===null?zr:e}function f0(){var e=j.A;return j.A=K_,e}function Eo(){Ut=4,Ol||(Ge&4194048)!==Ge&&na.current!==null||(Xi=!0),(Dl&134217727)===0&&(si&134217727)===0||wt===null||Ml(wt,Ge,ia,!1)}function Qf(e,n,a){var s=ot;ot|=2;var u=c0(),c=f0();(wt!==e||Ge!==n)&&(_o=null,Zi(e,n)),n=!1;var m=Ut;e:do try{if(ht!==0&&He!==null){var E=He,R=la;switch(ht){case 8:Xf(),m=6;break e;case 3:case 2:case 9:case 6:na.current===null&&(n=!0);var H=ht;if(ht=0,la=null,Fi(e,E,R,H),a&&Xi){m=0;break e}break;default:H=ht,ht=0,la=null,Fi(e,E,R,H)}}W_(),m=Ut;break}catch($){o0(e,$)}while(!0);return n&&e.shellSuspendCounter++,Ya=$l=null,ot=s,j.H=u,j.A=c,He===null&&(wt=null,Ge=0,Vs()),m}function W_(){for(;He!==null;)d0(He)}function $_(e,n){var a=ot;ot|=2;var s=c0(),u=f0();wt!==e||Ge!==n?(_o=null,yo=st()+500,Zi(e,n)):Xi=Rn(e,n);e:do try{if(ht!==0&&He!==null){n=He;var c=la;t:switch(ht){case 1:ht=0,la=null,Fi(e,n,c,1);break;case 2:case 9:if(Eg(c)){ht=0,la=null,h0(n);break}n=function(){ht!==2&&ht!==9||wt!==e||(ht=7),Ha(e)},c.then(n,n);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:Eg(c)?(ht=0,la=null,h0(n)):(ht=0,la=null,Fi(e,n,c,7));break;case 5:var m=null;switch(He.tag){case 26:m=He.memoizedState;case 5:case 27:var E=He;if(m?$0(m):E.stateNode.complete){ht=0,la=null;var R=E.sibling;if(R!==null)He=R;else{var H=E.return;H!==null?(He=H,wo(H)):He=null}break t}}ht=0,la=null,Fi(e,n,c,5);break;case 6:ht=0,la=null,Fi(e,n,c,6);break;case 8:Xf(),Ut=6;break e;default:throw Error(r(462))}}q_();break}catch($){o0(e,$)}while(!0);return Ya=$l=null,j.H=s,j.A=u,ot=a,He!==null?0:(wt=null,Ge=0,Vs(),Ut)}function q_(){for(;He!==null&&!nn();)d0(He)}function d0(e){var n=jm(e.alternate,e,al);e.memoizedProps=e.pendingProps,n===null?wo(e):He=n}function h0(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=Rm(a,n,n.pendingProps,n.type,void 0,Ge);break;case 11:n=Rm(a,n,n.pendingProps,n.type.render,n.ref,Ge);break;case 5:af(n);default:Um(a,n),n=He=fg(n,al),n=jm(a,n,al)}e.memoizedProps=e.pendingProps,n===null?wo(e):He=n}function Fi(e,n,a,s){Ya=$l=null,af(n),zi=null,xr=0;var u=n.return;try{if(V_(e,u,n,a,Ge)){Ut=1,uo(e,ha(a,e.current)),He=null;return}}catch(c){if(u!==null)throw He=u,c;Ut=1,uo(e,ha(a,e.current)),He=null;return}n.flags&32768?(Ye||s===1?e=!0:Xi||(Ge&536870912)!==0?e=!1:(Ol=e=!0,(s===2||s===9||s===3||s===6)&&(s=na.current,s!==null&&s.tag===13&&(s.flags|=16384))),p0(n,e)):wo(n)}function wo(e){var n=e;do{if((n.flags&32768)!==0){p0(n,Ol);return}e=n.return;var a=G_(n.alternate,n,al);if(a!==null){He=a;return}if(n=n.sibling,n!==null){He=n;return}He=n=e}while(n!==null);Ut===0&&(Ut=5)}function p0(e,n){do{var a=Z_(e.alternate,e);if(a!==null){a.flags&=32767,He=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){He=e;return}He=e=a}while(e!==null);Ut=6,He=null}function g0(e,n,a,s,u,c,m,E,R){e.cancelPendingCommit=null;do To();while(un!==0);if((ot&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(c=n.lanes|n.childLanes,c|=Rc,fa(e,a,c,m,E,R),e===wt&&(He=wt=null,Ge=0),Gi=n,Nl=e,ll=a,Hf=c,If=u,l0=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,a2(Vt,function(){return _0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=j.T,j.T=null,u=le.p,le.p=2,m=ot,ot|=4;try{F_(e,n,a)}finally{ot=m,le.p=u,j.T=s}}un=1,m0(),v0(),b0()}}function m0(){if(un===1){un=0;var e=Nl,n=Gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var s=le.p;le.p=2;var u=ot;ot|=4;try{Pm(n,e);var c=td,m=ng(e.containerInfo),E=c.focusedElem,R=c.selectionRange;if(m!==E&&E&&E.ownerDocument&&tg(E.ownerDocument.documentElement,E)){if(R!==null&&Ac(E)){var H=R.start,$=R.end;if($===void 0&&($=H),"selectionStart"in E)E.selectionStart=H,E.selectionEnd=Math.min($,E.value.length);else{var ae=E.ownerDocument||document,X=ae&&ae.defaultView||window;if(X.getSelection){var F=X.getSelection(),ve=E.textContent.length,Ce=Math.min(R.start,ve),_t=R.end===void 0?Ce:Math.min(R.end,ve);!F.extend&&Ce>_t&&(m=_t,_t=Ce,Ce=m);var z=eg(E,Ce),M=eg(E,_t);if(z&&M&&(F.rangeCount!==1||F.anchorNode!==z.node||F.anchorOffset!==z.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var U=ae.createRange();U.setStart(z.node,z.offset),F.removeAllRanges(),Ce>_t?(F.addRange(U),F.extend(M.node,M.offset)):(U.setEnd(M.node,M.offset),F.addRange(U))}}}}for(ae=[],F=E;F=F.parentNode;)F.nodeType===1&&ae.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}jo=!!ed,td=ed=null}finally{ot=u,le.p=s,j.T=a}}e.current=n,un=2}}function v0(){if(un===2){un=0;var e=Nl,n=Gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var s=le.p;le.p=2;var u=ot;ot|=4;try{Zm(e,n.alternate,n)}finally{ot=u,le.p=s,j.T=a}}un=3}}function b0(){if(un===4||un===3){un=0,Et();var e=Nl,n=Gi,a=ll,s=l0;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?un=5:(un=0,Gi=Nl=null,y0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Rl=null),Pe(a),n=n.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=j.T,u=le.p,le.p=2,j.T=null;try{for(var c=e.onRecoverableError,m=0;m<s.length;m++){var E=s[m];c(E.value,{componentStack:E.stack})}}finally{j.T=n,le.p=u}}(ll&3)!==0&&To(),Ha(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Vf?Gr++:(Gr=0,Vf=e):Gr=0,Zr(0)}}function y0(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Ar(n)))}function To(){return m0(),v0(),b0(),_0()}function _0(){if(un!==5)return!1;var e=Nl,n=Hf;Hf=0;var a=Pe(ll),s=j.T,u=le.p;try{le.p=32>a?32:a,j.T=null,a=If,If=null;var c=Nl,m=ll;if(un=0,Gi=Nl=null,ll=0,(ot&6)!==0)throw Error(r(331));var E=ot;if(ot|=4,t0(c.current),$m(c,c.current,m,a),ot=E,Zr(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(dn,c)}catch{}return!0}finally{le.p=u,j.T=s,y0(e,n)}}function S0(e,n,a){n=ha(a,n),n=yf(e.stateNode,n,2),e=Tl(e,n,2),e!==null&&(jn(e,2),Ha(e))}function pt(e,n,a){if(e.tag===3)S0(e,e,a);else for(;n!==null;){if(n.tag===3){S0(n,e,a);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Rl===null||!Rl.has(s))){e=ha(a,e),a=Em(2),s=Tl(n,a,2),s!==null&&(wm(a,s,n,e),jn(s,2),Ha(s));break}}n=n.return}}function Gf(e,n,a){var s=e.pingCache;if(s===null){s=e.pingCache=new J_;var u=new Set;s.set(n,u)}else u=s.get(n),u===void 0&&(u=new Set,s.set(n,u));u.has(a)||(jf=!0,u.add(a),e=e2.bind(null,e,n,a),n.then(e,e))}function e2(e,n,a){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,wt===e&&(Ge&a)===a&&(Ut===4||Ut===3&&(Ge&62914560)===Ge&&300>st()-bo?(ot&2)===0&&Zi(e,0):Bf|=a,Qi===Ge&&(Qi=0)),Ha(e)}function E0(e,n){n===0&&(n=ln()),e=Jl(e,n),e!==null&&(jn(e,n),Ha(e))}function t2(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),E0(e,a)}function n2(e,n){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(n),E0(e,a)}function a2(e,n){return Zt(e,n)}var Ao=null,Yi=null,Zf=!1,Co=!1,Ff=!1,kl=0;function Ha(e){e!==Yi&&e.next===null&&(Yi===null?Ao=Yi=e:Yi=Yi.next=e),Co=!0,Zf||(Zf=!0,i2())}function Zr(e,n){if(!Ff&&Co){Ff=!0;do for(var a=!1,s=Ao;s!==null;){if(e!==0){var u=s.pendingLanes;if(u===0)var c=0;else{var m=s.suspendedLanes,E=s.pingedLanes;c=(1<<31-Je(42|e)+1)-1,c&=u&~(m&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,C0(s,c))}else c=Ge,c=Dn(s,s===wt?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Rn(s,c)||(a=!0,C0(s,c));s=s.next}while(a);Ff=!1}}function l2(){w0()}function w0(){Co=Zf=!1;var e=0;kl!==0&&g2()&&(e=kl);for(var n=st(),a=null,s=Ao;s!==null;){var u=s.next,c=T0(s,n);c===0?(s.next=null,a===null?Ao=u:a.next=u,u===null&&(Yi=a)):(a=s,(e!==0||(c&3)!==0)&&(Co=!0)),s=u}un!==0&&un!==5||Zr(e),kl!==0&&(kl=0)}function T0(e,n){for(var a=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Je(c),E=1<<m,R=u[m];R===-1?((E&a)===0||(E&s)!==0)&&(u[m]=vt(E,n)):R<=n&&(e.expiredLanes|=E),c&=~E}if(n=wt,a=Ge,a=Dn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===n&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ct(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Rn(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(s!==null&&Ct(s),Pe(a)){case 2:case 8:a=Ft;break;case 32:a=Vt;break;case 268435456:a=fn;break;default:a=Vt}return s=A0.bind(null,e),a=Zt(a,s),e.callbackPriority=n,e.callbackNode=a,n}return s!==null&&s!==null&&Ct(s),e.callbackPriority=2,e.callbackNode=null,2}function A0(e,n){if(un!==0&&un!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(To()&&e.callbackNode!==a)return null;var s=Ge;return s=Dn(e,e===wt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(r0(e,s,n),T0(e,st()),e.callbackNode!=null&&e.callbackNode===a?A0.bind(null,e):null)}function C0(e,n){if(To())return null;r0(e,n,!0)}function i2(){v2(function(){(ot&6)!==0?Zt(It,l2):w0()})}function Yf(){if(kl===0){var e=Mi;e===0&&(e=Lt,Lt<<=1,(Lt&261888)===0&&(Lt=256)),kl=e}return kl}function x0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ks(""+e)}function O0(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function r2(e,n,a,s,u){if(n==="submit"&&a&&a.stateNode===u){var c=x0((u[et]||null).action),m=s.submitter;m&&(n=(n=m[et]||null)?x0(n.formAction):m.getAttribute("formAction"),n!==null&&(c=n,m=null));var E=new Bs("action","action",null,s,u);e.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(kl!==0){var R=m?O0(u,m):new FormData(u);hf(a,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(E.preventDefault(),R=m?O0(u,m):new FormData(u),hf(a,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var Kf=0;Kf<Dc.length;Kf++){var Jf=Dc[Kf],s2=Jf.toLowerCase(),o2=Jf[0].toUpperCase()+Jf.slice(1);Ta(s2,"on"+o2)}Ta(ig,"onAnimationEnd"),Ta(rg,"onAnimationIteration"),Ta(sg,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(T_,"onTransitionRun"),Ta(A_,"onTransitionStart"),Ta(C_,"onTransitionCancel"),Ta(og,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),lt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),lt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),lt("onBeforeInput",["compositionend","keypress","textInput","paste"]),lt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),lt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),lt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="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(" "),u2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fr));function D0(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],u=s.event;s=s.listeners;e:{var c=void 0;if(n)for(var m=s.length-1;0<=m;m--){var E=s[m],R=E.instance,H=E.currentTarget;if(E=E.listener,R!==c&&u.isPropagationStopped())break e;c=E,u.currentTarget=H;try{c(u)}catch($){Is($)}u.currentTarget=null,c=R}else for(m=0;m<s.length;m++){if(E=s[m],R=E.instance,H=E.currentTarget,E=E.listener,R!==c&&u.isPropagationStopped())break e;c=E,u.currentTarget=H;try{c(u)}catch($){Is($)}u.currentTarget=null,c=R}}}}function Ie(e,n){var a=n[Fn];a===void 0&&(a=n[Fn]=new Set);var s=e+"__bubble";a.has(s)||(R0(n,e,2,!1),a.add(s))}function Pf(e,n,a){var s=0;n&&(s|=4),R0(a,e,s,n)}var xo="_reactListening"+Math.random().toString(36).slice(2);function Wf(e){if(!e[xo]){e[xo]=!0,dt.forEach(function(a){a!=="selectionchange"&&(u2.has(a)||Pf(a,!1,e),Pf(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[xo]||(n[xo]=!0,Pf("selectionchange",!1,n))}}function R0(e,n,a,s){switch(i1(n)){case 2:var u=B2;break;case 8:u=U2;break;default:u=dd}a=u.bind(null,n,a,e),u=void 0,!mc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(n,a,{capture:!0,passive:u}):e.addEventListener(n,a,!0):u!==void 0?e.addEventListener(n,a,{passive:u}):e.addEventListener(n,a,!1)}function $f(e,n,a,s,u){var c=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var E=s.stateNode.containerInfo;if(E===u)break;if(m===4)for(m=s.return;m!==null;){var R=m.tag;if((R===3||R===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;E!==null;){if(m=W(E),m===null)return;if(R=m.tag,R===5||R===6||R===26||R===27){s=c=m;continue e}E=E.parentNode}}s=s.return}zp(function(){var H=c,$=pc(a),ae=[];e:{var X=ug.get(e);if(X!==void 0){var F=Bs,ve=e;switch(e){case"keypress":if(zs(a)===0)break e;case"keydown":case"keyup":F=n_;break;case"focusin":ve="focus",F=_c;break;case"focusout":ve="blur",F=_c;break;case"beforeblur":case"afterblur":F=_c;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Up;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Gy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=i_;break;case ig:case rg:case sg:F=Yy;break;case og:F=s_;break;case"scroll":case"scrollend":F=Xy;break;case"wheel":F=u_;break;case"copy":case"cut":case"paste":F=Jy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Ip;break;case"toggle":case"beforetoggle":F=f_}var Ce=(n&4)!==0,_t=!Ce&&(e==="scroll"||e==="scrollend"),z=Ce?X!==null?X+"Capture":null:X;Ce=[];for(var M=H,U;M!==null;){var te=M;if(U=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||U===null||z===null||(te=pr(M,z),te!=null&&Ce.push(Yr(M,te,U))),_t)break;M=M.return}0<Ce.length&&(X=new F(X,ve,null,a,$),ae.push({event:X,listeners:Ce}))}}if((n&7)===0){e:{if(X=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",X&&a!==hc&&(ve=a.relatedTarget||a.fromElement)&&(W(ve)||ve[pn]))break e;if((F||X)&&(X=$.window===$?$:(X=$.ownerDocument)?X.defaultView||X.parentWindow:window,F?(ve=a.relatedTarget||a.toElement,F=H,ve=ve?W(ve):null,ve!==null&&(_t=f(ve),Ce=ve.tag,ve!==_t||Ce!==5&&Ce!==27&&Ce!==6)&&(ve=null)):(F=null,ve=H),F!==ve)){if(Ce=Up,te="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=Ip,te="onPointerLeave",z="onPointerEnter",M="pointer"),_t=F==null?X:Ee(F),U=ve==null?X:Ee(ve),X=new Ce(te,M+"leave",F,a,$),X.target=_t,X.relatedTarget=U,te=null,W($)===H&&(Ce=new Ce(z,M+"enter",ve,a,$),Ce.target=U,Ce.relatedTarget=_t,te=Ce),_t=te,F&&ve)t:{for(Ce=c2,z=F,M=ve,U=0,te=z;te;te=Ce(te))U++;te=0;for(var Te=M;Te;Te=Ce(Te))te++;for(;0<U-te;)z=Ce(z),U--;for(;0<te-U;)M=Ce(M),te--;for(;U--;){if(z===M||M!==null&&z===M.alternate){Ce=z;break t}z=Ce(z),M=Ce(M)}Ce=null}else Ce=null;F!==null&&N0(ae,X,F,Ce,!1),ve!==null&&_t!==null&&N0(ae,_t,ve,Ce,!0)}}e:{if(X=H?Ee(H):window,F=X.nodeName&&X.nodeName.toLowerCase(),F==="select"||F==="input"&&X.type==="file")var it=Kp;else if(Fp(X))if(Jp)it=S_;else{it=y_;var _e=b_}else F=X.nodeName,!F||F.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?H&&dc(H.elementType)&&(it=Kp):it=__;if(it&&(it=it(e,H))){Yp(ae,it,a,$);break e}_e&&_e(e,X,H),e==="focusout"&&H&&X.type==="number"&&H.memoizedProps.value!=null&&fc(X,"number",X.value)}switch(_e=H?Ee(H):window,e){case"focusin":(Fp(_e)||_e.contentEditable==="true")&&(Ti=_e,Cc=H,Er=null);break;case"focusout":Er=Cc=Ti=null;break;case"mousedown":xc=!0;break;case"contextmenu":case"mouseup":case"dragend":xc=!1,ag(ae,a,$);break;case"selectionchange":if(w_)break;case"keydown":case"keyup":ag(ae,a,$)}var je;if(Ec)e:{switch(e){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else wi?Gp(e,a)&&(Ze="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ze="onCompositionStart");Ze&&(Vp&&a.locale!=="ko"&&(wi||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&wi&&(je=jp()):(vl=$,vc="value"in vl?vl.value:vl.textContent,wi=!0)),_e=Oo(H,Ze),0<_e.length&&(Ze=new Hp(Ze,e,null,a,$),ae.push({event:Ze,listeners:_e}),je?Ze.data=je:(je=Zp(a),je!==null&&(Ze.data=je)))),(je=h_?p_(e,a):g_(e,a))&&(Ze=Oo(H,"onBeforeInput"),0<Ze.length&&(_e=new Hp("onBeforeInput","beforeinput",null,a,$),ae.push({event:_e,listeners:Ze}),_e.data=je)),r2(ae,e,H,a,$)}D0(ae,n)})}function Yr(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Oo(e,n){for(var a=n+"Capture",s=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=pr(e,a),u!=null&&s.unshift(Yr(e,u,c)),u=pr(e,n),u!=null&&s.push(Yr(e,u,c))),e.tag===3)return s;e=e.return}return[]}function c2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function N0(e,n,a,s,u){for(var c=n._reactName,m=[];a!==null&&a!==s;){var E=a,R=E.alternate,H=E.stateNode;if(E=E.tag,R!==null&&R===s)break;E!==5&&E!==26&&E!==27||H===null||(R=H,u?(H=pr(a,c),H!=null&&m.unshift(Yr(a,H,R))):u||(H=pr(a,c),H!=null&&m.push(Yr(a,H,R)))),a=a.return}m.length!==0&&e.push({event:n,listeners:m})}var f2=/\r\n?/g,d2=/\u0000|\uFFFD/g;function M0(e){return(typeof e=="string"?e:""+e).replace(f2,`
|
|
9
|
+
`).replace(d2,"")}function k0(e,n){return n=M0(n),M0(e)===n}function yt(e,n,a,s,u,c){switch(a){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Xa(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Xa(e,""+s);break;case"className":Yn(e,"class",s);break;case"tabIndex":Yn(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(e,a,s);break;case"style":kp(e,s,c);break;case"data":if(n!=="object"){Yn(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=ks(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(n!=="input"&&yt(e,n,"name",u.name,u,null),yt(e,n,"formEncType",u.formEncType,u,null),yt(e,n,"formMethod",u.formMethod,u,null),yt(e,n,"formTarget",u.formTarget,u,null)):(yt(e,n,"encType",u.encType,u,null),yt(e,n,"method",u.method,u,null),yt(e,n,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=ks(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=Qa);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}a=ks(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),Ue(e,"popover",s);break;case"xlinkActuate":gn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":gn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":gn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":gn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":gn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":gn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":gn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":gn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":gn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ue(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Iy.get(a)||a,Ue(e,a,s))}}function qf(e,n,a,s,u,c){switch(a){case"style":kp(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof s=="string"?Xa(e,s):(typeof s=="number"||typeof s=="bigint")&&Xa(e,""+s);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Qa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Re.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),n=a.slice(2,u?a.length-7:void 0),c=e[et]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(n,c,u),typeof s=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,s,u);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):Ue(e,a,s)}}}function An(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",e),Ie("load",e);var s=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:yt(e,n,c,m,a,null)}}u&&yt(e,n,"srcSet",a.srcSet,a,null),s&&yt(e,n,"src",a.src,a,null);return;case"input":Ie("invalid",e);var E=c=m=u=null,R=null,H=null;for(s in a)if(a.hasOwnProperty(s)){var $=a[s];if($!=null)switch(s){case"name":u=$;break;case"type":m=$;break;case"checked":R=$;break;case"defaultChecked":H=$;break;case"value":c=$;break;case"defaultValue":E=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,n));break;default:yt(e,n,s,$,a,null)}}hr(e,c,E,R,H,m,u,!1);return;case"select":Ie("invalid",e),s=m=c=null;for(u in a)if(a.hasOwnProperty(u)&&(E=a[u],E!=null))switch(u){case"value":c=E;break;case"defaultValue":m=E;break;case"multiple":s=E;default:yt(e,n,u,E,a,null)}n=c,a=m,e.multiple=!!s,n!=null?ml(e,!!s,n,!1):a!=null&&ml(e,!!s,a,!0);return;case"textarea":Ie("invalid",e),c=u=s=null;for(m in a)if(a.hasOwnProperty(m)&&(E=a[m],E!=null))switch(m){case"value":s=E;break;case"defaultValue":u=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:yt(e,n,m,E,a,null)}Np(e,s,u,c);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(s=a[R],s!=null))switch(R){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:yt(e,n,R,s,a,null)}return;case"dialog":Ie("beforetoggle",e),Ie("toggle",e),Ie("cancel",e),Ie("close",e);break;case"iframe":case"object":Ie("load",e);break;case"video":case"audio":for(s=0;s<Fr.length;s++)Ie(Fr[s],e);break;case"image":Ie("error",e),Ie("load",e);break;case"details":Ie("toggle",e);break;case"embed":case"source":case"link":Ie("error",e),Ie("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in a)if(a.hasOwnProperty(H)&&(s=a[H],s!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:yt(e,n,H,s,a,null)}return;default:if(dc(n)){for($ in a)a.hasOwnProperty($)&&(s=a[$],s!==void 0&&qf(e,n,$,s,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null&&yt(e,n,E,s,a,null))}function h2(e,n,a,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,m=null,E=null,R=null,H=null,$=null;for(F in a){var ae=a[F];if(a.hasOwnProperty(F)&&ae!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":R=ae;default:s.hasOwnProperty(F)||yt(e,n,F,null,s,ae)}}for(var X in s){var F=s[X];if(ae=a[X],s.hasOwnProperty(X)&&(F!=null||ae!=null))switch(X){case"type":c=F;break;case"name":u=F;break;case"checked":H=F;break;case"defaultChecked":$=F;break;case"value":m=F;break;case"defaultValue":E=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,n));break;default:F!==ae&&yt(e,n,X,F,s,ae)}}cc(e,m,E,R,H,$,c,u);return;case"select":F=m=E=X=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":F=R;default:s.hasOwnProperty(c)||yt(e,n,c,null,s,R)}for(u in s)if(c=s[u],R=a[u],s.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":X=c;break;case"defaultValue":E=c;break;case"multiple":m=c;default:c!==R&&yt(e,n,u,c,s,R)}n=E,a=m,s=F,X!=null?ml(e,!!a,X,!1):!!s!=!!a&&(n!=null?ml(e,!!a,n,!0):ml(e,!!a,a?[]:"",!1));return;case"textarea":F=X=null;for(E in a)if(u=a[E],a.hasOwnProperty(E)&&u!=null&&!s.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:yt(e,n,E,null,s,u)}for(m in s)if(u=s[m],c=a[m],s.hasOwnProperty(m)&&(u!=null||c!=null))switch(m){case"value":X=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&yt(e,n,m,u,s,c)}Rp(e,X,F);return;case"option":for(var ve in a)if(X=a[ve],a.hasOwnProperty(ve)&&X!=null&&!s.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:yt(e,n,ve,null,s,X)}for(R in s)if(X=s[R],F=a[R],s.hasOwnProperty(R)&&X!==F&&(X!=null||F!=null))switch(R){case"selected":e.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:yt(e,n,R,X,s,F)}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 a)X=a[Ce],a.hasOwnProperty(Ce)&&X!=null&&!s.hasOwnProperty(Ce)&&yt(e,n,Ce,null,s,X);for(H in s)if(X=s[H],F=a[H],s.hasOwnProperty(H)&&X!==F&&(X!=null||F!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,n));break;default:yt(e,n,H,X,s,F)}return;default:if(dc(n)){for(var _t in a)X=a[_t],a.hasOwnProperty(_t)&&X!==void 0&&!s.hasOwnProperty(_t)&&qf(e,n,_t,void 0,s,X);for($ in s)X=s[$],F=a[$],!s.hasOwnProperty($)||X===F||X===void 0&&F===void 0||qf(e,n,$,X,s,F);return}}for(var z in a)X=a[z],a.hasOwnProperty(z)&&X!=null&&!s.hasOwnProperty(z)&&yt(e,n,z,null,s,X);for(ae in s)X=s[ae],F=a[ae],!s.hasOwnProperty(ae)||X===F||X==null&&F==null||yt(e,n,ae,X,s,F)}function L0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function p2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var u=a[s],c=u.transferSize,m=u.initiatorType,E=u.duration;if(c&&E&&L0(m)){for(m=0,E=u.responseEnd,s+=1;s<a.length;s++){var R=a[s],H=R.startTime;if(H>E)break;var $=R.transferSize,ae=R.initiatorType;$&&L0(ae)&&(R=R.responseEnd,m+=$*(R<E?1:(E-H)/(R-H)))}if(--s,n+=8*(c+m)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ed=null,td=null;function Do(e){return e.nodeType===9?e:e.ownerDocument}function z0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j0(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function nd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ad=null;function g2(){var e=window.event;return e&&e.type==="popstate"?e===ad?!1:(ad=e,!0):(ad=null,!1)}var B0=typeof setTimeout=="function"?setTimeout:void 0,m2=typeof clearTimeout=="function"?clearTimeout:void 0,U0=typeof Promise=="function"?Promise:void 0,v2=typeof queueMicrotask=="function"?queueMicrotask:typeof U0<"u"?function(e){return U0.resolve(null).then(e).catch(b2)}:B0;function b2(e){setTimeout(function(){throw e})}function Ll(e){return e==="head"}function H0(e,n){var a=n,s=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(s===0){e.removeChild(u),Wi(n);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Kr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Kr(a);for(var c=a.firstChild;c;){var m=c.nextSibling,E=c.nodeName;c[ue]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Kr(e.ownerDocument.body);a=u}while(a);Wi(n)}function I0(e,n){var a=e;e=0;do{var s=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=s}while(a)}function ld(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ld(a),D(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function y2(e,n,a,s){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ue])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ba(e.nextSibling),e===null)break}return null}function _2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ba(e.nextSibling),e===null))return null;return e}function V0(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ba(e.nextSibling),e===null))return null;return e}function id(e){return e.data==="$?"||e.data==="$~"}function rd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function S2(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var s=function(){n(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function ba(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var sd=null;function X0(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return ba(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function Q0(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function G0(e,n,a){switch(n=Do(a),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Kr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);D(e)}var ya=new Map,Z0=new Set;function Ro(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var il=le.d;le.d={f:E2,r:w2,D:T2,C:A2,L:C2,m:x2,X:D2,S:O2,M:R2};function E2(){var e=il.f(),n=So();return e||n}function w2(e){var n=re(e);n!==null&&n.tag===5&&n.type==="form"?om(n):il.r(e)}var Ki=typeof document>"u"?null:document;function F0(e,n,a){var s=Ki;if(s&&typeof n=="string"&&n){var u=Un(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Z0.has(u)||(Z0.add(u),e={rel:e,crossOrigin:a,href:n},s.querySelector(u)===null&&(n=s.createElement("link"),An(n,"link",e),pe(n),s.head.appendChild(n)))}}function T2(e){il.D(e),F0("dns-prefetch",e,null)}function A2(e,n){il.C(e,n),F0("preconnect",e,n)}function C2(e,n,a){il.L(e,n,a);var s=Ki;if(s&&e&&n){var u='link[rel="preload"][as="'+Un(n)+'"]';n==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Un(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Un(a.imageSizes)+'"]')):u+='[href="'+Un(e)+'"]';var c=u;switch(n){case"style":c=Ji(e);break;case"script":c=Pi(e)}ya.has(c)||(e=S({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),ya.set(c,e),s.querySelector(u)!==null||n==="style"&&s.querySelector(Jr(c))||n==="script"&&s.querySelector(Pr(c))||(n=s.createElement("link"),An(n,"link",e),pe(n),s.head.appendChild(n)))}}function x2(e,n){il.m(e,n);var a=Ki;if(a&&e){var s=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Un(s)+'"][href="'+Un(e)+'"]',c=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Pi(e)}if(!ya.has(c)&&(e=S({rel:"modulepreload",href:e},n),ya.set(c,e),a.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pr(c)))return}s=a.createElement("link"),An(s,"link",e),pe(s),a.head.appendChild(s)}}}function O2(e,n,a){il.S(e,n,a);var s=Ki;if(s&&e){var u=Qe(s).hoistableStyles,c=Ji(e);n=n||"default";var m=u.get(c);if(!m){var E={loading:0,preload:null};if(m=s.querySelector(Jr(c)))E.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":n},a),(a=ya.get(c))&&od(e,a);var R=m=s.createElement("link");pe(R),An(R,"link",e),R._p=new Promise(function(H,$){R.onload=H,R.onerror=$}),R.addEventListener("load",function(){E.loading|=1}),R.addEventListener("error",function(){E.loading|=2}),E.loading|=4,No(m,n,s)}m={type:"stylesheet",instance:m,count:1,state:E},u.set(c,m)}}}function D2(e,n){il.X(e,n);var a=Ki;if(a&&e){var s=Qe(a).hoistableScripts,u=Pi(e),c=s.get(u);c||(c=a.querySelector(Pr(u)),c||(e=S({src:e,async:!0},n),(n=ya.get(u))&&ud(e,n),c=a.createElement("script"),pe(c),An(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function R2(e,n){il.M(e,n);var a=Ki;if(a&&e){var s=Qe(a).hoistableScripts,u=Pi(e),c=s.get(u);c||(c=a.querySelector(Pr(u)),c||(e=S({src:e,async:!0,type:"module"},n),(n=ya.get(u))&&ud(e,n),c=a.createElement("script"),pe(c),An(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function Y0(e,n,a,s){var u=(u=ce.current)?Ro(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ji(a.href),a=Qe(u).hoistableStyles,s=a.get(n),s||(s={type:"style",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ji(a.href);var c=Qe(u).hoistableStyles,m=c.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=u.querySelector(Jr(e)))&&!c._p&&(m.instance=c,m.state.loading=5),ya.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ya.set(e,a),c||N2(u,e,a,m.state))),n&&s===null)throw Error(r(528,""));return m}if(n&&s!==null)throw Error(r(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Pi(a),a=Qe(u).hoistableScripts,s=a.get(n),s||(s={type:"script",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ji(e){return'href="'+Un(e)+'"'}function Jr(e){return'link[rel="stylesheet"]['+e+"]"}function K0(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function N2(e,n,a,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),An(n,"link",a),pe(n),e.head.appendChild(n))}function Pi(e){return'[src="'+Un(e)+'"]'}function Pr(e){return"script[async]"+e}function J0(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+Un(a.href)+'"]');if(s)return n.instance=s,pe(s),s;var u=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),pe(s),An(s,"style",u),No(s,a.precedence,e),n.instance=s;case"stylesheet":u=Ji(a.href);var c=e.querySelector(Jr(u));if(c)return n.state.loading|=4,n.instance=c,pe(c),c;s=K0(a),(u=ya.get(u))&&od(s,u),c=(e.ownerDocument||e).createElement("link"),pe(c);var m=c;return m._p=new Promise(function(E,R){m.onload=E,m.onerror=R}),An(c,"link",s),n.state.loading|=4,No(c,a.precedence,e),n.instance=c;case"script":return c=Pi(a.src),(u=e.querySelector(Pr(c)))?(n.instance=u,pe(u),u):(s=a,(u=ya.get(c))&&(s=S({},a),ud(s,u)),e=e.ownerDocument||e,u=e.createElement("script"),pe(u),An(u,"link",s),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,No(s,a.precedence,e));return n.instance}function No(e,n,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,c=u,m=0;m<s.length;m++){var E=s[m];if(E.dataset.precedence===n)c=E;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function od(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function ud(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Mo=null;function P0(e,n,a){if(Mo===null){var s=new Map,u=Mo=new Map;u.set(a,s)}else u=Mo,s=u.get(a),s||(s=new Map,u.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[ue]||c[De]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(n)||"";m=e+m;var E=s.get(m);E?E.push(c):s.set(m,[c])}}return s}function W0(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function M2(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function $0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function k2(e,n,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ji(s.href),c=n.querySelector(Jr(u));if(c){n=c._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=ko.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=c,pe(c);return}c=n.ownerDocument||n,s=K0(s),(u=ya.get(u))&&od(s,u),c=c.createElement("link"),pe(c);var m=c;m._p=new Promise(function(E,R){m.onload=E,m.onerror=R}),An(c,"link",s),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ko.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var cd=0;function L2(e,n){return e.stylesheets&&e.count===0&&zo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var s=setTimeout(function(){if(e.stylesheets&&zo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+n);0<e.imgBytes&&cd===0&&(cd=62500*p2());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&zo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>cd?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function ko(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Lo=null;function zo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Lo=new Map,n.forEach(z2,e),Lo=null,ko.call(e))}function z2(e,n){if(!(n.state.loading&4)){var a=Lo.get(e);if(a)var s=a.get(null);else{a=new Map,Lo.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var m=u[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}u=n.instance,m=u.getAttribute("data-precedence"),c=a.get(m)||s,c===s&&a.set(null,u),a.set(m,u),this.count++,s=ko.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var Wr={$$typeof:N,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function j2(e,n,a,s,u,c,m,E,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ca(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ca(0),this.hiddenUpdates=ca(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function q0(e,n,a,s,u,c,m,E,R,H,$,ae){return e=new j2(e,n,a,m,R,H,$,ae,E),n=1,c===!0&&(n|=24),c=ta(3,null,null,n),e.current=c,c.stateNode=e,n=Xc(),n.refCount++,e.pooledCache=n,n.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:n},Fc(c),e}function e1(e){return e?(e=xi,e):xi}function t1(e,n,a,s,u,c){u=e1(u),s.context===null?s.context=u:s.pendingContext=u,s=wl(n),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Tl(e,s,n),a!==null&&(qn(a,e,n),Dr(a,e,n))}function n1(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function fd(e,n){n1(e,n),(e=e.alternate)&&n1(e,n)}function a1(e){if(e.tag===13||e.tag===31){var n=Jl(e,67108864);n!==null&&qn(n,e,67108864),fd(e,67108864)}}function l1(e){if(e.tag===13||e.tag===31){var n=ra();n=zt(n);var a=Jl(e,n);a!==null&&qn(a,e,n),fd(e,n)}}var jo=!0;function B2(e,n,a,s){var u=j.T;j.T=null;var c=le.p;try{le.p=2,dd(e,n,a,s)}finally{le.p=c,j.T=u}}function U2(e,n,a,s){var u=j.T;j.T=null;var c=le.p;try{le.p=8,dd(e,n,a,s)}finally{le.p=c,j.T=u}}function dd(e,n,a,s){if(jo){var u=hd(s);if(u===null)$f(e,n,s,Bo,a),r1(e,s);else if(I2(u,e,n,a,s))s.stopPropagation();else if(r1(e,s),n&4&&-1<H2.indexOf(e)){for(;u!==null;){var c=re(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=At(c.pendingLanes);if(m!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;m;){var R=1<<31-Je(m);E.entanglements[1]|=R,m&=~R}Ha(c),(ot&6)===0&&(yo=st()+500,Zr(0))}}break;case 31:case 13:E=Jl(c,2),E!==null&&qn(E,c,2),So(),fd(c,2)}if(c=hd(s),c===null&&$f(e,n,s,Bo,a),c===u)break;u=c}u!==null&&s.stopPropagation()}else $f(e,n,s,null,a)}}function hd(e){return e=pc(e),pd(e)}var Bo=null;function pd(e){if(Bo=null,e=W(e),e!==null){var n=f(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=d(n),e!==null)return e;e=null}else if(a===31){if(e=g(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Bo=e,null}function i1(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(On()){case It:return 2;case Ft:return 8;case Vt:case cn:return 32;case fn:return 268435456;default:return 32}default:return 32}}var gd=!1,zl=null,jl=null,Bl=null,$r=new Map,qr=new Map,Ul=[],H2="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 r1(e,n){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Bl=null;break;case"pointerover":case"pointerout":$r.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":qr.delete(n.pointerId)}}function es(e,n,a,s,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[u]},n!==null&&(n=re(n),n!==null&&a1(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function I2(e,n,a,s,u){switch(n){case"focusin":return zl=es(zl,e,n,a,s,u),!0;case"dragenter":return jl=es(jl,e,n,a,s,u),!0;case"mouseover":return Bl=es(Bl,e,n,a,s,u),!0;case"pointerover":var c=u.pointerId;return $r.set(c,es($r.get(c)||null,e,n,a,s,u)),!0;case"gotpointercapture":return c=u.pointerId,qr.set(c,es(qr.get(c)||null,e,n,a,s,u)),!0}return!1}function s1(e){var n=W(e.target);if(n!==null){var a=f(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){e.blockedOn=n,Nn(e.priority,function(){l1(a)});return}}else if(n===31){if(n=g(a),n!==null){e.blockedOn=n,Nn(e.priority,function(){l1(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Uo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=hd(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);hc=s,a.target.dispatchEvent(s),hc=null}else return n=re(a),n!==null&&a1(n),e.blockedOn=a,!1;n.shift()}return!0}function o1(e,n,a){Uo(e)&&a.delete(n)}function V2(){gd=!1,zl!==null&&Uo(zl)&&(zl=null),jl!==null&&Uo(jl)&&(jl=null),Bl!==null&&Uo(Bl)&&(Bl=null),$r.forEach(o1),qr.forEach(o1)}function Ho(e,n){e.blockedOn===n&&(e.blockedOn=null,gd||(gd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,V2)))}var Io=null;function u1(e){Io!==e&&(Io=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Io===e&&(Io=null);for(var n=0;n<e.length;n+=3){var a=e[n],s=e[n+1],u=e[n+2];if(typeof s!="function"){if(pd(s||a)===null)continue;break}var c=re(a);c!==null&&(e.splice(n,3),n-=3,hf(c,{pending:!0,data:u,method:a.method,action:s},s,u))}}))}function Wi(e){function n(R){return Ho(R,e)}zl!==null&&Ho(zl,e),jl!==null&&Ho(jl,e),Bl!==null&&Ho(Bl,e),$r.forEach(n),qr.forEach(n);for(var a=0;a<Ul.length;a++){var s=Ul[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ul.length&&(a=Ul[0],a.blockedOn===null);)s1(a),a.blockedOn===null&&Ul.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var u=a[s],c=a[s+1],m=u[et]||null;if(typeof c=="function")m||u1(a);else if(m){var E=null;if(c&&c.hasAttribute("formAction")){if(u=c,m=c[et]||null)E=m.formAction;else if(pd(u)!==null)continue}else E=m.action;typeof E=="function"?a[s+1]=E:(a.splice(s,3),s-=3),u1(a)}}}function c1(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function md(e){this._internalRoot=e}Vo.prototype.render=md.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var a=n.current,s=ra();t1(a,s,e,n,null,null)},Vo.prototype.unmount=md.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;t1(e.current,2,null,e,null,null),So(),n[pn]=null}};function Vo(e){this._internalRoot=e}Vo.prototype.unstable_scheduleHydration=function(e){if(e){var n=Bn();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Ul.length&&n!==0&&n<Ul[a].priority;a++);Ul.splice(a,0,e),a===0&&s1(e)}};var f1=l.version;if(f1!=="19.2.0")throw Error(r(527,f1,"19.2.0"));le.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(n),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var X2={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xo.isDisabled&&Xo.supportsFiber)try{dn=Xo.inject(X2),mt=Xo}catch{}}return ns.createRoot=function(e,n){if(!o(e))throw Error(r(299));var a=!1,s="",u=bm,c=ym,m=_m;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError)),n=q0(e,1,!1,null,null,a,s,null,u,c,m,c1),e[pn]=n.current,Wf(e),new md(n)},ns.hydrateRoot=function(e,n,a){if(!o(e))throw Error(r(299));var s=!1,u="",c=bm,m=ym,E=_m,R=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),n=q0(e,1,!0,n,a??null,s,u,R,c,m,E,c1),n.context=e1(null),a=n.current,s=ra(),s=zt(s),u=wl(s),u.callback=null,Tl(a,u,s),a=s,n.current.lanes=a,jn(n,a),Ha(n),e[pn]=n.current,Wf(e),new Vo(n)},ns.version="19.2.0",ns}var S1;function q2(){if(S1)return bd.exports;S1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),bd.exports=$2(),bd.exports}var eS=q2(),Z=Zu();const Iv=G2(Z);var wd={exports:{}},Td={};var E1;function tS(){if(E1)return Td;E1=1;var t=Zu();function l(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var i=typeof Object.is=="function"?Object.is:l,r=t.useSyncExternalStore,o=t.useRef,f=t.useEffect,d=t.useMemo,g=t.useDebugValue;return Td.useSyncExternalStoreWithSelector=function(h,p,b,S,v){var _=o(null);if(_.current===null){var T={hasValue:!1,value:null};_.current=T}else T=_.current;_=d(function(){function A(B){if(!O){if(O=!0,C=B,B=S(B),v!==void 0&&T.hasValue){var I=T.value;if(v(I,B))return N=I}return N=B}if(I=N,i(C,B))return I;var L=S(B);return v!==void 0&&v(I,L)?(C=B,I):(C=B,N=L)}var O=!1,C,N,k=b===void 0?null:b;return[function(){return A(p())},k===null?void 0:function(){return A(k())}]},[p,b,S,v]);var w=r(h,_[0],_[1]);return f(function(){T.hasValue=!0,T.value=w},[w]),g(w),w},Td}var w1;function nS(){return w1||(w1=1,wd.exports=tS()),wd.exports}var aS=nS(),lS=Z.version.startsWith("19"),iS=Symbol.for(lS?"react.transitional.element":"react.element"),rS=Symbol.for("react.portal"),sS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),uS=Symbol.for("react.profiler"),cS=Symbol.for("react.consumer"),fS=Symbol.for("react.context"),Vv=Symbol.for("react.forward_ref"),dS=Symbol.for("react.suspense"),hS=Symbol.for("react.suspense_list"),Nh=Symbol.for("react.memo"),pS=Symbol.for("react.lazy"),gS=Vv,mS=Nh;function vS(t){if(typeof t=="object"&&t!==null){const{$$typeof:l}=t;switch(l){case iS:switch(t=t.type,t){case sS:case uS:case oS:case dS:case hS:return t;default:switch(t=t&&t.$$typeof,t){case fS:case Vv:case pS:case Nh:return t;case cS:return t;default:return l}}case rS:return l}}}function bS(t){return vS(t)===Nh}function yS(t,l,i,r,{areStatesEqual:o,areOwnPropsEqual:f,areStatePropsEqual:d}){let g=!1,h,p,b,S,v;function _(C,N){return h=C,p=N,b=t(h,p),S=l(r,p),v=i(b,S,p),g=!0,v}function T(){return b=t(h,p),l.dependsOnOwnProps&&(S=l(r,p)),v=i(b,S,p),v}function w(){return t.dependsOnOwnProps&&(b=t(h,p)),l.dependsOnOwnProps&&(S=l(r,p)),v=i(b,S,p),v}function A(){const C=t(h,p),N=!d(C,b);return b=C,N&&(v=i(b,S,p)),v}function O(C,N){const k=!f(N,p),B=!o(C,h,N,p);return h=C,p=N,k&&B?T():k?w():B?A():v}return function(N,k){return g?O(N,k):_(N,k)}}function _S(t,{initMapStateToProps:l,initMapDispatchToProps:i,initMergeProps:r,...o}){const f=l(t,o),d=i(t,o),g=r(t,o);return yS(f,d,g,t,o)}function SS(t,l){const i={};for(const r in t){const o=t[r];typeof o=="function"&&(i[r]=(...f)=>l(o(...f)))}return i}function Jd(t){return function(i){const r=t(i);function o(){return r}return o.dependsOnOwnProps=!1,o}}function T1(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function Xv(t,l){return function(r,{displayName:o}){const f=function(g,h){return f.dependsOnOwnProps?f.mapToProps(g,h):f.mapToProps(g,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(g,h){f.mapToProps=t,f.dependsOnOwnProps=T1(t);let p=f(g,h);return typeof p=="function"&&(f.mapToProps=p,f.dependsOnOwnProps=T1(p),p=f(g,h)),p},f}}function Mh(t,l){return(i,r)=>{throw new Error(`Invalid value of type ${typeof t} for ${l} argument when connecting component ${r.wrappedComponentName}.`)}}function ES(t){return t&&typeof t=="object"?Jd(l=>SS(t,l)):t?typeof t=="function"?Xv(t):Mh(t,"mapDispatchToProps"):Jd(l=>({dispatch:l}))}function wS(t){return t?typeof t=="function"?Xv(t):Mh(t,"mapStateToProps"):Jd(()=>({}))}function TS(t,l,i){return{...i,...t,...l}}function AS(t){return function(i,{displayName:r,areMergedPropsEqual:o}){let f=!1,d;return function(h,p,b){const S=t(h,p,b);return f?o(S,d)||(d=S):(f=!0,d=S),d}}}function CS(t){return t?typeof t=="function"?AS(t):Mh(t,"mergeProps"):()=>TS}function xS(t){t()}function OS(){let t=null,l=null;return{clear(){t=null,l=null},notify(){xS(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let r=t;for(;r;)i.push(r),r=r.next;return i},subscribe(i){let r=!0;const o=l={callback:i,next:null,prev:l};return o.prev?o.prev.next=o:t=o,function(){!r||t===null||(r=!1,o.next?o.next.prev=o.prev:l=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var A1={notify(){},get:()=>[]};function Qv(t,l){let i,r=A1,o=0,f=!1;function d(w){b();const A=r.subscribe(w);let O=!1;return()=>{O||(O=!0,A(),S())}}function g(){r.notify()}function h(){T.onStateChange&&T.onStateChange()}function p(){return f}function b(){o++,i||(i=l?l.addNestedSub(h):t.subscribe(h),r=OS())}function S(){o--,i&&o===0&&(i(),i=void 0,r.clear(),r=A1)}function v(){f||(f=!0,b())}function _(){f&&(f=!1,S())}const T={addNestedSub:d,notifyNestedSubs:g,handleChangeWrapper:h,isSubscribed:p,trySubscribe:v,tryUnsubscribe:_,getListeners:()=>r};return T}var DS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RS=DS(),NS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",MS=NS(),kS=()=>RS||MS?Z.useLayoutEffect:Z.useEffect,pu=kS();function C1(t,l){return t===l?t!==0||l!==0||1/t===1/l:t!==t&&l!==l}function Ad(t,l){if(C1(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;const i=Object.keys(t),r=Object.keys(l);if(i.length!==r.length)return!1;for(let o=0;o<i.length;o++)if(!Object.prototype.hasOwnProperty.call(l,i[o])||!C1(t[i[o]],l[i[o]]))return!1;return!0}var LS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},BS={[gS]:jS,[mS]:Gv};function x1(t){return bS(t)?Gv:BS[t.$$typeof]||LS}var US=Object.defineProperty,HS=Object.getOwnPropertyNames,O1=Object.getOwnPropertySymbols,IS=Object.getOwnPropertyDescriptor,VS=Object.getPrototypeOf,D1=Object.prototype;function Pd(t,l){if(typeof l!="string"){if(D1){const f=VS(l);f&&f!==D1&&Pd(t,f)}let i=HS(l);O1&&(i=i.concat(O1(l)));const r=x1(t),o=x1(l);for(let f=0;f<i.length;++f){const d=i[f];if(!zS[d]&&!(o&&o[d])&&!(r&&r[d])){const g=IS(l,d);try{US(t,d,g)}catch{}}}}return t}var XS=Symbol.for("react-redux-context"),QS=typeof globalThis<"u"?globalThis:{};function GS(){if(!Z.createContext)return{};const t=QS[XS]??=new Map;let l=t.get(Z.createContext);return l||(l=Z.createContext(null),t.set(Z.createContext,l)),l}var fl=GS(),ZS=[null,null];function FS(t,l,i){pu(()=>t(...l),i)}function YS(t,l,i,r,o,f){t.current=r,i.current=!1,o.current&&(o.current=null,f())}function KS(t,l,i,r,o,f,d,g,h,p,b){if(!t)return()=>{};let S=!1,v=null;const _=()=>{if(S||!g.current)return;const w=l.getState();let A,O;try{A=r(w,o.current)}catch(C){O=C,v=C}O||(v=null),A===f.current?d.current||p():(f.current=A,h.current=A,d.current=!0,b())};return i.onStateChange=_,i.trySubscribe(),_(),()=>{if(S=!0,i.tryUnsubscribe(),i.onStateChange=null,v)throw v}}function JS(t,l){return t===l}function PS(t,l,i,{pure:r,areStatesEqual:o=JS,areOwnPropsEqual:f=Ad,areStatePropsEqual:d=Ad,areMergedPropsEqual:g=Ad,forwardRef:h=!1,context:p=fl}={}){const b=p,S=wS(t),v=ES(l),_=CS(i),T=!!t;return A=>{const O=A.displayName||A.name||"Component",C=`Connect(${O})`,N={shouldHandleStateChanges:T,displayName:C,wrappedComponentName:O,WrappedComponent:A,initMapStateToProps:S,initMapDispatchToProps:v,initMergeProps:_,areStatesEqual:o,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:g};function k(L){const[J,G,q]=Z.useMemo(()=>{const{reactReduxForwardedRef:Ae,...gt}=L;return[L.context,Ae,gt]},[L]),Y=Z.useMemo(()=>{let Ae=b;return J?.Consumer,Ae},[J,b]),P=Z.useContext(Y),fe=!!L.store&&!!L.store.getState&&!!L.store.dispatch,he=!!P&&!!P.store,de=fe?L.store:P.store,j=he?P.getServerState:de.getState,le=Z.useMemo(()=>_S(de.dispatch,N),[de]),[Q,be]=Z.useMemo(()=>{if(!T)return ZS;const Ae=Qv(de,fe?void 0:P.subscription),gt=Ae.notifyNestedSubs.bind(Ae);return[Ae,gt]},[de,fe,P]),ge=Z.useMemo(()=>fe?P:{...P,subscription:Q},[fe,P,Q]),x=Z.useRef(void 0),K=Z.useRef(q),ee=Z.useRef(void 0),oe=Z.useRef(!1),ne=Z.useRef(!1),ce=Z.useRef(void 0);pu(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const me=Z.useMemo(()=>()=>ee.current&&q===K.current?ee.current:le(de.getState(),q),[de,q]),Se=Z.useMemo(()=>gt=>Q?KS(T,de,Q,le,K,x,oe,ne,ee,be,gt):()=>{},[Q]);FS(YS,[K,x,oe,q,ee,be]);let we;try{we=Z.useSyncExternalStore(Se,me,j?()=>le(j(),q):me)}catch(Ae){throw ce.current&&(Ae.message+=`
|
|
10
10
|
The error may be correlated with this previous error:
|
|
11
11
|
${ce.current.stack}
|
|
12
12
|
|
|
13
|
-
`),Ae}pu(()=>{ce.current=void 0,ee.current=void 0,x.current=we});const Be=Z.useMemo(()=>Z.createElement(A,{...we,ref:G}),[G,A,we]);return Z.useMemo(()=>w?Z.createElement(Y.Provider,{value:ge},Be):Be,[Y,Be,ge])}const I=Z.memo(k);if(I.WrappedComponent=A,I.displayName=k.displayName=C,h){const J=Z.forwardRef(function(q,Y){return Z.createElement(I,{...q,reactReduxForwardedRef:Y})});return J.displayName=C,J.WrappedComponent=A,Pd(J,A)}return Pd(I,A)}}var $S=WS;function qS(t){const{children:l,context:i,serverState:r,store:o}=t,f=Z.useMemo(()=>{const h=Gv(o);return{store:o,subscription:h,getServerState:r?()=>r:void 0}},[o,r]),d=Z.useMemo(()=>o.getState(),[o]);pu(()=>{const{subscription:h}=f;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[f,d]);const g=i||fl;return Z.createElement(g.Provider,{value:f},l)}var eE=qS;function kh(t=fl){return function(){return Z.useContext(t)}}var Fv=kh();function Yv(t=fl){const l=t===fl?Fv:kh(t),i=()=>{const{store:r}=l();return r};return Object.assign(i,{withTypes:()=>i}),i}var tE=Yv();function nE(t=fl){const l=t===fl?tE:Yv(t),i=()=>l().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var aE=nE(),lE=(t,l)=>t===l;function iE(t=fl){const l=t===fl?Fv:kh(t),i=(r,o={})=>{const{equalityFn:f=lE}=typeof o=="function"?{equalityFn:o}:o,d=l(),{store:g,subscription:h,getServerState:p}=d;Z.useRef(!0);const b=Z.useCallback({[r.name](v){return r(v)}}[r.name],[r]),S=lS.useSyncExternalStoreWithSelector(h.addNestedSub,g.getState,p||g.getState,b,f);return Z.useDebugValue(S),S};return Object.assign(i,{withTypes:()=>i}),i}var rE=iE();function Kv(t){var l,i,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(i=Kv(t[l]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function se(){for(var t,l,i=0,r="",o=arguments.length;i<o;i++)(t=arguments[i])&&(l=Kv(t))&&(r&&(r+=" "),r+=l);return r}const sE="_app_1rj0t_1",oE={app:sE},Jv="core.typing.on",Pv="core.typing.off",Lh="core.message.from.guest",Wv="core.message.without.analysis.from.guest",$v="core.message.to.guest",uE="core.nlu.request.event",qv="core.event.to.guest",cE="core.chat.restart.request",fE="core.transcript.mail.request",eb="core.transcript.item.guest.reaction",zh="core.conversation.rating.from.guest",dE="core.drawer.open",hE="core.drawer.close",pE="core.guest.locale.changed";var gu;(function(t){t.WEB_URL="web_url",t.POSTBACK="postback"})(gu||(gu={}));var R1;(function(t){t.GOOD="GOOD",t.BAD="BAD"})(R1||(R1={}));let gE=class{type;sender;sources;quickReplies;constructor(l,i,r=[],o=[]){this.type=l,this.sender=i,this.sources=r,this.quickReplies=o}addQuickReply(l,i){this.quickReplies.push({label:l,payload:i})}},Fu=class extends gE{text;constructor(l,i,r=[],o=[]){super(ar.TEXT,i,r,o),this.text=l}};var ar;(function(t){t.TEXT="TEXT",t.DETAIL="DETAIL",t.MARKDOWN="MARKDOWN",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.FILE="FILE",t.AUDIO="AUDIO"})(ar||(ar={}));class tb{type;id;name;avatar;constructor(l,i,r,o){this.type=l,this.id=i,this.name=r,this.avatar=o}}class mE extends tb{constructor(){super(dl.BOT,null,"Chatbot","bot.svg")}}class jh extends tb{constructor(){super(dl.GUEST,null,"Guest","visitor.svg")}}var dl;(function(t){t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON"})(dl||(dl={}));const vE=t=>{const l=new Fu(t,new jh);return{type:Lh,message:l}},bE=(t,l={})=>{const i=new Fu(t,new jh);return{type:Wv,message:i,payload:l}},yE=t=>({type:uE,event:t}),_E=(t,l,i=null,r=null)=>({type:eb,payload:{actionId:t,reaction:l,category:i,comment:r}}),nb=t=>l=>(t.payload.type!==Lh&&l(bE(t.label,t.payload)),l(t.payload)),ab=t=>(l,i)=>{const{quickReplies:r}=i().chat,o=r.find(f=>t.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return l(o?nb({...o,label:t}):JSON.parse(JSON.stringify(vE(t))))},Bh="MESSAGE_TO_PARENT_PAGE",Uh="RESTORE_PREVIOUS_CHAT_MESSAGES",Hh="AUDIO_MESSAGE_FROM_USER",Ih="RECEIVE_SPEECH_TRANSCRIPTION",Vh="ENABLE_CONVERSATION_RATING",lb="LOAD_SOURCE_INFOS_RESPONSE",Xh="LOAD_SOURCE_INFOS_ERROR",Qh="LOAD_SOURCE_INFOS_REQUEST",Gh="CLOSE_SOURCE_INFOS",SE="webclient.get.started",ib="webclient.window.expand",rb="webclient.window.close",sb="webclient.transcript.pdf.download",EE=[Bh,Uh,Hh,Ih,Vh,Qh,Gh],wE=t=>({type:Hh,buffer:t}),TE=t=>({type:Ih,transcription:t}),AE=t=>({type:fE,payload:{parameters:{mailTo:t}}}),CE=()=>({type:sb}),xE=({rating:t})=>({type:Vh,payload:{rating:t}}),OE=(t,l)=>({type:zh,payload:{value:t,feedback:l}}),ob=t=>yE(t),DE=t=>({type:Uh,messages:t}),RE=t=>{switch(t.type){case gu.WEB_URL:return cb(t.url);case gu.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},ub=t=>cb(t),cb=t=>({type:Bh,message:{type:"webclient.change.url",url:t}});function Go(t){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var r in i)t[r]=i[r]}return t}var NE={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Wd(t,l){function i(o,f,d){if(!(typeof document>"u")){d=Go({},l,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var g="";for(var h in d)d[h]&&(g+="; "+h,d[h]!==!0&&(g+="="+d[h].split(";")[0]));return document.cookie=o+"="+t.write(f,o)+g}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var f=document.cookie?document.cookie.split("; "):[],d={},g=0;g<f.length;g++){var h=f[g].split("="),p=h.slice(1).join("=");try{var b=decodeURIComponent(h[0]);if(d[b]=t.read(p,b),o===b)break}catch{}}return o?d[o]:d}}return Object.create({set:i,get:r,remove:function(o,f){i(o,"",Go({},f,{expires:-1}))},withAttributes:function(o){return Wd(this.converter,Go({},this.attributes,o))},withConverter:function(o){return Wd(Go({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(t)}})}var Zo=Wd(NE,{path:"/"});const Cn=[];for(let t=0;t<256;++t)Cn.push((t+256).toString(16).slice(1));function ME(t,l=0){return(Cn[t[l+0]]+Cn[t[l+1]]+Cn[t[l+2]]+Cn[t[l+3]]+"-"+Cn[t[l+4]]+Cn[t[l+5]]+"-"+Cn[t[l+6]]+Cn[t[l+7]]+"-"+Cn[t[l+8]]+Cn[t[l+9]]+"-"+Cn[t[l+10]]+Cn[t[l+11]]+Cn[t[l+12]]+Cn[t[l+13]]+Cn[t[l+14]]+Cn[t[l+15]]).toLowerCase()}let Cd;const kE=new Uint8Array(16);function LE(){if(!Cd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Cd=crypto.getRandomValues.bind(crypto)}return Cd(kE)}const zE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),N1={randomUUID:zE};function jE(t,l,i){t=t||{};const r=t.random??t.rng?.()??LE();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ME(r)}function mu(t,l,i){return N1.randomUUID&&!t?N1.randomUUID():jE(t)}const Zh=()=>BE(window.location.pathname),BE=t=>{const l=t.split("/"),i=t.endsWith("/");return l[l.length-(i?2:1)]};function xn(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var UE=typeof Symbol=="function"&&Symbol.observable||"@@observable",M1=UE,xd=()=>Math.random().toString(36).substring(7).split("").join("."),HE={INIT:`@@redux/INIT${xd()}`,REPLACE:`@@redux/REPLACE${xd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${xd()}`},vu=HE;function Fh(t){if(typeof t!="object"||t===null)return!1;let l=t;for(;Object.getPrototypeOf(l)!==null;)l=Object.getPrototypeOf(l);return Object.getPrototypeOf(t)===l||Object.getPrototypeOf(t)===null}function fb(t,l,i){if(typeof t!="function")throw new Error(xn(2));if(typeof l=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(xn(0));if(typeof l=="function"&&typeof i>"u"&&(i=l,l=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(xn(1));return i(fb)(t,l)}let r=t,o=l,f=new Map,d=f,g=0,h=!1;function p(){d===f&&(d=new Map,f.forEach((A,O)=>{d.set(O,A)}))}function b(){if(h)throw new Error(xn(3));return o}function S(A){if(typeof A!="function")throw new Error(xn(4));if(h)throw new Error(xn(5));let O=!0;p();const C=g++;return d.set(C,A),function(){if(O){if(h)throw new Error(xn(6));O=!1,p(),d.delete(C),f=null}}}function v(A){if(!Fh(A))throw new Error(xn(7));if(typeof A.type>"u")throw new Error(xn(8));if(typeof A.type!="string")throw new Error(xn(17));if(h)throw new Error(xn(9));try{h=!0,o=r(o,A)}finally{h=!1}return(f=d).forEach(C=>{C()}),A}function _(A){if(typeof A!="function")throw new Error(xn(10));r=A,v({type:vu.REPLACE})}function w(){const A=S;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(xn(11));function C(){const k=O;k.next&&k.next(b())}return C(),{unsubscribe:A(C)}},[M1](){return this}}}return v({type:vu.INIT}),{dispatch:v,subscribe:S,getState:b,replaceReducer:_,[M1]:w}}function IE(t){Object.keys(t).forEach(l=>{const i=t[l];if(typeof i(void 0,{type:vu.INIT})>"u")throw new Error(xn(12));if(typeof i(void 0,{type:vu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xn(13))})}function db(t){const l=Object.keys(t),i={};for(let f=0;f<l.length;f++){const d=l[f];typeof t[d]=="function"&&(i[d]=t[d])}const r=Object.keys(i);let o;try{IE(i)}catch(f){o=f}return function(d={},g){if(o)throw o;let h=!1;const p={};for(let b=0;b<r.length;b++){const S=r[b],v=i[S],_=d[S],w=v(_,g);if(typeof w>"u")throw g&&g.type,new Error(xn(14));p[S]=w,h=h||w!==_}return h=h||r.length!==Object.keys(d).length,h?p:d}}function bu(...t){return t.length===0?l=>l:t.length===1?t[0]:t.reduce((l,i)=>(...r)=>l(i(...r)))}function VE(...t){return l=>(i,r)=>{const o=l(i,r);let f=()=>{throw new Error(xn(15))};const d={getState:o.getState,dispatch:(h,...p)=>f(h,...p)},g=t.map(h=>h(d));return f=bu(...g)(o.dispatch),{...o,dispatch:f}}}function XE(t){return Fh(t)&&"type"in t&&typeof t.type=="string"}var hb=Symbol.for("immer-nothing"),k1=Symbol.for("immer-draftable"),Xn=Symbol.for("immer-state");function Ra(t,...l){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var oa=Object,ir=oa.getPrototypeOf,yu="constructor",Yu="prototype",$d="configurable",_u="enumerable",au="writable",ys="value",hl=t=>!!t&&!!t[Xn];function Na(t){return t?pb(t)||Ku(t)||!!t[k1]||!!t[yu]?.[k1]||Ju(t)||Pu(t):!1}var QE=oa[Yu][yu].toString(),L1=new WeakMap;function pb(t){if(!t||!Yh(t))return!1;const l=ir(t);if(l===null||l===oa[Yu])return!0;const i=oa.hasOwnProperty.call(l,yu)&&l[yu];if(i===Object)return!0;if(!er(i))return!1;let r=L1.get(i);return r===void 0&&(r=Function.toString.call(i),L1.set(i,r)),r===QE}function xs(t,l,i=!0){Os(t)===0?(i?Reflect.ownKeys(t):oa.keys(t)).forEach(o=>{l(o,t[o],t)}):t.forEach((r,o)=>l(o,r,t))}function Os(t){const l=t[Xn];return l?l.type_:Ku(t)?1:Ju(t)?2:Pu(t)?3:0}var z1=(t,l,i=Os(t))=>i===2?t.has(l):oa[Yu].hasOwnProperty.call(t,l),qd=(t,l,i=Os(t))=>i===2?t.get(l):t[l],Su=(t,l,i,r=Os(t))=>{r===2?t.set(l,i):r===3?t.add(i):t[l]=i};function GE(t,l){return t===l?t!==0||1/t===1/l:t!==t&&l!==l}var Ku=Array.isArray,Ju=t=>t instanceof Map,Pu=t=>t instanceof Set,Yh=t=>typeof t=="object",er=t=>typeof t=="function",Od=t=>typeof t=="boolean",sl=t=>t.copy_||t.base_,Kh=t=>t.modified_?t.copy_:t.base_;function eh(t,l){if(Ju(t))return new Map(t);if(Pu(t))return new Set(t);if(Ku(t))return Array[Yu].slice.call(t);const i=pb(t);if(l===!0||l==="class_only"&&!i){const r=oa.getOwnPropertyDescriptors(t);delete r[Xn];let o=Reflect.ownKeys(r);for(let f=0;f<o.length;f++){const d=o[f],g=r[d];g[au]===!1&&(g[au]=!0,g[$d]=!0),(g.get||g.set)&&(r[d]={[$d]:!0,[au]:!0,[_u]:g[_u],[ys]:t[d]})}return oa.create(ir(t),r)}else{const r=ir(t);if(r!==null&&i)return{...t};const o=oa.create(r);return oa.assign(o,t)}}function Jh(t,l=!1){return Wu(t)||hl(t)||!Na(t)||(Os(t)>1&&oa.defineProperties(t,{set:Fo,add:Fo,clear:Fo,delete:Fo}),oa.freeze(t),l&&xs(t,(i,r)=>{Jh(r,!0)},!1)),t}function ZE(){Ra(2)}var Fo={[ys]:ZE};function Wu(t){return t===null||!Yh(t)?!0:oa.isFrozen(t)}var Eu="MapSet",th="Patches",gb={};function rr(t){const l=gb[t];return l||Ra(0,t),l}var FE=t=>!!gb[t],_s,mb=()=>_s,YE=(t,l)=>({drafts_:[],parent_:t,immer_:l,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:FE(Eu)?rr(Eu):void 0});function j1(t,l){l&&(t.patchPlugin_=rr(th),t.patches_=[],t.inversePatches_=[],t.patchListener_=l)}function nh(t){ah(t),t.drafts_.forEach(KE),t.drafts_=null}function ah(t){t===_s&&(_s=t.parent_)}var B1=t=>_s=YE(_s,t);function KE(t){const l=t[Xn];l.type_===0||l.type_===1?l.revoke_():l.revoked_=!0}function U1(t,l){l.unfinalizedDrafts_=l.drafts_.length;const i=l.drafts_[0];if(t!==void 0&&t!==i){i[Xn].modified_&&(nh(l),Ra(4)),Na(t)&&(t=H1(l,t));const{patchPlugin_:o}=l;o&&o.generateReplacementPatches_(i[Xn].base_,t,l)}else t=H1(l,i);return JE(l,t,!0),nh(l),l.patches_&&l.patchListener_(l.patches_,l.inversePatches_),t!==hb?t:void 0}function H1(t,l){if(Wu(l))return l;const i=l[Xn];if(!i)return Ph(l,t.handledSet_,t);if(!$u(i,t))return l;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);yb(i,t)}return i.copy_}function JE(t,l,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Jh(l,i)}function vb(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var $u=(t,l)=>t.scope_===l,PE=[];function bb(t,l,i,r){const o=sl(t),f=t.type_;if(r!==void 0&&qd(o,r,f)===l){Su(o,r,i,f);return}if(!t.draftLocations_){const g=t.draftLocations_=new Map;xs(o,(h,p)=>{if(hl(p)){const b=g.get(p)||[];b.push(h),g.set(p,b)}})}const d=t.draftLocations_.get(l)??PE;for(const g of d)Su(o,g,i,f)}function WE(t,l,i){t.callbacks_.push(function(o){const f=l;if(!f||!$u(f,o))return;o.mapSetPlugin_?.fixSetContents(f);const d=Kh(f);bb(t,f.draft_??f,d,i),yb(f,o)})}function yb(t,l){if(t.modified_&&!t.finalized_&&(t.type_===3||(t.assigned_?.size??0)>0)){const{patchPlugin_:r}=l;if(r){const o=r.getPath(t);o&&r.generatePatches_(t,o,l)}vb(t)}}function $E(t,l,i){const{scope_:r}=t;if(hl(i)){const o=i[Xn];$u(o,r)&&o.callbacks_.push(function(){lu(t);const d=Kh(o);bb(t,i,d,l)})}else Na(i)&&t.callbacks_.push(function(){const f=sl(t);qd(f,l,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(l)??!1)===!0&&t.copy_&&Ph(qd(t.copy_,l,t.type_),r.handledSet_,r)})}function Ph(t,l,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||hl(t)||l.has(t)||!Na(t)||Wu(t)||(l.add(t),xs(t,(r,o)=>{if(hl(o)){const f=o[Xn];if($u(f,i)){const d=Kh(f);Su(t,r,d,t.type_),vb(f)}}else Na(o)&&Ph(o,l,i)})),t}function qE(t,l){const i=Ku(t),r={type_:i?1:0,scope_:l?l.scope_:mb(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:l,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,f=Wh;i&&(o=[r],f=Ss);const{revoke:d,proxy:g}=Proxy.revocable(o,f);return r.draft_=g,r.revoke_=d,[g,r]}var Wh={get(t,l){if(l===Xn)return t;const i=sl(t);if(!z1(i,l,t.type_))return e3(t,i,l);const r=i[l];if(t.finalized_||!Na(r))return r;if(r===Dd(t.base_,l)){lu(t);const o=t.type_===1?+l:l,f=ih(t.scope_,r,t,o);return t.copy_[o]=f}return r},has(t,l){return l in sl(t)},ownKeys(t){return Reflect.ownKeys(sl(t))},set(t,l,i){const r=_b(sl(t),l);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){const o=Dd(sl(t),l),f=o?.[Xn];if(f&&f.base_===i)return t.copy_[l]=i,t.assigned_.set(l,!1),!0;if(GE(i,o)&&(i!==void 0||z1(t.base_,l,t.type_)))return!0;lu(t),lh(t)}return t.copy_[l]===i&&(i!==void 0||l in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[l])||(t.copy_[l]=i,t.assigned_.set(l,!0),$E(t,l,i)),!0},deleteProperty(t,l){return lu(t),Dd(t.base_,l)!==void 0||l in t.base_?(t.assigned_.set(l,!1),lh(t)):t.assigned_.delete(l),t.copy_&&delete t.copy_[l],!0},getOwnPropertyDescriptor(t,l){const i=sl(t),r=Reflect.getOwnPropertyDescriptor(i,l);return r&&{[au]:!0,[$d]:t.type_!==1||l!=="length",[_u]:r[_u],[ys]:i[l]}},defineProperty(){Ra(11)},getPrototypeOf(t){return ir(t.base_)},setPrototypeOf(){Ra(12)}},Ss={};xs(Wh,(t,l)=>{Ss[t]=function(){const i=arguments;return i[0]=i[0][0],l.apply(this,i)}});Ss.deleteProperty=function(t,l){return Ss.set.call(this,t,l,void 0)};Ss.set=function(t,l,i){return Wh.set.call(this,t[0],l,i,t[0])};function Dd(t,l){const i=t[Xn];return(i?sl(i):t)[l]}function e3(t,l,i){const r=_b(l,i);return r?ys in r?r[ys]:r.get?.call(t.draft_):void 0}function _b(t,l){if(!(l in t))return;let i=ir(t);for(;i;){const r=Object.getOwnPropertyDescriptor(i,l);if(r)return r;i=ir(i)}}function lh(t){t.modified_||(t.modified_=!0,t.parent_&&lh(t.parent_))}function lu(t){t.copy_||(t.assigned_=new Map,t.copy_=eh(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var t3=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(l,i,r)=>{if(er(l)&&!er(i)){const f=i;i=l;const d=this;return function(h=f,...p){return d.produce(h,b=>i.call(this,b,...p))}}er(i)||Ra(6),r!==void 0&&!er(r)&&Ra(7);let o;if(Na(l)){const f=B1(this),d=ih(f,l,void 0);let g=!0;try{o=i(d),g=!1}finally{g?nh(f):ah(f)}return j1(f,r),U1(o,f)}else if(!l||!Yh(l)){if(o=i(l),o===void 0&&(o=l),o===hb&&(o=void 0),this.autoFreeze_&&Jh(o,!0),r){const f=[],d=[];rr(th).generateReplacementPatches_(l,o,{patches_:f,inversePatches_:d}),r(f,d)}return o}else Ra(1,l)},this.produceWithPatches=(l,i)=>{if(er(l))return(d,...g)=>this.produceWithPatches(d,h=>l(h,...g));let r,o;return[this.produce(l,i,(d,g)=>{r=d,o=g}),r,o]},Od(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Od(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Od(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Na(t)||Ra(8),hl(t)&&(t=n3(t));const l=B1(this),i=ih(l,t,void 0);return i[Xn].isManual_=!0,ah(l),i}finishDraft(t,l){const i=t&&t[Xn];(!i||!i.isManual_)&&Ra(9);const{scope_:r}=i;return j1(r,l),U1(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,l){let i;for(i=l.length-1;i>=0;i--){const o=l[i];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}i>-1&&(l=l.slice(i+1));const r=rr(th).applyPatches_;return hl(t)?r(t,l):this.produce(t,o=>r(o,l))}};function ih(t,l,i,r){const[o,f]=Ju(l)?rr(Eu).proxyMap_(l,i):Pu(l)?rr(Eu).proxySet_(l,i):qE(l,i);return(i?.scope_??mb()).drafts_.push(o),f.callbacks_=i?.callbacks_??[],f.key_=r,i&&r!==void 0?WE(i,f,r):f.callbacks_.push(function(h){h.mapSetPlugin_?.fixSetContents(f);const{patchPlugin_:p}=h;f.modified_&&p&&p.generatePatches_(f,[],h)}),o}function n3(t){return hl(t)||Ra(10,t),Sb(t)}function Sb(t){if(!Na(t)||Wu(t))return t;const l=t[Xn];let i,r=!0;if(l){if(!l.modified_)return l.base_;l.finalized_=!0,i=eh(t,l.scope_.immer_.useStrictShallowCopy_),r=l.scope_.immer_.shouldUseStrictIteration()}else i=eh(t,!0);return xs(i,(o,f)=>{Su(i,o,Sb(f))},r),l&&(l.finalized_=!1),i}var a3=new t3,Eb=a3.produce;function wb(t){return({dispatch:i,getState:r})=>o=>f=>typeof f=="function"?f(i,r,t):o(f)}var l3=wb(),i3=wb,r3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bu:bu.apply(null,arguments)};function I1(t,l){function i(...r){if(l){let o=l(...r);if(!o)throw new Error(ol(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>XE(r)&&r.type===t,i}var Tb=class ds extends Array{constructor(...l){super(...l),Object.setPrototypeOf(this,ds.prototype)}static get[Symbol.species](){return ds}concat(...l){return super.concat.apply(this,l)}prepend(...l){return l.length===1&&Array.isArray(l[0])?new ds(...l[0].concat(this)):new ds(...l.concat(this))}};function V1(t){return Na(t)?Eb(t,()=>{}):t}function Yo(t,l,i){return t.has(l)?t.get(l):t.set(l,i(l)).get(l)}function s3(t){return typeof t=="boolean"}var o3=()=>function(l){const{thunk:i=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:f=!0}=l??{};let d=new Tb;return i&&(s3(i)?d.push(l3):d.push(i3(i.extraArgument))),d},u3="RTK_autoBatch",X1=t=>l=>{setTimeout(l,t)},c3=(t={type:"raf"})=>l=>(...i)=>{const r=l(...i);let o=!0,f=!1,d=!1;const g=new Set,h=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:X1(10):t.type==="callback"?t.queueNotification:X1(t.timeout),p=()=>{d=!1,f&&(f=!1,g.forEach(b=>b()))};return Object.assign({},r,{subscribe(b){const S=()=>o&&b(),v=r.subscribe(S);return g.add(b),()=>{v(),g.delete(b)}},dispatch(b){try{return o=!b?.meta?.[u3],f=!o,f&&(d||(d=!0,h(p))),r.dispatch(b)}finally{o=!0}}})},f3=t=>function(i){const{autoBatch:r=!0}=i??{};let o=new Tb(t);return r&&o.push(c3(typeof r=="object"?r:void 0)),o};function d3(t){const l=o3(),{reducer:i=void 0,middleware:r,devTools:o=!0,preloadedState:f=void 0,enhancers:d=void 0}=t||{};let g;if(typeof i=="function")g=i;else if(Fh(i))g=db(i);else throw new Error(ol(1));let h;typeof r=="function"?h=r(l):h=l();let p=bu;o&&(p=r3({trace:!1,...typeof o=="object"&&o}));const b=VE(...h),S=f3(b);let v=typeof d=="function"?d(S):S();const _=p(...v);return fb(g,f,_)}function Ab(t){const l={},i=[];let r;const o={addCase(f,d){const g=typeof f=="string"?f:f.type;if(!g)throw new Error(ol(28));if(g in l)throw new Error(ol(29));return l[g]=d,o},addAsyncThunk(f,d){return d.pending&&(l[f.pending.type]=d.pending),d.rejected&&(l[f.rejected.type]=d.rejected),d.fulfilled&&(l[f.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:f.settled,reducer:d.settled}),o},addMatcher(f,d){return i.push({matcher:f,reducer:d}),o},addDefaultCase(f){return r=f,o}};return t(o),[l,i,r]}function h3(t){return typeof t=="function"}function p3(t,l){let[i,r,o]=Ab(l),f;if(h3(t))f=()=>V1(t());else{const g=V1(t);f=()=>g}function d(g=f(),h){let p=[i[h.type],...r.filter(({matcher:b})=>b(h)).map(({reducer:b})=>b)];return p.filter(b=>!!b).length===0&&(p=[o]),p.reduce((b,S)=>{if(S)if(hl(b)){const _=S(b,h);return _===void 0?b:_}else{if(Na(b))return Eb(b,v=>S(v,h));{const v=S(b,h);if(v===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return b},g)}return d.getInitialState=f,d}var g3=Symbol.for("rtk-slice-createasyncthunk");function m3(t,l){return`${t}/${l}`}function v3({creators:t}={}){const l=t?.asyncThunk?.[g3];return function(r){const{name:o,reducerPath:f=o}=r;if(!o)throw new Error(ol(11));const d=(typeof r.reducers=="function"?r.reducers(y3()):r.reducers)||{},g=Object.keys(d),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(N,k){const B=typeof N=="string"?N:N.type;if(!B)throw new Error(ol(12));if(B in h.sliceCaseReducersByType)throw new Error(ol(13));return h.sliceCaseReducersByType[B]=k,p},addMatcher(N,k){return h.sliceMatchers.push({matcher:N,reducer:k}),p},exposeAction(N,k){return h.actionCreators[N]=k,p},exposeCaseReducer(N,k){return h.sliceCaseReducersByName[N]=k,p}};g.forEach(N=>{const k=d[N],B={reducerName:N,type:m3(o,N),createNotation:typeof r.reducers=="function"};S3(k)?w3(B,k,p,l):_3(B,k,p)});function b(){const[N={},k=[],B=void 0]=typeof r.extraReducers=="function"?Ab(r.extraReducers):[r.extraReducers],I={...N,...h.sliceCaseReducersByType};return p3(r.initialState,L=>{for(let J in I)L.addCase(J,I[J]);for(let J of h.sliceMatchers)L.addMatcher(J.matcher,J.reducer);for(let J of k)L.addMatcher(J.matcher,J.reducer);B&&L.addDefaultCase(B)})}const S=N=>N,v=new Map,_=new WeakMap;let w;function T(N,k){return w||(w=b()),w(N,k)}function A(){return w||(w=b()),w.getInitialState()}function O(N,k=!1){function B(L){let J=L[N];return typeof J>"u"&&k&&(J=Yo(_,B,A)),J}function I(L=S){const J=Yo(v,k,()=>new WeakMap);return Yo(J,L,()=>{const G={};for(const[q,Y]of Object.entries(r.selectors??{}))G[q]=b3(Y,L,()=>Yo(_,L,A),k);return G})}return{reducerPath:N,getSelectors:I,get selectors(){return I(B)},selectSlice:B}}const C={name:o,reducer:T,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:A,...O(f),injectInto(N,{reducerPath:k,...B}={}){const I=k??f;return N.inject({reducerPath:I,reducer:T},B),{...C,...O(I,!0)}}};return C}}function b3(t,l,i,r){function o(f,...d){let g=l(f);return typeof g>"u"&&r&&(g=i()),t(g,...d)}return o.unwrapped=t,o}var $h=v3();function y3(){function t(l,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:l,...i}}return t.withTypes=()=>t,{reducer(l){return Object.assign({[l.name](...i){return l(...i)}}[l.name],{_reducerDefinitionType:"reducer"})},preparedReducer(l,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:l,reducer:i}},asyncThunk:t}}function _3({type:t,reducerName:l,createNotation:i},r,o){let f,d;if("reducer"in r){if(i&&!E3(r))throw new Error(ol(17));f=r.reducer,d=r.prepare}else f=r;o.addCase(t,f).exposeCaseReducer(l,f).exposeAction(l,d?I1(t,d):I1(t))}function S3(t){return t._reducerDefinitionType==="asyncThunk"}function E3(t){return t._reducerDefinitionType==="reducerWithPrepare"}function w3({type:t,reducerName:l},i,r,o){if(!o)throw new Error(ol(18));const{payloadCreator:f,fulfilled:d,pending:g,rejected:h,settled:p,options:b}=i,S=o(t,f,b);r.exposeAction(l,S),d&&r.addCase(S.fulfilled,d),g&&r.addCase(S.pending,g),h&&r.addCase(S.rejected,h),p&&r.addMatcher(S.settled,p),r.exposeCaseReducer(l,{fulfilled:d||Ko,pending:g||Ko,rejected:h||Ko,settled:p||Ko})}function Ko(){}function ol(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const T3={formValues:{}},Cb=$h({name:"start-screen",initialState:T3,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,l){t.startScreenStatus="HIDDEN",t.formValues=l.payload.formValues},startAuthenticatedChat(t,l){t.startScreenStatus="HIDDEN",t.loginToken=l.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,l){t.loginRequestToken=l.payload.loginRequestToken,t.formValues=l.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:A3,startAuthenticatedChat:C3,showStartScreen:x3,requestLogin:O3,loginWindowClosed:D3}=Cb.actions,R3=Cb.reducer,xb="RESET_CHAT_STATE",Ob="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Db="SHOW_CONVERSATION_RATING_OVERLAY",Rb="HIDE_CONVERSATION_RATING_OVERLAY",Nb=()=>({type:rb}),N3=()=>({type:xb}),Mb=()=>({type:Ob}),wu=(t,l=void 0)=>({type:Db,payload:{opener:t,defaultRating:l}}),M3=()=>({type:Rb}),Q1=(t,l,i)=>(r,o)=>{try{const f=o().connection.sessionId;if(!f)throw new Error("Session ID is not available");r({type:Qh,payload:{chunkId:i}}),G1(t,f,l,i,!1,r),G1(t,f,l,i,!0,r)}catch(f){console.error("Error loading source infos:",f),r({type:Xh})}},G1=(t,l,i,r,o,f)=>{const d=`/${t}/me/chat-widget/transcript/${i}/chunks/${r}?highlight=${o}`;fetch(d,{headers:{"x-bubble-chat-session-id":l}}).then(g=>{if(!g.ok)throw new Error(`HTTP error! Status: ${g.status}`);return g.json()}).then(g=>{const h={...g,chunkId:r,highlighted:o};f({type:lb,payload:h})}).catch(g=>{console.error("Error fetching source infos:",g),f({type:Xh,payload:{highlighted:o}})})},k3=()=>({type:Gh}),qh="CONNECT",ep="CONNECTING",tp="CONNECTED",np="DISCONNECTED",ap="RECONNECTED",lp="RESTORE_SESSION_ID",qu="START",ec="CLEAR_SESSION_ID",L3=[qh,ep,tp,np,ap,lp],z3=(t,l)=>({type:qh,clientName:t,querystrings:l}),j3=t=>({type:lp,sessionId:t}),B3=()=>({type:ep}),U3=()=>({type:tp}),H3=()=>({type:np}),I3=()=>({type:ap}),kb=t=>(l,i)=>{const r=i().connection,{formValues:o,loginToken:f}=i().startScreen;let d=r.sessionId;d===void 0&&(d=mu());let g=r.userId;if(g===void 0){const b=Zo.get("bubble-chat-user-id")||Zo.get("bubble-chat-userId")||Zo.get("bf-webclient-userId");g=b||mu(),Zo.set("bubble-chat-user-id",g)}const h=new URLSearchParams(i().connection.queryString||""),p=Object.fromEntries(h.entries());l({type:qu,payload:{sessionId:d,userId:g,clientName:t,loginToken:f,querystrings:{...p,...o}}})},Ds=()=>(t,l)=>{const i=l().connection.sessionId||"";if(t(V3(i)),t(N3()),l().settings.enableStartScreen)t(x3());else{const r=Zh();return t(kb(r))}},V3=t=>({type:ec,payload:{sessionId:t}}),gl=aE,kt=rE,Nt=()=>{const t=kt(i=>i.intl.messages);return i=>t[i]||void 0};var di=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(di||{}),Tu=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(Tu||{});const X3="_container_q2uun_1",Q3="_chatcontent_q2uun_6",G3="_accessabilityHidden_q2uun_12",Rd={container:X3,chatcontent:Q3,accessabilityHidden:G3},Z3="_messageContainer_1t640_1",F3="_messages_1t640_13",Z1={messageContainer:Z3,messages:F3};var Y3=Object.defineProperty,K3=(t,l)=>{for(var i in l)Y3(t,i,{get:l[i],enumerable:!0,configurable:!0,set:r=>l[i]=()=>r})},Oe=32,Fe=9,Ln=13,Dt=10,_a=96,Rs=126,gi=91,Au=94,Xl=62,Cu=35,pl=45,sr=61,xu=92,ip=42,tc=95,nc=60,rp=64,Ou=93,sp=33,Jo=38,op=58,tr=102,nr=104,Vl=119,Nd=116,F1=112,J3=115,P3=160,W3=12,Lb=46,Du=47,$3=43,q3=124,ew=123,Y1=120,K1=88,Ru=48,Nu=57,Es=65,ws=90,Mu=97,ku=122,Ma=128,tw=32,nw={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},V=nw,aw={};K3(aw,{startsWith:()=>ut,slugify:()=>Gl,skipWhitespace:()=>yn,shouldFilterTag:()=>oh,sanitizer:()=>cp,parseFrontmatterBounds:()=>zb,isVoidElement:()=>ms,isUnicodeWhitespace:()=>ur,isUnicodePunctuation:()=>pp,isAlnumCode:()=>fp,isASCIIWhitespace:()=>ju,isASCIIPunctuation:()=>uw,inlineCharTypeTable:()=>zu,includes:()=>iw,htmlAttrsToJSXProps:()=>up,hasKeys:()=>Ib,getTag:()=>dw,getOverrideProps:()=>hw,get:()=>gp,findLineEnd:()=>ye,extractPlainText:()=>Vb,endsWith:()=>dp,decodeEntityReferences:()=>ac,charClassTable:()=>or,applyTagFilterToText:()=>uh,VOID_ELEMENTS:()=>sh,SHOULD_RENDER_AS_BLOCK_R:()=>Ub,SANITIZE_R:()=>Lu,NAMED_CODES_TO_UNICODE:()=>rh,HTML_TO_JSX_MAP:()=>Bb,HTML_CHAR_CODE_R:()=>jb,ATTRIBUTES_TO_SANITIZE:()=>Hb});var lw={af:"",applyfunction:"",ic:"",invisiblecomma:"",invisibletimes:"",it:"",lrm:"",negativemediumspace:"",negativethickspace:"",negativethinspace:"",negativeverythinspace:"",nobreak:"",rlm:"",shy:"",zerowidthspace:"",zwj:"",zwnj:"",downbreve:"̑",tdot:"⃛",tripledot:"⃛",dotdot:"⃜",tab:" ",newline:`
|
|
14
|
-
`,emsp:" ",emsp13:" ",emsp14:" ",ensp:" ",hairsp:" ",mediumspace:" ",puncsp:" ",thinsp:" ",thinspace:" ",verythinspace:" ",nbsp:" ",nonbreakingspace:" ",numsp:" ",thickspace:" ",oline:"‾",overbar:"‾",lowbar:"_",underbar:"_",dash:"‐",hyphen:"‐",ndash:"–",mdash:"—",horbar:"―",comma:",",semi:";",bsemi:"⁏",colon:":",Colone:"⩴",excl:"!",iexcl:"¡",quest:"?",iquest:"¿",period:".",nldr:"‥",hellip:"…",mldr:"…",centerdot:"·",middot:"·",apos:"'",lsquo:"‘",opencurlyquote:"‘",closecurlyquote:"’",rsquo:"’",rsquor:"’",lsquor:"‚",sbquo:"‚",lsaquo:"‹",rsaquo:"›",quot:'"',ldquo:"“",opencurlydoublequote:"“",closecurlydoublequote:"”",rdquo:"”",rdquor:"”",bdquo:"„",ldquor:"„",laquo:"«",raquo:"»",lpar:"(",rpar:")",lbrack:"[",lsqb:"[",rbrack:"]",rsqb:"]",lbrace:"{",lcub:"{",rbrace:"}",rcub:"}",lceil:"⌈",leftceiling:"⌈",rceil:"⌉",rightceiling:"⌉",leftfloor:"⌊",lfloor:"⌊",rfloor:"⌋",rightfloor:"⌋",lopar:"⦅",ropar:"⦆",lbrke:"⦋",rbrke:"⦌",lbrkslu:"⦍",rbrksld:"⦎",lbrksld:"⦏",rbrkslu:"⦐",langd:"⦑",rangd:"⦒",lparlt:"⦓",rpargt:"⦔",gtlpar:"⦕",ltrpar:"⦖",leftdoublebracket:"⟦",lobrk:"⟦",rightdoublebracket:"⟧",robrk:"⟧",lang:"⟨",langle:"⟨",leftanglebracket:"⟨",rang:"⟩",rangle:"⟩",rightanglebracket:"⟩",Lang:"⟪",Rang:"⟫",loang:"⟬",roang:"⟭",lbbrk:"❲",rbbrk:"❳",Verbar:"‖",Vert:"‖",sect:"§",para:"¶",commat:"@",ast:"*",midast:"*",sol:"/",bsol:"\\",amp:"&",num:"#",percnt:"%",permil:"‰",pertenk:"‱",dagger:"†",Dagger:"‡",ddagger:"‡",bull:"•",bullet:"•",hybull:"⁃",prime:"′",Prime:"″",tprime:"‴",qprime:"⁗",backprime:"‵",bprime:"‵",caret:"⁁",diacriticalgrave:"`",grave:"`",acute:"´",diacriticalacute:"´",diacriticaltilde:"˜",tilde:"˜",hat:"^",macr:"¯",strns:"¯",breve:"˘",diacriticaldot:"˙",dot:"˙",die:"¨",Dot:"¨",doubledot:"¨",uml:"¨",ring:"˚",dblac:"˝",diacriticaldoubleacute:"˝",cedil:"¸",cedilla:"¸",ogon:"˛",circ:"ˆ",caron:"ˇ",hacek:"ˇ",deg:"°",copy:"©",circledr:"®",reg:"®",copysr:"℗",weierp:"℘",wp:"℘",rx:"℞",mho:"℧",iiota:"℩",larr:"←",leftarrow:"←",shortleftarrow:"←",slarr:"←",nlarr:"↚",nleftarrow:"↚",rarr:"→",rightarrow:"→",shortrightarrow:"→",srarr:"→",nrarr:"↛",nrightarrow:"↛",shortuparrow:"↑",uarr:"↑",uparrow:"↑",darr:"↓",downarrow:"↓",shortdownarrow:"↓",harr:"↔",leftrightarrow:"↔",nharr:"↮",nleftrightarrow:"↮",updownarrow:"↕",varr:"↕",nwarr:"↖",nwarrow:"↖",upperleftarrow:"↖",nearr:"↗",nearrow:"↗",upperrightarrow:"↗",lowerrightarrow:"↘",searr:"↘",searrow:"↘",lowerleftarrow:"↙",swarr:"↙",swarrow:"↙",rarrw:"↝",rightsquigarrow:"↝",nrarrw:"↝̸",Larr:"↞",twoheadleftarrow:"↞",Uarr:"↟",Rarr:"↠",twoheadrightarrow:"↠",Darr:"↡",larrtl:"↢",leftarrowtail:"↢",rarrtl:"↣",rightarrowtail:"↣",leftteearrow:"↤",mapstoleft:"↤",mapstoup:"↥",upteearrow:"↥",map:"↦",mapsto:"↦",rightteearrow:"↦",downteearrow:"↧",mapstodown:"↧",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",larrlp:"↫",looparrowleft:"↫",looparrowright:"↬",rarrlp:"↬",harrw:"↭",leftrightsquigarrow:"↭",lsh:"↰",rsh:"↱",ldsh:"↲",rdsh:"↳",crarr:"↵",cularr:"↶",curvearrowleft:"↶",curarr:"↷",curvearrowright:"↷",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",leftharpoonup:"↼",leftvector:"↼",lharu:"↼",downleftvector:"↽",leftharpoondown:"↽",lhard:"↽",rightupvector:"↾",uharr:"↾",upharpoonright:"↾",leftupvector:"↿",uharl:"↿",upharpoonleft:"↿",rharu:"⇀",rightharpoonup:"⇀",rightvector:"⇀",downrightvector:"⇁",rhard:"⇁",rightharpoondown:"⇁",dharr:"⇂",downharpoonright:"⇂",rightdownvector:"⇂",dharl:"⇃",downharpoonleft:"⇃",leftdownvector:"⇃",rightarrowleftarrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",udarr:"⇅",uparrowdownarrow:"⇅",leftarrowrightarrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",leftleftarrows:"⇇",llarr:"⇇",upuparrows:"⇈",uuarr:"⇈",rightrightarrows:"⇉",rrarr:"⇉",ddarr:"⇊",downdownarrows:"⇊",leftrightharpoons:"⇋",lrhar:"⇋",reverseequilibrium:"⇋",equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",doubleleftarrow:"⇐",lArr:"⇐",Leftarrow:"⇐",nlArr:"⇍",nLeftarrow:"⇍",doubleuparrow:"⇑",uArr:"⇑",Uparrow:"⇑",doublerightarrow:"⇒",implies:"⇒",rArr:"⇒",Rightarrow:"⇒",nrArr:"⇏",nRightarrow:"⇏",dArr:"⇓",doubledownarrow:"⇓",Downarrow:"⇓",doubleleftrightarrow:"⇔",hArr:"⇔",iff:"⇔",Leftrightarrow:"⇔",nhArr:"⇎",nLeftrightarrow:"⇎",doubleupdownarrow:"⇕",Updownarrow:"⇕",vArr:"⇕",nwArr:"⇖",neArr:"⇗",seArr:"⇘",swArr:"⇙",laarr:"⇚",lleftarrow:"⇚",raarr:"⇛",rrightarrow:"⇛",zigrarr:"⇝",larrb:"⇤",leftarrowbar:"⇤",rarrb:"⇥",rightarrowbar:"⇥",downarrowuparrow:"⇵",duarr:"⇵",loarr:"⇽",roarr:"⇾",hoarr:"⇿",forall:"∀",comp:"∁",complement:"∁",part:"∂",partiald:"∂",npart:"∂̸",exist:"∃",exists:"∃",nexist:"∄",nexists:"∄",notexists:"∄",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",del:"∇",nabla:"∇",element:"∈",in:"∈",isin:"∈",isinv:"∈",notelement:"∉",notin:"∉",notinva:"∉",ni:"∋",niv:"∋",reverseelement:"∋",suchthat:"∋",notni:"∌",notniva:"∌",notreverseelement:"∌",backepsilon:"϶",bepsi:"϶",prod:"∏",product:"∏",coprod:"∐",coproduct:"∐",sum:"∑",plus:"+",plusminus:"±",plusmn:"±",pm:"±",div:"÷",divide:"÷",times:"×",lt:"<",nless:"≮",nlt:"≮",notless:"≮",nvlt:"<⃒",equals:"=",ne:"≠",notequal:"≠",bne:"=⃥",equal:"⩵",gt:">",ngt:"≯",ngtr:"≯",notgreater:"≯",nvgt:">⃒",not:"¬",verbar:"|",vert:"|",verticalline:"|",brvbar:"¦",minus:"−",minusplus:"∓",mnplus:"∓",mp:"∓",dotplus:"∔",plusdo:"∔",frasl:"⁄",backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",lowast:"∗",compfn:"∘",smallcircle:"∘",radic:"√",sqrt:"√",prop:"∝",proportional:"∝",propto:"∝",varpropto:"∝",vprop:"∝",infin:"∞",angrt:"∟",ang:"∠",angle:"∠",nang:"∠⃒",angmsd:"∡",measuredangle:"∡",angsph:"∢",mid:"∣",shortmid:"∣",smid:"∣",verticalbar:"∣",nmid:"∤",notverticalbar:"∤",nshortmid:"∤",nsmid:"∤",doubleverticalbar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",notdoubleverticalbar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",and:"∧",wedge:"∧",or:"∨",vee:"∨",cap:"∩",caps:"∩︀",cup:"∪",cups:"∪︀",int:"∫",integral:"∫",Int:"∬",iiint:"∭",tint:"∭",iiiint:"⨌",qint:"⨌",conint:"∮",contourintegral:"∮",oint:"∮",Conint:"∯",doublecontourintegral:"∯",cconint:"∰",cwint:"∱",clockwisecontourintegral:"∲",cwconint:"∲",awconint:"∳",counterclockwisecontourintegral:"∳",there4:"∴",therefore:"∴",becaus:"∵",because:"∵",ratio:"∶",Colon:"∷",proportion:"∷",dotminus:"∸",minusd:"∸",mddot:"∺",homtht:"∻",sim:"∼",thicksim:"∼",thksim:"∼",Tilde:"∼",nottilde:"≁",nsim:"≁",nvsim:"∼⃒",backsim:"∽",bsim:"∽",race:"∽̱",ac:"∾",mstpos:"∾",ace:"∾̳",acd:"∿",verticaltilde:"≀",wr:"≀",wreath:"≀",eqsim:"≂",equaltilde:"≂",esim:"≂",nesim:"≂̸",notequaltilde:"≂̸",sime:"≃",simeq:"≃",tildeequal:"≃",nottildeequal:"≄",nsime:"≄",nsimeq:"≄",cong:"≅",tildefullequal:"≅",ncong:"≇",nottildefullequal:"≇",simne:"≆",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",tildetilde:"≈",nap:"≉",napprox:"≉",nottildetilde:"≉",ape:"≊",approxeq:"≊",apid:"≋",napid:"≋̸",backcong:"≌",bcong:"≌",asympeq:"≍",CupCap:"≍",notcupcap:"≭",nvap:"≍⃒",bump:"≎",Bumpeq:"≎",humpdownhump:"≎",nbump:"≎̸",nothumpdownhump:"≎̸",bumpe:"≏",bumpeq:"≏",humpequal:"≏",nbumpe:"≏̸",nothumpequal:"≏̸",doteq:"≐",dotequal:"≐",esdot:"≐",nedot:"≐̸",doteqdot:"≑",eDot:"≑",efdot:"≒",fallingdotseq:"≒",erdot:"≓",risingdotseq:"≓",assign:"≔",colone:"≔",coloneq:"≔",ecolon:"≕",eqcolon:"≕",ecir:"≖",eqcirc:"≖",circeq:"≗",cire:"≗",wedgeq:"≙",veeeq:"≚",triangleq:"≜",trie:"≜",equest:"≟",questeq:"≟",congruent:"≡",equiv:"≡",nequiv:"≢",notcongruent:"≢",bnequiv:"≡⃥",le:"≤",leq:"≤",nle:"≰",nleq:"≰",notlessequal:"≰",nvle:"≤⃒",ge:"≥",geq:"≥",greaterequal:"≥",nge:"≱",ngeq:"≱",notgreaterequal:"≱",nvge:"≥⃒",lE:"≦",leqq:"≦",lessfullequal:"≦",nlE:"≦̸",nleqq:"≦̸",gE:"≧",geqq:"≧",greaterfullequal:"≧",ngE:"≧̸",ngeqq:"≧̸",notgreaterfullequal:"≧̸",lnE:"≨",lneqq:"≨",lvertneqq:"≨︀",lvne:"≨︀",gnE:"≩",gneqq:"≩",gvertneqq:"≩︀",gvne:"≩︀",ll:"≪",Lt:"≪",nestedlessless:"≪",nltv:"≪̸",notlessless:"≪̸",nLt:"≪⃒",gg:"≫",Gt:"≫",nestedgreatergreater:"≫",ngtv:"≫̸",notgreatergreater:"≫̸",nGt:"≫⃒",between:"≬",twixt:"≬",lesssim:"≲",lesstilde:"≲",lsim:"≲",nlsim:"≴",notlesstilde:"≴",greatertilde:"≳",gsim:"≳",gtrsim:"≳",ngsim:"≵",notgreatertilde:"≵",lessgreater:"≶",lessgtr:"≶",lg:"≶",notlessgreater:"≸",ntlg:"≸",gl:"≷",greaterless:"≷",gtrless:"≷",notgreaterless:"≹",ntgl:"≹",pr:"≺",prec:"≺",precedes:"≺",notprecedes:"⊀",npr:"⊀",nprec:"⊀",sc:"≻",succ:"≻",succeeds:"≻",notsucceeds:"⊁",nsc:"⊁",nsucc:"⊁",prcue:"≼",preccurlyeq:"≼",precedesslantequal:"≼",notprecedesslantequal:"⋠",nprcue:"⋠",sccue:"≽",succcurlyeq:"≽",succeedsslantequal:"≽",notsucceedsslantequal:"⋡",nsccue:"⋡",precedestilde:"≾",precsim:"≾",prsim:"≾",scsim:"≿",succeedstilde:"≿",succsim:"≿",notsucceedstilde:"≿̸",sub:"⊂",subset:"⊂",nsub:"⊄",notsubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",sup:"⊃",superset:"⊃",supset:"⊃",nsup:"⊅",notsuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",sube:"⊆",subseteq:"⊆",subsetequal:"⊆",notsubsetequal:"⊈",nsube:"⊈",nsubseteq:"⊈",supe:"⊇",supersetequal:"⊇",supseteq:"⊇",notsupersetequal:"⊉",nsupe:"⊉",nsupseteq:"⊉",subne:"⊊",subsetneq:"⊊",varsubsetneq:"⊊︀",vsubne:"⊊︀",supne:"⊋",supsetneq:"⊋",varsupsetneq:"⊋︀",vsupne:"⊋︀",cupdot:"⊍",unionplus:"⊎",uplus:"⊎",sqsub:"⊏",sqsubset:"⊏",squaresubset:"⊏",notsquaresubset:"⊏̸",sqsup:"⊐",sqsupset:"⊐",squaresuperset:"⊐",notsquaresuperset:"⊐̸",sqsube:"⊑",sqsubseteq:"⊑",squaresubsetequal:"⊑",notsquaresubsetequal:"⋢",nsqsube:"⋢",sqsupe:"⊒",sqsupseteq:"⊒",squaresupersetequal:"⊒",notsquaresupersetequal:"⋣",nsqsupe:"⋣",sqcap:"⊓",sqcaps:"⊓︀",squareintersection:"⊓",sqcup:"⊔",sqcups:"⊔︀",squareunion:"⊔",circleplus:"⊕",oplus:"⊕",circleminus:"⊖",ominus:"⊖",circletimes:"⊗",otimes:"⊗",osol:"⊘",circledot:"⊙",odot:"⊙",circledcirc:"⊚",ocir:"⊚",circledast:"⊛",oast:"⊛",circleddash:"⊝",odash:"⊝",boxplus:"⊞",plusb:"⊞",boxminus:"⊟",minusb:"⊟",boxtimes:"⊠",timesb:"⊠",dotsquare:"⊡",sdotb:"⊡",righttee:"⊢",vdash:"⊢",nvdash:"⊬",dashv:"⊣",lefttee:"⊣",downtee:"⊤",top:"⊤",bot:"⊥",bottom:"⊥",perp:"⊥",uptee:"⊥",models:"⊧",doublerighttee:"⊨",vDash:"⊨",nvDash:"⊭",Vdash:"⊩",nVdash:"⊮",vvdash:"⊪",VDash:"⊫",nVDash:"⊯",prurel:"⊰",lefttriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",nltri:"⋪",notlefttriangle:"⋪",ntriangleleft:"⋪",righttriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",notrighttriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",lefttriangleequal:"⊴",ltrie:"⊴",trianglelefteq:"⊴",nltrie:"⋬",notlefttriangleequal:"⋬",ntrianglelefteq:"⋬",nvltrie:"⊴⃒",righttriangleequal:"⊵",rtrie:"⊵",trianglerighteq:"⊵",notrighttriangleequal:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",nvrtrie:"⊵⃒",origof:"⊶",imof:"⊷",multimap:"⊸",mumap:"⊸",hercon:"⊹",intcal:"⊺",intercal:"⊺",veebar:"⊻",barvee:"⊽",angrtvb:"⊾",lrtri:"⊿",bigwedge:"⋀",Wedge:"⋀",xwedge:"⋀",bigvee:"⋁",Vee:"⋁",xvee:"⋁",bigcap:"⋂",intersection:"⋂",xcap:"⋂",bigcup:"⋃",union:"⋃",xcup:"⋃",diam:"⋄",diamond:"⋄",sdot:"⋅",sstarf:"⋆",Star:"⋆",divideontimes:"⋇",divonx:"⋇",bowtie:"⋈",ltimes:"⋉",rtimes:"⋊",leftthreetimes:"⋋",lthree:"⋋",rightthreetimes:"⋌",rthree:"⋌",backsimeq:"⋍",bsime:"⋍",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",Sub:"⋐",Subset:"⋐",Sup:"⋑",Supset:"⋑",Cap:"⋒",Cup:"⋓",fork:"⋔",pitchfork:"⋔",epar:"⋕",lessdot:"⋖",ltdot:"⋖",gtdot:"⋗",gtrdot:"⋗",Ll:"⋘",nll:"⋘̸",Gg:"⋙",ggg:"⋙",ngg:"⋙̸",leg:"⋚",lesg:"⋚︀",lesseqgtr:"⋚",lessequalgreater:"⋚",gel:"⋛",gesl:"⋛︀",greaterequalless:"⋛",gtreqless:"⋛",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",lnsim:"⋦",gnsim:"⋧",precnsim:"⋨",prnsim:"⋨",scnsim:"⋩",succnsim:"⋩",vellip:"⋮",ctdot:"⋯",utdot:"⋰",dtdot:"⋱",disin:"⋲",isinsv:"⋳",isins:"⋴",isindot:"⋵",notindot:"⋵̸",notinvc:"⋶",notinvb:"⋷",isine:"⋹",notine:"⋹̸",nisd:"⋺",xnis:"⋻",nis:"⋼",notnivc:"⋽",notnivb:"⋾",barwed:"⌅",barwedge:"⌅",Barwed:"⌆",doublebarwedge:"⌆",drcrop:"⌌",dlcrop:"⌍",urcrop:"⌎",ulcrop:"⌏",bnot:"⌐",profline:"⌒",profsurf:"⌓",telrec:"⌕",target:"⌖",ulcorn:"⌜",ulcorner:"⌜",urcorn:"⌝",urcorner:"⌝",dlcorn:"⌞",llcorner:"⌞",drcorn:"⌟",lrcorner:"⌟",frown:"⌢",sfrown:"⌢",smile:"⌣",ssmile:"⌣",cylcty:"⌭",profalar:"⌮",topbot:"⌶",ovbar:"⌽",solbar:"⌿",angzarr:"⍼",lmoust:"⎰",lmoustache:"⎰",rmoust:"⎱",rmoustache:"⎱",overbracket:"⎴",tbrk:"⎴",bbrk:"⎵",underbracket:"⎵",bbrktbrk:"⎶",overparenthesis:"⏜",underparenthesis:"⏝",overbrace:"⏞",underbrace:"⏟",trpezium:"⏢",elinters:"⏧",blank:"␣",boxh:"─",horizontalline:"─",boxv:"│",boxdr:"┌",boxdl:"┐",boxur:"└",boxul:"┘",boxvr:"├",boxvl:"┤",boxhd:"┬",boxhu:"┴",boxvh:"┼",boxH:"═",boxV:"║",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxvR:"╞",boxVr:"╟",boxVR:"╠",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxvH:"╪",boxVh:"╫",boxVH:"╬",uhblk:"▀",lhblk:"▄",block:"█",blk14:"░",blk12:"▒",blk34:"▓",squ:"□",square:"□",blacksquare:"▪",filledverysmallsquare:"▪",squarf:"▪",squf:"▪",emptyverysmallsquare:"▫",rect:"▭",marker:"▮",fltns:"▱",bigtriangleup:"△",xutri:"△",blacktriangle:"▴",utrif:"▴",triangle:"▵",utri:"▵",blacktriangleright:"▸",rtrif:"▸",rtri:"▹",triangleright:"▹",bigtriangledown:"▽",xdtri:"▽",blacktriangledown:"▾",dtrif:"▾",dtri:"▿",triangledown:"▿",blacktriangleleft:"◂",ltrif:"◂",ltri:"◃",triangleleft:"◃",loz:"◊",lozenge:"◊",cir:"○",tridot:"◬",bigcirc:"◯",xcirc:"◯",ultri:"◸",urtri:"◹",lltri:"◺",emptysmallsquare:"◻",filledsmallsquare:"◼",bigstar:"★",starf:"★",star:"☆",phone:"☎",female:"♀",male:"♂",spades:"♠",spadesuit:"♠",clubs:"♣",clubsuit:"♣",hearts:"♥",heartsuit:"♥",diamondsuit:"♦",diams:"♦",sung:"♪",check:"✓",checkmark:"✓",cross:"✗",malt:"✠",maltese:"✠",sext:"✶",verticalseparator:"❘",bsolhsub:"⟈",suphsol:"⟉",longleftarrow:"⟵",xlarr:"⟵",longrightarrow:"⟶",xrarr:"⟶",longleftrightarrow:"⟷",xharr:"⟷",doublelongleftarrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",doublelongrightarrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",doublelongleftrightarrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",longmapsto:"⟼",xmap:"⟼",dzigrarr:"⟿",nvlarr:"⤂",nvrarr:"⤃",nvharr:"⤄",Map:"⤅",lbarr:"⤌",bkarow:"⤍",lBarr:"⤎",dbkarow:"⤏",rBarr:"⤏",drbkarow:"⤐",rbarr:"⤐",RBarr:"⤐",ddotrahd:"⤑",uparrowbar:"⤒",downarrowbar:"⤓",Rarrtl:"⤖",latail:"⤙",ratail:"⤚",lAtail:"⤛",rAtail:"⤜",larrfs:"⤝",rarrfs:"⤞",larrbfs:"⤟",rarrbfs:"⤠",nwarhk:"⤣",nearhk:"⤤",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",nwnear:"⤧",nesear:"⤨",toea:"⤨",seswar:"⤩",tosa:"⤩",swnwar:"⤪",rarrc:"⤳",nrarrc:"⤳̸",cudarrr:"⤵",ldca:"⤶",rdca:"⤷",cudarrl:"⤸",larrpl:"⤹",curarrm:"⤼",cularrp:"⤽",rarrpl:"⥅",harrcir:"⥈",uarrocir:"⥉",lurdshar:"⥊",ldrushar:"⥋",leftrightvector:"⥎",rightupdownvector:"⥏",downleftrightvector:"⥐",leftupdownvector:"⥑",leftvectorbar:"⥒",rightvectorbar:"⥓",rightupvectorbar:"⥔",rightdownvectorbar:"⥕",downleftvectorbar:"⥖",downrightvectorbar:"⥗",leftupvectorbar:"⥘",leftdownvectorbar:"⥙",leftteevector:"⥚",rightteevector:"⥛",rightupteevector:"⥜",rightdownteevector:"⥝",downleftteevector:"⥞",downrightteevector:"⥟",leftupteevector:"⥠",leftdownteevector:"⥡",lhar:"⥢",uhar:"⥣",rhar:"⥤",dhar:"⥥",luruhar:"⥦",ldrdhar:"⥧",ruluhar:"⥨",rdldhar:"⥩",lharul:"⥪",llhard:"⥫",rharul:"⥬",lrhard:"⥭",udhar:"⥮",upequilibrium:"⥮",duhar:"⥯",reverseupequilibrium:"⥯",roundimplies:"⥰",erarr:"⥱",simrarr:"⥲",larrsim:"⥳",rarrsim:"⥴",rarrap:"⥵",ltlarr:"⥶",gtrarr:"⥸",subrarr:"⥹",suplarr:"⥻",lfisht:"⥼",rfisht:"⥽",ufisht:"⥾",dfisht:"⥿",vzigzag:"⦚",vangrt:"⦜",angrtvbd:"⦝",ange:"⦤",range:"⦥",dwangle:"⦦",uwangle:"⦧",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",bemptyv:"⦰",demptyv:"⦱",cemptyv:"⦲",raemptyv:"⦳",laemptyv:"⦴",ohbar:"⦵",omid:"⦶",opar:"⦷",operp:"⦹",olcross:"⦻",odsold:"⦼",olcir:"⦾",ofcir:"⦿",olt:"⧀",ogt:"⧁",cirscir:"⧂",cirE:"⧃",solb:"⧄",bsolb:"⧅",boxbox:"⧉",trisb:"⧍",rtriltri:"⧎",lefttrianglebar:"⧏",notlefttrianglebar:"⧏̸",righttrianglebar:"⧐",notrighttrianglebar:"⧐̸",iinfin:"⧜",infintie:"⧝",nvinfin:"⧞",eparsl:"⧣",smeparsl:"⧤",eqvparsl:"⧥",blacklozenge:"⧫",lozf:"⧫",ruledelayed:"⧴",dsol:"⧶",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",biguplus:"⨄",xuplus:"⨄",bigsqcup:"⨆",xsqcup:"⨆",fpartint:"⨍",cirfnint:"⨐",awint:"⨑",rppolint:"⨒",scpolint:"⨓",npolint:"⨔",pointint:"⨕",quatint:"⨖",intlarhk:"⨗",pluscir:"⨢",plusacir:"⨣",simplus:"⨤",plusdu:"⨥",plussim:"⨦",plustwo:"⨧",mcomma:"⨩",minusdu:"⨪",loplus:"⨭",roplus:"⨮",Cross:"⨯",timesd:"⨰",timesbar:"⨱",smashp:"⨳",lotimes:"⨴",rotimes:"⨵",otimesas:"⨶",Otimes:"⨷",odiv:"⨸",triplus:"⨹",triminus:"⨺",tritime:"⨻",intprod:"⨼",iprod:"⨼",amalg:"⨿",capdot:"⩀",ncup:"⩂",ncap:"⩃",capand:"⩄",cupor:"⩅",cupcap:"⩆",capcup:"⩇",cupbrcap:"⩈",capbrcup:"⩉",cupcup:"⩊",capcap:"⩋",ccups:"⩌",ccaps:"⩍",ccupssm:"⩐",And:"⩓",Or:"⩔",andand:"⩕",oror:"⩖",orslope:"⩗",andslope:"⩘",andv:"⩚",orv:"⩛",andd:"⩜",ord:"⩝",wedbar:"⩟",sdote:"⩦",simdot:"⩪",congdot:"⩭",ncongdot:"⩭̸",easter:"⩮",apacir:"⩯",apE:"⩰",nape:"⩰̸",eplus:"⩱",pluse:"⩲",Esim:"⩳",ddotseq:"⩷",eddot:"⩷",equivdd:"⩸",ltcir:"⩹",gtcir:"⩺",ltquest:"⩻",gtquest:"⩼",leqslant:"⩽",les:"⩽",lessslantequal:"⩽",nleqslant:"⩽̸",nles:"⩽̸",notlessslantequal:"⩽̸",geqslant:"⩾",ges:"⩾",greaterslantequal:"⩾",ngeqslant:"⩾̸",nges:"⩾̸",notgreaterslantequal:"⩾̸",lesdot:"⩿",gesdot:"⪀",lesdoto:"⪁",gesdoto:"⪂",lesdotor:"⪃",gesdotol:"⪄",lap:"⪅",lessapprox:"⪅",gap:"⪆",gtrapprox:"⪆",lne:"⪇",lneq:"⪇",gne:"⪈",gneq:"⪈",lnap:"⪉",lnapprox:"⪉",gnap:"⪊",gnapprox:"⪊",lEg:"⪋",lesseqqgtr:"⪋",gEl:"⪌",gtreqqless:"⪌",lsime:"⪍",gsime:"⪎",lsimg:"⪏",gsiml:"⪐",lge:"⪑",gle:"⪒",lesges:"⪓",gesles:"⪔",els:"⪕",eqslantless:"⪕",egs:"⪖",eqslantgtr:"⪖",elsdot:"⪗",egsdot:"⪘",el:"⪙",eg:"⪚",siml:"⪝",simg:"⪞",simle:"⪟",simge:"⪠",lessless:"⪡",notnestedlessless:"⪡̸",greatergreater:"⪢",notnestedgreatergreater:"⪢̸",glj:"⪤",gla:"⪥",ltcc:"⪦",gtcc:"⪧",lescc:"⪨",gescc:"⪩",smt:"⪪",lat:"⪫",smte:"⪬",smtes:"⪬︀",late:"⪭",lates:"⪭︀",bumpE:"⪮",pre:"⪯",precedesequal:"⪯",preceq:"⪯",notprecedesequal:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",sce:"⪰",succeedsequal:"⪰",succeq:"⪰",notsucceedsequal:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",prE:"⪳",scE:"⪴",precneqq:"⪵",prne:"⪵",scne:"⪶",succneqq:"⪶",prap:"⪷",precapprox:"⪷",scap:"⪸",succapprox:"⪸",precnapprox:"⪹",prnap:"⪹",scnap:"⪺",succnapprox:"⪺",Pr:"⪻",Sc:"⪼",subdot:"⪽",supdot:"⪾",subplus:"⪿",supplus:"⫀",submult:"⫁",supmult:"⫂",subedot:"⫃",supedot:"⫄",subE:"⫅",subseteqq:"⫅",nsubE:"⫅̸",nsubseteqq:"⫅̸",supE:"⫆",supseteqq:"⫆",nsupE:"⫆̸",nsupseteqq:"⫆̸",subsim:"⫇",supsim:"⫈",subnE:"⫋",subsetneqq:"⫋",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",supnE:"⫌",supsetneqq:"⫌",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",csub:"⫏",csup:"⫐",csube:"⫑",csupe:"⫒",subsup:"⫓",supsub:"⫔",subsub:"⫕",supsup:"⫖",suphsub:"⫗",supdsub:"⫘",forkv:"⫙",topfork:"⫚",mlcp:"⫛",Dashv:"⫤",doublelefttee:"⫤",vdashl:"⫦",barv:"⫧",vbar:"⫨",vbarv:"⫩",Vbar:"⫫",Not:"⫬",bNot:"⫭",rnmid:"⫮",cirmid:"⫯",midcir:"⫰",topcir:"⫱",nhpar:"⫲",parsim:"⫳",parsl:"⫽",nparsl:"⫽⃥",flat:"♭",natur:"♮",natural:"♮",sharp:"♯",curren:"¤",cent:"¢",dollar:"$",pound:"£",yen:"¥",euro:"€",sup1:"¹",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",sup2:"²",frac23:"⅔",frac25:"⅖",sup3:"³",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",afr:"𝔞",aopf:"𝕒",ascr:"𝒶",Afr:"𝔄",Aopf:"𝔸",Ascr:"𝒜",ordf:"ª",aacute:"á",Aacute:"Á",agrave:"à",Agrave:"À",abreve:"ă",Abreve:"Ă",acirc:"â",Acirc:"Â",aring:"å",angst:"Å",Aring:"Å",auml:"ä",Auml:"Ä",atilde:"ã",Atilde:"Ã",aogon:"ą",Aogon:"Ą",amacr:"ā",Amacr:"Ā",aelig:"Æ",AElig:"Æ",bfr:"𝔟",bopf:"𝕓",bscr:"𝒷",bernou:"ℬ",bernoullis:"ℬ",Bfr:"𝔅",Bopf:"𝔹",Bscr:"ℬ",cfr:"𝔠",copf:"𝕔",cscr:"𝒸",cayleys:"ℭ",Cfr:"ℭ",complexes:"ℂ",Copf:"ℂ",Cscr:"𝒞",cacute:"ć",Cacute:"Ć",ccirc:"ĉ",Ccirc:"Ĉ",ccaron:"č",Ccaron:"Č",cdot:"ċ",Cdot:"Ċ",ccedil:"ç",Ccedil:"Ç",incare:"℅",dfr:"𝔡",differentiald:"ⅆ",dopf:"𝕕",dscr:"𝒹",capitaldifferentiald:"ⅅ",dd:"ⅅ",DD:"ⅅ",Dfr:"𝔇",Dopf:"𝔻",Dscr:"𝒟",dcaron:"ď",Dcaron:"Ď",dstrok:"đ",Dstrok:"Đ",eth:"ð",ETH:"Ð",ee:"ⅇ",efr:"𝔢",eopf:"𝕖",escr:"ℯ",exponentiale:"ⅇ",Efr:"𝔈",Eopf:"𝔼",Escr:"ℰ",expectation:"ℰ",eacute:"é",Eacute:"É",egrave:"è",Egrave:"È",ecirc:"ê",Ecirc:"Ê",ecaron:"ě",Ecaron:"Ě",euml:"ë",Euml:"Ë",edot:"ė",Edot:"Ė",eogon:"ę",Eogon:"Ę",emacr:"ē",Emacr:"Ē",ffr:"𝔣",fopf:"𝕗",fscr:"𝒻",Ffr:"𝔉",Fopf:"𝔽",fouriertrf:"ℱ",Fscr:"ℱ",fflig:"ff",ffilig:"ffi",ffllig:"ffl",filig:"fi",fjlig:"fj",fllig:"fl",fnof:"ƒ",gfr:"𝔤",gopf:"𝕘",gscr:"ℊ",Gfr:"𝔊",Gopf:"𝔾",Gscr:"𝒢",gacute:"ǵ",gbreve:"ğ",Gbreve:"Ğ",gcirc:"ĝ",Gcirc:"Ĝ",gdot:"ġ",Gdot:"Ġ",gcedil:"Ģ",hfr:"𝔥",hopf:"𝕙",hscr:"𝒽",planckh:"ℎ",hamilt:"ℋ",Hfr:"ℌ",hilbertspace:"ℋ",Hopf:"ℍ",Hscr:"ℋ",poincareplane:"ℌ",quaternions:"ℍ",hcirc:"ĥ",Hcirc:"Ĥ",hbar:"ℏ",hslash:"ℏ",hstrok:"ħ",planck:"ℏ",plankv:"ℏ",Hstrok:"Ħ",ifr:"𝔦",ii:"ⅈ",imaginaryi:"ⅈ",iopf:"𝕚",iscr:"𝒾",Ifr:"ℑ",im:"ℑ",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",Iopf:"𝕀",Iscr:"ℐ",iacute:"í",Iacute:"Í",igrave:"ì",Igrave:"Ì",icirc:"î",Icirc:"Î",iuml:"ï",Iuml:"Ï",itilde:"ĩ",Itilde:"Ĩ",idot:"İ",iogon:"į",Iogon:"Į",imacr:"ī",Imacr:"Ī",ijlig:"IJ",IJlig:"IJ",imath:"ı",inodot:"ı",jfr:"𝔧",jopf:"𝕛",jscr:"𝒿",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",jcirc:"ĵ",Jcirc:"Ĵ",jmath:"ȷ",kfr:"𝔨",kopf:"𝕜",kscr:"𝓀",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",kcedil:"ķ",Kcedil:"Ķ",ell:"ℓ",lfr:"𝔩",lopf:"𝕝",lscr:"𝓁",lagran:"ℒ",laplacetrf:"ℒ",Lfr:"𝔏",Lopf:"𝕃",Lscr:"ℒ",lacute:"ĺ",Lacute:"Ĺ",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lstrok:"ł",Lstrok:"Ł",lmidot:"ŀ",Lmidot:"Ŀ",mfr:"𝔪",mopf:"𝕞",mscr:"𝓂",mellintrf:"ℳ",Mfr:"𝔐",Mopf:"𝕄",Mscr:"ℳ",phmmat:"ℳ",nfr:"𝔫",nopf:"𝕟",nscr:"𝓃",naturals:"ℕ",Nfr:"𝔑",Nopf:"ℕ",Nscr:"𝒩",nacute:"ń",Nacute:"Ń",ncaron:"ň",Ncaron:"Ň",ntilde:"ñ",Ntilde:"Ñ",ncedil:"ņ",Ncedil:"Ņ",numero:"№",eng:"ŋ",ENG:"Ŋ",ofr:"𝔬",oopf:"𝕠",order:"ℴ",orderof:"ℴ",oscr:"ℴ",Ofr:"𝔒",Oopf:"𝕆",Oscr:"𝒪",ordm:"º",oacute:"ó",Oacute:"Ó",ograve:"ò",Ograve:"Ò",ocirc:"ô",Ocirc:"Ô",ouml:"ö",Ouml:"Ö",odblac:"ő",Odblac:"Ő",otilde:"õ",Otilde:"Õ",oslash:"ø",Oslash:"Ø",omacr:"ō",Omacr:"Ō",oelig:"Œ",OElig:"Œ",pfr:"𝔭",popf:"𝕡",pscr:"𝓅",Pfr:"𝔓",Popf:"ℙ",primes:"ℙ",Pscr:"𝒫",qfr:"𝔮",qopf:"𝕢",qscr:"𝓆",Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",rationals:"ℚ",kgreen:"ĸ",rfr:"𝔯",ropf:"𝕣",rscr:"𝓇",re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Rfr:"ℜ",Ropf:"ℝ",Rscr:"ℛ",racute:"ŕ",Racute:"Ŕ",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",sfr:"𝔰",sopf:"𝕤",sscr:"𝓈",Sfr:"𝔖",Sopf:"𝕊",Sscr:"𝒮",circleds:"Ⓢ",os:"Ⓢ",sacute:"ś",Sacute:"Ś",scirc:"ŝ",Scirc:"Ŝ",scaron:"š",Scaron:"Š",scedil:"ş",Scedil:"Ş",szlig:"ß",tfr:"𝔱",topf:"𝕥",tscr:"𝓉",Tfr:"𝔗",Topf:"𝕋",Tscr:"𝒯",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",trade:"™",tstrok:"ŧ",Tstrok:"Ŧ",ufr:"𝔲",uopf:"𝕦",uscr:"𝓊",Ufr:"𝔘",Uopf:"𝕌",Uscr:"𝒰",uacute:"ú",Uacute:"Ú",ugrave:"ù",Ugrave:"Ù",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",uring:"ů",Uring:"Ů",uuml:"ü",Uuml:"Ü",udblac:"ű",Udblac:"Ű",utilde:"ũ",Utilde:"Ũ",uogon:"ų",Uogon:"Ų",umacr:"ū",Umacr:"Ū",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",wcirc:"ŵ",Wcirc:"Ŵ",xfr:"𝔵",xopf:"𝕩",xscr:"𝓍",Xfr:"𝔛",Xopf:"𝕏",Xscr:"𝒳",yfr:"𝔶",yopf:"𝕪",yscr:"𝓎",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",yacute:"ý",Yacute:"Ý",ycirc:"ŷ",Ycirc:"Ŷ",yuml:"ÿ",Yuml:"Ÿ",zfr:"𝔷",zopf:"𝕫",zscr:"𝓏",integers:"ℤ",zeetrf:"ℨ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zdot:"ż",Zdot:"Ż",imped:"Ƶ",thorn:"þ",THORN:"Þ",napos:"ʼn",alpha:"α",Alpha:"Α",beta:"β",Beta:"Β",gamma:"γ",Gamma:"Γ",delta:"δ",Delta:"Δ",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",Epsilon:"Ε",digamma:"ϝ",gammad:"ϝ",Gammad:"Ϝ",zeta:"ζ",Zeta:"Ζ",eta:"η",Eta:"Η",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",Theta:"Θ",iota:"ι",Iota:"Ι",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",Kappa:"Κ",lambda:"λ",Lambda:"Λ",mu:"μ",micro:"µ",Mu:"Μ",nu:"ν",Nu:"Ν",xi:"ξ",Xi:"Ξ",omicron:"ο",Omicron:"Ο",pi:"π",piv:"ϖ",varpi:"ϖ",Pi:"Π",rho:"ρ",rhov:"ϱ",varrho:"ϱ",Rho:"Ρ",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",tau:"τ",Tau:"Τ",upsi:"υ",upsilon:"υ",Upsilon:"Υ",Upsi:"ϒ",upsih:"ϒ",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",Phi:"Φ",chi:"χ",Chi:"Χ",psi:"ψ",Psi:"Ψ",omega:"ω",ohm:"Ω",Omega:"Ω",acy:"а",Acy:"А",bcy:"б",Bcy:"Б",vcy:"в",Vcy:"В",gcy:"г",Gcy:"Г",gjcy:"Ѓ",GJcy:"Ѓ",dcy:"д",Dcy:"Д",djcy:"Ђ",DJcy:"Ђ",iecy:"Е",IEcy:"Е",iocy:"Ё",IOcy:"Ё",jukcy:"є",Jukcy:"Є",zhcy:"Ж",ZHcy:"Ж",zcy:"з",Zcy:"З",dscy:"Ѕ",DScy:"Ѕ",icy:"и",Icy:"И",iukcy:"і",Iukcy:"І",yicy:"Ї",YIcy:"Ї",jcy:"й",Jcy:"Й",jsercy:"ј",Jsercy:"Ј",kcy:"к",Kcy:"К",kjcy:"Ќ",KJcy:"Ќ",lcy:"л",Lcy:"Л",ljcy:"Љ",LJcy:"Љ",mcy:"м",Mcy:"М",ncy:"н",Ncy:"Н",njcy:"Њ",NJcy:"Њ",ocy:"о",Ocy:"О",pcy:"п",Pcy:"П",rcy:"р",Rcy:"Р",scy:"с",Scy:"С",tcy:"т",Tcy:"Т",tshcy:"ћ",TSHcy:"Ћ",ucy:"у",Ucy:"У",ubrcy:"ў",Ubrcy:"Ў",fcy:"ф",Fcy:"Ф",khcy:"Х",KHcy:"Х",tscy:"Ц",TScy:"Ц",chcy:"Ч",CHcy:"Ч",dzcy:"Џ",DZcy:"Џ",shcy:"Ш",SHcy:"Ш",shchcy:"щ",SHCHcy:"Щ",hardcy:"ъ",HARDcy:"Ъ",ycy:"ы",Ycy:"Ы",softcy:"ь",SOFTcy:"Ь",ecy:"э",Ecy:"Э",yucy:"Ю",YUcy:"Ю",yacy:"Я",YAcy:"Я",alefsym:"ℵ",aleph:"ℵ",beth:"ℶ",gimel:"ℷ",daleth:"ℸ"};function zb(t){if(!ut(t,"---"))return null;let l=3;for(;l<t.length&&(t[l]===" "||t[l]===" ");)l++;if(l>=t.length||t[l]!==`
|
|
13
|
+
`),Ae}pu(()=>{ce.current=void 0,ee.current=void 0,x.current=we});const Be=Z.useMemo(()=>Z.createElement(A,{...we,ref:G}),[G,A,we]);return Z.useMemo(()=>T?Z.createElement(Y.Provider,{value:ge},Be):Be,[Y,Be,ge])}const I=Z.memo(k);if(I.WrappedComponent=A,I.displayName=k.displayName=C,h){const J=Z.forwardRef(function(q,Y){return Z.createElement(I,{...q,reactReduxForwardedRef:Y})});return J.displayName=C,J.WrappedComponent=A,Pd(J,A)}return Pd(I,A)}}var WS=PS;function $S(t){const{children:l,context:i,serverState:r,store:o}=t,f=Z.useMemo(()=>{const h=Qv(o);return{store:o,subscription:h,getServerState:r?()=>r:void 0}},[o,r]),d=Z.useMemo(()=>o.getState(),[o]);pu(()=>{const{subscription:h}=f;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[f,d]);const g=i||fl;return Z.createElement(g.Provider,{value:f},l)}var qS=$S;function kh(t=fl){return function(){return Z.useContext(t)}}var Zv=kh();function Fv(t=fl){const l=t===fl?Zv:kh(t),i=()=>{const{store:r}=l();return r};return Object.assign(i,{withTypes:()=>i}),i}var eE=Fv();function tE(t=fl){const l=t===fl?eE:Fv(t),i=()=>l().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var nE=tE(),aE=(t,l)=>t===l;function lE(t=fl){const l=t===fl?Zv:kh(t),i=(r,o={})=>{const{equalityFn:f=aE}=typeof o=="function"?{equalityFn:o}:o,d=l(),{store:g,subscription:h,getServerState:p}=d;Z.useRef(!0);const b=Z.useCallback({[r.name](v){return r(v)}}[r.name],[r]),S=aS.useSyncExternalStoreWithSelector(h.addNestedSub,g.getState,p||g.getState,b,f);return Z.useDebugValue(S),S};return Object.assign(i,{withTypes:()=>i}),i}var iE=lE();function Yv(t){var l,i,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(i=Yv(t[l]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function se(){for(var t,l,i=0,r="",o=arguments.length;i<o;i++)(t=arguments[i])&&(l=Yv(t))&&(r&&(r+=" "),r+=l);return r}const rE="_app_1rj0t_1",sE={app:rE},Kv="core.typing.on",Jv="core.typing.off",Lh="core.message.from.guest",Pv="core.message.without.analysis.from.guest",Wv="core.message.to.guest",oE="core.nlu.request.event",$v="core.event.to.guest",uE="core.chat.restart.request",cE="core.transcript.mail.request",qv="core.transcript.item.guest.reaction",zh="core.conversation.rating.from.guest",fE="core.drawer.open",dE="core.drawer.close",hE="core.guest.locale.changed";var gu;(function(t){t.WEB_URL="web_url",t.POSTBACK="postback"})(gu||(gu={}));var R1;(function(t){t.GOOD="GOOD",t.BAD="BAD"})(R1||(R1={}));let pE=class{type;sender;sources;quickReplies;constructor(l,i,r=[],o=[]){this.type=l,this.sender=i,this.sources=r,this.quickReplies=o}addQuickReply(l,i){this.quickReplies.push({label:l,payload:i})}},Fu=class extends pE{text;constructor(l,i,r=[],o=[]){super(ar.TEXT,i,r,o),this.text=l}};var ar;(function(t){t.TEXT="TEXT",t.DETAIL="DETAIL",t.MARKDOWN="MARKDOWN",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.FILE="FILE",t.AUDIO="AUDIO"})(ar||(ar={}));class eb{type;id;name;avatar;constructor(l,i,r,o){this.type=l,this.id=i,this.name=r,this.avatar=o}}class gE extends eb{constructor(){super(dl.BOT,null,"Chatbot","bot.svg")}}class jh extends eb{constructor(){super(dl.GUEST,null,"Guest","visitor.svg")}}var dl;(function(t){t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON"})(dl||(dl={}));const mE=t=>{const l=new Fu(t,new jh);return{type:Lh,message:l}},vE=(t,l={})=>{const i=new Fu(t,new jh);return{type:Pv,message:i,payload:l}},bE=t=>({type:oE,event:t}),yE=(t,l,i=null,r=null)=>({type:qv,payload:{actionId:t,reaction:l,category:i,comment:r}}),tb=t=>l=>(t.payload.type!==Lh&&l(vE(t.label,t.payload)),l(t.payload)),nb=t=>(l,i)=>{const{quickReplies:r}=i().chat,o=r.find(f=>t.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return l(o?tb({...o,label:t}):JSON.parse(JSON.stringify(mE(t))))},Bh="MESSAGE_TO_PARENT_PAGE",Uh="RESTORE_PREVIOUS_CHAT_MESSAGES",Hh="AUDIO_MESSAGE_FROM_USER",Ih="RECEIVE_SPEECH_TRANSCRIPTION",Vh="ENABLE_CONVERSATION_RATING",ab="LOAD_SOURCE_INFOS_RESPONSE",Xh="LOAD_SOURCE_INFOS_ERROR",Qh="LOAD_SOURCE_INFOS_REQUEST",Gh="CLOSE_SOURCE_INFOS",_E="webclient.get.started",lb="webclient.window.expand",ib="webclient.window.close",rb="webclient.transcript.pdf.download",SE=[Bh,Uh,Hh,Ih,Vh,Qh,Gh],EE=t=>({type:Hh,buffer:t}),wE=t=>({type:Ih,transcription:t}),TE=t=>({type:cE,payload:{parameters:{mailTo:t}}}),AE=()=>({type:rb}),CE=({rating:t})=>({type:Vh,payload:{rating:t}}),xE=(t,l)=>({type:zh,payload:{value:t,feedback:l}}),sb=t=>bE(t),OE=t=>({type:Uh,messages:t}),DE=t=>{switch(t.type){case gu.WEB_URL:return ub(t.url);case gu.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},ob=t=>ub(t),ub=t=>({type:Bh,message:{type:"webclient.change.url",url:t}});function Qo(t){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var r in i)t[r]=i[r]}return t}var RE={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Wd(t,l){function i(o,f,d){if(!(typeof document>"u")){d=Qo({},l,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var g="";for(var h in d)d[h]&&(g+="; "+h,d[h]!==!0&&(g+="="+d[h].split(";")[0]));return document.cookie=o+"="+t.write(f,o)+g}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var f=document.cookie?document.cookie.split("; "):[],d={},g=0;g<f.length;g++){var h=f[g].split("="),p=h.slice(1).join("=");try{var b=decodeURIComponent(h[0]);if(d[b]=t.read(p,b),o===b)break}catch{}}return o?d[o]:d}}return Object.create({set:i,get:r,remove:function(o,f){i(o,"",Qo({},f,{expires:-1}))},withAttributes:function(o){return Wd(this.converter,Qo({},this.attributes,o))},withConverter:function(o){return Wd(Qo({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(t)}})}var Go=Wd(RE,{path:"/"});const Cn=[];for(let t=0;t<256;++t)Cn.push((t+256).toString(16).slice(1));function NE(t,l=0){return(Cn[t[l+0]]+Cn[t[l+1]]+Cn[t[l+2]]+Cn[t[l+3]]+"-"+Cn[t[l+4]]+Cn[t[l+5]]+"-"+Cn[t[l+6]]+Cn[t[l+7]]+"-"+Cn[t[l+8]]+Cn[t[l+9]]+"-"+Cn[t[l+10]]+Cn[t[l+11]]+Cn[t[l+12]]+Cn[t[l+13]]+Cn[t[l+14]]+Cn[t[l+15]]).toLowerCase()}let Cd;const ME=new Uint8Array(16);function kE(){if(!Cd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Cd=crypto.getRandomValues.bind(crypto)}return Cd(ME)}const LE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),N1={randomUUID:LE};function zE(t,l,i){t=t||{};const r=t.random??t.rng?.()??kE();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,NE(r)}function mu(t,l,i){return N1.randomUUID&&!t?N1.randomUUID():zE(t)}const Zh=()=>jE(window.location.pathname),jE=t=>{const l=t.split("/"),i=t.endsWith("/");return l[l.length-(i?2:1)]};function xn(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var BE=typeof Symbol=="function"&&Symbol.observable||"@@observable",M1=BE,xd=()=>Math.random().toString(36).substring(7).split("").join("."),UE={INIT:`@@redux/INIT${xd()}`,REPLACE:`@@redux/REPLACE${xd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${xd()}`},vu=UE;function Fh(t){if(typeof t!="object"||t===null)return!1;let l=t;for(;Object.getPrototypeOf(l)!==null;)l=Object.getPrototypeOf(l);return Object.getPrototypeOf(t)===l||Object.getPrototypeOf(t)===null}function cb(t,l,i){if(typeof t!="function")throw new Error(xn(2));if(typeof l=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(xn(0));if(typeof l=="function"&&typeof i>"u"&&(i=l,l=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(xn(1));return i(cb)(t,l)}let r=t,o=l,f=new Map,d=f,g=0,h=!1;function p(){d===f&&(d=new Map,f.forEach((A,O)=>{d.set(O,A)}))}function b(){if(h)throw new Error(xn(3));return o}function S(A){if(typeof A!="function")throw new Error(xn(4));if(h)throw new Error(xn(5));let O=!0;p();const C=g++;return d.set(C,A),function(){if(O){if(h)throw new Error(xn(6));O=!1,p(),d.delete(C),f=null}}}function v(A){if(!Fh(A))throw new Error(xn(7));if(typeof A.type>"u")throw new Error(xn(8));if(typeof A.type!="string")throw new Error(xn(17));if(h)throw new Error(xn(9));try{h=!0,o=r(o,A)}finally{h=!1}return(f=d).forEach(C=>{C()}),A}function _(A){if(typeof A!="function")throw new Error(xn(10));r=A,v({type:vu.REPLACE})}function T(){const A=S;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(xn(11));function C(){const k=O;k.next&&k.next(b())}return C(),{unsubscribe:A(C)}},[M1](){return this}}}return v({type:vu.INIT}),{dispatch:v,subscribe:S,getState:b,replaceReducer:_,[M1]:T}}function HE(t){Object.keys(t).forEach(l=>{const i=t[l];if(typeof i(void 0,{type:vu.INIT})>"u")throw new Error(xn(12));if(typeof i(void 0,{type:vu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xn(13))})}function fb(t){const l=Object.keys(t),i={};for(let f=0;f<l.length;f++){const d=l[f];typeof t[d]=="function"&&(i[d]=t[d])}const r=Object.keys(i);let o;try{HE(i)}catch(f){o=f}return function(d={},g){if(o)throw o;let h=!1;const p={};for(let b=0;b<r.length;b++){const S=r[b],v=i[S],_=d[S],T=v(_,g);if(typeof T>"u")throw g&&g.type,new Error(xn(14));p[S]=T,h=h||T!==_}return h=h||r.length!==Object.keys(d).length,h?p:d}}function bu(...t){return t.length===0?l=>l:t.length===1?t[0]:t.reduce((l,i)=>(...r)=>l(i(...r)))}function IE(...t){return l=>(i,r)=>{const o=l(i,r);let f=()=>{throw new Error(xn(15))};const d={getState:o.getState,dispatch:(h,...p)=>f(h,...p)},g=t.map(h=>h(d));return f=bu(...g)(o.dispatch),{...o,dispatch:f}}}function VE(t){return Fh(t)&&"type"in t&&typeof t.type=="string"}var db=Symbol.for("immer-nothing"),k1=Symbol.for("immer-draftable"),Xn=Symbol.for("immer-state");function Ra(t,...l){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var oa=Object,ir=oa.getPrototypeOf,yu="constructor",Yu="prototype",$d="configurable",_u="enumerable",au="writable",bs="value",hl=t=>!!t&&!!t[Xn];function Na(t){return t?hb(t)||Ku(t)||!!t[k1]||!!t[yu]?.[k1]||Ju(t)||Pu(t):!1}var XE=oa[Yu][yu].toString(),L1=new WeakMap;function hb(t){if(!t||!Yh(t))return!1;const l=ir(t);if(l===null||l===oa[Yu])return!0;const i=oa.hasOwnProperty.call(l,yu)&&l[yu];if(i===Object)return!0;if(!er(i))return!1;let r=L1.get(i);return r===void 0&&(r=Function.toString.call(i),L1.set(i,r)),r===XE}function Cs(t,l,i=!0){xs(t)===0?(i?Reflect.ownKeys(t):oa.keys(t)).forEach(o=>{l(o,t[o],t)}):t.forEach((r,o)=>l(o,r,t))}function xs(t){const l=t[Xn];return l?l.type_:Ku(t)?1:Ju(t)?2:Pu(t)?3:0}var z1=(t,l,i=xs(t))=>i===2?t.has(l):oa[Yu].hasOwnProperty.call(t,l),qd=(t,l,i=xs(t))=>i===2?t.get(l):t[l],Su=(t,l,i,r=xs(t))=>{r===2?t.set(l,i):r===3?t.add(i):t[l]=i};function QE(t,l){return t===l?t!==0||1/t===1/l:t!==t&&l!==l}var Ku=Array.isArray,Ju=t=>t instanceof Map,Pu=t=>t instanceof Set,Yh=t=>typeof t=="object",er=t=>typeof t=="function",Od=t=>typeof t=="boolean",sl=t=>t.copy_||t.base_,Kh=t=>t.modified_?t.copy_:t.base_;function eh(t,l){if(Ju(t))return new Map(t);if(Pu(t))return new Set(t);if(Ku(t))return Array[Yu].slice.call(t);const i=hb(t);if(l===!0||l==="class_only"&&!i){const r=oa.getOwnPropertyDescriptors(t);delete r[Xn];let o=Reflect.ownKeys(r);for(let f=0;f<o.length;f++){const d=o[f],g=r[d];g[au]===!1&&(g[au]=!0,g[$d]=!0),(g.get||g.set)&&(r[d]={[$d]:!0,[au]:!0,[_u]:g[_u],[bs]:t[d]})}return oa.create(ir(t),r)}else{const r=ir(t);if(r!==null&&i)return{...t};const o=oa.create(r);return oa.assign(o,t)}}function Jh(t,l=!1){return Wu(t)||hl(t)||!Na(t)||(xs(t)>1&&oa.defineProperties(t,{set:Zo,add:Zo,clear:Zo,delete:Zo}),oa.freeze(t),l&&Cs(t,(i,r)=>{Jh(r,!0)},!1)),t}function GE(){Ra(2)}var Zo={[bs]:GE};function Wu(t){return t===null||!Yh(t)?!0:oa.isFrozen(t)}var Eu="MapSet",th="Patches",pb={};function rr(t){const l=pb[t];return l||Ra(0,t),l}var ZE=t=>!!pb[t],ys,gb=()=>ys,FE=(t,l)=>({drafts_:[],parent_:t,immer_:l,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ZE(Eu)?rr(Eu):void 0});function j1(t,l){l&&(t.patchPlugin_=rr(th),t.patches_=[],t.inversePatches_=[],t.patchListener_=l)}function nh(t){ah(t),t.drafts_.forEach(YE),t.drafts_=null}function ah(t){t===ys&&(ys=t.parent_)}var B1=t=>ys=FE(ys,t);function YE(t){const l=t[Xn];l.type_===0||l.type_===1?l.revoke_():l.revoked_=!0}function U1(t,l){l.unfinalizedDrafts_=l.drafts_.length;const i=l.drafts_[0];if(t!==void 0&&t!==i){i[Xn].modified_&&(nh(l),Ra(4)),Na(t)&&(t=H1(l,t));const{patchPlugin_:o}=l;o&&o.generateReplacementPatches_(i[Xn].base_,t,l)}else t=H1(l,i);return KE(l,t,!0),nh(l),l.patches_&&l.patchListener_(l.patches_,l.inversePatches_),t!==db?t:void 0}function H1(t,l){if(Wu(l))return l;const i=l[Xn];if(!i)return Ph(l,t.handledSet_,t);if(!$u(i,t))return l;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);bb(i,t)}return i.copy_}function KE(t,l,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Jh(l,i)}function mb(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var $u=(t,l)=>t.scope_===l,JE=[];function vb(t,l,i,r){const o=sl(t),f=t.type_;if(r!==void 0&&qd(o,r,f)===l){Su(o,r,i,f);return}if(!t.draftLocations_){const g=t.draftLocations_=new Map;Cs(o,(h,p)=>{if(hl(p)){const b=g.get(p)||[];b.push(h),g.set(p,b)}})}const d=t.draftLocations_.get(l)??JE;for(const g of d)Su(o,g,i,f)}function PE(t,l,i){t.callbacks_.push(function(o){const f=l;if(!f||!$u(f,o))return;o.mapSetPlugin_?.fixSetContents(f);const d=Kh(f);vb(t,f.draft_??f,d,i),bb(f,o)})}function bb(t,l){if(t.modified_&&!t.finalized_&&(t.type_===3||(t.assigned_?.size??0)>0)){const{patchPlugin_:r}=l;if(r){const o=r.getPath(t);o&&r.generatePatches_(t,o,l)}mb(t)}}function WE(t,l,i){const{scope_:r}=t;if(hl(i)){const o=i[Xn];$u(o,r)&&o.callbacks_.push(function(){lu(t);const d=Kh(o);vb(t,i,d,l)})}else Na(i)&&t.callbacks_.push(function(){const f=sl(t);qd(f,l,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(l)??!1)===!0&&t.copy_&&Ph(qd(t.copy_,l,t.type_),r.handledSet_,r)})}function Ph(t,l,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||hl(t)||l.has(t)||!Na(t)||Wu(t)||(l.add(t),Cs(t,(r,o)=>{if(hl(o)){const f=o[Xn];if($u(f,i)){const d=Kh(f);Su(t,r,d,t.type_),mb(f)}}else Na(o)&&Ph(o,l,i)})),t}function $E(t,l){const i=Ku(t),r={type_:i?1:0,scope_:l?l.scope_:gb(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:l,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,f=Wh;i&&(o=[r],f=_s);const{revoke:d,proxy:g}=Proxy.revocable(o,f);return r.draft_=g,r.revoke_=d,[g,r]}var Wh={get(t,l){if(l===Xn)return t;const i=sl(t);if(!z1(i,l,t.type_))return qE(t,i,l);const r=i[l];if(t.finalized_||!Na(r))return r;if(r===Dd(t.base_,l)){lu(t);const o=t.type_===1?+l:l,f=ih(t.scope_,r,t,o);return t.copy_[o]=f}return r},has(t,l){return l in sl(t)},ownKeys(t){return Reflect.ownKeys(sl(t))},set(t,l,i){const r=yb(sl(t),l);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){const o=Dd(sl(t),l),f=o?.[Xn];if(f&&f.base_===i)return t.copy_[l]=i,t.assigned_.set(l,!1),!0;if(QE(i,o)&&(i!==void 0||z1(t.base_,l,t.type_)))return!0;lu(t),lh(t)}return t.copy_[l]===i&&(i!==void 0||l in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[l])||(t.copy_[l]=i,t.assigned_.set(l,!0),WE(t,l,i)),!0},deleteProperty(t,l){return lu(t),Dd(t.base_,l)!==void 0||l in t.base_?(t.assigned_.set(l,!1),lh(t)):t.assigned_.delete(l),t.copy_&&delete t.copy_[l],!0},getOwnPropertyDescriptor(t,l){const i=sl(t),r=Reflect.getOwnPropertyDescriptor(i,l);return r&&{[au]:!0,[$d]:t.type_!==1||l!=="length",[_u]:r[_u],[bs]:i[l]}},defineProperty(){Ra(11)},getPrototypeOf(t){return ir(t.base_)},setPrototypeOf(){Ra(12)}},_s={};Cs(Wh,(t,l)=>{_s[t]=function(){const i=arguments;return i[0]=i[0][0],l.apply(this,i)}});_s.deleteProperty=function(t,l){return _s.set.call(this,t,l,void 0)};_s.set=function(t,l,i){return Wh.set.call(this,t[0],l,i,t[0])};function Dd(t,l){const i=t[Xn];return(i?sl(i):t)[l]}function qE(t,l,i){const r=yb(l,i);return r?bs in r?r[bs]:r.get?.call(t.draft_):void 0}function yb(t,l){if(!(l in t))return;let i=ir(t);for(;i;){const r=Object.getOwnPropertyDescriptor(i,l);if(r)return r;i=ir(i)}}function lh(t){t.modified_||(t.modified_=!0,t.parent_&&lh(t.parent_))}function lu(t){t.copy_||(t.assigned_=new Map,t.copy_=eh(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var e3=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(l,i,r)=>{if(er(l)&&!er(i)){const f=i;i=l;const d=this;return function(h=f,...p){return d.produce(h,b=>i.call(this,b,...p))}}er(i)||Ra(6),r!==void 0&&!er(r)&&Ra(7);let o;if(Na(l)){const f=B1(this),d=ih(f,l,void 0);let g=!0;try{o=i(d),g=!1}finally{g?nh(f):ah(f)}return j1(f,r),U1(o,f)}else if(!l||!Yh(l)){if(o=i(l),o===void 0&&(o=l),o===db&&(o=void 0),this.autoFreeze_&&Jh(o,!0),r){const f=[],d=[];rr(th).generateReplacementPatches_(l,o,{patches_:f,inversePatches_:d}),r(f,d)}return o}else Ra(1,l)},this.produceWithPatches=(l,i)=>{if(er(l))return(d,...g)=>this.produceWithPatches(d,h=>l(h,...g));let r,o;return[this.produce(l,i,(d,g)=>{r=d,o=g}),r,o]},Od(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Od(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Od(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Na(t)||Ra(8),hl(t)&&(t=t3(t));const l=B1(this),i=ih(l,t,void 0);return i[Xn].isManual_=!0,ah(l),i}finishDraft(t,l){const i=t&&t[Xn];(!i||!i.isManual_)&&Ra(9);const{scope_:r}=i;return j1(r,l),U1(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,l){let i;for(i=l.length-1;i>=0;i--){const o=l[i];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}i>-1&&(l=l.slice(i+1));const r=rr(th).applyPatches_;return hl(t)?r(t,l):this.produce(t,o=>r(o,l))}};function ih(t,l,i,r){const[o,f]=Ju(l)?rr(Eu).proxyMap_(l,i):Pu(l)?rr(Eu).proxySet_(l,i):$E(l,i);return(i?.scope_??gb()).drafts_.push(o),f.callbacks_=i?.callbacks_??[],f.key_=r,i&&r!==void 0?PE(i,f,r):f.callbacks_.push(function(h){h.mapSetPlugin_?.fixSetContents(f);const{patchPlugin_:p}=h;f.modified_&&p&&p.generatePatches_(f,[],h)}),o}function t3(t){return hl(t)||Ra(10,t),_b(t)}function _b(t){if(!Na(t)||Wu(t))return t;const l=t[Xn];let i,r=!0;if(l){if(!l.modified_)return l.base_;l.finalized_=!0,i=eh(t,l.scope_.immer_.useStrictShallowCopy_),r=l.scope_.immer_.shouldUseStrictIteration()}else i=eh(t,!0);return Cs(i,(o,f)=>{Su(i,o,_b(f))},r),l&&(l.finalized_=!1),i}var n3=new e3,Sb=n3.produce;function Eb(t){return({dispatch:i,getState:r})=>o=>f=>typeof f=="function"?f(i,r,t):o(f)}var a3=Eb(),l3=Eb,i3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bu:bu.apply(null,arguments)};function I1(t,l){function i(...r){if(l){let o=l(...r);if(!o)throw new Error(ol(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>VE(r)&&r.type===t,i}var wb=class ds extends Array{constructor(...l){super(...l),Object.setPrototypeOf(this,ds.prototype)}static get[Symbol.species](){return ds}concat(...l){return super.concat.apply(this,l)}prepend(...l){return l.length===1&&Array.isArray(l[0])?new ds(...l[0].concat(this)):new ds(...l.concat(this))}};function V1(t){return Na(t)?Sb(t,()=>{}):t}function Fo(t,l,i){return t.has(l)?t.get(l):t.set(l,i(l)).get(l)}function r3(t){return typeof t=="boolean"}var s3=()=>function(l){const{thunk:i=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:f=!0}=l??{};let d=new wb;return i&&(r3(i)?d.push(a3):d.push(l3(i.extraArgument))),d},o3="RTK_autoBatch",X1=t=>l=>{setTimeout(l,t)},u3=(t={type:"raf"})=>l=>(...i)=>{const r=l(...i);let o=!0,f=!1,d=!1;const g=new Set,h=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:X1(10):t.type==="callback"?t.queueNotification:X1(t.timeout),p=()=>{d=!1,f&&(f=!1,g.forEach(b=>b()))};return Object.assign({},r,{subscribe(b){const S=()=>o&&b(),v=r.subscribe(S);return g.add(b),()=>{v(),g.delete(b)}},dispatch(b){try{return o=!b?.meta?.[o3],f=!o,f&&(d||(d=!0,h(p))),r.dispatch(b)}finally{o=!0}}})},c3=t=>function(i){const{autoBatch:r=!0}=i??{};let o=new wb(t);return r&&o.push(u3(typeof r=="object"?r:void 0)),o};function f3(t){const l=s3(),{reducer:i=void 0,middleware:r,devTools:o=!0,preloadedState:f=void 0,enhancers:d=void 0}=t||{};let g;if(typeof i=="function")g=i;else if(Fh(i))g=fb(i);else throw new Error(ol(1));let h;typeof r=="function"?h=r(l):h=l();let p=bu;o&&(p=i3({trace:!1,...typeof o=="object"&&o}));const b=IE(...h),S=c3(b);let v=typeof d=="function"?d(S):S();const _=p(...v);return cb(g,f,_)}function Tb(t){const l={},i=[];let r;const o={addCase(f,d){const g=typeof f=="string"?f:f.type;if(!g)throw new Error(ol(28));if(g in l)throw new Error(ol(29));return l[g]=d,o},addAsyncThunk(f,d){return d.pending&&(l[f.pending.type]=d.pending),d.rejected&&(l[f.rejected.type]=d.rejected),d.fulfilled&&(l[f.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:f.settled,reducer:d.settled}),o},addMatcher(f,d){return i.push({matcher:f,reducer:d}),o},addDefaultCase(f){return r=f,o}};return t(o),[l,i,r]}function d3(t){return typeof t=="function"}function h3(t,l){let[i,r,o]=Tb(l),f;if(d3(t))f=()=>V1(t());else{const g=V1(t);f=()=>g}function d(g=f(),h){let p=[i[h.type],...r.filter(({matcher:b})=>b(h)).map(({reducer:b})=>b)];return p.filter(b=>!!b).length===0&&(p=[o]),p.reduce((b,S)=>{if(S)if(hl(b)){const _=S(b,h);return _===void 0?b:_}else{if(Na(b))return Sb(b,v=>S(v,h));{const v=S(b,h);if(v===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return b},g)}return d.getInitialState=f,d}var p3=Symbol.for("rtk-slice-createasyncthunk");function g3(t,l){return`${t}/${l}`}function m3({creators:t}={}){const l=t?.asyncThunk?.[p3];return function(r){const{name:o,reducerPath:f=o}=r;if(!o)throw new Error(ol(11));const d=(typeof r.reducers=="function"?r.reducers(b3()):r.reducers)||{},g=Object.keys(d),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(N,k){const B=typeof N=="string"?N:N.type;if(!B)throw new Error(ol(12));if(B in h.sliceCaseReducersByType)throw new Error(ol(13));return h.sliceCaseReducersByType[B]=k,p},addMatcher(N,k){return h.sliceMatchers.push({matcher:N,reducer:k}),p},exposeAction(N,k){return h.actionCreators[N]=k,p},exposeCaseReducer(N,k){return h.sliceCaseReducersByName[N]=k,p}};g.forEach(N=>{const k=d[N],B={reducerName:N,type:g3(o,N),createNotation:typeof r.reducers=="function"};_3(k)?E3(B,k,p,l):y3(B,k,p)});function b(){const[N={},k=[],B=void 0]=typeof r.extraReducers=="function"?Tb(r.extraReducers):[r.extraReducers],I={...N,...h.sliceCaseReducersByType};return h3(r.initialState,L=>{for(let J in I)L.addCase(J,I[J]);for(let J of h.sliceMatchers)L.addMatcher(J.matcher,J.reducer);for(let J of k)L.addMatcher(J.matcher,J.reducer);B&&L.addDefaultCase(B)})}const S=N=>N,v=new Map,_=new WeakMap;let T;function w(N,k){return T||(T=b()),T(N,k)}function A(){return T||(T=b()),T.getInitialState()}function O(N,k=!1){function B(L){let J=L[N];return typeof J>"u"&&k&&(J=Fo(_,B,A)),J}function I(L=S){const J=Fo(v,k,()=>new WeakMap);return Fo(J,L,()=>{const G={};for(const[q,Y]of Object.entries(r.selectors??{}))G[q]=v3(Y,L,()=>Fo(_,L,A),k);return G})}return{reducerPath:N,getSelectors:I,get selectors(){return I(B)},selectSlice:B}}const C={name:o,reducer:w,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:A,...O(f),injectInto(N,{reducerPath:k,...B}={}){const I=k??f;return N.inject({reducerPath:I,reducer:w},B),{...C,...O(I,!0)}}};return C}}function v3(t,l,i,r){function o(f,...d){let g=l(f);return typeof g>"u"&&r&&(g=i()),t(g,...d)}return o.unwrapped=t,o}var $h=m3();function b3(){function t(l,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:l,...i}}return t.withTypes=()=>t,{reducer(l){return Object.assign({[l.name](...i){return l(...i)}}[l.name],{_reducerDefinitionType:"reducer"})},preparedReducer(l,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:l,reducer:i}},asyncThunk:t}}function y3({type:t,reducerName:l,createNotation:i},r,o){let f,d;if("reducer"in r){if(i&&!S3(r))throw new Error(ol(17));f=r.reducer,d=r.prepare}else f=r;o.addCase(t,f).exposeCaseReducer(l,f).exposeAction(l,d?I1(t,d):I1(t))}function _3(t){return t._reducerDefinitionType==="asyncThunk"}function S3(t){return t._reducerDefinitionType==="reducerWithPrepare"}function E3({type:t,reducerName:l},i,r,o){if(!o)throw new Error(ol(18));const{payloadCreator:f,fulfilled:d,pending:g,rejected:h,settled:p,options:b}=i,S=o(t,f,b);r.exposeAction(l,S),d&&r.addCase(S.fulfilled,d),g&&r.addCase(S.pending,g),h&&r.addCase(S.rejected,h),p&&r.addMatcher(S.settled,p),r.exposeCaseReducer(l,{fulfilled:d||Yo,pending:g||Yo,rejected:h||Yo,settled:p||Yo})}function Yo(){}function ol(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const w3={formValues:{}},Ab=$h({name:"start-screen",initialState:w3,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,l){t.startScreenStatus="HIDDEN",t.formValues=l.payload.formValues},startAuthenticatedChat(t,l){t.startScreenStatus="HIDDEN",t.loginToken=l.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,l){t.loginRequestToken=l.payload.loginRequestToken,t.formValues=l.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:T3,startAuthenticatedChat:A3,showStartScreen:C3,requestLogin:x3,loginWindowClosed:O3}=Ab.actions,D3=Ab.reducer,Cb="RESET_CHAT_STATE",xb="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Ob="SHOW_CONVERSATION_RATING_OVERLAY",Db="HIDE_CONVERSATION_RATING_OVERLAY",Rb=()=>({type:ib}),R3=()=>({type:Cb}),Nb=()=>({type:xb}),wu=(t,l=void 0)=>({type:Ob,payload:{opener:t,defaultRating:l}}),N3=()=>({type:Db}),Q1=(t,l,i)=>(r,o)=>{try{const f=o().connection.sessionId;if(!f)throw new Error("Session ID is not available");r({type:Qh,payload:{chunkId:i}}),G1(t,f,l,i,!1,r),G1(t,f,l,i,!0,r)}catch(f){console.error("Error loading source infos:",f),r({type:Xh})}},G1=(t,l,i,r,o,f)=>{const d=`/${t}/me/chat-widget/transcript/${i}/chunks/${r}?highlight=${o}`;fetch(d,{headers:{"x-bubble-chat-session-id":l}}).then(g=>{if(!g.ok)throw new Error(`HTTP error! Status: ${g.status}`);return g.json()}).then(g=>{const h={...g,chunkId:r,highlighted:o};f({type:ab,payload:h})}).catch(g=>{console.error("Error fetching source infos:",g),f({type:Xh,payload:{highlighted:o}})})},M3=()=>({type:Gh}),qh="CONNECT",ep="CONNECTING",tp="CONNECTED",np="DISCONNECTED",ap="RECONNECTED",lp="RESTORE_SESSION_ID",qu="START",ec="CLEAR_SESSION_ID",k3=[qh,ep,tp,np,ap,lp],L3=(t,l)=>({type:qh,clientName:t,querystrings:l}),z3=t=>({type:lp,sessionId:t}),j3=()=>({type:ep}),B3=()=>({type:tp}),U3=()=>({type:np}),H3=()=>({type:ap}),Mb=t=>(l,i)=>{const r=i().connection,{formValues:o,loginToken:f}=i().startScreen;let d=r.sessionId;d===void 0&&(d=mu());let g=r.userId;if(g===void 0){const b=Go.get("bubble-chat-user-id")||Go.get("bubble-chat-userId")||Go.get("bf-webclient-userId");g=b||mu(),Go.set("bubble-chat-user-id",g)}const h=new URLSearchParams(i().connection.queryString||""),p=Object.fromEntries(h.entries());l({type:qu,payload:{sessionId:d,userId:g,clientName:t,loginToken:f,querystrings:{...p,...o}}})},Os=()=>(t,l)=>{const i=l().connection.sessionId||"";if(t(I3(i)),t(R3()),l().settings.enableStartScreen)t(C3());else{const r=Zh();return t(Mb(r))}},I3=t=>({type:ec,payload:{sessionId:t}}),gl=nE,kt=iE,Nt=()=>{const t=kt(i=>i.intl.messages);return i=>t[i]||void 0};var hi=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(hi||{}),Tu=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(Tu||{});const V3="_container_q2uun_1",X3="_chatcontent_q2uun_6",Q3="_accessabilityHidden_q2uun_12",Rd={container:V3,chatcontent:X3,accessabilityHidden:Q3},G3="_messageContainer_1t640_1",Z3="_messages_1t640_13",Z1={messageContainer:G3,messages:Z3};var F3=Object.defineProperty,Y3=(t,l)=>{for(var i in l)F3(t,i,{get:l[i],enumerable:!0,configurable:!0,set:r=>l[i]=()=>r})},Oe=32,Fe=9,Ln=13,Dt=10,_a=96,Ds=126,mi=91,Au=94,Xl=62,Cu=35,pl=45,sr=61,xu=92,ip=42,tc=95,nc=60,rp=64,Ou=93,sp=33,Ko=38,op=58,tr=102,nr=104,Vl=119,Nd=116,F1=112,K3=115,J3=160,P3=12,kb=46,Du=47,W3=43,$3=124,q3=123,Y1=120,K1=88,Ru=48,Nu=57,Ss=65,Es=90,Mu=97,ku=122,Ma=128,ew=32,tw={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},V=tw,nw={};Y3(nw,{startsWith:()=>ut,slugify:()=>Gl,skipWhitespace:()=>yn,shouldFilterTag:()=>oh,sanitizer:()=>cp,parseFrontmatterBounds:()=>Lb,isVoidElement:()=>gs,isUnicodeWhitespace:()=>ur,isUnicodePunctuation:()=>pp,isAlnumCode:()=>fp,isASCIIWhitespace:()=>ju,isASCIIPunctuation:()=>ow,inlineCharTypeTable:()=>zu,includes:()=>lw,htmlAttrsToJSXProps:()=>up,hasKeys:()=>Hb,getTag:()=>fw,getOverrideProps:()=>dw,get:()=>gp,findLineEnd:()=>ye,extractPlainText:()=>Ib,endsWith:()=>dp,decodeEntityReferences:()=>ac,charClassTable:()=>or,applyTagFilterToText:()=>uh,VOID_ELEMENTS:()=>sh,SHOULD_RENDER_AS_BLOCK_R:()=>Bb,SANITIZE_R:()=>Lu,NAMED_CODES_TO_UNICODE:()=>rh,HTML_TO_JSX_MAP:()=>jb,HTML_CHAR_CODE_R:()=>zb,ATTRIBUTES_TO_SANITIZE:()=>Ub});var aw={af:"",applyfunction:"",ic:"",invisiblecomma:"",invisibletimes:"",it:"",lrm:"",negativemediumspace:"",negativethickspace:"",negativethinspace:"",negativeverythinspace:"",nobreak:"",rlm:"",shy:"",zerowidthspace:"",zwj:"",zwnj:"",downbreve:"̑",tdot:"⃛",tripledot:"⃛",dotdot:"⃜",tab:" ",newline:`
|
|
14
|
+
`,emsp:" ",emsp13:" ",emsp14:" ",ensp:" ",hairsp:" ",mediumspace:" ",puncsp:" ",thinsp:" ",thinspace:" ",verythinspace:" ",nbsp:" ",nonbreakingspace:" ",numsp:" ",thickspace:" ",oline:"‾",overbar:"‾",lowbar:"_",underbar:"_",dash:"‐",hyphen:"‐",ndash:"–",mdash:"—",horbar:"―",comma:",",semi:";",bsemi:"⁏",colon:":",Colone:"⩴",excl:"!",iexcl:"¡",quest:"?",iquest:"¿",period:".",nldr:"‥",hellip:"…",mldr:"…",centerdot:"·",middot:"·",apos:"'",lsquo:"‘",opencurlyquote:"‘",closecurlyquote:"’",rsquo:"’",rsquor:"’",lsquor:"‚",sbquo:"‚",lsaquo:"‹",rsaquo:"›",quot:'"',ldquo:"“",opencurlydoublequote:"“",closecurlydoublequote:"”",rdquo:"”",rdquor:"”",bdquo:"„",ldquor:"„",laquo:"«",raquo:"»",lpar:"(",rpar:")",lbrack:"[",lsqb:"[",rbrack:"]",rsqb:"]",lbrace:"{",lcub:"{",rbrace:"}",rcub:"}",lceil:"⌈",leftceiling:"⌈",rceil:"⌉",rightceiling:"⌉",leftfloor:"⌊",lfloor:"⌊",rfloor:"⌋",rightfloor:"⌋",lopar:"⦅",ropar:"⦆",lbrke:"⦋",rbrke:"⦌",lbrkslu:"⦍",rbrksld:"⦎",lbrksld:"⦏",rbrkslu:"⦐",langd:"⦑",rangd:"⦒",lparlt:"⦓",rpargt:"⦔",gtlpar:"⦕",ltrpar:"⦖",leftdoublebracket:"⟦",lobrk:"⟦",rightdoublebracket:"⟧",robrk:"⟧",lang:"⟨",langle:"⟨",leftanglebracket:"⟨",rang:"⟩",rangle:"⟩",rightanglebracket:"⟩",Lang:"⟪",Rang:"⟫",loang:"⟬",roang:"⟭",lbbrk:"❲",rbbrk:"❳",Verbar:"‖",Vert:"‖",sect:"§",para:"¶",commat:"@",ast:"*",midast:"*",sol:"/",bsol:"\\",amp:"&",num:"#",percnt:"%",permil:"‰",pertenk:"‱",dagger:"†",Dagger:"‡",ddagger:"‡",bull:"•",bullet:"•",hybull:"⁃",prime:"′",Prime:"″",tprime:"‴",qprime:"⁗",backprime:"‵",bprime:"‵",caret:"⁁",diacriticalgrave:"`",grave:"`",acute:"´",diacriticalacute:"´",diacriticaltilde:"˜",tilde:"˜",hat:"^",macr:"¯",strns:"¯",breve:"˘",diacriticaldot:"˙",dot:"˙",die:"¨",Dot:"¨",doubledot:"¨",uml:"¨",ring:"˚",dblac:"˝",diacriticaldoubleacute:"˝",cedil:"¸",cedilla:"¸",ogon:"˛",circ:"ˆ",caron:"ˇ",hacek:"ˇ",deg:"°",copy:"©",circledr:"®",reg:"®",copysr:"℗",weierp:"℘",wp:"℘",rx:"℞",mho:"℧",iiota:"℩",larr:"←",leftarrow:"←",shortleftarrow:"←",slarr:"←",nlarr:"↚",nleftarrow:"↚",rarr:"→",rightarrow:"→",shortrightarrow:"→",srarr:"→",nrarr:"↛",nrightarrow:"↛",shortuparrow:"↑",uarr:"↑",uparrow:"↑",darr:"↓",downarrow:"↓",shortdownarrow:"↓",harr:"↔",leftrightarrow:"↔",nharr:"↮",nleftrightarrow:"↮",updownarrow:"↕",varr:"↕",nwarr:"↖",nwarrow:"↖",upperleftarrow:"↖",nearr:"↗",nearrow:"↗",upperrightarrow:"↗",lowerrightarrow:"↘",searr:"↘",searrow:"↘",lowerleftarrow:"↙",swarr:"↙",swarrow:"↙",rarrw:"↝",rightsquigarrow:"↝",nrarrw:"↝̸",Larr:"↞",twoheadleftarrow:"↞",Uarr:"↟",Rarr:"↠",twoheadrightarrow:"↠",Darr:"↡",larrtl:"↢",leftarrowtail:"↢",rarrtl:"↣",rightarrowtail:"↣",leftteearrow:"↤",mapstoleft:"↤",mapstoup:"↥",upteearrow:"↥",map:"↦",mapsto:"↦",rightteearrow:"↦",downteearrow:"↧",mapstodown:"↧",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",larrlp:"↫",looparrowleft:"↫",looparrowright:"↬",rarrlp:"↬",harrw:"↭",leftrightsquigarrow:"↭",lsh:"↰",rsh:"↱",ldsh:"↲",rdsh:"↳",crarr:"↵",cularr:"↶",curvearrowleft:"↶",curarr:"↷",curvearrowright:"↷",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",leftharpoonup:"↼",leftvector:"↼",lharu:"↼",downleftvector:"↽",leftharpoondown:"↽",lhard:"↽",rightupvector:"↾",uharr:"↾",upharpoonright:"↾",leftupvector:"↿",uharl:"↿",upharpoonleft:"↿",rharu:"⇀",rightharpoonup:"⇀",rightvector:"⇀",downrightvector:"⇁",rhard:"⇁",rightharpoondown:"⇁",dharr:"⇂",downharpoonright:"⇂",rightdownvector:"⇂",dharl:"⇃",downharpoonleft:"⇃",leftdownvector:"⇃",rightarrowleftarrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",udarr:"⇅",uparrowdownarrow:"⇅",leftarrowrightarrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",leftleftarrows:"⇇",llarr:"⇇",upuparrows:"⇈",uuarr:"⇈",rightrightarrows:"⇉",rrarr:"⇉",ddarr:"⇊",downdownarrows:"⇊",leftrightharpoons:"⇋",lrhar:"⇋",reverseequilibrium:"⇋",equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",doubleleftarrow:"⇐",lArr:"⇐",Leftarrow:"⇐",nlArr:"⇍",nLeftarrow:"⇍",doubleuparrow:"⇑",uArr:"⇑",Uparrow:"⇑",doublerightarrow:"⇒",implies:"⇒",rArr:"⇒",Rightarrow:"⇒",nrArr:"⇏",nRightarrow:"⇏",dArr:"⇓",doubledownarrow:"⇓",Downarrow:"⇓",doubleleftrightarrow:"⇔",hArr:"⇔",iff:"⇔",Leftrightarrow:"⇔",nhArr:"⇎",nLeftrightarrow:"⇎",doubleupdownarrow:"⇕",Updownarrow:"⇕",vArr:"⇕",nwArr:"⇖",neArr:"⇗",seArr:"⇘",swArr:"⇙",laarr:"⇚",lleftarrow:"⇚",raarr:"⇛",rrightarrow:"⇛",zigrarr:"⇝",larrb:"⇤",leftarrowbar:"⇤",rarrb:"⇥",rightarrowbar:"⇥",downarrowuparrow:"⇵",duarr:"⇵",loarr:"⇽",roarr:"⇾",hoarr:"⇿",forall:"∀",comp:"∁",complement:"∁",part:"∂",partiald:"∂",npart:"∂̸",exist:"∃",exists:"∃",nexist:"∄",nexists:"∄",notexists:"∄",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",del:"∇",nabla:"∇",element:"∈",in:"∈",isin:"∈",isinv:"∈",notelement:"∉",notin:"∉",notinva:"∉",ni:"∋",niv:"∋",reverseelement:"∋",suchthat:"∋",notni:"∌",notniva:"∌",notreverseelement:"∌",backepsilon:"϶",bepsi:"϶",prod:"∏",product:"∏",coprod:"∐",coproduct:"∐",sum:"∑",plus:"+",plusminus:"±",plusmn:"±",pm:"±",div:"÷",divide:"÷",times:"×",lt:"<",nless:"≮",nlt:"≮",notless:"≮",nvlt:"<⃒",equals:"=",ne:"≠",notequal:"≠",bne:"=⃥",equal:"⩵",gt:">",ngt:"≯",ngtr:"≯",notgreater:"≯",nvgt:">⃒",not:"¬",verbar:"|",vert:"|",verticalline:"|",brvbar:"¦",minus:"−",minusplus:"∓",mnplus:"∓",mp:"∓",dotplus:"∔",plusdo:"∔",frasl:"⁄",backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",lowast:"∗",compfn:"∘",smallcircle:"∘",radic:"√",sqrt:"√",prop:"∝",proportional:"∝",propto:"∝",varpropto:"∝",vprop:"∝",infin:"∞",angrt:"∟",ang:"∠",angle:"∠",nang:"∠⃒",angmsd:"∡",measuredangle:"∡",angsph:"∢",mid:"∣",shortmid:"∣",smid:"∣",verticalbar:"∣",nmid:"∤",notverticalbar:"∤",nshortmid:"∤",nsmid:"∤",doubleverticalbar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",notdoubleverticalbar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",and:"∧",wedge:"∧",or:"∨",vee:"∨",cap:"∩",caps:"∩︀",cup:"∪",cups:"∪︀",int:"∫",integral:"∫",Int:"∬",iiint:"∭",tint:"∭",iiiint:"⨌",qint:"⨌",conint:"∮",contourintegral:"∮",oint:"∮",Conint:"∯",doublecontourintegral:"∯",cconint:"∰",cwint:"∱",clockwisecontourintegral:"∲",cwconint:"∲",awconint:"∳",counterclockwisecontourintegral:"∳",there4:"∴",therefore:"∴",becaus:"∵",because:"∵",ratio:"∶",Colon:"∷",proportion:"∷",dotminus:"∸",minusd:"∸",mddot:"∺",homtht:"∻",sim:"∼",thicksim:"∼",thksim:"∼",Tilde:"∼",nottilde:"≁",nsim:"≁",nvsim:"∼⃒",backsim:"∽",bsim:"∽",race:"∽̱",ac:"∾",mstpos:"∾",ace:"∾̳",acd:"∿",verticaltilde:"≀",wr:"≀",wreath:"≀",eqsim:"≂",equaltilde:"≂",esim:"≂",nesim:"≂̸",notequaltilde:"≂̸",sime:"≃",simeq:"≃",tildeequal:"≃",nottildeequal:"≄",nsime:"≄",nsimeq:"≄",cong:"≅",tildefullequal:"≅",ncong:"≇",nottildefullequal:"≇",simne:"≆",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",tildetilde:"≈",nap:"≉",napprox:"≉",nottildetilde:"≉",ape:"≊",approxeq:"≊",apid:"≋",napid:"≋̸",backcong:"≌",bcong:"≌",asympeq:"≍",CupCap:"≍",notcupcap:"≭",nvap:"≍⃒",bump:"≎",Bumpeq:"≎",humpdownhump:"≎",nbump:"≎̸",nothumpdownhump:"≎̸",bumpe:"≏",bumpeq:"≏",humpequal:"≏",nbumpe:"≏̸",nothumpequal:"≏̸",doteq:"≐",dotequal:"≐",esdot:"≐",nedot:"≐̸",doteqdot:"≑",eDot:"≑",efdot:"≒",fallingdotseq:"≒",erdot:"≓",risingdotseq:"≓",assign:"≔",colone:"≔",coloneq:"≔",ecolon:"≕",eqcolon:"≕",ecir:"≖",eqcirc:"≖",circeq:"≗",cire:"≗",wedgeq:"≙",veeeq:"≚",triangleq:"≜",trie:"≜",equest:"≟",questeq:"≟",congruent:"≡",equiv:"≡",nequiv:"≢",notcongruent:"≢",bnequiv:"≡⃥",le:"≤",leq:"≤",nle:"≰",nleq:"≰",notlessequal:"≰",nvle:"≤⃒",ge:"≥",geq:"≥",greaterequal:"≥",nge:"≱",ngeq:"≱",notgreaterequal:"≱",nvge:"≥⃒",lE:"≦",leqq:"≦",lessfullequal:"≦",nlE:"≦̸",nleqq:"≦̸",gE:"≧",geqq:"≧",greaterfullequal:"≧",ngE:"≧̸",ngeqq:"≧̸",notgreaterfullequal:"≧̸",lnE:"≨",lneqq:"≨",lvertneqq:"≨︀",lvne:"≨︀",gnE:"≩",gneqq:"≩",gvertneqq:"≩︀",gvne:"≩︀",ll:"≪",Lt:"≪",nestedlessless:"≪",nltv:"≪̸",notlessless:"≪̸",nLt:"≪⃒",gg:"≫",Gt:"≫",nestedgreatergreater:"≫",ngtv:"≫̸",notgreatergreater:"≫̸",nGt:"≫⃒",between:"≬",twixt:"≬",lesssim:"≲",lesstilde:"≲",lsim:"≲",nlsim:"≴",notlesstilde:"≴",greatertilde:"≳",gsim:"≳",gtrsim:"≳",ngsim:"≵",notgreatertilde:"≵",lessgreater:"≶",lessgtr:"≶",lg:"≶",notlessgreater:"≸",ntlg:"≸",gl:"≷",greaterless:"≷",gtrless:"≷",notgreaterless:"≹",ntgl:"≹",pr:"≺",prec:"≺",precedes:"≺",notprecedes:"⊀",npr:"⊀",nprec:"⊀",sc:"≻",succ:"≻",succeeds:"≻",notsucceeds:"⊁",nsc:"⊁",nsucc:"⊁",prcue:"≼",preccurlyeq:"≼",precedesslantequal:"≼",notprecedesslantequal:"⋠",nprcue:"⋠",sccue:"≽",succcurlyeq:"≽",succeedsslantequal:"≽",notsucceedsslantequal:"⋡",nsccue:"⋡",precedestilde:"≾",precsim:"≾",prsim:"≾",scsim:"≿",succeedstilde:"≿",succsim:"≿",notsucceedstilde:"≿̸",sub:"⊂",subset:"⊂",nsub:"⊄",notsubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",sup:"⊃",superset:"⊃",supset:"⊃",nsup:"⊅",notsuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",sube:"⊆",subseteq:"⊆",subsetequal:"⊆",notsubsetequal:"⊈",nsube:"⊈",nsubseteq:"⊈",supe:"⊇",supersetequal:"⊇",supseteq:"⊇",notsupersetequal:"⊉",nsupe:"⊉",nsupseteq:"⊉",subne:"⊊",subsetneq:"⊊",varsubsetneq:"⊊︀",vsubne:"⊊︀",supne:"⊋",supsetneq:"⊋",varsupsetneq:"⊋︀",vsupne:"⊋︀",cupdot:"⊍",unionplus:"⊎",uplus:"⊎",sqsub:"⊏",sqsubset:"⊏",squaresubset:"⊏",notsquaresubset:"⊏̸",sqsup:"⊐",sqsupset:"⊐",squaresuperset:"⊐",notsquaresuperset:"⊐̸",sqsube:"⊑",sqsubseteq:"⊑",squaresubsetequal:"⊑",notsquaresubsetequal:"⋢",nsqsube:"⋢",sqsupe:"⊒",sqsupseteq:"⊒",squaresupersetequal:"⊒",notsquaresupersetequal:"⋣",nsqsupe:"⋣",sqcap:"⊓",sqcaps:"⊓︀",squareintersection:"⊓",sqcup:"⊔",sqcups:"⊔︀",squareunion:"⊔",circleplus:"⊕",oplus:"⊕",circleminus:"⊖",ominus:"⊖",circletimes:"⊗",otimes:"⊗",osol:"⊘",circledot:"⊙",odot:"⊙",circledcirc:"⊚",ocir:"⊚",circledast:"⊛",oast:"⊛",circleddash:"⊝",odash:"⊝",boxplus:"⊞",plusb:"⊞",boxminus:"⊟",minusb:"⊟",boxtimes:"⊠",timesb:"⊠",dotsquare:"⊡",sdotb:"⊡",righttee:"⊢",vdash:"⊢",nvdash:"⊬",dashv:"⊣",lefttee:"⊣",downtee:"⊤",top:"⊤",bot:"⊥",bottom:"⊥",perp:"⊥",uptee:"⊥",models:"⊧",doublerighttee:"⊨",vDash:"⊨",nvDash:"⊭",Vdash:"⊩",nVdash:"⊮",vvdash:"⊪",VDash:"⊫",nVDash:"⊯",prurel:"⊰",lefttriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",nltri:"⋪",notlefttriangle:"⋪",ntriangleleft:"⋪",righttriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",notrighttriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",lefttriangleequal:"⊴",ltrie:"⊴",trianglelefteq:"⊴",nltrie:"⋬",notlefttriangleequal:"⋬",ntrianglelefteq:"⋬",nvltrie:"⊴⃒",righttriangleequal:"⊵",rtrie:"⊵",trianglerighteq:"⊵",notrighttriangleequal:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",nvrtrie:"⊵⃒",origof:"⊶",imof:"⊷",multimap:"⊸",mumap:"⊸",hercon:"⊹",intcal:"⊺",intercal:"⊺",veebar:"⊻",barvee:"⊽",angrtvb:"⊾",lrtri:"⊿",bigwedge:"⋀",Wedge:"⋀",xwedge:"⋀",bigvee:"⋁",Vee:"⋁",xvee:"⋁",bigcap:"⋂",intersection:"⋂",xcap:"⋂",bigcup:"⋃",union:"⋃",xcup:"⋃",diam:"⋄",diamond:"⋄",sdot:"⋅",sstarf:"⋆",Star:"⋆",divideontimes:"⋇",divonx:"⋇",bowtie:"⋈",ltimes:"⋉",rtimes:"⋊",leftthreetimes:"⋋",lthree:"⋋",rightthreetimes:"⋌",rthree:"⋌",backsimeq:"⋍",bsime:"⋍",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",Sub:"⋐",Subset:"⋐",Sup:"⋑",Supset:"⋑",Cap:"⋒",Cup:"⋓",fork:"⋔",pitchfork:"⋔",epar:"⋕",lessdot:"⋖",ltdot:"⋖",gtdot:"⋗",gtrdot:"⋗",Ll:"⋘",nll:"⋘̸",Gg:"⋙",ggg:"⋙",ngg:"⋙̸",leg:"⋚",lesg:"⋚︀",lesseqgtr:"⋚",lessequalgreater:"⋚",gel:"⋛",gesl:"⋛︀",greaterequalless:"⋛",gtreqless:"⋛",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",lnsim:"⋦",gnsim:"⋧",precnsim:"⋨",prnsim:"⋨",scnsim:"⋩",succnsim:"⋩",vellip:"⋮",ctdot:"⋯",utdot:"⋰",dtdot:"⋱",disin:"⋲",isinsv:"⋳",isins:"⋴",isindot:"⋵",notindot:"⋵̸",notinvc:"⋶",notinvb:"⋷",isine:"⋹",notine:"⋹̸",nisd:"⋺",xnis:"⋻",nis:"⋼",notnivc:"⋽",notnivb:"⋾",barwed:"⌅",barwedge:"⌅",Barwed:"⌆",doublebarwedge:"⌆",drcrop:"⌌",dlcrop:"⌍",urcrop:"⌎",ulcrop:"⌏",bnot:"⌐",profline:"⌒",profsurf:"⌓",telrec:"⌕",target:"⌖",ulcorn:"⌜",ulcorner:"⌜",urcorn:"⌝",urcorner:"⌝",dlcorn:"⌞",llcorner:"⌞",drcorn:"⌟",lrcorner:"⌟",frown:"⌢",sfrown:"⌢",smile:"⌣",ssmile:"⌣",cylcty:"⌭",profalar:"⌮",topbot:"⌶",ovbar:"⌽",solbar:"⌿",angzarr:"⍼",lmoust:"⎰",lmoustache:"⎰",rmoust:"⎱",rmoustache:"⎱",overbracket:"⎴",tbrk:"⎴",bbrk:"⎵",underbracket:"⎵",bbrktbrk:"⎶",overparenthesis:"⏜",underparenthesis:"⏝",overbrace:"⏞",underbrace:"⏟",trpezium:"⏢",elinters:"⏧",blank:"␣",boxh:"─",horizontalline:"─",boxv:"│",boxdr:"┌",boxdl:"┐",boxur:"└",boxul:"┘",boxvr:"├",boxvl:"┤",boxhd:"┬",boxhu:"┴",boxvh:"┼",boxH:"═",boxV:"║",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxvR:"╞",boxVr:"╟",boxVR:"╠",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxvH:"╪",boxVh:"╫",boxVH:"╬",uhblk:"▀",lhblk:"▄",block:"█",blk14:"░",blk12:"▒",blk34:"▓",squ:"□",square:"□",blacksquare:"▪",filledverysmallsquare:"▪",squarf:"▪",squf:"▪",emptyverysmallsquare:"▫",rect:"▭",marker:"▮",fltns:"▱",bigtriangleup:"△",xutri:"△",blacktriangle:"▴",utrif:"▴",triangle:"▵",utri:"▵",blacktriangleright:"▸",rtrif:"▸",rtri:"▹",triangleright:"▹",bigtriangledown:"▽",xdtri:"▽",blacktriangledown:"▾",dtrif:"▾",dtri:"▿",triangledown:"▿",blacktriangleleft:"◂",ltrif:"◂",ltri:"◃",triangleleft:"◃",loz:"◊",lozenge:"◊",cir:"○",tridot:"◬",bigcirc:"◯",xcirc:"◯",ultri:"◸",urtri:"◹",lltri:"◺",emptysmallsquare:"◻",filledsmallsquare:"◼",bigstar:"★",starf:"★",star:"☆",phone:"☎",female:"♀",male:"♂",spades:"♠",spadesuit:"♠",clubs:"♣",clubsuit:"♣",hearts:"♥",heartsuit:"♥",diamondsuit:"♦",diams:"♦",sung:"♪",check:"✓",checkmark:"✓",cross:"✗",malt:"✠",maltese:"✠",sext:"✶",verticalseparator:"❘",bsolhsub:"⟈",suphsol:"⟉",longleftarrow:"⟵",xlarr:"⟵",longrightarrow:"⟶",xrarr:"⟶",longleftrightarrow:"⟷",xharr:"⟷",doublelongleftarrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",doublelongrightarrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",doublelongleftrightarrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",longmapsto:"⟼",xmap:"⟼",dzigrarr:"⟿",nvlarr:"⤂",nvrarr:"⤃",nvharr:"⤄",Map:"⤅",lbarr:"⤌",bkarow:"⤍",lBarr:"⤎",dbkarow:"⤏",rBarr:"⤏",drbkarow:"⤐",rbarr:"⤐",RBarr:"⤐",ddotrahd:"⤑",uparrowbar:"⤒",downarrowbar:"⤓",Rarrtl:"⤖",latail:"⤙",ratail:"⤚",lAtail:"⤛",rAtail:"⤜",larrfs:"⤝",rarrfs:"⤞",larrbfs:"⤟",rarrbfs:"⤠",nwarhk:"⤣",nearhk:"⤤",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",nwnear:"⤧",nesear:"⤨",toea:"⤨",seswar:"⤩",tosa:"⤩",swnwar:"⤪",rarrc:"⤳",nrarrc:"⤳̸",cudarrr:"⤵",ldca:"⤶",rdca:"⤷",cudarrl:"⤸",larrpl:"⤹",curarrm:"⤼",cularrp:"⤽",rarrpl:"⥅",harrcir:"⥈",uarrocir:"⥉",lurdshar:"⥊",ldrushar:"⥋",leftrightvector:"⥎",rightupdownvector:"⥏",downleftrightvector:"⥐",leftupdownvector:"⥑",leftvectorbar:"⥒",rightvectorbar:"⥓",rightupvectorbar:"⥔",rightdownvectorbar:"⥕",downleftvectorbar:"⥖",downrightvectorbar:"⥗",leftupvectorbar:"⥘",leftdownvectorbar:"⥙",leftteevector:"⥚",rightteevector:"⥛",rightupteevector:"⥜",rightdownteevector:"⥝",downleftteevector:"⥞",downrightteevector:"⥟",leftupteevector:"⥠",leftdownteevector:"⥡",lhar:"⥢",uhar:"⥣",rhar:"⥤",dhar:"⥥",luruhar:"⥦",ldrdhar:"⥧",ruluhar:"⥨",rdldhar:"⥩",lharul:"⥪",llhard:"⥫",rharul:"⥬",lrhard:"⥭",udhar:"⥮",upequilibrium:"⥮",duhar:"⥯",reverseupequilibrium:"⥯",roundimplies:"⥰",erarr:"⥱",simrarr:"⥲",larrsim:"⥳",rarrsim:"⥴",rarrap:"⥵",ltlarr:"⥶",gtrarr:"⥸",subrarr:"⥹",suplarr:"⥻",lfisht:"⥼",rfisht:"⥽",ufisht:"⥾",dfisht:"⥿",vzigzag:"⦚",vangrt:"⦜",angrtvbd:"⦝",ange:"⦤",range:"⦥",dwangle:"⦦",uwangle:"⦧",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",bemptyv:"⦰",demptyv:"⦱",cemptyv:"⦲",raemptyv:"⦳",laemptyv:"⦴",ohbar:"⦵",omid:"⦶",opar:"⦷",operp:"⦹",olcross:"⦻",odsold:"⦼",olcir:"⦾",ofcir:"⦿",olt:"⧀",ogt:"⧁",cirscir:"⧂",cirE:"⧃",solb:"⧄",bsolb:"⧅",boxbox:"⧉",trisb:"⧍",rtriltri:"⧎",lefttrianglebar:"⧏",notlefttrianglebar:"⧏̸",righttrianglebar:"⧐",notrighttrianglebar:"⧐̸",iinfin:"⧜",infintie:"⧝",nvinfin:"⧞",eparsl:"⧣",smeparsl:"⧤",eqvparsl:"⧥",blacklozenge:"⧫",lozf:"⧫",ruledelayed:"⧴",dsol:"⧶",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",biguplus:"⨄",xuplus:"⨄",bigsqcup:"⨆",xsqcup:"⨆",fpartint:"⨍",cirfnint:"⨐",awint:"⨑",rppolint:"⨒",scpolint:"⨓",npolint:"⨔",pointint:"⨕",quatint:"⨖",intlarhk:"⨗",pluscir:"⨢",plusacir:"⨣",simplus:"⨤",plusdu:"⨥",plussim:"⨦",plustwo:"⨧",mcomma:"⨩",minusdu:"⨪",loplus:"⨭",roplus:"⨮",Cross:"⨯",timesd:"⨰",timesbar:"⨱",smashp:"⨳",lotimes:"⨴",rotimes:"⨵",otimesas:"⨶",Otimes:"⨷",odiv:"⨸",triplus:"⨹",triminus:"⨺",tritime:"⨻",intprod:"⨼",iprod:"⨼",amalg:"⨿",capdot:"⩀",ncup:"⩂",ncap:"⩃",capand:"⩄",cupor:"⩅",cupcap:"⩆",capcup:"⩇",cupbrcap:"⩈",capbrcup:"⩉",cupcup:"⩊",capcap:"⩋",ccups:"⩌",ccaps:"⩍",ccupssm:"⩐",And:"⩓",Or:"⩔",andand:"⩕",oror:"⩖",orslope:"⩗",andslope:"⩘",andv:"⩚",orv:"⩛",andd:"⩜",ord:"⩝",wedbar:"⩟",sdote:"⩦",simdot:"⩪",congdot:"⩭",ncongdot:"⩭̸",easter:"⩮",apacir:"⩯",apE:"⩰",nape:"⩰̸",eplus:"⩱",pluse:"⩲",Esim:"⩳",ddotseq:"⩷",eddot:"⩷",equivdd:"⩸",ltcir:"⩹",gtcir:"⩺",ltquest:"⩻",gtquest:"⩼",leqslant:"⩽",les:"⩽",lessslantequal:"⩽",nleqslant:"⩽̸",nles:"⩽̸",notlessslantequal:"⩽̸",geqslant:"⩾",ges:"⩾",greaterslantequal:"⩾",ngeqslant:"⩾̸",nges:"⩾̸",notgreaterslantequal:"⩾̸",lesdot:"⩿",gesdot:"⪀",lesdoto:"⪁",gesdoto:"⪂",lesdotor:"⪃",gesdotol:"⪄",lap:"⪅",lessapprox:"⪅",gap:"⪆",gtrapprox:"⪆",lne:"⪇",lneq:"⪇",gne:"⪈",gneq:"⪈",lnap:"⪉",lnapprox:"⪉",gnap:"⪊",gnapprox:"⪊",lEg:"⪋",lesseqqgtr:"⪋",gEl:"⪌",gtreqqless:"⪌",lsime:"⪍",gsime:"⪎",lsimg:"⪏",gsiml:"⪐",lge:"⪑",gle:"⪒",lesges:"⪓",gesles:"⪔",els:"⪕",eqslantless:"⪕",egs:"⪖",eqslantgtr:"⪖",elsdot:"⪗",egsdot:"⪘",el:"⪙",eg:"⪚",siml:"⪝",simg:"⪞",simle:"⪟",simge:"⪠",lessless:"⪡",notnestedlessless:"⪡̸",greatergreater:"⪢",notnestedgreatergreater:"⪢̸",glj:"⪤",gla:"⪥",ltcc:"⪦",gtcc:"⪧",lescc:"⪨",gescc:"⪩",smt:"⪪",lat:"⪫",smte:"⪬",smtes:"⪬︀",late:"⪭",lates:"⪭︀",bumpE:"⪮",pre:"⪯",precedesequal:"⪯",preceq:"⪯",notprecedesequal:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",sce:"⪰",succeedsequal:"⪰",succeq:"⪰",notsucceedsequal:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",prE:"⪳",scE:"⪴",precneqq:"⪵",prne:"⪵",scne:"⪶",succneqq:"⪶",prap:"⪷",precapprox:"⪷",scap:"⪸",succapprox:"⪸",precnapprox:"⪹",prnap:"⪹",scnap:"⪺",succnapprox:"⪺",Pr:"⪻",Sc:"⪼",subdot:"⪽",supdot:"⪾",subplus:"⪿",supplus:"⫀",submult:"⫁",supmult:"⫂",subedot:"⫃",supedot:"⫄",subE:"⫅",subseteqq:"⫅",nsubE:"⫅̸",nsubseteqq:"⫅̸",supE:"⫆",supseteqq:"⫆",nsupE:"⫆̸",nsupseteqq:"⫆̸",subsim:"⫇",supsim:"⫈",subnE:"⫋",subsetneqq:"⫋",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",supnE:"⫌",supsetneqq:"⫌",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",csub:"⫏",csup:"⫐",csube:"⫑",csupe:"⫒",subsup:"⫓",supsub:"⫔",subsub:"⫕",supsup:"⫖",suphsub:"⫗",supdsub:"⫘",forkv:"⫙",topfork:"⫚",mlcp:"⫛",Dashv:"⫤",doublelefttee:"⫤",vdashl:"⫦",barv:"⫧",vbar:"⫨",vbarv:"⫩",Vbar:"⫫",Not:"⫬",bNot:"⫭",rnmid:"⫮",cirmid:"⫯",midcir:"⫰",topcir:"⫱",nhpar:"⫲",parsim:"⫳",parsl:"⫽",nparsl:"⫽⃥",flat:"♭",natur:"♮",natural:"♮",sharp:"♯",curren:"¤",cent:"¢",dollar:"$",pound:"£",yen:"¥",euro:"€",sup1:"¹",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",sup2:"²",frac23:"⅔",frac25:"⅖",sup3:"³",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",afr:"𝔞",aopf:"𝕒",ascr:"𝒶",Afr:"𝔄",Aopf:"𝔸",Ascr:"𝒜",ordf:"ª",aacute:"á",Aacute:"Á",agrave:"à",Agrave:"À",abreve:"ă",Abreve:"Ă",acirc:"â",Acirc:"Â",aring:"å",angst:"Å",Aring:"Å",auml:"ä",Auml:"Ä",atilde:"ã",Atilde:"Ã",aogon:"ą",Aogon:"Ą",amacr:"ā",Amacr:"Ā",aelig:"Æ",AElig:"Æ",bfr:"𝔟",bopf:"𝕓",bscr:"𝒷",bernou:"ℬ",bernoullis:"ℬ",Bfr:"𝔅",Bopf:"𝔹",Bscr:"ℬ",cfr:"𝔠",copf:"𝕔",cscr:"𝒸",cayleys:"ℭ",Cfr:"ℭ",complexes:"ℂ",Copf:"ℂ",Cscr:"𝒞",cacute:"ć",Cacute:"Ć",ccirc:"ĉ",Ccirc:"Ĉ",ccaron:"č",Ccaron:"Č",cdot:"ċ",Cdot:"Ċ",ccedil:"ç",Ccedil:"Ç",incare:"℅",dfr:"𝔡",differentiald:"ⅆ",dopf:"𝕕",dscr:"𝒹",capitaldifferentiald:"ⅅ",dd:"ⅅ",DD:"ⅅ",Dfr:"𝔇",Dopf:"𝔻",Dscr:"𝒟",dcaron:"ď",Dcaron:"Ď",dstrok:"đ",Dstrok:"Đ",eth:"ð",ETH:"Ð",ee:"ⅇ",efr:"𝔢",eopf:"𝕖",escr:"ℯ",exponentiale:"ⅇ",Efr:"𝔈",Eopf:"𝔼",Escr:"ℰ",expectation:"ℰ",eacute:"é",Eacute:"É",egrave:"è",Egrave:"È",ecirc:"ê",Ecirc:"Ê",ecaron:"ě",Ecaron:"Ě",euml:"ë",Euml:"Ë",edot:"ė",Edot:"Ė",eogon:"ę",Eogon:"Ę",emacr:"ē",Emacr:"Ē",ffr:"𝔣",fopf:"𝕗",fscr:"𝒻",Ffr:"𝔉",Fopf:"𝔽",fouriertrf:"ℱ",Fscr:"ℱ",fflig:"ff",ffilig:"ffi",ffllig:"ffl",filig:"fi",fjlig:"fj",fllig:"fl",fnof:"ƒ",gfr:"𝔤",gopf:"𝕘",gscr:"ℊ",Gfr:"𝔊",Gopf:"𝔾",Gscr:"𝒢",gacute:"ǵ",gbreve:"ğ",Gbreve:"Ğ",gcirc:"ĝ",Gcirc:"Ĝ",gdot:"ġ",Gdot:"Ġ",gcedil:"Ģ",hfr:"𝔥",hopf:"𝕙",hscr:"𝒽",planckh:"ℎ",hamilt:"ℋ",Hfr:"ℌ",hilbertspace:"ℋ",Hopf:"ℍ",Hscr:"ℋ",poincareplane:"ℌ",quaternions:"ℍ",hcirc:"ĥ",Hcirc:"Ĥ",hbar:"ℏ",hslash:"ℏ",hstrok:"ħ",planck:"ℏ",plankv:"ℏ",Hstrok:"Ħ",ifr:"𝔦",ii:"ⅈ",imaginaryi:"ⅈ",iopf:"𝕚",iscr:"𝒾",Ifr:"ℑ",im:"ℑ",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",Iopf:"𝕀",Iscr:"ℐ",iacute:"í",Iacute:"Í",igrave:"ì",Igrave:"Ì",icirc:"î",Icirc:"Î",iuml:"ï",Iuml:"Ï",itilde:"ĩ",Itilde:"Ĩ",idot:"İ",iogon:"į",Iogon:"Į",imacr:"ī",Imacr:"Ī",ijlig:"IJ",IJlig:"IJ",imath:"ı",inodot:"ı",jfr:"𝔧",jopf:"𝕛",jscr:"𝒿",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",jcirc:"ĵ",Jcirc:"Ĵ",jmath:"ȷ",kfr:"𝔨",kopf:"𝕜",kscr:"𝓀",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",kcedil:"ķ",Kcedil:"Ķ",ell:"ℓ",lfr:"𝔩",lopf:"𝕝",lscr:"𝓁",lagran:"ℒ",laplacetrf:"ℒ",Lfr:"𝔏",Lopf:"𝕃",Lscr:"ℒ",lacute:"ĺ",Lacute:"Ĺ",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lstrok:"ł",Lstrok:"Ł",lmidot:"ŀ",Lmidot:"Ŀ",mfr:"𝔪",mopf:"𝕞",mscr:"𝓂",mellintrf:"ℳ",Mfr:"𝔐",Mopf:"𝕄",Mscr:"ℳ",phmmat:"ℳ",nfr:"𝔫",nopf:"𝕟",nscr:"𝓃",naturals:"ℕ",Nfr:"𝔑",Nopf:"ℕ",Nscr:"𝒩",nacute:"ń",Nacute:"Ń",ncaron:"ň",Ncaron:"Ň",ntilde:"ñ",Ntilde:"Ñ",ncedil:"ņ",Ncedil:"Ņ",numero:"№",eng:"ŋ",ENG:"Ŋ",ofr:"𝔬",oopf:"𝕠",order:"ℴ",orderof:"ℴ",oscr:"ℴ",Ofr:"𝔒",Oopf:"𝕆",Oscr:"𝒪",ordm:"º",oacute:"ó",Oacute:"Ó",ograve:"ò",Ograve:"Ò",ocirc:"ô",Ocirc:"Ô",ouml:"ö",Ouml:"Ö",odblac:"ő",Odblac:"Ő",otilde:"õ",Otilde:"Õ",oslash:"ø",Oslash:"Ø",omacr:"ō",Omacr:"Ō",oelig:"Œ",OElig:"Œ",pfr:"𝔭",popf:"𝕡",pscr:"𝓅",Pfr:"𝔓",Popf:"ℙ",primes:"ℙ",Pscr:"𝒫",qfr:"𝔮",qopf:"𝕢",qscr:"𝓆",Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",rationals:"ℚ",kgreen:"ĸ",rfr:"𝔯",ropf:"𝕣",rscr:"𝓇",re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Rfr:"ℜ",Ropf:"ℝ",Rscr:"ℛ",racute:"ŕ",Racute:"Ŕ",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",sfr:"𝔰",sopf:"𝕤",sscr:"𝓈",Sfr:"𝔖",Sopf:"𝕊",Sscr:"𝒮",circleds:"Ⓢ",os:"Ⓢ",sacute:"ś",Sacute:"Ś",scirc:"ŝ",Scirc:"Ŝ",scaron:"š",Scaron:"Š",scedil:"ş",Scedil:"Ş",szlig:"ß",tfr:"𝔱",topf:"𝕥",tscr:"𝓉",Tfr:"𝔗",Topf:"𝕋",Tscr:"𝒯",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",trade:"™",tstrok:"ŧ",Tstrok:"Ŧ",ufr:"𝔲",uopf:"𝕦",uscr:"𝓊",Ufr:"𝔘",Uopf:"𝕌",Uscr:"𝒰",uacute:"ú",Uacute:"Ú",ugrave:"ù",Ugrave:"Ù",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",uring:"ů",Uring:"Ů",uuml:"ü",Uuml:"Ü",udblac:"ű",Udblac:"Ű",utilde:"ũ",Utilde:"Ũ",uogon:"ų",Uogon:"Ų",umacr:"ū",Umacr:"Ū",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",wcirc:"ŵ",Wcirc:"Ŵ",xfr:"𝔵",xopf:"𝕩",xscr:"𝓍",Xfr:"𝔛",Xopf:"𝕏",Xscr:"𝒳",yfr:"𝔶",yopf:"𝕪",yscr:"𝓎",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",yacute:"ý",Yacute:"Ý",ycirc:"ŷ",Ycirc:"Ŷ",yuml:"ÿ",Yuml:"Ÿ",zfr:"𝔷",zopf:"𝕫",zscr:"𝓏",integers:"ℤ",zeetrf:"ℨ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zdot:"ż",Zdot:"Ż",imped:"Ƶ",thorn:"þ",THORN:"Þ",napos:"ʼn",alpha:"α",Alpha:"Α",beta:"β",Beta:"Β",gamma:"γ",Gamma:"Γ",delta:"δ",Delta:"Δ",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",Epsilon:"Ε",digamma:"ϝ",gammad:"ϝ",Gammad:"Ϝ",zeta:"ζ",Zeta:"Ζ",eta:"η",Eta:"Η",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",Theta:"Θ",iota:"ι",Iota:"Ι",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",Kappa:"Κ",lambda:"λ",Lambda:"Λ",mu:"μ",micro:"µ",Mu:"Μ",nu:"ν",Nu:"Ν",xi:"ξ",Xi:"Ξ",omicron:"ο",Omicron:"Ο",pi:"π",piv:"ϖ",varpi:"ϖ",Pi:"Π",rho:"ρ",rhov:"ϱ",varrho:"ϱ",Rho:"Ρ",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",tau:"τ",Tau:"Τ",upsi:"υ",upsilon:"υ",Upsilon:"Υ",Upsi:"ϒ",upsih:"ϒ",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",Phi:"Φ",chi:"χ",Chi:"Χ",psi:"ψ",Psi:"Ψ",omega:"ω",ohm:"Ω",Omega:"Ω",acy:"а",Acy:"А",bcy:"б",Bcy:"Б",vcy:"в",Vcy:"В",gcy:"г",Gcy:"Г",gjcy:"Ѓ",GJcy:"Ѓ",dcy:"д",Dcy:"Д",djcy:"Ђ",DJcy:"Ђ",iecy:"Е",IEcy:"Е",iocy:"Ё",IOcy:"Ё",jukcy:"є",Jukcy:"Є",zhcy:"Ж",ZHcy:"Ж",zcy:"з",Zcy:"З",dscy:"Ѕ",DScy:"Ѕ",icy:"и",Icy:"И",iukcy:"і",Iukcy:"І",yicy:"Ї",YIcy:"Ї",jcy:"й",Jcy:"Й",jsercy:"ј",Jsercy:"Ј",kcy:"к",Kcy:"К",kjcy:"Ќ",KJcy:"Ќ",lcy:"л",Lcy:"Л",ljcy:"Љ",LJcy:"Љ",mcy:"м",Mcy:"М",ncy:"н",Ncy:"Н",njcy:"Њ",NJcy:"Њ",ocy:"о",Ocy:"О",pcy:"п",Pcy:"П",rcy:"р",Rcy:"Р",scy:"с",Scy:"С",tcy:"т",Tcy:"Т",tshcy:"ћ",TSHcy:"Ћ",ucy:"у",Ucy:"У",ubrcy:"ў",Ubrcy:"Ў",fcy:"ф",Fcy:"Ф",khcy:"Х",KHcy:"Х",tscy:"Ц",TScy:"Ц",chcy:"Ч",CHcy:"Ч",dzcy:"Џ",DZcy:"Џ",shcy:"Ш",SHcy:"Ш",shchcy:"щ",SHCHcy:"Щ",hardcy:"ъ",HARDcy:"Ъ",ycy:"ы",Ycy:"Ы",softcy:"ь",SOFTcy:"Ь",ecy:"э",Ecy:"Э",yucy:"Ю",YUcy:"Ю",yacy:"Я",YAcy:"Я",alefsym:"ℵ",aleph:"ℵ",beth:"ℶ",gimel:"ℷ",daleth:"ℸ"};function Lb(t){if(!ut(t,"---"))return null;let l=3;for(;l<t.length&&(t[l]===" "||t[l]===" ");)l++;if(l>=t.length||t[l]!==`
|
|
15
15
|
`)return null;l++;let i=!1;for(;l<t.length;){let r=l;for(;l<t.length&&t[l]!==`
|
|
16
|
-
`;)l++;if(l>=t.length)break;let o=l++;if(ut(t,"---",r))return{endPos:l,hasValidYaml:i};let f=t.indexOf(":",r);f!==-1&&f<o&&(i=!0)}return null}var rh=
|
|
17
|
-
`,l);return i!==-1?i:t.length}function yn(t,l,i){let r=i??t.length;for(;l<r&&(t[l]===" "||t[l]===" ");)l++;return l}function
|
|
18
|
-
`||d==="\r"||(h!==null?h<Ma?ju(h):ur(d):!0),b=Iu(g,f);return!b||p?!0:d?Iu(ie(d),d):!1}function Bu(t){for(var l="",i=0;i<t.length;)if(t[i]==="\\"&&i+1<t.length){var r=t[i+1];l+=pp(ie(r))?r:"\\"+r,i+=2}else l+=t[i++];return ac(l)}function We(t,l){return l+(l<t.length?1:0)}function
|
|
16
|
+
`;)l++;if(l>=t.length)break;let o=l++;if(ut(t,"---",r))return{endPos:l,hasValidYaml:i};let f=t.indexOf(":",r);f!==-1&&f<o&&(i=!0)}return null}var rh=aw,zb=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,jb={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 up(t){var l={};for(var i in t){var r=i.toLowerCase(),o=jb[r];l[o||i]=t[i]}return l}var Bb=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;function ac(t){return t.indexOf("&")===-1?t:t.replace(zb,(l,i)=>{let r=rh[i]||rh[i.toLowerCase()];if(r)return r;if(i[0]==="#"){let o=i[1]==="x"||i[1]==="X"?parseInt(i.slice(2),16):parseInt(i.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 l})}var Lu=/(javascript|vbscript|data(?!:image)):/i;function cp(t){if(Lu.test(t))return null;if(t.indexOf("%")===-1)return t;try{let l=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(Lu.test(l))return null}catch{return null}return t}var zn={},Qn,qt;Qn=[192,193,194,195,196,197,224,225,226,227,228,229,230,198];for(qt=0;qt<Qn.length;qt++)zn[Qn[qt]]="a";zn[231]=zn[199]="c";zn[240]=zn[208]="d";Qn=[200,201,202,203,233,232,234,235];for(qt=0;qt<Qn.length;qt++)zn[Qn[qt]]="e";Qn=[207,239,206,238,205,237,204,236];for(qt=0;qt<Qn.length;qt++)zn[Qn[qt]]="i";zn[209]=zn[241]="n";Qn=[248,216,339,338,213,245,212,244,211,243,210,242];for(qt=0;qt<Qn.length;qt++)zn[Qn[qt]]="o";Qn=[220,252,219,251,218,250,217,249];for(qt=0;qt<Qn.length;qt++)zn[Qn[qt]]="u";zn[376]=zn[255]=zn[221]=zn[253]="y";function fp(t){return t>=Ru&&t<=Nu||t>=Ss&&t<=Es||t>=Mu&&t<=ku}function Gl(t){for(var l=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);if(fp(r))r>=Ss&&r<=Es?l.push(String.fromCharCode(r+ew)):l.push(t[i]);else if(r===Oe||r===pl)l.push("-");else{var o=zn[r];o&&l.push(o)}}return l.join("")}function lw(t,l){return t.indexOf(l)!==-1}function ut(t,l,i){return t.startsWith(l,i)}function dp(t,l,i){return t.startsWith(l,(i===void 0?t.length:i)-l.length)}var sh=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 gs(t){let l=t.toLowerCase();if(sh.has(l))return!0;let i=l.indexOf(":");return i!==-1?(l=l.slice(i+1),sh.has(l)):!1}var Ub=["src","href","data","formAction","srcDoc","action"],hp=1,pi=2,J1=1,iw=2,rw=3,sw=4,or=(function(){let t=new Uint8Array(128),l;for(t[Fe]=t[Dt]=t[P3]=t[Ln]=t[Oe]=hp,l=sp;l<=Du;l++)t[l]=pi;for(l=op;l<=rp;l++)t[l]=pi;for(l=mi;l<=_a;l++)t[l]=pi;for(l=q3;l<=Ds;l++)t[l]=pi;return t})(),zu=(function(){let t=new Uint8Array(128);return t[xu]=iw,t[mi]=sw,t[ip]=t[tc]=t[Ds]=t[sr]=rw,t[_a]=t[nc]=t[rp]=t[Ou]=t[Dt]=t[Oe]=t[sp]=J1,t[tr]=t[nr]=t[Vl]=J1,t})();function ow(t){return t<Ma&&(or[t]&pi)!==0}function ju(t){return t<Ma&&(or[t]&hp)!==0}var uw=/[\p{P}\p{S}]/u,cw=new RegExp("\\p{Zs}","u");function ur(t){if(!t)return!0;let l=t.charCodeAt(0);return l<Ma?(or[l]&hp)!==0:cw.test(t)}function pp(t){if(typeof t=="number")return t<Ma&&(or[t]&pi)!==0;if(!t)return!1;let l=t.charCodeAt(0);return l<Ma?(or[l]&pi)!==0:uw.test(t)}function ye(t,l){let i=t.indexOf(`
|
|
17
|
+
`,l);return i!==-1?i:t.length}function yn(t,l,i){let r=i??t.length;for(;l<r&&(t[l]===" "||t[l]===" ");)l++;return l}function Hb(t){if(!t)return!1;for(var l in t)return!0;return!1}function gp(t,l,i){for(var r=t,o=l.split("."),f=0;f<o.length&&(r=r?.[o[f]],r!==void 0);)f++;return r||i}function fw(t,l){if(!l)return t;let i=gp(l,t,void 0);return typeof i=="string"?i:typeof i=="object"&&i.component?i.component:t}function dw(t,l){if(!l)return{};let i=gp(l,t,void 0);return typeof i=="object"&&i.props?i.props:{}}function Ib(t,l){for(var i="",r=0,o=t.length;r<o;r++){var f=t[r],d=f.type;if(d===l.text||d===l.codeInline){var g=f.text;g&&(i+=g)}else d===l.textFormatted||d===l.link?f.children&&(i+=Ib(f.children,l)):d===l.image&&f.alt&&(i+=f.alt)}return i}function oh(t){var l=t.toLowerCase();return l==="title"||l==="textarea"||l==="style"||l==="xmp"||l==="iframe"||l==="noembed"||l==="noframes"||l==="script"||l==="plaintext"}function uh(t){return t.replace(/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi,function(l,i,r,o){return"<"+i+r+o})}function hw(t){console.warn(t)}function lr(t,l,i,r){for(var o=ie(i),f=t.length,d=r??f-l,g=0;g<d&&l+g<f&&ie(t,l+g)===o;)g++;return g}function P1(t,l,i,r,o){if(o===0?i>=r:l<=r)return!1;let f=o===0?t[i]:t[l-1],d=o===0?l>0?t[l-1]:null:i<t.length?t[i]:null;var g=ie(f);if(g<Ma?ju(g):ur(f))return!1;var h=d?ie(d):null,p=d===null||d===`
|
|
18
|
+
`||d==="\r"||(h!==null?h<Ma?ju(h):ur(d):!0),b=Iu(g,f);return!b||p?!0:d?Iu(ie(d),d):!1}function Bu(t){for(var l="",i=0;i<t.length;)if(t[i]==="\\"&&i+1<t.length){var r=t[i+1];l+=pp(ie(r))?r:"\\"+r,i+=2}else l+=t[i++];return ac(l)}function We(t,l){return l+(l<t.length?1:0)}function pw(t,l){if(t>=Ma)return 0;var i=zu[t];return l&&i===1&&(t===tr||t===nr||t===Vl)?0:i}function gw(t,l,i,r,o,f){if(!i.length||i[i.length-1].type!==V.blockQuote)return null;let d=yn(r,0,r.length);if(d>=r.length||r[d]!==">")return null;let g=Kb(t,l,o,f);if(!g)return null;let h=i[i.length-1],p=g;return p.children&&h.children.push(...p.children),p.endPos}function Uu(t,l,i,r){return{type:V.heading,level:t,children:l,id:r(i)}}var ch=/\\(.)/g,mw=/\s+#+\s*$/,mp=/^(?:(\d{1,9})([.)])\s+(.*)$|(\d{1,9})([.)])\s*$|([-*+])\s+(.*)$|([-*+])\s*$)/,fh=/^(\d{1,9})([.)])(\s+|$)/,dh=/^([*+\-])(\s+|$)/,Vb=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/i,vw=/^<([a-z][^ >/]*) ?(?:[^>/]+[^/]|)>/i,ie=function(t,l=0){return t.charCodeAt(l)},Hu=function(t){return fp(ie(t))},hh=function(t){return ju(ie(t))},bn=function(t){return t===" "||t===" "},Iu=function(t,l){return pp(t<Ma?t:l)},bw=function(t){var l=ie(t);return Hu(t)||l===pl||l===tc||l===op||l===kb};function ph(t,l){var i=t.length;if(l>=i)return null;var r=ie(t[l]);if(!gi(r))return null;for(var o=l,f=l;f<i;){var d=ie(t[f]);if(d>=Mu&&d<=ku||d>=Ss&&d<=Es||d>=Ru&&d<=Nu||d===pl)f++;else{var g=ie(t[f]);if(g===Oe||g===Fe||g===Dt||g===Ln||g===Xl||g===Du)break;return null}}if(f===o)return null;for(var h=t.slice(o,f),p=0;p<h.length;p++){var d=ie(h[p]);if(!(d>=Mu&&d<=ku||d>=Ss&&d<=Es||d>=Ru&&d<=Nu||d===pl))return null}return{tagName:h,tagLower:h.toLowerCase(),nextPos:f}}function cr(t,l){var i=ou(t,l);return!i||i.kind!=="tag"?null:{tagName:i.tagName||"",tagLower:i.tagNameLower||"",attrs:i.attrs||"",endPos:i.endPos,isClosing:i.isClosing||!1,isSelfClosing:i.isSelfClosing||!1,hasNewline:i.hasNewline,hasSpaceBeforeSlash:!1,whitespaceBeforeAttrs:i.whitespaceBeforeAttrs||""}}function yw(t,l,i){for(var r=1,o=l;r>0&&o<t.length;){var f=t.indexOf("<",o);if(f===-1)return null;var d=cr(t,f);if(!d){o=f+1;continue}if(d.isClosing&&d.tagLower===i&&--r===0)return[f,d.endPos];!d.isClosing&&!d.isSelfClosing&&d.tagLower===i&&r++,o=d.endPos}return null}var _w=/^\{.*\}$/,Xb=/\n\n/,Qb=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Sw=/<\/?(?:pre|script|style|textarea)\b/i,Ew=/^<[A-Z]/,ww=/\n$/,Tw=new Set(["#",">","-","*","+","`","|","0","1","2","3","4","5","6","7","8","9"]);function Aw(t,l,i,r){let o=l;for(;o<i;){if(t[o]==="\\"&&o+1<i){o+=2;continue}if(t[o]===r)return o;o++}return-1}function W1(t,l){var i=l.indexOf(":");if(i>0){var r=l.slice(i+1).trim(),o=r.length;if(o>=2){var f=r[0];(f==='"'||f==="'")&&r[o-1]===f&&(r=r.slice(1,-1))}t.push([l.slice(0,i).trim(),r])}}function Cw(t){var l=[];if(!t)return l;for(var i="",r=0,o="",f=0;f<t.length;f++){var d=t[f];if(d==='"'||d==="'")o?d===o&&(o="",r--):(o=d,r++);else if(d==="("&&dp(i,"url"))r++;else if(d===")"&&r>0)r--;else if(d===";"&&r===0){W1(l,i),i="";continue}i+=d}return W1(l,i),l}function xw(t,l,i,r){return l==="style"?Cw(i).reduce(function(o,[f,d]){let g=r(d,t,f);return g!=null&&(o[f.replace(/(-[a-z])/g,h=>h[1].toUpperCase())]=g),o},{}):Ub.indexOf(l)!==-1?r(i&&i.replace(ch,"$1"),t,l):(i.match(_w)&&(i=i.slice(1,i.length-1),i=i&&i.replace(ch,"$1")),i==="true"?!0:i==="false"?!1:i)}function di(t,l,i,r){let o={};if(!t||!t.trim())return o;let f=[],d=0,g=t.length;for(;d<g;){for(;d<g&&bn(t[d]);)d++;if(d>=g)break;let b=d;for(;d<g&&bw(t[d]);)d++;if(d===b){d++;continue}let S=t.slice(b,d);for(;d<g&&bn(t[d]);)d++;if(d>=g||t[d]!=="="){f.push(S);continue}for(d++;d<g&&bn(t[d]);)d++;if(d>=g){f.push(S+"=");break}let v=d,_=t[d];if(_==='"'||_==="'")for(d++;d<g;){if(t[d]===_){if(d+1>=g){d++;break}let T=t[d+1];if(bn(T)||T==="/"){d++;break}}d++}else if(_==="{"){let T=1;for(d++;d<g&&T>0;){if(t[d]==="{")T++;else if(t[d]==="}"&&(T--,T===0)){d++;break}d++}}else for(;d<g&&!bn(t[d]);)d++;f.push(S+"="+t.slice(v,d))}if(!f?.length)return o;let h=l.toLowerCase(),p=i.length>0&&i[0]>="A"&&i[0]<="Z";for(let b=0;b<f.length;b++){let S=f[b],v=S.indexOf("=");if(v!==-1){let _=S.slice(0,v).trim(),T=_.toLowerCase();if(T==="ref")continue;let w=p?_:T,A=S.slice(v+1).trim(),O=(C=>{let N=C[0];return(N==='"'||N==="'")&&C.length>=2&&C[C.length-1]===N?C.slice(1,-1):C})(A);if(T==="href"&&h==="a"||T==="src"&&h==="img"){let C=r.sanitizer(O,h,T);if(C==null){hw(`Stripped unsafe ${T} on <${i}>`);continue}o[w]=C}else{let C=xw(h,T,O,r.sanitizer);o[w]=C}}else S!=="style"&&(o[p?S:S.toLowerCase()]=!0)}if(Lu.test(decodeURIComponent(t)))for(let b in o)delete o[b];return o}var ws=function(t){return Tw.has(t)};function Ow(t,l,i){let r=l+1;for(;r<t.length&&t[r]!=="]";){if(t[r]==="\\"&&r+1<t.length){r+=2;continue}r++}if(r>=t.length)return{shouldSkip:!1,newPos:0};let o=l+1,f=r,d=o<f&&(t[o]===`
|
|
19
19
|
`||t[o]==="\r"),g=f>o&&(t[f-1]===`
|
|
20
20
|
`||t[f-1]==="\r"),h=r+1;if(h=yn(t,h),h>=t.length||t[h]!==":")return{shouldSkip:!1,newPos:0};if((d||g)&&i){let p=h+1;for(p=yn(t,p),p<t.length&&t[p]===`
|
|
21
21
|
`&&(p=yn(t,p+1));p<t.length&&t[p]!==`
|
|
22
|
-
`;)p++;return p<t.length&&p++,{shouldSkip:!0,newPos:p}}return
|
|
22
|
+
`;)p++;return p<t.length&&p++,{shouldSkip:!0,newPos:p}}return Dw(t,h)}function Dw(t,l){let i=l+1;for(i=yn(t,i),i<t.length&&t[i]===`
|
|
23
23
|
`&&(i=yn(t,i+1));i<t.length&&t[i]!==`
|
|
24
24
|
`;)i++;if(i>=t.length)return{shouldSkip:!1,newPos:0};i++;let r=yn(t,i);if(r>=t.length||t[r]!=='"'&&t[r]!=="'")return{shouldSkip:!1,newPos:0};let o=t[r],f=r+1;for(;f<t.length&&t[f]!==o&&t[f]!==`
|
|
25
25
|
`;){if(t[f]==="\\"&&f+1<t.length){f+=2;continue}f++}if(f>=t.length||t[f]!==o)return{shouldSkip:!1,newPos:0};let d=yn(t,f+1);return d<t.length&&t[d]!==`
|
|
26
|
-
`&&t[d]!=="\r"?{shouldSkip:!0,newPos:i}:{shouldSkip:!1,newPos:0}}function
|
|
27
|
-
`,"\f","\v"]);function
|
|
28
|
-
`}),p=h+1,h>l&&jn===Oe&&p<i&&ie(t,p)===Oe&&p++,h=p;continue}for(A===
|
|
26
|
+
`&&t[d]!=="\r"?{shouldSkip:!0,newPos:i}:{shouldSkip:!1,newPos:0}}function Gb(t){for(var l=0;l<t.length;l++){var i=t[l];if(i.type===V.link)return!0;if(i.type===V.textFormatted){var r=i;if(r.children&&Gb(r.children))return!0}}return!1}function gh(t){for(var l="",i=0,r=t.length;i<r;i++){var o=t[i],f=o.type;if(f===V.text)l+=o.text;else if(f===V.image){var d=o;d.alt&&(l+=d.alt)}else if(f===V.textFormatted){var g=o;g.children&&(l+=gh(g.children))}else if(f===V.link){var h=o;h.children&&(l+=gh(h.children))}}return l}var Rw=new Set([" "," ","\r",`
|
|
27
|
+
`,"\f","\v"]);function vi(t,l,i,r,o){for(var f=[],d=[],g=[],h=l,p=l,b=o.disableAutoLink||r.inAnchor,S=!1,v=!!r.inAnchor,_=!!o.disableParsingRawHTML,T=function(rn,sn){if(_)return!1;if(!v){var Kt=Ld(t,h,r,o,"<");if(Kt)return w(h),f.push(Kt),h=Kt.endPos,p=h,!0}var zt=ic(t,h,r,o);if(zt)return w(h),f.push(zt),h=zt.endPos,p=h,!0;var Pe=cr(t,h);if(!Pe)return!1;var Bn=h+(Pe.isClosing?2:1);if(Bn>=t.length||bn(t[Bn]))return!1;var Nn=t.indexOf(">",h+1);if(Nn!==-1){var jt=h+1,De=Nn-jt;if(De>=7){var et=ut(t,"http://",jt);if(et||ut(t,"https://",jt)){for(var pn=jt;pn<Nn;pn++)if(bn(t[pn]))return!1}}}var Fn=ie(t,Bn);if(gi(Fn)&&Bn+1<t.length&&t[Bn+1]===":"||Pe.isClosing&&Pe.attrs.trim().length)return!1;if(Pe.attrs.length)for(var on=!1,wa="",ze=0;ze<Pe.attrs.length;ze++){var ue=Pe.attrs[ze];if(on&&ue===wa)on=!1;else if(!on&&(ue==='"'||ue==="'"))on=!0,wa=ue;else if(ue==="*"||ue==="#"||ue==="!"){for(var D=ze+1;D<Pe.attrs.length&&Pe.attrs[D]!=="="&&Pe.attrs[D]!==" "&&Pe.attrs[D]!==" ";)D++;if(D<Pe.attrs.length&&Pe.attrs[D]==="=")return!1}}var W={type:V.htmlBlock,tag:Pe.tagName,attrs:{},children:[],text:t.slice(h,Pe.endPos),noInnerParse:!0,endPos:Pe.endPos};return w(h),f.push(W),h=W.endPos,p=h,!0},w=function(rn){if(rn>p){var sn=t.slice(p,rn);f.push({type:V.text,text:S?ac(sn):sn}),p=rn,S=!1}};h<i;){var A=ie(t,h),O=pw(A,b);if(O===0){for(A===Ko&&(S=!0),h++;h<i&&(A=ie(t,h),!(A>=Ma));){A===Ko&&(S=!0);var C=zu[A];if(C!==0){if(b&&C===1&&(A===tr||A===nr||A===Vl)){h++;continue}break}h++}continue}if(A===_a){for(var N=h,k=0;h+k<i&&ie(t,h+k)===_a;)k++;if(k>0){for(var B=h+k,I=-1,L=B;L<i;){for(;L<i&&ie(t,L)!==_a;)L++;if(L>=i)break;for(var J=0;L+J<i&&ie(t,L+J)===_a;)J++;J>k&&(J=k);var G=L+J;if(J===k&&(L<=B||ie(t,L-1)!==_a)&&(G>=i||ie(t,G)!==_a)){I=L,L=G;break}L++}if(I!==-1){for(var q=t.slice(B,I),Y=!1,P=0;P<q.length;P++){var fe=ie(q,P);if(fe===Dt||fe===Ln){Y=!0;break}}var he=q;if(Y&&(he=q.replace(/\r\n/g," ").replace(/\r/g," ").replace(/\n/g," ")),he.length>0){var de=ie(he,0),j=ie(he,he.length-1);if(de===Oe&&j===Oe){for(var le=1;le<he.length-1;le++)if(ie(he,le)!==Oe){he=he.slice(1,he.length-1);break}}}w(N),f.push({type:V.codeInline,text:he}),h=L,p=h;continue}h=B;continue}}if(!v&&!b&&(A===tr||A===nr||A===Vl)){var Q=null,be=h+1<i?ie(t,h+1):0,ge=h+2<i?ie(t,h+2):0,x=h+3<i?ie(t,h+3):0,K=h+4<i?ie(t,h+4):0,ee=h+5<i?ie(t,h+5):0;if(A===nr&&be===Nd&&ge===Nd&&x===F1?Q="h":A===Vl&&be===Vl&&ge===Vl&&x===kb?Q="w":A===tr&&be===Nd&&ge===F1&&x===op&&K===Du&&ee===Du&&(Q="f"),Q){var oe=Ld(t,h,r,o,Q);if(oe){w(h),f.push(oe),h=oe.endPos,p=h;continue}}}if(!v&&!b&&A===rp){var ne=Ld(t,h,r,o,"@");if(ne&&"emailStart"in ne){for(var{emailStart:ce,endPos:me}=ne,Se=[],G=d.length-1;G>=0;G--){var we=d[G];we.sourcePos>=ce&&we.sourcePos<me&&(we.nodeIndex>=0&&we.nodeIndex<f.length&&(f.splice(we.nodeIndex,1),Se.push(we.nodeIndex)),d.splice(G,1))}if(ce<p){for(var L=f.length-1;L>=0;L--)if(f[L].type===V.text){f.splice(L,1),Se.push(L);break}p=ce}if(Se.length){Se.sort(function(rn,sn){return rn-sn});for(var Be=0,St=0;St<d.length;St++){for(var we=d[St];Be<Se.length&&Se[Be]<we.nodeIndex;)Be++;we.nodeIndex-=Be}}w(ce),f.push(ne),h=me,p=h;continue}}if(!(A===nc&&T())){if(A===xu){if(h+1<i&&ie(t,h+1)===Dt){for(var Ae=h+2;Ae<i&&ie(t,Ae)===Oe;)Ae++;if(Ae>=i){h++;continue}for(w(h),f.push({type:V.breakLine}),h+=2;h<i&&ie(t,h)===Oe;)h++;p=h;continue}var gt=h+1<i?t[h+1]:"";if(gt&&"!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".indexOf(gt)!==-1){w(h),f.push({type:V.text,text:gt==="&"?"&":gt}),h+=2,p=h;continue}}if(A===mi){if(!v){if(h+1<i&&t[h+1]==="^"){for(var Tt=h+2;Tt<i&&t[Tt]!=="]";)Tt++;if(Tt<i){var xe=t.slice(h+2,Tt);w(h),f.push({type:V.footnoteReference,target:`#${o.slugify(xe)}`,text:xe}),h=Tt+1,p=h;continue}}if(r.inList&&h+2<i&&ie(t,h+2)===Ou){var ct=ie(t,h+1);if(ct===Oe||ct===Y1||ct===K1){w(h),f.push({type:V.gfmTask,completed:ct===Y1||ct===K1}),h+=3,p=h;continue}}}var tn=!1;if(h>l&&t[h-1]==="!"){for(var Sn=0,Xe=h-2;Xe>=l&&t[Xe]==="\\";Xe--)Sn++;if((Sn&1)===0&&(tn=!0,p<h-1&&w(h-1),f.length>0&&f[f.length-1].type===V.text)){var Zt=f[f.length-1];Zt.text.endsWith("!")&&(Zt.text=Zt.text.slice(0,-1),!Zt.text&&f.pop())}}tn||w(h),p=h+1,(!v||tn)&&g.push({type:tn?"image":"link",pos:tn?h-1:h,resultIdx:f.length,inAnchor:v}),h++;continue}if(A===Ou&&g.length>0){var Ct=g[g.length-1],nn=Ct.pos+(Ct.type==="image"?2:1),Et=h;w(h);var st=h+1,On=vp(f,Ct),It=Ct.type==="link"&&Gb(On),Ft=!1;if(!It&&st<i&&t[st]==="("){var Vt=Lw(t,st+1);if(Vt){$1(f,d,g,Ct,nn,Et,o.sanitizer(Bu(Vt.target),"a","href"),Vt.title?Bu(Vt.title):void 0),h=Vt.endPos,p=h;continue}}var cn=r.refs||{},fn=null,ua=h;if(st<i&&t[st]==="["){for(var nt=st+1,L=nt;L<i&&t[L]!=="]";)L++;L<i&&(fn=t.slice(nt,L),ua=L,Ft=!0)}(!Ft||fn==="")&&(fn=t.slice(nn,Et));var dn=Fb(fn);if(!It&&cn&&cn[dn]){var mt=cn[dn];$1(f,d,g,Ct,nn,Et,mt.target,mt.title),h=ua+1,p=h;continue}var ft=Ct.resultIdx;g.pop(),f.length=ft,Ct.type==="image"&&f.push({type:V.text,text:"!"}),f.push({type:V.text,text:"["},...On,{type:V.text,text:"]"});for(var P=0;P<d.length;P++)d[P].nodeIndex>=ft&&d[P].nodeIndex++;h++,p=h;continue}if(A===ip||A===tc||A===Ds||A===sr){var Je=t[h],qe=h,an=lr(t,h,Je);if((Je==="~"||Je==="=")&&an!==2){h++;continue}var hn=qe+an,Lt=P1(t,qe,hn,i,0),at=P1(t,qe,hn,l,1),Yt=Lt,At=at;if(Je==="_"&&Lt&&at){if(qe>0){var Dn=t[qe-1],Rn=ie(Dn);Yt=Iu(Rn,Dn)}if(hn<i){var vt=t[hn],ln=ie(vt);At=Iu(ln,vt)}}w(qe),d.push({nodeIndex:f.length,type:Je,length:an,canOpen:Yt,canClose:At,active:!0,sourcePos:qe,inAnchor:v}),f.push({type:V.text,text:t.slice(qe,qe+an)}),h=qe+an,p=h;continue}if(A===Dt){for(var Xe=h-1,ca=0;Xe>=p&&ie(t,Xe)===Oe;)ca++,Xe--;if(ca>=2){for(var Ae=h+1;Ae<i&&ie(t,Ae)===Oe;)Ae++;if(Ae>=i){w(Xe+1),h=i,p=i;continue}for(w(Xe+1),f.push({type:V.breakLine}),h++;h<i&&ie(t,h)===Oe;)h++;p=h;continue}var jn=h>p?ie(t,h-1):0,ct=h+1<i?ie(t,h+1):0,fa=h>p&&jn===Oe&&ct===Oe?h-1:h;w(fa),f.push({type:V.text,text:`
|
|
28
|
+
`}),p=h+1,h>l&&jn===Oe&&p<i&&ie(t,p)===Oe&&p++,h=p;continue}for(A===Ko&&(S=!0),h++;h<i;){var A=ie(t,h);if(A>=Ma)break;A===Ko&&(S=!0);var C=zu[A];if(C===0){h++;continue}if(C===1&&(A===tr||A===nr||A===Vl)&&b){h++;continue}break}}}if(w(h),d.length&&qb(f,d),g.length){g.sort(function(rn,sn){return rn.resultIdx-sn.resultIdx});for(var L=0;L<g.length;L++)f.splice(g[L].resultIdx+L,0,{type:V.text,text:g[L].type==="image"?"![":"["})}return f}function Nw(t,l,i,r,o){for(var f=!1,d=0;d<l.length;d++)if(l[d].sourcePos>=r&&l[d].sourcePos<o){f=!0;break}if(f){for(var g=vp(t,i),h=[],d=0;d<l.length;d++){var p=l[d];p.sourcePos>=r&&p.sourcePos<o&&h.push({nodeIndex:p.nodeIndex-i.resultIdx,type:p.type,length:p.length,canOpen:p.canOpen,canClose:p.canClose,active:p.active,sourcePos:p.sourcePos,inAnchor:p.inAnchor})}qb(g,h),t.length=i.resultIdx;for(var b=0;b<g.length;b++)t.push(g[b]);for(var S=[],d=0;d<l.length;d++)(l[d].sourcePos<r||l[d].sourcePos>=o)&&S.push(l[d]);l.length=0;for(var b=0;b<S.length;b++)l.push(S[b])}}function Mw(t,l,i,r){return t.type==="link"?{type:V.link,target:i,title:r,children:l}:{type:V.image,target:i||"",alt:gh(l),title:r}}function vp(t,l){return t.slice(l.resultIdx)}function $1(t,l,i,r,o,f,d,g){Nw(t,l,r,o,f);var h=vp(t,r);i.pop(),t.length=r.resultIdx,t.push(Mw(r,h,d,g))}function kw(t,l,i){let r=yn(t,l),o=r<t.length&&t[r]==="<";o&&r++;let f=r;if(o&&r<t.length&&t[r]===">")return{target:"",endPos:r+1,hadSpace:!1};let d,g;var h=!1;if(o){for(g=r;g<t.length&&t[g]!==">";){let S=t[g];if(S===`
|
|
29
29
|
`||S==="\r"||S==="<")return null;if(S==="\\"){g+=2;continue}g++}if(g>=t.length||t[g]!==">")return null;g++;let p=f;for(;p<g-1&&bn(t[p]);)p++;let b=g-1;for(;b>p&&bn(t[b-1]);)b--;d=t.slice(p,b),r=g}else{let p=0;for(g=r;g<t.length;){let b=t[g];if(b===" "||b===" "||b===`
|
|
30
30
|
`){h=!0;break}if(b==="("){if(g>0&&t[g-1]==="\\"){g++;continue}p++,g++;continue}if(b===")"){if(g>0&&t[g-1]==="\\"){g++;continue}if(p===0)break;p--,g++;continue}g++}d=t.slice(f,g),r=g}return{target:d,endPos:r,hadSpace:h}}function q1(t,l,i,r){let o=l,f=0;for(;o<t.length;){let g=t[o];if(bn(g))o++;else if(g===`
|
|
31
|
-
`){if(f>=1)break;f++,o++}else{if(ur(g))break;break}}if(i&&!r&&(o>=t.length||t[o]!=='"'&&t[o]!=="'"&&t[o]!=="("))return{title:void 0,endPos:o};let d;if(o<t.length){let g=t[o];if(g==='"'||g==="'"){o++;let h=o;for(;o<t.length&&t[o]!==g;)t[o]==="\\"&&o++,o++;o<t.length&&(d=t.slice(h,o),o++)}else if(g==="("){o++;let h=o,p=1;for(;o<t.length&&p>0;)t[o]==="\\"&&o+1<t.length?o++:t[o]==="("?p++:t[o]===")"&&p--,o++;p===0&&(d=t.slice(h,o-1))}}return o=yn(t,o),{title:d,endPos:o}}function
|
|
31
|
+
`){if(f>=1)break;f++,o++}else{if(ur(g))break;break}}if(i&&!r&&(o>=t.length||t[o]!=='"'&&t[o]!=="'"&&t[o]!=="("))return{title:void 0,endPos:o};let d;if(o<t.length){let g=t[o];if(g==='"'||g==="'"){o++;let h=o;for(;o<t.length&&t[o]!==g;)t[o]==="\\"&&o++,o++;o<t.length&&(d=t.slice(h,o),o++)}else if(g==="("){o++;let h=o,p=1;for(;o<t.length&&p>0;)t[o]==="\\"&&o+1<t.length?o++:t[o]==="("?p++:t[o]===")"&&p--,o++;p===0&&(d=t.slice(h,o-1))}}return o=yn(t,o),{title:d,endPos:o}}function Lw(t,l,i){let r=kw(t,l);if(!r)return null;let o=l;o=yn(t,o);let f=o<t.length&&t[o]==="<";if(f&&r.target===""&&r.endPos===o+2){let g=q1(t,r.endPos,!1,f);return g.endPos>=t.length||t[g.endPos]!==")"?null:{target:"",title:g.title,endPos:g.endPos+1}}let d=q1(t,r.endPos,r.hadSpace,f);return d.endPos>=t.length||t[d.endPos]!==")"?null:{target:r.target,title:d.title,endPos:d.endPos+1}}function gi(t){return t>=Ss&&t<=Es||t>=Mu&&t<=ku}function Zb(t){let l=t.indexOf(":");if(l<2||l>32)return!1;let i=ie(t);if(!gi(i))return!1;for(let r=1;r<l;r++){let o=t[r];if(ie(o),!Hu(o)&&o!=="+"&&o!=="."&&o!=="-")return!1}return!0}function ev(t,l,i){return l===0?!0:(i?`
|
|
32
32
|
\r*_~(`:`
|
|
33
|
-
*_~(`).indexOf(t[l-1])!==-1}function Md(t,l,i,r,o){let f=r(t,"a","href");return f?{type:V.link,target:f,children:[{type:V.text,text:l}],endPos:i,...o!==void 0?{emailStart:o}:{}}:null}function kd(t,l,i,r,o){if(i.inAnchor||o!==2&&r.disableAutoLink)return null;if(o===2){if(t[l]!=="<")return null;let v=l+1;for(;v<t.length&&t[v]!==">";){if(bn(t[v]))return null;v++}if(v>=t.length||t[v]!==">")return null;let _=t.slice(l+1,v);if(!_.length)return null;let
|
|
34
|
-
`;)o++;if(o>=t.length)break;var f=t[o];if(l.inList&&r.length>0){var d=r[r.length-1];if(d?.type===V.paragraph){var g=d,h=ie(f);if(h===pl||h===sr||h===Oe||h===Fe){var p=ye(t,o),b=t.slice(o,p),S=$e(t,o,p);if(S.spaceEquivalent<4){var v=b.slice(S.charCount).trim();if(
|
|
35
|
-
`?1:0);continue}}}}}var _=
|
|
36
|
-
`},...O.children),o=C.endPos;continue}}}}var C=mh(t,o,l,i);if(C){r.push(C),o=C.endPos;continue}}o++}return r}function
|
|
37
|
-
`||h==="\r"){let _=ye(t,d);return{...Uu(g,[],"",r.slugify),endPos:_+(_<t.length?1:0)}}if(h!==" "&&h!==" ")return null;let p=d,b=ye(t,p);var S=t.slice(p,b).replace(
|
|
38
|
-
`),_=
|
|
33
|
+
*_~(`).indexOf(t[l-1])!==-1}function Md(t,l,i,r,o){let f=r(t,"a","href");return f?{type:V.link,target:f,children:[{type:V.text,text:l}],endPos:i,...o!==void 0?{emailStart:o}:{}}:null}function kd(t,l,i,r,o){if(i.inAnchor||o!==2&&r.disableAutoLink)return null;if(o===2){if(t[l]!=="<")return null;let v=l+1;for(;v<t.length&&t[v]!==">";){if(bn(t[v]))return null;v++}if(v>=t.length||t[v]!==">")return null;let _=t.slice(l+1,v);if(!_.length)return null;let T=_.indexOf("\\")!==-1,w=Zb(_),A=ut(_,"http://")||ut(_,"https://"),O=_.toLowerCase(),C=ut(O,"mailto:"),N=!T&&_.indexOf("@")!==-1&&_.indexOf("//")===-1&&!w;if(!A&&!C&&!N&&!w)return null;let k=_,B=_;if(!(w||A))if(C){let I=O.indexOf(":");B=_.slice(I+1),k="mailto:"+B}else N&&(k="mailto:"+_);return Md(k,B,v+1,r.sanitizer)}if(o===1){let v=l;for(;v>0&&(Hu(t[v-1])||".+-_".indexOf(t[v-1])!==-1);)v--;if(v>=l||!ev(t,v,!0))return null;let _=l+1,T=!1;for(;_<t.length;){let A=t[_];if(A===".")T=!0,_++;else if(Hu(A)||A==="-"||A==="_")_++;else break}if(!T||_<=l+1)return null;for(;_>l+1&&t[_-1]===".";)_--;if(_>l+1&&(t[_-1]==="-"||t[_-1]==="_"))return null;if(_-(l+1)<1e4){if(t.indexOf(".",l+1)>=_||t.indexOf(".",l+1)===-1)return null}else if(t.slice(l+1,_).indexOf(".")===-1)return null;let w=t.slice(v,_);return Md("mailto:"+w,w,_,r.sanitizer,v)}let f=ut(t,"http://",l)||ut(t,"https://",l),d=!f&&ut(t,"ftp://",l),g=!f&&!d&&ut(t,"www.",l);if(!(f||d||g)||!ev(t,l,!1))return null;for(var h=l+(f?ie(t,l+4)===K3?8:7:d?6:4),p=h;h<t.length;){let v=ie(t,h);if(v===Oe||v===Fe||v===Dt||v===nc||v===Xl)break;h++}if(h<=p)return null;let b=h;for(;b>p;){let v=t[b-1];if(b>p+1&&t[b-2]==="\\")break;if(v==="?"||v==="!"||v==="."||v===","||v===":"||v==="*"||v==="_"||v==="~")b--;else if(v===";"){let _=b-2;for(;_>=p&&t[_]!=="&"&&t[_]!==" ";)_--;if(_>=p&&t[_]==="&"){let T=t.slice(_+1,b-1);if(T.length>=2&&T.length<=10&&/^[a-zA-Z0-9]+$/.test(T)&&(T==="lt"||T==="gt"||T.length>=3&&(ut(T,"amp")||ut(T,"apos")||ut(T,"quot")||ut(T,"nbsp")||/^[a-z]{3,10}$/.test(T))))break;b=_;break}b--}else if(v===")"){let _=0,T=0;for(let w=p;w<b;w++)t[w]==="("&&_++,t[w]===")"&&T++;if(T>_)b--;else break}else break}if(h=b,h<=p)return null;let S=t.slice(l,h);return Md(g?"http://"+S:S,S,h,r.sanitizer)}function Ld(t,l,i,r,o){return o==="<"?kd(t,l,i,r,2):o==="h"||o==="f"||o==="w"?kd(t,l,i,r,0):o==="@"?kd(t,l,i,r,1):null}function Fb(t){var l=t.trim(),i=l.replace(/[\s\t\n\r]+/g," ");return i.indexOf("ẞ")!==-1?i.replace(/\u1E9E/g,"ss").toLowerCase():i.toLowerCase()}function zw(t,l,i){if(l+3>=t.length||t[l]!=="[")return null;let r=t[l+1];return r!==" "&&r!=="x"&&r!=="X"||t[l+2]!=="]"?null:{type:V.gfmTask,completed:r.toLowerCase()==="x",endPos:l+3}}function bp(t,l,i,r){let{inline:o,inList:f,inBlockQuote:d}=l;r.inline!==void 0&&(l.inline=r.inline),r.list!==void 0&&(l.inList=r.list),r.inBlockQuote!==void 0&&(l.inBlockQuote=r.inBlockQuote);let g=yp(t,l,i);return l.inline=o,l.inList=f,l.inBlockQuote=d,g}function Rs(t,l,i,r,o){return lc(r,!0,()=>vi(t,l,i,r,o))}function Ns(t,l,i,r){var o=t[l];if(o===void 0)return null;var f=l,d=null,g=o,h=null,p=ie(o),b=p===Oe||p===Fe;if(b){if(h=ye(t,l),d=$e(t,l,h),f=l+d.charCount,f>=t.length)return iu(t,l);g=t[f]}var S=d?d.spaceEquivalent:0;if(S>=4)return b?iu(t,l):null;var v=ie(g);if(v===Xl){var _=Kb(t,l,i,r);if(_)return _}else{if(v===tc)return Vu(t,l);if(v===pl||v===ip||v===W3){var T=Vu(t,l);if(T)return T;var w=yh(t,l,i,r);if(w)return w}else if(v>=Ru&&v<=Nu){var w=yh(t,l,i,r);if(w)return w}else{if(v===Cu)return jw(t,f,i,r);if(v===mi)return fr(t,f,i,r,f+1<t.length&&ie(t,f+1)===Au);if(v===nc&&!r.disableParsingRawHTML)return ic(t,f,i,r);if(v===_a||v===Ds){if(h||(h=ye(t,l)),d||(d=$e(t,l,h)),d.spaceEquivalent<=3)return _p(t,f,i,r)}else if(v===$3)return Iw(t,l,i,r)}}return b?iu(t,l):null}function yp(t,l,i){let r=[],o=0;for(;o<t.length;){for(;o<t.length&&t[o]===`
|
|
34
|
+
`;)o++;if(o>=t.length)break;var f=t[o];if(l.inList&&r.length>0){var d=r[r.length-1];if(d?.type===V.paragraph){var g=d,h=ie(f);if(h===pl||h===sr||h===Oe||h===Fe){var p=ye(t,o),b=t.slice(o,p),S=$e(t,o,p);if(S.spaceEquivalent<4){var v=b.slice(S.charCount).trim();if($b(r,v,i)){o=p+(p<t.length&&t[p]===`
|
|
35
|
+
`?1:0);continue}}}}}var _=Ns(t,o,l,i);if(_){r.push(_),o=_.endPos;continue}var T=Yb(t,o,l,i);if(T){r.push(T),o=T.endPos;continue}var w=t.slice(o).trim();if(w){if(l.inBlockQuote&&r.length>0){let N=function(k){if(k.type===V.blockQuote){var B=k;if(B.children&&B.children.length>0){var I=B.children[B.children.length-1];if(I.type===V.paragraph)return I}}else if(k.type===V.orderedList||k.type===V.unorderedList){var L=k;if(L.items&&L.items.length>0){var J=L.items[L.items.length-1];if(J&&J.length>0){var G=J[J.length-1],q=N(G);if(q)return q}}}return null};for(var A=r.length-1;A>=0;A--){var g=N(r[A]);if(g){var C=mh(t,o,l,i);if(C){var O=C;g.children&&O.children&&g.children.push({type:V.text,text:`
|
|
36
|
+
`},...O.children),o=C.endPos;continue}}}}var C=mh(t,o,l,i);if(C){r.push(C),o=C.endPos;continue}}o++}return r}function jw(t,l,i,r){if(i.inline)return null;let o=ye(t,l),f=$e(t,l,o,3);if(f.spaceEquivalent>3&&!i.inList)return null;var d=l+f.charCount;if(d>=t.length||t[d]!=="#")return null;let g=lr(t,d,"#",6);if(d+=g,d>=t.length)return null;let h=t[d];if(h===`
|
|
37
|
+
`||h==="\r"){let _=ye(t,d);return{...Uu(g,[],"",r.slugify),endPos:_+(_<t.length?1:0)}}if(h!==" "&&h!==" ")return null;let p=d,b=ye(t,p);var S=t.slice(p,b).replace(mw,"").trim();let v=Rs(S,0,S.length,i,r);return{...Uu(g,v,S,r.slugify),endPos:b+(b<t.length?1:0)}}function Yb(t,l,i,r){if(i.inline||i.inBlockQuote||i.inList)return null;let o=ye(t,l);if(o>=t.length)return null;let f=o+1,d=-1,g=null;for(var h=0;f<t.length&&h<10;h++){let q=ye(t,f);if(q>=t.length)break;for(var p=f;p<q&&(ie(t,p)===Oe||ie(t,p)===Fe||ie(t,p)===Ln);)p++;if(p>=q)break;for(var b=0,S=f;S<q&&b<3&&ie(t,S)===Oe;)b++,S++;if(S<q){let Y=ie(t,S);if(Y===sr||Y===pl){let P=t[S];for(var v=0,_=!1,T=S;T<q;){let fe=ie(t,T);if(fe===Y){if(_){v=0;break}v++}else if(fe===Oe||fe===Fe)_=!0;else{v=0;break}T++}if(v>=1){d=q,g=P;break}}}f=q+1}if(!g)return null;let w=ie(t,l);if(w===Cu||w===Xl||t[l]==="|")return null;let A=l;for(var O=l,C=!1;O<f;){let q=ye(t,O);if(q>=f)break;for(var N=O;N<q&&(ie(t,N)===Oe||ie(t,N)===Fe||ie(t,N)===Ln);)N++;N<q&&(C=!0,A=q),O=q+1}if(!C)return null;let k=t.slice(l,A);for(var B=0,I=k.length;B<I&&(k.charCodeAt(B)===Oe||k.charCodeAt(B)===Fe||k.charCodeAt(B)===Ln||k.charCodeAt(B)===Dt);)B++;for(;I>B&&(k.charCodeAt(I-1)===Oe||k.charCodeAt(I-1)===Fe||k.charCodeAt(I-1)===Ln||k.charCodeAt(I-1)===Dt);)I--;let L=k.slice(B,I);if(!L)return null;let J=g==="="?1:2,G=Rs(L,0,L.length,i,r);return{...Uu(J,G,L,r.slugify),endPos:d+(d<t.length?1:0)}}function mh(t,l,i,r){if(i.inline)return null;let o=l,f=t.length;for(;o<f;){let ce=ye(t,o),me=!0;for(let xe=o;xe<ce;xe++){let ct=ie(t,xe);if(ct!==Oe&&ct!==Fe&&ct!==Ln){me=!1;break}}if(me){o=ce;break}if(ce>=f){o=f;break}let Se=ce+1;if(Se>=f){o=f;break}let we=ye(t,Se),Be=!0,St="";for(let xe=Se;xe<we;xe++){let ct=ie(t,xe);if(ct!==Oe&&ct!==Fe&&ct!==Ln){Be=!1,St===""&&(St=t[xe]);break}}if(Be){o=ce;break}let Ae=!1,gt=$e(t,Se,we),Tt=gt.spaceEquivalent===4&>.charCount===4;if(St==="<"&&!Tt&&!r.disableParsingRawHTML){let xe=Se,ct=0;for(;xe<we&&ct<3;){let tn=ie(t,xe);if(tn===Oe||tn===Fe)ct++,xe++;else break}if(xe<we&&t[xe]==="<"){var d=ic(t,xe,{...i,inline:!1},r);d&&(Ae=!("canInterruptParagraph"in d)||d.canInterruptParagraph)}}if(Tt)Ae=!1;else if(!Ae&&St&&ws(St))if(St==="["){let xe=Se;xe+1>=f||t[xe+1]!=="^"?Ae=!1:Ae=!0}else if(St==="*"||St==="+")if(Vu(t,Se))Ae=!0;else{let xe=Se+1<f?t[Se+1]:"";xe&&bn(xe)?Ae=!0:Ae=!1}else{let xe=Ns(t,Se,i,r);xe&&(xe.type===V.codeBlock?$e(t,Se,we).spaceEquivalent>=4?Ae=!1:Ae=!0:xe.type===V.unorderedList||xe.type===V.orderedList?xe.type===V.orderedList?Ae=xe.start===1:Ae=!0:St==="-"?(o>l,Ae=!0):xe.type===V.ref?Ae=!1:Ae=!0)}if(Ae){o=ce;break}o=ce+1}if(o<=l)return null;for(var g=l,h=o;g<h;){let ce=ie(t,g);if(ce===Oe||ce===Fe)g++;else break}let p=ye(t,g);var b=h>p,S;if(!b)S=t.slice(g,h);else{for(var v=[],_=g,T=0;_<h;){var w=ye(t,_);if(w>h&&(w=h),T===0)v.push(t.slice(_,w));else{for(var A=0;A<4&&_+A<w&&ie(t,_+A)===Oe;)A++;var O=A===4?_+4:_;v.push(t.slice(O,w))}w<h&&ie(t,w)===Dt?(v.push(`
|
|
38
|
+
`),_=w+1):_=h,T++}S=v.join("")}for(var C=S.length;C>0;){var N=S.charCodeAt(C-1);if(N===Oe||N===Fe)C--;else break}C<S.length&&(S=S.slice(0,C));let k=!1;for(let ce=0;ce<S.length;ce++){let me=S.charCodeAt(ce);if(me!==Oe&&me!==Fe&&me!==Dt&&me!==Ln){k=!0;break}}if(!k)return null;for(var B=S,I=o,L=-1,J=o-1;J>=g;){if(ie(t,J)===Dt){L=J;break}J--}if(L>=0){for(var G=!1,q=g;q<L;q++){let ce=ie(t,q);if(ce!==Oe&&ce!==Fe&&ce!==Dt&&ce!==Ln){G=!0;break}}if(!G){for(var Y=L+1;Y<t.length;){let ce=ie(t,Y);if(ce===Oe||ce===Fe)Y++;else break}var P=Y-(L+1);if(P<4&&Y<t.length&&t[Y]==="["){var fe={...i,inline:!1},he=fr(t,Y,fe,r,!1);if(he){for(var de=0,J=g;J<=L;){let me=t.indexOf(`
|
|
39
39
|
`,J);if(me===-1||me>L)break;de++,J=me+1}var j=0,le=0;for(J=0;J<S.length;){let me=S.indexOf(`
|
|
40
|
-
`,J);if(me===-1)break;if(le++,le===de){j=me+1;break}J=me+1}j>0&&(B=S.slice(0,j-1)),I=he.endPos,i.refs=fe.refs}}}}let Q=
|
|
41
|
-
`&&t[p]!=="\r";)p--;for(p++;p<g;)t[p]===" "?h=h+4-h%4:h++,p++;let b=tv(t,g,d,h),S=We(t,d);if(S>=t.length)return b.trim()?{type:V.codeBlock,text:b,endPos:S}:null;var v=[];v.push(b);let _=S;for(;_<t.length;){let
|
|
40
|
+
`,J);if(me===-1)break;if(le++,le===de){j=me+1;break}J=me+1}j>0&&(B=S.slice(0,j-1)),I=he.endPos,i.refs=fe.refs}}}}let Q=Rs(B,0,B.length,i,r);var be={type:V.paragraph,children:Q,endPos:I};if(Q.length>0){for(var ge=[],x=Q.length-1;x>=0;x--){var K=Q[x];if(K.type===V.htmlSelfClosing&&K.isClosingTag===!0)ge.push(x);else if(K.type===V.text){var ee=K;if(ee.text&&ee.text.trim().length>0)break}else break}if(ge.length>=3){var oe=ge[ge.length-1],ne=Q.slice(oe+1);Q.splice(oe+1),be.removedClosingTags=ne}}return be}function Bw(t,l){if(l!==0)return null;let i=Lb(t);return i?.hasValidYaml?{type:V.frontmatter,text:t.slice(0,i.endPos-1),endPos:i.endPos}:null}function Vu(t,l,i,r){let o=ye(t,l),f=$e(t,l,o,3);if(f.spaceEquivalent>3)return null;var d=l+f.charCount;if(d>=o)return null;let g=t[d];if(g!=="-"&&g!=="*"&&g!=="_")return null;for(var h=0,p=d;p<o;){var b=t[p];if(b===g)h++;else if(b!==" "&&b!==" ")return null;p++}return h<3?null:{type:V.breakThematic,endPos:We(t,o)}}function $e(t,l,i,r){let o=0,f=0,d=l;for(;d<i;){var g=ie(t,d);if(g!==Oe&&g!==Fe||r!==void 0&&o>=r)break;g===Fe?o+=4-o%4:o+=1,f++,d++}return{spaceEquivalent:o,charCount:f}}function tv(t,l,i,r){let o=0,f=0,d=r;for(let S=l;S<i&&f<4;S++){var g=ie(t,S);if(g===Fe){let v=4-d%4;if(f+=v,o++,d+=v,f>=4)break}else if(g===Oe){if(f++,o++,d++,f>=4)break}else break}let h=t.slice(l+o,i);for(var p=0,b=l;b<i&&(t[b]===" "&&p++,!(p>=2));b++);return p>=2&&ut(h," ")&&r>0&&(h=" "+h.slice(1)),h}function iu(t,l,i){let r=ye(t,l),o=$e(t,l,r);if(o.spaceEquivalent<4)return null;let f=o.spaceEquivalent,d=ye(t,l+o.charCount),g=l,h=0;for(var p=g-1;p>=0&&t[p]!==`
|
|
41
|
+
`&&t[p]!=="\r";)p--;for(p++;p<g;)t[p]===" "?h=h+4-h%4:h++,p++;let b=tv(t,g,d,h),S=We(t,d);if(S>=t.length)return b.trim()?{type:V.codeBlock,text:b,endPos:S}:null;var v=[];v.push(b);let _=S;for(;_<t.length;){let w=ye(t,_);if(ka(t,_,w)){let A=w+1;if(A<t.length){let O=ye(t,A),C=$e(t,A,O),N=t[A+C.charCount];if(N&&N!==`
|
|
42
42
|
`&&(C.spaceEquivalent<4||N===">"&&C.spaceEquivalent<f))break}v.push(`
|
|
43
|
-
`)}else{if($e(t,_,
|
|
44
|
-
`),v.push(A)}_=We(t,
|
|
45
|
-
`?C-1:C,k=t.slice(O,N);p&&(k=vh(k,p));let B=C<t.length?We(t,ye(t,C)):C;return{type:V.codeBlock,text:k,lang:
|
|
43
|
+
`)}else{if($e(t,_,w).spaceEquivalent<4)break;let A=tv(t,_,w,0);v.push(`
|
|
44
|
+
`),v.push(A)}_=We(t,w)}let T=v.join("");return T=T.replace(ww,""),T.trim()?{type:V.codeBlock,text:T,endPos:_}:null}function _p(t,l,i,r){let o=t[l];if(o!=="`"&&o!=="~")return null;let f=lr(t,l,o);if(f<3)return null;let d=l;for(;d>0&&ie(t,d-1)!==Dt;)d--;let g=$e(t,d,l),h=g.spaceEquivalent,p=h;if(h===4&&g.charCount===4&&(h=0,p=4),h>=4)return null;let b=yn(t,l+f),S=ye(t,b),v=t.slice(b,S).trim();if(o==="`"&&v.indexOf("`")!==-1)return null;v=v.replace(ch,"$1");let _=v.indexOf(" "),T=_>0?v.slice(0,_):v,w=_>0?v.slice(_+1).trim():"",A=w&&/=\s*["']/.test(w)?di(w,"code","code",r):void 0,O=We(t,S),C=O;for(;C<t.length;){let I=ye(t,C),L=C,J=0;for(;L<I;){let G=ie(t,L);if(G===Oe){if(J++,L++,J>=4)break}else if(G===Fe){if(J+=4-J%4,L++,J>=4)break}else break}if(J<4){let G=lr(t,L,o,I-L);if(G>=f){let q=L+G;for(;q<I;){let Y=ie(t,q);if(Y===Oe||Y===Fe)q++;else break}if(q===I)break}}else if(p===4&&h===0&&J===4){let G=lr(t,L,o,I-L);if(G>=f&&ka(t,L+G,I))break}C=We(t,I)}let N=C>O&&t[C-1]===`
|
|
45
|
+
`?C-1:C,k=t.slice(O,N);p&&(k=vh(k,p));let B=C<t.length?We(t,ye(t,C)):C;return{type:V.codeBlock,text:k,lang:T,attrs:A,endPos:B}}function Uw(t,l,i){for(var r=0;r<t.length;r++)if(!hh(t[r])){let f=bp(t,l,i,{inline:!1,inBlockQuote:!0});for(var o=0;o<f.length;o++){let d=f[o];"endPos"in d&&delete d.endPos}return f}return[]}function Kb(t,l,i,r){if(i.inline)return null;let o=l;for(;o<t.length&&(t[o]===" "||t[o]===" ");)o++;if(o>=t.length||t[o]!==">")return null;let f=l;for(var d=[],g=void 0,h=-1,p=!1,b=null,S=null,v=0,_=!1;f<t.length;){let B=ye(t,f),I=f;for(;I<B&&(t[I]===" "||t[I]===" ");)I++;if(I<B&&t[I]===">"){let L=I+1;L<B&&t[L]===" "&&L++;let J=$e(t,L,B).spaceEquivalent>=4,G=!1,q=null,Y=0;if(L<B){let fe=t[L];if(fe==="`"||fe==="~"){let he=0,de=L;for(;de<B&&t[de]===fe&&he<20;)he++,de++;he>=3&&(G=!0,q=fe,Y=he)}}p&&b==="fenced"&&q===S&&Y>=v?(p=!1,b=null,S=null,v=0):(J||G)&&(p=!0,b=J?"indented":"fenced",S=q,v=Y);var T=!J&&!G;if(T){for(var w=L;w<B;w++)if(!hh(t[w])){T=!1;break}}_=T,h===-1&&!T&&(h=d.length);let P=I+1;if(P<B&&t[P]===" "){d.push(" ");let fe=4;for(let he=P+1;he<B;he++){let de=t[he];var A=ie(de);if(A===Fe){let j=4-fe%4;j===1?d.push(" "):j===2?d.push(" "):j===3?d.push(" "):d.push(" ".repeat(j)),fe+=j}else d.push(de),fe++}B<t.length&&d.push(`
|
|
46
46
|
`)}else{let fe=P;fe<B&&t[fe]===" "&&fe++,d.push(t.slice(fe,B)),B<t.length&&d.push(`
|
|
47
|
-
`)}}else{for(var O=!0,
|
|
47
|
+
`)}}else{for(var O=!0,w=f;w<B;w++)if(!hh(t[w])){O=!1;break}if(O||p)break;if($e(t,f,B).spaceEquivalent===0){let L=Ns(t,f,i,r);if(L&&L.type!==V.ref&&L.type!==V.codeBlock||_)break}d.push(t.slice(f,B)),B<t.length&&d.push(`
|
|
48
48
|
`)}f=We(t,B)}if(f===l)return null;d.length>0&&d[d.length-1]===`
|
|
49
|
-
`&&d.pop();let C=d.join("");if(C.length>=4&&C.charCodeAt(0)===
|
|
50
|
-
`,2);B>2&&(g=C.slice(2,B),C=C.slice(B+2))}let N=
|
|
49
|
+
`&&d.pop();let C=d.join("");if(C.length>=4&&C.charCodeAt(0)===mi&&C.charCodeAt(1)===sp){let B=C.indexOf(`]
|
|
50
|
+
`,2);B>2&&(g=C.slice(2,B),C=C.slice(B+2))}let N=Uw(C,i,r),k={type:V.blockQuote,children:N,endPos:f};return g&&(k.alert=g),k}function vh(t,l){return t.split(`
|
|
51
51
|
`).map(function(i){if(i.length===0)return i;let r=l,o=0,f=0,d=0;for(;f<i.length&&o<r;)if(i[f]===" ")o++,d++,f++;else if(i[f]===" "){let g=4-d%4;if(o+g<=r)o+=g,d+=g,f++;else{let h=r-o,p=Math.max(0,g-h);return" ".repeat(p)+i.slice(f+1)}}else break;return i.slice(f)}).join(`
|
|
52
52
|
`)}function ru(t,l,i,r,o=!0){let f=(o?`
|
|
53
|
-
`:"")+t,d=
|
|
54
|
-
`+p,f=We(t,g)}return{content:o,endPos:f}}function
|
|
55
|
-
`||d==="\r"||d==="/")break;if(d==="-"||d==="_"||
|
|
56
|
-
`},...O),{processed:!0,newPos:We(t,i),wasBlank:!1}}let
|
|
53
|
+
`:"")+t,d=Rs(f,0,f.length,i,r);l.length>0&&l[l.length-1].type===V.paragraph?l[l.length-1].children.push(...d):l.push(...d)}function hs(t){return t.some(function(l){return l.type===V.codeBlock||l.type===V.paragraph||l.type===V.blockQuote||l.type===V.orderedList||l.type===V.unorderedList||l.type===V.heading})}function nv(t){return!!t.match(mp)}function Jb(t){if(t.length===0)return t;var l=t[t.length-1];return(l.type===V.orderedList||l.type===V.unorderedList)&&l.items?.length>0?Jb(l.items.slice(-1)[0]):t}function bh(t,l,i,r,o,f,d){if(!ut(o,"["))return null;var g={inline:!1,refs:f.refs||{}},h=fr(t,l+r.charCount,g,d,!1);return h?h.endPos:null}function av(t,l,i,r){return t.length!==1||!i||t[0].length!==0?!1:!!(l||!l&&r.trim()==="")}function lv(t,l){var i=t.index||0;return l?i+t[1].length+t[2].length+1:i+t[1].length+1}function Xu(t,l,i,r,o){for(var f=0,d=r+o,g=l;g<i&&f<4;){var h=ie(t,g);if(h===Oe)f++,d++;else if(h===Fe){var p=4-d%4;if(f+p>4)break;f+=p,d+=p}else break;g++}return{contentStartColumn:d,contentStartPos:g}}function zd(t){var l=t.match(mp);return l?l[1]?{match:[t,l[1],l[2],l[3]],ordered:!0,listItemRegex:fh}:l[4]?{match:[t,l[4],l[5],""],ordered:!0,listItemRegex:fh}:l[6]?{match:[t,l[6],l[7]],ordered:!1,listItemRegex:dh}:l[8]?{match:[t,l[8],""],ordered:!1,listItemRegex:dh}:null:null}function Il(t,l,i,r,o,f,d){if(l.spaceEquivalent!==f)return!1;var g=t.match(d);if(g)return i?g[2]===o:g[1]===r;var h=t.match(mp);return h?i?h[4]&&h[5]===o:h[8]===r:!1}function Pb(t,l,i,r){for(var o=l,f=i,d=l[0];f<t.length;){var g=ye(t,f),h=t.slice(f,g),p=ut(h," ".repeat(r))?h.slice(r):h;if(ut(p.trim(),d)&&lr(p.trim(),0,d)>=3)return{content:o,endPos:We(t,g)};o+=`
|
|
54
|
+
`+p,f=We(t,g)}return{content:o,endPos:f}}function Jo(t,l,i,r,o,f,d,g,h,p,b,S,v){var _=p?void 0:h[1],T=p?h[2]:void 0,w=p?fh:dh,A=b;if(!b)for(var O=We(t,f),C=O;C<t.length;){var N=ye(t,C),k=t.slice(C,N),B=$e(t,C,N),I=B.spaceEquivalent;if(ka(t,C,N)){var L=We(t,N);if(L<t.length){var J=ye(t,L),G=$e(t,L,J),q=G.spaceEquivalent,fe=lv(h,p),he=o+g+fe,de=Xu(t,he,f,d,fe),j=de.contentStartColumn;if(q+1>j){A=!0;break}}break}else if(I<=d){var Y=k.slice(B.charCount),P=Y.match(w);if(P&&(p?P[2]===T:P[1]===_))break}C=We(t,N)}var fe=lv(h,p),he=o+g+fe,de=Xu(t,he,f,d,fe),j=de.contentStartColumn,le=r,Q=We(t,f);if(ut(r,"```")||ut(r,"~~~")){var be=p?h[1].length+h[2].length+1:h[1].length+1,ge=Pb(t,r,Q,be);le=ge.content,Q=ge.endPos}return l.push(Wb(le,A,S,v)),i.push(j),{newCurrentPos:Q,itemHasBlankLine:A}}function iv(t,l,i,r,o,f){if(o>r||f.disableParsingRawHTML)return!1;let d=l+i;return d>=t.length||t[d]!=="<"?!1:Hw(t,d)}function Hw(t,l){if(l>=t.length||t[l]!=="<")return!1;let i=t.length,r=l+1;if(r<i&&t[r]==="/"&&r++,r>=i)return!1;let o=ie(t,r);if(!gi(o))return!1;for(r++;r<i;){let d=t[r],g=ie(t,r);if(d===">"||d===" "||d===" "||d===`
|
|
55
|
+
`||d==="\r"||d==="/")break;if(d==="-"||d==="_"||gi(g)||g>=48&&g<=57)r++;else return!1}let f=0;for(;r<i;){let d=t[r],g=ie(t,r);if(f===1)d==='"'&&(f=0),r++;else if(f===2)d==="'"&&(f=0),r++;else if(d==='"')f=1,r++;else if(d==="'")f=2,r++;else{if(d===">")return!0;if(d==="/"&&r+1<i&&t[r+1]===">")return!0;if(g===10||g===13)return!1;r++}}return!1}function rv(t,l,i,r,o,f,d,g,h,p,b,S){let v=r,_=!1;for(;v<t.length;){let T=ye(t,v),w=$e(t,v,T),A=w.spaceEquivalent;if(ka(t,v,T)){_=!0,v=We(t,T);continue}let O=t.slice(v+w.charCount,T);if(A<=o&&Il(O,w,f,d,g,o,h))break;if(A>=i){if(S&&_){let N=bh(t,v,T,w,O,p,b);if(N){v=N,_=!1;continue}}let C=su(t,v,T,w,i-1,i,l,_,p,b,void 0);if(C.processed){v=C.newPos,_=C.wasBlank;continue}}else break}return v}function sv(t,l,i,r){let o=bp(t,i,r,{inline:!1,list:!0});if(o.length>0)return!l&&o.length===1&&o[0].type===V.paragraph?o[0].children:o;let f=lc(i,!0,()=>vi(t,0,t.length,i,r));return l&&f.length>0?[{type:V.paragraph,children:f}]:f}function Wb(t,l,i,r){let o=zw(t,0);if(!(o&&(o.endPos>=t.length||t[o.endPos]===" ")))return sv(t,l,i,r);let f=o.endPos<t.length?o.endPos+1:o.endPos,d=t.slice(f),g=sv(d,l,i,r),h=[o];return o.endPos<t.length&&h.push({type:V.text,text:" "}),h.push(...g),h}function ov(t,l){if(!t[0])return!1;let i=t[0].indexOf(l);if(i===-1)return!1;let r=i+l.length;if(r>=t[0].length)return!1;let o=t[0][r];return o?ie(o)===J3:!1}function $b(t,l,i){if(t.length===0)return!1;let r=t[t.length-1],o=l.trim();if(!ut(o,"=")&&!ut(o,"-")||o.length<1||!/^[=-]+[ \t]*$/.test(o))return!1;let f=[],d="";if(r.type===V.paragraph){let h=r;f=h.children,d=h.children.map(p=>p.type===V.text?p.text:"").join("").trim()}else if(r.type===V.text){let h=[],p=t.length-1;for(;p>=0&&t[p].type===V.text;)h.unshift(t[p]),p--;h.length>0&&(f=h,d=h.map(b=>b.text).join("").trim())}if(!d)return!1;let g=o[0]==="="?1:2;if(r.type===V.paragraph)t.pop();else if(r.type===V.text)for(;t.length>0&&t[t.length-1].type===V.text;)t.pop();return t.push(Uu(g,f,d,i.slugify)),!0}function su(t,l,i,r,o,f,d,g,h,p,b,S){let v=r.spaceEquivalent,_=t.slice(l+r.charCount,i);if(v>=o+4){let O=iu(t,l);if(O){let C=O,N=vh(C.text||"",f);return d.push({...C,text:N}),{processed:!0,newPos:C.endPos,wasBlank:!1}}}let T=v-(f-1);if(v+1>=f&&T<=3){let O=l+r.charCount;if(O<i){let C=t[O];if(C==="`"||C==="~"){let N=_p(t,O,h,p);if(N){let k=N,B=vh(k.text||"",f-1);return d.push({...k,text:B,endPos:k.endPos}),{processed:!0,newPos:k.endPos,wasBlank:!1}}}}}if(_.length>0&&(_[0]==="-"||_[0]==="*"||_[0]==="+"||_[0]>="0"&&_[0]<="9")&&/^([-*+]|\d{1,9}[.)])\s+/.test(_)){let O=Rs(_,0,_.length,h,p);return d.push({type:V.text,text:`
|
|
56
|
+
`},...O),{processed:!0,newPos:We(t,i),wasBlank:!1}}let w=gw(t,l,d,_,h,p);if(w!==null)return{processed:!0,newPos:w,wasBlank:!1};let A=bp(_,h,p,{inline:!1,list:!0});if(A.length>0){if(b&&A[0].type===V.paragraph){let O=A[0];d.push({type:V.text,text:`
|
|
57
57
|
`},...O.children),A.length>1&&d.push(...A.slice(1))}else if(!g&&A[0].type===V.paragraph&&d.length>0){let O=d[d.length-1],C=A[0];O.type===V.paragraph?O.children.push({type:V.text,text:`
|
|
58
|
-
`},...C.children):O.type===V.heading?d.push(...C.children):hs(d)?d.push(...A):d.push({type:V.text,text:" "},...C.children),A.length>1&&d.push(...A.slice(1))}else d.push(...A);return{processed:!0,newPos:We(t,i),wasBlank:!1}}if(g){let O=lc(h,!0,()=>
|
|
59
|
-
`+b,Q=l=We(t,d)}if(P.push(
|
|
60
|
-
`)){let ne=f,ce=d.length;for(;ne<ce;){let me=ye(d,ne);if(ka(d,ne,me))break;let Se=d.slice(ne,me).trim();if(Se.length>0&&
|
|
61
|
-
`)!==-1&&(_=
|
|
62
|
-
`||C===">"){A=O;break}}i=
|
|
58
|
+
`},...C.children):O.type===V.heading?d.push(...C.children):hs(d)?d.push(...A):d.push({type:V.text,text:" "},...C.children),A.length>1&&d.push(...A.slice(1))}else d.push(...A);return{processed:!0,newPos:We(t,i),wasBlank:!1}}if(g){let O=lc(h,!0,()=>vi(_,0,_.length,h,p));d.push({type:V.paragraph,children:O})}else ru(_,d,h,p);return{processed:!0,newPos:We(t,i),wasBlank:!1}}function yh(t,l,i,r){if(i.inline)return null;var o=i.inList;if(i.inList=!0,l>0){var f=ie(t,l-1);if(f!==Dt&&f!==Ln)return i.inList=o,null}var d=ye(t,l),g=$e(t,l,d);if(g.spaceEquivalent>3&&!i.inList)return i.inList=o,null;var h=t.slice(l,d),p=g.charCount,b=h.slice(p),S=zd(b);if(!S)return i.inList=o,null;var{match:v,ordered:_,listItemRegex:T}=S,w=g.spaceEquivalent,A=_?parseInt(v[1],10):void 0,O=_?v[2]:void 0,C=_?void 0:v[1],N=_?v[3]==="":v[2]==="";function k(ze,ue){if(ze===0)return!0;var D=ie(t,ze-1);if(D!==Dt)return!1;if(!ue)return!0;for(var W=ze-2;W>=0;){var re=ie(t,W);if(re!==Oe&&re!==Fe)break;W--}return W<0||ie(t,W)===Dt}if(N&&!k(l,!0))return i.inList=o,null;if(_&&A!==1&&!k(l,!1)||!_&&ov(v,C))return null;var B=v.index||0,I=_?B+v[1].length+v[2].length+1:N?B+v[1].length:B+v[1].length+1,L=l+p+I,J=Xu(t,L,d,w,I),G=J.contentStartColumn,q=w+B+v[1].length,Y=_?q+v[2].length+1:N?q:q+1,P=[],fe=[];function he(ze,ue,D){return D?ze>=ue:ze>ue}function de(){return P[P.length-1]}function j(){return fe[fe.length-1]??G}function le(ze,ue){let D=Jb(ue),W=i.inList;i.inList=!0;let re=yh(t,ze,i,r);return i.inList=W,re?(D.push(re),re):null}for(var Q=We(t,d),be=Q,ge=!1;be<t.length;){var x=ye(t,be),K=t.slice(be,x);if(K.trim()===""){for(var ee=We(t,x);ee<t.length;){var oe=ie(t,ee);if(oe!==Dt){if(!Rw.has(t[ee]))break}ee++}var ne=ye(t,ee),ce=t.slice(ee,ne),me=$e(t,ee,ne),Se=ce.slice(me.charCount);if(Il(Se,me,_,C,O,w,T))ge=!0;else{var we=bh(t,ee,ne,me,Se,i,r);if(we){for(var Be=we;Be<t.length&&ie(t,Be)===Dt;)Be++;if(Be<t.length){var St=ye(t,Be),Ae=t.slice(Be,St),gt=$e(t,Be,St),Tt=Ae.slice(gt.charCount);Il(Tt,gt,_,C,O,w,T)&&(ge=!0)}}}break}var xe=$e(t,be,x),ct=K.slice(xe.charCount),tn=zd(ct);if(!tn)break;var Sn=tn.match;if(_){if(Sn[2]!==O)break}else if(Sn[1]!==C)break;be=We(t,x)}var Xe=_?v[3]:v[2];Xe=Xe.trimStart();for(var Zt=l+p+(v.index||0),Ct=_?Zt+v[1].length+v[2].length:Zt+v[1].length,nn=Ct;nn<t.length;){var oe=ie(t,nn);if(oe!==Oe&&oe!==Fe)break;nn++}for(var Et=0,st=Ct;st<d;){var oe=ie(t,st);if(oe===Fe)Et+=4-Et%4;else if(oe===Oe)Et++;else break;st++}var On=!1;if(Ct<t.length&&ie(t,Ct)===Fe){for(var It=1,Ft=Ct+1;Ft<t.length&&ie(t,Ft)===Fe;)It++,Ft++;It>=2&&(Xe=" "+Xe,On=!0)}_||(N=N&&Et===0),Et>=4&&!On&&(Xe=" ".repeat(Et-1)+Xe.trimStart()),Xe.trim();let Vt=ge;if(!ge&&Q<t.length)for(var cn=Q;cn<t.length;){var fn=ye(t,cn),ua=t.slice(cn,fn);if(ka(t,cn,fn)){for(var nt=We(t,fn);nt<t.length;){var dn=ye(t,nt);if(ka(t,nt,dn))nt=We(t,dn);else break}if(nt<t.length){var mt=$e(t,nt,t.length),ft=mt.spaceEquivalent;if(ft>=w){for(var Je=t.slice(nt,ye(t,nt)),qe=Je.slice(mt.charCount).match(T),an=qe&&(_?qe[2]===O:qe[1]===C),hn=null,Lt=Q;Lt<cn;Lt=ye(t,Lt)+1){var at=ye(t,Lt),Yt=$e(t,Lt,at),At=t.slice(Lt,at).slice(Yt.charCount).match(T),Dn=At&&Yt.spaceEquivalent>w&&Yt.spaceEquivalent>=G&&(_?At[2]===O:At[1]===C);if(Dn){var Rn=Yt.spaceEquivalent+1,vt=_?Rn+At[1].length+At[2].length+1:Rn+At[1].length+1,ln=Lt+Yt.charCount+At[0].length,ca=Xu(t,ln,at,Rn,vt-Rn);hn=ca.contentStartColumn;break}}var jn=Et>=5?Y:G;!an&&ft>=jn&&(hn===null||ft+1<hn)&&(Vt=!0)}}break}var fa=$e(t,cn,fn),rn=fa.spaceEquivalent,sn=ua.slice(fa.charCount),Kt=sn.match(T),zt=Kt&&(_?Kt[2]===O:Kt[1]===C);if(zt&&rn<=w)break;cn=We(t,fn)}var Pe=Xe;if(ut(Xe,"```")||ut(Xe,"~~~")){var Bn=_?v[1].length+v[2].length+1:v[1].length+1,Nn=Pb(t,Xe,Q,Bn);Pe=Nn.content,Q=Nn.endPos}var jt=!N&&Xe.trim()===""&&Et>0&&Et<5;if(jt&&!Vt)for(var l=Q;l<t.length;){var d=ye(t,l),h=t.slice(l,d);if(h.trim()==="")break;var g=$e(t,l,d);if(g.spaceEquivalent<Y)break;var b=h.slice(g.charCount);if(g.spaceEquivalent<=w&&Il(b,g,_,C,O,w,T))break;Pe+=`
|
|
59
|
+
`+b,Q=l=We(t,d)}if(P.push(Wb(Pe,Vt,i,r)),fe.push(G),Vt&&(Et>=5||jt)){let ze=de();Q=rv(t,ze,Y,Q,w,_,C,O,T,i,r,!0)}else if(!Vt){let ze=Y-1;for(;Q<t.length;){let ue=ye(t,Q),D=t.slice(Q,ue),W=$e(t,Q,ue),re=W.spaceEquivalent,Ee=D.slice(W.charCount);if(D.trim()===""||re<=w&&Il(Ee,W,_,C,O,w,T)||nv(Ee)&&re>w||re<ze)break;let Qe=de(),pe=su(t,Q,ue,W,ze,G,Qe,!1,i,r,!0);if(pe.processed)Q=pe.newPos;else break}}for(var De=!1;Q<t.length;){let ze=ye(t,Q),ue=t.slice(Q,ze),D=$e(t,Q,ze),W=D.charCount,re=D.spaceEquivalent;if(ue.trim()==="")ge=!0,De=!0,Q=We(t,ze);else if(re<w){let Ee=ue.slice(W);if(Ee.startsWith("<")&&iv(t,Q,W,w,re,r))break;let Qe=Ee.trim();if(Qe.length>0&&P.length>0&&!ws(Qe[0])&&!Il(Ee,D,_,C,O,w,T)){let pe=de();if(pe.length>0){let dt=pe[pe.length-1];if(dt.type===V.paragraph||dt.type===V.text){ru(Ee,pe,i,r),De=!1,Q=We(t,ze);continue}}}break}else{let Ee=ue.slice(W);if(P.length>0){let Re=fe[P.length-1]||G;if(re+1>=Re&&!Il(Ee,D,_,C,O,w,T)){let lt=de();if(lt.length>0&&$b(lt,Ee,r)){Q=We(t,ze);continue}}}if(Vu(t,Q))break;if(De){let Re=bh(t,Q,ze,D,Ee,i,r);if(Re){Q=Re,De=!1;continue}}if(re<=w){if(Ee.startsWith("<")&&iv(t,Q,W,w,re,r))break;if(!Il(Ee,D,_,C,O,w,T)){if(re===w&&!De){let Re=Ee.trim();if(Re.length>0&&!ws(Re[0])){let lt=Ns(t,Q,i,r);if(lt&<.type!==V.paragraph)break;let tt=de();if(tt.length>0&&!hs(tt)){ru(Ee,tt,i,r,!1),De=!1,Q=We(t,ze);continue}}}break}}if(av(P,N,De,Xe))break;let Qe=zd(Ee),pe=Qe?Qe.match:null,dt=pe&&(_?pe[2]===O:pe[1]===C);if(dt&&re>3&&De)break;if(dt&&re<=w+3){if(re>=4&&De)break;if(re===w){let Re=_?pe[3]:pe[2];if(Re=Re.trimStart(),Q=Jo(t,P,fe,Re,Q,ze,re,W,pe,_,ge,i,r).newCurrentPos,De=!1,Re.trim()===""){let lt=P[P.length-1],tt=j();Q=rv(t,lt,tt,Q,w,_,C,O,T,i,r)}continue}if(re>w){if(De){let Ne=_?pe[3]:pe[2];Ne=Ne.trimStart(),Q=Jo(t,P,fe,Ne,Q,ze,re,W,pe,_,ge,i,r).newCurrentPos,De=!1;continue}let Re=de(),lt=re+1,tt=he(lt,j(),hs(Re));if(tt){let Ne=le(Q,Re);if(Ne){Q=Ne.endPos,De=!1;continue}}if(!tt&&dt){let Ne=_?pe[3]:pe[2];if(Ne=Ne.trimStart(),!ge){let Mt=We(t,ze);for(;Mt<t.length;){let Xt=ye(t,Mt),La=t.slice(Mt,Xt),Ue=$e(t,Mt,Xt),Yn=Ue.spaceEquivalent;if(La.trim()===""){let gn=We(t,Xt);if(gn<t.length){let Mn=$e(t,gn,t.length).spaceEquivalent,za=re+(_?pe[1].length+pe[2].length+1:pe[1].length+1);if(Mn+1>za)break}break}else if(Yn<=w){let gn=La.slice(Ue.charCount).match(T);if(gn&&(_?gn[2]===O:gn[1]===C)&&Yn<=w)break}Mt=We(t,Xt)}}Q=Jo(t,P,fe,Ne,Q,ze,re,W,pe,_,ge,i,r).newCurrentPos,De=!1;continue}else if(!tt&&!dt)break;{let Ne=de(),Mt=Ne.length===0;if(Mt&&av(P,N,De,Xe))break;let Xt=Ne.some(Ue=>Ue.type===V.codeBlock||Ue.type===V.paragraph||Ue.type===V.blockQuote||Ue.type===V.orderedList||Ue.type===V.unorderedList||Ue.type===V.heading),La=Mt&&P.length===1?Y:G;if(Xt?re>=La:re>La){let Ue=su(t,Q,ze,D,La,G,de(),De,i,r,void 0);if(Ue.processed){De=Ue.wasBlank,Q=Ue.newPos;continue}}else break}}else if(re===w){if(!_&&pe&&ov(pe,pe[1]))break;let Re=_?pe[3]:pe[2];Re=Re.trimStart(),Q=Jo(t,P,fe,Re,Q,ze,w,W,pe,_,ge,i,r).newCurrentPos,De=!1}}else if(re>w){let Re=de();if(nv(Ee)){let tt=re+1;if(he(tt,j(),hs(Re))){let Ne=le(Q,Re);if(Ne){Q=Ne.endPos,De=!1;continue}}if(re-w>3){let Ne=Re.length>0?Re[Re.length-1]:null;if(Ne&&(Ne.type===V.paragraph||Ne.type===V.text)){ru(Ee,Re,i,r),De=!1,Q=We(t,ze);continue}}else break}else{let tt=le(Q,Re);if(tt){Q=tt.endPos,De=!1;continue}}let lt=G;if(hs(Re)?re>=lt-1:re>lt-1){let tt=su(t,Q,ze,D,lt-1,G,de(),De,i,r,void 0);if(tt.processed){De=tt.wasBlank,Q=tt.newPos;continue}}else break}else break}}if(ge&&P.length>1&&P[0].length>0&&P[0][0].type!==V.paragraph){for(var et=1;et<P.length;et++)if(P[et].length>0&&P[et][0].type===V.paragraph){for(var pn=!1,Fn=0;Fn<P[0].length;Fn++){var on=P[0][Fn].type;if(on===V.codeBlock||on===V.heading||on===V.blockQuote||on===V.orderedList||on===V.unorderedList||on===V.htmlBlock||on===V.breakThematic){pn=!0;break}}pn||(P[0]=[{type:V.paragraph,children:P[0]}]);break}}let wa=_?{type:V.orderedList,items:P,ordered:!0,start:A}:{type:V.unorderedList,items:P,ordered:!1};return i.inList=o,{...wa,endPos:Q}}function Iw(t,l,i,r){if(i.inline)return null;let o=[],f=l;for(;f<t.length;){let T=ye(t,f);if(ka(t,f,T))break;let w=t.slice(f,T).trim();if(!(w.indexOf("|")!==-1||o.length>=3&&w&&!ws(w[0])))break;o.push(w),f=We(t,T)}if(o.length<2)return null;let d=T=>T[0]==="|"&&T[T.length-1]==="|"?T.slice(1,-1):T,g=T=>{let w=[],A="",O=!1;for(let C=0;C<T.length;C++){let N=T[C];N==="\\"&&C+1<T.length&&T[C+1]==="|"?(A+="|",C++):N==="`"?(O=!O,A+=N):N==="|"&&!O?(w.push(A.trim()),A=""):A+=N}return w.push(A.trim()),w},h=g(d(o[0]));if(!h.length)return null;let p=g(d(o[1]));if(p.length!==h.length||p.some(T=>!/^:?-+:?$/.test(T)))return null;let b=p.map(T=>{let w=T[0]===":",A=T[T.length-1]===":";return w&&A?"center":w?"left":A?"right":null}),S=T=>lc(i,!0,()=>T.map(w=>vi(w,0,w.length,i,r))),v=S(h),_=o.slice(2).map(T=>{let w=T.indexOf("|")!==-1?g(d(T)):[T.trim()],A=h.length;for(;w.length<A;)w.push("");return w.length=A,S(w)});return{type:V.table,header:v,cells:_,align:b,endPos:f}}var Vw=["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"],Xw=new Set(["pre","script","style","textarea"]);function ms(t){return Vw.indexOf(t.toLowerCase())!==-1}function Ts(t){return Xw.has(t)}function ka(t,l,i){for(var r=l;r<i;r++){let o=ie(t,r);if(o!==Oe&&o!==Fe&&o!==Ln)return!1}return!0}function lc(t,l,i){let r=t.inline;t.inline=l;try{return i()}finally{t.inline=r}}function jd(t,l,i){for(var r=l;r<i;){var o=ye(t,r);if(ka(t,r,o))return r;r=o+(o<i?1:0)}return i}function Bd(t,l,i){return{type:V.htmlComment,text:t,endPos:l,...i}}function $i(t,l,i,r,o,f,d,g){var h=l;if(g&&g.forceBlock&&l&&!f){var p=new RegExp("^<"+t.toLowerCase()+"(\\s[^>]*)?>$","i");p.test(l.trim())&&(h="")}return{type:V.htmlBlock,tag:t,attrs:r||{},rawAttrs:o,children:[],text:h,noInnerParse:!0,isClosingTag:f,canInterruptParagraph:d,endPos:i}}function vs(t){let l=Qb.test(t),i=Xb.test(t),r=Sw.test(t);return l||i&&!r}function uv(t,l,i,r,o,f,d,g,h,p){if(!g.inHTML&&!g.inline&&!dp(o,`
|
|
60
|
+
`)){let ne=f,ce=d.length;for(;ne<ce;){let me=ye(d,ne);if(ka(d,ne,me))break;let Se=d.slice(ne,me).trim();if(Se.length>0&&ws(Se[0])){let we=ic(d,ne,g,p);if(we){ne=we.endPos;continue}let Be=cr(d,ne);if(Be){ne=Be.endPos;continue}return null}ne=We(d,me)}}let b=l,S=Ts(b);var v=!S&&!gs(l),_=void 0;if(o){var T=o.indexOf(">");if(T!==-1){var w=o.slice(0,T+1);w.indexOf(`
|
|
61
|
+
`)!==-1&&(_=w);for(var A=T,O=1;O<T;O++){var C=w[O];if(C===" "||C===" "||C===`
|
|
62
|
+
`||C===">"){A=O;break}}i=w.slice(A,T)}}var N=i.replace(/^[\s\n\r\t]+/,""),k=di(N,l,t,p),B={...k},I=!1,L=!1;if(v&&r.length>0){var J="</"+b,G=r.indexOf(J);if(G>=0){for(var q=G+J.length;q<r.length&&(r[q]===" "||r[q]===" ");)q++;if(q<r.length&&r[q]===">"){var Y=r.slice(0,G);vs(Y)?(r=Y,L=!0):I=!0}}if(!L){var P=r.length-1;if(r[P]===`
|
|
63
63
|
`){for(P--;P>=0&&(r[P]===" "||r[P]===" "||r[P]==="\r");)P--;P>=0&&r[P]===`
|
|
64
|
-
`&&(I=!0)}}}var fe=S||v&&I&&!
|
|
64
|
+
`&&(I=!0)}}}var fe=S||v&&I&&!vs(r);fe&&(r.length>0&&r[0]===`
|
|
65
65
|
`&&(r=r.slice(1)),r.length>0&&r[r.length-1]===`
|
|
66
|
-
`&&(r=r.slice(0,-1)));let he=r.match(/^([ \t]*)/),de=he?he[1]:"",j=new RegExp(`^${de.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"gm"),le=r.replace(j,""),Q=
|
|
67
|
-
`||
|
|
66
|
+
`&&(r=r.slice(0,-1)));let he=r.match(/^([ \t]*)/),de=he?he[1]:"",j=new RegExp(`^${de.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"gm"),le=r.replace(j,""),Q=Xb.test(le),be=Qb.test(le),ge=b==="p",x=Vb.test(le),K=ge?Q:Q||be||g.inHTML&&x,ee=[];if(!fe&&le)if(K||x){let ne={...g,inline:!1,inHTML:!0,inAnchor:g.inAnchor||b==="a"};ee=yp(le,ne,p)}else{let ne={...g,inline:!0,inAnchor:g.inAnchor||b==="a"};ee=vi(le,0,le.length,ne,p)}var oe=void 0;return fe&&(_!==void 0?oe=_+r:oe=r),{type:V.htmlBlock,tag:fe?l:t,attrs:B,rawAttrs:i,children:ee,text:oe,noInnerParse:fe,canInterruptParagraph:!0,endPos:f}}function ic(t,l,i,r){if(t[l]!=="<")return null;if(i.inline,l+1<t.length){if(t[l+1]==="?"){var o=ou(t,l);if(o&&o.kind==="pi")return Bd(o.text||"",o.endPos,{raw:!0})}else if(t[l+1]==="!"){if(l+3<t.length&&t.slice(l,l+4)==="<!--"){i.inline;var f=ou(t,l);if(f&&f.kind==="comment"){var d=f.text||"",g=!1;return d==="<!-->"?(d="",g=!0):d==="<!--->"?(d="-",g=!0):d.startsWith("<!--")&&d.endsWith("-->")&&(d=d.slice(4,-3)),i.inline,Bd(d,f.endPos,{endsWithGreaterThan:g})}}var h=ou(t,l);if(h&&(h.kind==="declaration"||h.kind==="cdata"))return Bd(h.text||"",h.endPos,{raw:!0})}}if(l+1<t.length){let _i=t[l+1];if(_i===" "||_i===`
|
|
67
|
+
`||_i===" "||_i==="\r")return null}var p=t.indexOf(">",l+1);if(p!==-1){var b=t.slice(l+1,p),S=b.indexOf(" ")!==-1||b.indexOf(" ")!==-1;if(!S&&(ut(b,"http://")||ut(b,"https://"))||!S&&Zb(b))return null}var v=cr(t,l);if(!v&&!i.inline){for(var _=t.length,T=ye(t,l),w=l,A=0;w<T&&A<3&&(t[w]===" "||t[w]===" ");)A++,w++;if(w>=T||t[w]!=="<")return null;if(w+1<T){var Mt=ph(t,w+1);if(Mt){var Xt=Mt.tagName,O=ms(Xt);if(!O)return null;for(var C=Mt.nextPos,N=!1,k=!1,B="",I=T,L=!1;I<_&&!L;){for(var J=!1;C<I;){var G=t[C];if(k)G===B&&(k=!1,B=""),(G===`
|
|
68
68
|
`||G==="\r")&&(N=!0),C++,J=!0;else if(G==='"'||G==="'")k=!0,B=G,C++,J=!0;else if(G===`
|
|
69
|
-
`||G==="\r"){N=!0,C++,J=!0;var q=ye(t,C);if(q===C)break;I=q}else if(G===">"){C++,L=!0;break}else C++,J=!0}if(L)break;if(!J&&C>=I){var Y=ye(t,I+1);if(Y<=I)break;I=Y}else if(C>=I&&I<_){var Y=ye(t,I+1);if(Y<=I)break;I=Y}else break}if(!N&&L)return null;C>=
|
|
70
|
-
`&&(de=de.slice(1));let ml=v.tagLower||v.tagName.toLowerCase();return
|
|
71
|
-
`||we==="\r")return null}var Be=v.tagLower,St=
|
|
72
|
-
`||t[ne]==="\r"||On&&ne<
|
|
69
|
+
`||G==="\r"){N=!0,C++,J=!0;var q=ye(t,C);if(q===C)break;I=q}else if(G===">"){C++,L=!0;break}else C++,J=!0}if(L)break;if(!J&&C>=I){var Y=ye(t,I+1);if(Y<=I)break;I=Y}else if(C>=I&&I<_){var Y=ye(t,I+1);if(Y<=I)break;I=Y}else break}if(!N&&L)return null;C>=T&&T<_&&(C=T);var P=O?"type6":"type7",fe=C,he=jd(t,T+1,_),de=t.slice(fe,he),j=l+1<t.length&&t[l+1]==="/";if(P==="type7"&&de.trim()===""){var le=t.slice(l,he),Q=ye(le,0);Q<le.length&&Q++;var be=le.slice(0,Q);return $i(Xt,be,he,{},void 0,j,!1,r)}var ge=t.slice(l,he);return $i(Xt,ge,he,{},void 0,j,P==="type6",r)}}return null}if(!v)return null;if(p!==-1){var x=t.slice(l+1,p);if((ut(x,"http://")||ut(x,"https://"))&&(x.indexOf(" ")!==-1||x.indexOf(" ")!==-1))return null}var Se=l+(v.isClosing?2:1);if(Se<t.length){var K=t[Se],ee=ie(K);if((ee>=97&&ee<=122||ee>=65&&ee<=90)&&Se+1<t.length&&t[Se+1]===":")return null}if(v.isClosing){var oe=v.attrs.trim();if(oe.length>0)return null;if(!i.inline){for(var _=t.length,T=ye(t,l),fe=v.endPos,ne=fe;ne<T&&(t[ne]===" "||t[ne]===" "||t[ne]==="\r");)ne++;var ce=ne>=T||t[ne]==="<"&&(function(){var hr=cr(t,ne);return hr&&ms(hr.tagLower)})();if(ce){var he=jd(t,T+1,_),de=t.slice(fe,he);de.length>0&&de[0]===`
|
|
70
|
+
`&&(de=de.slice(1));let ml=v.tagLower||v.tagName.toLowerCase();return $i(v.tagName,de,he,di(v.whitespaceBeforeAttrs+v.attrs,ml,v.tagName,r),v.whitespaceBeforeAttrs+v.attrs,!0,!1)}}var me=t.slice(l,v.endPos);return{type:V.htmlSelfClosing,tag:v.tagName,attrs:{},endPos:v.endPos,isClosingTag:!0,rawText:me}}var Se=l+(v.isClosing?2:1);if(Se<t.length){var we=t[Se];if(we===" "||we===" "||we===`
|
|
71
|
+
`||we==="\r")return null}var Be=v.tagLower,St=gs(v.tagName);let Ae=v.tagName.length>0&&v.tagName[0]>="A"&&v.tagName[0]<="Z";if(v.isSelfClosing||St&&Be!=="a"){if(v.hasNewline&&!Ae||!i.inHTML&&!i.inline&&!Ae)return null;var gt=v.attrs.replace(/\/\s*$/,""),Tt=di(gt,Be,v.tagName,r),me=i.inline?t.slice(l,v.endPos):void 0;let Un={type:V.htmlSelfClosing,tag:v.tagName,attrs:Tt,endPos:v.endPos};return me!==void 0&&(Un.rawText=me),Un}if(i.inline){var xe=v.attrs.replace(/\/\s*$/,""),ct=v.whitespaceBeforeAttrs+xe,tn=di(xe,Be,v.tagName,r),Sn={...tn},Xe=v.endPos,Zt=[];if(!gs(v.tagName)){var Ct=yw(t,v.endPos,Be);if(Ct!==null){var nn=t.slice(v.endPos,Ct[0]);nn&&(i.inHTML&&Vb.test(nn)||vs(nn)?Zt=yp(nn,{...i,inline:!1,inHTML:!0,inAnchor:i.inAnchor||Be==="a"},r):Zt=vi(nn,0,nn.length,{...i,inline:!0,inAnchor:i.inAnchor||Be==="a"},r)),Xe=Ct[1]}}return{type:V.htmlBlock,tag:v.tagName,attrs:Sn,rawAttrs:ct,children:Zt,noInnerParse:!1,endPos:Xe}}if(!i.inline){for(var _=t.length,T=ye(t,l),Et=v.tagLower,st=Ts(Et),On=!st&&ms(v.tagName),It=!1,Ft=l;Ft<v.endPos;){if(t[Ft]===">"){It=!0;break}Ft++}for(var ne=v.endPos;ne<T&&(t[ne]===" "||t[ne]===" ");)ne++;var Vt=ne>=T||t[ne]===`
|
|
72
|
+
`||t[ne]==="\r"||On&&ne<T||!It;if(st&&It&&!v.isClosing){var{tagName:cn,endPos:fn,attrs:ua}=v,nt=fn;t[nt]===`
|
|
73
73
|
`&&nt++;for(var dn=nt,mt=nt,ft=1,Je=Et.length+1;ft>0;){var qe=t.indexOf("<",nt);if(qe===-1){mt=_,nt=_;break}var an=-1,hn=-1;if(t[qe+1]==="/")hn=qe;else if(qe+Je+1<=_&&(t[qe+1]===Et[0]||t[qe+1]===cn[0])){var Lt=t.substring(qe+1,qe+Je);Lt.toLowerCase()===Et&&(t[qe+Je]===" "||t[qe+Je]===">")&&(an=qe)}if(an===-1&&hn===-1){nt=qe+1;continue}if(an!==-1&&(hn===-1||an<hn))nt=an+Je+1,ft++;else{for(var at=hn+2;at<_;){var Yt=t[at];if(Yt!==" "&&Yt!==" "&&Yt!==`
|
|
74
74
|
`&&Yt!=="\r")break;at++}if(at+Et.length>_)break;var At=t.substring(at,at+Et.length);if(At.toLowerCase()!==Et){nt=at;continue}for(at+=Et.length;at<_;){var Dn=t[at];if(Dn!==" "&&Dn!==" "&&Dn!==`
|
|
75
75
|
`&&Dn!=="\r")break;at++}if(at>=_||t[at]!==">"){nt=at;continue}var Rn=at+1,vt=ye(t,Rn);mt=vt,nt=vt+1,ft--}}for(var ln=0;nt+ln<_&&t[nt+ln]===`
|
|
76
|
-
`;)ln++;var ca=t.slice(l,nt+ln),jn=t.slice(dn,mt),fa=nt+ln;return uv(v.tagName,v.tagName,ua,jn,ca,fa,t,i,!1,r)}if(Vt||!It){var P=On?"type6":"type7",fe=v.endPos,he=jd(t,
|
|
77
|
-
`)!==-1;if(De)return null;var et=v.endPos,Q=ye(t,et);Q<t.length&&Q++;var be=t.slice(l,Q);return
|
|
76
|
+
`;)ln++;var ca=t.slice(l,nt+ln),jn=t.slice(dn,mt),fa=nt+ln;return uv(v.tagName,v.tagName,ua,jn,ca,fa,t,i,!1,r)}if(Vt||!It){var P=On?"type6":"type7",fe=v.endPos,he=jd(t,T+1,_);if(P==="type6"&&!v.isClosing){var rn="</"+(v.tagLower||v.tagName.toLowerCase()),sn=t.indexOf(rn,fe);if(sn!==-1){for(var Kt=sn+rn.length;Kt<_&&(t[Kt]===" "||t[Kt]===" ");)Kt++;if(Kt<_&&t[Kt]===">"){var zt=t.slice(fe,sn),Pe=vs(zt);if(Pe){var Bn=ye(t,Kt+1);he=Bn}}}}var de=t.slice(fe,he),Nn=v.whitespaceBeforeAttrs+v.attrs,j=v.isClosing;if(P==="type7"&&de.trim()===""){var jt=t.slice(l,v.endPos),De=jt.indexOf(`
|
|
77
|
+
`)!==-1;if(De)return null;var et=v.endPos,Q=ye(t,et);Q<t.length&&Q++;var be=t.slice(l,Q);return $i(v.tagName,be,he,{},void 0,j,!1,r)}var pn=v.hasNewline,Fn=!It;if((pn||Fn)&&P==="type7"){var on=v.endPos,wa=t.slice(l,on),ze=de,ge=wa+ze;return $i(v.tagName,ge,he,{},void 0,j,!1,r)}let Xa=v.tagLower||v.tagName.toLowerCase();var ue=di(Nn,Xa,v.tagName,r),D={...ue};if(P==="type6"){var W=de,re=de.indexOf("</"+Xa);if(re>=0){for(var ne=re+2+v.tagName.length;ne<de.length&&(de[ne]===" "||de[ne]===" ");)ne++;ne<de.length&&de[ne]===">"&&(W=de.slice(0,re))}if(vs(W))return uv(v.tagName,v.tagName,Nn,W,t.slice(l,v.endPos),he,t,i,!1,r)}var Ee=de;Ee.length>0&&Ee[0]===`
|
|
78
78
|
`&&(Ee=Ee.slice(1));for(var Qe=Ee.split(`
|
|
79
79
|
`),pe=1/0,dt=0;dt<Qe.length;dt++){var Re=Qe[dt];if(Re.trim().length!==0){for(var A=0;A<Re.length&&(Re[A]===" "||Re[A]===" ");)A++;A<pe&&(pe=A)}}if(pe>0&&pe<1/0){for(var lt=[],tt=0;tt<Qe.length;tt++){var Ne=Qe[tt];Ne.trim().length===0?lt.push(Ne):lt.push(Ne.slice(pe))}Ee=lt.join(`
|
|
80
|
-
`)}return
|
|
81
|
-
`&&Ue++;let
|
|
82
|
-
`||P==="\r"||P===">")break;Y++}if(Y<i&&t[Y]==="=")return null}(O===10||O===13)&&(
|
|
80
|
+
`)}return $i(v.tagName,Ee,he,D,Nn,j,P==="type6",r)}}if(i.inline)return null;var Mt=ph(t,l+1);if(!Mt)return null;var Xt=Mt.tagName;if(!gs(Xt))return null;let La=Mt.tagLower;for(var Ue=Mt.nextPos,Yn=t.length;Ue<Yn&&bn(t[Ue]);)Ue++;for(var gn=Ue;Ue<Yn&&t[Ue]!==">";)Ue++;if(Ue>=Yn)return null;let Mn=t.slice(gn,Ue).trim(),za=Ue+1;for(;za<Yn&&bn(t[za]);)za++;let uc="</"+La+">",bi=t.toLowerCase().indexOf(uc,za);if(bi!==-1&&t.slice(za,bi).trim())return null;Ue++;let Ms=Ue;for(;Ue<Yn&&bn(t[Ue]);)Ue++;Ue<Yn&&t[Ue]===`
|
|
81
|
+
`&&Ue++;let yi=di(Mn,Xt,Xt,r);return{type:V.htmlSelfClosing,tag:Xt,attrs:yi,endPos:Ms}}function Qw(t,l){if(t[l]!=="<")return null;var i=t.length,r=!1,o=l+1;l+1<i&&t[l+1]==="/"&&(r=!0,o=l+2);var f=ph(t,o);if(!f)return null;var{tagName:d,tagLower:g,nextPos:h}=f;if(h<i){var p=t[h];if(p===">"||p==="/"){var b=p===">"?h+1:h+2;if(p==="/"&&(h+1>=i||t[h+1]!==">"))return null;var S=p==="/",v=ms(d),_=!Ts(g)&&!v;return{kind:"tag",tagNameLower:g,tagName:d,isClosing:r,isSelfClosing:S,hasNewline:!1,type6Candidate:v,type7Candidate:_,endPos:b,attrs:"",whitespaceBeforeAttrs:""}}}for(var T=h,w=!1;h<i;){var A=t[h],O=ie(t,h);if(!(A===" "||A===" "))if(O===10||O===13)w=!0;else break;h++}for(var C=t.slice(T,h),N=h,k=0,B=!1,I=!1,L=0;N<i;){var J=t[N],O=ie(t,N);if(L===1){if(J==='"'){if(N+1<i&&t[N+1]==='"')return null;L=0}N++}else if(L===2)J==="'"&&(L=0),N++;else if(J==='"')L=1,N++;else if(J==="'")L=2,N++;else if(J==="{"||J==="}"&&k>0)k+=J==="{"?1:-1,N++;else if(J===">"&&k===0){if(N>h){for(var G=N-1;G>=h;){var q=t[G];if(q!==" "&&q!==" ")break;G--}G>=h&&t[G]==="/"&&(B=!0,I=G<N-1)}N++;break}else{if(J==="*"||J==="#"||J==="!"){for(var Y=N+1;Y<i;){var P=t[Y];if(P==="="||P===" "||P===" "||P===`
|
|
82
|
+
`||P==="\r"||P===">")break;Y++}if(Y<i&&t[Y]==="=")return null}(O===10||O===13)&&(w=!0),N++}}if(N>i||t[N-1]!==">"||L===1||L===2||k>0||I)return null;var fe=N-1;B&&fe--;for(var he=t.slice(h,fe),de=B,j=-1,le=!1,Q="",be=!1,ge=0;ge<he.length;ge++){var A=he[ge];if(le)A===Q&&(le=!1,j=ge,Q="",be=!1);else if(A==='"'||A==="'")le=!0,Q=A,be=!1;else if(A==="=")be=!0;else if(j!==-1&&ge===j+1){var O=A.charCodeAt(0);if(gi(O))return null}else{if(be&&!le&&(A==="*"||A==="#"||A==="!"))return null;bn(A)&&(be=!1)}}var x=ms(d),K=!Ts(g)&&!x;return{kind:"tag",tagNameLower:g,tagName:d,isClosing:r,isSelfClosing:de,hasNewline:w,type6Candidate:x,type7Candidate:K,endPos:N,attrs:he,whitespaceBeforeAttrs:C}}function ou(t,l){if(l>=t.length||t[l]!=="<")return null;var i=t.length;if(l+1>=i)return null;var r=t[l+1];if(r==="!"){if(l+4<=i&&t.slice(l,l+4)==="<!--"){var o=l+4;if(o<i&&t[o]===">")return{kind:"comment",hasNewline:!1,endPos:o+1,text:t.slice(l,o+1),raw:!0};if(o+1<i&&t[o]==="-"&&t[o+1]===">")return{kind:"comment",hasNewline:!1,endPos:o+2,text:t.slice(l,o+2),raw:!0};for(;o+2<i;){if(t.slice(o,o+3)==="-->")return{kind:"comment",hasNewline:!1,endPos:o+3,text:t.slice(l,o+3),raw:!0};o++}return null}if(l+9<=i&&t.slice(l,l+9)==="<![CDATA["){for(var o=l+9;o+2<i;){if(t.slice(o,o+3)==="]]>")return{kind:"cdata",hasNewline:!1,endPos:o+3,text:t.slice(l,o+3),raw:!0};o++}return null}if(l+2<i&&gi(t.charCodeAt(l+2))){for(var o=l+2;o<i&&t[o]!==">";)o++;return o>=i?null:{kind:"declaration",hasNewline:!1,endPos:o+1,text:t.slice(l,o+1),raw:!0}}return null}if(r==="?"){for(var o=l+2;o+1<i;){if(t.slice(o,o+2)==="?>")return{kind:"pi",hasNewline:!1,endPos:o+2,text:t.slice(l,o+2),raw:!0};o++}return null}return Qw(t,l)}function Gw(t,l,i){let r=t.length,o=l,f=o<r&&t[o]==="<";f&&o++;let d=o,g=d;if(d>=r){if(!f)return null;g=d}else{if(i>0&&d<r&&t[d]===`
|
|
83
83
|
`)return null;for(;g<r&&!(f&&t[g]===">");){if(t[g]===`
|
|
84
84
|
`){let G=g+1;if(G>=r||G<r&&t[G]===`
|
|
85
85
|
`)break;let q=G;for(;q<r&&(t[q]===" "||t[q]===" ");)q++;if(q<r&&(t[q]==='"'||t[q]==="'"||t[q]==="(")||q<r&&t[q]==="[")break;if(q<r){let Y=t[q];if(Y==="="||Y==="-"||Y==="_"||Y==="*"||Y==="#"||Y===">"||Y==="`"||Y==="~"||Y==="["||Y>="0"&&Y<="9")break;if(Y>="a"&&Y<="z"){let P=q+1;for(;P<r&&P<q+32&&(t[P]>="a"&&t[P]<="z"||t[P]>="A"&&t[P]<="Z"||t[P]>="0"&&t[P]<="9"||t[P]==="+"||t[P]==="."||t[P]==="-");)P++;if(!(P<r&&t[P]===":"))break}}g=q;continue}if(!f&&(t[g]===" "||t[g]===" ")){let G=g+1;for(;G<r&&(t[G]===" "||t[G]===" ");)G++;if(G<r&&(t[G]==='"'||t[G]==="'"||t[G]==="("))break;if(G<r&&t[G]===`
|
|
@@ -87,7 +87,7 @@ ${ce.current.stack}
|
|
|
87
87
|
`)break;let Y=q;for(;Y<r&&(t[Y]===" "||t[Y]===" ");)Y++;if(Y<r&&(t[Y]==='"'||t[Y]==="'"||t[Y]==="("))break}}g++}}if(f&&(g>=r||t[g]!==">"))return null;let h=t.slice(d,g),p=[],b=0;for(let G=0;G<=h.length;G++)if(G===h.length||h[G]===`
|
|
88
88
|
`){let q=h.slice(b,G);q=q.trim(),(q.length>0||p.length===0)&&p.push(q),G<h.length&&p.push(`
|
|
89
89
|
`),b=G+1}h=p.join(""),h=h.trim(),o=f?g+1:g;var S=!1;if(o<r&&t[o]===`
|
|
90
|
-
`){for(var v=o+1,_=v;_<r&&(t[_]===" "||t[_]===" ");)_++;if(_<r){let G=t[_];if((G==="["||G==="="||G==="-"||G==="_"||G==="*"||G==="#"||G===">"||G==="`"||G==="~"||G>="0"&&G<="9")&&(S=!0),!S&&G!=="="&&G!=="-"){var
|
|
90
|
+
`){for(var v=o+1,_=v;_<r&&(t[_]===" "||t[_]===" ");)_++;if(_<r){let G=t[_];if((G==="["||G==="="||G==="-"||G==="_"||G==="*"||G==="#"||G===">"||G==="`"||G==="~"||G>="0"&&G<="9")&&(S=!0),!S&&G!=="="&&G!=="-"){var T=ye(t,_);if(T<r){for(var w=T+1,A=w;A<r&&(t[A]===" "||t[A]===" ");)A++;if(A<r){var O=t[A];(O==="="||O==="-")&&(S=!0)}}}}}if(!S&&o<r&&(t[o]==='"'||t[o]==="'"||t[o]==="("))return null;let C=0;for(;o<r&&!S;){let G=t[o];if(G===`
|
|
91
91
|
`){if(C++,C>1)break;o++;var N=o;if(o=yn(t,o),o<r&&ur(t[o])&&t[o]!==`
|
|
92
92
|
`){o=N-1;break}if(o<r){let q=t[o];if(q==="["||q==="="||q==="-"||q==="_"||q==="*"||q==="#"||q===">"||q==="`"||q==="~"||q>="0"&&q<="9"){S=!0,o=N-1;break}}}else if(G===" "||G===" ")o++;else{if(ur(G))break;break}}let k,B=o;if(o<r){let G=t[o];if(G==='"'||G==="'"){o++;let q=o,Y=!1,P=!1;for(;o<r&&t[o]!==G;)if(t[o]===`
|
|
93
93
|
`){if(P){Y=!0;break}P=!0,o++}else P=!1,t[o]==="\\"&&o+1<r&&o++,o++;if(Y)return null;if(o<r&&t[o]===G){k=t.slice(q,o),B=o+1,o=B;for(var I=o;I<r&&(t[I]===" "||t[I]===" ");)I++;if(I<r&&t[I]!==`
|
|
@@ -97,35 +97,35 @@ ${ce.current.stack}
|
|
|
97
97
|
`;){if(t[L]!==" "&&t[L]!==" ")return null;L++}if(k===void 0&&o<r&&t[o]!==`
|
|
98
98
|
`)for(var J=o;J<r&&t[J]!==`
|
|
99
99
|
`;){if(t[J]!==" "&&t[J]!==" ")return null;J++}return{endPos:o<r&&t[o]===`
|
|
100
|
-
`?o+1:o,target:h,title:k}}function
|
|
100
|
+
`?o+1:o,target:h,title:k}}function Zw(t,l){let i=l,r=i,o=!1;for(;r<t.length;){let T=r===0||t[r-1]===`
|
|
101
101
|
`;if(r+1<t.length&&t[r]===`
|
|
102
102
|
`&&t[r+1]===`
|
|
103
|
-
`&&r>i){let
|
|
104
|
-
`&&
|
|
105
|
-
`;)
|
|
103
|
+
`&&r>i){let w=r+2;for(;w<t.length&&(t[w]===" "||t[w]===" ");)w++;if(w<t.length&&t[w]!==`
|
|
104
|
+
`&&w-(r+2)<4){o=!0;break}}if(T&&ut(t,"[^",r)){let w=r+2;for(;w<t.length&&t[w]!=="]";)w++;if(w<t.length&&t[w]==="]"&&w+1<t.length&&t[w+1]===":")break}r++}let f=r,d=l;var g=[];let h=d,p=0,b=!1;for(;h<f;){let T=h;for(;T<f&&t[T]!==`
|
|
105
|
+
`;)T++;if(p===0){let w=T;for(;w>h&&(t[w-1]===" "||t[w-1]===" ");)w--;let A=t.slice(h,w);g.push(A),b=A.length===0}else{let w=0,A=h;for(;A<T&&A<h+4&&t[A]===" ";)w++,A++;let O=!1;for(let N=h;N<T;N++)if(t[N]!==" "&&t[N]!==" "&&t[N]!=="\r"){O=!0;break}let C=!O;w>=4&&b?g.push(t.slice(h,T)):w===4&&!b?g.push(t.slice(h+4,T)):g.push(t.slice(h,T)),b=C}T<f&&t[T]===`
|
|
106
106
|
`?(g.push(`
|
|
107
|
-
`),h=
|
|
107
|
+
`),h=T+1):h=f,p++}let S=g.join("");o&&(S=S.replace(/\n$/,""));for(var v=S.length;v>0;){var _=S[v-1];if(_===`
|
|
108
108
|
`||_===" ")v--;else break}return v<S.length&&(S=S.slice(0,v)),{endPos:r,target:S,title:void 0}}function fr(t,l,i,r,o){if(t[l]!=="[")return null;var f=l+1<t.length&&t[l+1]==="^";if(o?!f:f)return null;for(var d=l;d>0&&t[d-1]!==`
|
|
109
|
-
`;)d--;if($e(t,d,l).spaceEquivalent>=4||i.inline)return null;var g=l+(o?2:1),h=t.length,p=
|
|
110
|
-
`;)o++;if(o>=t.length)break;d=f;let S=t[o],v=
|
|
111
|
-
`&&o++}continue}if(v.type===V.htmlBlock||v.type===V.htmlSelfClosing){if(!(v.type===V.htmlSelfClosing&&v.isClosingTag===!0&&!l.inline&&!l.inHTML)){r.push(v),o=v.endPos;continue}}else{r.push(v),o=v.endPos;continue}}let _=d!==f?d:o;if(d===f){if(bn(S)){let O=ye(t,o),C=$e(t,o,O),N=o+C.charCount;C.spaceEquivalent<=3&&N<t.length&&t[N]==="["?_=N:_=-1}else S==="["?_=o:_=-1;d=_}if(_>=0&&_+1<t.length&&t[_+1]==="^"&&(_=-1),_>=0){let O=fr(t,_,l,i,!1);if(O){r.push(O),o=O.endPos;continue}let C=
|
|
112
|
-
`),l,i),r=_,o=!0;continue}}var O=ye(t,r);if(O>=f)r=f;else{var C=ka(t,r,O),v=$e(t,r,O);r=O+1,o=N===Cu||N===Xl||N===pl||N===sr||C||v.spaceEquivalent>=4}}}var
|
|
113
|
-
`+B,A++}h.push(O)}t=h;let p={...i,slugify:A=>r(A,Gl),sanitizer:o,tagfilter:i.tagfilter!==!1},b=t[0]&&t[0].type===V.refCollection?t[0].refs:{},S=
|
|
114
|
-
`||b[v-1]==="\r");)v--;b=b.slice(0,v),b=`${b.replace(
|
|
109
|
+
`;)d--;if($e(t,d,l).spaceEquivalent>=4||i.inline)return null;var g=l+(o?2:1),h=t.length,p=Aw(t,g,h,"]");if(p===-1)return null;var b=t.slice(g,p);if(b.length>999)return null;for(var S=!1,v=!1,_=!1,T=0;T<b.length;T++){var w=b[T];if(w==="\\"&&T+1<b.length){T++;continue}var A=ie(w);A===mi||A===Ou?v=!0:A===Dt||A===Ln?_=!0:A!==Oe&&A!==Fe&&(S=!0)}if(!S||v)return null;var O=p+1;if(_){var C=ie(t,g),N=ie(t,p-1);if(C===Dt||C===Ln||N===Dt||N===Ln||O>=h||t[O]!==":")return null}else if((O>=h||t[O]!==":")&&(O=yn(t,O),O<h&&ie(t,O)===Dt&&(O=yn(t,O+1)),O>=h||t[O]!==":"))return null;O++;for(var k=0;O<h;){var B=ie(t,O);if(B===Dt){if(++k>1)break;O=yn(t,O+1)}else if(B===Oe||B===Fe)O++;else break}let I=o?Zw(t,O):Gw(t,O,k);if(!I)return null;let L=Fb(b),J=i.refs||{},G=o?`^${L}`:L;return J[G]||(J[G]={target:Bu(I.target.trim()),title:I.title?Bu(I.title):void 0},i.refs=J),{type:o?V.footnote:V.ref,endPos:I.endPos}}function qb(t,l,i){for(var r=[],o=0;o<l.length;){var f=l[o];if(!f||f.type!=="*"&&f.type!=="_"&&f.type!=="~"&&f.type!=="="){o++;continue}if(!f.canClose||!f.active){o++;continue}for(var d=f.type==="*"?0:f.type==="_"?1:f.type==="~"?2:3,g=d*6+f.length%3*2+(f.canOpen?1:0),h=r[g]!==void 0?r[g]:-1,p=-1,b=f.type,S=f.inAnchor,v=f.canOpen,_=f.length,T=_%3,w=o-1;w>h;w--){var A=l[w];if(!(!A||!A.active||A.type!==b||!A.canOpen||A.inAnchor!==S)){var O=A.length;if(!v&&!A.canClose||T===0||(O+_)%3!==0){p=w;break}}}if(p>=0){var C=l[p],O=C.length,N=O>=2&&_>=2,k=N?2:1;if(k>O||k>_){o++;continue}var B=C.nodeIndex,I=f.nodeIndex,L=B+1,J=I,G=t.slice(L,J);if(G.length>0){var q=J-L;t.splice(L,q);for(var Y=0;Y<l.length;Y++)l[Y].nodeIndex>L&&(l[Y].nodeIndex-=q);I>L&&(I-=q)}var P=C.type==="~"?"del":C.type==="="?"mark":N?"strong":"em",fe={type:V.textFormatted,tag:P,children:G},he=t[B];if(!he||!he.text){C.active=f.active=!1;continue}var de=he.text.length<=k;if(de){t.splice(B,1);for(var Y=0;Y<l.length;Y++)l[Y].nodeIndex>B&&l[Y].nodeIndex--;I>B&&I--}else he.text=he.text.slice(k);var j=t[I];if(!j||!j.text){C.active=f.active=!1;continue}var le=j.text.length<=k;if(le){t.splice(I,1);for(var Y=0;Y<l.length;Y++)l[Y].nodeIndex>I&&l[Y].nodeIndex--}else j.text=j.text.slice(k);var Q=de?B<I?I-1:B:B+1;(Q<0||Q>t.length)&&(Q=Q<0?0:t.length),t.splice(Q,0,fe);for(var Y=0;Y<l.length;Y++)l[Y].nodeIndex>=Q&&l[Y].nodeIndex++;for(var Y=p+1;Y<o;Y++)l[Y].active=!1;de?C.active=!1:(C.length-=k,C.length===0&&(C.active=!1)),le?(f.active=!1,o++):(f.length-=k,f.length===0&&(f.active=!1,o++))}else r[g]=o-1,!f.canOpen&&(f.active=!1),o++}for(var be=0,w=0;w<l.length;w++)l[w].active&&(l[be++]=l[w]);l.length=be}function Sp(t,l,i){var r=[],o=0,f=-3,d=f;if(l.inline)return vi(t,0,t.length,l,i);if(o===0&&t.startsWith("---")){var g=Bw(t,o);g&&(r.push(g),o=g.endPos)}for(;o<t.length;){for(;o<t.length&&t[o]===`
|
|
110
|
+
`;)o++;if(o>=t.length)break;d=f;let S=t[o],v=Ns(t,o,l,i);if(v){if(v.type===V.codeBlock){var h=S==="`"||S==="~";if(!h&&(S===" "||S===" ")){let C=ye(t,o),N=$e(t,o,C);h=N.spaceEquivalent<=3&&o+N.charCount<t.length&&(t[o+N.charCount]==="`"||t[o+N.charCount]==="~")}}if(v.type===V.htmlComment){r.push(v);let C=o;o=v.endPos;let N=ye(t,C);if(o<N){let k=t.slice(o,N);k.trim().length>0&&r.push({type:V.text,text:k}),o=N,o<t.length&&t[o]===`
|
|
111
|
+
`&&o++}continue}if(v.type===V.htmlBlock||v.type===V.htmlSelfClosing){if(!(v.type===V.htmlSelfClosing&&v.isClosingTag===!0&&!l.inline&&!l.inHTML)){r.push(v),o=v.endPos;continue}}else{r.push(v),o=v.endPos;continue}}let _=d!==f?d:o;if(d===f){if(bn(S)){let O=ye(t,o),C=$e(t,o,O),N=o+C.charCount;C.spaceEquivalent<=3&&N<t.length&&t[N]==="["?_=N:_=-1}else S==="["?_=o:_=-1;d=_}if(_>=0&&_+1<t.length&&t[_+1]==="^"&&(_=-1),_>=0){let O=fr(t,_,l,i,!1);if(O){r.push(O),o=O.endPos;continue}let C=Ow(t,_,o===0);if(C.shouldSkip){o=C.newPos;continue}}let T=Yb(t,o,l,i);if(T){r.push(T),o=T.endPos;continue}let w=o;if(bn(t[w])){let O=ye(t,o),C=$e(t,o,O);w=o+C.charCount}if(w<t.length&&t[w]==="["&&w+1<t.length&&t[w+1]==="^"){let O=fr(t,w,l,i,!0);if(O){o=O.endPos;continue}}let A=mh(t,o,l,i);if(A){r.push(A),o=A.endPos;continue}o++}let p=l.refs||{},b={};for(let S in p)b[S]=p[S];return Hb(b)?[{type:V.refCollection,refs:b},...r]:r}function ey(t,l,i){var r=0,o=!0;let f=t.length;for(;r<f;){for(var d=0;r<f&&ie(t,r)===Dt;)d++,r++;if(r>=f)break;d>0&&(o=!0);let N=ie(t,r);if(N===_a||N===Ds){var g=_p(t,r,{},i);if(g){r=g.endPos,o=!0;continue}}for(var h=r,p=0;h<f&&p<4;){let k=ie(t,h);if(k===Oe)p++,h++;else if(k===Fe)p+=4-p%4,h++;else break}if(p<4&&h<f&&ie(t,h)===mi&&o)if(h+1<f&&ie(t,h+1)===Au){o=!1;var O=ye(t,r);r=O>=f?f:O+1;continue}else{var b=fr(t,h,{inline:!1,refs:l},i,!1);if(b){r=b.endPos,o=!0;continue}var O=ye(t,r),S=t.indexOf(":",h+1);if(S===-1||S>=O){var v=$e(t,r,O);!ka(t,r,O)&&N!==Cu&&N!==Xl&&N!==pl&&N!==sr&&v.spaceEquivalent<4&&(o=!1)}r=O>=f?f:O+1;continue}if(N===Xl&&o){for(var _=r,T=[];_<f;){for(var O=ye(t,_),w=_;w<O;){let B=ie(t,w);if(B===Oe||B===Fe)w++;else break}if(w>=O||ie(t,w)!==Xl)break;var A=w+1;A<O&&(ie(t,A)===Oe||ie(t,A)===Fe)&&A++,T.push(t.slice(A,O)),_=O+1}if(T.length){ey(T.join(`
|
|
112
|
+
`),l,i),r=_,o=!0;continue}}var O=ye(t,r);if(O>=f)r=f;else{var C=ka(t,r,O),v=$e(t,r,O);r=O+1,o=N===Cu||N===Xl||N===pl||N===sr||C||v.spaceEquivalent>=4}}}var Fw=/^\n+/;function Yw(t){let l=!1;for(let r=0;r<t.length;r++){let o=t.charCodeAt(r);if(o>127||o===xu||o===_a){l=!0;break}}if(!l)return t;let i="";for(let r=0;r<t.length;r++){let o=t[r];if(o==="%"&&r+2<t.length&&/[0-9A-Fa-f]/.test(t[r+1])&&/[0-9A-Fa-f]/.test(t[r+2]))i+=t[r]+t[r+1]+t[r+2],r+=2;else if(o.charCodeAt(0)===xu)i+="%5C";else if(o.charCodeAt(0)===_a)i+="%60";else{let f=o.charCodeAt(0);i+=f>127?encodeURIComponent(o):o}}return i}function Kw(t,l,i,r,o,f,d,g){switch(t.type){case V.blockQuote:{let p={key:i.key};return t.alert&&(p.className="markdown-alert-"+f(t.alert.toLowerCase(),Gl),t.children.unshift({attrs:{},children:[{type:V.text,text:t.alert}],noInnerParse:!0,type:V.htmlBlock,tag:"header"})),r("blockquote",p,l(t.children,i))}case V.breakLine:return r("br",{key:i.key});case V.breakThematic:return r("hr",{key:i.key});case V.frontmatter:return g.preserveFrontmatter?r("pre",{key:i.key},t.text):null;case V.codeBlock:let h=t.lang?ac(t.lang):"";return r("pre",{key:i.key},r("code",{...up(t.attrs||{}),className:h?`language-${h} lang-${h}`:""},t.text));case V.codeInline:return r("code",{key:i.key},t.text);case V.footnoteReference:return r("a",{key:i.key,href:o(t.target,"a","href")},r("sup",{key:i.key},t.text));case V.gfmTask:return r("input",{checked:t.completed,key:i.key,readOnly:!0,type:"checkbox"});case V.heading:return r(`h${t.level}`,{id:t.id,key:i.key},l(t.children,i));case V.htmlBlock:{let p=t;if(g.tagfilter&&oh(p.tag)){let b;if("rawText"in p&&typeof p.rawText=="string")b=p.rawText;else{let S="";if(p.attrs)for(let[v,_]of Object.entries(p.attrs))_===!0?S+=` ${v}`:_!=null&&_!==!1&&(S+=` ${v}="${String(_)}"`);b=`<${p.tag}${S}>`}return r("span",{key:i.key},b)}if(p.text&&p.noInnerParse){let b=function(C){if(C.type===V.htmlSelfClosing&&"isClosingTag"in C&&C.isClosingTag)return[];if(C.type===V.paragraph){let N=C.children;return N?N.flatMap(b):[]}return C.type===V.text?C.text?.trim()?[C]:[]:C.type===V.htmlBlock&&C.children?[{...C,children:C.children?.flatMap(b)}]:[C]},S=p.tag.toLowerCase(),v=Ts(S),_=/<[a-z][^>]{0,100}>/i.test(p.text),T=/<\/?pre\b/i.test(p.text);if(v&&!_){let C=p.text.replace(new RegExp("\\s*</"+S+">\\s*$","i"),"");return g.tagfilter&&(C=uh(C)),r(t.tag,{key:i.key,...t.attrs},C)}if(T){let C=g.tagfilter?uh(p.text):p.text;return r(t.tag,{key:i.key,...t.attrs,dangerouslySetInnerHTML:{__html:C}})}let w={slugify:C=>f(C,Gl),sanitizer:o,tagfilter:!0},A=p.text.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${p.tag}(\\s[^>]*)?>(\\s*</${p.tag}>)?$`,"i").test(A))return r(t.tag,{key:i.key,...t.attrs});let O=Sp(A,{inline:!1,refs:d,inHTML:!1},w);return r(t.tag,{key:i.key,...t.attrs},l(O.flatMap(b),i))}return r(t.tag,{key:i.key,...t.attrs},t.children?l(t.children,i):"")}case V.htmlSelfClosing:{let p=t;if(g.tagfilter&&oh(p.tag)){let b;if("rawText"in p&&typeof p.rawText=="string")b=p.rawText;else{let S="";if(p.attrs)for(let[v,_]of Object.entries(p.attrs))_===!0?S+=` ${v}`:_!=null&&_!==!1&&(S+=` ${v}="${String(_)}"`);b=`<${p.tag}${S} />`}return r("span",{key:i.key},b)}return r(t.tag,{key:i.key,...t.attrs})}case V.image:return r("img",{key:i.key,alt:t.alt&&t.alt.length>0?t.alt:void 0,title:t.title||void 0,src:o(t.target,"img","src")});case V.link:{let p={key:i.key};return t.target!=null&&(p.href=Yw(t.target)),t.title&&(p.title=t.title),r("a",p,l(t.children,i))}case V.table:{let p=t;return r("table",{key:i.key},r("thead",null,r("tr",null,p.header.map(function(b,S){return r("th",{key:S,style:p.align[S]==null?{}:{textAlign:p.align[S]}},l(b,i))}))),r("tbody",null,p.cells.map(function(b,S){return r("tr",{key:S},b.map(function(v,_){return r("td",{key:_,style:p.align[_]==null?{}:{textAlign:p.align[_]}},l(v,i))}))})))}case V.text:return t.text;case V.textFormatted:return r(t.tag,{key:i.key},l(t.children,i));case V.orderedList:case V.unorderedList:{let p=t.type===V.orderedList?"ol":"ul";return r(p,{key:i.key,start:t.type===V.orderedList?t.start:void 0},t.items.map(function(b,S){return r("li",{key:S},l(b,i))}))}case V.paragraph:return r("p",{key:i.key},l(t.children,i));case V.ref:return null;default:return null}}var Jw=(t,l,i,r,o,f)=>{let d=(p,b,S)=>{let v=()=>Kw(p,b,S,l,i,r,o,f);return t?t(v,p,b,S):v()},g=p=>p.map(b=>"text"in b?b.text:""),h=(p,b={})=>{let S=(b.renderDepth||0)+1;if(S>2500)return g(p);b.renderDepth=S;let v=b.key,_=[],T=!1;for(let w=0;w<p.length;w++){b.key=w;let A=d(p[w],h,b),O=typeof A=="string";if(O&&T)_[_.length-1]+=A;else if(A!==null)if(Array.isArray(A))for(let C=0;C<A.length;C++)_.push(A[C]);else _.push(A);T=O}return b.key=v,b.renderDepth=S-1,_};return h},Pw=(...t)=>t.filter(Boolean).join(" "),_h=(t,l,i)=>{let r=t,o=l.split("."),f=0;for(;f<o.length&&(r=r?.[o[f]],r!==void 0);)f++;return r||i},Ww=(t,l)=>{let i=_h(l,t,void 0);return i?typeof i=="function"||typeof i=="object"&&"render"in i?i:_h(l,`${t}.component`,t):t};function $w(t,l){let i={...l||{}};i.overrides=i.overrides||{};let r=i.slugify||Gl,o=i.sanitizer||cp,f=i.createElement||Z.createElement,d=A=>ty(A,{...i,wrapper:null});function g(A,O,...C){let N=_h(i.overrides,`${A}.props`,{}),k=up(O||{});if(d)for(let[B,I]of Object.entries(k))typeof I=="string"&&I.length>0&&I[0]==="<"&&(vw.test(I)||Ew.test(I)||cr(I,0))&&(k[B]=d(I.trim()));return f(Ww(A,i.overrides),{...k,...N,className:Pw(k?.className,N.className)||void 0},...C)}let h=[];for(let A=0;A<t.length;A++){let O=t[A];if(O.type===V.htmlBlock&&"text"in O&&O.text&&/<\/?pre\b/i.test(O.text)&&A+1<t.length&&t[A+1].type===V.paragraph&&"removedClosingTags"in t[A+1]&&t[A+1].removedClosingTags){let C=function(I){let L="";for(let J of I){let G=J.type;if(G===V.text)L+=J.text;else if(G===V.htmlSelfClosing&&"rawText"in J&&J.rawText)L+=J.rawText;else if(G===V.textFormatted){let q=J,Y=q.tag==="em"?"_":q.tag==="strong"?"**":"";L+=Y+C(q.children)+Y}else"children"in J&&J.children&&(L+=C(J.children))}return L},N=O,k=t[A+1],B=C(k.children);k.removedClosingTags&&(B+=k.removedClosingTags.filter(I=>I.type===V.htmlSelfClosing&&"rawText"in I&&I.rawText&&I.rawText.indexOf(`</${N.tag}>`)===-1).map(I=>I.type===V.htmlSelfClosing&&"rawText"in I&&I.rawText||"").join("")),N.text+=`
|
|
113
|
+
`+B,A++}h.push(O)}t=h;let p={...i,slugify:A=>r(A,Gl),sanitizer:o,tagfilter:i.tagfilter!==!1},b=t[0]&&t[0].type===V.refCollection?t[0].refs:{},S=Jw(i.renderRule,g,o,r,b,i),v=S(t,{inline:i.forceInline,refs:b}),_=[];for(let A in b)A.charCodeAt(0)===Au&&_.push({identifier:A,footnote:b[A].target});if(_.length&&v.push(g("footer",{key:"footer"},_.map(function(A){let O=A.identifier.charCodeAt(0)===Au?A.identifier.slice(1):A.identifier,C=Sp(A.footnote,{inline:!0,refs:b},p);return g("div",{id:r(O,Gl),key:A.identifier},O+": ",S(C,{inline:!0,refs:b}))}))),i.wrapper===null)return v;let T=i.wrapper||(i.forceInline?"span":"div"),w;if(v.length>1||i.forceWrapper)w=v;else return v.length===1?v[0]:null;return f(T,{key:"outer",...i.wrapperProps},w)}function ty(t="",l={}){let i={...l||{}};i.overrides=i.overrides||{};let r=i.slugify||Gl,o=i.sanitizer||cp;function f(g){let h=i.forceInline||!i.forceBlock&&!Bb.test(g),p={...i,slugify:v=>r(v,Gl),sanitizer:o,tagfilter:i.tagfilter!==!1};h||ey(g,d,p);let b=g;if(!h){let v=b.length;for(;v>0&&(b[v-1]===`
|
|
114
|
+
`||b[v-1]==="\r");)v--;b=b.slice(0,v),b=`${b.replace(Fw,"")}
|
|
115
115
|
|
|
116
|
-
`}let S=Sp(h?g:b,{inline:h,refs:d},p);return qw(S,{...p,forceInline:h})}let d={};return f(t)}var eT=({children:t,options:l,...i})=>ny(t??"",{...l,wrapperProps:{...l?.wrapperProps,...i}}),ul=eT;const tT="_generalConditionsContainer_55hjg_1",nT="_generalConditions_55hjg_1",aT="_generalConditionsHeader_55hjg_15",lT="_generalConditionsBody_55hjg_26",iT="_generalConditionsAccept_55hjg_35",as={generalConditionsContainer:tT,generalConditions:nT,generalConditionsHeader:aT,generalConditionsBody:lT,generalConditionsAccept:iT},rT=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),sT=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),oT="general-conditions.header",uT="general-conditions.body",cv="general-conditions.accept-conditions-note",cT=()=>{const t=Nt(),[l,i]=Z.useState(!1),r=()=>i(!l),o=g=>{g.key==="ArrowDown"||g.key==="ArrowRight"?i(!0):g.key==="ArrowUp"||g.key==="ArrowLeft"||g.key==="Escape"?i(!1):(g.key==="Enter"||g.key==="Space"||g.key===" ")&&r()},f=t(oT),d=t(cv);return y.jsxs("div",{className:se(as.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&y.jsxs("div",{className:as.generalConditions,children:[y.jsxs("div",{role:"button",onClick:r,onKeyDown:o,tabIndex:0,className:se(as.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":l?"true":"false","aria-pressed":l?"true":"false",children:[y.jsx(ul,{children:f}),l?y.jsx(sT,{}):y.jsx(rT,{})]}),y.jsx("div",{className:se(as.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:l&&y.jsx(ul,{children:t(uT)||""})})]}),!!d?.length&&y.jsx("div",{className:se(as.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(ul,{children:t(cv)||""})})]})},fT="_messageContainer_1rxi5_1",dT="_message_1rxi5_1",hT="_messageBot_1rxi5_14",pT="_messageBotLast_1rxi5_45",gT="_avatar_1rxi5_45",mT="_messageBotFirst_1rxi5_54",vT="_messageBotAnimated_1rxi5_67",bT="_messageGuest_1rxi5_78",yT="_messageGuestFirst_1rxi5_84",_T="_messageGuestLast_1rxi5_90",ST="_botAvatar_1rxi5_104",ET="_agentAvatar_1rxi5_108",wT="_bubble_1rxi5_112",TT="_bubbleContent_1rxi5_118",AT="_bubbleLeft_1rxi5_132",CT="_leftText_1rxi5_143",xT="_bubbleRight_1rxi5_150",OT="_rightText_1rxi5_160",DT="_sourceInfoReference_1rxi5_192",RT="_sourceInfoReferenceActive_1rxi5_204",ke={messageContainer:fT,message:dT,messageBot:hT,messageBotLast:pT,avatar:gT,messageBotFirst:mT,messageBotAnimated:vT,messageGuest:bT,messageGuestFirst:yT,messageGuestLast:_T,botAvatar:ST,agentAvatar:ET,bubble:wT,bubbleContent:TT,bubbleLeft:AT,leftText:CT,bubbleRight:xT,rightText:OT,sourceInfoReference:DT,sourceInfoReferenceActive:RT},Ep=(t,l)=>{Z.useEffect(()=>{const i=r=>{t.current&&!t.current.contains(r.target)&&l()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,l])};function NT(t,l){let i=null,r=null;const o=(...f)=>{r=f,i&&clearTimeout(i),i=setTimeout(()=>{t(...r),i=null,r=null},l)};return o.flush=()=>{i&&r&&(clearTimeout(i),t(...r),i=null,r=null)},o}function MT(t,l){let i=0,r=null;return((...o)=>{const f=Date.now(),d=f-i;d>=l?(i=f,t(...o)):(r&&clearTimeout(r),r=setTimeout(()=>{i=Date.now(),t(...o)},l-d))})}const kT="_container_131ib_1",LT="_categoryContainer_131ib_13",zT="_categoryButton_131ib_20",jT="_active_131ib_35",BT="_commentTextarea_131ib_44",ls={container:kT,categoryContainer:LT,categoryButton:zT,active:jT,commentTextarea:BT},UT=(t,l,i)=>{Z.useEffect(()=>{if(t){const r=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=l.current?Array.from(l.current.querySelectorAll(f)):[],g=i.current?Array.from(i.current.querySelectorAll(f)):[];return[...d,...g]},o=f=>{if(f.key==="Tab"){const d=r();if(d.length>0){const g=d[0],h=d[d.length-1],p=document.activeElement;!f.shiftKey&&p===h?(f.preventDefault(),g.focus()):f.shiftKey&&p===g&&(f.preventDefault(),h.focus())}}};return document.addEventListener("keydown",o,!0),()=>{document.removeEventListener("keydown",o,!0)}}},[t,l,i])},HT=({open:t,actionsRef:l,reaction:i,onReaction:r})=>{const o=Nt(),f=Z.useRef(null),d=NT(p=>{r({...i,comment:p})},300);Z.useEffect(()=>()=>d.flush(),[d]),UT(t,l,f);const g=p=>{r({...i,category:i.category===p?void 0:p})},h=p=>d(p.target.value);return t?y.jsxs("div",{ref:f,className:ls.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:o("bot-bubble.reaction.say-more")}),y.jsx("div",{className:ls.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>y.jsx("button",{className:se(ls.categoryButton,i?.category===p&&ls.active),onClick:()=>g(p),"aria-pressed":i?.category===p,"aria-label":o(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:o(`bot-bubble.reaction.category.${p}`)},p))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:o("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:h,className:ls.commentTextarea,rows:3,"aria-label":o("bot-bubble.reaction.comment")})]}):null},IT="_botMessageActionContainer_18fjb_1",VT="_alwaysVisible_18fjb_15",XT="_active_18fjb_19",QT="_botMessageActionInnerContainer_18fjb_27",GT="_header_18fjb_52",ZT="_botMessageActions_18fjb_57",FT="_reported_18fjb_68",YT="_action_18fjb_72",KT="_wave_18fjb_86",JT="_anyReport_18fjb_156",PT="_closeButton_18fjb_172",Ht={botMessageActionContainer:IT,alwaysVisible:VT,active:XT,botMessageActionInnerContainer:QT,header:GT,botMessageActions:ZT,reported:FT,action:YT,wave:KT,anyReport:JT,closeButton:PT},WT=({isSubmitting:t,onClick:l})=>{const i=Nt();return y.jsx("button",{className:se(Ht.action,Ht.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:l,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"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"})})})},$T=({alwaysVisible:t,senderType:l,reaction:i,botMessageRef:r,message:o,animated:f,onReaction:d})=>{const g=Nt(),[h,p]=Z.useState(!1),[b,S]=Z.useState(!1),[v,_]=Z.useState(!1),w=Z.useRef(null),T=Z.useRef(null);Ep(w,()=>{_(!1)});const A=I=>{I.key==="Escape"&&_(!1)};Z.useEffect(()=>(document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}),[]),Z.useEffect(()=>{v&&w.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[v]);const O=I=>{T.current&&clearTimeout(T.current),S(!0),d(I),T.current=setTimeout(()=>{S(!1)},1e3)},C=Z.useCallback(async()=>{if(r.current)try{p(!0);const I=r.current.innerHTML,L=r.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([I],{type:"text/html"}),"text/plain":new Blob([L],{type:"text/plain"})})]),await new Promise(J=>setTimeout(J,1500))}finally{p(!1)}},[r]),N=()=>{_(!1),d(i?.type==="GOOD"?null:{type:"GOOD"})},k=()=>{d({...o.reaction,type:"BAD"}),_(!v)},B=I=>L=>{(L.key==="Enter"||L.key===" ")&&I()};return y.jsx("div",{ref:w,className:se(Ht.botMessageActionContainer,t&&Ht.alwaysVisible,v&&Ht.active),children:y.jsxs("div",{className:se(Ht.botMessageActionInnerContainer,t&&Ht.alwaysVisible,v&&Ht.active,i&&Ht.reported),role:"group",children:[y.jsxs("div",{className:Ht.header,children:[y.jsxs("div",{className:se(Ht.botMessageActions,i&&Ht.reported),children:[l===Tu.BOT&&y.jsx("button",{className:se(Ht.action,f&&Ht.wave,i?.type&&Ht.anyReport,i?.type==="GOOD"&&Ht.reported,"tooltip--top-right"),tabIndex:0,"aria-label":g(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":g(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:N,onKeyDown:B(N),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),l===Tu.BOT&&y.jsx("button",{className:se(Ht.action,f&&Ht.wave,i?.type&&Ht.anyReport,i?.type==="BAD"&&Ht.reported,"tooltip--top-right"),tabIndex:0,"aria-label":g("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":g("bot-bubble.reaction.bad"),onPointerDown:k,onKeyDown:B(k),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),y.jsx("button",{className:se(Ht.action,f&&Ht.wave,"tooltip--top-right"),style:{visibility:v?"hidden":"visible"},tabIndex:0,"aria-label":g("bot-bubble.copy"),"data-title":g("bot-bubble.copy"),onClick:C,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]}),v&&y.jsx(WT,{isSubmitting:b,onClick:()=>_(!1)})]}),o.reaction&&y.jsx(HT,{open:v,actionsRef:w,reaction:o.reaction,onReaction:O})]})})},ay=Z.forwardRef(({message:t,isAnimated:l,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,children:d,onReaction:g},h)=>{const p=Nt(),b=Z.useRef(null),S=t.sender.type===dl.BOT;return y.jsxs("li",{ref:h,className:se(ke.message,ke.messageBot,r&&ke.lastMessage,o&&ke.messageBotFirst,f&&ke.messageBotLast,"chat__bubbleContainer",l&&ke.messageBotAnimated,l&&"chat__bubbleContainer--animated",S?"chat__botBubbleContainer":"chat__agentBubbleContainer",o&&"chat__bubbleContainer--first",f&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:se(ke.avatar,S?ke.botAvatar:ke.agentAvatar,"chat__avatar",S?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:S?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ke.messageContainer,children:[y.jsx("div",{ref:b,className:se(ke.bubble,ke.bubbleLeft,"chat__bubble",S?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(S?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:se(ke.leftText),children:d})}),g&&y.jsx($T,{alwaysVisible:r&&f,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:b,animated:i,onReaction:g})]})]})}),qT="_sourceList_1n31h_1",e6="_source_1n31h_1",t6="_label_1n31h_37",Ud={sourceList:qT,source:e6,label:t6},ly=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),iy=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})}),ry=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})}),sy=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})}),n6=({type:t,...l})=>{switch(t){case"WEBSITE":return y.jsx(sy,{...l});case"PDF":return y.jsx(ry,{...l});case"DOCX":return y.jsx(ly,{...l});default:return y.jsx(iy,{...l})}},wp=({sources:t,onLinkClick:l})=>{const i=Nt(),r=f=>()=>{l(f.url)},o=f=>d=>{(d.key==="Enter"||d.key===" ")&&l(f.url)};return t.length?y.jsx("ul",{className:Ud.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(f=>y.jsx("li",{className:Ud.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:r(f),onKeyDown:o(f),children:[y.jsx(n6,{type:f.type,"aria-hidden":"true"}),y.jsx("div",{className:Ud.label,children:f.label})]})},f.url))}):null},a6="_button_3ui4g_1",l6="_buttonDefault_3ui4g_13",i6="_buttonPrimary_3ui4g_28",Cs={button:a6,buttonDefault:l6,buttonPrimary:i6},rc=({className:t,children:l,...i})=>y.jsx("button",{className:se(Cs.button,t),type:"button",role:"button",...i,children:l}),r6="_title_137pi_1",s6="_buttons_137pi_6",o6="_button_137pi_6",u6="_imageContainer_137pi_29",c6="_image_137pi_29",f6="_video_container_137pi_44",d6="_video_137pi_44",h6="_only_137pi_58",sa={title:r6,buttons:s6,button:o6,imageContainer:u6,image:c6,video_container:f6,video:d6,only:h6},p6=({buttons:t,onButtonClick:l})=>y.jsx("div",{className:se(sa.buttons,"chat__bubbleButtons"),children:t.map((i,r)=>y.jsx(rc,{className:se(sa.button,"chat__bubbleButton"),onClick:()=>l(i),children:i.title},r))}),fv="newtab#",oy=({markdown:t,markdownOptions:l={},onLinkClick:i})=>{const r=f=>d=>(d.preventDefault(),f&&i(f),!1),o=({title:f,href:d,children:g})=>d.indexOf(fv)===0?y.jsx("a",{href:d.slice(fv.length),title:f,target:"_blank",rel:"noopener noreferrer",children:g}):y.jsx("a",{onClick:r(d),title:f,href:d,children:g});return y.jsx(ul,{options:{...l,overrides:{a:o}},children:t})},g6=({text:t,onLinkClick:l})=>t?y.jsx("div",{children:y.jsx(oy,{markdown:t,onLinkClick:l})}):null,m6=({title:t})=>t?y.jsx("h1",{className:sa.title,children:t}):null,v6=({title:t,text:l,buttons:i,onButtonClick:r,onLinkClick:o})=>t?.length||l?.length||i?.length?y.jsxs("div",{className:se(ke.bubbleContent),children:[y.jsx(m6,{title:t}),y.jsx(g6,{text:l,onLinkClick:o}),y.jsx(p6,{buttons:i,onButtonClick:r})]}):null,b6=({alt:t,imageUrl:l,itemUrl:i,hasBody:r})=>l?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:sa.video_container,children:y.jsx("iframe",{className:se(sa.video,{[sa.only]:!r}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:sa.imageContainer,children:y.jsx("img",{className:se(sa.image,{[sa.only]:!r}),src:l,alt:t})})}):y.jsx("div",{className:sa.imageContainer,children:y.jsx("img",{className:se(sa.image,{[sa.only]:!r}),src:l,alt:t})}):null,y6=({title:t,text:l,imageUrl:i,itemUrl:r,buttons:o,sources:f,onButtonClick:d,onLinkClick:g})=>{const h=!!t?.length||!!l?.length||!!o?.length;return y.jsxs("div",{className:se(sa.detailMessage),children:[y.jsx(b6,{hasBody:h,imageUrl:i,itemUrl:r,alt:t||""}),h&&y.jsx(v6,{title:t,text:l,buttons:o,onLinkClick:g,onButtonClick:d}),y.jsx(wp,{sources:f,onLinkClick:g})]})},_6=Z.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:l,children:i},r)=>{const o=Nt();return y.jsx("li",{ref:r,className:se(ke.message,ke.messageGuest,t&&ke.messageGuestFirst,l&&ke.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:se(ke.bubble,ke.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":o("guest-bubble.label"),children:y.jsx("div",{className:se(ke.rightText),children:i})})})}),Tp=()=>Z.useMemo(()=>Zh(),[]),S6="_markdown_nw7vg_1",uy={markdown:S6},Wo="source-info-reference",E6=({actionId:t,markdown:l,sources:i,onLinkClick:r})=>{const o=Tp(),f=gl(),d=w6(),g=kt(b=>{const S=b.chat.sourceInfos;if(S?.type==="loaded"||S?.type==="loading")return S.chunkId}),h=b=>S=>{const v=S.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(S.stopPropagation(),f(Q1(o,t,b)))},p=b=>()=>{f(Q1(o,t,b))};return Z.useLayoutEffect(()=>{document.querySelectorAll(`.${Wo}`).forEach(b=>{const S=b.previousSibling;S&&S.nodeType===Node.TEXT_NODE&&S.textContent?.endsWith(" ")&&S.textContent?.trim().length&&b.classList.add(`${Wo}--before-space`);const v=b.nextSibling;v&&v.nodeType===Node.TEXT_NODE&&v.textContent?.startsWith(" ")&&v.textContent?.trim().length&&b.classList.add(`${Wo}--after-space`)})},[l]),y.jsxs("div",{className:ke.bubbleContent,children:[y.jsx("div",{className:uy.markdown,children:y.jsx(oy,{markdown:l,onLinkClick:r,markdownOptions:{renderRule(b,S,v,_){if(S.type===V.footnoteReference){const w=S.text===g;return y.jsx("span",{className:se(ke.sourceInfoReference,w&&ke.sourceInfoReferenceActive,Wo),children:y.jsx("a",{type:"button",tabIndex:0,onClick:p(S.text),onKeyDown:h(S.text),children:d(S.text)})},_.key)}return b()}}})}),y.jsx(wp,{sources:i,onLinkClick:r})]})},w6=()=>{const t=[];return i=>{const r=t.indexOf(i);return r>-1?r+1:(t.push(i),t.length)}},T6="_text_gp0s0_1",A6="_command_gp0s0_5",dv={text:T6,command:A6},C6=({text:t,commands:l=[]})=>{const i=l.find(o=>t.startsWith(`/${o}`)),r=i?t.slice(i.length+1):t;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:dv.command,children:["/",i]}),r.split(`
|
|
117
|
-
`).map((o,f)=>y.jsxs("span",{className:dv.text,children:[o,y.jsx("br",{})]},f))]})},x6=({text:t,commands:l,sources:i,onLinkClick:r})=>y.jsxs("div",{className:ke.bubbleContent,children:[y.jsx(C6,{text:t,commands:l}),y.jsx(wp,{sources:i,onLinkClick:r})]}),O6=Z.forwardRef(({message:t,commands:l,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,onReaction:d,onButtonClick:g,onLinkClick:h},p)=>{const b=D6(t._id,t,l,g,h),S=v=>{d(t._id,v)};switch(t.sender.type){case dl.GUEST:return y.jsx(_6,{ref:p,isFirstMessageBySender:o,isLastMessageBySender:f,children:b});default:return y.jsx(ay,{ref:p,message:t,isAnimated:!1,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,onReaction:S,children:b})}}),D6=(t,l,i,r,o)=>{switch(l.type){case ar.TEXT:{const f=l;return y.jsx(x6,{text:f.text,commands:i,sources:l.sources||[],onLinkClick:o})}case ar.DETAIL:{const f=l;return y.jsx(y6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:l.sources||[],onButtonClick:r,onLinkClick:o})}case ar.MARKDOWN:{const f=l;return y.jsx(E6,{actionId:t,markdown:f.markdown,sources:f.sources||[],onLinkClick:o})}}},R6=(t,l)=>t.message._id===l.message._id&&t.message.reaction===l.message.reaction&&t.isFirstMessage===l.isFirstMessage&&t.isLastMessage===l.isLastMessage&&t.isFirstMessageBySender===l.isFirstMessageBySender&&t.isLastMessageBySender===l.isLastMessageBySender,N6=Vv.memo(O6,R6),M6="_ticontainer_xg0dn_1",k6="_tiblock_xg0dn_5",L6="_tidot_xg0dn_12",is={ticontainer:M6,tiblock:k6,tidot:L6},z6=({isTyping:t=!1})=>y.jsx("div",{className:is.ticontainer,children:y.jsx("div",{className:is.tiblock,children:t?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:se(is.tidot,"chat__typingIndicator")}),y.jsx("div",{className:se(is.tidot,"chat__typingIndicator")}),y.jsx("div",{className:se(is.tidot,"chat__typingIndicator")})]}):null})}),j6=Object.assign({_id:"typing-indicator"},new Fu("",new mE)),B6=({messages:t,isBotTyping:l,commands:i,onTranscriptItemReaction:r,onButtonClick:o,onLinkClick:f})=>{const d=Z.useRef(0),g=Z.useRef(!0),h=Z.useRef(null),p=Z.useRef(null),b=Z.useRef(null),S=kt(w=>w.settings.enableGeneralConditions);Z.useLayoutEffect(()=>{if(t.length&&h.current&&(d.current<t.length||l)){if(p.current){const w=p.current.offsetTop;h.current.scrollTop=w}else if(b.current){const w=b.current.offsetTop;h.current.scrollTop=w}g.current&&(g.current=!1),d.current=t.length}},[t,g,l]);let v;const _=t.length;return y.jsxs("div",{ref:h,className:se(Z1.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&g.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&y.jsx(cT,{}),y.jsxs("ul",{className:Z1.messages,children:[t.map((w,T)=>{const A=U6(w,v),O=H6(w,T,t,l);v=w.sender.type;const C=T+1===_,N=T===0,k=w._id||`added-${T}`;return y.jsx(N6,{ref:C?b:null,message:w,commands:i,isFirstMessage:N,isLastMessage:C,isFirstMessageBySender:A,isLastMessageBySender:O,onButtonClick:o,onLinkClick:f,onReaction:r},C&&!l?"last":k)}),l&&y.jsx(ay,{ref:p,message:j6,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:v!==dl.BOT,isLastMessageBySender:!0,children:y.jsx(z6,{isTyping:!0})},"last")]})]})},U6=(t,l)=>!l||l!==t.sender.type,H6=(t,l,i,r)=>{const o=t.sender.type,f=i.length;return l+1===f?!(o===dl.BOT&&r):o!==i.at(l+1)?.sender.type},I6="_bottomSheet_jp8dl_1",V6="_bottomSheetOpen_jp8dl_15",X6="_bottomSheetClose_jp8dl_20",cl={bottomSheet:I6,bottomSheetOpen:V6,bottomSheetClose:X6},Q6="_container_xc2nx_1",hv={container:Q6},G6=({contentUrl:t})=>{const l=kt(f=>f.connection.sessionId),[i,r]=Z.useState(!1);Z.useEffect(()=>{r(f=>f||!!t)},[t]);const o=Z.useMemo(()=>{if(t&&l){const f=new URL(t,document.baseURI);return f.searchParams.set("sessionId",l),f.toString()}else return},[t,l]);return y.jsx("div",{className:se(hv.container,cl.bottomSheet,{[cl.bottomSheetOpen]:!!t,[cl.bottomSheetClose]:i&&!t}),children:o&&y.jsx("iframe",{title:"Drawer",src:o,className:hv.iframe})})},Z6="_container_6tt4m_1",F6={container:Z6},Y6=({title:t,href:l,children:i})=>y.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),K6=()=>{const l=Nt()("powered-by");return l&&l.length?y.jsx("div",{className:se(F6.container,"chat__poweredBy"),children:y.jsx(ul,{options:{overrides:{a:Y6}},children:l})}):null},cy=({className:t,children:l,...i})=>y.jsx(rc,{className:se(Cs.buttonDefault,t),type:"button",...i,children:l}),Qu=({className:t,children:l,...i})=>y.jsx(rc,{className:se(Cs.buttonPrimary,t),...i,children:l}),J6="_container_h23mk_1",P6="_formContainer_h23mk_17",W6="_emailInput_h23mk_22",$6="_description_h23mk_52",q6="_actions_h23mk_57",eA="_validationError_h23mk_67",tA="_submitted_h23mk_74",oi={container:J6,formContainer:P6,emailInput:W6,description:$6,actions:q6,validationError:eA,submitted:tA},nA=({visible:t,onEmailExport:l,onClose:i})=>{const r=Nt(),[o,f]=Z.useState(void 0),[d,g]=Z.useState(!1),[h,p]=Z.useState(void 0),b=Z.useRef(null);Z.useEffect(()=>{t?(b.current?.focus(),g(!1),f(t)):o===!0&&f(!1)},[t,o]);const S=_=>{_.preventDefault(),h&&h.length>0&&(l(h),g(!0),setTimeout(i,3*1e3))},v=_=>{const w=_.target.value.trim(),T=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(w);p(T?w:"")};return y.jsxs("div",{className:se(oi.container,cl.bottomSheet,{[cl.bottomSheetOpen]:o===!0,[cl.bottomSheetClose]:o===!1}),children:[y.jsx("h2",{children:r("export-transcript.email.title")}),y.jsx(ul,{className:oi.description,children:r("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:S,className:oi.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:r("export-transcript.email.placeholder"),className:oi.emailInput,onChange:v}),h?.length===0?y.jsx("div",{className:oi.validationError,children:r("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:oi.actions,children:[y.jsx(cy,{onClick:i,children:r("export-transcript.email.cancel")}),y.jsx(Qu,{type:"submit",disabled:d||h===void 0||h.length===0,children:r("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:oi.submitted,children:r("export-transcript.email.success")})]})},aA="_inputContainer_fi5ao_1",lA={inputContainer:aA},iA="_blockUserInput_pot9c_1",rA={blockUserInput:iA},sA=({visible:t})=>{const l=Nt();return t?y.jsx("div",{className:se(rA.blockUserInput,"chat__blockUserInput"),children:l("block-user-input.title")}):null},oA="_commandsDropdown_5ytuv_1",uA="_commands_5ytuv_1",cA="_command_5ytuv_1",fA="_commandActive_5ytuv_46",dA="_commandsSelections_5ytuv_55",ps={commandsDropdown:oA,commands:uA,command:cA,commandActive:fA,commandsSelections:dA},hA=(t,l,i,r,o)=>{Z.useEffect(()=>{const f=d=>{if(t.length)switch(d.key){case"Enter":i(t[l]);break;case"ArrowUp":r(g=>g>0?g-1:t.length-1);break;case"ArrowDown":r(g=>g<t.length-1?g+1:0);break;case"Escape":o([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[t,l,i,r,o])},pA=({text:t,commands:l,onSelectCommand:i,onVisibilityChange:r})=>{const o=Z.useRef(null),f=Nt(),[d,g]=Z.useState([]),[h,p]=Z.useState(pv(l)),[b,S]=Z.useState(0),v=_=>i(`/${_}`);return Ep(o,()=>g([])),hA(d,b,v,S,g),Z.useEffect(()=>{p(pv(l))},[l]),Z.useEffect(()=>{const _=t.length||0;_===0||_>h||!t.startsWith("/")?g([]):g(l.filter(gA(t))),S(0)},[l,t,h]),Z.useEffect(()=>{r(!!d.length)},[d,r]),d.length?y.jsx("div",{ref:o,className:ps.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:ps.commands,role:"listbox",children:d.map((_,w)=>y.jsxs("li",{className:se([ps.command,b===w&&ps.commandActive]),role:"option",onClick:()=>v(_),onMouseOver:()=>S(w),children:[y.jsxs("h1",{children:["/",_]}),y.jsx("p",{children:f(`commands.${_}`)})]},_))})}):null},pv=t=>Math.max(...t.map(l=>l.length+1)),gA=t=>l=>{const i=`/${l}`;return i.startsWith(t)&&i.length>=t.length},gv=3,mA=({commands:t,onSelectCommand:l})=>{const i=Nt(),[r,o]=Z.useState(!1),f=p=>()=>{l(`/${p}`),o(!1)},d=()=>{o(!0)},g=()=>{o(!1)},h=r?t:t.slice(0,gv);return y.jsxs("div",{className:ps.commandsSelections,children:[h.map(p=>y.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${p}`),"data-title":i(`commands.${p}`),tabIndex:0,onClick:f(p),children:["/",p]},p)),h.length<t.length?y.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):h.length>gv?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:g,children:i("commands.show-less.action")},"show-less"):null]})},vA="_callToActionContainer_d8izj_1",bA="_callToActionTitle_d8izj_23",yA="_rateOverlay_d8izj_30",_A="_body_d8izj_52",SA="_footer_d8izj_60",EA="_actions_d8izj_75",wA="_bubbles_d8izj_89",TA="_stars_d8izj_191",AA="_starsSmall_d8izj_205",CA="_starsLarge_d8izj_211",xA="_star_d8izj_191",OA="_starReadonly_d8izj_225",DA="_starIcon_d8izj_235",RA="_starsDescriptionContainer_d8izj_253",NA="_starsDescription_d8izj_253",Vn={callToActionContainer:vA,callToActionTitle:bA,rateOverlay:yA,body:_A,footer:SA,actions:EA,bubbles:wA,stars:TA,starsSmall:AA,starsLarge:CA,star:xA,starReadonly:OA,starIcon:DA,starsDescriptionContainer:RA,starsDescription:NA},MA=({value:t,index:l,count:i,readonly:r,onHover:o,onClick:f})=>{const d=g=>{f&&g.key==="Enter"&&f()};return y.jsx("li",{className:se(Vn.star,{[Vn.starReadonly]:r},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":t>l?"true":"false","aria-posinset":l+1,"aria-setsize":i,tabIndex:0,onMouseOver:o,onKeyDown:d,onClick:f,children:y.jsx("span",{role:"img","aria-label":"Star",className:se(Vn.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},mv=5,fy=({value:t,size:l,readonly:i=!1,onChange:r})=>{const[o,f]=Z.useState(void 0),d=()=>{f(void 0)},g=p=>()=>{if(!i){const b=p+1;f(b)}},h=p=>()=>{r&&!i&&(r(p===0&&t===1?0:p+1),f(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:se(Vn.stars,{[Vn.starsSmall]:l==="small",[Vn.starsLarge]:l==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:l==="small",chat__conversationRating__stars__large:l==="large"}),onMouseOut:d,children:Array(mv).fill(0).map((p,b)=>y.jsx(MA,{value:o===void 0?t:o,index:b,count:mv,readonly:i,onHover:g(b),onClick:h(b)},b))})},kA=({visible:t,onRate:l})=>{const i=Nt();return t?y.jsxs("div",{className:se(Vn.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:se(Vn.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(fy,{value:0,size:"small",onChange:l})]}):null},Hd=({isFirstMessageBySender:t,isLastMessageBySender:l,children:i})=>y.jsxs("div",{className:se(ke.message,ke.messageBot,t&&ke.messageBotFirst,l&&ke.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:se(ke.avatar,ke.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:se(ke.bubble,ke.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:se(ke.leftText,ke.bubbleContent),children:i})})]}),LA=({children:t})=>y.jsx("div",{className:se(ke.message,ke.messageGuest,ke.messageGuestFirst,ke.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:se(ke.bubble,ke.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:se(ke.rightText,ke.bubbleContent),children:t})})}),zA=()=>{const t=Nt(),l=gl(),i=kt(A=>A.chat.conversationRating),[r,o]=Z.useState(i.rating?.value||0),[f,d]=Z.useState(void 0),[g,h]=Z.useState(void 0),[p,b]=Z.useState({submitted:!1,feedback:""}),S=Z.useRef(null),[v,_]=Z.useState(!1);Z.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),h(!0)):g===!0&&h(!1)},[i.opener,g]),Z.useEffect(()=>{o(i.rating?.value||0)},[i.rating?.value,i.opener]),Z.useEffect(()=>{S.current&&(S.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),Z.useEffect(()=>{const A=r>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${r}`):void 0;d(A?.length?A:void 0)},[r,t]),Z.useEffect(()=>{p.submitted?setTimeout(()=>_(!0),p.feedback.length?500:0):_(!1)},[p]);const w=A=>{A.preventDefault();const O=S.current?.value?.trim()||"";l(OE(r,O)),b({submitted:!0,feedback:O})},T=()=>{i.opener==="CLOSE_CHAT"?l(Nb()):i.opener==="RESTART_CHAT"?l(Ds()):l(M3())};return y.jsx("div",{className:se(Vn.rateOverlay,cl.bottomSheet,"chat__conversationRating__overlay",{[cl.bottomSheetOpen]:g===!0,[cl.bottomSheetClose]:g===!1}),children:y.jsxs("form",{onSubmit:w,children:[y.jsxs("div",{className:se(Vn.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:se(Vn.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(Hd,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[y.jsx("h2",{children:t("conversation-rating.overlay.title")}),y.jsxs("div",{className:se(Vn.starsDescriptionContainer),children:[y.jsx(fy,{value:r,size:"large",readonly:p.submitted,onChange:o}),y.jsxs("div",{className:se(Vn.starsDescription),children:[y.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),f&&y.jsx(Hd,{isFirstMessageBySender:!1,isLastMessageBySender:!v||!!p.feedback.length,children:y.jsx("div",{children:f})}),!!p.feedback.length&&y.jsx(LA,{children:p.feedback}),v&&y.jsx(Hd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:se(Vn.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&y.jsx("input",{ref:S,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:se(Vn.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?y.jsx(Qu,{type:"button",disabled:!r,onClick:T,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(Qu,{type:"submit",disabled:!r,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&y.jsx(cy,{onClick:T,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},jA=({numberOfMessagesFromGuest:t})=>{const l=gl(),i=kt(f=>f.chat.conversationRating),r=f=>{l(wu("CHAT",f))},o=!i.rating?.value&&t>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(kA,{visible:o,onRate:r}),y.jsx(zA,{})]}):null},BA=Z.memo(jA),UA="_inputWrapper_e3h44_1",HA="_withOpenCommands_e3h44_14",IA="_messageInputWrapper_e3h44_20",VA="_messageInput_e3h44_20",XA="_buttons_e3h44_44",QA="_button_e3h44_44",$i={inputWrapper:UA,withOpenCommands:HA,messageInputWrapper:IA,messageInput:VA,buttons:XA,button:QA},GA="_audioRecorder_g845f_1",ZA="_audioButton_g845f_6",FA="_recorderIcon_g845f_37",YA="_spinning_g845f_60",ui={audioRecorder:GA,audioButton:ZA,recorderIcon:FA,spinning:YA},vv=2048,Gu=16e3;class KA extends Vv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(l){super(l),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(l){this.mediaStream=l,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(l)}initRecording(l){const i=window.AudioContext||window.webkitAudioContext,r=new i;this.sampleRate=r.sampleRate,this.volume=r.createGain(),this.audioInput=r.createMediaStreamSource(l),this.audioInput.connect(this.volume),this.recorder=r.createScriptProcessor(vv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(r.destination)}processRecordingInput(l){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=l.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=vv}}handleClickSubmitAudio(){const l=PA(this.leftchannel,this.recordingLength),i=WA(l,this.sampleRate||0),r=JA(i);this.props.onAudioRecorded(r),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(l=>{l.stop()})}render(){return y.jsxs("div",{className:ui.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:se(ui.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:ui.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:ui.audioRecorder,children:[y.jsx("button",{className:se(ui.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:ui.recorderIcon}),y.jsx("button",{className:se(ui.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const JA=t=>{const l=new ArrayBuffer(44+t.length*2),i=new DataView(l);$o(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),$o(i,8,"WAVE"),$o(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,Gu,!0),i.setUint32(28,Gu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),$o(i,36,"data"),i.setUint32(40,t.length*2,!0);const r=t.length;let o=44;const f=1;for(let d=0;d<r;d++)i.setInt16(o,t[d]*(32767*f),!0),o+=2;return new Blob([i],{type:"audio/wav"})},$o=(t,l,i)=>{for(let r=0;r<i.length;r++)t.setUint8(l+r,i.charCodeAt(r))},PA=(t,l)=>{const i=new Float32Array(l);let r=0;const o=t.length;for(let f=0;f<o;f++){const d=t[f];i.set(d,r),r+=d.length}return i},WA=(t,l)=>{if(Gu===l)return t;const i=l/Gu,r=Math.round(t.length/i),o=new Float32Array(r);let f=0,d=0;for(;f<o.length;){const g=Math.round((f+1)*i);let h=0,p=0;for(let b=d;b<g&&b<t.length;b++)h+=t[b],p++;o[f]=h/p,f++,d=g}return o},$A=({disabled:t,textInput:l,commandsVisible:i,hasCommands:r,onTextInput:o,onTextInputSubmit:f,onAudioRecorded:d})=>{const g=Nt(),h=Z.useRef(null),{enableSpeechSupport:p}=kt(w=>w.settings);Z.useEffect(()=>{h.current?.focus()},[l]);const b=()=>{const w=h.current;w&&l.trim().length>=1&&f(l.trim())&&(w.value="",w.style.height="",w.focus())},S=w=>{w.preventDefault(),b()},v=w=>{const T=w.target.value;o(T),w.target.style.height="";const{scrollHeight:A}=w.target;w.target.style.height=`${A>150?150:A}px`},_=w=>{w.code==="Enter"&&!w.shiftKey?(w.repeat||b(),w.preventDefault()):i&&(w.code==="ArrowUp"||w.code==="ArrowDown")&&w.preventDefault()};return y.jsxs("form",{className:se($i.inputWrapper,i&&$i.withOpenCommands,"chat__textInput"),onSubmit:S,children:[y.jsx("div",{className:$i.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:h,className:$i.messageInput,tabIndex:0,placeholder:g("message-input-placeholder"),value:l,onChange:v,onKeyDown:_,"aria-label":g("message-input-label"),"aria-controls":r?"command-list":void 0,"aria-haspopup":r?"listbox":void 0})}),y.jsx("div",{className:se($i.buttons,"chat__buttons"),children:l.length||!p||navigator.mediaDevices===void 0?y.jsx("button",{className:se($i.button,"chat__button"),type:"submit","aria-label":g("message-input.actions.submit.label"),"data-title":g("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):p&&navigator.mediaDevices!==void 0&&y.jsx(KA,{translate:g,onAudioRecorded:d})})]})},qA="_quickReplies_83npe_1",e8="_quickReply_83npe_9",bv={quickReplies:qA,quickReply:e8},t8=({quickReplies:t,onQuickReplyClick:l})=>t.length?y.jsx("div",{className:se(bv.quickReplies,"chat__quickReplies"),children:t.map(i=>y.jsx(rc,{tabIndex:0,className:se(bv.quickReply,"chat__button","chat__quickReply"),onClick:()=>l(i),children:i.label},i.label))}):null,yv=5e3,n8=1e3,a8=({isBotTyping:t,quickReplies:l,numberOfMessagesFromGuest:i,commands:r,onTextInput:o,onQuickReplyClick:f,onAudioRecorded:d})=>{const[g,h]=Z.useState(""),[p,b]=Z.useState(!1),[S,v]=Z.useState(!1),_=Z.useRef(0),w=Z.useRef(0);Z.useEffect(()=>{if(p&&!t){const O=_.current?Date.now()-_.current:0;O>yv?b(!1):setTimeout(()=>{b(!1)},yv-O)}},[p,t]),Z.useEffect(()=>{p&&(_.current=Date.now())},[p]);const T=O=>{const C=Date.now()-w.current<n8;return S?!1:t||C?(b(!0),!1):(o(O),h(""),w.current=Date.now(),!0)},A=O=>{h(O+" ")};return y.jsxs("div",{className:se(lA.inputContainer),children:[y.jsx(t8,{quickReplies:l,onQuickReplyClick:f}),y.jsx(sA,{visible:p}),!p&&y.jsx(BA,{numberOfMessagesFromGuest:i}),!!r?.length&&y.jsx(pA,{text:g,commands:r,onSelectCommand:A,onVisibilityChange:v}),y.jsx($A,{textInput:g,disabled:p,commandsVisible:S,hasCommands:!!r?.length,onTextInput:h,onTextInputSubmit:T,onAudioRecorded:d}),!!r?.length&&y.jsx(mA,{commands:r,onSelectCommand:h})]})},l8=({clientName:t,messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:g,onLinkClick:h,onAudioRecorded:p,onTranscriptExport:b,onTranscriptItemReaction:S})=>{const v=gl(),_=kt(k=>k.connection.connectionState),{enableTranscriptExportEmail:w,commands:T}=kt(k=>k.settings),{showTranscriptMailOverlay:A,conversationRating:O}=kt(k=>k.chat),C=l.filter(k=>k.sender.type===Tu.GUEST).length;Z.useEffect(()=>{_===di.CONNECTED&&v(kb(t))},[t,_,v]);const N=()=>{v(Mb())};return y.jsxs("div",{className:Rd.container,children:[y.jsxs("div",{className:se([Rd.chatcontent,(A||O?.opener)&&Rd.accessabilityHidden]),children:[y.jsx(B6,{messages:l,isBotTyping:r,commands:T,onButtonClick:g,onLinkClick:h,onTranscriptItemReaction:S}),y.jsx(a8,{isBotTyping:r,quickReplies:r?[]:i,numberOfMessagesFromGuest:C,commands:T,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:p}),y.jsx(K6,{})]}),w&&y.jsx(nA,{visible:!!A,onEmailExport:b,onClose:N}),y.jsx(G6,{contentUrl:o})]})},i8=t=>{const{messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o}=t.chat;return{messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o}},r8=t=>({onRestartChat:()=>t(Ds()),onMessageFromUser:l=>t(ab(l)),onAudioRecorded:l=>t(wE(l)),onActionFromUser:l=>t(l),onQuickReplyClick:l=>t(nb(l)),onNluEvent:l=>t(ob(l)),onButtonClick:l=>t(RE(l)),onLinkClick:l=>t(ub(l)),onTranscriptExport:l=>t(AE(l)),onTranscriptItemReaction:(l,i)=>{t(_E(l,i?.type||null,i?.category,i?.comment))}}),s8=$S(i8,r8)(l8),dy=()=>Z.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),o8=t=>l=>{const i=l.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(l.stopPropagation(),t())},u8=({onClick:t})=>{const l=Nt();return dy()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":l("header.close-chat"),"data-title":l("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:o8(t),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},c8="_header_3gvbz_1",f8="_logoContainer_3gvbz_14",d8="_logo_3gvbz_14",h8="_actions_3gvbz_28",p8="_active_3gvbz_43",g8="_menuContainer_3gvbz_56",m8="_menu_3gvbz_56",v8="_divider_3gvbz_86",Ql={header:c8,logoContainer:f8,logo:d8,actions:h8,active:p8,menuContainer:g8,menu:m8,divider:v8},b8=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})});case"mail":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return y.jsx("div",{})}},y8=Z.forwardRef(({selected:t,item:l,onClick:i},r)=>{const o=Nt(),f=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":t,role:"option",className:l.withDivider?Ql.divider:void 0,children:y.jsxs("a",{ref:r,type:"button",role:"button",tabIndex:-1,onClick:f,children:[y.jsx(b8,{icon:l.icon}),y.jsx("span",{children:o(`header.menu.${l.id}`)})]})})}),_8=(t,l)=>{const i=dy(),{menuItems:r,enableStandaloneView:o,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=kt(p=>p.settings),g=kt(p=>p.chat.conversationRating.enabled);return Z.useMemo(()=>{const p=[],b=r.filter(({visibility:S})=>t?S==="always"||S==="chat-only":S==="always"||S==="start-screen-only");if(t&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&o&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),l&&f&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),l&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),l&&g&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&b.length)){const S=p.pop();S&&r.length&&p.push({...S,withDivider:!0})}return p.push(...b),p},[t,l,f,d,o,g,i,r])},S8=({chatStarted:t,hasGuestMessages:l})=>{const i=gl(),r=Nt(),{enabled:o,opener:f}=kt(C=>C.chat.conversationRating),[d,g]=Z.useState(!1),[h,p]=Z.useState(-1),b=Z.useRef(null),S=Z.useRef(null),v=Z.useRef([]),_=_8(t,l);Z.useEffect(()=>{v.current[h]?.focus()},[h]);const w=Z.useCallback(()=>{i(l&&o&&!f?wu("RESTART_CHAT"):Ds()),g(!1),p(0)},[l,o,f,i]),T=Z.useCallback(C=>{switch(C.type){case"restart-chat":w();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(CE());break;case"send-transcript":i(Mb());break;case"rate-conversation":i(wu("MENU"));break;case"link":i(ub(C.url));break;case"action":i(JSON.parse(JSON.stringify(C.action)));break}g(!1)},[i,w,g]);Z.useEffect(()=>{const C=N=>{if(d)switch(N.key){case"Enter":N.preventDefault(),T(_[h]);break;case"ArrowUp":p(k=>k>0?k-1:_.length-1);break;case"ArrowDown":p(k=>k<_.length-1?k+1:0);break;case"Escape":g(!1);break;case"Tab":h>-1&&g(!1);break}};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[d,h,_,p,g,T]),Z.useEffect(()=>{d||p(-1)},[d,h]),Ep(S,()=>g(!1));const A=()=>{g(C=>!C)},O=()=>{setTimeout(()=>{const C=document.activeElement;S.current&&!S.current.contains(C)&&g(!1)},0)};return _.length?y.jsxs("div",{className:se(Ql.menuContainer),ref:S,children:[y.jsx("button",{ref:b,className:se(d&&Ql.active,d?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":r("header.menu.title"),"data-title":r("header.menu.title"),onClick:A,onBlur:O,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),d&&y.jsx("nav",{className:Ql.menu,"aria-label":r("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:_.map((C,N)=>y.jsx(y8,{ref:k=>{v.current[N]=k},selected:h===N,item:C,onClick:()=>T(C)},C.id))})})]}):null},_v=({className:t,chatStarted:l,...i})=>{const r=gl(),o=kt(g=>g.chat.conversationRating),f=kt(g=>g.chat.messages.some(h=>h.sender.type===dl.GUEST)),d=()=>{o.enabled&&!o.opener&&f?r(wu("CLOSE_CHAT")):r(Nb())};return y.jsxs("div",{className:se(Ql.header,t),...i,children:[y.jsx("div",{className:Ql.logoContainer,children:y.jsx("div",{className:Ql.logo})}),y.jsxs("div",{className:Ql.actions,children:[y.jsx(S8,{chatStarted:l,hasGuestMessages:f}),y.jsx(u8,{onClick:d})]})]})},E8="_chatwindow_rkbir_1",w8="_chatwindowWithAside_rkbir_21",Sv={chatwindow:E8,chatwindowWithAside:w8},hy=()=>{const[t,l]=Z.useState(!1);return Z.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),r=()=>l(i.matches);return r(),i.addEventListener("change",r),()=>i.removeEventListener("change",r)},[]),t},T8="_sourceInfos_vei0l_1",A8="_waitForLoading_vei0l_24",C8="_loadingContent_vei0l_28",x8="_sourceHeader_vei0l_37",O8="_sourceHeaderIcon_vei0l_57",D8="_sourceContent_vei0l_61",R8="_openSourceButton_vei0l_69",N8="_sourceButtonLabel_vei0l_79",M8="_closeSourceInfosButton_vei0l_101",k8="_loadingSourceInfos_vei0l_125",L8="_loading_vei0l_28",z8="_loadingError_vei0l_139",j8="_highlightLoadingInfo_vei0l_155",B8="_highlightLoadingInfoInnerContainer_vei0l_169",U8="_highlightLoadingInfoContent_vei0l_178",H8="_highlightLoadingInfoCloseIcon_vei0l_198",I8="_highlightLoader_vei0l_203",V8="_highlightLoaderLoading_vei0l_210",_n={sourceInfos:T8,waitForLoading:A8,loadingContent:C8,sourceHeader:x8,sourceHeaderIcon:O8,sourceContent:D8,openSourceButton:R8,sourceButtonLabel:N8,closeSourceInfosButton:M8,loadingSourceInfos:k8,loading:L8,loadingError:z8,highlightLoadingInfo:j8,highlightLoadingInfoInnerContainer:B8,highlightLoadingInfoContent:U8,highlightLoadingInfoCloseIcon:H8,highlightLoader:I8,highlightLoaderLoading:V8},X8=({onClick:t})=>{const l=Nt();return y.jsx("button",{className:se(_n.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":l("source-infos.close"),"data-title":l("source-infos.close"),tabIndex:0,onClick:t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Q8=Z.forwardRef(({sourceInfos:t,onClose:l,...i},r)=>y.jsxs("div",{className:_n.sourceHeader,...i,ref:r,children:[y.jsx("div",{children:t?y.jsx("p",{id:"source-info-title",children:t.title}):y.jsx("p",{children:" "})}),y.jsx(X8,{onClick:l})]})),G8=({loading:t})=>y.jsx("div",{className:_n.highlightLoader,children:t&&y.jsx("div",{className:_n.highlightLoaderLoading})});const{entries:py,setPrototypeOf:Ev,isFrozen:Z8,getPrototypeOf:F8,getOwnPropertyDescriptor:Y8}=Object;let{freeze:Gn,seal:Ea,create:Sh}=Object,{apply:Eh,construct:wh}=typeof Reflect<"u"&&Reflect;Gn||(Gn=function(l){return l});Ea||(Ea=function(l){return l});Eh||(Eh=function(l,i){for(var r=arguments.length,o=new Array(r>2?r-2:0),f=2;f<r;f++)o[f-2]=arguments[f];return l.apply(i,o)});wh||(wh=function(l){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return new l(...r)});const qo=Zn(Array.prototype.forEach),K8=Zn(Array.prototype.lastIndexOf),wv=Zn(Array.prototype.pop),rs=Zn(Array.prototype.push),J8=Zn(Array.prototype.splice),uu=Zn(String.prototype.toLowerCase),Id=Zn(String.prototype.toString),Vd=Zn(String.prototype.match),ss=Zn(String.prototype.replace),P8=Zn(String.prototype.indexOf),W8=Zn(String.prototype.trim),Oa=Zn(Object.prototype.hasOwnProperty),In=Zn(RegExp.prototype.test),os=$8(TypeError);function Zn(t){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return Eh(t,l,r)}}function $8(t){return function(){for(var l=arguments.length,i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];return wh(t,i)}}function Ve(t,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:uu;Ev&&Ev(t,null);let r=l.length;for(;r--;){let o=l[r];if(typeof o=="string"){const f=i(o);f!==o&&(Z8(l)||(l[r]=f),o=f)}t[o]=!0}return t}function q8(t){for(let l=0;l<t.length;l++)Oa(t,l)||(t[l]=null);return t}function rl(t){const l=Sh(null);for(const[i,r]of py(t))Oa(t,i)&&(Array.isArray(r)?l[i]=q8(r):r&&typeof r=="object"&&r.constructor===Object?l[i]=rl(r):l[i]=r);return l}function us(t,l){for(;t!==null;){const r=Y8(t,l);if(r){if(r.get)return Zn(r.get);if(typeof r.value=="function")return Zn(r.value)}t=F8(t)}function i(){return null}return i}const Tv=Gn(["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"]),Xd=Gn(["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"]),Qd=Gn(["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"]),eC=Gn(["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"]),Gd=Gn(["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"]),tC=Gn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Av=Gn(["#text"]),Cv=Gn(["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"]),Zd=Gn(["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"]),xv=Gn(["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"]),eu=Gn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nC=Ea(/\{\{[\w\W]*|[\w\W]*\}\}/gm),aC=Ea(/<%[\w\W]*|[\w\W]*%>/gm),lC=Ea(/\$\{[\w\W]*/gm),iC=Ea(/^data-[\-\w.\u00B7-\uFFFF]+$/),rC=Ea(/^aria-[\-\w]+$/),gy=Ea(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sC=Ea(/^(?:\w+script|data):/i),oC=Ea(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),my=Ea(/^html$/i),uC=Ea(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ov=Object.freeze({__proto__:null,ARIA_ATTR:rC,ATTR_WHITESPACE:oC,CUSTOM_ELEMENT:uC,DATA_ATTR:iC,DOCTYPE_NAME:my,ERB_EXPR:aC,IS_ALLOWED_URI:gy,IS_SCRIPT_OR_DATA:sC,MUSTACHE_EXPR:nC,TMPLIT_EXPR:lC});const cs={element:1,text:3,progressingInstruction:7,comment:8,document:9},cC=function(){return typeof window>"u"?null:window},fC=function(l,i){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(r=i.getAttribute(o));const f="dompurify"+(r?"#"+r:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Dv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function vy(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cC();const l=ue=>vy(ue);if(l.version="3.3.0",l.removed=[],!t||!t.document||t.document.nodeType!==cs.document||!t.Element)return l.isSupported=!1,l;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:g,Element:h,NodeFilter:p,NamedNodeMap:b=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:S,DOMParser:v,trustedTypes:_}=t,w=h.prototype,T=us(w,"cloneNode"),A=us(w,"remove"),O=us(w,"nextSibling"),C=us(w,"childNodes"),N=us(w,"parentNode");if(typeof d=="function"){const ue=i.createElement("template");ue.content&&ue.content.ownerDocument&&(i=ue.content.ownerDocument)}let k,B="";const{implementation:I,createNodeIterator:L,createDocumentFragment:J,getElementsByTagName:G}=i,{importNode:q}=r;let Y=Dv();l.isSupported=typeof py=="function"&&typeof N=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:fe,TMPLIT_EXPR:he,DATA_ATTR:de,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:le,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:be}=Ov;let{IS_ALLOWED_URI:ge}=Ov,x=null;const K=Ve({},[...Tv,...Xd,...Qd,...Gd,...Av]);let ee=null;const oe=Ve({},[...Cv,...Zd,...xv,...eu]);let ne=Object.seal(Sh(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}})),ce=null,me=null;const Se=Object.seal(Sh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Be=!0,St=!1,Ae=!0,gt=!1,Tt=!0,xe=!1,ct=!1,tn=!1,Sn=!1,Xe=!1,Zt=!1,Ct=!0,nn=!1;const Et="user-content-";let st=!0,On=!1,It={},Ft=null;const Vt=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 cn=null;const fn=Ve({},["audio","video","img","source","image","track"]);let ua=null;const nt=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",mt="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Je=ft,qe=!1,an=null;const hn=Ve({},[dn,mt,ft],Id);let Lt=Ve({},["mi","mo","mn","ms","mtext"]),at=Ve({},["annotation-xml"]);const Yt=Ve({},["title","style","font","a","script"]);let At=null;const Dn=["application/xhtml+xml","text/html"],Rn="text/html";let vt=null,ln=null;const ca=i.createElement("form"),jn=function(D){return D instanceof RegExp||D instanceof Function},fa=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ln&&ln===D)){if((!D||typeof D!="object")&&(D={}),D=rl(D),At=Dn.indexOf(D.PARSER_MEDIA_TYPE)===-1?Rn:D.PARSER_MEDIA_TYPE,vt=At==="application/xhtml+xml"?Id:uu,x=Oa(D,"ALLOWED_TAGS")?Ve({},D.ALLOWED_TAGS,vt):K,ee=Oa(D,"ALLOWED_ATTR")?Ve({},D.ALLOWED_ATTR,vt):oe,an=Oa(D,"ALLOWED_NAMESPACES")?Ve({},D.ALLOWED_NAMESPACES,Id):hn,ua=Oa(D,"ADD_URI_SAFE_ATTR")?Ve(rl(nt),D.ADD_URI_SAFE_ATTR,vt):nt,cn=Oa(D,"ADD_DATA_URI_TAGS")?Ve(rl(fn),D.ADD_DATA_URI_TAGS,vt):fn,Ft=Oa(D,"FORBID_CONTENTS")?Ve({},D.FORBID_CONTENTS,vt):Vt,ce=Oa(D,"FORBID_TAGS")?Ve({},D.FORBID_TAGS,vt):rl({}),me=Oa(D,"FORBID_ATTR")?Ve({},D.FORBID_ATTR,vt):rl({}),It=Oa(D,"USE_PROFILES")?D.USE_PROFILES:!1,we=D.ALLOW_ARIA_ATTR!==!1,Be=D.ALLOW_DATA_ATTR!==!1,St=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,gt=D.SAFE_FOR_TEMPLATES||!1,Tt=D.SAFE_FOR_XML!==!1,xe=D.WHOLE_DOCUMENT||!1,Sn=D.RETURN_DOM||!1,Xe=D.RETURN_DOM_FRAGMENT||!1,Zt=D.RETURN_TRUSTED_TYPE||!1,tn=D.FORCE_BODY||!1,Ct=D.SANITIZE_DOM!==!1,nn=D.SANITIZE_NAMED_PROPS||!1,st=D.KEEP_CONTENT!==!1,On=D.IN_PLACE||!1,ge=D.ALLOWED_URI_REGEXP||gy,Je=D.NAMESPACE||ft,Lt=D.MATHML_TEXT_INTEGRATION_POINTS||Lt,at=D.HTML_INTEGRATION_POINTS||at,ne=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&jn(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&jn(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),gt&&(Be=!1),Xe&&(Sn=!0),It&&(x=Ve({},Av),ee=[],It.html===!0&&(Ve(x,Tv),Ve(ee,Cv)),It.svg===!0&&(Ve(x,Xd),Ve(ee,Zd),Ve(ee,eu)),It.svgFilters===!0&&(Ve(x,Qd),Ve(ee,Zd),Ve(ee,eu)),It.mathMl===!0&&(Ve(x,Gd),Ve(ee,xv),Ve(ee,eu))),D.ADD_TAGS&&(typeof D.ADD_TAGS=="function"?Se.tagCheck=D.ADD_TAGS:(x===K&&(x=rl(x)),Ve(x,D.ADD_TAGS,vt))),D.ADD_ATTR&&(typeof D.ADD_ATTR=="function"?Se.attributeCheck=D.ADD_ATTR:(ee===oe&&(ee=rl(ee)),Ve(ee,D.ADD_ATTR,vt))),D.ADD_URI_SAFE_ATTR&&Ve(ua,D.ADD_URI_SAFE_ATTR,vt),D.FORBID_CONTENTS&&(Ft===Vt&&(Ft=rl(Ft)),Ve(Ft,D.FORBID_CONTENTS,vt)),st&&(x["#text"]=!0),xe&&Ve(x,["html","head","body"]),x.table&&(Ve(x,["tbody"]),delete ce.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw os('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw os('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=D.TRUSTED_TYPES_POLICY,B=k.createHTML("")}else k===void 0&&(k=fC(_,o)),k!==null&&typeof B=="string"&&(B=k.createHTML(""));Gn&&Gn(D),ln=D}},rn=Ve({},[...Xd,...Qd,...eC]),sn=Ve({},[...Gd,...tC]),Kt=function(D){let W=N(D);(!W||!W.tagName)&&(W={namespaceURI:Je,tagName:"template"});const re=uu(D.tagName),Ee=uu(W.tagName);return an[D.namespaceURI]?D.namespaceURI===mt?W.namespaceURI===ft?re==="svg":W.namespaceURI===dn?re==="svg"&&(Ee==="annotation-xml"||Lt[Ee]):!!rn[re]:D.namespaceURI===dn?W.namespaceURI===ft?re==="math":W.namespaceURI===mt?re==="math"&&at[Ee]:!!sn[re]:D.namespaceURI===ft?W.namespaceURI===mt&&!at[Ee]||W.namespaceURI===dn&&!Lt[Ee]?!1:!sn[re]&&(Yt[re]||!rn[re]):!!(At==="application/xhtml+xml"&&an[D.namespaceURI]):!1},zt=function(D){rs(l.removed,{element:D});try{N(D).removeChild(D)}catch{A(D)}},Pe=function(D,W){try{rs(l.removed,{attribute:W.getAttributeNode(D),from:W})}catch{rs(l.removed,{attribute:null,from:W})}if(W.removeAttribute(D),D==="is")if(Sn||Xe)try{zt(W)}catch{}else try{W.setAttribute(D,"")}catch{}},Bn=function(D){let W=null,re=null;if(tn)D="<remove></remove>"+D;else{const pe=Vd(D,/^[\r\n\t ]+/);re=pe&&pe[0]}At==="application/xhtml+xml"&&Je===ft&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const Ee=k?k.createHTML(D):D;if(Je===ft)try{W=new v().parseFromString(Ee,At)}catch{}if(!W||!W.documentElement){W=I.createDocument(Je,"template",null);try{W.documentElement.innerHTML=qe?B:Ee}catch{}}const Qe=W.body||W.documentElement;return D&&re&&Qe.insertBefore(i.createTextNode(re),Qe.childNodes[0]||null),Je===ft?G.call(W,xe?"html":"body")[0]:xe?W.documentElement:Qe},Nn=function(D){return L.call(D.ownerDocument||D,D,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},jt=function(D){return D instanceof S&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof b)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},De=function(D){return typeof g=="function"&&D instanceof g};function et(ue,D,W){qo(ue,re=>{re.call(l,D,W,ln)})}const pn=function(D){let W=null;if(et(Y.beforeSanitizeElements,D,null),jt(D))return zt(D),!0;const re=vt(D.nodeName);if(et(Y.uponSanitizeElement,D,{tagName:re,allowedTags:x}),Tt&&D.hasChildNodes()&&!De(D.firstElementChild)&&In(/<[/\w!]/g,D.innerHTML)&&In(/<[/\w!]/g,D.textContent)||D.nodeType===cs.progressingInstruction||Tt&&D.nodeType===cs.comment&&In(/<[/\w]/g,D.data))return zt(D),!0;if(!(Se.tagCheck instanceof Function&&Se.tagCheck(re))&&(!x[re]||ce[re])){if(!ce[re]&&on(re)&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,re)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(re)))return!1;if(st&&!Ft[re]){const Ee=N(D)||D.parentNode,Qe=C(D)||D.childNodes;if(Qe&&Ee){const pe=Qe.length;for(let dt=pe-1;dt>=0;--dt){const Re=T(Qe[dt],!0);Re.__removalCount=(D.__removalCount||0)+1,Ee.insertBefore(Re,O(D))}}}return zt(D),!0}return D instanceof h&&!Kt(D)||(re==="noscript"||re==="noembed"||re==="noframes")&&In(/<\/no(script|embed|frames)/i,D.innerHTML)?(zt(D),!0):(gt&&D.nodeType===cs.text&&(W=D.textContent,qo([P,fe,he],Ee=>{W=ss(W,Ee," ")}),D.textContent!==W&&(rs(l.removed,{element:D.cloneNode()}),D.textContent=W)),et(Y.afterSanitizeElements,D,null),!1)},Fn=function(D,W,re){if(Ct&&(W==="id"||W==="name")&&(re in i||re in ca))return!1;if(!(Be&&!me[W]&&In(de,W))){if(!(we&&In(j,W))){if(!(Se.attributeCheck instanceof Function&&Se.attributeCheck(W,D))){if(!ee[W]||me[W]){if(!(on(D)&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,D)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(D))&&(ne.attributeNameCheck instanceof RegExp&&In(ne.attributeNameCheck,W)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(W,D))||W==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,re)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(re))))return!1}else if(!ua[W]){if(!In(ge,ss(re,Q,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&D!=="script"&&P8(re,"data:")===0&&cn[D])){if(!(St&&!In(le,ss(re,Q,"")))){if(re)return!1}}}}}}}return!0},on=function(D){return D!=="annotation-xml"&&Vd(D,be)},wa=function(D){et(Y.beforeSanitizeAttributes,D,null);const{attributes:W}=D;if(!W||jt(D))return;const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Ee=W.length;for(;Ee--;){const Qe=W[Ee],{name:pe,namespaceURI:dt,value:Re}=Qe,lt=vt(pe),tt=Re;let Ne=pe==="value"?tt:W8(tt);if(re.attrName=lt,re.attrValue=Ne,re.keepAttr=!0,re.forceKeepAttr=void 0,et(Y.uponSanitizeAttribute,D,re),Ne=re.attrValue,nn&&(lt==="id"||lt==="name")&&(Pe(pe,D),Ne=Et+Ne),Tt&&In(/((--!?|])>)|<\/(style|title|textarea)/i,Ne)){Pe(pe,D);continue}if(lt==="attributename"&&Vd(Ne,"href")){Pe(pe,D);continue}if(re.forceKeepAttr)continue;if(!re.keepAttr){Pe(pe,D);continue}if(!Ae&&In(/\/>/i,Ne)){Pe(pe,D);continue}gt&&qo([P,fe,he],Xt=>{Ne=ss(Ne,Xt," ")});const Mt=vt(D.nodeName);if(!Fn(Mt,lt,Ne)){Pe(pe,D);continue}if(k&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!dt)switch(_.getAttributeType(Mt,lt)){case"TrustedHTML":{Ne=k.createHTML(Ne);break}case"TrustedScriptURL":{Ne=k.createScriptURL(Ne);break}}if(Ne!==tt)try{dt?D.setAttributeNS(dt,pe,Ne):D.setAttribute(pe,Ne),jt(D)?zt(D):wv(l.removed)}catch{Pe(pe,D)}}et(Y.afterSanitizeAttributes,D,null)},ze=function ue(D){let W=null;const re=Nn(D);for(et(Y.beforeSanitizeShadowDOM,D,null);W=re.nextNode();)et(Y.uponSanitizeShadowNode,W,null),pn(W),wa(W),W.content instanceof f&&ue(W.content);et(Y.afterSanitizeShadowDOM,D,null)};return l.sanitize=function(ue){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,re=null,Ee=null,Qe=null;if(qe=!ue,qe&&(ue="<!-->"),typeof ue!="string"&&!De(ue))if(typeof ue.toString=="function"){if(ue=ue.toString(),typeof ue!="string")throw os("dirty is not a string, aborting")}else throw os("toString is not a function");if(!l.isSupported)return ue;if(ct||fa(D),l.removed=[],typeof ue=="string"&&(On=!1),On){if(ue.nodeName){const Re=vt(ue.nodeName);if(!x[Re]||ce[Re])throw os("root node is forbidden and cannot be sanitized in-place")}}else if(ue instanceof g)W=Bn("<!---->"),re=W.ownerDocument.importNode(ue,!0),re.nodeType===cs.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?W=re:W.appendChild(re);else{if(!Sn&&!gt&&!xe&&ue.indexOf("<")===-1)return k&&Zt?k.createHTML(ue):ue;if(W=Bn(ue),!W)return Sn?null:Zt?B:""}W&&tn&&zt(W.firstChild);const pe=Nn(On?ue:W);for(;Ee=pe.nextNode();)pn(Ee),wa(Ee),Ee.content instanceof f&&ze(Ee.content);if(On)return ue;if(Sn){if(Xe)for(Qe=J.call(W.ownerDocument);W.firstChild;)Qe.appendChild(W.firstChild);else Qe=W;return(ee.shadowroot||ee.shadowrootmode)&&(Qe=q.call(r,Qe,!0)),Qe}let dt=xe?W.outerHTML:W.innerHTML;return xe&&x["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&In(my,W.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
118
|
-
`+dt),gt&&qo([P,fe,he],Re=>{dt=ss(dt,Re," ")}),k&&Zt?k.createHTML(dt):dt},l.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fa(ue),ct=!0},l.clearConfig=function(){ln=null,ct=!1},l.isValidAttribute=function(ue,D,W){ln||fa({});const re=vt(ue),Ee=vt(D);return Fn(re,Ee,W)},l.addHook=function(ue,D){typeof D=="function"&&rs(Y[ue],D)},l.removeHook=function(ue,D){if(D!==void 0){const W=K8(Y[ue],D);return W===-1?void 0:J8(Y[ue],W,1)[0]}return wv(Y[ue])},l.removeHooks=function(ue){Y[ue]=[]},l.removeAllHooks=function(){Y=Dv()},l}var dC=vy();const hC=({onClose:t})=>{const l=Nt();return y.jsxs("div",{className:_n.highlightLoadingInfo,onClick:t,children:[y.jsx("div",{className:_n.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})}),y.jsxs("div",{className:_n.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:_n.highlightLoadingInfoContent,children:[y.jsx("h3",{children:l("source-infos.highlight-loading.title")}),y.jsx("p",{children:l("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},pC=({title:t,href:l,children:i})=>y.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),gC=({className:t,children:l,...i})=>y.jsx("a",{className:se(Cs.button,Cs.buttonDefault,t),type:"button",role:"button",...i,children:l}),mC=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),vC=({type:t,...l})=>{switch(t){case"WEBSITE":return y.jsx(sy,{...l});case"PDF":return y.jsx(ry,{...l});case"DOCX":return y.jsx(ly,{...l});case"TEXT":return y.jsx(mC,{...l});default:return y.jsx(iy,{...l})}},bC=({url:t,knowledgeBaseType:l})=>{const i=Nt();return y.jsx(gC,{className:_n.openSourceButton,href:t,target:"_blank",children:y.jsxs("div",{className:_n.sourceButtonLabel,children:[y.jsx("div",{className:_n.sourceHeaderIcon,children:y.jsx(vC,{type:l})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},yC=({sourceInfos:{content:t,url:l,knowledgeBaseType:i,highlighted:r}})=>{const[o,f]=Z.useState(!r);Z.useEffect(()=>{r&&f(!1)},[r]);const d=dC.sanitize(t,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:se(_n.sourceContent,uy.markdown),children:[y.jsx(ul,{options:{overrides:{a:pC}},children:d}),o&&y.jsx(hC,{onClose:()=>f(!1)})]}),y.jsx(bC,{url:l,knowledgeBaseType:i})]})},_C=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,SC=()=>{const t=Nt();return y.jsxs("div",{className:_n.loadingError,children:[y.jsx("h1",{children:t("source-infos.error.title")}),y.jsx("img",{src:_C,title:t("source-infos.error.title")}),y.jsx("p",{children:t("source-infos.error.info")})]})},EC=()=>y.jsx("div",{className:_n.loadingSourceInfos,children:y.jsx("svg",{className:_n.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})});function wC({sourceInfos:t,onClose:l,threshold:i=100}){const r=Z.useRef(null),[o,f]=Z.useState(0),[d,g]=Z.useState(!1),h=Z.useRef(null),p=Z.useRef(null),b=Z.useCallback(w=>{h.current=w,g(!0)},[]),S=Z.useCallback(w=>{if(h.current!==null&&d){const T=w-h.current;T>0&&f(T)}},[d]),v=Z.useCallback(()=>{g(!1),o>i&&l(),f(0),h.current=null},[o,i,l]),_=Z.useCallback(w=>{const T=B=>b(B.touches[0].clientY),A=B=>S(B.touches[0].clientY),O=()=>v(),C=B=>{B.preventDefault(),b(B.clientY),window.addEventListener("mousemove",N),window.addEventListener("mouseup",k)},N=B=>S(B.clientY),k=()=>{v(),window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",k)};w.addEventListener("touchstart",T),w.addEventListener("touchmove",A),w.addEventListener("touchend",O),w.addEventListener("mousedown",C),p.current=()=>{w.removeEventListener("touchstart",T),w.removeEventListener("touchmove",A),w.removeEventListener("touchend",O),w.removeEventListener("mousedown",C),window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",k)}},[b,S,v]);return Z.useEffect(()=>{let w;return(()=>{r.current?(p.current?.(),_(r.current)):(w=new MutationObserver(()=>{r.current&&(p.current?.(),_(r.current),w?.disconnect())}),w.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{w?.disconnect(),p.current?.()}},[_,t]),{ref:r,dragOffsetY:o,isDragging:d}}const TC=t=>{const[l,i]=Z.useState(!0);return Z.useEffect(()=>{let r=null;return t?.type==="loading"?(i(!0),r=setTimeout(()=>{i(!1)},300)):i(!t),()=>{r&&clearTimeout(r)}},[t]),l},AC=()=>{const t=gl(),l=kt(h=>h.chat.sourceInfos),i=hy(),r=Z.useRef(null),o=TC(l);Z.useEffect(()=>{r.current&&l?.type==="loading"&&(i?r.current.showModal():(r.current.setAttribute("open","true"),r.current?.focus()))},[l,i]);const f=Z.useCallback(()=>{r.current&&(i?r.current.close():r.current.removeAttribute("open"),t(k3()))},[t,i]),{ref:d,dragOffsetY:g}=wC({onClose:f,sourceInfos:l});return l?y.jsx("dialog",{ref:r,className:se(_n.sourceInfos,o?_n.waitForLoading:l.type==="loading"?_n.loadingContent:""),style:i&&g?{transform:`translateY(${g}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:o?null:y.jsxs(y.Fragment,{children:[y.jsx(Q8,{ref:d,tabIndex:-1,sourceInfos:l.type==="loaded"?l:void 0,onClose:f}),l.type==="loading"?y.jsx(EC,{}):l.type==="loading-error"?y.jsx(SC,{}):y.jsxs(y.Fragment,{children:[y.jsx(G8,{loading:!l.highlighted}),y.jsx(yC,{sourceInfos:l})]})]})}):null},CC="_container_1aof3_1",xC="_body_1aof3_7",OC="_intro_1aof3_14",DC="_footer_1aof3_39",RC="_footnote_1aof3_43",NC="_containerWithFootnote_1aof3_58",MC="_startChatButton_1aof3_73",kC="_spinner_1aof3_88",LC="_formFields_1aof3_92",zC="_formField_1aof3_92",jC="_radio_1aof3_104",BC="_checkbox_1aof3_111",UC="_input_1aof3_119",HC="_inputLabel_1aof3_153",IC="_selectWrapper_1aof3_157",VC="_select_1aof3_157",XC="_selectLabel_1aof3_203",vn={container:CC,body:xC,intro:OC,footer:DC,footnote:RC,containerWithFootnote:NC,startChatButton:MC,spinner:kC,formFields:LC,formField:zC,radio:jC,checkbox:BC,input:UC,inputLabel:HC,selectWrapper:IC,select:VC,selectLabel:XC},QC=({name:t,label:l,defaultValue:i,required:r,onChange:o})=>{const f=d=>{o(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:se(vn.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[y.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:r,onChange:f}),y.jsx("div",{children:l})]})},GC=({type:t,name:l,label:i,defaultValue:r,placeholder:o,required:f,multiple:d,min:g,max:h,pattern:p,onChange:b})=>{const S=v=>{b(v.target.value)};return y.jsxs("label",{className:se(vn.input,"chat__startScreen__input"),htmlFor:l,children:[y.jsx("div",{className:se(vn.inputLabel),children:i}),y.jsx("input",{type:t,id:l,name:l,defaultValue:r,placeholder:o,required:f,multiple:d,min:g,max:h,pattern:p,onChange:S})]})},ZC=({name:t,value:l,label:i,defaultChecked:r,required:o,onChange:f})=>{const d=`${t}-${l}`,g=h=>{f(h.target.value)};return y.jsxs("label",{className:se(vn.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:t,value:l,defaultChecked:r,required:o,onChange:g}),y.jsx("span",{className:se(vn.label),children:i})]})},FC=({name:t,label:l,defaultValue:i,required:r,multiple:o,options:f,onChange:d})=>{const g=h=>{d(h.target.value)};return y.jsxs("label",{className:se(vn.select,"chat__startScreen__select"),htmlFor:t,children:[y.jsx("div",{className:se(vn.selectLabel),children:l}),y.jsx("div",{className:se(vn.selectWrapper),children:y.jsx("select",{id:t,name:t,defaultValue:i,required:r,multiple:o,onChange:g,children:Object.entries(f||{}).map(([h,p])=>y.jsx("option",{value:h,selected:p===i,children:p}))})})]})},YC="start-screen.intro",KC="start-screen.start-chat",JC="start-screen.waiting-for-login",PC="start-screen.footnote",xa="start-screen.form",Rv=`${xa}.fields`,WC=()=>{const t=Nt(),l=gl(),i=Tp(),r=kt(w=>w.startScreen.loginRequestToken),o=kt(w=>w.settings.requiresUserAuthentication);Z.useEffect(()=>{let w;if(r){const O=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,N=window.open(`/${i}/auth/login?loginRequestToken=${r}`,"Login",`width=600,height=700,left=${O},top=${C},resizable=yes,scrollbars=yes`);w=setInterval(()=>{N?.closed&&(l(D3()),clearInterval(w))},500)}return()=>{w&&clearInterval(w)}},[i,r,l]);const[f,d]=Z.useState({}),g=()=>{const w=Object.entries(f).reduce((T,[A,O])=>({...T,[A]:O.value}),{});l(o?O3({loginRequestToken:mu(),formValues:w}):A3({formValues:w}))},h=t(YC),p=t(r?JC:KC),b=t(PC),S=Z.useMemo(()=>t(Rv)?.split(";").map(w=>w.trim())??[],[t(Rv)]);Z.useEffect(()=>{S.length&&Object.keys(f).length===0&&d(S.reduce((w,T)=>({...w,[T]:$C(T,t)}),{}))},[t,S,f]);const v=w=>{w.preventDefault(),g()},_=w=>T=>{d(A=>({...A,[w]:{...A[w],value:T}}))};return y.jsxs("form",{onSubmit:v,className:se(vn.container,b&&vn.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:se(vn.body,"chat__startScreen__body"),children:[h&&y.jsx("div",{className:se(vn.intro,"chat__startScreen__intro"),children:y.jsx(ul,{options:{overrides:{a:Nv}},children:h})}),y.jsx("div",{className:se(vn.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:w,name:T,label:A,placeholder:O,defaultValue:C,options:N,required:k,multiple:B,min:I,max:L,pattern:J})=>y.jsx("div",{className:se(vn.formField,"chat__startScreen__field"),children:(()=>{switch(w){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:A}),Object.entries(N||{}).map(([G,q])=>y.jsx(ZC,{name:T,value:G,label:q,defaultChecked:G===C,required:k,onChange:_(T)},G))]});case"checkbox":return y.jsx(QC,{name:T,label:A,defaultValue:C,required:k,onChange:_(T)});case"select":return y.jsx(FC,{name:T,label:A,defaultValue:C,required:k,multiple:B,options:N,onChange:_(T)});default:return y.jsx(GC,{type:w,name:T,label:A,placeholder:O,defaultValue:C,required:k,multiple:B,min:I,max:L,pattern:J,onChange:_(T)})}})()},T))})]}),y.jsxs("div",{className:se(vn.footer,"chat__startScreen__footer"),children:[y.jsxs(Qu,{type:"submit",className:vn.startChatButton,disabled:!!r,children:[!!r&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:vn.spinner,children:y.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"})}),y.jsx("div",{children:p})]}),b&&y.jsx("div",{className:vn.footnote,children:y.jsx(ul,{options:{overrides:{a:Nv}},children:b})})]})]})},Nv=({title:t,href:l,children:i})=>y.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),$C=(t,l)=>{const i=l(`${xa}.${t}.type`)||"text",r=l(`${xa}.${t}.required`)==="true",o=l(`${xa}.${t}.multiple`)==="true",f=l(`${xa}.${t}.placeholder`),d=l(`${xa}.${t}.label`)||"",g=l(`${xa}.${t}.defaultValue`),h=l(`${xa}.${t}.min`),p=l(`${xa}.${t}.max`),b=l(`${xa}.${t}.pattern`),S=ex(l(`${xa}.${t}.options`));return{name:t,label:d,placeholder:f,value:qC(i,g,S)||"",defaultValue:g,options:S,type:i,required:r,multiple:o,min:h,max:p,pattern:b}},qC=(t,l,i)=>l||t==="select"&&Object.keys(i)[0]||"",ex=(t="")=>t.split(";").map(l=>l.trim()).reduce((l,i)=>{const[r,o]=i.split(":").map(f=>f.trim());return{...l,[r]:o}},{}),tx=()=>{const t=kt(l=>l.intl.locale);Z.useEffect(()=>{window.document.documentElement.lang=t},[t])},qi={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"},nx=({clientName:t})=>{tx();const l=gl(),i=kt(b=>b.intl.messages),r=Nt(),o=kt(b=>b.settings.enableStartScreen),f=kt(b=>b.startScreen.startScreenStatus),d=kt(b=>b.connection.queryString),g=Z.useMemo(()=>new URLSearchParams(d||"?").get("cssClassName"),[d]);Z.useEffect(()=>{const b=new URLSearchParams(d||""),S=Object.fromEntries(b.entries()),v=_=>{switch(_.data.type){case qi.TRIGGER_ACTION:l(_.data.action);break;case qi.TRIGGER_STORY:l(ob(_.data.story));break;case qi.ON_CHAT_WINDOW_OPEN:l({type:"webclient.chatwindow.opened"});break;case qi.ON_CHAT_WINDOW_CLOSE:l({type:"webclient.chatwindow.closed"});break;case qi.CHAT_MESSAGE_FROM_GUEST:l(ab(_.data.text));break;case qi.RESTART_CHAT:l(Ds());break}};return l(z3(t,S)),window.addEventListener("message",_=>v(_),!1),()=>window.removeEventListener("message",v)},[t,d,l]),Z.useEffect(()=>{const b=r("page.title");b&&document&&(document.title=b)},[i,r]);const h=o===void 0,p=o===!1||f==="HIDDEN";return y.jsx("div",{className:se(Sv.chatwindow,p&&Sv.chatwindowWithAside,"chat__chatwindow",g),children:h?null:p?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(_v,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(s8,{clientName:t})}),y.jsx("aside",{children:y.jsx(AC,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(_v,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(WC,{})})]})})},ax=()=>{const t=Tp(),l=hy();return y.jsx("div",{className:se([oE.app,l?"chat__small":"chat__large"]),children:y.jsx(nx,{clientName:t})})},by={"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:
|
|
116
|
+
`}let S=Sp(h?g:b,{inline:h,refs:d},p);return $w(S,{...p,forceInline:h})}let d={};return f(t)}var qw=({children:t,options:l,...i})=>ty(t??"",{...l,wrapperProps:{...l?.wrapperProps,...i}}),ul=qw;const eT="_generalConditionsContainer_55hjg_1",tT="_generalConditions_55hjg_1",nT="_generalConditionsHeader_55hjg_15",aT="_generalConditionsBody_55hjg_26",lT="_generalConditionsAccept_55hjg_35",as={generalConditionsContainer:eT,generalConditions:tT,generalConditionsHeader:nT,generalConditionsBody:aT,generalConditionsAccept:lT},iT=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),rT=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),sT="general-conditions.header",oT="general-conditions.body",cv="general-conditions.accept-conditions-note",uT=()=>{const t=Nt(),[l,i]=Z.useState(!1),r=()=>i(!l),o=g=>{g.key==="ArrowDown"||g.key==="ArrowRight"?i(!0):g.key==="ArrowUp"||g.key==="ArrowLeft"||g.key==="Escape"?i(!1):(g.key==="Enter"||g.key==="Space"||g.key===" ")&&r()},f=t(sT),d=t(cv);return y.jsxs("div",{className:se(as.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&y.jsxs("div",{className:as.generalConditions,children:[y.jsxs("div",{role:"button",onClick:r,onKeyDown:o,tabIndex:0,className:se(as.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":l?"true":"false","aria-pressed":l?"true":"false",children:[y.jsx(ul,{children:f}),l?y.jsx(rT,{}):y.jsx(iT,{})]}),y.jsx("div",{className:se(as.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:l&&y.jsx(ul,{children:t(oT)||""})})]}),!!d?.length&&y.jsx("div",{className:se(as.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(ul,{children:t(cv)||""})})]})},cT="_messageContainer_1rxi5_1",fT="_message_1rxi5_1",dT="_messageBot_1rxi5_14",hT="_messageBotLast_1rxi5_45",pT="_avatar_1rxi5_45",gT="_messageBotFirst_1rxi5_54",mT="_messageBotAnimated_1rxi5_67",vT="_messageGuest_1rxi5_78",bT="_messageGuestFirst_1rxi5_84",yT="_messageGuestLast_1rxi5_90",_T="_botAvatar_1rxi5_104",ST="_agentAvatar_1rxi5_108",ET="_bubble_1rxi5_112",wT="_bubbleContent_1rxi5_118",TT="_bubbleLeft_1rxi5_132",AT="_leftText_1rxi5_143",CT="_bubbleRight_1rxi5_150",xT="_rightText_1rxi5_160",OT="_sourceInfoReference_1rxi5_192",DT="_sourceInfoReferenceActive_1rxi5_204",ke={messageContainer:cT,message:fT,messageBot:dT,messageBotLast:hT,avatar:pT,messageBotFirst:gT,messageBotAnimated:mT,messageGuest:vT,messageGuestFirst:bT,messageGuestLast:yT,botAvatar:_T,agentAvatar:ST,bubble:ET,bubbleContent:wT,bubbleLeft:TT,leftText:AT,bubbleRight:CT,rightText:xT,sourceInfoReference:OT,sourceInfoReferenceActive:DT},Ep=(t,l)=>{Z.useEffect(()=>{const i=r=>{t.current&&!t.current.contains(r.target)&&l()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,l])};function RT(t,l){let i=null,r=null;const o=(...f)=>{r=f,i&&clearTimeout(i),i=setTimeout(()=>{t(...r),i=null,r=null},l)};return o.flush=()=>{i&&r&&(clearTimeout(i),t(...r),i=null,r=null)},o}function NT(t,l){let i=0,r=null;return((...o)=>{const f=Date.now(),d=f-i;d>=l?(i=f,t(...o)):(r&&clearTimeout(r),r=setTimeout(()=>{i=Date.now(),t(...o)},l-d))})}const MT="_container_131ib_1",kT="_categoryContainer_131ib_13",LT="_categoryButton_131ib_20",zT="_active_131ib_35",jT="_commentTextarea_131ib_44",ls={container:MT,categoryContainer:kT,categoryButton:LT,active:zT,commentTextarea:jT},BT=(t,l,i)=>{Z.useEffect(()=>{if(t){const r=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=l.current?Array.from(l.current.querySelectorAll(f)):[],g=i.current?Array.from(i.current.querySelectorAll(f)):[];return[...d,...g]},o=f=>{if(f.key==="Tab"){const d=r();if(d.length>0){const g=d[0],h=d[d.length-1],p=document.activeElement;!f.shiftKey&&p===h?(f.preventDefault(),g.focus()):f.shiftKey&&p===g&&(f.preventDefault(),h.focus())}}};return document.addEventListener("keydown",o,!0),()=>{document.removeEventListener("keydown",o,!0)}}},[t,l,i])},UT=({open:t,actionsRef:l,reaction:i,onReaction:r})=>{const o=Nt(),f=Z.useRef(null),d=RT(p=>{r({...i,comment:p})},300);Z.useEffect(()=>()=>d.flush(),[d]),BT(t,l,f);const g=p=>{r({...i,category:i.category===p?void 0:p})},h=p=>d(p.target.value);return t?y.jsxs("div",{ref:f,className:ls.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:o("bot-bubble.reaction.say-more")}),y.jsx("div",{className:ls.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>y.jsx("button",{className:se(ls.categoryButton,i?.category===p&&ls.active),onClick:()=>g(p),"aria-pressed":i?.category===p,"aria-label":o(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:o(`bot-bubble.reaction.category.${p}`)},p))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:o("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:h,className:ls.commentTextarea,rows:3,"aria-label":o("bot-bubble.reaction.comment")})]}):null},HT="_botMessageActionContainer_18fjb_1",IT="_alwaysVisible_18fjb_15",VT="_active_18fjb_19",XT="_botMessageActionInnerContainer_18fjb_27",QT="_header_18fjb_52",GT="_botMessageActions_18fjb_57",ZT="_reported_18fjb_68",FT="_action_18fjb_72",YT="_wave_18fjb_86",KT="_anyReport_18fjb_156",JT="_closeButton_18fjb_172",Ht={botMessageActionContainer:HT,alwaysVisible:IT,active:VT,botMessageActionInnerContainer:XT,header:QT,botMessageActions:GT,reported:ZT,action:FT,wave:YT,anyReport:KT,closeButton:JT},PT=({isSubmitting:t,onClick:l})=>{const i=Nt();return y.jsx("button",{className:se(Ht.action,Ht.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:l,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"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"})})})},WT=({alwaysVisible:t,senderType:l,reaction:i,botMessageRef:r,message:o,animated:f,onReaction:d})=>{const g=Nt(),[h,p]=Z.useState(!1),[b,S]=Z.useState(!1),[v,_]=Z.useState(!1),T=Z.useRef(null),w=Z.useRef(null);Ep(T,()=>{_(!1)});const A=I=>{I.key==="Escape"&&_(!1)};Z.useEffect(()=>(document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}),[]),Z.useEffect(()=>{v&&T.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[v]);const O=I=>{w.current&&clearTimeout(w.current),S(!0),d(I),w.current=setTimeout(()=>{S(!1)},1e3)},C=Z.useCallback(async()=>{if(r.current)try{p(!0);const I=r.current.innerHTML,L=r.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([I],{type:"text/html"}),"text/plain":new Blob([L],{type:"text/plain"})})]),await new Promise(J=>setTimeout(J,1500))}finally{p(!1)}},[r]),N=()=>{_(!1),d(i?.type==="GOOD"?null:{type:"GOOD"})},k=()=>{d({...o.reaction,type:"BAD"}),_(!v)},B=I=>L=>{(L.key==="Enter"||L.key===" ")&&I()};return y.jsx("div",{ref:T,className:se(Ht.botMessageActionContainer,t&&Ht.alwaysVisible,v&&Ht.active),children:y.jsxs("div",{className:se(Ht.botMessageActionInnerContainer,t&&Ht.alwaysVisible,v&&Ht.active,i&&Ht.reported),role:"group",children:[y.jsxs("div",{className:Ht.header,children:[y.jsxs("div",{className:se(Ht.botMessageActions,i&&Ht.reported),children:[l===Tu.BOT&&y.jsx("button",{className:se(Ht.action,f&&Ht.wave,i?.type&&Ht.anyReport,i?.type==="GOOD"&&Ht.reported,"tooltip--top-right"),tabIndex:0,"aria-label":g(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":g(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:N,onKeyDown:B(N),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),l===Tu.BOT&&y.jsx("button",{className:se(Ht.action,f&&Ht.wave,i?.type&&Ht.anyReport,i?.type==="BAD"&&Ht.reported,"tooltip--top-right"),tabIndex:0,"aria-label":g("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":g("bot-bubble.reaction.bad"),onPointerDown:k,onKeyDown:B(k),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),y.jsx("button",{className:se(Ht.action,f&&Ht.wave,"tooltip--top-right"),style:{visibility:v?"hidden":"visible"},tabIndex:0,"aria-label":g("bot-bubble.copy"),"data-title":g("bot-bubble.copy"),onClick:C,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]}),v&&y.jsx(PT,{isSubmitting:b,onClick:()=>_(!1)})]}),o.reaction&&y.jsx(UT,{open:v,actionsRef:T,reaction:o.reaction,onReaction:O})]})})},ny=Z.forwardRef(({message:t,isAnimated:l,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,children:d,onReaction:g},h)=>{const p=Nt(),b=Z.useRef(null),S=t.sender.type===dl.BOT;return y.jsxs("li",{ref:h,className:se(ke.message,ke.messageBot,r&&ke.lastMessage,o&&ke.messageBotFirst,f&&ke.messageBotLast,"chat__bubbleContainer",l&&ke.messageBotAnimated,l&&"chat__bubbleContainer--animated",S?"chat__botBubbleContainer":"chat__agentBubbleContainer",o&&"chat__bubbleContainer--first",f&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:se(ke.avatar,S?ke.botAvatar:ke.agentAvatar,"chat__avatar",S?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:S?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ke.messageContainer,children:[y.jsx("div",{ref:b,className:se(ke.bubble,ke.bubbleLeft,"chat__bubble",S?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(S?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:se(ke.leftText),children:d})}),g&&y.jsx(WT,{alwaysVisible:r&&f,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:b,animated:i,onReaction:g})]})]})}),$T="_sourceList_1sc0q_1",qT="_source_1sc0q_1",e6="_label_1sc0q_39",Ud={sourceList:$T,source:qT,label:e6},ay=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),ly=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})}),iy=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})}),ry=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})}),t6=({type:t,...l})=>{switch(t){case"WEBSITE":return y.jsx(ry,{...l});case"PDF":return y.jsx(iy,{...l});case"DOCX":return y.jsx(ay,{...l});default:return y.jsx(ly,{...l})}},wp=({sources:t,onLinkClick:l})=>{const i=Nt(),r=f=>()=>{l(f.url)},o=f=>d=>{(d.key==="Enter"||d.key===" ")&&l(f.url)};return t.length?y.jsx("ul",{className:Ud.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(f=>y.jsx("li",{className:Ud.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:r(f),onKeyDown:o(f),children:[y.jsx(t6,{type:f.type,"aria-hidden":"true"}),y.jsx("div",{className:Ud.label,children:f.label})]})},f.url))}):null},n6="_button_3ui4g_1",a6="_buttonDefault_3ui4g_13",l6="_buttonPrimary_3ui4g_28",As={button:n6,buttonDefault:a6,buttonPrimary:l6},rc=({className:t,children:l,...i})=>y.jsx("button",{className:se(As.button,t),type:"button",role:"button",...i,children:l}),i6="_title_137pi_1",r6="_buttons_137pi_6",s6="_button_137pi_6",o6="_imageContainer_137pi_29",u6="_image_137pi_29",c6="_video_container_137pi_44",f6="_video_137pi_44",d6="_only_137pi_58",sa={title:i6,buttons:r6,button:s6,imageContainer:o6,image:u6,video_container:c6,video:f6,only:d6},h6=({buttons:t,onButtonClick:l})=>y.jsx("div",{className:se(sa.buttons,"chat__bubbleButtons"),children:t.map((i,r)=>y.jsx(rc,{className:se(sa.button,"chat__bubbleButton"),onClick:()=>l(i),children:i.title},r))}),fv="newtab#",sy=({markdown:t,markdownOptions:l={},onLinkClick:i})=>{const r=f=>d=>(d.preventDefault(),f&&i(f),!1),o=({title:f,href:d,children:g})=>d.indexOf(fv)===0?y.jsx("a",{href:d.slice(fv.length),title:f,target:"_blank",rel:"noopener noreferrer",children:g}):y.jsx("a",{onClick:r(d),title:f,href:d,children:g});return y.jsx(ul,{options:{...l,overrides:{a:o}},children:t})},p6=({text:t,onLinkClick:l})=>t?y.jsx("div",{children:y.jsx(sy,{markdown:t,onLinkClick:l})}):null,g6=({title:t})=>t?y.jsx("h1",{className:sa.title,children:t}):null,m6=({title:t,text:l,buttons:i,onButtonClick:r,onLinkClick:o})=>t?.length||l?.length||i?.length?y.jsxs("div",{className:se(ke.bubbleContent),children:[y.jsx(g6,{title:t}),y.jsx(p6,{text:l,onLinkClick:o}),y.jsx(h6,{buttons:i,onButtonClick:r})]}):null,v6=({alt:t,imageUrl:l,itemUrl:i,hasBody:r})=>l?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:sa.video_container,children:y.jsx("iframe",{className:se(sa.video,{[sa.only]:!r}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:sa.imageContainer,children:y.jsx("img",{className:se(sa.image,{[sa.only]:!r}),src:l,alt:t})})}):y.jsx("div",{className:sa.imageContainer,children:y.jsx("img",{className:se(sa.image,{[sa.only]:!r}),src:l,alt:t})}):null,b6=({title:t,text:l,imageUrl:i,itemUrl:r,buttons:o,sources:f,onButtonClick:d,onLinkClick:g})=>{const h=!!t?.length||!!l?.length||!!o?.length;return y.jsxs("div",{className:se(sa.detailMessage),children:[y.jsx(v6,{hasBody:h,imageUrl:i,itemUrl:r,alt:t||""}),h&&y.jsx(m6,{title:t,text:l,buttons:o,onLinkClick:g,onButtonClick:d}),y.jsx(wp,{sources:f,onLinkClick:g})]})},y6=Z.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:l,children:i},r)=>{const o=Nt();return y.jsx("li",{ref:r,className:se(ke.message,ke.messageGuest,t&&ke.messageGuestFirst,l&&ke.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:se(ke.bubble,ke.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":o("guest-bubble.label"),children:y.jsx("div",{className:se(ke.rightText),children:i})})})}),Tp=()=>Z.useMemo(()=>Zh(),[]),_6="_markdown_nw7vg_1",oy={markdown:_6},Po="source-info-reference",S6=({actionId:t,markdown:l,sources:i,onLinkClick:r})=>{const o=Tp(),f=gl(),d=E6(),g=kt(b=>{const S=b.chat.sourceInfos;if(S?.type==="loaded"||S?.type==="loading")return S.chunkId}),h=b=>S=>{const v=S.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(S.stopPropagation(),f(Q1(o,t,b)))},p=b=>()=>{f(Q1(o,t,b))};return Z.useLayoutEffect(()=>{document.querySelectorAll(`.${Po}`).forEach(b=>{const S=b.previousSibling;S&&S.nodeType===Node.TEXT_NODE&&S.textContent?.endsWith(" ")&&S.textContent?.trim().length&&b.classList.add(`${Po}--before-space`);const v=b.nextSibling;v&&v.nodeType===Node.TEXT_NODE&&v.textContent?.startsWith(" ")&&v.textContent?.trim().length&&b.classList.add(`${Po}--after-space`)})},[l]),y.jsxs("div",{className:ke.bubbleContent,children:[y.jsx("div",{className:oy.markdown,children:y.jsx(sy,{markdown:l,onLinkClick:r,markdownOptions:{renderRule(b,S,v,_){if(S.type===V.footnoteReference){const T=S.text===g;return y.jsx("span",{className:se(ke.sourceInfoReference,T&&ke.sourceInfoReferenceActive,Po),children:y.jsx("a",{type:"button",tabIndex:0,onClick:p(S.text),onKeyDown:h(S.text),children:d(S.text)})},_.key)}return b()}}})}),y.jsx(wp,{sources:i,onLinkClick:r})]})},E6=()=>{const t=[];return i=>{const r=t.indexOf(i);return r>-1?r+1:(t.push(i),t.length)}},w6="_text_gp0s0_1",T6="_command_gp0s0_5",dv={text:w6,command:T6},A6=({text:t,commands:l=[]})=>{const i=l.find(o=>t.startsWith(`/${o}`)),r=i?t.slice(i.length+1):t;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:dv.command,children:["/",i]}),r.split(`
|
|
117
|
+
`).map((o,f)=>y.jsxs("span",{className:dv.text,children:[o,y.jsx("br",{})]},f))]})},C6=({text:t,commands:l,sources:i,onLinkClick:r})=>y.jsxs("div",{className:ke.bubbleContent,children:[y.jsx(A6,{text:t,commands:l}),y.jsx(wp,{sources:i,onLinkClick:r})]}),x6=Z.forwardRef(({message:t,commands:l,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,onReaction:d,onButtonClick:g,onLinkClick:h},p)=>{const b=O6(t._id,t,l,g,h),S=v=>{d(t._id,v)};switch(t.sender.type){case dl.GUEST:return y.jsx(y6,{ref:p,isFirstMessageBySender:o,isLastMessageBySender:f,children:b});default:return y.jsx(ny,{ref:p,message:t,isAnimated:!1,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,onReaction:S,children:b})}}),O6=(t,l,i,r,o)=>{switch(l.type){case ar.TEXT:{const f=l;return y.jsx(C6,{text:f.text,commands:i,sources:l.sources||[],onLinkClick:o})}case ar.DETAIL:{const f=l;return y.jsx(b6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:l.sources||[],onButtonClick:r,onLinkClick:o})}case ar.MARKDOWN:{const f=l;return y.jsx(S6,{actionId:t,markdown:f.markdown,sources:f.sources||[],onLinkClick:o})}}},D6=(t,l)=>t.message._id===l.message._id&&t.message.reaction===l.message.reaction&&t.isFirstMessage===l.isFirstMessage&&t.isLastMessage===l.isLastMessage&&t.isFirstMessageBySender===l.isFirstMessageBySender&&t.isLastMessageBySender===l.isLastMessageBySender,R6=Iv.memo(x6,D6),N6="_ticontainer_xg0dn_1",M6="_tiblock_xg0dn_5",k6="_tidot_xg0dn_12",is={ticontainer:N6,tiblock:M6,tidot:k6},L6=({isTyping:t=!1})=>y.jsx("div",{className:is.ticontainer,children:y.jsx("div",{className:is.tiblock,children:t?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:se(is.tidot,"chat__typingIndicator")}),y.jsx("div",{className:se(is.tidot,"chat__typingIndicator")}),y.jsx("div",{className:se(is.tidot,"chat__typingIndicator")})]}):null})}),z6=Object.assign({_id:"typing-indicator"},new Fu("",new gE)),j6=({messages:t,isBotTyping:l,commands:i,onTranscriptItemReaction:r,onButtonClick:o,onLinkClick:f})=>{const d=Z.useRef(0),g=Z.useRef(!0),h=Z.useRef(null),p=Z.useRef(null),b=Z.useRef(null),S=kt(T=>T.settings.enableGeneralConditions);Z.useLayoutEffect(()=>{if(t.length&&h.current&&(d.current<t.length||l)){if(p.current){const T=p.current.offsetTop;h.current.scrollTop=T}else if(b.current){const T=b.current.offsetTop;h.current.scrollTop=T}g.current&&(g.current=!1),d.current=t.length}},[t,g,l]);let v;const _=t.length;return y.jsxs("div",{ref:h,className:se(Z1.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&g.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&y.jsx(uT,{}),y.jsxs("ul",{className:Z1.messages,children:[t.map((T,w)=>{const A=B6(T,v),O=U6(T,w,t,l);v=T.sender.type;const C=w+1===_,N=w===0,k=T._id||`added-${w}`;return y.jsx(R6,{ref:C?b:null,message:T,commands:i,isFirstMessage:N,isLastMessage:C,isFirstMessageBySender:A,isLastMessageBySender:O,onButtonClick:o,onLinkClick:f,onReaction:r},C&&!l?"last":k)}),l&&y.jsx(ny,{ref:p,message:z6,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:v!==dl.BOT,isLastMessageBySender:!0,children:y.jsx(L6,{isTyping:!0})},"last")]})]})},B6=(t,l)=>!l||l!==t.sender.type,U6=(t,l,i,r)=>{const o=t.sender.type,f=i.length;return l+1===f?!(o===dl.BOT&&r):o!==i.at(l+1)?.sender.type},H6="_bottomSheet_jp8dl_1",I6="_bottomSheetOpen_jp8dl_15",V6="_bottomSheetClose_jp8dl_20",cl={bottomSheet:H6,bottomSheetOpen:I6,bottomSheetClose:V6},X6="_container_xc2nx_1",hv={container:X6},Q6=({contentUrl:t})=>{const l=kt(f=>f.connection.sessionId),[i,r]=Z.useState(!1);Z.useEffect(()=>{r(f=>f||!!t)},[t]);const o=Z.useMemo(()=>{if(t&&l){const f=new URL(t,document.baseURI);return f.searchParams.set("sessionId",l),f.toString()}else return},[t,l]);return y.jsx("div",{className:se(hv.container,cl.bottomSheet,{[cl.bottomSheetOpen]:!!t,[cl.bottomSheetClose]:i&&!t}),children:o&&y.jsx("iframe",{title:"Drawer",src:o,className:hv.iframe})})},G6="_container_vvbth_1",Z6={container:G6},F6=({title:t,href:l,children:i})=>y.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),Y6=()=>{const l=Nt()("powered-by");return l&&l.length?y.jsx("div",{className:se(Z6.container,"chat__poweredBy"),children:y.jsx(ul,{options:{overrides:{a:F6}},children:l})}):null},uy=({className:t,children:l,...i})=>y.jsx(rc,{className:se(As.buttonDefault,t),type:"button",...i,children:l}),Qu=({className:t,children:l,...i})=>y.jsx(rc,{className:se(As.buttonPrimary,t),...i,children:l}),K6="_container_h23mk_1",J6="_formContainer_h23mk_17",P6="_emailInput_h23mk_22",W6="_description_h23mk_52",$6="_actions_h23mk_57",q6="_validationError_h23mk_67",e8="_submitted_h23mk_74",oi={container:K6,formContainer:J6,emailInput:P6,description:W6,actions:$6,validationError:q6,submitted:e8},t8=({visible:t,onEmailExport:l,onClose:i})=>{const r=Nt(),[o,f]=Z.useState(void 0),[d,g]=Z.useState(!1),[h,p]=Z.useState(void 0),b=Z.useRef(null);Z.useEffect(()=>{t?(b.current?.focus(),g(!1),f(t)):o===!0&&f(!1)},[t,o]);const S=_=>{_.preventDefault(),h&&h.length>0&&(l(h),g(!0),setTimeout(i,3*1e3))},v=_=>{const T=_.target.value.trim(),w=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(T);p(w?T:"")};return y.jsxs("div",{className:se(oi.container,cl.bottomSheet,{[cl.bottomSheetOpen]:o===!0,[cl.bottomSheetClose]:o===!1}),children:[y.jsx("h2",{children:r("export-transcript.email.title")}),y.jsx(ul,{className:oi.description,children:r("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:S,className:oi.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:r("export-transcript.email.placeholder"),className:oi.emailInput,onChange:v}),h?.length===0?y.jsx("div",{className:oi.validationError,children:r("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:oi.actions,children:[y.jsx(uy,{onClick:i,children:r("export-transcript.email.cancel")}),y.jsx(Qu,{type:"submit",disabled:d||h===void 0||h.length===0,children:r("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:oi.submitted,children:r("export-transcript.email.success")})]})},n8="_inputContainer_fi5ao_1",a8={inputContainer:n8},l8="_blockUserInput_pot9c_1",i8={blockUserInput:l8},r8=({visible:t})=>{const l=Nt();return t?y.jsx("div",{className:se(i8.blockUserInput,"chat__blockUserInput"),children:l("block-user-input.title")}):null},s8="_commandsDropdown_fmklx_1",o8="_commands_fmklx_1",u8="_command_fmklx_1",c8="_commandActive_fmklx_49",Wo={commandsDropdown:s8,commands:o8,command:u8,commandActive:c8},f8=(t,l,i,r,o)=>{Z.useEffect(()=>{const f=d=>{if(t.length)switch(d.key){case"Enter":i(t[l]);break;case"ArrowUp":r(g=>g>0?g-1:t.length-1);break;case"ArrowDown":r(g=>g<t.length-1?g+1:0);break;case"Escape":o([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[t,l,i,r,o])},d8=({text:t,commands:l,onSelectCommand:i,onVisibilityChange:r})=>{const o=Z.useRef(null),f=Nt(),[d,g]=Z.useState([]),[h,p]=Z.useState(pv(l)),[b,S]=Z.useState(0),v=_=>i(`/${_}`);return Ep(o,()=>g([])),f8(d,b,v,S,g),Z.useEffect(()=>{p(pv(l))},[l]),Z.useEffect(()=>{const _=t.length||0;_===0||_>h||!t.startsWith("/")?g([]):g(l.filter(h8(t))),S(0)},[l,t,h]),Z.useEffect(()=>{r(!!d.length)},[d,r]),d.length?y.jsx("div",{ref:o,className:Wo.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Wo.commands,role:"listbox",children:d.map((_,T)=>y.jsxs("li",{className:se([Wo.command,b===T&&Wo.commandActive]),role:"option",onClick:()=>v(_),onMouseOver:()=>S(T),children:[y.jsxs("h1",{children:["/",_]}),y.jsx("p",{children:f(`commands.${_}`)})]},_))})}):null},pv=t=>Math.max(...t.map(l=>l.length+1)),h8=t=>l=>{const i=`/${l}`;return i.startsWith(t)&&i.length>=t.length},p8="_callToActionContainer_d8izj_1",g8="_callToActionTitle_d8izj_23",m8="_rateOverlay_d8izj_30",v8="_body_d8izj_52",b8="_footer_d8izj_60",y8="_actions_d8izj_75",_8="_bubbles_d8izj_89",S8="_stars_d8izj_191",E8="_starsSmall_d8izj_205",w8="_starsLarge_d8izj_211",T8="_star_d8izj_191",A8="_starReadonly_d8izj_225",C8="_starIcon_d8izj_235",x8="_starsDescriptionContainer_d8izj_253",O8="_starsDescription_d8izj_253",Vn={callToActionContainer:p8,callToActionTitle:g8,rateOverlay:m8,body:v8,footer:b8,actions:y8,bubbles:_8,stars:S8,starsSmall:E8,starsLarge:w8,star:T8,starReadonly:A8,starIcon:C8,starsDescriptionContainer:x8,starsDescription:O8},D8=({value:t,index:l,count:i,readonly:r,onHover:o,onClick:f})=>{const d=g=>{f&&g.key==="Enter"&&f()};return y.jsx("li",{className:se(Vn.star,{[Vn.starReadonly]:r},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":t>l?"true":"false","aria-posinset":l+1,"aria-setsize":i,tabIndex:0,onMouseOver:o,onKeyDown:d,onClick:f,children:y.jsx("span",{role:"img","aria-label":"Star",className:se(Vn.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},gv=5,cy=({value:t,size:l,readonly:i=!1,onChange:r})=>{const[o,f]=Z.useState(void 0),d=()=>{f(void 0)},g=p=>()=>{if(!i){const b=p+1;f(b)}},h=p=>()=>{r&&!i&&(r(p===0&&t===1?0:p+1),f(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:se(Vn.stars,{[Vn.starsSmall]:l==="small",[Vn.starsLarge]:l==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:l==="small",chat__conversationRating__stars__large:l==="large"}),onMouseOut:d,children:Array(gv).fill(0).map((p,b)=>y.jsx(D8,{value:o===void 0?t:o,index:b,count:gv,readonly:i,onHover:g(b),onClick:h(b)},b))})},R8=({visible:t,onRate:l})=>{const i=Nt();return t?y.jsxs("div",{className:se(Vn.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:se(Vn.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(cy,{value:0,size:"small",onChange:l})]}):null},Hd=({isFirstMessageBySender:t,isLastMessageBySender:l,children:i})=>y.jsxs("div",{className:se(ke.message,ke.messageBot,t&&ke.messageBotFirst,l&&ke.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:se(ke.avatar,ke.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:se(ke.bubble,ke.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:se(ke.leftText,ke.bubbleContent),children:i})})]}),N8=({children:t})=>y.jsx("div",{className:se(ke.message,ke.messageGuest,ke.messageGuestFirst,ke.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:se(ke.bubble,ke.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:se(ke.rightText,ke.bubbleContent),children:t})})}),M8=()=>{const t=Nt(),l=gl(),i=kt(A=>A.chat.conversationRating),[r,o]=Z.useState(i.rating?.value||0),[f,d]=Z.useState(void 0),[g,h]=Z.useState(void 0),[p,b]=Z.useState({submitted:!1,feedback:""}),S=Z.useRef(null),[v,_]=Z.useState(!1);Z.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),h(!0)):g===!0&&h(!1)},[i.opener,g]),Z.useEffect(()=>{o(i.rating?.value||0)},[i.rating?.value,i.opener]),Z.useEffect(()=>{S.current&&(S.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),Z.useEffect(()=>{const A=r>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${r}`):void 0;d(A?.length?A:void 0)},[r,t]),Z.useEffect(()=>{p.submitted?setTimeout(()=>_(!0),p.feedback.length?500:0):_(!1)},[p]);const T=A=>{A.preventDefault();const O=S.current?.value?.trim()||"";l(xE(r,O)),b({submitted:!0,feedback:O})},w=()=>{i.opener==="CLOSE_CHAT"?l(Rb()):i.opener==="RESTART_CHAT"?l(Os()):l(N3())};return y.jsx("div",{className:se(Vn.rateOverlay,cl.bottomSheet,"chat__conversationRating__overlay",{[cl.bottomSheetOpen]:g===!0,[cl.bottomSheetClose]:g===!1}),children:y.jsxs("form",{onSubmit:T,children:[y.jsxs("div",{className:se(Vn.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:se(Vn.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(Hd,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[y.jsx("h2",{children:t("conversation-rating.overlay.title")}),y.jsxs("div",{className:se(Vn.starsDescriptionContainer),children:[y.jsx(cy,{value:r,size:"large",readonly:p.submitted,onChange:o}),y.jsxs("div",{className:se(Vn.starsDescription),children:[y.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),f&&y.jsx(Hd,{isFirstMessageBySender:!1,isLastMessageBySender:!v||!!p.feedback.length,children:y.jsx("div",{children:f})}),!!p.feedback.length&&y.jsx(N8,{children:p.feedback}),v&&y.jsx(Hd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:se(Vn.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&y.jsx("input",{ref:S,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:se(Vn.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?y.jsx(Qu,{type:"button",disabled:!r,onClick:w,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(Qu,{type:"submit",disabled:!r,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&y.jsx(uy,{onClick:w,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},k8=({numberOfMessagesFromGuest:t})=>{const l=gl(),i=kt(f=>f.chat.conversationRating),r=f=>{l(wu("CHAT",f))},o=!i.rating?.value&&t>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(R8,{visible:o,onRate:r}),y.jsx(M8,{})]}):null},L8=Z.memo(k8),z8="_inputWrapper_11k0e_1",j8="_withOpenCommands_11k0e_13",B8="_actions_11k0e_18",U8="_messageInputWrapper_11k0e_53",H8="_messageInput_11k0e_53",I8="_buttons_11k0e_78",V8="_button_11k0e_78",ui={inputWrapper:z8,withOpenCommands:j8,actions:B8,messageInputWrapper:U8,messageInput:H8,buttons:I8,button:V8},X8="_audioRecorder_g845f_1",Q8="_audioButton_g845f_6",G8="_recorderIcon_g845f_37",Z8="_spinning_g845f_60",ci={audioRecorder:X8,audioButton:Q8,recorderIcon:G8,spinning:Z8},mv=2048,Gu=16e3;class F8 extends Iv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(l){super(l),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(l){this.mediaStream=l,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(l)}initRecording(l){const i=window.AudioContext||window.webkitAudioContext,r=new i;this.sampleRate=r.sampleRate,this.volume=r.createGain(),this.audioInput=r.createMediaStreamSource(l),this.audioInput.connect(this.volume),this.recorder=r.createScriptProcessor(mv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(r.destination)}processRecordingInput(l){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=l.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=mv}}handleClickSubmitAudio(){const l=K8(this.leftchannel,this.recordingLength),i=J8(l,this.sampleRate||0),r=Y8(i);this.props.onAudioRecorded(r),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(l=>{l.stop()})}render(){return y.jsxs("div",{className:ci.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:se(ci.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:ci.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:ci.audioRecorder,children:[y.jsx("button",{className:se(ci.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:ci.recorderIcon}),y.jsx("button",{className:se(ci.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const Y8=t=>{const l=new ArrayBuffer(44+t.length*2),i=new DataView(l);$o(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),$o(i,8,"WAVE"),$o(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,Gu,!0),i.setUint32(28,Gu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),$o(i,36,"data"),i.setUint32(40,t.length*2,!0);const r=t.length;let o=44;const f=1;for(let d=0;d<r;d++)i.setInt16(o,t[d]*(32767*f),!0),o+=2;return new Blob([i],{type:"audio/wav"})},$o=(t,l,i)=>{for(let r=0;r<i.length;r++)t.setUint8(l+r,i.charCodeAt(r))},K8=(t,l)=>{const i=new Float32Array(l);let r=0;const o=t.length;for(let f=0;f<o;f++){const d=t[f];i.set(d,r),r+=d.length}return i},J8=(t,l)=>{if(Gu===l)return t;const i=l/Gu,r=Math.round(t.length/i),o=new Float32Array(r);let f=0,d=0;for(;f<o.length;){const g=Math.round((f+1)*i);let h=0,p=0;for(let b=d;b<g&&b<t.length;b++)h+=t[b],p++;o[f]=h/p,f++,d=g}return o},P8=({onClick:t})=>{const l=Nt();return y.jsxs("button",{onClick:t,type:"button","aria-label":l("message-input.actions.command.label"),children:[y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:[y.jsx("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16",ry:"16",fill:"none",stroke:"currentColor","stroke-width":"16"}),y.jsx("line",{x1:"80",y1:"176",x2:"176",y2:"80",stroke:"currentColor","stroke-width":"16","stroke-linecap":"round"})]}),y.jsx("span",{children:l("message-input.actions.command.label")})]})},W8=({disabled:t,textInput:l,commandsVisible:i,hasCommands:r,onTextInput:o,onTextInputSubmit:f,onAudioRecorded:d})=>{const g=Nt(),h=Z.useRef(null),{enableSpeechSupport:p}=kt(w=>w.settings);Z.useEffect(()=>{h.current?.focus()},[l]);const b=()=>{const w=h.current;w&&l.trim().length>=1&&f(l.trim())&&(w.value="",w.style.height="",w.focus())},S=w=>{w.preventDefault(),b()},v=w=>{const A=w.target.value;o(A),w.target.style.height="";const{scrollHeight:O}=w.target;w.target.style.height=`${O>150?150:O}px`},_=w=>{w.code==="Enter"&&!w.shiftKey?(w.repeat||b(),w.preventDefault()):i&&(w.code==="ArrowUp"||w.code==="ArrowDown")&&w.preventDefault()},T=()=>{l.startsWith("/")?o(""):o("/")};return y.jsxs("form",{className:se(ui.inputWrapper,i&&ui.withOpenCommands,"chat__textInput"),onSubmit:S,children:[y.jsxs("div",{className:ui.messageInputWrapper,children:[y.jsx("textarea",{id:"user_input",ref:h,className:ui.messageInput,tabIndex:0,placeholder:g("message-input-placeholder"),value:l,onChange:v,onKeyDown:_,"aria-label":g("message-input-label"),"aria-controls":r?"command-list":void 0,"aria-haspopup":r?"listbox":void 0}),r&&y.jsx("div",{className:ui.actions,children:y.jsx(P8,{onClick:T})})]}),y.jsx("div",{className:se(ui.buttons,"chat__buttons"),children:l.length||!p||navigator.mediaDevices===void 0?y.jsx("button",{className:se(ui.button,"chat__button"),type:"submit","aria-label":g("message-input.actions.submit.label"),"data-title":g("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):p&&navigator.mediaDevices!==void 0&&y.jsx(F8,{translate:g,onAudioRecorded:d})})]})},$8="_quickReplies_83npe_1",q8="_quickReply_83npe_9",vv={quickReplies:$8,quickReply:q8},eA=({quickReplies:t,onQuickReplyClick:l})=>t.length?y.jsx("div",{className:se(vv.quickReplies,"chat__quickReplies"),children:t.map(i=>y.jsx(rc,{tabIndex:0,className:se(vv.quickReply,"chat__button","chat__quickReply"),onClick:()=>l(i),children:i.label},i.label))}):null,bv=5e3,tA=1e3,nA=({isBotTyping:t,quickReplies:l,numberOfMessagesFromGuest:i,commands:r,onTextInput:o,onQuickReplyClick:f,onAudioRecorded:d})=>{const[g,h]=Z.useState(""),[p,b]=Z.useState(!1),[S,v]=Z.useState(!1),_=Z.useRef(0),T=Z.useRef(0);Z.useEffect(()=>{if(p&&!t){const O=_.current?Date.now()-_.current:0;O>bv?b(!1):setTimeout(()=>{b(!1)},bv-O)}},[p,t]),Z.useEffect(()=>{p&&(_.current=Date.now())},[p]);const w=O=>{const C=Date.now()-T.current<tA;return S?!1:t||C?(b(!0),!1):(o(O),h(""),T.current=Date.now(),!0)},A=O=>{h(O+" ")};return y.jsxs("div",{className:se(a8.inputContainer),children:[y.jsx(eA,{quickReplies:l,onQuickReplyClick:f}),y.jsx(r8,{visible:p}),!p&&y.jsx(L8,{numberOfMessagesFromGuest:i}),!!r?.length&&y.jsx(d8,{text:g,commands:r,onSelectCommand:A,onVisibilityChange:v}),y.jsx(W8,{textInput:g,disabled:p,commandsVisible:S,hasCommands:!!r?.length,onTextInput:h,onTextInputSubmit:w,onAudioRecorded:d})]})},aA=({clientName:t,messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:g,onLinkClick:h,onAudioRecorded:p,onTranscriptExport:b,onTranscriptItemReaction:S})=>{const v=gl(),_=kt(k=>k.connection.connectionState),{enableTranscriptExportEmail:T,commands:w}=kt(k=>k.settings),{showTranscriptMailOverlay:A,conversationRating:O}=kt(k=>k.chat),C=l.filter(k=>k.sender.type===Tu.GUEST).length;Z.useEffect(()=>{_===hi.CONNECTED&&v(Mb(t))},[t,_,v]);const N=()=>{v(Nb())};return y.jsxs("div",{className:Rd.container,children:[y.jsxs("div",{className:se([Rd.chatcontent,(A||O?.opener)&&Rd.accessabilityHidden]),children:[y.jsx(j6,{messages:l,isBotTyping:r,commands:w,onButtonClick:g,onLinkClick:h,onTranscriptItemReaction:S}),y.jsx(nA,{isBotTyping:r,quickReplies:r?[]:i,numberOfMessagesFromGuest:C,commands:w,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:p}),y.jsx(Y6,{})]}),T&&y.jsx(t8,{visible:!!A,onEmailExport:b,onClose:N}),y.jsx(Q6,{contentUrl:o})]})},lA=t=>{const{messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o}=t.chat;return{messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o}},iA=t=>({onRestartChat:()=>t(Os()),onMessageFromUser:l=>t(nb(l)),onAudioRecorded:l=>t(EE(l)),onActionFromUser:l=>t(l),onQuickReplyClick:l=>t(tb(l)),onNluEvent:l=>t(sb(l)),onButtonClick:l=>t(DE(l)),onLinkClick:l=>t(ob(l)),onTranscriptExport:l=>t(TE(l)),onTranscriptItemReaction:(l,i)=>{t(yE(l,i?.type||null,i?.category,i?.comment))}}),rA=WS(lA,iA)(aA),fy=()=>Z.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),sA=t=>l=>{const i=l.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(l.stopPropagation(),t())},oA=({onClick:t})=>{const l=Nt();return fy()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":l("header.close-chat"),"data-title":l("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:sA(t),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},uA="_header_3gvbz_1",cA="_logoContainer_3gvbz_14",fA="_logo_3gvbz_14",dA="_actions_3gvbz_28",hA="_active_3gvbz_43",pA="_menuContainer_3gvbz_56",gA="_menu_3gvbz_56",mA="_divider_3gvbz_86",Ql={header:uA,logoContainer:cA,logo:fA,actions:dA,active:hA,menuContainer:pA,menu:gA,divider:mA},vA=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})});case"mail":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return y.jsx("div",{})}},bA=Z.forwardRef(({selected:t,item:l,onClick:i},r)=>{const o=Nt(),f=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":t,role:"option",className:l.withDivider?Ql.divider:void 0,children:y.jsxs("a",{ref:r,type:"button",role:"button",tabIndex:-1,onClick:f,children:[y.jsx(vA,{icon:l.icon}),y.jsx("span",{children:o(`header.menu.${l.id}`)})]})})}),yA=(t,l)=>{const i=fy(),{menuItems:r,enableStandaloneView:o,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=kt(p=>p.settings),g=kt(p=>p.chat.conversationRating.enabled);return Z.useMemo(()=>{const p=[],b=r.filter(({visibility:S})=>t?S==="always"||S==="chat-only":S==="always"||S==="start-screen-only");if(t&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&o&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),l&&f&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),l&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),l&&g&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&b.length)){const S=p.pop();S&&r.length&&p.push({...S,withDivider:!0})}return p.push(...b),p},[t,l,f,d,o,g,i,r])},_A=({chatStarted:t,hasGuestMessages:l})=>{const i=gl(),r=Nt(),{enabled:o,opener:f}=kt(C=>C.chat.conversationRating),[d,g]=Z.useState(!1),[h,p]=Z.useState(-1),b=Z.useRef(null),S=Z.useRef(null),v=Z.useRef([]),_=yA(t,l);Z.useEffect(()=>{v.current[h]?.focus()},[h]);const T=Z.useCallback(()=>{i(l&&o&&!f?wu("RESTART_CHAT"):Os()),g(!1),p(0)},[l,o,f,i]),w=Z.useCallback(C=>{switch(C.type){case"restart-chat":T();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(AE());break;case"send-transcript":i(Nb());break;case"rate-conversation":i(wu("MENU"));break;case"link":i(ob(C.url));break;case"action":i(JSON.parse(JSON.stringify(C.action)));break}g(!1)},[i,T,g]);Z.useEffect(()=>{const C=N=>{if(d)switch(N.key){case"Enter":N.preventDefault(),w(_[h]);break;case"ArrowUp":p(k=>k>0?k-1:_.length-1);break;case"ArrowDown":p(k=>k<_.length-1?k+1:0);break;case"Escape":g(!1);break;case"Tab":h>-1&&g(!1);break}};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[d,h,_,p,g,w]),Z.useEffect(()=>{d||p(-1)},[d,h]),Ep(S,()=>g(!1));const A=()=>{g(C=>!C)},O=()=>{setTimeout(()=>{const C=document.activeElement;S.current&&!S.current.contains(C)&&g(!1)},0)};return _.length?y.jsxs("div",{className:se(Ql.menuContainer),ref:S,children:[y.jsx("button",{ref:b,className:se(d&&Ql.active,d?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":r("header.menu.title"),"data-title":r("header.menu.title"),onClick:A,onBlur:O,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),d&&y.jsx("nav",{className:Ql.menu,"aria-label":r("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:_.map((C,N)=>y.jsx(bA,{ref:k=>{v.current[N]=k},selected:h===N,item:C,onClick:()=>w(C)},C.id))})})]}):null},yv=({className:t,chatStarted:l,...i})=>{const r=gl(),o=kt(g=>g.chat.conversationRating),f=kt(g=>g.chat.messages.some(h=>h.sender.type===dl.GUEST)),d=()=>{o.enabled&&!o.opener&&f?r(wu("CLOSE_CHAT")):r(Rb())};return y.jsxs("div",{className:se(Ql.header,t),...i,children:[y.jsx("div",{className:Ql.logoContainer,children:y.jsx("div",{className:Ql.logo})}),y.jsxs("div",{className:Ql.actions,children:[y.jsx(_A,{chatStarted:l,hasGuestMessages:f}),y.jsx(oA,{onClick:d})]})]})},SA="_chatwindow_rkbir_1",EA="_chatwindowWithAside_rkbir_21",_v={chatwindow:SA,chatwindowWithAside:EA},dy=()=>{const[t,l]=Z.useState(!1);return Z.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),r=()=>l(i.matches);return r(),i.addEventListener("change",r),()=>i.removeEventListener("change",r)},[]),t},wA="_sourceInfos_vei0l_1",TA="_waitForLoading_vei0l_24",AA="_loadingContent_vei0l_28",CA="_sourceHeader_vei0l_37",xA="_sourceHeaderIcon_vei0l_57",OA="_sourceContent_vei0l_61",DA="_openSourceButton_vei0l_69",RA="_sourceButtonLabel_vei0l_79",NA="_closeSourceInfosButton_vei0l_101",MA="_loadingSourceInfos_vei0l_125",kA="_loading_vei0l_28",LA="_loadingError_vei0l_139",zA="_highlightLoadingInfo_vei0l_155",jA="_highlightLoadingInfoInnerContainer_vei0l_169",BA="_highlightLoadingInfoContent_vei0l_178",UA="_highlightLoadingInfoCloseIcon_vei0l_198",HA="_highlightLoader_vei0l_203",IA="_highlightLoaderLoading_vei0l_210",_n={sourceInfos:wA,waitForLoading:TA,loadingContent:AA,sourceHeader:CA,sourceHeaderIcon:xA,sourceContent:OA,openSourceButton:DA,sourceButtonLabel:RA,closeSourceInfosButton:NA,loadingSourceInfos:MA,loading:kA,loadingError:LA,highlightLoadingInfo:zA,highlightLoadingInfoInnerContainer:jA,highlightLoadingInfoContent:BA,highlightLoadingInfoCloseIcon:UA,highlightLoader:HA,highlightLoaderLoading:IA},VA=({onClick:t})=>{const l=Nt();return y.jsx("button",{className:se(_n.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":l("source-infos.close"),"data-title":l("source-infos.close"),tabIndex:0,onClick:t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},XA=Z.forwardRef(({sourceInfos:t,onClose:l,...i},r)=>y.jsxs("div",{className:_n.sourceHeader,...i,ref:r,children:[y.jsx("div",{children:t?y.jsx("p",{id:"source-info-title",children:t.title}):y.jsx("p",{children:" "})}),y.jsx(VA,{onClick:l})]})),QA=({loading:t})=>y.jsx("div",{className:_n.highlightLoader,children:t&&y.jsx("div",{className:_n.highlightLoaderLoading})});const{entries:hy,setPrototypeOf:Sv,isFrozen:GA,getPrototypeOf:ZA,getOwnPropertyDescriptor:FA}=Object;let{freeze:Gn,seal:Ea,create:Sh}=Object,{apply:Eh,construct:wh}=typeof Reflect<"u"&&Reflect;Gn||(Gn=function(l){return l});Ea||(Ea=function(l){return l});Eh||(Eh=function(l,i){for(var r=arguments.length,o=new Array(r>2?r-2:0),f=2;f<r;f++)o[f-2]=arguments[f];return l.apply(i,o)});wh||(wh=function(l){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return new l(...r)});const qo=Zn(Array.prototype.forEach),YA=Zn(Array.prototype.lastIndexOf),Ev=Zn(Array.prototype.pop),rs=Zn(Array.prototype.push),KA=Zn(Array.prototype.splice),uu=Zn(String.prototype.toLowerCase),Id=Zn(String.prototype.toString),Vd=Zn(String.prototype.match),ss=Zn(String.prototype.replace),JA=Zn(String.prototype.indexOf),PA=Zn(String.prototype.trim),Oa=Zn(Object.prototype.hasOwnProperty),In=Zn(RegExp.prototype.test),os=WA(TypeError);function Zn(t){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return Eh(t,l,r)}}function WA(t){return function(){for(var l=arguments.length,i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];return wh(t,i)}}function Ve(t,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:uu;Sv&&Sv(t,null);let r=l.length;for(;r--;){let o=l[r];if(typeof o=="string"){const f=i(o);f!==o&&(GA(l)||(l[r]=f),o=f)}t[o]=!0}return t}function $A(t){for(let l=0;l<t.length;l++)Oa(t,l)||(t[l]=null);return t}function rl(t){const l=Sh(null);for(const[i,r]of hy(t))Oa(t,i)&&(Array.isArray(r)?l[i]=$A(r):r&&typeof r=="object"&&r.constructor===Object?l[i]=rl(r):l[i]=r);return l}function us(t,l){for(;t!==null;){const r=FA(t,l);if(r){if(r.get)return Zn(r.get);if(typeof r.value=="function")return Zn(r.value)}t=ZA(t)}function i(){return null}return i}const wv=Gn(["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"]),Xd=Gn(["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"]),Qd=Gn(["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"]),qA=Gn(["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"]),Gd=Gn(["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"]),eC=Gn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Tv=Gn(["#text"]),Av=Gn(["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"]),Zd=Gn(["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"]),Cv=Gn(["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"]),eu=Gn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tC=Ea(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nC=Ea(/<%[\w\W]*|[\w\W]*%>/gm),aC=Ea(/\$\{[\w\W]*/gm),lC=Ea(/^data-[\-\w.\u00B7-\uFFFF]+$/),iC=Ea(/^aria-[\-\w]+$/),py=Ea(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rC=Ea(/^(?:\w+script|data):/i),sC=Ea(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gy=Ea(/^html$/i),oC=Ea(/^[a-z][.\w]*(-[.\w]+)+$/i);var xv=Object.freeze({__proto__:null,ARIA_ATTR:iC,ATTR_WHITESPACE:sC,CUSTOM_ELEMENT:oC,DATA_ATTR:lC,DOCTYPE_NAME:gy,ERB_EXPR:nC,IS_ALLOWED_URI:py,IS_SCRIPT_OR_DATA:rC,MUSTACHE_EXPR:tC,TMPLIT_EXPR:aC});const cs={element:1,text:3,progressingInstruction:7,comment:8,document:9},uC=function(){return typeof window>"u"?null:window},cC=function(l,i){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(r=i.getAttribute(o));const f="dompurify"+(r?"#"+r:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Ov=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function my(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uC();const l=ue=>my(ue);if(l.version="3.3.0",l.removed=[],!t||!t.document||t.document.nodeType!==cs.document||!t.Element)return l.isSupported=!1,l;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:g,Element:h,NodeFilter:p,NamedNodeMap:b=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:S,DOMParser:v,trustedTypes:_}=t,T=h.prototype,w=us(T,"cloneNode"),A=us(T,"remove"),O=us(T,"nextSibling"),C=us(T,"childNodes"),N=us(T,"parentNode");if(typeof d=="function"){const ue=i.createElement("template");ue.content&&ue.content.ownerDocument&&(i=ue.content.ownerDocument)}let k,B="";const{implementation:I,createNodeIterator:L,createDocumentFragment:J,getElementsByTagName:G}=i,{importNode:q}=r;let Y=Ov();l.isSupported=typeof hy=="function"&&typeof N=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:fe,TMPLIT_EXPR:he,DATA_ATTR:de,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:le,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:be}=xv;let{IS_ALLOWED_URI:ge}=xv,x=null;const K=Ve({},[...wv,...Xd,...Qd,...Gd,...Tv]);let ee=null;const oe=Ve({},[...Av,...Zd,...Cv,...eu]);let ne=Object.seal(Sh(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}})),ce=null,me=null;const Se=Object.seal(Sh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Be=!0,St=!1,Ae=!0,gt=!1,Tt=!0,xe=!1,ct=!1,tn=!1,Sn=!1,Xe=!1,Zt=!1,Ct=!0,nn=!1;const Et="user-content-";let st=!0,On=!1,It={},Ft=null;const Vt=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 cn=null;const fn=Ve({},["audio","video","img","source","image","track"]);let ua=null;const nt=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",mt="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Je=ft,qe=!1,an=null;const hn=Ve({},[dn,mt,ft],Id);let Lt=Ve({},["mi","mo","mn","ms","mtext"]),at=Ve({},["annotation-xml"]);const Yt=Ve({},["title","style","font","a","script"]);let At=null;const Dn=["application/xhtml+xml","text/html"],Rn="text/html";let vt=null,ln=null;const ca=i.createElement("form"),jn=function(D){return D instanceof RegExp||D instanceof Function},fa=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ln&&ln===D)){if((!D||typeof D!="object")&&(D={}),D=rl(D),At=Dn.indexOf(D.PARSER_MEDIA_TYPE)===-1?Rn:D.PARSER_MEDIA_TYPE,vt=At==="application/xhtml+xml"?Id:uu,x=Oa(D,"ALLOWED_TAGS")?Ve({},D.ALLOWED_TAGS,vt):K,ee=Oa(D,"ALLOWED_ATTR")?Ve({},D.ALLOWED_ATTR,vt):oe,an=Oa(D,"ALLOWED_NAMESPACES")?Ve({},D.ALLOWED_NAMESPACES,Id):hn,ua=Oa(D,"ADD_URI_SAFE_ATTR")?Ve(rl(nt),D.ADD_URI_SAFE_ATTR,vt):nt,cn=Oa(D,"ADD_DATA_URI_TAGS")?Ve(rl(fn),D.ADD_DATA_URI_TAGS,vt):fn,Ft=Oa(D,"FORBID_CONTENTS")?Ve({},D.FORBID_CONTENTS,vt):Vt,ce=Oa(D,"FORBID_TAGS")?Ve({},D.FORBID_TAGS,vt):rl({}),me=Oa(D,"FORBID_ATTR")?Ve({},D.FORBID_ATTR,vt):rl({}),It=Oa(D,"USE_PROFILES")?D.USE_PROFILES:!1,we=D.ALLOW_ARIA_ATTR!==!1,Be=D.ALLOW_DATA_ATTR!==!1,St=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,gt=D.SAFE_FOR_TEMPLATES||!1,Tt=D.SAFE_FOR_XML!==!1,xe=D.WHOLE_DOCUMENT||!1,Sn=D.RETURN_DOM||!1,Xe=D.RETURN_DOM_FRAGMENT||!1,Zt=D.RETURN_TRUSTED_TYPE||!1,tn=D.FORCE_BODY||!1,Ct=D.SANITIZE_DOM!==!1,nn=D.SANITIZE_NAMED_PROPS||!1,st=D.KEEP_CONTENT!==!1,On=D.IN_PLACE||!1,ge=D.ALLOWED_URI_REGEXP||py,Je=D.NAMESPACE||ft,Lt=D.MATHML_TEXT_INTEGRATION_POINTS||Lt,at=D.HTML_INTEGRATION_POINTS||at,ne=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&jn(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&jn(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),gt&&(Be=!1),Xe&&(Sn=!0),It&&(x=Ve({},Tv),ee=[],It.html===!0&&(Ve(x,wv),Ve(ee,Av)),It.svg===!0&&(Ve(x,Xd),Ve(ee,Zd),Ve(ee,eu)),It.svgFilters===!0&&(Ve(x,Qd),Ve(ee,Zd),Ve(ee,eu)),It.mathMl===!0&&(Ve(x,Gd),Ve(ee,Cv),Ve(ee,eu))),D.ADD_TAGS&&(typeof D.ADD_TAGS=="function"?Se.tagCheck=D.ADD_TAGS:(x===K&&(x=rl(x)),Ve(x,D.ADD_TAGS,vt))),D.ADD_ATTR&&(typeof D.ADD_ATTR=="function"?Se.attributeCheck=D.ADD_ATTR:(ee===oe&&(ee=rl(ee)),Ve(ee,D.ADD_ATTR,vt))),D.ADD_URI_SAFE_ATTR&&Ve(ua,D.ADD_URI_SAFE_ATTR,vt),D.FORBID_CONTENTS&&(Ft===Vt&&(Ft=rl(Ft)),Ve(Ft,D.FORBID_CONTENTS,vt)),st&&(x["#text"]=!0),xe&&Ve(x,["html","head","body"]),x.table&&(Ve(x,["tbody"]),delete ce.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw os('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw os('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=D.TRUSTED_TYPES_POLICY,B=k.createHTML("")}else k===void 0&&(k=cC(_,o)),k!==null&&typeof B=="string"&&(B=k.createHTML(""));Gn&&Gn(D),ln=D}},rn=Ve({},[...Xd,...Qd,...qA]),sn=Ve({},[...Gd,...eC]),Kt=function(D){let W=N(D);(!W||!W.tagName)&&(W={namespaceURI:Je,tagName:"template"});const re=uu(D.tagName),Ee=uu(W.tagName);return an[D.namespaceURI]?D.namespaceURI===mt?W.namespaceURI===ft?re==="svg":W.namespaceURI===dn?re==="svg"&&(Ee==="annotation-xml"||Lt[Ee]):!!rn[re]:D.namespaceURI===dn?W.namespaceURI===ft?re==="math":W.namespaceURI===mt?re==="math"&&at[Ee]:!!sn[re]:D.namespaceURI===ft?W.namespaceURI===mt&&!at[Ee]||W.namespaceURI===dn&&!Lt[Ee]?!1:!sn[re]&&(Yt[re]||!rn[re]):!!(At==="application/xhtml+xml"&&an[D.namespaceURI]):!1},zt=function(D){rs(l.removed,{element:D});try{N(D).removeChild(D)}catch{A(D)}},Pe=function(D,W){try{rs(l.removed,{attribute:W.getAttributeNode(D),from:W})}catch{rs(l.removed,{attribute:null,from:W})}if(W.removeAttribute(D),D==="is")if(Sn||Xe)try{zt(W)}catch{}else try{W.setAttribute(D,"")}catch{}},Bn=function(D){let W=null,re=null;if(tn)D="<remove></remove>"+D;else{const pe=Vd(D,/^[\r\n\t ]+/);re=pe&&pe[0]}At==="application/xhtml+xml"&&Je===ft&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const Ee=k?k.createHTML(D):D;if(Je===ft)try{W=new v().parseFromString(Ee,At)}catch{}if(!W||!W.documentElement){W=I.createDocument(Je,"template",null);try{W.documentElement.innerHTML=qe?B:Ee}catch{}}const Qe=W.body||W.documentElement;return D&&re&&Qe.insertBefore(i.createTextNode(re),Qe.childNodes[0]||null),Je===ft?G.call(W,xe?"html":"body")[0]:xe?W.documentElement:Qe},Nn=function(D){return L.call(D.ownerDocument||D,D,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},jt=function(D){return D instanceof S&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof b)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},De=function(D){return typeof g=="function"&&D instanceof g};function et(ue,D,W){qo(ue,re=>{re.call(l,D,W,ln)})}const pn=function(D){let W=null;if(et(Y.beforeSanitizeElements,D,null),jt(D))return zt(D),!0;const re=vt(D.nodeName);if(et(Y.uponSanitizeElement,D,{tagName:re,allowedTags:x}),Tt&&D.hasChildNodes()&&!De(D.firstElementChild)&&In(/<[/\w!]/g,D.innerHTML)&&In(/<[/\w!]/g,D.textContent)||D.nodeType===cs.progressingInstruction||Tt&&D.nodeType===cs.comment&&In(/<[/\w]/g,D.data))return zt(D),!0;if(!(Se.tagCheck instanceof Function&&Se.tagCheck(re))&&(!x[re]||ce[re])){if(!ce[re]&&on(re)&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,re)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(re)))return!1;if(st&&!Ft[re]){const Ee=N(D)||D.parentNode,Qe=C(D)||D.childNodes;if(Qe&&Ee){const pe=Qe.length;for(let dt=pe-1;dt>=0;--dt){const Re=w(Qe[dt],!0);Re.__removalCount=(D.__removalCount||0)+1,Ee.insertBefore(Re,O(D))}}}return zt(D),!0}return D instanceof h&&!Kt(D)||(re==="noscript"||re==="noembed"||re==="noframes")&&In(/<\/no(script|embed|frames)/i,D.innerHTML)?(zt(D),!0):(gt&&D.nodeType===cs.text&&(W=D.textContent,qo([P,fe,he],Ee=>{W=ss(W,Ee," ")}),D.textContent!==W&&(rs(l.removed,{element:D.cloneNode()}),D.textContent=W)),et(Y.afterSanitizeElements,D,null),!1)},Fn=function(D,W,re){if(Ct&&(W==="id"||W==="name")&&(re in i||re in ca))return!1;if(!(Be&&!me[W]&&In(de,W))){if(!(we&&In(j,W))){if(!(Se.attributeCheck instanceof Function&&Se.attributeCheck(W,D))){if(!ee[W]||me[W]){if(!(on(D)&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,D)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(D))&&(ne.attributeNameCheck instanceof RegExp&&In(ne.attributeNameCheck,W)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(W,D))||W==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,re)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(re))))return!1}else if(!ua[W]){if(!In(ge,ss(re,Q,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&D!=="script"&&JA(re,"data:")===0&&cn[D])){if(!(St&&!In(le,ss(re,Q,"")))){if(re)return!1}}}}}}}return!0},on=function(D){return D!=="annotation-xml"&&Vd(D,be)},wa=function(D){et(Y.beforeSanitizeAttributes,D,null);const{attributes:W}=D;if(!W||jt(D))return;const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Ee=W.length;for(;Ee--;){const Qe=W[Ee],{name:pe,namespaceURI:dt,value:Re}=Qe,lt=vt(pe),tt=Re;let Ne=pe==="value"?tt:PA(tt);if(re.attrName=lt,re.attrValue=Ne,re.keepAttr=!0,re.forceKeepAttr=void 0,et(Y.uponSanitizeAttribute,D,re),Ne=re.attrValue,nn&&(lt==="id"||lt==="name")&&(Pe(pe,D),Ne=Et+Ne),Tt&&In(/((--!?|])>)|<\/(style|title|textarea)/i,Ne)){Pe(pe,D);continue}if(lt==="attributename"&&Vd(Ne,"href")){Pe(pe,D);continue}if(re.forceKeepAttr)continue;if(!re.keepAttr){Pe(pe,D);continue}if(!Ae&&In(/\/>/i,Ne)){Pe(pe,D);continue}gt&&qo([P,fe,he],Xt=>{Ne=ss(Ne,Xt," ")});const Mt=vt(D.nodeName);if(!Fn(Mt,lt,Ne)){Pe(pe,D);continue}if(k&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!dt)switch(_.getAttributeType(Mt,lt)){case"TrustedHTML":{Ne=k.createHTML(Ne);break}case"TrustedScriptURL":{Ne=k.createScriptURL(Ne);break}}if(Ne!==tt)try{dt?D.setAttributeNS(dt,pe,Ne):D.setAttribute(pe,Ne),jt(D)?zt(D):Ev(l.removed)}catch{Pe(pe,D)}}et(Y.afterSanitizeAttributes,D,null)},ze=function ue(D){let W=null;const re=Nn(D);for(et(Y.beforeSanitizeShadowDOM,D,null);W=re.nextNode();)et(Y.uponSanitizeShadowNode,W,null),pn(W),wa(W),W.content instanceof f&&ue(W.content);et(Y.afterSanitizeShadowDOM,D,null)};return l.sanitize=function(ue){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,re=null,Ee=null,Qe=null;if(qe=!ue,qe&&(ue="<!-->"),typeof ue!="string"&&!De(ue))if(typeof ue.toString=="function"){if(ue=ue.toString(),typeof ue!="string")throw os("dirty is not a string, aborting")}else throw os("toString is not a function");if(!l.isSupported)return ue;if(ct||fa(D),l.removed=[],typeof ue=="string"&&(On=!1),On){if(ue.nodeName){const Re=vt(ue.nodeName);if(!x[Re]||ce[Re])throw os("root node is forbidden and cannot be sanitized in-place")}}else if(ue instanceof g)W=Bn("<!---->"),re=W.ownerDocument.importNode(ue,!0),re.nodeType===cs.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?W=re:W.appendChild(re);else{if(!Sn&&!gt&&!xe&&ue.indexOf("<")===-1)return k&&Zt?k.createHTML(ue):ue;if(W=Bn(ue),!W)return Sn?null:Zt?B:""}W&&tn&&zt(W.firstChild);const pe=Nn(On?ue:W);for(;Ee=pe.nextNode();)pn(Ee),wa(Ee),Ee.content instanceof f&&ze(Ee.content);if(On)return ue;if(Sn){if(Xe)for(Qe=J.call(W.ownerDocument);W.firstChild;)Qe.appendChild(W.firstChild);else Qe=W;return(ee.shadowroot||ee.shadowrootmode)&&(Qe=q.call(r,Qe,!0)),Qe}let dt=xe?W.outerHTML:W.innerHTML;return xe&&x["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&In(gy,W.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
118
|
+
`+dt),gt&&qo([P,fe,he],Re=>{dt=ss(dt,Re," ")}),k&&Zt?k.createHTML(dt):dt},l.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fa(ue),ct=!0},l.clearConfig=function(){ln=null,ct=!1},l.isValidAttribute=function(ue,D,W){ln||fa({});const re=vt(ue),Ee=vt(D);return Fn(re,Ee,W)},l.addHook=function(ue,D){typeof D=="function"&&rs(Y[ue],D)},l.removeHook=function(ue,D){if(D!==void 0){const W=YA(Y[ue],D);return W===-1?void 0:KA(Y[ue],W,1)[0]}return Ev(Y[ue])},l.removeHooks=function(ue){Y[ue]=[]},l.removeAllHooks=function(){Y=Ov()},l}var fC=my();const dC=({onClose:t})=>{const l=Nt();return y.jsxs("div",{className:_n.highlightLoadingInfo,onClick:t,children:[y.jsx("div",{className:_n.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})}),y.jsxs("div",{className:_n.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:_n.highlightLoadingInfoContent,children:[y.jsx("h3",{children:l("source-infos.highlight-loading.title")}),y.jsx("p",{children:l("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},hC=({title:t,href:l,children:i})=>y.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),pC=({className:t,children:l,...i})=>y.jsx("a",{className:se(As.button,As.buttonDefault,t),type:"button",role:"button",...i,children:l}),gC=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),mC=({type:t,...l})=>{switch(t){case"WEBSITE":return y.jsx(ry,{...l});case"PDF":return y.jsx(iy,{...l});case"DOCX":return y.jsx(ay,{...l});case"TEXT":return y.jsx(gC,{...l});default:return y.jsx(ly,{...l})}},vC=({url:t,knowledgeBaseType:l})=>{const i=Nt();return y.jsx(pC,{className:_n.openSourceButton,href:t,target:"_blank",children:y.jsxs("div",{className:_n.sourceButtonLabel,children:[y.jsx("div",{className:_n.sourceHeaderIcon,children:y.jsx(mC,{type:l})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},bC=({sourceInfos:{content:t,url:l,knowledgeBaseType:i,highlighted:r}})=>{const[o,f]=Z.useState(!r);Z.useEffect(()=>{r&&f(!1)},[r]);const d=fC.sanitize(t,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:se(_n.sourceContent,oy.markdown),children:[y.jsx(ul,{options:{overrides:{a:hC}},children:d}),o&&y.jsx(dC,{onClose:()=>f(!1)})]}),y.jsx(vC,{url:l,knowledgeBaseType:i})]})},yC=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,_C=()=>{const t=Nt();return y.jsxs("div",{className:_n.loadingError,children:[y.jsx("h1",{children:t("source-infos.error.title")}),y.jsx("img",{src:yC,title:t("source-infos.error.title")}),y.jsx("p",{children:t("source-infos.error.info")})]})},SC=()=>y.jsx("div",{className:_n.loadingSourceInfos,children:y.jsx("svg",{className:_n.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})});function EC({sourceInfos:t,onClose:l,threshold:i=100}){const r=Z.useRef(null),[o,f]=Z.useState(0),[d,g]=Z.useState(!1),h=Z.useRef(null),p=Z.useRef(null),b=Z.useCallback(T=>{h.current=T,g(!0)},[]),S=Z.useCallback(T=>{if(h.current!==null&&d){const w=T-h.current;w>0&&f(w)}},[d]),v=Z.useCallback(()=>{g(!1),o>i&&l(),f(0),h.current=null},[o,i,l]),_=Z.useCallback(T=>{const w=B=>b(B.touches[0].clientY),A=B=>S(B.touches[0].clientY),O=()=>v(),C=B=>{B.preventDefault(),b(B.clientY),window.addEventListener("mousemove",N),window.addEventListener("mouseup",k)},N=B=>S(B.clientY),k=()=>{v(),window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",k)};T.addEventListener("touchstart",w),T.addEventListener("touchmove",A),T.addEventListener("touchend",O),T.addEventListener("mousedown",C),p.current=()=>{T.removeEventListener("touchstart",w),T.removeEventListener("touchmove",A),T.removeEventListener("touchend",O),T.removeEventListener("mousedown",C),window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",k)}},[b,S,v]);return Z.useEffect(()=>{let T;return(()=>{r.current?(p.current?.(),_(r.current)):(T=new MutationObserver(()=>{r.current&&(p.current?.(),_(r.current),T?.disconnect())}),T.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{T?.disconnect(),p.current?.()}},[_,t]),{ref:r,dragOffsetY:o,isDragging:d}}const wC=t=>{const[l,i]=Z.useState(!0);return Z.useEffect(()=>{let r=null;return t?.type==="loading"?(i(!0),r=setTimeout(()=>{i(!1)},300)):i(!t),()=>{r&&clearTimeout(r)}},[t]),l},TC=()=>{const t=gl(),l=kt(h=>h.chat.sourceInfos),i=dy(),r=Z.useRef(null),o=wC(l);Z.useEffect(()=>{r.current&&l?.type==="loading"&&(i?r.current.showModal():(r.current.setAttribute("open","true"),r.current?.focus()))},[l,i]);const f=Z.useCallback(()=>{r.current&&(i?r.current.close():r.current.removeAttribute("open"),t(M3()))},[t,i]),{ref:d,dragOffsetY:g}=EC({onClose:f,sourceInfos:l});return l?y.jsx("dialog",{ref:r,className:se(_n.sourceInfos,o?_n.waitForLoading:l.type==="loading"?_n.loadingContent:""),style:i&&g?{transform:`translateY(${g}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:o?null:y.jsxs(y.Fragment,{children:[y.jsx(XA,{ref:d,tabIndex:-1,sourceInfos:l.type==="loaded"?l:void 0,onClose:f}),l.type==="loading"?y.jsx(SC,{}):l.type==="loading-error"?y.jsx(_C,{}):y.jsxs(y.Fragment,{children:[y.jsx(QA,{loading:!l.highlighted}),y.jsx(bC,{sourceInfos:l})]})]})}):null},AC="_container_1aof3_1",CC="_body_1aof3_7",xC="_intro_1aof3_14",OC="_footer_1aof3_39",DC="_footnote_1aof3_43",RC="_containerWithFootnote_1aof3_58",NC="_startChatButton_1aof3_73",MC="_spinner_1aof3_88",kC="_formFields_1aof3_92",LC="_formField_1aof3_92",zC="_radio_1aof3_104",jC="_checkbox_1aof3_111",BC="_input_1aof3_119",UC="_inputLabel_1aof3_153",HC="_selectWrapper_1aof3_157",IC="_select_1aof3_157",VC="_selectLabel_1aof3_203",vn={container:AC,body:CC,intro:xC,footer:OC,footnote:DC,containerWithFootnote:RC,startChatButton:NC,spinner:MC,formFields:kC,formField:LC,radio:zC,checkbox:jC,input:BC,inputLabel:UC,selectWrapper:HC,select:IC,selectLabel:VC},XC=({name:t,label:l,defaultValue:i,required:r,onChange:o})=>{const f=d=>{o(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:se(vn.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[y.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:r,onChange:f}),y.jsx("div",{children:l})]})},QC=({type:t,name:l,label:i,defaultValue:r,placeholder:o,required:f,multiple:d,min:g,max:h,pattern:p,onChange:b})=>{const S=v=>{b(v.target.value)};return y.jsxs("label",{className:se(vn.input,"chat__startScreen__input"),htmlFor:l,children:[y.jsx("div",{className:se(vn.inputLabel),children:i}),y.jsx("input",{type:t,id:l,name:l,defaultValue:r,placeholder:o,required:f,multiple:d,min:g,max:h,pattern:p,onChange:S})]})},GC=({name:t,value:l,label:i,defaultChecked:r,required:o,onChange:f})=>{const d=`${t}-${l}`,g=h=>{f(h.target.value)};return y.jsxs("label",{className:se(vn.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:t,value:l,defaultChecked:r,required:o,onChange:g}),y.jsx("span",{className:se(vn.label),children:i})]})},ZC=({name:t,label:l,defaultValue:i,required:r,multiple:o,options:f,onChange:d})=>{const g=h=>{d(h.target.value)};return y.jsxs("label",{className:se(vn.select,"chat__startScreen__select"),htmlFor:t,children:[y.jsx("div",{className:se(vn.selectLabel),children:l}),y.jsx("div",{className:se(vn.selectWrapper),children:y.jsx("select",{id:t,name:t,defaultValue:i,required:r,multiple:o,onChange:g,children:Object.entries(f||{}).map(([h,p])=>y.jsx("option",{value:h,selected:p===i,children:p}))})})]})},FC="start-screen.intro",YC="start-screen.start-chat",KC="start-screen.waiting-for-login",JC="start-screen.footnote",xa="start-screen.form",Dv=`${xa}.fields`,PC=()=>{const t=Nt(),l=gl(),i=Tp(),r=kt(T=>T.startScreen.loginRequestToken),o=kt(T=>T.settings.requiresUserAuthentication);Z.useEffect(()=>{let T;if(r){const O=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,N=window.open(`/${i}/auth/login?loginRequestToken=${r}`,"Login",`width=600,height=700,left=${O},top=${C},resizable=yes,scrollbars=yes`);T=setInterval(()=>{N?.closed&&(l(O3()),clearInterval(T))},500)}return()=>{T&&clearInterval(T)}},[i,r,l]);const[f,d]=Z.useState({}),g=()=>{const T=Object.entries(f).reduce((w,[A,O])=>({...w,[A]:O.value}),{});l(o?x3({loginRequestToken:mu(),formValues:T}):T3({formValues:T}))},h=t(FC),p=t(r?KC:YC),b=t(JC),S=Z.useMemo(()=>t(Dv)?.split(";").map(T=>T.trim())??[],[t(Dv)]);Z.useEffect(()=>{S.length&&Object.keys(f).length===0&&d(S.reduce((T,w)=>({...T,[w]:WC(w,t)}),{}))},[t,S,f]);const v=T=>{T.preventDefault(),g()},_=T=>w=>{d(A=>({...A,[T]:{...A[T],value:w}}))};return y.jsxs("form",{onSubmit:v,className:se(vn.container,b&&vn.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:se(vn.body,"chat__startScreen__body"),children:[h&&y.jsx("div",{className:se(vn.intro,"chat__startScreen__intro"),children:y.jsx(ul,{options:{overrides:{a:Rv}},children:h})}),y.jsx("div",{className:se(vn.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:T,name:w,label:A,placeholder:O,defaultValue:C,options:N,required:k,multiple:B,min:I,max:L,pattern:J})=>y.jsx("div",{className:se(vn.formField,"chat__startScreen__field"),children:(()=>{switch(T){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:A}),Object.entries(N||{}).map(([G,q])=>y.jsx(GC,{name:w,value:G,label:q,defaultChecked:G===C,required:k,onChange:_(w)},G))]});case"checkbox":return y.jsx(XC,{name:w,label:A,defaultValue:C,required:k,onChange:_(w)});case"select":return y.jsx(ZC,{name:w,label:A,defaultValue:C,required:k,multiple:B,options:N,onChange:_(w)});default:return y.jsx(QC,{type:T,name:w,label:A,placeholder:O,defaultValue:C,required:k,multiple:B,min:I,max:L,pattern:J,onChange:_(w)})}})()},w))})]}),y.jsxs("div",{className:se(vn.footer,"chat__startScreen__footer"),children:[y.jsxs(Qu,{type:"submit",className:vn.startChatButton,disabled:!!r,children:[!!r&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:vn.spinner,children:y.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"})}),y.jsx("div",{children:p})]}),b&&y.jsx("div",{className:vn.footnote,children:y.jsx(ul,{options:{overrides:{a:Rv}},children:b})})]})]})},Rv=({title:t,href:l,children:i})=>y.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),WC=(t,l)=>{const i=l(`${xa}.${t}.type`)||"text",r=l(`${xa}.${t}.required`)==="true",o=l(`${xa}.${t}.multiple`)==="true",f=l(`${xa}.${t}.placeholder`),d=l(`${xa}.${t}.label`)||"",g=l(`${xa}.${t}.defaultValue`),h=l(`${xa}.${t}.min`),p=l(`${xa}.${t}.max`),b=l(`${xa}.${t}.pattern`),S=qC(l(`${xa}.${t}.options`));return{name:t,label:d,placeholder:f,value:$C(i,g,S)||"",defaultValue:g,options:S,type:i,required:r,multiple:o,min:h,max:p,pattern:b}},$C=(t,l,i)=>l||t==="select"&&Object.keys(i)[0]||"",qC=(t="")=>t.split(";").map(l=>l.trim()).reduce((l,i)=>{const[r,o]=i.split(":").map(f=>f.trim());return{...l,[r]:o}},{}),ex=()=>{const t=kt(l=>l.intl.locale);Z.useEffect(()=>{window.document.documentElement.lang=t},[t])},qi={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"},tx=({clientName:t})=>{ex();const l=gl(),i=kt(b=>b.intl.messages),r=Nt(),o=kt(b=>b.settings.enableStartScreen),f=kt(b=>b.startScreen.startScreenStatus),d=kt(b=>b.connection.queryString),g=Z.useMemo(()=>new URLSearchParams(d||"?").get("cssClassName"),[d]);Z.useEffect(()=>{const b=new URLSearchParams(d||""),S=Object.fromEntries(b.entries()),v=_=>{switch(_.data.type){case qi.TRIGGER_ACTION:l(_.data.action);break;case qi.TRIGGER_STORY:l(sb(_.data.story));break;case qi.ON_CHAT_WINDOW_OPEN:l({type:"webclient.chatwindow.opened"});break;case qi.ON_CHAT_WINDOW_CLOSE:l({type:"webclient.chatwindow.closed"});break;case qi.CHAT_MESSAGE_FROM_GUEST:l(nb(_.data.text));break;case qi.RESTART_CHAT:l(Os());break}};return l(L3(t,S)),window.addEventListener("message",_=>v(_),!1),()=>window.removeEventListener("message",v)},[t,d,l]),Z.useEffect(()=>{const b=r("page.title");b&&document&&(document.title=b)},[i,r]);const h=o===void 0,p=o===!1||f==="HIDDEN";return y.jsx("div",{className:se(_v.chatwindow,p&&_v.chatwindowWithAside,"chat__chatwindow",g),children:h?null:p?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(yv,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(rA,{clientName:t})}),y.jsx("aside",{children:y.jsx(TC,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(yv,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(PC,{})})]})})},nx=()=>{const t=Tp(),l=dy();return y.jsx("div",{className:se([sE.app,l?"chat__small":"chat__large"]),children:y.jsx(tx,{clientName:t})})},vy={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","message-input.actions.command.label":"Aktion ausführen","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
119
119
|
|
|
120
120
|
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
121
|
-
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},
|
|
121
|
+
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},ax={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","message-input.actions.command.label":"Perform action","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
122
122
|
|
|
123
123
|
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
124
|
-
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"};function
|
|
124
|
+
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"};function by(t,l="",i="."){const r={};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const f=t[o],d=l?`${l}${i}${o}`:o;f!==null&&typeof f=="object"&&!Array.isArray(f)?Object.assign(r,by(f,d,i)):r[d]=String(f)}return r}const lx={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","message-input.actions.command.label":"Exécuter l'action","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
125
125
|
|
|
126
126
|
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
127
|
-
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},
|
|
127
|
+
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},ix={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","message-input.actions.command.label":"Esegui azione","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
128
128
|
|
|
129
129
|
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
130
|
-
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},sx=["de","en","fr","it"],_y={locale:"de",messages:by},ox=(t,l)=>{if(sx.includes(t)){const i=ux(t),r=yy(l);return{...i,...r}}return l},ux=t=>{switch(t.toString()){case"en":return lx;case"fr":return ix;case"it":return rx;default:return by}},cx=(t=fx,l)=>{switch(l.type){case ep:return Object.assign({},t,{connectionState:di.CONNECTING});case tp:return Object.assign({},t,{connectionState:di.CONNECTED});case np:return Object.assign({},t,{connectionState:di.DISCONNECTED});case ap:return Object.assign({},t,{connectionState:di.RECONNECTED});case lp:return Object.assign({},t,{sessionId:l.sessionId});case qu:return Object.assign({},t,{sessionId:l.payload.sessionId,userId:l.payload.userId});case ec:return Object.assign({},t,{sessionId:void 0});default:return t}},fx={connectionState:di.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},dx=(t=kv,l)=>{switch(l.type){case xb:return kv;case qu:return ci({type:"webclient.chat.started"}),t;case ec:return ci({type:"webclient.chat.ended"}),t;case Jv:return Object.assign({},t,{isBotTyping:!0});case Pv:return Object.assign({},t,{isBotTyping:!1});case Lh:case Wv:return Mv(t,l.message);case $v:{ci(l);const i=Object.assign({},l.message,{_id:l.meta.actionId}),r=t.messages.filter(o=>o._id===l.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:r?t.messages:t.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Uh:{const i=l.messages,r=i.length?i[i.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:i,quickReplies:r?.quickReplies||[]})}case Bh:return ci(l.message),t;case qv:return ci(l.event),t;case dE:return Object.assign({},t,{drawerContentUrl:l.payload.parameters.contentUrl});case hE:return Object.assign({},t,{drawerContentUrl:void 0});case pE:return Object.assign({},t,{locale:l.payload.locale});case ib:return ci(l),t;case rb:return ci(l),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Ih:{const i=new Fu(l.transcription,new jh),r=Object.assign({},i,{_id:mu()});return Mv(t,r)}case eb:{const i=t.messages.map(r=>r._id===l.payload.actionId?Object.assign({},r,l.payload.reaction?{reaction:{type:l.payload.reaction,category:l.payload.category,comment:l.payload.comment}}:{reaction:void 0}):r);return Object.assign({},t,{messages:i})}case Vh:{const i={enabled:!0,rating:l.payload.rating};return Object.assign({},t,{conversationRating:i})}case zh:{const i={...t.conversationRating,rating:l.payload};return Object.assign({},t,{conversationRating:i})}case Db:{const i={...t.conversationRating,opener:l.payload.opener,...l.payload.defaultRating?{rating:{value:l.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:i})}case Rb:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Qh:return{...t,sourceInfos:{type:"loading",chunkId:l.payload.chunkId}};case Xh:{const{highlighted:i}=l.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case lb:{const i=t.sourceInfos?.type,{chunkId:r,knowledgeBaseType:o,title:f,content:d,highlighted:g,url:h}=l.payload,p=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return p&&p!==r?t:i==="loading"||i==="loaded"&&g?{...t,sourceInfos:{type:"loaded",chunkId:r,knowledgeBaseType:o,title:f,content:d,highlighted:g,url:h}}:t}case Gh:return{...t,sourceInfos:void 0};case Ob:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},Mv=(t,l)=>{const i=t.messages[t.messages.length-1],r=i?.text===l.text;return i&&i.sender.type===l.sender.type&&r?t:Object.assign({},t,{messages:t.messages.concat([l]),quickReplies:[]})},ci=t=>{hx()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},hx=()=>typeof window<"u"&&window.self!==window.top,kv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},Sy=$h({name:"intl",initialState:_y,reducers:{updateIntl:(t,l)=>{t.locale=l.payload.language,t.messages=l.payload.messages}}}),{updateIntl:px}=Sy.actions,gx=Sy.reducer,mx={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},Ey=$h({name:"settings",initialState:mx,reducers:{setSettings(t,l){t.version&&t.version!==l.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=l.payload.version,t.requiresUserAuthentication=l.payload.requiresUserAuthentication,t.enableStartScreen=l.payload.enableStartScreen,t.enableStandaloneView=l.payload.enableStandaloneView,t.enableTranscriptExportEmail=l.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=l.payload.enableTranscriptExportPdf,t.enableGeneralConditions=l.payload.enableGeneralConditions,t.enableSpeechSupport=l.payload.enableSpeechSupport,t.commands=l.payload.commands,t.menuItems=l.payload.menuItems||[])}}}),{setSettings:vx}=Ey.actions,bx=Ey.reducer,yx=db({settings:bx,chat:dx,startScreen:R3,connection:cx,intl:gx}),_x="bubble-chat",wy="state-last-saved-at",Ty="state",Sx=t=>{try{if(!Tx())return;const l=Lv(t,wy);if(wx(l))return;{const i=Lv(t,Ty);if(i===null)return;const r=JSON.parse(i),o=r.connection?.queryString;if(o!==void 0&&o!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return r}}catch(l){console.error(l);return}},Ex=(t,l)=>{try{const i=JSON.stringify(l);zv(t,Ty,i);const r=new Date().toISOString();zv(t,wy,r)}catch(i){console.error(i)}},wx=t=>{if(t===null)return!1;const l=new Date(t);return l.setHours(l.getHours()+12),new Date>l},Tx=()=>typeof localStorage<"u",Lv=(t,l)=>{const i=Ay(t,l);return localStorage.getItem(i)},zv=(t,l,i)=>{const r=Ay(t,l);return localStorage.setItem(r,i)},Ay=(t,l)=>`${_x}-${t}-${l}`,Va=Object.create(null);Va.open="0";Va.close="1";Va.ping="2";Va.pong="3";Va.message="4";Va.upgrade="5";Va.noop="6";const cu=Object.create(null);Object.keys(Va).forEach(t=>{cu[Va[t]]=t});const Th={type:"error",data:"parser error"},Cy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",xy=typeof ArrayBuffer=="function",Oy=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Ap=({type:t,data:l},i,r)=>Cy&&l instanceof Blob?i?r(l):jv(l,r):xy&&(l instanceof ArrayBuffer||Oy(l))?i?r(l):jv(new Blob([l]),r):r(Va[t]+(l||"")),jv=(t,l)=>{const i=new FileReader;return i.onload=function(){const r=i.result.split(",")[1];l("b"+(r||""))},i.readAsDataURL(t)};function Bv(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Fd;function Ax(t,l){if(Cy&&t.data instanceof Blob)return t.data.arrayBuffer().then(Bv).then(l);if(xy&&(t.data instanceof ArrayBuffer||Oy(t.data)))return l(Bv(t.data));Ap(t,!1,i=>{Fd||(Fd=new TextEncoder),l(Fd.encode(i))})}const Uv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Uv.length;t++)gs[Uv.charCodeAt(t)]=t;const Cx=t=>{let l=t.length*.75,i=t.length,r,o=0,f,d,g,h;t[t.length-1]==="="&&(l--,t[t.length-2]==="="&&l--);const p=new ArrayBuffer(l),b=new Uint8Array(p);for(r=0;r<i;r+=4)f=gs[t.charCodeAt(r)],d=gs[t.charCodeAt(r+1)],g=gs[t.charCodeAt(r+2)],h=gs[t.charCodeAt(r+3)],b[o++]=f<<2|d>>4,b[o++]=(d&15)<<4|g>>2,b[o++]=(g&3)<<6|h&63;return p},xx=typeof ArrayBuffer=="function",Cp=(t,l)=>{if(typeof t!="string")return{type:"message",data:Dy(t,l)};const i=t.charAt(0);return i==="b"?{type:"message",data:Ox(t.substring(1),l)}:cu[i]?t.length>1?{type:cu[i],data:t.substring(1)}:{type:cu[i]}:Th},Ox=(t,l)=>{if(xx){const i=Cx(t);return Dy(i,l)}else return{base64:!0,data:t}},Dy=(t,l)=>{switch(l){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Ry="",Dx=(t,l)=>{const i=t.length,r=new Array(i);let o=0;t.forEach((f,d)=>{Ap(f,!1,g=>{r[d]=g,++o===i&&l(r.join(Ry))})})},Rx=(t,l)=>{const i=t.split(Ry),r=[];for(let o=0;o<i.length;o++){const f=Cp(i[o],l);if(r.push(f),f.type==="error")break}return r};function Nx(){return new TransformStream({transform(t,l){Ax(t,i=>{const r=i.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const f=new DataView(o.buffer);f.setUint8(0,126),f.setUint16(1,r)}else{o=new Uint8Array(9);const f=new DataView(o.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),l.enqueue(o),l.enqueue(i)})}})}let Yd;function tu(t){return t.reduce((l,i)=>l+i.length,0)}function nu(t,l){if(t[0].length===l)return t.shift();const i=new Uint8Array(l);let r=0;for(let o=0;o<l;o++)i[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),i}function Mx(t,l){Yd||(Yd=new TextDecoder);const i=[];let r=0,o=-1,f=!1;return new TransformStream({transform(d,g){for(i.push(d);;){if(r===0){if(tu(i)<1)break;const h=nu(i,1);f=(h[0]&128)===128,o=h[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(tu(i)<2)break;const h=nu(i,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),r=3}else if(r===2){if(tu(i)<8)break;const h=nu(i,8),p=new DataView(h.buffer,h.byteOffset,h.length),b=p.getUint32(0);if(b>Math.pow(2,21)-1){g.enqueue(Th);break}o=b*Math.pow(2,32)+p.getUint32(4),r=3}else{if(tu(i)<o)break;const h=nu(i,o);g.enqueue(Cp(f?h:Yd.decode(h),l)),r=0}if(o===0||o>t){g.enqueue(Th);break}}}})}const Ny=4;function en(t){if(t)return kx(t)}function kx(t){for(var l in en.prototype)t[l]=en.prototype[l];return t}en.prototype.on=en.prototype.addEventListener=function(t,l){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(l),this};en.prototype.once=function(t,l){function i(){this.off(t,i),l.apply(this,arguments)}return i.fn=l,this.on(t,i),this};en.prototype.off=en.prototype.removeListener=en.prototype.removeAllListeners=en.prototype.removeEventListener=function(t,l){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<i.length;o++)if(r=i[o],r===l||r.fn===l){i.splice(o,1);break}return i.length===0&&delete this._callbacks["$"+t],this};en.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var l=new Array(arguments.length-1),i=this._callbacks["$"+t],r=1;r<arguments.length;r++)l[r-1]=arguments[r];if(i){i=i.slice(0);for(var r=0,o=i.length;r<o;++r)i[r].apply(this,l)}return this};en.prototype.emitReserved=en.prototype.emit;en.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};en.prototype.hasListeners=function(t){return!!this.listeners(t).length};const sc=typeof Promise=="function"&&typeof Promise.resolve=="function"?l=>Promise.resolve().then(l):(l,i)=>i(l,0),Sa=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Lx="arraybuffer";function My(t,...l){return l.reduce((i,r)=>(t.hasOwnProperty(r)&&(i[r]=t[r]),i),{})}const zx=Sa.setTimeout,jx=Sa.clearTimeout;function oc(t,l){l.useNativeTimers?(t.setTimeoutFn=zx.bind(Sa),t.clearTimeoutFn=jx.bind(Sa)):(t.setTimeoutFn=Sa.setTimeout.bind(Sa),t.clearTimeoutFn=Sa.clearTimeout.bind(Sa))}const Bx=1.33;function Ux(t){return typeof t=="string"?Hx(t):Math.ceil((t.byteLength||t.size)*Bx)}function Hx(t){let l=0,i=0;for(let r=0,o=t.length;r<o;r++)l=t.charCodeAt(r),l<128?i+=1:l<2048?i+=2:l<55296||l>=57344?i+=3:(r++,i+=4);return i}function ky(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ix(t){let l="";for(let i in t)t.hasOwnProperty(i)&&(l.length&&(l+="&"),l+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return l}function Vx(t){let l={},i=t.split("&");for(let r=0,o=i.length;r<o;r++){let f=i[r].split("=");l[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return l}class Xx extends Error{constructor(l,i,r){super(l),this.description=i,this.context=r,this.type="TransportError"}}class xp extends en{constructor(l){super(),this.writable=!1,oc(this,l),this.opts=l,this.query=l.query,this.socket=l.socket,this.supportsBinary=!l.forceBase64}onError(l,i,r){return super.emitReserved("error",new Xx(l,i,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(l){this.readyState==="open"&&this.write(l)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(l){const i=Cp(l,this.socket.binaryType);this.onPacket(i)}onPacket(l){super.emitReserved("packet",l)}onClose(l){this.readyState="closed",super.emitReserved("close",l)}pause(l){}createUri(l,i={}){return l+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const l=this.opts.hostname;return l.indexOf(":")===-1?l:"["+l+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(l){const i=Ix(l);return i.length?"?"+i:""}}class Qx extends xp{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(l){this.readyState="pausing";const i=()=>{this.readyState="paused",l()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||i()})),this.writable||(r++,this.once("drain",function(){--r||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(l){const i=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Rx(l,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const l=()=>{this.write([{type:"close"}])};this.readyState==="open"?l():this.once("open",l)}write(l){this.writable=!1,Dx(l,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const l=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=ky()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(l,i)}}let Ly=!1;try{Ly=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Gx=Ly;function Zx(){}class Fx extends Qx{constructor(l){if(super(l),typeof location<"u"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location<"u"&&l.hostname!==location.hostname||r!==l.port}}doWrite(l,i){const r=this.request({method:"POST",data:l});r.on("success",i),r.on("error",(o,f)=>{this.onError("xhr post error",o,f)})}doPoll(){const l=this.request();l.on("data",this.onData.bind(this)),l.on("error",(i,r)=>{this.onError("xhr poll error",i,r)}),this.pollXhr=l}}class Ia extends en{constructor(l,i,r){super(),this.createRequest=l,oc(this,r),this._opts=r,this._method=r.method||"GET",this._uri=i,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var l;const i=My(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(i);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(l=this._opts.cookieJar)===null||l===void 0||l.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Ia.requestsCount++,Ia.requests[this._index]=this)}_onError(l){this.emitReserved("error",l,this._xhr),this._cleanup(!0)}_cleanup(l){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Zx,l)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ia.requests[this._index],this._xhr=null}}_onLoad(){const l=this._xhr.responseText;l!==null&&(this.emitReserved("data",l),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ia.requestsCount=0;Ia.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Hv);else if(typeof addEventListener=="function"){const t="onpagehide"in Sa?"pagehide":"unload";addEventListener(t,Hv,!1)}}function Hv(){for(let t in Ia.requests)Ia.requests.hasOwnProperty(t)&&Ia.requests[t].abort()}const Yx=(function(){const t=zy({xdomain:!1});return t&&t.responseType!==null})();class Kx extends Fx{constructor(l){super(l);const i=l&&l.forceBase64;this.supportsBinary=Yx&&!i}request(l={}){return Object.assign(l,{xd:this.xd},this.opts),new Ia(zy,this.uri(),l)}}function zy(t){const l=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!l||Gx))return new XMLHttpRequest}catch{}if(!l)try{return new Sa[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const jy=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Jx extends xp{get name(){return"websocket"}doOpen(){const l=this.uri(),i=this.opts.protocols,r=jy?{}:My(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(l,i,r)}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=l=>this.onClose({description:"websocket connection closed",context:l}),this.ws.onmessage=l=>this.onData(l.data),this.ws.onerror=l=>this.onError("websocket error",l)}write(l){this.writable=!1;for(let i=0;i<l.length;i++){const r=l[i],o=i===l.length-1;Ap(r,this.supportsBinary,f=>{try{this.doWrite(r,f)}catch{}o&&sc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const l=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=ky()),this.supportsBinary||(i.b64=1),this.createUri(l,i)}}const Kd=Sa.WebSocket||Sa.MozWebSocket;class Px extends Jx{createSocket(l,i,r){return jy?new Kd(l,i,r):i?new Kd(l,i):new Kd(l)}doWrite(l,i){this.ws.send(i)}}class Wx extends xp{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(l){return this.emitReserved("error",l)}this._transport.closed.then(()=>{this.onClose()}).catch(l=>{this.onError("webtransport error",l)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(l=>{const i=Mx(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=l.readable.pipeThrough(i).getReader(),o=Nx();o.readable.pipeTo(l.writable),this._writer=o.writable.getWriter();const f=()=>{r.read().then(({done:g,value:h})=>{g||(this.onPacket(h),f())}).catch(g=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(l){this.writable=!1;for(let i=0;i<l.length;i++){const r=l[i],o=i===l.length-1;this._writer.write(r).then(()=>{o&&sc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this._transport)===null||l===void 0||l.close()}}const $x={websocket:Px,webtransport:Wx,polling:Kx},qx=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ah(t){if(t.length>8e3)throw"URI too long";const l=t,i=t.indexOf("["),r=t.indexOf("]");i!=-1&&r!=-1&&(t=t.substring(0,i)+t.substring(i,r).replace(/:/g,";")+t.substring(r,t.length));let o=qx.exec(t||""),f={},d=14;for(;d--;)f[e4[d]]=o[d]||"";return i!=-1&&r!=-1&&(f.source=l,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=t4(f,f.path),f.queryKey=n4(f,f.query),f}function t4(t,l){const i=/\/{2,9}/g,r=l.replace(i,"/").split("/");return(l.slice(0,1)=="/"||l.length===0)&&r.splice(0,1),l.slice(-1)=="/"&&r.splice(r.length-1,1),r}function n4(t,l){const i={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,f){o&&(i[o]=f)}),i}const Ch=typeof addEventListener=="function"&&typeof removeEventListener=="function",fu=[];Ch&&addEventListener("offline",()=>{fu.forEach(t=>t())},!1);class Zl extends en{constructor(l,i){if(super(),this.binaryType=Lx,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,l&&typeof l=="object"&&(i=l,l=null),l){const r=Ah(l);i.hostname=r.host,i.secure=r.protocol==="https"||r.protocol==="wss",i.port=r.port,r.query&&(i.query=r.query)}else i.host&&(i.hostname=Ah(i.host).host);oc(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Vx(this.opts.query)),Ch&&(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"})},fu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(l){const i=Object.assign({},this.opts.query);i.EIO=Ny,i.transport=l,this.id&&(i.sid=this.id);const r=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[l]);return new this._transportsByName[l](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const l=this.opts.rememberUpgrade&&Zl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(l);i.open(),this.setTransport(i)}setTransport(l){this.transport&&this.transport.removeAllListeners(),this.transport=l,l.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Zl.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",l),this.emitReserved("heartbeat"),l.type){case"open":this.onHandshake(JSON.parse(l.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=l.data,this._onError(i);break;case"message":this.emitReserved("data",l.data),this.emitReserved("message",l.data);break}}onHandshake(l){this.emitReserved("handshake",l),this.id=l.sid,this.transport.query.sid=l.sid,this._pingInterval=l.pingInterval,this._pingTimeout=l.pingTimeout,this._maxPayload=l.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const l=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+l,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},l),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const l=this._getWritablePackets();this.transport.send(l),this._prevBufferLen=l.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(i+=Ux(o)),r>0&&i>this._maxPayload)return this.writeBuffer.slice(0,r);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const l=Date.now()>this._pingTimeoutTime;return l&&(this._pingTimeoutTime=0,sc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),l}write(l,i,r){return this._sendPacket("message",l,i,r),this}send(l,i,r){return this._sendPacket("message",l,i,r),this}_sendPacket(l,i,r,o){if(typeof i=="function"&&(o=i,i=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const f={type:l,data:i,options:r};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),o&&this.once("flush",o),this.flush()}close(){const l=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),l()},r=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():l()}):this.upgrading?r():l()),this}_onError(l){if(Zl.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",l),this._onClose("transport error",l)}_onClose(l,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ch&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=fu.indexOf(this._offlineEventListener);r!==-1&&fu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",l,i),this.writeBuffer=[],this._prevBufferLen=0}}}Zl.protocol=Ny;class a4 extends Zl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let l=0;l<this._upgrades.length;l++)this._probe(this._upgrades[l])}_probe(l){let i=this.createTransport(l),r=!1;Zl.priorWebsocketSuccess=!1;const o=()=>{r||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!r)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Zl.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=i.name,this.emitReserved("upgradeError",v)}}))};function f(){r||(r=!0,b(),i.close(),i=null)}const d=S=>{const v=new Error("probe error: "+S);v.transport=i.name,f(),this.emitReserved("upgradeError",v)};function g(){d("transport closed")}function h(){d("socket closed")}function p(S){i&&S.name!==i.name&&f()}const b=()=>{i.removeListener("open",o),i.removeListener("error",d),i.removeListener("close",g),this.off("close",h),this.off("upgrading",p)};i.once("open",o),i.once("error",d),i.once("close",g),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&l!=="webtransport"?this.setTimeoutFn(()=>{r||i.open()},200):i.open()}onHandshake(l){this._upgrades=this._filterUpgrades(l.upgrades),super.onHandshake(l)}_filterUpgrades(l){const i=[];for(let r=0;r<l.length;r++)~this.transports.indexOf(l[r])&&i.push(l[r]);return i}}let l4=class extends a4{constructor(l,i={}){const r=typeof l=="object"?l:i;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>$x[o]).filter(o=>!!o)),super(l,r)}};function i4(t,l="",i){let r=t;i=i||typeof location<"u"&&location,t==null&&(t=i.protocol+"//"+i.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=i.protocol+t:t=i.host+t),/^(https?|wss?):\/\//.test(t)||(typeof i<"u"?t=i.protocol+"//"+t:t="https://"+t),r=Ah(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const f=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+f+":"+r.port+l,r.href=r.protocol+"://"+f+(i&&i.port===r.port?"":":"+r.port),r}const r4=typeof ArrayBuffer=="function",s4=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,By=Object.prototype.toString,o4=typeof Blob=="function"||typeof Blob<"u"&&By.call(Blob)==="[object BlobConstructor]",u4=typeof File=="function"||typeof File<"u"&&By.call(File)==="[object FileConstructor]";function Op(t){return r4&&(t instanceof ArrayBuffer||s4(t))||o4&&t instanceof Blob||u4&&t instanceof File}function du(t,l){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,r=t.length;i<r;i++)if(du(t[i]))return!0;return!1}if(Op(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return du(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&du(t[i]))return!0;return!1}function c4(t){const l=[],i=t.data,r=t;return r.data=xh(i,l),r.attachments=l.length,{packet:r,buffers:l}}function xh(t,l){if(!t)return t;if(Op(t)){const i={_placeholder:!0,num:l.length};return l.push(t),i}else if(Array.isArray(t)){const i=new Array(t.length);for(let r=0;r<t.length;r++)i[r]=xh(t[r],l);return i}else if(typeof t=="object"&&!(t instanceof Date)){const i={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=xh(t[r],l));return i}return t}function f4(t,l){return t.data=Oh(t.data,l),delete t.attachments,t}function Oh(t,l){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<l.length)return l[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=Oh(t[i],l);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=Oh(t[i],l));return t}const d4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],h4=5;var Ke;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ke||(Ke={}));class p4{constructor(l){this.replacer=l}encode(l){return(l.type===Ke.EVENT||l.type===Ke.ACK)&&du(l)?this.encodeAsBinary({type:l.type===Ke.EVENT?Ke.BINARY_EVENT:Ke.BINARY_ACK,nsp:l.nsp,data:l.data,id:l.id}):[this.encodeAsString(l)]}encodeAsString(l){let i=""+l.type;return(l.type===Ke.BINARY_EVENT||l.type===Ke.BINARY_ACK)&&(i+=l.attachments+"-"),l.nsp&&l.nsp!=="/"&&(i+=l.nsp+","),l.id!=null&&(i+=l.id),l.data!=null&&(i+=JSON.stringify(l.data,this.replacer)),i}encodeAsBinary(l){const i=c4(l),r=this.encodeAsString(i.packet),o=i.buffers;return o.unshift(r),o}}function Iv(t){return Object.prototype.toString.call(t)==="[object Object]"}class Dp extends en{constructor(l){super(),this.reviver=l}add(l){let i;if(typeof l=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(l);const r=i.type===Ke.BINARY_EVENT;r||i.type===Ke.BINARY_ACK?(i.type=r?Ke.EVENT:Ke.ACK,this.reconstructor=new g4(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Op(l)||l.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(l),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+l)}decodeString(l){let i=0;const r={type:Number(l.charAt(0))};if(Ke[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ke.BINARY_EVENT||r.type===Ke.BINARY_ACK){const f=i+1;for(;l.charAt(++i)!=="-"&&i!=l.length;);const d=l.substring(f,i);if(d!=Number(d)||l.charAt(i)!=="-")throw new Error("Illegal attachments");r.attachments=Number(d)}if(l.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(l.charAt(i)===","||i===l.length););r.nsp=l.substring(f,i)}else r.nsp="/";const o=l.charAt(i+1);if(o!==""&&Number(o)==o){const f=i+1;for(;++i;){const d=l.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===l.length)break}r.id=Number(l.substring(f,i+1))}if(l.charAt(++i)){const f=this.tryParse(l.substr(i));if(Dp.isPayloadValid(r.type,f))r.data=f;else throw new Error("invalid payload")}return r}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,i){switch(l){case Ke.CONNECT:return Iv(i);case Ke.DISCONNECT:return i===void 0;case Ke.CONNECT_ERROR:return typeof i=="string"||Iv(i);case Ke.EVENT:case Ke.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&d4.indexOf(i[0])===-1);case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class g4{constructor(l){this.packet=l,this.buffers=[],this.reconPack=l}takeBinaryData(l){if(this.buffers.push(l),this.buffers.length===this.reconPack.attachments){const i=f4(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const m4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Dp,Encoder:p4,get PacketType(){return Ke},protocol:h4},Symbol.toStringTag,{value:"Module"}));function Da(t,l,i){return t.on(l,i),function(){t.off(l,i)}}const v4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Uy extends en{constructor(l,i,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=l,this.nsp=i,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[Da(l,"open",this.onopen.bind(this)),Da(l,"packet",this.onpacket.bind(this)),Da(l,"error",this.onerror.bind(this)),Da(l,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...i){var r,o,f;if(v4.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(i.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ke.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,S=i.pop();this._registerAckCallback(b,S),d.id=b}const g=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!g||(h?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(l,i){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[l]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let g=0;g<this.sendBuffer.length;g++)this.sendBuffer[g].id===l&&this.sendBuffer.splice(g,1);i.call(this,new Error("operation has timed out"))},o),d=(...g)=>{this.io.clearTimeoutFn(f),i.apply(this,g)};d.withError=!0,this.acks[l]=d}emitWithAck(l,...i){return new Promise((r,o)=>{const f=(d,g)=>d?o(d):r(g);f.withError=!0,i.push(f),this.emit(l,...i)})}_addToQueue(l){let i;typeof l[l.length-1]=="function"&&(i=l.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((o,...f)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(o)):(this._queue.shift(),i&&i(null,...f)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(l=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!l||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:Ke.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",l,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(l=>{if(!this.sendBuffer.some(r=>String(r.id)===l)){const r=this.acks[l];delete this.acks[l],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case Ke.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(l);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(l);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.CONNECT_ERROR:this.destroy();const r=new Error(l.data.message);r.data=l.data.data,this.emitReserved("connect_error",r);break}}onevent(l){const i=l.data||[];l.id!=null&&i.push(this.ack(l.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const r of i)r.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const i=this;let r=!1;return function(...o){r||(r=!0,i.packet({type:Ke.ACK,id:l,data:o}))}}onack(l){const i=this.acks[l.id];typeof i=="function"&&(delete this.acks[l.id],i.withError&&l.data.unshift(null),i.apply(this,l.data))}onconnect(l,i){this.id=l,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ke.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const i=this._anyListeners;for(let r=0;r<i.length;r++)if(l===i[r])return i.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const i=this._anyOutgoingListeners;for(let r=0;r<i.length;r++)if(l===i[r])return i.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const r of i)r.apply(this,l.data)}}}function dr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}dr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var l=Math.random(),i=Math.floor(l*this.jitter*t);t=(Math.floor(l*10)&1)==0?t-i:t+i}return Math.min(t,this.max)|0};dr.prototype.reset=function(){this.attempts=0};dr.prototype.setMin=function(t){this.ms=t};dr.prototype.setMax=function(t){this.max=t};dr.prototype.setJitter=function(t){this.jitter=t};class Dh extends en{constructor(l,i){var r;super(),this.nsps={},this.subs=[],l&&typeof l=="object"&&(i=l,l=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,oc(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((r=i.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new dr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=l;const o=i.parser||m4;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(l){return arguments.length?(this._reconnection=!!l,l||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(l){return l===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=l,this)}reconnectionDelay(l){var i;return l===void 0?this._reconnectionDelay:(this._reconnectionDelay=l,(i=this.backoff)===null||i===void 0||i.setMin(l),this)}randomizationFactor(l){var i;return l===void 0?this._randomizationFactor:(this._randomizationFactor=l,(i=this.backoff)===null||i===void 0||i.setJitter(l),this)}reconnectionDelayMax(l){var i;return l===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=l,(i=this.backoff)===null||i===void 0||i.setMax(l),this)}timeout(l){return arguments.length?(this._timeout=l,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(l){if(~this._readyState.indexOf("open"))return this;this.engine=new l4(this.uri,this.opts);const i=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Da(i,"open",function(){r.onopen(),l&&l()}),f=g=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",g),l?l(g):this.maybeReconnectOnOpen()},d=Da(i,"error",f);if(this._timeout!==!1){const g=this._timeout,h=this.setTimeoutFn(()=>{o(),f(new Error("timeout")),i.close()},g);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(d),this}connect(l){return this.open(l)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const l=this.engine;this.subs.push(Da(l,"ping",this.onping.bind(this)),Da(l,"data",this.ondata.bind(this)),Da(l,"error",this.onerror.bind(this)),Da(l,"close",this.onclose.bind(this)),Da(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(l){try{this.decoder.add(l)}catch(i){this.onclose("parse error",i)}}ondecoded(l){sc(()=>{this.emitReserved("packet",l)},this.setTimeoutFn)}onerror(l){this.emitReserved("error",l)}socket(l,i){let r=this.nsps[l];return r?this._autoConnect&&!r.active&&r.connect():(r=new Uy(this,l,i),this.nsps[l]=r),r}_destroy(l){const i=Object.keys(this.nsps);for(const r of i)if(this.nsps[r].active)return;this._close()}_packet(l){const i=this.encoder.encode(l);for(let r=0;r<i.length;r++)this.engine.write(i[r],l.options)}cleanup(){this.subs.forEach(l=>l()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(l,i){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",l,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const l=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{l.skipReconnect||(this.emitReserved("reconnect_attempt",l.backoff.attempts),!l.skipReconnect&&l.open(o=>{o?(l._reconnecting=!1,l.reconnect(),this.emitReserved("reconnect_error",o)):l.onreconnect()}))},i);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const l=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",l)}}const fs={};function hu(t,l){typeof t=="object"&&(l=t,t=void 0),l=l||{};const i=i4(t,l.path||"/socket.io"),r=i.source,o=i.id,f=i.path,d=fs[o]&&f in fs[o].nsps,g=l.forceNew||l["force new connection"]||l.multiplex===!1||d;let h;return g?h=new Dh(r,l):(fs[o]||(fs[o]=new Dh(r,l)),h=fs[o]),i.query&&!l.query&&(l.query=i.queryKey),h.socket(i.path,l)}Object.assign(hu,{Manager:Dh,Socket:Uy,io:hu,connect:hu});const b4=[$v,qv,Jv,Pv,cE,...L3,...EE,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],y4=({dispatch:t,getState:l})=>i=>{let r=null;return o=>{const f=i(o);if(o.type===qh){r?.disconnect(),t(B3());const d=`/chat?${new URLSearchParams(o.querystrings).toString()}`;r=hu(`/${o.clientName}${d}`),r.on("action",t),r.on("connect",()=>t(U3())),r.on("disconnect",()=>t(H3())),r.on("reconnect",()=>t(I3())),r.on("set-translations",(g,h)=>{t(px({language:g,messages:ox(g,h)}))}),r.on("set-settings",g=>{t(vx(g))}),r.on("enable-conversation-rating",g=>t(xE(g))),r.on("speech-transcription",g=>t(TE(g))),r.on("restore-client-state",g=>{t(j3(g.sessionId)),t(DE(g.messages))}),r.on("expand-window",({devices:g,initial:h=!1})=>{t({type:ib,devices:g,initial:h})}),r.on("restart-chat",()=>{t(Ds())}),r.on("login-success",g=>{t(C3({loginToken:g.loginToken}))})}else if(o.type==="start-screen/requestLogin")r?.emit("login-requested",o.payload);else if(o.type===qu)r?.emit("start-chat",o.payload);else if(o.type===ec)r?.emit("terminate-session",o.payload);else if(o.type===SE)r?.emit("get-started",JSON.stringify(o));else if(o.type===Hh)r?.emit("audio-message",o.buffer);else if(o.type===zh)r?.emit("conversation-rating",o.payload);else if(o.type===sb){const{connection:{sessionId:d}}=l();window.location.href=`/transcript-pdf/${d}`}else b4.indexOf(o.type)===-1&&o.meta===void 0&&r&&r.emit("action",JSON.stringify(o));return f}},Hy=Zh(),_4={...Sx(Hy),intl:_y},Rh=d3({middleware:t=>t().concat(y4),reducer:yx,preloadedState:_4});Rh.subscribe(MT(()=>{const t=Rh.getState();Ex(Hy,{connection:t.connection,startScreen:t.startScreen})},1e3));const S4=document.getElementById("root"),E4=tS.createRoot(S4);E4.render(y.jsx(eE,{store:Rh,children:y.jsx(ax,{})}));
|
|
131
|
-
//# sourceMappingURL=index-
|
|
130
|
+
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},rx=["de","en","fr","it"],yy={locale:"de",messages:vy},sx=(t,l)=>{if(rx.includes(t)){const i=ox(t),r=by(l);return{...i,...r}}return l},ox=t=>{switch(t.toString()){case"en":return ax;case"fr":return lx;case"it":return ix;default:return vy}},ux=(t=cx,l)=>{switch(l.type){case ep:return Object.assign({},t,{connectionState:hi.CONNECTING});case tp:return Object.assign({},t,{connectionState:hi.CONNECTED});case np:return Object.assign({},t,{connectionState:hi.DISCONNECTED});case ap:return Object.assign({},t,{connectionState:hi.RECONNECTED});case lp:return Object.assign({},t,{sessionId:l.sessionId});case qu:return Object.assign({},t,{sessionId:l.payload.sessionId,userId:l.payload.userId});case ec:return Object.assign({},t,{sessionId:void 0});default:return t}},cx={connectionState:hi.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},fx=(t=Mv,l)=>{switch(l.type){case Cb:return Mv;case qu:return fi({type:"webclient.chat.started"}),t;case ec:return fi({type:"webclient.chat.ended"}),t;case Kv:return Object.assign({},t,{isBotTyping:!0});case Jv:return Object.assign({},t,{isBotTyping:!1});case Lh:case Pv:return Nv(t,l.message);case Wv:{fi(l);const i=Object.assign({},l.message,{_id:l.meta.actionId}),r=t.messages.filter(o=>o._id===l.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:r?t.messages:t.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Uh:{const i=l.messages,r=i.length?i[i.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:i,quickReplies:r?.quickReplies||[]})}case Bh:return fi(l.message),t;case $v:return fi(l.event),t;case fE:return Object.assign({},t,{drawerContentUrl:l.payload.parameters.contentUrl});case dE:return Object.assign({},t,{drawerContentUrl:void 0});case hE:return Object.assign({},t,{locale:l.payload.locale});case lb:return fi(l),t;case ib:return fi(l),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Ih:{const i=new Fu(l.transcription,new jh),r=Object.assign({},i,{_id:mu()});return Nv(t,r)}case qv:{const i=t.messages.map(r=>r._id===l.payload.actionId?Object.assign({},r,l.payload.reaction?{reaction:{type:l.payload.reaction,category:l.payload.category,comment:l.payload.comment}}:{reaction:void 0}):r);return Object.assign({},t,{messages:i})}case Vh:{const i={enabled:!0,rating:l.payload.rating};return Object.assign({},t,{conversationRating:i})}case zh:{const i={...t.conversationRating,rating:l.payload};return Object.assign({},t,{conversationRating:i})}case Ob:{const i={...t.conversationRating,opener:l.payload.opener,...l.payload.defaultRating?{rating:{value:l.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:i})}case Db:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Qh:return{...t,sourceInfos:{type:"loading",chunkId:l.payload.chunkId}};case Xh:{const{highlighted:i}=l.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case ab:{const i=t.sourceInfos?.type,{chunkId:r,knowledgeBaseType:o,title:f,content:d,highlighted:g,url:h}=l.payload,p=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return p&&p!==r?t:i==="loading"||i==="loaded"&&g?{...t,sourceInfos:{type:"loaded",chunkId:r,knowledgeBaseType:o,title:f,content:d,highlighted:g,url:h}}:t}case Gh:return{...t,sourceInfos:void 0};case xb:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},Nv=(t,l)=>{const i=t.messages[t.messages.length-1],r=i?.text===l.text;return i&&i.sender.type===l.sender.type&&r?t:Object.assign({},t,{messages:t.messages.concat([l]),quickReplies:[]})},fi=t=>{dx()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},dx=()=>typeof window<"u"&&window.self!==window.top,Mv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},_y=$h({name:"intl",initialState:yy,reducers:{updateIntl:(t,l)=>{t.locale=l.payload.language,t.messages=l.payload.messages}}}),{updateIntl:hx}=_y.actions,px=_y.reducer,gx={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},Sy=$h({name:"settings",initialState:gx,reducers:{setSettings(t,l){t.version&&t.version!==l.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=l.payload.version,t.requiresUserAuthentication=l.payload.requiresUserAuthentication,t.enableStartScreen=l.payload.enableStartScreen,t.enableStandaloneView=l.payload.enableStandaloneView,t.enableTranscriptExportEmail=l.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=l.payload.enableTranscriptExportPdf,t.enableGeneralConditions=l.payload.enableGeneralConditions,t.enableSpeechSupport=l.payload.enableSpeechSupport,t.commands=l.payload.commands,t.menuItems=l.payload.menuItems||[])}}}),{setSettings:mx}=Sy.actions,vx=Sy.reducer,bx=fb({settings:vx,chat:fx,startScreen:D3,connection:ux,intl:px}),yx="bubble-chat",Ey="state-last-saved-at",wy="state",_x=t=>{try{if(!wx())return;const l=kv(t,Ey);if(Ex(l))return;{const i=kv(t,wy);if(i===null)return;const r=JSON.parse(i),o=r.connection?.queryString;if(o!==void 0&&o!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return r}}catch(l){console.error(l);return}},Sx=(t,l)=>{try{const i=JSON.stringify(l);Lv(t,wy,i);const r=new Date().toISOString();Lv(t,Ey,r)}catch(i){console.error(i)}},Ex=t=>{if(t===null)return!1;const l=new Date(t);return l.setHours(l.getHours()+12),new Date>l},wx=()=>typeof localStorage<"u",kv=(t,l)=>{const i=Ty(t,l);return localStorage.getItem(i)},Lv=(t,l,i)=>{const r=Ty(t,l);return localStorage.setItem(r,i)},Ty=(t,l)=>`${yx}-${t}-${l}`,Va=Object.create(null);Va.open="0";Va.close="1";Va.ping="2";Va.pong="3";Va.message="4";Va.upgrade="5";Va.noop="6";const cu=Object.create(null);Object.keys(Va).forEach(t=>{cu[Va[t]]=t});const Th={type:"error",data:"parser error"},Ay=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Cy=typeof ArrayBuffer=="function",xy=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Ap=({type:t,data:l},i,r)=>Ay&&l instanceof Blob?i?r(l):zv(l,r):Cy&&(l instanceof ArrayBuffer||xy(l))?i?r(l):zv(new Blob([l]),r):r(Va[t]+(l||"")),zv=(t,l)=>{const i=new FileReader;return i.onload=function(){const r=i.result.split(",")[1];l("b"+(r||""))},i.readAsDataURL(t)};function jv(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Fd;function Tx(t,l){if(Ay&&t.data instanceof Blob)return t.data.arrayBuffer().then(jv).then(l);if(Cy&&(t.data instanceof ArrayBuffer||xy(t.data)))return l(jv(t.data));Ap(t,!1,i=>{Fd||(Fd=new TextEncoder),l(Fd.encode(i))})}const Bv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ps=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Bv.length;t++)ps[Bv.charCodeAt(t)]=t;const Ax=t=>{let l=t.length*.75,i=t.length,r,o=0,f,d,g,h;t[t.length-1]==="="&&(l--,t[t.length-2]==="="&&l--);const p=new ArrayBuffer(l),b=new Uint8Array(p);for(r=0;r<i;r+=4)f=ps[t.charCodeAt(r)],d=ps[t.charCodeAt(r+1)],g=ps[t.charCodeAt(r+2)],h=ps[t.charCodeAt(r+3)],b[o++]=f<<2|d>>4,b[o++]=(d&15)<<4|g>>2,b[o++]=(g&3)<<6|h&63;return p},Cx=typeof ArrayBuffer=="function",Cp=(t,l)=>{if(typeof t!="string")return{type:"message",data:Oy(t,l)};const i=t.charAt(0);return i==="b"?{type:"message",data:xx(t.substring(1),l)}:cu[i]?t.length>1?{type:cu[i],data:t.substring(1)}:{type:cu[i]}:Th},xx=(t,l)=>{if(Cx){const i=Ax(t);return Oy(i,l)}else return{base64:!0,data:t}},Oy=(t,l)=>{switch(l){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Dy="",Ox=(t,l)=>{const i=t.length,r=new Array(i);let o=0;t.forEach((f,d)=>{Ap(f,!1,g=>{r[d]=g,++o===i&&l(r.join(Dy))})})},Dx=(t,l)=>{const i=t.split(Dy),r=[];for(let o=0;o<i.length;o++){const f=Cp(i[o],l);if(r.push(f),f.type==="error")break}return r};function Rx(){return new TransformStream({transform(t,l){Tx(t,i=>{const r=i.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const f=new DataView(o.buffer);f.setUint8(0,126),f.setUint16(1,r)}else{o=new Uint8Array(9);const f=new DataView(o.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),l.enqueue(o),l.enqueue(i)})}})}let Yd;function tu(t){return t.reduce((l,i)=>l+i.length,0)}function nu(t,l){if(t[0].length===l)return t.shift();const i=new Uint8Array(l);let r=0;for(let o=0;o<l;o++)i[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),i}function Nx(t,l){Yd||(Yd=new TextDecoder);const i=[];let r=0,o=-1,f=!1;return new TransformStream({transform(d,g){for(i.push(d);;){if(r===0){if(tu(i)<1)break;const h=nu(i,1);f=(h[0]&128)===128,o=h[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(tu(i)<2)break;const h=nu(i,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),r=3}else if(r===2){if(tu(i)<8)break;const h=nu(i,8),p=new DataView(h.buffer,h.byteOffset,h.length),b=p.getUint32(0);if(b>Math.pow(2,21)-1){g.enqueue(Th);break}o=b*Math.pow(2,32)+p.getUint32(4),r=3}else{if(tu(i)<o)break;const h=nu(i,o);g.enqueue(Cp(f?h:Yd.decode(h),l)),r=0}if(o===0||o>t){g.enqueue(Th);break}}}})}const Ry=4;function en(t){if(t)return Mx(t)}function Mx(t){for(var l in en.prototype)t[l]=en.prototype[l];return t}en.prototype.on=en.prototype.addEventListener=function(t,l){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(l),this};en.prototype.once=function(t,l){function i(){this.off(t,i),l.apply(this,arguments)}return i.fn=l,this.on(t,i),this};en.prototype.off=en.prototype.removeListener=en.prototype.removeAllListeners=en.prototype.removeEventListener=function(t,l){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<i.length;o++)if(r=i[o],r===l||r.fn===l){i.splice(o,1);break}return i.length===0&&delete this._callbacks["$"+t],this};en.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var l=new Array(arguments.length-1),i=this._callbacks["$"+t],r=1;r<arguments.length;r++)l[r-1]=arguments[r];if(i){i=i.slice(0);for(var r=0,o=i.length;r<o;++r)i[r].apply(this,l)}return this};en.prototype.emitReserved=en.prototype.emit;en.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};en.prototype.hasListeners=function(t){return!!this.listeners(t).length};const sc=typeof Promise=="function"&&typeof Promise.resolve=="function"?l=>Promise.resolve().then(l):(l,i)=>i(l,0),Sa=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),kx="arraybuffer";function Ny(t,...l){return l.reduce((i,r)=>(t.hasOwnProperty(r)&&(i[r]=t[r]),i),{})}const Lx=Sa.setTimeout,zx=Sa.clearTimeout;function oc(t,l){l.useNativeTimers?(t.setTimeoutFn=Lx.bind(Sa),t.clearTimeoutFn=zx.bind(Sa)):(t.setTimeoutFn=Sa.setTimeout.bind(Sa),t.clearTimeoutFn=Sa.clearTimeout.bind(Sa))}const jx=1.33;function Bx(t){return typeof t=="string"?Ux(t):Math.ceil((t.byteLength||t.size)*jx)}function Ux(t){let l=0,i=0;for(let r=0,o=t.length;r<o;r++)l=t.charCodeAt(r),l<128?i+=1:l<2048?i+=2:l<55296||l>=57344?i+=3:(r++,i+=4);return i}function My(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Hx(t){let l="";for(let i in t)t.hasOwnProperty(i)&&(l.length&&(l+="&"),l+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return l}function Ix(t){let l={},i=t.split("&");for(let r=0,o=i.length;r<o;r++){let f=i[r].split("=");l[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return l}class Vx extends Error{constructor(l,i,r){super(l),this.description=i,this.context=r,this.type="TransportError"}}class xp extends en{constructor(l){super(),this.writable=!1,oc(this,l),this.opts=l,this.query=l.query,this.socket=l.socket,this.supportsBinary=!l.forceBase64}onError(l,i,r){return super.emitReserved("error",new Vx(l,i,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(l){this.readyState==="open"&&this.write(l)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(l){const i=Cp(l,this.socket.binaryType);this.onPacket(i)}onPacket(l){super.emitReserved("packet",l)}onClose(l){this.readyState="closed",super.emitReserved("close",l)}pause(l){}createUri(l,i={}){return l+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const l=this.opts.hostname;return l.indexOf(":")===-1?l:"["+l+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(l){const i=Hx(l);return i.length?"?"+i:""}}class Xx extends xp{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(l){this.readyState="pausing";const i=()=>{this.readyState="paused",l()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||i()})),this.writable||(r++,this.once("drain",function(){--r||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(l){const i=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Dx(l,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const l=()=>{this.write([{type:"close"}])};this.readyState==="open"?l():this.once("open",l)}write(l){this.writable=!1,Ox(l,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const l=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=My()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(l,i)}}let ky=!1;try{ky=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Qx=ky;function Gx(){}class Zx extends Xx{constructor(l){if(super(l),typeof location<"u"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location<"u"&&l.hostname!==location.hostname||r!==l.port}}doWrite(l,i){const r=this.request({method:"POST",data:l});r.on("success",i),r.on("error",(o,f)=>{this.onError("xhr post error",o,f)})}doPoll(){const l=this.request();l.on("data",this.onData.bind(this)),l.on("error",(i,r)=>{this.onError("xhr poll error",i,r)}),this.pollXhr=l}}class Ia extends en{constructor(l,i,r){super(),this.createRequest=l,oc(this,r),this._opts=r,this._method=r.method||"GET",this._uri=i,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var l;const i=Ny(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(i);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(l=this._opts.cookieJar)===null||l===void 0||l.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Ia.requestsCount++,Ia.requests[this._index]=this)}_onError(l){this.emitReserved("error",l,this._xhr),this._cleanup(!0)}_cleanup(l){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Gx,l)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ia.requests[this._index],this._xhr=null}}_onLoad(){const l=this._xhr.responseText;l!==null&&(this.emitReserved("data",l),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ia.requestsCount=0;Ia.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Uv);else if(typeof addEventListener=="function"){const t="onpagehide"in Sa?"pagehide":"unload";addEventListener(t,Uv,!1)}}function Uv(){for(let t in Ia.requests)Ia.requests.hasOwnProperty(t)&&Ia.requests[t].abort()}const Fx=(function(){const t=Ly({xdomain:!1});return t&&t.responseType!==null})();class Yx extends Zx{constructor(l){super(l);const i=l&&l.forceBase64;this.supportsBinary=Fx&&!i}request(l={}){return Object.assign(l,{xd:this.xd},this.opts),new Ia(Ly,this.uri(),l)}}function Ly(t){const l=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!l||Qx))return new XMLHttpRequest}catch{}if(!l)try{return new Sa[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const zy=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kx extends xp{get name(){return"websocket"}doOpen(){const l=this.uri(),i=this.opts.protocols,r=zy?{}:Ny(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(l,i,r)}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=l=>this.onClose({description:"websocket connection closed",context:l}),this.ws.onmessage=l=>this.onData(l.data),this.ws.onerror=l=>this.onError("websocket error",l)}write(l){this.writable=!1;for(let i=0;i<l.length;i++){const r=l[i],o=i===l.length-1;Ap(r,this.supportsBinary,f=>{try{this.doWrite(r,f)}catch{}o&&sc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const l=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=My()),this.supportsBinary||(i.b64=1),this.createUri(l,i)}}const Kd=Sa.WebSocket||Sa.MozWebSocket;class Jx extends Kx{createSocket(l,i,r){return zy?new Kd(l,i,r):i?new Kd(l,i):new Kd(l)}doWrite(l,i){this.ws.send(i)}}class Px extends xp{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(l){return this.emitReserved("error",l)}this._transport.closed.then(()=>{this.onClose()}).catch(l=>{this.onError("webtransport error",l)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(l=>{const i=Nx(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=l.readable.pipeThrough(i).getReader(),o=Rx();o.readable.pipeTo(l.writable),this._writer=o.writable.getWriter();const f=()=>{r.read().then(({done:g,value:h})=>{g||(this.onPacket(h),f())}).catch(g=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(l){this.writable=!1;for(let i=0;i<l.length;i++){const r=l[i],o=i===l.length-1;this._writer.write(r).then(()=>{o&&sc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this._transport)===null||l===void 0||l.close()}}const Wx={websocket:Jx,webtransport:Px,polling:Yx},$x=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,qx=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ah(t){if(t.length>8e3)throw"URI too long";const l=t,i=t.indexOf("["),r=t.indexOf("]");i!=-1&&r!=-1&&(t=t.substring(0,i)+t.substring(i,r).replace(/:/g,";")+t.substring(r,t.length));let o=$x.exec(t||""),f={},d=14;for(;d--;)f[qx[d]]=o[d]||"";return i!=-1&&r!=-1&&(f.source=l,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=e4(f,f.path),f.queryKey=t4(f,f.query),f}function e4(t,l){const i=/\/{2,9}/g,r=l.replace(i,"/").split("/");return(l.slice(0,1)=="/"||l.length===0)&&r.splice(0,1),l.slice(-1)=="/"&&r.splice(r.length-1,1),r}function t4(t,l){const i={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,f){o&&(i[o]=f)}),i}const Ch=typeof addEventListener=="function"&&typeof removeEventListener=="function",fu=[];Ch&&addEventListener("offline",()=>{fu.forEach(t=>t())},!1);class Zl extends en{constructor(l,i){if(super(),this.binaryType=kx,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,l&&typeof l=="object"&&(i=l,l=null),l){const r=Ah(l);i.hostname=r.host,i.secure=r.protocol==="https"||r.protocol==="wss",i.port=r.port,r.query&&(i.query=r.query)}else i.host&&(i.hostname=Ah(i.host).host);oc(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ix(this.opts.query)),Ch&&(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"})},fu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(l){const i=Object.assign({},this.opts.query);i.EIO=Ry,i.transport=l,this.id&&(i.sid=this.id);const r=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[l]);return new this._transportsByName[l](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const l=this.opts.rememberUpgrade&&Zl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(l);i.open(),this.setTransport(i)}setTransport(l){this.transport&&this.transport.removeAllListeners(),this.transport=l,l.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Zl.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",l),this.emitReserved("heartbeat"),l.type){case"open":this.onHandshake(JSON.parse(l.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=l.data,this._onError(i);break;case"message":this.emitReserved("data",l.data),this.emitReserved("message",l.data);break}}onHandshake(l){this.emitReserved("handshake",l),this.id=l.sid,this.transport.query.sid=l.sid,this._pingInterval=l.pingInterval,this._pingTimeout=l.pingTimeout,this._maxPayload=l.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const l=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+l,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},l),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const l=this._getWritablePackets();this.transport.send(l),this._prevBufferLen=l.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(i+=Bx(o)),r>0&&i>this._maxPayload)return this.writeBuffer.slice(0,r);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const l=Date.now()>this._pingTimeoutTime;return l&&(this._pingTimeoutTime=0,sc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),l}write(l,i,r){return this._sendPacket("message",l,i,r),this}send(l,i,r){return this._sendPacket("message",l,i,r),this}_sendPacket(l,i,r,o){if(typeof i=="function"&&(o=i,i=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const f={type:l,data:i,options:r};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),o&&this.once("flush",o),this.flush()}close(){const l=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),l()},r=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():l()}):this.upgrading?r():l()),this}_onError(l){if(Zl.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",l),this._onClose("transport error",l)}_onClose(l,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ch&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=fu.indexOf(this._offlineEventListener);r!==-1&&fu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",l,i),this.writeBuffer=[],this._prevBufferLen=0}}}Zl.protocol=Ry;class n4 extends Zl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let l=0;l<this._upgrades.length;l++)this._probe(this._upgrades[l])}_probe(l){let i=this.createTransport(l),r=!1;Zl.priorWebsocketSuccess=!1;const o=()=>{r||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!r)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Zl.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=i.name,this.emitReserved("upgradeError",v)}}))};function f(){r||(r=!0,b(),i.close(),i=null)}const d=S=>{const v=new Error("probe error: "+S);v.transport=i.name,f(),this.emitReserved("upgradeError",v)};function g(){d("transport closed")}function h(){d("socket closed")}function p(S){i&&S.name!==i.name&&f()}const b=()=>{i.removeListener("open",o),i.removeListener("error",d),i.removeListener("close",g),this.off("close",h),this.off("upgrading",p)};i.once("open",o),i.once("error",d),i.once("close",g),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&l!=="webtransport"?this.setTimeoutFn(()=>{r||i.open()},200):i.open()}onHandshake(l){this._upgrades=this._filterUpgrades(l.upgrades),super.onHandshake(l)}_filterUpgrades(l){const i=[];for(let r=0;r<l.length;r++)~this.transports.indexOf(l[r])&&i.push(l[r]);return i}}let a4=class extends n4{constructor(l,i={}){const r=typeof l=="object"?l:i;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>Wx[o]).filter(o=>!!o)),super(l,r)}};function l4(t,l="",i){let r=t;i=i||typeof location<"u"&&location,t==null&&(t=i.protocol+"//"+i.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=i.protocol+t:t=i.host+t),/^(https?|wss?):\/\//.test(t)||(typeof i<"u"?t=i.protocol+"//"+t:t="https://"+t),r=Ah(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const f=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+f+":"+r.port+l,r.href=r.protocol+"://"+f+(i&&i.port===r.port?"":":"+r.port),r}const i4=typeof ArrayBuffer=="function",r4=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,jy=Object.prototype.toString,s4=typeof Blob=="function"||typeof Blob<"u"&&jy.call(Blob)==="[object BlobConstructor]",o4=typeof File=="function"||typeof File<"u"&&jy.call(File)==="[object FileConstructor]";function Op(t){return i4&&(t instanceof ArrayBuffer||r4(t))||s4&&t instanceof Blob||o4&&t instanceof File}function du(t,l){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,r=t.length;i<r;i++)if(du(t[i]))return!0;return!1}if(Op(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return du(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&du(t[i]))return!0;return!1}function u4(t){const l=[],i=t.data,r=t;return r.data=xh(i,l),r.attachments=l.length,{packet:r,buffers:l}}function xh(t,l){if(!t)return t;if(Op(t)){const i={_placeholder:!0,num:l.length};return l.push(t),i}else if(Array.isArray(t)){const i=new Array(t.length);for(let r=0;r<t.length;r++)i[r]=xh(t[r],l);return i}else if(typeof t=="object"&&!(t instanceof Date)){const i={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=xh(t[r],l));return i}return t}function c4(t,l){return t.data=Oh(t.data,l),delete t.attachments,t}function Oh(t,l){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<l.length)return l[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=Oh(t[i],l);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=Oh(t[i],l));return t}const f4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],d4=5;var Ke;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ke||(Ke={}));class h4{constructor(l){this.replacer=l}encode(l){return(l.type===Ke.EVENT||l.type===Ke.ACK)&&du(l)?this.encodeAsBinary({type:l.type===Ke.EVENT?Ke.BINARY_EVENT:Ke.BINARY_ACK,nsp:l.nsp,data:l.data,id:l.id}):[this.encodeAsString(l)]}encodeAsString(l){let i=""+l.type;return(l.type===Ke.BINARY_EVENT||l.type===Ke.BINARY_ACK)&&(i+=l.attachments+"-"),l.nsp&&l.nsp!=="/"&&(i+=l.nsp+","),l.id!=null&&(i+=l.id),l.data!=null&&(i+=JSON.stringify(l.data,this.replacer)),i}encodeAsBinary(l){const i=u4(l),r=this.encodeAsString(i.packet),o=i.buffers;return o.unshift(r),o}}function Hv(t){return Object.prototype.toString.call(t)==="[object Object]"}class Dp extends en{constructor(l){super(),this.reviver=l}add(l){let i;if(typeof l=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(l);const r=i.type===Ke.BINARY_EVENT;r||i.type===Ke.BINARY_ACK?(i.type=r?Ke.EVENT:Ke.ACK,this.reconstructor=new p4(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Op(l)||l.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(l),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+l)}decodeString(l){let i=0;const r={type:Number(l.charAt(0))};if(Ke[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ke.BINARY_EVENT||r.type===Ke.BINARY_ACK){const f=i+1;for(;l.charAt(++i)!=="-"&&i!=l.length;);const d=l.substring(f,i);if(d!=Number(d)||l.charAt(i)!=="-")throw new Error("Illegal attachments");r.attachments=Number(d)}if(l.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(l.charAt(i)===","||i===l.length););r.nsp=l.substring(f,i)}else r.nsp="/";const o=l.charAt(i+1);if(o!==""&&Number(o)==o){const f=i+1;for(;++i;){const d=l.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===l.length)break}r.id=Number(l.substring(f,i+1))}if(l.charAt(++i)){const f=this.tryParse(l.substr(i));if(Dp.isPayloadValid(r.type,f))r.data=f;else throw new Error("invalid payload")}return r}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,i){switch(l){case Ke.CONNECT:return Hv(i);case Ke.DISCONNECT:return i===void 0;case Ke.CONNECT_ERROR:return typeof i=="string"||Hv(i);case Ke.EVENT:case Ke.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&f4.indexOf(i[0])===-1);case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class p4{constructor(l){this.packet=l,this.buffers=[],this.reconPack=l}takeBinaryData(l){if(this.buffers.push(l),this.buffers.length===this.reconPack.attachments){const i=c4(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const g4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Dp,Encoder:h4,get PacketType(){return Ke},protocol:d4},Symbol.toStringTag,{value:"Module"}));function Da(t,l,i){return t.on(l,i),function(){t.off(l,i)}}const m4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class By extends en{constructor(l,i,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=l,this.nsp=i,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[Da(l,"open",this.onopen.bind(this)),Da(l,"packet",this.onpacket.bind(this)),Da(l,"error",this.onerror.bind(this)),Da(l,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...i){var r,o,f;if(m4.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(i.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ke.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,S=i.pop();this._registerAckCallback(b,S),d.id=b}const g=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!g||(h?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(l,i){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[l]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let g=0;g<this.sendBuffer.length;g++)this.sendBuffer[g].id===l&&this.sendBuffer.splice(g,1);i.call(this,new Error("operation has timed out"))},o),d=(...g)=>{this.io.clearTimeoutFn(f),i.apply(this,g)};d.withError=!0,this.acks[l]=d}emitWithAck(l,...i){return new Promise((r,o)=>{const f=(d,g)=>d?o(d):r(g);f.withError=!0,i.push(f),this.emit(l,...i)})}_addToQueue(l){let i;typeof l[l.length-1]=="function"&&(i=l.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((o,...f)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(o)):(this._queue.shift(),i&&i(null,...f)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(l=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!l||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:Ke.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",l,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(l=>{if(!this.sendBuffer.some(r=>String(r.id)===l)){const r=this.acks[l];delete this.acks[l],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case Ke.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(l);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(l);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.CONNECT_ERROR:this.destroy();const r=new Error(l.data.message);r.data=l.data.data,this.emitReserved("connect_error",r);break}}onevent(l){const i=l.data||[];l.id!=null&&i.push(this.ack(l.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const r of i)r.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const i=this;let r=!1;return function(...o){r||(r=!0,i.packet({type:Ke.ACK,id:l,data:o}))}}onack(l){const i=this.acks[l.id];typeof i=="function"&&(delete this.acks[l.id],i.withError&&l.data.unshift(null),i.apply(this,l.data))}onconnect(l,i){this.id=l,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ke.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const i=this._anyListeners;for(let r=0;r<i.length;r++)if(l===i[r])return i.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const i=this._anyOutgoingListeners;for(let r=0;r<i.length;r++)if(l===i[r])return i.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const r of i)r.apply(this,l.data)}}}function dr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}dr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var l=Math.random(),i=Math.floor(l*this.jitter*t);t=(Math.floor(l*10)&1)==0?t-i:t+i}return Math.min(t,this.max)|0};dr.prototype.reset=function(){this.attempts=0};dr.prototype.setMin=function(t){this.ms=t};dr.prototype.setMax=function(t){this.max=t};dr.prototype.setJitter=function(t){this.jitter=t};class Dh extends en{constructor(l,i){var r;super(),this.nsps={},this.subs=[],l&&typeof l=="object"&&(i=l,l=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,oc(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((r=i.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new dr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=l;const o=i.parser||g4;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(l){return arguments.length?(this._reconnection=!!l,l||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(l){return l===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=l,this)}reconnectionDelay(l){var i;return l===void 0?this._reconnectionDelay:(this._reconnectionDelay=l,(i=this.backoff)===null||i===void 0||i.setMin(l),this)}randomizationFactor(l){var i;return l===void 0?this._randomizationFactor:(this._randomizationFactor=l,(i=this.backoff)===null||i===void 0||i.setJitter(l),this)}reconnectionDelayMax(l){var i;return l===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=l,(i=this.backoff)===null||i===void 0||i.setMax(l),this)}timeout(l){return arguments.length?(this._timeout=l,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(l){if(~this._readyState.indexOf("open"))return this;this.engine=new a4(this.uri,this.opts);const i=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Da(i,"open",function(){r.onopen(),l&&l()}),f=g=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",g),l?l(g):this.maybeReconnectOnOpen()},d=Da(i,"error",f);if(this._timeout!==!1){const g=this._timeout,h=this.setTimeoutFn(()=>{o(),f(new Error("timeout")),i.close()},g);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(d),this}connect(l){return this.open(l)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const l=this.engine;this.subs.push(Da(l,"ping",this.onping.bind(this)),Da(l,"data",this.ondata.bind(this)),Da(l,"error",this.onerror.bind(this)),Da(l,"close",this.onclose.bind(this)),Da(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(l){try{this.decoder.add(l)}catch(i){this.onclose("parse error",i)}}ondecoded(l){sc(()=>{this.emitReserved("packet",l)},this.setTimeoutFn)}onerror(l){this.emitReserved("error",l)}socket(l,i){let r=this.nsps[l];return r?this._autoConnect&&!r.active&&r.connect():(r=new By(this,l,i),this.nsps[l]=r),r}_destroy(l){const i=Object.keys(this.nsps);for(const r of i)if(this.nsps[r].active)return;this._close()}_packet(l){const i=this.encoder.encode(l);for(let r=0;r<i.length;r++)this.engine.write(i[r],l.options)}cleanup(){this.subs.forEach(l=>l()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(l,i){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",l,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const l=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{l.skipReconnect||(this.emitReserved("reconnect_attempt",l.backoff.attempts),!l.skipReconnect&&l.open(o=>{o?(l._reconnecting=!1,l.reconnect(),this.emitReserved("reconnect_error",o)):l.onreconnect()}))},i);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const l=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",l)}}const fs={};function hu(t,l){typeof t=="object"&&(l=t,t=void 0),l=l||{};const i=l4(t,l.path||"/socket.io"),r=i.source,o=i.id,f=i.path,d=fs[o]&&f in fs[o].nsps,g=l.forceNew||l["force new connection"]||l.multiplex===!1||d;let h;return g?h=new Dh(r,l):(fs[o]||(fs[o]=new Dh(r,l)),h=fs[o]),i.query&&!l.query&&(l.query=i.queryKey),h.socket(i.path,l)}Object.assign(hu,{Manager:Dh,Socket:By,io:hu,connect:hu});const v4=[Wv,$v,Kv,Jv,uE,...k3,...SE,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],b4=({dispatch:t,getState:l})=>i=>{let r=null;return o=>{const f=i(o);if(o.type===qh){r?.disconnect(),t(j3());const d=`/chat?${new URLSearchParams(o.querystrings).toString()}`;r=hu(`/${o.clientName}${d}`),r.on("action",t),r.on("connect",()=>t(B3())),r.on("disconnect",()=>t(U3())),r.on("reconnect",()=>t(H3())),r.on("set-translations",(g,h)=>{t(hx({language:g,messages:sx(g,h)}))}),r.on("set-settings",g=>{t(mx(g))}),r.on("enable-conversation-rating",g=>t(CE(g))),r.on("speech-transcription",g=>t(wE(g))),r.on("restore-client-state",g=>{t(z3(g.sessionId)),t(OE(g.messages))}),r.on("expand-window",({devices:g,initial:h=!1})=>{t({type:lb,devices:g,initial:h})}),r.on("restart-chat",()=>{t(Os())}),r.on("login-success",g=>{t(A3({loginToken:g.loginToken}))})}else if(o.type==="start-screen/requestLogin")r?.emit("login-requested",o.payload);else if(o.type===qu)r?.emit("start-chat",o.payload);else if(o.type===ec)r?.emit("terminate-session",o.payload);else if(o.type===_E)r?.emit("get-started",JSON.stringify(o));else if(o.type===Hh)r?.emit("audio-message",o.buffer);else if(o.type===zh)r?.emit("conversation-rating",o.payload);else if(o.type===rb){const{connection:{sessionId:d}}=l();window.location.href=`/transcript-pdf/${d}`}else v4.indexOf(o.type)===-1&&o.meta===void 0&&r&&r.emit("action",JSON.stringify(o));return f}},Uy=Zh(),y4={..._x(Uy),intl:yy},Rh=f3({middleware:t=>t().concat(b4),reducer:bx,preloadedState:y4});Rh.subscribe(NT(()=>{const t=Rh.getState();Sx(Uy,{connection:t.connection,startScreen:t.startScreen})},1e3));const _4=document.getElementById("root"),S4=eS.createRoot(_4);S4.render(y.jsx(qS,{store:Rh,children:y.jsx(nx,{})}));
|
|
131
|
+
//# sourceMappingURL=index-qmz848Sp.js.map
|